403Webshell
Server IP : 162.0.232.140  /  Your IP : 18.117.230.120
Web Server : LiteSpeed
System : Linux premium139.web-hosting.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User : micrcvoy ( 740)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/micrcvoy/www/uploads/slider/jawaker/jawaker_files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/micrcvoy/www/uploads/slider/jawaker/jawaker_files/application.js
/*!
 * jQuery JavaScript Library v1.7
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Nov 3 16:18:21 2011 -0400
 */
(function(bd,M){var av=bd.document,bx=bd.navigator,bo=bd.location;var b=(function(){var bI=function(b4,b5){return new bI.fn.init(b4,b5,bG)},bY=bd.jQuery,bK=bd.$,bG,b2=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bQ=/\S/,bM=/^\s+/,bH=/\s+$/,bL=/\d/,bD=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bR=/^[\],:{}\s]*$/,b0=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bT=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bN=/(?:^|:|,)(?:\s*\[)+/g,bB=/(webkit)[ \/]([\w.]+)/,bV=/(opera)(?:.*version)?[ \/]([\w.]+)/,bU=/(msie) ([\w.]+)/,bW=/(mozilla)(?:.*? rv:([\w.]+))?/,bE=/-([a-z]|[0-9])/ig,b3=/^-ms-/,bX=function(b4,b5){return(b5+"").toUpperCase()},b1=bx.userAgent,bZ,bF,e,bP=Object.prototype.toString,bJ=Object.prototype.hasOwnProperty,bC=Array.prototype.push,bO=Array.prototype.slice,bS=String.prototype.trim,by=Array.prototype.indexOf,bA={};bI.fn=bI.prototype={constructor:bI,init:function(b4,b8,b7){var b6,b9,b5,ca;if(!b4){return this}if(b4.nodeType){this.context=this[0]=b4;this.length=1;return this}if(b4==="body"&&!b8&&av.body){this.context=av;this[0]=av.body;this.selector=b4;this.length=1;return this}if(typeof b4==="string"){if(b4.charAt(0)==="<"&&b4.charAt(b4.length-1)===">"&&b4.length>=3){b6=[null,b4,null]}else{b6=b2.exec(b4)}if(b6&&(b6[1]||!b8)){if(b6[1]){b8=b8 instanceof bI?b8[0]:b8;ca=(b8?b8.ownerDocument||b8:av);b5=bD.exec(b4);if(b5){if(bI.isPlainObject(b8)){b4=[av.createElement(b5[1])];bI.fn.attr.call(b4,b8,true)}else{b4=[ca.createElement(b5[1])]}}else{b5=bI.buildFragment([b6[1]],[ca]);b4=(b5.cacheable?bI.clone(b5.fragment):b5.fragment).childNodes}return bI.merge(this,b4)}else{b9=av.getElementById(b6[2]);if(b9&&b9.parentNode){if(b9.id!==b6[2]){return b7.find(b4)}this.length=1;this[0]=b9}this.context=av;this.selector=b4;return this}}else{if(!b8||b8.jquery){return(b8||b7).find(b4)}else{return this.constructor(b8).find(b4)}}}else{if(bI.isFunction(b4)){return b7.ready(b4)}}if(b4.selector!==M){this.selector=b4.selector;this.context=b4.context}return bI.makeArray(b4,this)},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return bO.call(this,0)},get:function(b4){return b4==null?this.toArray():(b4<0?this[this.length+b4]:this[b4])},pushStack:function(b5,b7,b4){var b6=this.constructor();if(bI.isArray(b5)){bC.apply(b6,b5)}else{bI.merge(b6,b5)}b6.prevObject=this;b6.context=this.context;if(b7==="find"){b6.selector=this.selector+(this.selector?" ":"")+b4}else{if(b7){b6.selector=this.selector+"."+b7+"("+b4+")"}}return b6},each:function(b5,b4){return bI.each(this,b5,b4)},ready:function(b4){bI.bindReady();bF.add(b4);return this},eq:function(b4){return b4===-1?this.slice(b4):this.slice(b4,+b4+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bO.apply(this,arguments),"slice",bO.call(arguments).join(","))},map:function(b4){return this.pushStack(bI.map(this,function(b6,b5){return b4.call(b6,b5,b6)}))},end:function(){return this.prevObject||this.constructor(null)},push:bC,sort:[].sort,splice:[].splice};bI.fn.init.prototype=bI.fn;bI.extend=bI.fn.extend=function(){var cd,b6,b4,b5,ca,cb,b9=arguments[0]||{},b8=1,b7=arguments.length,cc=false;if(typeof b9==="boolean"){cc=b9;b9=arguments[1]||{};b8=2}if(typeof b9!=="object"&&!bI.isFunction(b9)){b9={}}if(b7===b8){b9=this;--b8}for(;b8<b7;b8++){if((cd=arguments[b8])!=null){for(b6 in cd){b4=b9[b6];b5=cd[b6];if(b9===b5){continue}if(cc&&b5&&(bI.isPlainObject(b5)||(ca=bI.isArray(b5)))){if(ca){ca=false;cb=b4&&bI.isArray(b4)?b4:[]}else{cb=b4&&bI.isPlainObject(b4)?b4:{}}b9[b6]=bI.extend(cc,cb,b5)}else{if(b5!==M){b9[b6]=b5}}}}}return b9};bI.extend({noConflict:function(b4){if(bd.$===bI){bd.$=bK}if(b4&&bd.jQuery===bI){bd.jQuery=bY}return bI},isReady:false,readyWait:1,holdReady:function(b4){if(b4){bI.readyWait++}else{bI.ready(true)}},ready:function(b4){if((b4===true&&!--bI.readyWait)||(b4!==true&&!bI.isReady)){if(!av.body){return setTimeout(bI.ready,1)}bI.isReady=true;if(b4!==true&&--bI.readyWait>0){return}bF.fireWith(av,[bI]);if(bI.fn.trigger){bI(av).trigger("ready").unbind("ready")}}},bindReady:function(){if(bF){return}bF=bI.Callbacks("once memory");if(av.readyState==="complete"){return setTimeout(bI.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bd.addEventListener("load",bI.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bd.attachEvent("onload",bI.ready);var b4=false;try{b4=bd.frameElement==null}catch(b5){}if(av.documentElement.doScroll&&b4){bz()}}}},isFunction:function(b4){return bI.type(b4)==="function"},isArray:Array.isArray||function(b4){return bI.type(b4)==="array"},isWindow:function(b4){return b4&&typeof b4==="object"&&"setInterval" in b4},isNumeric:function(b4){return b4!=null&&bL.test(b4)&&!isNaN(b4)},type:function(b4){return b4==null?String(b4):bA[bP.call(b4)]||"object"},isPlainObject:function(b6){if(!b6||bI.type(b6)!=="object"||b6.nodeType||bI.isWindow(b6)){return false}try{if(b6.constructor&&!bJ.call(b6,"constructor")&&!bJ.call(b6.constructor.prototype,"isPrototypeOf")){return false}}catch(b5){return false}var b4;for(b4 in b6){}return b4===M||bJ.call(b6,b4)},isEmptyObject:function(b5){for(var b4 in b5){return false}return true},error:function(b4){throw b4},parseJSON:function(b4){if(typeof b4!=="string"||!b4){return null}b4=bI.trim(b4);if(bd.JSON&&bd.JSON.parse){return bd.JSON.parse(b4)}if(bR.test(b4.replace(b0,"@").replace(bT,"]").replace(bN,""))){return(new Function("return "+b4))()}bI.error("Invalid JSON: "+b4)},parseXML:function(b6){var b4,b5;try{if(bd.DOMParser){b5=new DOMParser();b4=b5.parseFromString(b6,"text/xml")}else{b4=new ActiveXObject("Microsoft.XMLDOM");b4.async="false";b4.loadXML(b6)}}catch(b7){b4=M}if(!b4||!b4.documentElement||b4.getElementsByTagName("parsererror").length){bI.error("Invalid XML: "+b6)}return b4},noop:function(){},globalEval:function(b4){if(b4&&bQ.test(b4)){(bd.execScript||function(b5){bd["eval"].call(bd,b5)})(b4)}},camelCase:function(b4){return b4.replace(b3,"ms-").replace(bE,bX)},nodeName:function(b5,b4){return b5.nodeName&&b5.nodeName.toUpperCase()===b4.toUpperCase()},each:function(b7,ca,b6){var b5,b8=0,b9=b7.length,b4=b9===M||bI.isFunction(b7);if(b6){if(b4){for(b5 in b7){if(ca.apply(b7[b5],b6)===false){break}}}else{for(;b8<b9;){if(ca.apply(b7[b8++],b6)===false){break}}}}else{if(b4){for(b5 in b7){if(ca.call(b7[b5],b5,b7[b5])===false){break}}}else{for(;b8<b9;){if(ca.call(b7[b8],b8,b7[b8++])===false){break}}}}return b7},trim:bS?function(b4){return b4==null?"":bS.call(b4)}:function(b4){return b4==null?"":b4.toString().replace(bM,"").replace(bH,"")},makeArray:function(b7,b5){var b4=b5||[];if(b7!=null){var b6=bI.type(b7);if(b7.length==null||b6==="string"||b6==="function"||b6==="regexp"||bI.isWindow(b7)){bC.call(b4,b7)}else{bI.merge(b4,b7)}}return b4},inArray:function(b6,b7,b5){var b4;if(b7){if(by){return by.call(b7,b6,b5)}b4=b7.length;b5=b5?b5<0?Math.max(0,b4+b5):b5:0;for(;b5<b4;b5++){if(b5 in b7&&b7[b5]===b6){return b5}}}return -1},merge:function(b8,b6){var b7=b8.length,b5=0;if(typeof b6.length==="number"){for(var b4=b6.length;b5<b4;b5++){b8[b7++]=b6[b5]}}else{while(b6[b5]!==M){b8[b7++]=b6[b5++]}}b8.length=b7;return b8},grep:function(b5,ca,b4){var b6=[],b9;b4=!!b4;for(var b7=0,b8=b5.length;b7<b8;b7++){b9=!!ca(b5[b7],b7);if(b4!==b9){b6.push(b5[b7])}}return b6},map:function(b4,cb,cc){var b9,ca,b8=[],b6=0,b5=b4.length,b7=b4 instanceof bI||b5!==M&&typeof b5==="number"&&((b5>0&&b4[0]&&b4[b5-1])||b5===0||bI.isArray(b4));if(b7){for(;b6<b5;b6++){b9=cb(b4[b6],b6,cc);if(b9!=null){b8[b8.length]=b9}}}else{for(ca in b4){b9=cb(b4[ca],ca,cc);if(b9!=null){b8[b8.length]=b9}}}return b8.concat.apply([],b8)},guid:1,proxy:function(b8,b7){if(typeof b7==="string"){var b6=b8[b7];b7=b8;b8=b6}if(!bI.isFunction(b8)){return M}var b4=bO.call(arguments,2),b5=function(){return b8.apply(b7,b4.concat(bO.call(arguments)))};b5.guid=b8.guid=b8.guid||b5.guid||bI.guid++;return b5},access:function(b4,cc,ca,b6,b9,cb){var b5=b4.length;if(typeof cc==="object"){for(var b7 in cc){bI.access(b4,b7,cc[b7],b6,b9,ca)}return b4}if(ca!==M){b6=!cb&&b6&&bI.isFunction(ca);for(var b8=0;b8<b5;b8++){b9(b4[b8],cc,b6?ca.call(b4[b8],b8,b9(b4[b8],cc)):ca,cb)}return b4}return b5?b9(b4[0],cc):M},now:function(){return(new Date()).getTime()},uaMatch:function(b5){b5=b5.toLowerCase();var b4=bB.exec(b5)||bV.exec(b5)||bU.exec(b5)||b5.indexOf("compatible")<0&&bW.exec(b5)||[];return{browser:b4[1]||"",version:b4[2]||"0"}},sub:function(){function b4(b7,b8){return new b4.fn.init(b7,b8)}bI.extend(true,b4,this);b4.superclass=this;b4.fn=b4.prototype=this();b4.fn.constructor=b4;b4.sub=this.sub;b4.fn.init=function b6(b7,b8){if(b8&&b8 instanceof bI&&!(b8 instanceof b4)){b8=b4(b8)}return bI.fn.init.call(this,b7,b8,b5)};b4.fn.init.prototype=b4.fn;var b5=b4(av);return b4},browser:{}});bI.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b5,b4){bA["[object "+b4+"]"]=b4.toLowerCase()});bZ=bI.uaMatch(b1);if(bZ.browser){bI.browser[bZ.browser]=true;bI.browser.version=bZ.version}if(bI.browser.webkit){bI.browser.safari=true}if(bQ.test("\xA0")){bM=/^[\s\xA0]+/;bH=/[\s\xA0]+$/}bG=bI(av);if(av.addEventListener){e=function(){av.removeEventListener("DOMContentLoaded",e,false);bI.ready()}}else{if(av.attachEvent){e=function(){if(av.readyState==="complete"){av.detachEvent("onreadystatechange",e);bI.ready()}}}}function bz(){if(bI.isReady){return}try{av.documentElement.doScroll("left")}catch(b4){setTimeout(bz,1);return}bI.ready()}if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return bI})}return bI})();var a4={};function Y(e){var by=a4[e]={},bz,bA;e=e.split(/\s+/);for(bz=0,bA=e.length;bz<bA;bz++){by[e[bz]]=true}return by}b.Callbacks=function(bz){bz=bz?(a4[bz]||Y(bz)):{};var bE=[],bF=[],bA,bB,by,bC,bD,bH=function(bI){var bJ,bM,bL,bK,bN;for(bJ=0,bM=bI.length;bJ<bM;bJ++){bL=bI[bJ];bK=b.type(bL);if(bK==="array"){bH(bL)}else{if(bK==="function"){if(!bz.unique||!bG.has(bL)){bE.push(bL)}}}}},e=function(bJ,bI){bI=bI||[];bA=!bz.memory||[bJ,bI];bB=true;bD=by||0;by=0;bC=bE.length;for(;bE&&bD<bC;bD++){if(bE[bD].apply(bJ,bI)===false&&bz.stopOnFalse){bA=true;break}}bB=false;if(bE){if(!bz.once){if(bF&&bF.length){bA=bF.shift();bG.fireWith(bA[0],bA[1])}}else{if(bA===true){bG.disable()}else{bE=[]}}}},bG={add:function(){if(bE){var bI=bE.length;bH(arguments);if(bB){bC=bE.length}else{if(bA&&bA!==true){by=bI;e(bA[0],bA[1])}}}return this},remove:function(){if(bE){var bI=arguments,bK=0,bL=bI.length;for(;bK<bL;bK++){for(var bJ=0;bJ<bE.length;bJ++){if(bI[bK]===bE[bJ]){if(bB){if(bJ<=bC){bC--;if(bJ<=bD){bD--}}}bE.splice(bJ--,1);if(bz.unique){break}}}}}return this},has:function(bJ){if(bE){var bI=0,bK=bE.length;for(;bI<bK;bI++){if(bJ===bE[bI]){return true}}}return false},empty:function(){bE=[];return this},disable:function(){bE=bF=bA=M;return this},disabled:function(){return !bE},lock:function(){bF=M;if(!bA||bA===true){bG.disable()}return this},locked:function(){return !bF},fireWith:function(bJ,bI){if(bF){if(bB){if(!bz.once){bF.push([bJ,bI])}}else{if(!(bz.once&&bA)){e(bJ,bI)}}}return this},fire:function(){bG.fireWith(this,arguments);return this},fired:function(){return !!bA}};return bG};var aK=[].slice;b.extend({Deferred:function(bB){var bA=b.Callbacks("once memory"),bz=b.Callbacks("once memory"),by=b.Callbacks("memory"),e="pending",bD={resolve:bA,reject:bz,notify:by},bF={done:bA.add,fail:bz.add,progress:by.add,state:function(){return e},isResolved:bA.fired,isRejected:bz.fired,then:function(bH,bG,bI){bE.done(bH).fail(bG).progress(bI);return this},always:function(){return bE.done.apply(bE,arguments).fail.apply(bE,arguments)},pipe:function(bI,bH,bG){return b.Deferred(function(bJ){b.each({done:[bI,"resolve"],fail:[bH,"reject"],progress:[bG,"notify"]},function(bL,bO){var bK=bO[0],bN=bO[1],bM;if(b.isFunction(bK)){bE[bL](function(){bM=bK.apply(this,arguments);if(bM&&b.isFunction(bM.promise)){bM.promise().then(bJ.resolve,bJ.reject,bJ.notify)}else{bJ[bN+"With"](this===bE?bJ:this,[bM])}})}else{bE[bL](bJ[bN])}})}).promise()},promise:function(bH){if(bH==null){bH=bF}else{for(var bG in bF){bH[bG]=bF[bG]}}return bH}},bE=bF.promise({}),bC;for(bC in bD){bE[bC]=bD[bC].fire;bE[bC+"With"]=bD[bC].fireWith}bE.done(function(){e="resolved"},bz.disable,by.lock).fail(function(){e="rejected"},bA.disable,by.lock);if(bB){bB.call(bE,bE)}return bE},when:function(bD){var bA=aK.call(arguments,0),by=0,e=bA.length,bE=new Array(e),bz=e,bB=e,bF=e<=1&&bD&&b.isFunction(bD.promise)?bD:b.Deferred(),bH=bF.promise();function bG(bI){return function(bJ){bA[bI]=arguments.length>1?aK.call(arguments,0):bJ;if(!(--bz)){bF.resolveWith(bF,bA)}}}function bC(bI){return function(bJ){bE[bI]=arguments.length>1?aK.call(arguments,0):bJ;bF.notifyWith(bH,bE)}}if(e>1){for(;by<e;by++){if(bA[by]&&bA[by].promise&&b.isFunction(bA[by].promise)){bA[by].promise().then(bG(by),bF.reject,bC(by))}else{--bz}}if(!bz){bF.resolveWith(bF,bA)}}else{if(bF!==bD){bF.resolveWith(bF,e?[bD]:[])}}return bH}});b.support=(function(){var bI=av.createElement("div"),bP=av.documentElement,bB,bQ,bJ,bz,bH,bC,bF,by,bG,bK,bE,bO,bM,bA,bD,bL,bR;bI.setAttribute("className","t");bI.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>";bB=bI.getElementsByTagName("*");bQ=bI.getElementsByTagName("a")[0];if(!bB||!bB.length||!bQ){return{}}bJ=av.createElement("select");bz=bJ.appendChild(av.createElement("option"));bH=bI.getElementsByTagName("input")[0];bF={leadingWhitespace:(bI.firstChild.nodeType===3),tbody:!bI.getElementsByTagName("tbody").length,htmlSerialize:!!bI.getElementsByTagName("link").length,style:/top/.test(bQ.getAttribute("style")),hrefNormalized:(bQ.getAttribute("href")==="/a"),opacity:/^0.55/.test(bQ.style.opacity),cssFloat:!!bQ.style.cssFloat,unknownElems:!!bI.getElementsByTagName("nav").length,checkOn:(bH.value==="on"),optSelected:bz.selected,getSetAttribute:bI.className!=="t",enctype:!!av.createElement("form").enctype,submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bH.checked=true;bF.noCloneChecked=bH.cloneNode(true).checked;bJ.disabled=true;bF.optDisabled=!bz.disabled;try{delete bI.test}catch(bN){bF.deleteExpando=false}if(!bI.addEventListener&&bI.attachEvent&&bI.fireEvent){bI.attachEvent("onclick",function(){bF.noCloneEvent=false});bI.cloneNode(true).fireEvent("onclick")}bH=av.createElement("input");bH.value="t";bH.setAttribute("type","radio");bF.radioValue=bH.value==="t";bH.setAttribute("checked","checked");bI.appendChild(bH);by=av.createDocumentFragment();by.appendChild(bI.lastChild);bF.checkClone=by.cloneNode(true).cloneNode(true).lastChild.checked;bI.innerHTML="";bI.style.width=bI.style.paddingLeft="1px";bG=av.getElementsByTagName("body")[0];bE=av.createElement(bG?"div":"body");bO={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(bG){b.extend(bO,{position:"absolute",left:"-999px",top:"-999px"})}for(bL in bO){bE.style[bL]=bO[bL]}bE.appendChild(bI);bK=bG||bP;bK.insertBefore(bE,bK.firstChild);bF.appendChecked=bH.checked;bF.boxModel=bI.offsetWidth===2;if("zoom" in bI.style){bI.style.display="inline";bI.style.zoom=1;bF.inlineBlockNeedsLayout=(bI.offsetWidth===2);bI.style.display="";bI.innerHTML="<div style='width:4px;'></div>";bF.shrinkWrapBlocks=(bI.offsetWidth!==2)}bI.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bM=bI.getElementsByTagName("td");bR=(bM[0].offsetHeight===0);bM[0].style.display="";bM[1].style.display="none";bF.reliableHiddenOffsets=bR&&(bM[0].offsetHeight===0);bI.innerHTML="";if(av.defaultView&&av.defaultView.getComputedStyle){bC=av.createElement("div");bC.style.width="0";bC.style.marginRight="0";bI.appendChild(bC);bF.reliableMarginRight=(parseInt((av.defaultView.getComputedStyle(bC,null)||{marginRight:0}).marginRight,10)||0)===0}if(bI.attachEvent){for(bL in {submit:1,change:1,focusin:1}){bD="on"+bL;bR=(bD in bI);if(!bR){bI.setAttribute(bD,"return;");bR=(typeof bI[bD]==="function")}bF[bL+"Bubbles"]=bR}}b(function(){var bT,b0,b1,bZ,bU,bV,bS=1,bY="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",bX="visibility:hidden;border:0;",e="style='"+bY+"border:5px solid #000;padding:0;'",bW="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bG=av.getElementsByTagName("body")[0];if(!bG){return}bT=av.createElement("div");bT.style.cssText=bX+"width:0;height:0;position:static;top:0;margin-top:"+bS+"px";bG.insertBefore(bT,bG.firstChild);bE=av.createElement("div");bE.style.cssText=bY+bX;bE.innerHTML=bW;bT.appendChild(bE);b0=bE.firstChild;b1=b0.firstChild;bU=b0.nextSibling.firstChild.firstChild;bV={doesNotAddBorder:(b1.offsetTop!==5),doesAddBorderForTableAndCells:(bU.offsetTop===5)};b1.style.position="fixed";b1.style.top="20px";bV.fixedPosition=(b1.offsetTop===20||b1.offsetTop===15);b1.style.position=b1.style.top="";b0.style.overflow="hidden";b0.style.position="relative";bV.subtractsBorderForOverflowNotVisible=(b1.offsetTop===-5);bV.doesNotIncludeMarginInBodyOffset=(bG.offsetTop!==bS);bG.removeChild(bT);bE=bT=null;b.extend(bF,bV)});bE.innerHTML="";bK.removeChild(bE);bE=by=bJ=bz=bG=bC=bI=bH=null;return bF})();b.boxModel=b.support.boxModel;var aT=/^(?:\{.*\}|\[.*\])$/,aA=/([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!U(e)},data:function(bA,by,bC,bB){if(!b.acceptData(bA)){return}var bJ,bD,bG,bH=b.expando,bF=typeof by==="string",bI=bA.nodeType,e=bI?b.cache:bA,bz=bI?bA[b.expando]:bA[b.expando]&&b.expando,bE=by==="events";if((!bz||!e[bz]||(!bE&&!bB&&!e[bz].data))&&bF&&bC===M){return}if(!bz){if(bI){bA[b.expando]=bz=++b.uuid}else{bz=b.expando}}if(!e[bz]){e[bz]={};if(!bI){e[bz].toJSON=b.noop}}if(typeof by==="object"||typeof by==="function"){if(bB){e[bz]=b.extend(e[bz],by)}else{e[bz].data=b.extend(e[bz].data,by)}}bJ=bD=e[bz];if(!bB){if(!bD.data){bD.data={}}bD=bD.data}if(bC!==M){bD[b.camelCase(by)]=bC}if(bE&&!bD[by]){return bJ.events}if(bF){bG=bD[by];if(bG==null){bG=bD[b.camelCase(by)]}}else{bG=bD}return bG},removeData:function(bA,by,bB){if(!b.acceptData(bA)){return}var bE,bD,bC,bF=b.expando,bG=bA.nodeType,e=bG?b.cache:bA,bz=bG?bA[b.expando]:b.expando;if(!e[bz]){return}if(by){bE=bB?e[bz]:e[bz].data;if(bE){if(b.isArray(by)){by=by}else{if(by in bE){by=[by]}else{by=b.camelCase(by);if(by in bE){by=[by]}else{by=by.split(" ")}}}for(bD=0,bC=by.length;bD<bC;bD++){delete bE[by[bD]]}if(!(bB?U:b.isEmptyObject)(bE)){return}}}if(!bB){delete e[bz].data;if(!U(e[bz])){return}}if(b.support.deleteExpando||!e.setInterval){delete e[bz]}else{e[bz]=null}if(bG){if(b.support.deleteExpando){delete bA[b.expando]}else{if(bA.removeAttribute){bA.removeAttribute(b.expando)}else{bA[b.expando]=null}}}},_data:function(by,e,bz){return b.data(by,e,bz,true)},acceptData:function(by){if(by.nodeName){var e=b.noData[by.nodeName.toLowerCase()];if(e){return !(e===true||by.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(bB,bD){var bE,e,bz,bC=null;if(typeof bB==="undefined"){if(this.length){bC=b.data(this[0]);if(this[0].nodeType===1&&!b._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bA=0,by=e.length;bA<by;bA++){bz=e[bA].name;if(bz.indexOf("data-")===0){bz=b.camelCase(bz.substring(5));a7(this[0],bz,bC[bz])}}b._data(this[0],"parsedAttrs",true)}}return bC}else{if(typeof bB==="object"){return this.each(function(){b.data(this,bB)})}}bE=bB.split(".");bE[1]=bE[1]?"."+bE[1]:"";if(bD===M){bC=this.triggerHandler("getData"+bE[1]+"!",[bE[0]]);if(bC===M&&this.length){bC=b.data(this[0],bB);bC=a7(this[0],bB,bC)}return bC===M&&bE[1]?this.data(bE[0]):bC}else{return this.each(function(){var bG=b(this),bF=[bE[0],bD];bG.triggerHandler("setData"+bE[1]+"!",bF);b.data(this,bB,bD);bG.triggerHandler("changeData"+bE[1]+"!",bF)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a7(bA,bz,bB){if(bB===M&&bA.nodeType===1){var by="data-"+bz.replace(aA,"-$1").toLowerCase();bB=bA.getAttribute(by);if(typeof bB==="string"){try{bB=bB==="true"?true:bB==="false"?false:bB==="null"?null:b.isNumeric(bB)?parseFloat(bB):aT.test(bB)?b.parseJSON(bB):bB}catch(bC){}b.data(bA,bz,bB)}else{bB=M}}return bB}function U(by){for(var e in by){if(e==="data"&&b.isEmptyObject(by[e])){continue}if(e!=="toJSON"){return false}}return true}function bk(bB,bA,bD){var bz=bA+"defer",by=bA+"queue",e=bA+"mark",bC=b._data(bB,bz);if(bC&&(bD==="queue"||!b._data(bB,by))&&(bD==="mark"||!b._data(bB,e))){setTimeout(function(){if(!b._data(bB,by)&&!b._data(bB,e)){b.removeData(bB,bz,true);bC.fire()}},0)}}b.extend({_mark:function(by,e){if(by){e=(e||"fx")+"mark";b._data(by,e,(b._data(by,e)||0)+1)}},_unmark:function(bB,bA,by){if(bB!==true){by=bA;bA=bB;bB=false}if(bA){by=by||"fx";var e=by+"mark",bz=bB?0:((b._data(bA,e)||1)-1);if(bz){b._data(bA,e,bz)}else{b.removeData(bA,e,true);bk(bA,by,"mark")}}},queue:function(by,e,bA){var bz;if(by){e=(e||"fx")+"queue";bz=b._data(by,e);if(bA){if(!bz||b.isArray(bA)){bz=b._data(by,e,b.makeArray(bA))}else{bz.push(bA)}}return bz||[]}},dequeue:function(bB,bA){bA=bA||"fx";var by=b.queue(bB,bA),bz=by.shift(),e={};if(bz==="inprogress"){bz=by.shift()}if(bz){if(bA==="fx"){by.unshift("inprogress")}b._data(bB,bA+".run",e);bz.call(bB,function(){b.dequeue(bB,bA)},e)}if(!by.length){b.removeData(bB,bA+"queue "+bA+".run",true);bk(bB,bA,"queue")}}});b.fn.extend({queue:function(e,by){if(typeof e!=="string"){by=e;e="fx"}if(by===M){return b.queue(this[0],e)}return this.each(function(){var bz=b.queue(this,e,by);if(e==="fx"&&bz[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(by,e){by=b.fx?b.fx.speeds[by]||by:by;e=e||"fx";return this.queue(e,function(bA,bz){var bB=setTimeout(bA,by);bz.stop=function(){clearTimeout(bB)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bG,bz){if(typeof bG!=="string"){bz=bG;bG=M}bG=bG||"fx";var e=b.Deferred(),by=this,bB=by.length,bE=1,bC=bG+"defer",bD=bG+"queue",bF=bG+"mark",bA;function bH(){if(!(--bE)){e.resolveWith(by,[by])}}while(bB--){if((bA=b.data(by[bB],bC,M,true)||(b.data(by[bB],bD,M,true)||b.data(by[bB],bF,M,true))&&b.data(by[bB],bC,b.Callbacks("once memory"),true))){bE++;bA.add(bH)}}bH();return e.promise()}});var aQ=/[\n\t\r]/g,ag=/\s+/,aV=/\r/g,g=/^(?:button|input)$/i,D=/^(?:button|input|object|select|textarea)$/i,l=/^a(?:rea)?$/i,ao=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,F=b.support.getSetAttribute,bg,aZ,aF;b.fn.extend({attr:function(e,by){return b.access(this,e,by,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,by){return b.access(this,e,by,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=M;delete this[e]}catch(by){}})},addClass:function(bB){var bD,bz,by,bA,bC,bE,e;if(b.isFunction(bB)){return this.each(function(bF){b(this).addClass(bB.call(this,bF,this.className))})}if(bB&&typeof bB==="string"){bD=bB.split(ag);for(bz=0,by=this.length;bz<by;bz++){bA=this[bz];if(bA.nodeType===1){if(!bA.className&&bD.length===1){bA.className=bB}else{bC=" "+bA.className+" ";for(bE=0,e=bD.length;bE<e;bE++){if(!~bC.indexOf(" "+bD[bE]+" ")){bC+=bD[bE]+" "}}bA.className=b.trim(bC)}}}}return this},removeClass:function(bC){var bD,bz,by,bB,bA,bE,e;if(b.isFunction(bC)){return this.each(function(bF){b(this).removeClass(bC.call(this,bF,this.className))})}if((bC&&typeof bC==="string")||bC===M){bD=(bC||"").split(ag);for(bz=0,by=this.length;bz<by;bz++){bB=this[bz];if(bB.nodeType===1&&bB.className){if(bC){bA=(" "+bB.className+" ").replace(aQ," ");for(bE=0,e=bD.length;bE<e;bE++){bA=bA.replace(" "+bD[bE]+" "," ")}bB.className=b.trim(bA)}else{bB.className=""}}}}return this},toggleClass:function(bA,by){var bz=typeof bA,e=typeof by==="boolean";if(b.isFunction(bA)){return this.each(function(bB){b(this).toggleClass(bA.call(this,bB,this.className,by),by)})}return this.each(function(){if(bz==="string"){var bD,bC=0,bB=b(this),bE=by,bF=bA.split(ag);while((bD=bF[bC++])){bE=e?bE:!bB.hasClass(bD);bB[bE?"addClass":"removeClass"](bD)}}else{if(bz==="undefined"||bz==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bA===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bA=" "+e+" ",bz=0,by=this.length;for(;bz<by;bz++){if(this[bz].nodeType===1&&(" "+this[bz].className+" ").replace(aQ," ").indexOf(bA)>-1){return true}}return false},val:function(bA){var e,by,bB,bz=this[0];if(!arguments.length){if(bz){e=b.valHooks[bz.nodeName.toLowerCase()]||b.valHooks[bz.type];if(e&&"get" in e&&(by=e.get(bz,"value"))!==M){return by}by=bz.value;return typeof by==="string"?by.replace(aV,""):by==null?"":by}return M}bB=b.isFunction(bA);return this.each(function(bD){var bC=b(this),bE;if(this.nodeType!==1){return}if(bB){bE=bA.call(this,bD,bC.val())}else{bE=bA}if(bE==null){bE=""}else{if(typeof bE==="number"){bE+=""}else{if(b.isArray(bE)){bE=b.map(bE,function(bF){return bF==null?"":bF+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bE,"value")===M){this.value=bE}})}});b.extend({valHooks:{option:{get:function(e){var by=e.attributes.value;return !by||by.specified?e.value:e.text}},select:{get:function(e){var bD,by,bC,bA,bB=e.selectedIndex,bE=[],bF=e.options,bz=e.type==="select-one";if(bB<0){return null}by=bz?bB:0;bC=bz?bB+1:bF.length;for(;by<bC;by++){bA=bF[by];if(bA.selected&&(b.support.optDisabled?!bA.disabled:bA.getAttribute("disabled")===null)&&(!bA.parentNode.disabled||!b.nodeName(bA.parentNode,"optgroup"))){bD=b(bA).val();if(bz){return bD}bE.push(bD)}}if(bz&&!bE.length&&bF.length){return b(bF[bB]).val()}return bE},set:function(by,bz){var e=b.makeArray(bz);b(by).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){by.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bD,bA,bE,bC){var bz,e,bB,by=bD.nodeType;if(!bD||by===3||by===8||by===2){return M}if(bC&&bA in b.attrFn){return b(bD)[bA](bE)}if(!("getAttribute" in bD)){return b.prop(bD,bA,bE)}bB=by!==1||!b.isXMLDoc(bD);if(bB){bA=bA.toLowerCase();e=b.attrHooks[bA]||(ao.test(bA)?aZ:bg)}if(bE!==M){if(bE===null){b.removeAttr(bD,bA);return M}else{if(e&&"set" in e&&bB&&(bz=e.set(bD,bE,bA))!==M){return bz}else{bD.setAttribute(bA,""+bE);return bE}}}else{if(e&&"get" in e&&bB&&(bz=e.get(bD,bA))!==null){return bz}else{bz=bD.getAttribute(bA);return bz===null?M:bz}}},removeAttr:function(bA,bC){var bB,bD,by,e,bz=0;if(bA.nodeType===1){bD=(bC||"").split(ag);e=bD.length;for(;bz<e;bz++){by=bD[bz].toLowerCase();bB=b.propFix[by]||by;b.attr(bA,by,"");bA.removeAttribute(F?by:bB);if(ao.test(by)&&bB in bA){bA[bB]=false}}}},attrHooks:{type:{set:function(e,by){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&by==="radio"&&b.nodeName(e,"input")){var bz=e.value;e.setAttribute("type",by);if(bz){e.value=bz}return by}}}},value:{get:function(by,e){if(bg&&b.nodeName(by,"button")){return bg.get(by,e)}return e in by?by.value:null},set:function(by,bz,e){if(bg&&b.nodeName(by,"button")){return bg.set(by,bz,e)}by.value=bz}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(bC,bA,bD){var bz,e,bB,by=bC.nodeType;if(!bC||by===3||by===8||by===2){return M}bB=by!==1||!b.isXMLDoc(bC);if(bB){bA=b.propFix[bA]||bA;e=b.propHooks[bA]}if(bD!==M){if(e&&"set" in e&&(bz=e.set(bC,bD,bA))!==M){return bz}else{return(bC[bA]=bD)}}else{if(e&&"get" in e&&(bz=e.get(bC,bA))!==null){return bz}else{return bC[bA]}}},propHooks:{tabIndex:{get:function(by){var e=by.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):D.test(by.nodeName)||l.test(by.nodeName)&&by.href?0:M}}}});b.attrHooks.tabindex=b.propHooks.tabIndex;aZ={get:function(by,e){var bA,bz=b.prop(by,e);return bz===true||typeof bz!=="boolean"&&(bA=by.getAttributeNode(e))&&bA.nodeValue!==false?e.toLowerCase():M},set:function(by,bA,e){var bz;if(bA===false){b.removeAttr(by,e)}else{bz=b.propFix[e]||e;if(bz in by){by[bz]=true}by.setAttribute(e,e.toLowerCase())}return e}};if(!F){aF={name:true,id:true};bg=b.valHooks.button={get:function(bz,by){var e;e=bz.getAttributeNode(by);return e&&(aF[by]?e.nodeValue!=="":e.specified)?e.nodeValue:M},set:function(bz,bA,by){var e=bz.getAttributeNode(by);if(!e){e=av.createAttribute(by);bz.setAttributeNode(e)}return(e.nodeValue=bA+"")}};b.attrHooks.tabindex.set=bg.set;b.each(["width","height"],function(by,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bz,bA){if(bA===""){bz.setAttribute(e,"auto");return bA}}})});b.attrHooks.contenteditable={get:bg.get,set:function(by,bz,e){if(bz===""){bz="false"}bg.set(by,bz,e)}}}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(by,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bA){var bz=bA.getAttribute(e,2);return bz===null?M:bz}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||M},set:function(e,by){return(e.style.cssText=""+by)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(by){var e=by.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}return null}})}if(!b.support.enctype){b.propFix.enctype="encoding"}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,by){if(b.isArray(by)){return(e.checked=b.inArray(b(e).val(),by)>=0)}}})});var a1=/\.(.*)$/,bf=/^(?:textarea|input|select)$/i,P=/\./g,bl=/ /g,aH=/[^\w\s.|`]/g,n=/^([^\.]*)?(?:\.(.+))?$/,K=/\bhover(\.\S+)?/,aP=/^key/,bh=/^(?:mouse|contextmenu)|click/,V=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Z=function(e){var by=V.exec(e);if(by){by[1]=(by[1]||"").toLowerCase();by[3]=by[3]&&new RegExp("(?:^|\\s)"+by[3]+"(?:\\s|$)")}return by},j=function(by,e){return((!e[1]||by.nodeName.toLowerCase()===e[1])&&(!e[2]||by.id===e[2])&&(!e[3]||e[3].test(by.className)))},bw=function(e){return b.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};b.event={add:function(bA,bF,bM,bD,bB){var bG,bE,bN,bL,bK,bI,e,bJ,by,bC,bz,bH;if(bA.nodeType===3||bA.nodeType===8||!bF||!bM||!(bG=b._data(bA))){return}if(bM.handler){by=bM;bM=by.handler}if(!bM.guid){bM.guid=b.guid++}bN=bG.events;if(!bN){bG.events=bN={}}bE=bG.handle;if(!bE){bG.handle=bE=function(bO){return typeof b!=="undefined"&&(!bO||b.event.triggered!==bO.type)?b.event.dispatch.apply(bE.elem,arguments):M};bE.elem=bA}bF=bw(bF).split(" ");for(bL=0;bL<bF.length;bL++){bK=n.exec(bF[bL])||[];bI=bK[1];e=(bK[2]||"").split(".").sort();bH=b.event.special[bI]||{};bI=(bB?bH.delegateType:bH.bindType)||bI;bH=b.event.special[bI]||{};bJ=b.extend({type:bI,origType:bK[1],data:bD,handler:bM,guid:bM.guid,selector:bB,namespace:e.join(".")},by);if(bB){bJ.quick=Z(bB);if(!bJ.quick&&b.expr.match.POS.test(bB)){bJ.isPositional=true}}bz=bN[bI];if(!bz){bz=bN[bI]=[];bz.delegateCount=0;if(!bH.setup||bH.setup.call(bA,bD,e,bE)===false){if(bA.addEventListener){bA.addEventListener(bI,bE,false)}else{if(bA.attachEvent){bA.attachEvent("on"+bI,bE)}}}}if(bH.add){bH.add.call(bA,bJ);if(!bJ.handler.guid){bJ.handler.guid=bM.guid}}if(bB){bz.splice(bz.delegateCount++,0,bJ)}else{bz.push(bJ)}b.event.global[bI]=true}bA=null},global:{},remove:function(bz,bE,bK,bA){var bF=b.hasData(bz)&&b._data(bz),bL,bM,bH,by,bB,bC,bJ,bG,bD,e,bI;if(!bF||!(bJ=bF.events)){return}bE=bw(bE||"").split(" ");for(bL=0;bL<bE.length;bL++){bM=n.exec(bE[bL])||[];bH=bM[1];by=bM[2];if(!bH){by=by?"."+by:"";for(bC in bJ){b.event.remove(bz,bC+by,bK,bA)}return}bG=b.event.special[bH]||{};bH=(bA?bG.delegateType:bG.bindType)||bH;e=bJ[bH]||[];bB=e.length;by=by?new RegExp("(^|\\.)"+by.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;if(bK||by||bA||bG.remove){for(bC=0;bC<e.length;bC++){bI=e[bC];if(!bK||bK.guid===bI.guid){if(!by||by.test(bI.namespace)){if(!bA||bA===bI.selector||bA==="**"&&bI.selector){e.splice(bC--,1);if(bI.selector){e.delegateCount--}if(bG.remove){bG.remove.call(bz,bI)}}}}}}else{e.length=0}if(e.length===0&&bB!==e.length){if(!bG.teardown||bG.teardown.call(bz,by)===false){b.removeEvent(bz,bH,bF.handle)}delete bJ[bH]}}if(b.isEmptyObject(bJ)){bD=bF.handle;if(bD){bD.elem=null}b.removeData(bz,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(by,bG,bD,bM){if(bD&&(bD.nodeType===3||bD.nodeType===8)){return}var bJ=by.type||by,bA=[],e,bz,bF,bK,bC,bB,bI,bH,bE,bL;if(bJ.indexOf("!")>=0){bJ=bJ.slice(0,-1);bz=true}if(bJ.indexOf(".")>=0){bA=bJ.split(".");bJ=bA.shift();bA.sort()}if((!bD||b.event.customEvent[bJ])&&!b.event.global[bJ]){return}by=typeof by==="object"?by[b.expando]?by:new b.Event(bJ,by):new b.Event(bJ);by.type=bJ;by.isTrigger=true;by.exclusive=bz;by.namespace=bA.join(".");by.namespace_re=by.namespace?new RegExp("(^|\\.)"+bA.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;bB=bJ.indexOf(":")<0?"on"+bJ:"";if(bM||!bD){by.preventDefault()}if(!bD){e=b.cache;for(bF in e){if(e[bF].events&&e[bF].events[bJ]){b.event.trigger(by,bG,e[bF].handle.elem,true)}}return}by.result=M;if(!by.target){by.target=bD}bG=bG!=null?b.makeArray(bG):[];bG.unshift(by);bI=b.event.special[bJ]||{};if(bI.trigger&&bI.trigger.apply(bD,bG)===false){return}bE=[[bD,bI.bindType||bJ]];if(!bM&&!bI.noBubble&&!b.isWindow(bD)){bL=bI.delegateType||bJ;bC=null;for(bK=bD.parentNode;bK;bK=bK.parentNode){bE.push([bK,bL]);bC=bK}if(bC&&bC===bD.ownerDocument){bE.push([bC.defaultView||bC.parentWindow||bd,bL])}}for(bF=0;bF<bE.length;bF++){bK=bE[bF][0];by.type=bE[bF][1];bH=(b._data(bK,"events")||{})[by.type]&&b._data(bK,"handle");if(bH){bH.apply(bK,bG)}bH=bB&&bK[bB];if(bH&&b.acceptData(bK)){bH.apply(bK,bG)}if(by.isPropagationStopped()){break}}by.type=bJ;if(!by.isDefaultPrevented()){if((!bI._default||bI._default.apply(bD.ownerDocument,bG)===false)&&!(bJ==="click"&&b.nodeName(bD,"a"))&&b.acceptData(bD)){if(bB&&bD[bJ]&&((bJ!=="focus"&&bJ!=="blur")||by.target.offsetWidth!==0)&&!b.isWindow(bD)){bC=bD[bB];if(bC){bD[bB]=null}b.event.triggered=bJ;bD[bJ]();b.event.triggered=M;if(bC){bD[bB]=bC}}}}return by.result},dispatch:function(bJ){bJ=b.event.fix(bJ||bd.event);var bF=((b._data(this,"events")||{})[bJ.type]||[]),bE=bF.delegateCount,bA=[].slice.call(arguments,0),bG=!bJ.exclusive&&!bJ.namespace,bC=(b.event.special[bJ.type]||{}).handle,by=[],bL,bI,bB,bN,bK,bD,bz,e,bH,bM,bO;bA[0]=bJ;bJ.delegateTarget=this;if(bE&&!bJ.target.disabled&&!(bJ.button&&bJ.type==="click")){for(bB=bJ.target;bB!=this;bB=bB.parentNode||this){bK={};bz=[];for(bL=0;bL<bE;bL++){e=bF[bL];bH=e.selector;bM=bK[bH];if(e.isPositional){bM=(bM||(bK[bH]=b(bH))).index(bB)>=0}else{if(bM===M){bM=bK[bH]=(e.quick?j(bB,e.quick):b(bB).is(bH))}}if(bM){bz.push(e)}}if(bz.length){by.push({elem:bB,matches:bz})}}}if(bF.length>bE){by.push({elem:this,matches:bF.slice(bE)})}for(bL=0;bL<by.length&&!bJ.isPropagationStopped();bL++){bD=by[bL];bJ.currentTarget=bD.elem;for(bI=0;bI<bD.matches.length&&!bJ.isImmediatePropagationStopped();bI++){e=bD.matches[bI];if(bG||(!bJ.namespace&&!e.namespace)||bJ.namespace_re&&bJ.namespace_re.test(e.namespace)){bJ.data=e.data;bJ.handleObj=e;bN=(bC||e.handler).apply(bD.elem,bA);if(bN!==M){bJ.result=bN;if(bN===false){bJ.preventDefault();bJ.stopPropagation()}}}}}return bJ.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(by,e){if(by.which==null){by.which=e.charCode!=null?e.charCode:e.keyCode}return by}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(bA,bz){var bB,bC,e,by=bz.button,bD=bz.fromElement;if(bA.pageX==null&&bz.clientX!=null){bB=bA.target.ownerDocument||av;bC=bB.documentElement;e=bB.body;bA.pageX=bz.clientX+(bC&&bC.scrollLeft||e&&e.scrollLeft||0)-(bC&&bC.clientLeft||e&&e.clientLeft||0);bA.pageY=bz.clientY+(bC&&bC.scrollTop||e&&e.scrollTop||0)-(bC&&bC.clientTop||e&&e.clientTop||0)}if(!bA.relatedTarget&&bD){bA.relatedTarget=bD===bA.target?bz.toElement:bD}if(!bA.which&&by!==M){bA.which=(by&1?1:(by&2?3:(by&4?2:0)))}return bA}},fix:function(bz){if(bz[b.expando]){return bz}var by,bC,e=bz,bA=b.event.fixHooks[bz.type]||{},bB=bA.props?this.props.concat(bA.props):this.props;bz=b.Event(e);for(by=bB.length;by;){bC=bB[--by];bz[bC]=e[bC]}if(!bz.target){bz.target=e.srcElement||av}if(bz.target.nodeType===3){bz.target=bz.target.parentNode}if(bz.metaKey===M){bz.metaKey=bz.ctrlKey}return bA.filter?bA.filter(bz,e):bz},special:{ready:{setup:b.bindReady},focus:{delegateType:"focusin",noBubble:true},blur:{delegateType:"focusout",noBubble:true},beforeunload:{setup:function(bz,by,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(by,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(bz,bB,bA,by){var bC=b.extend(new b.Event(),bA,{type:bz,isSimulated:true,originalEvent:{}});if(by){b.event.trigger(bC,null,bB)}else{b.event.dispatch.call(bB,bC)}if(bC.isDefaultPrevented()){bA.preventDefault()}}};b.event.handle=b.event.dispatch;b.removeEvent=av.removeEventListener?function(by,e,bz){if(by.removeEventListener){by.removeEventListener(e,bz,false)}}:function(by,e,bz){if(by.detachEvent){by.detachEvent("on"+e,bz)}};b.Event=function(by,e){if(!(this instanceof b.Event)){return new b.Event(by,e)}if(by&&by.type){this.originalEvent=by;this.type=by.type;this.isDefaultPrevented=(by.defaultPrevented||by.returnValue===false||by.getPreventDefault&&by.getPreventDefault())?i:bn}else{this.type=by}if(e){b.extend(this,e)}this.timeStamp=by&&by.timeStamp||b.now();this[b.expando]=true};function bn(){return false}function i(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=i;var by=this.originalEvent;if(!by){return}if(by.preventDefault){by.preventDefault()}else{by.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=i;var by=this.originalEvent;if(!by){return}if(by.stopPropagation){by.stopPropagation()}by.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i;this.stopPropagation()},isDefaultPrevented:bn,isPropagationStopped:bn,isImmediatePropagationStopped:bn};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(by,e){b.event.special[by]=b.event.special[e]={delegateType:e,bindType:e,handle:function(bC){var bF=this,bE=bC.relatedTarget,bB=bC.handleObj,bz=bB.selector,bD,bA;if(!bE||bB.origType===bC.type||(bE!==bF&&!b.contains(bF,bE))){bD=bC.type;bC.type=bB.origType;bA=bB.handler.apply(this,arguments);bC.type=bD}return bA}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(){if(b.nodeName(this,"form")){return false}b.event.add(this,"click._submit keypress._submit",function(bA){var bz=bA.target,by=b.nodeName(bz,"input")||b.nodeName(bz,"button")?bz.form:M;if(by&&!by._submit_attached){b.event.add(by,"submit._submit",function(e){if(this.parentNode){b.event.simulate("submit",this.parentNode,e,true)}});by._submit_attached=true}})},teardown:function(){if(b.nodeName(this,"form")){return false}b.event.remove(this,"._submit")}}}if(!b.support.changeBubbles){b.event.special.change={setup:function(){if(bf.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){b.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true}});b.event.add(this,"click._change",function(e){if(this._just_changed){this._just_changed=false;b.event.simulate("change",this,e,true)}})}return false}b.event.add(this,"beforeactivate._change",function(bz){var by=bz.target;if(bf.test(by.nodeName)&&!by._change_attached){b.event.add(by,"change._change",function(e){if(this.parentNode&&!e.isSimulated){b.event.simulate("change",this.parentNode,e,true)}});by._change_attached=true}})},handle:function(by){var e=by.target;if(this!==e||by.isSimulated||by.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return by.handleObj.handler.apply(this,arguments)}},teardown:function(){b.event.remove(this,"._change");return bf.test(this.nodeName)}}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bA,e){var by=0,bz=function(bB){b.event.simulate(e,bB.target,b.event.fix(bB),true)};b.event.special[e]={setup:function(){if(by++===0){av.addEventListener(bA,bz,true)}},teardown:function(){if(--by===0){av.removeEventListener(bA,bz,true)}}}})}b.fn.extend({on:function(bz,e,bC,bB,by){var bD,bA;if(typeof bz==="object"){if(typeof e!=="string"){bC=e;e=M}for(bA in bz){this.on(bA,e,bC,bz[bA],by)}return this}if(bC==null&&bB==null){bB=e;bC=e=M}else{if(bB==null){if(typeof e==="string"){bB=bC;bC=M}else{bB=bC;bC=e;e=M}}}if(bB===false){bB=bn}else{if(!bB){return this}}if(by===1){bD=bB;bB=function(bE){b().off(bE);return bD.apply(this,arguments)};bB.guid=bD.guid||(bD.guid=b.guid++)}return this.each(function(){b.event.add(this,bz,bB,bC,e)})},one:function(by,e,bA,bz){return this.on.call(this,by,e,bA,bz,1)},off:function(bz,e,bB){if(bz&&bz.preventDefault&&bz.handleObj){var by=bz.handleObj;b(bz.delegateTarget).off(by.namespace?by.type+"."+by.namespace:by.type,by.selector,by.handler);return this}if(typeof bz==="object"){for(var bA in bz){this.off(bA,e,bz[bA])}return this}if(e===false||typeof e==="function"){bB=e;e=M}if(bB===false){bB=bn}return this.each(function(){b.event.remove(this,bz,bB,e)})},bind:function(e,bz,by){return this.on(e,null,bz,by)},unbind:function(e,by){return this.off(e,null,by)},live:function(e,bz,by){b(this.context).on(e,this.selector,bz,by);return this},die:function(e,by){b(this.context).off(e,this.selector||"**",by);return this},delegate:function(e,by,bA,bz){return this.on(by,e,bA,bz)},undelegate:function(e,by,bz){return arguments.length==1?this.off(e,"**"):this.off(by,e,bz)},trigger:function(e,by){return this.each(function(){b.event.trigger(e,by,this)})},triggerHandler:function(e,by){if(this[0]){return b.event.trigger(e,by,this[0],true)}},toggle:function(bA){var by=arguments,e=bA.guid||b.guid++,bz=0,bB=function(bC){var bD=(b._data(this,"lastToggle"+bA.guid)||0)%bz;b._data(this,"lastToggle"+bA.guid,bD+1);bC.preventDefault();return by[bD].apply(this,arguments)||false};bB.guid=e;while(bz<by.length){by[bz++].guid=e}return this.click(bB)},hover:function(e,by){return this.mouseenter(e).mouseleave(by||e)}});b.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(by,e){b.fn[e]=function(bA,bz){if(bz==null){bz=bA;bA=null}return arguments.length>0?this.bind(e,bA,bz):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aP.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bh.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}});
/*!
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bK=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bF="sizcache"+(Math.random()+"").replace(".",""),bL=0,bO=Object.prototype.toString,bE=false,bD=true,bN=/\\/g,bR=/\r\n/g,bT=/\W/;[0,0].sort(function(){bD=false;return 0});var bB=function(bY,e,b1,b2){b1=b1||[];e=e||av;var b4=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bY||typeof bY!=="string"){return b1}var bV,b6,b9,bU,b5,b8,b7,b0,bX=true,bW=bB.isXML(e),bZ=[],b3=bY;do{bK.exec("");bV=bK.exec(b3);if(bV){b3=bV[3];bZ.push(bV[1]);if(bV[2]){bU=bV[3];break}}}while(bV);if(bZ.length>1&&bG.exec(bY)){if(bZ.length===2&&bH.relative[bZ[0]]){b6=bP(bZ[0]+bZ[1],e,b2)}else{b6=bH.relative[bZ[0]]?[e]:bB(bZ.shift(),e);while(bZ.length){bY=bZ.shift();if(bH.relative[bY]){bY+=bZ.shift()}b6=bP(bY,b6,b2)}}}else{if(!b2&&bZ.length>1&&e.nodeType===9&&!bW&&bH.match.ID.test(bZ[0])&&!bH.match.ID.test(bZ[bZ.length-1])){b5=bB.find(bZ.shift(),e,bW);e=b5.expr?bB.filter(b5.expr,b5.set)[0]:b5.set[0]}if(e){b5=b2?{expr:bZ.pop(),set:bI(b2)}:bB.find(bZ.pop(),bZ.length===1&&(bZ[0]==="~"||bZ[0]==="+")&&e.parentNode?e.parentNode:e,bW);b6=b5.expr?bB.filter(b5.expr,b5.set):b5.set;if(bZ.length>0){b9=bI(b6)}else{bX=false}while(bZ.length){b8=bZ.pop();b7=b8;if(!bH.relative[b8]){b8=""}else{b7=bZ.pop()}if(b7==null){b7=e}bH.relative[b8](b9,b7,bW)}}else{b9=bZ=[]}}if(!b9){b9=b6}if(!b9){bB.error(b8||bY)}if(bO.call(b9)==="[object Array]"){if(!bX){b1.push.apply(b1,b9)}else{if(e&&e.nodeType===1){for(b0=0;b9[b0]!=null;b0++){if(b9[b0]&&(b9[b0]===true||b9[b0].nodeType===1&&bB.contains(e,b9[b0]))){b1.push(b6[b0])}}}else{for(b0=0;b9[b0]!=null;b0++){if(b9[b0]&&b9[b0].nodeType===1){b1.push(b6[b0])}}}}}else{bI(b9,b1)}if(bU){bB(bU,b4,b1,b2);bB.uniqueSort(b1)}return b1};bB.uniqueSort=function(bU){if(bM){bE=bD;bU.sort(bM);if(bE){for(var e=1;e<bU.length;e++){if(bU[e]===bU[e-1]){bU.splice(e--,1)}}}}return bU};bB.matches=function(e,bU){return bB(e,null,null,bU)};bB.matchesSelector=function(e,bU){return bB(bU,null,null,[e]).length>0};bB.find=function(b0,e,b1){var bZ,bV,bX,bW,bY,bU;if(!b0){return[]}for(bV=0,bX=bH.order.length;bV<bX;bV++){bY=bH.order[bV];if((bW=bH.leftMatch[bY].exec(b0))){bU=bW[1];bW.splice(1,1);if(bU.substr(bU.length-1)!=="\\"){bW[1]=(bW[1]||"").replace(bN,"");bZ=bH.find[bY](bW,e,b1);if(bZ!=null){b0=b0.replace(bH.match[bY],"");break}}}}if(!bZ){bZ=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bZ,expr:b0}};bB.filter=function(b4,b3,b7,bX){var bZ,e,b2,b9,b6,bU,bW,bY,b5,bV=b4,b8=[],b1=b3,b0=b3&&b3[0]&&bB.isXML(b3[0]);while(b4&&b3.length){for(b2 in bH.filter){if((bZ=bH.leftMatch[b2].exec(b4))!=null&&bZ[2]){bU=bH.filter[b2];bW=bZ[1];e=false;bZ.splice(1,1);if(bW.substr(bW.length-1)==="\\"){continue}if(b1===b8){b8=[]}if(bH.preFilter[b2]){bZ=bH.preFilter[b2](bZ,b1,b7,b8,bX,b0);if(!bZ){e=b9=true}else{if(bZ===true){continue}}}if(bZ){for(bY=0;(b6=b1[bY])!=null;bY++){if(b6){b9=bU(b6,bZ,bY,b1);b5=bX^b9;if(b7&&b9!=null){if(b5){e=true}else{b1[bY]=false}}else{if(b5){b8.push(b6);e=true}}}}}if(b9!==M){if(!b7){b1=b8}b4=b4.replace(bH.match[b2],"");if(!e){return[]}break}}}if(b4===bV){if(e==null){bB.error(b4)}else{break}}bV=b4}return b1};bB.error=function(e){throw"Syntax error, unrecognized expression: "+e};var bz=bB.getText=function(bX){var bV,bW,e=bX.nodeType,bU="";if(e){if(e===1){if(typeof bX.textContent==="string"){return bX.textContent}else{if(typeof bX.innerText==="string"){return bX.innerText.replace(bR,"")}else{for(bX=bX.firstChild;bX;bX=bX.nextSibling){bU+=bz(bX)}}}}else{if(e===3||e===4){return bX.nodeValue}}}else{for(bV=0;(bW=bX[bV]);bV++){if(bW.nodeType!==8){bU+=bz(bW)}}}return bU};var bH=bB.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(e){return e.getAttribute("href")},type:function(e){return e.getAttribute("type")}},relative:{"+":function(bZ,bU){var bW=typeof bU==="string",bY=bW&&!bT.test(bU),b0=bW&&!bY;if(bY){bU=bU.toLowerCase()}for(var bV=0,e=bZ.length,bX;bV<e;bV++){if((bX=bZ[bV])){while((bX=bX.previousSibling)&&bX.nodeType!==1){}bZ[bV]=b0||bX&&bX.nodeName.toLowerCase()===bU?bX||false:bX===bU}}if(b0){bB.filter(bU,bZ,true)}},">":function(bZ,bU){var bY,bX=typeof bU==="string",bV=0,e=bZ.length;if(bX&&!bT.test(bU)){bU=bU.toLowerCase();for(;bV<e;bV++){bY=bZ[bV];if(bY){var bW=bY.parentNode;bZ[bV]=bW.nodeName.toLowerCase()===bU?bW:false}}}else{for(;bV<e;bV++){bY=bZ[bV];if(bY){bZ[bV]=bX?bY.parentNode:bY.parentNode===bU}}if(bX){bB.filter(bU,bZ,true)}}},"":function(bW,bU,bY){var bX,bV=bL++,e=bQ;if(typeof bU==="string"&&!bT.test(bU)){bU=bU.toLowerCase();bX=bU;e=by}e("parentNode",bU,bV,bW,bX,bY)},"~":function(bW,bU,bY){var bX,bV=bL++,e=bQ;if(typeof bU==="string"&&!bT.test(bU)){bU=bU.toLowerCase();bX=bU;e=by}e("previousSibling",bU,bV,bW,bX,bY)}},find:{ID:function(bU,bV,bW){if(typeof bV.getElementById!=="undefined"&&!bW){var e=bV.getElementById(bU[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bV,bY){if(typeof bY.getElementsByName!=="undefined"){var bU=[],bX=bY.getElementsByName(bV[1]);for(var bW=0,e=bX.length;bW<e;bW++){if(bX[bW].getAttribute("name")===bV[1]){bU.push(bX[bW])}}return bU.length===0?null:bU}},TAG:function(e,bU){if(typeof bU.getElementsByTagName!=="undefined"){return bU.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bW,bU,bV,e,bZ,b0){bW=" "+bW[1].replace(bN,"")+" ";if(b0){return bW}for(var bX=0,bY;(bY=bU[bX])!=null;bX++){if(bY){if(bZ^(bY.className&&(" "+bY.className+" ").replace(/[\t\n\r]/g," ").indexOf(bW)>=0)){if(!bV){e.push(bY)}}else{if(bV){bU[bX]=false}}}}return false},ID:function(e){return e[1].replace(bN,"")},TAG:function(bU,e){return bU[1].replace(bN,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bB.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bU=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bU[1]+(bU[2]||1))-0;e[3]=bU[3]-0}else{if(e[2]){bB.error(e[0])}}e[0]=bL++;return e},ATTR:function(bX,bU,bV,e,bY,bZ){var bW=bX[1]=bX[1].replace(bN,"");if(!bZ&&bH.attrMap[bW]){bX[1]=bH.attrMap[bW]}bX[4]=(bX[4]||bX[5]||"").replace(bN,"");if(bX[2]==="~="){bX[4]=" "+bX[4]+" "}return bX},PSEUDO:function(bX,bU,bV,e,bY){if(bX[1]==="not"){if((bK.exec(bX[3])||"").length>1||/^\w/.test(bX[3])){bX[3]=bB(bX[3],null,null,bU)}else{var bW=bB.filter(bX[3],bU,bV,true^bY);if(!bV){e.push.apply(e,bW)}return false}}else{if(bH.match.POS.test(bX[0])||bH.match.CHILD.test(bX[0])){return true}}return bX},POS:function(e){e.unshift(true);return e}},filters:{enabled:function(e){return e.disabled===false&&e.type!=="hidden"},disabled:function(e){return e.disabled===true},checked:function(e){return e.checked===true},selected:function(e){if(e.parentNode){e.parentNode.selectedIndex}return e.selected===true},parent:function(e){return !!e.firstChild},empty:function(e){return !e.firstChild},has:function(bV,bU,e){return !!bB(e[3],bV).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bV){var e=bV.getAttribute("type"),bU=bV.type;return bV.nodeName.toLowerCase()==="input"&&"text"===bU&&(e===bU||e===null)},radio:function(e){return e.nodeName.toLowerCase()==="input"&&"radio"===e.type},checkbox:function(e){return e.nodeName.toLowerCase()==="input"&&"checkbox"===e.type},file:function(e){return e.nodeName.toLowerCase()==="input"&&"file"===e.type},password:function(e){return e.nodeName.toLowerCase()==="input"&&"password"===e.type},submit:function(bU){var e=bU.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bU.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bU){var e=bU.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bU.type},button:function(bU){var e=bU.nodeName.toLowerCase();return e==="input"&&"button"===bU.type||e==="button"},input:function(e){return(/input|select|textarea|button/i).test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(bU,e){return e===0},last:function(bV,bU,e,bW){return bU===bW.length-1},even:function(bU,e){return e%2===0},odd:function(bU,e){return e%2===1},lt:function(bV,bU,e){return bU<e[3]-0},gt:function(bV,bU,e){return bU>e[3]-0},nth:function(bV,bU,e){return e[3]-0===bU},eq:function(bV,bU,e){return e[3]-0===bU}},filter:{PSEUDO:function(bV,b0,bZ,b1){var e=b0[1],bU=bH.filters[e];if(bU){return bU(bV,bZ,b0,b1)}else{if(e==="contains"){return(bV.textContent||bV.innerText||bz([bV])||"").indexOf(b0[3])>=0}else{if(e==="not"){var bW=b0[3];for(var bY=0,bX=bW.length;bY<bX;bY++){if(bW[bY]===bV){return false}}return true}else{bB.error(e)}}}},CHILD:function(bV,bX){var bW,b3,bZ,b2,e,bY,b1,b0=bX[1],bU=bV;switch(b0){case"only":case"first":while((bU=bU.previousSibling)){if(bU.nodeType===1){return false}}if(b0==="first"){return true}bU=bV;case"last":while((bU=bU.nextSibling)){if(bU.nodeType===1){return false}}return true;case"nth":bW=bX[2];b3=bX[3];if(bW===1&&b3===0){return true}bZ=bX[0];b2=bV.parentNode;if(b2&&(b2[bF]!==bZ||!bV.nodeIndex)){bY=0;for(bU=b2.firstChild;bU;bU=bU.nextSibling){if(bU.nodeType===1){bU.nodeIndex=++bY}}b2[bF]=bZ}b1=bV.nodeIndex-b3;if(bW===0){return b1===0}else{return(b1%bW===0&&b1/bW>=0)}}},ID:function(bU,e){return bU.nodeType===1&&bU.getAttribute("id")===e},TAG:function(bU,e){return(e==="*"&&bU.nodeType===1)||!!bU.nodeName&&bU.nodeName.toLowerCase()===e},CLASS:function(bU,e){return(" "+(bU.className||bU.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bY,bW){var bV=bW[1],e=bB.attr?bB.attr(bY,bV):bH.attrHandle[bV]?bH.attrHandle[bV](bY):bY[bV]!=null?bY[bV]:bY.getAttribute(bV),bZ=e+"",bX=bW[2],bU=bW[4];return e==null?bX==="!=":!bX&&bB.attr?e!=null:bX==="="?bZ===bU:bX==="*="?bZ.indexOf(bU)>=0:bX==="~="?(" "+bZ+" ").indexOf(bU)>=0:!bU?bZ&&e!==false:bX==="!="?bZ!==bU:bX==="^="?bZ.indexOf(bU)===0:bX==="$="?bZ.substr(bZ.length-bU.length)===bU:bX==="|="?bZ===bU||bZ.substr(0,bU.length+1)===bU+"-":false},POS:function(bX,bU,bV,bY){var e=bU[2],bW=bH.setFilters[e];if(bW){return bW(bX,bV,bU,bY)}}}};var bG=bH.match.POS,bA=function(bU,e){return"\\"+(e-0+1)};for(var bC in bH.match){bH.match[bC]=new RegExp(bH.match[bC].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bH.leftMatch[bC]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bH.match[bC].source.replace(/\\(\d+)/g,bA))}var bI=function(bU,e){bU=Array.prototype.slice.call(bU,0);if(e){e.push.apply(e,bU);return e}return bU};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bS){bI=function(bX,bW){var bV=0,bU=bW||[];if(bO.call(bX)==="[object Array]"){Array.prototype.push.apply(bU,bX)}else{if(typeof bX.length==="number"){for(var e=bX.length;bV<e;bV++){bU.push(bX[bV])}}else{for(;bX[bV];bV++){bU.push(bX[bV])}}}return bU}}var bM,bJ;if(av.documentElement.compareDocumentPosition){bM=function(bU,e){if(bU===e){bE=true;return 0}if(!bU.compareDocumentPosition||!e.compareDocumentPosition){return bU.compareDocumentPosition?-1:1}return bU.compareDocumentPosition(e)&4?-1:1}}else{bM=function(b1,b0){if(b1===b0){bE=true;return 0}else{if(b1.sourceIndex&&b0.sourceIndex){return b1.sourceIndex-b0.sourceIndex}}var bY,bU,bV=[],e=[],bX=b1.parentNode,bZ=b0.parentNode,b2=bX;if(bX===bZ){return bJ(b1,b0)}else{if(!bX){return -1}else{if(!bZ){return 1}}}while(b2){bV.unshift(b2);b2=b2.parentNode}b2=bZ;while(b2){e.unshift(b2);b2=b2.parentNode}bY=bV.length;bU=e.length;for(var bW=0;bW<bY&&bW<bU;bW++){if(bV[bW]!==e[bW]){return bJ(bV[bW],e[bW])}}return bW===bY?bJ(b1,e[bW],-1):bJ(bV[bW],b0,1)};bJ=function(bU,e,bV){if(bU===e){return bV}var bW=bU.nextSibling;while(bW){if(bW===e){return -1}bW=bW.nextSibling}return 1}}(function(){var bU=av.createElement("div"),bV="script"+(new Date()).getTime(),e=av.documentElement;bU.innerHTML="<a name='"+bV+"'/>";e.insertBefore(bU,e.firstChild);if(av.getElementById(bV)){bH.find.ID=function(bX,bY,bZ){if(typeof bY.getElementById!=="undefined"&&!bZ){var bW=bY.getElementById(bX[1]);return bW?bW.id===bX[1]||typeof bW.getAttributeNode!=="undefined"&&bW.getAttributeNode("id").nodeValue===bX[1]?[bW]:M:[]}};bH.filter.ID=function(bY,bW){var bX=typeof bY.getAttributeNode!=="undefined"&&bY.getAttributeNode("id");return bY.nodeType===1&&bX&&bX.nodeValue===bW}}e.removeChild(bU);e=bU=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bH.find.TAG=function(bU,bY){var bX=bY.getElementsByTagName(bU[1]);if(bU[1]==="*"){var bW=[];for(var bV=0;bX[bV];bV++){if(bX[bV].nodeType===1){bW.push(bX[bV])}}bX=bW}return bX}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bH.attrHandle.href=function(bU){return bU.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=bB,bW=av.createElement("div"),bV="__sizzle__";bW.innerHTML="<p class='TEST'></p>";if(bW.querySelectorAll&&bW.querySelectorAll(".TEST").length===0){return}bB=function(b7,bY,b2,b6){bY=bY||av;if(!b6&&!bB.isXML(bY)){var b5=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b7);if(b5&&(bY.nodeType===1||bY.nodeType===9)){if(b5[1]){return bI(bY.getElementsByTagName(b7),b2)}else{if(b5[2]&&bH.find.CLASS&&bY.getElementsByClassName){return bI(bY.getElementsByClassName(b5[2]),b2)}}}if(bY.nodeType===9){if(b7==="body"&&bY.body){return bI([bY.body],b2)}else{if(b5&&b5[3]){var b1=bY.getElementById(b5[3]);if(b1&&b1.parentNode){if(b1.id===b5[3]){return bI([b1],b2)}}else{return bI([],b2)}}}try{return bI(bY.querySelectorAll(b7),b2)}catch(b3){}}else{if(bY.nodeType===1&&bY.nodeName.toLowerCase()!=="object"){var bZ=bY,b0=bY.getAttribute("id"),bX=b0||bV,b9=bY.parentNode,b8=/^\s*[+~]/.test(b7);if(!b0){bY.setAttribute("id",bX)}else{bX=bX.replace(/'/g,"\\$&")}if(b8&&b9){bY=bY.parentNode}try{if(!b8||b9){return bI(bY.querySelectorAll("[id='"+bX+"'] "+b7),b2)}}catch(b4){}finally{if(!b0){bZ.removeAttribute("id")}}}}}return e(b7,bY,b2,b6)};for(var bU in e){bB[bU]=e[bU]}bW=null})()}(function(){var e=av.documentElement,bV=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bV){var bX=!bV.call(av.createElement("div"),"div"),bU=false;try{bV.call(av.documentElement,"[test!='']:sizzle")}catch(bW){bU=true}bB.matchesSelector=function(bZ,b1){b1=b1.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bB.isXML(bZ)){try{if(bU||!bH.match.PSEUDO.test(b1)&&!/!=/.test(b1)){var bY=bV.call(bZ,b1);if(bY||!bX||bZ.document&&bZ.document.nodeType!==11){return bY}}}catch(b0){}}return bB(b1,null,null,[bZ]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bH.order.splice(1,0,"CLASS");bH.find.CLASS=function(bU,bV,bW){if(typeof bV.getElementsByClassName!=="undefined"&&!bW){return bV.getElementsByClassName(bU[1])}};e=null})();function by(bU,bZ,bY,b2,b0,b1){for(var bW=0,bV=b2.length;bW<bV;bW++){var e=b2[bW];if(e){var bX=false;e=e[bU];while(e){if(e[bF]===bY){bX=b2[e.sizset];break}if(e.nodeType===1&&!b1){e[bF]=bY;e.sizset=bW}if(e.nodeName.toLowerCase()===bZ){bX=e;break}e=e[bU]}b2[bW]=bX}}}function bQ(bU,bZ,bY,b2,b0,b1){for(var bW=0,bV=b2.length;bW<bV;bW++){var e=b2[bW];if(e){var bX=false;e=e[bU];while(e){if(e[bF]===bY){bX=b2[e.sizset];break}if(e.nodeType===1){if(!b1){e[bF]=bY;e.sizset=bW}if(typeof bZ!=="string"){if(e===bZ){bX=true;break}}else{if(bB.filter(bZ,[e]).length>0){bX=e;break}}}e=e[bU]}b2[bW]=bX}}}if(av.documentElement.contains){bB.contains=function(bU,e){return bU!==e&&(bU.contains?bU.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){bB.contains=function(bU,e){return !!(bU.compareDocumentPosition(e)&16)}}else{bB.contains=function(){return false}}}bB.isXML=function(e){var bU=(e?e.ownerDocument||e:0).documentElement;return bU?bU.nodeName!=="HTML":false};var bP=function(bV,e,bZ){var bY,b0=[],bX="",b1=e.nodeType?[e]:e;while((bY=bH.match.PSEUDO.exec(bV))){bX+=bY[0];bV=bV.replace(bH.match.PSEUDO,"")}bV=bH.relative[bV]?bV+"*":bV;for(var bW=0,bU=b1.length;bW<bU;bW++){bB(bV,b1[bW],b0,bZ)}return bB.filter(bX,b0)};bB.attr=b.attr;bB.selectors.attrMap={};b.find=bB;b.expr=bB.selectors;b.expr[":"]=b.expr.filters;b.unique=bB.uniqueSort;b.text=bB.getText;b.isXMLDoc=bB.isXML;b.contains=bB.contains})();var ac=/Until$/,aq=/^(?:parents|prevUntil|prevAll)/,bb=/,/,bs=/^.[^:#\[\.,]*$/,R=Array.prototype.slice,I=b.expr.match.POS,ay={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bz=this,bB,by;if(typeof e!=="string"){return b(e).filter(function(){for(bB=0,by=bz.length;bB<by;bB++){if(b.contains(bz[bB],this)){return true}}})}var bA=this.pushStack("","find",e),bD,bE,bC;for(bB=0,by=this.length;bB<by;bB++){bD=bA.length;b.find(e,this[bB],bA);if(bB>0){for(bE=bD;bE<bA.length;bE++){for(bC=0;bC<bD;bC++){if(bA[bC]===bA[bE]){bA.splice(bE--,1);break}}}}}return bA},has:function(by){var e=b(by);return this.filter(function(){for(var bA=0,bz=e.length;bA<bz;bA++){if(b.contains(this,e[bA])){return true}}})},not:function(e){return this.pushStack(aG(this,e,false),"not",e)},filter:function(e){return this.pushStack(aG(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?I.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bB,bA){var by=[],bz,e,bC=this[0];if(b.isArray(bB)){var bE=1;while(bC&&bC.ownerDocument&&bC!==bA){for(bz=0;bz<bB.length;bz++){if(b(bC).is(bB[bz])){by.push({selector:bB[bz],elem:bC,level:bE})}}bC=bC.parentNode;bE++}return by}var bD=I.test(bB)||typeof bB!=="string"?b(bB,bA||this.context):0;for(bz=0,e=this.length;bz<e;bz++){bC=this[bz];while(bC){if(bD?bD.index(bC)>-1:b.find.matchesSelector(bC,bB)){by.push(bC);break}else{bC=bC.parentNode;if(!bC||!bC.ownerDocument||bC===bA||bC.nodeType===11){break}}}}by=by.length>1?b.unique(by):by;return this.pushStack(by,"closest",bB)},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1}if(typeof e==="string"){return b.inArray(this[0],b(e))}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,by){var bA=typeof e==="string"?b(e,by):b.makeArray(e&&e.nodeType?[e]:e),bz=b.merge(this.get(),bA);return this.pushStack(C(bA[0])||C(bz[0])?bz:b.unique(bz))},andSelf:function(){return this.add(this.prevObject)}});function C(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(by){var e=by.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(by,e,bz){return b.dir(by,"parentNode",bz)},next:function(e){return b.nth(e,2,"nextSibling")},prev:function(e){return b.nth(e,2,"previousSibling")},nextAll:function(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previousSibling")},nextUntil:function(by,e,bz){return b.dir(by,"nextSibling",bz)},prevUntil:function(by,e,bz){return b.dir(by,"previousSibling",bz)},siblings:function(e){return b.sibling(e.parentNode.firstChild,e)},children:function(e){return b.sibling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:b.makeArray(e.childNodes)}},function(e,by){b.fn[e]=function(bC,bz){var bB=b.map(this,by,bC),bA=R.call(arguments);if(!ac.test(e)){bz=bC}if(bz&&typeof bz==="string"){bB=b.filter(bz,bB)}bB=this.length>1&&!ay[e]?b.unique(bB):bB;if((this.length>1||bb.test(bz))&&aq.test(e)){bB=bB.reverse()}return this.pushStack(bB,e,bA.join(","))}});b.extend({filter:function(bz,e,by){if(by){bz=":not("+bz+")"}return e.length===1?b.find.matchesSelector(e[0],bz)?[e[0]]:[]:b.find.matches(bz,e)},dir:function(bz,by,bB){var e=[],bA=bz[by];while(bA&&bA.nodeType!==9&&(bB===M||bA.nodeType!==1||!b(bA).is(bB))){if(bA.nodeType===1){e.push(bA)}bA=bA[by]}return e},nth:function(bB,e,bz,bA){e=e||1;var by=0;for(;bB;bB=bB[bz]){if(bB.nodeType===1&&++by===e){break}}return bB},sibling:function(bz,by){var e=[];for(;bz;bz=bz.nextSibling){if(bz.nodeType===1&&bz!==by){e.push(bz)}}return e}});function aG(bA,bz,e){bz=bz||0;if(b.isFunction(bz)){return b.grep(bA,function(bC,bB){var bD=!!bz.call(bC,bB,bC);return bD===e})}else{if(bz.nodeType){return b.grep(bA,function(bC,bB){return(bC===bz)===e})}else{if(typeof bz==="string"){var by=b.grep(bA,function(bB){return bB.nodeType===1});if(bs.test(bz)){return b.filter(bz,by,!e)}else{bz=b.filter(bz,by)}}}}return b.grep(bA,function(bC,bB){return(b.inArray(bC,bz)>=0)===e})}function a(e){var bz=aS.split(" "),by=e.createDocumentFragment();if(by.createElement){while(bz.length){by.createElement(bz.pop())}}return by}var aS="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",ah=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,T=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,w=/<tbody/i,X=/<|&#?\w+;/,af=/<(?:script|style)/i,Q=/<(?:script|object|embed|option|style)/i,ai=new RegExp("<(?:"+aS.replace(" ","|")+")","i"),o=/checked\s*(?:[^=]|=\s*.checked.)/i,bp=/\/(java|ecma)script/i,aO=/^\s*<!(?:\[CDATA\[|\-\-)/,ax={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},ad=a(av);ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bz){var by=b(this);by.text(e.call(this,bz,by.text()))})}if(typeof e!=="object"&&e!==M){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bz){b(this).wrapAll(e.call(this,bz))})}if(this[0]){var by=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){by.insertBefore(this[0])}by.map(function(){var bz=this;while(bz.firstChild&&bz.firstChild.nodeType===1){bz=bz.firstChild}return bz}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(by){b(this).wrapInner(e.call(this,by))})}return this.each(function(){var by=b(this),bz=by.contents();if(bz.length){bz.wrapAll(e)}else{by.append(e)}})},wrap:function(e){return this.each(function(){b(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(by){this.parentNode.insertBefore(by,this)})}else{if(arguments.length){var e=b(arguments[0]);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(by){this.parentNode.insertBefore(by,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b(arguments[0]).toArray());return e}}},remove:function(e,bA){for(var by=0,bz;(bz=this[by])!=null;by++){if(!e||b.filter(e,[bz]).length){if(!bA&&bz.nodeType===1){b.cleanData(bz.getElementsByTagName("*"));b.cleanData([bz])}if(bz.parentNode){bz.parentNode.removeChild(bz)}}}return this},empty:function(){for(var e=0,by;(by=this[e])!=null;e++){if(by.nodeType===1){b.cleanData(by.getElementsByTagName("*"))}while(by.firstChild){by.removeChild(by.firstChild)}}return this},clone:function(by,e){by=by==null?false:by;e=e==null?by:e;return this.map(function(){return b.clone(this,by,e)})},html:function(bA){if(bA===M){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ah,""):null}else{if(typeof bA==="string"&&!af.test(bA)&&(b.support.leadingWhitespace||!ar.test(bA))&&!ax[(d.exec(bA)||["",""])[1].toLowerCase()]){bA=bA.replace(T,"<$1></$2>");try{for(var bz=0,by=this.length;bz<by;bz++){if(this[bz].nodeType===1){b.cleanData(this[bz].getElementsByTagName("*"));this[bz].innerHTML=bA}}}catch(bB){this.empty().append(bA)}}else{if(b.isFunction(bA)){this.each(function(bC){var e=b(this);e.html(bA.call(this,bC,e.html()))})}else{this.empty().append(bA)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bA){var bz=b(this),by=bz.html();bz.replaceWith(e.call(this,bA,by))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bz=this.nextSibling,by=this.parentNode;b(this).remove();if(bz){b(bz).before(e)}else{b(by).append(e)}})}else{return this.length?this.pushStack(b(b.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bE,bI,bH){var bA,bB,bD,bG,bF=bE[0],by=[];if(!b.support.checkClone&&arguments.length===3&&typeof bF==="string"&&o.test(bF)){return this.each(function(){b(this).domManip(bE,bI,bH,true)})}if(b.isFunction(bF)){return this.each(function(bK){var bJ=b(this);bE[0]=bF.call(this,bK,bI?bJ.html():M);bJ.domManip(bE,bI,bH)})}if(this[0]){bG=bF&&bF.parentNode;if(b.support.parentNode&&bG&&bG.nodeType===11&&bG.childNodes.length===this.length){bA={fragment:bG}}else{bA=b.buildFragment(bE,this,by)}bD=bA.fragment;if(bD.childNodes.length===1){bB=bD=bD.firstChild}else{bB=bD.firstChild}if(bB){bI=bI&&b.nodeName(bB,"tr");for(var bz=0,e=this.length,bC=e-1;bz<e;bz++){bH.call(bI?bc(this[bz],bB):this[bz],bA.cacheable||(e>1&&bz<bC)?b.clone(bD,true,true):bD)}}if(by.length){b.each(by,br)}}return this}});function bc(e,by){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function t(bE,by){if(by.nodeType!==1||!b.hasData(bE)){return}var bB,bA,e,bD=b._data(bE),bC=b._data(by,bD),bz=bD.events;if(bz){delete bC.handle;bC.events={};for(bB in bz){for(bA=0,e=bz[bB].length;bA<e;bA++){b.event.add(by,bB+(bz[bB][bA].namespace?".":"")+bz[bB][bA].namespace,bz[bB][bA],bz[bB][bA].data)}}}if(bC.data){bC.data=b.extend({},bC.data)}}function aj(by,e){var bz;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(by)}bz=e.nodeName.toLowerCase();if(bz==="object"){e.outerHTML=by.outerHTML}else{if(bz==="input"&&(by.type==="checkbox"||by.type==="radio")){if(by.checked){e.defaultChecked=e.checked=by.checked}if(e.value!==by.value){e.value=by.value}}else{if(bz==="option"){e.selected=by.defaultSelected}else{if(bz==="input"||bz==="textarea"){e.defaultValue=by.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bC,bA,by){var bB,e,bz,bD,bE=bC[0];if(bA&&bA[0]){bD=bA[0].ownerDocument||bA[0]}if(!bD.createDocumentFragment){bD=av}if(bC.length===1&&typeof bE==="string"&&bE.length<512&&bD===av&&bE.charAt(0)==="<"&&!Q.test(bE)&&(b.support.checkClone||!o.test(bE))&&(!b.support.unknownElems&&ai.test(bE))){e=true;bz=b.fragments[bE];if(bz&&bz!==1){bB=bz}}if(!bB){bB=bD.createDocumentFragment();b.clean(bC,bD,bB,by)}if(e){b.fragments[bE]=bz?bB:1}return{fragment:bB,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,by){b.fn[e]=function(bz){var bC=[],bF=b(bz),bE=this.length===1&&this[0].parentNode;if(bE&&bE.nodeType===11&&bE.childNodes.length===1&&bF.length===1){bF[by](this[0]);return this}else{for(var bD=0,bA=bF.length;bD<bA;bD++){var bB=(bD>0?this.clone(true):this).get();b(bF[bD])[by](bB);bC=bC.concat(bB)}return this.pushStack(bC,e,bF.selector)}}});function bi(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function E(e){var by=(e.nodeName||"").toLowerCase();if(by==="input"){az(e)}else{if(by!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),az)}}}b.extend({clone:function(bB,bD,bz){var bC=bB.cloneNode(true),e,by,bA;if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bB.nodeType===1||bB.nodeType===11)&&!b.isXMLDoc(bB)){aj(bB,bC);e=bi(bB);by=bi(bC);for(bA=0;e[bA];++bA){if(by[bA]){aj(e[bA],by[bA])}}}if(bD){t(bB,bC);if(bz){e=bi(bB);by=bi(bC);for(bA=0;e[bA];++bA){t(e[bA],by[bA])}}}e=by=null;return bC},clean:function(bz,bB,bK,bD){var bI;bB=bB||av;if(typeof bB.createElement==="undefined"){bB=bB.ownerDocument||bB[0]&&bB[0].ownerDocument||av}var bL=[],bE;for(var bH=0,bC;(bC=bz[bH])!=null;bH++){if(typeof bC==="number"){bC+=""}if(!bC){continue}if(typeof bC==="string"){if(!X.test(bC)){bC=bB.createTextNode(bC)}else{bC=bC.replace(T,"<$1></$2>");var bN=(d.exec(bC)||["",""])[1].toLowerCase(),bA=ax[bN]||ax._default,bG=bA[0],by=bB.createElement("div");if(bB===av){ad.appendChild(by)}else{a(bB).appendChild(by)}by.innerHTML=bA[1]+bC+bA[2];while(bG--){by=by.lastChild}if(!b.support.tbody){var e=w.test(bC),bF=bN==="table"&&!e?by.firstChild&&by.firstChild.childNodes:bA[1]==="<table>"&&!e?by.childNodes:[];for(bE=bF.length-1;bE>=0;--bE){if(b.nodeName(bF[bE],"tbody")&&!bF[bE].childNodes.length){bF[bE].parentNode.removeChild(bF[bE])}}}if(!b.support.leadingWhitespace&&ar.test(bC)){by.insertBefore(bB.createTextNode(ar.exec(bC)[0]),by.firstChild)}bC=by.childNodes}}var bJ;if(!b.support.appendChecked){if(bC[0]&&typeof(bJ=bC.length)==="number"){for(bE=0;bE<bJ;bE++){E(bC[bE])}}else{E(bC)}}if(bC.nodeType){bL.push(bC)}else{bL=b.merge(bL,bC)}}if(bK){bI=function(bO){return !bO.type||bp.test(bO.type)};for(bH=0;bL[bH];bH++){if(bD&&b.nodeName(bL[bH],"script")&&(!bL[bH].type||bL[bH].type.toLowerCase()==="text/javascript")){bD.push(bL[bH].parentNode?bL[bH].parentNode.removeChild(bL[bH]):bL[bH])}else{if(bL[bH].nodeType===1){var bM=b.grep(bL[bH].getElementsByTagName("script"),bI);bL.splice.apply(bL,[bH+1,0].concat(bM))}bK.appendChild(bL[bH])}}}return bL},cleanData:function(by){var bB,bz,e=b.cache,bE=b.event.special,bD=b.support.deleteExpando;for(var bC=0,bA;(bA=by[bC])!=null;bC++){if(bA.nodeName&&b.noData[bA.nodeName.toLowerCase()]){continue}bz=bA[b.expando];if(bz){bB=e[bz];if(bB&&bB.events){for(var bF in bB.events){if(bE[bF]){b.event.remove(bA,bF)}else{b.removeEvent(bA,bF,bB.handle)}}if(bB.handle){bB.handle.elem=null}}if(bD){delete bA[b.expando]}else{if(bA.removeAttribute){bA.removeAttribute(b.expando)}}delete e[bz]}}}});function br(e,by){if(by.src){b.ajax({url:by.src,async:false,dataType:"script"})}else{b.globalEval((by.text||by.textContent||by.innerHTML||"").replace(aO,"/*$0*/"))}if(by.parentNode){by.parentNode.removeChild(by)}}var al=/alpha\([^)]*\)/i,au=/opacity=([^)]*)/,z=/([A-Z]|^ms)/g,be=/^-?\d+(?:px)?$/i,bq=/^-?\d/,J=/^([\-+])=([\-+.\de]+)/,a9={position:"absolute",visibility:"hidden",display:"block"},an=["Left","Right"],a3=["Top","Bottom"],aa,aJ,aY;b.fn.css=function(e,by){if(arguments.length===2&&by===M){return this}return b.access(this,e,by,true,function(bA,bz,bB){return bB!==M?b.style(bA,bz,bB):b.css(bA,bz)})};b.extend({cssHooks:{opacity:{get:function(bz,by){if(by){var e=aa(bz,"opacity","opacity");return e===""?"1":e}else{return bz.style.opacity}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bA,bz,bG,bB){if(!bA||bA.nodeType===3||bA.nodeType===8||!bA.style){return}var bE,bF,bC=b.camelCase(bz),by=bA.style,bH=b.cssHooks[bC];bz=b.cssProps[bC]||bC;if(bG!==M){bF=typeof bG;if(bF==="string"&&(bE=J.exec(bG))){bG=(+(bE[1]+1)*+bE[2])+parseFloat(b.css(bA,bz));bF="number"}if(bG==null||bF==="number"&&isNaN(bG)){return}if(bF==="number"&&!b.cssNumber[bC]){bG+="px"}if(!bH||!("set" in bH)||(bG=bH.set(bA,bG))!==M){try{by[bz]=bG}catch(bD){}}}else{if(bH&&"get" in bH&&(bE=bH.get(bA,false,bB))!==M){return bE}return by[bz]}},css:function(bB,bA,by){var bz,e;bA=b.camelCase(bA);e=b.cssHooks[bA];bA=b.cssProps[bA]||bA;if(bA==="cssFloat"){bA="float"}if(e&&"get" in e&&(bz=e.get(bB,true,by))!==M){return bz}else{if(aa){return aa(bB,bA)}}},swap:function(bA,bz,bB){var e={};for(var by in bz){e[by]=bA.style[by];bA.style[by]=bz[by]}bB.call(bA);for(by in bz){bA.style[by]=e[by]}}});b.curCSS=b.css;b.each(["height","width"],function(by,e){b.cssHooks[e]={get:function(bB,bA,bz){var bC;if(bA){if(bB.offsetWidth!==0){return p(bB,e,bz)}else{b.swap(bB,a9,function(){bC=p(bB,e,bz)})}return bC}},set:function(bz,bA){if(be.test(bA)){bA=parseFloat(bA);if(bA>=0){return bA+"px"}}else{return bA}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(by,e){return au.test((e&&by.currentStyle?by.currentStyle.filter:by.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bB,bC){var bA=bB.style,by=bB.currentStyle,e=b.isNumeric(bC)?"alpha(opacity="+bC*100+")":"",bz=by&&by.filter||bA.filter||"";bA.zoom=1;if(bC>=1&&b.trim(bz.replace(al,""))===""){bA.removeAttribute("filter");if(by&&!by.filter){return}}bA.filter=al.test(bz)?bz.replace(al,e):bz+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bz,by){var e;b.swap(bz,{display:"inline-block"},function(){if(by){e=aa(bz,"margin-right","marginRight")}else{e=bz.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aJ=function(bB,bz){var by,bA,e;bz=bz.replace(z,"-$1").toLowerCase();if(!(bA=bB.ownerDocument.defaultView)){return M}if((e=bA.getComputedStyle(bB,null))){by=e.getPropertyValue(bz);if(by===""&&!b.contains(bB.ownerDocument.documentElement,bB)){by=b.style(bB,bz)}}return by}}if(av.documentElement.currentStyle){aY=function(bC,bz){var bD,e,bB,by=bC.currentStyle&&bC.currentStyle[bz],bA=bC.style;if(by===null&&bA&&(bB=bA[bz])){by=bB}if(!be.test(by)&&bq.test(by)){bD=bA.left;e=bC.runtimeStyle&&bC.runtimeStyle.left;if(e){bC.runtimeStyle.left=bC.currentStyle.left}bA.left=bz==="fontSize"?"1em":(by||0);by=bA.pixelLeft+"px";bA.left=bD;if(e){bC.runtimeStyle.left=e}}return by===""?"auto":by}}aa=aJ||aY;function p(bz,by,e){var bB=by==="width"?bz.offsetWidth:bz.offsetHeight,bA=by==="width"?an:a3;if(bB>0){if(e!=="border"){b.each(bA,function(){if(!e){bB-=parseFloat(b.css(bz,"padding"+this))||0}if(e==="margin"){bB+=parseFloat(b.css(bz,e+this))||0}else{bB-=parseFloat(b.css(bz,"border"+this+"Width"))||0}})}return bB+"px"}bB=aa(bz,by,by);if(bB<0||bB==null){bB=bz.style[by]||0}bB=parseFloat(bB)||0;if(e){b.each(bA,function(){bB+=parseFloat(b.css(bz,"padding"+this))||0;if(e!=="padding"){bB+=parseFloat(b.css(bz,"border"+this+"Width"))||0}if(e==="margin"){bB+=parseFloat(b.css(bz,e+this))||0}})}return bB+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bz){var by=bz.offsetWidth,e=bz.offsetHeight;return(by===0&&e===0)||(!b.support.reliableHiddenOffsets&&((bz.style&&bz.style.display)||b.css(bz,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var k=/%20/g,ap=/\[\]$/,bv=/\r?\n/g,bt=/#.*$/,aD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a0=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aN=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aR=/^(?:GET|HEAD)$/,c=/^\/\//,N=/\?/,a8=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,q=/^(?:select|textarea)/i,h=/\s+/,bu=/([?&])_=[^&]*/,L=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,A=b.fn.load,ab={},r={},aE,s,aW=["*/"]+["*"];try{aE=bo.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}s=L.exec(aE.toLowerCase())||[];function f(e){return function(bB,bD){if(typeof bB!=="string"){bD=bB;bB="*"}if(b.isFunction(bD)){var bA=bB.toLowerCase().split(h),bz=0,bC=bA.length,by,bE,bF;for(;bz<bC;bz++){by=bA[bz];bF=/^\+/.test(by);if(bF){by=by.substr(1)||"*"}bE=e[by]=e[by]||[];bE[bF?"unshift":"push"](bD)}}}}function aX(by,bH,bC,bG,bE,bA){bE=bE||bH.dataTypes[0];bA=bA||{};bA[bE]=true;var bD=by[bE],bz=0,e=bD?bD.length:0,bB=(by===ab),bF;for(;bz<e&&(bB||!bF);bz++){bF=bD[bz](bH,bC,bG);if(typeof bF==="string"){if(!bB||bA[bF]){bF=M}else{bH.dataTypes.unshift(bF);bF=aX(by,bH,bC,bG,bF,bA)}}}if((bB||!bF)&&!bA["*"]){bF=aX(by,bH,bC,bG,"*",bA)}return bF}function am(bz,bA){var by,e,bB=b.ajaxSettings.flatOptions||{};for(by in bA){if(bA[by]!==M){(bB[by]?bz:(e||(e={})))[by]=bA[by]}}if(e){b.extend(true,bz,e)}}b.fn.extend({load:function(bz,bC,bD){if(typeof bz!=="string"&&A){return A.apply(this,arguments)}else{if(!this.length){return this}}var bB=bz.indexOf(" ");if(bB>=0){var e=bz.slice(bB,bz.length);bz=bz.slice(0,bB)}var bA="GET";if(bC){if(b.isFunction(bC)){bD=bC;bC=M}else{if(typeof bC==="object"){bC=b.param(bC,b.ajaxSettings.traditional);bA="POST"}}}var by=this;b.ajax({url:bz,type:bA,dataType:"html",data:bC,complete:function(bF,bE,bG){bG=bF.responseText;if(bF.isResolved()){bF.done(function(bH){bG=bH});by.html(e?b("<div>").append(bG.replace(a8,"")).find(e):bG)}if(bD){by.each(bD,[bG,bE,bF])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||q.test(this.nodeName)||a0.test(this.type))}).map(function(e,by){var bz=b(this).val();return bz==null?null:b.isArray(bz)?b.map(bz,function(bB,bA){return{name:by.name,value:bB.replace(bv,"\r\n")}}):{name:by.name,value:bz.replace(bv,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,by){b.fn[by]=function(bz){return this.bind(by,bz)}});b.each(["get","post"],function(e,by){b[by]=function(bz,bB,bC,bA){if(b.isFunction(bB)){bA=bA||bC;bC=bB;bB=M}return b.ajax({type:by,url:bz,data:bB,success:bC,dataType:bA})}});b.extend({getScript:function(e,by){return b.get(e,M,by,"script")},getJSON:function(e,by,bz){return b.get(e,by,bz,"json")},ajaxSetup:function(by,e){if(e){am(by,b.ajaxSettings)}else{e=by;by=b.ajaxSettings}am(by,e);return by},ajaxSettings:{url:aE,isLocal:aN.test(s[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":aW},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bd.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(ab),ajaxTransport:f(r),ajax:function(bC,bA){if(typeof bC==="object"){bA=bC;bC=M}bA=bA||{};var bG=b.ajaxSetup({},bA),bV=bG.context||bG,bJ=bV!==bG&&(bV.nodeType||bV instanceof b)?b(bV):b.event,bU=b.Deferred(),bQ=b.Callbacks("once memory"),bE=bG.statusCode||{},bF,bK={},bR={},bT,bB,bO,bH,bL,bD=0,bz,bN,bM={readyState:0,setRequestHeader:function(bW,bX){if(!bD){var e=bW.toLowerCase();bW=bR[e]=bR[e]||bW;bK[bW]=bX}return this},getAllResponseHeaders:function(){return bD===2?bT:null},getResponseHeader:function(bW){var e;if(bD===2){if(!bB){bB={};while((e=aD.exec(bT))){bB[e[1].toLowerCase()]=e[2]}}e=bB[bW.toLowerCase()]}return e===M?null:e},overrideMimeType:function(e){if(!bD){bG.mimeType=e}return this},abort:function(e){e=e||"abort";if(bO){bO.abort(e)}bI(0,e);return this}};function bI(b2,bX,b3,bZ){if(bD===2){return}bD=2;if(bH){clearTimeout(bH)}bO=M;bT=bZ||"";bM.readyState=b2>0?4:0;var bW,b7,b6,b0=bX,b1=b3?bm(bG,bM,b3):M,bY,b5;if(b2>=200&&b2<300||b2===304){if(bG.ifModified){if((bY=bM.getResponseHeader("Last-Modified"))){b.lastModified[bF]=bY}if((b5=bM.getResponseHeader("Etag"))){b.etag[bF]=b5}}if(b2===304){b0="notmodified";bW=true}else{try{b7=H(bG,b1);b0="success";bW=true}catch(b4){b0="parsererror";b6=b4}}}else{b6=b0;if(!b0||b2){b0="error";if(b2<0){b2=0}}}bM.status=b2;bM.statusText=""+(bX||b0);if(bW){bU.resolveWith(bV,[b7,b0,bM])}else{bU.rejectWith(bV,[bM,b0,b6])}bM.statusCode(bE);bE=M;if(bz){bJ.trigger("ajax"+(bW?"Success":"Error"),[bM,bG,bW?b7:b6])}bQ.fireWith(bV,[bM,b0]);if(bz){bJ.trigger("ajaxComplete",[bM,bG]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bU.promise(bM);bM.success=bM.done;bM.error=bM.fail;bM.complete=bQ.add;bM.statusCode=function(bW){if(bW){var e;if(bD<2){for(e in bW){bE[e]=[bE[e],bW[e]]}}else{e=bW[bM.status];bM.then(e,e)}}return this};bG.url=((bC||bG.url)+"").replace(bt,"").replace(c,s[1]+"//");bG.dataTypes=b.trim(bG.dataType||"*").toLowerCase().split(h);if(bG.crossDomain==null){bL=L.exec(bG.url.toLowerCase());bG.crossDomain=!!(bL&&(bL[1]!=s[1]||bL[2]!=s[2]||(bL[3]||(bL[1]==="http:"?80:443))!=(s[3]||(s[1]==="http:"?80:443))))}if(bG.data&&bG.processData&&typeof bG.data!=="string"){bG.data=b.param(bG.data,bG.traditional)}aX(ab,bG,bA,bM);if(bD===2){return false}bz=bG.global;bG.type=bG.type.toUpperCase();bG.hasContent=!aR.test(bG.type);if(bz&&b.active++===0){b.event.trigger("ajaxStart")}if(!bG.hasContent){if(bG.data){bG.url+=(N.test(bG.url)?"&":"?")+bG.data;delete bG.data}bF=bG.url;if(bG.cache===false){var by=b.now(),bS=bG.url.replace(bu,"$1_="+by);bG.url=bS+((bS===bG.url)?(N.test(bG.url)?"&":"?")+"_="+by:"")}}if(bG.data&&bG.hasContent&&bG.contentType!==false||bA.contentType){bM.setRequestHeader("Content-Type",bG.contentType)}if(bG.ifModified){bF=bF||bG.url;if(b.lastModified[bF]){bM.setRequestHeader("If-Modified-Since",b.lastModified[bF])}if(b.etag[bF]){bM.setRequestHeader("If-None-Match",b.etag[bF])}}bM.setRequestHeader("Accept",bG.dataTypes[0]&&bG.accepts[bG.dataTypes[0]]?bG.accepts[bG.dataTypes[0]]+(bG.dataTypes[0]!=="*"?", "+aW+"; q=0.01":""):bG.accepts["*"]);for(bN in bG.headers){bM.setRequestHeader(bN,bG.headers[bN])}if(bG.beforeSend&&(bG.beforeSend.call(bV,bM,bG)===false||bD===2)){bM.abort();return false}for(bN in {success:1,error:1,complete:1}){bM[bN](bG[bN])}bO=aX(r,bG,bA,bM);if(!bO){bI(-1,"No Transport")}else{bM.readyState=1;if(bz){bJ.trigger("ajaxSend",[bM,bG])}if(bG.async&&bG.timeout>0){bH=setTimeout(function(){bM.abort("timeout")},bG.timeout)}try{bD=1;bO.send(bK,bI)}catch(bP){if(bD<2){bI(-1,bP)}else{b.error(bP)}}}return bM},param:function(e,bz){var by=[],bB=function(bC,bD){bD=b.isFunction(bD)?bD():bD;by[by.length]=encodeURIComponent(bC)+"="+encodeURIComponent(bD)};if(bz===M){bz=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bB(this.name,this.value)})}else{for(var bA in e){v(bA,e[bA],bz,bB)}}return by.join("&").replace(k,"+")}});function v(bz,bB,by,bA){if(b.isArray(bB)){b.each(bB,function(bD,bC){if(by||ap.test(bz)){bA(bz,bC)}else{v(bz+"["+(typeof bC==="object"||b.isArray(bC)?bD:"")+"]",bC,by,bA)}})}else{if(!by&&bB!=null&&typeof bB==="object"){for(var e in bB){v(bz+"["+e+"]",bB[e],by,bA)}}else{bA(bz,bB)}}}b.extend({active:0,lastModified:{},etag:{}});function bm(bG,bF,bC){var by=bG.contents,bE=bG.dataTypes,bz=bG.responseFields,bB,bD,bA,e;for(bD in bz){if(bD in bC){bF[bz[bD]]=bC[bD]}}while(bE[0]==="*"){bE.shift();if(bB===M){bB=bG.mimeType||bF.getResponseHeader("content-type")}}if(bB){for(bD in by){if(by[bD]&&by[bD].test(bB)){bE.unshift(bD);break}}}if(bE[0] in bC){bA=bE[0]}else{for(bD in bC){if(!bE[0]||bG.converters[bD+" "+bE[0]]){bA=bD;break}if(!e){e=bD}}bA=bA||e}if(bA){if(bA!==bE[0]){bE.unshift(bA)}return bC[bA]}}function H(bK,bC){if(bK.dataFilter){bC=bK.dataFilter(bC,bK.dataType)}var bG=bK.dataTypes,bJ={},bD,bH,bz=bG.length,bE,bF=bG[0],bA,bB,bI,by,e;for(bD=1;bD<bz;bD++){if(bD===1){for(bH in bK.converters){if(typeof bH==="string"){bJ[bH.toLowerCase()]=bK.converters[bH]}}}bA=bF;bF=bG[bD];if(bF==="*"){bF=bA}else{if(bA!=="*"&&bA!==bF){bB=bA+" "+bF;bI=bJ[bB]||bJ["* "+bF];if(!bI){e=M;for(by in bJ){bE=by.split(" ");if(bE[0]===bA||bE[0]==="*"){e=bJ[bE[1]+" "+bF];if(e){by=bJ[by];if(by===true){bI=e}else{if(e===true){bI=by}}break}}}}if(!(bI||e)){b.error("No conversion from "+bB.replace(" "," to "))}if(bI!==true){bC=bI?bI(bC):e(by(bC))}}}}return bC}var aC=b.now(),u=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aC++)}});b.ajaxPrefilter("json jsonp",function(bG,bD,bF){var bA=bG.contentType==="application/x-www-form-urlencoded"&&(typeof bG.data==="string");if(bG.dataTypes[0]==="jsonp"||bG.jsonp!==false&&(u.test(bG.url)||bA&&u.test(bG.data))){var bE,bz=bG.jsonpCallback=b.isFunction(bG.jsonpCallback)?bG.jsonpCallback():bG.jsonpCallback,bC=bd[bz],e=bG.url,bB=bG.data,by="$1"+bz+"$2";if(bG.jsonp!==false){e=e.replace(u,by);if(bG.url===e){if(bA){bB=bB.replace(u,by)}if(bG.data===bB){e+=(/\?/.test(e)?"&":"?")+bG.jsonp+"="+bz}}}bG.url=e;bG.data=bB;bd[bz]=function(bH){bE=[bH]};bF.always(function(){bd[bz]=bC;if(bE&&b.isFunction(bC)){bd[bz](bE[0])}});bG.converters["script json"]=function(){if(!bE){b.error(bz+" was not called")}return bE[0]};bG.dataTypes[0]="json";return"script"}});b.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){b.globalEval(e);return e}}});b.ajaxPrefilter("script",function(e){if(e.cache===M){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(bz){if(bz.crossDomain){var e,by=av.head||av.getElementsByTagName("head")[0]||av.documentElement;return{send:function(bA,bB){e=av.createElement("script");e.async="async";if(bz.scriptCharset){e.charset=bz.scriptCharset}e.src=bz.url;e.onload=e.onreadystatechange=function(bD,bC){if(bC||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(by&&e.parentNode){by.removeChild(e)}e=M;if(!bC){bB(200,"success")}}};by.insertBefore(e,by.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var B=bd.ActiveXObject?function(){for(var e in O){O[e](0,1)}}:false,y=0,O;function aM(){try{return new bd.XMLHttpRequest()}catch(by){}}function ak(){try{return new bd.ActiveXObject("Microsoft.XMLHTTP")}catch(by){}}b.ajaxSettings.xhr=bd.ActiveXObject?function(){return !this.isLocal&&aM()||ak()}:aM;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSettings.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var by;return{send:function(bE,bz){var bD=e.xhr(),bC,bB;if(e.username){bD.open(e.type,e.url,e.async,e.username,e.password)}else{bD.open(e.type,e.url,e.async)}if(e.xhrFields){for(bB in e.xhrFields){bD[bB]=e.xhrFields[bB]}}if(e.mimeType&&bD.overrideMimeType){bD.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bE["X-Requested-With"]){bE["X-Requested-With"]="XMLHttpRequest"}try{for(bB in bE){bD.setRequestHeader(bB,bE[bB])}}catch(bA){}bD.send((e.hasContent&&e.data)||null);by=function(bN,bH){var bI,bG,bF,bL,bK;try{if(by&&(bH||bD.readyState===4)){by=M;if(bC){bD.onreadystatechange=b.noop;if(B){delete O[bC]}}if(bH){if(bD.readyState!==4){bD.abort()}}else{bI=bD.status;bF=bD.getAllResponseHeaders();bL={};bK=bD.responseXML;if(bK&&bK.documentElement){bL.xml=bK}bL.text=bD.responseText;try{bG=bD.statusText}catch(bM){bG=""}if(!bI&&e.isLocal&&!e.crossDomain){bI=bL.text?200:404}else{if(bI===1223){bI=204}}}}}catch(bJ){if(!bH){bz(-1,bJ)}}if(bL){bz(bI,bG,bL,bF)}};if(!e.async||bD.readyState===4){by()}else{bC=++y;if(B){if(!O){O={};b(bd).unload(B)}O[bC]=by}bD.onreadystatechange=by}},abort:function(){if(by){by(0,1)}}}}})}var S={},ba,m,aB=/^(?:toggle|show|hide)$/,aU=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a5,aI=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a6;b.fn.extend({show:function(bA,bD,bC){var bz,bB;if(bA||bA===0){return this.animate(a2("show",3),bA,bD,bC)}else{for(var by=0,e=this.length;by<e;by++){bz=this[by];if(bz.style){bB=bz.style.display;if(!b._data(bz,"olddisplay")&&bB==="none"){bB=bz.style.display=""}if(bB===""&&b.css(bz,"display")==="none"){b._data(bz,"olddisplay",x(bz.nodeName))}}}for(by=0;by<e;by++){bz=this[by];if(bz.style){bB=bz.style.display;if(bB===""||bB==="none"){bz.style.display=b._data(bz,"olddisplay")||""}}}return this}},hide:function(bA,bD,bC){if(bA||bA===0){return this.animate(a2("hide",3),bA,bD,bC)}else{var bz,bB,by=0,e=this.length;for(;by<e;by++){bz=this[by];if(bz.style){bB=b.css(bz,"display");if(bB!=="none"&&!b._data(bz,"olddisplay")){b._data(bz,"olddisplay",bB)}}}for(by=0;by<e;by++){if(this[by].style){this[by].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bz,by,bA){var e=typeof bz==="boolean";if(b.isFunction(bz)&&b.isFunction(by)){this._toggle.apply(this,arguments)}else{if(bz==null||e){this.each(function(){var bB=e?bz:b(this).is(":hidden");b(this)[bB?"show":"hide"]()})}else{this.animate(a2("toggle",3),bz,by,bA)}}return this},fadeTo:function(e,bA,bz,by){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bA},e,bz,by)},animate:function(bC,bz,bB,bA){var e=b.speed(bz,bB,bA);if(b.isEmptyObject(bC)){return this.each(e.complete,[false])}bC=b.extend({},bC);function by(){if(e.queue===false){b._mark(this)}var bH=b.extend({},e),bN=this.nodeType===1,bL=bN&&b(this).is(":hidden"),bE,bI,bG,bM,bK,bF,bJ,bO,bD;bH.animatedProperties={};for(bG in bC){bE=b.camelCase(bG);if(bG!==bE){bC[bE]=bC[bG];delete bC[bG]}bI=bC[bE];if(b.isArray(bI)){bH.animatedProperties[bE]=bI[1];bI=bC[bE]=bI[0]}else{bH.animatedProperties[bE]=bH.specialEasing&&bH.specialEasing[bE]||bH.easing||"swing"}if(bI==="hide"&&bL||bI==="show"&&!bL){return bH.complete.call(this)}if(bN&&(bE==="height"||bE==="width")){bH.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout||x(this.nodeName)==="inline"){this.style.display="inline-block"}else{this.style.zoom=1}}}}if(bH.overflow!=null){this.style.overflow="hidden"}for(bG in bC){bM=new b.fx(this,bH,bG);bI=bC[bG];if(aB.test(bI)){bD=b._data(this,"toggle"+bG)||(bI==="toggle"?bL?"show":"hide":0);if(bD){b._data(this,"toggle"+bG,bD==="show"?"hide":"show");bM[bD]()}else{bM[bI]()}}else{bK=aU.exec(bI);bF=bM.cur();if(bK){bJ=parseFloat(bK[2]);bO=bK[3]||(b.cssNumber[bG]?"":"px");if(bO!=="px"){b.style(this,bG,(bJ||1)+bO);bF=((bJ||1)/bM.cur())*bF;b.style(this,bG,bF+bO)}if(bK[1]){bJ=((bK[1]==="-="?-1:1)*bJ)+bF}bM.custom(bF,bJ,bO)}else{bM.custom(bF,bI,"")}}}return true}return e.queue===false?this.each(by):this.queue(e.queue,by)},stop:function(bz,by,e){if(typeof bz!=="string"){e=by;by=bz;bz=M}if(by&&bz!==false){this.queue(bz||"fx",[])}return this.each(function(){var bB,bA=false,bD=b.timers,bC=b._data(this);if(!e){b._unmark(true,this)}function bE(bH,bI,bG){var bF=bI[bG];b.removeData(bH,bG,true);bF.stop(e)}if(bz==null){for(bB in bC){if(bC[bB].stop&&bB.indexOf(".run")===bB.length-4){bE(this,bC,bB)}}}else{if(bC[bB=bz+".run"]&&bC[bB].stop){bE(this,bC,bB)}}for(bB=bD.length;bB--;){if(bD[bB].elem===this&&(bz==null||bD[bB].queue===bz)){if(e){bD[bB](true)}else{bD[bB].saveState()}bA=true;bD.splice(bB,1)}}if(!(e&&bA)){b.dequeue(this,bz)}})}});function bj(){setTimeout(at,0);return(a6=b.now())}function at(){a6=M}function a2(by,e){var bz={};b.each(aI.concat.apply([],aI.slice(0,e)),function(){bz[this]=by});return bz}b.each({slideDown:a2("show",1),slideUp:a2("hide",1),slideToggle:a2("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,by){b.fn[e]=function(bz,bB,bA){return this.animate(by,bz,bB,bA)}});b.extend({speed:function(bz,bA,by){var e=bz&&typeof bz==="object"?b.extend({},bz):{complete:by||!by&&bA||b.isFunction(bz)&&bz,duration:bz,easing:by&&bA||bA&&!b.isFunction(bA)&&bA};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx"}e.old=e.complete;e.complete=function(bB){if(b.isFunction(e.old)){e.old.call(this)}if(e.queue){b.dequeue(this,e.queue)}else{if(bB!==false){b._unmark(this)}}};return e},easing:{linear:function(bz,bA,e,by){return e+by*bz},swing:function(bz,bA,e,by){return((-Math.cos(bz*Math.PI)/2)+0.5)*by+e}},timers:[],fx:function(by,e,bz){this.options=e;this.elem=by;this.prop=bz;e.orig=e.orig||{}}});b.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(b.fx.step[this.prop]||b.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var e,by=b.css(this.elem,this.prop);return isNaN(e=parseFloat(by))?!by||by==="auto"?0:by:e},custom:function(bC,bB,bA){var e=this,bz=b.fx;this.startTime=a6||bj();this.end=bB;this.now=this.start=bC;this.pos=this.state=0;this.unit=bA||this.unit||(b.cssNumber[this.prop]?"":"px");function by(bD){return e.step(bD)}by.queue=this.options.queue;by.elem=this.elem;by.saveState=function(){if(e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===M){b._data(e.elem,"fxshow"+e.prop,e.start)}};if(by()&&b.timers.push(by)&&!a5){a5=setInterval(bz.tick,bz.interval)}},show:function(){var e=b._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||b.style(this.elem,this.prop);this.options.show=true;if(e!==M){this.custom(this.cur(),e)}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur())}b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b._data(this.elem,"fxshow"+this.prop)||b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bB){var bD,bE,by,bA=a6||bj(),e=true,bC=this.elem,bz=this.options;if(bB||bA>=bz.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bz.animatedProperties[this.prop]=true;for(bD in bz.animatedProperties){if(bz.animatedProperties[bD]!==true){e=false}}if(e){if(bz.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bF,bG){bC.style["overflow"+bG]=bz.overflow[bF]})}if(bz.hide){b(bC).hide()}if(bz.hide||bz.show){for(bD in bz.animatedProperties){b.style(bC,bD,bz.orig[bD]);b.removeData(bC,"fxshow"+bD,true);b.removeData(bC,"toggle"+bD,true)}}by=bz.complete;if(by){bz.complete=false;by.call(bC)}}return false}else{if(bz.duration==Infinity){this.now=bA}else{bE=bA-this.startTime;this.state=bE/bz.duration;this.pos=b.easing[bz.animatedProperties[this.prop]](this.state,bE,0,1,bz.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bz,by=b.timers,e=0;for(;e<by.length;e++){bz=by[e];if(!bz()&&by[e]===bz){by.splice(e--,1)}}if(!by.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a5);a5=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit}else{e.elem[e.prop]=e.now}}}});b.each(["width","height"],function(e,by){b.fx.step[by]=function(bz){b.style(bz.elem,by,Math.max(0,bz.now))}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(by){return e===by.elem}).length}}function x(bA){if(!S[bA]){var e=av.body,by=b("<"+bA+">").appendTo(e),bz=by.css("display");by.remove();if(bz==="none"||bz===""){if(!ba){ba=av.createElement("iframe");ba.frameBorder=ba.width=ba.height=0}e.appendChild(ba);if(!m||!ba.createElement){m=(ba.contentWindow||ba.contentDocument).document;m.write((av.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");m.close()}by=m.createElement(bA);m.body.appendChild(by);bz=b.css(by,"display");e.removeChild(ba)}S[bA]=bz}return S[bA]}var W=/^t(?:able|d|h)$/i,ae=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bL){var bB=this[0],bE;if(bL){return this.each(function(e){b.offset.setOffset(this,bL,e)})}if(!bB||!bB.ownerDocument){return null}if(bB===bB.ownerDocument.body){return b.offset.bodyOffset(bB)}try{bE=bB.getBoundingClientRect()}catch(bI){}var bK=bB.ownerDocument,bz=bK.documentElement;if(!bE||!b.contains(bz,bB)){return bE?{top:bE.top,left:bE.left}:{top:0,left:0}}var bF=bK.body,bG=aL(bK),bD=bz.clientTop||bF.clientTop||0,bH=bz.clientLeft||bF.clientLeft||0,by=bG.pageYOffset||b.support.boxModel&&bz.scrollTop||bF.scrollTop,bC=bG.pageXOffset||b.support.boxModel&&bz.scrollLeft||bF.scrollLeft,bJ=bE.top+by-bD,bA=bE.left+bC-bH;return{top:bJ,left:bA}}}else{b.fn.offset=function(bI){var bC=this[0];if(bI){return this.each(function(bJ){b.offset.setOffset(this,bI,bJ)})}if(!bC||!bC.ownerDocument){return null}if(bC===bC.ownerDocument.body){return b.offset.bodyOffset(bC)}var bF,bz=bC.offsetParent,by=bC,bH=bC.ownerDocument,bA=bH.documentElement,bD=bH.body,bE=bH.defaultView,e=bE?bE.getComputedStyle(bC,null):bC.currentStyle,bG=bC.offsetTop,bB=bC.offsetLeft;while((bC=bC.parentNode)&&bC!==bD&&bC!==bA){if(b.support.fixedPosition&&e.position==="fixed"){break}bF=bE?bE.getComputedStyle(bC,null):bC.currentStyle;bG-=bC.scrollTop;bB-=bC.scrollLeft;if(bC===bz){bG+=bC.offsetTop;bB+=bC.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&W.test(bC.nodeName))){bG+=parseFloat(bF.borderTopWidth)||0;bB+=parseFloat(bF.borderLeftWidth)||0}by=bz;bz=bC.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bF.overflow!=="visible"){bG+=parseFloat(bF.borderTopWidth)||0;bB+=parseFloat(bF.borderLeftWidth)||0}e=bF}if(e.position==="relative"||e.position==="static"){bG+=bD.offsetTop;bB+=bD.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bG+=Math.max(bA.scrollTop,bD.scrollTop);bB+=Math.max(bA.scrollLeft,bD.scrollLeft)}return{top:bG,left:bB}}}b.offset={bodyOffset:function(e){var bz=e.offsetTop,by=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bz+=parseFloat(b.css(e,"marginTop"))||0;by+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bz,left:by}},setOffset:function(bA,bJ,bD){var bE=b.css(bA,"position");if(bE==="static"){bA.style.position="relative"}var bC=b(bA),by=bC.offset(),e=b.css(bA,"top"),bH=b.css(bA,"left"),bI=(bE==="absolute"||bE==="fixed")&&b.inArray("auto",[e,bH])>-1,bG={},bF={},bz,bB;if(bI){bF=bC.position();bz=bF.top;bB=bF.left}else{bz=parseFloat(e)||0;bB=parseFloat(bH)||0}if(b.isFunction(bJ)){bJ=bJ.call(bA,bD,by)}if(bJ.top!=null){bG.top=(bJ.top-by.top)+bz}if(bJ.left!=null){bG.left=(bJ.left-by.left)+bB}if("using" in bJ){bJ.using.call(bA,bG)}else{bC.css(bG)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bz=this[0],by=this.offsetParent(),bA=this.offset(),e=ae.test(by[0].nodeName)?{top:0,left:0}:by.offset();bA.top-=parseFloat(b.css(bz,"marginTop"))||0;bA.left-=parseFloat(b.css(bz,"marginLeft"))||0;e.top+=parseFloat(b.css(by[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(by[0],"borderLeftWidth"))||0;return{top:bA.top-e.top,left:bA.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ae.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(by,e){var bz="scroll"+e;b.fn[bz]=function(bC){var bA,bB;if(bC===M){bA=this[0];if(!bA){return null}bB=aL(bA);return bB?("pageXOffset" in bB)?bB[by?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bB.document.documentElement[bz]||bB.document.body[bz]:bA[bz]}return this.each(function(){bB=aL(this);if(bB){bB.scrollTo(!by?bC:b(bB).scrollLeft(),by?bC:b(bB).scrollTop())}else{this[bz]=bC}})}});function aL(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(by,e){var bz=e.toLowerCase();b.fn["inner"+e]=function(){var bA=this[0];return bA?bA.style?parseFloat(b.css(bA,bz,"padding")):this[bz]():null};b.fn["outer"+e]=function(bB){var bA=this[0];return bA?bA.style?parseFloat(b.css(bA,bz,bB?"margin":"border")):this[bz]():null};b.fn[bz]=function(bC){var bD=this[0];if(!bD){return bC==null?null:this}if(b.isFunction(bC)){return this.each(function(bH){var bG=b(this);bG[bz](bC.call(this,bH,bG[bz]()))})}if(b.isWindow(bD)){var bE=bD.document.documentElement["client"+e],bA=bD.document.body;return bD.document.compatMode==="CSS1Compat"&&bE||bA&&bA["client"+e]||bE}else{if(bD.nodeType===9){return Math.max(bD.documentElement["client"+e],bD.body["scroll"+e],bD.documentElement["scroll"+e],bD.body["offset"+e],bD.documentElement["offset"+e])}else{if(bC===M){var bF=b.css(bD,bz),bB=parseFloat(bF);return b.isNumeric(bB)?bB:bF}else{return this.css(bz,typeof bC==="string"?bC:bC+"px")}}}}});bd.jQuery=bd.$=b})(window);(function(b){try{var d=0;var a="http://errors.jawaker.com/errors";window.onerror=function(k,g,f){try{if(d++>5){return}var j=a+"?msg="+encodeURIComponent(k)+"&href="+encodeURIComponent(g)+"&line="+encodeURIComponent(f);var h=b('<iframe src="'+j+'" style="display: none; width: 1px; height: 1px;"></iframe>');if(document.body){b("body").append(h)}else{b(function(){try{b("body").append(h)}catch(l){}})}}catch(i){}}}catch(c){}}(jQuery));(function(){var u=this;var r=u._;var b={};var i=Array.prototype,B=Object.prototype,D=Function.prototype;var s=i.slice,w=i.unshift,v=B.toString,o=B.hasOwnProperty;var m=i.forEach,h=i.map,z=i.reduce,e=i.reduceRight,l=i.filter,a=i.every,y=i.some,t=i.indexOf,f=i.lastIndexOf,c=Array.isArray,A=Object.keys,j=D.bind;var C=function(E){return new g(E)};if(typeof module!=="undefined"&&module.exports){module.exports=C;C._=C}else{u._=C}C.VERSION="1.1.6";var d=C.each=C.forEach=function(K,J,I){if(K==null){return}if(m&&K.forEach===m){K.forEach(J,I)}else{if(C.isNumber(K.length)){for(var H=0,E=K.length;H<E;H++){if(J.call(I,K[H],H,K)===b){return}}}else{for(var F in K){if(o.call(K,F)){if(J.call(I,K[F],F,K)===b){return}}}}}};C.map=function(I,H,F){var E=[];if(I==null){return E}if(h&&I.map===h){return I.map(H,F)}d(I,function(L,J,K){E[E.length]=H.call(F,L,J,K)});return E};C.reduce=C.foldl=C.inject=function(J,I,E,H){var F=E!==void 0;if(J==null){J=[]}if(z&&J.reduce===z){if(H){I=C.bind(I,H)}return F?J.reduce(I,E):J.reduce(I)}d(J,function(M,K,L){if(!F&&K===0){E=M;F=true}else{E=I.call(H,E,M,K,L)}});if(!F){throw new TypeError("Reduce of empty array with no initial value")}return E};C.reduceRight=C.foldr=function(I,H,E,F){if(I==null){I=[]}if(e&&I.reduceRight===e){if(F){H=C.bind(H,F)}return E!==void 0?I.reduceRight(H,E):I.reduceRight(H)}var J=(C.isArray(I)?I.slice():C.toArray(I)).reverse();return C.reduce(J,H,E,F)};C.find=C.detect=function(I,H,F){var E;p(I,function(L,J,K){if(H.call(F,L,J,K)){E=L;return true}});return E};C.filter=C.select=function(I,H,F){var E=[];if(I==null){return E}if(l&&I.filter===l){return I.filter(H,F)}d(I,function(L,J,K){if(H.call(F,L,J,K)){E[E.length]=L}});return E};C.reject=function(I,H,F){var E=[];if(I==null){return E}d(I,function(L,J,K){if(!H.call(F,L,J,K)){E[E.length]=L}});return E};C.every=C.all=function(I,H,F){var E=true;if(I==null){return E}if(a&&I.every===a){return I.every(H,F)}d(I,function(L,J,K){if(!(E=E&&H.call(F,L,J,K))){return b}});return E};var p=C.some=C.any=function(I,H,F){H||(H=C.identity);var E=false;if(I==null){return E}if(y&&I.some===y){return I.some(H,F)}d(I,function(L,J,K){if(E=H.call(F,L,J,K)){return b}});return E};C.include=C.contains=function(H,F){var E=false;if(H==null){return E}if(t&&H.indexOf===t){return H.indexOf(F)!=-1}p(H,function(I){if(E=I===F){return true}});return E};C.invoke=function(F,H){var E=s.call(arguments,2);return C.map(F,function(I){return(H.call?H||I:I[H]).apply(I,E)})};C.pluck=function(F,E){return C.map(F,function(H){return H[E]})};C.max=function(I,H,F){if(!H&&C.isArray(I)){return Math.max.apply(Math,I)}var E={computed:-Infinity};d(I,function(M,J,L){var K=H?H.call(F,M,J,L):M;K>=E.computed&&(E={value:M,computed:K})});return E.value};C.min=function(I,H,F){if(!H&&C.isArray(I)){return Math.min.apply(Math,I)}var E={computed:Infinity};d(I,function(M,J,L){var K=H?H.call(F,M,J,L):M;K<E.computed&&(E={value:M,computed:K})});return E.value};C.sortBy=function(H,F,E){return C.pluck(C.map(H,function(K,I,J){return{value:K,criteria:F.call(E,K,I,J)}}).sort(function(L,K){var J=L.criteria,I=K.criteria;return J<I?-1:J>I?1:0}),"value")};C.sortedIndex=function(K,J,H){H||(H=C.identity);var E=0,I=K.length;while(E<I){var F=(E+I)>>1;H(K[F])<H(J)?E=F+1:I=F}return E};C.toArray=function(E){if(!E){return[]}if(E.toArray){return E.toArray()}if(C.isArray(E)){return E}if(C.isArguments(E)){return s.call(E)}return C.values(E)};C.size=function(E){return C.toArray(E).length};C.first=C.head=function(H,F,E){return(F!=null)&&!E?s.call(H,0,F):H[0]};C.rest=C.tail=function(H,E,F){return s.call(H,(E==null)||F?1:E)};C.last=function(E){return E[E.length-1]};C.compact=function(E){return C.filter(E,function(F){return !!F})};C.flatten=function(E){return C.reduce(E,function(F,H){if(C.isArray(H)){return F.concat(C.flatten(H))}F[F.length]=H;return F},[])};C.without=function(F){var E=s.call(arguments,1);return C.filter(F,function(H){return !C.include(E,H)})};C.uniq=C.unique=function(F,E){return C.reduce(F,function(H,J,I){if(0==I||(E===true?C.last(H)!=J:!C.include(H,J))){H[H.length]=J}return H},[])};C.intersect=function(F){var E=s.call(arguments,1);return C.filter(C.uniq(F),function(H){return C.every(E,function(I){return C.indexOf(I,H)>=0})})};C.zip=function(){var E=s.call(arguments);var I=C.max(C.pluck(E,"length"));var H=new Array(I);for(var F=0;F<I;F++){H[F]=C.pluck(E,""+F)}return H};C.indexOf=function(J,H,I){if(J==null){return -1}var F,E;if(I){F=C.sortedIndex(J,H);return J[F]===H?F:-1}if(t&&J.indexOf===t){return J.indexOf(H)}for(F=0,E=J.length;F<E;F++){if(J[F]===H){return F}}return -1};C.lastIndexOf=function(H,F){if(H==null){return -1}if(f&&H.lastIndexOf===f){return H.lastIndexOf(F)}var E=H.length;while(E--){if(H[E]===F){return E}}return -1};C.range=function(K,I,J){if(arguments.length<=1){I=K||0;K=0}J=arguments[2]||1;var F=Math.max(Math.ceil((I-K)/J),0);var E=0;var H=new Array(F);while(E<F){H[E++]=K;K+=J}return H};C.bind=function(F,H){if(F.bind===j&&j){return j.apply(F,s.call(arguments,1))}var E=s.call(arguments,2);return function(){return F.apply(H,E.concat(s.call(arguments)))}};C.bindAll=function(F){var E=s.call(arguments,1);if(E.length==0){E=C.functions(F)}d(E,function(H){F[H]=C.bind(F[H],F)});return F};C.memoize=function(H,F){var E={};F||(F=C.identity);return function(){var I=F.apply(this,arguments);return o.call(E,I)?E[I]:(E[I]=H.apply(this,arguments))}};C.delay=function(F,H){var E=s.call(arguments,2);return setTimeout(function(){return F.apply(F,E)},H)};C.defer=function(E){return C.delay.apply(C,[E,1].concat(s.call(arguments,1)))};var x=function(F,I,E){var H;return function(){var K=this,J=arguments;var L=function(){H=null;F.apply(K,J)};if(E){clearTimeout(H)}if(E||!H){H=setTimeout(L,I)}}};C.throttle=function(E,F){return x(E,F,false)};C.debounce=function(E,F){return x(E,F,true)};C.once=function(H){var E=false,F;return function(){if(E){return F}E=true;return F=H.apply(this,arguments)}};C.wrap=function(E,F){return function(){var H=[E].concat(s.call(arguments));return F.apply(this,H)}};C.compose=function(){var E=s.call(arguments);return function(){var F=s.call(arguments);for(var H=E.length-1;H>=0;H--){F=[E[H].apply(this,F)]}return F[0]}};C.after=function(F,E){return function(){if(--F<1){return E.apply(this,arguments)}}};C.keys=A||function(H){if(H!==Object(H)){throw new TypeError("Invalid object")}var F=[];for(var E in H){if(o.call(H,E)){F[F.length]=E}}return F};C.values=function(E){return C.map(E,C.identity)};C.functions=C.methods=function(E){return C.filter(C.keys(E),function(F){return C.isFunction(E[F])}).sort()};C.extend=function(E){d(s.call(arguments,1),function(F){for(var H in F){if(F[H]!==void 0){E[H]=F[H]}}});return E};C.defaults=function(E){d(s.call(arguments,1),function(F){for(var H in F){if(E[H]==null){E[H]=F[H]}}});return E};C.clone=function(E){return C.isArray(E)?E.slice():C.extend({},E)};C.tap=function(F,E){E(F);return F};C.isEqual=function(F,E){if(F===E){return true}var J=typeof(F),L=typeof(E);if(J!=L){return false}if(F==E){return true}if((!F&&E)||(F&&!E)){return false}if(F._chain){F=F._wrapped}if(E._chain){E=E._wrapped}if(F.isEqual){return F.isEqual(E)}if(C.isDate(F)&&C.isDate(E)){return F.getTime()===E.getTime()}if(C.isNaN(F)&&C.isNaN(E)){return false}if(C.isRegExp(F)&&C.isRegExp(E)){return F.source===E.source&&F.global===E.global&&F.ignoreCase===E.ignoreCase&&F.multiline===E.multiline}if(J!=="object"){return false}if(F.length&&(F.length!==E.length)){return false}var H=C.keys(F),K=C.keys(E);if(H.length!=K.length){return false}for(var I in F){if(!(I in E)||!C.isEqual(F[I],E[I])){return false}}return true};C.isEmpty=function(F){if(C.isArray(F)||C.isString(F)){return F.length===0}for(var E in F){if(o.call(F,E)){return false}}return true};C.isElement=function(E){return !!(E&&E.nodeType==1)};C.isArray=c||function(E){return v.call(E)==="[object Array]"};C.isArguments=function(E){return !!(E&&o.call(E,"callee"))};C.isFunction=function(E){return !!(E&&E.constructor&&E.call&&E.apply)};C.isString=function(E){return !!(E===""||(E&&E.charCodeAt&&E.substr))};C.isNumber=function(E){return !!(E===0||(E&&E.toExponential&&E.toFixed))};C.isNaN=function(E){return E!==E};C.isBoolean=function(E){return E===true||E===false};C.isDate=function(E){return !!(E&&E.getTimezoneOffset&&E.setUTCFullYear)};C.isRegExp=function(E){return !!(E&&E.test&&E.exec&&(E.ignoreCase||E.ignoreCase===false))};C.isNull=function(E){return E===null};C.isUndefined=function(E){return E===void 0};C.noConflict=function(){u._=r;return this};C.identity=function(E){return E};C.times=function(I,H,F){for(var E=0;E<I;E++){H.call(F,E)}};C.mixin=function(E){d(C.functions(E),function(F){q(F,C[F]=E[F])})};var k=0;C.uniqueId=function(E){var F=k++;return E?E+F:F};C.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g};C.template=function(I,H){var J=C.templateSettings;var E="var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+I.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(J.interpolate,function(K,L){return"',"+L.replace(/\\'/g,"'")+",'"}).replace(J.evaluate||null,function(K,L){return"');"+L.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');";var F=new Function("obj",E);return H?F(H):F};var g=function(E){this._wrapped=E};C.prototype=g.prototype;var n=function(F,E){return E?C(F).chain():F};var q=function(E,F){g.prototype[E]=function(){var H=s.call(arguments);w.call(H,this._wrapped);return n(F.apply(C,H),this._chain)}};C.mixin(C);d(["pop","push","reverse","shift","sort","splice","unshift"],function(E){var F=i[E];g.prototype[E]=function(){F.apply(this._wrapped,arguments);return n(this._wrapped,this._chain)}});d(["concat","join","slice"],function(E){var F=i[E];g.prototype[E]=function(){return n(F.apply(this._wrapped,arguments),this._chain)}});g.prototype.chain=function(){this._chain=true;return this};g.prototype.value=function(){return this._wrapped}})();var JSON;if(!JSON){JSON={}}(function(){function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==="string"){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else{if(typeof space==="string"){indent=space}}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}());(function(a){a.extend(a.fn,{validate:function(b){if(!this.length){b&&b.debug&&window.console&&console.warn("nothing selected, can't validate, returning nothing");return}var c=a.data(this[0],"validator");if(c){return c}c=new a.validator(b,this[0]);a.data(this[0],"validator",c);if(c.settings.onsubmit){this.find("input, button").filter(".cancel").click(function(){c.cancelSubmit=true});if(c.settings.submitHandler){this.find("input, button").filter(":submit").click(function(){c.submitButton=this})}this.submit(function(d){if(c.settings.debug){d.preventDefault()}function e(){if(c.settings.submitHandler){if(c.submitButton){var f=a("<input type='hidden'/>").attr("name",c.submitButton.name).val(c.submitButton.value).appendTo(c.currentForm)}c.settings.submitHandler.call(c,c.currentForm);if(c.submitButton){f.remove()}return false}return true}if(c.cancelSubmit){c.cancelSubmit=false;return e()}if(c.form()){if(c.pendingRequest){c.formSubmitted=true;return false}return e()}else{c.focusInvalid();return false}})}return c},valid:function(){if(a(this[0]).is("form")){return this.validate().form()}else{var c=true;var b=a(this[0].form).validate();this.each(function(){c&=b.element(this)});return c}},removeAttrs:function(d){var b={},c=this;a.each(d.split(/\s/),function(e,f){b[f]=c.attr(f);c.removeAttr(f)});return b},rules:function(e,b){var g=this[0];if(e){var d=a.data(g.form,"validator").settings;var i=d.rules;var j=a.validator.staticRules(g);switch(e){case"add":a.extend(j,a.validator.normalizeRule(b));i[g.name]=j;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete i[g.name];return j}var h={};a.each(b.split(/\s/),function(k,l){h[l]=j[l];delete j[l]});return h}}var f=a.validator.normalizeRules(a.extend({},a.validator.metadataRules(g),a.validator.classRules(g),a.validator.attributeRules(g),a.validator.staticRules(g)),g);if(f.required){var c=f.required;delete f.required;f=a.extend({required:c},f)}return f}});a.extend(a.expr[":"],{blank:function(b){return !a.trim(""+b.value)},filled:function(b){return !!a.trim(""+b.value)},unchecked:function(b){return !b.checked}});a.validator=function(b,c){this.settings=a.extend(true,{},a.validator.defaults,b);this.currentForm=c;this.init()};a.validator.format=function(b,c){if(arguments.length==1){return function(){var d=a.makeArray(arguments);d.unshift(b);return a.validator.format.apply(this,d)}}if(arguments.length>2&&c.constructor!=Array){c=a.makeArray(arguments).slice(1)}if(c.constructor!=Array){c=[c]}a.each(c,function(d,e){b=b.replace(new RegExp("\\{"+d+"\\}","g"),e)});return b};a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusInvalid:true,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:true,ignore:[],ignoreTitle:false,onfocusin:function(b){this.lastActive=b;if(this.settings.focusCleanup&&!this.blockFocusCleanup){this.settings.unhighlight&&this.settings.unhighlight.call(this,b,this.settings.errorClass,this.settings.validClass);this.addWrapper(this.errorsFor(b)).hide()}},onfocusout:function(b){if(!this.checkable(b)&&(b.name in this.submitted||!this.optional(b))){this.element(b)}},onkeyup:function(b){if(b.name in this.submitted||b==this.lastElement){this.element(b)}},onclick:function(b){if(b.name in this.submitted){this.element(b)}else{if(b.parentNode.name in this.submitted){this.element(b.parentNode)}}},highlight:function(d,b,c){a(d).addClass(b).removeClass(c)},unhighlight:function(d,b,c){a(d).removeClass(b).addClass(c)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",accept:"Please enter a value with a valid extension.",maxlength:a.validator.format("Please enter no more than {0} characters."),minlength:a.validator.format("Please enter at least {0} characters."),rangelength:a.validator.format("Please enter a value between {0} and {1} characters long."),range:a.validator.format("Please enter a value between {0} and {1}."),max:a.validator.format("Please enter a value less than or equal to {0}."),min:a.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:false,prototype:{init:function(){this.labelContainer=a(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm);this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var b=(this.groups={});a.each(this.settings.groups,function(e,f){a.each(f.split(/\s/),function(h,g){b[g]=e})});var d=this.settings.rules;a.each(d,function(e,f){d[e]=a.validator.normalizeRule(f)});function c(g){var f=a.data(this[0].form,"validator"),e="on"+g.type.replace(/^validate/,"");f.settings[e]&&f.settings[e].call(f,this[0])}a(this.currentForm).validateDelegate(":text, :password, :file, select, textarea","focusin focusout keyup",c).validateDelegate(":radio, :checkbox, select, option","click",c);if(this.settings.invalidHandler){a(this.currentForm).bind("invalid-form.validate",this.settings.invalidHandler)}},form:function(){this.checkForm();a.extend(this.submitted,this.errorMap);this.invalid=a.extend({},this.errorMap);if(!this.valid()){a(this.currentForm).triggerHandler("invalid-form",[this])}this.showErrors();return this.valid()},checkForm:function(){this.prepareForm();for(var b=0,c=(this.currentElements=this.elements());c[b];b++){this.check(c[b])}return this.valid()},element:function(c){c=this.clean(c);this.lastElement=c;this.prepareElement(c);this.currentElements=a(c);var b=this.check(c);if(b){delete this.invalid[c.name]}else{this.invalid[c.name]=true}if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers)}this.showErrors();return b},showErrors:function(c){if(c){a.extend(this.errorMap,c);this.errorList=[];for(var b in c){this.errorList.push({message:c[b],element:this.findByName(b)[0]})}this.successList=a.grep(this.successList,function(d){return !(d.name in c)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){if(a.fn.resetForm){a(this.currentForm).resetForm()}this.submitted={};this.prepareForm();this.hideErrors();this.elements().removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(d){var c=0;for(var b in d){c++}return c},hideErrors:function(){this.addWrapper(this.toHide).hide()},valid:function(){return this.size()==0},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid){try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(b){}}},findLastActive:function(){var b=this.lastActive;return b&&a.grep(this.errorList,function(c){return c.element.name==b.name}).length==1&&b},elements:function(){var c=this,b={};return a([]).add(this.currentForm.elements).filter(":input").not(":submit, :reset, :image, [disabled]").not(this.settings.ignore).filter(function(){!this.name&&c.settings.debug&&window.console&&console.error("%o has no name assigned",this);if(this.name in b||!c.objectLength(a(this).rules())){return false}b[this.name]=true;return true})},clean:function(b){return a(b)[0]},errors:function(){return a(this.settings.errorElement+"."+this.settings.errorClass,this.errorContext)},reset:function(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=a([]);this.toHide=a([]);this.currentElements=a([])},prepareForm:function(){this.reset();this.toHide=this.errors().add(this.containers)},prepareElement:function(b){this.reset();this.toHide=this.errorsFor(b)},check:function(c){c=this.clean(c);if(this.checkable(c)){c=this.findByName(c.name).not(this.settings.ignore)[0]}var h=a(c).rules();var d=false;for(var i in h){var g={method:i,parameters:h[i]};try{var b=a.validator.methods[i].call(this,c.value.replace(/\r/g,""),c,g.parameters);if(b=="dependency-mismatch"){d=true;continue}d=false;if(b=="pending"){this.toHide=this.toHide.not(this.errorsFor(c));return}if(!b){this.formatAndAdd(c,g);return false}}catch(f){this.settings.debug&&window.console&&console.log("exception occured when checking element "+c.id+", check the '"+g.method+"' method",f);throw f}}if(d){return}if(this.objectLength(h)){this.successList.push(c)}return true},customMetaMessage:function(b,d){if(!a.metadata){return}var c=this.settings.meta?a(b).metadata()[this.settings.meta]:a(b).metadata();return c&&c.messages&&c.messages[d]},customMessage:function(c,d){var b=this.settings.messages[c];return b&&(b.constructor==String?b:b[d])},findDefined:function(){for(var b=0;b<arguments.length;b++){if(arguments[b]!==undefined){return arguments[b]}}return undefined},defaultMessage:function(b,c){return this.findDefined(this.customMessage(b.name,c),this.customMetaMessage(b,c),!this.settings.ignoreTitle&&b.title||undefined,a.validator.messages[c],"<strong>Warning: No message defined for "+b.name+"</strong>")},formatAndAdd:function(c,e){var d=this.defaultMessage(c,e.method),b=/\$?\{(\d+)\}/g;if(typeof d=="function"){d=d.call(this,e.parameters,c)}else{if(b.test(d)){d=jQuery.format(d.replace(b,"{$1}"),e.parameters)}}this.errorList.push({message:d,element:c});this.errorMap[c.name]=d;this.submitted[c.name]=d},addWrapper:function(b){if(this.settings.wrapper){b=b.add(b.parent(this.settings.wrapper))}return b},defaultShowErrors:function(){for(var c=0;this.errorList[c];c++){var b=this.errorList[c];this.settings.highlight&&this.settings.highlight.call(this,b.element,this.settings.errorClass,this.settings.validClass);this.showLabel(b.element,b.message)}if(this.errorList.length){this.toShow=this.toShow.add(this.containers)}if(this.settings.success){for(var c=0;this.successList[c];c++){this.showLabel(this.successList[c])}}if(this.settings.unhighlight){for(var c=0,d=this.validElements();d[c];c++){this.settings.unhighlight.call(this,d[c],this.settings.errorClass,this.settings.validClass)}}this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(c,d){var b=this.errorsFor(c);if(b.length){b.removeClass().addClass(this.settings.errorClass);b.attr("generated")&&b.html(d)}else{b=a("<"+this.settings.errorElement+"/>").attr({"for":this.idOrName(c),generated:true}).addClass(this.settings.errorClass).html(d||"");if(this.settings.wrapper){b=b.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()}if(!this.labelContainer.append(b).length){this.settings.errorPlacement?this.settings.errorPlacement(b,a(c)):b.insertAfter(c)}}if(!d&&this.settings.success){b.text("");typeof this.settings.success=="string"?b.addClass(this.settings.success):this.settings.success(b)}this.toShow=this.toShow.add(b)},errorsFor:function(c){var b=this.idOrName(c);return this.errors().filter(function(){return a(this).attr("for")==b})},idOrName:function(b){return this.groups[b.name]||(this.checkable(b)?b.name:b.id||b.name)},checkable:function(b){return/radio|checkbox/i.test(b.type)},findByName:function(b){var c=this.currentForm;return a(document.getElementsByName(b)).map(function(d,e){return e.form==c&&e.name==b&&e||null})},getLength:function(c,b){switch(b.nodeName.toLowerCase()){case"select":return a("option:selected",b).length;case"input":if(this.checkable(b)){return this.findByName(b.name).filter(":checked").length}}return c.length},depend:function(c,b){return this.dependTypes[typeof c]?this.dependTypes[typeof c](c,b):true},dependTypes:{"boolean":function(c,b){return c},string:function(c,b){return !!a(c,b.form).length},"function":function(c,b){return c(b)}},optional:function(b){return !a.validator.methods.required.call(this,a.trim(b.value),b)&&"dependency-mismatch"},startRequest:function(b){if(!this.pending[b.name]){this.pendingRequest++;this.pending[b.name]=true}},stopRequest:function(b,c){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0}delete this.pending[b.name];if(c&&this.pendingRequest==0&&this.formSubmitted&&this.form()){a(this.currentForm).submit();this.formSubmitted=false}else{if(!c&&this.pendingRequest==0&&this.formSubmitted){a(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false}}},previousValue:function(b){return a.data(b,"previousValue")||a.data(b,"previousValue",{old:null,valid:true,message:this.defaultMessage(b,"remote")})}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},dateDE:{dateDE:true},number:{number:true},numberDE:{numberDE:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function(b,c){b.constructor==String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(c){var d={};var b=a(c).attr("class");b&&a.each(b.split(" "),function(){if(this in a.validator.classRuleSettings){a.extend(d,a.validator.classRuleSettings[this])}});return d},attributeRules:function(c){var e={};var b=a(c);for(var f in a.validator.methods){var d=b.attr(f);if(d){e[f]=d}}if(e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)){delete e.maxlength}return e},metadataRules:function(b){if(!a.metadata){return{}}var c=a.data(b.form,"validator").settings.meta;return c?a(b).metadata()[c]:a(b).metadata()},staticRules:function(c){var d={};var b=a.data(c.form,"validator");if(b.settings.rules){d=a.validator.normalizeRule(b.settings.rules[c.name])||{}}return d},normalizeRules:function(c,b){a.each(c,function(f,e){if(e===false){delete c[f];return}if(e.param||e.depends){var d=true;switch(typeof e.depends){case"string":d=!!a(e.depends,b.form).length;break;case"function":d=e.depends.call(b,b);break}if(d){c[f]=e.param!==undefined?e.param:true}else{delete c[f]}}});a.each(c,function(d,e){c[d]=a.isFunction(e)?e(b):e});a.each(["minlength","maxlength","min","max"],function(){if(c[this]){c[this]=Number(c[this])}});a.each(["rangelength","range"],function(){if(c[this]){c[this]=[Number(c[this][0]),Number(c[this][1])]}});if(a.validator.autoCreateRanges){if(c.min&&c.max){c.range=[c.min,c.max];delete c.min;delete c.max}if(c.minlength&&c.maxlength){c.rangelength=[c.minlength,c.maxlength];delete c.minlength;delete c.maxlength}}if(c.messages){delete c.messages}return c},normalizeRule:function(c){if(typeof c=="string"){var b={};a.each(c.split(/\s/),function(){b[this]=true});c=b}return c},addMethod:function(b,d,c){a.validator.methods[b]=d;a.validator.messages[b]=c!=undefined?c:a.validator.messages[b];if(d.length<3){a.validator.addClassRules(b,a.validator.normalizeRule(b))}},methods:{required:function(c,b,e){if(!this.depend(e,b)){return"dependency-mismatch"}switch(b.nodeName.toLowerCase()){case"select":var d=a(b).val();return d&&d.length>0;case"input":if(this.checkable(b)){return this.getLength(c,b)>0}default:return a.trim(c).length>0}},remote:function(f,c,g){if(this.optional(c)){return"dependency-mismatch"}var d=this.previousValue(c);if(!this.settings.messages[c.name]){this.settings.messages[c.name]={}}d.originalMessage=this.settings.messages[c.name].remote;this.settings.messages[c.name].remote=d.message;g=typeof g=="string"&&{url:g}||g;if(this.pending[c.name]){return"pending"}if(d.old===f){return d.valid}d.old=f;var b=this;this.startRequest(c);var e={};e[c.name]=f;a.ajax(a.extend(true,{url:g,mode:"abort",port:"validate"+c.name,dataType:"json",data:e,success:function(i){b.settings.messages[c.name].remote=d.originalMessage;var k=i===true;if(k){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);b.showErrors()}else{var l={};var j=(d.message=i||b.defaultMessage(c,"remote"));l[c.name]=a.isFunction(j)?j(f):j;b.showErrors(l)}d.valid=k;b.stopRequest(c,k)}},g));return"pending"},minlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)>=d},maxlength:function(c,b,d){return this.optional(b)||this.getLength(a.trim(c),b)<=d},rangelength:function(d,b,e){var c=this.getLength(a.trim(d),b);return this.optional(b)||(c>=e[0]&&c<=e[1])},min:function(c,b,d){return this.optional(b)||c>=d},max:function(c,b,d){return this.optional(b)||c<=d},range:function(c,b,d){return this.optional(b)||(c>=d[0]&&c<=d[1])},email:function(c,b){return this.optional(b)||/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i.test(c)},url:function(c,b){return this.optional(b)||/^(https?|ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i.test(c)},date:function(c,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(c))},dateISO:function(c,b){return this.optional(b)||/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(c)},number:function(c,b){return this.optional(b)||/^-?(?:\d+|\d{1,3}(?:,\d{3})+)(?:\.\d+)?$/.test(c)},digits:function(c,b){return this.optional(b)||/^\d+$/.test(c)},creditcard:function(f,c){if(this.optional(c)){return"dependency-mismatch"}if(/[^0-9-]+/.test(f)){return false}var g=0,e=0,b=false;f=f.replace(/\D/g,"");for(var h=f.length-1;h>=0;h--){var d=f.charAt(h);var e=parseInt(d,10);if(b){if((e*=2)>9){e-=9}}g+=e;b=!b}return(g%10)==0},accept:function(c,b,d){d=typeof d=="string"?d.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(b)||c.match(new RegExp(".("+d+")$","i"))},equalTo:function(c,b,e){var d=a(e).unbind(".validate-equalTo").bind("blur.validate-equalTo",function(){a(b).valid()});return c==d.val()}}});a.format=a.validator.format})(jQuery);(function(c){var a={};if(c.ajaxPrefilter){c.ajaxPrefilter(function(f,e,g){var d=f.port;if(f.mode=="abort"){if(a[d]){a[d].abort()}a[d]=g}})}else{var b=c.ajax;c.ajax=function(e){e=c.extend(e,c.extend({},c.ajaxSettings,e));var d=e.port;if(e.mode=="abort"){if(a[d]){a[d].abort()}return(a[d]=b.apply(this,arguments))}return b.apply(this,arguments)}}})(jQuery);(function(a){if(!jQuery.event.special.focusin&&!jQuery.event.special.focusout&&document.addEventListener){a.each({focus:"focusin",blur:"focusout"},function(c,b){a.event.special[b]={setup:function(){this.addEventListener(c,d,true)},teardown:function(){this.removeEventListener(c,d,true)},handler:function(f){arguments[0]=a.event.fix(f);arguments[0].type=b;return a.event.handle.apply(this,arguments)}};function d(f){f=a.event.fix(f);f.type=b;return a.event.handle.call(this,f)}})}a.extend(a.fn,{validateDelegate:function(d,c,b){return this.bind(c,function(e){var f=a(e.target);if(f.is(d)){return b.apply(f,arguments)}})}})})(jQuery);(function(){var o=this;var n=o.Backbone;var b;if(typeof exports!=="undefined"){b=exports}else{b=o.Backbone={}}b.VERSION="0.5.3";var w=o._;if(!w&&(typeof require!=="undefined")){w=require("underscore")._}var e=o.jQuery||o.Zepto;b.noConflict=function(){o.Backbone=n;return this};b.emulateHTTP=false;b.emulateJSON=false;b.Events={bind:function(z,B,y){var x=this._callbacks||(this._callbacks={});var A=x[z]||(x[z]=[]);A.push([B,y]);return this},unbind:function(A,C){var z;if(!A){this._callbacks={}}else{if(z=this._callbacks){if(!C){z[A]=[]}else{var B=z[A];if(!B){return this}for(var y=0,x=B.length;y<x;y++){if(B[y]&&C===B[y][0]){B[y]=null;break}}}}}return this},trigger:function(z){var A,F,D,E,B;var C=2;if(!(F=this._callbacks)){return this}while(C--){D=C?z:"all";if(A=F[D]){for(var y=0,x=A.length;y<x;y++){if(!(E=A[y])){A.splice(y,1);y--;x--}else{B=C?Array.prototype.slice.call(arguments,1):arguments;E[0].apply(E[1]||this,B)}}}}return this}};b.Model=function(x,y){var z;x||(x={});if(z=this.defaults){if(w.isFunction(z)){z=z.call(this)}x=w.extend({},z,x)}this.attributes={};this._escapedAttributes={};this.cid=w.uniqueId("c");this.set(x,{silent:true});this._changed=false;this._previousAttributes=w.clone(this.attributes);if(y&&y.collection){this.collection=y.collection}this.initialize(x,y)};w.extend(b.Model.prototype,b.Events,{_previousAttributes:null,_changed:false,idAttribute:"id",initialize:function(){},toJSON:function(){return w.clone(this.attributes)},get:function(x){return this.attributes[x]},escape:function(x){var y;if(y=this._escapedAttributes[x]){return y}var z=this.attributes[x];return this._escapedAttributes[x]=m(z==null?"":""+z)},has:function(x){return this.attributes[x]!=null},set:function(A,z){z||(z={});if(!A){return this}if(A.attributes){A=A.attributes}var y=this.attributes,C=this._escapedAttributes;if(!z.silent&&this.validate&&!this._performValidation(A,z)){return false}if(this.idAttribute in A){this.id=A[this.idAttribute]}var B=this._changing;this._changing=true;for(var x in A){var D=A[x];if(!w.isEqual(y[x],D)){y[x]=D;delete C[x];this._changed=true;if(!z.silent){this.trigger("change:"+x,this,D,z)}}}if(!B&&!z.silent&&this._changed){this.change(z)}this._changing=false;return this},unset:function(x,y){if(!(x in this.attributes)){return this}y||(y={});var A=this.attributes[x];var z={};z[x]=void 0;if(!y.silent&&this.validate&&!this._performValidation(z,y)){return false}delete this.attributes[x];delete this._escapedAttributes[x];if(x==this.idAttribute){delete this.id}this._changed=true;if(!y.silent){this.trigger("change:"+x,this,void 0,y);this.change(y)}return this},clear:function(z){z||(z={});var x;var y=this.attributes;var A={};for(x in y){A[x]=void 0}if(!z.silent&&this.validate&&!this._performValidation(A,z)){return false}this.attributes={};this._escapedAttributes={};this._changed=true;if(!z.silent){for(x in y){this.trigger("change:"+x,this,void 0,z)}this.change(z)}return this},fetch:function(y){y||(y={});var x=this;var z=y.success;y.success=function(C,A,B){if(!x.set(x.parse(C,B),y)){return false}if(z){z(x,C)}};y.error=c(y.error,x,y);return(this.sync||b.sync).call(this,"read",this,y)},save:function(z,y){y||(y={});if(z&&!this.set(z,y)){return false}var x=this;var A=y.success;y.success=function(E,C,D){if(!x.set(x.parse(E,D),y)){return false}if(A){A(x,E,D)}};y.error=c(y.error,x,y);var B=this.isNew()?"create":"update";return(this.sync||b.sync).call(this,B,this,y)},destroy:function(y){y||(y={});if(this.isNew()){return this.trigger("destroy",this,this.collection,y)}var x=this;var z=y.success;y.success=function(A){x.trigger("destroy",x,x.collection,y);if(z){z(x,A)}};y.error=c(y.error,x,y);return(this.sync||b.sync).call(this,"delete",this,y)},url:function(){var x=p(this.collection)||this.urlRoot||r();if(this.isNew()){return x}return x+(x.charAt(x.length-1)=="/"?"":"/")+encodeURIComponent(this.id)},parse:function(y,x){return y},clone:function(){return new this.constructor(this)},isNew:function(){return this.id==null},change:function(x){this.trigger("change",this,x);this._previousAttributes=w.clone(this.attributes);this._changed=false},hasChanged:function(x){if(x){return this._previousAttributes[x]!=this.attributes[x]}return this._changed},changedAttributes:function(z){z||(z=this.attributes);var y=this._previousAttributes;var A=false;for(var x in z){if(!w.isEqual(y[x],z[x])){A=A||{};A[x]=z[x]}}return A},previous:function(x){if(!x||!this._previousAttributes){return null}return this._previousAttributes[x]},previousAttributes:function(){return w.clone(this._previousAttributes)},_performValidation:function(z,y){var x=this.validate(z);if(x){if(y.error){y.error(this,x,y)}else{this.trigger("error",this,x,y)}return false}return true}});b.Collection=function(y,x){x||(x={});if(x.comparator){this.comparator=x.comparator}w.bindAll(this,"_onModelEvent","_removeReference");this._reset();if(y){this.reset(y,{silent:true})}this.initialize.apply(this,arguments)};w.extend(b.Collection.prototype,b.Events,{model:b.Model,initialize:function(){},toJSON:function(){return this.map(function(x){return x.toJSON()})},add:function(A,y){if(w.isArray(A)){for(var z=0,x=A.length;z<x;z++){this._add(A[z],y)}}else{this._add(A,y)}return this},remove:function(A,y){if(w.isArray(A)){for(var z=0,x=A.length;z<x;z++){this._remove(A[z],y)}}else{this._remove(A,y)}return this},get:function(x){if(x==null){return null}return this._byId[x.id!=null?x.id:x]},getByCid:function(x){return x&&this._byCid[x.cid||x]},at:function(x){return this.models[x]},sort:function(x){x||(x={});if(!this.comparator){throw new Error("Cannot sort a set without a comparator")}this.models=this.sortBy(this.comparator);if(!x.silent){this.trigger("reset",this,x)}return this},pluck:function(x){return w.map(this.models,function(y){return y.get(x)})},reset:function(y,x){y||(y=[]);x||(x={});this.each(this._removeReference);this._reset();this.add(y,{silent:true});if(!x.silent){this.trigger("reset",this,x)}return this},fetch:function(x){x||(x={});var z=this;var y=x.success;x.success=function(C,A,B){z[x.add?"add":"reset"](z.parse(C,B),x);if(y){y(z,C)}};x.error=c(x.error,z,x);return(this.sync||b.sync).call(this,"read",this,x)},create:function(y,x){var z=this;x||(x={});y=this._prepareModel(y,x);if(!y){return false}var A=x.success;x.success=function(B,D,C){z.add(B,x);if(A){A(B,D,C)}};y.save(null,x);return y},parse:function(y,x){return y},chain:function(){return w(this.models).chain()},_reset:function(x){this.length=0;this.models=[];this._byId={};this._byCid={}},_prepareModel:function(z,y){if(!(z instanceof b.Model)){var x=z;z=new this.model(x,{collection:this});if(z.validate&&!z._performValidation(x,y)){z=false}}else{if(!z.collection){z.collection=this}}return z},_add:function(z,y){y||(y={});z=this._prepareModel(z,y);if(!z){return false}var A=this.getByCid(z);if(A){throw new Error(["Can't add the same model to a set twice",A.id])}this._byId[z.id]=z;this._byCid[z.cid]=z;var x=y.at!=null?y.at:this.comparator?this.sortedIndex(z,this.comparator):this.length;this.models.splice(x,0,z);z.bind("all",this._onModelEvent);this.length++;if(!y.silent){z.trigger("add",z,this,y)}return z},_remove:function(y,x){x||(x={});y=this.getByCid(y)||this.get(y);if(!y){return null}delete this._byId[y.id];delete this._byCid[y.cid];this.models.splice(this.indexOf(y),1);this.length--;if(!x.silent){y.trigger("remove",y,this,x)}this._removeReference(y);return y},_removeReference:function(x){if(this==x.collection){delete x.collection}x.unbind("all",this._onModelEvent)},_onModelEvent:function(z,y,A,x){if((z=="add"||z=="remove")&&A!=this){return}if(z=="destroy"){this._remove(y,x)}if(y&&z==="change:"+y.idAttribute){delete this._byId[y.previous(y.idAttribute)];this._byId[y.id]=y}this.trigger.apply(this,arguments)}});var u=["forEach","each","map","reduce","reduceRight","find","detect","filter","select","reject","every","all","some","any","include","contains","invoke","max","min","sortBy","sortedIndex","toArray","size","first","rest","last","without","indexOf","lastIndexOf","isEmpty","groupBy"];w.each(u,function(x){b.Collection.prototype[x]=function(){return w[x].apply(w,[this.models].concat(w.toArray(arguments)))}});b.Router=function(x){x||(x={});if(x.routes){this.routes=x.routes}this._bindRoutes();this.initialize.apply(this,arguments)};var g=/:([\w\d]+)/g;var v=/\*([\w\d]+)/g;var d=/[-[\]{}()+?.,\\^$|#\s]/g;w.extend(b.Router.prototype,b.Events,{initialize:function(){},route:function(x,y,z){b.history||(b.history=new b.History);if(!w.isRegExp(x)){x=this._routeToRegExp(x)}b.history.route(x,w.bind(function(B){var A=this._extractParameters(x,B);z.apply(this,A);this.trigger.apply(this,["route:"+y].concat(A))},this))},navigate:function(x,y){b.history.navigate(x,y)},_bindRoutes:function(){if(!this.routes){return}var y=[];for(var z in this.routes){y.unshift([z,this.routes[z]])}for(var A=0,x=y.length;A<x;A++){this.route(y[A][0],y[A][1],this[y[A][1]])}},_routeToRegExp:function(x){x=x.replace(d,"\\$&").replace(g,"([^/]*)").replace(v,"(.*?)");return new RegExp("^"+x+"$")},_extractParameters:function(x,y){return x.exec(y).slice(1)}});b.History=function(){this.handlers=[];w.bindAll(this,"checkUrl")};var l=/^#*/;var h=/msie [\w.]+/;var j=false;w.extend(b.History.prototype,{interval:50,getFragment:function(y,x){if(y==null){if(this._hasPushState||x){y=window.location.pathname;var z=window.location.search;if(z){y+=z}if(y.indexOf(this.options.root)==0){y=y.substr(this.options.root.length)}}else{y=window.location.hash}}return decodeURIComponent(y.replace(l,""))},start:function(z){if(j){throw new Error("Backbone.history has already been started")}this.options=w.extend({},{root:"/"},this.options,z);this._wantsPushState=!!this.options.pushState;this._hasPushState=!!(this.options.pushState&&window.history&&window.history.pushState);var y=this.getFragment();var x=document.documentMode;var B=(h.exec(navigator.userAgent.toLowerCase())&&(!x||x<=7));if(B){this.iframe=e('<iframe src="javascript:0" tabindex="-1" />').hide().appendTo("body")[0].contentWindow;this.navigate(y)}if(this._hasPushState){e(window).bind("popstate",this.checkUrl)}else{if("onhashchange" in window&&!B){e(window).bind("hashchange",this.checkUrl)}else{setInterval(this.checkUrl,this.interval)}}this.fragment=y;j=true;var C=window.location;var A=C.pathname==this.options.root;if(this._wantsPushState&&!this._hasPushState&&!A){this.fragment=this.getFragment(null,true);window.location.replace(this.options.root+"#"+this.fragment);return true}else{if(this._wantsPushState&&this._hasPushState&&A&&C.hash){this.fragment=C.hash.replace(l,"");window.history.replaceState({},document.title,C.protocol+"//"+C.host+this.options.root+this.fragment)}}if(!this.options.silent){return this.loadUrl()}},route:function(x,y){this.handlers.unshift({route:x,callback:y})},checkUrl:function(y){var x=this.getFragment();if(x==this.fragment&&this.iframe){x=this.getFragment(this.iframe.location.hash)}if(x==this.fragment||x==decodeURIComponent(this.fragment)){return false}if(this.iframe){this.navigate(x)}this.loadUrl()||this.loadUrl(window.location.hash)},loadUrl:function(z){var y=this.fragment=this.getFragment(z);var x=w.any(this.handlers,function(A){if(A.route.test(y)){A.callback(y);return true}});return x},navigate:function(x,y){var A=(x||"").replace(l,"");if(this.fragment==A||this.fragment==decodeURIComponent(A)){return}if(this._hasPushState){var z=window.location;if(A.indexOf(this.options.root)!=0){A=this.options.root+A}this.fragment=A;window.history.pushState({},document.title,z.protocol+"//"+z.host+A)}else{window.location.hash=this.fragment=A;if(this.iframe&&(A!=this.getFragment(this.iframe.location.hash))){this.iframe.document.open().close();this.iframe.location.hash=A}}if(y){this.loadUrl(x)}}});b.View=function(x){this.cid=w.uniqueId("view");this._configure(x||{});this._ensureElement();this.delegateEvents();this.initialize.apply(this,arguments)};var k=function(x){return e(x,this.el)};var a=/^(\S+)\s*(.*)$/;var s=["model","collection","el","id","attributes","className","tagName"];w.extend(b.View.prototype,b.Events,{tagName:"div",$:k,initialize:function(){},render:function(){return this},remove:function(){e(this.el).remove();return this},make:function(y,x,A){var z=document.createElement(y);if(x){e(z).attr(x)}if(A){e(z).html(A)}return z},delegateEvents:function(B){if(!(B||(B=this.events))){return}if(w.isFunction(B)){B=B.call(this)}e(this.el).unbind(".delegateEvents"+this.cid);for(var A in B){var C=this[B[A]];if(!C){throw new Error('Event "'+B[A]+'" does not exist')}var z=A.match(a);var y=z[1],x=z[2];C=w.bind(C,this);y+=".delegateEvents"+this.cid;if(x===""){e(this.el).bind(y,C)}else{e(this.el).delegate(x,y,C)}}},_configure:function(z){if(this.options){z=w.extend({},this.options,z)}for(var A=0,y=s.length;A<y;A++){var x=s[A];if(z[x]){this[x]=z[x]}}this.options=z},_ensureElement:function(){if(!this.el){var x=this.attributes||{};if(this.id){x.id=this.id}if(this.className){x["class"]=this.className}this.el=this.make(this.tagName,x)}else{if(w.isString(this.el)){this.el=e(this.el).get(0)}}}});var t=function(x,y){var z=i(this,x,y);z.extend=this.extend;return z};b.Model.extend=b.Collection.extend=b.Router.extend=b.View.extend=t;var q={create:"POST",update:"PUT","delete":"DELETE",read:"GET"};b.sync=function(B,y,x){var z=q[B];var A=w.extend({type:z,dataType:"json"},x);if(!A.url){A.url=p(y)||r()}if(!A.data&&y&&(B=="create"||B=="update")){A.contentType="application/json";A.data=JSON.stringify(y.toJSON())}if(b.emulateJSON){A.contentType="application/x-www-form-urlencoded";A.data=A.data?{model:A.data}:{}}if(b.emulateHTTP){if(z==="PUT"||z==="DELETE"){if(b.emulateJSON){A.data._method=z}A.type="POST";A.beforeSend=function(C){C.setRequestHeader("X-HTTP-Method-Override",z)}}}if(A.type!=="GET"&&!b.emulateJSON){A.processData=false}return e.ajax(A)};var f=function(){};var i=function(y,x,z){var A;if(x&&x.hasOwnProperty("constructor")){A=x.constructor}else{A=function(){return y.apply(this,arguments)}}w.extend(A,y);f.prototype=y.prototype;A.prototype=new f();if(x){w.extend(A.prototype,x)}if(z){w.extend(A,z)}A.prototype.constructor=A;A.__super__=y.prototype;return A};var p=function(x){if(!(x&&x.url)){return null}return w.isFunction(x.url)?x.url():x.url};var r=function(){throw new Error('A "url" property or function must be specified')};var c=function(z,y,x){return function(A){if(z){z(y,A,x)}else{y.trigger("error",y,A,x)}}};var m=function(x){return x.replace(/&(?!\w+;|#\d+;|#x[\da-f]+;)/gi,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")}}).call(this);var Comm=new (function(){var d=0;this.muxURL="";this.debug=!!location.search.match(/debug/);this.start=function(m){if(d!=0){return}if(!document.cookie.match(/_session_id=([^;]+)/)){alert(G._("Your browser does not allow cookies. Please enable cookies from the browser's settings or use another browser"))}this.muxURL=m;$("body").append('<div id="socket"></div>');swfobject.embedSWF("/media/socket.swf","socket","1","1","9.0.0","",{scope:"Comm.Socket"},{bgcolor:"000000"});if(d===0){this.switchToPolling()}var n=_.once(function(){Logger.info("Delete channel");var o={call0:JSON.stringify(["chan-serv","delete_channel",[zmqChanId]])};if(typeof(Game)!="undefined"){o.call1=JSON.stringify(["engine","update_game_state",[Game.gid,{action:"unwatch"}]])}$.ajax({url:"/en/services/run",async:false,type:"post",timeout:1000,data:_.extend(o,{num:_.size(o),chan_id:zmqChanId})})});$(window).bind("beforeunload",n);$(window).unload(n)};this.stop=function(){if(d==1){this.stopPollers()}else{if(d==2){this.Socket.close()}}d=0};this.sendGame=function(m,n){if(typeof(n)=="undefined"){n={}}this.enqueue("engine","update_game_state",[Game.gid,_.extend(n,{action:m})])};this.moveCard=function(n,o,m){this.sendGame("move",{card:n,from_name:o,to_name:m})};this.status=function(){return d};var g=[];var h;this.enqueue=function(m,o,n){if(d===0){return}if(d===1){Logger.debug(Comm,"Enqueuing via web: "+JSON.stringify([m,o,n]));g.push([m,o,n]);l=500}else{if(d==2){Logger.debug(Comm,"Enqueuing via mux: "+JSON.stringify([m,o,n]));this.Socket.send(JSON.stringify([m,o,n]))}}};var b=_.bind(function(){if(d!=1){return}if(h&&!h.done){return}var o={chan_id:zmqChanId,ie:(new Date()).getTime(),num:g.length};h={num:g.length,time:(new Date()).getTime()};for(var n=0,m=g.length;n<m;n++){o["call"+n]=JSON.stringify(g.shift())}h.obj=$.ajax({url:"/"+G.lang()+"/services/run",type:"post",data:o,error:_.bind(this.stopPollers,this),complete:function(p,q){h.done=true;if(q=="success"){p.responseText&&f(p.responseText)}}})},this);var f=_.bind(function(m){var o=[];try{o=JSON.parse(m)}catch(n){}_.each(o,function(s){Logger.debug(Comm,s);try{s=JSON.parse(s)}catch(r){}var q=s.shift();if(i[q]){i[q].apply(this,s)}},this)},this);var i={};this.registerCallback=function(o,m){i[o]=m};this.registerCallback("error",function(m,n,o){switch(n){case"JoinError":if(typeof(Game)!="undefined"&&m!=Game.gid){return false}var p=(o=="competition"?"/compete":("/games/"+o+"/hands"));window.location="/"+G.lang()+p+"?_message=BAh7BjoLbm90aWNlIilZb3UgY2FuIG9ubHkgam9pbiBvbmUgZ2FtZSBhdCBh%0AIHRpbWU%3D%0A";break;default:if(m!=0&&typeof(Game)!="undefined"&&m!=Game.gid){return false}if(typeof(Game)=="undefined"){$("img.joinLoading").remove()}Lightbox.alert(G._(o));if(typeof(Game)!="undefined"){Game.revertIllegalMove()}break}});var l=1000;this.stayInPolling=false;var c,e;this.stopPollers=function(){if(c){clearInterval(c)}if(e){clearInterval(e)}};var a=_.bind(function(){var m=(new Date()).getTime();var n=false;if(typeof(h)=="undefined"){n=true}else{if(h.done){if(m-h.time>l){n=true;if(l>3000){l=3000}}}else{if(h.num===0){if(m-h.time>l+1000){n=true}}else{}}}if(!n){return}if(h&&!h.done&&h.obj&&h.obj.transport&&h.obj.transport.readyState==1){h.obj.transport.abort();h.obj.transport.onreadystatechange=$.noop;h.done=true;l+=1000}b();if(l==500){l=1000}else{if(l<3000){l=3000}else{if(l>6000){l=6000}}}},this);this.switchToPolling=function(n,m){if(d==1){return}Logger.debug(Comm,"Switching to polling.");this.Socket.close();this.stopPollers();c=setInterval(a,500);if(!m){_.defer(b)}if(n){this.stayInPolling=true}else{e=setInterval(_.bind(this.switchToNonPolling,this),30000);if(m){_.delay(_.bind(this.switchToNonPolling,this),400)}}d=1};this.switchToNonPolling=function(){if(d===2){return}if(this.stayInPolling){return}Logger.debug(Comm,"Switching to non-polling.");this.Socket.connect()};var j=_.bind(function(){this.stopPollers();d=2;while(g.length>0){this.enqueue.apply(this,g.shift())}Logger.debug(Comm,"Finished switching to non-polling.")},this);var k=this;this.Socket=new (function(){var o;var m=0;var n="";this.loaded=function(){o=$("#socket")[0];m=1;Logger.debug(Comm,"Socket is loaded.");if(!k.stayInPolling){this.connect()}};this.connect=function(){if(m==1&&!k.stayInPolling){Logger.debug(Comm,"Socket will try to connect.");o.connect(k.muxURL,4167)}};this.close=function(){if(m==2){Logger.debug(Comm,"Socket is being closed.");m=1;o.close()}};this.connected=function(){Logger.debug(Comm,"Socket is connected.");m=2;if(k.stayInPolling){this.close()}else{n="";this.send(JSON.stringify(["self","setchanid",[zmqChanId]]));this.send(JSON.stringify(["self","authenticate",[User.info.id+" "+document.cookie.match(/_session_id=([^;]+)/)[1]]]));j()}};this.ioError=function(){if(m==2){k.switchToPolling(false,true)}};this.securityError=function(){if(m==2){k.switchToPolling(false,true)}};this.disconnected=function(){if(m==2){k.switchToPolling(false,true)}};this.send=function(p){if(m==2){try{o.write(p+"\r\n")}catch(q){Logger.error("Problems in sending via socket.");k.switchToPolling()}}};this.receive=function(p){n+=decodeURIComponent(p);while(n.indexOf("\r\n")!=-1){var q=n.slice(0,n.indexOf("\r\n"));n=n.slice(n.indexOf("\r\n")+2);f(q)}}})()})();function GetText(){var b={"admin actions:":"خيارات الإشراف:","open store":"إدخل إلى المتجر","show scores":"إظهار النتائج",accept:"إقبل",reject:"أرفض","join requests":"طلبات للإنضمام","empty seat":"مقعد فارغ",kingdom:"مملكة",queens:"بنات",diamonds:"ديناري",trix:"تركس",complex:"كمبلكس",ltoosh:"لطوش",clubs:"سنك",hearts:"كبة",spades:"بستوني","please choose the hand to play.":"الرجاء اختيار اللعبة.","waiting for":"بانتظار","to choose the hand":"ليختار اللعبة التالية","n/a":"غير موجود","last round":"الدق السابق","joined the game":"انضم إلى اللعبة","to start the game":"لتبدأ اللعب","start game":"إبدأ اللعبة","more player":"لاعبين اخرين","more players":"لاعبين اخرين","to join":"لينضموا","is the hand chooser":"صاحب المملكة",choose:"اختار","waiting for all players to double any cards":"بانتظار جميع اللاعبين ليضاعفوا أية ورقة","has not doubled anything":"لم يضاعف أية ورقة","has doubled the":"ضاعف ورقة","and is ready":"و هو جاهز","all players are ready":"جميع اللاعبين جاهزين","to play":"ليلعب","has finished":"انتهت","to deal next hand":"لتوزع الأوراق","to chose the hand":"ليختار اللعبة التالية","ate the trick and has a total of":"أكل الأوراق, و مجموع أكلاته",ate:"أكل","diamond card":"كرت ديناري","diamond cards":"كروت ديناري","and has a total of":"و مجموعه","ate the queen of":"أكل ورقة البنت","ate the king of hearts":"أكل ورقة شيخ الكبة","played the":"لعب ورقة",two:"إثنين",three:"ثلاثة",four:"أربعة",five:"خمسة",six:"ستة",seven:"سبعة",eight:"ثمانية",nine:"تسعة",ten:"عشرة",jack:"ولد",queen:"بنت",king:"شيخ",ace:"قص","king already doubled":"تمت مضاعفة الشيخ مسبقا","you don't have the king":"أنت لا تملك الشيخ","queen already doubled":"تمت مضاعفة البنت مسبقا","you don't have the queen":"أنت لا تملك البنت","card already doubled":"تمت مضاعفة الكرت مسبقا","you cannot double this card":"لا يمكنك مضاعفة هذا الكرت","incorrect suit":"نوع الكرت غير صحيح","you have already doubled your cards":"لقد قمت بمضاعفة أوراقك مسبقا","you cannot pass since you have cards to play":"لا يمكنك تمرير الدور لأنك تملك كروت يمكن لعبها","you must place a jack as the first card":"يجب أن تضع كرت الولد كأول كرت","hand already played":"تم لعب هذا الدق مسبقا","player already ready":"اللاعب جاهز مسبقا","it's not your turn":"هذا ليس دورك","you can't play this card now":"لا يمكنك لعب هذا الكرت الان",close:"إغلاق",by:"من قبل",needs:"تحتاج ل","player(s)":"لاعبين",players:"لاعبين","is ready to start":"جاهزة لتبدأ","trix complex":"تركس كمبلكس",trixcomplex:"تركس كمبلكس","The game is back on track":"عادت اللعبة الى مجراها","are you sure?":"هل أنت متأكد؟","are you sure?\nthis player will be banned from this table.":"هل أنت متأكد؟\n هذا اللاعب سيحظر من هذه اللعبة.","the game is over":"انتهت اللعبة","there are no games":"لا يوجد ألعاب حاليا","create a new one":"أنشىء واحدة جديدة","you have no games":"ليس لديك أية ألعاب","you must be":"يجب أن","logged in":"تسجل دخولك","to use this feature":"لتتمكن من استخدام هذه الميزة",updated:"تم تحديثها",ago:"منذ",about:"حوالي","1 minute":"دقيقة",minutes:"دقيقة","back to game":"العودة إلى اللعبة",join:"انضم","play now":"إلعب الآن","next round gives you":"الجولة التالية تعطيك",tokens:"توكنز","players can leave and join during the game. the computer plays if players leave.":"بإمكان اللاعبين المغادرة والدخول خلال اللعبة. الكمبيوتر يلعب في حال مغادرة اللاعبين. ","no leaving and joining during the game. no computer and no timer.":"لا يستطيع اللاعبون المغادرة أو الدخول خلال اللعبة. من غير كمبيوتر و من غير مؤقت.",timer:"مؤقت",seconds:"ثانية","kick after":"إخراج اللاعب بعد","times of not playing":"مرات من غير لعب","leaving during game is allowed":"مسموح المغادرة خلال اللعبة","no leaving during game":"ممنوع المغادرة خلال اللعبة","game in progress and full":"اللعبة جارية و ممتلئة","game has":"لديها","player(s) and needs":"لاعبين و تحتاج ل","to start":"لتبدأ","to continue":"لتكمل","game in progress and has":"اللعبة جارية و لديها","empty seat(s)":"مقعد فارغ","no timer":"بلا مؤقت","?":"\u061f","The game can longer be continued.":"لا يمكن إستكمال هذه اللعبة.","play while you wait":"إلعب خلال انتظارك","check games in progress":"تفقد الألعاب الجارية حالياً","games in progress":"ألعاب جارية حالياً","are you sure you want to ignore chat messages from":"هل ترغب بعدم إستلام رسائل من","for the rest of this game?":"حتى نهاية اللعبة؟","please make sure to report any misuse of the chat at the bottom of the page.":"الرجاء الإبلاغ عن سوء الاستخدام عند أسفل الصفحة.","to undo this action, refresh the page.":"للتراجع عن هذه العملية قم بإعادة تحميل الصفحة","the players":"اللاعبون","please choose your partner.":"الرجاء إختيار شريكك.","to choose his partner":"ليختار شريكه","offered to partner with":"يريد أن يشارك","accepted the offer.":"قبل الشراكة","declined the offer.":"لم يقبل الشراكة","each player is automatically partnered with the opposite player":"تم مشاركة كل لاعب مع اللاعب المقابل له اتوماتيكياً","to bid":"ليطلب","please place your bid":"إختار طلبتك","has bid":"طلب","did not bid":"لم يطلب","to choose his tarneeb":"ليختار الطرنيب","please choose your tarneeb":"الرجاء إختيار طرنيبك","has chosen":"إختار","as his tarneeb":"كطرنيب","waiting for selected partner to accept":"بإنتظار الشريك ليقبل الشراكة","not your turn to bid":"ليس دورك للطلب","chat is enabled":"الدردشة مفعلة","chat is disabled":"الدردشة غير مفعلة","this game is sponsored by":"هذه اللعبة برعاية","have a chance to win in 3 great competitions!":"لديك الآن الفرصة للفوز في ٣ مسابقات رائعة!","create a new game":"انشىء لعبة جديدة","back to my game":"العودة إلى لعبتي","there are no games in progress":"لا يوجد ألعاب جارية حالياً","there are no new games":"لا يوجد ألعاب جديدة","new games":"ألعاب جديدة","score summary":"ملخص النتائج",redeal:"إعادة التوزيع","second timer":"ثانية للمؤقت",hand:"الدق","score totals":"مجموع النتائج",bidder:"الطالب","the bid":"الطلبة",team:"الفريق","deal next hand":"وزع الأوراق","chat is disabled for viewers":"الدردشة غير مفعلة للمشاهدين","chat is disabled for guests":"الدردشة غير مفعلة للضيوف","chat has been disabled for this game":"الدردشة غير مفعلة في هذه اللعبة","the game is back on track":"اللعبة جارية الآن","the game can longer be continued.":"اللعبة متوقفة كلياً","this hand has finished":"إنتهى الدق","has left the game":"غادر اللعبة","has been kicked out from this game":"قد تم طرده من اللعبة",tarneeb:"طرنيب","tarneeb egyptian":"طرنيب مصرية","sounds on":"فعل الصوت","sounds off":"أسكت الصوت",sun:"صن",hokum:"حكم",ashkal:"أشكل",us:"نحن",them:"هما",buyer:"مشتري",purchase:"شراء",points:"نقاط","double":"دبل","double 3":"دبل 3","double 4":"دبل 4",gahwa:"قهوة","sun before":"قبلك","switch to sun":"يقلب صن","confirm hokum":"تأكيد حكم","not your turn to double":"ليس دورك أن تدبل","you already used up your two project trials":"لقد قمت بإضافة جميع المشاريع","at least one of this project's cards is already used in another project":"هناك ورقة أو أكثر مستعملة في مشروع آخر","shortest project is 2 cards long":"يجب أن يكون المشروع مكون من 2 أوراق كحد أدنى","shortest project is 3 cards long":"يجب أن يكون المشروع مكون من 3 أوراق كحد أدنى","baloot project must include both queen and king of the hokum suit":"مشروع البلوت يجب أن يحتوي الشايب و البنت من نوع الحكم","longest project is 5 cards long":"يجب أن يكون المشروع مكون من 5 أوراق كحد أقصى","cards in a sira project must be of the same suit":"يجب أن تكون أوراق مشروع السرا من نفس النوع","cards of a sira project must be in order":"يجب أن تكون أوراق مشروع السرا متسلسلين","cards of a khamseen project must be in order":"يجب أن تكون أوراق مشروع الخمسين متسلسلين","cards must be of the same rank in miya and arba3miya projects":"يجب أن تكون أوراق مشاريع المية والأربعمية من نفس المنزلة","rank must be 10, j, q, k or a for a miya or arba3miya project":"يجب أن تكون أوراق مشاريع المية والأربعمية 10, J ,Q ,K ,أو A","not a valid 4-card project":"المشروع غير صحيح مع 4 أوراق","cards in a miya project must be of the same suit":"يجب أن تكون أوراق مشروع المية من نفس النوع","cards of a miya project must be in order":"يجب أن تكون أوراق مشروع المية متسلسلين",heart:"هاص",diamond:"ديمن",club:"شيريا",spade:"سبيت",baloot:"بلوت","playing closed hokum, can't start with a card of hokum suit":"اللعب حكم مقفل، لا تستطيع أن تبدأ بورقة من نوع الحكم","must play card from hokum suit":"يجب عليك أن تلعب ورقة من نوع الحكم","must play higher than highest hokum card":"يجب عليك أن تلعب ورقة أعلى من أعلى ورقة حكم على الأرض","must specify a bid value":"يجب عليك أن تطلب شيء","invalid bid value":"الطلبة غير قانونية","not a valid suit":"النوع غير قانوني","your bid is too low":"يجب أن تكون طلبتك أعلى","you cannot pass":"لا يجوز لك التمرير","you cannot double when your partner has the highest bid":"لا يجوز لك أن تدبل لأن أعلى طلبة لشريكك","you cannot double since your partner already did":"لا يجوز لك أن تدبل لأن شريكك دبل قبلك","no trump":"بلا طرنيب",tarneebegyptian:"طرنيب مصرية","players have left and the game is on hold. you can choose to wait for other players to join and continue or leave the game and play in another one.":"لقد غادر اللاعبون او اللعبة متوقفة الآن. يمكنك إما أن تنتظر حتى ينضم لاعبون اخرون و تكمل اللعب، أو تغادر و تلعب في في لعبة أخرى.",leave:"غادر","wait for players":"إنتظر لاعبين اخرين","do you want to accept":"هل تقبل","as your partner?":"كشريك؟","as your brother?":"كخويك؟","please choose your brother":"الرجاء إختيار خويك","please choose your partner":"الرجاء إختيار شريكك","would you like to double the hand?":"هل تريد أن تدبل الدق؟",bas:"بس","are you sure you want to add this project?":"هل أنت متأكد من هذا المشروع؟","choose your hokum suit":"إختار نوع الحكم","buying round":"جولة شراء","current purchase":"الشراء الحالي","your purchase":"شراءك",turn:"دور",suit:"النوع",game:"اللعبة","current bid":"الطلبة الحالية","your bid":"طلبتك","choose your tarneeb":"إختار طرنيبك","please choose the next hand":"الرجاء اختيار اللعبة التالية","you are about to complain about":"أنت بصدد تقديم شكوى عن","please provide the reason of your complaint":"الرجاء تزويدنا بسبب الشكوى","use of bad language":"إستخدام كلمات مسيئة في الدردشة","cheating or multiple accounts":"الغش أو حسابات متعددة","slow or annoying play":"لعب بطيء أو مزعج",other:"سبب آخر","you will be able to see":"بإمكانك ملاحظة","you can cancel your complaint about":"بإمكانك إلغاء شكوتك عن","by clicking":"بالنقر",cancel:"إلغاء","next to":"بجانب","you will also be able to see the games that":"بإمكانك أيضاً معرفة الألعاب التي يشارك",again:"مرة أخرى","you can now see":"بإمكانك ملاحظة",because:"لأن","is now one of your favorite players":"أصبح أحد اللاعبين المفضلين لديك","you can remove":"بإمكانك حذف","from your favorite players by clicking":"من قائمة اللاعبين المفضلين لديك بالنقر على","is playing in":"فيها","this game can no longer be continued, because no one can join and the computer does not continue.":"لا يمكن إستكمال هذه اللعبة لأن الكمبيوتر لا يكمل و لا يستطيع أي لاعب الإنضمام في وسط اللعبة.","back to games":"العودة إلى صفحة الألعاب","connection has timed out because your internet connection is slow. you can continue playing, but you may face more connectivity issues. if this problem persists, please contact your internet service provider to resolve this issue.":"لقد إنقطع الاتصال بسبب بطء خط الانترنت لديك. بإمكانك الاستمرار باللعب، لكنه من الممكن أن تواجه المزيد من الصعوبات التقنية. إذا استمرت هذه المشكلة، الرجاء الإتصال بمزود الإنترنت لديك لحل المشكلة.","can't join a full game":"لا يمكنك الإنضمام إلى لعبة ممتلئة","please send an":"الرجاء إرسال","send an":"إرسال","with the number":"بالرقم","from your mobile phone to":"من هاتفك الخلوي إلى",to:"إلى","from your mobile":"من هاتفك الخلوي","to enter the competition":"للدخول في المسابقة","Selected player is already in this round":"هذا اللاعب موجود في هذه الجولة مسبقاً","to unlock the next hand":"للإنتقال إلى الدق التالي","this sms costs":"تكلفة هذه الرسالة","are you sure? this will deduct":"هل انت متأكد؟ سيخصم منك","tokens from your account.":"نقطة.","back to competition":"العودة إلى المسابقة","the table below shows the standings for the competition.":"الجدول التالي يبين ترتيب اللاعبين في المسابقة","good luck!":"نتمنى لك حظاً سعيداً!","your score is":"نتيجتك","you are currently ranked":"ترتيبك","you need more tokens to retry hand":"تحتاج إلى المزيد من النقاط لإعادة التوزيع","in the competition.":"في المسابقة.",rank:"التصنيف",score:"النتيجة",pass:"تمرير",ready:"جاهز","pass cards":"مرر الأوراق",go:"ابدأ اللعب",yes:"نعم",no:"لا","hokum suit":"نوع الحكم",bid:"اطلب",zain:"زين",orange:"اورنج",umniah:"أمنية",jd:"دينار","after this redeal, you will have":"بعد إعادة التوزيع سيكون عندك","redeals remaining.":"محاولة إعادة توزيع.","you cannot redeal anymore.":"لا يمكنك إعادة توزيع الورق.","to redeal":"لإعادة توزيع الورق",sms:"رسالة قصيرة","and the sum of your highest 3 scores is":"و مجموع أعلى 3 نتائج لك","trix partner":"تركس شراكة","trix complex partner":"تركس كمبلكس شراكة",estimation:"إستميشن","tarneeb syrian 41":"طرنيب سوري 41",basra:"باصرة",leekha:"ليخة",trixpartner:"تركس شراكة",trixcomplexpartner:"تركس كمبلكس شراكة",tarneebsyrian41:"طرنيب سوري 41","tarneeb syrian41":"طرنيب سوري 41",bids:"طلبات",doubled:"مضاعف",eaten:"الأكلات",bunts:"أبناط","select 3 cards to pass to the person on your left by clicking on each card.":"إختر 3 أوراق لتمريرهن للشخص على يسارك بالنقر على كل ورقة.","are you sure you want to pass these 3 cards?":"هل أنت متأكد أنك تريد تمرير هذه 3 أوراق؟",dealer:"الموزع",leader:"الأول",wala:"ولا",closed:"مقفل",open:"مفتوح",floor:"الأرض",projects:"المشاريع",sira:"سرا",miya:"مية",khamseen:"خمسين",arba3miya:"أ ربعمية",add:"أضف","remaining projects":"مشاريع متبقية","you have selected more projects than those allowed.":"لقد اخترت أكثر من مشروعين","timer must be a value between 8 and 60 seconds":"المؤقت يجب أن يكون بين 8 و 60 ثانية","play again":"إلعب مرة أخرى",or:"أو","use credit":"إستعمل نقطة رصيد","credits remaining":"نقاط رصيد متبقية",vodafone:"فودافون",mobinil:"موبينيل",etisalat:"إتصالات",egp:"جنيه","to redeal, you can either":"لإعادة توزيع الأوراق، يمكنك إما","you have":"لديك","use tokens":"إستعمال النقاط","for this redeal":"لمرة واحدة","for the entire game":"لكل اللعبة","marks are used to rank you among your peers in each type of games":"العلامات تستخدم لترتيبك ضمن اللاعبين في كل لعبة","you must play a game from the beginning to the end to get marks, and must get a good position in that game":"عليك أن تلعب لعبة من البداية حتى النهاية لتحصل على علامات، كما أن نتيجتك في اللعبة يجب أن تكون جيدة","the harder the game is, and the higher position you get, the more marks you get":"كلما كانت اللعبة أصعب، وكلما كانت نتيجتك أفضل، كلما حصلت على علامات أكثر","you have obtained":"لقد حصلت على",marks:"علامة","marks in this game":"علامة في هذه اللعبة","you have obtained no marks since you were not in this game from the beginning":"لم تحصل على علامات لأنك من تكن في اللعبة منذ بدايتها","you have obtained no marks since you did not play well in this game":"لم تحصل على علامات لأنك لم تلعب بشكل جيد في هذه اللعبة","this game has ended.":"لقد انتهت اللعبة.","you will be contacted by email with the results.":"سيتم إرسال النتيجة إلى بريدك الإلكتروني.","please check the email you registered with within a few hours.":"الرجاء تفقد صندوق البريد الإلكتروني الذي سجلت فيه في غضون بضع ساعات.","you cannot kick out people in this type of games":"لا يمكنك إخراج اللاعبين في هذا النوع من الألعاب","you are banned from chatting for 1 day":"أنت محظور من إستخدام صندوق المحادثة لمدة يوم واحد","the better you play the more marks you will earn.":"كلما لعبت بمستوى أفضل كلما حصلت على علامات إضافية","you must finish a game in order to earn marks. you do not necessarily need to be in the game from the beginning, you can  join a game in the middle and finish it till the end and still earn marks.":" يجب عليك أن تكمل لعبة لتحصل على علامات. بإمكانك الإنضمام إلى لعبة في منتصفها وستحصل على علامات إذا بقيت في اللعبة حتى نهايتها","even though you will earn marks for joining games in the middle, join games from beginning to end to earn more marks.":" ستحصل على علامات إذا انضممت إلى لعبة في منتصفها، لكن إنضم إلى الألعاب من البداية حتى النهاية لتحصل على علامات أكثر","we also take into consideration the rank of other players in the game. you will earn more marks for beating better players.":"يتم أيضاً أخذ مستوى اللاعبين الاخرين في اللعبة بعين الإعتبار. ستحصل على علامات أكثر إذا فزت على لاعبين ذو تصنيف أعلى","you must keep playing in order to retain and improve your rank. if you don't play for a long time your rank will go down.":"يجب عليك أن تستمر باللعب لتحافظ على مرتبتك و تزيدها. إذا لم تلعب لفترة طويلة ستنخفض مرتبتك","how does ranking work?":"كيف يتم التصنيف؟","your mark in":"علامتك في",is:"هي","in":"في","join games from the begining to get more marks.":"إنضم إلى الألعاب من البداية لتحصل على علامات أكثر.","too talkative (ignore chat)":"كثير التحدث (أهمل ما يقوله)","you have obtained enough marks to maintain your current rank of":"لقد حصلت على علامات كافية للمحافظة على مرتبتك الحالية، و هي","with":"وذ",risk:"رسك","double risk":"دبل رسك","with risk":"وذ رسك","with double risk":"وذ دبل رسك","doubled 10 of diamonds":"عشرة دياموندز مضاعفة","doubled queen of spades":"ملكة سبيدز مضاعفة","eaten queen of spades":"ملكة سبيدز مأكولة","eaten 10 of diamonds":"عشرة دياموندز مأكولة","eaten doubled 10 of diamonds":"عشرة دياموندز مضاعفة مأكولة","eaten doubled queen of spades":"ملكة سبيدز مضاعفة مأكولة","doubled king of hearts":"شيخ الكبة مضاعف","eaten doubled king of hearts":"شيخ الكبة مضاعف مأكول","eaten king of hearts":"شيخ الكبة مأكول","eaten queen":"ملكة مأكولة","eaten doubled queen":"ملكة مضاعفة مأكولة","doubled queen":"ملكة مضاعفة",'click on 3 cards to pass, then click on "pass cards" when done.':'إضغط على 3 أوراق للتمرير ثم إضغط على زر "مرر الأوراق" أدناه','click a card to double it then click "ready" when done.':'إضغط على ورقة لتضاعفها ثم إضغط على زر "جاهز" عند الانتهاء',"would you like to redeal or avoid?":"هل تريد إعادة توزيع الأوراق أو أفويد؟",avoid:"أفويد","would you like to dash call or bid?":"هل تريد إعلان داش كول أو الطلب؟","dash call":"داش كول","your estimate":"الأكلات المقدرة",estimate:"حدد الأكلات المقدرة","turn chat off":"تجاهل الدردشة","turn chat on":"إعادة الدردشة","no projects":"لا يوجد مشاريع",name:"الإسم","final score":"النتيجة النهائية","are you sure you want to double this card?":"هل أنت متأكد بأنك ترغب بمضاعفة هذه الورقة؟","expand cards":"وسّع الأوراق","collapse cards":"ضيّق الأوراق",you:"أنت",beginner:"مبتدئ",intermediate:"متوسط",advanced:"محترف","hover the mouse over any section for more detailed information about the winning ratio":"حرك الفأرة فوق أي قسم لمعرفة المزيد عن تقسيم نسبة الفوز","congratulations! you have improved by":"مبروك! لقد تحسنت بنسبة","in this game to become":"في هذه اللعبة لتصبح","overall in":"بشكل عام في","your rank is now":"تصنيفك أصبح الآن","you have maintained your rank of":"لقد حافظت على تصنيفك وهو","sit here":"إجلس هنا","change game parameters":"تغيير تفاصيل اللعبة","game admin":"مشرف اللعبة",submit:"أرسل","member since":"عضو منذ","this is a test feature for limited users only. if you would like to participate in testing":"هذه الميزة تحت التجربة عند عدد محدود من اللاعبين. إذا اردت الاشتراك في مرحلة التجريب","contact us":"إتصل بنا","join the game to access this view":"إنضم الى اللعبة لإستعمال هذا العرض","you can only change seats once per game":"يمكنك تغيير مقعدك مرة واحدة فقط في كل لعبة","kick out":"أخرج اللاعب","this is a password-protected game. please provide the password:":"هذه لعبة خاصة. الرجاء إدخال كلمة السر:","3 to 10 characters":"بين 3 و 10 أحرف","used to verify account":"سيستخدم لتفعيل حسابك","4 to 40 characters":"بين 4 و 40 حرف","must match the above":"يجب أن يطابق أعلاه","passwords do not match":"كلمة السر غير مطابقة","already taken":"مستخدم من لاعب آخر",ok:"تمام","checking ...":"التأكد...","invalid format":"الشكل غير صحيح","cannot be empty":"لا يجوز أن يكون فارغاً","must be accepted":"يجب أن تكون مقبولة","forgot password?":"نسيت كلمة السر؟","invalid characters used":"تم إستخدام أحرف ممنوعة","new account?":"حساباً جديداً؟","sign up!":"إشترك الآن!","this feature is part of jawaker basha. if you are interested":"هذه الميزة جزء من ميزات جواكر باشا. إذا كنت مهتماً","private game?":"لعبة خاصة؟","minimum rank":"أدنى تصنيف مسموح",password:"كلمة السر",email:"البريد الإلكتروني",any:"بلا","add friend":"أضف كصديق","delete":"حذف",uninvite:"إزالة الدعوة","accept friend":"قبول الصداقة",block:"حجب اللاعب",blocked:"حجب",unblock:"إزالة الحجب",complain:"تقديم شكوى",actions:"الإجراءات",refuse:"رفض الدعوة","friends online":"صديق على الموقع","game chat":"دردشة اللعبة","went offline":"غادر الموقع","went online":"دخل الموقع",cards:"أوراق",bonus:"نقاط إضافية",total:"المجموع","learn more":"إعرف المزيد","invalid code":"رمز غير صحيح","this feature is part of jawaker basha. find your friends online and chat with them privately anywhere on jawaker. if you are interested":"هذه الميزة جزء من ميزات جواكر باشا. تشمل إمكانية إيجاد أصدقائك على الموقع والدردشة معهم مباشرةً من أي صفحة على جواكر. إذا كنت مهتماً","this feature is part of jawaker basha. see the full profile of all players at the table. if you are interested":"هذه الميزة جزء من ميزات جواكر باشا. تفقد جميع معلومات اللاعبين الآخرين على الطاولة. إذا كنت مهتماً","this feature is part of jawaker basha. kick people out, change your seat and change the game parameters. if you are interested":"هذه الميزة جزء من ميزات جواكر باشا. تشمل إمكانية إخراج اللاعبين وإمكانية تغيير مقعدك وتعديل تفاصيل اللعبة. إذا كنت مهتماً",hours:"ساعة","game name is too short":"إسم اللعبة قصير","you can't set the rank limit above your own rank":"لا يمكنك تحديد مستوى اللعبة الى مستوى أعلى من تصنيفك","emails do not match":"البريد الالكتروني غير مطابق","cards left":"أوراق متبقية","you cannot chat with friends in the same game":"لا يمكنك الدردشة مع اصدقاءك في نفس اللعبة","you must have a basha account to initiate chat":"يجب أن يكون حسابك باشا لبدء الدردشة","invite your friends to play with you on jawaker!<br />choose your email provider then enter the username and password of your email account.":"اعزم أصدقاءك للعب معك على جواكر!<br /> إختر مزود الخدمة لديك ومن ثم إدخل إسم الستخدم وكلمة السر التابعين لحساب بريدك الالكتروني",invite:"اعزم","this feature has been disabled for competition games":"تم إيقاف هذه الميزة في ألعاب المسابقات","congratulations, you are the winner of this competition.":"ألف مبروك، لقد فزت في هذه المسابقة","congratualtions, you have won in the current round of the competition and have qualified to the next round":"ألف مبروك، لقد فزت في هذه الجولة من المسابقة و تأهلت الى الجولة القادمة","click on the following link to know when your next game will be":"اضغط هنا لتعرف متى ستكون لعبتك القادمة","you lost in the current round of the competition, but you still have a chance to qualify to the next round !":"لسوء الحظ، لقد خسرت في هذه الجولة من المسابقة. لكن لا تزال لديك الفرصة لتتأهل إلى الجولة القادمة !","the jawaker team will contact you soon.":"فريق جواكر سيتصل بك في أقرب وقت","you can get an argeelah for yourself or gift it to someone on the table for only 35 tokens":"بإمكانك الحصول على أرجيلة لنفسك أو تهديها لشخص على الطاولة مقابل 35 توكنز فقط","players with an argeelah can use it by hovering their mouse over it!":"اللاعب الذي يملك أرجيلة على الطاولة بإمكانه أن يستخدمها بتمرير الفأرة من فوقها!","get now":"إحصل عليها الآن","you gave yourself":"لقد أهديت لنفسك","you gave":"لقد أهديت","gave you":"أهداك","gave themselves":"أهدى نفسه",gave:"أهدى","a gift":"هدية","recipient already has gift":"المهدى له يمتلك هدية من قبل","you don't have enough tokens":"ليس لديك توكنز كافية","this game will automatically start after 15 minutes or when all the players join":"ستبدأ هذه المسابقة تلقائياً بعد 15 دقيقة أو عندما ينضم جميع اللاعبين","you have been banned from chatting for 1 day due to using bad language.":"لقد تم حظرك من الدردشة لمدة يوم واحد بسبب إستخدام كلمات بذيئة.","ranking result (last 30 days)":"نتيجة التصنيف (في أخر 30 يوم)","you must finish at least 15 games in the last 30 days to get ranked":"يجب أن تلعب 15 لعبة كحد أدنى خلال آخر 30 يوم لكي تدخل نظام التصنيف","games won":"مرة فوز","games completed":"مرة إكمال لعبة","games left":"مرة مغادرة","loading ...":"جاري التحميل ...","congratulations, you won!":"مبروك ، لقد فزت!","you have been rewarded":"لقد تم اعطاءك","you have unforutantely lost.":"للأسف، لقد خسرت.","nevertheless, you have been given":"رغم ذلك، تم اعطاءك","congratulations! you scored":"مبروك! لقد سجلت","goals for":"هدف لصالح","become a fan of":"شجًع فريق","support your favorite team by scoring goals for them! every jawaker game you win will score goals for your team!":"إدعم فريقك المفضل بتسجيل أهداف لهم! كل لعبة تفوزها على جواكر ستسجل أهداف لفريقك!","you can increase the goals you score for your team with each win by increasing your multiplier":"بإمكانك تسجيل أهداف أكثر عند فوزك بلعبة بزيادة قوة المضاعفة","if you become the top scorer for your team and your team wins on jawaker when the time is up, you will get":"إذا فاز فريقك على جواكر عند إنتهاء الوقت وكنت الهداف الاول لدى الفريق ستربح","i would like to score":"أريد أن اسجل","each time i win a game on jawaker":"عند فوزي بلعبة على جواكر","become a fan":"شجًع الفريق","you currently have":"لديك حالياً","buy more tokens":"إحصل على المزيد من التوكنز",rules:"شروط","in return for":"مقابل",cappuccino:"كباشينو",coffee:"قهوة","arabic coffee":"قهوة عربية",cupcake:"كعكة فراولة","falafel pieces":"فلافل حب","falafel sandwich":"ساندويش فلافل","french fries":"بطاطا مقلية",hamburger:"همبرغر","black hatta":"حطة سوداء","red hatta":"حطة حمراء","white hatta":"حطة بيضاء",hommus:"حمص","apple argileh":"أرجيلة تفاحتين","grape argileh":"أرجيلة عنب","lemon argileh":"أرجيلة ليمون","melon argileh":"أرجيلة شمام","strawberry argileh":"أرجيلة فراولة","watermelon argileh":"أرجيلة بطيخ","cherry argileh":"أرجيلة كرز","ice cream":"بوظة",mansaf:"صدر منسف",masbaha:"مسبحة","mint tea":"شاي مع نعنع",tea:"شاي",msakhan:"صحن مسخن",muffin:"كعكة شوكولا",popcorn:"بوشار",shawerma:"شاورما","skull ring":"خاتم الجمجمة","world cup":"كأس العالم",slush:"شراب سلاش","turkey sandwich":"ساندويش حبش",algeria:"الجزائر",argentina:"الأرجنتين",australia:"أستراليا",uruguay:"اورجواي",italy:"إيطاليا",france:"فرنسا",brazil:"البرازيل","south africa":"إفريقيا الجنوبية",mexico:"المكسيك",ghana:"غانا","ivory coast":"ساحل العاج",nigeria:"نجيريا",cameroon:"الكاميرون",japan:"اليابان","south korea":"كوريا الجنوبية","north korea":"كوريا الشمالية",england:"إنجلترا",netherlands:"هولندا",spain:"إسبانيا",serbia:"الصرب",denmark:"الدنمارك",germany:"ألمانيا",switzerland:"سويسرا",slovakia:"سلوفاكيا",portugal:"البرتغال",greece:"اليونان",slovenia:"سلوفينيا",paraguay:"بارغواي",chile:"شيلي",honduras:"هوندوراس","new zealand":"نيوزيلندا","united states":"أمريكا","my items":"مشترياتي",special:"مميز",food:"طعام",drink:"مشروبات",clothing:"ثياب",smoke:"دخان","worldcup flags":"أعلام كأس العالم","buy tokens":"اشتري توكنز","click on any item above to get more information here":"إنقر على أي بضاعة في الأعلى للحصول على المزيد من المعلومات هنا","you have no goods.":"ليس لديك مشتريات",price:"السعر","this good is valid till the end of this game":"هذه البضاعة صالحة حتى نهاية اللعبة فقط","this good is valid":"هذه البضاعة صالحة","for":"لمدة",forever:"للأبد",days:"يوم",remaining:"متبقي","you already own this good":"أنت تمتلك هذه البضاعة","this good is sold out":"تم بيع هذه البضاعة بالكامل","get this good for":"اشتري هذه البضاعة ل","place it on table":"ضعها على الطاولة",buy:"اشتري","two weeks basha subscription":"إشتراك جواكر باشا لمدة اسبوعين","by becoming a fan you will receive the":"إذا أصبحت مشجعاً ستحصل على","flag of your team":"علم فريقك","on the jawaker store":"في متجر جواكر","we're sorry, this feature is temporarily unavailable.":"نأسف، هذه الميزة غير متوفرة لفترة محدودة.","** only public games in which you play from beginning to end and do not change your seat will be counted as goals.":"فقط الألعاب العامة التي تكملها من البداية حتى النهاية من دون تغيير مقعدك ستحسب كاهداف.","you do not have enough tokens":"ليس لديك توكنز كافية","sign up now!":"إشترك الآن!","did you like this game?":"هل أعجبتك اللعبة؟","create game":"انشئ اللعبة","the options below are part of jawaker basha. create a private game for your friends or limit the players who join by rank. if you are interested":"الخيارات أدناه جزء من جواكر باشا. أنشئ لعبة خاصة مع أصدقائك أو قم بتحديد أدنى تصنيف مسموح باللعبة. إذا كنت مهتماً",login:"سجل الدخول","sign up":"اشترك الآن","you cannot create games without being logged in.":"يجب عليك تسجيل الدخول لإنشاء ألعاب جديدة.","already have an account?":"هل تملك حسابا مسبقا؟","congratulations! you received a fanoos":"مبروك، لقد حصلت على فانوس","amar el-deen drink":"مشروب قمر الدين","amar el-deen":"قمر الدين",atayef:"قطايف",dates:"تمر",fatoosh:"فتوش",kanafeh:"كنافة","ramadan decorations":"زينة رمضانية",soup:"شوربة",water:"ماء",ramadan:"رمضان",watchers:"متفرج","we apologize but an error has occurred. please try again.":"نعتذر ولكن حدث خطأ. يرجى المحاولة مرة أخرى","this is a warning for using bad language, next time you will be banned.":"هذا تحذير على إستخدام كلمات بذيئة، سيتم حظرك في المرة القادمة.","your friend":"صديقك","is in a game":"موجود في لعبة","is not currently in a game":"غير موجود حاليا في لعبة","is inviting you to play.":"يدعوك للعب.","click here":"إضغط هنا","to play with":"لتلعب مع","wants to become your friend":"يريد أن يصبح صديقك","to accept the invitation":"لتقبل الدعوة","go to game":"إذهب للعبة","invite to game":"اعزم للعبة","go to game of":"إذهب إلى لعبة","unfortunately, you lost in the current round of the competition.":"لسوء الحظ، لقد خسرت في هذه الجولة من المسابقة.",sent:"تم الارسال","do not miss out on the awesome features of jawaker. visit":"إحصل على جميع ميزات جواكر المميزة! قم بزيارة","now!":"الآن!","thank you":"شكرا","joining a qualification game will deduct 600 tokens":"الانضمام إلى لعبة تصفيات سيخصم منك 600 توكنز","from you when the game starts.":"عند بداية اللعبة","if you finish the game till the end you will receive back 250 tokens":"إذا استكملت اللعبة حتى نهايتها، سيرجع لك 250 توكنز","continue?":"الاستمرار؟","to join this game.":"للإنضمام إلى هذه اللعبة","you cannot play in competitions without being logged in.":"لا يمكنك الإنضمام إلى البطولات من غير تسجيل الدخول","waiting for other players to join.":"الرجاء الانتظار لحين إنضمام باقي اللاعبين.","you do not have enough tokens to join this game.":"لا تملك توكنز كافية للإنضمام إلى هذه اللعبة","you have already played the maximum 30 qualification games":"لقد لعبت في الحد الأقصى 30 لعبة تصفيات","congratulations, you have won in this competition game":"ألف مبروك، لقد فزت في لعبة البطولة هذه","unfortunately, you lost in this competition game":"للأسف، لقد خسرت في لعبة البطولة هذه","your current standing in the":"مجموع نتائجك في",competition:"بطولة","your next competition game will take place at":"اللعبة التالية للبطولة ستلعب في","please visit the competition page at the correct time to go to your next game":"الرجاء زيارة صفحة الدوري في الوقت المحدد للذهاب إلى لعبتك التالية","rank points.":"نقاط تصنيف","unfortunately, you lost in this round of the competition.":"للأسف، لقد خسرت في هذه الجولة من البطولة","your total rank points in":"مجموع نقاط التصنيف لديك في","click on the following link to go back to the competition page":"الرجاء الضغط على الرابط التالي للرجوع إلى صفحة الدوري","you can clear your winning ratio by paying 1000 tokens.":"يمكنك أن تحذف إحصائيات الفوز والخسارة في هذه اللعبة مقابل 1000 توكنز.","clear my winning ratio":"إحذف إحصائيات الفوز","your winning ratio:":"نسبة الفوز لديك:","this is a minimum-rank game. your rank is currently too low to enter.":"هذه لعبة مصنفة وتصنيفك لا يسمح لك بدخول هذه اللعبة","you received back 250 tokens":"لقد استرجعت 250 توكنز","total winning score":"مجموع نتائج الفوز",played:"لعبت",won:"فوز",left:"متبقي","you received":"لقد حصلت على","jawaker time":"توقيت جواكر","cannot join a game that is dead or finished":"هذه اللعبة منتهية","your friend is currently in a competition game":"صديقك الآن موجود في لعبة بطولة",jawaker1:"جواكر1",jawaker2:"جواكر2",jawaker3:"جواكر3",jawaker4:"جواكر4",player:"متنافس","to see your winning ratio in all games.":"لتعرف نسبة الفوز لديك في جميع الألعاب",rose:"وردة","new":"جديد","on the phone":"على الهاتف",donkey:"حمار",sheep:"خاروف",chocolate:"شوكولاتة","love heart":"قلب حب","no games available now, please try again in a few minutes":"لا توجد ألعاب لهذه المسابقة حاليا، يرجى المحاولة مجددا بعد بضع دقائق.","game creator has banned you. please join another game.":"تم حظرك من هذه اللعبة. يرجى الإنضمام إلى لعبة أخرى.","you are currently away":"أنت اﻵن غائب عن اللعبة","jawaker will play in your behalf until you come back":"سيلعب جواكر بالنيابة عنك الى أن تعود إلى اللعبة","come back":"إرجع إلى اللعبة","you can join competition games only in the first 10 minutes of every half-hour":"يمكنك الإنضمام إلى ألعاب المسابقات فقط خلال الدقائق العشرة الأولى من كل نصف ساعة.",handgame:"هاند","pick a card by clicking the pack or dragging the card from the floor":"إختر ورقة بالضغط على مجموعة الأوراق أو بسحب الورقة من الأرض","you need to go down":"يجب أن تنزل","throw a card by dragging it to the floor":"ارمي ورقة بسحبها إلى الأرض","you must take a card first":"يجب أن تسحب ورقة أول","you need to go down or throw the card you took from table":"يجب أن تنزل أو أن ترجع الورقة التي أخذتها من الطاوله","you need to go down before adding to table":"يجب أن تنزل قبل أن تقوم بالتركيب","you already took a card":"لقد أخذت ورقة","the card you added is either wrong or in the wrong position":"الورقة التي اضفتها خاطئة أو في المكان الخاطئ","wrong groups":"مجموعات خطأ","wrong group":"مجموعة خطأ","sum of cards does not equal 51":"مجموع الأوراق لا يساوي 51","select the groups you want to put down":"إختر المجموعات التي تريد أن تنزلها","organize your cards in the red boxes to go down":"رتب أوراقك في المربعات الحمر للتنزيل",round:"جولة","you do not have any groups to go down.":"ليس لديك أي مجموعات للتنزيل.",sbeetiya:"سبيته","go down":"إنزل","you need to keep a card to throw on the floor":"يجب أن يبقى لديك ورقة لترميها على الأرض",sum:"المجموع","invite your friends":"اعزم أصدقائك","let us play cards together online on jawaker!":"هيا بنا نلعب الورق مع بعضنا البعض عبر الانترنت على موقع جواكر!",send:"أرسل","please check your username and password and select the correct email provider":"الرجاء التأكد من صحة إسم مستخدم وكلمة السر واختر مزود خدمة البريد الالكتروني",complainer:"المشتكي","complained about":"إشتكى على","complaint type":"نوع الشكوى","game type":"نوع اللعبة","complaint age":"عمر الشكوى",sabotaging:"تخريب","using bad words":"إستخدم ألفاظ سيئة",cheating:"الغش","slow playing":"اللعب البطيء",handle:"إذهب","your complaint has been sent successfully. an admin will contact you in few moments.":"لقد تم إرسال هذه الشكوى بنجاح. سيقوم أحد مشرفي الموقع بالإتصال بك بعد لحظات.","are you sure?\nthis player will be banned from chat for 1 day.":"هل أنت متأكد؟\n هذا اللاعب سيحظر من إستخدام صندوق المحادثة لمدة يوم واحد.",admins:"المشرفين",admin:"مشرف","new complaints":"توجد شكاوي جديدة","to go to the complaints page":"لتذهب إلى صفحة الشكاوي","no complaints":"لا توجد شكاوي","last chat":"المحادثة",link:"الرابط","you cannot pause a game that has not started":"لا يمكنك أن توقف لعبة لم تبدأ","only creator can pause games":"فقط منشئ اللعبة يمكنه أن يقف اللعبة","the game is currently paused.":"هذه اللعبة موقفة حالياً","the game will continue in":"سيستكمل اللعب بعد","you can pause the game for 5 times only.":"يمكنك أن توقف اللعبة لخمسة مرات فقط","pause the game for":"أوقف اللعبة لمدة","pause game":"أوقف اللعبة",pause:"أوقف","you can only pause a game after it has started.":"لا يمكنك أن توقف اللعبة قبل أن تبدأ","you reached the maximum number of allowed pauses per game":"لقد تجاوزت الحد الأقصى لعدد مرات إيقاف اللعب لهذه اللعبة","no guests":"بدون ضيوف","guests are not allowed in this game":"لا يسمح بدخول الضيوف إلى هذه اللعبة. قم بإنشاء حساب لتتمكن من الدخول إلى هذه اللعبة.","empty seats":"مقاعد فارغة","timer(seconds)":"مؤقت(ثانية)","ranked game":"لعبة مصنفة","you cannot join this game without being logged in. please login or create a new account to be able to join this game.":"لا يمكنك الدخول إلى هذه اللعبة كضيف. قم بتسجيل دخولك أو قم بإنشاء حساب جديد لتتمكن من الدخول إلى هذه اللعبة.","your browser does not allow cookies. please enable cookies from the browser's settings or use another browser":"المتصفح الذي تستخدمه لا يسمح بحفظ الكوكيز. يرجى تعديل هذا الخيار من إعدادات المتصفح والمحاولة مجدداً، أو يرجى إستخدم متصفح أخر","delete user":"إحذف الحساب","cannot kick or change seats":"بدون طرد أو تغيير مقاعد","includes a friend":"تحتوي على صديق","the options of this game do not allow kicking players out":"خيارات هذه اللعبة لا تسمح بطرد اللاعبين","the options of this game do not allow changing seats":"خيارات هذه اللعبة لا تسمح بتغيير المقاعد","no kicking or changing seats":"بدون طرد أو تغيير مقاعد","request delete":"اطلب حذف الحساب","chat ban":"إحرم من المحادثة","start chat":"إبدأ محادثة","request sent":"تم إرسال الطلب","you have been successfully added to the nominees list":"لقد تم إضافتك إلى قائمة المرشحين بنجاح","thanks for voting":"شكراً للتصويت","you cannot join this game":"لا يمكنك الدخول إلى هذه اللعبة","contains blocked players":"تحتوي على أشخاص محجوبين","block player":"احجب اللاعب","another admin is handling this complaint":"قام مشرف آخر بمتابعة هذه الشكوى","you cannot take admin actions in games you are in":"خيارات المشرف غير متاحة لأنك مشارك في هذه اللعبة","you are in":"أنت في","this competition":"هذه البطولة","and you have a game that starts now":"ولديك لعبة تبدأ الآن","to go to your game.":"لتذهب إلى لعبتك","please go to the competition page to rate it":"الرجاء الذهاب إلى صفحة المسابقة لتقييمها",competition_new_state:"مسابقة جديدة",competition_in_progress_state:"مسابقة جارية حالياً",competition_ended_state:"مسابقة منتهية","start date":"تاريخ بدأ المسابقة","rounds time":"وقت الجولات","organizer ranking":"تقييم المنظم",seats:"المقاعد","are you sure you want to join this competition? this will deduct":"هل أنت متأكد أنك تريد الإنضمام إلى هذه المسابقة؟ سىيخصم منك","Request Sent":"تم إرسال طلب الإنضمام","you need to be basha to create competition":"يجب أن تكون مشترك في جوكر باشا لتنشئ مسابقة","you cannot join a competition without being logged in.":"يجب عليك تسجيل الدخول للإشتراك في هذه المسابقة","new complaints in your competition":"شكاوي جديدة في مسابقتك","to go to the competition page":"لتذهب إلى صفحة المسابقة","you can not put this card here":"لا يمكنك وضع هذه الورقة هنا","please note that usernames of new accounts will be temporarily hidden until your chosen username is approved. except for game chat, you can use your account normally during this period.":"سيتم إخفاء أسماء الحسابات الجديدة مؤقتاً إلى أن يتم الموافقة عليها. بإمكانك إستخدام حسابك بشكل طبيعي خلال هذه الفترة بإستثناء دردشة اللعبة.","are you sure you want to delete your friendship with %s?":"هل أنت متأكد أنك تريد أن تحذف صداقتك مع %s؟","are you sure you want to block %s? this player will no longer be able to chat with you in this game and will not be able to see or join your games from now on!":"هل أنت متأكد أنك تريد أن تحجب %s؟ هذا اللاعب لن يتمكن من التحدث إليك في هذه اللعبة ولن يتمكن من رؤية ألعابك أو الدخول إليها إذا قمت بحجبه!","you can not take this card":"لا يمكنك أخذ هذه الورقة"};var a={minute:{en:{singular:"minute",plural:"minutes"},ar:{singular:"دقيقة",dual:"دقيقتين",plural:"دقائق"}},watcher:{en:{singular:"watcher",plural:"watchers"},ar:{singular:"متفرج",dual:"متفرجين",plural:"متفرجين"}}};this.pluralize=function(d,e){var c;switch(G.lang()){case"ar":c=a[e].ar;switch(true){case d===1:return d+" "+c.singular;case d===2:return d+" "+c.dual;case d<=10:return d+" "+c.plural;default:return d+" "+c.singular}default:c=a[e].en;switch(true){case d===1:return d+" "+c.singular;default:return d+" "+c.plural}}};this._=function(){if(arguments[0].toString().toLowerCase() in b&&window.location.pathname.substring(0,3)!=="/en"){return b[arguments[0].toString().toLowerCase()]}else{return arguments[0]}};this.lang=function(){try{if(window.location.pathname.substring(0,3)==="/en"){return"en"}return"ar"}catch(c){return"ar"}}}G=new GetText();$.fn.observe=function(a,b){return this.each(function(){var e=$(this);var g=_.bind(e.is("form")?e.serialize:e.val,e);var f=g();var c=setInterval(function(){if(g()!==f){b.call(e);f=g()}},a*1000);var d=(e.data("observe_intervals")||[]).concat(c);e.data("observe_intervals",d)})};$.fn.unobserve=function(){return this.each(function(){var b=$(this);var a=b.data("observe_intervals")||[];b.removeData("observe_intervals");_.each(_.keys(a),function(c){clearInterval(a[c])})})};function add_form_tip(a,d){var b=$(a).parent("td").next("td");var c=function(){if(b.is(":hidden")){b.html("<img src='/images/arrow_"+G.lang()+".gif' alt='tip'/> "+d).attr("class","onclick").show()}};var e=function(){_.delay(function(){if(b.is(":visible")&&b.attr("class")==="onclick"){b.hide()}},150)};$(a).focus(c).blur(e)}$.validator.setDefaults({highlight:$.noop,messages:{"user[username]":{required:G._("Cannot be empty"),minlength:G._("3 to 10 characters"),maxlength:G._("3 to 10 characters"),remote:G._("Already taken")},"user[email]":{required:G._("Cannot be empty"),email:G._("Invalid format"),remote:"<a href='"+G.lang()+"/users/password/new'>"+G._("Forgot password?")+"</a>"},user_email_confirmation:{required:G._("Cannot be empty"),equalTo:G._("Emails do not match")},"user[password]":{required:G._("Cannot be empty"),minlength:G._("4 to 40 characters"),maxlength:G._("4 to 40 characters")},"user[password_confirmation]":{required:G._("Cannot be empty"),equalTo:G._("Passwords do not match")}},errorPlacement:function(a,b){b.parent("td").next("td").html("<img src='/images/error.png'></img> "+a.html()).attr("class","error").show()},success:function(a){$("#"+a.attr("for")).parent("td").next("td").html("<img alt='OK' src='/images/OK.png'> "+G._("OK")).attr("class","correct").show()}});String.prototype.underscore=function(){return this.replace(/[A-Z]+/g,function(a,b){return(b===0?"":"_")+a.toLowerCase()})};if(typeof console!=="undefined"){console.log("Do you enjoy tinkering with websites? Do you have a passion for programming and challenges?");console.log("If so, we, the Jawaker Team, would love to hear from you.");console.log("Please email us at: info[at]boundlessdrop.com.")}function fadeFlash(){var a=$("#flash");if(a.length){a.css({position:"relative",top:0}).animate({top:"25px"},1000).delay(5000).animate({opacity:0},2000)}}$(document).ready(function(){fadeFlash();$(".loadLater").each(function(){$(this).attr("src",$(this).attr("rel")).attr("rel","").show()});Tooltips.setup();Tooltips.loadAll(".miniProfile",true)});function submitOnce(a){a.disabled=true;a.form.submit();return false}function removeMsgBox(a){document.cookie="closed_msg_hash="+a+"; path=/; max-age="+(60*60*24*365);$("#msgBox").hide()}function selectedRadioValue(b){var a=$(":input[name='"+b+"'][checked]");return a.length?a.val():undefined}var RankRanges=[[0,5],[5,10],[10,15],[15,20],[20,25],[25,30],[30,35],[35,40],[40,45],[45,50],[50,60],[60,75],[75,100]];function createCookie(c,d,e){var a="";if(e){var b=new Date();b.setTime(b.getTime()+(e*24*60*60*1000));a="; expires="+b.toGMTString()}document.cookie=c+"="+d+a+"; path=/"}function readCookie(b){var e=b+"=";var a=document.cookie.split(";");for(var d=0;d<a.length;d++){var f=a[d];while(f.charAt(0)===" "){f=f.substring(1,f.length)}if(f.indexOf(e)===0){return f.substring(e.length,f.length)}}return null}function eraseCookie(a){createCookie(a,"",-1)}function advertiseSetup(a){if(!isFB){try{GS_googleAddAdSenseService(a);GS_googleEnableAllServices();advertiseKey=a}catch(b){}}}function advertiseAddSlots(b){if(!isFB){try{advertiseSlots=b;for(var a in b){GA_googleAddSlot(advertiseKey,b[a])}}catch(c){}}}function advertiseFetch(){if(!isFB){try{GA_googleFetchAds()}catch(a){}}}function advertiseFillSlot(b){if(!isFB){try{GA_googleFillSlot(advertiseSlots[b])}catch(a){}}}function flashThingy(a){if(a.is(":visible")){a.animate({opacity:0.5},2000).delay(700).animate({opacity:1},{complete:_.bind(flashThingy,{},a)})}}var JawakerCounters={};var JawakerCounterRunning=false;function startCounters(){if(JawakerCounterRunning){return}function a(){var h=G.lang()==="en"?["d","h","m","s"]:["يوم","س","د","ث"];var g=function(f){return(f[0]>9?f[0]:"0"+f[0])+G._(f[1])};for(var i in JawakerCounters){var d=[];var c=JawakerCounters[i][0];if(c<0){c=-c}d.unshift(c%60);c=(c-d[0])/60;d.unshift(c%60);c=(c-d[0])/60;d.unshift(c%24);c=(c-d[0])/24;d.unshift(c);JawakerCounters[i][0]-=1;var b=_.zip(d,h);while(b[0][0]===0){b.shift();if(b.length===0){break}}if(b.length===0){continue}b=_.map(b,g).join(" : ");var e=$(i);if(e.length){e.html(b)}if(JawakerCounters[i][0]===0&&JawakerCounters[i][1]&&JawakerCounters[i][1].afterHook){JawakerCounters[i][1].afterHook()}}if(!_.isEmpty(JawakerCounters)){setTimeout(a,1000);JawakerCounterRunning=true}}a()}function startJawakerTime(a){var c=$("#jawakerTime");function b(){var f=[];var e=a;f.unshift(e%60);e=(e-f[0])/60;f.unshift(e%60);e=(e-f[0])/60;f.unshift(e%24);a+=1;var d=_.map(f,function(g){return(g>9?g:"0"+g)}).join(" : ");c.html(d);setTimeout(b,1000)}b()}function capitalizeString(a){return a.slice(0,1).toUpperCase()+a.slice(1).toLowerCase()}var WhiteLabel=new (function(){this.options={}})();function whiteLabelRedirect(){$("#signInLink").click(function(){if(WhiteLabel.options.redirect_sign_in){window.top.location.href=WhiteLabel.options.redirect_sign_in;return false}return true});$("#registerLink").click(function(){if(WhiteLabel.options.redirect_register){window.top.location.href=WhiteLabel.options.redirect_register;return false}return true})}var Chat=new (function(){var c=function(k,j,g,i){this.type=g;this.id=k;this.n=j;this.user_type=i;if(g===0||g===1||g===4){this.title=$("<div>");this.content=$("<div>");this.title.addClass("paneTitle");if(g===1){j=G._("Game Chat")}if(User.userTypeHasAdminFeature(this.user_type,"chat")&&g===0){j=j+" ("+G._("Admin")+")"}this.title.html("<div class='leftPaneTitle'>"+j+"</div><div class='rightPaneTitle'></div>");this.link=$("<a>");this.title.find(".rightPaneTitle:first").html(this.link);var h=$("<table><tbody></tbody></table>").addClass("chat");this.content.html(h).css({height:"0px"}).addClass("paneContent");this.title.css({display:"none"});$("#friendsList").after(this.content).after(this.title);var f=this.title.height();this.title.css({height:"0px",display:"block"}).animate({height:f})}else{if(g===2){this.title=$("#friendsTitle");this.content=$("#friendsList")}else{if(g===3){this.title=$("#notificationsTitle");this.content=$("#notificationsList")}}}this.title.click(_.bind(function(){if(Chat.activePane===this&&Chat.defaultPane!==this){Chat.activateDefaultPane()}else{Chat.activatePane(this)}return false},this));if(g===2&&User.hasFeature("chat")){$("#friendsInfo").click(_.bind(function(){if(Chat.activePane===this&&Chat.defaultPane!==this){Chat.activateDefaultPane()}else{Chat.activatePane(this)}return false},this))}if(g===0||g===4){this.link.html("[x]");this.link.click(_.bind(function(){this.close();return false},this))}else{if(g===1){}}this.addLine=function(l,m){if(this.type===2){return}if(typeof(infoRead)!=="undefined"&&CoPlayers.relation(infoRead("players."+_.indexOf(infoRead("player_names"),l)))===5){return false}m=Chat.smilify(m);if(l){this.content.find("tbody").append("<tr><td><span>"+l+":</span> "+m+"</td></tr>")}else{this.content.find("tbody").append("<tr><td><strong>("+m+")</strong></td></tr>")}this.content.scrollTop(this.content.find("table").height());return true};this.addItem=function(o,n){if(this.type!==2){return}var l=$("<li>");l.html("<img src='/images/icon-friend.png' /><span class='makeMePoint'>"+n+"</span>");var q=$("<img>",{"class":"friendArrow",src:"/images/redarrow.png"});var p=$("<div>",{"class":"friendActionsDiv",style:"display: none;"});var m=$("<span>",{"class":"friendInvitedClass"});l.append(q);l.append(p);l.append(m);this.content.find("ul").append(l);q.click(function(){if(!p.is(":visible")){p.html(JST["notifications/friend_action_box"]({coplayerID:o}));p.css({top:(q.position().top+20)+"px",left:(q.position().left-30)+"px"});p.show();$(this).attr("src","/images/redarrowup.png")}else{p.hide();$(this).attr("src","/images/redarrow.png")}return false});p.bind("click",{player_id:o},function(r){switch(r.target.id){case"whereIsHe":Comm.enqueue("friends","coplayer_game",[r.data.player_id]);break;case"invite":Comm.enqueue("friends","invite_coplayer",[Game.gid,r.data.player_id,infoRead("password","")]);m.css({opacity:1}).html(G._("sent"));m.animate({opacity:0},{duration:2000,complete:function(){m.html("")}});break;default:break}$(this).hide();q.attr("src","/images/redarrow.png");return false});return l};this.highlight=function(l){if(l){this.title.addClass("highlightTitle")}else{this.title.removeClass("highlightTitle")}};this.close=function(){if(this.type!==0&&this.type!==4){return}this.title.unbind();this.link.unbind();delete Chat.panes[this.n];if(this===Chat.activePane){Chat.activateDefaultPane(_.bind(function(){this.content.remove()},this))}else{Chat.activatePane(Chat.activePane);this.content.remove()}this.title.animate({height:0},{complete:_.bind(function(){this.title.remove()},this)})}};var e;var b={};var a;this.panes={};this.activePane=null;this.defaultPane=null;this.onlinePlayerStructures={};this.canSend=true;this.addPane=function(k,j,g,i,f){var h=new c(k,j,g,i);this.panes[j]=h;if(!f&&this.activePane){this.activatePane(this.activePane)}};var d=_.bind(function(){var f=e-(_.size(this.panes)*_.values(this.panes)[0].title.outerHeight()+$("#friendsInfo").outerHeight()+b.chatSendArea.outerHeight());f-=(_.size(this.panes)-1)*4;return f},this);this.setup=function(){this.loaded=true;if(User.hasFeature("chat")){$("#friendsInfo").html("0 "+G._("Friends Online"));$("#friendsInfo").addClass("linkLike")}else{if(!WhiteLabel.options.no_basha_text){$("#friendsInfo").html(G._("This feature is part of Jawaker Basha. Find your friends online and chat with them privately anywhere on Jawaker. If you are interested")+" <a href='/"+G.lang()+"/basha' target='_blank'>"+G._("learn more")+"</a>");$("#friendsInfo").addClass("comingsoon")}}e=$("#chatContainer").height();_.each(["friendsTitle","friendsInfo","chatSendArea","notificationsTitle"],function(g){b[g]=$("#"+g)});if($("#friendsTitle")[0]){this.addPane(0,"online-friends",2)}if($("#notificationsTitle")[0]){this.addPane(0,"notifications",3)}this.defaultPane=this.panes[typeof(Game)==="undefined"?"online-friends":"game-chat"];this.activateDefaultPane();$("#chatMsg").keydown(function(g){if(g.keyCode===13){Chat.sendChat();return false}});$("#submitChat").click(function(){Chat.sendChat();return false});if(User.info.id){Comm.enqueue("friends","online_friends",[(typeof(Game)==="undefined"?0:Game.gid)])}var f=_.select(document.cookie.split(";"),function(g){return g.split("=")[0].replace(/^\s+|\s+$/g,"")==="chatMute"})[0];Sound.chatMute=f?(f.split("=")[1]==="true"):false;$("#toggleChatSoundLink div").first().removeClass("soundon soundoff").addClass(Sound.chatMute?"soundon":"soundoff");$("#toggleChatSoundLink").click(function(){Sound.chatMute=!Sound.chatMute;$("#toggleChatSoundLink div").first().removeClass("soundon soundoff").addClass(Sound.chatMute?"soundon":"soundoff");document.cookie="chatMute="+Sound.chatMute+"; path=/";return false});$("#smiliesBox").html(JST["templates/smilies_box"]({}));Tooltips.loadAll("#smiliesBoxButton",true,function(){$("#tipcontainer table").delegate("img","click",function(){if(!Chat.canSend){return false}var h=$("#chatMsg");h.val(h.val()+Chat.smilies[$(this).attr("rel")][2]);$("#tipcontainer").hide();if(h.is(":enabled")){h.focus()}var g=h.val();h.val("");h.val(g);return false})})};this.route=function(l,i,f,j,k){if(!this.panes[i]){this.addPane(l,i,0,k)}var h=this.panes[i];if(User.userTypeHasAdminFeature(k,"hidden")&&f===""){f=G._("Admin")}var g=h.addLine(f,j);if(h===this.activePane){if(f!==User.info.login&&!isFB&&g){Sound.chatPlay("chat")}}else{if(!h.title.hasClass("highlightTitle")){Sound.chatPlay("new_chat_panel")}h.highlight(true)}};this.notify=function(g){var k=this.panes.notifications;if(!k){return}var f=$("<li>");var j=$("<div>",{"class":"notificationContent"});var i=$("<div>",{"class":"notificationCloseDiv"});var h=$("<a>",{href:"#"});j.html(g);h.html("x");i.html(h);f.append(j).append(i);k.content.find("ul").append(f);h.click(function(){f.remove();return false});if(k!==this.activePane){if(!k.title.hasClass("highlightTitle")){Sound.chatPlay("new_chat_panel")}k.highlight(true)}};this.adminPrivateChat=function(g,f){if(User.hasAdminFeature("chat")){if(!this.panes[f]){this.addPane(g,f,4)}this.activatePane(this.panes[f])}};this.statusChange=function(j,h,g){var f;if(g){if(!this.onlinePlayerStructures[j]){f=this.panes["online-friends"].addItem(j,h);f.addClass("goingOnline");this.onlinePlayerStructures[j]=[h,f];setTimeout(function(){f.removeClass("goingOnline")},4000);Sound.chatPlay("logon");if(this.panes[h]){this.panes[h].addLine(false,h+" "+G._("went online"));if(this.activePane.id===j){this.enableSubmit(true)}}f.find("span:first").bind("click",{pid:j,plogin:h,that:this},function(k){if(!k.data.that.panes[k.data.plogin]){k.data.that.addPane(k.data.pid,k.data.plogin,0,null,true)}k.data.that.activatePane(k.data.that.panes[k.data.plogin]);$(".friendActionsDiv").hide();$(".friendArrow").attr("src","/images/redarrow.png");return false})}}else{var i=this.onlinePlayerStructures[j];if(i){f=i[1];h=i[0];f.addClass("goingOffline");setTimeout(function(){f.remove()},4000);delete this.onlinePlayerStructures[j];Sound.chatPlay("logoff");if(this.panes[h]){this.panes[h].addLine(false,h+" "+G._("went offline"));if(this.activePane.id===j){this.enableSubmit(false)}}}}$("#friendsInfo").html(_.size(this.onlinePlayerStructures)+" "+G._("Friends Online"));$("#friendsInfo").addClass("highlightYellow");if(a){clearTimeout(a)}a=setTimeout(function(){$("#friendsInfo").removeClass("highlightYellow")},4000)};this.activatePane=function(g,f){var h=false;if(typeof(f)==="undefined"){f=$.noop}if(this.activePane!==g){if(this.activePane){this.activePane.content.animate({height:0},{complete:f});h=true}g.highlight(false)}if(g.type===0||g.type===4){this.enableSubmit(true)}else{if(g.type===1){this.enableSubmit(this.gameEnableSubmit())}else{if(g.type===2){this.enableSubmit(false)}}}g.content.animate({height:d()},{complete:h?$.noop:f});this.activePane=g;$("#chatMsg:enabled").focus()};this.activateDefaultPane=function(f){return this.activatePane(this.defaultPane,f)};this.sendChat=function(){var g=$.trim($("#chatMsg").val());if(g.length===0){return}switch(this.activePane.type){case 4:if(User.hasAdminFeature("chat")&&typeof(Game)!=="undefined"){Comm.enqueue("friends","send_admin_chat",[Game.gid,this.activePane.id,g,infoRead("competition_id")]);var f=User.hasAdminFeature("hidden")?G._("Admin"):User.info.login;this.route(0,this.activePane.n,f,g)}break;case 0:Comm.enqueue("friends","send_chat",[(typeof(Game)==="undefined"?0:Game.gid),this.activePane.id,g]);this.route(0,this.activePane.n,User.info.login,g);break;case 1:if(!this.gameSendChat(g)){return}break;case 2:return;default:break}$("#chatMsg").val("")};Comm.registerCallback("updateFriends",_.bind(function(f){if(!Chat.loaded){return}_.each(f,function(h){switch(h[0]){case"chat":this.route(h[1],h[2],h[2],h[3],h[4]);break;case"online":this.statusChange(h[1],h[2],true);break;case"offline":this.statusChange(h[1],"",false);break;case"coplayer_game":var g=this.onlinePlayerStructures[h[1]];if(typeof(g)!=="undefined"){Lightbox.show(JST["notifications/coplayer_in_game"],{},{login:g[0],gid:h[2]})}break;case"notify":var i=JST["notifications/"+h[1]];if(typeof(i)!=="undefined"){this.notify(i(h[2]))}break;default:break}},this)},this));this.enableSubmit=function(f){$("#chatMsg, #submitChat").attr("disabled",!f);this.canSend=f};this.smilies=_.map([["devil.png","]:(-|)\\)","]:-)"],["sleep.png","\\|(-|)\\)","|-)"],["happy.png",":(-|)\\)",":)"],["sad.png",":(-|)\\(",":("],["blush.png",":(-|)\\[",":["],["happyt.png",";(-|)\\)",";)"],["tongue.png",":(-|)[Pp]",":P"],["mad.png",":(-|)[Xx]",":-x"],["so.png",":(-|)[Oo]",":O"],["confused.png",":(-|)[Ss]",":S"],["sd.png",":(-|)D",":D"],["cry.png",":(-|)'\\(",":'("],["cool.png","B(-|)\\)","B-)"],["heart.png","<3","<3"],["wtf.png",":(-|)\\|",":|"]],function(f){return[f[0],new RegExp(f[1],"g"),f[2]]});this.smilify=function(f){var g=f;_.each(this.smilies,function(h){g=g.replace(h[1],"<img src='/images/smilies/"+h[0]+"'>")});return g}})();var showEventBox=function(a,b,e,d,f,c){Lightbox.show(JST["templates/event_box"],{klass:"joinTeamLB",afterHook:function(){var g=function(h){if(h>(c||0)){$("#eventTokens").update(d*h*h-d*(c||0)*(c||0))}};$("#selectMul").change(function(){g(parseInt(this.value,10));return false});$("#becomeAFan").click(function(){window.location="/"+G.lang()+typeof(User.info.id)==="undefined"?"/users/sign_in/":"/jawaker_events/join/"+a+"?team_num="+b+"&mul="+parseInt($("selectMul").value,10);return false})}},{eventId:a,teamId:b,teamURL:e,numTokens:d,nextMul:(c||0)+1,currMul:c||0,tName:(G.lang()==="en"?f[0]:f[1])})};
/*!
 * jQuery UI 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(a,d){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.16",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g)}},e)}):this._focus.apply(this,arguments)},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{e=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!e.length?a(document):e},zIndex:function(h){if(h!==d){return this.css("zIndex",h)}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==document){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function j(m,l,i,n){a.each(f,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(i){l-=parseFloat(a.curCSS(m,"border"+this+"Width",true))||0}if(n){l-=parseFloat(a.curCSS(m,"margin"+this,true))||0}});return l}a.fn["inner"+e]=function(i){if(i===d){return k["inner"+e].call(this)}return this.each(function(){a(this).css(h,j(this,i)+"px")})};a.fn["outer"+e]=function(i,l){if(typeof i!=="number"){return k["outer"+e].call(this,i)}return this.each(function(){a(this).css(h,j(this,i,true,l)+"px")})}});function c(g,e){var j=g.nodeName.toLowerCase();if("area"===j){var i=g.parentNode,h=i.name,f;if(!g.href||!h||i.nodeName.toLowerCase()!=="map"){return false}f=a("img[usemap=#"+h+"]")[0];return !!f&&b(f)}return(/input|select|textarea|button|object/.test(j)?!g.disabled:"a"==j?g.href||e:e)&&b(g)}function b(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(g,f,e){return !!a.data(g,e[3])},focusable:function(e){return c(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(g){var e=a.attr(g,"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f)}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none"});a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]])}},call:function(e,g,f){var j=e.plugins[g];if(!j||!e.element[0].parentNode||e.element[0].parentNode.nodeType===11){return}for(var h=0;h<j.length;h++){if(e.options[j[h][0]]){j[h][1].apply(e.element,f)}}}},contains:function(f,e){return document.compareDocumentPosition?f.compareDocumentPosition(e)&16:f!==e&&f.contains(e)},hasScroll:function(h,f){if(a(h).css("overflow")==="hidden"){return false}var e=(f&&f==="left")?"scrollLeft":"scrollTop",g=false;if(h[e]>0){return true}h[e]=1;g=(h[e]>0);h[e]=0;return g},isOverAxis:function(f,e,g){return(f>e)&&(f<(e+g))},isOver:function(j,f,i,h,e,g){return a.ui.isOverAxis(j,i,e)&&a.ui.isOverAxis(f,h,g)}})})(jQuery);
/*!
 * jQuery UI Widget 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){for(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove")}catch(j){}}c(f)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove")}catch(g){}})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(jQuery);
/*!
 * jQuery UI Mouse 1.8.16
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(b,c){var a=false;b(document).mouseup(function(d){a=false});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(f){if(a){return}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1),d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true}}if(true===b.data(f.target,this.widgetName+".preventClickEvent")){b.removeData(f.target,this.widgetName+".preventClickEvent")}this._mouseMoveDelegate=function(h){return e._mouseMove(h)};this._mouseUpDelegate=function(h){return e._mouseUp(h)};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();a=true;return true},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d)}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault()}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d))}return !this._mouseStarted},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b.data(d.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(d)}return false},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance)},_mouseDelayMet:function(d){return this.mouseDelayMet},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true}})})(jQuery);(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(c);if(!this.handle){return false}if(d.iframeFix){a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})}return true},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;(d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt));if(d.containment){this._setContainment()}if(this._trigger("start",c)===false){this._clear();return false}this._cacheHelperProportions();if(a.ui.ddmanager&&!d.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);if(a.ui.ddmanager){a.ui.ddmanager.dragStart(this,c)}return true},_mouseDrag:function(c,e){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!e){var d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false}this.position=d.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,c)}return false},_mouseStop:function(d){var e=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){e=a.ui.ddmanager.drop(this,d)}if(this.dropped){e=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var c=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(c._trigger("stop",d)!==false){c._clear()}})}else{if(this._trigger("stop",d)!==false){this._clear()}}return false},_mouseUp:function(c){if(this.options.iframeFix===true){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}if(a.ui.ddmanager){a.ui.ddmanager.dragStop(this,c)}return a.ui.mouse.prototype._mouseUp.call(this,c)},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({})}else{this._clear()}return this},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){d=true}});return d},_createHelper:function(d){var e=this.options;var c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[d])):(e.helper=="clone"?this.element.clone().removeAttr("id"):this.element);if(!c.parents("body").length){c.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo))}if(c[0]!=this.element[0]&&!(/(fixed|absolute)/).test(c.css("position"))){c.css("position","absolute")}return c},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ")}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0}}if("left" in c){this.offset.click.left=c.left+this.margins.left}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left}if("top" in c){this.offset.click.top=c.top+this.margins.top}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0}}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var g=this.options;if(g.containment=="parent"){g.containment=this.helper[0].parentNode}if(g.containment=="document"||g.containment=="window"){this.containment=[g.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,g.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(g.containment=="document"?0:a(window).scrollLeft())+a(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(g.containment=="document"?0:a(window).scrollTop())+(a(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(g.containment)&&g.containment.constructor!=Array){var h=a(g.containment);var e=h[0];if(!e){return}var f=h.offset();var d=(a(e).css("overflow")!="hidden");this.containment=[(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),(d?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(d?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=h}else{if(g.containment.constructor==Array){this.containment=g.containment}}},_convertPositionTo:function(g,i){if(!i){i=this.position}var e=g=="absolute"?1:-1;var f=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,h=(/(html|body)/i).test(c[0].tagName);return{top:(i.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*e)),left:(i.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*e))}},_generatePosition:function(d){var e=this.options,l=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(l[0].tagName);var h=d.pageX;var g=d.pageY;if(this.originalPosition){var c;if(this.containment){if(this.relative_container){var k=this.relative_container.offset();c=[this.containment[0]+k.left,this.containment[1]+k.top,this.containment[2]+k.left,this.containment[3]+k.top]}else{c=this.containment}if(d.pageX-this.offset.click.left<c[0]){h=c[0]+this.offset.click.left}if(d.pageY-this.offset.click.top<c[1]){g=c[1]+this.offset.click.top}if(d.pageX-this.offset.click.left>c[2]){h=c[2]+this.offset.click.left}if(d.pageY-this.offset.click.top>c[3]){g=c[3]+this.offset.click.top}}if(e.grid){var j=e.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1]:this.originalPageY;g=c?(!(j-this.offset.click.top<c[1]||j-this.offset.click.top>c[3])?j:(!(j-this.offset.click.top<c[1])?j-e.grid[1]:j+e.grid[1])):j;var f=e.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/e.grid[0])*e.grid[0]:this.originalPageX;h=c?(!(f-this.offset.click.left<c[0]||f-this.offset.click.left>c[2])?f:(!(f-this.offset.click.left<c[0])?f-e.grid[0]:f+e.grid[0])):f}}return{top:(g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(i?0:l.scrollTop())))),left:(h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():i?0:l.scrollLeft())))}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");if(this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval){this.helper.remove()}this.helper=null;this.cancelHelperRemoval=false},_trigger:function(c,d,e){e=e||this._uiHash();a.ui.plugin.call(this,c,[d,e]);if(c=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,c,d,e)},plugins:{},_uiHash:function(c){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.16"});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,f){var e=a(this).data("draggable"),g=e.options,c=a.extend({},f,{item:e.element});e.sortables=[];a(g.connectToSortable).each(function(){var h=a.data(this,"sortable");if(h&&!h.options.disabled){e.sortables.push({instance:h,shouldRevert:h.options.revert});h.refreshPositions();h._trigger("activate",d,c)}})},stop:function(d,f){var e=a(this).data("draggable"),c=a.extend({},f,{item:e.element});a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;if(e.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"})}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,c)}})},drag:function(d,g){var f=a(this).data("draggable"),c=this;var e=function(j){var p=this.offset.click.top,n=this.offset.click.left;var h=this.positionAbs.top,l=this.positionAbs.left;var k=j.height,m=j.width;var q=j.top,i=j.left;return a.ui.isOver(h+p,l+n,q,i,k,m)};a.each(f.sortables,function(h){this.instance.positionAbs=f.positionAbs;this.instance.helperProportions=f.helperProportions;this.instance.offset.click=f.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(c).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0]};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",d);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f}if(this.instance.currentItem){this.instance._mouseDrag(d)}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove()}f._trigger("fromSortable",d);f.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(d,e){var c=a("body"),f=a(this).data("draggable").options;if(c.css("cursor")){f._cursor=c.css("cursor")}c.css("cursor",f.cursor)},stop:function(c,d){var e=a(this).data("draggable").options;if(e._cursor){a("body").css("cursor",e._cursor)}}});a.ui.plugin.add("draggable","opacity",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;if(c.css("opacity")){f._opacity=c.css("opacity")}c.css("opacity",f.opacity)},stop:function(c,d){var e=a(this).data("draggable").options;if(e._opacity){a(d.helper).css("opacity",e._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(d,e){var c=a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){c.overflowOffset=c.scrollParent.offset()}},drag:function(e,f){var d=a(this).data("draggable"),g=d.options,c=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((d.overflowOffset.top+d.scrollParent[0].offsetHeight)-e.pageY<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop+g.scrollSpeed}else{if(e.pageY-d.overflowOffset.top<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop-g.scrollSpeed}}}if(!g.axis||g.axis!="y"){if((d.overflowOffset.left+d.scrollParent[0].offsetWidth)-e.pageX<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(e.pageX-d.overflowOffset.left<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft-g.scrollSpeed}}}}else{if(!g.axis||g.axis!="x"){if(e.pageY-a(document).scrollTop()<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}}if(!g.axis||g.axis!="y"){if(e.pageX-a(document).scrollLeft()<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}}if(c!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(d,e)}}});a.ui.plugin.add("draggable","snap",{start:function(d,e){var c=a(this).data("draggable"),f=c.options;c.snapElements=[];a(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var h=a(this);var g=h.offset();if(this!=c.element[0]){c.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left})}})},drag:function(u,p){var g=a(this).data("draggable"),q=g.options;var y=q.snapTolerance;var x=p.offset.left,w=x+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var v=g.snapElements.length-1;v>=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y<x&&x<n+y&&m-y<f&&f<A+y)||(s-y<x&&x<n+y&&m-y<e&&e<A+y)||(s-y<w&&w<n+y&&m-y<f&&f<A+y)||(s-y<w&&w<n+y&&m-y<e&&e<A+y))){if(g.snapElements[v].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=false;continue}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=y;var z=Math.abs(A-f)<=y;var j=Math.abs(s-w)<=y;var k=Math.abs(n-x)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s-g.helperProportions.width}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n}).left-g.margins.left}}var h=(c||z||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=y;var z=Math.abs(A-e)<=y;var j=Math.abs(s-x)<=y;var k=Math.abs(n-w)<=y;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top}if(z){p.position.top=g._convertPositionTo("relative",{top:A-g.helperProportions.height,left:0}).top-g.margins.top}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:s}).left-g.margins.left}if(k){p.position.left=g._convertPositionTo("relative",{top:0,left:n-g.helperProportions.width}).left-g.margins.left}}if(!g.snapElements[v].snapping&&(c||z||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,u,a.extend(g._uiHash(),{snapItem:g.snapElements[v].item})))}g.snapElements[v].snapping=(c||z||j||k||h)}}});a.ui.plugin.add("draggable","stack",{start:function(d,e){var g=a(this).data("draggable").options;var f=a.makeArray(a(g.stack)).sort(function(i,h){return(parseInt(a(i).css("zIndex"),10)||0)-(parseInt(a(h).css("zIndex"),10)||0)});if(!f.length){return}var c=parseInt(f[0].style.zIndex)||0;a(f).each(function(h){this.style.zIndex=c+h});this[0].style.zIndex=c+f.length}});a.ui.plugin.add("draggable","zIndex",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;if(c.css("zIndex")){f._zIndex=c.css("zIndex")}c.css("zIndex",f.zIndex)},stop:function(c,d){var e=a(this).data("draggable").options;if(e._zIndex){a(d.helper).css("zIndex",e._zIndex)}}})})(jQuery);(function(a,b){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var d=this.options,c=d.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(e){return e.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);(d.addClasses&&this.element.addClass("ui-droppable"))},destroy:function(){var c=a.ui.ddmanager.droppables[this.options.scope];for(var d=0;d<c.length;d++){if(c[d]==this){c.splice(d,1)}}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(c,d){if(c=="accept"){this.accept=a.isFunction(d)?d:function(e){return e.is(d)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.addClass(this.options.activeClass)}(c&&this._trigger("activate",d,this.ui(c)))},_deactivate:function(d){var c=a.ui.ddmanager.current;if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}(c&&this._trigger("deactivate",d,this.ui(c)))},_over:function(d){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.addClass(this.options.hoverClass)}this._trigger("over",d,this.ui(c))}},_out:function(d){var c=a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("out",d,this.ui(c))}},_drop:function(d,e){var c=e||a.ui.ddmanager.current;if(!c||(c.currentItem||c.element)[0]==this.element[0]){return false}var f=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var g=a.data(this,"droppable");if(g.options.greedy&&!g.options.disabled&&g.options.scope==c.options.scope&&g.accept.call(g.element[0],(c.currentItem||c.element))&&a.ui.intersect(c,a.extend(g,{offset:g.element.offset()}),g.options.tolerance)){f=true;return false}});if(f){return false}if(this.accept.call(this.element[0],(c.currentItem||c.element))){if(this.options.activeClass){this.element.removeClass(this.options.activeClass)}if(this.options.hoverClass){this.element.removeClass(this.options.hoverClass)}this._trigger("drop",d,this.ui(c));return this.element}return false},ui:function(d){return{draggable:(d.currentItem||d.element),helper:d.helper,position:d.position,offset:d.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.16"});a.ui.intersect=function(q,j,o){if(!j.offset){return false}var e=(q.positionAbs||q.position.absolute).left,d=e+q.helperProportions.width,n=(q.positionAbs||q.position.absolute).top,m=n+q.helperProportions.height;var g=j.offset.left,c=g+j.proportions.width,p=j.offset.top,k=p+j.proportions.height;switch(o){case"fit":return(g<=e&&d<=c&&p<=n&&m<=k);break;case"intersect":return(g<e+(q.helperProportions.width/2)&&d-(q.helperProportions.width/2)<c&&p<n+(q.helperProportions.height/2)&&m-(q.helperProportions.height/2)<k);break;case"pointer":var h=((q.positionAbs||q.position.absolute).left+(q.clickOffset||q.offset.click).left),i=((q.positionAbs||q.position.absolute).top+(q.clickOffset||q.offset.click).top),f=a.ui.isOver(i,h,p,g,j.proportions.height,j.proportions.width);return f;break;case"touch":return((n>=p&&n<=k)||(m>=p&&m<=k)||(n<p&&m>k))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(e<g&&d>c));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(f,h){var c=a.ui.ddmanager.droppables[f.options.scope]||[];var g=h?h.type:null;var k=(f.currentItem||f.element).find(":data(droppable)").andSelf();droppablesLoop:for(var e=0;e<c.length;e++){if(c[e].options.disabled||(f&&!c[e].accept.call(c[e].element[0],(f.currentItem||f.element)))){continue}for(var d=0;d<k.length;d++){if(k[d]==c[e].element[0]){c[e].proportions.height=0;continue droppablesLoop}}c[e].visible=c[e].element.css("display")!="none";if(!c[e].visible){continue}if(g=="mousedown"){c[e]._activate.call(c[e],h)}c[e].offset=c[e].element.offset();c[e].proportions={width:c[e].element[0].offsetWidth,height:c[e].element[0].offsetHeight}}},drop:function(c,d){var e=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!this.options){return}if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance)){e=e||this._drop.call(this,d)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(c.currentItem||c.element))){this.isout=1;this.isover=0;this._deactivate.call(this,d)}});return e},dragStart:function(c,d){c.element.parents(":not(body,html)").bind("scroll.droppable",function(){if(!c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}})},drag:function(c,d){if(c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return}var f=a.ui.intersect(c,this,this.options.tolerance);var h=!f&&this.isover==1?"isout":(f&&this.isover==0?"isover":null);if(!h){return}var g;if(this.options.greedy){var e=this.element.parents(":data(droppable):eq(0)");if(e.length){g=a.data(e[0],"droppable");g.greedyChild=(h=="isover"?1:0)}}if(g&&h=="isover"){g.isover=0;g.isout=1;g._out.call(g,d)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,d);if(g&&h=="isout"){g.isout=0;g.isover=1;g._over.call(g,d)}})},dragStop:function(c,d){c.element.parents(":not(body,html)").unbind("scroll.droppable");if(!c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d)}}}})(jQuery);(function(e,b){function d(){}function t(C){c=[C]}function m(C){f.insertBefore(C,f.firstChild)}function l(E,C,D){return E&&E.apply(C.context||C,D)}function k(C){return/\?/.test(C)?"&":"?"}var n="async",s="charset",q="",A="error",r="_jqjsp",w="on",o=w+"click",p=w+A,a=w+"load",i=w+"readystatechange",z="removeChild",g="<script/>",v="success",y="timeout",x=e.browser,f=e("head")[0]||document.documentElement,u={},j=0,c,h={callback:r,url:location.href};function B(C){C=e.extend({},h,C);var R=C.complete,E=C.dataFilter,N=C.callbackParameter,S=C.callback,H=C.cache,K=C.pageCache,J=C.charset,D=C.url,M=C.data,Q=C.timeout,P,L=0,I=d;C.abort=function(){!L++&&I()};if(l(C.beforeSend,C,[C])===false||L){return C}D=D||q;M=M?((typeof M)=="string"?M:e.param(M,C.traditional)):q;D+=M?(k(D)+M):q;N&&(D+=k(D)+encodeURIComponent(N)+"=?");!H&&!K&&(D+=k(D)+"_"+(new Date()).getTime()+"=");D=D.replace(/=\?(&|$)/,"="+S+"$1");function O(T){!L++&&b(function(){I();K&&(u[D]={s:[T]});E&&(T=E.apply(C,[T]));l(C.success,C,[T,v]);l(R,C,[C,v])},0)}function F(T){!L++&&b(function(){I();K&&T!=y&&(u[D]=T);l(C.error,C,[C,T]);l(R,C,[C,T])},0)}K&&(P=u[D])?(P.s?O(P.s[0]):F(P)):b(function(U,T,V){if(!L){V=Q>0&&b(function(){F(y)},Q);I=function(){V&&clearTimeout(V);U[i]=U[o]=U[a]=U[p]=null;f[z](U);T&&f[z](T)};window[S]=t;U=e(g)[0];U.id=r+j++;if(J){U[s]=J}function W(X){(U[o]||d)();X=c;c=undefined;X?O(X[0]):F(A)}if(x.msie){U.event=o;U.htmlFor=U.id;U[i]=function(){/loaded|complete/.test(U.readyState)&&W()}}else{U[p]=U[a]=W;x.opera?((T=e(g)[0]).text="jQuery('#"+U.id+"')[0]."+p+"()"):U[n]=n}U.src=D;m(U);T&&m(T)}},0);return C}B.setup=function(C){e.extend(h,C)};e.jsonp=B})(jQuery,setTimeout);(function(d){var a={b:function(e){return parseInt(e,10).toString(2)},c:function(e){return String.fromCharCode(parseInt(e,10))},d:function(e){return parseInt(e,10)},u:function(e){return Math.abs(e)},f:function(f,e){e=parseInt(e,10);f=parseFloat(f);if(isNaN(e&&f)){return NaN}return e&&f.toFixed(e)||f},o:function(e){return parseInt(e,10).toString(8)},s:function(e){return e},x:function(e){return(""+parseInt(e,10).toString(16)).toLowerCase()},X:function(e){return(""+parseInt(e,10).toString(16)).toUpperCase()}};var c=/%(?:(\d+)?(?:\.(\d+))?|\(([^)]+)\))([%bcdufosxX])/g;var b=function(f){if(f.length==1&&typeof f[0]=="object"){f=f[0];return function(i,h,k,j,g,m,l){return a[g](f[j])}}else{var e=0;return function(i,h,k,j,g,m,l){if(g=="%"){return"%"}return a[g](f[e++],k)}}};d.extend({sprintf:function(f){var e=Array.apply(null,arguments).slice(1);return f.replace(c,b(e))},vsprintf:function(f,e){return f.replace(c,b(e))}})})(jQuery);var Lightbox=new (function(){var c={};var b;var a=[];this.setup=function(){$(document.body).append(JST["templates/lightbox"]({}));this.facebox=$("#facebox");$(document).keypress(_.bind(function(d){if(d.altKey||d.ctrlKey||d.metaKey){return true}if(d.keyCode===27){this.close();return false}return true},this));$("#facebox .close").first().click(_.bind(function(){this.close();return false},this))};this.register=function(g,d,f,e){c[g]=[d,f,e]};this.show=function(d,i,k){var f,h;if(c[d]){f=d;Logger.debug(Lightbox,"Activating registered lightbox: "+f);k=i;d=c[f][0];i=c[f][1];h=c[f][2]}var g={originalName:f,category:h};g.opts=$.extend({klass:"",ref:$(window),hideFooter:false,afterHook:function(){},hideOverlay:false},i||{});if(_.isFunction(d)){g.content=d(k?k:{});g.loading=false}else{if(d.match(/^#/)){var j=$(d);g.content=j.clone().attr("id","").attr("class","");g.loading=false}else{if(d.match(/^(http|\/)/)){g.content="<img src='/images/lightbox/loading.gif />";g.loading=true;$.ajax({url:d,type:k.method||"GET",data:{ie:(new Date()).getTime()},success:_.bind(function(e){g.content=e;g.loading=false;if(b===g){this.reveal()}},this)})}else{g.content=d;g.loading=false}}}if(b){a.push(b)}b=g;if(h){a=_.reject(a,function(e){return e.category===h})}this.reveal()};this.reveal=function(){var d=$("#faceboxContent");d.html("");d.attr("class","");if(b.opts.klass){d.addClass(b.opts.klass)}d.append(b.content);d.children().show();_.invoke([$("overlay")],b.opts.hideOverlay?"hide":"show");if(b.opts.hideFooter){$("#faceboxFooter").hide()}else{$("#faceboxFooter").show()}this.facebox.show();var e=b.opts.ref;var g=(e.offset())?[e.offset().left,e.offset().top]:[e.scrollLeft(),e.scrollTop()];var f=g[1]+(e.height()-this.facebox.height())/2;f=f<0?0:f;this.facebox.css({top:f+"px",left:g[0]+(e.width()-this.facebox.width())/2+"px"});b.opts.afterHook()};this.close=function(){b=a.pop();if(b){this.reveal()}else{$("#overlay").hide();this.facebox.hide()}};this.deactivate=function(d){Logger.debug(Lightbox,"Deactivating lightbox: "+d);a=_.reject(a,function(e){return e.originalName===d});if(b&&b.originalName===d){this.close()}};this.alert=function(d){this.show(d,{})}})();$(document).ready(_.bind(Lightbox.setup,Lightbox));var Logger=new (function(){var a=[];var b=[];this.reportUserVar=function(c,d){$.getScript("http://rorschach.jawaker.com/uservar/"+c+"?value="+d)};this.now=function(){return new Date().toGMTString()};this.log=function(d,c){c="("+d+" @ "+this.now()+") "+c;if(typeof console!=="undefined"&&console.log){console.log(c)}};this.info=_.bind(this.log,this,"info");this.warn=function(c){this.log("warn",c)};this.error=function(c){this.log("error",c);this.report()};this.debug=function(c,d){if(c.debug){this.log("debug",d)}};this.assert=function(c,d){if(!c){this.error(d)}};this.report=function(){}})();var Menus=new (function(){var b={};var a=function(c,d){this.arrow=c;this.menu=d;this.opened=false;this.destroy=function(){this.arrow.unbind();this.menu.find("a").unbind()};this.arrow.click(_.bind(Menus.click,this));this.arrow.attr("src","/images/redarrow.png");this.menu.find("a").click(_.bind(function(){this.close()},this));this.close=function(){this.menu.hide();this.opened=false;this.arrow.attr("src","/images/redarrow.png")}};this.loadAll=function(c){$(c).each(function(){var d=$(this);b[d]=new a(d,d.next())})};this.unloadAll=function(){for(var c in b){b[c].destroy()}b={}};this.click=function(){if(this.opened){this.close()}else{this.opened=true;this.menu.show();this.menu.css({position:"absolute"});this.menu.css(Menus.locate(this.arrow,this.menu));this.arrow.attr("src","/images/redarrowup.png")}};this.locate=function(d,c){var e=d.offset();if(G.lang()==="en"){return{left:e.left+"px",top:(e.top+d.height())+"px"}}else{return{left:(e.left+d.width()-c.width())+"px",top:(e.top+d.height())+"px"}}};this.get=function(c){return b[c]}})();
/*!	SWFObject v2.2 <http://code.google.com/p/swfobject/>
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php>
*/
var swfobject=function(){var D="undefined",r="object",T="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",S="SWFObjectExprInst",x="onreadystatechange",P=window,j=document,t=navigator,U=false,V=[h],o=[],O=[],J=[],l,R,E,B,K=false,a=false,n,H,m=true,N=function(){var ab=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ai=t.userAgent.toLowerCase(),Z=t.platform.toLowerCase(),af=Z?/win/.test(Z):/win/.test(ai),ad=Z?/mac/.test(Z):/mac/.test(ai),ag=/webkit/.test(ai)?parseFloat(ai.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,Y=!+"\v1",ah=[0,0,0],ac=null;if(typeof t.plugins!=D&&typeof t.plugins[T]==r){ac=t.plugins[T].description;if(ac&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){U=true;Y=false;ac=ac.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ah[0]=parseInt(ac.replace(/^(.*)\..*$/,"$1"),10);ah[1]=parseInt(ac.replace(/^.*\.(.*)\s.*$/,"$1"),10);ah[2]=/[a-zA-Z]/.test(ac)?parseInt(ac.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof P.ActiveXObject!=D){try{var ae=new ActiveXObject(X);if(ae){ac=ae.GetVariable("$version");if(ac){Y=true;ac=ac.split(" ")[1].split(",");ah=[parseInt(ac[0],10),parseInt(ac[1],10),parseInt(ac[2],10)]}}}catch(aa){}}}return{w3:ab,pv:ah,wk:ag,ie:Y,win:af,mac:ad}}(),k=function(){if(!N.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!K){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(N.ie&&N.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(P==top){(function(){if(K){return}try{j.documentElement.doScroll("left")}catch(Y){setTimeout(arguments.callee,0);return}f()})()}}if(N.wk){(function(){if(K){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(K){return}try{var aa=j.getElementsByTagName("body")[0].appendChild(C("span"));aa.parentNode.removeChild(aa)}catch(ab){return}K=true;var Y=V.length;for(var Z=0;Z<Y;Z++){V[Z]()}}function L(Y){if(K){Y()}else{V[V.length]=Y}}function s(Z){if(typeof P.addEventListener!=D){P.addEventListener("load",Z,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Z,false)}else{if(typeof P.attachEvent!=D){i(P,"onload",Z)}else{if(typeof P.onload=="function"){var Y=P.onload;P.onload=function(){Y();Z()}}else{P.onload=Z}}}}}function h(){if(U){W()}else{I()}}function W(){var Y=j.getElementsByTagName("body")[0];var ab=C(r);ab.setAttribute("type",q);var aa=Y.appendChild(ab);if(aa){var Z=0;(function(){if(typeof aa.GetVariable!=D){var ac=aa.GetVariable("$version");if(ac){ac=ac.split(" ")[1].split(",");N.pv=[parseInt(ac[0],10),parseInt(ac[1],10),parseInt(ac[2],10)]}}else{if(Z<10){Z++;setTimeout(arguments.callee,10);return}}Y.removeChild(ab);aa=null;I()})()}else{I()}}function I(){var ah=o.length;if(ah>0){for(var ag=0;ag<ah;ag++){var Z=o[ag].id;var ac=o[ag].callbackFn;var ab={success:false,id:Z};if(N.pv[0]>0){var af=c(Z);if(af){if(F(o[ag].swfVersion)&&!(N.wk&&N.wk<312)){w(Z,true);if(ac){ab.success=true;ab.ref=z(Z);ac(ab)}}else{if(o[ag].expressInstall&&A()){var aj={};aj.data=o[ag].expressInstall;aj.width=af.getAttribute("width")||"0";aj.height=af.getAttribute("height")||"0";if(af.getAttribute("class")){aj.styleclass=af.getAttribute("class")}if(af.getAttribute("align")){aj.align=af.getAttribute("align")}var ai={};var Y=af.getElementsByTagName("param");var ad=Y.length;for(var ae=0;ae<ad;ae++){if(Y[ae].getAttribute("name").toLowerCase()!="movie"){ai[Y[ae].getAttribute("name")]=Y[ae].getAttribute("value")}}Q(aj,ai,Z,ac)}else{p(af);if(ac){ac(ab)}}}}}else{w(Z,true);if(ac){var aa=z(Z);if(aa&&typeof aa.SetVariable!=D){ab.success=true;ab.ref=aa}ac(ab)}}}}}function z(ab){var Y=null;var Z=c(ab);if(Z&&Z.nodeName=="OBJECT"){if(typeof Z.SetVariable!=D){Y=Z}else{var aa=Z.getElementsByTagName(r)[0];if(aa){Y=aa}}}return Y}function A(){return !a&&F("6.0.65")&&(N.win||N.mac)&&!(N.wk&&N.wk<312)}function Q(ab,ac,Y,aa){a=true;E=aa||null;B={success:false,id:Y};var af=c(Y);if(af){if(af.nodeName=="OBJECT"){l=g(af);R=null}else{l=af;R=Y}ab.id=S;if(typeof ab.width==D||(!/%$/.test(ab.width)&&parseInt(ab.width,10)<310)){ab.width="310"}if(typeof ab.height==D||(!/%$/.test(ab.height)&&parseInt(ab.height,10)<137)){ab.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ae=N.ie&&N.win?"ActiveX":"PlugIn",ad="MMredirectURL="+P.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ae+"&MMdoctitle="+j.title;if(typeof ac.flashvars!=D){ac.flashvars+="&"+ad}else{ac.flashvars=ad}if(N.ie&&N.win&&af.readyState!=4){var Z=C("div");Y+="SWFObjectNew";Z.setAttribute("id",Y);af.parentNode.insertBefore(Z,af);af.style.display="none";(function(){if(af.readyState==4){af.parentNode.removeChild(af)}else{setTimeout(arguments.callee,10)}})()}u(ab,ac,Y)}}function p(Z){if(N.ie&&N.win&&Z.readyState!=4){var Y=C("div");Z.parentNode.insertBefore(Y,Z);Y.parentNode.replaceChild(g(Z),Y);Z.style.display="none";(function(){if(Z.readyState==4){Z.parentNode.removeChild(Z)}else{setTimeout(arguments.callee,10)}})()}else{Z.parentNode.replaceChild(g(Z),Z)}}function g(ad){var ab=C("div");if(N.win&&N.ie){ab.innerHTML=ad.innerHTML}else{var Z=ad.getElementsByTagName(r)[0];if(Z){var ae=Z.childNodes;if(ae){var Y=ae.length;for(var aa=0;aa<Y;aa++){if(!(ae[aa].nodeType==1&&ae[aa].nodeName=="PARAM")&&!(ae[aa].nodeType==8)){ab.appendChild(ae[aa].cloneNode(true))}}}}}return ab}function u(aj,ah,Z){var Y,ab=c(Z);if(N.wk&&N.wk<312){return Y}if(ab){if(typeof aj.id==D){aj.id=Z}if(N.ie&&N.win){var ai="";for(var af in aj){if(aj[af]!=Object.prototype[af]){if(af.toLowerCase()=="data"){ah.movie=aj[af]}else{if(af.toLowerCase()=="styleclass"){ai+=' class="'+aj[af]+'"'}else{if(af.toLowerCase()!="classid"){ai+=" "+af+'="'+aj[af]+'"'}}}}}var ag="";for(var ae in ah){if(ah[ae]!=Object.prototype[ae]){ag+='<param name="'+ae+'" value="'+ah[ae]+'" />'}}ab.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ai+">"+ag+"</object>";O[O.length]=aj.id;Y=c(aj.id)}else{var aa=C(r);aa.setAttribute("type",q);for(var ad in aj){if(aj[ad]!=Object.prototype[ad]){if(ad.toLowerCase()=="styleclass"){aa.setAttribute("class",aj[ad])}else{if(ad.toLowerCase()!="classid"){aa.setAttribute(ad,aj[ad])}}}}for(var ac in ah){if(ah[ac]!=Object.prototype[ac]&&ac.toLowerCase()!="movie"){e(aa,ac,ah[ac])}}ab.parentNode.replaceChild(aa,ab);Y=aa}}return Y}function e(aa,Y,Z){var ab=C("param");ab.setAttribute("name",Y);ab.setAttribute("value",Z);aa.appendChild(ab)}function y(Z){var Y=c(Z);if(Y&&Y.nodeName=="OBJECT"){if(N.ie&&N.win){Y.style.display="none";(function(){if(Y.readyState==4){b(Z)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.removeChild(Y)}}}function b(aa){var Z=c(aa);if(Z){for(var Y in Z){if(typeof Z[Y]=="function"){Z[Y]=null}}Z.parentNode.removeChild(Z)}}function c(aa){var Y=null;try{Y=j.getElementById(aa)}catch(Z){}return Y}function C(Y){return j.createElement(Y)}function i(aa,Y,Z){aa.attachEvent(Y,Z);J[J.length]=[aa,Y,Z]}function F(aa){var Z=N.pv,Y=aa.split(".");Y[0]=parseInt(Y[0],10);Y[1]=parseInt(Y[1],10)||0;Y[2]=parseInt(Y[2],10)||0;return(Z[0]>Y[0]||(Z[0]==Y[0]&&Z[1]>Y[1])||(Z[0]==Y[0]&&Z[1]==Y[1]&&Z[2]>=Y[2]))?true:false}function v(ad,Z,ae,ac){if(N.ie&&N.mac){return}var ab=j.getElementsByTagName("head")[0];if(!ab){return}var Y=(ae&&typeof ae=="string")?ae:"screen";if(ac){n=null;H=null}if(!n||H!=Y){var aa=C("style");aa.setAttribute("type","text/css");aa.setAttribute("media",Y);n=ab.appendChild(aa);if(N.ie&&N.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}H=Y}if(N.ie&&N.win){if(n&&typeof n.addRule==r){n.addRule(ad,Z)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ad+" {"+Z+"}"))}}}function w(aa,Y){if(!m){return}var Z=Y?"visible":"hidden";if(K&&c(aa)){c(aa).style.visibility=Z}else{v("#"+aa,"visibility:"+Z)}}function M(Z){var aa=/[\\\"<>\.;]/;var Y=aa.exec(Z)!=null;return Y&&typeof encodeURIComponent!=D?encodeURIComponent(Z):Z}var d=function(){if(N.ie&&N.win){window.attachEvent("onunload",function(){var ad=J.length;for(var ac=0;ac<ad;ac++){J[ac][0].detachEvent(J[ac][1],J[ac][2])}var aa=O.length;for(var ab=0;ab<aa;ab++){y(O[ab])}for(var Z in N){N[Z]=null}N=null;for(var Y in swfobject){swfobject[Y]=null}swfobject=null})}}();return{registerObject:function(ac,Y,ab,aa){if(N.w3&&ac&&Y){var Z={};Z.id=ac;Z.swfVersion=Y;Z.expressInstall=ab;Z.callbackFn=aa;o[o.length]=Z;w(ac,false)}else{if(aa){aa({success:false,id:ac})}}},getObjectById:function(Y){if(N.w3){return z(Y)}},embedSWF:function(ac,ai,af,ah,Z,ab,aa,ae,ag,ad){var Y={success:false,id:ai};if(N.w3&&!(N.wk&&N.wk<312)&&ac&&ai&&af&&ah&&Z){w(ai,false);L(function(){af+="";ah+="";var ak={};if(ag&&typeof ag===r){for(var am in ag){ak[am]=ag[am]}}ak.data=ac;ak.width=af;ak.height=ah;var an={};if(ae&&typeof ae===r){for(var al in ae){an[al]=ae[al]}}if(aa&&typeof aa===r){for(var aj in aa){if(typeof an.flashvars!=D){an.flashvars+="&"+aj+"="+aa[aj]}else{an.flashvars=aj+"="+aa[aj]}}}if(F(Z)){var ao=u(ak,an,ai);if(ak.id==ai){w(ai,true)}Y.success=true;Y.ref=ao}else{if(ab&&A()){ak.data=ab;Q(ak,an,ai,ad);return}else{w(ai,true)}}if(ad){ad(Y)}})}else{if(ad){ad(Y)}}},switchOffAutoHideShow:function(){m=false},ua:N,getFlashPlayerVersion:function(){return{major:N.pv[0],minor:N.pv[1],release:N.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(aa,Z,Y){if(N.w3){return u(aa,Z,Y)}else{return undefined}},showExpressInstall:function(aa,ab,Y,Z){if(N.w3&&A()){Q(aa,ab,Y,Z)}},removeSWF:function(Y){if(N.w3){y(Y)}},createCSS:function(ab,aa,Z,Y){if(N.w3){v(ab,aa,Z,Y)}},addDomLoadEvent:L,addLoadEvent:s,getQueryParamValue:function(ab){var aa=j.location.search||j.location.hash;if(aa){if(/\?/.test(aa)){aa=aa.split("?")[1]}if(ab==null){return M(aa)}var Z=aa.split("&");for(var Y=0;Y<Z.length;Y++){if(Z[Y].substring(0,Z[Y].indexOf("="))==ab){return M(Z[Y].substring((Z[Y].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var Y=c(S);if(Y&&l){Y.parentNode.replaceChild(l,Y);if(R){w(R,true);if(N.ie&&N.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();var Tabs=function(a){this.activeClass=a;this.hashLink=window.location.hash;this.tabs={};this.addTab=function(d,c,b,e){this.tabs[d]=[c,e];b.click(_.bind(function(){this.activate(d,true);return false},this));if(typeof(this.activeTab)==="undefined"||this.hashLink==="#"+d){this.activate(d,false)}};this.activate=function(e,b){if(!this.tabs[e]){return}this.activeTab=e;if(b){window.location.hash=e}for(var d in this.tabs){var c=this.tabs[d];if(d===e){c[0].addClass(this.activeClass);c[1].show()}else{c[0].removeClass(this.activeClass);c[1].hide()}}}};var Tooltips=new (function(){var a={};this.ajaxRequest=null;this.setup=function(){$("body").append("<span id='tipcontainer' style='display: none;'><div id='tooltipMiddle'></div></span>");$("#tipcontainer").mouseleave(function(){$("#tipcontainer").hide();return false})};this.delegateAll=function(e,c,b,d){$(e).on(b?"click":"mouseenter",c,function(){if(Tooltips.fillContent($(this))){$("#tipcontainer").show();$("#tipcontainer").css(Tooltips.locate($(this)));if(d){d()}}return false})};this.loadAll=function(c,b,d){this.delegateAll(c,null,b,d)};this.locate=function(c){var b={left:$(c).offset().left,top:$(c).offset().top};if(b.left+$("#tipcontainer").width()>$(window).width()+$(window).scrollLeft()){b.left=$(c).offset().left+$(c).width()-$("#tipcontainer").width()}if(b.top+$("#tipcontainer").height()>$(window).height()+$(window).scrollTop()){b.top=$(c).offset().top+$(c).height()-$("#tipcontainer").height()}return{left:b.left+"px",top:b.top+"px"}};this.fillContent=function(d){var b=d.attr("rel");var c=$("#tooltipMiddle");c.html("");if(!b){return false}if(b==="(next)"){c.html(d.next().html())}else{if(b==="(alt)"){c.html(d.attr("alt"))}else{if(b.charAt(0)==="#"){c.html($(b).html())}else{if(b.charAt(0)==="/"){if(a[b]&&a[b][0]+60000>(new Date()).getTime()){c.html(a[b][1]);$("#tipcontainer").css(Tooltips.locate(d))}else{c.html("<span style='line-height: 20px;'>"+G._("Loading ...")+"</span>");if(this.ajaxRequest&&this.ajaxRequest.transport&&this.ajaxRequest.transport.readyState===1){this.ajaxRequest.transport.abort();this.ajaxRequest.transport.onreadystatechange=$.noop}this.ajaxRequest=$.ajax({url:b,data:{ie:(new Date()).getTime()},success:function(e){c.html(e);a[b]=[(new Date()).getTime(),e];$("#tipcontainer").css(Tooltips.locate(d))}})}}else{c.html(G._(b))}}}}return true}})();var User=new (function(){this.info=null;this.update=function(c){this.info=c};var b={game_admin:1,profile:2,creation:4,chat:8,theming:16};var a={kick:1,chat_ban:2,chat:4,hidden:8,handle_complaints:16,chat_unban:32,delete_user:64};this.hasFeature=function(c){if(typeof(this.info.featurebits)==="undefined"){return false}return(this.info.featurebits&b[c])!==0};this.startGuestID=500*1000*1000;this.userTypeHasAdminFeature=function(d,c){if(typeof(d)==="undefined"){return false}return(d&a[c])!==0};this.hasAdminFeature=function(c){if(typeof(Game)!=="undefined"&&_.include(infoRead("game_options.game_admins"),Game.player_id)&&Game.isCompetitionGame()&&_.include(["kick"],c)){return true}return this.userTypeHasAdminFeature(this.info.user_type,c)};this.isAdminForThisGame=function(){return typeof(Game)!=="undefined"&&(_.include(infoRead("game_options.game_admins"),Game.player_id)||(this.hasAdminFeature("chat")&&!Game.observer))};this.isNewUser=function(){return User.info.login==="لاعب_جديد"}})();(function(){window.JST=window.JST||{};var a=function(c){var b=new Function("obj","var __p=[],print=function(){__p.push.apply(__p,arguments);};with(obj||{}){__p.push('"+c.replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/<%=([\s\S]+?)%>/g,function(d,e){return"',"+e.replace(/\\'/g,"'")+",'"}).replace(/<%([\s\S]+?)%>/g,function(d,e){return"');"+e.replace(/\\'/g,"'").replace(/[\r\n\t]/g," ")+"__p.push('"}).replace(/\r/g,"\\r").replace(/\n/g,"\\n").replace(/\t/g,"\\t")+"');}return __p.join('');");return b};window.JST["administration/complaint"]=a("<li class='bottomborder' style='width: 100%;'>\n  <table><tr>\n    <td class='complaintContent'>\n      <label class='bold'><%= G._('Complainer') %>:</label> <%= complaint['complainer']['login'] %>\n      <br>\n      <label class='bold'><%= G._('Complained about') %>:</label> <%= complaint['complainee']['login'] %>\n      <br>\n      <label class='bold'><%= G._('Complaint Type') %>:</label> <%= G._(types[complaint['complaint_type']]) %>\n      <br>\n      <label class='bold'><%= G._('Game type') %>:</label> <%= G._(complaint['game_module']) %> <%= complaint['game_type'] ? '(' + G._('Competition') + ')' : '' %>\n      <br>\n      <label class='bold'><%= G._('Complaint age') %>:</label> <%= parseInt(complaint['age'] / 60, 10) + ' ' + G._('minutes') %>\n      <br>\n      <% if (complaint['handlers'].length > 0) { %>\n        <label class='bold redcolor'><%= G._('Admins') %>:</label> <span class='redcolor'><%= complaint['handlers'].join(', ') %></span>\n      <% } %>\n      <% if (complaint['last_chat'] && complaint['last_chat'].length != 0) { %>\n        <div class='adminLastChatDiv'>\n          <label class='bold'><%= G._('Last chat') %>:</label>\n          <div class='adminChatContent'>\n            <%= complaint['last_chat'].join('<br />') %>\n          </div>\n        </div>\n      <% } %>\n    </td>\n    <td class='buynow floatright'>\n      <div class='yellowbutton sprite'>\n        <a class='gotoComplaintGame' href='#' id='<%= complaint['game_id'] %>'><%= G._('Handle') %></a>\n      </div>\n    </td>\n  </tr>\n</li>\n");window.JST["competitions/auto_start"]=a("<%= G._('Waiting for other players to join.') %>\n");window.JST["competitions/complaint"]=a("<li class='bottomborder' style='width: 100%;'>\n  <table><tr>\n    <td class='complaintContent'>\n      <label class='bold'><%= G._('Complainer') %>:</label> <%= complaint['complainer']['login'] %>\n      <br>\n      <label class='bold'><%= G._('Complained about') %>:</label> <%= complaint['complainee']['login'] %>\n      <br>\n      <label class='bold'><%= G._('Complaint Type') %>:</label> <%= G._(types[complaint['complaint_type']]) %>\n      <br>\n      <label class='bold'><%= G._('Game type') %>:</label> <%= G._(complaint['game_module']) %> <%= complaint['game_type'] ? '(' + G._('Competition') + ')' : '' %>\n      <br>\n      <label class='bold'><%= G._('Complaint age') %>:</label> <%= parseInt(complaint['age'] / 60, 10) + ' ' + G._('minutes') %>\n      <br>\n      <a class='gotoComplaintGame' href='#' id='<%= complaint['game_id'] %>'><%= G._('Handle') %></a>\n    </td>\n  </tr>\n</li>\n");window.JST["competitions/join_confirmation"]=a("<% if (User.info.id) { %>\n  <%= G._('Are you sure you want to join this competition? This will deduct') + ' ' + ENTRANCE_COST + ' ' + G._('tokens') %><br />\n  <br />\n  <a class='confirmJoin' data-resp='yes' href='#'><%= G._('Yes') %></a>\n  <a class='confirmJoin' data-resp='no' href='#'><%= G._('No') %></a>\n<% } else { %>\n  <%= G._('You cannot join a competition without being logged in.') %><br/>\n  <a id='signInLink' href='/<%= G.lang() %>/users/sign_in'><%= G._('Login') %></a>\n  <a id='registerLink' href='/<%= G.lang() %>/users/sign_up'><%= G._('Sign up') %></a>\n<% } %>\n");window.JST["competitions/no_login_no_play"]=a("<%= G._('You cannot play in competitions without being logged in.') %><br/>\n<a href='/<%= G.lang() %>/users/sign_in'><%= G._('Login') %></a>\n<a href='/<%= G.lang() %>/users/sign_up'><%= G._('Sign up') %></a>\n");window.JST["competitions/play_now"]=a("<ul class='competitionsJoinLB'>\n  <li><%= G._('Joining a qualification game will deduct 600 Tokens') %>\n      <img src='/images/token.png' /> <%= G._('from you when the game starts.') %>\n  </li>\n  <li><%= G._('If you finish the game till the end you will receive back 250 Tokens') %>\n      <img src='/images/token.png'>\n  </li>\n  <li><br />\n    <% if (User.info.game_tokens < 600) { %>\n        <%= G._('You do not have enough Tokens') %>\n        <img src='/images/token.png'>\n        <%= G._('to join this game.') %>\n        <a href='/<%= G.lang() %>/buy/tokens' class='yellowbutton sprite'><%= G._('Buy more Tokens') %></a>\n    <% } else { %>\n      <center id='competitionLoading'>\n        <a id='continueToCompetition' href='#' class='yellowbutton sprite'><%= G._('Continue?') %></a>\n      </center>\n    <% } %>\n  </li>\n</ul>\n");window.JST["games/baloot/add_projects"]=a("<center><table class='balootProjects'>\n  <% _.each(['Sira', 'Khamseen', 'Miya'].concat(Game.read('hs.current_bid') == 'hokum' ? [] : ['Arba3miya']), function(p, w) { %>\n    <% if (w != 0) { %>\n      <tr><td colspan='3'><hr /></td></tr>\n    <% } %>\n    <tr>\n      <td colspan='3'><%= G._(p) %></td>\n    </tr><tr>\n    <tr>\n      <% for (var i = 0; i < 3; i++) { %>\n        <td><input type='radio' name='project<%= p %>' id='project<%= p %><%= i %>' value='<%= i %>'<%= (i == 0) ? ' checked=\"checked\"': '' %> /></td>\n      <% } %>\n    </tr><tr>\n      <% for (var i = 0; i < 3; i++) { %>\n        <td><label for='project<%= p %><%= i %>'><%= i %></label></td>\n      <% } %>\n    </tr>\n  <% }); %>\n</table></center>\n<a id='addProjectsAdd' href='#'><%= G._('Add') %></a>\n<a id='addProjectsCancel' href='#'><%= G._('No Projects') %></a>\n");window.JST["games/baloot/bid"]=a("<%= G._('Buying round') %> <span><%= infoRead('hs.bidding_round') %></span>\n<hr />\n<% if(infoRead('hs.current_bid')) { %>\n  <%= G._('Current purchase') %>: <span><%= G._(capitalizeString(infoRead('hs.current_bid'))) %></span> <%= G._('by') %>\n  <span><%= Game.playerName('hs.bidder') %></span>\n  <hr />\n<% } %>\n<% if (infoRead('hs.waiting_confirm_hokum') && infoRead('hs.bidding_round') == 2) { %>\n<%= G._('Choose your hokum suit') %><br />\n  <% var suits = _.without([0, 1, 2, 3], Game.stacks['stack_table'].get('cards').first().suit()); %>\n  <center><table class='suits'>\n    <tr>\n      <% _.each(suits, function(i) { %>\n        <td>\n          <label for='hokumSuit<%= i %>'><img src='/images/transparent-20-20.gif' class='suit<%= i %>' /></label>\n        </td>\n      <% }); %>\n    </tr><tr>\n      <% _.each(suits, function(i) { %>\n        <td>\n          <input type='radio' name='hokumSuit' id='hokumSuit<%= i %>' value='<%= i %>'<%= (i == 0) ? ' checked=\"checked\"': '' %> />\n        </td>\n      <% }); %>\n    </tr>\n  </table></center>\n  <a id='balootBidConfirmHokum' href='#'><%= G._('Confirm Hokum') %></a>\n  <a id='balootBidYeglebSun' href='#'><%= G._('Switch to Sun') %></a>\n<% } else { %>\n  <%= G._('Your purchase') %><br/>\n  <select class='balootBidValue'>\n    <% var options = infoRead('hs.possible_bids.' + Game.player_index); %>\n    <% _.each(_.without(options, 'pass'), function(opt) { %>\n      <% var optText = capitalizeString(opt); %>\n      <% if (opt == 'sun' && _.include(['sun', 'ashkal'], infoRead('hs.current_bid'))) { optText = 'Sun Before'; } %>\n      <% if (opt == 'hokum' && infoRead('hs.current_bid') == 'hokum') { optText = 'Confirm Hokum'; } %>\n      <% if (opt == 'sun' && infoRead('hs.current_bid') == 'hokum') { optText = 'Switch to Sun'; } %>\n      <option value='<%= opt %>'><%= G._(optText) %></option>\n    <% }); %>\n  </select>\n  <br />\n  <a id='balootBidGo' href='#'><%= G._('Buy') %></a>\n  <% if (_.include(options, 'pass')) { %><a id='balootBidPass' href='#'><%= infoRead('hs.bidding_round') == 2 ? G._('Wala') : G._('Bas') %></a><% } %>\n<% } %>\n");window.JST["games/baloot/double"]=a("<%= G._('Would you like to double the hand?') %>\n<br />\n<% var names = { 1: 'Double', 2: 'Double 3', 3: 'Double 4', 4: 'Gahwa' }; %>\n<% var hasOpenAndClosed = infoRead('hs.current_bid') == 'hokum' && infoRead('hs.doubling_factor') % 2 == 1; %>\n<a id='balootDoubleGo' href='#'><%= G._(names[infoRead('hs.doubling_factor')]) %><%= hasOpenAndClosed ? ' ' + G._('Open') : '' %></a>\n<% if (hasOpenAndClosed) { %>\n  <a id='balootDoubleGoClosed' href='#'><%= G._(names[infoRead('hs.doubling_factor')]) %> <%= G._('Closed') %></a>\n<% } %>\n<a id='balootDoublePass' href='#'><%= G._('Bas') %></a>\n");window.JST["games/change_params"]=a("<!-- <%= G._('Name') %>: <br/> -->\n<input type='hidden' id='paramName' maxlength='10' value='<%= infoRead('name') %>' />\n<%= G._('Timer') %>: <select id='paramTimer'>\n  <% _.each([8,10,15,20,30,45,60], function(v) { %>\n    <option value='<%= v %>' <%= infoRead('game_options.play_timeout') == v ? \"selected='selected'\": '' %>><%= v %></option>\n  <% }); %>\n</select><br/>\n<% if (User.hasFeature('creation')) { %>\n  <%= G._('Private game?') %>: <input id='paramPrivate' type='checkbox' <%= infoRead('password') ? 'checked=\"yes\"' : '' %>/><br />\n  <%= G._('Password') %>: <input id='paramPassword' maxlength='10' type='text' value='<%= infoRead('password') %>' <%= infoRead('password') ? '' : \"disabled='disabled'\" %> /> <br />\n  <%= G._('Minimum rank') %>: <select id='paramRank'>\n    <% for (var v = 0; v < 13; v++) { %>\n      <option value='<%= v %>' <%= infoRead('by_rank') == v ? \"selected='selected'\" : '' %>>\n        <%= v == 0 ? G._('Any') : (v <= 8 ? (v + 2) : {9: 'J', 10: 'Q', 11: 'K', 12: 'A'}[v]) %>\n      </option>\n    <% } %>\n  </select><br />\n<% } else { %>\n  <input id='paramPassword' type='hidden' value='<%= infoRead('password') %>' />\n  <input id='paramRank' type='hidden' value='<%= infoRead('by_rank') %>' />\n<% } %>\n<a href='#' id='submitChangeParams'><%= G._('Submit') %></a>\n");window.JST["games/estimation/avoid"]=a("<%= G._('Would you like to redeal or avoid?') %>\n<br />\n<a id='avoidRedeal' href='#'><%= G._('Redeal') %></a>\n<a id='avoidAvoid' href='#'><%= G._('Avoid') %></a>\n");window.JST["games/estimation/blind_dash"]=a("<%= G._('Would you like to dash call or bid?') %>\n<br />\n<a id='blindDashBlindDash' href='#'><%= G._('Dash Call') %></a>\n<a id='blindDashBid' href='#'><%= G._('Bid') %></a>\n");window.JST["games/estimation/estimate"]=a("<%= G._('Your estimate') %>\n<br />\n<select id='estimateValue'>\n  <% var possibleEstimates = _.toArray(_.range(0, infoRead('hs.bid') + 1)); %>\n  <% if (_.inject(infoRead('hs.estimations'), function(s, v) { return s + (v == 0) ? 1 : 0 }, 0) == 2) { possiblEstimates = _.without(possibleEstimates, 0); } %>\n  <% if (infoRead('hs.risk_index') == Game.player_index) { possibleEstimates = _.without(possibleEstimates, 13 - _.inject(_.compact(infoRead('hs.estimations')), function(s, v) { return s + v; }, 0)); } %>\n  <% _.each(possibleEstimates, function(i, j) { %>\n    <option value='<%= i %>'<%= j == 0 ? ' selected=\"selected\"' : '' %>><%= i %></option>\n  <% }); %>\n</select>\n<br />\n<a id='estimateEstimate' href='#'><%= G._('Estimate') %></a>\n");window.JST["games/flag_player"]=a("<% var playerName = Game.playerName(CoPlayers.tempPlayerIndex); %>\n<%= G._('You are about to complain about') %>\n<span><%= playerName %></span>.\n<%= G._('Please provide the reason of your complaint') %>:\n<br /><br />\n<center>\n  <select class='complaintReason'>\n    <% _.each(complaintTypes, function(x, i) { %>\n      <% if (x === 'Using bad words') { return false; } %>\n      <option value='<%= i %>'><%= G._(x) %></option>\n    <% }); %>\n  </select>\n  <br /><input type='checkbox' id='complaintBlockUser' value='true' checked='checked'><label> <%= G._('Block Player') %></label>\n</center>\n<br /><br />\n<center>\n  <a class='flagComplain' href='#'><%= G._('Complain') %></a> <%= G._('or') %> <a class='flagCancel' href='#'><%= G._('Cancel') %></a>\n</center>\n");window.JST["games/game_dead"]=a("<%= G._('This game can no longer be continued, because no one can join and the computer does not continue.') %>\n<br /><br />\n<center><a href='/<%= G.lang() %>/games/<%= Game.gameName().underscore() %>'><%= G._('Back to games') %></a></center>\n");window.JST["games/game_item"]=a("<% var anyIsStar = CoPlayers.anyIsStar(players); %>\n<% var anyIsBlock = CoPlayers.anyIsBlock(players); %>\n<li class='gameItem bottomborder<%= (_.include(players, User.info.id)) ? ' greybg' : '' %>'>\n  <div class='gameplayerinfo'>\n    <div class='players players<%= num_players - _.compact(players).length %> sprite tooltipped' rel='Empty Seats'></div>\n    <p>\n      <a href='/<%= G.lang() %>/games/<%= id %>/hands' class='bold'><%= G._(game_name) %> <%= id % 10000 %></a>\n    </p>\n  </div>\n  <ul class='gameinformation'>\n    <% if (num_players > 1) { %>\n      <li class='tooltip bold' rel='(next)'>[<a href='#'><%= G._('?') %></a>]</li>\n      <div style='display: none;'>\n        <%= G._('The players') %>:\n        <% _.each(_.reject(_.range(0, num_players), function(i) { return !players[i]; }), function(i, j) { %>\n          <% if (CoPlayers.relation(players[i]) == 1) { %>\n            <span style='display: inline; font-weight: bold; text-decoration: underline;'><%= player_names[i] %></span>\n          <% } else if (CoPlayers.relation(players[i]) == -1) { %>\n            <span style='display: inline; color: #a91f23;'><%= player_names[i] %></span>\n          <% } else { %>\n            <%= player_names[i] %>\n          <% } %>\n          <% if (_.compact(players).length - 1 > j) { %>\n            |\n          <% } %>\n        <% }); %>\n      </div>\n      <li class='gamepercentage bold'><%= percent_completed %>%</li>\n      <li class='sprite clock bold tooltipped' rel='Timer(seconds)'><%= game_options.play_timeout %></li>\n    <% } %>\n    <% if (_.include(players, User.info.id)) { %>\n      <li class='yellowbutton sprite'>\n        <a href='/<%= G.lang() %>/games/<%= id %>/hands' class='blackcolor'><%= G._('Back To Game') %></a>\n      </li>\n    <% } else if (state == 'new_game') { %>\n      <li class='yellowbutton sprite'>\n        <a href='#' data-id='<%= id %>' class='joinButton join blackcolor'><%= G._('Join') %></a>\n      </li>\n    <% } else if (num_players > _.compact(players).length) { %>\n      <li class='blackbutton sprite'>\n        <a href='#' data-id='<%= id %>' class='joinButton'><%= G._('Play Now') %></a>\n      </li>\n    <% } %>\n    <% if (anyIsBlock) { %>\n      <li class='smallicon'><img src='/images/icon-block.png' class='tooltipped' rel='Contains blocked players' /></li>\n    <% } %>\n    <% if (anyIsStar) { %>\n      <li class='smallicon'><img src='/images/icon-friend.png' class='tooltipped' rel='Includes a Friend' /></li>\n    <% } %>\n    <% if (game_options['no_guests']) { %>\n      <li><img src='/images/no_guests.png' class='tooltipped' rel='No Guests' /></li>\n    <% } %>\n    <% if (game_options['no_kick_or_reseat']) { %>\n      <li><img src='/images/no_kick_or_reseat.png' class='tooltipped' rel='Cannot kick or change seats' /></li>\n    <% } %>\n    <% if (by_rank) { %>\n      <li><img src='/images/rank-small-<%= by_rank %>.png' class='tooltipped' rel='Ranked Game' /></li>\n    <% } %>\n  </ul>\n</li>\n");window.JST["games/game_list"]=a('<li id="newGames">\n  <h3><%= G._(\'New Games\') %></h3>\n  <% if (newGames.length === 0) { %>\n    <p id="newGamesStatus" class="bold"><%= emptyMessages.newGames %></p>\n  <% } else { %>\n    <% _.each(newGames, function (gameState) { %>\n      <%= JST[\'games/game_item\'](gameState) %>\n    <% }); %>\n  <% } %>\n</li>\n\n<li id="gamesInProgress">\n  <h3><%= G._(\'Games in Progress\') %></h3>\n  <% if (gamesInProgress.length === 0) { %>\n    <p id="gamesInProgressStatus" class="bold"><%= emptyMessages.gamesInProgress %></p>\n  <% } else { %>\n    <% _.each(gamesInProgress, function (gameState) { %>\n      <%= JST[\'games/game_item\'](gameState) %>\n    <% }); %>\n  <% } %>\n</li>\n');window.JST["games/game_paused"]=a("<%= G._('The game is currently paused.') %><br />\n<%= G._('The game will continue in') %>:<br />\n<div id='pauseUntilCounter'></div>\n<% var timeLeft = parseInt((infoRead('game_options.pause_until') * 1000 - (new Date())) / 1000, 10); %>\n<% JawakerCounters['#pauseUntilCounter'] = [timeLeft, function() { delete(JawakerCounters['#pauseUntilCounter']); }]; startCounters(); %>\n");window.JST["games/good_info"]=a("<img src='<%= Game.goods.createURL(creative, 0) %>' class='goodsStoreItemPreviewBig' />\n<%= G._(name) %> <br />\n<%= G._('Price') %>: <%= price %> <%= G._('tokens') %> <img src='/images/token.png'><br />\n<% if (ephemeral) { %>\n  <%= G._('This good is valid till the end of this game') %>\n<% } else { %>\n  <%= G._('This good is valid') %>\n  <% if (duration) { %>\n    <%= G._('for') %> <%= duration %> <%= G._('days') %>\n  <% } else { %>\n    <%= G._('forever') %>\n  <% } %>\n<% } %>\n<br />\n<% if (stock) { %>\n  <%= G._('Remaining') %>: <%= stock - sold %>/<%= stock %><br />\n<% } %>\n<% if (owned) { %>\n  <%= G._('You already own this good') %>\n  <a href='#' id='goodStorePlaceItem'><%= G._('Place it on table') %></a>\n<% } else { %>\n  <% if (stock && sold >= stock) { %>\n    <%= G._('This good is sold out') %>\n  <% } else { %>\n    <%= G._('Get this good for') %>\n    <select id='goodRecipient'>\n      <% _.each(_.zip(infoRead('players'), infoRead('player_names')), function(t) { %>\n        <% if (t[0] && t[0] < User.startGuestID) { %>\n          <option value='<%= t[0] %>'<%= t[0] == Game.player_id ? \" selected='selected'\" : '' %>><%= t[1] %></option>\n        <% } %>\n      <% }); %>\n    </select>\n    <% if (name == 'Youtube') { %>\n      <br /><label class='bold'><%= G._('link') %>:</label>\n      <input type='text' id='youtube_link'>\n    <% } %>\n    <a href='#' id='goodStoreBuyItem'><%= G._('Buy') %></a>\n  <% } %>\n<% } %>\n");window.JST["games/goods_notification"]=a("<% if (purchase.buyer === Game.player_id) { %>\n  <% if (purchase.recipient === Game.player_id) { %>\n    <%= G._('You gave yourself') %>\n  <% } else { %>\n    <%= G._('You gave') %>\n    <%= Game.playerName(_.indexOf(infoRead(\"players\"), purchase.recipient)) %>\n  <% } %>\n<% } else { %>\n  <%= Game.playerName(_.indexOf(infoRead(\"players\"), purchase.buyer)) %>\n  <% if (purchase.recipient === Game.player_id) { %>\n    <%= G._('gave you') %>\n  <% } else if (purchase.buyer === purchase.recipient) { %>\n    <%= G._('gave themselves') %>\n  <% } else { %>\n    <%= G._('gave') %>\n    <%= Game.playerName(_.indexOf(infoRead(\"players\"), purchase.recipient)) %>\n  <% } %>\n<% } %>\n<%= G._(purchase.good_name) %>\n");window.JST["games/goods_store"]=a("<div id='goodsStoreItemsList'>\n  <p style='text-align: center;'><img src='/images/store-dark-<%= G.lang() %>.png' id='goodsStoreInternalLogo' /></p>\n  <% _.each(_.keys(Game.goods.storeAndMyItems).sort(function(a) { return a == 'Owned' ? 1 : (a == 'New' ? 2 : (a == 'Youtube' ? 3 : 4)); }), function(cat, w) { %>\n    <div>\n      <span class='goodTitle'><%= G._(w == 0 ? 'My Items' : cat) %></span>\n      <% if (w == 0) { %>\n        (<%= G._('You have') %> <%= User.info.game_tokens %> <%= G._('tokens') %><img src='/images/token.png'>.\n        <a href='/buy/tokens' target='_blank' class='redlink'><%= G._('Buy tokens') %></a>)\n      <% } %>\n    </div>\n    <% if (Game.goods.storeAndMyItems[cat].length == 0) { %>\n      <%= G._('You have no goods.') %>\n    <% } else { %>\n      <% _.each(Game.goods.storeAndMyItems[cat], function(item, index) { %>\n        <img class='goodItem' rel='<%= cat %>:<%= index %>' src='<%= Game.goods.createURL(item['creative'], 0) %>' />\n      <% }); %>\n    <% } %>\n    <br />\n  <% }); %>\n</div>\n<div id='goodItemMoreInfo'>\n  (<%= G._('Click on any item above to get more information here') %>)\n</div>\n");window.JST["games/handgame/go_down"]=a("<% if (_.all(_.map(Game.myOrderingStacks(), function(x) { return x.empty(); }), _.identity)) { %>\n  <%= G._('You do not have any groups to go down.') %><br />\n  <%= G._('Organize your cards in the red boxes to go down') %>\n<% } else { %>\n  <%= G._('Select the groups you want to put down') %>\n  <div class='goDownGroupsContainer'>\n    <% _(Game.myOrderingStacks()).chain().sortBy(function(s) { return s.get('name'); }).each(function(stack, si) { %>\n      <% if (stack.get('cards').length) { %>\n        <div class='goDownGroupBlock'>\n          <div class='goDownGroup' id='<%= stack.get('name') %>_group'>\n            <% stack.get('cards').each(function(c, i) { %>\n              <div class=\"card rotate-0 cards-card_<%= c.val() %>\" style='left: <%= i * 12 %>px;'></div>\n            <% }); %>\n          </div>\n          <span>\n            <% if (stack.get('cards').length >= 3) { %>\n              <%= Game.cardsSum(stack) || G._('Wrong Group') %>\n            <% } else { %>\n              &nbsp;\n            <% } %>\n          </span><br />\n          <center><input class='groupCheckBox' type='checkbox' value='<%= si %>' id='<%= stack.get('name') %>_group_checkbox' checked='checked'></center>\n        </div>\n      <% } %>\n    <% }); %>\n</div>\n  <div class='clear'></div>\n  <br />\n  <span class='bold'><%= G._('Sum') %> =</span>&nbsp;<span id='totalSumSpan'>0</span></br>\n  <a href='#' class='redcolor' id='goDown'><%= G._('Go Down') %></a>\n<% } %>\n");window.JST["games/last_round"]=a("<% if (Game.hasKey('hs.last_round') && infoRead('hs.last_round').length > 0) { %>\n  <% var lastRound = infoRead('hs.last_round'); %>\n  <% var num_players = infoRead('num_players'); %>\n  <% if (num_players == 2) { %>\n    <% var offset = (2 + lastRound[0] - Game.player_index) % 2; %>\n    <% _.each(lastRound[1], function(c, i) { %>\n      <!-- BACKBONE TODO: We should probably use the table's StackView, not the generic one. -->\n      <div class='lastRound<%= Game.positions[((offset + i) % 2) * 2] %> card rotate-0 cards-card_<%= c %>'></div>\n    <% }); %>\n  <% } else { %>\n    <% var offset = (lastRound[0] - Game.player_index + num_players) % num_players; %>\n    <% _.each(lastRound[1], function(c, i) { %>\n      <!-- BACKBONE TODO: We should probably use the table's StackView, not the generic one. -->\n      <div class='lastRound<%= Game.positions[(offset + i) % num_players] %> card rotate-0 cards-card_<%= c %>'></div>\n    <% }); %>\n  <% } %>\n<% } %>\n");window.JST["games/new"]=a("<table class='forms'>\n  <% if (!isFB) { %>\n    <tr>\n      <td>\n        <label class='bold' for='newGameModule'><%= G._('Game') %></label>\n      </td>\n      <td>\n        <select name='newGameModule' id='newGameModule'>\n          <% _.each(GameList.gameModules, function(gm) { %>\n            <option value='<%= gm.replace(/ /g, '') %>'<%= gm.replace(/ /g, '').underscore() == GameList.gameModule ? ' selected=\"selected\"': '' %>>\n              <%= G._(gm) %>\n            </option>\n          <% }); %>\n        </select>\n      </td>\n    </tr>\n  <% } %>\n  <tr>\n    <td>\n      <label class='bold' for='newGameTimeout'>\n        <%= G._('Timer') %>(<%= G._('seconds') %>)\n      </label>\n    </td>\n    <td>\n      <select name='newGameTimeout' id='newGameTimeout'>\n        <% _([8, 10, 15, 20, 30, 45, 60]).each(function(v) { %>\n          <option value='<%= v %>'<%= v == 15 ? ' selected=\"selected\"' : '' %>><%= v %></option>\n        <% }); %>\n      </select>\n    </td>\n  </tr>\n  <% if (!isFB && !WhiteLabel.options.no_basha_text) { %>\n    <% if (!User.hasFeature('creation')) { %>\n      <tr>\n        <td colspan='2'>\n          <div class='comingsoon'>\n            <%= G._('The options below are part of Jawaker Basha. Create a private game for your friends or limit the players who join by rank. If you are interested') %>\n            <a href='/basha'><%= G._('learn more') %></a>\n          </div>\n        </td>\n      </tr>\n    <% } %>\n    <tr>\n      <td>\n        <label class='bold<%= User.hasFeature('creation') ? '' : ' grey' %>'><%= G._('Private game?') %></label>\n      </td>\n      <td>\n        <input class='checkbox' id='passwordProtected' type='checkbox'<%= User.hasFeature('creation') ? '' : ' disabled=\"disabled\"' %> />\n      </td>\n    </tr>\n    <tr>\n      <td>\n        <label class='bold<%= User.hasFeature('creation') ? '' : ' grey' %>' for='newGamePassword'><%= G._('Password') %></label>\n      </td>\n      <td>\n        <input type='text' name='newGamePassword' id='newGamePassword' maxlength='10' disabled='disabled' />\n      </td>\n    </tr>\n    <tr>\n      <td>\n        <label class='bold<%= User.hasFeature('creation') ? '' : ' grey' %>' for='newGameRank'><%= G._('Minimum rank') %></label>\n      </td>\n      <td>\n        <select name='newGameRank' id='newGameRank'<%= User.hasFeature('creation') ? '' : ' disabled=\"disabled\"' %>>\n          <% _.each(_.range(0, 13), function(v) { %>\n            <option value='<%= v %>'<%= v == 0 ? ' selected=\"selected\"' : '' %>>\n              <%= v == 0 ? G._('Any') : (v <= 8 ? (v + 2) : {9: 'J', 10: 'Q', 11: 'K', 12: 'A'}[v]) %>\n            </option>\n          <% }); %>\n        </select>\n      </td>\n    </tr>\n    <tr>\n      <td>\n        <label class='bold'><%= G._('No Guests') %></label>\n      </td>\n      <td>\n        <input class='checkbox' id='noGuestsCB' type='checkbox' />\n      </td>\n    </tr>\n    <tr>\n      <td>\n        <label class='bold'><%= G._('No kicking or changing seats') %></label>\n      </td>\n      <td>\n        <input class='checkbox' id='noKickOrReseat' type='checkbox' />\n      </td>\n    </tr>\n  <% } %>\n</table>\n<div id='createGameContainer'>\n  <a id='createGame' href='#'><%= G._('Create Game') %></a>\n</div>\n");window.JST["games/new_for_guests"]=a("<%= G._('You cannot create games without being logged in.') %><br/>\n<a id='signInLink' href='/<%= G.lang() %>/users/sign_in'><%= G._('Login') %></a>\n<a id='registerLink' href='/<%= G.lang() %>/users/sign_up'><%= G._('Sign up') %></a>\n");window.JST["games/no_guests_form"]=a("<%= G._('You cannot join this game without being logged in. Please login or create a new account to be able to join this game.') %><br/>\n<a id='signInLink' href='/<%= G.lang() %>/users/sign_in'><%= G._('Login') %></a>\n<a id='registerLink' href='/<%= G.lang() %>/users/sign_up'><%= G._('Sign up') %></a>\n");window.JST["games/onhold"]=a("<%= G._('Players have left and the game is on hold. You can choose to wait for other players to join and continue or leave the game and play in another one.') %>\n<br /><br />\n<% if (!Game.observer) { %>\n  <center>\n    <a id='onHoldLeave' href='#'><%= G._('Leave') %></a> <%= G._('or') %> <a id='onHoldClose' href='#'><%= G._('wait for players') %></a>\n  </center>\n<% } %>\n");window.JST["games/password"]=a("<%= G._('This is a password-protected game. Please provide the password:') %>: <input type='text' id='joinPassword' maxlength='10' /> <br />\n<a href='#' id='joinWithPassword'><%= G._('Join') %></a>\n");window.JST["games/pause_game"]=a("<% if (Game.inState('new_game') || Game.inState('game_ready')) { %>\n  <%= G._('You can only pause a game after it has started.') %>\n<% } else if (infoRead('num_paused') >= 5) { %>\n  <%= G._('You reached the maximum number of allowed pauses per game') %>\n<% } else { %>\n  <%= G._('You can pause the game for 5 times only.') %><br />\n  <%= G._('Pause the game for') %>:\n  <select id='pauseDurationSelect'>\n    <% _.each(_.range(1, 16), function(x) { %>\n      <option value='<%= x %>'><%= G.pluralize(x, 'minute') %></option>\n    <% }); %>\n  </select>\n  <a href='#' id='pauseGameLBButton'><%= G._('Pause') %></a>\n<% } %>\n");window.JST["games/player_away"]=a("<%= G._('You are currently away') %><br />\n<%= G._('Jawaker will play in your behalf until you come back') %><br />\n<a href='#' id='playerUnsetAway'><%= G._('Come back') %></a>\n");window.JST["games/sbeetiya/confirm_doubling"]=a("<%= G._('Are you sure you want to double this card?') %><br />\n<div class=\"card_container\" style=\"width: 76px;\">\n  <div class='card rotate-0 cards-card_<%= UIManager.tempDoublingCard %>'></div>\n</div>\n<br />\n<a id='confirmDoublingYes' href='#'><%= G._('Yes') %></a>\n<a id='confirmDoublingNo' href='#'><%= G._('No') %></a>\n");window.JST["games/sbeetiya/confirm_exchange"]=a("<%= G._('Are you sure you want to pass these 3 cards?') %>\n<br />\n<div class=\"card_container\" style=\"width: <%= $('.permanentSelectedCard').length * 76 %>px;\">\n  <% _.each($('.permanentSelectedCard'), function(e) { %>\n    <div class='card rotate-0 cards-card_<%= $(e).data('card').val() %>'></div>\n  <% }); %>\n</div>\n<br />\n<a id='confirmExchangeYes' href='#'><%= G._('Yes') %></a>\n<a id='confirmExchangeNo' href='#'><%= G._('No') %></a>\n");window.JST["games/score"]=a("<div class='clear_div'></div>\n<div id='score_table_container'>\n  <% if (_.include(['GamesModules::Trix', 'GamesModules::TrixComplex'], Game.read('module'))) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td><%= G._('Hand') %></td>\n        <% _.each(Game.read('player_names'), function(pn) { %>\n          <td><%= pn %></td>\n        <% }); %>\n      </tr>\n      <tr><td colspan='5' id='scores_table_sep'></td></tr>\n      <% _.each(Game.read('track_scores'), function(score, i) { %>\n        <% var handsPerKingdom = (Game.read('module') == 'GamesModules::TrixComplex') ? 2 : 5; %>\n        <% var kingdomPlayerIndex = (4 + Game.read('dealer') - parseInt(Game.read('track_scores').length / handsPerKingdom, 10) + parseInt(i / handsPerKingdom, 10)) % 4; %>\n        <% if (i % handsPerKingdom === 0 && i !== 0) { %>\n          <tr><td colspan='5' id='scores_table_sep'></td></tr>\n        <% } %>\n        <tr>\n          <td><%= G._(score[1].match(/::([^:]*?)$/)[1]) %></td>\n          <% _.each(score[0], function(s, j) { %>\n            <td<%= (j === kingdomPlayerIndex) ? ' class=\"player_kingdom\"' : '' %>><%= s %></td>\n          <% }); %>\n        </tr>\n\n      <% }); %>\n      <tr id='score_totals'>\n        <td><strong><%= G._('Score Totals') %></strong></td>\n        <% _.each(Game.read('overall_scores'), function(os) { %>\n          <td><strong><%= os %></strong></td>\n        <% }); %>\n      </tr>\n    </table>\n\n  <% } else if (Game.gameIs(['TrixPartner', 'TrixComplexPartner'])) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td><%= G._('Hand') %></td>\n        <% for (var i = 0; i < 2; i++) { %>\n          <td>\n            <%= G._('Team') %> <%= i+1 %> <br />\n            (<%= Game.read('player_names')[i]%> <%= Game.read('player_names')[i+2] %>)\n          </td>\n        <% } %>\n      </tr>\n      <tr><td colspan='5' id='scores_table_sep'></td></tr>\n      <% _.each(Game.read('track_scores'), function(score, i) { %>\n        <% var handsPerKingdom = (Game.read('module') == 'GamesModules::TrixComplexPartner') ? 2 : 5; %>\n        <% var kingdomPlayerIndex = (4 + Game.read('dealer') - parseInt(Game.read('track_scores').length/handsPerKingdom,10) + parseInt(i/handsPerKingdom,10)) % 4; %>\n        <% if (i % handsPerKingdom == 0 && i != 0) { %>\n          <tr><td colspan='5' id='scores_table_sep'></td></tr>\n        <% } %>\n        <tr>\n          <td><%= G._(score[1].match(/::([^:]*?)$/)[1]) %></td>\n          <% for (var i = 0; i < 2; i++) { %>\n            <td<%= (kingdomPlayerIndex % 2 == i) ? ' class=\"player_kingdom\"' : '' %>><%= score[0][i] + score[0][i + 2] %></td>\n          <% } %>\n        </tr>\n\n      <% }); %>\n      <tr id='score_totals'>\n        <td><strong><%= G._('Score Totals') %></strong></td>\n        <% for (var i = 0; i < 2; i++) { %>\n          <td><strong><%= Game.read('overall_scores')[i] + Game.read('overall_scores')[i + 2] %></strong></td>\n        <% } %>\n      </tr>\n    </table>\n\n  <% } else if (Game.gameIs(['Tarneeb', 'TarneebEgyptian'])) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td><span><%= G._('Bidder') %></span> <span>(<%= G._('The Bid') %>)</span></td>\n        <% for (var i = 0; i < 2; i++) { %>\n          <td>\n            <%= G._('Team') %> <%= i+1 %> <br />\n            (<%= Game.read('player_names')[i]%> <%= Game.read('player_names')[i+2] %>)\n          </td>\n        <% } %>\n      </tr>\n      <tr><td colspan='3' id='scores_table_sep'></td></tr>\n      <% var score = _.last(infoRead('track_scores')); %>\n      <% if (typeof(score) != 'undefined') { %>\n        <tr>\n          <td><span><%= Game.read('player_names')[score[1]] %></span> <span>(<%= score[2] %>)</span></td>\n\n          <% for (var i = 0; i < 2; i++) { %>\n            <td<%= (score[1] % 2 == i) ? ' class=\"' + ( score[3] ? 'scoreWinning' : 'scoreLosing' ) + '\"' : '' %>><%= score[0][i] %></td>\n          <% } %>\n        </tr>\n      <% } %>\n      <tr id='score_totals'><td><strong><%= G._('Score Totals') %></strong></td>\n      <% _.each(Game.read('team_scores'), function(ts) { %>\n        <td><strong><%= ts %></strong></td>\n      <% }); %>\n    </table>\n\n  <% } else if (Game.gameIs('Estimation')) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td><span><%= G._('Round') %></span></td>\n        <td><span><%= G._('Bidder') %></span> <span>(<%= G._('The Bid') %>)</span></td>\n        <% _.each(infoRead('player_names'), function(pn) { %>\n          <td><%= pn %></td>\n        <% }); %>\n      </tr>\n\n      <% var multiplier = 2; %>\n      <tr><td colspan='6' id='scores_table_sep'></td></tr>\n      <% _.each(infoRead('track_scores'), function(score, i) { %>\n        <tr>\n          <td><span><%= i+1 %></span></td>\n          <td><span><%= Game.playerName(score[1]) %></span> <span>(<%= _.max(score[2]) %>)</span></td>\n          <% var scores = score[0]; %>\n          <% if (_.any(scores)) { %>\n            <% multiplier = 2; %>\n            <% _.each(scores, function(s, i) { %>\n              <td class= <%= (score[5][i] == score[2][i]) ? 'scoreWinning' : 'scoreLosing'%>>\n                <%= s + '(' + score[5][i] + '/' + score[2][i] + ')' %><br />\n                <% if (score[4][i] != '') { %>\n                  <div class='<%= score[4][i] == 'b' ? ('estimationscoreboxsuit suit' + score[3]) : ('estimationscoreboxitem estimation-' + score[4][i]) %>'></div>\n                <% } %>\n              </td>\n            <% }); %>\n          <% } else { %>\n            <td colspan='5'>Next round is x<%= multiplier++ %></td>\n          <% } %>\n        </tr>\n      <% }); %>\n\n      <tr id='score_totals'><td></td><td><strong><%= G._('Score Totals') %></strong></td>\n      <% _.each(Game.read('overall_scores'), function(ts) { %>\n        <td><strong><%= ts %></strong></td>\n      <% }); %>\n    </table>\n\n  <% } else if (Game.gameIs('TarneebSyrian41') || Game.gameIs('Sbeetiya')) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <% _.each(Game.read('player_names'), function(pn) { %>\n          <td><%= pn %></td>\n        <% }); %>\n      </tr>\n      <tr><td colspan='4' id='scores_table_sep'></td></tr>\n      <% var score = _.last(infoRead('track_scores')); %>\n      <% if (typeof(score) != 'undefined') { %>\n        <tr>\n          <% for (var i = 0; i < 4; i++) { %>\n            <td<%= (score[1] == i) ? ' class=\"player_kingdom\"' : '' %>><%= score[0][i] %></td>\n          <% } %>\n        </tr>\n      <% } %>\n      <tr id='score_totals'>\n      <% _.each(Game.read('overall_scores'), function(os) { %>\n        <td><strong><%= os %></strong></td>\n      <% }); %>\n    </table>\n  <% } else if (Game.gameIs('Leekha')) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <% _.each(Game.read('player_names'), function(pn) { %>\n          <td><%= pn %></td>\n        <% }); %>\n      </tr>\n      <tr><td colspan='4' id='scores_table_sep'></td></tr>\n      <% var score = _.last(infoRead('track_scores')); %>\n      <% if (typeof(score) != 'undefined') { %>\n        <tr>\n          <% for (var i = 0; i < 4; i++) { %>\n            <td><%= score[0][i] %></td>\n          <% } %>\n        </tr>\n      <% } %>\n      <tr id='score_totals'>\n      <% _.each(Game.read('overall_scores'), function(os) { %>\n        <td><strong><%= os %></strong></td>\n      <% }); %>\n    </table>\n\n  <% } else if (Game.gameIs('Basra')) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td colspan='2'><span><%= G._('Round') %></span></td>\n        <% _.each(infoRead('player_names'), function(pn) { %>\n          <td><%= pn %></td>\n        <% }); %>\n      </tr>\n\n      <tr><td colspan='4' id='scores_table_sep'></td></tr>\n      <% var score = _.last(infoRead('track_scores')); %>\n      <% if (typeof(score) != 'undefined') { %>\n        <% var score_p0 = score[0][0] + score[1][0] + score[2][0]; %>\n        <% var score_p1 = score[0][1] + score[1][1] + score[2][1]; %>\n        <% var class_p0 = (score_p0 > score_p1) ? 'scoreWinning' : ''; %>\n        <% var class_p1 = (score_p1 > score_p0) ? 'scoreWinning' : ''; %>\n        <% if (_.any(score[0])) { %>\n          <tr>\n            <td rowspan='5' ><span><%= infoRead('track_scores').length %></span></td>\n            <td><%= G._('Cards') %></td>\n            <td class=<%= class_p0 %>><%= score[3][0] %></td>\n            <td class=<%= class_p1 %>><%= score[3][1] %></td>\n          </tr><tr>\n            <td><%= G._('Score') %></td>\n            <td class=<%= class_p0 %>><%= score[0][0] %></td>\n            <td class=<%= class_p1 %>><%= score[0][1] %></td>\n          </tr><tr>\n            <td><%= G._('Bonus') %></td>\n            <td class=<%= class_p0 %>><%= score[1][0] %></td>\n            <td class=<%= class_p1 %>><%= score[1][1] %></td>\n          </tr><tr>\n            <td><%= G._('Basra') %></td>\n            <td class=<%= class_p0 %>><%= score[2][0] %></td>\n            <td class=<%= class_p1 %>><%= score[2][1] %></td>\n          </tr><tr>\n            <td><%= G._('Total') %></td>\n            <td class=<%= class_p0 %>><%= score_p0 %></td>\n            <td class=<%= class_p1 %>><%= score_p1 %></td>\n          </tr>\n        <% } else { %>\n          <tr>\n            <td><span><%= infoRead('track_scores').length %></span></td>\n            <td colspan='3'>Next round is x<%= score[4] %></td>\n          </tr>\n        <% } %>\n      <% } %>\n\n      <tr id='score_totals'><td colspan='2'><strong><%= G._('Score Totals') %></strong></td>\n      <% _.each(Game.read('overall_scores'), function(ts) { %>\n        <td><strong><%= ts %></strong></td>\n      <% }); %>\n    </table>\n\n  <% } else if (Game.gameIs('Baloot')) { %>\n\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td colspan='2'><span><%= G._('Buyer') %></span> <span>(<%= G._('Purchase') %>)</span></td>\n        <% for (var i = 0; i < 2; i++) { %>\n          <td>\n            <%= G._('Team') %> <%= i+1 %> <br />\n            (<%= Game.read('player_names')[i]%> <%= Game.read('player_names')[i+2] %>)\n          </td>\n        <% } %>\n      </tr>\n      <tr><td colspan='4' id='scores_table_sep'></td></tr>\n      <% var score = _.last(infoRead('track_scores')); %>\n      <% if (typeof(score) != 'undefined') { %>\n        <tr>\n          <td rowspan='4'><span><%= Game.read('player_names')[score[1]] %></span> <span>(<%= G._(capitalizeString(score[2])) %>)</span></td>\n          <td><%= G._('Bunts') %></td>\n          <% for (var i = 0; i < 2; i++) { %>\n            <td<%= (score[1] % 2 == i) ? ' class=\"' + ( score[9] ? 'scoreWinning' : 'scoreLosing' ) + '\"' : '' %>><%= score[4][i] %></td>\n          <% } %>\n        </tr>\n        <tr>\n          <td><%= G._('Floor') %></td>\n          <% for (var i = 0; i < 2; i++) { %>\n            <td<%= (score[1] % 2 == i) ? ' class=\"' + ( score[9] ? 'scoreWinning' : 'scoreLosing' ) + '\"' : '' %>><%= score[5][i] %></td>\n          <% } %>\n        </tr>\n        <tr>\n          <td><%= G._('Projects') %></td>\n          <% for (var i = 0; i < 2; i++) { %>\n            <td<%= (score[1] % 2 == i) ? ' class=\"' + ( score[9] ? 'scoreWinning' : 'scoreLosing' ) + '\"' : '' %>><%= score[6][i] %><%= score[8][i].length > 0 ? ' (' + _.map(score[8][i], function(p) { return G._(p); }).join(', ') + ')' : '' %></td>\n          <% } %>\n        </tr>\n        <tr class='score_totals'>\n          <td><%= G._('Points') %> (x<%= (score[3] == 5) ? G._('Gahwa') : score[3] %>)</td>\n          <% for (var i = 0; i < 2; i++) { %>\n            <td<%= (score[1] % 2 == i) ? ' class=\"' + ( score[9] ? 'scoreWinning' : 'scoreLosing' ) + '\"' : '' %>><%= score[7][i] %></td>\n          <% } %>\n        </tr>\n      <% } %>\n      <tr id='score_totals'><td colspan='2' ><strong><%= G._('Score Totals') %></strong></td>\n      <% _.each(Game.read('team_scores'), function(ts) { %>\n        <td><strong><%= ts %></strong></td>\n      <% }); %>\n    </table>\n\n  <% } else if (Game.gameIs('Handgame')) { %>\n    <table id='scores_table' border=1 align='center' cellpadding=5 cellspacing=0>\n      <tr>\n        <td><span><%= G._('Round') %></span></td>\n        <% _.each(infoRead('player_names'), function(pn) { %>\n          <td><%= pn %></td>\n        <% }); %>\n      </tr>\n\n      <tr><td colspan='5' id='scores_table_sep'></td></tr>\n      <% _.each(infoRead('track_scores'), function(score,i) { %>\n        <tr>\n          <td><span><%= i+1 %></span></td>\n          <% var scores = score[0]; %>\n          <% _.each(scores, function(s, i) { %>\n            <td class='<%= (s < 0) ? 'scoreWinning' : 'scoreLosing'%>'>\n              <%= s %><br />\n            </td>\n          <% }); %>\n        </tr>\n      <% }); %>\n\n      <tr id='score_totals'><td><strong><%= G._('Score Totals') %></strong></td>\n      <% _.each(Game.read('overall_scores'), function(ts) { %>\n        <td><strong><%= ts %></strong></td>\n      <% }); %>\n    </table>\n  <% } %>\n</div>\n<div class='clear_div'></div>\n");window.JST["games/tarneeb/bid"]=a("<% if (infoRead('hs.bid') > 0) { %>\n  <%= G._('Current bid') %>: <span><%= infoRead('hs.bid') %></span>\n  <%= G._('by') %> <span><%= Game.playerName('hs.bidder') %></span>\n  <hr />\n<% } %>\n<%= G._('Your bid') %><br />\n<select id='bidValue'>\n  <% for (var i = Math.max(7, infoRead('hs.bid') + 1), j = 0; i < 14; i++, j++) { %>\n    <option value='<%= i %>'<%= j == 0 ? ' selected=\"selected\"' : '' %>><%= i %></option>\n  <% } %>\n</select>\n<br />\n<a id='bidGo' href='#'><%= G._('Bid') %></a>\n<% if (_.select(infoRead('hs.finished_bidding'), function(v) { return v; }).length < 3) { %>\n  <a id='bidPass' href='#'><%= G._('Pass') %></a>\n<% } %>\n");window.JST["games/tarneeb/partner_accept"]=a("<%= G._('Do you want to accept') %> <%= Game.playerName('partner_chooser') %> <%= Game.gameIs('Baloot') ? G._('as your brother?') : G._('as your partner?') %>\n<br />\n<a id='partnerAcceptYes' href='#'><%= G._('Yes') %></a>\n<a id='partnerAcceptNo' href='#'><%= G._('No') %></a>\n");window.JST["games/tarneeb/partner_choose"]=a("<% if (Game.gameIs('baloot')) { %>\n  <%= G._('Please choose your brother') %>\n<% } else { %>\n  <%= G._('Please choose your partner') %>\n<% } %>\n<br />\n<select id='partnerChooseIndex'>\n  <% _.each(infoRead('player_names'), function(pn, i) { %>\n    <% if (i != Game.player_index) { %>\n      <option value='<%= i %>'<%= i == (Game.player_index + 2) % 4 ? \" selected='selected'\" : '' %>><%= pn %></option>\n    <% } %>\n  <% }); %>\n</select>\n<br />\n<a id='partnerChoose' href='#'><%= G._('Choose') %></a>\n");window.JST["games/tarneeb/tarneeb"]=a("<%= G._('Choose your tarneeb') %><br />\n<center><table class='suits'>\n  <tr>\n    <% for (var i = 0; i < 4; i++) { %>\n      <td>\n        <label for='tarneebSuit<%= i %>'><img src='/images/transparent-20-20.gif' class='suit<%= i %>' /></label>\n      </td>\n    <% } %>\n  </tr><tr>\n    <% for (var i = 0; i < 4; i++) { %>\n      <td>\n        <input type='radio' name='tarneebSuit' id='tarneebSuit<%= i %>' value='<%= i %>'<%= (i == 0) ? ' checked=\"checked\"': '' %> />\n      </td>\n    <% } %>\n  </tr>\n</table></center>\n<a id='tarneebGo' href='#'><%= G._('Choose') %></a>\n");window.JST["games/tarneeb_egyptian/bid"]=a("<% if (infoRead('hs.bid') > 0) { %>\n  <%= G._('Current bid') %>: <span><%= infoRead('hs.bid') %> (<%= infoRead('hs.bid_suit') == -1 ? G._('No Trump') : G._(Card.Suits[infoRead('hs.bid_suit')]) %>)</span>\n  <%= G._('by') %> <span><%= Game.playerName('hs.bidder') %></span>\n  <hr />\n<% } %>\n<%= G._('Your bid') %><br />\n<select id='egyptianBidValue'>\n  <% var min_bid = _.max([infoRead('hs.bid') + (infoRead('hs.bid_suit') == -1 ? 1 : 0), (Game.gameIs('estimation') ? 4 : 7)]); %>\n  <% for (var i = min_bid, j = 0; i < 14; i++, j++) { %>\n    <option value='<%= i %>'<%= j == 0 ? ' selected=\"selected\"' : '' %>><%= i %></option>\n  <% } %>\n</select>\n<br />\n<center><table class='suits'>\n  <tr>\n    <% _.each([-1, 1, 0, 2, 3], function(i) { %>\n      <td>\n        <label for='tarneebSuit<%= i %>'><img src='/images/transparent-20-20.gif' class='suit<%= i %>' /></label>\n      </td>\n    <% }); %>\n  </tr><tr>\n    <% _.each([-1, 1, 0, 2, 3], function(i) { %>\n      <td>\n        <input type='radio' name='tarneebSuit' id='tarneebSuit<%= i %>' value='<%= i %>'<%= (i == -1) ? ' checked=\"checked\"': '' %> />\n      </td>\n    <% }); %>\n  </tr>\n</table></center>\n<a id='egyptianBidGo' href='#'><%= G._('Bid') %></a>\n<a id='egyptianBidPass' href='#'><%= G._('Pass') %></a>\n<% if (Game.gameIs('TarneebEgyptian') && infoRead('hs.bid') > 0 && (infoRead('hs.bidder') + Game.player_index) % 2 == 1 && !infoRead('hs.doubled')) { %>\n  <a id='egyptianBidDouble' href='#'><%= G._('Double') %></a>\n<% } %>\n");window.JST["games/tarneeb_syrian41/bid"]=a("<%= G._('Your bid') %><br />\n<select id='bidValue'>\n  <% var minBid = infoRead('overall_scores.' + Game.player_index) < 30 ? 2 : Math.floor(infoRead('overall_scores.' + Game.player_index) / 10); %>\n  <% for (var i = minBid, j = 0; i < 14; i++, j++) { %>\n    <option value='<%= i %>'<%= j == 0 ? ' selected=\"selected\"' : '' %>><%= i %></option>\n  <% } %>\n</select>\n<br />\n<a id='bidGo' href='#'><%= G._('Bid') %></a>\n");window.JST["games/trix/confirm_doubling"]=a("<%= G._('Are you sure you want to double this card?') %><br />\n<div class=\"card_container\" style=\"width: 76px;\">\n  <div class='card rotate-0 cards-card_<%= UIManager.tempDoublingCard %>'></div>\n</div>\n<br />\n<a id='confirmDoublingYes' href='#'><%= G._('Yes') %></a>\n<a id='confirmDoublingNo' href='#'><%= G._('No') %></a>\n");window.JST["games/trix/select_hand"]=a("<%= G._('Please choose the next hand') %>\n<br />\n<select id='nextHandName'>\n  <% _.each(_.reject(infoRead('hands'), function(h) { return _.include(infoRead('played_hands'), h); }), function(h) { %>\n    <option value='<%= h %>'><%= G._(h) %></option>\n  <% }); %>\n</select>\n<br />\n<a id='nextHandGo' href='#'><%= G._('GO') %></a>\n");window.JST["games/youtube_good"]=a("<div class='youtubeObjectDiv'>\n  <object width='95' height='95'>\n    <param name='movie' value='<%= link %>?version=3&autohide=1&showinfo=0&fs=0'></param>\n    <param name='allowScriptAccess' value='always'></param>\n    <param name='wmode' value='opaque'></param>\n    <embed src='<%= link %>?version=3&autohide=1&showinfo=0&fs=0&rel=0&color1=0xff0000&color2=0x00ff00&border=1'\n      type='application/x-shockwave-flash'\n      allowscriptaccess='always'\n      width='95' height='95'\n      wmode='opaque'>\n    </embed>\n  </object>\n</div>\n");window.JST["hands/left_lower_box"]=a('<div id="goodsStoreInfo" style="display: none;"></div>\n<img id="goodsStoreLogo" src="/images/store-<%= G.lang() %>.png" style="padding: 5px;" />\n<% if (!Game.observer && !Game.guest) { %>\n  <a id="giftStoreLink" class="blackcolor yellowbutton sprite" href="#">\n    <%= G._("Open Store") %>\n    <img id="storeLoadingIcon" src="/images/small-loading.gif" style="display: none;" />\n  </a>\n<% } %>\n');window.JST["hands/left_upper_box"]=a('<table id="statusBar">\n  <tbody>\n    <% _.each(gameStati, function (s) { %>\n      <tr>\n        <th><%= G._(s.name) %></th>\n        <td><%= s.value.call() %></td>\n      </tr>\n    <% }); %>\n\n    <tr>\n      <td>\n        &nbsp;\n      </td>\n      <td>\n        <% if (infoRead(\'hs.last_round\', []).length > 0) { %>\n          <a class="yellowcolor bold" href="#" id="lastRoundLink"><%= G._("Last Round") %></a>\n        <% } %>\n      </td>\n    </tr>\n  </tbody>\n</table>\n');window.JST["hands/player_box"]=a('<ul class="information">\n  <li class="playerInfo floatleft" style="display: none;">\n    <img src=\'\' class="playerAvatar miniProfile floatleft" />\n    <div class="avatarOverlay" style=\'display: none;\'>\n      <img src=\'/images/away_status.png\' />\n    </div>\n\n    <ul class=\'floatleft\'>\n      <li class="bold playerName miniProfile"></li>\n      <li>\n        <span class="playerRankIndex"></span>\n        <img src="/images/icon-friend.png" class="playerFriend" style="display: none;" />\n        <img src="/images/icon-half-friend.png" class="playerHalfFriend" style="display: none;" />\n        <img src="/images/icon-block.png" class="playerBlock" style="display: none;" />\n        <img src="/images/redarrow.png" class="menuArrow" />\n        <div class="menuList" style="display: none;"></div>\n      </li>\n    </ul>\n    <div class="timer sprite floatleft"></div>\n  </li>\n\n  <% if (pos % 2 !== 0 ) { %>\n    <li class="cards floatleft" id="player<%= Game.positions[pos] %>Cards"></li>\n  <% } %>\n\n  <li class="<%= pos === 1 ? \'\' : \'floatleft\' %>">\n    <div class="gameinfo"></div>\n  </li>\n\n</ul>\n\n<% if (pos === 0 && !white_label_iframe) { %>\n  <div class="bottomarrow sprite favourite" id="expandCollapse"></div>\n<% } %>\n\n<% if (pos % 2 === 0 ) { %>\n  <div class="cards" id="player<%= Game.positions[pos] %>Cards"></div>\n<% } %>\n\n');window.JST["hands/right_upper_box"]=a('<table class="gamescore">\n  <tbody>\n    <% if (!Game.inState(["new_game", "game_ready"])) { %>\n      <% for (var i = 0, l = scores.length; i < l; i += 2) { %>\n        <tr class="red gamescorerow">\n          <td><%= scores[i].names.join("<br />") %></td>\n          <td><%= scores[i + 1].names.join("<br />") %></td>\n        </tr>\n\n        <tr class="gamescorerow">\n          <td><%= scores[i].score %></td>\n          <td><%= scores[i + 1].score %></td>\n        </tr>\n      <% } %>\n    <% } %>\n\n    <tr class="nobg">\n      <td>\n        <% if (!Game.observer && !Game.inState(\'after_hands\')) { %>\n          <div class="yellowbutton sprite" id="leaveLink">\n            <a class="blackcolor" href="#"><%= G._("Leave") %></a>\n          </div>\n        <% } %>\n\n        <% if (Game.observer && _.compact(infoRead(\'players\')).length < infoRead(\'num_players\')) { %>\n          <div class="yellowbutton sprite" id="joinLink">\n            <a class="blackcolor" href="#"><%= G._("Join") %></a>\n          </div>\n        <% } %>\n      </td>\n      <td>\n        &nbsp;\n        <% if (!Game.inState(["new_game", "game_ready"])) { %>\n          <a class="yellowcolor bold" href="#" id="showScoreLink"><%= G._(\'Show Scores\') %></a>\n        <% } %>\n      </td>\n    </tr>\n  </tbody>\n</table>\n\n');window.JST["hands/summary"]=a("<div class='whitecolor centeredtext' id='summaryContainer'>\n  <% if (infoRead('end_vs_hold', 'hold') == 'hold') { %>\n\n    <h3><%= G._('Score Summary') %></h3>\n    <table class='centeredtext'>\n      <thead class='bold whitecolor'>\n        <tr>\n          <td>&#35;</td>\n          <td><%= G._('Name') %></td>\n          <td><%= G._('Final Score') %></td>\n        </tr>\n      </thead>\n      <tbody class='bold'>\n\n        <% if (Game.gameIs(['Trix', 'TrixComplex', 'Estimation'])) { %>\n          <% _(_.range(0, Game.read('num_players'))).chain().zip(Game.read('overall_scores')).sortBy(function(x) { return -1 * x[1]; }).each(function(t, i) { %>\n            <tr class='<%= i % 2 == 0 ? 'greybg' : '' %>'>\n              <td><%= i+1 %></td>\n              <td><%= Game.read('player_names')[t[0]] %></td>\n              <td><%= t[1] %></td>\n            </tr>\n          <% }); %>\n        <% } else if (Game.gameIs(['Sbeetiya', 'Handgame'])) { %>\n          <% _(_.range(0, Game.read('num_players'))).chain().zip(Game.read('overall_scores')).sortBy(function(x) { return x[1]; }).each(function(t, i) { %>\n            <tr class='<%= i % 2 == 0 ? 'greybg' : '' %>'>\n              <td><%= i+1 %></td>\n              <td><%= Game.read('player_names')[t[0]] %></td>\n              <td><%= t[1] %></td>\n            </tr>\n          <% }); %>\n        <% } else if (Game.gameIs(['TrixPartner', 'TrixComplexPartner'])) { %>\n          <% _(Game.read('overall_scores')).chain().inject(function(a, s, i) { a[i % 2] += s; return a; }, [0, 0]).zip([0,1]).sortBy(function(x) { return -1 * x[0]; }).each(function(t, i) { %>\n            <tr class='<%= i % 2 == 0 ? 'greybg' : '' %>'>\n              <td><%= i+1 %></td>\n              <td><%= Game.read('player_names')[t[1]] %> <%= Game.read('player_names')[t[1]+2] %></td>\n              <td><%= t[0] %></td>\n            </tr>\n          <% }); %>\n        <% } else if (Game.gameIs(['Tarneeb', 'TarneebExpress', 'Baloot', 'TarneebEgyptian', 'TarneebSyrian41'])) { %>\n          <% _(Game.read('team_scores')).chain().zip([0,1]).sortBy(function(x) { return -1 * x[0]; }).each(function(t, i) { %>\n            <tr class='<%= i % 2 == 0 ? 'greybg' : '' %>'>\n              <td><%= i+1 %></td>\n              <td><%= Game.read('player_names')[t[1]] %> <%= Game.read('player_names')[t[1]+2] %></td>\n              <td><%= t[0] %></td>\n            </tr>\n          <% }); %>\n        <% } else if (Game.gameIs(['Leekha'])) { %>\n          <% _(Game.read('final_order')).each(function(t, i) { %>\n            <tr class='<%= i % 2 == 0 ? 'greybg' : '' %>'>\n              <td><%= i+1 %></td>\n              <td><%= Game.read('player_names')[t[0]] %></td>\n              <td><%= t[1] %></td>\n            </tr>\n          <% }); %>\n        <% } else if (Game.gameIs(['Basra'])) { %>\n          <% _(_.range(0, Game.read('num_players'))).chain().zip(Game.read('overall_scores')).sortBy(function(x) { return -1 * x[1]; }).each(function(t, i) { %>\n            <tr class='<%= i % 2 == 0 ? 'greybg' : '' %>'>\n              <td><%= i+1 %></td>\n              <td><%= Game.read('player_names')[t[0]] %></td>\n              <td><%= t[1] %></td>\n            </tr>\n          <% }); %>\n        <% } %>\n\n      </tbody>\n    </table>\n    <br />\n    <% if (infoRead('game_type') == 'competition' && !Game.observer && !Game.guest) { %>\n      <a class='competition_summary' href='/<%= G.lang() %>/competitions/<%= infoRead('competition_id') %>'><%= G._('Please go to the competition page to rate it') %></a>\n    <% } else { %>\n      <ul class='centeredtext'>\n        <% if (!Game.observer) { %>\n          <li class='yellowbutton sprite'>\n            <a href='#' id='playAgain'><%= G._('Play Again') %></a>\n          </li>\n        <% } %>\n          <li class='yellowbutton' >\n            <a href='/<%= G.lang() %>/games/<%= Game.gameName().underscore() %>' class='yellowcolor'><%= G._('Back to games') %></a>\n          </li>\n      </ul>\n\n      <% if (!Game.guest) { %>\n        <% if (isFB) { %>\n          <span class='bigFont'>\n            <%= G._('Do not miss out on the awesome features of Jawaker. Visit') %>\n            <a class='redcolor' href='http://www.jawaker.com' target='_blank'>http://www.jawaker.com</a>\n            <%= G._('NOW!') %>\n          </span>\n          <br />\n        <% } %>\n        <% if (!Game.observer) { %>\n          <% if (infoRead('won_fanoos', [])[Game.player_index]) { %>\n            <img class='footballImage' src='/images/fanoos.png'>\n            <span class='bigFont'>\n              <%= G._('Congratulations! you received a Fanoos') %>\n            </span>\n            <br />\n          <% } %>\n          <ul class='nodiscbullets'>\n            <% if (!WhiteLabel.options.no_basha_text) { %>\n              <li style='width: 600px; margin: 0px auto;'>\n                <% if (_.include(infoRead('winner_indexes'), Game.player_index)) { %>\n                  <% if (User.events && User.events.length > 0 && _.include(infoRead('event_winners', []), Game.player_id)) { %>\n                    <% _.each(User.events, function(evnt) { %>\n                      <img class='footballImage' src='/images/football.png'>\n                      <span class='bigFont'>\n                        <%= G._('Congratulations! you scored') + ' ' + evnt[0] + ' ' + G._('goals for') + ' ' + (G.lang() == 'en' ? evnt[1][0] : evnt[1][1]) %>\n                      </span>\n                      <br />\n                    <% }); %>\n                    <br />\n                  <% } %>\n                  <span class='bigFont'>\n                    <%= G._('Congratulations, you won!') %>\n                    <%= G._('You have been rewarded') %>\n                    10 <%= G._('tokens') %> <img src='/images/token.png' />\n                  </span>\n                <% } else { %>\n                  <p class='bigFont'>\n                    <%= G._('You have unforutantely lost.') %>\n                    <%= G._('Nevertheless, you have been given') %>\n                    5 <%= G._('tokens') %> <img src='/images/token.png' />\n                  </p>\n                <% } %>\n                <br />\n              </li>\n            <% } %>\n            <% var winLoss = infoRead('win_loss_info')[Game.player_id]; %>\n            <% var winRatio = infoRead('current_ranks')[Game.player_id]; %>\n            <li>\n              <br />\n              <h3><%= G._('Your Winning Ratio:') %></h3><br />\n              <table id='winLoss'>\n                <tr>\n                  <td colspan='3'>\n                    <span class='number'><%= winLoss[0] %></span><br />\n                    (<%= G._('Games Won') %>)\n                  </td>\n                  <td rowspan='3'>\n                    <span class='number'>&nbsp;&nbsp;= <%= winRatio[0] %>%</span>\n                  </td>\n                </tr>\n                <tr>\n                  <td colspan='3'><hr /></td>\n                </tr>\n                <tr>\n                  <td>\n                    <span class='number'><%= winLoss[0] + winLoss[1] %></span><br />\n                    (<%= G._('Games Completed') %>)\n                  </td>\n                  <td> <span class='number'>+</span> </td>\n                  <td>\n                    <span class='number'><%= winLoss[2] %></span><br />\n                    (<%= G._('Games Left') %>)\n                  </td>\n                </tr>\n              </table>\n            </li>\n            <br />\n            <% if (!WhiteLabel.options.no_basha_text) { %>\n              <li style='width: 600px; margin: 0px auto;'>\n                <span class='bigFont'>\n                  <a href='/<%= G.lang() %>/users/edit#tab5' class='yellowcolor'><%= G._('Click here') %></a>\n                  <%= G._('to see your winning ratio in all games.') %>\n                </span>\n              </li>\n            <% } %>\n          </ul>\n          <br />\n          <div id='sliderContainer'>\n            <div id='sliderIndicator' style='left: <%= Math.floor(winRatio[0] * 4.35) %>px;'>\n              <div id='sliderIndicatorText'>\n                <strong><%= G._('You') %>:</strong><br />\n                <img src='/images/rank-<%= winRatio[2] %>.png' /><br />\n                <%= winRatio[0] %>%\n              </div>\n              <div id='sliderArrowDown' class='sprite bottomarrow'></div>\n            </div>\n            <div id='sliderRule'>\n              <div id='sliderElement0'  class='sliderElement beginner'></div>\n              <div id='sliderElement1'  class='sliderElement beginner'></div>\n              <div id='sliderElement2'  class='sliderElement beginner'></div>\n              <div id='sliderElement3'  class='sliderElement intermediate'></div>\n              <div id='sliderElement4'  class='sliderElement intermediate'></div>\n              <div id='sliderElement5'  class='sliderElement intermediate'></div>\n              <div id='sliderElement6'  class='sliderElement intermediate'></div>\n              <div id='sliderElement7'  class='sliderElement intermediate'></div>\n              <div id='sliderElement8'  class='sliderElement intermediate'></div>\n              <div id='sliderElement9'  class='sliderElement advanced'></div>\n              <div id='sliderElement10' class='sliderElement advanced'></div>\n              <div id='sliderElement11' class='sliderElement advanced'></div>\n              <div id='sliderElement12' class='sliderElement advanced'></div>\n            </div>\n            <div id='sliderHoverMsg'>\n              <%= G._('Hover the mouse over any section for more detailed information about the winning ratio') %>\n            </div>\n            <div id='sliderInfo' style='display: none;'>\n              <div id='sliderArrowUp' class='sprite toparrow'></div>\n              <div id='sliderInfoContent'>\n                <div id='sliderInfoText'></div>\n                <img id='sliderInfoCard' src='/images/transparent-20-20.gif' />\n                <div id='sliderInfoLevel'></div>\n              </div>\n            </div>\n          </div>\n        <% } %>\n      <% } else {  %>\n        <span class='bigFont'>\n          <%= G._('Did you like this game?') %>\n          <a id='registerLink' class='yellowcolor' href='/<%= G.lang() %>/users/sign_up'><%= G._('Sign up now!') %></a>\n          <br />\n          <%= G._('Already have an account?') %>\n          <a id='signInLink' class='yellowcolor' href='/<%= G.lang() %>/users/sign_in'><%= G._('Login') %></a>\n        </span>\n      <% } %>\n    <% } %>\n  <% } else { %>\n    <%= G._('This game has ended.') %><br /><br />\n    <% if (!Game.observer) { %>\n      <%= G._('You will be contacted by email with the results.') %><br />\n      <%= G._('Please check the email you registered with within a few hours.') %>\n    <% } %>\n  <% } %>\n</div>\n");window.JST["notifications/competition_game"]=a("<%= G._('You are in') %>\n<a href='<%= '/' + G.lang() + '/competitions/' + competition_id %>'><%= G._('this competition') %></a>,\n<%= G._('And you have a game that starts now') %>.\n<a href='<%= '/' + G.lang() + '/games/' + game_id + '/hands' %>' class='redcolor'><%= G._('Click here') %></a>\n<%= G._('to go to your game.') %>\n");window.JST["notifications/coplayer_in_game"]=a("<% if (gid > 0) { %>\n  <a href='<%= '/' + G.lang() + '/games/' + gid + '/hands' %>' class='yellowbutton sprite noFloat'><%= G._('Go to game of') %> <strong><%= login %></strong></a>\n<% } else { %>\n  <%= G._('Your friend') + ' ( ' + login + ' ) ' + G._('is not currently in a game') %>\n<% } %>\n");window.JST["notifications/friend_action_box"]=a("<ul>\n  <li>\n    <% if (G.lang() == 'en') { %>\n      <img src='/images/go-to-game-en.png'>\n    <% } else { %>\n      <img src='/images/go-to-game-ar.png'>\n    <% } %>\n    <a href='#' id='whereIsHe'><%= G._('Go to game') %></a>\n  </li>\n  <% if (typeof(Game) != 'undefined' && !Game.observer && _.indexOf(infoRead('players', []), coplayerID) == -1) { %>\n    <li>\n      <img src='/images/invite.png'>\n      <a href='#' id='invite'><%= G._('Invite to game') %></a>\n    </li>\n  <% } %>\n</ul>\n");window.JST["notifications/friendship_invitation"]=a("<strong><%= inviter_login %></strong> <%= G._('wants to become your friend') %>.\n<a href='<%= '/' + G.lang() + '/users/edit#tab3' %>' target='_blank'><%= G._('Click here') %></a> <%= G._('to accept the invitation') %>.\n");window.JST["notifications/invitation"]=a("<%= G._('Your friend') %> <strong><%= inviter_login %></strong> <%= G._('is inviting you to play.') %>\n<a href='<%= '/' + G.lang() + '/games/' + gid + '/hands' %>' class='redcolor'><%= G._('Click here') %></a>\n<%= G._('to play with') %>  <strong><%= inviter_login %></strong>.\n<% if (typeof(password) != 'undefined' && password.length != 0) { %>\n  <strong><%= G._('Password') %>:</strong> <%= password %>\n<% } %>\n");window.JST["notifications/new_admins_complaints"]=a("<%= G._('New complaints') %>. <a href='<%= '/' + G.lang() + '/admin/complaints' %>' target='_blank'><%= G._('Click here') %></a> <%= G._('to go to the complaints page') %>.\n");window.JST["notifications/new_competition_complaints"]=a("<%= G._('New complaints in your competition') %>. <a href='<%= '/' + G.lang() + '/competitions/' + competition_id %>' target='_blank'><%= G._('Click here') %></a> <%= G._('to go to the competition page') %>.\n");window.JST["templates/event_box"]=a("<h3><%= G._('Become a Fan of') %> <%= tName %></h3>\n<img src='/images/events/<%= teamURL %>' class='teamLBFlag'>\n<div class='joinTeamInfo'>\n      	<ul class='discbullets'>\n    <li><%= G._('Support your favorite team by scoring goals for them! every jawaker game you win will score goals for your team!') %></li>\n    <li><%= G._('You can increase the goals you score for your team with each win by increasing your multiplier') %></li>\n    <li><h4 class='bold'><%= G._('If you become the top scorer for your team and your team wins on Jawaker when the time is up, you will get') %>\n      <span class='underline'><%= G._('Two Weeks Basha subscription') %></span><img src='/images/tarboosh.png' class='teamLBSmallImg'>.</h4>\n    </li>\n    <li><%= G._('By becoming a fan you will receive the') %>\n      <span class='bold underline'><%= G._('world cup') %></span> <img src='/images/goods/world_cup-0.png' class='teamLBSmallImg'>\n      <%= G._('on the Jawaker Store') %>.</li>\n    <li><%= G._('** Only public games in which you play from beginning to end and do not change your seat will be counted as goals.') %></li>\n  </ul>\n      	<div class='joinTeamAction'>\n      		<p>\n      			<%= G._('I would like to score') %>\n      			<select id='selectMul' style='width: 50px'>\n        <% _.each(_.range(nextMul, 31), function(x) { %>\n          <option><%= x %></option>\n        <% }); %>\n      			</select>\n      			<%= G._('goals for') %>\n      <%= tName %>\n      <%= G._('each time I win a game on Jawaker') %>\n      <%= G._('in return for') %>\n      			<b id='eventTokens'><%= numTokens * (nextMul * nextMul - currMul * currMul) %></b>\n      			<%= G._('tokens') %><img src='/images/token.png'>.\n      		</p>\n      	</div>\n      	<a href='#' id='becomeAFan'><%= G._('Become a Fan') %></a>\n      	<br/>\n  <p>\n      		<% if (typeof(User.info.id) != 'undefined') { %>\n           <%= G._('You currently have') + ' ' + User.info['game_tokens'] + ' ' + G._('Tokens') %><img src='/images/token.png'>.\n           <a href='/<%= G.lang() %>/buy/tokens' id='buyToken'><%= G._('Buy More Tokens') %></a>\n          <% } %>\n      	</p>\n</div>\n");window.JST["templates/lightbox"]=a('<div id="overlay" style="display: none;">\n</div>\n<div id="facebox" style="display:none;">\n  <div class="popup">\n    <table id="facebox_table">\n      <tbody>\n        <tr>\n          <td class="tl"/><td class="b"/><td class="tr"/>\n        </tr>\n        <tr>\n          <td class="b"/>\n          <td class="body">\n            <div id="faceboxContent">\n            </div>\n            <div id="faceboxFooter">\n              <a href="#" class="close">\n                <%= G._(\'Close\') %> \'[x]\n              </a>\n            </div>\n          </td>\n          <td class="b"/>\n        </tr>\n        <tr>\n          <td class="bl"/><td class="b"/><td class="br"/>\n        </tr>\n      </tbody>\n    </table>\n  </div>\n</div>\n');window.JST["templates/smilies_box"]=a("<table>\n  <% var per_row = 5; %>\n  <% for(var ri = 0; ri < Math.ceil(Chat.smilies.length / per_row); ri++) { %>\n    <tr>\n      <% for(var i = 0; i < per_row; i++) { %>\n        <% var imgIndex = per_row * ri + i; %>\n        <% if (imgIndex < Chat.smilies.length) { %>\n          <td><img src='/images/smilies/<%= Chat.smilies[imgIndex][0] %>' rel='<%= imgIndex %>'></td>\n        <% } %>\n      <% } %>\n    </tr>\n  <% } %>\n</table>\n");window.JST["users/friend_list"]=a("<div class='premium content inviteFriendsList'>\n  <h2><%= G._('Invite Your Friends') %></h2>\n  <form action='/<%= G.lang() %>/users/send_invite' method='POST'>\n    <p>\n      <%= G._('Let us play cards together online on Jawaker!') %>\n      <input class='blackbutton sprite' type='submit' value='<%= G._('Send') %>' />\n    </p>\n    <ul>\n      <% for (var i = 0, l = list.length; i < l; i++) { %>\n        <li>\n          <input type='checkbox' value='<%= list[i][1] %>' name='emails[]' checked='checked' />\n          <%= (list[i][0] ? list[i][0] : ' - ') + list[i][1] %>\n        </li>\n      <% } %>\n    </ul>\n  </form>\n</div>\n");window.JST["users/player_box"]=a("<div class='playerInfo floatleft'>\n  <img class='playerAvatar floatleft' src='<%= avatar %>'>\n  <ul class='floatleft'>\n    <li class='bold'><%= login %></li>\n    <li>\n      <% if (relation === 1) { %>\n        <img src='/images/icon-friend.png' />\n      <% } %>\n      <% if (relation === 3 || relation === 4) { %>\n        <img src='/images/icon-half-friend.png' />\n      <% } %>\n      <% if (relation === 5) { %>\n        <img src='/images/icon-block.png' />\n      <% } %>\n      <img class='menuArrow' />\n      <div class='menuList' style='display: none;'>\n        <% if (relation === 0) { %>\n          <a class='addCoPlayer' href='#' rel='<%= id %>-3'>\n            <img src='/images/icon-friend.png' />\n            <span><%= G._('Add Friend') %></span>\n          </a>\n        <% } %>\n        <% if (relation === 1) { %>\n          <a class='addCoPlayer' href='#' rel='<%= id %>-0'>\n            <img src='/images/icon-unfriend.png' />\n            <span><%= G._('Delete') %></span>\n          </a>\n        <% } %>\n        <% if (relation === 3) { %>\n          <a class='addCoPlayer' href='#' rel='<%= id %>-0'>\n            <img src='/images/icon-unfriend.png' />\n            <span><%= G._('Uninvite') %></span>\n          </a>\n        <% } %>\n        <% if (relation === 4) { %>\n          <a class='addCoPlayer' href='#' rel='<%= id %>-1'>\n            <img src='/images/icon-friend.png' />\n            <span><%= G._('Accept Friend') %></span>\n          </a>\n          <br />\n          <a class='addCoPlayer' href='#' rel='<%= id %>-0'>\n            <img src='/images/icon-unfriend.png' />\n            <span><%= G._('Refuse') %></span>\n          </a>\n        <% } %>\n        <% if (relation !== 5) { %>\n          <br />\n          <a class='addCoPlayer' href='#' rel='<%= id %>-5'>\n            <img src='/images/icon-block.png' />\n            <span><%= G._('Block') %></span>\n          </a>\n        <% } %>\n        <% if (relation === 5) { %>\n          <a class='addCoPlayer' href='#' rel='<%= id %>-0'>\n            <img src='/images/icon-unblock.png' />\n            <span><%= G._('Unblock') %></span>\n          </a>\n        <% } %>\n        <% if (User.hasAdminFeature('delete_user')) { %>\n          <br />\n          <a class='adminDeleteUser' href='#' rel='<%= id %>'>\n            <img src='/images/icon-complain.png' />\n            <span><%= G._('Delete User') %></span>\n          </a>\n        <% } %>\n        <% if (User.hasAdminFeature('chat_ban')) { %>\n          <br />\n          <a class='adminRequestDelete' href='#' rel='<%= id %>'>\n            <img src='/images/icon-complain.png' />\n            <span><%= G._('Request Delete') %></span>\n          </a>\n          <br />\n        <% } %>\n      </div>\n    </li>\n  </ul>\n</div>\n")})();

Youez - 2016 - github.com/yon3zu
LinuXploit