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() Ad_position_1[0] = 'PatrickMCaffery & Sons Ltd' Ad_position_2[0] = 'Bennett Construction Ltd' Ad_position_3[0] = 'Brightpath' Ad_position_4[0] = 'Techskills' Ad_position_5[0] = 'Glenveagh Properties' Ad_position_1[1] = 'KCM Rec' Ad_position_2[1] = 'Azon Recruitment' Ad_position_3[1] = 'Servisource' Ad_position_4[1] = 'Acrow' Ad_position_5[1] = 'ICDS' Ad_position_1[2] = 'Top Recruitment 6' Ad_position_2[2] = 'ONeill & Brennan' Ad_position_3[2] = 'Coopero' Ad_position_4[2] = 'BSSlogo' Ad_position_5[2] = 'SSA Group' Ad_position_1[3] = 'Glenbrier' Ad_position_2[3] = 'BAM contractors' Ad_position_3[3] = 'Linesight' Ad_position_4[3] = 'Brian M Durkan' Ad_position_5[3] = 'Euro Executive Recruitment' Ad_position_1[4] = 'Ward Personnel' Ad_position_2[4] = 'KPH Construction' var Ad1index = 0; var Ad2index = 0; var Ad3index = 0; var Ad4index = 0; var Ad5index = 0; function RotateButtonAds() { Ad1index = (Ad1index + 1) % 5; SetAd("home_button_ad_1",Ad_position_1[Ad1index]); Ad2index = (Ad2index + 1) % 5; SetAd("home_button_ad_2",Ad_position_2[Ad2index]); Ad3index = (Ad3index + 1) % 4; SetAd("home_button_ad_3",Ad_position_3[Ad3index]); Ad4index = (Ad4index + 1) % 4; SetAd("home_button_ad_4",Ad_position_4[Ad4index]); Ad5index = (Ad5index + 1) % 4; SetAd("home_button_ad_5",Ad_position_5[Ad5index]); setTimeout("RotateButtonAds()",10000); } function SetAd(DivID,AdText) { document.getElementById(DivID).innerHTML = AdText; }