// Insider Marketing drop-down-fly-out menu code (C) 2007 Insider Marketing//v2.0 11/14/06 LG completely rewritten//v1.0 10/14/06 the essential version// Some General settings rollPause = 120  mnuImgPath = "images/" timerID = null oldMenu = ""// Figure out what browser we are using, and act accordingly compatible=false						//presume we have an old browser app= navigator.appName.charAt(0).toUpperCase() + navigator.appVersion.charAt(0) if (app.charAt(1)>=4) { visible = "visible";  hidden = "hidden"; compatible=true } //NS5,6,MS uses DIVS if (app=="N4") {visible = "show";  hidden = "hide"; compatible=true }  //NS4 only uses LAYERSfunction mOverMenu(menuName) {				//when you roll over a main menu, turn on submenu	if (!compatible) {return}					//don't do this on old browsers	clearTimeout(timerID)	if (oldMenu != menuName && oldMenu != "") {hideSubmenu(oldMenu)}	//lose any old menu	theMenu = getSubmenu(menuName)						//locate our new div or layer	if (theMenu) {		theMenu.visibility = visible 			//bring up our new submenu		ChangeHilite (menuName,mnuImgPath,1)	//hilite the matching menu		}	oldMenu = menuName	}	function mOutMenu(menuName) {					//when you leave menu or submenu, prepare to turn off	if (compatible) {		clearTimeout(timerID)				//lose any old timeout		timerID = setTimeout("hideSubmenu('" + menuName + "')", rollPause)}	//set a new time to turn off menus	}	function mOverSubmenu(menuName) {				//when you roll over submenu, cancel planned turnoff	if (compatible) {clearTimeout(timerID)}		//we're hovering, so DON'T turn off menus	}	function hideSubmenu(menuName) {				//when timer fires, vanish the submenu	myMenu = getSubmenu(menuName)	if (myMenu) {		myMenu.visibility = hidden		ChangeHilite(menuName,mnuImgPath,0)		}	}	function getSubmenu(myname) {	if (app=="N4") {return(document.layers[myname]) }					//netscape 4's object...	if (app=="N5") {return(document.getElementById(myname).style) }		//netscape 6's object...	if (app.charAt(0)=="M") {return( eval( 'document.all.'+myname+'.style')) }	//Microsoft's object...	return(null)	}function ChangeHilite(imageName,imgPath, state) {			//set the main-menu image on or off	if (state == 0)	{ if (document.location.href.charAt(document.location.href.lastIndexOf())=="/" && imageName == "about")		  return;	  if (imageName == "products")	  {	    if (document.location.href.search("/processanalyst/") != -1)	    	return;	    if (document.location.href.search("/webanalyst/") != -1)	    	return;	    if (document.location.href.search("/knowledgeplatform/") != -1)	    	return;    		  }	  if (imageName == "pcw")	  {   	    if (document.location.href.search("/" + imageName) != -1)	     return;	  }	  else   	  if (document.location.href.search(imageName) != -1)	    return;	}    	document.images[imageName+ "-img"].src=imgPath + imageName + "-" + state +".gif"	}function createSubmenu(name, left, top, visible, content){	if (!compatible) {return}	zindex=100	width=180	height=0	if (app=="N4"){ 		//only in Navigator 4 do we write layers...//		document.writeln('<layer name="'+name+'" bgColor=#E9C445 left='+left+' top='+top+' width='+width+' height='+height+ ' visibility='+visible+' z-index='+ zindex + ' onMouseOver="mOverSubmenu(\''+name+'\');" onMouseOut="mOutMenu(\''+name+'\');">') 		document.writeln('<layer name="'+name+'" bgColor=#E9C445 left='+left+' top='+top+' height='+height+ ' visibility='+visible+' z-index='+ zindex + ' onMouseOver="mOverSubmenu(\''+name+'\');" onMouseOut="mOutMenu(\''+name+'\');">') 		document.writeln(content)		document.writeln('</layer>') 		mymenu=getSubmenu(name) 		//mymenu.width=width		mymenu.height=height	} else {		//in other browsers we write DIVs...//		document.writeln("<div id='" + name + "' style='position:absolute; left:" + left + "px; top:" + top + "px; width:" + width + "px;" + " visibility:" + visible + "; z-index:" + zindex + "; background-color: #E9C445; layer-background-color: #E9C445' onMouseOver='mOverSubmenu(\"" + name + "\")' onMouseOut='mOutMenu(\"" + name + "\")'>")		document.writeln("<div id='" + name + "' style='position:absolute; left:" + left + "px; top:" + top + "px; visibility:" + visible + "; z-index:" + zindex + "; background-color: #527086; layer-background-color: #527086' onMouseOver='mOverSubmenu(\"" + name + "\")' onMouseOut='mOutMenu(\"" + name + "\")'>")		document.writeln(content)		document.writeln('</div>')		}	}