window.onerror=function(){return true}; var casaleu='http://as.casalemedia.com/pd?s=73230'; var casalef='width=720,height=300,toolbar=0,location=0,titlebar=1,menubar=0,scrollbars=0,resizable=0,directories=0,status=0'; var casaleVer=navigator.appVersion; var casaleIE=0; var casaleMW=2; function casaleMWF(d) { casaleMW=d?casaleMW-1:0; } if(casaleVer.substring(22,23)>=4||casaleVer.substring(0,1)>=4) { casalef=casalef+",left="+((screen.width-720)/2)+",top="+((screen.height-300)/2); if(casaleVer.substring(22,23)>4) casaleIE=1; } casaleSA(); function casaleSA() { if(casaleMW) { var hermes=window.open("",'_blank',casalef); window.popwin=window; if(hermes) { casaleFocus(); hermes.document.write(''); hermes.document.write(''); hermes.document.write(''); } else if(!casaleIE) { // document.onclick=casaleSD2; document.write(' '); casaleFocus(); } if(casaleIE) { document.write(''); casaleIframe.document.write(''); casaleIframe.document.close(); // document.onclick=casaleSD2; // setTimeout('casaleSD1()',500); setTimeout('window.popwin = window',2000); } } } function casaleSD1() { window.popwin=casaleIframe.casaleObject.object.parentWindow; casaleIframe.location.replace('about:blank'); setTimeout('document.fireEvent("onclick")', 1); } function casaleSD2() { if(casaleMW) { var mercury=popwin.open(casaleu,'_blank',casalef); casaleMWF(1); if(mercury) { casaleMWF(); casaleFocus(); } } } function casaleFocus() { self.focus(); for(var i=1;i<4;i++) setTimeout('self.focus()',i*500); }