pslIndex=100;pslExist=false;fullPuzzle=0;maxPuzzle=0;pslNX=0;pslNY=0; pslTime=new Date(); pslReady='alert (\'Вы собрали пазл за \'+((pT>60000)?parseInt(pT/60000)+\' минут \':\'\')+parseInt((pT%60000)/1000)+\' секунд.\')'; function glue (e,w,h) { clipX=parseInt (e.currentStyle.clipLeft); clipY=parseInt(e.currentStyle.clipTop); x1=(e.style.posLeft+clipX)/w+0.5; y1=(e.style.posTop+clipY)/h+0.5; if (x1>=0&&y1>=0) { x1=parseInt(x1);y1=parseInt(y1); if (x1'; x+=width; if (i%nX==nX-1) {x=0;y+=height} if (i%nX==0) pslTbl+=''; pslTbl+='Музеи  
  России
' if (i%nX==nX-1) pslTbl+=''; } if (pslName!='undefined') pslTbl+=''+pslName+''; puzzle1.innerHTML+=pslTbl+''; pslImg.style.display='none'; puzzle.style.top=document.body.scrollTop+(document.body.clientHeight-puzzle.clientHeight)/2; puzzle.style.left=document.body.scrollLeft+(document.body.clientWidth-puzzle.clientWidth)/2; } function loadPuzzle (src,nX,nY,pslName) { if (!pslExist) { document.body.insertAdjacentHTML ('beforeEnd',''); pslExist=true} else puzzle.style.display='none'; puzzle.innerHTML='
'; return false; }