//Below is the code that pre-loads the graphics on first level 
//directory pages: markets, corp, subpages, etc.
{

//About button graphics

graphic1= new Image();
graphic1.src = "../graphics/buttons/about-off.jpg";
graphic1on = new Image();
graphic1on.src = "../graphics/buttons/about-on.jpg";

//Products button graphics

graphic2= new Image();
graphic2.src = "../graphics/buttons/products-off.jpg";
graphic2on = new Image();
graphic2on.src = "../graphics/buttons/products-on.jpg";

//Where to Buy button graphics

graphic3= new Image();
graphic3.src = "../graphics/buttons/buy-off.jpg";
graphic3on = new Image();
graphic3on.src = "../graphics/buttons/buy-on.jpg";


//Distributors button graphics

graphic12= new Image();
graphic12.src = "../graphics/buttons/distributors-off.jpg";
graphic12on = new Image();
graphic12on.src = "../graphics/buttons/distributors-on.jpg";

//pressroom button graphics

graphic4= new Image();
graphic4.src = "../graphics/buttons/pressroom-off.jpg";
graphic4on = new Image();
graphic4on.src = "../graphics/buttons/pressroom-on.jpg";

//Industry button graphics

graphic5= new Image();
graphic5.src = "../graphics/buttons/industry-off.jpg";
graphic5on = new Image();
graphic5on.src = "../graphics/buttons/industry-on.jpg";

//email button graphics

graphic6= new Image();
graphic6.src = "../graphics/buttons/email-off.jpg";
graphic6on = new Image();
graphic6on.src = "../graphics/buttons/email-on.jpg";                              

//Home button graphics

graphic7= new Image();
graphic7.src = "../graphics/buttons/home-off.jpg";
graphic7on = new Image();
graphic7on.src = "../graphics/buttons/home-on.jpg";

//Architects button graphics

graphic8= new Image();
graphic8.src = "../graphics/buttons/architects-off.jpg";
graphic8on = new Image();
graphic8on.src = "../graphics/buttons/architects-on.jpg"; 

//Homeowners button graphics

graphic9= new Image();
graphic9.src = "../graphics/buttons/homeowner-off.jpg";
graphic9on = new Image();
graphic9on.src = "../graphics/buttons/homeowner-on.jpg";

//Contractors button graphics

graphic10= new Image();
graphic10.src = "../graphics/buttons/contractors-off.jpg";
graphic10on = new Image();
graphic10on.src = "../graphics/buttons/contractors-on.jpg"; 

//Officials button graphics

graphic11= new Image();
graphic11.src = "../graphics/buttons/officials-off.jpg";
graphic11on = new Image();
graphic11on.src = "../graphics/buttons/officials-on.jpg";

//Site Map button graphics

graphic13= new Image();
graphic13.src = "../graphics/buttons/site-map-off.jpg";
graphic13on = new Image();
graphic13on.src = "../graphics/buttons/site-map-on.jpg";

//Find Contractor button graphics

graphic14= new Image();
graphic14.src = "../graphics/buttons/find-contractors-off.jpg";
graphic14on = new Image();
graphic14on.src = "../graphics/buttons/find-contractors-on.jpg";




//This is the function that calls for
//the change in the buttons 

}
function imageChange(imageID,imageName) { 

{
document.images[imageID].src = eval(imageName + ".src");
                              
}

}
