var agt=navigator.userAgent.toLowerCase();
function kV(s){return agt.indexOf(s)!=-1}var isM=kV("mac"),isW=kV("win"),isL=kV("linux"),isS=kV("safari"),isIE=kV("msie"),is8=kV("opera")&&parseFloat(navigator.appVersion)<9,d=document,v5p=d.getElementById,vA=0,vB=vC=1,vD=qD=kZ=vE=vF=0,vG="&#160;",vH=1,vI='',vP=vQ=0,rD=vR='',vS='http:\/\/',vT=vS+window.location.hostname,bY="5,6Classic,10,12ZigZag,11,16Blocks,6,20Classic,12,20Birds,13,22Wavy,14,22Polygons,15,32Round,16,35Jigzone,17,40Birds,18,41Tetris,8,44Tri-Dove,0,48Classic,19,48Euros,20,48USA,21,50Circles,22,50Tri-Clip,7,51Crazy,23,55Sixstar,24,62Tetris,1,67Classic,2,70Bulbs,25,79Stars,26,79Bricks,3,80Classic,4,87Crazy,27,91Lizards,28,96Triangles,29,100Classic,9,108Swirls,30,154Classic,31,184Crazy,32,240Classic,34,240Squares,33,247Triangles".replace(/(\d)([A-Z])/g,"$1 Piece $2"),xA="Ok to start over",xB="Oops,the puzzle has failed to start in a reasonable time. <br/>This could happen if your are no longer connected to the internet or your computer has problems displaying <b>Java</b>&nbsp;applets.",xC="Investigate the problem",xD="Your Time",xE="No Time Recorded",xF="Fastest",xG="Average",xH='Click to Mix and Solve';
function gE(k){if(v5p)return d.getElementById(k);return d.all[k]}
function gEs(k){var o=gE(k);if(!o)return null;return o.style}
function kT(o,f){if(!o)return;o.visibility=f?"inherit":"hidden"}
function kW(k,h){var o=gE(k);if(o) o.innerHTML=h;return h}
function kU(s,t){return setTimeout(s,t)}
function p8(o){return escape(o["innerText"]||o["textContent"]||"")}
function p7(x){(new Image(1,1)).src='/log/ping.php?'+x}
function p6(e){if(!e) var e=window.event;var i,x,t,o=(e["target"]||e.srcElement);if(o){t=o.tagName;while(o&&o.tagName!="A")o=o.parentNode;if(o){x=p8(o);i=o.id;if(i=="iY")x="0:00";p7("pzp_"+i+"_"+x+"_"+t);if(i.substr(0,3)=="sas"){window.open(o.href,"jz"+new Date().getTime(),"top=100,left=100,width=680,height=470,scrollbars=1");return false}}}}
function O(j,i,g,z,o,n,e,_){vP=g;vQ=o;vR=e;rD=n.replace(new RegExp('&amp;','g'),'&');if(eval(j)){vI=d.body.clientWidth;if(vI<800)vI=800;vI-=177;gEs("iE").background="#ddf"}if(eval(i))d.write('<iframe name="PlanB"></iframe>');d.write('<applet archive="/pzj/jz.jar" codebase="/pzj/" code="jz.class" id="Z" name="Z" mayscript '+(vI?'style="height:352px;width:'+vI+'px" height="352" width="'+vI+'"':'')+'><param name="v" value="'+g+';'+z+';'+o+';"><param name="t" value="'+n+'">'+(_?'<param name="d" value="'+_+'">':'')+((g&0x80)?'<param name="u" value="'+agt.replace(new RegExp('"','g'),',')+'">':'')+'</applet>');kQ(1)}
function _jB(){vH=0;vA=1;kW('iN','<applet archive="/pzj/jzCtl.jar" codebase="/pzj/" width="131" height="139" style="width:131px;height:139px" name="jzCtl" code="jzCtl.class"><param name="c" value="'+bY+'"></applet>');kA();kU('gE("iX").style.marginBottom="1px"',2345);gE("q5").className=""}
function _jX(){vA=1;return 1}
function _jL(x){kU("kA()",1);vB=x;if(!x)gE('iN').className=''}
function _jT(f,ms,s){vD=ms;vE=0;if(vF)clearInterval(vF);if(f){vE=(new Date()).getTime()-vD;vF=setInterval("kK()",100)}gE("q4").className=f?"q4":"q4X";kK();if(s){qD=1;if(gE("b8"))kT(gEs("b8"),0);gE("iD").className='';kX(0,ms)}}
function _jS(s){rM(s)}
function kA(){if(!vI){var a=gEs("Z");if(!a){window.location=vT+"/puz/badB.php";return}a.width="100%";a.height="352px"}gEs("iF").display="none";vC=0;vA=2}
function kD(){if(!vB)if(confirm(xA)){kK(1);rM(rD);_(3,0)}}
function kE(s,i){if(!vB){_(4,i+';'+s);kW("iU",s);gE("q5").className="U"+i;kT(gEs("bL"),0);kK(1);kX(i,0);kG(0)}}
function kB(){if(qD)kD();else{_(1,0)}}
function kF(a){kZ=1;rM(rD);_(2,a)}
function _(a,b){self.focus();qD=0;if(!vB)d.Z._(a,b)}var vN,iS=0;
function kG(on){var a=gEs("Z"),m=gEs("iI");if(on){kT(m,1);if(is8){a.width="701px";a.marginLeft="700px"}else{kT(a,0)}vN=0;kH();iS=1}else{kT(m,0);if(is8){a.width="100%";a.marginLeft=0}else{kT(a,1)}iS=0;self.focus()}}
function kH(){var c="auto";if((vN+=30)<660){c=vN+"px";kU("kH()",15)}gEs("iK").clip="rect(0 "+c+" auto 0)";kW("iZ",vG)}
function kI(z){var a=bY.split(","),w='<td nowrap="nowrap">',h='<table id="iM" cellspacing="0"><tr>'+w;for(var i=0;i<a.length;i+=2){var n=a[i+1],x=((a[i]==z)?' class="X"':''),s='';if(!i||i>47&&i<56){s+=vG+vG}h+='<a href="javascript:kE(\''+n+'\','+a[i]+')"><s'+x+'>&bull;'+s+'</s><u>'+n+'</u></a><br/>';if(i==22||i==46){h+='</td>'+w}}h+='</td></tr></table>';d.write(h)}var vJ=0;
function kJ(e){if(!e)var e=window.event;var z=e["target"]||e.srcElement;if(iS){if(!kR(z,"iI")){if(!vJ)vJ=kU('kG(0)',250)}else{if(vJ){clearTimeout(vJ);vJ=0}}}if(vO){if(!kR(z,"iW"))kT(gEs("iV"),0)}}var vO=0;
function kS(){kT(gEs("iV"),1);vO=1}
function kR(o,id){while(o&&o.id!=id){o=o.parentNode}return o}d.onmousemove=kJ;var iO=iP=0,bF=1,bG,b_=rB=bM=bN=bH=0,bI=4,bJ,bK=new Array("d0feb0","fcffaf","f7d4dd","b9e1f9","ffffff"),rO=987654,rP=99,rQ;
function kK(iQ){if(iQ){kZ=0;_jT(0,0)}if(vE)vD=(new Date()).getTime()-vE;var m=Math.floor(vD/60000),s=Math.floor((vD-(m*60000))/1000);if(s!=iP){iP=s;s=kW('iYS',(s>9?'':'0')+s);if(!kZ){kW('bW',s);rW(Math.floor(vD/1000))}}if(m!=iO){iO=m;kW('iYM',m);if(!kZ)kW('bX',m)}}
function kL(){kM(1,xB+'<p><small><a href="/faq/help">'+xC+'</a></small></p>')}
function kM(e,s){var o=gE('iH');o.className="iG";o.innerHTML=s;vC=0;if(vP&0x400)(new Image).src='/log/javaloadE.php?'+vQ+";"+e+";"+vA}
function kP(x){if(x&&vA==1)kU("kP(0)",65432);else{if(vA!=2)kL()}}var vK=".....&#183;.....",vL=5,vM=-1;
function kQ(f){if(f)kU("kP(1)",65432);if(!vC)return;gE("iH").childNodes[1].innerHTML=vK.substring(vL,vL+11);vL+=vM;if(vL==5||vL==0){vM=-vM}kU('kQ()',120)}
function rA(y,n,t,d){if(n==""||(n=="^"&&t<2)){y=1;bJ=this;d="bR";vD=t*1000}else{if(t==0){y=4;t=rO}}if(n=="")n=" "+xD;if(n=="^"){n=" "+vR;if(t>1){d="bZ";bJ=this}}this.y=y;this.n=n;this.t=t*1;this.d=d}
function rM(s){rD=s;aR=s.split('_');if(aR.length<4)return;aV=aR[0].split('.');aI=aR[1].split('.');aT=aR[2].split('.');aN=aR[3].split('.');if(rP==aV[2])aT[1]=rQ;bG=new Array();for(i=0;i<aN.length;i++){bG[bG.length]=(new rA(0,aN[i],aT[i],aI[i]))}if(aV[3]!=0)bG[bG.length]=(new rA(2,xF,aV[3],'_F'));if(aV[4]!=0)bG[bG.length]=(new rA(3,xG,Math.floor(aV[4]/aV[5]),'_A'));rB=aN.length-1;if(rP==99){rP=aV[2];rQ=aT[1]}rH();if(!vH)kX(aV[2])}
function rS(a,b){return a.t!=b.t?a.t-b.t:a.n<b.n?-1:a.n==b.n?b.y-a.y:1}
function rX(){bG.sort(rS);bN=0;var bO=999999;for(i=bG.length-1;i>=0;i--){var o=bG[i];if(o.y==1)break;if(o.t<bO){bN=o;bO=o.t}}}
function rH(v){if(v&&gEs("bL").visibility=="hidden")return;rX();if(bG.length<2||bG[1].y==4){gEs('bC').display='none';return}if(!b_){gEs('bC').display='block';b_=gE('bC').offsetWidth;bH=Math.floor(b_*0.62)-10}var bV=bU=bG[0],h='',y=' style="width:';for(var i=bG.length-1;i>=0;i--){bV=bG[i];if(bV.y!=4)break}if(bU.y==1)bU=bG[1];var bP=bU.t,bQ=bV.t;bF=bH/bQ;if(bV.y==1)bF*=.75;if(bP*bF<bI)bF=bI/bP;for(i=0;i<bG.length;i++){var bT=bG[i];if(bT.y==1)bT.t=vD/1000;var t=bT.t,m=Math.floor(t/60),s=Math.floor((t-(m*60))),xp=t1=t2=tZ=hF='';if(s<10)s='0'+s;if(bT.y==1){t1+='<s><span id="bX">'+m+'</span>:<span id="bW">'+s+'</span></s>';xp='id="bS"'}else{if(t==rO){t1+='<span class="rO">'+xE+'</span>'}else{t1+='<s>'+m+':'+s+'</s>'}}var w=Math.floor(bT.t*bF);if(t==rO)w=2;if(w>bH){w=bH;tZ='<i></i>';if(isIE&&!isM)hF=';float:none'}if(w<=60){t2=t1;t1='&nbsp;'}if(w<1)w=1;var j=bT.d=='bZ'?1:bT.y,c=bH+15,n=b_-c-11,r=rB>0&&bT.y>1&&bT.y<4?' class="b2"':'';xp+=y+w+'px;background:#'+bK[j]+' url(/im/g1.gif);background-position:0 -'+j*40+'px'+hF+'"';h+='<tr id="I'+bT.d+'"><td class="bE"><div'+y+n+'px"'+r+'>'+bT.n+'</div></td><td class="bD"'+y+c+'px"><div>'+tZ+'<u '+xp+'>'+t1+'</u>'+t2+'</div></td></tr>'}kW('bC','<table id="bL" cellspacing="0"'+((isIE&&isM)?y+'100%':'')+'>'+h+'</table>');gEs('bC').display='block'}
function rW(t){var o=gE('IbZ');if(o){bJ.d="_X";bG[bG.length]=(new rA(0,'^',t,0));rH(1);return}o=gE('bS');if(!o)return;if(t<bJ.t){bJ.t=t;rH(1);return}bJ.t=t;if(o.previousSibling)return;var w=Math.floor(t*bF);if(w>bH)rH();else{if(w<1)w=1;if(w!=bM){bM=w;o.style.width=w+"px";if(w>60&&o.nextSibling)o.appendChild(o.nextSibling)}if(bN&&t>bN.t){var oR=gE('I'+bJ.d);oR.parentNode.insertBefore(oR,gE('I'+bN.d).nextSibling);rX()}}}
function kX(i,s){var z=i>0?"z="+i:"";if(s)z="v="+s;kY("q3",z);kY("tW",z);kY("q2",z);kY("q1",z);kY("t8",z);kY("eH",z);kY("eT",z);s=gE("eI");if(s){s.value=s.value.replace(/(puzzles\/\w+).>/,'$1?z='+i+'">').replace(/z=\d+/,"z="+i).replace(/\/\d+\.png/,"/"+i+".png")}}
function kY(i,z){var o=gE(i);if(o){var a=o.tagName=="A" ? [o] : o.getElementsByTagName("A"),rz=/[?&]z=.+/,rv=/&v=.+/;for(j=a.length-1;j>=0;--j){o=a[j];o.href=o.href.replace(z.charAt(0)=='z'?rz:rv,"");if(z)o.href+=(o.href.indexOf('?')==-1?'?':'&')+z;o.target="_top"}}}var b7=1;
function b9(){b7=!b7;gEs("b8").backgroundColor=b7?"#ddd":"transparent";kT(gE("b8").firstChild.style,b7)}
function aW(S,R){var h=S||R;if(R&&d.body.clientWidth>920)h=R;if(h==R)gEs("i9").width="300px";h=h.replace(/&gt;/g,">").replace(/&lt;/g,"<");d.write(h)}
function eW(u,z,p){gE("eI").value='<a href="'+vT+'/puzzles/'+u+'"><img src="'+vT+'/im/pCut/'+z+'.png" alt="'+xH+'" style="width:400px;height:300px;margin:4px;padding:0;border:1px solid #999;background:transparent url('+vT+'/puz/zemThumb?p.'+p+')"></a>';gE("eT").href=gE("eH").href="/puz/embed.php?c=Z&i="+u.replace(/&amp;/,"&").replace(/\?/,"&")}
function eS(o){o.focus();o.select()}var tA,tB,tC,tD,tE,tF=tG=0;
function tK(i,s,v,t,x){tB=i;tE=s;tD=v;d.write('<div id="tP"><div id="tQ"></div><div id="tR"></div><div id="tS"></div><div id="tT"></div><div id="tU"></div></div>');d.write('<div title="'+t+'"><span id="tV">'+tL(s,v)+'</span> '+x+'</div>');s=gE("tT");s.onmousemove=tH;s.onmouseout=tI;s.onclick=tJ}
function tH(e){if(tG)return;if(!e)var e=window.event;var x=(e["pageX"]?e.pageX-gE("tP").offsetLeft:e.offsetX)-4;if(x<0)x=0;if(x>70)x=70;var s=gEs("tS");s.width=x+"px";kT(s,1);tA=Math.round(x*(50/70));tC=((tA/10)+".0").substr(0,3);var y=e["pageY"]?e.pageY-gE("tP").offsetTop:e.offsetY;s=gEs("tU");s.top=(y+15)+"px";s.left=(x-35)+"px";kT(s,1);kW("tU",tC)}
function tI(){kT(gEs("tS"),0);kT(gEs("tU"),0)}
function tJ(){if(!tG){tE+=tA;tD++;tG=1;tI();kU("tG=0",3000);kW("tV",tL(tE,tD));if(!tF){tF=1;(new Image).src='/pzp/vote.php?'+tC+(99+tB.charCodeAt(0)+(tA^tB.charCodeAt(1)))+tB}}}
function tL(s,v){var a=((v?Math.round(s/v)/10:0)+".0").substr(0,3);gEs("tR").width=(a*70/5)+"px";return a+" / "+v}
function t7(p,t){var A="Delicious,Digg,Reddit,StumbleUpon".split(','),B="del.icio.us/post?url=,digg.com/submit?url=,reddit.com/submit?url=,www.stumbleupon.com/submit?url=".split(',');for(i=0;i<A.length;i++){var u=B[i]+p+'&amp;title='+t;d.write('<a id="sas'+i+'" style="background-position:0 -'+(i*16)+'px" href="'+vS+u+'">'+A[i]+'</a>')}}
function p9(){var a=d.getElementsByTagName("A");for(var j=a.length-1;j>=0;--j){o=a[j];if(p8(o)&&!o.onclick){o.onclick=p6}}}