var agt=navigator.userAgent.toLowerCase(); var is_major=parseInt(navigator.appVersion); var is_minor=parseFloat(navigator.appVersion); var is_nav =((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1)); var is_nav2=(is_nav && (is_major == 2)); var is_nav3=(is_nav && (is_major == 3)); var is_nav4=(is_nav && (is_major == 4)); var is_nav5=(is_nav && (is_major == 5)); var is_nav5up=(is_nav && (is_major >= 5)); var is_nav4down=(is_nav && (!is_nav5up)); var is_ie  =(agt.indexOf("msie") != -1); var is_ie3 =(is_ie && (is_major < 4)); var is_ie4 =(is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1) ); var is_ie4up =(is_ie  && (is_major >= 4)); var is_ie4down =(is_ie  && (is_major <= 4)); var is_ie5 =(is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1) ); var is_ie5up =(is_ie  && !is_ie3 && !is_ie4); var is_5up=(is_ie5up || is_nav5up);var is_hotjava=(agt.indexOf("hotjava")!=-1);var is_opera=(agt.indexOf("opera") != -1); var is_webtv=(agt.indexOf("webtv") != -1); var is_win  =( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );var is_mac   =(agt.indexOf("mac")!=-1);var vIE55Win=navigator.appVersion.toLowerCase().indexOf("msie 5.5")!=-1 && is_win;var vIE4Win=is_ie4 && is_win;var vIE4Mac=is_ie4 && is_mac;var iCon = "";// global parametersvar vFurns=new Array();var gDrawTime=new Array();var gIsMenuLoaded=false;var vMSTIndex=0;var vItemNo=0;var vMenuObj=null;var vMenuDelay=350;var gToolIndexOff=200,gToolIndexOn=300;var vTooltipTimer=null;var vTooltips;var vTooltipDelay=1; function mSetImage(){}function mSetHiLoColor(){}function mSetId(){}function mMenu(menuText,itemA,itemB,itemC, parent, url){	if(menuText == ""){		menuText = url;	}	this.dKids=new Array();	this.dName="item" + vItemNo++ ; 	if (url){		url = url.replace("ab=", "");		this.dUrl = url;		} else {this.dUrl = "#";}	this.dWidth=vMenuWidth;	this.dHeight=vMenuHeight;	this.dOpen=false;	this.dMenuText=menuText;	this.dParent=parent;	this.dKidPlaced=false;	if(parent){// if it has a parent reference it is assigned that parents color scheme		parent.mAddKid(this);		this.dTop= parent.dTop + this.dHeight;		this.dLeft= parent.dLeft + 12;		// if no child colour scheme then use parents				if(!this.dLo){				this.dHi=parent.dHi;				this.dLo=parent.dLo;			}		}		else{ // parents are assigned a main colour scheme		vFurns[vFurns.length]=this;		this.dNumber = vFurns.length;		this.dHi=vOnColour;		this.dLo=vOffColour;		this.dTop=vMenuVStart + (this.dHeight * vFurns.length) ;		this.dLeft=vMenuHStart;	}}function mAddKid(inKid){inKid.dParent=this;if(inKid.dPosAbs){	inKid.dTop=this.dTop + (this.dKids.length * vMenuHeight);	inKid.dLeft=this.dLeft + this.dWidth;}inKid.dKidNumber = this.dKids.length;this.dKids[this.dKids.length]=inKid;} function writeThisStyle(){var thisData = "";	thisData += '#' + this.dName + 'Div{position:absolute; left:'+ this.dLeft +'px;top:'+ this.dTop +'px; width:'+ this.dWidth +'px; visibility:hidden;z-index:10;}\r';return thisData;}function fInit(){}function fWriteStyles(){var menuData = "<STYLE TYPE = \"text/css\">\r";for(var i=0;i < vFurns.length;i++ )	{	menuData += vFurns[i].writeThisStyle(i)		// draw the children	menuData += vFurns[i].drawKidStyles(i)	}	// tooltip stylemenuData +="#ToolTipDiv {border: solid 1px black; position:absolute;top:0;left:0;width:110;visibility:hidden;z-index:"+gToolIndexOn+";background-color:#ffffff; border-color:black; border-style:solid; border-width: 1px;} ";menuData += "<\/STYLE>\r";document.write(menuData);}function drawKidStyles(){var kidData = "";		// draw the children	if (this.dKids.length > 0) {				for(var j=0;j < this.dKids.length;j++ ){					kidData += this.dKids[j].writeThisStyle();										//draw its children if it has any					kidData += this.dKids[j].drawKidStyles()					}							}return kidData;}function buildDivs(){var menuData = "";menuData += "<div id='ToolTipDiv'><\/div>\r";for(var i=0;i < vFurns.length;i++ )	{	menuData += vFurns[i].writeDivs(i)		// draw the children	menuData += vFurns[i].drawKids(i)	}document.write(menuData);//debug document.write('<b><br><textarea>'+ menuData +'<\/textarea>')}function drawKids(){var kidData = "";		// draw the children	if (this.dKids.length > 0) {				for(var j=0;j < this.dKids.length;j++ ){					kidData += this.dKids[j].writeDivs();										//draw its children if it has any					kidData += this.dKids[j].drawKids()					}							}return kidData;}function writeDivs(){var thisData = "";var tImage ='';var tLink ='';//if(this.dUrl == "#"){this.dUrl = '#anchor'+this.dName;}if(this.dKids.length > 0){t = 'topics'; tImage = '<img src="'+ plusImage +'" name="imgFold'+ this.dNumber +'" alt="Expand" border=0 width="14" height="16">';tLink = 'onmouseup="fGetTarget(\''+this.dName+'\').mMouseUp();" onmouseover="fGetTarget(\''+this.dName+'\').mMouseOver();" onmouseout="fGetTarget(\''+this.dName+'\').mMouseOut();"'; }	else if(!this.dParent){t = 'topics';tImage = '<img src="'+ clearImage +'" name="imgFold'+ this.dNumber +'" alt="Non-Expand" border=0 width="14" height="16">';tLink = 'onmouseup="fGetTarget(\''+this.dName+'\').mMouseUp();"';}	else {t = 'clSubLinks';tImage = '';tLink = '';}	thisData += '<div id="'+ this.dName +'Div"><a NAME="anchor'+this.dName+'" href="'+ this.dUrl +'" '+ tLink +' class="'+ t +'"  onmouseover="fGetTarget(\''+this.dName+'\').mMouseOver();" onmouseout="fGetTarget(\''+this.dName+'\').mMouseOut();">'+ tImage + '&nbsp;' + this.dMenuText +'<\/a><br>\r';	thisData += '<\/div>\r';	return thisData;}// controls the opening and closing of the menufunction mOpenKids(){var thisHeight;var thisImage;// change its parents icon			thisImage = eval("document.imgFold" + this.dNumber);			if (thisImage){thisImage.src = minusImage;}	for(var j=0;j < this.dKids.length;j++ ){			this.dKids[j].mSetVisible(true)			thisHeight = this.dKids.length * this.dKids[j].dHeight;	}		//this.mMoveTo(this.dLeft,thisHeight);	this.mMoveKids(thisHeight)		if(!this.dNumber){		nextnumber = this.dParent.dNumber		// move the parents and their children down		for(var i=(this.dKidNumber + 1); i<this.dParent.dKids.length;i++ ){					y = thisHeight + this.dParent.dKids[i].dTop;			this.dParent.dKids[i].mMoveTo(this.dLeft,y);			//this.dParent.dKids[i].mMoveKids(y)				}				}	else {nextnumber = this.dNumber};		// move the parents and their children down	for(var i=(nextnumber);i < vFurns.length;i++ ){				y = thisHeight + vFurns[i].dTop;		vFurns[i].mMoveTo(vFurns[i].dLeft,y);		vFurns[i].mMoveKids(y);				}	}	function mMoveKids(){	for(var j=0;j < this.dKids.length;j++ ){		y = this.dTop + (this.dKids[j].dHeight * (j + 1))	this.dKids[j].mMoveTo(this.dKids[j].dLeft,y);		// if its told to be highlighted we do it			if (this.dKids[j].dMenuText == selectedItem){				//this.dKids[j].mToggleHilite("silver");				fWriteDiv(this.dKids[j].dName + "Div",'<a href="#" class="linkActive" >&nbsp;'+ this.dKids[j].dMenuText + '<\/a>');this.dKids[j].mMoveTo(this.dKids[j].dLeft,y);				}		if (this.dKids[j].dKids > 0) { this.mMoveKids(thisHeight);}	}}function mMoveKidsClosed(){	for(var j=0;j < this.dKids.length;j++ ){		y = this.dTop - (this.dKids[j].dHeight * (j + 1))	this.dKids[j].mMoveTo(this.dKids[j].dLeft,y);		}}function mCloseKids(){var thisHeight;var thisImage;// change its parents icon			thisImage = eval("document.imgFold" + this.dNumber);			if (thisImage){thisImage.src = plusImage;}		for(var j=0;j < this.dKids.length;j++ )		{			this.dKids[j].dOpen=false;			this.dKids[j].mSetVisible(false)			thisHeight = this.dKids.length * this.dKids[j].dHeight;			if (this.dKids[j].dKids.length > 0) { this.dKids[j].mCloseKids()}				}// move the parents and their children up		if(!this.dNumber){		nextnumber = this.dParent.dNumber		for(var i=(this.dKidNumber + 1);i < this.dParent.dKids.length;i++ ){					y = thisHeight - this.dParent.dKids[i].dTop;			this.dParent.dKids[i].mMoveTo(this.dLeft,y);			//this.dParent.dKids[i].mMoveKidsClosed(y)				}	}	else {nextnumber = this.dNumber} ;	// move the rest down	for(var i=(nextnumber);i < vFurns.length;i++ ){			y = vFurns[i].dTop - thisHeight		vFurns[i].mMoveTo(vFurns[i].dLeft,y);				// move all children up in case they're open		for(var j=0;j < vFurns[i].dKids.length;j++ ){					// move it to its correct location			y = vFurns[i].dKids[j].dTop - thisHeight			vFurns[i].dKids[j].mMoveTo(vFurns[i].dKids[j].dLeft, y);			}		// end move of children}	this.dOpen = false;}function mSetVisible(inVis){fShowDiv(this.dCss,inVis);}function fWriteDiv(inName,inText){	var tDoc;		if(is_nav4){			eval("tDoc=document." + inName + ".document");			tDoc.open();			tDoc.write(inText);			tDoc.close();		}	if  (is_ie4){document.all[inName].innerHTML=inText;	}	if  (is_5up){document.getElementById(inName).innerHTML=inText;	}  }function fShowDiv(inDiv,inVis){if(inVis){ inDiv.visibility=(is_nav4)?'show':'visible';}else{inDiv.visibility=(is_nav4)?'hide':'hidden';}}function mMoveTo(x,y){this.dLeft=x;this.dTop=y;fMoveDiv(this.dCss,x,y);}function fMoveDiv(inDiv,x,y){	if(is_nav4) {inDiv.left=x;inDiv.top=y;}	if(is_ie4) {inDiv.pixelLeft=x;inDiv.pixelTop=y;}	if(is_5up) {inDiv.left=x+"px";inDiv.top=y+"px"};	}function mInstallHandler(inVisible){if(!this.dMap){	var tTarget;	if(is_nav4){		eval("tTarget=document." + this.dName + "Div");		this.dCss=tTarget;		if(this.dImage){			eval("this.dImageCss=this.dCss.document." + this.dName + "Image"); 			eval("this.dRollImageCss=this.dImageCss.document.images['" + this.dName + "RollImage']");			this.dImageCss.document.onmouseup= fHandleUp;					this.dImageCss.document.dJSObj=this;					this.dRollImageCss.onmouseup= fHandleUp;			this.dRollImageCss.dJSObj=this;		}		else if(this.dBannerImages){			eval("this.dBannerDoc=this.dCss.document.images['" + this.dName + "BannerImg']");			this.dBannerDoc.onmouseup= fHandleUp;			this.dBannerDoc.dJSObj=this;			this.dCss.document.onmouseup= fHandleUp;			this.dCss.document.dJSObj=this;		}		else{			tTarget.document.onmouseup= fHandleUp;			tTarget.document.captureEvents(Event.MOUSEUP);									tTarget.document.dJSObj=this;		}	}	else{		tTarget=(is_ie4)?document.all[this.dName + "Div"] : document.getElementById(this.dName + "Div"); 		this.dCss=tTarget.style;		if(this.dImage){			this.dImageCss=(is_ie4)?document.all[this.dName + "Image"].style : document.getElementById(this.dName + "Image").style; 			this.dRollImageCss=(is_ie4)?document.all[this.dName + "RollImage"] : document.getElementById(this.dName + "RollImage");			tTarget=this.dRollImageCss;		}		else if(this.dBannerImages){			this.dBannerDoc=(is_ie4)?document.all[this.dName + "BannerImg"] : document.getElementById(this.dName + "BannerImg");			tTarget=this.dBannerDoc;		}		else if(vIE4Win){			//var tTarget2=document.all[this.dName + "P"];			//tTarget2.dJSObj=this;			//tTarget2.onmouseover= fHandleOver;			//tTarget2.onmouseup= fHandleUp;		}	}	if (is_nav5) {		tTarget.dJSObj=this;		tTarget.addEventListener("mouseover",fHandleOver,false);		tTarget.addEventListener("mouseout",fHandleOut,false);		tTarget.addEventListener("mouseup",fHandleUp,false);		var tTarget2=document.getElementById(this.dName + "A");	 if (tTarget2 != null ){			tTarget2.dJSObj=this;			tTarget2.addEventListener("mouseover",fHandleOver,false);			tTarget2.addEventListener("mouseout",fHandleOut,false);			tTarget2.addEventListener("mouseup",fHandleUp,false); 		}	}	else {		tTarget.dJSObj=this;		tTarget.onmouseover= fHandleOver;		tTarget.onmouseout= fHandleOut;		tTarget.onmouseup= fHandleUp;	}}else {	if(is_nav4){ 		eval("tTarget=document." + this.dName + "Div");		this.dCss=tTarget;	}	else{		this.dCss=(is_ie4)?document.all[this.dName + "Div"].style : document.getElementById(this.dName + "Div").style;	}}	for(var i=0;i < this.dKids.length;i++ ){	this.dKids[i].mInstallHandler();}var tCurrWidth=this.dWidth;if(this.dAutoHilite){	this.mToggleHilite(this.dLo);	if(is_nav4) {		eval("tCurrWidth=document." + this.dName + "Div.document.width");	} else {		if(vIE4Win)		tCurrWidth=document.all[this.dName + "Table"].offsetWidth;		else	tCurrWidth=(is_ie4)?document.all[this.dName + "Div"].offsetWidth :  document.getElementById(this.dName + "Div").offsetWidth;	}}if(this.dParent){	this.dParent.dKidsMaxWidth=Math.max(this.dParent.dKidsMaxWidth,tCurrWidth);}else{	this.mSetVisible(true);	return tCurrWidth;}}function mToggleHilite(inColor){if(is_nav4){	this.dCss.bgColor=inColor;	}	else{	this.dCss.backgroundColor=inColor;	}}function showMenu(){for(var i=0;i<vFurns.length;i++ ){	vFurns[i].mInstallHandler(true);}// if a menu is told to be open on launch, we open it	for(var i=0;i < vFurns.length;i++ ){		if (vFurns[i].dMenuText == thisCatOpen){vFurns[i].mMouseUp();		//fWriteDiv(vFurns[i].dName + "Div",'<a href="#" class="linkActive" ><B>&nbsp;'+ vFurns[i].dMenuText + '</B><\/a>');			}	}	// set up the tooltip divif(is_nav4){	vTooltips=document.ToolTipDiv; }if (is_ie4 || is_ie5) {	vTooltips=document.all.ToolTipDiv.style;}if (is_nav5up) {	vTooltips=document.getElementById("ToolTipDiv").style;}return true;}function fHandleOut(e){var tTarget;if(is_nav){ tTarget=e.target.dJSObj;}if(is_ie){e=window.event;tTarget=e.srcElement.dJSObj;e.cancelBubble=true;}if(tTarget){tTarget.mMouseOut();}return false;}function fHandleOver(e){var tTarget;if(is_nav){ tTarget=e.target.dJSObj;}if(is_ie){e=window.event;tTarget=e.srcElement.dJSObj;e.cancelBubble=true;}if(tTarget){ tTarget.mMouseOver();}return false;}function fHandleUp(e){var tTarget;if(is_nav){tTarget=e.target.dJSObj;}if(is_ie){e=window.event;tTarget=e.srcElement.dJSObj;e.cancelBubble=true;}if(tTarget){ tTarget.mMouseUp();}return false;}function mMouseOut(){fTooltip();// change its icon if its a parent	if(this.dKids.length > 0){			thisImage = eval("document.imgFold" + this.dNumber);						if (this.dOpen == false){thisImage.src = plusImage;}			if (this.dOpen == true){thisImage.src = minusImage;}	}	// do the status thang	window.status= 'Powered by e-CHO'; return true;	return false;}function mMouseUp(){if (this.dKids.length > 0) {if(this.dOpen == true){		this.mCloseKids();	}else if(this.dOpen == false){		this.dOpen=true;		this.mOpenKids();	}		}return false; }function mMouseOver(){if(this.dTooltip){		fTooltip("<b>Page Summary:</b><BR>"+this.dTooltip ,this.dLeft + 10,this.dTop+this.dHeight);		//vTooltips.mSizeTo(this.dLeft + 10,this.dTop+this.dHeight);		//alert(vTooltips);	}		// change its icon if its a parent	if(this.dKids.length > 0){			thisImage = eval("document.imgFold" + this.dNumber);						if (this.dOpen == false){thisImage.src = plusRollImage;}			if (this.dOpen == true){thisImage.src = minusRollImage;}	}		if(!is_nav4){	this.dCss.cursor="hand";	}	if(is_nav5up){	this.dCss.cursor="pointer";	}		// do the status thang	if(this.dTooltip){window.status= this.dTooltip; return true;}	else{window.status= 'Powered by e-CHO'; return true;}return false;}function fGetTarget(inName){var obj;if (is_nav4) obj=eval("document."+inName+"Div.dJSObj");if (is_ie4) obj=eval("document.all."+inName+"Div.dJSObj");if (is_5up) obj=document.getElementById(inName+"Div").dJSObj;return obj;}function fOpenMenu(){	vMenuObj.mOpenKids();}function mSetTooltip(inText){	this.dTooltip=inText;}function fTooltip(inText,x,y ){if(vTooltipTimer!=null){clearTimeout(vTooltipTimer);vTooltipTimer=null;}fShowDiv(vTooltips,false);if(x){if(is_nav4){fWriteDiv("ToolTipDiv","<TABLE id='ttTab' WIDTH=110 BGCOLOR='white' CELLPADDING=2 CELLSPACING=0 border=1><TR><TD><FONT FACE='Geneva,Arial,Helvetica' SIZE='1'>"+inText+"<\/FONT><\/TD><\/TR><\/TABLE>");}else{inText="<p class='cToolTipText'>"+inText+"<\/p>";fWriteDiv("ToolTipDiv",inText);}fMoveDiv(vTooltips,x,y);vTooltipTimer=setTimeout("fShowDiv(vTooltips, true)",vTooltipDelay*1000);}}function mSizeTo(inWidth,inHeight){if(this.dImage) { return;}this.dWidth=inWidth;this.dHeight=inHeight;fSizeDiv(this.dCss,inWidth,inHeight);fClipDiv(this.dCss,0,inWidth,inHeight,0);if(is_nav4down)this.mWriteDivContent();else if(vIE4Win)fSizeDiv(document.all[this.dName+"Table"],inWidth,inHeight,true);}function fSizeDiv(inDiv,inWidth,inHeight){if(is_nav4 || is_5up){inDiv.width=inWidth;inDiv.height=inHeight;}else{inDiv.pixelWidth=inWidth;inDiv.pixelHeight=inHeight;}}function fClipDiv(inDiv,inTop,inRight,inBottom,inLeft){if(!vIE4Mac){if(is_nav4){inDiv.clip.left=inLeft;inDiv.clip.top=inTop;inDiv.clip.bottom=inBottom;inDiv.clip.right=inRight;}else if (is_ie4){inDiv.clip="rect("+inTop+"px,"+inRight+"px,"+inBottom+"px,"+inLeft+"px)";}else if (is_5up) {inDiv.clip="rect("+inTop+"px "+inRight+"px "+inBottom+"px "+inLeft+"px)";}}}mMenu.prototype.mAddKid=mAddKid;mMenu.prototype.mMoveTo=mMoveTo;mMenu.prototype.mSetVisible=mSetVisible;mMenu.prototype.mInstallHandler=mInstallHandler;mMenu.prototype.writeDivs=writeDivs;mMenu.prototype.drawKids=drawKids;mMenu.prototype.mOpenKids=mOpenKids;mMenu.prototype.mCloseKids=mCloseKidsmMenu.prototype.mMouseOver=mMouseOver;mMenu.prototype.mMouseOut=mMouseOut;mMenu.prototype.mMouseUp=mMouseUp;mMenu.prototype.mSizeTo=mSizeTo;mMenu.prototype.mToggleHilite=mToggleHilite;mMenu.prototype.mSetTooltip=mSetTooltip;mMenu.prototype.mMoveKids=mMoveKids;mMenu.prototype.writeThisStyle=writeThisStyle;mMenu.prototype.drawKidStyles=drawKidStyles;mMenu.prototype.mMoveKidsClosed=mMoveKidsClosed;mMenu.prototype.mSetImage=mSetImage;mMenu.prototype.mSetHiLoColor=mSetHiLoColor;mMenu.prototype.mSetId=mSetId;gDrawTime[vMSTIndex]=new Date();fInit(); gDrawTime[vMSTIndex]="init:" + (new Date()-gDrawTime[vMSTIndex]);gDrawTime[++vMSTIndex]=new Date();fWriteStyles();  gDrawTime[vMSTIndex]="style:" + (new Date()-gDrawTime[vMSTIndex]);