

//Contents for menu 1
var menu1=new Array()
menu1[0]='<a href="../index.html">Background</a>'
menu1[1]='<a href="../newsletters.html">Newsletters</a>'
menu1[2]='<a href="../annual_reports.html">Annual Reports</a>'
menu1[3]='<a href="../about.html">About NCIT</a>'
menu1[4]='<a href="../management.html">NCIT Management Structure</a>'


//Contents for menu 2, and so on
var menu2=new Array()
menu2[0]='<a href="../directory/directory_01.html">Key NCIT Personnel</a>'
menu2[1]='<a href="../directory/directory_03.html">NCIT Staff</a>'
menu2[2]='<a href="../directory/directory_02.html">NCIT Scientific Advisory Committee</a>'

//Contents for menu 3, and so on
var menu3=new Array()
menu3[0]='<a href="../publications/publications_01.html">NCIT Reports</a>'
menu3[1]='<a href="../publications/publications_02.html">Book Chapters</a>'
menu3[2]='<a href="../publications/publications_03.html">Journal Articles</a>'
menu3[3]='<a href="../publications/publications_05.html">Technical Reports</a>'
menu3[4]='<a href="../publications/publications_04.html">Academic and Professional Presentations</a>'

//Contents for menu 3, and so on
//var menu3=new Array()
//menu3[0]='<a href="../publications/publications_01.html">Annual Reports</a>'
//menu3[1]='<a href="../publications/publications_02.html">Transportation Related Reports</a>'
//menu3[2]='<a href="../publications/publications_03.html">Transportation Abstracts</a>'
//menu3[3]='<a href="../publications/publications_04.html">Newsletters</a>'

//Contents for menu 4, and so on
var menu4=new Array()
menu4[0]='<a href="../SPRA/SPRA_01.html">Strategic Plan Research Areas</a>'
menu4[1]='<a href="../SPRA/SPRA_02.html">NCIT Funded Research Proposals</a>'
menu4[2]='<a href="../SPRA/SPRA_03.html">Externally Funded Research Proposals</a>'
menu4[3]='<a href="../SPRA/SPRA_04.html">Request for Proposals</a>'
//menu4[3]='<a href="../SPRA/SPRA_04.html">Intermodal Transportation System Performance Modeling and Assessment</a>'
//menu4[4]='<a href="../SPRA/SPRA_05.html">Intermodal Transportation System Planning and Design</a>'
//menu4[5]='<a href="../SPRA/SPRA_06.html">Intermodal Terminal Operation</a>'
//menu4[6]='<a href="../SPRA/SPRA_07.html">Intermodal Safety and Security</a>'
//menu4[7]='<a href="../SPRA/SPRA_08.html">Impact of Intermodal Transportation on Distribution System Design</a>'
//menu4[8]='<a href="../SPRA/SPRA_09.html">Intermodal Transportation Systems Role in Crisis Conditions</a>'
//menu4[9]='<a href="../SPRA/SPRA_10.html">Funded Research Proposals</a>'

//Contents for menu 5, and so on
var menu5=new Array()
menu5[0]='<a href="../events/events_03.html">Alertness Strategies in the Rail Industry</a>'
menu5[1]='<a href="../events/events_01.html">Intermodal Transportation Safety and Security</a>'
menu5[2]='<a href="../events/events_02.html">International Rail Safety Conference</a>'
menu5[3]='<a href="../events/events_04.html">Transportation Mobility, Safety, and Security</a>'
menu5[4]='<a href="../events/events_05.html">Infrastructure Planning and Funding in the Wake of Regulatory Crisis</a>'
menu5[6]='<a href="../events/events_06.html">Intermodal Freight Transportation and the Public Planning Process</a>'
menu5[7]='<a href="../events/events_07.html">APEC Global Supply Chain & Logistics Conference</a>'
menu5[8]='<a href="../events/events_08.html">Vietnam Intermodal Transportation Seminar</a>'
menu5[9]='<a href="../events/events_09.html">2009 Workforce Development Conference</a>'

//Contents for menu 6, and so on
var menu6=new Array()
menu6[0]='<a href="../information/information_01.html">Useful Links</a>'


//Contents for menu 7, and so on
var menu7=new Array()
menu7[0]='<a href="../search1.html">Search This Site 1</a>'
menu7[1]='<a href="../search2.html">Search This Site 2</a>'


//Contents for menu 8, and so on
var menu8=new Array()
menu8[0]='<a href="../activities/activities_01.html">Research Selection</a>'
menu8[1]='<a href="../activities/activities_02.html">Research Performance</a>'
menu8[2]='<a href="../activities/activities_03.html">Education</a>'
menu8[3]='<a href="../activities/activities_04.html">Human Resources</a>'
menu8[4]='<a href="../activities/activities_05.html">Technology Transfer</a>'
		
var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" 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="-500px"
if (menuwidth!=""){
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 < 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 up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
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")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"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)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

