<!--
/* define image width and height */

var pic_width=275;
var pic_height=220;

/* define image urls */
if (document.images)
 {
     pic1= new Image(pic_width,pic_height);
     pic2= new Image(pic_width,pic_height); 
     pic3= new Image(pic_width,pic_height);
     pic4= new Image(pic_width,pic_height);
     pic1.src="images/Photo1.jpg";  
     pic2.src="images/Photo2.jpg"; 
     pic3.src="images/Photo3.jpg";  
     pic4.src="images/Photo4.jpg";   
 }    

var pics= new Array(4) 
   pics[0]=pic1.src;
   pics[1]=pic2.src;
   pics[2]=pic3.src;
   pics[3]=pic4.src;

var numpics=4;
var thenum=0;
imgName="img1";

function change_it()
 {
   if (document.images)
    {
      document.write("<img src='"+pics[thenum]+"' border='0' vspace='1' width='"+pic_width+"' height='"+pic_height+"' name='img1'>\n");
      //document.write("<p><form name='form1' id='form1'><textarea name='text1' id='text1' //rows='5' cols='20'>"+destext[thenum]+"</textarea></form>");
      setTimeout('change_it2()',6000);  
   }
}

function change_it2()
 {
  var x=0;
  thenum+=1;

  if (thenum>numpics-1)
  { 
   document[imgName].src=pics[0];
   thenum=0;
  // document.form1.text1.value="The End";
  }
  else
  {
   document[imgName].src=pics[thenum];
  // document.form1.text1.value=destext[thenum];
   x+=1;
  }
   setTimeout('change_it2()',6000);
}
//-->
