
if (document.images) {
	pic1on = new Image(474, 510);
	pic1on.src = "images/exterier_left_open.jpg";
	
	pic1off = new Image(474, 510);
	pic1off.src = "images/exterier_left.jpg";
	
	pic2on = new Image(504, 510);
	pic2on.src = "images/exterier_right_open.jpg";
	
	pic2off = new Image(504, 510);
	pic2off.src = "images/exterier_right.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;
    }
 }
 
 function lightup2(imgId)
 {
   if (document.images)
    {
       document.getElementById(imgId).src= eval(imgId + 'on.src');
    }
 }

function turnoff2(imgId)
 {
   if (document.images)
    {
      document.getElementById(imgId).src= eval(imgId + 'off.src');
    }
 }

