function doTerms() {
 termsWin = window.open("terms.asp?id=43","terms","WIDTH=460,HEIGHT=500,SCROLLBARS=YES,RESIZABLE")
 termsWin.focus()
}

//::browser sniff:://
var randomNo
var ie=(document.all)?true:false
var ns=(document.layers)?true:false
var ns6=(document.getElementById&&!ie)?true:false
var isMac=(navigator.platform=="MacPPC")?true:false
quotes=new Array()
quotes[0]=new quote("images/manu_quote.gif","manutd.asp?id=40")
quotes[1]=new quote("images/pando_quote.gif","pando.asp?id=35")
quotes[2]=new quote("images/moto_quote.gif","moto.asp?id=36")
function quote(qimage,qurl){
 tmpObject = new Object
 tmpObject.qimage = qimage
 tmpObject.qurl = qurl
 return tmpObject
}

if(ie){ 
	browserName=navigator.appVersion
	ieloc=browserName.indexOf("MSIE")
	var ieVer=browserName.substring(ieloc+5,browserName.indexOf(";",ieloc)) 
}
//::rollover code:://
bulletsite_off = new Image()
bulletsite_on = new Image()
bulletsite_off.src = "images/nav_bullet.gif"
bulletsite_on.src = "images/nav_bullet_on.gif"
bulletlegal_off = new Image()
bulletlegal_on = new Image()
bulletlegal_off.src = "images/nav_bullet.gif"
bulletlegal_on.src = "images/nav_bullet_on.gif"
function imageOn(imgon){
 if(document.images) document.images[imgon].src=eval(imgon+"_on.src")
}
function imageOff(imgoff){
 if(document.images) document.images[imgoff].src=eval(imgoff+"_off.src")
}

//::preload rollover images if applicable:://
if(offBGImage) {
 offBG = new Image()
 onBG = new Image()
 offBG.src = offBGImage
 onBG.src = onBGImage
} if(offSubBGImage) {
 offSubBG = new Image()
 onSubBG = new Image()
 offSubBG.src = offSubBGImage
 onSubBG.src = onSubBGImage
}
//::global variables:://
var oldOption=false
var currentmenu=false
var currentsubmenu=false
var lastOptionOn=false
var lastOptionOff=false
var timerID=0
var subtimerID=0
//::build menu list:://
var menuNo=1
var totalCount=0
var menusToMake=new Array()
while(eval("window.menu"+menuNo)){
	menuName="menu"+menuNo
	menuArray=eval(menuName)
 if(menuArray.length>0){
	 eval("var "+menuName+"left")
	 eval("var "+menuName+"top")
  addMenu(menuName)
		for(optionNo in menuArray){ 
   if (menuArray[optionNo][2]) makeSub(menuName,optionNo)
  }
 }
	menuNo++
}
function addMenu(menuName){
	totalCount++
	menusToMake[totalCount]=menuName 
}
function makeSub(parent,option){
	menuName=parent+"_"+option
	menuArray=eval(menuName)
	addMenu(menuName)
	for(optionNo in menuArray){
	 if (menuArray[optionNo][2]) makeSub(menuName,optionNo)
	}
}
//::set up browser differences:://
var optPad=(ie&&isMac&&ieVer<4.5)?"3px 3px 3px 3px":"0px 0px 0px 0px"
var optVar=(ie&&isMac&&ieVer<4.5)?8:0
var optinPad=(ns)?"0px 0px 0px 0px":"3px 3px 3px 3px" 
var optinVar=((ie&&isMac&&ieVer<5)|ns6)?8:0
//::stylesheet:://
var styleSheet='<STYLE type="text\/css">\n'
styleSheet+='.menu{position:absolute;padding:0px;visibility:hidden;top:0px;left:0px;}\n'
styleSheet+='.nonoption{position:absolute;padding:0px;left:0px;}\n'
styleSheet+='.option{position:absolute;width:'+(menuWidth-optVar)+'px;height:'+(optionHeight-optVar)+'px;padding:'+optPad+';border:0px solid black;cursor:pointer;cursor:hand;'
if(offBGImage){ if(!ns) styleSheet+='background-image:url("'+offBGImage+'");'}
else{styleSheet+='background-color:'+offBGColor+';layer-background-color:'+offBGColor+';'}
styleSheet+='overflow:hidden;}\n'
styleSheet+='.optionin{position:absolute;top:0px;left:0px;width:'+(menuWidth-optinVar)+'px;height:'+(optionHeight-optinVar)+'px;padding:'+optinPad+';border:1px '+((offBorder)?'solid ':'none ')+offBorderColor+';color:'+offFGColor+';font-family:'+fontList+';font-size:'+fontHeight+'px;font-weight:'+offFontWeight+';overflow:hidden;}\n'
styleSheet+='.optioninOn{position:absolute;top:0px;left:0px;width:'+(menuWidth-optinVar)+'px;height:'+(optionHeight-optinVar)+'px;padding:'+optinPad+';border:1px '+((onBorder)?'solid ':'none ')+onBorderColor+';color:'+onFGColor+'; font-family:'+fontList+';font-size:'+fontHeight+'px;font-weight:'+onFontWeight+';overflow:hidden;}\n'
styleSheet+='.suboption{position:absolute;width:'+(submenuWidth-optVar)+'px;height:'+(suboptionHeight-optVar)+'px;padding:'+optPad+';border:0px solid black;cursor:pointer;cursor:hand;'
if(offSubBGImage){ if(!ns) styleSheet+='background-image:url("'+offSubBGImage+'");'}
else{styleSheet+='background-color:'+offSubBGColor+';layer-background-color:'+offSubBGColor+';'}
styleSheet+='overflow:hidden;}\n'
styleSheet+='.suboptionin{position:absolute;top:0px;left:0px;width:'+(submenuWidth-optinVar)+'px;height:'+(suboptionHeight-optinVar)+'px;padding:'+optinPad+';border: 1px '+((offSubBorder)?'solid ':'none ')+offSubBorderColor+';color:'+offSubFGColor+';font-family:'+fontList+';font-size:'+subFontHeight+'px;font-weight:'+offSubFontWeight+';overflow:hidden;}\n'
styleSheet+='.suboptioninOn{position:absolute;top:0px;left:0px;width:'+(submenuWidth-optinVar)+'px;height:'+(suboptionHeight-optinVar)+'px;padding:'+optinPad+'; border: 1px '+((onSubBorder)?'solid ':'none ')+onSubBorderColor+';color:'+onSubFGColor+';font-family:'+fontList+';font-size:'+subFontHeight+'px;font-weight:'+onSubFontWeight+';overflow: hidden;}\n'
styleSheet += '.text{margin-left:'+textMarginLeft+'px;}\n'
styleSheet += '<\/STYLE>\n'
document.write(styleSheet)
document.close()
//::menu html:://
var HTMLtoWrite=""
for(menuCount in menusToMake){
	menuName=menusToMake[menuCount]
	submenu=(menuName.indexOf("_")!=-1)?true:false 
	menuArray=eval(menuName)
	HTMLtoWrite+='<DIV id="'+menuName+'" class="menu">\n'
	if(submenu&&submenuTop) HTMLtoWrite+='<DIV class="nonoption" id="top'+menuName+'">'+submenuTop+'<\/DIV>'
 else if(!submenu&&menuTop) HTMLtoWrite+='<DIV class="nonoption" id="top'+menuName+'">'+menuTop+'<\/DIV>'
	for (optionNo in menuArray){
		if(submenu){
			HTMLtoWrite+='\t<DIV id="'+menuName+'o'+optionNo+'c'+'" class="suboption" onMouseOver="on(this)" onMouseOut="off(this)" onclick="follow(this)">'
			HTMLtoWrite+='<DIV id="'+menuName+'o'+optionNo+'" class="suboptionin">'
		}else{
			HTMLtoWrite+='\t<DIV id="'+menuName+'o'+optionNo+'c'+'" class="option" onMouseOver="on(this)" onMouseOut="off(this)" onclick="follow(this)">'
			HTMLtoWrite+='<DIV id="'+menuName+'o'+optionNo+'" class="optionin">'
		}
		/*if(ns){
			if(!menuArray[optionNo][2]){
     if(submenu) HTMLtoWrite+='<IMG src="images/trans.gif" width=1 height='+(suboptionHeight-8)+' align="right" border=0>'
 				else HTMLtoWrite+='<IMG src="images/trans.gif" width=1 height='+(optionHeight-8)+' align="right" border=0>' 
   }
		}*/
  if(menuArray[optionNo][2]) HTMLtoWrite+='<IMG name="arr'+menuName+optionNo+'" src="'+moreArrowOff+'" width=9 height=16 align="right" border=0>'
		if(center) menuArray[optionNo][0]="<CENTER>"+menuArray[optionNo][0]+"<\/CENTER>"
  else menuArray[optionNo][0]='<SPAN class="text">'+menuArray[optionNo][0]+'</SPAN>'
		HTMLtoWrite+='<IMG name="track'+menuName+optionNo+'" src="'+trackingOff+'" width=7 height=14 align="right" border=0>'+menuArray[optionNo][0]
		HTMLtoWrite+='<\/DIV><\/DIV>\n'
	}
	if(submenu&&submenuBottom) HTMLtoWrite+='<DIV class="nonoption" id="bottom'+menuName+'">'+submenuBottom+'<\/DIV>'
	else if(!submenu&&menuBottom) HTMLtoWrite+='<DIV class="nonoption" id="bottom'+menuName+'">'+menuBottom+'<\/DIV>'
 HTMLtoWrite+='<\/DIV>\n'
}
//::configure menus:://
function loadPage(){
  if(quotes[randomNo]["qurl"]) location.href=quotes[randomNo]["qurl"]
}

function configure(){
 if(document.images["mainQuote"]) {
   randomNo = Math.round(Math.random()*2)
   document.images["mainQuote"].src = quotes[randomNo]["qimage"]
 }
	for(menuCount in menusToMake){
		menuName=menusToMake[menuCount]
		submenu=(menuName.indexOf("_")!=-1)?true:false 
		menuArray=eval(menuName)
		oldorientation=orientation
		if(submenu) orientation=0
		for(optionNo in menuArray){
   if(menuName&&submenu){
    if(orientation==0) optionTop=((optionNo-1)*suboptionHeight)-((optionNo-1)*1)+((optionNo-1)*optionSpacing)+((submenuTop)?9:0)
    else optionLeft=((optionNo-1)*submenuWidth)-((optionNo-1)*1)+((optionNo-1)*optionSpacing)
   }else if(menuName&&!submenu){
    if(orientation==0) optionTop=((optionNo-1)*optionHeight)-((optionNo-1)*1)+((optionNo-1)*optionSpacing)+((menuTop)?6:0)
    else optionLeft=((optionNo-1)*menuWidth)-((optionNo-1)*1)+((optionNo-1)*optionSpacing)
   }
			if(ie){
				object=document.all(menuName+"o"+optionNo+"c")
				if(orientation==0&&menuName) object.style.top=optionTop
				else object.style.left=optionLeft
			}else if(ns){
				object=document.layers[menuName].document.layers[menuName+"o"+optionNo+"c"]
				if(orientation==0&&menuName) object.top=optionTop
				else object.left=optionLeft
    if(submenu&&offSubBGImage) object.background.src=offSubBGImage
    else if(!submenu&&offBGImage) object.background.src=offBGImage
    object.captureEvents(Event.MouseOver|Event.MouseOut)
				object.onMouseOver=handlenson
				object.onMouseOut=handlensoff
			}else if(ns6){
				object=document.getElementById(menuName+"o"+optionNo+"c")
				if(orientation==0&&menuName) object.style.top=optionTop
				else object.style.left=optionLeft
			}
		}
		if(ie){ 
   if(submenu) if(submenuBottom) document.all("bottom"+menuName).style.top=optionNo*suboptionHeight+((submenuTop)?9:0)
	  else if(menuBottom) document.all("bottom"+menuName).style.top=optionNo*optionHeight+((menuTop)?6:0)
  }else if(ns){
		 if(submenu) if(submenuBottom) document.layers[menuName].document.layers["bottom"+menuName].top=optionNo*suboptionHeight+((submenuTop)?9:0)
   else if(menuBottom) document.layers[menuName].document.layers["bottom"+menuName].top = optionNo*optionHeight+((menuTop)?6:0)
			if(submenu){
				if(orientation==0) document.layers[menuName].clip.height=((optionNo*suboptionHeight)+((optionNo-1)*optionSpacing))-(optionNo-1)+25
				else document.layers[menuName].clip.width=((optionNo*submenuWidth)+((optionNo-1)*optionSpacing))-(optionNo-1)
			}else{
				if(orientation == 0) document.layers[menuName].clip.height=((optionNo*optionHeight)+((optionNo-1)*optionSpacing))-(optionNo-1)+25
				else document.layers[menuName].clip.width=((optionNo*menuWidth)+((optionNo-1)*optionSpacing))-(optionNo-1)
			}
		}else if(ns6){
   if(submenu){ 
    if(submenuBottom) document.getElementById("bottom"+menuName).style.top=optionNo*suboptionHeight+((submenuTop)?9:0)
    document.getElementById(menuName).style.height=optionNo*suboptionHeight+18
    document.getElementById(menuName).style.width=submenuWidth
	  }else{  
    if(menuBottom) document.getElementById("bottom"+menuName).style.top=optionNo*optionHeight+((menuTop)?6:0)
    document.getElementById(menuName).style.height=optionNo*optionHeight+15
    document.getElementById(menuName).style.width=menuWidth
   }
  }
		orientation=oldorientation
  if(ns&&buttons){
   number=0
   while(document.layers["button"+number+"out"]){
    that=document.layers["button"+number+"out"].document.layers["button"+number]
    that.captureEvents(Event.MOUSEOVER|Event.MOUSEOUT)
    that.onMouseOver=onNS
    that.onMouseOut=offNS
    number++
   }
  }
	}
}
//::turn on button(ns):://
function onNS(e){
 if(e.target=="[object Layer]"){
  number=e.target.id
  number=parseInt(number.replace("button",""))
  //e.target.background.src=buttonOn 
  buttonWidth=document.layers["button"+number+"out"].clip.right
  tablevariable = (document.anchors[leftanchor]) ? document.anchors[leftanchor].x : 0
  left=document.layers["button"+number+"out"].pageX 
  if((left-tablevariable)+menuWidth>pageWidth) left=pageWidth-menuWidth+leftMargin+tablevariable
  hasmenu=(document.layers["menu"+number])?true:false
  if(eval("window.menu"+number)&&hasmenu) show("menu"+number,left,menuPosTop)
 }
}
//::turn on button(ie/ns6):://
function onIE(number){
 if(ie){
  if(document.images["bullet"+number]) document.images["bullet"+number].src =  buttonOnImg
 	//document.all("button"+number).style.backgroundImage="url("+buttonOn+")"
 	buttonWidth=document.all("button"+number+"out").offsetWidth
  tablevariable=document.all.table1.offsetLeft
  left=document.all.table1.offsetLeft+document.all.table2.offsetLeft+document.all("button"+number+"out").parentElement.offsetLeft+leftimageWidth
  if((left-tablevariable)+menuWidth>pageWidth) left=(pageWidth-menuWidth)+leftMargin+tablevariable
  hasmenu=(document.all("menu"+number))?true:false
	}else if(ns6){
  if(document.images["bullet"+number]) document.images["bullet"+number].src =  buttonOnImg
  //document.getElementById("button"+number).style.backgroundImage="url("+buttonOn+")"
  buttonWidth=document.getElementById("button"+number+"out").offsetWidth
  tablevariable=document.getElementById("table1").offsetLeft
  left=document.getElementById("button"+number+"out").offsetLeft
  if((left-tablevariable)+menuWidth>pageWidth) left=(pageWidth-menuWidth)+leftMargin+tablevariable

  hasmenu=(document.getElementById("menu"+number))?true:false
 }  
 if(eval("window.menu"+number)&&hasmenu) show("menu"+number,left,menuPosTop)
}
//::turn on menu:://
function show(menu,posX,posY){
	submenu=(menu.indexOf("_")!=-1)?true:false 
	if(currentmenu&&!submenu&&menu!=currentmenu){
		if(currentsubmenu){ 
			doHideTimer(currentsubmenu)
			currentsubmenu=false
		}else doHideTimer(currentmenu)
	} 
	clearTimeout(timerID)
	if(ie){
		document.all(menu).style.left=posX
		document.all(menu).style.top=posY
		document.all(menu).style.visibility="visible"
	}else if(ns){
		document.layers[menu].left=posX
		document.layers[menu].top=posY
		document.layers[menu].visibility="visible"
	}else if (ns6){
		document.getElementById(menu).style.left=posX
		document.getElementById(menu).style.top=posY
		document.getElementById(menu).style.visibility="visible"
	}
	if(!submenu) currentmenu=menu
	else currentsubmenu=menu
 if(!submenu){
 	eval(menu+"left = "+posX)
 	eval(menu+"top = "+posY)
 }
}
//::timeout menu:://
function hide(menuName){
	clearTimeout(timerID)
	timerID=setTimeout("doHideTimer('"+menuName+"')",800)
}
//::turn off menu:://
function doHide(menuName){
	submenu=(menuName.indexOf("_")!=-1)?true:false
	if(ie) document.all(menuName).style.visibility="hidden"
	else if(ns) document.layers[menuName].visibility="hidden"
	else if(ns6)	document.getElementById(menuName).style.visibility="hidden"
	if(!submenu){
  number=parseInt(menuName.replace("menu",""))
  if(buttons) offButton(number)
		currentmenu=false
	}
}
//::turn off menu and any submenu:://
function doHideTimer(menuName){
	submenu=(menuName.indexOf("_")!=-1)?true:false
	if(submenu){
		branch=menuName.split("_")
		for(level=branch.length-1;level>0;level--){
			menu=branch[0]
			for(count=1;count<level;count++)	menu+=("_"+branch[count])
			menu+=("o"+branch[level]+"c")
			doOff(menu)
		}doHide(branch[0])
	}else doHide(menuName)
	currentmenu=false
	currentsubmenu=false
}
//::collapse all submenus:://
function doCollapse(menuName,endmenuName){
	submenu=(menuName.indexOf("_")!=-1)?true:false
	if(submenu) {
		menuName=menuName.replace(endmenuName,"")
		startBranch=menuName.split("_")
		endBranch=endmenuName.split("_")
		for(level=startBranch.length-1;level>0;level--){
			menu=endmenuName
			for(count=1;count<level;count++)	menu+=("_"+startBranch[count])
			menu+=("o"+startBranch[level]+"c")
			doOff(menu)
		}
	}
}
//::turn off button(ns):://
function offNS(e){
 if(e.target=="[object Layer]") {
  number=e.target.id
  number=parseInt(number.replace("button",""))
  hasmenu=(document.layers["menu"+number])?true:false
  if(eval("window.menu"+number)&&hasmenu) hide("menu"+number)
  else offButton(number)
 }
}
//::turn off button(ie/ns6):://
function offIE(number){
 if(ie) hasmenu=(document.all("menu"+number))? true:false
 else hasmenu=(document.getElementById("menu"+number))?true:false
 if(eval("window.menu"+number)&&hasmenu) hide("menu"+number)
 else offButton(number)
}
//::change button to off:://
function offButton(number){
 if(document.images["bullet"+number]) document.images["bullet"+number].src =  buttonOffImg
 /*if(ie) document.all("button"+number).style.backgroundImage="url("+buttonOff+")"
 else if(ns)	document.layers["button"+number+"out"].document.layers["button"+number].background.src=buttonOff
 else if(ns6) document.getElementById("button"+number).style.backgroundImage="url("+buttonOff+")"*/
}
//::null function(ns):://
function no(e){return false}

//::handle menu rollover(ns):://
function handlenson(e){
	if(lastOptionOn!=""){
		if(lastOptionOn.length>=e.target.id.length){
			doOff(lastOptionOn)
			lastOptionOn==false;
			e.target.onMouseOut=no
		}
	}
	e.target.onMouseOver=no
	thisID=e.target.id		
	on(thisID)		
}
//::do menu rollover:://
function on(onthat){
	clearTimeout(timerID)
	clearTimeout(subtimerID)
	if(ie|ns6) onthat=onthat.id
	onmenuName=onthat.substring(0,(onthat.indexOf("o")))
	onoptNo=onthat.substring((onthat.indexOf("o")+1),(onthat.length-1))
 onsubmenu=(onmenuName.indexOf("_")!=-1)?true:false 
	if(oldOption&&oldOption!=onthat){
 	oldMenuname=oldOption.substring(0,(oldOption.indexOf("o")))
		oldoptNo=oldOption.substring((oldOption.indexOf("o")+1),(oldOption.length-1))
		oldParentOption=(oldMenuname.substring((oldMenuname.length-1),(oldMenuname.length)))
		if(onmenuName==oldMenuname) doOff(oldOption) //:same menu different option:://
		else{
			if(onmenuName.length<oldMenuname.length){ //::move up levels:://
				if(onmenuName+"_"+onoptNo==oldMenuname){ //::parent:://
					if(oldParentOption!=onoptNo) doCollapse(oldMenuname+"_"+oldoptNo,onmenuName)
					else doOff(oldOption)
				}else{ //::uncle:://
     if(oldMenuname.indexOf(onmenuName)==-1) doHideTimer(oldMenuname+"_"+oldoptNo) 
     else doCollapse(oldMenuname+"_"+oldoptNo,onmenuName)
    }
			}
			clearTimeout(timerID)
		}
	}
 currentmenu=onmenuName
	oninnerName=onthat.substring(0,(onthat.length-1))
	onmenuArray=eval(onmenuName+"["+onoptNo+"]")
	if(ie){
  if(onsubmenu){
   if(onSubBGImage) document.all(oninnerName).style.backgroundImage='url("'+onSubBGImage+'")'
   else document.all(onthat).style.backgroundColor=onSubBGColor
   document.all(oninnerName).style.color=onSubFGColor
   document.all(oninnerName).style.fontWeight=onSubFontWeight
   document.all(oninnerName).style.border=('1px '+((onSubBorder)?'solid ':'none ')+onSubBorderColor)
  }else{
   if(onBGImage) document.all(oninnerName).style.backgroundImage='url("'+onBGImage+'")'
   else document.all(onthat).style.backgroundColor=onBGColor
   document.all(oninnerName).style.color=onFGColor
   document.all(oninnerName).style.fontWeight=onFontWeight
   document.all(oninnerName).style.border=('1px '+((onBorder)?'solid ':'none ')+onBorderColor)
  }
  //if(onmenuArray[2]) document.images["arr"+onmenuName+onoptNo].src=moreArrowOn
  if(trackingOn) document.images["track"+onmenuName+onoptNo].src=trackingOn
	}else if(ns){
		lastOptionOn=onthat
		document.layers[onmenuName].document.layers[onthat].onMouseOut=handlensoff
		if(onmenuName.indexOf("_")==-1){
			newHTML='<DIV id="'+onmenuName+'o'+onoptNo+'" class="optioninOn">'
			//if (onmenuArray[2]) newHTML+='<IMG src="'+moreArrowOn+'" width=9 height=16 align="right" border=0>'
   newHTML+='<IMG name="track'+menuName+optionNo+'" src="'+trackingOn+'" width=7 height=14 align="right" border=0>'
		}else{
			newHTML='<DIV id="'+onmenuName+'o'+onoptNo+'" class="suboptioninOn">'
			//if (onmenuArray[2]) newHTML+='<IMG src="'+moreArrowOn+'" width=9 height=16 align="right" border=0>'
   newHTML+='<IMG name="track'+menuName+optionNo+'" src="'+trackingOn+'" width=7 height=14 align="right" border=0>'
   //else newHTML+='<IMG src="images/trans.gif" width=1 height='+(suboptionHeight-8)+' align="right" border=0>'
		}
		newHTML+=onmenuArray[0]
		newHTML+='<\/DIV>'
  if(onsubmenu){
   if(onSubBGImage) document.layers[onmenuName].document.layers[onthat].background.src=onSubBGImage
   else document.layers[onmenuName].document.layers[onthat].document.bgColor=onSubBGColor
  }else{
   if(onBGImage) document.layers[onmenuName].document.layers[onthat].background.src=onBGImage
   else document.layers[onmenuName].document.layers[onthat].document.bgColor=onBGColor
  }
		document.layers[onmenuName].document.layers[onthat].document.write(newHTML)
		document.layers[onmenuName].document.layers[onthat].document.close()
		document.layers[onmenuName].document.layers[onthat].document.layers[0].captureEvents(Event.focus)
		document.layers[onmenuName].document.layers[onthat].document.layers[0].onFocus = follow
		clearTimeout(timerID)
	}else if(ns6){
  if(onsubmenu){
   if(onSubBGImage) document.getElementById(oninnerName).style.backgroundImage='url("'+onSubBGImage+'")'
   else document.getElementById(onthat).style.backgroundColor=onSubBGColor
   document.getElementById(oninnerName).style.color=onSubFGColor
   document.getElementById(oninnerName).style.fontWeight=onSubFontWeight
   document.getElementById(oninnerName).style.border=('1px '+((onSubBorder)?'solid ':'none ')+onSubBorderColor)
  }else{
   if(onBGImage) document.getElementById(oninnerName).style.backgroundImage='url("'+onBGImage+'")'
   else document.getElementById(onthat).style.backgroundColor=onBGColor
   document.getElementById(oninnerName).style.color=onFGColor
   document.getElementById(oninnerName).style.fontWeight=onFontWeight
   document.getElementById(oninnerName).style.border=('1px '+((onBorder)?'solid ':'none ')+onBorderColor)
  }
  //if(onmenuArray[2]) document.images["arr"+onmenuName+onoptNo].src=moreArrowOn
  if(trackingOn) document.images["track"+onmenuName+onoptNo].src=trackingOn
	}
	clearTimeout(timerID)
	if(onmenuArray[2]){
		submenu=(onmenuName.indexOf("_")!=-1)?true:false
		if(submenu) show(onmenuName+"_"+onoptNo,((eval(onmenuName+"left")+submenuWidth-1)-menuOverlap),((eval(onmenuName+"top"))+((onoptNo-1)*suboptionHeight)+((onoptNo-1)*optionSpacing)-(onoptNo-1)))
		else if (!submenu && orientation==1) show(onmenuName+"_"+onoptNo,((eval(onmenuName+"left")+((onoptNo-1)*menuWidth)+((onoptNo-1)*optionSpacing))-(onoptNo-1)),((eval(onmenuName+"top")+optionHeight)-menuOverlap))
		else show(onmenuName+"_"+onoptNo,((eval(onmenuName+"left")+menuWidth-1)-menuOverlap),((eval(onmenuName+"top"))+((onoptNo-1)*optionHeight)+((onoptNo-1)*optionSpacing)-(onoptNo-1))+6)
	}
}
//::handle menu rollout(ns):://
function handlensoff(event){
	thisID=event.target.id
	event.target.onMouseOver=handlenson		
	off(thisID)
}
//::handle menu rollout(ie/ns6):://
function off(that) {
	if(ie|ns6)that=that.id
	oldOption=that
	subtimerID=setTimeout("doOff('"+that+"')",200)
}
//::do menu rollout:://
function doOff(that){
	oldOption=that
	menuName=that.substring(0,(that.indexOf("o")))
	menuNo=parseInt(menuName.substring((menuName.length-1),(menuName.length)))
	optNo=that.substring((that.indexOf("o")+1),(that.length-1))
	innerName=that.substring(0,(that.length-1))
	menuArrayOff=eval(menuName+"["+optNo+"]")		
 submenu=(that.indexOf("_")!=-1)?true:false 
	if(ie){
  if(submenu){
   if(offSubBGImage) document.all(innerName).style.backgroundImage='url("'+offSubBGImage+'")'
   else document.all(that).style.backgroundColor=offSubBGColor
   document.all(innerName).style.color=offSubFGColor
   document.all(innerName).style.fontWeight=offSubFontWeight
   document.all(innerName).style.border=('1px '+((offSubBorder)?'solid ':'none ')+offSubBorderColor)
  }else{
   if(offBGImage) document.all(innerName).style.backgroundImage='url("'+offBGImage+'")'
   else document.all(that).style.backgroundColor=offBGColor
   document.all(innerName).style.color=offFGColor
   document.all(innerName).style.fontWeight=offFontWeight
   document.all(innerName).style.border=('1px '+((offBorder)?'solid ':'none ')+offBorderColor)
  }
  if(trackingOn) document.images["track"+menuName+optNo].src=trackingOff
  
	}else if(ns){
		lastOptionOn=that
		if(menuName.indexOf("_")!=-1){
			newHTML='<DIV id="'+menuName+'_'+optNo+'" class="suboptionin">'
			//if (!menuArrayOff[2]) newHTML+='<IMG src="images/trans.gif" width=1 height='+(suboptionHeight-8)+' align="right" border=0>'
   //else newHTML+='<IMG src="'+moreArrowOff+'" width=9 height=16 align="right" border=0>'
   newHTML+='<IMG name="track'+menuName+optionNo+'" src="'+trackingOff+'" width=7 height=14 align="right" border=0>'

		}else{
			newHTML='<DIV id="'+menuName+'_'+optNo+'" class="optionin">'
			//if (!menuArrayOff[2]) newHTML+='<IMG src="images/trans.gif" width=1 height='+(optionHeight-8)+' align="right" border=0>'
   //else newHTML+='<IMG src="'+moreArrowOff+'" width=9 height=16 align="right" border=0>'
   newHTML+='<IMG name="track'+menuName+optionNo+'" src="'+trackingOff+'" width=7 height=14 align="right" border=0>'
		}
		newHTML+=menuArrayOff[0]
		newHTML+='<\/DIV>'
  if(submenu){
   if(offSubBGImage) document.layers[menuName].document.layers[that].background.src=offSubBGImage
   else document.layers[menuName].document.layers[that].document.bgColor=offSubBGColor
  }else{
   if(offBGImage) document.layers[menuName].document.layers[that].background.src=offBGImage
   else document.layers[menuName].document.layers[that].document.bgColor=offBGColor
  }
		document.layers[menuName].document.layers[that].document.write(newHTML)
		document.layers[menuName].document.layers[that].document.close()
		document.layers[menuName].document.layers[that].onMouseOver=handlenson
		lastOptionOn=false
	}else if(ns6){
  if(submenu){
   if(offSubBGImage) document.getElementById(innerName).style.backgroundImage='url("'+offSubBGImage+'")'
   else document.getElementById(that).style.backgroundColor=offSubBGColor
   document.getElementById(innerName).style.color=offSubFGColor
   document.getElementById(innerName).style.fontWeight=offSubFontWeight
   document.getElementById(innerName).style.border=('1px '+((offSubBorder)?'solid ':'none ')+offSubBorderColor)
  } else {
   if(offBGImage) document.getElementById(innerName).style.backgroundImage='url("'+offBGImage+'")'
   else document.getElementById(that).style.backgroundColor=offBGColor
   document.getElementById(innerName).style.color=offFGColor
   document.getElementById(innerName).style.fontWeight=offFontWeight
   document.getElementById(innerName).style.border=('1px '+((offBorder)?'solid ':'none ')+offBorderColor)
  }
  //if (menuArrayOff[2]) document.images["arr"+menuName+optNo].src=moreArrowOff
  if(trackingOn) document.images["track"+menuName+optNo].src=trackingOff
	}
	if(menuArrayOff[2]) doHide(menuName+"_"+optNo)
	hide(menuName)
}
//::handle mouse click:://
function follow(that) {
	if(ns) that=that.target
	thisID=that.id
	if(ns) thisID+="c"			
	menuName=thisID.substring(0,(thisID.indexOf("o")))
	menuNo=parseInt(menuName.substring((menuName.length-1),(menuName.length)))
	optNo=thisID.substring((thisID.indexOf("o")+1),(thisID.length-1))
	innerName=thisID.substring(0,(thisID.length-1))
	if(eval(menuName)[optNo][1]) window.location=eval(menuName)[optNo][1]
}