function ge(){
 var ea;
 for(var i=0;i<arguments.length;i++){
	var e=arguments[i];
	if(typeof e=='string')
      e=document.getElementById(e);
	if(arguments.length==1)
      return e;
	if(!ea)
      ea=new Array();
	ea[ea.length]=e;
	}
 return ea;
}

function getTableRowShownDisplayProperty(){
 if(ua.ie()){return'inline';}
 else{return'table-row';}
}

function showTableRow(){
 for(var i=0;i<arguments.length;i++){
	var element=ge(arguments[i]);
	if(element&&element.style)
		element.style.display=getTableRowShownDisplayProperty();
	}
 return false;
}

function hide(){
 for(var i=0;i<arguments.length;i++){
	var element=ge(arguments[i]);
	if(element&&element.style)
	  element.style.display='none';
	}
 return false;
}

function adjustImage(obj,stop_word,max){var pn=obj.parentNode;if(stop_word==null)
stop_word='note_content';if(max==null){while(pn.className.indexOf(stop_word)==-1)
pn=pn.parentNode;if(pn.offsetWidth)
max=pn.offsetWidth;else
max=400;}

if(navigator.userAgent.indexOf('AppleWebKit/4')==-1){obj.style.position='absolute';obj.style.left=obj.style.top='-32000px';}
obj.className=obj.className.replace('img_loading','img_ready');if(obj.width>max){if(window.ActiveXObject){try{var img_div=document.createElement('div');img_div.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+obj.src.replace('"','%22')+'", sizingMethod="scale")';img_div.style.width=max+'px';img_div.style.height=((max/obj.width)*obj.height)+'px';if(obj.parentNode.tagName=='A')
img_div.style.cursor='pointer';obj.parentNode.insertBefore(img_div,obj);obj.removeNode(true);}
catch(e){obj.style.width=max+'px';}}
else
obj.style.width=max+'px';}
obj.style.left=obj.style.top=obj.style.position='';}


function array_indexOf(arr,val,index){if(!index){index=0;}
for(var i=index;i<arr.length;i++){if(arr[i]==val){return i;}}
return-1;}
var ua={populate:function(){var agent=/(?:MSIE.(\d+\.\d+))|(?:Firefox.(\d+\.\d+))|(?:Opera.(\d+\.\d+))|(?:AppleWebKit.(\d+.\d+))/.exec(navigator.userAgent);if(!agent){this._ie=this._firefox=this._opera=this._safari=0;}
this._ie=parseFloat(agent[1]?agent[1]:0);this._firefox=parseFloat(agent[2]?agent[2]:0);this._opera=parseFloat(agent[3]?agent[3]:0);this._safari=parseFloat(agent[4]?agent[4]:0);this.populated=true;},populated:false,ie:function(){if(!this.populated)this.populate();return this._ie;},firefox:function(){if(!this.populated)this.populate();return this._firefox;},opera:function(){if(!this.populated)this.populate();return this._opera;},safari:function(){if(!this.populated)this.populate();return this._safari;}}
Function.prototype.extend=function(superclass){var superprototype=__metaprototype(superclass,0);var subprototype=__metaprototype(this,superprototype.prototype.__level+1);subprototype.parent=superprototype;}
