if(self.location != top.location){self.location = top.location}

var i = 1;

banner1= new Image();
banner1.src = "http://www.hackthatphone.com/ads/ad1.gif";  /* you may add as many as needed */


links = new Array
links[1] = "http://www.hackthatphone.com/2x/iphone_repair_services.html" 


description = new Array
description[1] = "go here now #1"  /* be sure to ad message numbers consecutively */


function startTime(){

  /* Area A - if you don't have ads, remove the comments around this area, and comment out 'Area B'. */
  /*  if(document.getElementById("adArea")){
        document.getElementById("adArea").style.display = 'none';
    }
  */


  /* Area B - if you have ads, remove the comments around this area, and comment out 'Area A'. */
  
    var time= new Date();
    hours= time.getHours();
    mins= time.getMinutes();
    secs= time.getSeconds();
    closeTime=hours*3600+mins*60+secs;   
    closeTime+=5;	// How many seconds until the next banner rotation
    Timer();
      
}

function Timer(){
    var time= new Date();
    hours= time.getHours();
    mins= time.getMinutes();
    secs= time.getSeconds();
    curTime=hours*3600+mins*60+secs
    if (curTime>=closeTime){
        if (i < 1){	                                       /* The number 1 is the amount of banners you have above */
            i++;
            document.banner.src = eval("banner" + i + ".src");
    }
    else{
        i = 1;
        document.banner.src = eval("banner" + i + ".src");
    }
    startTime();
}else{
    window.setTimeout("Timer()",1000)}
}

function clickLink(){
    top.location = links[i]
}

function descript(){
    window.status = description[i]
}