// JavaScript Document


// this is the common file for the Lakeside Global website
//
// Author: Jacques J. Bosc
// Date:   January, 2009
// Project: Create javascript to be used for the image swap in the navigation part of the site.
//


// this code will light up the button on a mouseover
if (document.images)
  {
    pic1on= new Image(47,19);
    pic1on.src="images/nav_home_red_btn.jpg";  
    pic2on= new Image(65,19);
    pic2on.src="images/nav_products_red_btn.jpg";
    pic3on= new Image(59,19);
    pic3on.src="images/nav_markets_red_btn.jpg";
    pic4on= new Image(98,19);
    pic4on.src="images/nav_about_red_btn.jpg";
    pic5on= new Image(75,19);
    pic5on.src="images/nav_news_red_btn.jpg";
    pic6on= new Image(123,19);
    pic6on.src="images/nav_cust_red_btn.jpg";
    pic7on= new Image(96,19);
    pic7on.src="images/nav_producer_red_btn.jpg";
    pic8on= new Image(75,19);
    pic8on.src="images/nav_contact_red_btn.jpg";

    pic1off= new Image(47,19);
    pic1off.src="images/nav_home_white_btn.jpg";
    pic2off= new Image(65,19);
    pic2off.src="images/nav_products_white_btn.jpg";
    pic3off= new Image(59,19);
    pic3off.src="images/nav_markets_white_btn.jpg";
    pic4off= new Image(98,19);
    pic4off.src="images/nav_about_white_btn.jpg";
    pic5off= new Image(75,19);
    pic5off.src="images/nav_news_white_btn.jpg";
    pic6off= new Image(123,19);
    pic6off.src="images/nav_cust_white_btn.jpg";
    pic7off= new Image(96,19);
    pic7off.src="images/nav_producer_white_btn.jpg";
    pic8off= new Image(75,19);
    pic8off.src="images/nav_contact_white_btn.jpg";


    php_pic1on= new Image(47,19);
    php_pic1on.src="../images/nav_home_red_btn.jpg";  
    php_pic2on= new Image(65,19);
    php_pic2on.src="../images/nav_products_red_btn.jpg";
    php_pic3on= new Image(59,19);
    php_pic3on.src="../images/nav_markets_red_btn.jpg";
    php_pic4on= new Image(98,19);
    php_pic4on.src="../images/nav_about_red_btn.jpg";
    php_pic5on= new Image(75,19);
    php_pic5on.src="../images/nav_news_red_btn.jpg";
    php_pic6on= new Image(123,19);
    php_pic6on.src="../images/nav_cust_red_btn.jpg";
    php_pic7on= new Image(96,19);
    php_pic7on.src="../images/nav_producer_red_btn.jpg";
    php_pic8on= new Image(75,19);
    php_pic8on.src="../images/nav_contact_red_btn.jpg";

    php_pic1off= new Image(47,19);
    php_pic1off.src="../images/nav_home_white_btn.jpg";
    php_pic2off= new Image(65,19);
    php_pic2off.src="../images/nav_products_white_btn.jpg";
    php_pic3off= new Image(59,19);
    php_pic3off.src="../images/nav_markets_white_btn.jpg";
    php_pic4off= new Image(98,19);
    php_pic4off.src="../images/nav_about_white_btn.jpg";
    php_pic5off= new Image(75,19);
    php_pic5off.src="../images/nav_news_white_btn.jpg";
    php_pic6off= new Image(123,19);
    php_pic6off.src="../images/nav_cust_white_btn.jpg";
    php_pic7off= new Image(96,19);
    php_pic7off.src="../images/nav_producer_white_btn.jpg";
    php_pic8off= new Image(75,19);
    php_pic8off.src="../images/nav_contact_white_btn.jpg";


}
  
  


function lightup(imgName)
 {
   if (document.images)
    {
      imgOn=eval(imgName + "on.src");
      document[imgName].src= imgOn;
    }
 }

function turnoff(imgName)
 {
   if (document.images)
    {
      imgOff=eval(imgName + "off.src");
      document[imgName].src= imgOff;
    }
 }