var Ad_position_1 = new Array()
var Ad_position_2 = new Array()
var Ad_position_3 = new Array()
var Ad_position_4 = new Array()
var Ad_position_5 = new Array()
var Ad_position_6 = new Array()
var Ad_position_7 = new Array()
var Ad_position_8 = new Array()
Ad_position_1[0] = ''
Ad_position_2[0] = ''
Ad_position_3[0] = ''
Ad_position_4[0] = ''
Ad_position_5[0] = ''
Ad_position_6[0] = ''
Ad_position_7[0] = ''
Ad_position_8[0] = ''
Ad_position_1[1] = ''
Ad_position_2[1] = ''
Ad_position_3[1] = ''
Ad_position_4[1] = ''
Ad_position_5[1] = ''
Ad_position_6[1] = ''
Ad_position_7[1] = ''
Ad_position_8[1] = ''
Ad_position_1[2] = ''
Ad_position_2[2] = ''
var Ad1index = 0;
var Ad2index = 0;
var Ad3index = 0;
var Ad4index = 0;
var Ad5index = 0;
var Ad6index = 0;
var Ad7index = 0;
var Ad8index = 0;
function RotateButtonAds()
{
Ad1index = (Ad1index + 1) % 3;
SetAd("home_button_ad_1", Ad_position_1[Ad1index]);
Ad2index = (Ad2index + 1) % 3;
SetAd("home_button_ad_2", Ad_position_2[Ad2index]);
Ad3index = (Ad3index + 1) % 2;
SetAd("home_button_ad_3", Ad_position_3[Ad3index]);
Ad4index = (Ad4index + 1) % 2;
SetAd("home_button_ad_4", Ad_position_4[Ad4index]);
Ad5index = (Ad5index + 1) % 2;
SetAd("home_button_ad_5", Ad_position_5[Ad5index]);
Ad6index = (Ad6index + 1) % 2;
SetAd("home_button_ad_6", Ad_position_6[Ad6index]);
Ad7index = (Ad7index + 1) % 2;
SetAd("home_button_ad_7", Ad_position_7[Ad5index]);
Ad8index = (Ad8index + 1) % 2;
SetAd("home_button_ad_8", Ad_position_8[Ad8index]);
setTimeout("RotateButtonAds()",10000);
}
function SetAd(DivID,AdText)
{
document.getElementById(DivID).innerHTML = AdText;
}