var loaded = 0;
function PreLoad()
{
	
if (document.images != null)
	{
	
clickme1 = new Image();
clickme1.src =  "http://www.bamboobabygear.com/dropdown/images/menu/home.gif";
clickme1o = new Image();
clickme1o.src =  "http://www.bamboobabygear.com/dropdown/images/menu/home-o.gif";

clickme2 = new Image();
clickme2.src =  "http://www.bamboobabygear.com/dropdown/images/menu/about.gif";
clickme2o = new Image();
clickme2o.src =  "http://www.bamboobabygear.com/dropdown/images/menu/about-o.gif";

clickme3 = new Image();
clickme3.src =  "http://www.bamboobabygear.com/dropdown/images/menu/products.gif";
clickme3o = new Image();
clickme3o.src =  "http://www.bamboobabygear.com/dropdown/images/menu/products-o.gif";

clickme4 = new Image();
clickme4.src =  "http://www.bamboobabygear.com/dropdown/images/menu/buzz.gif";
clickme4o = new Image();
clickme4o.src =  "http://www.bamboobabygear.com/dropdown/images/menu/buzz-o.gif";

clickme5 = new Image();
clickme5.src =  "http://www.bamboobabygear.com/dropdown/images/menu/contact.gif";
clickme5o = new Image();
clickme5o.src =  "http://www.bamboobabygear.com/dropdown/images/menu/contact-o.gif";

clickme6 = new Image();
clickme6.src =  "http://www.bamboobabygear.com/dropdown/images/menu/retailers.gif";
clickme6o = new Image();
clickme6o.src =  "http://www.bamboobabygear.com/dropdown/images/menu/retailers-o.gif";



//Sub Menus - 1
submenu1 = new Image();
submenu1.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/about-us.gif";
submenu1o = new Image();
submenu1o.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/about-us-o.gif";
submenu2 = new Image();
submenu2.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/policies.gif";
submenu2o = new Image();
submenu2o.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/policies-o.gif";

//Sub Menus - 2
submenu3 = new Image();
submenu3.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/baby-gear.gif";
submenu3o = new Image();
submenu3o.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/baby-gear-o.gif";
submenu4 = new Image();
submenu4.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/instructions.gif";
submenu4o = new Image();
submenu4o.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/instructions-o.gif";
submenu5 = new Image();
submenu5.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/stores.gif";
submenu5o = new Image();
submenu5o.src =  "http://www.bamboobabygear.com/dropdown/images/submenu/stores-o.gif";


}
	loaded = 1;
}
function hiLite(imgDocID,imgObjName) {
if (document.images !=null)
{
if (loaded)
document.images[imgDocID].src = eval(imgObjName + ".src")
}
}


//Global variables
var timerID = null;
var timerOn = false;
var timecount = 50;
var what = null;
var newbrowser = true;
var check = false;

function init() {				//  alert ("Running Init");

if (document.layers) {				//  alert ("Running Netscape 4");

 layerRef="document.layers";
 styleSwitch="";
 visibleVar="show";
 agent ="ns4";

} else if (document.all) {			//  alert ("Running IE");

 layerRef="document.all";
 styleSwitch=".style";
 visibleVar="visible";
 agent ="ie";

} else if (document.getElementById) {		//  alert ("Running Netscape 6");

 layerRef="document.getElementByID";
 styleSwitch=".style";
 visibleVar="visible";
 agent="moz";

} else {					//  alert("Older than 4.0 browser.");

 agent="none";
 newbrowser = false;

}
						//  window.status='status bar text to go here';
check = true;
}

// Turn layers on and off

function showLayer(layerName) {

if (check) {
 if (agent=="none") {
  return;
 } else if (agent=="moz") {
  document.getElementById(layerName).style.visibility="visible";
  document.getElementById(layerName).style.display="";
 } else if (agent=="ie") {
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');
 } else {
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="visible"');
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="block"');
 }
} else {					// alert ("Please wait for the page to finish loading.");
 return;
}
}

function hideLayer(layerName) {

if (check) {
 if (agent=="none") {
  return;
 } else if (agent=="moz") {
  document.getElementById(layerName).style.visibility="hidden";
  document.getElementById(layerName).style.display="none";
 } else if (agent=="ie") {
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="none"');
 } else {
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.visibility="hidden"');
  eval(layerRef+'["'+layerName+'"]'+styleSwitch+'.display="none"');
 }
} else {					//  alert ("Please wait for the page to finish loading.");
 return;
}
}

function hideAll() {
 hideLayer('navabout'); hiLite('img2','clickme2');
 hideLayer('navschedule'); hiLite('img3','clickme3');
 
}

function startTime() {
    if (timerOn == false) {
    	
		timerID=setTimeout( "hideAll()" , timecount);
        timerOn = true;
    }
}

function stopTime() {
    if (timerOn) {
        clearTimeout(timerID);
        timerID = null;
        timerOn = false;
	}
}