// JavaScript Document


// this is the common file for the Freak Fitness website
//
// Author: Jacques J. Bosc
// Date:   October, 2008
// Project: Create javascript to be used for the site.
//


// this code will light up the button on a mouseover
if (document.images)
  {
    pic1on= new Image(44,23);
    pic1on.src="images/home_btn_over.jpg";  
    pic2on= new Image(70,23);
    pic2on.src="images/crossfit_btn_over.jpg";  
    pic3on= new Image(87,23);
    pic3on.src="images/other_training_btn_over.jpg";
    pic4on= new Image(80,23);
    pic4on.src="images/gots_btn_over.jpg";  
    pic5on= new Image(75,23);
    pic5on.src="images/whats_new_btn_over.jpg";
    pic6on= new Image(81,23);
    pic6on.src="images/mess_you_up_btn_over.jpg";
    pic7on= new Image(70,23);
    pic7on.src="images/contact_us_btn_over.jpg";
    pic8on= new Image(38,23);
    pic8on.src="images/links_btn_over.jpg";
    pic9on= new Image(74,23);
    pic9on.src="images/freaks_only_btn_over.jpg";
	pic10on= new Image(48,23);
    pic10on.src="images/Navigation_buttons/awards_btn_over.jpg";
	pic11on= new Image(80,23);
    pic11on.src="images/Navigation_buttons/performance_btn_over.jpg";
	pic12on= new Image(60,23);
    pic12on.src="images/Navigation_buttons/physique_btn_over.jpg";


    pic1off= new Image(44,23);
    pic1off.src="images/home_btn_resting.jpg";
    pic2off= new Image(70,23);
    pic2off.src="images/crossfit_btn_resting.jpg";
    pic3off= new Image(87,23);
    pic3off.src="images/other_training_btn_resting.jpg";
    pic4off= new Image(80,23);
    pic4off.src="images/gots_btn_resting.jpg";
    pic5off= new Image(75,23);
    pic5off.src="images/whats_new_btn_resting.jpg";
    pic6off= new Image(81,23);
    pic6off.src="images/mess_you_up_btn_resting.jpg";
    pic7off= new Image(70,23);
    pic7off.src="images/contact_us_btn_resting.jpg";
    pic8off= new Image(38,23);
    pic8off.src="images/links_btn_resting.jpg";
    pic9off= new Image(74,23);
    pic9off.src="images/freaks_only_btn_resting.jpg";
	pic10off= new Image(48,23);
    pic10off.src="images/Navigation_buttons/awards_btn_resting.jpg";
	pic11off= new Image(80,23);
    pic11off.src="images/Navigation_buttons/performance_btn_resting.jpg";
	pic12off= new Image(60,23);
    pic12off.src="images/Navigation_buttons/physique_btn_resting.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;
    }
 }
 
 
 