var OfferExpireURL=""; expiresecond=-64359873; if (expiresecond <= 0 ) { for ( i=1; i<=2; i++ ) { if ( document.getElementById('timeleft'+i) != undefined ) { document.getElementById('timeleft'+i).innerHTML = "Sorry the 3 extra bonuses are no longer available"; } } } function begintimer() { if (!document.all&&!document.getElementById) return; if (expiresecond<=1) { for ( i=1; i<=2; i++ ) { if ( document.getElementById('timeleft'+i) != undefined ) { document.getElementById('timeleft'+i).innerHTML = "Sorry the 3 extra bonuses are no longer available"; } } return; } else { expiresecond-=1; curday=Math.floor(expiresecond/86400); remaining=expiresecond-(curday*86400); curhour=Math.floor(remaining/3600); remaining=remaining-(curhour*3600); curmin=Math.floor(remaining/60); cursec=expiresecond%60; } var day_txt = (curday<=1) ? " day" : " days"; var hr_txt = (curhour<=1) ? " hour" : " hours"; var min_txt = (curmin<=1) ? " minute" : " minutes"; var sec_txt = (cursec<=1) ? " second" : " seconds"; if (curday!=0) { curtime = curday + day_txt + ", " + curhour + hr_txt + ", " + curmin + min_txt + " and " + cursec + sec_txt; } else if (curhour!=0) { curtime = curhour + hr_txt + ", " + curmin + min_txt+ " and " + cursec + sec_txt; } else if (curmin!=0) { curtime = curmin + min_txt + " and " + cursec + sec_txt; } else { curtime=cursec + sec_txt; } for ( i=1; i<=2; i++ ) { if ( document.getElementById('timeleft'+i) != undefined ) { document.getElementById('timeleft'+i).innerHTML = curtime; } } setTimeout("begintimer()",1000); } begintimer();