if (document.images)
   {
   
   	 // The colored images that go ON when you mouseover
   	 
     pic1_box_on= new Image(62,51);
     pic1_box_on.src="tophalf_g.jpg";  
	
	 pic2_box_on= new Image(62,51);
     pic2_box_on.src="tophalf_c.jpg";

	 pic3_box_on= new Image(62,51);
     pic3_box_on.src="tophalf_y.jpg";

     pic4_box_on= new Image(62,51);
     pic4_box_on.src="tophalf_o.jpg";
     
     // The white image it always reverts to

     pic1_box_off= new Image(62,51);
     pic1_box_off.src="tophalf_y.jpg";

     pic2_box_off= new Image(62,51);
     pic2_box_off.src="tophalf_y.jpg";

     pic3_box_off= new Image(62,51);
     pic3_box_off.src="tophalf_y.jpg";
     
     pic4_box_off= new Image(62,51);
     pic4_box_off.src="tophalf_y.jpg";
     
	 // The colored images for the menu on mouseover	 	
     
     pic1_menu_on= new Image(150,45);
     pic1_menu_on.src="home_down.jpg";
     
     pic2_menu_on= new Image(150,45);
     pic2_menu_on.src="projects_down.jpg";

     pic3_menu_on= new Image(150,45);
     pic3_menu_on.src="about_down.jpg";

     pic4_menu_on= new Image(150,45);
     pic4_menu_on.src="contact_down.jpg";

	 // The images it reverts to when you unmouseover
     
     pic1_menu_off= new Image(150,45);
     pic1_menu_off.src="home_up.jpg";
     
     pic2_menu_off= new Image(150,45);
     pic2_menu_off.src="projects_up.jpg";

     pic3_menu_off= new Image(150,45);
     pic3_menu_off.src="about_down.jpg";

     pic4_menu_off= new Image(150,45);
     pic4_menu_off.src="contact_up.jpg";

}

function lightup(img1,img2,num)
 {
   if (document.images)
    {
      imgOn=eval("pic" + num + "_box_on.src");
      document[img1].src= imgOn;
      
      imgOn2=eval(img2 + "_on.src");
      document[img2].src= imgOn2;
    }
 }

function turnoff(img1,img2)
 {
   if (document.images)
    {
      imgOff = eval(img1 + "_off.src");
      document[img1].src= imgOff;
      
      imgOff2 = eval(img2 + "_off.src");
      document[img2].src = imgOff2;
    }
 }
