/* USED FOR THE ROTATION OF THE SCYSCRAPER AD  */
// not working on IE for the moment
var n=-1,j=0;
var speed1 = 7000;
var tab_photo1 = new Array(); //array for the photos 
var tab_link1 = new Array(); //array for the links 
var tab_alt1 = new Array(); //array for the alt 
var id_timeout1;

function Rotation_ad1()
{
	target = document.getElementById("skyscaper_ad");
	target.innerHTML = "<a href='" + tab_link1[j] + "' target='blank' ><img src='" + tab_photo1[j] + "' class='advert2' alt='" + tab_alt1[j] + "' /></a>";
	
    j++;
	if (j>(tab_photo1.length-1)) j=0;
    id_timeout1 = setTimeout('Rotation_ad1()', speed1);
}

StkFunc(Rotation_ad1); //instead of window.onload

var id_timeout2;

function Rotation_ad2()
{
	if (n==-1) n = tab_link1.length-1;
	target = document.getElementById("club_sult_ad");
	target.innerHTML = "<a href='" + tab_link1[n] + "' target='blank' ><img src='" + tab_photo1[n] + "' style='height:345px;width:125px;border:0' alt='" + tab_alt1[n] + "' /></a>";
    
	n++;
	if (n>(tab_photo1.length-1)) n=0;
    id_timeout2 = setTimeout('Rotation_ad2()', speed1);
}

StkFunc(Rotation_ad2); //instead of window.onload
