//Contents for Past events
var menu1=new Array()
menu1[0]='<a style="color:#ffffff" href="SASW2003.htm"> » SASW 2003</a>'
menu1[1]='<a style="color:#ffffff" href="CD_2003.htm"> » CD 2003</a>'
menu1[2]='<a style="color:#ffffff" href="DTA_2004.htm"> » DTA 2004</a>'
menu1[3]='<a style="color:#ffffff" href="MSA_2004.htm"> » MSA 2004</a>'
menu1[4]='<a style="color:#ffffff" href="DTA_2005.htm"> » DTA 2005</a>'
menu1[5]='<a style="color:#ffffff" href="HMSA_2005.htm"> » HMSA 2005</a>'
menu1[6]='<a style="color:#ffffff" href="DTA_2006.htm"> » DTA 2006</a>'
menu1[7]='<a style="color:#ffffff" href="HMSA2007_Summary.htm"> » HMSA 2007</a>'
menu1[8]='<a style="color:#ffffff" href="DTA2007_Summary.htm"> » DTA 2007</a>'

//Contents for coming events
var menu2=new Array()
 //menu2[0]='<a style="color:#ffffff" href="Naval_Sensors_2006.htm"> » Naval Sensors 2006</a>'
 //menu2[1]='<a style="color:#ffffff" href="ADTA_2006.htm"> » ADTA 2006</a>'
//menu2[2]='<a style="color:#ffffff" href="Satelite_Technology_2006.htm"> » Satelite Technology 2006</a>'
menu2[0]='<a style="color:#ffffff" href="HMSA_2007.htm"> » HMSA 2007</a>'
menu2[1]='<a style="color:#ffffff" href="DTA_2007.htm " > » DTA 2007</a>'
//menu2[2]='<a style="color:#ffffff" href="MCM_Sensors_2007.htm"> » MCM Sensors 2007</a>'

//Contents for menu 3
var menu3=new Array()
menu3[0]='<a style="color:#ffffff" href=" "> » Floor Plan</a>'
menu3[1]='<a style="color:#ffffff" href=" "> » Exhibitor List</a>'
menu3[2]='<a style="color:#ffffff" href=" "> » Exhibitor Stand <BR>&nbsp;&nbsp;&nbsp; Bookings & Rates</a>'


//Contents for TPC 
var menu4=new Array()
menu4[0]='<a style="color:#ffffff" href="TPC.htm"> » DTA Conferences Series</a>'
//menu4[1]='<a style="color:#ffffff" href="TPC_HMSA_2007.htm"> » HMSA 2006</a>'



//Contents for menu_vip 5
var menu5=new Array()
menu5[0]='<a style="color:#ffffff" href="Sponsorship_HMSA_2007.htm"> » HMSA 2007 </a>'
//menu5[1]='<a style="color:#ffffff" href="Sponsorship_MCM_Sen_2007.htm"> » MCM Sensors 2007 </a>'
menu5[2]='<a style="color:#ffffff" href="Sponsorship_DTA 2007.htm"> » DTA 2007</a>'


//Contents for menu_venu 6
var menu6=new Array()
menu6[0]='<a style="color:#ffffff" href="VIP_DTA2007.htm"> » DTA 2007</a>'
menu6[1]='<a style="color:#ffffff" href="VIP_DTA2006.htm"> » DTA 2006</a>'
menu6[2]='<a style="color:#ffffff" href="VIP_DTA2005.htm "> » DTA 2005</a>'
menu6[3]='<a style="color:#ffffff" href="VIP_HMSA2005.htm "> » HMSA 2005</a>'
menu6[4]='<a style="color:#ffffff" href="VIP_MSA2004.htm "> » MSA 2004</a>'
menu6[5]='<a style="color:#ffffff" href="VIP_DTA2004.htm "> » DTA 2004</a>'
menu6[6]='<a style="color:#ffffff" href="VIP_SASW2003.htm "> » SASW 2003</a>'


//Contents for EXHIBITion
var menu7=new Array()
menu7[0]='<a style="color:#ffffff" href="Exhibition_Why_Exhibit.htm"> » Why Exhibit</a>'
menu7[1]='<a style="color:#ffffff" > » Exhibit Profile</a>'
menu7[2]='<a style="color:#ffffff" > » Exhibitors List</a>'
menu7[3]='<a style="color:#ffffff" href="Exhibition_Fplan.htm"> » Floor Plan</a>'
menu7[4]='<a style="color:#ffffff" href="DTA_SPACE_RESERVATION_FORM_RATES.htm"> » Space Reservation <BR>&nbsp;&nbsp;&nbsp;   Form & Rates</a>'
menu7[5]='<a style="color:#ffffff" href="Exhibition_Venue.htm"> » Exhibition Venue</a>'

//Contents for menu 8
//var menu8=new Array()
//menu8[0]='<a style="color:#ffffff" href="05_stats.php"> » Event Statistics</a>'
//menu8[1]='<a style="color:#ffffff" href="05_list.php"k> » Exhibitors List</a>'
//menu8[2]='<a style="color:#ffffff" href="05_testis.php"> » Testimonials & Interviews</a>'
//menu8[3]='<a style="color:#ffffff" href="05_speeches.php"> » Opening Ceremony <BR>&nbsp;&nbsp;&nbsp; Speeches</a>'
//menu8[4]='<a style="color:#ffffff" href="05_warships.php"> » Visiting Warships</a>'
//menu8[5]='<a style="color:#ffffff" href="05_photo.php"> » Photo Gallery</a>'
				
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //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

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width: 160px" 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")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"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)
}
