//set image paths
src = ["http://www.kagw.com/_images/ads/boa.jpg"
,"http://www.kagw.com/_images/ads/VargheseCherian.jpg"
,"http://www.kagw.com/_images/ads/mb.jpg"
,"http://www.kagw.com/_images/ads/emirates.gif"
,"http://www.kagw.com/_images/ads/metLife.jpg"
,"http://www.kagw.com/_images/ads/periyar.jpg"
,"http://www.kagw.com/_images/ads/Agre.jpg"
]
//set corresponding urls

url = ["http://kagw.com/Redirect.aspx?site_name=http://www.bankofamerica.com"
, "http://kagw.com/Redirect.aspx?site_name=http://varghesecherian.lnf.com/"
, "http://kagw.com/Redirect.aspx?site_name=http://www.mahabazaartravels.com"
, "http://kagw.com/Redirect.aspx?site_name=http://www.emirates.com"
, "http://kagw.com/Redirect.aspx?site_name=http://www.joseph.metlife.com"
, "http://kagw.com/Redirect.aspx?site_name=http://www.periyargroceries.com"
, "http://kagw.com/Redirect.aspx?site_name=http://www.agretravels.com"
]
 
//set duration for each image
duration = 4;

//Please do not edit below
ads=[]; ct=0;
function switchAd() {
var n=(ct+1)%src.length;
if (ads[n] && (ads[n].complete || ads[n].complete==null)) {
document["Ad_Image"].src = ads[ct=n].src;
}
ads[n=(ct+1)%src.length] = new Image;
ads[n].src = src[n];
setTimeout("switchAd()",duration*1000);
}
function doLink(){
popupWin = window.open(url[ct], 'open_window')
//location.href = url[ct];
} onload = function(){
if (document.images)
switchAd();
}

