


myHomePic = new Array("images/cover_s.jpg","images/crystal_s.jpg", "images/dpo4_s.jpg");

var index = 0 ;			
imgCt = myHomePic.length;


function choosePic() 
    {
	   if (document.images) 
	   {
	      randomNum = Math.floor((Math.random() * imgCt))
	      document.myPicture.src = myHomePic[randomNum]
	   }
    }
      

thisPic= Math.floor((Math.random() * imgCt))

function rotate()
{
	if (document.images)
	{
	    thisPic++;
	    if (thisPic== imgCt)
	    {
		thisPic=0;
	    }
	    
	    document.myPicture.src=myHomePic[thisPic];
	    
	    setTimeout("rotate()", 10 * 1000);
	}
}


