function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function highlightHome(){
	document.homebtn.src='images/navhome2.png';
	document.productbtn.src='images/navproducts.png';
	document.locatorbtn.src='images/navlocator.png';
	document.orderbtn.src='images/navorder.png';
	document.aboutbtn.src='images/navabout.png';
	document.contactbtn.src='images/navcontact.png';
	document.getElementById("subnav").style.backgroundColor='#c43a34';
	document.getElementById("subnav_products").style.display='none';
	document.getElementById("subnav_locator").style.display='none';
	document.getElementById("subnav_about").style.display='none';
	document.getElementById("subnav_contact").style.display='none';
	document.getElementById("footer").style.backgroundImage="url('images/footerH.png')";
}

function highlightProducts(){
	document.homebtn.src='images/navhome.png';
	document.productbtn.src='images/navproducts2.png';
	document.locatorbtn.src='images/navlocator.png';
	document.orderbtn.src='images/navorder.png';
	document.aboutbtn.src='images/navabout.png';
	document.contactbtn.src='images/navcontact.png';
	document.getElementById("subnav").style.backgroundColor='#edaa21';
	document.getElementById("subnav_products").style.display='block';
	document.getElementById("subnav_locator").style.display='none';
	document.getElementById("subnav_about").style.display='none';
	document.getElementById("subnav_contact").style.display='none';
	document.getElementById("footer").style.backgroundImage="url('images/footerP.png')";
}

function highlightLocator(){
	document.homebtn.src='images/navhome.png';
	document.productbtn.src='images/navproducts.png';
	document.locatorbtn.src='images/navlocator2.png';
	document.orderbtn.src='images/navorder.png';
	document.aboutbtn.src='images/navabout.png';
	document.contactbtn.src='images/navcontact.png';
	document.getElementById("subnav").style.backgroundColor='#0187e3';
	document.getElementById("subnav_products").style.display='none';
	document.getElementById("subnav_locator").style.display='block';
	document.getElementById("subnav_about").style.display='none';
	document.getElementById("subnav_contact").style.display='none';
	document.getElementById("footer").style.backgroundImage="url('images/footerL.png')";
}

function highlightOrder(){
	document.homebtn.src='images/navhome.png';
	document.productbtn.src='images/navproducts.png';
	document.locatorbtn.src='images/navlocator.png';
	document.orderbtn.src='images/navorder2.png';
	document.aboutbtn.src='images/navabout.png';
	document.contactbtn.src='images/navcontact.png';
	document.getElementById("subnav").style.backgroundColor='#a5591d';
	document.getElementById("subnav_products").style.display='none';
	document.getElementById("subnav_locator").style.display='none';
	document.getElementById("subnav_about").style.display='none';
	document.getElementById("subnav_contact").style.display='none';
	document.getElementById("footer").style.backgroundImage="url('images/footerO.png')";
}

function highlightAbout(){
	document.homebtn.src='images/navhome.png';
	document.productbtn.src='images/navproducts.png';
	document.locatorbtn.src='images/navlocator.png';
	document.orderbtn.src='images/navorder.png';
	document.aboutbtn.src='images/navabout2.png';
	document.contactbtn.src='images/navcontact.png';
	document.getElementById("subnav").style.backgroundColor='#01833a';
	document.getElementById("subnav_products").style.display='none';
	document.getElementById("subnav_locator").style.display='none';
	document.getElementById("subnav_about").style.display='block';
	document.getElementById("subnav_contact").style.display='none';
	document.getElementById("footer").style.backgroundImage="url('images/footerA.png')";
}

function highlightContact(){
	document.homebtn.src='images/navhome.png';
	document.productbtn.src='images/navproducts.png';
	document.locatorbtn.src='images/navlocator.png';
	document.orderbtn.src='images/navorder.png';
	document.aboutbtn.src='images/navabout.png';
	document.contactbtn.src='images/navcontact2.png';
	document.getElementById("subnav").style.backgroundColor='#512296';
	document.getElementById("subnav_products").style.display='none';
	document.getElementById("subnav_locator").style.display='none';
	document.getElementById("subnav_about").style.display='none';
	document.getElementById("subnav_contact").style.display='block';
	document.getElementById("footer").style.backgroundImage="url('images/footerC.png')";
}

function bbbiobags(){
	document.bbbiobagsbtn.src='images/biobags2.png';
}
function bborder(){
	document.bborderbtn.src='images/orderonline2.jpg';
}
function bblocate(){
	document.bblocatebtn.src='images/findaloaf2.jpg';
}
function bbreset(){
	document.bblocatebtn.src='images/findaloaf.jpg';
	document.bborderbtn.src='images/orderonline.jpg';
	document.bbbiobagsbtn.src='images/biobags.png';
}
	
function showOGfacts(){
	document.getElementById("OGtalkingpoints").style.visibility='visible';
}
function showPOfacts(){
	document.getElementById("POtalkingpoints").style.visibility='visible';
}
function showSUfacts(){
	document.getElementById("SUtalkingpoints").style.visibility='visible';
}
function showSGfacts(){
	document.getElementById("SGtalkingpoints").style.visibility='visible';
}
function showNASfacts(){
	document.getElementById("NAStalkingpoints").style.visibility='visible';
}
function showOSfacts(){
	document.getElementById("OStalkingpoints").style.visibility='visible';
}
function hideFacts(){
	document.getElementById("OGtalkingpoints").style.visibility='hidden';
	document.getElementById("POtalkingpoints").style.visibility='hidden';
	document.getElementById("SUtalkingpoints").style.visibility='hidden';
	document.getElementById("SGtalkingpoints").style.visibility='hidden';
	document.getElementById("NAStalkingpoints").style.visibility='hidden';
	document.getElementById("OStalkingpoints").style.visibility='hidden';
}

