  function setcursor() {
    document.body.style.cursor='pointer';
    }
  function resetcursor() {
    document.body.style.cursor='default';
    }



//Contents for Products menu 
var menu1=new Array()
menu1[0]='<a href="../V2AboutViscon.html?p=About Viscon">About Viscon</a>'
menu1[1]='<a href="../V2Technology.html?p=Technology">Technology</a>'
menu1[2]='<a href="../V2Dosage.html?p=Blending">Blending</a>'
menu1[3]='<a href="../V2Implementation.html?p=Implementation">Implementation</a>'
menu1[4]='<a href="../V2Motivation.html?p=Development Motivation">Motivation</a>'
menu1[5]='<a href="../V2Emissions.html?p=Exhaust Emissions">Emissions</a>'
menu1[6]='<a href="../V2OEMWarranty.html?p=OEM Warranty">OEM Warranty</a>'

//Contents for Test Results menu
var menu2=new Array()
menu2[0]='<a href="../V2LabTests.html?p=Lab Results">Lab Results</a>'
menu2[1]='<a href="../V2FieldTests.html?p=Field Tests">Field Tests</a>'

//Contents for Corporate
var menu3=new Array()
menu3[0]='<a href="../V2Mission.html?p=Mission Statement">Mission</a>'
menu3[1]='<a href="../V2ExecutiveSummary.html?p=Executive Summary">Exec. Summary</a>'
menu3[2]='<a href="#" onclick=window.open("../images/CCDETCertifiedStaff.doc")>CCDET Staff</a>'
//menu3[2]='<a href="../V2Management.html?p=Management">Management</a>'
//menu3[3]='<a>News</a>'
//menu3[4]='<a>Partners</a>'

//Contents for Ordering
var menu4=new Array()
menu4[0]='<a href="../V2Ordering.html?p=Ordering Information">Commercial</a>'
menu4[1]='<a href="#" onclick=window.open("../images/GSA.doc")>Government: &nbsp;U.S. General &nbsp;Services &nbsp;Administration</a>'

//Contents for Forms
var menu5=new Array()

menu5[0]='<a href="#" onclick=window.open("../images/MSDS-DieselAdditive.pdf")>MSDS</a>'
menu5[1]='<a href="#" onclick=window.open("../images/FuelSupplyDS.doc")>Fuel Supply</a>'
menu5[2]='<a onMouseOver="setcursor();" onMouseOut="resetcursor();" onclick=window.open("images/PurchaseAgreement.doc")>Purchasing</a>'
menu5[3]='<a href="#" onclick=window.open("../images/FuelEconomy.xls")>Fuel Economy</a>'


//Contents for Virtual Tour
var menu6=new Array()
menu6[0]='<a href="../images/01_Background.wmv">Background</a>'
menu6[1]='<a href="../images/02_Emissions.wmv">Emissions</a>'
menu6[2]='<a href="../images/03_Results.wmv">Results</a>'
menu6[3]='<a href="../images/04_Production.wmv">Production</a>'
menu6[4]='<a href="../images/05_Technology.wmv">Technology</a>'
menu6[5]='<a href="../images/06_Testing.wmv">Testing</a>'
menu6[6]='<a href="../images/07_Economics.wmv">Economics</a>'
menu6[7]='<a href="../images/08_Implementaion.wmv">Implementation</a>'
menu6[8]='<a href="../images/09_Applications.wmv">Applications</a>'
menu6[9]='<a href="../images/Entire_Program_256K.wmv">-- View All --</a>'

		
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=1 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

//                                                                 ***** Added background-color for NS
if (ns6)
  document.write('<div id="dropmenudiv" style="visibility:hidden;width: 108px; background-color:#EEE;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')
else

  document.write('<div id="dropmenudiv" style="visibility:hidden;width: 108px; background-color:#EEE;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

// *** IE8 IE 8 PROBLEM  document.write('<div id="dropmenudiv" style="visibility:hidden;width: 108px;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')


function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top=-500
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth


if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")
obj.visibility=visible
else if (e.type=="click")
obj.visibility=hidden
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either? (position at top of viewable window then)
edgeoffset=dropmenuobj.y
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)



if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top") + 2
if (ns6)
  dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset-55+"px" // *** added -25 for NS
else
  dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset-55+"px"
// *** IE8 IE 8 PROBLEM  dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+2+"px"

dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}