/*
 InterNetris http://internetris.net
 copyright (c)2007-2010 Stephen M. McKamey
*/
var cssua=function(i,l){var m=/\s*([\-\w ]+)[\s\/]([\d_]+\b([\-\._\/]\w+)*)/,n=/([\w\-\.]+[\s\/][v]?[\d_]+\b([\-\._\/]\w+)*)/g,o=/rv[:](\d+(\.\w+)*).*?\bgecko[\/]\w+/,p=/\bblackberry\w*[\s\/]+(\d+(\.\w+)*)/,q=/(\bwindows\b|\bmacintosh\b|\blinux\b|\bunix\b)/,r=/(\bandroid\b|\bipad\b|\bipod\b|\bblackberry|\brim tablet os\b|\bwebos\b|\bwindows ce\b|\bwindows phone os\b|\bwindows ce\b|\bpalm|\bsymbian|\bj2me\b|\bdocomo\b|\bpda\b|\bchtml\b|\bmidp\b|\bcldc\b|\w*?mobile\w*?|\w*?phone\w*?)/,s=/(\bxbox\b|\bplaystation\b|\bnintendo\s+\w+)/,
d={parse:function(c){var a={},c=(""+c).toLowerCase();if(!c)return a;for(var b,g,e=c.split(/[()]/),f=0,d=e.length;f<d;f++)if(f%2){var j=e[f].split(";");for(b=0,g=j.length;b<g;b++)if(m.exec(j[b])){var h=RegExp.$1.split(" ").join("_"),i=RegExp.$2;if(!a[h]||parseFloat(a[h])<parseFloat(i))a[h]=i}}else if(j=e[f].match(n))for(b=0,g=j.length;b<g;b++)h=j[b].split(/[\/\s]+/),h.length&&"mozilla"!==h[0]&&(a[h[0].split(" ").join("_")]=h.slice(1).join("-"));if(r.exec(c)){if(a.mobile=RegExp.$1,p.exec(c))a.blackberry=
RegExp.$1}else if(q.exec(c))a.desktop=RegExp.$1;else if(s.exec(c)&&(a.game=RegExp.$1,b=a.game.split(" ").join("_"),a.version&&!a[b]))a[b]=a.version;if(a.intel_mac_os_x)a.mac_os_x=a.intel_mac_os_x.split("_").join("."),delete a.intel_mac_os_x;else if(a.cpu_iphone_os)a.ios=a.cpu_iphone_os.split("_").join("."),delete a.cpu_iphone_os;else if(a.cpu_os)a.ios=a.cpu_os.split("_").join("."),delete a.cpu_os;if(a.opera&&a.version)a.opera=a.version;if(a.applewebkit){if(a.webkit=a.applewebkit,delete a.applewebkit,
a.safari)a.chrome||a.mobile&&!a.ios?delete a.safari:a.safari=a.version&&!a.rim_tablet_os?a.version:{419:"2.0.4",417:"2.0.3",416:"2.0.2",412:"2.0",312:"1.3",125:"1.2",85:"1.0"}[parseInt(a.safari,10)]||a.safari}else if(a.msie){if(!a.opera)a.ie=a.msie;delete a.msie}else if(o.exec(c))a.gecko=RegExp.$1;a.version&&delete a.version;return a},format:function(c){var a="",b;for(b in c)if(b&&c.hasOwnProperty(b)){var g=b,e=c[b],g=g.split(".").join("-"),f=" ua-"+g;if(e){for(var e=e.split(" ").join("_").split(".").join("-"),
d=e.indexOf("-");0<d;)f+=" ua-"+g+"-"+e.substring(0,d),d=e.indexOf("-",d+1);f+=" ua-"+g+"-"+e}a+=f}return a},encode:function(c){var a="",b;for(b in c)b&&c.hasOwnProperty(b)&&(a&&(a+="&"),a+=encodeURIComponent(b)+"="+encodeURIComponent(c[b]));return a}};d.userAgent=d.ua=d.parse(l);var k=d.format(d.ua)+" js";i.className=i.className?i.className.replace(/\bno-js\b/g,"")+k:k.substr(1);return d}(document.documentElement,navigator.userAgent);var duel=function(m,u,x){function y(a){this.value=a}function l(a){switch(typeof a){case "object":return!a?0:z(a)?2:a instanceof y?5:a instanceof Date?4:3;case "function":return 1;case "undefined":return 0;default:return 4}}function v(a){return"string"===typeof a}function n(a){return"function"===typeof a}function o(){this.value=o.FAST?"":[]}function p(a){z(a)||(a=["",a]);this.value=a}function q(a,b){switch(l(b)){case 2:if(""===b[0])for(var c=1,f=b.length;c<f;c++)q(a,b[c]);else a.push(b);break;case 3:if(1===
a.length)a.push(b);else if(c=a[1],3===l(c))for(f in b)b.hasOwnProperty(f)&&(c[f]=b[f]);else a.splice(1,0,b);break;case 4:""!==b&&(b=""+b,c=a.length-1,0<c&&4===l(a[c])?a[c]+=b:a.push(b));break;case 0:break;default:a.push(b)}}function r(a,b,c,f,d,e){var g=3===l(a[1]);if(a.length===(g?3:2))return k(a[a.length-1],b,c,f,d,e);for(var h=[""],g=g?2:1,j=a.length;g<j;g++)q(h,k(a[g],b,c,f,d,e));return h}function B(a,b,c,f,d,e){for(var g=1,h=a.length;g<h;g++){var j=a[g],i=j[1].test;if(3===l(j[1])&&i&&(n(i)&&
(i=i(b,c,f,d)),!i))continue;return r(j,b,c,f,d,e)}return null}function J(a){2!==l(a)&&(a=["",a]);var b=function(b,f,d,e){try{var g=k(a,b,isFinite(f)?f:0,isFinite(d)?d:1,v(e)?e:null);return new p(g)}catch(h){return new p("["+h+"]")}};b.getView=function(){return a};return b}function K(a){return!v(a)?a:a.replace(/[&<>]/g,function(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";default:return a}})}function L(a){return!v(a)?a:a.replace(/[&<>"]/g,function(a){switch(a){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return a}})}function C(a,b){var c=b[0]||"",f=b.length,d=1,e,g=M[c];if("!"===c.charAt(0))"!DOCTYPE"===b[0]?a.append("<!DOCTYPE ",b[1],">"):a.append("<\!--",b[1],"--\>");else{if(c){a.append("<",c);e=b[d];if(3===l(e)){for(var h in e)if(e.hasOwnProperty(h)){a.append(" ",h);var j=e[h];0!==l(j)&&a.append('="',L(j),'"')}d++}g&&a.append(" /");a.append(">")}for(;d<f;d++)e=b[d],z(e)?C(a,e):a.append(K(e));c&&!g&&a.append("</",c,">")}}
function s(a){if(a){if("!"===a.charAt(0))return m.createComment("!"===a?"":a.substr(1)+" ")}else{if(m.createDocumentFragment)return m.createDocumentFragment();a=""}return"style"===a.toLowerCase()&&m.createStyleSheet?m.createStyleSheet():m.createElement(a)}function w(a,b){if(b){var c=(a.tagName||"").toLowerCase();if(8===a.nodeType)3===b.nodeType&&(a.nodeValue+=b.nodeValue);else if("table"===c&&a.tBodies)if(b.tagName)if((c=b.tagName.toLowerCase())&&"tbody"!==c&&"thead"!==c){var f=0<a.tBodies.length?
a.tBodies[a.tBodies.length-1]:null;f||(f=s("th"===c?"thead":"tbody"),a.appendChild(f));f.appendChild(b)}else!1!==a.canHaveChildren&&a.appendChild(b);else{if(11===b.nodeType)for(;b.firstChild;)w(a,b.removeChild(b.firstChild))}else if("style"===c&&m.createStyleSheet)a.cssText=b;else if(!1!==a.canHaveChildren)a.appendChild(b);else if("object"===c&&b.tagName&&"param"===b.tagName.toLowerCase()){try{a.appendChild(b)}catch(d){}try{if(a.object)a.object[b.name]=b.value}catch(e){}}}}function D(a,b,c){n(c)?
a.addEventListener?a.addEventListener("on"===b.substr(0,2)?b.substr(2):b,c,!1):a[b]=c:v(c)&&(a[b]=new Function("event",c))}function E(a){return!!a&&3===a.nodeType&&(!a.nodeValue||!/\S/.exec(a.nodeValue))}function F(a,b){if(a&&3===a.nodeType&&b.exec(a.nodeValue))a.nodeValue=a.nodeValue.replace(b,"")}function A(a){if(a){for(;E(a.firstChild);)a.removeChild(a.firstChild);for(F(a.firstChild,N);E(a.lastChild);)a.removeChild(a.lastChild);F(a.lastChild,O)}}function G(a,b){var c=a[b];if(c){try{delete a[b]}catch(f){a[b]=
x}if(!n(c))try{c=new Function(""+c)}catch(d){c=null}}return c}function H(a){if(a){var b=G(a,"$init");b&&b.call(a);(b=G(a,"$load"))?setTimeout(function(){b.call(a);b=a=null},0):b=a=null}}function I(a,b){for(var c=1,f=b.length;c<f;c++){var d=b[c];switch(l(d)){case 2:var e=d[0],d=I(s(e),d);if("html"===e)return A(d),H(d),d;w(a,d);break;case 4:""!==d&&w(a,m.createTextNode(""+d));break;case 3:if(1===a.nodeType){var e=a,g=d;if(g.name&&m.attachEvent&&!e.parentNode)try{var h=s("<"+e.tagName+' name="'+g.name+
'">');e.tagName===h.tagName&&(e=h)}catch(j){}d=void 0;for(d in g)if(g.hasOwnProperty(d)){var i=g[d],k=l(i);if(d)0===k&&(i="",k=4),d=P[d.toLowerCase()]||d,"style"===d?"undefined"!==typeof e.style.cssText?e.style.cssText=i:e.style=i:"class"===d?e.className=i:"on"===d.substr(0,2)?(D(e,d,i),t[d]&&D(e,t[d],i)):4===k&&"$"!==d.charAt(0)?(e.setAttribute(d,i),t[d]&&e.setAttribute(t[d],i)):(e[d]=i,t[d]&&(e[t[d]]=i))}a=e}break;case 5:e=w;g=a;i=d;d=s("div");d.innerHTML=""+i;A(d);if(1===d.childNodes.length)d=
d.firstChild;else{for(i=s("");d.firstChild;)i.appendChild(d.firstChild);d=i}e(g,d)}}A(a);H(a);if(11===a.nodeType&&1===a.childNodes.length)a=a.firstChild;return a}y.prototype.toString=function(){return this.value};var z=Array.isArray||function(a){return a instanceof Array};o.FAST=!(u&&9>u());o.prototype.append=function(a,b,c){o.FAST?null!==a&&(this.value+=a,null!==b&&b!==x&&(this.value+=b,null!==c&&c!==x&&(this.value+=c))):this.value.push.apply(this.value,arguments)};o.prototype.clear=function(){this.value=
o.FAST?"":[]};o.prototype.toString=function(){return o.FAST?this.value:this.value.join("")};var k;k=function(a,b,c,f,d,e){switch(l(a)){case 1:return a(b,c,f,d);case 2:var g=a[0]||"";switch(g){case "$for":a:{var h=a[1]||{},g=[""],j;if(h.hasOwnProperty("count")){j=h.count;n(j)&&(j=j(b,c,f,d));h.hasOwnProperty("data")?(h=h.data,n(h)&&(h=h(b,c,f,d))):h=b;for(b=0;b<j;b++)q(g,r(a,h,b,j,null,e))}else{if(h.hasOwnProperty("in")){var i=h["in"];n(i)&&(i=i(b,c,f,d));if(3===l(i)){h=[];for(j in i)i.hasOwnProperty(j)&&
h.push(j);for(b=0,j=h.length;b<j;b++)q(g,r(a,i[h[b]],b,j,h[b],e));a=g;break a}h=i}else h=h.each,n(h)&&(h=h(b,c,f,d));b=l(h);if(2===b)for(b=0,j=h.length;b<j;b++)q(g,r(a,h[b],b,j,null,e));else 0!==b&&(g=r(a,h,0,1,null,e))}a=g}return a;case "$xor":return B(a,b,c,f,d,e);case "$if":return B(["$xor",a],b,c,f,d,e);case "$call":e=a[1]||{};if(e.view){g=k(e.view,b,c,f,d);h=e.hasOwnProperty("data")?k(e.data,b,c,f,d):b;j=e.hasOwnProperty("index")?k(e.index,b,c,f,d):c;i=e.hasOwnProperty("count")?k(e.count,b,c,
f,d):f;b=e.hasOwnProperty("key")?k(e.key,b,c,f,d):d;c={};for(f=a.length-1;2<=f;f--)d=a[f],e=d[1]||{},e.hasOwnProperty("name")&&(c[e.name]=d);a=g&&n(g.getView)?k(g.getView(),h,j,i,b,c):null}else a=null;return a;case "$part":return g=(a[1]||{}).name||"",g=e&&e.hasOwnProperty(g)?e[g]:a,r(g,b,c,f,d)}g=[g];h=1;for(j=a.length;h<j;h++)q(g,k(a[h],b,c,f,d,e));return g;case 3:e={};for(g in a)a.hasOwnProperty(g)&&(e[g]=k(a[g],b,c,f,d));return e}return a};u=function(a){return n(a)&&n(a.getView)?a:J(a)};u.raw=
function(a){return new y(a)};var M={area:!0,base:!0,basefont:!0,br:!0,col:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,wbr:!0};p.prototype.toString=function(){var a;var b=this.value;try{var c=new o;C(c,b);a=c.toString()}catch(f){a="["+f+"]"}return a};p.prototype.write=function(a){(a||m).write(""+this)};var P={rowspan:"rowSpan",colspan:"colSpan",cellpadding:"cellPadding",cellspacing:"cellSpacing",tabindex:"tabIndex",accesskey:"accessKey",hidefocus:"hideFocus",
usemap:"useMap",maxlength:"maxLength",readonly:"readOnly",contenteditable:"contentEditable"},t={enctype:"encoding",onscroll:"DOMMouseScroll"},N=/^[\r\n]+/,O=/[\r\n]+$/;p.prototype.toDOM=function(a,b){4===l(a)&&(a=m.getElementById(a));var c;try{b&&(c=a,a=null),c=I(c||s(this.value[0]),this.value)}catch(f){c=m.createTextNode("["+f+"]")}a&&a.parentNode&&a.parentNode.replaceChild(c,a);return c};p.prototype.reload=function(){var a=m;try{var b=this.toDOM();a.replaceChild(b,a.documentElement);if(a.createStyleSheet){for(var c=
b.firstChild;c&&"HEAD"!==(c.tagName||"");)c=c.nextSibling;for(var f=c&&c.firstChild;f;){if("LINK"===(f.tagName||""))f.href=f.href;f=f.nextSibling}}}catch(d){a=a.open("text/html"),a.write(this.toString()),a.close()}};return u}(document,window.ScriptEngineMajorVersion);var InterNetris=InterNetris||{};InterNetris.Model=InterNetris.Model||{};InterNetris.Model.Settings={enablePreview:!0,enableStickyDrop:!0,enableUp:!1,labelCells:!1,handicapLines:0,startingLevel:0,previewWidth:6,previewHeight:4,gameWidth:10,gameHeight:20,gameSize:1,theme:"dark"};var InterNetris=InterNetris||{};
(function(d){var c=d.Settings,b=function(a,b){this.id=a;this.player=b||null;this.reset()};b.prototype.reset=function(){this.time=(new Date).valueOf();this.level=this.baseLevel=c.startingLevel;this.interval=this.score=this.lines=this.drop=0};b.prototype.getSpeed=function(){var a=850-50*this.level;return 1<a?a:1};b.prototype.add=function(a){if(0>this.drop)this.drop=0;else if(this.drop>c.gameHeight)this.drop=c.gameHeight;if(0>a||4<a)a=0;this.lines+=a;a=[0,10,25,75,300][a];this.score+=4*(this.level+1)*
a+this.drop;this.drop=0;a=this.level;this.level=this.baseLevel+Math.floor(this.lines/20);return a!==this.level};d.Score=b})(InterNetris.Model=InterNetris.Model||{});var InterNetris=InterNetris||{};
(function(l){var n=l.Settings,a=function(o,a,e){this.pts=o;this.size={x:a,y:e}};a.prototype.isEmpty=!1;a.prototype.label="\u00a0\u00a0\u00a0";a.prototype.name="empty";a.prototype.rotate=function(a){for(this.rot+=a;0>this.rot;)this.rot+=this.pts.length;this.rot%=this.pts.length};a.prototype.move=function(a,b){this.pos&&isFinite(a)&&null!==a&&isFinite(b)&&null!==b&&(this.pos.x+=Number(a),this.pos.y+=Number(b))};a.prototype.setPosition=function(a,b){if(!this.pos)this.pos={};!isFinite(a)||null===a||!isFinite(b)||
null===b?(this.pos.x=null,this.pos.y=null):(this.pos.x=Number(a),this.pos.y=Number(b))};a.prototype.getPosition=function(){return!this.pos||!isFinite(this.pos.x)||null===this.pos.x||!isFinite(this.pos.y)||null===this.pos.y?null:this.pos};a.prototype.getPoints=function(){if(!this.pos||!isFinite(this.pos.x)||null===this.pos.x||!isFinite(this.pos.y)||null===this.pos.y)return null;var a=this.pos.x,b=this.pos.y,e=this.pts[this.rot];if(!e)throw Error("Invalid rotation");var d=[];d.push({x:a,y:b});for(var c=
0;c<e.length;c++)d.push({x:e[c].x+a,y:e[c].y+b});return d};a.prototype.getCSS=function(){return"cell "+this.name};a.prototype.getLabel=function(){return n.labelCells?this.label:a.prototype.label};var d=function(){this.rot=0;this.pos={x:null,y:null}};d.prototype=new a([[{x:0,y:1},{x:1,y:0},{x:1,y:1}]],2,2);d.prototype.label="Box";d.prototype.name="box";var c=function(){this.rot=0;this.pos={x:null,y:null}};c.prototype=new a([[{x:2,y:0},{x:-1,y:0},{x:1,y:0}],[{x:0,y:-1},{x:0,y:1},{x:0,y:-2}]],4,1);c.prototype.label=
"Bar";c.prototype.name="bar";var f=function(){this.rot=0;this.pos={x:null,y:null}};f.prototype=new a([[{x:-1,y:0},{x:1,y:0},{x:0,y:1}],[{x:0,y:1},{x:0,y:-1},{x:-1,y:0}],[{x:1,y:0},{x:-1,y:0},{x:0,y:-1}],[{x:0,y:-1},{x:0,y:1},{x:1,y:0}]],3,2);f.prototype.label="Tee";f.prototype.name="tee";var g=function(){this.rot=0;this.pos={x:null,y:null}};g.prototype=new a([[{x:0,y:1},{x:1,y:1},{x:-1,y:0}],[{x:0,y:1},{x:1,y:0},{x:1,y:-1}]],3,2);g.prototype.label="Zee";g.prototype.name="zee";var h=function(){this.rot=
0;this.pos={x:null,y:null}};h.prototype=new a([[{x:0,y:1},{x:1,y:0},{x:-1,y:1}],[{x:-1,y:0},{x:0,y:1},{x:-1,y:-1}]],3,2);h.prototype.label="Ess";h.prototype.name="ess";var i=function(){this.rot=0;this.pos={x:null,y:null}};i.prototype=new a([[{x:-1,y:0},{x:-1,y:1},{x:1,y:0}],[{x:-1,y:-1},{x:0,y:-1},{x:0,y:1}],[{x:-1,y:0},{x:1,y:-1},{x:1,y:0}],[{x:0,y:1},{x:1,y:1},{x:0,y:-1}]],3,2);i.prototype.label="Ell";i.prototype.name="ell";var j=function(){this.rot=0;this.pos={x:null,y:null}};j.prototype=new a([[{x:-1,
y:0},{x:1,y:1},{x:1,y:0}],[{x:-1,y:1},{x:0,y:-1},{x:0,y:1}],[{x:-1,y:0},{x:-1,y:-1},{x:1,y:0}],[{x:0,y:1},{x:1,y:-1},{x:0,y:-1}]],3,2);j.prototype.label="Jay";j.prototype.name="jay";var m=new a([[]],1,1);m.isEmpty=!0;var k={box:d,bar:c,tee:f,zee:g,ess:h,ell:i,jay:j,"0":d,1:c,2:f,3:g,4:h,5:i,6:j,length:7};l.Netroids={empty:m,next:function(){return new (k[Math.floor(Math.random()*k.length)])},create:function(a,b,c,d){a=new k[a];a.rot=b;a.setPosition(c,d);return a}}})(InterNetris.Model=InterNetris.Model||
{});var InterNetris=InterNetris||{};
(function(g,j){function i(a){var b=[];b.elem=null;for(var c=0;c<a;c++)b[c]={netroid:g.Netroids.empty,elem:null};return b}var d=function(a,b,c){this.id=a;this.width=b;this.height=c;this.reset()};d.prototype.reset=function(){this.netroid=this.gameId=null;this.grid=[];for(var a=0;a<this.height;a++)this.grid[a]=i(this.width)};d.prototype.getPoint=function(a,b){return!isFinite(a)||null===a||!isFinite(b)||null===b||0>b||b>=this.height||0>a||a>=this.width?null:this.grid[b][a].netroid};d.prototype.setPoint=
function(a,b,c){if(isFinite(a)&&!(null===a||!isFinite(b)||null===b||0>b||b>=this.height||0>a||a>=this.width))if(c=c||g.Netroids.empty,a=this.grid[b][a],b=a.elem,a.netroid=c,b&&(b.className=c.getCSS(),g.Settings.labelCells)){for(;b.lastChild;)b.removeChild(b.lastChild);b.appendChild(j.createTextNode(c.getLabel()))}};d.prototype.getRowElem=function(a){return!isFinite(a)||null===a||0>a||a>=this.height?null:this.grid[a].elem||null};d.prototype.hit=function(a){var b,c,e=a?a.getPoints():null;if(e){for(a=
0;a<e.length;a++){b=e[a].x;c=e[a].y;if(0>b||c>=this.height||b>=this.width||(b=this.getPoint(b,c))&&!b.isEmpty)return!0}return!1}return!0};d.prototype.apply=function(a){if(!a)return!1;var b=a.getPoints();if(!b)throw'"'+a.name+'" missing position';for(var c,e,d,h=!1,f=0;f<b.length;f++)c=b[f].x,e=b[f].y,0>c||c>=this.width||e>=this.height?h=!0:(d=this.getPoint(c,e))&&(!d.isEmpty&&d.name!==a.name?h=!0:this.setPoint(c,e,a));return h};d.prototype.remove=function(a){if(!a||a.isEmpty)return!1;var b=a.getPoints();
if(!b)throw'"'+a.name+'" missing position';for(var c,e,d,h=!1,f=0;f<b.length;f++)c=b[f].x,e=b[f].y,0>c||c>=this.width||e>=this.height?h=!0:(d=this.getPoint(c,e))&&(d.name!==a.name?h=!0:this.setPoint(c,e,null));return h};d.prototype.findLines=function(){var a,b,c,d,g=[];for(d=this.height-1;0<=d;d--){a=this.grid[d];b=!1;for(c=this.width-1;0<=c;c--)if(a[c].netroid.isEmpty){b=!0;break}b||g.push(d)}return g};d.prototype.spliceRows=function(a){var b;if(a&&a.length)for(b=a.length-1;0<=b;b--)this.grid.splice(a[b],
1),this.grid.unshift(i(this.width))};d.prototype.setNetroid=function(a){if(!a||a.isEmpty)return this.netroid&&this.netroid.setPosition(null,null),this.netroid=null,!1;a.getPosition()||a.setPosition(Math.floor(this.width/2-1),0);if(this.netroid)throw"collision occurred";this.netroid=a;return this.apply(a)};d.prototype.rotate=function(a){this.netroid&&(this.remove(this.netroid),this.netroid.rotate(a),this.hit(this.netroid)&&this.netroid.rotate(-a),this.apply(this.netroid))};d.prototype.move=function(a,
b){if(this.netroid)if(a=-0.5>=a?-1:0.5<=a?1:0,b=-0.5>=b?-1:0.5<=b?1:0,this.remove(this.netroid),this.netroid.move(a,b),this.hit(this.netroid)){if(this.netroid.move(-a,-b),this.apply(this.netroid),this.onland&&0===a&&1===b)this.onland(this)}else this.apply(this.netroid)};d.prototype.drop=function(){if(!this.netroid)return 0;this.remove(this.netroid);for(var a=0;!this.hit(this.netroid);)a++,this.netroid.move(0,1);a--;this.netroid.move(0,-1);this.apply(this.netroid);if(this.onland&&g.Settings.enableStickyDrop)this.onland(this);
return a};g.Grid=d})(InterNetris.Model=InterNetris.Model||{},document);var InterNetris=InterNetris||{};
(function(f,d){var k=function(){return d.requestAnimationFrame||d.webkitRequestAnimationFrame||d.mozRequestAnimationFrame||d.msRequestAnimationFrame||d.oRequestAnimationFrame||function(b){d.setTimeout(b,1E3/60)}}();f.Fx={fadeOut:function(b,d,h){function i(a){if(a<f)h&&h(),c=null;else{for(var b=0;b<j;b++)g?c[b].opacity=Math.floor(100*a):(c[b]["-khtml-opacity"]=1*a,c[b]["-moz-opacity"]=1*a,c[b].opacity=1*a);k(function(){i(a-l)},null)}}for(var f=0,l=0.05,j=b.length,g=!1,c=[],a=0;a<j;a++)if(b[a].className+=
" "+d,c[a]=b[a].style,b[a].filters){g=!0;c[a].filter+=" progid:DXImageTransform.Microsoft.Alpha(opacity=100) ";var e;try{e=b[a].filters.item("DXImageTransform.Microsoft.Alpha")}catch(m){e=null}if(!e){c[a].filter+=" alpha(opacity=100) ";try{e=b[a].filters.item("alpha")}catch(n){e=null}}e?(c[a].zoom="1",c[a]=e):g=!1}i(1);b=null}}})(InterNetris.View=InterNetris.View||{},window);var InterNetris=InterNetris||{};InterNetris.View=InterNetris.View||{};
InterNetris.View.Instructions=duel(["div",{id:"instructions"}," ",["dl"," ",["dt","New Game"],["dd","Escape"]," "]," ",["dl"," ",["dt","Pause / Unpause"],["dd","Enter"]," "]," ",["dl"," ",["dt","Zoom In"],["dd","+"],["dd","Page Up"]," "]," ",["dl"," ",["dt","Zoom Out"],["dd","-"],["dd","Page Down"]," "]," ",["dl"," ",["dt","Rotate Right 90\u00b0"],["dd","X"],["dd","KeyPad 9"],["dd",">"],["dd","KeyPad 3"]," "]," ",["dl"," ",["dt","Rotate Left -90\u00b0"],["dd","Z"],["dd","KeyPad 7"],["dd","<"],["dd",
"KeyPad 1"]," "]," ",["dl"," ",["dt","Drop"],["dd","Spacebar"]," "]," ",["dl"," ",["dt","Move Left"],["dd","Left Arrow"],["dd","KeyPad 4"]," "]," ",["dl"," ",["dt","Move Right"],["dd","Right Arrow"],["dd","KeyPad 6"]," "]," ",["dl"," ",["dt","Move Down"],["dd","Down Arrow"],["dd","KeyPad 2"]," "]," ",["$if",{test:function(a){return a.enableUp}},["dl"," ",["dt","Move Up",["dd","Up Arrow"],["dd","KeyPad 8"]," "]]]," ",["dl"," ",["dt","Change Themes"],["dd","T"]," "]]);var InterNetris=InterNetris||{};InterNetris.View=InterNetris.View||{};
InterNetris.View.Score=duel(["div",{id:function(a){return a.id}}," ",["div",{"class":"view-score"}," ",["h3"," ",["$if",{test:function(a){return a.playerUrl}},["a",{href:function(a){return a.playerUrl},target:"_top"},function(a){return a.player||a.name}]]," ",["$if",{test:function(a){return!a.playerUrl}},["span",function(a){return a.player||a.name}]]," "]," ",["div",{style:function(a){return a.playerImg?"min-height:50px;background:right center no-repeat url("+a.playerImg+");":null}}," ",["dl"," ",
["dt","Level:"],["dd",function(a){return a.level}]," "]," ",["dl"," ",["dt","Score:"],["dd",function(a){return a.score}]," "]," ",["dl"," ",["dt","Lines:"],["dd",function(a){return a.lines}]," "]," "]," "]]);var InterNetris=InterNetris||{};InterNetris.View=InterNetris.View||{};InterNetris.View.Cell=duel(["td",{"class":function(a){return a.netroid.getCSS()},$init:function(a){return function(){a.elem=this}}}," ",function(a){return a.netroid.getLabel()}]);var InterNetris=InterNetris||{};InterNetris.View=InterNetris.View||{};InterNetris.View.Row=duel(["tr",{"class":"row",$init:function(a){return function(){a.elem=this}}}," ",["$for",{each:function(a){return a}},["$call",{view:function(){return InterNetris.View.Cell}}]]]);var InterNetris=InterNetris||{};InterNetris.View=InterNetris.View||{};InterNetris.View.Grid=duel(["div",{"class":"view-grid",id:function(a){return a.id}}," ",["table",{"class":"grid"}," ",["$for",{each:function(a){return a.grid}},["$call",{view:function(){return InterNetris.View.Row}}]]," "]]);var InterNetris=InterNetris||{};InterNetris.View=InterNetris.View||{};
InterNetris.View.Board=duel(["div",{id:"board"}," ",["div",{id:"info"}," ",["div",{id:"start-btn"}," ",["a",{"class":"pause-game",href:"#pause",onclick:function(a){return a.stop}},"Pause Game"]," ",["a",{"class":"start-game",href:"#start",onclick:function(a){return a.start}},"Continue Game"]," ",["a",{"class":"reset-game",href:"#reset",onclick:function(a){return a.reset}},"Start New Game"]," "]," ",["$call",{view:function(){return InterNetris.View.Instructions},data:function(a){return a.settings}}],
" "]," ",["$call",{view:function(){return InterNetris.View.Grid},data:function(a){return a.playerGrid}}]," ",["div",{id:"stats"}," ",["div",{id:"header"}," ",["h1",["a",{href:"/",target:"_top"},"InterNetris"]]," "]," ",["$call",{view:function(){return InterNetris.View.Score},data:function(a){return a.playerScore}}]," ",["$call",{view:function(){return InterNetris.View.Grid},data:function(a){return a.preview}}]," ",["$call",{view:function(){return InterNetris.View.Score},data:function(a){return a.replayScore}}],
" ",["$call",{view:function(){return InterNetris.View.Grid},data:function(a){return a.replayGrid}}]," "]," ",["div",{id:"copyright"}," ",["p","Copyright \u00a92007-2010 ",["a",{href:"http://mck.me"},"Stephen M. McKamey"]]," "]]);var InterNetris=InterNetris||{},_gaq=[["_setAccount","UA-1294169-3"],["_setAllowLinker",!0],["_trackPageview"]];(function(d,b){var a=b.createElement("script"),c=b.getElementsByTagName("script")[0];a.src=("https:"===b.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";a.type="text/javascript";a.async=!0;c.parentNode.insertBefore(a,c);d.GA={trackEvent:function(a,b,c,d){_gaq.push(["_trackEvent",a,b,c,d])}}})(InterNetris,document);var InterNetris=InterNetris||{};
(function(m,k,h){function D(a,b,c){"function"===typeof c?a.addEventListener?a.addEventListener(b,c,!1):a["on"+b]=c:"string"===typeof c&&(a["on"+b]=new Function("event",c))}function r(a){if(a)if(a.preventDefault)a.stopPropagation(),a.preventDefault();else try{a.cancelBubble=!0,a.returnValue=!1}catch(b){}return!1}function I(a,b){a&&b&&(a.className+=" "+b)}function u(a,b){if(a&&b){for(var c=a.className.split(" "),d=0;d<c.length;d++)if(!c[d]||c[d]===b)c.splice(d,1),d--;a.className=c.join(" ")}}function z(a,
b){if(a){for(var c="-"+b,d=h.body.className.split(" "),e=0;e<d.length;e++)if(!d[e]||0<=d[e].indexOf(c))d.splice(e,1),e--;d.push(a+c);h.body.className=d.join(" ");i[b]=a}}function K(a){var b=function(){if(a.length&&!g.interval){var c=a.shift(),d=o.Netroids.create(c.t,c.r,c.x,c.y);j.apply(d);var e=j.findLines();if(e&&e.length)n.drop=c.d,n.add(e.length),setTimeout(function(){j.spliceRows(e);l.Grid(j).toDOM(j.id);l.Score(n).toDOM(n.id)},125);setTimeout(b,250)}};setTimeout(b,500)}function J(a){if(a&&!g.interval){j.reset();
n.reset();if(a.p)n.player=a.p;l.Score(n).toDOM(n.id);l.Grid(j).toDOM(j.id);K(a.m)}}function p(a){if(g.interval)clearInterval(g.interval),g.interval=0;I(h.body,"paused");return r(a)}function A(a,b){if(b&&a&&!a.netroid){var c=b.netroid,d=o.Netroids.next();d.setPosition(Math.floor(b.width/2)-1,Math.floor(b.height/2)-1);c&&(b.remove(c),b.setNetroid(null),c.setPosition(null,null),a.setNetroid(c)&&(q=!0,p(),u(h.body,"paused"),u(h.body,"playing"),B(E,"game-over",v,g.score),m.FB&&m.FB.publish(g),s&&J(s)));
b.setNetroid(d)}}function w(a){F=!0;g.interval&&clearInterval(g.interval);g.interval=setInterval(function(){g.interval&&(q?p():f.netroid&&f.move(0,1))},g.getSpeed());u(h.body,"paused");I(h.body,"playing");return r(a)}function C(a){a&&0<=(""+a.type).indexOf("touch")&&(v=m.FB?"facebook-touch":"standard-touch");if(!q){if(!k.confirm("Are you sure you want to start a new game?"))return r(a);p();B(E,"reset-game",v,g.score)}B(E,"new-game",v,g.score);F&&(f.reset(),l.Grid(f).toDOM(f.id),g.reset(),l.Score(g).toDOM(g.id),
s=null);f.netroid||A(f,x);f.gameId=void 0;q=F=!1;t={};u(h.body,"paused");u(h.body,"playing");w();return r(a)}function L(a,b){if(a){var c=a.findLines();if(c&&c.length){b&&b.add(c.length)&&p();for(var d=[],e=c.length-1;0<=e;e--)d[e]=a.getRowElem(c[e]);l.Fx.fadeOut(d,"row-completed",function(){a.spliceRows(c);l.Grid(a).toDOM(a.id);l.Score(b).toDOM(b.id);A(f,x);w();a=b=null})}else A(f,x)}}function y(a){i.gameSize=0<a?a:i.gameSize;h.body.style.fontSize=i.gameSize+"em";a=h.documentElement;a=a.offsetWidth/
a.offsetHeight;z(0.8>a?"narrow":1.05>a?"portrait":1.15>a?"square":1.35>a?"standard":1.5>a?"landscape":"widescreen","aspect")}function G(){y(h.documentElement.offsetHeight/(2*i.gameHeight+5)/16);h.body.focus&&h.body.focus()}if(k.top!==k.self)k.top.location=k.self.location;var o=m.Model,l=m.View,B=m.GA.trackEvent,E="Gameplay",v=m.FB?"facebook":"standard",M=0,i=o.Settings,q=!0,F=!1,s=null,t={},f=new o.Grid("player-grid",i.gameWidth,i.gameHeight),g=f.score=new o.Score("player-score","Player"),j=new o.Grid("replay-grid",
i.gameWidth,i.gameHeight),n=j.score=new o.Score("replay-score","Demo"),x=new o.Grid("preview-grid",i.previewWidth,i.previewHeight);k.onerror=function(a,b,c){a=a+" ["+b+","+c+"]";h.location.port?k.alert(a):B("Error",v,a,++M)};f.onland=function(a){var b=(new Date).valueOf(),c=a.score||{},d=a.netroid,e=d.getPosition();e&&(b={c:b-c.time,t:d.name,r:d.rot,x:e.x,y:e.y,d:c.drop},s||(s={p:"Replay",m:[]}),s.m.push(b));a.apply(d);a.setNetroid(null);t={};L(a,c)};var H=function(a){a=a.timeStamp;return!a?Date.now||
(new Date).getTime():a instanceof Date?a.getTime():a};h.addEventListener&&(h.addEventListener("touchstart",function(a){if(g.interval&&f.netroid)for(var b=0,c=a.changedTouches.length;b<c;b++){var d=a.changedTouches[b],d={id:"_"+d.identifier,x:d.clientX,y:d.clientY,netroid:(f.netroid.getPosition()||{}).x,t:H(a),start:!0};t[d.id]=d}},!1),h.addEventListener("touchmove",function(a){a.preventDefault();if(g.interval&&f.netroid)for(var b=0,c=a.changedTouches.length;b<c;b++){var d=a.changedTouches[b],e=t["_"+
d.identifier];if(e){b=d.clientX;d=d.clientY;c=(f.netroid.getPosition()||{}).x;H(a);a=h.getElementById("player-grid").offsetWidth/i.gameWidth;b=Math.round((b-e.x)/a)-(c-e.netroid);a=Math.round((d-e.y)/a);if(b&&Math.abs(b)>=Math.abs(a)){a=b;for(b=0>a?-1:1;0!==a;a-=b)f.move(b,0);e.start=!1}break}}},!1),h.addEventListener("touchend",function(a){if(g.interval){if(f.netroid)for(var b=0,c=a.changedTouches.length;b<c;b++){var d=a.changedTouches[b],e=t["_"+d.identifier];delete t["_"+d.identifier];if(0===b&&
e&&e.start){var k=d.clientX,j=d.clientY,l=(f.netroid.getPosition()||{}).x,d=H(a),m=h.getElementById("player-grid").offsetWidth/i.gameWidth,l=Math.round((k-e.x)/m)-(l-e.netroid),j=Math.round((j-e.y)/m),e=d-e.t;!l&&!j?f.rotate(k<h.body.offsetWidth/2?-1:1):1<j&&250>e?g.drop=f.drop():0>j&&250>e&&p()}}}else q?C(a):w()},!1));D(h,"keydown",function(a){a=a||k.event;if(g.interval)switch(a.keyCode){case 40:case 98:a.repeat?g.drop++:g.drop=1;f.move(0,1);break;case 88:case 190:case 105:case 101:case 99:f.rotate(1);
break;case 90:case 188:case 103:case 97:f.rotate(-1);break;case 37:case 100:f.move(-1,0);break;case 39:case 102:f.move(1,0);break;case 32:g.drop=f.drop();break;case 38:case 104:i.enableUp&&f.move(0,-1);break;case 13:p();break;case 84:z("light"===i.theme?"dark":"light","theme");break;case 109:case 189:case 34:y(0.9*i.gameSize);break;case 61:case 107:case 187:case 33:y(1.1*i.gameSize);break;case 65:break;case 27:C(a);break;default:return}else switch(a.keyCode){case 13:q||w();break;case 84:z("light"===
i.theme?"dark":"light","theme");break;case 109:case 189:case 34:y(0.9*i.gameSize);break;case 61:case 107:case 187:case 33:y(1.1*i.gameSize);break;case 56:case 106:G();break;case 27:C(a);break;default:return}return r(a)});z(i.theme,"theme");G();D(k,"beforeunload",function(a){a=a||k.event;if(g.interval)a.returnValue="Your game is still playing. Leaving will end your game."});h.attachEvent||D(k,"resize",G);l.Board({playerGrid:f,playerScore:g,preview:x,settings:i,replayGrid:j,replayScore:n,stop:p,start:function(a){return q?
r(a):w(a)},reset:C}).toDOM("board");A(f,x);m.FB&&m.FB.init(g);J({p:"Demo",c:0,m:[{t:4,c:0,r:0,x:1,y:18,d:17},{t:3,c:0,r:1,x:0,y:17,d:16},{t:3,c:0,r:1,x:0,y:15,d:14},{t:3,c:0,r:1,x:0,y:13,d:12},{t:5,c:0,r:2,x:3,y:19,d:18},{t:6,c:0,r:2,x:6,y:19,d:17},{t:3,c:0,r:1,x:3,y:17,d:15},{t:6,c:0,r:0,x:7,y:18,d:15},{t:6,c:0,r:2,x:6,y:17,d:16},{t:2,c:0,r:3,x:2,y:16,d:15},{t:4,c:0,r:1,x:3,y:14,d:13},{t:0,c:0,r:0,x:4,y:14,d:14},{t:0,c:0,r:0,x:6,y:15,d:14},{t:6,c:0,r:0,x:5,y:13,d:11},{t:6,c:0,r:3,x:8,y:16,d:13},
{t:3,c:0,r:1,x:3,y:13,d:11},{t:2,c:0,r:3,x:0,y:12,d:10},{t:3,c:0,r:1,x:2,y:12,d:11},{t:3,c:0,r:0,x:1,y:10,d:8},{t:3,c:0,r:0,x:2,y:9,d:8},{t:5,c:0,r:1,x:5,y:12,d:11},{t:5,c:0,r:1,x:7,y:14,d:12},{t:1,c:0,r:1,x:9,y:18,d:17},{t:3,c:0,r:0,x:4,y:13,d:12},{t:5,c:0,r:3,x:8,y:18,d:16},{t:5,c:0,r:1,x:9,y:18,d:16},{t:3,c:0,r:1,x:0,y:15,d:13},{t:2,c:0,r:1,x:5,y:15,d:12},{t:2,c:0,r:3,x:3,y:14,d:13},{t:2,c:0,r:3,x:0,y:13,d:10},{t:5,c:0,r:0,x:8,y:18,d:17},{t:0,c:0,r:0,x:8,y:16,d:14},{t:1,c:0,r:1,x:2,y:14,d:12},
{t:6,c:0,r:3,x:6,y:18,d:17},{t:1,c:0,r:1,x:9,y:17,d:15},{t:1,c:0,r:1,x:8,y:17,d:16},{t:6,c:0,r:1,x:7,y:18,d:16},{t:1,c:0,r:1,x:6,y:18,d:16},{t:3,c:0,r:0,x:4,y:18,d:17},{t:0,c:0,r:0,x:8,y:16,d:15},{t:0,c:0,r:0,x:8,y:14,d:13},{t:5,c:0,r:1,x:7,y:18,d:17},{t:4,c:0,r:1,x:1,y:18,d:17},{t:4,c:0,r:1,x:5,y:18,d:17},{t:4,c:0,r:1,x:2,y:18,d:16},{t:5,c:0,r:1,x:3,y:18,d:17},{t:5,c:0,r:2,x:6,y:19,d:18},{t:0,c:0,r:0,x:8,y:16,d:14},{t:3,c:0,r:1,x:6,y:18,d:17},{t:2,c:0,r:3,x:0,y:18,d:14},{t:1,c:0,r:1,x:3,y:17,d:14},
{t:0,c:0,r:0,x:4,y:18,d:18},{t:6,c:0,r:2,x:5,y:18,d:15},{t:1,c:0,r:1,x:2,y:18,d:14},{t:3,c:0,r:0,x:5,y:17,d:16},{t:0,c:0,r:0,x:8,y:16,d:14},{t:4,c:0,r:1,x:1,y:18,d:16},{t:0,c:0,r:0,x:8,y:15,d:13},{t:0,c:0,r:0,x:8,y:13,d:11},{t:2,c:0,r:0,x:1,y:17,d:15},{t:4,c:0,r:1,x:7,y:18,d:16},{t:0,c:0,r:0,x:0,y:17,d:15},{t:4,c:0,r:1,x:7,y:18,d:17},{t:4,c:0,r:1,x:7,y:16,d:13},{t:1,c:0,r:1,x:5,y:18,d:17},{t:2,c:0,r:0,x:7,y:14,d:2},{t:5,c:0,r:1,x:2,y:17,d:15},{t:5,c:0,r:0,x:1,y:15,d:13},{t:5,c:0,r:3,x:3,y:18,d:15},
{t:6,c:0,r:0,x:8,y:14,d:10},{t:4,c:0,r:1,x:4,y:17,d:16},{t:2,c:0,r:3,x:4,y:18,d:17},{t:4,c:0,r:1,x:5,y:18,d:16},{t:2,c:0,r:0,x:6,y:17,d:16},{t:1,c:0,r:1,x:0,y:18,d:16},{t:6,c:0,r:0,x:7,y:16,d:15},{t:1,c:0,r:1,x:1,y:18,d:17},{t:4,c:0,r:0,x:5,y:15,d:14},{t:3,c:0,r:0,x:7,y:14,d:10},{t:4,c:0,r:1,x:8,y:13,d:10},{t:4,c:0,r:0,x:5,y:13,d:11},{t:5,c:0,r:3,x:2,y:18,d:16},{t:3,c:0,r:1,x:4,y:13,d:7},{t:5,c:0,r:1,x:3,y:18,d:17},{t:0,c:0,r:0,x:0,y:16,d:14},{t:4,c:0,r:1,x:8,y:13,d:11},{t:4,c:0,r:1,x:8,y:11,d:8},
{t:3,c:0,r:1,x:4,y:12,d:11},{t:0,c:0,r:0,x:2,y:16,d:15},{t:1,c:0,r:1,x:9,y:18,d:16},{t:2,c:0,r:2,x:1,y:18,d:16},{t:3,c:0,r:1,x:0,y:16,d:14},{t:1,c:0,r:1,x:6,y:16,d:14},{t:1,c:0,r:1,x:9,y:17,d:15},{t:6,c:0,r:1,x:3,y:16,d:10},{t:6,c:0,r:3,x:2,y:16,d:13},{t:3,c:0,r:1,x:0,y:16,d:14},{t:4,c:0,r:1,x:9,y:16,d:14},{t:0,c:0,r:0,x:5,y:15,d:11},{t:1,c:0,r:1,x:0,y:15,d:13},{t:6,c:0,r:0,x:3,y:16,d:15},{t:5,c:0,r:0,x:5,y:16,d:14},{t:6,c:0,r:0,x:2,y:17,d:16},{t:1,c:0,r:1,x:9,y:17,d:15},{t:2,c:0,r:3,x:7,y:17,d:15},
{t:1,c:0,r:1,x:1,y:17,d:15},{t:2,c:0,r:1,x:8,y:16,d:12},{t:4,c:0,r:0,x:3,y:17,d:16},{t:3,c:0,r:0,x:5,y:17,d:16},{t:3,c:0,r:1,x:2,y:17,d:16},{t:1,c:0,r:1,x:0,y:17,d:15},{t:6,c:0,r:0,x:5,y:17,d:15},{t:3,c:0,r:1,x:2,y:17,d:13},{t:2,c:0,r:1,x:9,y:17,d:14},{t:5,c:0,r:2,x:5,y:17,d:15},{t:2,c:0,r:3,x:1,y:16,d:14},{t:5,c:0,r:3,x:4,y:15,d:13},{t:6,c:0,r:3,x:7,y:17,d:16},{t:2,c:0,r:3,x:0,y:17,d:15},{t:5,c:0,r:1,x:5,y:17,d:16},{t:0,c:0,r:0,x:2,y:17,d:16},{t:5,c:0,r:2,x:2,y:16,d:15},{t:4,c:0,r:0,x:2,y:14,d:13},
{t:6,c:0,r:2,x:7,y:18,d:15},{t:1,c:0,r:1,x:9,y:17,d:14},{t:5,c:0,r:3,x:7,y:17,d:13},{t:5,c:0,r:1,x:8,y:17,d:14},{t:5,c:0,r:3,x:4,y:16,d:14},{t:4,c:0,r:1,x:9,y:15,d:8},{t:0,c:0,r:0,x:2,y:14,d:9},{t:3,c:0,r:1,x:0,y:16,d:14},{t:6,c:0,r:0,x:3,y:13,d:9},{t:1,c:0,r:1,x:6,y:17,d:10},{t:6,c:0,r:3,x:5,y:17,d:15},{t:5,c:0,r:1,x:7,y:17,d:15},{t:2,c:0,r:1,x:9,y:16,d:9},{t:0,c:0,r:0,x:0,y:16,d:14},{t:4,c:0,r:1,x:5,y:16,d:13},{t:4,c:0,r:0,x:8,y:16,d:13},{t:1,c:0,r:1,x:0,y:17,d:15},{t:3,c:0,r:1,x:6,y:17,d:15},{t:5,
c:0,r:2,x:2,y:18,d:16},{t:0,c:0,r:0,x:1,y:17,d:15},{t:4,c:0,r:1,x:5,y:17,d:13},{t:2,c:0,r:0,x:6,y:17,d:14},{t:4,c:0,r:1,x:3,y:17,d:16},{t:0,c:0,r:0,x:8,y:17,d:15},{t:4,c:0,r:1,x:3,y:16,d:14},{t:1,c:0,r:1,x:0,y:17,d:15},{t:4,c:0,r:1,x:3,y:14,d:12},{t:0,c:0,r:0,x:8,y:16,d:14},{t:3,c:0,r:1,x:4,y:16,d:14},{t:3,c:0,r:1,x:4,y:14,d:13},{t:3,c:0,r:0,x:3,y:12,d:12},{t:2,c:0,r:3,x:6,y:16,d:9},{t:5,c:0,r:2,x:8,y:15,d:13},{t:6,c:0,r:2,x:7,y:14,d:12},{t:4,c:0,r:1,x:4,y:11,d:10},{t:2,c:0,r:2,x:8,y:13,d:11},{t:1,
c:0,r:1,x:1,y:17,d:16},{t:5,c:0,r:3,x:0,y:16,d:13},{t:6,c:0,r:3,x:1,y:16,d:14},{t:5,c:0,r:0,x:1,y:15,d:14},{t:5,c:0,r:0,x:6,y:17,d:13},{t:2,c:0,r:1,x:9,y:16,d:14},{t:0,c:0,r:0,x:0,y:14,d:12},{t:2,c:0,r:1,x:7,y:17,d:15},{t:2,c:0,r:0,x:5,y:17,d:16},{t:1,c:0,r:1,x:9,y:16,d:13},{t:6,c:0,r:0,x:7,y:17,d:16},{t:1,c:0,r:1,x:2,y:17,d:14},{t:6,c:0,r:2,x:4,y:18,d:15},{t:5,c:0,r:0,x:5,y:18,d:16},{t:2,c:0,r:2,x:4,y:18,d:16},{t:5,c:0,r:3,x:0,y:17,d:15},{t:5,c:0,r:1,x:1,y:16,d:15},{t:0,c:0,r:0,x:7,y:18,d:16},{t:2,
c:0,r:0,x:3,y:17,d:15},{t:1,c:0,r:1,x:9,y:16,d:14},{t:0,c:0,r:0,x:7,y:17,d:16},{t:1,c:0,r:1,x:8,y:15,d:10},{t:4,c:0,r:1,x:6,y:18,d:16},{t:2,c:0,r:0,x:6,y:18,d:16},{t:2,c:0,r:2,x:6,y:18,d:16},{t:0,c:0,r:0,x:3,y:18,d:16},{t:1,c:0,r:1,x:9,y:15,d:13},{t:2,c:0,r:1,x:7,y:16,d:13},{t:0,c:0,r:0,x:4,y:16,d:15},{t:2,c:0,r:1,x:2,y:18,d:11},{t:4,c:0,r:0,x:6,y:15,d:11},{t:2,c:0,r:1,x:3,y:17,d:16},{t:0,c:0,r:0,x:0,y:17,d:15},{t:1,c:0,r:1,x:8,y:17,d:14},{t:0,c:0,r:0,x:1,y:17,d:15},{t:2,c:0,r:0,x:4,y:17,d:17},{t:5,
c:0,r:2,x:6,y:16,d:14},{t:3,c:0,r:1,x:4,y:15,d:14},{t:3,c:0,r:1,x:6,y:14,d:11},{t:3,c:0,r:1,x:4,y:13,d:12},{t:3,c:0,r:1,x:6,y:12,d:10},{t:3,c:0,r:1,x:4,y:11,d:10},{t:4,c:0,r:1,x:9,y:14,d:12},{t:4,c:0,r:1,x:9,y:12,d:10},{t:3,c:0,r:1,x:6,y:10,d:9},{t:0,c:0,r:0,x:2,y:15,d:14},{t:2,c:0,r:1,x:9,y:10,d:8},{t:3,c:0,r:1,x:0,y:16,d:14},{t:6,c:0,r:2,x:2,y:16,d:14},{t:5,c:0,r:3,x:2,y:14,d:12},{t:3,c:0,r:1,x:4,y:11,d:9},{t:4,c:0,r:1,x:8,y:10,d:8},{t:4,c:0,r:1,x:9,y:9,d:7},{t:5,c:0,r:1,x:3,y:13,d:11},{t:0,c:0,
r:0,x:0,y:13,d:11},{t:3,c:0,r:1,x:3,y:12,d:9},{t:2,c:0,r:3,x:0,y:14,d:12},{t:0,c:0,r:0,x:1,y:14,d:12},{t:3,c:0,r:1,x:3,y:12,d:4},{t:2,c:0,r:1,x:9,y:11,d:9},{t:5,c:0,r:1,x:6,y:14,d:13},{t:4,c:0,r:0,x:3,y:11,d:4},{t:2,c:0,r:2,x:6,y:13,d:10},{t:1,c:0,r:1,x:0,y:18,d:16},{t:0,c:0,r:0,x:1,y:17,d:1},{t:2,c:0,r:0,x:7,y:15,d:12},{t:5,c:0,r:1,x:5,y:15,d:13},{t:5,c:0,r:0,x:4,y:13,d:10},{t:1,c:0,r:1,x:0,y:18,d:16},{t:3,c:0,r:1,x:1,y:18,d:15},{t:1,c:0,r:1,x:0,y:18,d:15},{t:3,c:0,r:1,x:1,y:18,d:14},{t:6,c:0,r:2,
x:4,y:17,d:14},{t:1,c:0,r:1,x:9,y:18,d:16},{t:0,c:0,r:0,x:7,y:18,d:16},{t:2,c:0,r:0,x:1,y:16,d:15},{t:0,c:0,r:0,x:4,y:15,d:12},{t:5,c:0,r:0,x:7,y:17,d:16},{t:0,c:0,r:0,x:7,y:17,d:15},{t:1,c:0,r:1,x:9,y:16,d:14},{t:0,c:0,r:0,x:7,y:15,d:12},{t:6,c:0,r:2,x:1,y:17,d:15},{t:5,c:0,r:0,x:4,y:16,d:16},{t:2,c:0,r:1,x:1,y:15,d:12},{t:6,c:0,r:2,x:4,y:15,d:13},{t:6,c:0,r:1,x:8,y:13,d:8},{t:6,c:0,r:1,x:5,y:13,d:8},{t:4,c:0,r:1,x:2,y:13,d:7},{t:1,c:0,r:1,x:6,y:18,d:16},{t:1,c:0,r:1,x:6,y:17,d:10},{t:2,c:0,r:1,
x:3,y:15,d:13},{t:3,c:0,r:1,x:2,y:13,d:12},{t:1,c:0,r:1,x:0,y:16,d:14},{t:3,c:0,r:1,x:2,y:12,d:7},{t:3,c:0,r:1,x:4,y:15,d:11},{t:1,c:0,r:1,x:9,y:16,d:14},{t:1,c:0,r:1,x:9,y:12,d:6},{t:6,c:0,r:3,x:7,y:16,d:14},{t:4,c:0,r:1,x:1,y:15,d:13},{t:5,c:0,r:0,x:7,y:15,d:13},{t:2,c:0,r:1,x:1,y:14,d:10},{t:3,c:0,r:1,x:0,y:12,d:10},{t:2,c:0,r:3,x:2,y:12,d:10},{t:4,c:0,r:1,x:3,y:10,d:7},{t:3,c:0,r:1,x:0,y:10,d:8},{t:0,c:0,r:0,x:7,y:14,d:12},{t:2,c:0,r:3,x:0,y:8,d:5},{t:5,c:0,r:0,x:5,y:15,d:10},{t:3,c:0,r:1,x:4,
y:16,d:13},{t:2,c:0,r:3,x:4,y:15,d:12},{t:4,c:0,r:1,x:5,y:13,d:10},{t:0,c:0,r:0,x:7,y:15,d:13},{t:1,c:0,r:1,x:6,y:16,d:14},{t:5,c:0,r:2,x:8,y:17,d:14},{t:3,c:0,r:0,x:6,y:16,d:14},{t:1,c:0,r:1,x:9,y:15,d:12},{t:3,c:0,r:1,x:3,y:15,d:14},{t:2,c:0,r:0,x:2,y:14,d:5},{t:3,c:0,r:0,x:7,y:15,d:13},{t:4,c:0,r:1,x:4,y:13,d:6},{t:3,c:0,r:0,x:2,y:13,d:7},{t:2,c:0,r:3,x:5,y:15,d:13},{t:3,c:0,r:0,x:7,y:14,d:11},{t:4,c:0,r:1,x:5,y:13,d:11},{t:2,c:0,r:3,x:2,y:12,d:10},{t:2,c:0,r:3,x:0,y:13,d:8},{t:2,c:0,r:1,x:1,y:11,
d:9},{t:1,c:0,r:1,x:8,y:16,d:14},{t:1,c:0,r:1,x:9,y:15,d:12},{t:0,c:0,r:0,x:6,y:15,d:14},{t:2,c:0,r:1,x:8,y:15,d:12},{t:5,c:0,r:3,x:3,y:14,d:5},{t:4,c:0,r:0,x:6,y:15,d:13},{t:1,c:0,r:1,x:9,y:14,d:11},{t:6,c:0,r:3,x:2,y:14,d:7},{t:3,c:0,r:1,x:0,y:14,d:12},{t:5,c:0,r:0,x:6,y:15,d:13},{t:6,c:0,r:0,x:7,y:15,d:11},{t:3,c:0,r:1,x:4,y:15,d:13},{t:1,c:0,r:1,x:0,y:16,d:3},{t:5,c:0,r:2,x:7,y:16,d:12},{t:0,c:0,r:0,x:8,y:13,d:8},{t:0,c:0,r:0,x:6,y:14,d:13},{t:2,c:0,r:0,x:4,y:15,d:14},{t:0,c:0,r:0,x:8,y:12,d:6},
{t:2,c:0,r:3,x:1,y:16,d:14},{t:6,c:0,r:3,x:2,y:18,d:12},{t:2,c:0,r:2,x:2,y:18,d:15},{t:1,c:0,r:1,x:0,y:17,d:15},{t:6,c:0,r:1,x:7,y:17,d:11},{t:5,c:0,r:1,x:4,y:18,d:15},{t:6,c:0,r:3,x:5,y:18,d:16},{t:6,c:0,r:2,x:4,y:18,d:13},{t:3,c:0,r:1,x:1,y:18,d:16},{t:6,c:0,r:0,x:5,y:18,d:16},{t:6,c:0,r:2,x:8,y:19,d:16},{t:4,c:0,r:1,x:1,y:18,d:16}]})})(InterNetris,window,document);
