var HomeNavImage = new Image(141,273); HomeNavImage.src = "/images/nav/Home.gif";

var NewsNavImage = new Image(141,273); NewsNavImage.src = "/images/nav/News.gif";

var ContactNavImage = new Image(141,273); ContactNavImage.src = "/images/nav/Contact.gif";

var AboutUsNavImage = new Image(141,273); AboutUsNavImage.src = "/images/nav/AboutUs.gif";

var StudioNavImage = new Image(141,273); StudioNavImage.src = "/images/nav/Studio.gif";

var LinksNavImage = new Image(141,273); LinksNavImage.src = "/images/nav/Links.gif";



function showNav(strSection)

{

 pic = "navImage.src=" + strSection + "NavImage.src";

 eval(docimg + pic);

}



function resetNav()

{

 showNav(strThisSection);

}



doit = setTimeout("",100);             // Needs to be set here to counteract a Timeout bug in NS6 on the Mac



function doChange()

{

 if (busy != 1) {resetNav();}

}



onTimeout = "doChange()";              // the variable evaluated by the timeout, calling the onchange function



function waitToHide()

{

 busy = 0;                             // set busy = 0 denotes that the menu is not being used and can be hidden (used in doChange())

 doit = setTimeout(onTimeout,100);     // doit is a variable that holds the Timeout which will evaluate the variable 'onTimeout'

}



function itsBusy()

{

 busy = 1;                             // set busy = 1 denotes that the menu is being used and shouldn't be hidden (used in doChange())

 clearTimeout(doit);                   // stop any timeout that may be running preventing the layer from hiding

 doit = null;                          // remove the Timeout from the variable to free it up to start again - stops older browsers getting confused

}



