function ActionBar () {	this.Action = new Object ()	this.Image = new Object ()	this.GetActionBar = document.all ? GetIEActionBar : GetActionBar	this.Click = ActionBarClick	}	function Hover () {	setTimeout ( "Hover ()" , 50 )	var Div = document.getElementById ("myMenuBar")	Div.style.left = 0		if ( document.all ) {		//IE		Div.style.top = document.body.scrollTop		Div.style.width = document.body.clientWidth		} else {		//Mozilla/Netscape/DOM		Div.style.top = window.pageYOffset		Div.setAttribute ( "width" , window.innerWidth )		}		}function GetIEActionBar () {	var Action	var ActionBar = document.all.tags ("table")[0]	var Image	var Links = ActionBar.all.tags ("a")	var Name	for ( var i = 0 ; i < Links.length ; i++ ) {		Action = Links[i]		Name = Action.innerText		if ( Name.charAt(0) == " " ) {			Name = Name.substr (1 , Name.length - 1) }				this.Action[Name] = Action		Image = Action.getElementsByTagName ("img")				if ( Image.length != 0 ) {			this.Image[Name] = Image[0].getAttribute ("src") }		}		return true }function GetActionBar () {	var Action	var ActionBar = document.getElementsByTagName ("table")[0]	var Anchor	var Image	var Name	var TableArray = ActionBar.getElementsByTagName ("td")	for ( i = 0 ; i < TableArray.length ; i++ ) {		var Anchor = TableArray[i].childNodes[0]		for ( x = 0 ; x < Anchor.childNodes.length ; x++ ) {			if ( Anchor.childNodes[x].nodeType == 3 ) {				var Name = Anchor.childNodes[x].nodeValue				if ( Name.charAt (0) == " " ) {					Name = Name.substr( 1 , Name.length - 1 ) }				}			}		this.Action[Name] = Anchor 		Image = Anchor.getElementsByTagName ("img")			if ( Image.length != 0 ) {				this.Image[Name] = Image[0].getAttribute ("src") }		}	 	return true }function ActionBarClick (Action) {	if ( this.Action[Action].click ) {		this.Action[Action].click ()		} else if ( this.Action[Action].onclick ) {			Retval = this.Action[Action].onclick ()			if ( IsDocInReadMode ) {				location.href = this.Action[Action].href				} else {				if ( Retval ) {      						}				}			} else {				location.href=this.Action[Action].href }		}function menuNode ( name , array ) {	this.name = name	this.array = array	this.type = "menuNode"	}function menuItem ( name , link ) {	this.name = name	this.link = link	this.type = "menuItem"	}function getItemPos ( name , array ) {	if ( array == null ) {		return ( null ) }	for ( var i = 0 ; i < array.length ; i++ ) {		if ( array[i].name == name ) {			return ( i ) }		}	return ( null )	}function createBrainJarArray( oHTML, oNodeMenu ) {	var nodeName	var sHTML = ""		var array = oNodeMenu.array	var name = oNodeMenu.name	if ( array == null ) {		return }	if ( oNodeMenu.name == "Top" ) {		sHTML += "<div id=\"myMenuBar\" class=\"menuBar\">"		} else {		sHTML += "<div id=\"" + name + "\" class=\"menu\" onmouseover=\"menuMouseover(event)\">"		}	for ( var i = 0 ; i < array.length ; i++ ) {		if ( array[i].type == "menuNode" ) {			nodeName = array[i].name			if( oNodeMenu.name == "Top" ) {				sHTML += "<a class=\"menuButton\" href=\"\" "				sHTML += "onclick=\"return buttonClick(event, '" + nodeName + "');\"  "				sHTML += "onmouseover=\"buttonMouseover(event, '" + nodeName + "');\"  >" + nodeName + "</a>"			} else {				sHTML += "<a class=\"menuItem\" href=\"javascript:return(false)\" onclick=\"return false;\" onmouseover=\"menuItemMouseover(event, '" + nodeName				sHTML += "');\"><span class=\"menuItemText\">" + nodeName + "</span><span class=\"menuItemArrow\">&gt;</span></a>"			}			createBrainJarArray( oHTML, array[i] )		} else {			sLink = array[i].link.replace( /\\/, "\\\\" )			if(oNodeMenu.name=="Top") {				sHTML +=  "<a class=\"menuButton\" href=\"javascript:ActionBar.Click('" + sLink + "')\">" + array[i].name + "</a>"			} else {				sHTML +=  "<a class=\"menuItem\" href=\"javascript:ActionBar.Click('" + sLink + "')\">" + array[i].name + "</a>"			}		}	}	sHTML +=  "</div>" 		oHTML[ oHTML.length ] = sHTML	}function parseMenu( oArray, sSeparator ) {	var oMenu = new menuNode( "Top", new Array() )	var tempArr	var arrayCurrent	var itemPos	for( var item in oArray ) {		tempArr = item.split( sSeparator )		arrayCurrent = oMenu.array		for( var i=0; i<tempArr.length-1; i++ )  {			itemPos = getItemPos( tempArr[i], arrayCurrent )			if( itemPos == null ) {				arrayCurrent[ arrayCurrent.length ] = new menuNode( tempArr[i], new Array()  )				arrayCurrent = arrayCurrent[ arrayCurrent.length - 1 ].array			} else {				arrayCurrent = arrayCurrent[ itemPos ].array			}		}		arrayCurrent[ arrayCurrent.length ] = new menuItem( tempArr[i], item )	}	return( oMenu )}