dFlash=0; function competition_tandc(){ popW=478; popH=427; if(popW>bw.scrW)popW=bw.scrW*0.9; if(popH>bw.scrH)popH=bw.scrH*0.9; popL=(bw.scrW-popW)/2; popT=(bw.scrH-popH)/2; TACpop=window.open("competition_t_and_c.html","TERMS","scrollbars=no,width="+popW+",height="+popH+(document.all?(',left='+popL+',top='+popT):(',screenX='+popL+',screenY='+popT))); if(!TACpop)alert(bw.popBlock); }; function esc(txt){ return escape(txt.replace(/<\/p>/ig,"|||").replace(/<[^>]+>/g,"").replace(/\|\|\|/g,"<br />")); }; function esc2(txt){ return escape(txt.replace(/<[^>]+>/g,"")); }; function FLASHscript(tp,p1,p2,p3,p4,p5,p6,p7,p8){ switch(tp){ case 1: scrollToTop(); break; case 2: setHeight(p1); break; case 3: msg=p3.replace(/\|\|/g,"|||").replace(/\\?\'/g,"&#39").replace(/\\?\"/g,"&quot");
taf_preview(p1,p2,msg,p4,p5,p6,p7,p8); break; case 4: postert_and_c(); break; }}; function taf_preview(email,name,message,friendsemail,friendsname,friendsemail2,friendsname2,design){ PREVpop=window.open("tell_a_friend.php?email="+esc2(email)+"&name="+esc2(name)+"&message="+esc(message)+"&friendsemail="+esc2(friendsemail)+"&friendsname="+esc2(friendsname)+"&friendsemail2="+esc2(friendsemail2)+"&friendsname2="+esc2(friendsname2)+"&design="+design.replace(/[\D]+/g,""),"PREVIEW","width=600,height=600,scrollbars=yes,location=no,resizable=yes"); if(!PREVpop)alert(bw.popBlock); }; function scrollToTop(){ bw.scrT=0; bw.getScrollTop(); if(bw.scrT){ dFlash.slider.setValues(bw.scrT,-bw.scrT,50); dFlash.slider.go(); }}; function setHeight(nr){ if(!nr){ bw.getWinSize(); if(bw.winH<=800)nr=bw.winH; }; nr=nr?px(nr<800?800:Math.round(nr)):"100%"; dFlash.style.height=get("OBJflash").style.height=nr; }; function postert_and_c(){ POSpop=window.open('posters_t_and_c.html','posters_t_and_c','toolbar=false,location=false,status=false,menubar=false,scrollbars=false,resizable=false,width=500,height=366'); if(!POSpop)alert(bw.popBlock); }; function init(){ if(!bw.landing){ dFlash=get("DIVflash"); dFlash.slider=new Slider(dFlash,"quint","InOut","scrollTop"); dFlash.innerHTML=bw.iemac?('<embed id="OBJflash" src="'+flash['source']+'" width="'+flash['width']+'" height="'+flash['height']+'">'):('<object id="OBJflash" '+(bw.ie?('classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version='+flash['codebase']+'"'):('data="'+flash['source']+'" type="application/x-shockwave-flash"'))+' width="'+flash['width']+'" height="'+flash['height']+'">'+(bw.ie?('<param name="movie" value="'+flash['source']+'">'):'<param name="pluginurl" value="http://www.macromedia.com/go/getflashplayer">')+flash['parameters']+'<param name="quality" value="high"></object>'); if(bw.ie||bw.saf)setHeight(); window.onresize=new Function("setHeight(0)"); }else if(!bw.flash){ get("DIVdownload").innerHTML='<b>We have detected that you do not have Flash Player 7 | <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash">Download Flash</a></b>'; }else if(bw.oldsaf)location.replace("flash.html"); }; window.onload=init;

