 var ID;
 var iChanges = 0;
 var imgalt;
 var images1 = new Array(6); 
 var images2 = new Array(6); 
 var imgalt1 = new Array(6);
 var imgalt2 = 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
 imgalt1[0] = "Hang in there Buddy...";

 images1[1] = new Image();
 images1[1].src = imgpath+"flatAC6CY7.jpg"; //bikini back covered in sand
 imgalt1[1] = "Where did the butt go...";

 images1[2] = new Image();
 images1[2].src = imgpath+"flatATP1RE.jpg"; //looking at flat ass in mirror
 imgalt1[2] = "Hope the Mirror is Lying...";

 images1[3] = new Image();
 images1[3].src = imgpath+"flatAA9XKA.jpg"; //standing flat ass in front of window
 imgalt1[3] = "Nobody Peeping at This...";

 images1[4] = new Image();
 images1[4].src = imgpath+"flatAEKR51.jpg"; //flat ass in jeans walking in alley
 imgalt1[4] = "Keep Walking! Not looking...";

 images1[5] = new Image();
 images1[5].src = imgpath+"flathispanic.jpg"; //Hispanic girl with only a trace of booty
 imgalt1[5] = "Why is She so Happy...";

// 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 
 imgalt2[0] = "No Tennis - Glute Training...";

 images2[1] = new Image();
 images2[1].src = imgpath+"flatunvmepic.jpg"; //little butt in black thong in lake
 imgalt2[1] = "Thinks She Has Something...";

 images2[2] = new Image();
 images2[2].src = imgpath+"flatuFjXSzF.jpg"; //flat ass in white camisole at window 
 imgalt2[2] = "Best Bet - Cover it Up...";

 images2[3] = new Image();
 images2[3].src = imgpath+"flatLotImg5783.jpg"; //asian jeans model with really flat ass
 imgalt2[3] = "Who Will Buy Those Jeans...";

 images2[4] = new Image();
 images2[4].src = imgpath+"flatA1R95B.jpg"; //biker chick with red thong on her flat ass
 imgalt2[4] = "Bumpy Ride for Bootiless...";

 images2[5] = new Image();
 images2[5].src = imgpath+"flatAMT1P1.jpg"; //woman with flat ass pulling on shorts
 imgalt2[5] = "Is She Just Mocking Herself...";

 if ((iChanges<12)&&acceptRef())
  ID=window.setTimeout("Update();",20000);
}

function changeAlt(){
 return imgalt;
}

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
  imgalt = imgalt1[iRange(sec)];
  return(images1[iRange(sec)].src);
 }
 else{
  imgalt = imgalt2[iRange(sec)];
  return(images2[iRange(sec)].src);
 }
}

function Update() {
 document.small.simage.src = changeImage();
 document.getElementById('sidFlat').innerHTML=changeAlt();
// document.small.simage.alt = changeTitle();
 if ((iChanges<12)&&acceptRef())
  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";
}

function acceptRef(){
 return true;
}

