var submenu=new Array()

//Set submenu contents. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.

//DEFAULT
submenu[5]='<BR><CENTER><B>Welcome to: Helibott.com</b></CENTER>'

//Home
submenu[0]='Return to the Helibott.com homepage.'

//About
submenu[1]='Browse our selection of aircraft available for hire'

//Portfolio
submenu[2]='Please Select a Gallery:<li><a href="/stadiums.html" title="Click to view the Stadiums & Racetracks Gallery">Stadiums & Racetracks</a></li><li><a href="/lakedistrict.html" title="Click to view the Lake District Gallery">Lake District UK</a></li><li><a href="/galleries.html" title="Click to view our whole selection of galleries.">View all galleries</a></li>'

//Services
submenu[3]='<BR><CENTER><B>UNDER CONSTRUCTION</B></CENTER>'

//Contact Us
submenu[4]='For all photography and filming pricing and contact details.'

//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=2000

var menuobj=document.getElementById? document.getElementById("tabcontent") : document.all? document.all.describe : document.layers? document.dep1 : ""

//var tabid2=document.getElementById("bottombar")

function showit(which, tabcolor){
clear_delayhide()
menuobj.style.backgroundColor=tabcolor;
//tabid2.style.backgroundColor=tabcolor;
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}

function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(5, '#e8ecf5')",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(5, '#e8ecf5')",delay_hide)
}

function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}