(function(d){d.extend({gameQuery:{Animation:function(a){a=d.extend({imageURL:"",numberOfFrame:1,delta:0,rate:30,type:0,distance:0,offsetx:0,offsety:0},a);this.imageURL=a.imageURL;this.numberOfFrame=a.numberOfFrame;this.delta=a.delta;this.rate=a.rate;this.type=a.type;this.distance=a.distance;this.offsetx=a.offsetx;this.offsety=a.offsety;d.gameQuery.resourceManager.addAnimation(this);return true},ANIMATION_VERTICAL:1,ANIMATION_HORIZONTAL:2,ANIMATION_ONCE:4,ANIMATION_CALLBACK:8,ANIMATION_MULTI:16,GEOMETRY_RECTANGLE:1,
GEOMETRY_DISC:2,refreshRate:30,resourceManager:{animations:[],sounds:[],callbacks:[],running:false,preload:function(){for(var a=this.animations.length-1;a>=0;a--){this.animations[a].domO=new Image;this.animations[a].domO.src=this.animations[a].imageURL}for(a=this.sounds.length-1;a>=0;a--)this.sounds[a].load();d.gameQuery.resourceManager.waitForResources()},waitForResources:function(){var a=d.gameQuery.loadbar!=undefined;if(a){d(d.gameQuery.loadbar.id).width(0);var b=d.gameQuery.loadbar.width/(this.animations.length+
this.sounds.length)}for(var c=0,e=0;e<this.animations.length;e++)this.animations[e].domO.complete&&c++;var g=0;for(e=0;e<this.sounds.length;e++)this.sounds[e].ready()&&g++;if(a){d("#"+d.gameQuery.loadbar.id).width((c+g)*b);d.gameQuery.loadbar.callback&&d.gameQuery.loadbar.callback((c+g)/(this.animations.length+this.sounds.length)*100)}d.gameQuery.resourceManager.loadCallback&&d.gameQuery.resourceManager.loadCallback((c+g)/(this.animations.length+this.sounds.length)*100);if(c+g<this.animations.length+
this.sounds.length)imgWait=setTimeout(function(){d.gameQuery.resourceManager.waitForResources()},100);else{d.gameQuery.sceengraph.children().each(function(){d(this).children().each(arguments.callee);if(this.gameQuery&&this.gameQuery.animation){d(this).css("background-image","url("+this.gameQuery.animation.imageURL+")");if(this.gameQuery.animation.type&d.gameQuery.ANIMATION_VERTICAL)d(this).css("background-repeat","repeat-x");else this.gameQuery.animation.type&d.gameQuery.ANIMATION_HORIZONTAL?d(this).css("background-repeat",
"repeat-y"):d(this).css("background-repeat","no-repeat")}});d.gameQuery.resourceManager.running=true;setInterval(function(){d.gameQuery.resourceManager.refresh()},d.gameQuery.refreshRate);d.gameQuery.startCallback&&d.gameQuery.startCallback();d.gameQuery.sceengraph.css("visibility","visible")}},refreshSprite:function(){if(this.gameQuery!=undefined){var a=this.gameQuery;if(a.animation){if(a.idleCounter==a.animation.rate-1){if(a.animation.type&d.gameQuery.ANIMATION_ONCE)if(a.currentFrame<a.animation.numberOfFrame-
2)a.currentFrame++;else{if(a.currentFrame==a.animation.numberOfFrame-2){a.currentFrame++;a.animation.type&d.gameQuery.ANIMATION_CALLBACK&&d.isFunction(a.callback)&&a.callback(this)}}else{a.currentFrame=(a.currentFrame+1)%a.animation.numberOfFrame;a.currentFrame==0&&a.animation.type&d.gameQuery.ANIMATION_CALLBACK&&d.isFunction(a.callback)&&a.callback(this)}if(a.animation.type&d.gameQuery.ANIMATION_VERTICAL)a.multi?d(this).css("background-position",""+(-a.animation.offsetx-a.multi)+"px "+(-a.animation.offsety-
a.animation.delta*a.currentFrame)+"px"):d(this).css("background-position",""+-a.animation.offsetx+"px "+(-a.animation.offsety-a.animation.delta*a.currentFrame)+"px");else if(a.animation.type&d.gameQuery.ANIMATION_HORIZONTAL)a.multi?d(this).css("background-position",""+(-a.animation.offsetx-a.animation.delta*a.currentFrame)+"px "+(-a.animation.offsety-a.multi)+"px"):d(this).css("background-position",""+(-a.animation.offsetx-a.animation.delta*a.currentFrame)+"px "+-a.animation.offsety+"px")}a.idleCounter=
(a.idleCounter+1)%a.animation.rate}}return true},refreshTilemap:function(){if(this.gameQuery!=undefined){var a=this.gameQuery;if(d.isArray(a.frameTracker))for(var b=0;b<a.frameTracker.length;b++){if(a.idleCounter[b]==a.animations[b].rate-1)if(a.animations[b].type&d.gameQuery.ANIMATION_ONCE)a.frameTracker[b]<a.animations[b].numberOfFrame-1&&a.frameTracker[b]++;else a.frameTracker[b]=(a.frameTracker[b]+1)%a.animations[b].numberOfFrame;a.idleCounter[b]=(a.idleCounter[b]+1)%a.animations[b].rate}else{if(a.idleCounter==
a.animations.rate-1)if(a.animations.type&d.gameQuery.ANIMATION_ONCE)a.frameTracker<a.animations.numberOfFrame-1&&a.frameTracker++;else a.frameTracker=(a.frameTracker+1)%a.animations.numberOfFrame;a.idleCounter=(a.idleCounter+1)%a.animations.rate}d(this).find(".active").each(function(){if(d.isArray(a.frameTracker)){var c=this.gameQuery.animationNumber;if(a.animations[c].type&d.gameQuery.ANIMATION_VERTICAL)d(this).css("background-position",""+-a.animations[c].offsetx+"px "+(-a.animations[c].offsety-
a.animations[c].delta*a.frameTracker[c])+"px");else a.animations[c].type&d.gameQuery.ANIMATION_HORIZONTAL&&d(this).css("background-position",""+(-a.animations[c].offsetx-a.animations[c].delta*a.frameTracker[c])+"px "+-a.animations[c].offsety+"px")}else if(a.animations.type&d.gameQuery.ANIMATION_VERTICAL)d(this).css("background-position",""+(-a.animations.offsetx-this.gameQuery.multi)+"px "+(-a.animations.offsety-a.animations.delta*a.frameTracker)+"px");else a.animations.type&d.gameQuery.ANIMATION_HORIZONTAL&&
d(this).css("background-position",""+(-a.animations.offsetx-a.animations.delta*a.frameTracker)+"px "+(-a.animations.offsety-this.gameQuery.multi)+"px")})}return true},refresh:function(){d.gameQuery.playground.find(".sprite").each(this.refreshSprite);d.gameQuery.playground.find(".tileSet").each(this.refreshTilemap);for(var a=[],b=this.callbacks.length-1;b>=0;b--){if(this.callbacks[b].idleCounter==this.callbacks[b].rate-1){var c=this.callbacks[b].fn();if(typeof c=="boolean")c&&a.push(b);else if(typeof c==
"number"){this.callbacks[b].rate=Math.round(c/d.gameQuery.refreshRate);this.callbacks[b].idleCounter=0}}this.callbacks[b].idleCounter=(this.callbacks[b].idleCounter+1)%this.callbacks[b].rate}for(b=a.length-1;b>=0;b--)this.callbacks.splice(a[b],1)},addAnimation:function(a){if(d.inArray(a,this.animations)<0){a.rate=Math.round(a.rate/d.gameQuery.refreshRate);if(a.rate==0)a.rate=1;this.animations.push(a)}},addSound:function(a){d.inArray(a,this.sounds)<0&&this.sounds.push(a)},registerCallback:function(a,
b){b=Math.round(b/d.gameQuery.refreshRate);if(b==0)b=1;this.callbacks.push({fn:a,rate:b,idleCounter:0})}},update:function(a,b){var c=d.isPlainObject(a)?a:a.length>0?a[0].gameQuery:a.gameQuery;if(c)if(c.tileSet===true){a=d(a);var e=d.gameQuery.playground.offset(),g=a.offset();for(property in b)switch(property){case "left":var f=parseFloat(b.left);e=d.gameQuery.playground.offset();g=a.parent().offset();g={top:g.top-e.top,left:g.left+f-e.left};f=Math.max(Math.min(Math.floor(-g.left/c.width),c.sizex),
0);var i=Math.max(Math.min(Math.ceil((d.gameQuery.playground[0].width-g.left)/c.width),c.sizex),0);for(g=c.firstRow;g<c.lastRow;g++){for(e=c.firstColumn;e<f;e++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).removeClass("active");for(e=c.lastColumn;e<i;e++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).addClass("active");for(e=i;e<c.lastColumn;e++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).removeClass("active");for(e=f;e<c.firstColumn;e++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).addClass("active")}c.firstColumn=f;c.lastColumn=
i;break;case "top":f=parseFloat(b.top);e=d.gameQuery.playground.offset();g=a.parent().offset();g={top:g.top+f-e.top,left:g.left-e.left};f=Math.max(Math.min(Math.floor(-g.top/c.height),c.sizey),0);i=Math.max(Math.min(Math.ceil((d.gameQuery.playground[0].height-g.top)/c.height),c.sizey),0);for(e=c.firstColumn;e<c.lastColumn;e++){for(g=c.firstRow;g<f;g++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).removeClass("active");for(g=c.lastRow;g<i;g++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).addClass("active");for(g=i;g<
c.lastRow;g++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).removeClass("active");for(g=f;g<c.firstRow;g++)d("#tile_"+a.attr("id")+"_"+g+"_"+e).addClass("active")}c.firstRow=f;c.lastRow=i}}else{g=d.gameQuery.playground&&!d.gameQuery.playground.disableCollision;for(property in b)switch(property){case "left":c.posx=parseFloat(b.left);if(g)c.boundingCircle.x=c.posx+c.width/2;break;case "top":c.posy=parseFloat(b.top);if(g)c.boundingCircle.y=c.posy+c.height/2;break;case "width":c.width=parseFloat(b.width);break;
case "height":c.height=parseFloat(b.height);break;case "angle":c.angle=parseFloat(b.angle);break;case "factor":c.factor=parseFloat(b.factor);if(g)c.boundingCircle.radius=c.factor*c.boundingCircle.originalRadius}}},proj:function(a,b){switch(a.geometry){case d.gameQuery.GEOMETRY_RECTANGLE:var c=b*Math.PI*2/360;return{x:Math.abs(Math.cos(c)*a.width/2*a.factor)+Math.abs(Math.sin(c)*a.height/2*a.factor),y:Math.abs(Math.cos(c)*a.height/2*a.factor)+Math.abs(Math.sin(c)*a.width/2*a.factor)}}},collide:function(a,
b,c,e){if(a.geometry==d.gameQuery.GEOMETRY_RECTANGLE&&c.geometry==d.gameQuery.GEOMETRY_RECTANGLE){var g=e.x+c.boundingCircle.x-a.boundingCircle.x-b.x;b=e.y+c.boundingCircle.y-a.boundingCircle.y-b.y;e=Math.atan(b/g);var f=Math.abs(Math.cos(e-a.angle*Math.PI*2/360)/Math.cos(e)*g),i=Math.abs(Math.sin(e-a.angle*Math.PI*2/360)/Math.sin(e)*b),h=d.gameQuery.proj(c,c.angle-a.angle);if(a.width/2*a.factor+h.x<=f||a.height/2*a.factor+h.y<=i)return false;else{f=Math.abs(Math.cos(e-c.angle*Math.PI*2/360)/Math.cos(e)*
-g);i=Math.abs(Math.sin(e-c.angle*Math.PI*2/360)/Math.sin(e)*-b);h=d.gameQuery.proj(a,a.angle-c.angle);return c.width/2*c.factor+h.x<=f||c.height/2*c.factor+h.y<=i?false:true}}else return false}},playground:function(){return d.gameQuery.playground},loadCallback:function(a){d.gameQuery.resourceManager.loadCallback=a}});d.fn.extend({playground:function(a){if(this.length==1){if(this[0]==document)throw"Old playground usage, use $.playground() to retreive the playground and $('mydiv').playground(options) to set the div!";
a=d.extend({height:320,width:480,refreshRate:30,position:"absolute",keyTracker:false,disableCollision:false},a);d.gameQuery.playground=this;d.gameQuery.refreshRate=a.refreshRate;d.gameQuery.playground[0].height=a.height;d.gameQuery.playground[0].width=a.width;d.gameQuery.playground.css({position:a.position,display:"block",overflow:"hidden",height:a.height+"px",width:a.width+"px"}).append("<div id='sceengraph' style='visibility: hidden'/>");d.gameQuery.sceengraph=d("#sceengraph");d.gameQuery.keyTracker=
{};if(a.keyTracker){d(document).keydown(function(b){d.gameQuery.keyTracker[b.keyCode]=true});d(document).keyup(function(b){d.gameQuery.keyTracker[b.keyCode]=false})}}return this},startGame:function(a){d.gameQuery.startCallback=a;d.gameQuery.resourceManager.preload();return this},addGroup:function(a,b){b=d.extend({width:32,height:32,posx:0,posy:0,overflow:"visible",geometry:d.gameQuery.GEOMETRY_RECTANGLE,angle:0,factor:1},b);var c="<div id='"+a+"' class='group' style='position: absolute; display: block; overflow: "+
b.overflow+"; top: "+b.posy+"px; left: "+b.posx+"px; height: "+b.height+"px; width: "+b.width+"px;' />";if(this==d.gameQuery.playground)d.gameQuery.sceengraph.append(c);else if(this==d.gameQuery.sceengraph||this.hasClass("group"))this.append(c);c=d("#"+a);c[0].gameQuery=b;c[0].gameQuery.boundingCircle={x:b.posx+b.width/2,y:b.posy+b.height/0,originalRadius:Math.sqrt(Math.pow(b.width,2)+Math.pow(b.height,2))/2};c[0].gameQuery.boundingCircle.radius=c[0].gameQuery.boundingCircle.originalRadius;c[0].gameQuery.group=
true;return this.pushStack(c)},addSprite:function(a,b){b=d.extend({width:32,height:32,posx:0,posy:0,idleCounter:0,currentFrame:0,geometry:d.gameQuery.GEOMETRY_RECTANGLE,angle:0,factor:1},b);var c="<div id='"+a+"' class='sprite' style='position: absolute; display: block; overflow: hidden; height: "+b.height+"px; width: "+b.width+"px; left: "+b.posx+"px; top: "+b.posy+"px; background-position: "+(b.animation?-b.animation.offsetx:0)+"px "+(b.animation?-b.animation.offsety:0)+"px;' />";this==d.gameQuery.playground?
d.gameQuery.sceengraph.append(c):this.append(c);if(b.animation){d.gameQuery.resourceManager.running&&d("#"+a).css("background-image","url("+b.animation.imageURL+")");if(b.animation.type&d.gameQuery.ANIMATION_VERTICAL)d("#"+a).css("background-repeat","repeat-x");else b.animation.type&d.gameQuery.ANIMATION_HORIZONTAL?d("#"+a).css("background-repeat","repeat-y"):d("#"+a).css("background-repeat","no-repeat")}c=d("#"+a)[0];if(c!=undefined){c.gameQuery=b;c.gameQuery.boundingCircle={x:b.posx+b.width/2,y:b.posy+
b.height/2,originalRadius:Math.sqrt(Math.pow(b.width,2)+Math.pow(b.height,2))/2};c.gameQuery.boundingCircle.radius=c.gameQuery.boundingCircle.originalRadius}return this},removeSprite:function(){this.remove();return this},addTilemap:function(a,b,c,e){e=d.extend({width:32,height:32,sizex:32,sizey:32,posx:0,posy:0},e);var g=d("<div class='tileSet' style='position: absolute; display: block; overflow: hidden;' />");g.css({top:e.posy,left:e.posx,height:e.height*e.sizey,width:e.width*e.sizex}).attr("id",
a);this==d.gameQuery.playground?d.gameQuery.sceengraph.append(g):this.append(g);if(d.isArray(c)){for(var f=[],i=[],h=0;h<c.length;h++){f[h]=0;i[h]=0}g[0].gameQuery=e;g[0].gameQuery.frameTracker=f;g[0].gameQuery.animations=c;g[0].gameQuery.idleCounter=i}else{g[0].gameQuery=e;g[0].gameQuery.frameTracker=0;g[0].gameQuery.animations=c;g[0].gameQuery.idleCounter=0}g[0].gameQuery.tileSet=true;if(typeof b=="function")for(h=0;h<e.sizey;h++)for(f=0;f<e.sizex;f++){if(b(h,f)!=0)if(d.isArray(c)){g.addSprite("tile_"+
a+"_"+h+"_"+f,{width:e.width,height:e.height,posx:f*e.width,posy:h*e.height,animation:c[b(h,f)-1]});i=d("#tile_"+a+"_"+h+"_"+f);i.removeClass("sprite");i.addClass("tileType_"+(b(h,f)-1));i[0].gameQuery.animationNumber=b(h,f)-1}else{g.addSprite("tile_"+a+"_"+h+"_"+f,{width:e.width,height:e.height,posx:f*e.width,posy:h*e.height,animation:c});i=d("#tile_"+a+"_"+h+"_"+f);i.setAnimation(b(h,f)-1);i.removeClass("sprite");i.addClass("tileType_"+(b(h,f)-1))}}else if(typeof b=="object")for(h=0;h<b.length;h++)for(f=
0;f<b[0].length;f++)if(b[h][f]!=0)if(d.isArray(c)){g.addSprite("tile_"+a+"_"+h+"_"+f,{width:e.width,height:e.height,posx:f*e.width,posy:h*e.height,animation:c[b[h][f]-1]});i=d("#tile_"+a+"_"+h+"_"+f);i.removeClass("sprite");i.addClass("tileType_"+(b[h][f]-1));i[0].gameQuery.animationNumber=b[h][f]-1}else{g.addSprite("tile_"+a+"_"+h+"_"+f,{width:e.width,height:e.height,posx:f*e.width,posy:h*e.height,animation:c});i=d("#tile_"+a+"_"+h+"_"+f);i.setAnimation(b[h][f]-1);i.removeClass("active");i.addClass("tileType_"+
(b[h][f]-1))}f=d.gameQuery.playground.offset();h=g.offset();h={top:h.top-f.top,left:h.left-f.left};f=Math.max(Math.min(Math.floor(-h.top/e.height),e.sizey),0);b=Math.max(Math.min(Math.ceil((d.gameQuery.playground[0].height-h.top)/e.height),e.sizey),0);c=Math.max(Math.min(Math.floor(-h.left/e.width),e.sizex),0);e=Math.max(Math.min(Math.ceil((d.gameQuery.playground[0].width-h.left)/e.width),e.sizex),0);g[0].gameQuery.firstRow=f;g[0].gameQuery.lastRow=b;g[0].gameQuery.firstColumn=c;g[0].gameQuery.lastColumn=
e;for(h=f;h<b;h++)for(f=c;f<e;f++)d("#tile_"+a+"_"+h+"_"+f).toggleClass("active");return this.pushStack(g)},setAnimation:function(a,b){var c=this[0].gameQuery;if(typeof a=="number"){if(c.animation.type&d.gameQuery.ANIMATION_MULTI){var e=c.animation.distance*a;c.multi=e;if(c.animation.type&d.gameQuery.ANIMATION_VERTICAL){c.currentFrame=0;this.css("background-position",""+(-e-c.animation.offsetx)+"px "+-c.animation.offsety+"px")}else if(c.animation.type&d.gameQuery.ANIMATION_HORIZONTAL){c.currentFrame=
0;this.css("background-position",""+-c.animation.offsetx+"px "+(-e-c.animation.offsety)+"px")}}}else if(a){c.animation=a;c.currentFrame=0;this.css({"background-image":"url("+a.imageURL+")","background-position":""+-a.offsetx+"px "+-a.offsety+"px"});if(c.animation.type&d.gameQuery.ANIMATION_VERTICAL)this.css("background-repeat","repeat-x");else c.animation.type&d.gameQuery.ANIMATION_HORIZONTAL?this.css("background-repeat","repeat-y"):this.css("background-repeat","no-repeat")}else this.css("background-image",
"");if(b!=undefined)this[0].gameQuery.callback=b;return this},addSound:function(a,b){if(d.gameQuery.SoundWrapper){var c=this[0].gameQuery;if(b){var e=c.sounds;if(e)e.push(a);else c.sounds=[a]}else c.sounds=[a]}return this},playSound:function(){d(this).each(function(){var a=this.gameQuery;if(a.sounds)for(var b=a.sounds.length-1;b>=0;b--)a.sounds[b].play()});return this},stopSound:function(){d(this).each(function(){var a=this.gameQuery;if(a.sounds)for(var b=a.sounds.length-1;b>=0;b--)a.sounds[b].stop()});
return this},pauseSound:function(){d(this).each(function(){var a=this.gameQuery;if(a.sounds)for(var b=a.sounds.length-1;b>=0;b--)a.sounds[b].pause()});return this},registerCallback:function(a,b){d.gameQuery.resourceManager.registerCallback(a,b);return this},setLoadBar:function(a,b,c){d.gameQuery.loadbar={id:a,width:b,callback:c};return this},collision:function(a){for(var b=[],c=this[0].parentNode,e=0,g=0;c!=d.gameQuery.playground[0];){if(c.gameQuery){e+=c.gameQuery.posx;g+=c.gameQuery.posy}c=c.parentNode}c=
this[0].gameQuery;var f={top:0,left:0,bottom:d.playground().height(),right:d.playground().width()};if(c.boundingCircle.y+c.boundingCircle.radius+g<f.top||c.boundingCircle.x+c.boundingCircle.radius+e<f.left||c.boundingCircle.y-c.boundingCircle.radius+g>f.bottom||c.boundingCircle.x-c.boundingCircle.radius+e>f.right)return this.pushStack(new d([]));if(this!=d.gameQuery.playground){f=[];f.push(d.gameQuery.sceengraph.children(a).get());f[0].offsetX=0;for(var i=f[0].offsetY=0,h=f.length;i<h;i++)for(var k=
f[i].length;k--;){var j=f[i][k];if(j.gameQuery){!j.gameQuery.group&&!j.gameQuery.tileSet&&this[0]!=j&&Math.sqrt(Math.pow(g+c.boundingCircle.y-f[i].offsetY-j.gameQuery.boundingCircle.y,2)+Math.pow(e+c.boundingCircle.x-f[i].offsetX-j.gameQuery.boundingCircle.x,2))-c.boundingCircle.radius-j.gameQuery.boundingCircle.radius<=0&&d.gameQuery.collide(c,{x:e,y:g},j.gameQuery,{x:f[i].offsetX,y:f[i].offsetY})&&b.push(f[i][k]);var l=d(j).children(a);if(l.length){f.push(l.get());f[h].offsetX=j.gameQuery.posx+
f[i].offsetX;f[h].offsetY=j.gameQuery.posy+f[i].offsetY;h++}}}return this.pushStack(d(b))}},transform:function(a,b){var c=this[0].gameQuery;d.gameQuery.update(c,{angle:a,factor:b});if(this.css("MozTransform")){c="rotate("+a+"deg) scale("+b+")";this.css("MozTransform",c)}else if(this.css("WebkitTransform")!==null&&this.css("WebkitTransform")!==undefined){c="rotate("+a+"deg) scale("+b+")";this.css("WebkitTransform",c)}else if(this.css("filter")!==undefined){var e=Math.PI*2/360*a,g=Math.cos(e)*b,f=Math.sin(e)*
b;e=this.width();var i=this.height();this.css("filter","progid:DXImageTransform.Microsoft.Matrix(M11="+g+",M12="+-f+",M21="+f+",M22="+g+",SizingMethod='auto expand',FilterType='nearest neighbor')");g=this.width();f=this.height();this.css("left",""+(c.posx-(g-e)/2)+"px");this.css("top",""+(c.posy-(f-i)/2)+"px")}return this},rotate:function(a){var b=this[0].gameQuery;if(a!==undefined)return this.transform(a%360,this.scale());else return(a=b.angle)?a:0},scale:function(a){var b=this[0].gameQuery;if(a!==
undefined)return this.transform(this.rotate(),a);else return(a=b.factor)?a:1}});d.cssHooks.left={set:function(a,b){d.gameQuery.update(a,{left:b});return b}};d.cssHooks.top={set:function(a,b){d.gameQuery.update(a,{top:b});return b}};d.cssHooks.width={set:function(a,b){d.gameQuery.update(a,{width:b});return b}};d.cssHooks.height={set:function(a,b){d.gameQuery.update(a,{height:b});return b}}})(jQuery);
