var ads = new Array(0); /* ----------------------- */ var current_ad = 0; var adInterval = 0; var adTime = 4; // seconds var eads = readCookie('eads'); if (eads == null) { current_ad = 1; } else { current_ad = parseInt(eads)+1; } if (current_ad > ads.length-1) current_ad = 1; if (ads.length == 0) current_ad = 0; if (current_ad > 0) showAds(); /* ----------------------- */ function showAds() { MM_setTextOfLayer('ads','',ads[current_ad].banner); if (ads.length > 1) { adInterval = setTimeout("showAds()",1000*ads[current_ad].seconds); createCookie('eads',current_ad,1); current_ad++; if (current_ad > ads.length-1) current_ad = 1; } } function setAd(seconds,banner) { var obj = new Object(); obj.seconds = seconds; obj.banner = banner; return obj; } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i