 var ID;
 var iChanges = 0;
 var images1 = new Array(6); 
 var images2 = new Array(6); 

function imageRotate(imgpath){
// call Update function 20 seconds after first load
 var date = new Date(); 
 var sec = date.getSeconds();

 images1[0] = new Image();
 images1[0].src = imgpath+"flatA316RR.jpg"; //bikini holding hands with dude

 images1[1] = new Image();
 images1[1].src = imgpath+"flatAC6CY7.jpg"; //bikini back covered in sand

 images1[2] = new Image();
 images1[2].src = imgpath+"flatATP1RE.jpg"; //looking at flat ass in mirror

 images1[3] = new Image();
 images1[3].src = imgpath+"flatAA9XKA.jpg"; //standing flat ass in front of window

 images1[4] = new Image();
 images1[4].src = imgpath+"flatAEKR51.jpg"; //flat ass in jeans walking in alley

 images1[5] = new Image();
 images1[5].src = imgpath+"flatAHKGP4.jpg"; //flat ass in black panties, sweaty back

 images2[0] = new Image();
 images2[0].src = imgpath+"flatAHR446.jpg"; //flat ass in jeans, holding yellow ball 

 images2[1] = new Image();
 images2[1].src = imgpath+"flatunvmepic.jpg"; //little butt in black thong in lake

 images2[2] = new Image();
 images2[2].src = imgpath+"flatuFjXSzF.jpg"; //flat ass in white camisole at window 

 images2[3] = new Image();
 images2[3].src = imgpath+"flatLotImg5783.jpg"; //asian jeans model with really flat ass

 images2[4] = new Image();
 images2[4].src = imgpath+"flatA1R95B.jpg"; //biker chick with red thong on her flat ass

 images2[5] = new Image();
 images2[5].src = imgpath+"flatAMT1P1.jpg"; //woman with flat ass pulling on shorts

 if (iChanges<12)
  ID=window.setTimeout("Update();",20000);
}


function changeImage(){
 var date = new Date(); 
 var min = date.getMinutes();
 var sec = date.getSeconds();
// window.alert(sec);
 iChanges+=1;
 if ((min % 2)==0) //on even minutes use array 1
  return(images1[iRange(sec)].src);
 else
  return(images2[iRange(sec)].src);
}

function Update() {
 document.small.simage.src = changeImage();
// document.small.simage.alt = changeTitle();
 if (iChanges<12)
  ID=window.setTimeout("Update();",10000);
}


function iRange(s){
 if (s < 10) 
  return(0)
 if (s < 20) 
  return(1)
 if (s < 30) 
  return(2)
 if (s < 40) 
  return(3)
 if (s < 50) 
  return(4)
 if (s < 60) 
  return(5)
}

function website(ref){
 var s=self.window.location.href;
 if ((s!=="http://www.free-advertising-blog.com/")||(s=="http://free-advertising-blog.com/"))
  self.window.location.href=ref;
 else 
  self.window.location.href="http://howto.gettail.com";
}
