


var menuItem = new Array();
menuItem["home"] = {section:"home",id:"tab_home",link:"#"};
menuItem["eventinfo"] = {section:"eventinfo",id:"tab_eventinfo",link:"#"};
menuItem["exhibitors"] = {section:"exhibitors",id:"tab_exhibitors",link:"#"};
menuItem["boatsforsale"] = {section:"boatsforsale",id:"tab_boatsforsale",link:"#"};
menuItem["contact"] = {section:"contact",id:"tab_contact",link:"#"};



if(document.all && !document.getElementById) {
     document.getElementById = function(id) {
          return document.all[id];
    }
 }



function unlight() {

document.images.tab_home.src="http://vaboatshow.com/images/tabs/tab_home.gif";
document.images.tab_eventinfo.src="http://vaboatshow.com/images/tabs/tab_eventinfo.gif";
document.images.tab_exhibitors.src="http://vaboatshow.com/images/tabs/tab_exhibitors.gif";
document.images.tab_boatsforsale.src="http://vaboatshow.com/images/tabs/tab_boatsforsale.gif";
document.images.tab_contact.src="http://vaboatshow.com/images/tabs/tab_contact.gif";

var ding = document.getElementById('submenu');
ding.innerHTML = '';

}

function dingo(whichimage) {
unlight();

thing = "submenuthing_" + whichimage;
otherthing = "tab_" + whichimage;
litup = "http://www.vaboatshow.com/images/tabs/tab_" + whichimage + "_over.gif";
document.images[otherthing].src=litup;
var ding = document.getElementById('submenu');
ding.innerHTML = eval(thing);
}



var preloadFlag = false;
function preloadImages()
{
if (document.images)
{
preloadImgArray = new Array();
for( var i in menuItem ) {
preloadImgArray[menuItem[i].id] = new Image();
preloadImgArray[menuItem[i].id].src = "http://www.vaboatshow.com/images/tabs/" + menuItem[i].id + "_over.gif";
}
hcj = new Array();
hcj['cars'] = new Image();
hcj['cars'].src = "http://vaboatshow.com/images/tabscars_on.gif";
hcj['homes'] = new Image();
hcj['homes'].src = "http://vaboatshow.com/images/tabshomes_on.gif";
hcj['jobs'] = new Image();
hcj['jobs'].src = "http://vaboatshow.com/images/tabsjobs_on.gif";

preloadFlag = true;
}
}

