var gSmConfig=new (function(){this.VERSION=6;this.MAX_CRITERIONS=64;this.MAX_CRITERION_LENGTH=64;this.MAX_CATEGORY_LENGTH=64;this.MAX_TREE_ID_LENGTH=64;this.MAX_ID_LENGTH=64;this.VIEW_ID_LENGTH=16;this.ID_RES=["|","*","\n","\t","\r"];this.CRITERION_RES=["|","*","\n","\t","\r",";","=","/","#"];this.CATEGORY_RES=["|","*","\n","\t","\r",";","=","/","#"];this.TIMEOUT=300;this.MAX_LOG_LENGTH=990;this.ENCODING="utf-8";this.setEncoding=function(a){this.ENCODING=a}})();(function(be,N){var au=be.document,bw=be.navigator,bn=be.location;var b=(function(){var bG=function(b0,b1){return new bG.fn.init(b0,b1,bE)},bV=be.jQuery,bI=be.$,bE,bZ=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bO=/\S/,bK=/^\s+/,bF=/\s+$/,bJ=/\d/,bC=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bP=/^[\],:{}\s]*$/,bX=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bR=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bL=/(?:^|:|,)(?:\s*\[)+/g,bA=/(webkit)[ \/]([\w.]+)/,bT=/(opera)(?:.*version)?[ \/]([\w.]+)/,bS=/(msie) ([\w.]+)/,bU=/(mozilla)(?:.*? rv:([\w.]+))?/,bY=bw.userAgent,bW,bD,e,bN=Object.prototype.toString,bH=Object.prototype.hasOwnProperty,bB=Array.prototype.push,bM=Array.prototype.slice,bQ=String.prototype.trim,bx=Array.prototype.indexOf,bz={};bG.fn=bG.prototype={constructor:bG,init:function(b0,b4,b3){var b2,b5,b1,b6;if(!b0){return this}if(b0.nodeType){this.context=this[0]=b0;this.length=1;return this}if(b0==="body"&&!b4&&au.body){this.context=au;this[0]=au.body;this.selector=b0;this.length=1;return this}if(typeof b0==="string"){if(b0.charAt(0)==="<"&&b0.charAt(b0.length-1)===">"&&b0.length>=3){b2=[null,b0,null]}else{b2=bZ.exec(b0)}if(b2&&(b2[1]||!b4)){if(b2[1]){b4=b4 instanceof bG?b4[0]:b4;b6=(b4?b4.ownerDocument||b4:au);b1=bC.exec(b0);if(b1){if(bG.isPlainObject(b4)){b0=[au.createElement(b1[1])];bG.fn.attr.call(b0,b4,true)}else{b0=[b6.createElement(b1[1])]}}else{b1=bG.buildFragment([b2[1]],[b6]);b0=(b1.cacheable?bG.clone(b1.fragment):b1.fragment).childNodes}return bG.merge(this,b0)}else{b5=au.getElementById(b2[2]);if(b5&&b5.parentNode){if(b5.id!==b2[2]){return b3.find(b0)}this.length=1;this[0]=b5}this.context=au;this.selector=b0;return this}}else{if(!b4||b4.jquery){return(b4||b3).find(b0)}else{return this.constructor(b4).find(b0)}}}else{if(bG.isFunction(b0)){return b3.ready(b0)}}if(b0.selector!==N){this.selector=b0.selector;this.context=b0.context}return bG.makeArray(b0,this)},selector:"",jquery:"1.6.1",length:0,size:function(){return this.length},toArray:function(){return bM.call(this,0)},get:function(b0){return b0==null?this.toArray():(b0<0?this[this.length+b0]:this[b0])},pushStack:function(b1,b3,b0){var b2=this.constructor();if(bG.isArray(b1)){bB.apply(b2,b1)}else{bG.merge(b2,b1)}b2.prevObject=this;b2.context=this.context;if(b3==="find"){b2.selector=this.selector+(this.selector?" ":"")+b0}else{if(b3){b2.selector=this.selector+"."+b3+"("+b0+")"}}return b2},each:function(b1,b0){return bG.each(this,b1,b0)},ready:function(b0){bG.bindReady();bD.done(b0);return this},eq:function(b0){return b0===-1?this.slice(b0):this.slice(b0,+b0+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bM.apply(this,arguments),"slice",bM.call(arguments).join(","))},map:function(b0){return this.pushStack(bG.map(this,function(b2,b1){return b0.call(b2,b1,b2)}))},end:function(){return this.prevObject||this.constructor(null)},push:bB,sort:[].sort,splice:[].splice};bG.fn.init.prototype=bG.fn;bG.extend=bG.fn.extend=function(){var b9,b2,b0,b1,b6,b7,b5=arguments[0]||{},b4=1,b3=arguments.length,b8=false;if(typeof b5==="boolean"){b8=b5;b5=arguments[1]||{};b4=2}if(typeof b5!=="object"&&!bG.isFunction(b5)){b5={}}if(b3===b4){b5=this;--b4}for(;b4<b3;b4++){if((b9=arguments[b4])!=null){for(b2 in b9){b0=b5[b2];b1=b9[b2];if(b5===b1){continue}if(b8&&b1&&(bG.isPlainObject(b1)||(b6=bG.isArray(b1)))){if(b6){b6=false;b7=b0&&bG.isArray(b0)?b0:[]}else{b7=b0&&bG.isPlainObject(b0)?b0:{}}b5[b2]=bG.extend(b8,b7,b1)}else{if(b1!==N){b5[b2]=b1}}}}}return b5};bG.extend({noConflict:function(b0){if(be.$===bG){be.$=bI}if(b0&&be.jQuery===bG){be.jQuery=bV}return bG},isReady:false,readyWait:1,holdReady:function(b0){if(b0){bG.readyWait++}else{bG.ready(true)}},ready:function(b0){if((b0===true&&!--bG.readyWait)||(b0!==true&&!bG.isReady)){if(!au.body){return setTimeout(bG.ready,1)}bG.isReady=true;if(b0!==true&&--bG.readyWait>0){return}bD.resolveWith(au,[bG]);if(bG.fn.trigger){bG(au).trigger("ready").unbind("ready")}}},bindReady:function(){if(bD){return}bD=bG._Deferred();if(au.readyState==="complete"){return setTimeout(bG.ready,1)}if(au.addEventListener){au.addEventListener("DOMContentLoaded",e,false);be.addEventListener("load",bG.ready,false)}else{if(au.attachEvent){au.attachEvent("onreadystatechange",e);be.attachEvent("onload",bG.ready);var b0=false;try{b0=be.frameElement==null}catch(b1){}if(au.documentElement.doScroll&&b0){by()}}}},isFunction:function(b0){return bG.type(b0)==="function"},isArray:Array.isArray||function(b0){return bG.type(b0)==="array"},isWindow:function(b0){return b0&&typeof b0==="object"&&"setInterval" in b0},isNaN:function(b0){return b0==null||!bJ.test(b0)||isNaN(b0)},type:function(b0){return b0==null?String(b0):bz[bN.call(b0)]||"object"},isPlainObject:function(b1){if(!b1||bG.type(b1)!=="object"||b1.nodeType||bG.isWindow(b1)){return false}if(b1.constructor&&!bH.call(b1,"constructor")&&!bH.call(b1.constructor.prototype,"isPrototypeOf")){return false}var b0;for(b0 in b1){}return b0===N||bH.call(b1,b0)},isEmptyObject:function(b1){for(var b0 in b1){return false}return true},error:function(b0){throw b0},parseJSON:function(b0){if(typeof b0!=="string"||!b0){return null}b0=bG.trim(b0);if(be.JSON&&be.JSON.parse){return be.JSON.parse(b0)}if(bP.test(b0.replace(bX,"@").replace(bR,"]").replace(bL,""))){return(new Function("return "+b0))()}bG.error("Invalid JSON: "+b0)},parseXML:function(b2,b0,b1){if(be.DOMParser){b1=new DOMParser();b0=b1.parseFromString(b2,"text/xml")}else{b0=new ActiveXObject("Microsoft.XMLDOM");b0.async="false";b0.loadXML(b2)}b1=b0.documentElement;if(!b1||!b1.nodeName||b1.nodeName==="parsererror"){bG.error("Invalid XML: "+b2)}return b0},noop:function(){},globalEval:function(b0){if(b0&&bO.test(b0)){(be.execScript||function(b1){be["eval"].call(be,b1)})(b0)}},nodeName:function(b1,b0){return b1.nodeName&&b1.nodeName.toUpperCase()===b0.toUpperCase()},each:function(b3,b6,b2){var b1,b4=0,b5=b3.length,b0=b5===N||bG.isFunction(b3);if(b2){if(b0){for(b1 in b3){if(b6.apply(b3[b1],b2)===false){break}}}else{for(;b4<b5;){if(b6.apply(b3[b4++],b2)===false){break}}}}else{if(b0){for(b1 in b3){if(b6.call(b3[b1],b1,b3[b1])===false){break}}}else{for(;b4<b5;){if(b6.call(b3[b4],b4,b3[b4++])===false){break}}}}return b3},trim:bQ?function(b0){return b0==null?"":bQ.call(b0)}:function(b0){return b0==null?"":b0.toString().replace(bK,"").replace(bF,"")},makeArray:function(b3,b1){var b0=b1||[];if(b3!=null){var b2=bG.type(b3);if(b3.length==null||b2==="string"||b2==="function"||b2==="regexp"||bG.isWindow(b3)){bB.call(b0,b3)}else{bG.merge(b0,b3)}}return b0},inArray:function(b2,b3){if(bx){return bx.call(b3,b2)}for(var b0=0,b1=b3.length;b0<b1;b0++){if(b3[b0]===b2){return b0}}return -1},merge:function(b4,b2){var b3=b4.length,b1=0;if(typeof b2.length==="number"){for(var b0=b2.length;b1<b0;b1++){b4[b3++]=b2[b1]}}else{while(b2[b1]!==N){b4[b3++]=b2[b1++]}}b4.length=b3;return b4},grep:function(b1,b6,b0){var b2=[],b5;b0=!!b0;for(var b3=0,b4=b1.length;b3<b4;b3++){b5=!!b6(b1[b3],b3);if(b0!==b5){b2.push(b1[b3])}}return b2},map:function(b0,b7,b8){var b5,b6,b4=[],b2=0,b1=b0.length,b3=b0 instanceof bG||b1!==N&&typeof b1==="number"&&((b1>0&&b0[0]&&b0[b1-1])||b1===0||bG.isArray(b0));if(b3){for(;b2<b1;b2++){b5=b7(b0[b2],b2,b8);if(b5!=null){b4[b4.length]=b5}}}else{for(b6 in b0){b5=b7(b0[b6],b6,b8);if(b5!=null){b4[b4.length]=b5}}}return b4.concat.apply([],b4)},guid:1,proxy:function(b4,b3){if(typeof b3==="string"){var b2=b4[b3];b3=b4;b4=b2}if(!bG.isFunction(b4)){return N}var b0=bM.call(arguments,2),b1=function(){return b4.apply(b3,b0.concat(bM.call(arguments)))};b1.guid=b4.guid=b4.guid||b1.guid||bG.guid++;return b1},access:function(b0,b8,b6,b2,b5,b7){var b1=b0.length;if(typeof b8==="object"){for(var b3 in b8){bG.access(b0,b3,b8[b3],b2,b5,b6)}return b0}if(b6!==N){b2=!b7&&b2&&bG.isFunction(b6);for(var b4=0;b4<b1;b4++){b5(b0[b4],b8,b2?b6.call(b0[b4],b4,b5(b0[b4],b8)):b6,b7)}return b0}return b1?b5(b0[0],b8):N},now:function(){return(new Date()).getTime()},uaMatch:function(b1){b1=b1.toLowerCase();var b0=bA.exec(b1)||bT.exec(b1)||bS.exec(b1)||b1.indexOf("compatible")<0&&bU.exec(b1)||[];return{browser:b0[1]||"",version:b0[2]||"0"}},sub:function(){function b0(b3,b4){return new b0.fn.init(b3,b4)}bG.extend(true,b0,this);b0.superclass=this;b0.fn=b0.prototype=this();b0.fn.constructor=b0;b0.sub=this.sub;b0.fn.init=function b2(b3,b4){if(b4&&b4 instanceof bG&&!(b4 instanceof b0)){b4=b0(b4)}return bG.fn.init.call(this,b3,b4,b1)};b0.fn.init.prototype=b0.fn;var b1=b0(au);return b0},browser:{}});bG.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b1,b0){bz["[object "+b0+"]"]=b0.toLowerCase()});bW=bG.uaMatch(bY);if(bW.browser){bG.browser[bW.browser]=true;bG.browser.version=bW.version}if(bG.browser.webkit){bG.browser.safari=true}if(bO.test("\xA0")){bK=/^[\s\xA0]+/;bF=/[\s\xA0]+$/}bE=bG(au);if(au.addEventListener){e=function(){au.removeEventListener("DOMContentLoaded",e,false);bG.ready()}}else{if(au.attachEvent){e=function(){if(au.readyState==="complete"){au.detachEvent("onreadystatechange",e);bG.ready()}}}}function by(){if(bG.isReady){return}try{au.documentElement.doScroll("left")}catch(b0){setTimeout(by,1);return}bG.ready()}return bG})();var a="done fail isResolved isRejected promise then always pipe".split(" "),aJ=[].slice;b.extend({_Deferred:function(){var bz=[],bA,bx,by,e={done:function(){if(!by){var bC=arguments,bD,bG,bF,bE,bB;if(bA){bB=bA;bA=0}for(bD=0,bG=bC.length;bD<bG;bD++){bF=bC[bD];bE=b.type(bF);if(bE==="array"){e.done.apply(e,bF)}else{if(bE==="function"){bz.push(bF)}}}if(bB){e.resolveWith(bB[0],bB[1])}}return this},resolveWith:function(bC,bB){if(!by&&!bA&&!bx){bB=bB||[];bx=1;try{while(bz[0]){bz.shift().apply(bC,bB)}}finally{bA=[bC,bB];bx=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return !!(bx||bA)},cancel:function(){by=1;bz=[];return this}};return e},Deferred:function(bx){var e=b._Deferred(),bz=b._Deferred(),by;b.extend(e,{then:function(bB,bA){e.done(bB).fail(bA);return this},always:function(){return e.done.apply(e,arguments).fail.apply(this,arguments)},fail:bz.done,rejectWith:bz.resolveWith,reject:bz.resolve,isRejected:bz.isResolved,pipe:function(bB,bA){return b.Deferred(function(bC){b.each({done:[bB,"resolve"],fail:[bA,"reject"]},function(bE,bH){var bD=bH[0],bG=bH[1],bF;if(b.isFunction(bD)){e[bE](function(){bF=bD.apply(this,arguments);if(bF&&b.isFunction(bF.promise)){bF.promise().then(bC.resolve,bC.reject)}else{bC[bG](bF)}})}else{e[bE](bC[bG])}})}).promise()},promise:function(bB){if(bB==null){if(by){return by}by=bB={}}var bA=a.length;while(bA--){bB[a[bA]]=e[a[bA]]}return bB}});e.done(bz.cancel).fail(e.cancel);delete e.cancel;if(bx){bx.call(e,e)}return e},when:function(bC){var bx=arguments,by=0,bB=bx.length,bA=bB,e=bB<=1&&bC&&b.isFunction(bC.promise)?bC:b.Deferred();function bz(bD){return function(bE){bx[bD]=arguments.length>1?aJ.call(arguments,0):bE;if(!(--bA)){e.resolveWith(e,aJ.call(bx,0))}}}if(bB>1){for(;by<bB;by++){if(bx[by]&&b.isFunction(bx[by].promise)){bx[by].promise().then(bz(by),e.reject)}else{--bA}}if(!bA){e.resolveWith(e,bx)}}else{if(e!==bC){e.resolveWith(e,bB?[bC]:[])}}return e.promise()}});b.support=(function(){var bH=au.createElement("div"),bN=au.documentElement,bB,bO,bI,bz,bG,bC,bE,by,bF,bx,bK,bA,bD,bL,bP;bH.setAttribute("className","t");bH.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bB=bH.getElementsByTagName("*");bO=bH.getElementsByTagName("a")[0];if(!bB||!bB.length||!bO){return{}}bI=au.createElement("select");bz=bI.appendChild(au.createElement("option"));bG=bH.getElementsByTagName("input")[0];bE={leadingWhitespace:(bH.firstChild.nodeType===3),tbody:!bH.getElementsByTagName("tbody").length,htmlSerialize:!!bH.getElementsByTagName("link").length,style:/top/.test(bO.getAttribute("style")),hrefNormalized:(bO.getAttribute("href")==="/a"),opacity:/^0.55$/.test(bO.style.opacity),cssFloat:!!bO.style.cssFloat,checkOn:(bG.value==="on"),optSelected:bz.selected,getSetAttribute:bH.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bG.checked=true;bE.noCloneChecked=bG.cloneNode(true).checked;bI.disabled=true;bE.optDisabled=!bz.disabled;try{delete bH.test}catch(bM){bE.deleteExpando=false}if(!bH.addEventListener&&bH.attachEvent&&bH.fireEvent){bH.attachEvent("onclick",function bJ(){bE.noCloneEvent=false;bH.detachEvent("onclick",bJ)});bH.cloneNode(true).fireEvent("onclick")}bG=au.createElement("input");bG.value="t";bG.setAttribute("type","radio");bE.radioValue=bG.value==="t";bG.setAttribute("checked","checked");bH.appendChild(bG);by=au.createDocumentFragment();by.appendChild(bH.firstChild);bE.checkClone=by.cloneNode(true).cloneNode(true).lastChild.checked;bH.innerHTML="";bH.style.width=bH.style.paddingLeft="1px";bF=au.createElement("body");bx={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};for(bL in bx){bF.style[bL]=bx[bL]}bF.appendChild(bH);bN.insertBefore(bF,bN.firstChild);bE.appendChecked=bG.checked;bE.boxModel=bH.offsetWidth===2;if("zoom" in bH.style){bH.style.display="inline";bH.style.zoom=1;bE.inlineBlockNeedsLayout=(bH.offsetWidth===2);bH.style.display="";bH.innerHTML="<div style='width:4px;'></div>";bE.shrinkWrapBlocks=(bH.offsetWidth!==2)}bH.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bK=bH.getElementsByTagName("td");bP=(bK[0].offsetHeight===0);bK[0].style.display="";bK[1].style.display="none";bE.reliableHiddenOffsets=bP&&(bK[0].offsetHeight===0);bH.innerHTML="";if(au.defaultView&&au.defaultView.getComputedStyle){bC=au.createElement("div");bC.style.width="0";bC.style.marginRight="0";bH.appendChild(bC);bE.reliableMarginRight=(parseInt((au.defaultView.getComputedStyle(bC,null)||{marginRight:0}).marginRight,10)||0)===0}bF.innerHTML="";bN.removeChild(bF);if(bH.attachEvent){for(bL in {submit:1,change:1,focusin:1}){bD="on"+bL;bP=(bD in bH);if(!bP){bH.setAttribute(bD,"return;");bP=(typeof bH[bD]==="function")}bE[bL+"Bubbles"]=bP}}return bE})();b.boxModel=b.support.boxModel;var aQ=/^(?:\{.*\}|\[.*\])$/,az=/([a-z])([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&&!W(e)},data:function(bz,bx,bB,bA){if(!b.acceptData(bz)){return}var bE=b.expando,bD=typeof bx==="string",bC,bF=bz.nodeType,e=bF?b.cache:bz,by=bF?bz[b.expando]:bz[b.expando]&&b.expando;if((!by||(bA&&by&&!e[by][bE]))&&bD&&bB===N){return}if(!by){if(bF){bz[b.expando]=by=++b.uuid}else{by=b.expando}}if(!e[by]){e[by]={};if(!bF){e[by].toJSON=b.noop}}if(typeof bx==="object"||typeof bx==="function"){if(bA){e[by][bE]=b.extend(e[by][bE],bx)}else{e[by]=b.extend(e[by],bx)}}bC=e[by];if(bA){if(!bC[bE]){bC[bE]={}}bC=bC[bE]}if(bB!==N){bC[b.camelCase(bx)]=bB}if(bx==="events"&&!bC[bx]){return bC[bE]&&bC[bE].events}return bD?bC[b.camelCase(bx)]:bC},removeData:function(bA,by,bB){if(!b.acceptData(bA)){return}var bD=b.expando,bE=bA.nodeType,bx=bE?b.cache:bA,bz=bE?bA[b.expando]:b.expando;if(!bx[bz]){return}if(by){var bC=bB?bx[bz][bD]:bx[bz];if(bC){delete bC[by];if(!W(bC)){return}}}if(bB){delete bx[bz][bD];if(!W(bx[bz])){return}}var e=bx[bz][bD];if(b.support.deleteExpando||bx!=be){delete bx[bz]}else{bx[bz]=null}if(e){bx[bz]={};if(!bE){bx[bz].toJSON=b.noop}bx[bz][bD]=e}else{if(bE){if(b.support.deleteExpando){delete bA[b.expando]}else{if(bA.removeAttribute){bA.removeAttribute(b.expando)}else{bA[b.expando]=null}}}}},_data:function(bx,e,by){return b.data(bx,e,by,true)},acceptData:function(bx){if(bx.nodeName){var e=b.noData[bx.nodeName.toLowerCase()];if(e){return !(e===true||bx.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(bA,bC){var bB=null;if(typeof bA==="undefined"){if(this.length){bB=b.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,by;for(var bz=0,bx=e.length;bz<bx;bz++){by=e[bz].name;if(by.indexOf("data-")===0){by=b.camelCase(by.substring(5));a7(this[0],by,bB[by])}}}}return bB}else{if(typeof bA==="object"){return this.each(function(){b.data(this,bA)})}}var bD=bA.split(".");bD[1]=bD[1]?"."+bD[1]:"";if(bC===N){bB=this.triggerHandler("getData"+bD[1]+"!",[bD[0]]);if(bB===N&&this.length){bB=b.data(this[0],bA);bB=a7(this[0],bA,bB)}return bB===N&&bD[1]?this.data(bD[0]):bB}else{return this.each(function(){var bF=b(this),bE=[bD[0],bC];bF.triggerHandler("setData"+bD[1]+"!",bE);b.data(this,bA,bC);bF.triggerHandler("changeData"+bD[1]+"!",bE)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a7(bz,by,bA){if(bA===N&&bz.nodeType===1){var bx="data-"+by.replace(az,"$1-$2").toLowerCase();bA=bz.getAttribute(bx);if(typeof bA==="string"){try{bA=bA==="true"?true:bA==="false"?false:bA==="null"?null:!b.isNaN(bA)?parseFloat(bA):aQ.test(bA)?b.parseJSON(bA):bA}catch(bB){}b.data(bz,by,bA)}else{bA=N}}return bA}function W(bx){for(var e in bx){if(e!=="toJSON"){return false}}return true}function bj(bA,bz,bC){var by=bz+"defer",bx=bz+"queue",e=bz+"mark",bB=b.data(bA,by,N,true);if(bB&&(bC==="queue"||!b.data(bA,bx,N,true))&&(bC==="mark"||!b.data(bA,e,N,true))){setTimeout(function(){if(!b.data(bA,bx,N,true)&&!b.data(bA,e,N,true)){b.removeData(bA,by,true);bB.resolve()}},0)}}b.extend({_mark:function(bx,e){if(bx){e=(e||"fx")+"mark";b.data(bx,e,(b.data(bx,e,N,true)||0)+1,true)}},_unmark:function(bA,bz,bx){if(bA!==true){bx=bz;bz=bA;bA=false}if(bz){bx=bx||"fx";var e=bx+"mark",by=bA?0:((b.data(bz,e,N,true)||1)-1);if(by){b.data(bz,e,by,true)}else{b.removeData(bz,e,true);bj(bz,bx,"mark")}}},queue:function(bx,e,bz){if(bx){e=(e||"fx")+"queue";var by=b.data(bx,e,N,true);if(bz){if(!by||b.isArray(bz)){by=b.data(bx,e,b.makeArray(bz),true)}else{by.push(bz)}}return by||[]}},dequeue:function(bz,by){by=by||"fx";var e=b.queue(bz,by),bx=e.shift(),bA;if(bx==="inprogress"){bx=e.shift()}if(bx){if(by==="fx"){e.unshift("inprogress")}bx.call(bz,function(){b.dequeue(bz,by)})}if(!e.length){b.removeData(bz,by+"queue",true);bj(bz,by,"queue")}}});b.fn.extend({queue:function(e,bx){if(typeof e!=="string"){bx=e;e="fx"}if(bx===N){return b.queue(this[0],e)}return this.each(function(){var by=b.queue(this,e,bx);if(e==="fx"&&by[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bx,e){bx=b.fx?b.fx.speeds[bx]||bx:bx;e=e||"fx";return this.queue(e,function(){var by=this;setTimeout(function(){b.dequeue(by,e)},bx)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bF,by){if(typeof bF!=="string"){by=bF;bF=N}bF=bF||"fx";var e=b.Deferred(),bx=this,bA=bx.length,bD=1,bB=bF+"defer",bC=bF+"queue",bE=bF+"mark",bz;function bG(){if(!(--bD)){e.resolveWith(bx,[bx])}}while(bA--){if((bz=b.data(bx[bA],bB,N,true)||(b.data(bx[bA],bC,N,true)||b.data(bx[bA],bE,N,true))&&b.data(bx[bA],bB,b._Deferred(),true))){bD++;bz.done(bG)}}bG();return e.promise()}});var aO=/[\n\t\r]/g,af=/\s+/,aS=/\r/g,g=/^(?:button|input)$/i,G=/^(?:button|input|object|select|textarea)$/i,m=/^a(?:rea)?$/i,an=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,ba=/\:/,a5,aZ;b.fn.extend({attr:function(e,bx){return b.access(this,e,bx,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bx){return b.access(this,e,bx,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=N;delete this[e]}catch(bx){}})},addClass:function(bD){if(b.isFunction(bD)){return this.each(function(bG){var bF=b(this);bF.addClass(bD.call(this,bG,bF.attr("class")||""))})}if(bD&&typeof bD==="string"){var e=(bD||"").split(af);for(var bz=0,by=this.length;bz<by;bz++){var bx=this[bz];if(bx.nodeType===1){if(!bx.className){bx.className=bD}else{var bA=" "+bx.className+" ",bC=bx.className;for(var bB=0,bE=e.length;bB<bE;bB++){if(bA.indexOf(" "+e[bB]+" ")<0){bC+=" "+e[bB]}}bx.className=b.trim(bC)}}}}return this},removeClass:function(bB){if(b.isFunction(bB)){return this.each(function(bF){var bE=b(this);bE.removeClass(bB.call(this,bF,bE.attr("class")))})}if((bB&&typeof bB==="string")||bB===N){var bC=(bB||"").split(af);for(var by=0,bx=this.length;by<bx;by++){var bA=this[by];if(bA.nodeType===1&&bA.className){if(bB){var bz=(" "+bA.className+" ").replace(aO," ");for(var bD=0,e=bC.length;bD<e;bD++){bz=bz.replace(" "+bC[bD]+" "," ")}bA.className=b.trim(bz)}else{bA.className=""}}}}return this},toggleClass:function(bz,bx){var by=typeof bz,e=typeof bx==="boolean";if(b.isFunction(bz)){return this.each(function(bB){var bA=b(this);bA.toggleClass(bz.call(this,bB,bA.attr("class"),bx),bx)})}return this.each(function(){if(by==="string"){var bC,bB=0,bA=b(this),bD=bx,bE=bz.split(af);while((bC=bE[bB++])){bD=e?bD:!bA.hasClass(bC);bA[bD?"addClass":"removeClass"](bC)}}else{if(by==="undefined"||by==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bz===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bz=" "+e+" ";for(var by=0,bx=this.length;by<bx;by++){if((" "+this[by].className+" ").replace(aO," ").indexOf(bz)>-1){return true}}return false},val:function(bz){var e,bx,by=this[0];if(!arguments.length){if(by){e=b.valHooks[by.nodeName.toLowerCase()]||b.valHooks[by.type];if(e&&"get" in e&&(bx=e.get(by,"value"))!==N){return bx}return(by.value||"").replace(aS,"")}return N}var bA=b.isFunction(bz);return this.each(function(bC){var bB=b(this),bD;if(this.nodeType!==1){return}if(bA){bD=bz.call(this,bC,bB.val())}else{bD=bz}if(bD==null){bD=""}else{if(typeof bD==="number"){bD+=""}else{if(b.isArray(bD)){bD=b.map(bD,function(bE){return bE==null?"":bE+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bD,"value")===N){this.value=bD}})}});b.extend({valHooks:{option:{get:function(e){var bx=e.attributes.value;return !bx||bx.specified?e.value:e.text}},select:{get:function(e){var bC,bA=e.selectedIndex,bD=[],bE=e.options,bz=e.type==="select-one";if(bA<0){return null}for(var bx=bz?bA:0,bB=bz?bA+1:bE.length;bx<bB;bx++){var by=bE[bx];if(by.selected&&(b.support.optDisabled?!by.disabled:by.getAttribute("disabled")===null)&&(!by.parentNode.disabled||!b.nodeName(by.parentNode,"optgroup"))){bC=b(by).val();if(bz){return bC}bD.push(bC)}}if(bz&&!bD.length&&bE.length){return b(bE[bA]).val()}return bD},set:function(bx,by){var e=b.makeArray(by);b(bx).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bx.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(bC,bz,bD,bB){var bx=bC.nodeType;if(!bC||bx===3||bx===8||bx===2){return N}if(bB&&bz in b.attrFn){return b(bC)[bz](bD)}if(!("getAttribute" in bC)){return b.prop(bC,bz,bD)}var by,e,bA=bx!==1||!b.isXMLDoc(bC);bz=bA&&b.attrFix[bz]||bz;e=b.attrHooks[bz];if(!e){if(an.test(bz)&&(typeof bD==="boolean"||bD===N||bD.toLowerCase()===bz.toLowerCase())){e=aZ}else{if(a5&&(b.nodeName(bC,"form")||ba.test(bz))){e=a5}}}if(bD!==N){if(bD===null){b.removeAttr(bC,bz);return N}else{if(e&&"set" in e&&bA&&(by=e.set(bC,bD,bz))!==N){return by}else{bC.setAttribute(bz,""+bD);return bD}}}else{if(e&&"get" in e&&bA){return e.get(bC,bz)}else{by=bC.getAttribute(bz);return by===null?N:by}}},removeAttr:function(bx,e){var by;if(bx.nodeType===1){e=b.attrFix[e]||e;if(b.support.getSetAttribute){bx.removeAttribute(e)}else{b.attr(bx,e,"");bx.removeAttributeNode(bx.getAttributeNode(e))}if(an.test(e)&&(by=b.propFix[e]||e) in bx){bx[by]=false}}},attrHooks:{type:{set:function(e,bx){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bx==="radio"&&b.nodeName(e,"input")){var by=e.value;e.setAttribute("type",bx);if(by){e.value=by}return bx}}}},tabIndex:{get:function(bx){var e=bx.getAttributeNode("tabIndex");return e&&e.specified?parseInt(e.value,10):G.test(bx.nodeName)||m.test(bx.nodeName)&&bx.href?0:N}}},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(bB,bz,bC){var bx=bB.nodeType;if(!bB||bx===3||bx===8||bx===2){return N}var by,e,bA=bx!==1||!b.isXMLDoc(bB);bz=bA&&b.propFix[bz]||bz;e=b.propHooks[bz];if(bC!==N){if(e&&"set" in e&&(by=e.set(bB,bC,bz))!==N){return by}else{return(bB[bz]=bC)}}else{if(e&&"get" in e&&(by=e.get(bB,bz))!==N){return by}else{return bB[bz]}}},propHooks:{}});aZ={get:function(bx,e){return bx[b.propFix[e]||e]?e.toLowerCase():N},set:function(bx,bz,e){var by;if(bz===false){b.removeAttr(bx,e)}else{by=b.propFix[e]||e;if(by in bx){bx[by]=bz}bx.setAttribute(e,e.toLowerCase())}return e}};b.attrHooks.value={get:function(bx,e){if(a5&&b.nodeName(bx,"button")){return a5.get(bx,e)}return bx.value},set:function(bx,by,e){if(a5&&b.nodeName(bx,"button")){return a5.set(bx,by,e)}bx.value=by}};if(!b.support.getSetAttribute){b.attrFix=b.propFix;a5=b.attrHooks.name=b.valHooks.button={get:function(by,bx){var e;e=by.getAttributeNode(bx);return e&&e.nodeValue!==""?e.nodeValue:N},set:function(by,bz,bx){var e=by.getAttributeNode(bx);if(e){e.nodeValue=bz;return bz}}};b.each(["width","height"],function(bx,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(by,bz){if(bz===""){by.setAttribute(e,"auto");return bz}}})})}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bx,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bz){var by=bz.getAttribute(e,2);return by===null?N:by}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||N},set:function(e,bx){return(e.style.cssText=""+bx)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bx){var e=bx.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}}})}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,bx){if(b.isArray(bx)){return(e.checked=b.inArray(b(e).val(),bx)>=0)}}})});var aG=Object.prototype.hasOwnProperty,a1=/\.(.*)$/,bg=/^(?:textarea|input|select)$/i,Q=/\./g,bk=/ /g,aF=/[^\w\s.|`]/g,J=function(e){return e.replace(aF,"\\$&")};b.event={add:function(bz,bD,bI,bB){if(bz.nodeType===3||bz.nodeType===8){return}if(bI===false){bI=bm}else{if(!bI){return}}var bx,bH;if(bI.handler){bx=bI;bI=bx.handler}if(!bI.guid){bI.guid=b.guid++}var bE=b._data(bz);if(!bE){return}var bJ=bE.events,bC=bE.handle;if(!bJ){bE.events=bJ={}}if(!bC){bE.handle=bC=function(bK){return typeof b!=="undefined"&&(!bK||b.event.triggered!==bK.type)?b.event.handle.apply(bC.elem,arguments):N}}bC.elem=bz;bD=bD.split(" ");var bG,bA=0,e;while((bG=bD[bA++])){bH=bx?b.extend({},bx):{handler:bI,data:bB};if(bG.indexOf(".")>-1){e=bG.split(".");bG=e.shift();bH.namespace=e.slice(0).sort().join(".")}else{e=[];bH.namespace=""}bH.type=bG;if(!bH.guid){bH.guid=bI.guid}var by=bJ[bG],bF=b.event.special[bG]||{};if(!by){by=bJ[bG]=[];if(!bF.setup||bF.setup.call(bz,bB,e,bC)===false){if(bz.addEventListener){bz.addEventListener(bG,bC,false)}else{if(bz.attachEvent){bz.attachEvent("on"+bG,bC)}}}}if(bF.add){bF.add.call(bz,bH);if(!bH.handler.guid){bH.handler.guid=bI.guid}}by.push(bH);b.event.global[bG]=true}bz=null},global:{},remove:function(bL,bG,by,bC){if(bL.nodeType===3||bL.nodeType===8){return}if(by===false){by=bm}var bO,bB,bD,bI,bJ=0,bz,bE,bH,bA,bF,e,bN,bK=b.hasData(bL)&&b._data(bL),bx=bK&&bK.events;if(!bK||!bx){return}if(bG&&bG.type){by=bG.handler;bG=bG.type}if(!bG||typeof bG==="string"&&bG.charAt(0)==="."){bG=bG||"";for(bB in bx){b.event.remove(bL,bB+bG)}return}bG=bG.split(" ");while((bB=bG[bJ++])){bN=bB;e=null;bz=bB.indexOf(".")<0;bE=[];if(!bz){bE=bB.split(".");bB=bE.shift();bH=new RegExp("(^|\\.)"+b.map(bE.slice(0).sort(),J).join("\\.(?:.*\\.)?")+"(\\.|$)")}bF=bx[bB];if(!bF){continue}if(!by){for(bI=0;bI<bF.length;bI++){e=bF[bI];if(bz||bH.test(e.namespace)){b.event.remove(bL,bN,e.handler,bI);bF.splice(bI--,1)}}continue}bA=b.event.special[bB]||{};for(bI=bC||0;bI<bF.length;bI++){e=bF[bI];if(by.guid===e.guid){if(bz||bH.test(e.namespace)){if(bC==null){bF.splice(bI--,1)}if(bA.remove){bA.remove.call(bL,e)}}if(bC!=null){break}}}if(bF.length===0||bC!=null&&bF.length===1){if(!bA.teardown||bA.teardown.call(bL,bE)===false){b.removeEvent(bL,bB,bK.handle)}bO=null;delete bx[bB]}}if(b.isEmptyObject(bx)){var bM=bK.handle;if(bM){bM.elem=null}delete bK.events;delete bK.handle;if(b.isEmptyObject(bK)){b.removeData(bL,N,true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(e,bD,bB,bI){var bG=e.type||e,by=[],bx;if(bG.indexOf("!")>=0){bG=bG.slice(0,-1);bx=true}if(bG.indexOf(".")>=0){by=bG.split(".");bG=by.shift();by.sort()}if((!bB||b.event.customEvent[bG])&&!b.event.global[bG]){return}e=typeof e==="object"?e[b.expando]?e:new b.Event(bG,e):new b.Event(bG);e.type=bG;e.exclusive=bx;e.namespace=by.join(".");e.namespace_re=new RegExp("(^|\\.)"+by.join("\\.(?:.*\\.)?")+"(\\.|$)");if(bI||!bB){e.preventDefault();e.stopPropagation()}if(!bB){b.each(b.cache,function(){var bK=b.expando,bJ=this[bK];if(bJ&&bJ.events&&bJ.events[bG]){b.event.trigger(e,bD,bJ.handle.elem)}});return}if(bB.nodeType===3||bB.nodeType===8){return}e.result=N;e.target=bB;bD=bD?b.makeArray(bD):[];bD.unshift(e);var bH=bB,bz=bG.indexOf(":")<0?"on"+bG:"";do{var bE=b._data(bH,"handle");e.currentTarget=bH;if(bE){bE.apply(bH,bD)}if(bz&&b.acceptData(bH)&&bH[bz]&&bH[bz].apply(bH,bD)===false){e.result=false;e.preventDefault()}bH=bH.parentNode||bH.ownerDocument||bH===e.target.ownerDocument&&be}while(bH&&!e.isPropagationStopped());if(!e.isDefaultPrevented()){var bA,bF=b.event.special[bG]||{};if((!bF._default||bF._default.call(bB.ownerDocument,e)===false)&&!(bG==="click"&&b.nodeName(bB,"a"))&&b.acceptData(bB)){try{if(bz&&bB[bG]){bA=bB[bz];if(bA){bB[bz]=null}b.event.triggered=bG;bB[bG]()}}catch(bC){}if(bA){bB[bz]=bA}b.event.triggered=N}}return e.result},handle:function(bD){bD=b.event.fix(bD||be.event);var bx=((b._data(this,"events")||{})[bD.type]||[]).slice(0),bC=!bD.exclusive&&!bD.namespace,bA=Array.prototype.slice.call(arguments,0);bA[0]=bD;bD.currentTarget=this;for(var bz=0,e=bx.length;bz<e;bz++){var bB=bx[bz];if(bC||bD.namespace_re.test(bB.namespace)){bD.handler=bB.handler;bD.data=bB.data;bD.handleObj=bB;var by=bB.handler.apply(this,bA);if(by!==N){bD.result=by;if(by===false){bD.preventDefault();bD.stopPropagation()}}if(bD.isImmediatePropagationStopped()){break}}}return bD.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(bA){if(bA[b.expando]){return bA}var bx=bA;bA=b.Event(bx);for(var by=this.props.length,bC;by;){bC=this.props[--by];bA[bC]=bx[bC]}if(!bA.target){bA.target=bA.srcElement||au}if(bA.target.nodeType===3){bA.target=bA.target.parentNode}if(!bA.relatedTarget&&bA.fromElement){bA.relatedTarget=bA.fromElement===bA.target?bA.toElement:bA.fromElement}if(bA.pageX==null&&bA.clientX!=null){var bz=bA.target.ownerDocument||au,bB=bz.documentElement,e=bz.body;bA.pageX=bA.clientX+(bB&&bB.scrollLeft||e&&e.scrollLeft||0)-(bB&&bB.clientLeft||e&&e.clientLeft||0);bA.pageY=bA.clientY+(bB&&bB.scrollTop||e&&e.scrollTop||0)-(bB&&bB.clientTop||e&&e.clientTop||0)}if(bA.which==null&&(bA.charCode!=null||bA.keyCode!=null)){bA.which=bA.charCode!=null?bA.charCode:bA.keyCode}if(!bA.metaKey&&bA.ctrlKey){bA.metaKey=bA.ctrlKey}if(!bA.which&&bA.button!==N){bA.which=(bA.button&1?1:(bA.button&2?3:(bA.button&4?2:0)))}return bA},guid:100000000,proxy:b.proxy,special:{ready:{setup:b.bindReady,teardown:b.noop},live:{add:function(e){b.event.add(this,r(e.origType,e.selector),b.extend({},e,{handler:al,guid:e.handler.guid}))},remove:function(e){b.event.remove(this,r(e.origType,e.selector),e)}},beforeunload:{setup:function(by,bx,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bx,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}}};b.removeEvent=au.removeEventListener?function(bx,e,by){if(bx.removeEventListener){bx.removeEventListener(e,by,false)}}:function(bx,e,by){if(bx.detachEvent){bx.detachEvent("on"+e,by)}};b.Event=function(bx,e){if(!this.preventDefault){return new b.Event(bx,e)}if(bx&&bx.type){this.originalEvent=bx;this.type=bx.type;this.isDefaultPrevented=(bx.defaultPrevented||bx.returnValue===false||bx.getPreventDefault&&bx.getPreventDefault())?j:bm}else{this.type=bx}if(e){b.extend(this,e)}this.timeStamp=b.now();this[b.expando]=true};function bm(){return false}function j(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=j;var bx=this.originalEvent;if(!bx){return}if(bx.preventDefault){bx.preventDefault()}else{bx.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=j;var bx=this.originalEvent;if(!bx){return}if(bx.stopPropagation){bx.stopPropagation()}bx.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=j;this.stopPropagation()},isDefaultPrevented:bm,isPropagationStopped:bm,isImmediatePropagationStopped:bm};var ae=function(by){var bx=by.relatedTarget;by.type=by.data;try{if(bx&&bx!==au&&!bx.parentNode){return}while(bx&&bx!==this){bx=bx.parentNode}if(bx!==this){b.event.handle.apply(this,arguments)}}catch(bz){}},aV=function(e){e.type=e.data;b.event.handle.apply(this,arguments)};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bx,e){b.event.special[bx]={setup:function(by){b.event.add(this,e,by&&by.selector?aV:ae,bx)},teardown:function(by){b.event.remove(this,e,by&&by.selector?aV:ae)}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(bx,e){if(!b.nodeName(this,"form")){b.event.add(this,"click.specialSubmit",function(bA){var bz=bA.target,by=bz.type;if((by==="submit"||by==="image")&&b(bz).closest("form").length){aY("submit",this,arguments)}});b.event.add(this,"keypress.specialSubmit",function(bA){var bz=bA.target,by=bz.type;if((by==="text"||by==="password")&&b(bz).closest("form").length&&bA.keyCode===13){aY("submit",this,arguments)}})}else{return false}},teardown:function(e){b.event.remove(this,".specialSubmit")}}}if(!b.support.changeBubbles){var bp,l=function(bx){var e=bx.type,by=bx.value;if(e==="radio"||e==="checkbox"){by=bx.checked}else{if(e==="select-multiple"){by=bx.selectedIndex>-1?b.map(bx.options,function(bz){return bz.selected}).join("-"):""}else{if(b.nodeName(bx,"select")){by=bx.selectedIndex}}}return by},ac=function ac(bz){var bx=bz.target,by,bA;if(!bg.test(bx.nodeName)||bx.readOnly){return}by=b._data(bx,"_change_data");bA=l(bx);if(bz.type!=="focusout"||bx.type!=="radio"){b._data(bx,"_change_data",bA)}if(by===N||bA===by){return}if(by!=null||bA){bz.type="change";bz.liveFired=N;b.event.trigger(bz,arguments[1],bx)}};b.event.special.change={filters:{focusout:ac,beforedeactivate:ac,click:function(bz){var by=bz.target,bx=b.nodeName(by,"input")?by.type:"";if(bx==="radio"||bx==="checkbox"||b.nodeName(by,"select")){ac.call(this,bz)}},keydown:function(bz){var by=bz.target,bx=b.nodeName(by,"input")?by.type:"";if((bz.keyCode===13&&!b.nodeName(by,"textarea"))||(bz.keyCode===32&&(bx==="checkbox"||bx==="radio"))||bx==="select-multiple"){ac.call(this,bz)}},beforeactivate:function(by){var bx=by.target;b._data(bx,"_change_data",l(bx))}},setup:function(by,bx){if(this.type==="file"){return false}for(var e in bp){b.event.add(this,e+".specialChange",bp[e])}return bg.test(this.nodeName)},teardown:function(e){b.event.remove(this,".specialChange");return bg.test(this.nodeName)}};bp=b.event.special.change.filters;bp.focus=bp.beforeactivate}function aY(bx,bz,e){var by=b.extend({},e[0]);by.type=bx;by.originalEvent={};by.liveFired=N;b.event.handle.call(bz,by);if(by.isDefaultPrevented()){e[0].preventDefault()}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bz,e){var bx=0;b.event.special[e]={setup:function(){if(bx++===0){au.addEventListener(bz,by,true)}},teardown:function(){if(--bx===0){au.removeEventListener(bz,by,true)}}};function by(bA){var bB=b.event.fix(bA);bB.type=e;bB.originalEvent={};b.event.trigger(bB,null,bB.target);if(bB.isDefaultPrevented()){bA.preventDefault()}}})}b.each(["bind","one"],function(bx,e){b.fn[e]=function(bD,bE,bC){var bB;if(typeof bD==="object"){for(var bA in bD){this[e](bA,bE,bD[bA],bC)}return this}if(arguments.length===2||bE===false){bC=bE;bE=N}if(e==="one"){bB=function(bF){b(this).unbind(bF,bB);return bC.apply(this,arguments)};bB.guid=bC.guid||b.guid++}else{bB=bC}if(bD==="unload"&&e!=="one"){this.one(bD,bE,bC)}else{for(var bz=0,by=this.length;bz<by;bz++){b.event.add(this[bz],bD,bB,bE)}}return this}});b.fn.extend({unbind:function(bA,bz){if(typeof bA==="object"&&!bA.preventDefault){for(var by in bA){this.unbind(by,bA[by])}}else{for(var bx=0,e=this.length;bx<e;bx++){b.event.remove(this[bx],bA,bz)}}return this},delegate:function(e,bx,bz,by){return this.live(bx,bz,by,e)},undelegate:function(e,bx,by){if(arguments.length===0){return this.unbind("live")}else{return this.die(bx,null,by,e)}},trigger:function(e,bx){return this.each(function(){b.event.trigger(e,bx,this)})},triggerHandler:function(e,bx){if(this[0]){return b.event.trigger(e,bx,this[0],true)}},toggle:function(bz){var bx=arguments,e=bz.guid||b.guid++,by=0,bA=function(bB){var bC=(b.data(this,"lastToggle"+bz.guid)||0)%by;b.data(this,"lastToggle"+bz.guid,bC+1);bB.preventDefault();return bx[bC].apply(this,arguments)||false};bA.guid=e;while(by<bx.length){bx[by++].guid=e}return this.click(bA)},hover:function(e,bx){return this.mouseenter(e).mouseleave(bx||e)}});var aT={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};b.each(["live","die"],function(bx,e){b.fn[e]=function(bH,bE,bJ,bA){var bI,bF=0,bG,bz,bL,bC=bA||this.selector,by=bA?this:b(this.context);if(typeof bH==="object"&&!bH.preventDefault){for(var bK in bH){by[e](bK,bE,bH[bK],bC)}return this}if(e==="die"&&!bH&&bA&&bA.charAt(0)==="."){by.unbind(bA);return this}if(bE===false||b.isFunction(bE)){bJ=bE||bm;bE=N}bH=(bH||"").split(" ");while((bI=bH[bF++])!=null){bG=a1.exec(bI);bz="";if(bG){bz=bG[0];bI=bI.replace(a1,"")}if(bI==="hover"){bH.push("mouseenter"+bz,"mouseleave"+bz);continue}bL=bI;if(aT[bI]){bH.push(aT[bI]+bz);bI=bI+bz}else{bI=(aT[bI]||bI)+bz}if(e==="live"){for(var bD=0,bB=by.length;bD<bB;bD++){b.event.add(by[bD],"live."+r(bI,bC),{data:bE,selector:bC,handler:bJ,origType:bI,origHandler:bJ,preType:bL})}}else{by.unbind("live."+r(bI,bC),bJ)}}return this}});function al(bH){var bE,bz,bN,bB,e,bJ,bG,bI,bF,bM,bD,bC,bL,bK=[],bA=[],bx=b._data(this,"events");if(bH.liveFired===this||!bx||!bx.live||bH.target.disabled||bH.button&&bH.type==="click"){return}if(bH.namespace){bC=new RegExp("(^|\\.)"+bH.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}bH.liveFired=this;var by=bx.live.slice(0);for(bG=0;bG<by.length;bG++){e=by[bG];if(e.origType.replace(a1,"")===bH.type){bA.push(e.selector)}else{by.splice(bG--,1)}}bB=b(bH.target).closest(bA,bH.currentTarget);for(bI=0,bF=bB.length;bI<bF;bI++){bD=bB[bI];for(bG=0;bG<by.length;bG++){e=by[bG];if(bD.selector===e.selector&&(!bC||bC.test(e.namespace))&&!bD.elem.disabled){bJ=bD.elem;bN=null;if(e.preType==="mouseenter"||e.preType==="mouseleave"){bH.type=e.preType;bN=b(bH.relatedTarget).closest(e.selector)[0];if(bN&&b.contains(bJ,bN)){bN=bJ}}if(!bN||bN!==bJ){bK.push({elem:bJ,handleObj:e,level:bD.level})}}}}for(bI=0,bF=bK.length;bI<bF;bI++){bB=bK[bI];if(bz&&bB.level>bz){break}bH.currentTarget=bB.elem;bH.data=bB.handleObj.data;bH.handleObj=bB.handleObj;bL=bB.handleObj.origHandler.apply(bB.elem,arguments);if(bL===false||bH.isPropagationStopped()){bz=bB.level;if(bL===false){bE=false}if(bH.isImmediatePropagationStopped()){break}}}return bE}function r(bx,e){return(bx&&bx!=="*"?bx+".":"")+e.replace(Q,"`").replace(bk,"&")}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").split(" "),function(bx,e){b.fn[e]=function(bz,by){if(by==null){by=bz;bz=null}return arguments.length>0?this.bind(e,bz,by):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}});(function(){var bH=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bI=0,bL=Object.prototype.toString,bC=false,bB=true,bJ=/\\/g,bP=/\W/;[0,0].sort(function(){bB=false;return 0});var bz=function(bU,e,bX,bY){bX=bX||[];e=e||au;var b0=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bU||typeof bU!=="string"){return bX}var bR,b2,b5,bQ,b1,b4,b3,bW,bT=true,bS=bz.isXML(e),bV=[],bZ=bU;do{bH.exec("");bR=bH.exec(bZ);if(bR){bZ=bR[3];bV.push(bR[1]);if(bR[2]){bQ=bR[3];break}}}while(bR);if(bV.length>1&&bD.exec(bU)){if(bV.length===2&&bE.relative[bV[0]]){b2=bM(bV[0]+bV[1],e)}else{b2=bE.relative[bV[0]]?[e]:bz(bV.shift(),e);while(bV.length){bU=bV.shift();if(bE.relative[bU]){bU+=bV.shift()}b2=bM(bU,b2)}}}else{if(!bY&&bV.length>1&&e.nodeType===9&&!bS&&bE.match.ID.test(bV[0])&&!bE.match.ID.test(bV[bV.length-1])){b1=bz.find(bV.shift(),e,bS);e=b1.expr?bz.filter(b1.expr,b1.set)[0]:b1.set[0]}if(e){b1=bY?{expr:bV.pop(),set:bF(bY)}:bz.find(bV.pop(),bV.length===1&&(bV[0]==="~"||bV[0]==="+")&&e.parentNode?e.parentNode:e,bS);b2=b1.expr?bz.filter(b1.expr,b1.set):b1.set;if(bV.length>0){b5=bF(b2)}else{bT=false}while(bV.length){b4=bV.pop();b3=b4;if(!bE.relative[b4]){b4=""}else{b3=bV.pop()}if(b3==null){b3=e}bE.relative[b4](b5,b3,bS)}}else{b5=bV=[]}}if(!b5){b5=b2}if(!b5){bz.error(b4||bU)}if(bL.call(b5)==="[object Array]"){if(!bT){bX.push.apply(bX,b5)}else{if(e&&e.nodeType===1){for(bW=0;b5[bW]!=null;bW++){if(b5[bW]&&(b5[bW]===true||b5[bW].nodeType===1&&bz.contains(e,b5[bW]))){bX.push(b2[bW])}}}else{for(bW=0;b5[bW]!=null;bW++){if(b5[bW]&&b5[bW].nodeType===1){bX.push(b2[bW])}}}}}else{bF(b5,bX)}if(bQ){bz(bQ,b0,bX,bY);bz.uniqueSort(bX)}return bX};bz.uniqueSort=function(bQ){if(bK){bC=bB;bQ.sort(bK);if(bC){for(var e=1;e<bQ.length;e++){if(bQ[e]===bQ[e-1]){bQ.splice(e--,1)}}}}return bQ};bz.matches=function(e,bQ){return bz(e,null,null,bQ)};bz.matchesSelector=function(e,bQ){return bz(bQ,null,null,[e]).length>0};bz.find=function(bW,e,bX){var bV;if(!bW){return[]}for(var bS=0,bR=bE.order.length;bS<bR;bS++){var bT,bU=bE.order[bS];if((bT=bE.leftMatch[bU].exec(bW))){var bQ=bT[1];bT.splice(1,1);if(bQ.substr(bQ.length-1)!=="\\"){bT[1]=(bT[1]||"").replace(bJ,"");bV=bE.find[bU](bT,e,bX);if(bV!=null){bW=bW.replace(bE.match[bU],"");break}}}}if(!bV){bV=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bV,expr:bW}};bz.filter=function(b0,bZ,b3,bT){var bV,e,bR=b0,b5=[],bX=bZ,bW=bZ&&bZ[0]&&bz.isXML(bZ[0]);while(b0&&bZ.length){for(var bY in bE.filter){if((bV=bE.leftMatch[bY].exec(b0))!=null&&bV[2]){var b4,b2,bQ=bE.filter[bY],bS=bV[1];e=false;bV.splice(1,1);if(bS.substr(bS.length-1)==="\\"){continue}if(bX===b5){b5=[]}if(bE.preFilter[bY]){bV=bE.preFilter[bY](bV,bX,b3,b5,bT,bW);if(!bV){e=b4=true}else{if(bV===true){continue}}}if(bV){for(var bU=0;(b2=bX[bU])!=null;bU++){if(b2){b4=bQ(b2,bV,bU,bX);var b1=bT^!!b4;if(b3&&b4!=null){if(b1){e=true}else{bX[bU]=false}}else{if(b1){b5.push(b2);e=true}}}}}if(b4!==N){if(!b3){bX=b5}b0=b0.replace(bE.match[bY],"");if(!e){return[]}break}}}if(b0===bR){if(e==null){bz.error(b0)}else{break}}bR=b0}return bX};bz.error=function(e){throw"Syntax error, unrecognized expression: "+e};var bE=bz.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(bV,bQ){var bS=typeof bQ==="string",bU=bS&&!bP.test(bQ),bW=bS&&!bU;if(bU){bQ=bQ.toLowerCase()}for(var bR=0,e=bV.length,bT;bR<e;bR++){if((bT=bV[bR])){while((bT=bT.previousSibling)&&bT.nodeType!==1){}bV[bR]=bW||bT&&bT.nodeName.toLowerCase()===bQ?bT||false:bT===bQ}}if(bW){bz.filter(bQ,bV,true)}},">":function(bV,bQ){var bU,bT=typeof bQ==="string",bR=0,e=bV.length;if(bT&&!bP.test(bQ)){bQ=bQ.toLowerCase();for(;bR<e;bR++){bU=bV[bR];if(bU){var bS=bU.parentNode;bV[bR]=bS.nodeName.toLowerCase()===bQ?bS:false}}}else{for(;bR<e;bR++){bU=bV[bR];if(bU){bV[bR]=bT?bU.parentNode:bU.parentNode===bQ}}if(bT){bz.filter(bQ,bV,true)}}},"":function(bS,bQ,bU){var bT,bR=bI++,e=bN;if(typeof bQ==="string"&&!bP.test(bQ)){bQ=bQ.toLowerCase();bT=bQ;e=bx}e("parentNode",bQ,bR,bS,bT,bU)},"~":function(bS,bQ,bU){var bT,bR=bI++,e=bN;if(typeof bQ==="string"&&!bP.test(bQ)){bQ=bQ.toLowerCase();bT=bQ;e=bx}e("previousSibling",bQ,bR,bS,bT,bU)}},find:{ID:function(bQ,bR,bS){if(typeof bR.getElementById!=="undefined"&&!bS){var e=bR.getElementById(bQ[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bR,bU){if(typeof bU.getElementsByName!=="undefined"){var bQ=[],bT=bU.getElementsByName(bR[1]);for(var bS=0,e=bT.length;bS<e;bS++){if(bT[bS].getAttribute("name")===bR[1]){bQ.push(bT[bS])}}return bQ.length===0?null:bQ}},TAG:function(e,bQ){if(typeof bQ.getElementsByTagName!=="undefined"){return bQ.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bS,bQ,bR,e,bV,bW){bS=" "+bS[1].replace(bJ,"")+" ";if(bW){return bS}for(var bT=0,bU;(bU=bQ[bT])!=null;bT++){if(bU){if(bV^(bU.className&&(" "+bU.className+" ").replace(/[\t\n\r]/g," ").indexOf(bS)>=0)){if(!bR){e.push(bU)}}else{if(bR){bQ[bT]=false}}}}return false},ID:function(e){return e[1].replace(bJ,"")},TAG:function(bQ,e){return bQ[1].replace(bJ,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bz.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bQ=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bQ[1]+(bQ[2]||1))-0;e[3]=bQ[3]-0}else{if(e[2]){bz.error(e[0])}}e[0]=bI++;return e},ATTR:function(bT,bQ,bR,e,bU,bV){var bS=bT[1]=bT[1].replace(bJ,"");if(!bV&&bE.attrMap[bS]){bT[1]=bE.attrMap[bS]}bT[4]=(bT[4]||bT[5]||"").replace(bJ,"");if(bT[2]==="~="){bT[4]=" "+bT[4]+" "}return bT},PSEUDO:function(bT,bQ,bR,e,bU){if(bT[1]==="not"){if((bH.exec(bT[3])||"").length>1||/^\w/.test(bT[3])){bT[3]=bz(bT[3],null,null,bQ)}else{var bS=bz.filter(bT[3],bQ,bR,true^bU);if(!bR){e.push.apply(e,bS)}return false}}else{if(bE.match.POS.test(bT[0])||bE.match.CHILD.test(bT[0])){return true}}return bT},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(bR,bQ,e){return !!bz(e[3],bR).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bR){var e=bR.getAttribute("type"),bQ=bR.type;return bR.nodeName.toLowerCase()==="input"&&"text"===bQ&&(e===bQ||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(bQ){var e=bQ.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bQ.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bQ){var e=bQ.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bQ.type},button:function(bQ){var e=bQ.nodeName.toLowerCase();return e==="input"&&"button"===bQ.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(bQ,e){return e===0},last:function(bR,bQ,e,bS){return bQ===bS.length-1},even:function(bQ,e){return e%2===0},odd:function(bQ,e){return e%2===1},lt:function(bR,bQ,e){return bQ<e[3]-0},gt:function(bR,bQ,e){return bQ>e[3]-0},nth:function(bR,bQ,e){return e[3]-0===bQ},eq:function(bR,bQ,e){return e[3]-0===bQ}},filter:{PSEUDO:function(bR,bW,bV,bX){var e=bW[1],bQ=bE.filters[e];if(bQ){return bQ(bR,bV,bW,bX)}else{if(e==="contains"){return(bR.textContent||bR.innerText||bz.getText([bR])||"").indexOf(bW[3])>=0}else{if(e==="not"){var bS=bW[3];for(var bU=0,bT=bS.length;bU<bT;bU++){if(bS[bU]===bR){return false}}return true}else{bz.error(e)}}}},CHILD:function(e,bS){var bV=bS[1],bQ=e;switch(bV){case"only":case"first":while((bQ=bQ.previousSibling)){if(bQ.nodeType===1){return false}}if(bV==="first"){return true}bQ=e;case"last":while((bQ=bQ.nextSibling)){if(bQ.nodeType===1){return false}}return true;case"nth":var bR=bS[2],bY=bS[3];if(bR===1&&bY===0){return true}var bU=bS[0],bX=e.parentNode;if(bX&&(bX.sizcache!==bU||!e.nodeIndex)){var bT=0;for(bQ=bX.firstChild;bQ;bQ=bQ.nextSibling){if(bQ.nodeType===1){bQ.nodeIndex=++bT}}bX.sizcache=bU}var bW=e.nodeIndex-bY;if(bR===0){return bW===0}else{return(bW%bR===0&&bW/bR>=0)}}},ID:function(bQ,e){return bQ.nodeType===1&&bQ.getAttribute("id")===e},TAG:function(bQ,e){return(e==="*"&&bQ.nodeType===1)||bQ.nodeName.toLowerCase()===e},CLASS:function(bQ,e){return(" "+(bQ.className||bQ.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bU,bS){var bR=bS[1],e=bE.attrHandle[bR]?bE.attrHandle[bR](bU):bU[bR]!=null?bU[bR]:bU.getAttribute(bR),bV=e+"",bT=bS[2],bQ=bS[4];return e==null?bT==="!=":bT==="="?bV===bQ:bT==="*="?bV.indexOf(bQ)>=0:bT==="~="?(" "+bV+" ").indexOf(bQ)>=0:!bQ?bV&&e!==false:bT==="!="?bV!==bQ:bT==="^="?bV.indexOf(bQ)===0:bT==="$="?bV.substr(bV.length-bQ.length)===bQ:bT==="|="?bV===bQ||bV.substr(0,bQ.length+1)===bQ+"-":false},POS:function(bT,bQ,bR,bU){var e=bQ[2],bS=bE.setFilters[e];if(bS){return bS(bT,bR,bQ,bU)}}}};var bD=bE.match.POS,by=function(bQ,e){return"\\"+(e-0+1)};for(var bA in bE.match){bE.match[bA]=new RegExp(bE.match[bA].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bE.leftMatch[bA]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bE.match[bA].source.replace(/\\(\d+)/g,by))}var bF=function(bQ,e){bQ=Array.prototype.slice.call(bQ,0);if(e){e.push.apply(e,bQ);return e}return bQ};try{Array.prototype.slice.call(au.documentElement.childNodes,0)[0].nodeType}catch(bO){bF=function(bT,bS){var bR=0,bQ=bS||[];if(bL.call(bT)==="[object Array]"){Array.prototype.push.apply(bQ,bT)}else{if(typeof bT.length==="number"){for(var e=bT.length;bR<e;bR++){bQ.push(bT[bR])}}else{for(;bT[bR];bR++){bQ.push(bT[bR])}}}return bQ}}var bK,bG;if(au.documentElement.compareDocumentPosition){bK=function(bQ,e){if(bQ===e){bC=true;return 0}if(!bQ.compareDocumentPosition||!e.compareDocumentPosition){return bQ.compareDocumentPosition?-1:1}return bQ.compareDocumentPosition(e)&4?-1:1}}else{bK=function(bX,bW){if(bX===bW){bC=true;return 0}else{if(bX.sourceIndex&&bW.sourceIndex){return bX.sourceIndex-bW.sourceIndex}}var bU,bQ,bR=[],e=[],bT=bX.parentNode,bV=bW.parentNode,bY=bT;if(bT===bV){return bG(bX,bW)}else{if(!bT){return -1}else{if(!bV){return 1}}}while(bY){bR.unshift(bY);bY=bY.parentNode}bY=bV;while(bY){e.unshift(bY);bY=bY.parentNode}bU=bR.length;bQ=e.length;for(var bS=0;bS<bU&&bS<bQ;bS++){if(bR[bS]!==e[bS]){return bG(bR[bS],e[bS])}}return bS===bU?bG(bX,e[bS],-1):bG(bR[bS],bW,1)};bG=function(bQ,e,bR){if(bQ===e){return bR}var bS=bQ.nextSibling;while(bS){if(bS===e){return -1}bS=bS.nextSibling}return 1}}bz.getText=function(e){var bQ="",bS;for(var bR=0;e[bR];bR++){bS=e[bR];if(bS.nodeType===3||bS.nodeType===4){bQ+=bS.nodeValue}else{if(bS.nodeType!==8){bQ+=bz.getText(bS.childNodes)}}}return bQ};(function(){var bQ=au.createElement("div"),bR="script"+(new Date()).getTime(),e=au.documentElement;bQ.innerHTML="<a name='"+bR+"'/>";e.insertBefore(bQ,e.firstChild);if(au.getElementById(bR)){bE.find.ID=function(bT,bU,bV){if(typeof bU.getElementById!=="undefined"&&!bV){var bS=bU.getElementById(bT[1]);return bS?bS.id===bT[1]||typeof bS.getAttributeNode!=="undefined"&&bS.getAttributeNode("id").nodeValue===bT[1]?[bS]:N:[]}};bE.filter.ID=function(bU,bS){var bT=typeof bU.getAttributeNode!=="undefined"&&bU.getAttributeNode("id");return bU.nodeType===1&&bT&&bT.nodeValue===bS}}e.removeChild(bQ);e=bQ=null})();(function(){var e=au.createElement("div");e.appendChild(au.createComment(""));if(e.getElementsByTagName("*").length>0){bE.find.TAG=function(bQ,bU){var bT=bU.getElementsByTagName(bQ[1]);if(bQ[1]==="*"){var bS=[];for(var bR=0;bT[bR];bR++){if(bT[bR].nodeType===1){bS.push(bT[bR])}}bT=bS}return bT}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bE.attrHandle.href=function(bQ){return bQ.getAttribute("href",2)}}e=null})();if(au.querySelectorAll){(function(){var e=bz,bS=au.createElement("div"),bR="__sizzle__";bS.innerHTML="<p class='TEST'></p>";if(bS.querySelectorAll&&bS.querySelectorAll(".TEST").length===0){return}bz=function(b3,bU,bY,b2){bU=bU||au;if(!b2&&!bz.isXML(bU)){var b1=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b3);if(b1&&(bU.nodeType===1||bU.nodeType===9)){if(b1[1]){return bF(bU.getElementsByTagName(b3),bY)}else{if(b1[2]&&bE.find.CLASS&&bU.getElementsByClassName){return bF(bU.getElementsByClassName(b1[2]),bY)}}}if(bU.nodeType===9){if(b3==="body"&&bU.body){return bF([bU.body],bY)}else{if(b1&&b1[3]){var bX=bU.getElementById(b1[3]);if(bX&&bX.parentNode){if(bX.id===b1[3]){return bF([bX],bY)}}else{return bF([],bY)}}}try{return bF(bU.querySelectorAll(b3),bY)}catch(bZ){}}else{if(bU.nodeType===1&&bU.nodeName.toLowerCase()!=="object"){var bV=bU,bW=bU.getAttribute("id"),bT=bW||bR,b5=bU.parentNode,b4=/^\s*[+~]/.test(b3);if(!bW){bU.setAttribute("id",bT)}else{bT=bT.replace(/'/g,"\\$&")}if(b4&&b5){bU=bU.parentNode}try{if(!b4||b5){return bF(bU.querySelectorAll("[id='"+bT+"'] "+b3),bY)}}catch(b0){}finally{if(!bW){bV.removeAttribute("id")}}}}}return e(b3,bU,bY,b2)};for(var bQ in e){bz[bQ]=e[bQ]}bS=null})()}(function(){var e=au.documentElement,bR=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bR){var bT=!bR.call(au.createElement("div"),"div"),bQ=false;try{bR.call(au.documentElement,"[test!='']:sizzle")}catch(bS){bQ=true}bz.matchesSelector=function(bV,bX){bX=bX.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bz.isXML(bV)){try{if(bQ||!bE.match.PSEUDO.test(bX)&&!/!=/.test(bX)){var bU=bR.call(bV,bX);if(bU||!bT||bV.document&&bV.document.nodeType!==11){return bU}}}catch(bW){}}return bz(bX,null,null,[bV]).length>0}}})();(function(){var e=au.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}bE.order.splice(1,0,"CLASS");bE.find.CLASS=function(bQ,bR,bS){if(typeof bR.getElementsByClassName!=="undefined"&&!bS){return bR.getElementsByClassName(bQ[1])}};e=null})();function bx(bQ,bV,bU,bY,bW,bX){for(var bS=0,bR=bY.length;bS<bR;bS++){var e=bY[bS];if(e){var bT=false;e=e[bQ];while(e){if(e.sizcache===bU){bT=bY[e.sizset];break}if(e.nodeType===1&&!bX){e.sizcache=bU;e.sizset=bS}if(e.nodeName.toLowerCase()===bV){bT=e;break}e=e[bQ]}bY[bS]=bT}}}function bN(bQ,bV,bU,bY,bW,bX){for(var bS=0,bR=bY.length;bS<bR;bS++){var e=bY[bS];if(e){var bT=false;e=e[bQ];while(e){if(e.sizcache===bU){bT=bY[e.sizset];break}if(e.nodeType===1){if(!bX){e.sizcache=bU;e.sizset=bS}if(typeof bV!=="string"){if(e===bV){bT=true;break}}else{if(bz.filter(bV,[e]).length>0){bT=e;break}}}e=e[bQ]}bY[bS]=bT}}}if(au.documentElement.contains){bz.contains=function(bQ,e){return bQ!==e&&(bQ.contains?bQ.contains(e):true)}}else{if(au.documentElement.compareDocumentPosition){bz.contains=function(bQ,e){return !!(bQ.compareDocumentPosition(e)&16)}}else{bz.contains=function(){return false}}}bz.isXML=function(e){var bQ=(e?e.ownerDocument||e:0).documentElement;return bQ?bQ.nodeName!=="HTML":false};var bM=function(e,bW){var bU,bS=[],bT="",bR=bW.nodeType?[bW]:bW;while((bU=bE.match.PSEUDO.exec(e))){bT+=bU[0];e=e.replace(bE.match.PSEUDO,"")}e=bE.relative[e]?e+"*":e;for(var bV=0,bQ=bR.length;bV<bQ;bV++){bz(e,bR[bV],bS)}return bz.filter(bT,bS)};b.find=bz;b.expr=bz.selectors;b.expr[":"]=b.expr.filters;b.unique=bz.uniqueSort;b.text=bz.getText;b.isXMLDoc=bz.isXML;b.contains=bz.contains})();var ab=/Until$/,ap=/^(?:parents|prevUntil|prevAll)/,bc=/,/,bs=/^.[^:#\[\.,]*$/,S=Array.prototype.slice,K=b.expr.match.POS,ax={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var by=this,bA,bx;if(typeof e!=="string"){return b(e).filter(function(){for(bA=0,bx=by.length;bA<bx;bA++){if(b.contains(by[bA],this)){return true}}})}var bz=this.pushStack("","find",e),bC,bD,bB;for(bA=0,bx=this.length;bA<bx;bA++){bC=bz.length;b.find(e,this[bA],bz);if(bA>0){for(bD=bC;bD<bz.length;bD++){for(bB=0;bB<bC;bB++){if(bz[bB]===bz[bD]){bz.splice(bD--,1);break}}}}}return bz},has:function(bx){var e=b(bx);return this.filter(function(){for(var bz=0,by=e.length;bz<by;bz++){if(b.contains(this,e[bz])){return true}}})},not:function(e){return this.pushStack(aE(this,e,false),"not",e)},filter:function(e){return this.pushStack(aE(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bG,bx){var bD=[],bA,by,bF=this[0];if(b.isArray(bG)){var bC,bz,bB={},e=1;if(bF&&bG.length){for(bA=0,by=bG.length;bA<by;bA++){bz=bG[bA];if(!bB[bz]){bB[bz]=K.test(bz)?b(bz,bx||this.context):bz}}while(bF&&bF.ownerDocument&&bF!==bx){for(bz in bB){bC=bB[bz];if(bC.jquery?bC.index(bF)>-1:b(bF).is(bC)){bD.push({selector:bz,elem:bF,level:e})}}bF=bF.parentNode;e++}}return bD}var bE=K.test(bG)||typeof bG!=="string"?b(bG,bx||this.context):0;for(bA=0,by=this.length;bA<by;bA++){bF=this[bA];while(bF){if(bE?bE.index(bF)>-1:b.find.matchesSelector(bF,bG)){bD.push(bF);break}else{bF=bF.parentNode;if(!bF||!bF.ownerDocument||bF===bx||bF.nodeType===11){break}}}}bD=bD.length>1?b.unique(bD):bD;return this.pushStack(bD,"closest",bG)},index:function(e){if(!e||typeof e==="string"){return b.inArray(this[0],e?b(e):this.parent().children())}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bx){var bz=typeof e==="string"?b(e,bx):b.makeArray(e&&e.nodeType?[e]:e),by=b.merge(this.get(),bz);return this.pushStack(F(bz[0])||F(by[0])?by:b.unique(by))},andSelf:function(){return this.add(this.prevObject)}});function F(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bx){var e=bx.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bx,e,by){return b.dir(bx,"parentNode",by)},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(bx,e,by){return b.dir(bx,"nextSibling",by)},prevUntil:function(bx,e,by){return b.dir(bx,"previousSibling",by)},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,bx){b.fn[e]=function(bB,by){var bA=b.map(this,bx,bB),bz=S.call(arguments);if(!ab.test(e)){by=bB}if(by&&typeof by==="string"){bA=b.filter(by,bA)}bA=this.length>1&&!ax[e]?b.unique(bA):bA;if((this.length>1||bc.test(by))&&ap.test(e)){bA=bA.reverse()}return this.pushStack(bA,e,bz.join(","))}});b.extend({filter:function(by,e,bx){if(bx){by=":not("+by+")"}return e.length===1?b.find.matchesSelector(e[0],by)?[e[0]]:[]:b.find.matches(by,e)},dir:function(by,bx,bA){var e=[],bz=by[bx];while(bz&&bz.nodeType!==9&&(bA===N||bz.nodeType!==1||!b(bz).is(bA))){if(bz.nodeType===1){e.push(bz)}bz=bz[bx]}return e},nth:function(bA,e,by,bz){e=e||1;var bx=0;for(;bA;bA=bA[by]){if(bA.nodeType===1&&++bx===e){break}}return bA},sibling:function(by,bx){var e=[];for(;by;by=by.nextSibling){if(by.nodeType===1&&by!==bx){e.push(by)}}return e}});function aE(bz,by,e){by=by||0;if(b.isFunction(by)){return b.grep(bz,function(bB,bA){var bC=!!by.call(bB,bA,bB);return bC===e})}else{if(by.nodeType){return b.grep(bz,function(bB,bA){return(bB===by)===e})}else{if(typeof by==="string"){var bx=b.grep(bz,function(bA){return bA.nodeType===1});if(bs.test(by)){return b.filter(by,bx,!e)}else{by=b.filter(by,bx)}}}}return b.grep(bz,function(bB,bA){return(b.inArray(bB,by)>=0)===e})}var ag=/ jQuery\d+="(?:\d+|null)"/g,aq=/^\s+/,V=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,z=/<tbody/i,Y=/<|&#?\w+;/,R=/<(?:script|object|embed|option|style)/i,p=/checked\s*(?:[^=]|=\s*.checked.)/i,bo=/\/(java|ecma)script/i,aN=/^\s*<!(?:\[CDATA\[|\-\-)/,aw={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,"",""]};aw.optgroup=aw.option;aw.tbody=aw.tfoot=aw.colgroup=aw.caption=aw.thead;aw.th=aw.td;if(!b.support.htmlSerialize){aw._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(by){var bx=b(this);bx.text(e.call(this,by,bx.text()))})}if(typeof e!=="object"&&e!==N){return this.empty().append((this[0]&&this[0].ownerDocument||au).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(by){b(this).wrapAll(e.call(this,by))})}if(this[0]){var bx=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bx.insertBefore(this[0])}bx.map(function(){var by=this;while(by.firstChild&&by.firstChild.nodeType===1){by=by.firstChild}return by}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bx){b(this).wrapInner(e.call(this,bx))})}return this.each(function(){var bx=b(this),by=bx.contents();if(by.length){by.wrapAll(e)}else{bx.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(bx){this.parentNode.insertBefore(bx,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(bx){this.parentNode.insertBefore(bx,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,bz){for(var bx=0,by;(by=this[bx])!=null;bx++){if(!e||b.filter(e,[by]).length){if(!bz&&by.nodeType===1){b.cleanData(by.getElementsByTagName("*"));b.cleanData([by])}if(by.parentNode){by.parentNode.removeChild(by)}}}return this},empty:function(){for(var e=0,bx;(bx=this[e])!=null;e++){if(bx.nodeType===1){b.cleanData(bx.getElementsByTagName("*"))}while(bx.firstChild){bx.removeChild(bx.firstChild)}}return this},clone:function(bx,e){bx=bx==null?false:bx;e=e==null?bx:e;return this.map(function(){return b.clone(this,bx,e)})},html:function(bz){if(bz===N){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ag,""):null}else{if(typeof bz==="string"&&!R.test(bz)&&(b.support.leadingWhitespace||!aq.test(bz))&&!aw[(d.exec(bz)||["",""])[1].toLowerCase()]){bz=bz.replace(V,"<$1></$2>");try{for(var by=0,bx=this.length;by<bx;by++){if(this[by].nodeType===1){b.cleanData(this[by].getElementsByTagName("*"));this[by].innerHTML=bz}}}catch(bA){this.empty().append(bz)}}else{if(b.isFunction(bz)){this.each(function(bB){var e=b(this);e.html(bz.call(this,bB,e.html()))})}else{this.empty().append(bz)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bz){var by=b(this),bx=by.html();by.replaceWith(e.call(this,bz,bx))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var by=this.nextSibling,bx=this.parentNode;b(this).remove();if(by){b(by).before(e)}else{b(bx).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(bD,bH,bG){var bz,bA,bC,bF,bE=bD[0],bx=[];if(!b.support.checkClone&&arguments.length===3&&typeof bE==="string"&&p.test(bE)){return this.each(function(){b(this).domManip(bD,bH,bG,true)})}if(b.isFunction(bE)){return this.each(function(bJ){var bI=b(this);bD[0]=bE.call(this,bJ,bH?bI.html():N);bI.domManip(bD,bH,bG)})}if(this[0]){bF=bE&&bE.parentNode;if(b.support.parentNode&&bF&&bF.nodeType===11&&bF.childNodes.length===this.length){bz={fragment:bF}}else{bz=b.buildFragment(bD,this,bx)}bC=bz.fragment;if(bC.childNodes.length===1){bA=bC=bC.firstChild}else{bA=bC.firstChild}if(bA){bH=bH&&b.nodeName(bA,"tr");for(var by=0,e=this.length,bB=e-1;by<e;by++){bG.call(bH?bd(this[by],bA):this[by],bz.cacheable||(e>1&&by<bB)?b.clone(bC,true,true):bC)}}if(bx.length){b.each(bx,br)}}return this}});function bd(e,bx){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function w(e,bD){if(bD.nodeType!==1||!b.hasData(e)){return}var bC=b.expando,bz=b.data(e),bA=b.data(bD,bz);if((bz=bz[bC])){var bE=bz.events;bA=bA[bC]=b.extend({},bz);if(bE){delete bA.handle;bA.events={};for(var bB in bE){for(var by=0,bx=bE[bB].length;by<bx;by++){b.event.add(bD,bB+(bE[bB][by].namespace?".":"")+bE[bB][by].namespace,bE[bB][by],bE[bB][by].data)}}}}}function ah(bx,e){var by;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bx)}by=e.nodeName.toLowerCase();if(by==="object"){e.outerHTML=bx.outerHTML}else{if(by==="input"&&(bx.type==="checkbox"||bx.type==="radio")){if(bx.checked){e.defaultChecked=e.checked=bx.checked}if(e.value!==bx.value){e.value=bx.value}}else{if(by==="option"){e.selected=bx.defaultSelected}else{if(by==="input"||by==="textarea"){e.defaultValue=bx.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bB,bz,bx){var bA,e,by,bC=(bz&&bz[0]?bz[0].ownerDocument||bz[0]:au);if(bB.length===1&&typeof bB[0]==="string"&&bB[0].length<512&&bC===au&&bB[0].charAt(0)==="<"&&!R.test(bB[0])&&(b.support.checkClone||!p.test(bB[0]))){e=true;by=b.fragments[bB[0]];if(by&&by!==1){bA=by}}if(!bA){bA=bC.createDocumentFragment();b.clean(bB,bC,bA,bx)}if(e){b.fragments[bB[0]]=by?bA:1}return{fragment:bA,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bx){b.fn[e]=function(by){var bB=[],bE=b(by),bD=this.length===1&&this[0].parentNode;if(bD&&bD.nodeType===11&&bD.childNodes.length===1&&bE.length===1){bE[bx](this[0]);return this}else{for(var bC=0,bz=bE.length;bC<bz;bC++){var bA=(bC>0?this.clone(true):this).get();b(bE[bC])[bx](bA);bB=bB.concat(bA)}return this.pushStack(bB,e,bE.selector)}}});function bh(e){if("getElementsByTagName" in e){return e.getElementsByTagName("*")}else{if("querySelectorAll" in e){return e.querySelectorAll("*")}else{return[]}}}function ay(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function H(e){if(b.nodeName(e,"input")){ay(e)}else{if(e.getElementsByTagName){b.grep(e.getElementsByTagName("input"),ay)}}}b.extend({clone:function(bA,bC,by){var bB=bA.cloneNode(true),e,bx,bz;if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bA.nodeType===1||bA.nodeType===11)&&!b.isXMLDoc(bA)){ah(bA,bB);e=bh(bA);bx=bh(bB);for(bz=0;e[bz];++bz){ah(e[bz],bx[bz])}}if(bC){w(bA,bB);if(by){e=bh(bA);bx=bh(bB);for(bz=0;e[bz];++bz){w(e[bz],bx[bz])}}}return bB},clean:function(by,bA,bJ,bC){var bH;bA=bA||au;if(typeof bA.createElement==="undefined"){bA=bA.ownerDocument||bA[0]&&bA[0].ownerDocument||au}var bK=[],bD;for(var bG=0,bB;(bB=by[bG])!=null;bG++){if(typeof bB==="number"){bB+=""}if(!bB){continue}if(typeof bB==="string"){if(!Y.test(bB)){bB=bA.createTextNode(bB)}else{bB=bB.replace(V,"<$1></$2>");var bM=(d.exec(bB)||["",""])[1].toLowerCase(),bz=aw[bM]||aw._default,bF=bz[0],bx=bA.createElement("div");bx.innerHTML=bz[1]+bB+bz[2];while(bF--){bx=bx.lastChild}if(!b.support.tbody){var e=z.test(bB),bE=bM==="table"&&!e?bx.firstChild&&bx.firstChild.childNodes:bz[1]==="<table>"&&!e?bx.childNodes:[];for(bD=bE.length-1;bD>=0;--bD){if(b.nodeName(bE[bD],"tbody")&&!bE[bD].childNodes.length){bE[bD].parentNode.removeChild(bE[bD])}}}if(!b.support.leadingWhitespace&&aq.test(bB)){bx.insertBefore(bA.createTextNode(aq.exec(bB)[0]),bx.firstChild)}bB=bx.childNodes}}var bI;if(!b.support.appendChecked){if(bB[0]&&typeof(bI=bB.length)==="number"){for(bD=0;bD<bI;bD++){H(bB[bD])}}else{H(bB)}}if(bB.nodeType){bK.push(bB)}else{bK=b.merge(bK,bB)}}if(bJ){bH=function(bN){return !bN.type||bo.test(bN.type)};for(bG=0;bK[bG];bG++){if(bC&&b.nodeName(bK[bG],"script")&&(!bK[bG].type||bK[bG].type.toLowerCase()==="text/javascript")){bC.push(bK[bG].parentNode?bK[bG].parentNode.removeChild(bK[bG]):bK[bG])}else{if(bK[bG].nodeType===1){var bL=b.grep(bK[bG].getElementsByTagName("script"),bH);bK.splice.apply(bK,[bG+1,0].concat(bL))}bJ.appendChild(bK[bG])}}}return bK},cleanData:function(bx){var bA,by,e=b.cache,bF=b.expando,bD=b.event.special,bC=b.support.deleteExpando;for(var bB=0,bz;(bz=bx[bB])!=null;bB++){if(bz.nodeName&&b.noData[bz.nodeName.toLowerCase()]){continue}by=bz[b.expando];if(by){bA=e[by]&&e[by][bF];if(bA&&bA.events){for(var bE in bA.events){if(bD[bE]){b.event.remove(bz,bE)}else{b.removeEvent(bz,bE,bA.handle)}}if(bA.handle){bA.handle.elem=null}}if(bC){delete bz[b.expando]}else{if(bz.removeAttribute){bz.removeAttribute(b.expando)}}delete e[by]}}}});function br(e,bx){if(bx.src){b.ajax({url:bx.src,async:false,dataType:"script"})}else{b.globalEval((bx.text||bx.textContent||bx.innerHTML||"").replace(aN,"/*$0*/"))}if(bx.parentNode){bx.parentNode.removeChild(bx)}}var ak=/alpha\([^)]*\)/i,at=/opacity=([^)]*)/,aX=/-([a-z])/ig,C=/([A-Z]|^ms)/g,bf=/^-?\d+(?:px)?$/i,bq=/^-?\d/,L=/^[+\-]=/,aj=/[^+\-\.\de]+/g,a9={position:"absolute",visibility:"hidden",display:"block"},am=["Left","Right"],a3=["Top","Bottom"],Z,aI,aW,o=function(e,bx){return bx.toUpperCase()};b.fn.css=function(e,bx){if(arguments.length===2&&bx===N){return this}return b.access(this,e,bx,true,function(bz,by,bA){return bA!==N?b.style(bz,by,bA):b.css(bz,by)})};b.extend({cssHooks:{opacity:{get:function(by,bx){if(bx){var e=Z(by,"opacity","opacity");return e===""?"1":e}else{return by.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true,widows:true,orphans:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bz,by,bF,bA){if(!bz||bz.nodeType===3||bz.nodeType===8||!bz.style){return}var bD,bE,bB=b.camelCase(by),bx=bz.style,bG=b.cssHooks[bB];by=b.cssProps[bB]||bB;if(bF!==N){bE=typeof bF;if(bE==="number"&&isNaN(bF)||bF==null){return}if(bE==="string"&&L.test(bF)){bF=+bF.replace(aj,"")+parseFloat(b.css(bz,by))}if(bE==="number"&&!b.cssNumber[bB]){bF+="px"}if(!bG||!("set" in bG)||(bF=bG.set(bz,bF))!==N){try{bx[by]=bF}catch(bC){}}}else{if(bG&&"get" in bG&&(bD=bG.get(bz,false,bA))!==N){return bD}return bx[by]}},css:function(bA,bz,bx){var by,e;bz=b.camelCase(bz);e=b.cssHooks[bz];bz=b.cssProps[bz]||bz;if(bz==="cssFloat"){bz="float"}if(e&&"get" in e&&(by=e.get(bA,true,bx))!==N){return by}else{if(Z){return Z(bA,bz)}}},swap:function(bz,by,bA){var e={};for(var bx in by){e[bx]=bz.style[bx];bz.style[bx]=by[bx]}bA.call(bz);for(bx in by){bz.style[bx]=e[bx]}},camelCase:function(e){return e.replace(aX,o)}});b.curCSS=b.css;b.each(["height","width"],function(bx,e){b.cssHooks[e]={get:function(bA,bz,by){var bB;if(bz){if(bA.offsetWidth!==0){bB=q(bA,e,by)}else{b.swap(bA,a9,function(){bB=q(bA,e,by)})}if(bB<=0){bB=Z(bA,e,e);if(bB==="0px"&&aW){bB=aW(bA,e,e)}if(bB!=null){return bB===""||bB==="auto"?"0px":bB}}if(bB<0||bB==null){bB=bA.style[e];return bB===""||bB==="auto"?"0px":bB}return typeof bB==="string"?bB:bB+"px"}},set:function(by,bz){if(bf.test(bz)){bz=parseFloat(bz);if(bz>=0){return bz+"px"}}else{return bz}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bx,e){return at.test((e&&bx.currentStyle?bx.currentStyle.filter:bx.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bA,bB){var bz=bA.style,bx=bA.currentStyle;bz.zoom=1;var e=b.isNaN(bB)?"":"alpha(opacity="+bB*100+")",by=bx&&bx.filter||bz.filter||"";bz.filter=ak.test(by)?by.replace(ak,e):by+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(by,bx){var e;b.swap(by,{display:"inline-block"},function(){if(bx){e=Z(by,"margin-right","marginRight")}else{e=by.style.marginRight}});return e}}}});if(au.defaultView&&au.defaultView.getComputedStyle){aI=function(bA,by){var bx,bz,e;by=by.replace(C,"-$1").toLowerCase();if(!(bz=bA.ownerDocument.defaultView)){return N}if((e=bz.getComputedStyle(bA,null))){bx=e.getPropertyValue(by);if(bx===""&&!b.contains(bA.ownerDocument.documentElement,bA)){bx=b.style(bA,by)}}return bx}}if(au.documentElement.currentStyle){aW=function(bA,by){var bB,bx=bA.currentStyle&&bA.currentStyle[by],e=bA.runtimeStyle&&bA.runtimeStyle[by],bz=bA.style;if(!bf.test(bx)&&bq.test(bx)){bB=bz.left;if(e){bA.runtimeStyle.left=bA.currentStyle.left}bz.left=by==="fontSize"?"1em":(bx||0);bx=bz.pixelLeft+"px";bz.left=bB;if(e){bA.runtimeStyle.left=e}}return bx===""?"auto":bx}}Z=aI||aW;function q(by,bx,e){var bA=bx==="width"?am:a3,bz=bx==="width"?by.offsetWidth:by.offsetHeight;if(e==="border"){return bz}b.each(bA,function(){if(!e){bz-=parseFloat(b.css(by,"padding"+this))||0}if(e==="margin"){bz+=parseFloat(b.css(by,"margin"+this))||0}else{bz-=parseFloat(b.css(by,"border"+this+"Width"))||0}});return bz}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(by){var bx=by.offsetWidth,e=by.offsetHeight;return(bx===0&&e===0)||(!b.support.reliableHiddenOffsets&&(by.style.display||b.css(by,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var k=/%20/g,ao=/\[\]$/,bv=/\r?\n/g,bt=/#.*$/,aC=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a0=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aM=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,aP=/^(?:GET|HEAD)$/,c=/^\/\//,O=/\?/,a8=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,s=/^(?:select|textarea)/i,h=/\s+/,bu=/([?&])_=[^&]*/,M=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,D=b.fn.load,aa={},u={},aD,v;try{aD=bn.href}catch(av){aD=au.createElement("a");aD.href="";aD=aD.href}v=M.exec(aD.toLowerCase())||[];function f(e){return function(bA,bC){if(typeof bA!=="string"){bC=bA;bA="*"}if(b.isFunction(bC)){var bz=bA.toLowerCase().split(h),by=0,bB=bz.length,bx,bD,bE;for(;by<bB;by++){bx=bz[by];bE=/^\+/.test(bx);if(bE){bx=bx.substr(1)||"*"}bD=e[bx]=e[bx]||[];bD[bE?"unshift":"push"](bC)}}}}function aU(bx,bG,bB,bF,bD,bz){bD=bD||bG.dataTypes[0];bz=bz||{};bz[bD]=true;var bC=bx[bD],by=0,e=bC?bC.length:0,bA=(bx===aa),bE;for(;by<e&&(bA||!bE);by++){bE=bC[by](bG,bB,bF);if(typeof bE==="string"){if(!bA||bz[bE]){bE=N}else{bG.dataTypes.unshift(bE);bE=aU(bx,bG,bB,bF,bE,bz)}}}if((bA||!bE)&&!bz["*"]){bE=aU(bx,bG,bB,bF,"*",bz)}return bE}b.fn.extend({load:function(by,bB,bC){if(typeof by!=="string"&&D){return D.apply(this,arguments)}else{if(!this.length){return this}}var bA=by.indexOf(" ");if(bA>=0){var e=by.slice(bA,by.length);by=by.slice(0,bA)}var bz="GET";if(bB){if(b.isFunction(bB)){bC=bB;bB=N}else{if(typeof bB==="object"){bB=b.param(bB,b.ajaxSettings.traditional);bz="POST"}}}var bx=this;b.ajax({url:by,type:bz,dataType:"html",data:bB,complete:function(bE,bD,bF){bF=bE.responseText;if(bE.isResolved()){bE.done(function(bG){bF=bG});bx.html(e?b("<div>").append(bF.replace(a8,"")).find(e):bF)}if(bC){bx.each(bC,[bF,bD,bE])}}});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||s.test(this.nodeName)||a0.test(this.type))}).map(function(e,bx){var by=b(this).val();return by==null?null:b.isArray(by)?b.map(by,function(bA,bz){return{name:bx.name,value:bA.replace(bv,"\r\n")}}):{name:bx.name,value:by.replace(bv,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bx){b.fn[bx]=function(by){return this.bind(bx,by)}});b.each(["get","post"],function(e,bx){b[bx]=function(by,bA,bB,bz){if(b.isFunction(bA)){bz=bz||bB;bB=bA;bA=N}return b.ajax({type:bx,url:by,data:bA,success:bB,dataType:bz})}});b.extend({getScript:function(e,bx){return b.get(e,N,bx,"script")},getJSON:function(e,bx,by){return b.get(e,bx,by,"json")},ajaxSetup:function(by,e){if(!e){e=by;by=b.extend(true,b.ajaxSettings,e)}else{b.extend(true,by,b.ajaxSettings,e)}for(var bx in {context:1,url:1}){if(bx in e){by[bx]=e[bx]}else{if(bx in b.ajaxSettings){by[bx]=b.ajaxSettings[bx]}}}return by},ajaxSettings:{url:aD,isLocal:aM.test(v[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","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":be.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML}},ajaxPrefilter:f(aa),ajaxTransport:f(u),ajax:function(bB,bz){if(typeof bB==="object"){bz=bB;bB=N}bz=bz||{};var bF=b.ajaxSetup({},bz),bU=bF.context||bF,bI=bU!==bF&&(bU.nodeType||bU instanceof b)?b(bU):b.event,bT=b.Deferred(),bP=b._Deferred(),bD=bF.statusCode||{},bE,bJ={},bQ={},bS,bA,bN,bG,bK,bC=0,by,bM,bL={readyState:0,setRequestHeader:function(bV,bW){if(!bC){var e=bV.toLowerCase();bV=bQ[e]=bQ[e]||bV;bJ[bV]=bW}return this},getAllResponseHeaders:function(){return bC===2?bS:null},getResponseHeader:function(bV){var e;if(bC===2){if(!bA){bA={};while((e=aC.exec(bS))){bA[e[1].toLowerCase()]=e[2]}}e=bA[bV.toLowerCase()]}return e===N?null:e},overrideMimeType:function(e){if(!bC){bF.mimeType=e}return this},abort:function(e){e=e||"abort";if(bN){bN.abort(e)}bH(0,e);return this}};function bH(b0,bY,b1,bX){if(bC===2){return}bC=2;if(bG){clearTimeout(bG)}bN=N;bS=bX||"";bL.readyState=b0?4:0;var bV,b5,b4,bZ=b1?bl(bF,bL,b1):N,bW,b3;if(b0>=200&&b0<300||b0===304){if(bF.ifModified){if((bW=bL.getResponseHeader("Last-Modified"))){b.lastModified[bE]=bW}if((b3=bL.getResponseHeader("Etag"))){b.etag[bE]=b3}}if(b0===304){bY="notmodified";bV=true}else{try{b5=I(bF,bZ);bY="success";bV=true}catch(b2){bY="parsererror";b4=b2}}}else{b4=bY;if(!bY||b0){bY="error";if(b0<0){b0=0}}}bL.status=b0;bL.statusText=bY;if(bV){bT.resolveWith(bU,[b5,bY,bL])}else{bT.rejectWith(bU,[bL,bY,b4])}bL.statusCode(bD);bD=N;if(by){bI.trigger("ajax"+(bV?"Success":"Error"),[bL,bF,bV?b5:b4])}bP.resolveWith(bU,[bL,bY]);if(by){bI.trigger("ajaxComplete",[bL,bF]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bT.promise(bL);bL.success=bL.done;bL.error=bL.fail;bL.complete=bP.done;bL.statusCode=function(bV){if(bV){var e;if(bC<2){for(e in bV){bD[e]=[bD[e],bV[e]]}}else{e=bV[bL.status];bL.then(e,e)}}return this};bF.url=((bB||bF.url)+"").replace(bt,"").replace(c,v[1]+"//");bF.dataTypes=b.trim(bF.dataType||"*").toLowerCase().split(h);if(bF.crossDomain==null){bK=M.exec(bF.url.toLowerCase());bF.crossDomain=!!(bK&&(bK[1]!=v[1]||bK[2]!=v[2]||(bK[3]||(bK[1]==="http:"?80:443))!=(v[3]||(v[1]==="http:"?80:443))))}if(bF.data&&bF.processData&&typeof bF.data!=="string"){bF.data=b.param(bF.data,bF.traditional)}aU(aa,bF,bz,bL);if(bC===2){return false}by=bF.global;bF.type=bF.type.toUpperCase();bF.hasContent=!aP.test(bF.type);if(by&&b.active++===0){b.event.trigger("ajaxStart")}if(!bF.hasContent){if(bF.data){bF.url+=(O.test(bF.url)?"&":"?")+bF.data}bE=bF.url;if(bF.cache===false){var bx=b.now(),bR=bF.url.replace(bu,"$1_="+bx);bF.url=bR+((bR===bF.url)?(O.test(bF.url)?"&":"?")+"_="+bx:"")}}if(bF.data&&bF.hasContent&&bF.contentType!==false||bz.contentType){bL.setRequestHeader("Content-Type",bF.contentType)}if(bF.ifModified){bE=bE||bF.url;if(b.lastModified[bE]){bL.setRequestHeader("If-Modified-Since",b.lastModified[bE])}if(b.etag[bE]){bL.setRequestHeader("If-None-Match",b.etag[bE])}}bL.setRequestHeader("Accept",bF.dataTypes[0]&&bF.accepts[bF.dataTypes[0]]?bF.accepts[bF.dataTypes[0]]+(bF.dataTypes[0]!=="*"?", */*; q=0.01":""):bF.accepts["*"]);for(bM in bF.headers){bL.setRequestHeader(bM,bF.headers[bM])}if(bF.beforeSend&&(bF.beforeSend.call(bU,bL,bF)===false||bC===2)){bL.abort();return false}for(bM in {success:1,error:1,complete:1}){bL[bM](bF[bM])}bN=aU(u,bF,bz,bL);if(!bN){bH(-1,"No Transport")}else{bL.readyState=1;if(by){bI.trigger("ajaxSend",[bL,bF])}if(bF.async&&bF.timeout>0){bG=setTimeout(function(){bL.abort("timeout")},bF.timeout)}try{bC=1;bN.send(bJ,bH)}catch(bO){if(status<2){bH(-1,bO)}else{b.error(bO)}}}return bL},param:function(e,by){var bx=[],bA=function(bB,bC){bC=b.isFunction(bC)?bC():bC;bx[bx.length]=encodeURIComponent(bB)+"="+encodeURIComponent(bC)};if(by===N){by=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bA(this.name,this.value)})}else{for(var bz in e){y(bz,e[bz],by,bA)}}return bx.join("&").replace(k,"+")}});function y(by,bA,bx,bz){if(b.isArray(bA)){b.each(bA,function(bC,bB){if(bx||ao.test(by)){bz(by,bB)}else{y(by+"["+(typeof bB==="object"||b.isArray(bB)?bC:"")+"]",bB,bx,bz)}})}else{if(!bx&&bA!=null&&typeof bA==="object"){for(var e in bA){y(by+"["+e+"]",bA[e],bx,bz)}}else{bz(by,bA)}}}b.extend({active:0,lastModified:{},etag:{}});function bl(bF,bE,bB){var bx=bF.contents,bD=bF.dataTypes,by=bF.responseFields,bA,bC,bz,e;for(bC in by){if(bC in bB){bE[by[bC]]=bB[bC]}}while(bD[0]==="*"){bD.shift();if(bA===N){bA=bF.mimeType||bE.getResponseHeader("content-type")}}if(bA){for(bC in bx){if(bx[bC]&&bx[bC].test(bA)){bD.unshift(bC);break}}}if(bD[0] in bB){bz=bD[0]}else{for(bC in bB){if(!bD[0]||bF.converters[bC+" "+bD[0]]){bz=bC;break}if(!e){e=bC}}bz=bz||e}if(bz){if(bz!==bD[0]){bD.unshift(bz)}return bB[bz]}}function I(bJ,bB){if(bJ.dataFilter){bB=bJ.dataFilter(bB,bJ.dataType)}var bF=bJ.dataTypes,bI={},bC,bG,by=bF.length,bD,bE=bF[0],bz,bA,bH,bx,e;for(bC=1;bC<by;bC++){if(bC===1){for(bG in bJ.converters){if(typeof bG==="string"){bI[bG.toLowerCase()]=bJ.converters[bG]}}}bz=bE;bE=bF[bC];if(bE==="*"){bE=bz}else{if(bz!=="*"&&bz!==bE){bA=bz+" "+bE;bH=bI[bA]||bI["* "+bE];if(!bH){e=N;for(bx in bI){bD=bx.split(" ");if(bD[0]===bz||bD[0]==="*"){e=bI[bD[1]+" "+bE];if(e){bx=bI[bx];if(bx===true){bH=e}else{if(e===true){bH=bx}}break}}}}if(!(bH||e)){b.error("No conversion from "+bA.replace(" "," to "))}if(bH!==true){bB=bH?bH(bB):e(bx(bB))}}}}return bB}var aB=b.now(),x=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aB++)}});b.ajaxPrefilter("json jsonp",function(bF,bC,bE){var bz=bF.contentType==="application/x-www-form-urlencoded"&&(typeof bF.data==="string");if(bF.dataTypes[0]==="jsonp"||bF.jsonp!==false&&(x.test(bF.url)||bz&&x.test(bF.data))){var bD,by=bF.jsonpCallback=b.isFunction(bF.jsonpCallback)?bF.jsonpCallback():bF.jsonpCallback,bB=be[by],e=bF.url,bA=bF.data,bx="$1"+by+"$2";if(bF.jsonp!==false){e=e.replace(x,bx);if(bF.url===e){if(bz){bA=bA.replace(x,bx)}if(bF.data===bA){e+=(/\?/.test(e)?"&":"?")+bF.jsonp+"="+by}}}bF.url=e;bF.data=bA;be[by]=function(bG){bD=[bG]};bE.always(function(){be[by]=bB;if(bD&&b.isFunction(bB)){be[by](bD[0])}});bF.converters["script json"]=function(){if(!bD){b.error(by+" was not called")}return bD[0]};bF.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===N){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(by){if(by.crossDomain){var e,bx=au.head||au.getElementsByTagName("head")[0]||au.documentElement;return{send:function(bz,bA){e=au.createElement("script");e.async="async";if(by.scriptCharset){e.charset=by.scriptCharset}e.src=by.url;e.onload=e.onreadystatechange=function(bC,bB){if(bB||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bx&&e.parentNode){bx.removeChild(e)}e=N;if(!bB){bA(200,"success")}}};bx.insertBefore(e,bx.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var E=be.ActiveXObject?function(){for(var e in P){P[e](0,1)}}:false,B=0,P;function aL(){try{return new be.XMLHttpRequest()}catch(bx){}}function ai(){try{return new be.ActiveXObject("Microsoft.XMLHTTP")}catch(bx){}}b.ajaxSettings.xhr=be.ActiveXObject?function(){return !this.isLocal&&aL()||ai()}:aL;(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 bx;return{send:function(bD,by){var bC=e.xhr(),bB,bA;if(e.username){bC.open(e.type,e.url,e.async,e.username,e.password)}else{bC.open(e.type,e.url,e.async)}if(e.xhrFields){for(bA in e.xhrFields){bC[bA]=e.xhrFields[bA]}}if(e.mimeType&&bC.overrideMimeType){bC.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bD["X-Requested-With"]){bD["X-Requested-With"]="XMLHttpRequest"}try{for(bA in bD){bC.setRequestHeader(bA,bD[bA])}}catch(bz){}bC.send((e.hasContent&&e.data)||null);bx=function(bM,bG){var bH,bF,bE,bK,bJ;try{if(bx&&(bG||bC.readyState===4)){bx=N;if(bB){bC.onreadystatechange=b.noop;if(E){delete P[bB]}}if(bG){if(bC.readyState!==4){bC.abort()}}else{bH=bC.status;bE=bC.getAllResponseHeaders();bK={};bJ=bC.responseXML;if(bJ&&bJ.documentElement){bK.xml=bJ}bK.text=bC.responseText;try{bF=bC.statusText}catch(bL){bF=""}if(!bH&&e.isLocal&&!e.crossDomain){bH=bK.text?200:404}else{if(bH===1223){bH=204}}}}}catch(bI){if(!bG){by(-1,bI)}}if(bK){by(bH,bF,bK,bE)}};if(!e.async||bC.readyState===4){bx()}else{bB=++B;if(E){if(!P){P={};b(be).unload(E)}P[bB]=bx}bC.onreadystatechange=bx}},abort:function(){if(bx){bx(0,1)}}}}})}var T={},bb,n,aA=/^(?:toggle|show|hide)$/,aR=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a4,aH=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a6,U=be.webkitRequestAnimationFrame||be.mozRequestAnimationFrame||be.oRequestAnimationFrame;b.fn.extend({show:function(bz,bC,bB){var by,bA;if(bz||bz===0){return this.animate(a2("show",3),bz,bC,bB)}else{for(var bx=0,e=this.length;bx<e;bx++){by=this[bx];if(by.style){bA=by.style.display;if(!b._data(by,"olddisplay")&&bA==="none"){bA=by.style.display=""}if(bA===""&&b.css(by,"display")==="none"){b._data(by,"olddisplay",A(by.nodeName))}}}for(bx=0;bx<e;bx++){by=this[bx];if(by.style){bA=by.style.display;if(bA===""||bA==="none"){by.style.display=b._data(by,"olddisplay")||""}}}return this}},hide:function(by,bB,bA){if(by||by===0){return this.animate(a2("hide",3),by,bB,bA)}else{for(var bx=0,e=this.length;bx<e;bx++){if(this[bx].style){var bz=b.css(this[bx],"display");if(bz!=="none"&&!b._data(this[bx],"olddisplay")){b._data(this[bx],"olddisplay",bz)}}}for(bx=0;bx<e;bx++){if(this[bx].style){this[bx].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(by,bx,bz){var e=typeof by==="boolean";if(b.isFunction(by)&&b.isFunction(bx)){this._toggle.apply(this,arguments)}else{if(by==null||e){this.each(function(){var bA=e?by:b(this).is(":hidden");b(this)[bA?"show":"hide"]()})}else{this.animate(a2("toggle",3),by,bx,bz)}}return this},fadeTo:function(e,bz,by,bx){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bz},e,by,bx)},animate:function(bA,bx,bz,by){var e=b.speed(bx,bz,by);if(b.isEmptyObject(bA)){return this.each(e.complete,[false])}bA=b.extend({},bA);return this[e.queue===false?"each":"queue"](function(){if(e.queue===false){b._mark(this)}var bE=b.extend({},e),bL=this.nodeType===1,bI=bL&&b(this).is(":hidden"),bB,bF,bD,bK,bJ,bH,bC,bG,bM;bE.animatedProperties={};for(bD in bA){bB=b.camelCase(bD);if(bD!==bB){bA[bB]=bA[bD];delete bA[bD]}bF=bA[bB];if(b.isArray(bF)){bE.animatedProperties[bB]=bF[1];bF=bA[bB]=bF[0]}else{bE.animatedProperties[bB]=bE.specialEasing&&bE.specialEasing[bB]||bE.easing||"swing"}if(bF==="hide"&&bI||bF==="show"&&!bI){return bE.complete.call(this)}if(bL&&(bB==="height"||bB==="width")){bE.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){this.style.display="inline-block"}else{bK=A(this.nodeName);if(bK==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}}if(bE.overflow!=null){this.style.overflow="hidden"}for(bD in bA){bJ=new b.fx(this,bE,bD);bF=bA[bD];if(aA.test(bF)){bJ[bF==="toggle"?bI?"show":"hide":bF]()}else{bH=aR.exec(bF);bC=bJ.cur();if(bH){bG=parseFloat(bH[2]);bM=bH[3]||(b.cssNumber[bD]?"":"px");if(bM!=="px"){b.style(this,bD,(bG||1)+bM);bC=((bG||1)/bJ.cur())*bC;b.style(this,bD,bC+bM)}if(bH[1]){bG=((bH[1]==="-="?-1:1)*bG)+bC}bJ.custom(bC,bG,bM)}else{bJ.custom(bC,bF,"")}}}return true})},stop:function(bx,e){if(bx){this.queue([])}this.each(function(){var bz=b.timers,by=bz.length;if(!e){b._unmark(true,this)}while(by--){if(bz[by].elem===this){if(e){bz[by](true)}bz.splice(by,1)}}});if(!e){this.dequeue()}return this}});function bi(){setTimeout(ar,0);return(a6=b.now())}function ar(){a6=N}function a2(bx,e){var by={};b.each(aH.concat.apply([],aH.slice(0,e)),function(){by[this]=bx});return by}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,bx){b.fn[e]=function(by,bA,bz){return this.animate(bx,by,bA,bz)}});b.extend({speed:function(by,bz,bx){var e=by&&typeof by==="object"?b.extend({},by):{complete:bx||!bx&&bz||b.isFunction(by)&&by,duration:by,easing:bx&&bz||bz&&!b.isFunction(bz)&&bz};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;e.old=e.complete;e.complete=function(bA){if(e.queue!==false){b.dequeue(this)}else{if(bA!==false){b._unmark(this)}}if(b.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(by,bz,e,bx){return e+bx*by},swing:function(by,bz,e,bx){return((-Math.cos(by*Math.PI)/2)+0.5)*bx+e}},timers:[],fx:function(bx,e,by){this.options=e;this.elem=bx;this.prop=by;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,bx=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bx))?!bx||bx==="auto"?0:bx:e},custom:function(bC,bB,bz){var e=this,by=b.fx,bA;this.startTime=a6||bi();this.start=bC;this.end=bB;this.unit=bz||this.unit||(b.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function bx(bD){return e.step(bD)}bx.elem=this.elem;if(bx()&&b.timers.push(bx)&&!a4){if(U){a4=1;bA=function(){if(a4){U(bA);by.tick()}};U(bA)}else{a4=setInterval(by.tick,by.interval)}}},show:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bA){var bz=a6||bi(),e=true,bB=this.elem,bx=this.options,by,bD;if(bA||bz>=bx.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bx.animatedProperties[this.prop]=true;for(by in bx.animatedProperties){if(bx.animatedProperties[by]!==true){e=false}}if(e){if(bx.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bE,bF){bB.style["overflow"+bF]=bx.overflow[bE]})}if(bx.hide){b(bB).hide()}if(bx.hide||bx.show){for(var bC in bx.animatedProperties){b.style(bB,bC,bx.orig[bC])}}bx.complete.call(bB)}return false}else{if(bx.duration==Infinity){this.now=bz}else{bD=bz-this.startTime;this.state=bD/bx.duration;this.pos=b.easing[bx.animatedProperties[this.prop]](this.state,bD,0,1,bx.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){for(var bx=b.timers,e=0;e<bx.length;++e){if(!bx[e]()){bx.splice(e--,1)}}if(!bx.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a4);a4=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.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit}else{e.elem[e.prop]=e.now}}}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bx){return e===bx.elem}).length}}function A(by){if(!T[by]){var e=b("<"+by+">").appendTo("body"),bx=e.css("display");e.remove();if(bx==="none"||bx===""){if(!bb){bb=au.createElement("iframe");bb.frameBorder=bb.width=bb.height=0}au.body.appendChild(bb);if(!n||!bb.createElement){n=(bb.contentWindow||bb.contentDocument).document;n.write("<!doctype><html><body></body></html>")}e=n.createElement(by);n.body.appendChild(e);bx=b.css(e,"display");au.body.removeChild(bb)}T[by]=bx}return T[by]}var X=/^t(?:able|d|h)$/i,ad=/^(?:body|html)$/i;if("getBoundingClientRect" in au.documentElement){b.fn.offset=function(bK){var bA=this[0],bD;if(bK){return this.each(function(e){b.offset.setOffset(this,bK,e)})}if(!bA||!bA.ownerDocument){return null}if(bA===bA.ownerDocument.body){return b.offset.bodyOffset(bA)}try{bD=bA.getBoundingClientRect()}catch(bH){}var bJ=bA.ownerDocument,by=bJ.documentElement;if(!bD||!b.contains(by,bA)){return bD?{top:bD.top,left:bD.left}:{top:0,left:0}}var bE=bJ.body,bF=aK(bJ),bC=by.clientTop||bE.clientTop||0,bG=by.clientLeft||bE.clientLeft||0,bx=bF.pageYOffset||b.support.boxModel&&by.scrollTop||bE.scrollTop,bB=bF.pageXOffset||b.support.boxModel&&by.scrollLeft||bE.scrollLeft,bI=bD.top+bx-bC,bz=bD.left+bB-bG;return{top:bI,left:bz}}}else{b.fn.offset=function(bH){var bB=this[0];if(bH){return this.each(function(bI){b.offset.setOffset(this,bH,bI)})}if(!bB||!bB.ownerDocument){return null}if(bB===bB.ownerDocument.body){return b.offset.bodyOffset(bB)}b.offset.initialize();var bE,by=bB.offsetParent,bx=bB,bG=bB.ownerDocument,bz=bG.documentElement,bC=bG.body,bD=bG.defaultView,e=bD?bD.getComputedStyle(bB,null):bB.currentStyle,bF=bB.offsetTop,bA=bB.offsetLeft;while((bB=bB.parentNode)&&bB!==bC&&bB!==bz){if(b.offset.supportsFixedPosition&&e.position==="fixed"){break}bE=bD?bD.getComputedStyle(bB,null):bB.currentStyle;bF-=bB.scrollTop;bA-=bB.scrollLeft;if(bB===by){bF+=bB.offsetTop;bA+=bB.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&X.test(bB.nodeName))){bF+=parseFloat(bE.borderTopWidth)||0;bA+=parseFloat(bE.borderLeftWidth)||0}bx=by;by=bB.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&bE.overflow!=="visible"){bF+=parseFloat(bE.borderTopWidth)||0;bA+=parseFloat(bE.borderLeftWidth)||0}e=bE}if(e.position==="relative"||e.position==="static"){bF+=bC.offsetTop;bA+=bC.offsetLeft}if(b.offset.supportsFixedPosition&&e.position==="fixed"){bF+=Math.max(bz.scrollTop,bC.scrollTop);bA+=Math.max(bz.scrollLeft,bC.scrollLeft)}return{top:bF,left:bA}}}b.offset={initialize:function(){var e=au.body,bx=au.createElement("div"),bA,bC,bB,bD,by=parseFloat(b.css(e,"marginTop"))||0,bz="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";b.extend(bx.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});bx.innerHTML=bz;e.insertBefore(bx,e.firstChild);bA=bx.firstChild;bC=bA.firstChild;bD=bA.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(bC.offsetTop!==5);this.doesAddBorderForTableAndCells=(bD.offsetTop===5);bC.style.position="fixed";bC.style.top="20px";this.supportsFixedPosition=(bC.offsetTop===20||bC.offsetTop===15);bC.style.position=bC.style.top="";bA.style.overflow="hidden";bA.style.position="relative";this.subtractsBorderForOverflowNotVisible=(bC.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==by);e.removeChild(bx);b.offset.initialize=b.noop},bodyOffset:function(e){var by=e.offsetTop,bx=e.offsetLeft;b.offset.initialize();if(b.offset.doesNotIncludeMarginInBodyOffset){by+=parseFloat(b.css(e,"marginTop"))||0;bx+=parseFloat(b.css(e,"marginLeft"))||0}return{top:by,left:bx}},setOffset:function(bz,bI,bC){var bD=b.css(bz,"position");if(bD==="static"){bz.style.position="relative"}var bB=b(bz),bx=bB.offset(),e=b.css(bz,"top"),bG=b.css(bz,"left"),bH=(bD==="absolute"||bD==="fixed")&&b.inArray("auto",[e,bG])>-1,bF={},bE={},by,bA;if(bH){bE=bB.position();by=bE.top;bA=bE.left}else{by=parseFloat(e)||0;bA=parseFloat(bG)||0}if(b.isFunction(bI)){bI=bI.call(bz,bC,bx)}if(bI.top!=null){bF.top=(bI.top-bx.top)+by}if(bI.left!=null){bF.left=(bI.left-bx.left)+bA}if("using" in bI){bI.using.call(bz,bF)}else{bB.css(bF)}}};b.fn.extend({position:function(){if(!this[0]){return null}var by=this[0],bx=this.offsetParent(),bz=this.offset(),e=ad.test(bx[0].nodeName)?{top:0,left:0}:bx.offset();bz.top-=parseFloat(b.css(by,"marginTop"))||0;bz.left-=parseFloat(b.css(by,"marginLeft"))||0;e.top+=parseFloat(b.css(bx[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bx[0],"borderLeftWidth"))||0;return{top:bz.top-e.top,left:bz.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||au.body;while(e&&(!ad.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bx,e){var by="scroll"+e;b.fn[by]=function(bB){var bz,bA;if(bB===N){bz=this[0];if(!bz){return null}bA=aK(bz);return bA?("pageXOffset" in bA)?bA[bx?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bA.document.documentElement[by]||bA.document.body[by]:bz[by]}return this.each(function(){bA=aK(this);if(bA){bA.scrollTo(!bx?bB:b(bA).scrollLeft(),bx?bB:b(bA).scrollTop())}else{this[by]=bB}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bx,e){var by=e.toLowerCase();b.fn["inner"+e]=function(){return this[0]?parseFloat(b.css(this[0],by,"padding")):null};b.fn["outer"+e]=function(bz){return this[0]?parseFloat(b.css(this[0],by,bz?"margin":"border")):null};b.fn[by]=function(bA){var bB=this[0];if(!bB){return bA==null?null:this}if(b.isFunction(bA)){return this.each(function(bF){var bE=b(this);bE[by](bA.call(this,bF,bE[by]()))})}if(b.isWindow(bB)){var bC=bB.document.documentElement["client"+e];return bB.document.compatMode==="CSS1Compat"&&bC||bB.document.body["client"+e]||bC}else{if(bB.nodeType===9){return Math.max(bB.documentElement["client"+e],bB.body["scroll"+e],bB.documentElement["scroll"+e],bB.body["offset"+e],bB.documentElement["offset"+e])}else{if(bA===N){var bD=b.css(bB,by),bz=parseFloat(bD);return b.isNaN(bz)?bD:bz}else{return this.css(by,typeof bA==="string"?bA:bA+"px")}}}}});be.jQuery=be.$=b})(window);(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 j=d.rules;var k=a.validator.staticRules(g);switch(e){case"add":a.extend(k,a.validator.normalizeRule(b));j[g.name]=k;if(b.messages){d.messages[g.name]=a.extend(d.messages[g.name],b.messages)}break;case"remove":if(!b){delete j[g.name];return k}var h={};a.each(b.split(/\s/),function(l,m){h[m]=k[m];delete k[m]});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){if(d.type==="radio"){this.findByName(d.name).addClass(b).removeClass(c)}else{a(d).addClass(b).removeClass(c)}},unhighlight:function(d,b,c){if(d.type==="radio"){this.findByName(d.name).removeClass(b).addClass(c)}else{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(this.currentForm).find("input, select, textarea").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 j in h){var g={method:j,parameters:h[j]};try{var b=a.validator.methods[j].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(j){b.settings.messages[c.name].remote=d.originalMessage;var l=j===true;if(l){var h=b.formSubmitted;b.prepareElement(c);b.formSubmitted=h;b.successList.push(c);b.showErrors()}else{var m={};var k=j||b.defaultMessage(c,"remote");m[c.name]=d.message=a.isFunction(k)?k(f):k;b.showErrors(m)}d.valid=l;b.stopRequest(c,l)}},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){var f=("mode" in e?e:c.ajaxSettings).mode,d=("port" in e?e:c.ajaxSettings).port;if(f=="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);jQuery.validator.addMethod("maxWords",function(b,a,c){return this.optional(a)||b.match(/\b\w+\b/g).length<c},"Please enter {0} words or less.");jQuery.validator.addMethod("minWords",function(b,a,c){return this.optional(a)||b.match(/\b\w+\b/g).length>=c},"Please enter at least {0} words.");jQuery.validator.addMethod("rangeWords",function(b,a,c){return this.optional(a)||b.match(/\b\w+\b/g).length>=c[0]&&b.match(/bw+b/g).length<c[1]},"Please enter between {0} and {1} words.");jQuery.validator.addMethod("letterswithbasicpunc",function(b,a){return this.optional(a)||/^[a-z-.,()'\"\s]+$/i.test(b)},"Letters or punctuation only please");jQuery.validator.addMethod("alphanumeric",function(b,a){return this.optional(a)||/^\w+$/i.test(b)},"Letters, numbers, spaces or underscores only please");jQuery.validator.addMethod("lettersonly",function(b,a){return this.optional(a)||/^[a-z]+$/i.test(b)},"Letters only please");jQuery.validator.addMethod("nowhitespace",function(b,a){return this.optional(a)||/^\S+$/i.test(b)},"No white space please");jQuery.validator.addMethod("ziprange",function(b,a){return this.optional(a)||/^90[2-5]\d\{2}-\d{4}$/.test(b)},"Your ZIP-code must be in the range 902xx-xxxx to 905-xx-xxxx");jQuery.validator.addMethod("vinUS",function(o){if(o.length!=17){return false}var h,a,l,j,b,k;var c=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"];var m=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9];var g=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2];var e=0;for(h=0;h<17;h++){j=g[h];l=o.slice(h,h+1);if(h==8){k=l}if(!isNaN(l)){l*=j}else{for(a=0;a<c.length;a++){if(l.toUpperCase()===c[a]){l=m[a];l*=j;if(isNaN(k)&&a==8){k=c[a]}break}}}e+=l}b=e%11;if(b==10){b="X"}if(b==k){return true}return false},"The specified vehicle identification number (VIN) is invalid.");jQuery.validator.addMethod("dateITA",function(e,c){var a=false;var g=/^\d{1,2}\/\d{1,2}\/\d{4}$/;if(g.test(e)){var j=e.split("/");var d=parseInt(j[0],10);var b=parseInt(j[1],10);var f=parseInt(j[2],10);var h=new Date(f,b-1,d);if((h.getFullYear()==f)&&(h.getMonth()==b-1)&&(h.getDate()==d)){a=true}else{a=false}}else{a=false}return this.optional(c)||a},"Please enter a correct date");jQuery.validator.addMethod("phone",function(a,b){a=a.replace(/\s+/g,"");return this.optional(b)||a.length>9&&a.match(/^(1-?)?(\([2-9]\d{2}\)|[2-9]\d{2})-?[2-9]\d{2}-?\d{4}$/)},"Please specify a valid phone number");jQuery.validator.addMethod("strippedminlength",function(b,a,c){return jQuery(b).text().length>=c},jQuery.format("Please enter at least {0} characters"));jQuery.validator.addMethod("email2",function(b,a,c){return this.optional(a)||/^((([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(b)},jQuery.validator.messages.email);jQuery.validator.addMethod("url2",function(b,a,c){return this.optional(a)||/^(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(b)},jQuery.validator.messages.url);jQuery.validator.addMethod("hasuppercase",function(b,a){return this.optional(a)||/[A-Z]/.test(b)},"Przynajmniej jedna wielka litera!");jQuery.validator.addMethod("hasdigit",function(b,a){return this.optional(a)||/[0-9]/.test(b)},"Przynajmniej jedna cyfra!");jQuery.validator.addMethod("hasnonalpha",function(b,a){return this.optional(a)||/\W/.test(b)},"Przynajmniej jeden znak specjalny!");jQuery.validator.addMethod("nickname",function(b,a){return this.optional(a)||/^[A-Za-z][_0-9A-Za-z]{2,31}$/i.test(b)},"Not allowed characters in nickname");jQuery.validator.addMethod("match",function(b,a,c){regexp=c;return this.optional(a)||regexp.test(b)},"Błędna wartość pola");jQuery.validator.addMethod("onetPassword",function(b,a){if(this.optional(a)){return true}else{if(!/^[!-~]{6,32}$/.test(b)){return false}if(!/[a-zA-Z]/.test(b)){return false}if(!/[0-9]/.test(b)){return false}return true}},"Błędna wartość pola");jQuery.extend(jQuery.validator.messages,{required:"To pole jest wymagane.",remote:"Proszę o wypełnienie tego pola.",email:"Proszę o podanie prawidłowego adresu email.",url:"Proszę o podanie prawidłowego URL.",date:"Proszę o podanie prawidłowej daty. Poprawny format to yyyy-mm-dd",datetime:"Proszę o podanie prawidłowej daty. Poprawny format to yyyy-mm-dd hh:mm",dateISO:"Proszę o podanie prawidłowej daty (ISO).",number:"Proszę o podanie prawidłowej liczby.",digits:"Proszę o podanie samych cyfr.",creditcard:"Proszę o podanie prawidłowej karty kredytowej.",equalTo:"Proszę o podanie tej samej wartości ponownie.",accept:"Proszę o podanie wartości z prawidłowym rozszerzeniem.",maxlength:jQuery.format("Proszę o podanie nie więcej niż {0} znaków."),minlength:jQuery.format("Proszę o podanie przynajmniej {0} znaków."),rangelength:jQuery.format("Proszę o podanie wartości o długości od {0} do {1} znaków."),rangeValue:jQuery.format("Proszę o podanie wartości z przedziału od {0} do {1}."),range:jQuery.format("Proszę o podanie wartości z przedziału od {0} do {1}."),maxValue:jQuery.format("Proszę o podanie wartości mniejszej bądź równej {0}."),max:jQuery.format("Proszę o podanie wartości mniejszej bądź równej {0}."),minValue:jQuery.format("Proszę o podanie wartości większej bądź równej {0}."),min:jQuery.format("Proszę o podanie wartości większej bądź równej {0}."),nickname:jQuery.format("Nick musi mieć od 3 do 32 znaków, zaczynać się od litery i nie zawierać polskich znaków.")});jQuery(function(a){a.datepicker.regional.pl={clearText:"Wyczyść",clearStatus:"Wyczyść obecną datę",closeText:"Zamknij",closeStatus:"Zamknij bez zapisywania",prevText:"&#x3c;Poprzedni",prevStatus:"Pokaż poprzedni miesiąc",nextText:"Następny&#x3e;",nextStatus:"Pokaż następny miesiąc",currentText:"Dziś",currentStatus:"Pokaż aktualny miesiąc",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],monthStatus:"Pokaż inny miesiąc",yearStatus:"Pokaż inny rok",weekHeader:"Tydz",weekStatus:"Tydzień roku",dayNames:["Niedziela","Poniedzialek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],dayStatus:"Ustaw DD jako pierwszy dzień tygodnia",dateStatus:"Wybierz D, M d",dateFormat:"yy-mm-dd",firstDay:1,initStatus:"Wybierz datę",isRTL:false};a.datepicker.setDefaults(a.datepicker.regional.pl)});(function(a,c){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.8",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({_focus:a.fn.focus,focus:function(d,e){return typeof d==="number"?this.each(function(){var f=this;setTimeout(function(){a(f).focus();if(e){e.call(f)}},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){d=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{d=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"))||!d.length?a(document):d},zIndex:function(g){if(g!==c){return this.css("zIndex",g)}if(this.length){var e=a(this[0]),d,f;while(e.length&&e[0]!==document){d=e.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){f=parseInt(e.css("zIndex"),10);if(!isNaN(f)&&f!==0){return f}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(d){d.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(f,d){var e=d==="Width"?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),j={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function h(m,l,k,n){a.each(e,function(){l-=parseFloat(a.curCSS(m,"padding"+this,true))||0;if(k){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"+d]=function(k){if(k===c){return j["inner"+d].call(this)}return this.each(function(){a(this).css(g,h(this,k)+"px")})};a.fn["outer"+d]=function(k,l){if(typeof k!=="number"){return j["outer"+d].call(this,k)}return this.each(function(){a(this).css(g,h(this,k,true,l)+"px")})}});function b(d){return !a(d).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(f,e,d){return !!a.data(f,d[3])},focusable:function(f){var j=f.nodeName.toLowerCase(),d=a.attr(f,"tabindex");if("area"===j){var h=f.parentNode,g=h.name,e;if(!f.href||!g||h.nodeName.toLowerCase()!=="map"){return false}e=a("img[usemap=#"+g+"]")[0];return !!e&&b(e)}return(/input|select|textarea|button|object/.test(j)?!f.disabled:"a"==j?f.href||!isNaN(d):!isNaN(d))&&b(f)},tabbable:function(e){var d=a.attr(e,"tabindex");return(isNaN(d)||d>=0)&&a(e).is(":focusable")}});a(function(){var d=document.body,e=d.appendChild(e=document.createElement("div"));a.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=e.offsetHeight===100;a.support.selectstart="onselectstart" in e;d.removeChild(e).style.display="none"});a.extend(a.ui,{plugin:{add:function(e,f,h){var g=a.ui[e].prototype;for(var d in h){g.plugins[d]=g.plugins[d]||[];g.plugins[d].push([f,h[d]])}},call:function(d,f,e){var h=d.plugins[f];if(!h||!d.element[0].parentNode){return}for(var g=0;g<h.length;g++){if(d.options[h[g][0]]){h[g][1].apply(d.element,e)}}}},contains:function(e,d){return document.compareDocumentPosition?e.compareDocumentPosition(d)&16:e!==d&&e.contains(d)},hasScroll:function(g,e){if(a(g).css("overflow")==="hidden"){return false}var d=(e&&e==="left")?"scrollLeft":"scrollTop",f=false;if(g[d]>0){return true}g[d]=1;f=(g[d]>0);g[d]=0;return f},isOverAxis:function(e,d,f){return(e>d)&&(e<(d+f))},isOver:function(j,e,h,g,d,f){return a.ui.isOverAxis(j,h,d)&&a.ui.isOverAxis(e,g,f)}})})(jQuery);(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var f=0,g;(g=e[f])!=null;f++){b(g).triggerHandler("remove")}c(e)}}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(){b(this).triggerHandler("remove")})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],k;f=f.split(".")[1];k=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][k]=function(l){return !!b.data(l,f)};b[g]=b[g]||{};b[g][f]=function(l,m){if(arguments.length){this._createWidget(l,m)}};var j=new h();j.options=b.extend(true,{},j.options);b[g][f].prototype=b.extend(true,j,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:k},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(j){var g=typeof j==="string",h=Array.prototype.slice.call(arguments,1),k=this;j=!g&&h.length?b.extend.apply(null,[true,j].concat(h)):j;if(g&&j.charAt(0)==="_"){return k}if(g){this.each(function(){var l=b.data(this,f),m=l&&b.isFunction(l[j])?l[j].apply(l,h):l;if(m!==l&&m!==d){k=m;return false}})}else{this.each(function(){var l=b.data(this,f);if(l){l.option(j||{})._init()}else{b.data(this,f,new e(j,this))}})}return k}};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);(function(a,b){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var c=this;this.element.bind("mousedown."+this.widgetName,function(d){return c._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,c.widgetName+".preventClickEvent")){a.removeData(d.target,c.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(e){e.originalEvent=e.originalEvent||{};if(e.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(e));this._mouseDownEvent=e;var d=this,f=(e.which==1),c=(typeof this.options.cancel=="string"?a(e.target).parents().add(e.target).filter(this.options.cancel).length:false);if(!f||c||!this._mouseCapture(e)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)){this._mouseStarted=(this._mouseStart(e)!==false);if(!this._mouseStarted){e.preventDefault();return true}}this._mouseMoveDelegate=function(g){return d._mouseMove(g)};this._mouseUpDelegate=function(g){return d._mouseUp(g)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);e.preventDefault();e.originalEvent.mouseHandled=true;return true},_mouseMove:function(c){if(a.browser.msie&&!(document.documentMode>=9)&&!c.button){return this._mouseUp(c)}if(this._mouseStarted){this._mouseDrag(c);return c.preventDefault()}if(this._mouseDistanceMet(c)&&this._mouseDelayMet(c)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,c)!==false);(this._mouseStarted?this._mouseDrag(c):this._mouseUp(c))}return !this._mouseStarted},_mouseUp:function(c){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(c.target==this._mouseDownEvent.target){a.data(c.target,this.widgetName+".preventClickEvent",true)}this._mouseStop(c)}return false},_mouseDistanceMet:function(c){return(Math.max(Math.abs(this._mouseDownEvent.pageX-c.pageX),Math.abs(this._mouseDownEvent.pageY-c.pageY))>=this.options.distance)},_mouseDelayMet:function(c){return this.mouseDelayMet},_mouseStart:function(c){},_mouseDrag:function(c){},_mouseStop:function(c){},_mouseCapture:function(c){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}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);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){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},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():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)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[(f.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(f.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(f.containment=="document"?0:a(window).scrollLeft())+a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(f.containment=="document"?0:a(window).scrollTop())+(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)&&f.containment.constructor!=Array){var d=a(f.containment)[0];if(!d){return}var e=a(f.containment).offset();var c=(a(d).css("overflow")!="hidden");this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(g,j){if(!j){j=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:(j.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:(j.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(f){var j=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(c[0].tagName);var e=f.pageX;var d=f.pageY;if(this.originalPosition){if(this.containment){if(f.pageX-this.offset.click.left<this.containment[0]){e=this.containment[0]+this.offset.click.left}if(f.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top}if(f.pageX-this.offset.click.left>this.containment[2]){e=this.containment[2]+this.offset.click.left}if(f.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top}}if(j.grid){var h=this.originalPageY+Math.round((d-this.originalPageY)/j.grid[1])*j.grid[1];d=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;var g=this.originalPageX+Math.round((e-this.originalPageX)/j.grid[0])*j.grid[0];e=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g}}return{top:(d-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():(k?0:c.scrollTop())))),left:(e-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():k?0:c.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.8"});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._refreshItems();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(k){var q=this.offset.click.top,p=this.offset.click.left;var h=this.positionAbs.top,m=this.positionAbs.left;var l=k.height,n=k.width;var r=k.top,j=k.left;return a.ui.isOver(h+q,m+p,r,j,l,n)};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().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","iframeFix",{start:function(c,d){var e=a(this).data("draggable").options;a(e.iframeFix===true?"iframe":e.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")})},stop:function(c,d){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});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(j,h){return(parseInt(a(j).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.8"});a.ui.intersect=function(s,k,p){if(!k.offset){return false}var e=(s.positionAbs||s.position.absolute).left,d=e+s.helperProportions.width,o=(s.positionAbs||s.position.absolute).top,n=o+s.helperProportions.height;var g=k.offset.left,c=g+k.proportions.width,q=k.offset.top,m=q+k.proportions.height;switch(p){case"fit":return(g<=e&&d<=c&&q<=o&&n<=m);break;case"intersect":return(g<e+(s.helperProportions.width/2)&&d-(s.helperProportions.width/2)<c&&q<o+(s.helperProportions.height/2)&&n-(s.helperProportions.height/2)<m);break;case"pointer":var h=((s.positionAbs||s.position.absolute).left+(s.clickOffset||s.offset.click).left),j=((s.positionAbs||s.position.absolute).top+(s.clickOffset||s.offset.click).top),f=a.ui.isOver(j,h,q,g,k.proportions.height,k.proportions.width);return f;break;case"touch":return((o>=q&&o<=m)||(n>=q&&n<=m)||(o<q&&n>m))&&((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}c[e].offset=c[e].element.offset();c[e].proportions={width:c[e].element[0].offsetWidth,height:c[e].element[0].offsetHeight};if(g=="mousedown"){c[e]._activate.call(c[e],h)}}},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},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)}})}}})(jQuery);(function(c,d){c.widget("ui.resizable",c.ui.mouse,{widgetEventPrefix:"resize",options:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,containment:false,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000},_create:function(){var f=this,k=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!(k.aspectRatio),aspectRatio:k.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:k.helper||k.ghost||k.animate?k.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){if(/relative/.test(this.element.css("position"))&&c.browser.opera){this.element.css({position:"relative",top:"auto",left:"auto"})}this.element.wrap(c('<div class="ui-wrapper" style="overflow: hidden;"></div>').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=k.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var l=this.handles.split(",");this.handles={};for(var g=0;g<l.length;g++){var j=c.trim(l[g]),e="ui-resizable-"+j;var h=c('<div class="ui-resizable-handle '+e+'"></div>');if(/sw|se|ne|nw/.test(j)){h.css({zIndex:++k.zIndex})}if("se"==j){h.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[j]=".ui-resizable-"+j;this.element.append(h)}}this._renderAxis=function(q){q=q||this.element;for(var n in this.handles){if(this.handles[n].constructor==String){this.handles[n]=c(this.handles[n],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var o=c(this.handles[n],this.element),p=0;p=/sw|ne|nw|se|n|s/.test(n)?o.outerHeight():o.outerWidth();var m=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");q.css(m,p);this._proportionallyResize()}if(!c(this.handles[n]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!f.resizing){if(this.className){var m=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}f.axis=m&&m[1]?m[1]:"se"}});if(k.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");f._handles.show()},function(){if(!f.resizing){c(this).addClass("ui-resizable-autohide");f._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var e=function(g){c(g).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){e(this.element);var f=this.element;f.after(this.originalElement.css({position:f.css("position"),width:f.outerWidth(),height:f.outerHeight(),top:f.css("top"),left:f.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);e(this.originalElement);return this},_mouseCapture:function(f){var g=false;for(var e in this.handles){if(c(this.handles[e])[0]==f.target){g=true}}return !this.options.disabled&&g},_mouseStart:function(g){var k=this.options,f=this.element.position(),e=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(e.is(".ui-draggable")||(/absolute/).test(e.css("position"))){e.css({position:"absolute",top:f.top,left:f.left})}if(c.browser.opera&&(/relative/).test(e.css("position"))){e.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var l=b(this.helper.css("left")),h=b(this.helper.css("top"));if(k.containment){l+=c(k.containment).scrollLeft()||0;h+=c(k.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:l,top:h};this.size=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalSize=this._helper?{width:e.outerWidth(),height:e.outerHeight()}:{width:e.width(),height:e.height()};this.originalPosition={left:l,top:h};this.sizeDiff={width:e.outerWidth()-e.width(),height:e.outerHeight()-e.height()};this.originalMousePosition={left:g.pageX,top:g.pageY};this.aspectRatio=(typeof k.aspectRatio=="number")?k.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var j=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",j=="auto"?this.axis+"-resize":j);e.addClass("ui-resizable-resizing");this._propagate("start",g);return true},_mouseDrag:function(e){var h=this.helper,g=this.options,n={},r=this,k=this.originalMousePosition,p=this.axis;var s=(e.pageX-k.left)||0,q=(e.pageY-k.top)||0;var j=this._change[p];if(!j){return false}var m=j.apply(this,[e,s,q]),l=c.browser.msie&&c.browser.version<7,f=this.sizeDiff;if(this._aspectRatio||e.shiftKey){m=this._updateRatio(m,e)}m=this._respectSize(m,e);this._propagate("resize",e);h.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(m);this._trigger("resize",e,this.ui());return false},_mouseStop:function(h){this.resizing=false;var j=this.options,n=this;if(this._helper){var g=this._proportionallyResizeElements,e=g.length&&(/textarea/i).test(g[0].nodeName),f=e&&c.ui.hasScroll(g[0],"left")?0:n.sizeDiff.height,l=e?0:n.sizeDiff.width;var p={width:(n.size.width-l),height:(n.size.height-f)},k=(parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left))||null,m=(parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top))||null;if(!j.animate){this.element.css(c.extend(p,{top:m,left:k}))}n.helper.height(n.size.height);n.helper.width(n.size.width);if(this._helper&&!j.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",h);if(this._helper){this.helper.remove()}return false},_updateCache:function(e){var f=this.options;this.offset=this.helper.offset();if(a(e.left)){this.position.left=e.left}if(a(e.top)){this.position.top=e.top}if(a(e.height)){this.size.height=e.height}if(a(e.width)){this.size.width=e.width}},_updateRatio:function(h,g){var j=this.options,k=this.position,f=this.size,e=this.axis;if(h.height){h.width=(f.height*this.aspectRatio)}else{if(h.width){h.height=(f.width/this.aspectRatio)}}if(e=="sw"){h.left=k.left+(f.width-h.width);h.top=null}if(e=="nw"){h.top=k.top+(f.height-h.height);h.left=k.left+(f.width-h.width)}return h},_respectSize:function(m,g){var k=this.helper,j=this.options,s=this._aspectRatio||g.shiftKey,r=this.axis,v=a(m.width)&&j.maxWidth&&(j.maxWidth<m.width),n=a(m.height)&&j.maxHeight&&(j.maxHeight<m.height),h=a(m.width)&&j.minWidth&&(j.minWidth>m.width),u=a(m.height)&&j.minHeight&&(j.minHeight>m.height);if(h){m.width=j.minWidth}if(u){m.height=j.minHeight}if(v){m.width=j.maxWidth}if(n){m.height=j.maxHeight}var f=this.originalPosition.left+this.originalSize.width,q=this.position.top+this.size.height;var l=/sw|nw|w/.test(r),e=/nw|ne|n/.test(r);if(h&&l){m.left=f-j.minWidth}if(v&&l){m.left=f-j.maxWidth}if(u&&e){m.top=q-j.minHeight}if(n&&e){m.top=q-j.maxHeight}var p=!m.width&&!m.height;if(p&&!m.left&&m.top){m.top=null}else{if(p&&!m.top&&m.left){m.left=null}}return m},_proportionallyResize:function(){var k=this.options;if(!this._proportionallyResizeElements.length){return}var g=this.helper||this.element;for(var f=0;f<this._proportionallyResizeElements.length;f++){var h=this._proportionallyResizeElements[f];if(!this.borderDif){var e=[h.css("borderTopWidth"),h.css("borderRightWidth"),h.css("borderBottomWidth"),h.css("borderLeftWidth")],j=[h.css("paddingTop"),h.css("paddingRight"),h.css("paddingBottom"),h.css("paddingLeft")];this.borderDif=c.map(e,function(l,n){var m=parseInt(l,10)||0,o=parseInt(j[n],10)||0;return m+o})}if(c.browser.msie&&!(!(c(g).is(":hidden")||c(g).parents(":hidden").length))){continue}h.css({height:(g.height()-this.borderDif[0]-this.borderDif[2])||0,width:(g.width()-this.borderDif[1]-this.borderDif[3])||0})}},_renderProxy:function(){var f=this.element,j=this.options;this.elementOffset=f.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var e=c.browser.msie&&c.browser.version<7,g=(e?1:0),h=(e?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+h,height:this.element.outerHeight()+h,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++j.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(g,f,e){return{width:this.originalSize.width+f}},w:function(h,f,e){var k=this.options,g=this.originalSize,j=this.originalPosition;return{left:j.left+f,width:g.width-f}},n:function(h,f,e){var k=this.options,g=this.originalSize,j=this.originalPosition;return{top:j.top+e,height:g.height-e}},s:function(g,f,e){return{height:this.originalSize.height+e}},se:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},sw:function(g,f,e){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[g,f,e]))},ne:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[g,f,e]))},nw:function(g,f,e){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[g,f,e]))}},_propagate:function(f,e){c.ui.plugin.call(this,f,[e,this.ui()]);(f!="resize"&&this._trigger(f,e,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.8"});c.ui.plugin.add("resizable","alsoResize",{start:function(f,g){var e=c(this).data("resizable"),j=e.options;var h=function(k){c(k).each(function(){var l=c(this);l.data("resizable-alsoresize",{width:parseInt(l.width(),10),height:parseInt(l.height(),10),left:parseInt(l.css("left"),10),top:parseInt(l.css("top"),10),position:l.css("position")})})};if(typeof(j.alsoResize)=="object"&&!j.alsoResize.parentNode){if(j.alsoResize.length){j.alsoResize=j.alsoResize[0];h(j.alsoResize)}else{c.each(j.alsoResize,function(k){h(k)})}}else{h(j.alsoResize)}},resize:function(g,j){var f=c(this).data("resizable"),k=f.options,h=f.originalSize,m=f.originalPosition;var l={height:(f.size.height-h.height)||0,width:(f.size.width-h.width)||0,top:(f.position.top-m.top)||0,left:(f.position.left-m.left)||0},e=function(n,o){c(n).each(function(){var r=c(this),s=c(this).data("resizable-alsoresize"),q={},p=o&&o.length?o:r.parents(j.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(p,function(u,w){var v=(s[w]||0)+(l[w]||0);if(v&&v>=0){q[w]=v||null}});if(c.browser.opera&&/relative/.test(r.css("position"))){f._revertToRelativePosition=true;r.css({position:"absolute",top:"auto",left:"auto"})}r.css(q)})};if(typeof(k.alsoResize)=="object"&&!k.alsoResize.nodeType){c.each(k.alsoResize,function(n,o){e(n,o)})}else{e(k.alsoResize)}},stop:function(g,h){var f=c(this).data("resizable"),j=f.options;var e=function(k){c(k).each(function(){var l=c(this);l.css({position:l.data("resizable-alsoresize").position})})};if(f._revertToRelativePosition){f._revertToRelativePosition=false;if(typeof(j.alsoResize)=="object"&&!j.alsoResize.nodeType){c.each(j.alsoResize,function(k){e(k)})}else{e(j.alsoResize)}}c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(j,p){var q=c(this).data("resizable"),k=q.options;var h=q._proportionallyResizeElements,e=h.length&&(/textarea/i).test(h[0].nodeName),f=e&&c.ui.hasScroll(h[0],"left")?0:q.sizeDiff.height,m=e?0:q.sizeDiff.width;var g={width:(q.size.width-m),height:(q.size.height-f)},l=(parseInt(q.element.css("left"),10)+(q.position.left-q.originalPosition.left))||null,n=(parseInt(q.element.css("top"),10)+(q.position.top-q.originalPosition.top))||null;q.element.animate(c.extend(g,n&&l?{top:n,left:l}:{}),{duration:k.animateDuration,easing:k.animateEasing,step:function(){var o={width:parseInt(q.element.css("width"),10),height:parseInt(q.element.css("height"),10),top:parseInt(q.element.css("top"),10),left:parseInt(q.element.css("left"),10)};if(h&&h.length){c(h[0]).css({width:o.width,height:o.height})}q._updateCache(o);q._propagate("resize",j)}})}});c.ui.plugin.add("resizable","containment",{start:function(f,s){var v=c(this).data("resizable"),k=v.options,m=v.element;var g=k.containment,l=(g instanceof c)?g.get(0):(/parent/.test(g))?m.parent().get(0):g;if(!l){return}v.containerElement=c(l);if(/document/.test(g)||g==document){v.containerOffset={left:0,top:0};v.containerPosition={left:0,top:0};v.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var q=c(l),j=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){j[p]=b(q.css("padding"+o))});v.containerOffset=q.offset();v.containerPosition=q.position();v.containerSize={height:(q.innerHeight()-j[3]),width:(q.innerWidth()-j[1])};var r=v.containerOffset,e=v.containerSize.height,n=v.containerSize.width,h=(c.ui.hasScroll(l,"left")?l.scrollWidth:n),u=(c.ui.hasScroll(l)?l.scrollHeight:e);v.parentData={element:l,left:r.left,top:r.top,width:h,height:u}}},resize:function(g,r){var v=c(this).data("resizable"),j=v.options,f=v.containerSize,q=v.containerOffset,n=v.size,p=v.position,s=v._aspectRatio||g.shiftKey,e={top:0,left:0},h=v.containerElement;if(h[0]!=document&&(/static/).test(h.css("position"))){e=q}if(p.left<(v._helper?q.left:0)){v.size.width=v.size.width+(v._helper?(v.position.left-q.left):(v.position.left-e.left));if(s){v.size.height=v.size.width/j.aspectRatio}v.position.left=j.helper?q.left:0}if(p.top<(v._helper?q.top:0)){v.size.height=v.size.height+(v._helper?(v.position.top-q.top):v.position.top);if(s){v.size.width=v.size.height*j.aspectRatio}v.position.top=v._helper?q.top:0}v.offset.left=v.parentData.left+v.position.left;v.offset.top=v.parentData.top+v.position.top;var m=Math.abs((v._helper?v.offset.left-e.left:(v.offset.left-e.left))+v.sizeDiff.width),u=Math.abs((v._helper?v.offset.top-e.top:(v.offset.top-q.top))+v.sizeDiff.height);var l=v.containerElement.get(0)==v.element.parent().get(0),k=/relative|absolute/.test(v.containerElement.css("position"));if(l&&k){m-=v.parentData.left}if(m+v.size.width>=v.parentData.width){v.size.width=v.parentData.width-m;if(s){v.size.height=v.size.width/v.aspectRatio}}if(u+v.size.height>=v.parentData.height){v.size.height=v.parentData.height-u;if(s){v.size.width=v.size.height*v.aspectRatio}}},stop:function(f,p){var r=c(this).data("resizable"),g=r.options,m=r.position,n=r.containerOffset,e=r.containerPosition,j=r.containerElement;var k=c(r.helper),s=k.offset(),q=k.outerWidth()-r.sizeDiff.width,l=k.outerHeight()-r.sizeDiff.height;if(r._helper&&!g.animate&&(/relative/).test(j.css("position"))){c(this).css({left:s.left-e.left-n.left,width:q,height:l})}if(r._helper&&!g.animate&&(/static/).test(j.css("position"))){c(this).css({left:s.left-e.left-n.left,width:q,height:l})}}});c.ui.plugin.add("resizable","ghost",{start:function(g,h){var e=c(this).data("resizable"),j=e.options,f=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof j.ghost=="string"?j.ghost:"");e.ghost.appendTo(e.helper)},resize:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost){e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})}},stop:function(f,g){var e=c(this).data("resizable"),h=e.options;if(e.ghost&&e.helper){e.helper.get(0).removeChild(e.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(e,n){var q=c(this).data("resizable"),h=q.options,l=q.size,j=q.originalSize,k=q.originalPosition,p=q.axis,m=h._aspectRatio||e.shiftKey;h.grid=typeof h.grid=="number"?[h.grid,h.grid]:h.grid;var g=Math.round((l.width-j.width)/(h.grid[0]||1))*(h.grid[0]||1),f=Math.round((l.height-j.height)/(h.grid[1]||1))*(h.grid[1]||1);if(/^(se|s|e)$/.test(p)){q.size.width=j.width+g;q.size.height=j.height+f}else{if(/^(ne)$/.test(p)){q.size.width=j.width+g;q.size.height=j.height+f;q.position.top=k.top-f}else{if(/^(sw)$/.test(p)){q.size.width=j.width+g;q.size.height=j.height+f;q.position.left=k.left-g}else{q.size.width=j.width+g;q.size.height=j.height+f;q.position.top=k.top-f;q.position.left=k.left-g}}}}});var b=function(e){return parseInt(e,10)||0};var a=function(e){return !isNaN(parseInt(e,10))}})(jQuery);(function(a,b){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var c=this;this.element.addClass("ui-selectable");this.dragged=false;var d;this.refresh=function(){d=a(c.options.filter,c.element[0]);d.each(function(){var e=a(this);var f=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:f.left,top:f.top,right:f.left+e.outerWidth(),bottom:f.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})};this.refresh();this.selectees=d.addClass("ui-selectee");this._mouseInit();this.helper=a("<div class='ui-selectable-helper'></div>")},destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item");this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy();return this},_mouseStart:function(e){var c=this;this.opos=[e.pageX,e.pageY];if(this.options.disabled){return}var d=this.options;this.selectees=a(d.filter,this.element[0]);this._trigger("start",e);a(d.appendTo).append(this.helper);this.helper.css({left:e.clientX,top:e.clientY,width:0,height:0});if(d.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var f=a.data(this,"selectable-item");f.startselected=true;if(!e.metaKey){f.$element.removeClass("ui-selected");f.selected=false;f.$element.addClass("ui-unselecting");f.unselecting=true;c._trigger("unselecting",e,{unselecting:f.element})}});a(e.target).parents().andSelf().each(function(){var g=a.data(this,"selectable-item");if(g){var f=!e.metaKey||!g.$element.hasClass("ui-selected");g.$element.removeClass(f?"ui-unselecting":"ui-selected").addClass(f?"ui-selecting":"ui-unselecting");g.unselecting=!f;g.selecting=f;g.selected=f;if(f){c._trigger("selecting",e,{selecting:g.element})}else{c._trigger("unselecting",e,{unselecting:g.element})}return false}})},_mouseDrag:function(k){var d=this;this.dragged=true;if(this.options.disabled){return}var f=this.options;var e=this.opos[0],j=this.opos[1],c=k.pageX,h=k.pageY;if(e>c){var g=c;c=e;e=g}if(j>h){var g=h;h=j;j=g}this.helper.css({left:e,top:j,width:c-e,height:h-j});this.selectees.each(function(){var l=a.data(this,"selectable-item");if(!l||l.element==d.element[0]){return}var m=false;if(f.tolerance=="touch"){m=(!(l.left>c||l.right<e||l.top>h||l.bottom<j))}else{if(f.tolerance=="fit"){m=(l.left>e&&l.right<c&&l.top>j&&l.bottom<h)}}if(m){if(l.selected){l.$element.removeClass("ui-selected");l.selected=false}if(l.unselecting){l.$element.removeClass("ui-unselecting");l.unselecting=false}if(!l.selecting){l.$element.addClass("ui-selecting");l.selecting=true;d._trigger("selecting",k,{selecting:l.element})}}else{if(l.selecting){if(k.metaKey&&l.startselected){l.$element.removeClass("ui-selecting");l.selecting=false;l.$element.addClass("ui-selected");l.selected=true}else{l.$element.removeClass("ui-selecting");l.selecting=false;if(l.startselected){l.$element.addClass("ui-unselecting");l.unselecting=true}d._trigger("unselecting",k,{unselecting:l.element})}}if(l.selected){if(!k.metaKey&&!l.startselected){l.$element.removeClass("ui-selected");l.selected=false;l.$element.addClass("ui-unselecting");l.unselecting=true;d._trigger("unselecting",k,{unselecting:l.element})}}}});return false},_mouseStop:function(e){var c=this;this.dragged=false;var d=this.options;a(".ui-unselecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-unselecting");f.unselecting=false;f.startselected=false;c._trigger("unselected",e,{unselected:f.element})});a(".ui-selecting",this.element[0]).each(function(){var f=a.data(this,"selectable-item");f.$element.removeClass("ui-selecting").addClass("ui-selected");f.selecting=false;f.selected=true;f.startselected=true;c._trigger("selected",e,{selected:f.element})});this._trigger("stop",e);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.8"})})(jQuery);(function(a,b){a.widget("ui.sortable",a.ui.mouse,{widgetEventPrefix:"sort",options:{appendTo:"parent",axis:false,connectWith:false,containment:false,cursor:"auto",cursorAt:false,dropOnEmpty:true,forcePlaceholderSize:false,forceHelperSize:false,grid:false,handle:false,helper:"original",items:"> *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000},_create:function(){var c=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?(/left|right/).test(this.items[0].item.css("float")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--){this.items[c].item.removeData("sortable-item")}return this},_setOption:function(c,d){if(c==="disabled"){this.options[c]=d;this.widget()[d?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(f,g){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(f);var e=null,d=this,c=a(f.target).parents().each(function(){if(a.data(this,"sortable-item")==d){e=a(this);return false}});if(a.data(f.target,"sortable-item")==d){e=a(f.target)}if(!e){return false}if(this.options.handle&&!g){var h=false;a(this.options.handle,e).find("*").andSelf().each(function(){if(this==f.target){h=true}});if(!h){return false}}this.currentItem=e;this._removeCurrentsFromItems();return true},_mouseStart:function(f,g,c){var h=this.options,d=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;(h.cursorAt&&this._adjustOffsetFromHelper(h.cursorAt));this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(h.containment){this._setContainment()}if(h.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",h.cursor)}if(h.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",h.opacity)}if(h.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",h.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",f,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!c){for(var e=this.containers.length-1;e>=0;e--){this.containers[e]._trigger("activate",f,d._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,f)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var h=this.options,c=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-g.pageY<h.scrollSensitivity){this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop+h.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<h.scrollSensitivity){this.scrollParent[0].scrollTop=c=this.scrollParent[0].scrollTop-h.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-g.pageX<h.scrollSensitivity){this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<h.scrollSensitivity){this.scrollParent[0].scrollLeft=c=this.scrollParent[0].scrollLeft-h.scrollSpeed}}}else{if(g.pageY-a(document).scrollTop()<h.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<h.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}if(g.pageX-a(document).scrollLeft()<h.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<h.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}if(c!==false&&a.ui.ddmanager&&!h.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,g)}}this.positionAbs=this._convertPositionTo("absolute");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"}for(var e=this.items.length-1;e>=0;e--){var f=this.items[e],d=f.item[0],j=this._intersectsWithPointer(f);if(!j){continue}if(d!=this.currentItem[0]&&this.placeholder[j==1?"next":"prev"]()[0]!=d&&!a.ui.contains(this.placeholder[0],d)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],d):true)){this.direction=j==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(f)){this._rearrange(g,f)}else{break}this._trigger("change",g,this._uiHash());break}}this._contactContainers(g);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,g)}this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(d,e){if(!d){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,d)}if(this.options.revert){var c=this;var f=c.placeholder.offset();c.reverting=true;a(this.helper).animate({left:f.left-this.offset.parent.left-c.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:f.top-this.offset.parent.top-c.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){c._clear(d)})}else{this._clear(d,e)}return false},cancel:function(){var c=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("deactivate",null,c._uiHash(this));if(this.containers[d].containerCache.over){this.containers[d]._trigger("out",null,c._uiHash(this));this.containers[d].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(e){var c=this._getItemsAsjQuery(e&&e.connected);var d=[];e=e||{};a(c).each(function(){var f=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||(/(.+)[-=_](.+)/));if(f){d.push((e.key||f[1]+"[]")+"="+(e.key&&e.expression?f[1]:f[2]))}});if(!d.length&&e.key){d.push(e.key+"=")}return d.join("&")},toArray:function(e){var c=this._getItemsAsjQuery(e&&e.connected);var d=[];e=e||{};c.each(function(){d.push(a(e.item||this).attr(e.attribute||"id")||"")});return d},_intersectsWith:function(n){var e=this.positionAbs.left,d=e+this.helperProportions.width,m=this.positionAbs.top,k=m+this.helperProportions.height;var f=n.left,c=f+n.width,o=n.top,j=o+n.height;var p=this.offset.click.top,h=this.offset.click.left;var g=(m+p)>o&&(m+p)<j&&(e+h)>f&&(e+h)<c;if(this.options.tolerance=="pointer"||this.options.forcePointerForContainers||(this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>n[this.floating?"width":"height"])){return g}else{return(f<e+(this.helperProportions.width/2)&&d-(this.helperProportions.width/2)<c&&o<m+(this.helperProportions.height/2)&&k-(this.helperProportions.height/2)<j)}},_intersectsWithPointer:function(e){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),d=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),h=f&&d,c=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(!h){return false}return this.floating?(((g&&g=="right")||c=="down")?2:1):(c&&(c=="down"?2:1))},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+(f.height/2),f.height),e=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+(f.width/2),f.width),c=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();if(this.floating&&g){return((g=="right"&&e)||(g=="left"&&!e))}else{return c&&((c=="down"&&d)||(c=="up"&&!d))}},_getDragVerticalDirection:function(){var c=this.positionAbs.top-this.lastPositionAbs.top;return c!=0&&(c>0?"down":"up")},_getDragHorizontalDirection:function(){var c=this.positionAbs.left-this.lastPositionAbs.left;return c!=0&&(c>0?"right":"left")},refresh:function(c){this._refreshItems(c);this.refreshPositions();return this},_connectWith:function(){var c=this.options;return c.connectWith.constructor==String?[c.connectWith]:c.connectWith},_getItemsAsjQuery:function(c){var m=this;var h=[];var f=[];var k=this._connectWith();if(k&&c){for(var e=k.length-1;e>=0;e--){var l=a(k[e]);for(var d=l.length-1;d>=0;d--){var g=a.data(l[d],"sortable");if(g&&g!=this&&!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element):a(g.options.items,g.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),g])}}}}f.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]);for(var e=f.length-1;e>=0;e--){f[e][0].each(function(){h.push(this)})}return a(h)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data(sortable-item)");for(var d=0;d<this.items.length;d++){for(var c=0;c<e.length;c++){if(e[c]==this.items[d].item[0]){this.items.splice(d,1)}}}},_refreshItems:function(c){this.items=[];this.containers=[this];var k=this.items;var q=this;var g=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],c,{item:this.currentItem}):a(this.options.items,this.element),this]];var m=this._connectWith();if(m){for(var f=m.length-1;f>=0;f--){var n=a(m[f]);for(var e=n.length-1;e>=0;e--){var h=a.data(n[e],"sortable");if(h&&h!=this&&!h.options.disabled){g.push([a.isFunction(h.options.items)?h.options.items.call(h.element[0],c,{item:this.currentItem}):a(h.options.items,h.element),h]);this.containers.push(h)}}}}for(var f=g.length-1;f>=0;f--){var l=g[f][1];var d=g[f][0];for(var e=0,o=d.length;e<o;e++){var p=a(d[e]);p.data("sortable-item",l);k.push({item:p,instance:l,width:0,height:0,left:0,top:0})}}},refreshPositions:function(c){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var e=this.items.length-1;e>=0;e--){var f=this.items[e];var d=this.options.toleranceElement?a(this.options.toleranceElement,f.item):f.item;if(!c){f.width=d.outerWidth();f.height=d.outerHeight()}var g=d.offset();f.left=g.left;f.top=g.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var e=this.containers.length-1;e>=0;e--){var g=this.containers[e].element.offset();this.containers[e].containerCache.left=g.left;this.containers[e].containerCache.top=g.top;this.containers[e].containerCache.width=this.containers[e].element.outerWidth();this.containers[e].containerCache.height=this.containers[e].element.outerHeight()}}return this},_createPlaceholder:function(e){var c=e||this,f=c.options;if(!f.placeholder||f.placeholder.constructor==String){var d=f.placeholder;f.placeholder={element:function(){var g=a(document.createElement(c.currentItem[0].nodeName)).addClass(d||c.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!d){g.style.visibility="hidden"}return g},update:function(g,h){if(d&&!f.forcePlaceholderSize){return}if(!h.height()){h.height(c.currentItem.innerHeight()-parseInt(c.currentItem.css("paddingTop")||0,10)-parseInt(c.currentItem.css("paddingBottom")||0,10))}if(!h.width()){h.width(c.currentItem.innerWidth()-parseInt(c.currentItem.css("paddingLeft")||0,10)-parseInt(c.currentItem.css("paddingRight")||0,10))}}}}c.placeholder=a(f.placeholder.element.call(c.element,c.currentItem));c.currentItem.after(c.placeholder);f.placeholder.update(c,c.placeholder)},_contactContainers:function(c){var e=null,l=null;for(var g=this.containers.length-1;g>=0;g--){if(a.ui.contains(this.currentItem[0],this.containers[g].element[0])){continue}if(this._intersectsWith(this.containers[g].containerCache)){if(e&&a.ui.contains(this.containers[g].element[0],e.element[0])){continue}e=this.containers[g];l=g}else{if(this.containers[g].containerCache.over){this.containers[g]._trigger("out",c,this._uiHash(this));this.containers[g].containerCache.over=0}}}if(!e){return}if(this.containers.length===1){this.containers[l]._trigger("over",c,this._uiHash(this));this.containers[l].containerCache.over=1}else{if(this.currentContainer!=this.containers[l]){var k=10000;var h=null;var d=this.positionAbs[this.containers[l].floating?"left":"top"];for(var f=this.items.length-1;f>=0;f--){if(!a.ui.contains(this.containers[l].element[0],this.items[f].item[0])){continue}var m=this.items[f][this.containers[l].floating?"left":"top"];if(Math.abs(m-d)<k){k=Math.abs(m-d);h=this.items[f]}}if(!h&&!this.options.dropOnEmpty){return}this.currentContainer=this.containers[l];h?this._rearrange(c,h,null,true):this._rearrange(c,null,this.containers[l].element,true);this._trigger("change",c,this._uiHash());this.containers[l]._trigger("change",c,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[l]._trigger("over",c,this._uiHash(this));this.containers[l].containerCache.over=1}}},_createHelper:function(d){var e=this.options;var c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[d,this.currentItem])):(e.helper=="clone"?this.currentItem.clone():this.currentItem);if(!c.parents("body").length){a(e.appendTo!="parent"?e.appendTo:this.currentItem[0].parentNode)[0].appendChild(c[0])}if(c[0]==this.currentItem[0]){this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}}if(c[0].style.width==""||e.forceHelperSize){c.width(this.currentItem.width())}if(c[0].style.height==""||e.forceHelperSize){c.height(this.currentItem.height())}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.currentItem.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.currentItem.css("marginLeft"),10)||0),top:(parseInt(this.currentItem.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(f.containment)){var d=a(f.containment)[0];var e=a(f.containment).offset();var c=(a(d).css("overflow")!="hidden");this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(c?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(c?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(g,j){if(!j){j=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:(j.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(h?0:c.scrollTop()))*e)),left:(j.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:c.scrollLeft())*e))}},_generatePosition:function(f){var j=this.options,c=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,k=(/(html|body)/i).test(c[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var e=f.pageX;var d=f.pageY;if(this.originalPosition){if(this.containment){if(f.pageX-this.offset.click.left<this.containment[0]){e=this.containment[0]+this.offset.click.left}if(f.pageY-this.offset.click.top<this.containment[1]){d=this.containment[1]+this.offset.click.top}if(f.pageX-this.offset.click.left>this.containment[2]){e=this.containment[2]+this.offset.click.left}if(f.pageY-this.offset.click.top>this.containment[3]){d=this.containment[3]+this.offset.click.top}}if(j.grid){var h=this.originalPageY+Math.round((d-this.originalPageY)/j.grid[1])*j.grid[1];d=this.containment?(!(h-this.offset.click.top<this.containment[1]||h-this.offset.click.top>this.containment[3])?h:(!(h-this.offset.click.top<this.containment[1])?h-j.grid[1]:h+j.grid[1])):h;var g=this.originalPageX+Math.round((e-this.originalPageX)/j.grid[0])*j.grid[0];e=this.containment?(!(g-this.offset.click.left<this.containment[0]||g-this.offset.click.left>this.containment[2])?g:(!(g-this.offset.click.left<this.containment[0])?g-j.grid[0]:g+j.grid[0])):g}}return{top:(d-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(k?0:c.scrollTop())))),left:(e-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():k?0:c.scrollLeft())))}},_rearrange:function(h,g,d,f){d?d[0].appendChild(this.placeholder[0]):g.item[0].parentNode.insertBefore(this.placeholder[0],(this.direction=="down"?g.item[0]:g.item[0].nextSibling));this.counter=this.counter?++this.counter:1;var e=this,c=this.counter;window.setTimeout(function(){if(c==e.counter){e.refreshPositions(!f)}},0)},_clear:function(e,f){this.reverting=false;var g=[],c=this;if(!this._noFinalSort&&this.currentItem[0].parentNode){this.placeholder.before(this.currentItem)}this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var d in this._storedCSS){if(this._storedCSS[d]=="auto"||this._storedCSS[d]=="static"){this._storedCSS[d]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}if(this.fromOutside&&!f){g.push(function(h){this._trigger("receive",h,this._uiHash(this.fromOutside))})}if((this.fromOutside||this.domPosition.prev!=this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!=this.currentItem.parent()[0])&&!f){g.push(function(h){this._trigger("update",h,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){if(!f){g.push(function(h){this._trigger("remove",h,this._uiHash())})}for(var d=this.containers.length-1;d>=0;d--){if(a.ui.contains(this.containers[d].element[0],this.currentItem[0])&&!f){g.push((function(h){return function(j){h._trigger("receive",j,this._uiHash(this))}}).call(this,this.containers[d]));g.push((function(h){return function(j){h._trigger("update",j,this._uiHash(this))}}).call(this,this.containers[d]))}}}for(var d=this.containers.length-1;d>=0;d--){if(!f){g.push((function(h){return function(j){h._trigger("deactivate",j,this._uiHash(this))}}).call(this,this.containers[d]))}if(this.containers[d].containerCache.over){g.push((function(h){return function(j){h._trigger("out",j,this._uiHash(this))}}).call(this,this.containers[d]));this.containers[d].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!f){this._trigger("beforeStop",e,this._uiHash());for(var d=0;d<g.length;d++){g[d].call(this,e)}this._trigger("stop",e,this._uiHash())}return false}if(!f){this._trigger("beforeStop",e,this._uiHash())}this.placeholder[0].parentNode.removeChild(this.placeholder[0]);if(this.helper[0]!=this.currentItem[0]){this.helper.remove()}this.helper=null;if(!f){for(var d=0;d<g.length;d++){g[d].call(this,e)}this._trigger("stop",e,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){if(a.Widget.prototype._trigger.apply(this,arguments)===false){this.cancel()}},_uiHash:function(d){var c=d||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}}});a.extend(a.ui.sortable,{version:"1.8.8"})})(jQuery);jQuery.effects||(function(h,e){h.effects={};h.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(o,n){h.fx.step[n]=function(p){if(!p.colorInit){p.start=m(p.elem,n);p.end=k(p.end);p.colorInit=true}p.elem.style[n]="rgb("+Math.max(Math.min(parseInt((p.pos*(p.end[0]-p.start[0]))+p.start[0],10),255),0)+","+Math.max(Math.min(parseInt((p.pos*(p.end[1]-p.start[1]))+p.start[1],10),255),0)+","+Math.max(Math.min(parseInt((p.pos*(p.end[2]-p.start[2]))+p.start[2],10),255),0)+")"}});function k(o){var n;if(o&&o.constructor==Array&&o.length==3){return o}if(n=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(o)){return[parseInt(n[1],10),parseInt(n[2],10),parseInt(n[3],10)]}if(n=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(o)){return[parseFloat(n[1])*2.55,parseFloat(n[2])*2.55,parseFloat(n[3])*2.55]}if(n=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(o)){return[parseInt(n[1],16),parseInt(n[2],16),parseInt(n[3],16)]}if(n=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(o)){return[parseInt(n[1]+n[1],16),parseInt(n[2]+n[2],16),parseInt(n[3]+n[3],16)]}if(n=/rgba\(0, 0, 0, 0\)/.exec(o)){return a.transparent}return a[h.trim(o).toLowerCase()]}function m(p,n){var o;do{o=h.curCSS(p,n);if(o!=""&&o!="transparent"||h.nodeName(p,"body")){break}n="backgroundColor"}while(p=p.parentNode);return k(o)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};var f=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function g(){var q=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,r={},o,p;if(q&&q.length&&q[0]&&q[q[0]]){var n=q.length;while(n--){o=q[n];if(typeof q[o]=="string"){p=o.replace(/\-(\w)/g,function(s,u){return u.toUpperCase()});r[p]=q[o]}}}else{for(o in q){if(typeof q[o]==="string"){r[o]=q[o]}}}return r}function b(o){var n,p;for(n in o){p=o[n];if(p==null||h.isFunction(p)||n in c||(/scrollbar/).test(n)||(!(/color/i).test(n)&&isNaN(parseFloat(p)))){delete o[n]}}return o}function j(n,p){var q={_:0},o;for(o in p){if(n[o]!=p[o]){q[o]=p[o]}}return q}h.effects.animateClass=function(n,o,q,p){if(h.isFunction(q)){p=q;q=null}return this.queue("fx",function(){var w=h(this),s=w.attr("style")||" ",y=b(g.call(this)),v,u=w.attr("className");h.each(f,function(z,A){if(n[A]){w[A+"Class"](n[A])}});v=b(g.call(this));w.attr("className",u);w.animate(j(y,v),o,q,function(){h.each(f,function(z,A){if(n[A]){w[A+"Class"](n[A])}});if(typeof w.attr("style")=="object"){w.attr("style").cssText="";w.attr("style").cssText=s}else{w.attr("style",s)}if(p){p.apply(this,arguments)}});var r=h.queue(this),x=r.splice(r.length-1,1)[0];r.splice(1,0,x);h.dequeue(this)})};h.fn.extend({_addClass:h.fn.addClass,addClass:function(o,n,q,p){return n?h.effects.animateClass.apply(this,[{add:o},n,q,p]):this._addClass(o)},_removeClass:h.fn.removeClass,removeClass:function(o,n,q,p){return n?h.effects.animateClass.apply(this,[{remove:o},n,q,p]):this._removeClass(o)},_toggleClass:h.fn.toggleClass,toggleClass:function(p,o,n,r,q){if(typeof o=="boolean"||o===e){if(!n){return this._toggleClass(p,o)}else{return h.effects.animateClass.apply(this,[(o?{add:p}:{remove:p}),n,r,q])}}else{return h.effects.animateClass.apply(this,[{toggle:p},o,n,r])}},switchClass:function(n,p,o,r,q){return h.effects.animateClass.apply(this,[{add:p,remove:n},o,r,q])}});h.extend(h.effects,{version:"1.8.8",save:function(o,p){for(var n=0;n<p.length;n++){if(p[n]!==null){o.data("ec.storage."+p[n],o[0].style[p[n]])}}},restore:function(o,p){for(var n=0;n<p.length;n++){if(p[n]!==null){o.css(p[n],o.data("ec.storage."+p[n]))}}},setMode:function(n,o){if(o=="toggle"){o=n.is(":hidden")?"show":"hide"}return o},getBaseline:function(o,p){var q,n;switch(o[0]){case"top":q=0;break;case"middle":q=0.5;break;case"bottom":q=1;break;default:q=o[0]/p.height}switch(o[1]){case"left":n=0;break;case"center":n=0.5;break;case"right":n=1;break;default:n=o[1]/p.width}return{x:n,y:q}},createWrapper:function(n){if(n.parent().is(".ui-effects-wrapper")){return n.parent()}var o={width:n.outerWidth(true),height:n.outerHeight(true),"float":n.css("float")},p=h("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});n.wrap(p);p=n.parent();if(n.css("position")=="static"){p.css({position:"relative"});n.css({position:"relative"})}else{h.extend(o,{position:n.css("position"),zIndex:n.css("z-index")});h.each(["top","left","bottom","right"],function(q,r){o[r]=n.css(r);if(isNaN(parseInt(o[r],10))){o[r]="auto"}});n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return p.css(o).show()},removeWrapper:function(n){if(n.parent().is(".ui-effects-wrapper")){return n.parent().replaceWith(n)}return n},setTransition:function(o,q,n,p){p=p||{};h.each(q,function(s,r){unit=o.cssUnit(r);if(unit[0]>0){p[r]=unit[0]*n+unit[1]}});return p}});function d(o,n,p,q){if(typeof o=="object"){q=n;p=null;n=o;o=n.effect}if(h.isFunction(n)){q=n;p=null;n={}}if(typeof n=="number"||h.fx.speeds[n]){q=p;p=n;n={}}if(h.isFunction(p)){q=p;p=null}n=n||{};p=p||n.duration;p=h.fx.off?0:typeof p=="number"?p:p in h.fx.speeds?h.fx.speeds[p]:h.fx.speeds._default;q=q||n.complete;return[o,n,p,q]}function l(n){if(!n||typeof n==="number"||h.fx.speeds[n]){return true}if(typeof n==="string"&&!h.effects[n]){return true}return false}h.fn.extend({effect:function(q,p,s,v){var o=d.apply(this,arguments),r={options:o[1],duration:o[2],callback:o[3]},u=r.options.mode,n=h.effects[q];if(h.fx.off||!n){if(u){return this[u](r.duration,r.callback)}else{return this.each(function(){if(r.callback){r.callback.call(this)}})}}return n.call(this,r)},_show:h.fn.show,show:function(o){if(l(o)){return this._show.apply(this,arguments)}else{var n=d.apply(this,arguments);n[1].mode="show";return this.effect.apply(this,n)}},_hide:h.fn.hide,hide:function(o){if(l(o)){return this._hide.apply(this,arguments)}else{var n=d.apply(this,arguments);n[1].mode="hide";return this.effect.apply(this,n)}},__toggle:h.fn.toggle,toggle:function(o){if(l(o)||typeof o==="boolean"||h.isFunction(o)){return this.__toggle.apply(this,arguments)}else{var n=d.apply(this,arguments);n[1].mode="toggle";return this.effect.apply(this,n)}},cssUnit:function(n){var o=this.css(n),p=[];h.each(["em","px","%","pt"],function(q,r){if(o.indexOf(r)>0){p=[parseFloat(o),r]}});return p}});h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(o,p,n,r,q){return h.easing[h.easing.def](o,p,n,r,q)},easeInQuad:function(o,p,n,r,q){return r*(p/=q)*p+n},easeOutQuad:function(o,p,n,r,q){return -r*(p/=q)*(p-2)+n},easeInOutQuad:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p+n}return -r/2*((--p)*(p-2)-1)+n},easeInCubic:function(o,p,n,r,q){return r*(p/=q)*p*p+n},easeOutCubic:function(o,p,n,r,q){return r*((p=p/q-1)*p*p+1)+n},easeInOutCubic:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p*p+n}return r/2*((p-=2)*p*p+2)+n},easeInQuart:function(o,p,n,r,q){return r*(p/=q)*p*p*p+n},easeOutQuart:function(o,p,n,r,q){return -r*((p=p/q-1)*p*p*p-1)+n},easeInOutQuart:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p*p*p+n}return -r/2*((p-=2)*p*p*p-2)+n},easeInQuint:function(o,p,n,r,q){return r*(p/=q)*p*p*p*p+n},easeOutQuint:function(o,p,n,r,q){return r*((p=p/q-1)*p*p*p*p+1)+n},easeInOutQuint:function(o,p,n,r,q){if((p/=q/2)<1){return r/2*p*p*p*p*p+n}return r/2*((p-=2)*p*p*p*p+2)+n},easeInSine:function(o,p,n,r,q){return -r*Math.cos(p/q*(Math.PI/2))+r+n},easeOutSine:function(o,p,n,r,q){return r*Math.sin(p/q*(Math.PI/2))+n},easeInOutSine:function(o,p,n,r,q){return -r/2*(Math.cos(Math.PI*p/q)-1)+n},easeInExpo:function(o,p,n,r,q){return(p==0)?n:r*Math.pow(2,10*(p/q-1))+n},easeOutExpo:function(o,p,n,r,q){return(p==q)?n+r:r*(-Math.pow(2,-10*p/q)+1)+n},easeInOutExpo:function(o,p,n,r,q){if(p==0){return n}if(p==q){return n+r}if((p/=q/2)<1){return r/2*Math.pow(2,10*(p-1))+n}return r/2*(-Math.pow(2,-10*--p)+2)+n},easeInCirc:function(o,p,n,r,q){return -r*(Math.sqrt(1-(p/=q)*p)-1)+n},easeOutCirc:function(o,p,n,r,q){return r*Math.sqrt(1-(p=p/q-1)*p)+n},easeInOutCirc:function(o,p,n,r,q){if((p/=q/2)<1){return -r/2*(Math.sqrt(1-p*p)-1)+n}return r/2*(Math.sqrt(1-(p-=2)*p)+1)+n},easeInElastic:function(o,r,n,y,w){var u=1.70158;var v=0;var q=y;if(r==0){return n}if((r/=w)==1){return n+y}if(!v){v=w*0.3}if(q<Math.abs(y)){q=y;var u=v/4}else{var u=v/(2*Math.PI)*Math.asin(y/q)}return -(q*Math.pow(2,10*(r-=1))*Math.sin((r*w-u)*(2*Math.PI)/v))+n},easeOutElastic:function(o,r,n,y,w){var u=1.70158;var v=0;var q=y;if(r==0){return n}if((r/=w)==1){return n+y}if(!v){v=w*0.3}if(q<Math.abs(y)){q=y;var u=v/4}else{var u=v/(2*Math.PI)*Math.asin(y/q)}return q*Math.pow(2,-10*r)*Math.sin((r*w-u)*(2*Math.PI)/v)+y+n},easeInOutElastic:function(o,r,n,y,w){var u=1.70158;var v=0;var q=y;if(r==0){return n}if((r/=w/2)==2){return n+y}if(!v){v=w*(0.3*1.5)}if(q<Math.abs(y)){q=y;var u=v/4}else{var u=v/(2*Math.PI)*Math.asin(y/q)}if(r<1){return -0.5*(q*Math.pow(2,10*(r-=1))*Math.sin((r*w-u)*(2*Math.PI)/v))+n}return q*Math.pow(2,-10*(r-=1))*Math.sin((r*w-u)*(2*Math.PI)/v)*0.5+y+n},easeInBack:function(o,p,n,u,r,q){if(q==e){q=1.70158}return u*(p/=r)*p*((q+1)*p-q)+n},easeOutBack:function(o,p,n,u,r,q){if(q==e){q=1.70158}return u*((p=p/r-1)*p*((q+1)*p+q)+1)+n},easeInOutBack:function(o,p,n,u,r,q){if(q==e){q=1.70158}if((p/=r/2)<1){return u/2*(p*p*(((q*=(1.525))+1)*p-q))+n}return u/2*((p-=2)*p*(((q*=(1.525))+1)*p+q)+2)+n},easeInBounce:function(o,p,n,r,q){return r-h.easing.easeOutBounce(o,q-p,0,r,q)+n},easeOutBounce:function(o,p,n,r,q){if((p/=q)<(1/2.75)){return r*(7.5625*p*p)+n}else{if(p<(2/2.75)){return r*(7.5625*(p-=(1.5/2.75))*p+0.75)+n}else{if(p<(2.5/2.75)){return r*(7.5625*(p-=(2.25/2.75))*p+0.9375)+n}else{return r*(7.5625*(p-=(2.625/2.75))*p+0.984375)+n}}}},easeInOutBounce:function(o,p,n,r,q){if(p<q/2){return h.easing.easeInBounce(o,p*2,0,r,q)*0.5+n}return h.easing.easeOutBounce(o,p*2-q,0,r,q)*0.5+r*0.5+n}})})(jQuery);(function(a,b){a.effects.blind=function(c){return this.queue(function(){var e=a(this),d=["position","top","bottom","left","right"];var j=a.effects.setMode(e,c.options.mode||"hide");var h=c.options.direction||"vertical";a.effects.save(e,d);e.show();var l=a.effects.createWrapper(e).css({overflow:"hidden"});var f=(h=="vertical")?"height":"width";var k=(h=="vertical")?l.height():l.width();if(j=="show"){l.css(f,0)}var g={};g[f]=j=="show"?k:0;l.animate(g,c.duration,c.options.easing,function(){if(j=="hide"){e.hide()}a.effects.restore(e,d);a.effects.removeWrapper(e);if(c.callback){c.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);(function(a,b){a.effects.bounce=function(c){return this.queue(function(){var f=a(this),m=["position","top","bottom","left","right"];var l=a.effects.setMode(f,c.options.mode||"effect");var o=c.options.direction||"up";var d=c.options.distance||20;var e=c.options.times||5;var h=c.duration||250;if(/show|hide/.test(l)){m.push("opacity")}a.effects.save(f,m);f.show();a.effects.createWrapper(f);var g=(o=="up"||o=="down")?"top":"left";var q=(o=="up"||o=="left")?"pos":"neg";var d=c.options.distance||(g=="top"?f.outerHeight({margin:true})/3:f.outerWidth({margin:true})/3);if(l=="show"){f.css("opacity",0).css(g,q=="pos"?-d:d)}if(l=="hide"){d=d/(e*2)}if(l!="hide"){e--}if(l=="show"){var j={opacity:1};j[g]=(q=="pos"?"+=":"-=")+d;f.animate(j,h/2,c.options.easing);d=d/2;e--}for(var k=0;k<e;k++){var p={},n={};p[g]=(q=="pos"?"-=":"+=")+d;n[g]=(q=="pos"?"+=":"-=")+d;f.animate(p,h/2,c.options.easing).animate(n,h/2,c.options.easing);d=(l=="hide")?d*2:d/2}if(l=="hide"){var j={opacity:0};j[g]=(q=="pos"?"-=":"+=")+d;f.animate(j,h/2,c.options.easing,function(){f.hide();a.effects.restore(f,m);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}})}else{var p={},n={};p[g]=(q=="pos"?"-=":"+=")+d;n[g]=(q=="pos"?"+=":"-=")+d;f.animate(p,h/2,c.options.easing).animate(n,h/2,c.options.easing,function(){a.effects.restore(f,m);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}})}f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);(function(a,b){a.effects.clip=function(c){return this.queue(function(){var g=a(this),l=["position","top","bottom","left","right","height","width"];var k=a.effects.setMode(g,c.options.mode||"hide");var m=c.options.direction||"vertical";a.effects.save(g,l);g.show();var d=a.effects.createWrapper(g).css({overflow:"hidden"});var f=g[0].tagName=="IMG"?d:g;var h={size:(m=="vertical")?"height":"width",position:(m=="vertical")?"top":"left"};var e=(m=="vertical")?f.height():f.width();if(k=="show"){f.css(h.size,0);f.css(h.position,e/2)}var j={};j[h.size]=k=="show"?e:0;j[h.position]=k=="show"?0:e/2;f.animate(j,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(k=="hide"){g.hide()}a.effects.restore(g,l);a.effects.removeWrapper(g);if(c.callback){c.callback.apply(g[0],arguments)}g.dequeue()}})})}})(jQuery);(function(a,b){a.effects.drop=function(c){return this.queue(function(){var f=a(this),e=["position","top","bottom","left","right","opacity"];var k=a.effects.setMode(f,c.options.mode||"hide");var j=c.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f);var g=(j=="up"||j=="down")?"top":"left";var d=(j=="up"||j=="left")?"pos":"neg";var l=c.options.distance||(g=="top"?f.outerHeight({margin:true})/2:f.outerWidth({margin:true})/2);if(k=="show"){f.css("opacity",0).css(g,d=="pos"?-l:l)}var h={opacity:k=="show"?1:0};h[g]=(k=="show"?(d=="pos"?"+=":"-="):(d=="pos"?"-=":"+="))+l;f.animate(h,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(k=="hide"){f.hide()}a.effects.restore(f,e);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);(function(a,b){a.effects.explode=function(c){return this.queue(function(){var l=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;var f=c.options.pieces?Math.round(Math.sqrt(c.options.pieces)):3;c.options.mode=c.options.mode=="toggle"?(a(this).is(":visible")?"hide":"show"):c.options.mode;var k=a(this).show().css("visibility","hidden");var m=k.offset();m.top-=parseInt(k.css("marginTop"),10)||0;m.left-=parseInt(k.css("marginLeft"),10)||0;var h=k.outerWidth(true);var d=k.outerHeight(true);for(var g=0;g<l;g++){for(var e=0;e<f;e++){k.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-e*(h/f),top:-g*(d/l)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/f,height:d/l,left:m.left+e*(h/f)+(c.options.mode=="show"?(e-Math.floor(f/2))*(h/f):0),top:m.top+g*(d/l)+(c.options.mode=="show"?(g-Math.floor(l/2))*(d/l):0),opacity:c.options.mode=="show"?0:1}).animate({left:m.left+e*(h/f)+(c.options.mode=="show"?0:(e-Math.floor(f/2))*(h/f)),top:m.top+g*(d/l)+(c.options.mode=="show"?0:(g-Math.floor(l/2))*(d/l)),opacity:c.options.mode=="show"?1:0},c.duration||500)}}setTimeout(function(){c.options.mode=="show"?k.css({visibility:"visible"}):k.css({visibility:"visible"}).hide();if(c.callback){c.callback.apply(k[0])}k.dequeue();a("div.ui-effects-explode").remove()},c.duration||500)})}})(jQuery);(function(a,b){a.effects.fade=function(c){return this.queue(function(){var d=a(this),e=a.effects.setMode(d,c.options.mode||"hide");d.animate({opacity:e},{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){(c.callback&&c.callback.apply(this,arguments));d.dequeue()}})})}})(jQuery);(function(a,b){a.effects.fold=function(c){return this.queue(function(){var f=a(this),m=["position","top","bottom","left","right"];var j=a.effects.setMode(f,c.options.mode||"hide");var q=c.options.size||15;var p=!(!c.options.horizFirst);var h=c.duration?c.duration/2:a.fx.speeds._default/2;a.effects.save(f,m);f.show();var e=a.effects.createWrapper(f).css({overflow:"hidden"});var k=((j=="show")!=p);var g=k?["width","height"]:["height","width"];var d=k?[e.width(),e.height()]:[e.height(),e.width()];var l=/([0-9]+)%/.exec(q);if(l){q=parseInt(l[1],10)/100*d[j=="hide"?0:1]}if(j=="show"){e.css(p?{height:0,width:q}:{height:q,width:0})}var o={},n={};o[g[0]]=j=="show"?d[0]:q;n[g[1]]=j=="show"?d[1]:0;e.animate(o,h,c.options.easing).animate(n,h,c.options.easing,function(){if(j=="hide"){f.hide()}a.effects.restore(f,m);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(f[0],arguments)}f.dequeue()})})}})(jQuery);(function(a,b){a.effects.highlight=function(c){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"],g=a.effects.setMode(e,c.options.mode||"show"),f={backgroundColor:e.css("backgroundColor")};if(g=="hide"){f.opacity=0}a.effects.save(e,d);e.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){(g=="hide"&&e.hide());a.effects.restore(e,d);(g=="show"&&!a.support.opacity&&this.style.removeAttribute("filter"));(c.callback&&c.callback.apply(this,arguments));e.dequeue()}})})}})(jQuery);(function(a,b){a.effects.pulsate=function(c){return this.queue(function(){var e=a(this),f=a.effects.setMode(e,c.options.mode||"show");times=((c.options.times||5)*2)-1;duration=c.duration?c.duration/2:a.fx.speeds._default/2,isVisible=e.is(":visible"),animateTo=0;if(!isVisible){e.css("opacity",0).show();animateTo=1}if((f=="hide"&&isVisible)||(f=="show"&&!isVisible)){times--}for(var d=0;d<times;d++){e.animate({opacity:animateTo},duration,c.options.easing);animateTo=(animateTo+1)%2}e.animate({opacity:animateTo},duration,c.options.easing,function(){if(animateTo==0){e.hide()}(c.callback&&c.callback.apply(this,arguments))});e.queue("fx",function(){e.dequeue()}).dequeue()})}})(jQuery);(function(a,b){a.effects.puff=function(c){return this.queue(function(){var g=a(this),h=a.effects.setMode(g,c.options.mode||"hide"),f=parseInt(c.options.percent,10)||150,e=f/100,d={height:g.height(),width:g.width()};a.extend(c.options,{fade:true,mode:h,percent:h=="hide"?f:100,from:h=="hide"?d:{height:d.height*e,width:d.width*e}});g.effect("scale",c.options,c.duration,c.callback);g.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var h=a(this);var e=a.extend(true,{},c.options);var l=a.effects.setMode(h,c.options.mode||"effect");var j=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:(l=="hide"?0:100));var k=c.options.direction||"both";var d=c.options.origin;if(l!="effect"){e.origin=d||["middle","center"];e.restore=true}var g={height:h.height(),width:h.width()};h.from=c.options.from||(l=="show"?{height:0,width:0}:g);var f={y:k!="horizontal"?(j/100):1,x:k!="vertical"?(j/100):1};h.to={height:g.height*f.y,width:g.width*f.x};if(c.options.fade){if(l=="show"){h.from.opacity=0;h.to.opacity=1}if(l=="hide"){h.from.opacity=1;h.to.opacity=0}}e.from=h.from;e.to=h.to;e.mode=l;h.effect("size",e,c.duration,c.callback);h.dequeue()})};a.effects.size=function(c){return this.queue(function(){var d=a(this),p=["position","top","bottom","left","right","width","height","overflow","opacity"];var o=["position","top","bottom","left","right","overflow","opacity"];var l=["width","height","overflow"];var r=["fontSize"];var m=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"];var g=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"];var h=a.effects.setMode(d,c.options.mode||"effect");var k=c.options.restore||false;var f=c.options.scale||"both";var q=c.options.origin;var e={height:d.height(),width:d.width()};d.from=c.options.from||e;d.to=c.options.to||e;if(q){var j=a.effects.getBaseline(q,e);d.from.top=(e.height-d.from.height)*j.y;d.from.left=(e.width-d.from.width)*j.x;d.to.top=(e.height-d.to.height)*j.y;d.to.left=(e.width-d.to.width)*j.x}var n={from:{y:d.from.height/e.height,x:d.from.width/e.width},to:{y:d.to.height/e.height,x:d.to.width/e.width}};if(f=="box"||f=="both"){if(n.from.y!=n.to.y){p=p.concat(m);d.from=a.effects.setTransition(d,m,n.from.y,d.from);d.to=a.effects.setTransition(d,m,n.to.y,d.to)}if(n.from.x!=n.to.x){p=p.concat(g);d.from=a.effects.setTransition(d,g,n.from.x,d.from);d.to=a.effects.setTransition(d,g,n.to.x,d.to)}}if(f=="content"||f=="both"){if(n.from.y!=n.to.y){p=p.concat(r);d.from=a.effects.setTransition(d,r,n.from.y,d.from);d.to=a.effects.setTransition(d,r,n.to.y,d.to)}}a.effects.save(d,k?p:o);d.show();a.effects.createWrapper(d);d.css("overflow","hidden").css(d.from);if(f=="content"||f=="both"){m=m.concat(["marginTop","marginBottom"]).concat(r);g=g.concat(["marginLeft","marginRight"]);l=p.concat(m).concat(g);d.find("*[width]").each(function(){child=a(this);if(k){a.effects.save(child,l)}var s={height:child.height(),width:child.width()};child.from={height:s.height*n.from.y,width:s.width*n.from.x};child.to={height:s.height*n.to.y,width:s.width*n.to.x};if(n.from.y!=n.to.y){child.from=a.effects.setTransition(child,m,n.from.y,child.from);child.to=a.effects.setTransition(child,m,n.to.y,child.to)}if(n.from.x!=n.to.x){child.from=a.effects.setTransition(child,g,n.from.x,child.from);child.to=a.effects.setTransition(child,g,n.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){if(k){a.effects.restore(child,l)}})})}d.animate(d.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(d.to.opacity===0){d.css("opacity",d.from.opacity)}if(h=="hide"){d.hide()}a.effects.restore(d,k?p:o);a.effects.removeWrapper(d);if(c.callback){c.callback.apply(this,arguments)}d.dequeue()}})})}})(jQuery);(function(a,b){a.effects.shake=function(c){return this.queue(function(){var f=a(this),m=["position","top","bottom","left","right"];var l=a.effects.setMode(f,c.options.mode||"effect");var o=c.options.direction||"left";var d=c.options.distance||20;var e=c.options.times||3;var h=c.duration||c.options.duration||140;a.effects.save(f,m);f.show();a.effects.createWrapper(f);var g=(o=="up"||o=="down")?"top":"left";var q=(o=="up"||o=="left")?"pos":"neg";var j={},p={},n={};j[g]=(q=="pos"?"-=":"+=")+d;p[g]=(q=="pos"?"+=":"-=")+d*2;n[g]=(q=="pos"?"-=":"+=")+d*2;f.animate(j,h,c.options.easing);for(var k=1;k<e;k++){f.animate(p,h,c.options.easing).animate(n,h,c.options.easing)}f.animate(p,h,c.options.easing).animate(j,h/2,c.options.easing,function(){a.effects.restore(f,m);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}});f.queue("fx",function(){f.dequeue()});f.dequeue()})}})(jQuery);(function(a,b){a.effects.slide=function(c){return this.queue(function(){var f=a(this),e=["position","top","bottom","left","right"];var k=a.effects.setMode(f,c.options.mode||"show");var j=c.options.direction||"left";a.effects.save(f,e);f.show();a.effects.createWrapper(f).css({overflow:"hidden"});var g=(j=="up"||j=="down")?"top":"left";var d=(j=="up"||j=="left")?"pos":"neg";var l=c.options.distance||(g=="top"?f.outerHeight({margin:true}):f.outerWidth({margin:true}));if(k=="show"){f.css(g,d=="pos"?(isNaN(l)?"-"+l:-l):l)}var h={};h[g]=(k=="show"?(d=="pos"?"+=":"-="):(d=="pos"?"-=":"+="))+l;f.animate(h,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){if(k=="hide"){f.hide()}a.effects.restore(f,e);a.effects.removeWrapper(f);if(c.callback){c.callback.apply(this,arguments)}f.dequeue()}})})}})(jQuery);(function(a,b){a.effects.transfer=function(c){return this.queue(function(){var g=a(this),j=a(c.options.to),f=j.offset(),h={top:f.top,left:f.left,height:j.innerHeight(),width:j.innerWidth()},e=g.offset(),d=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(c.options.className).css({top:e.top,left:e.left,height:g.innerHeight(),width:g.innerWidth(),position:"absolute"}).animate(h,c.duration,c.options.easing,function(){d.remove();(c.callback&&c.callback.apply(g[0],arguments));g.dequeue()})})}})(jQuery);(function(a,b){a.widget("ui.accordion",{options:{active:0,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()===location.href.toLowerCase()}},_create:function(){var c=this,d=c.options;c.running=0;c.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");c.headers=c.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){if(d.disabled){return}a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){if(d.disabled){return}a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){if(d.disabled){return}a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){if(d.disabled){return}a(this).removeClass("ui-state-focus")});c.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(d.navigation){var e=c.element.find("a").filter(d.navigationFilter).eq(0);if(e.length){var f=e.closest(".ui-accordion-header");if(f.length){c.active=f}else{c.active=e.closest(".ui-accordion-content").prev()}}}c.active=c._findActive(c.active||d.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");c.active.next().addClass("ui-accordion-content-active");c._createIcons();c.resize();c.element.attr("role","tablist");c.headers.attr("role","tab").bind("keydown.accordion",function(g){return c._keydown(g)}).next().attr("role","tabpanel");c.headers.not(c.active||"").attr({"aria-expanded":"false",tabIndex:-1}).next().hide();if(!c.active.length){c.headers.eq(0).attr("tabIndex",0)}else{c.active.attr({"aria-expanded":"true",tabIndex:0})}if(!a.browser.safari){c.headers.find("a").attr("tabIndex",-1)}if(d.event){c.headers.bind(d.event.split(" ").join(".accordion ")+".accordion",function(g){c._clickHandler.call(c,g,this);g.preventDefault()})}},_createIcons:function(){var c=this.options;if(c.icons){a("<span></span>").addClass("ui-icon "+c.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(c.icons.header).toggleClass(c.icons.headerSelected);this.element.addClass("ui-accordion-icons")}},_destroyIcons:function(){this.headers.children(".ui-icon").remove();this.element.removeClass("ui-accordion-icons")},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-accordion-disabled ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabIndex");this.headers.find("a").removeAttr("tabIndex");this._destroyIcons();var d=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-accordion-disabled ui-state-disabled");if(c.autoHeight||c.fillHeight){d.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);if(c=="active"){this.activate(d)}if(c=="icons"){this._destroyIcons();if(d){this._createIcons()}}if(c=="disabled"){this.headers.add(this.headers.next())[d?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(f){if(this.options.disabled||f.altKey||f.ctrlKey){return}var g=a.ui.keyCode,e=this.headers.length,c=this.headers.index(f.target),d=false;switch(f.keyCode){case g.RIGHT:case g.DOWN:d=this.headers[(c+1)%e];break;case g.LEFT:case g.UP:d=this.headers[(c-1+e)%e];break;case g.SPACE:case g.ENTER:this._clickHandler({target:f.target},f.target);f.preventDefault()}if(d){a(f.target).attr("tabIndex",-1);a(d).attr("tabIndex",0);d.focus();return false}return true},resize:function(){var c=this.options,e;if(c.fillSpace){if(a.browser.msie){var d=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}e=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",d)}this.headers.each(function(){e-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,e-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(c.autoHeight){e=0;this.headers.next().each(function(){e=Math.max(e,a(this).height("").height())}).height(e)}}return this},activate:function(c){this.options.active=c;var d=this._findActive(c)[0];this._clickHandler({target:d},d);return this},_findActive:function(c){return c?typeof c==="number"?this.headers.filter(":eq("+c+")"):this.headers.not(this.headers.not(c)):c===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(c,g){var m=this.options;if(m.disabled){return}if(!c.target){if(!m.collapsible){return}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(m.icons.headerSelected).addClass(m.icons.header);this.active.next().addClass("ui-accordion-content-active");var j=this.active.next(),f={options:m,newHeader:a([]),oldHeader:m.active,newContent:a([]),oldContent:j},d=(this.active=a([]));this._toggle(d,j,f);return}var h=a(c.currentTarget||g),k=h[0]===this.active[0];m.active=m.collapsible&&k?false:this.headers.index(h);if(this.running||(!m.collapsible&&k)){return}var e=this.active,d=h.next(),j=this.active.next(),f={options:m,newHeader:k&&m.collapsible?a([]):h,oldHeader:this.active,newContent:k&&m.collapsible?a([]):d,oldContent:j},l=this.headers.index(this.active[0])>this.headers.index(h[0]);this.active=k?a([]):h;this._toggle(d,j,f,k,l);e.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(m.icons.headerSelected).addClass(m.icons.header);if(!k){h.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(m.icons.header).addClass(m.icons.headerSelected);h.next().addClass("ui-accordion-content-active")}return},_toggle:function(c,j,g,k,l){var n=this,o=n.options;n.toShow=c;n.toHide=j;n.data=g;var d=function(){if(!n){return}return n._completed.apply(n,arguments)};n._trigger("changestart",null,n.data);n.running=j.size()===0?c.size():j.size();if(o.animated){var f={};if(o.collapsible&&k){f={toShow:a([]),toHide:j,complete:d,down:l,autoHeight:o.autoHeight||o.fillSpace}}else{f={toShow:c,toHide:j,complete:d,down:l,autoHeight:o.autoHeight||o.fillSpace}}if(!o.proxied){o.proxied=o.animated}if(!o.proxiedDuration){o.proxiedDuration=o.duration}o.animated=a.isFunction(o.proxied)?o.proxied(f):o.proxied;o.duration=a.isFunction(o.proxiedDuration)?o.proxiedDuration(f):o.proxiedDuration;var m=a.ui.accordion.animations,e=o.duration,h=o.animated;if(h&&!m[h]&&!a.easing[h]){h="slide"}if(!m[h]){m[h]=function(p){this.slide(p,{easing:h,duration:e||700})}}m[h](f)}else{if(o.collapsible&&k){c.toggle()}else{j.hide();c.show()}d(true)}j.prev().attr({"aria-expanded":"false",tabIndex:-1}).blur();c.prev().attr({"aria-expanded":"true",tabIndex:0}).focus()},_completed:function(c){this.running=c?0:--this.running;if(this.running){return}if(this.options.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this.toHide.removeClass("ui-accordion-content-active");this.toHide.parent()[0].className=this.toHide.parent()[0].className;this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.8.8",animations:{slide:function(l,j){l=a.extend({easing:"swing",duration:300},l,j);if(!l.toHide.size()){l.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},l);return}if(!l.toShow.size()){l.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},l);return}var d=l.toShow.css("overflow"),h=0,e={},g={},f=["height","paddingTop","paddingBottom"],c;var k=l.toShow;c=k[0].style.width;k.width(parseInt(k.parent().width(),10)-parseInt(k.css("paddingLeft"),10)-parseInt(k.css("paddingRight"),10)-(parseInt(k.css("borderLeftWidth"),10)||0)-(parseInt(k.css("borderRightWidth"),10)||0));a.each(f,function(m,o){g[o]="hide";var n=(""+a.css(l.toShow[0],o)).match(/^([\d+-.]+)(.*)$/);e[o]={value:n[1],unit:n[2]||"px"}});l.toShow.css({height:0,overflow:"hidden"}).show();l.toHide.filter(":hidden").each(l.complete).end().filter(":visible").animate(g,{step:function(m,n){if(n.prop=="height"){h=(n.end-n.start===0)?0:(n.now-n.start)/(n.end-n.start)}l.toShow[0].style[n.prop]=(h*e[n.prop].value)+e[n.prop].unit},duration:l.duration,easing:l.easing,complete:function(){if(!l.autoHeight){l.toShow.css("height","")}l.toShow.css({width:c,overflow:d});l.complete()}})},bounceslide:function(c){this.slide(c,{easing:c.down?"easeOutBounce":"swing",duration:c.down?1000:200})}}})})(jQuery);(function(a,b){a.widget("ui.autocomplete",{options:{appendTo:"body",delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var c=this,e=this.element[0].ownerDocument,d;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(f){if(c.options.disabled||c.element.attr("readonly")){return}d=false;var g=a.ui.keyCode;switch(f.keyCode){case g.PAGE_UP:c._move("previousPage",f);break;case g.PAGE_DOWN:c._move("nextPage",f);break;case g.UP:c._move("previous",f);f.preventDefault();break;case g.DOWN:c._move("next",f);f.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(c.menu.active){d=true;f.preventDefault()}case g.TAB:if(!c.menu.active){return}c.menu.select(f);break;case g.ESCAPE:c.element.val(c.term);c.close(f);break;default:clearTimeout(c.searching);c.searching=setTimeout(function(){if(c.term!=c.element.val()){c.selectedItem=null;c.search(null,f)}},c.options.delay);break}}).bind("keypress.autocomplete",function(f){if(d){d=false;f.preventDefault()}}).bind("focus.autocomplete",function(){if(c.options.disabled){return}c.selectedItem=null;c.previous=c.element.val()}).bind("blur.autocomplete",function(f){if(c.options.disabled){return}clearTimeout(c.searching);c.closing=setTimeout(function(){c.close(f);c._change(f)},150)});this._initSource();this.response=function(){return c._response.apply(c,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",e)[0]).mousedown(function(f){var g=c.menu.element[0];if(!a(f.target).closest(".ui-menu-item").length){setTimeout(function(){a(document).one("mousedown",function(h){if(h.target!==c.element[0]&&h.target!==g&&!a.ui.contains(g,h.target)){c.close()}})},1)}setTimeout(function(){clearTimeout(c.closing)},13)}).menu({focus:function(g,h){var f=h.item.data("item.autocomplete");if(false!==c._trigger("focus",g,{item:f})){if(/^key/.test(g.originalEvent.type)){c.element.val(f.value)}}},selected:function(h,j){var g=j.item.data("item.autocomplete"),f=c.previous;if(c.element[0]!==e.activeElement){c.element.focus();c.previous=f;setTimeout(function(){c.previous=f;c.selectedItem=g},1)}if(false!==c._trigger("select",h,{item:g})){c.element.val(g.value)}c.term=c.element.val();c.close(h);c.selectedItem=g},blur:function(f,g){if(c.menu.element.is(":visible")&&(c.element.val()!==c.term)){c.element.val(c.term)}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if(a.fn.bgiframe){this.menu.element.bgiframe()}},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(c,d){a.Widget.prototype._setOption.apply(this,arguments);if(c==="source"){this._initSource()}if(c==="appendTo"){this.menu.element.appendTo(a(d||"body",this.element[0].ownerDocument)[0])}if(c==="disabled"&&d&&this.xhr){this.xhr.abort()}},_initSource:function(){var c=this,e,d;if(a.isArray(this.options.source)){e=this.options.source;this.source=function(g,f){f(a.ui.autocomplete.filter(e,g.term))}}else{if(typeof this.options.source==="string"){d=this.options.source;this.source=function(g,f){if(c.xhr){c.xhr.abort()}c.xhr=a.ajax({url:d,data:g,dataType:"json",success:function(j,h,k){if(k===c.xhr){f(j)}c.xhr=null},error:function(h){if(h===c.xhr){f([])}c.xhr=null}})}}else{this.source=this.options.source}}},search:function(d,c){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<this.options.minLength){return this.close(c)}clearTimeout(this.closing);if(this._trigger("search",c)===false){return}return this._search(d)},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading")}},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",c)}},_change:function(c){if(this.previous!==this.element.val()){this._trigger("change",c,{item:this.selectedItem})}},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c}return a.map(c,function(d){if(typeof d==="string"){return{label:d,value:d}}return a.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(c){var d=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(d,c);this.menu.deactivate();this.menu.refresh();d.show();this._resizeMenu();d.position(a.extend({of:this.element},this.options.position))},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(e,d){var c=this;a.each(d,function(f,g){c._renderItem(e,g)})},_renderItem:function(c,d){return a("<li></li>").data("item.autocomplete",d).append(a("<a></a>").text(d.label)).appendTo(c)},_move:function(d,c){if(!this.menu.element.is(":visible")){this.search(null,c);return}if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate();return}this.menu[d](c)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(e,function(f){return d.test(f.label||f.value||f)})}})}(jQuery));(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length){return}c.preventDefault();b.select(c)});this.refresh()},refresh:function(){var c=this;var b=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");b.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(d){c.activate(d,a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(e,d){this.deactivate();if(this.hasScroll()){var f=d.offset().top-this.element.offset().top,b=this.element.attr("scrollTop"),c=this.element.height();if(f<0){this.element.attr("scrollTop",b+f)}else{if(f>=c){this.element.attr("scrollTop",b+f-c+d.height())}}}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:d})},deactivate:function(){if(!this.active){return}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,d,c){if(!this.active){this.activate(c,this.element.children(d));return}var b=this.active[e+"All"](".ui-menu-item").eq(0);if(b.length){this.activate(c,b)}else{this.activate(c,this.element.children(d))}},nextPage:function(d){if(this.hasScroll()){if(!this.active||this.last()){this.activate(d,this.element.children(".ui-menu-item:first"));return}var e=this.active.offset().top,c=this.element.height(),b=this.element.children(".ui-menu-item").filter(function(){var f=a(this).offset().top-e-c+a(this).height();return f<10&&f>-10});if(!b.length){b=this.element.children(".ui-menu-item:last")}this.activate(d,b)}else{this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(c){if(this.hasScroll()){if(!this.active||this.first()){this.activate(c,this.element.children(".ui-menu-item:last"));return}var d=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var e=a(this).offset().top-d+b-a(this).height();return e<10&&e>-10});if(!result.length){result=this.element.children(".ui-menu-item:first")}this.activate(c,result)}else{this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})}(jQuery));(function(e,h){var c,b="ui-button ui-widget ui-state-default ui-corner-all",g="ui-state-hover ui-state-active ",f="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",d=function(j){e(":ui-button",j.target.form).each(function(){var k=e(this).data("button");setTimeout(function(){k.refresh()},1)})},a=function(k){var j=k.name,l=k.form,m=e([]);if(j){if(l){m=e(l).find("[name='"+j+"']")}else{m=e("[name='"+j+"']",k.ownerDocument).filter(function(){return !this.form})}}return m};e.widget("ui.button",{options:{disabled:null,text:true,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset.button").bind("reset.button",d);if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.attr("disabled")}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var j=this,l=this.options,m=this.type==="checkbox"||this.type==="radio",n="ui-state-hover"+(!m?" ui-state-active":""),k="ui-state-focus";if(l.label===null){l.label=this.buttonElement.html()}if(this.element.is(":disabled")){l.disabled=true}this.buttonElement.addClass(b).attr("role","button").bind("mouseenter.button",function(){if(l.disabled){return}e(this).addClass("ui-state-hover");if(this===c){e(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){if(l.disabled){return}e(this).removeClass(n)}).bind("focus.button",function(){e(this).addClass(k)}).bind("blur.button",function(){e(this).removeClass(k)});if(m){this.element.bind("change.button",function(){j.refresh()})}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(l.disabled){return false}e(this).toggleClass("ui-state-active");j.buttonElement.attr("aria-pressed",j.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(l.disabled){return false}e(this).addClass("ui-state-active");j.buttonElement.attr("aria-pressed",true);var o=j.element[0];a(o).not(o).map(function(){return e(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(l.disabled){return false}e(this).addClass("ui-state-active");c=this;e(document).one("mouseup",function(){c=null})}).bind("mouseup.button",function(){if(l.disabled){return false}e(this).removeClass("ui-state-active")}).bind("keydown.button",function(o){if(l.disabled){return false}if(o.keyCode==e.ui.keyCode.SPACE||o.keyCode==e.ui.keyCode.ENTER){e(this).addClass("ui-state-active")}}).bind("keyup.button",function(){e(this).removeClass("ui-state-active")});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(o){if(o.keyCode===e.ui.keyCode.SPACE){e(this).click()}})}}}this._setOption("disabled",l.disabled)},_determineButtonType:function(){if(this.element.is(":checkbox")){this.type="checkbox"}else{if(this.element.is(":radio")){this.type="radio"}else{if(this.element.is("input")){this.type="input"}else{this.type="button"}}}if(this.type==="checkbox"||this.type==="radio"){this.buttonElement=this.element.parents().last().find("label[for="+this.element.attr("id")+"]");this.element.addClass("ui-helper-hidden-accessible");var j=this.element.is(":checked");if(j){this.buttonElement.addClass("ui-state-active")}this.buttonElement.attr("aria-pressed",j)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(b+" "+g+" "+f).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title")}e.Widget.prototype.destroy.call(this)},_setOption:function(j,k){e.Widget.prototype._setOption.apply(this,arguments);if(j==="disabled"){if(k){this.element.attr("disabled",true)}else{this.element.removeAttr("disabled")}}this._resetButton()},refresh:function(){var j=this.element.is(":disabled");if(j!==this.options.disabled){this._setOption("disabled",j)}if(this.type==="radio"){a(this.element[0]).each(function(){if(e(this).is(":checked")){e(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true)}else{e(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)}})}else{if(this.type==="checkbox"){if(this.element.is(":checked")){this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true)}else{this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)}}}},_resetButton:function(){if(this.type==="input"){if(this.options.label){this.element.val(this.options.label)}return}var m=this.buttonElement.removeClass(f),l=e("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(m.empty()).text(),k=this.options.icons,j=k.primary&&k.secondary;if(k.primary||k.secondary){m.addClass("ui-button-text-icon"+(j?"s":(k.primary?"-primary":"-secondary")));if(k.primary){m.prepend("<span class='ui-button-icon-primary ui-icon "+k.primary+"'></span>")}if(k.secondary){m.append("<span class='ui-button-icon-secondary ui-icon "+k.secondary+"'></span>")}if(!this.options.text){m.addClass(j?"ui-button-icons-only":"ui-button-icon-only").removeClass("ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary");if(!this.hasTitle){m.attr("title",l)}}}else{m.addClass("ui-button-text-only")}}});e.widget("ui.buttonset",{options:{items:":button, :submit, :reset, :checkbox, :radio, a, :data(button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(j,k){if(j==="disabled"){this.buttons.button("option",j,k)}e.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return e(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");e.Widget.prototype.destroy.call(this)}})}(jQuery));(function($,undefined){$.extend($.ui,{datepicker:{version:"1.8.8"}});var PROP_NAME="datepicker";var dpuuid=new Date().getTime();function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){this.uuid+=1;target.id="dp"+this.uuid}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}this._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});this._autoSize(inst);$.data(target,PROP_NAME,inst)},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(inst.append){inst.append.remove()}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}input.unbind("focus",this._showDatepicker);if(inst.trigger){inst.trigger.remove()}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(input[0])}return false})}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);var dateFormat=this._get(inst,"dateFormat");if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;var maxI=0;for(var i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i}}return maxI};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())}inst.input.attr("size",this._formatDate(inst,date).length)}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);inst.dpDiv.show()},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){this.uuid+=1;var id="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});date=(date&&date.constructor==Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=document.documentElement.clientWidth;var browserHeight=document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker()}var date=this._getDateDatepicker(target,true);extendRemove(inst.settings,settings);this._attachments($(target),inst);this._autoSize(inst);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:var sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker()}return false;break;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}}catch(event){$.datepicker.log(event)}}return true},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!=inst){$.datepicker._curInst.dpDiv.stop(true,true)}var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){var borders=$.datepicker._getBorders(inst.dpDiv);cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}};inst.dpDiv.zIndex($(input).zIndex()+1);if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess)}if(!showAnim||!duration){postProcess()}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var self=this;var borders=$.datepicker._getBorders(inst.dpDiv);inst.dpDiv.empty().append(this._generateHTML(inst));var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}inst.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}if(inst.yearshtml){var origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml){inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml)}origyearshtml=inst.yearshtml=null},0)}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value};return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))]},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=document.documentElement.clientWidth+$(document).scrollLeft();var viewHeight=document.documentElement.clientHeight+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset},_findPos:function(obj){var inst=this._getInst(obj);var isRTL=this._get(inst,"isRTL");while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj[isRTL?"previousSibling":"nextSibling"]}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");var duration=this._get(inst,"duration");var postProcess=function(){$.datepicker._tidyDialog(inst);this._curInst=null};if($.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess)}if(!showAnim){postProcess()}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker()}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear){setTimeout(function(){inst.input.focus()},0)}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input.focus()}this._lastInput=null}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));var time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){var isDoubled=lookAhead(match);var size=(match=="@"?14:(match=="!"?20:(match=="y"&&isDoubled?4:(match=="o"?3:2))));var digits=new RegExp("^\\d{1,"+size+"}");var num=value.substring(iValue).match(digits);if(!num){throw"Missing number at position "+iValue}iValue+=num[0].length;return parseInt(num[0],10)};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);for(var i=0;i<names.length;i++){if(value.substr(iValue,names[i].length).toLowerCase()==names[i].toLowerCase()){iValue+=names[i].length;return i+1}}throw"Unknown name at position "+iValue};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":output+=formatNumber("o",(date.getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"!":output+=date.getTime()*10000+this._ticksTo1970;break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return}var dateFormat=this._get(inst,"dateFormat");var dates=inst.lastVal=inst.input?inst.input.val():null;var date,defaultDate;date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);dates=(noDefault?"":dates)}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};var newDate=(date==null||date===""?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()=="Invalid Date"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0)}return this._daylightSavingAdjust(newDate)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,noChange){var clear=!date;var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;var newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+dpuuid+".datepicker._gotoToday('#"+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var showWeek=this._get(inst,"showWeek");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var selectOtherMonths=this._get(inst,"selectOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group';if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+=" ui-datepicker-group-last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+=" ui-datepicker-group-middle";cornerClass="";break}}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' onclick="DP_jQuery_'+dpuuid+".datepicker._selectDay('#"+inst.id+"',"+printDate.getMonth()+","+printDate.getFullYear()+', this);return false;"')+">"+(otherMonth&&!showOtherMonths?"&#xa0;":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'M');\" onclick=\"DP_jQuery_"+dpuuid+".datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")}inst.yearshtml="";if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var thisYear=new Date().getFullYear();var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};var year=determineYear(years[0]);var endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+dpuuid+".datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}inst.yearshtml+="</select>";if(!$.browser.mozilla){html+=inst.yearshtml;inst.yearshtml=null}else{html+='<select class="ui-datepicker-year"><option value="'+drawYear+'" selected="selected">'+drawYear+"</option></select>"}}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?"&#xa0;":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var newDate=(minDate&&date<minDate?minDate:date);newDate=(maxDate&&newDate>maxDate?maxDate:newDate);return newDate},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.8.8";window["DP_jQuery_"+dpuuid]=$})(jQuery);(function(d,e){var b="ui-dialog ui-widget ui-widget-content ui-corner-all ",a={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},c={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true};d.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(g){var f=d(this).css(g).offset().top;if(f<0){d(this).css("top",g.top-f)}}},resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},_create:function(){this.originalTitle=this.element.attr("title");if(typeof this.originalTitle!=="string"){this.originalTitle=""}this.options.title=this.options.title||this.originalTitle;var o=this,p=o.options,m=p.title||"&#160;",g=d.ui.dialog.getTitleId(o.element),n=(o.uiDialog=d("<div></div>")).appendTo(document.body).hide().addClass(b+p.dialogClass).css({zIndex:p.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(q){if(p.closeOnEscape&&q.keyCode&&q.keyCode===d.ui.keyCode.ESCAPE){o.close(q);q.preventDefault()}}).attr({role:"dialog","aria-labelledby":g}).mousedown(function(q){o.moveToTop(false,q)}),j=o.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n),h=(o.uiDialogTitlebar=d("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),l=d('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).click(function(q){o.close(q);return false}).appendTo(h),k=(o.uiDialogTitlebarCloseText=d("<span></span>")).addClass("ui-icon ui-icon-closethick").text(p.closeText).appendTo(l),f=d("<span></span>").addClass("ui-dialog-title").attr("id",g).html(m).prependTo(h);if(d.isFunction(p.beforeclose)&&!d.isFunction(p.beforeClose)){p.beforeClose=p.beforeclose}h.find("*").add(h).disableSelection();if(p.draggable&&d.fn.draggable){o._makeDraggable()}if(p.resizable&&d.fn.resizable){o._makeResizable()}o._createButtons(p.buttons);o._isOpen=false;if(d.fn.bgiframe){n.bgiframe()}},_init:function(){if(this.options.autoOpen){this.open()}},destroy:function(){var f=this;if(f.overlay){f.overlay.destroy()}f.uiDialog.hide();f.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");f.uiDialog.remove();if(f.originalTitle){f.element.attr("title",f.originalTitle)}return f},widget:function(){return this.uiDialog},close:function(j){var f=this,h,g;if(false===f._trigger("beforeClose",j)){return}if(f.overlay){f.overlay.destroy()}f.uiDialog.unbind("keypress.ui-dialog");f._isOpen=false;if(f.options.hide){f.uiDialog.hide(f.options.hide,function(){f._trigger("close",j)})}else{f.uiDialog.hide();f._trigger("close",j)}d.ui.dialog.overlay.resize();if(f.options.modal){h=0;d(".ui-dialog").each(function(){if(this!==f.uiDialog[0]){g=d(this).css("z-index");if(!isNaN(g)){h=Math.max(h,g)}}});d.ui.dialog.maxZ=h}return f},isOpen:function(){return this._isOpen},moveToTop:function(k,j){var f=this,h=f.options,g;if((h.modal&&!k)||(!h.stack&&!h.modal)){return f._trigger("focus",j)}if(h.zIndex>d.ui.dialog.maxZ){d.ui.dialog.maxZ=h.zIndex}if(f.overlay){d.ui.dialog.maxZ+=1;f.overlay.$el.css("z-index",d.ui.dialog.overlay.maxZ=d.ui.dialog.maxZ)}g={scrollTop:f.element.attr("scrollTop"),scrollLeft:f.element.attr("scrollLeft")};d.ui.dialog.maxZ+=1;f.uiDialog.css("z-index",d.ui.dialog.maxZ);f.element.attr(g);f._trigger("focus",j);return f},open:function(){if(this._isOpen){return}var g=this,h=g.options,f=g.uiDialog;g.overlay=h.modal?new d.ui.dialog.overlay(g):null;g._size();g._position(h.position);f.show(h.show);g.moveToTop(true);if(h.modal){f.bind("keypress.ui-dialog",function(l){if(l.keyCode!==d.ui.keyCode.TAB){return}var k=d(":tabbable",this),m=k.filter(":first"),j=k.filter(":last");if(l.target===j[0]&&!l.shiftKey){m.focus(1);return false}else{if(l.target===m[0]&&l.shiftKey){j.focus(1);return false}}})}d(g.element.find(":tabbable").get().concat(f.find(".ui-dialog-buttonpane :tabbable").get().concat(f.get()))).eq(0).focus();g._isOpen=true;g._trigger("open");return g},_createButtons:function(j){var h=this,f=false,g=d("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),k=d("<div></div>").addClass("ui-dialog-buttonset").appendTo(g);h.uiDialog.find(".ui-dialog-buttonpane").remove();if(typeof j==="object"&&j!==null){d.each(j,function(){return !(f=true)})}if(f){d.each(j,function(l,n){n=d.isFunction(n)?{click:n,text:l}:n;var m=d('<button type="button"></button>').attr(n,true).unbind("click").click(function(){n.click.apply(h.element[0],arguments)}).appendTo(k);if(d.fn.button){m.button()}});g.appendTo(h.uiDialog)}},_makeDraggable:function(){var f=this,j=f.options,k=d(document),h;function g(l){return{position:l.position,offset:l.offset}}f.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(l,m){h=j.height==="auto"?"auto":d(this).height();d(this).height(d(this).height()).addClass("ui-dialog-dragging");f._trigger("dragStart",l,g(m))},drag:function(l,m){f._trigger("drag",l,g(m))},stop:function(l,m){j.position=[m.position.left-k.scrollLeft(),m.position.top-k.scrollTop()];d(this).removeClass("ui-dialog-dragging").height(h);f._trigger("dragStop",l,g(m));d.ui.dialog.overlay.resize()}})},_makeResizable:function(l){l=(l===e?this.options.resizable:l);var g=this,k=g.options,f=g.uiDialog.css("position"),j=(typeof l==="string"?l:"n,e,s,w,se,sw,ne,nw");function h(m){return{originalPosition:m.originalPosition,originalSize:m.originalSize,position:m.position,size:m.size}}g.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:g.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:g._minHeight(),handles:j,start:function(m,n){d(this).addClass("ui-dialog-resizing");g._trigger("resizeStart",m,h(n))},resize:function(m,n){g._trigger("resize",m,h(n))},stop:function(m,n){d(this).removeClass("ui-dialog-resizing");k.height=d(this).height();k.width=d(this).width();g._trigger("resizeStop",m,h(n));d.ui.dialog.overlay.resize()}}).css("position",f).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var f=this.options;if(f.height==="auto"){return f.minHeight}else{return Math.min(f.minHeight,f.height)}},_position:function(g){var h=[],j=[0,0],f;if(g){if(typeof g==="string"||(typeof g==="object"&&"0" in g)){h=g.split?g.split(" "):[g[0],g[1]];if(h.length===1){h[1]=h[0]}d.each(["left","top"],function(l,k){if(+h[l]===h[l]){j[l]=h[l];h[l]=k}});g={my:h.join(" "),at:h.join(" "),offset:j.join(" ")}}g=d.extend({},d.ui.dialog.prototype.options.position,g)}else{g=d.ui.dialog.prototype.options.position}f=this.uiDialog.is(":visible");if(!f){this.uiDialog.show()}this.uiDialog.css({top:0,left:0}).position(d.extend({of:window},g));if(!f){this.uiDialog.hide()}},_setOptions:function(j){var g=this,f={},h=false;d.each(j,function(k,l){g._setOption(k,l);if(k in a){h=true}if(k in c){f[k]=l}});if(h){this._size()}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",f)}},_setOption:function(j,k){var g=this,f=g.uiDialog;switch(j){case"beforeclose":j="beforeClose";break;case"buttons":g._createButtons(k);break;case"closeText":g.uiDialogTitlebarCloseText.text(""+k);break;case"dialogClass":f.removeClass(g.options.dialogClass).addClass(b+k);break;case"disabled":if(k){f.addClass("ui-dialog-disabled")}else{f.removeClass("ui-dialog-disabled")}break;case"draggable":var h=f.is(":data(draggable)");if(h&&!k){f.draggable("destroy")}if(!h&&k){g._makeDraggable()}break;case"position":g._position(k);break;case"resizable":var l=f.is(":data(resizable)");if(l&&!k){f.resizable("destroy")}if(l&&typeof k==="string"){f.resizable("option","handles",k)}if(!l&&k!==false){g._makeResizable(k)}break;case"title":d(".ui-dialog-title",g.uiDialogTitlebar).html(""+(k||"&#160;"));break}d.Widget.prototype._setOption.apply(g,arguments)},_size:function(){var k=this.options,g,j,f=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(k.minWidth>k.width){k.width=k.minWidth}g=this.uiDialog.css({height:"auto",width:k.width}).height();j=Math.max(0,k.minHeight-g);if(k.height==="auto"){if(d.support.minHeight){this.element.css({minHeight:j,height:"auto"})}else{this.uiDialog.show();var h=this.element.css("height","auto").height();if(!f){this.uiDialog.hide()}this.element.height(Math.max(h,j))}}else{this.element.height(Math.max(k.height-g,0))}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight())}}});d.extend(d.ui.dialog,{version:"1.8.8",uuid:0,maxZ:0,getTitleId:function(f){var g=f.attr("id");if(!g){this.uuid+=1;g=this.uuid}return"ui-dialog-title-"+g},overlay:function(f){this.$el=d.ui.dialog.overlay.create(f)}});d.extend(d.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:d.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(f){return f+".dialog-overlay"}).join(" "),create:function(g){if(this.instances.length===0){setTimeout(function(){if(d.ui.dialog.overlay.instances.length){d(document).bind(d.ui.dialog.overlay.events,function(h){if(d(h.target).zIndex()<d.ui.dialog.overlay.maxZ){return false}})}},1);d(document).bind("keydown.dialog-overlay",function(h){if(g.options.closeOnEscape&&h.keyCode&&h.keyCode===d.ui.keyCode.ESCAPE){g.close(h);h.preventDefault()}});d(window).bind("resize.dialog-overlay",d.ui.dialog.overlay.resize)}var f=(this.oldInstances.pop()||d("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});if(d.fn.bgiframe){f.bgiframe()}this.instances.push(f);return f},destroy:function(f){var g=d.inArray(f,this.instances);if(g!=-1){this.oldInstances.push(this.instances.splice(g,1)[0])}if(this.instances.length===0){d([document,window]).unbind(".dialog-overlay")}f.remove();var h=0;d.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var g,f;if(d.browser.msie&&d.browser.version<7){g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);f=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(g<f){return d(window).height()+"px"}else{return g+"px"}}else{return d(document).height()+"px"}},width:function(){var f,g;if(d.browser.msie&&d.browser.version<7){f=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);g=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(f<g){return d(window).width()+"px"}else{return f+"px"}}else{return d(document).width()+"px"}},resize:function(){var f=d([]);d.each(d.ui.dialog.overlay.instances,function(){f=f.add(this)});f.css({width:0,height:0}).css({width:d.ui.dialog.overlay.width(),height:d.ui.dialog.overlay.height()})}});d.extend(d.ui.dialog.overlay.prototype,{destroy:function(){d.ui.dialog.overlay.destroy(this.$el)}})}(jQuery));(function(f,g){f.ui=f.ui||{};var d=/left|center|right/,e=/top|center|bottom/,a="center",b=f.fn.position,c=f.fn.offset;f.fn.position=function(j){if(!j||!j.of){return b.apply(this,arguments)}j=f.extend({},j);var n=f(j.of),m=n[0],p=(j.collision||"flip").split(" "),o=j.offset?j.offset.split(" "):[0,0],l,h,k;if(m.nodeType===9){l=n.width();h=n.height();k={top:0,left:0}}else{if(m.setTimeout){l=n.width();h=n.height();k={top:n.scrollTop(),left:n.scrollLeft()}}else{if(m.preventDefault){j.at="left top";l=h=0;k={top:j.of.pageY,left:j.of.pageX}}else{l=n.outerWidth();h=n.outerHeight();k=n.offset()}}}f.each(["my","at"],function(){var q=(j[this]||"").split(" ");if(q.length===1){q=d.test(q[0])?q.concat([a]):e.test(q[0])?[a].concat(q):[a,a]}q[0]=d.test(q[0])?q[0]:a;q[1]=e.test(q[1])?q[1]:a;j[this]=q});if(p.length===1){p[1]=p[0]}o[0]=parseInt(o[0],10)||0;if(o.length===1){o[1]=o[0]}o[1]=parseInt(o[1],10)||0;if(j.at[0]==="right"){k.left+=l}else{if(j.at[0]===a){k.left+=l/2}}if(j.at[1]==="bottom"){k.top+=h}else{if(j.at[1]===a){k.top+=h/2}}k.left+=o[0];k.top+=o[1];return this.each(function(){var u=f(this),w=u.outerWidth(),s=u.outerHeight(),v=parseInt(f.curCSS(this,"marginLeft",true))||0,r=parseInt(f.curCSS(this,"marginTop",true))||0,y=w+v+(parseInt(f.curCSS(this,"marginRight",true))||0),z=s+r+(parseInt(f.curCSS(this,"marginBottom",true))||0),x=f.extend({},k),q;if(j.my[0]==="right"){x.left-=w}else{if(j.my[0]===a){x.left-=w/2}}if(j.my[1]==="bottom"){x.top-=s}else{if(j.my[1]===a){x.top-=s/2}}x.left=Math.round(x.left);x.top=Math.round(x.top);q={left:x.left-v,top:x.top-r};f.each(["left","top"],function(B,A){if(f.ui.position[p[B]]){f.ui.position[p[B]][A](x,{targetWidth:l,targetHeight:h,elemWidth:w,elemHeight:s,collisionPosition:q,collisionWidth:y,collisionHeight:z,offset:o,my:j.my,at:j.at})}});if(f.fn.bgiframe){u.bgiframe()}u.offset(f.extend(x,{using:j.using}))})};f.ui.position={fit:{left:function(h,j){var l=f(window),k=j.collisionPosition.left+j.collisionWidth-l.width()-l.scrollLeft();h.left=k>0?h.left-k:Math.max(h.left-j.collisionPosition.left,h.left)},top:function(h,j){var l=f(window),k=j.collisionPosition.top+j.collisionHeight-l.height()-l.scrollTop();h.top=k>0?h.top-k:Math.max(h.top-j.collisionPosition.top,h.top)}},flip:{left:function(j,l){if(l.at[0]===a){return}var n=f(window),m=l.collisionPosition.left+l.collisionWidth-n.width()-n.scrollLeft(),h=l.my[0]==="left"?-l.elemWidth:l.my[0]==="right"?l.elemWidth:0,k=l.at[0]==="left"?l.targetWidth:-l.targetWidth,o=-2*l.offset[0];j.left+=l.collisionPosition.left<0?h+k+o:m>0?h+k+o:0},top:function(j,l){if(l.at[1]===a){return}var n=f(window),m=l.collisionPosition.top+l.collisionHeight-n.height()-n.scrollTop(),h=l.my[1]==="top"?-l.elemHeight:l.my[1]==="bottom"?l.elemHeight:0,k=l.at[1]==="top"?l.targetHeight:-l.targetHeight,o=-2*l.offset[1];j.top+=l.collisionPosition.top<0?h+k+o:m>0?h+k+o:0}}};if(!f.offset.setOffset){f.offset.setOffset=function(m,j){if(/static/.test(f.curCSS(m,"position"))){m.style.position="relative"}var l=f(m),o=l.offset(),h=parseInt(f.curCSS(m,"top",true),10)||0,n=parseInt(f.curCSS(m,"left",true),10)||0,k={top:(j.top-o.top)+h,left:(j.left-o.left)+n};if("using" in j){j.using.call(m,k)}else{l.css(k)}};f.fn.offset=function(h){var j=this[0];if(!j||!j.ownerDocument){return null}if(h){return this.each(function(){f.offset.setOffset(this,h)})}return c.call(this)}}}(jQuery));(function(a,b){a.widget("ui.progressbar",{options:{value:0,max:100},min:0,_create:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min,"aria-valuemax":this.options.max,"aria-valuenow":this._value()});this.valueDiv=a("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element);this.oldValue=this._value();this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow");this.valueDiv.remove();a.Widget.prototype.destroy.apply(this,arguments)},value:function(c){if(c===b){return this._value()}this._setOption("value",c);return this},_setOption:function(c,d){if(c==="value"){this.options.value=d;this._refreshValue();if(this._value()===this.options.max){this._trigger("complete")}}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var c=this.options.value;if(typeof c!=="number"){c=0}return Math.min(this.options.max,Math.max(this.min,c))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var d=this.value();var c=this._percentage();if(this.oldValue!==d){this.oldValue=d;this._trigger("change")}this.valueDiv.toggleClass("ui-corner-right",d===this.options.max).width(c.toFixed(0)+"%");this.element.attr("aria-valuenow",d)}});a.extend(a.ui.progressbar,{version:"1.8.8"})})(jQuery);(function(b,c){var a=5;b.widget("ui.slider",b.ui.mouse,{widgetEventPrefix:"slide",options:{animate:false,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null},_create:function(){var d=this,e=this.options;this._keySliding=false;this._mouseSliding=false;this._animateOff=true;this._handleIndex=null;this._detectOrientation();this._mouseInit();this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all");if(e.disabled){this.element.addClass("ui-slider-disabled ui-disabled")}this.range=b([]);if(e.range){if(e.range===true){this.range=b("<div></div>");if(!e.values){e.values=[this._valueMin(),this._valueMin()]}if(e.values.length&&e.values.length!==2){e.values=[e.values[0],e.values[0]]}}else{this.range=b("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(e.range==="min"||e.range==="max"){this.range.addClass("ui-slider-range-"+e.range)}this.range.addClass("ui-widget-header")}if(b(".ui-slider-handle",this.element).length===0){b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}if(e.values&&e.values.length){while(b(".ui-slider-handle",this.element).length<e.values.length){b("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=b(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(f){f.preventDefault()}).hover(function(){if(!e.disabled){b(this).addClass("ui-state-hover")}},function(){b(this).removeClass("ui-state-hover")}).focus(function(){if(!e.disabled){b(".ui-slider .ui-state-focus").removeClass("ui-state-focus");b(this).addClass("ui-state-focus")}else{b(this).blur()}}).blur(function(){b(this).removeClass("ui-state-focus")});this.handles.each(function(f){b(this).data("index.ui-slider-handle",f)});this.handles.keydown(function(l){var h=true,g=b(this).data("index.ui-slider-handle"),m,j,f,k;if(d.options.disabled){return}switch(l.keyCode){case b.ui.keyCode.HOME:case b.ui.keyCode.END:case b.ui.keyCode.PAGE_UP:case b.ui.keyCode.PAGE_DOWN:case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:h=false;if(!d._keySliding){d._keySliding=true;b(this).addClass("ui-state-active");m=d._start(l,g);if(m===false){return}}break}k=d.options.step;if(d.options.values&&d.options.values.length){j=f=d.values(g)}else{j=f=d.value()}switch(l.keyCode){case b.ui.keyCode.HOME:f=d._valueMin();break;case b.ui.keyCode.END:f=d._valueMax();break;case b.ui.keyCode.PAGE_UP:f=d._trimAlignValue(j+((d._valueMax()-d._valueMin())/a));break;case b.ui.keyCode.PAGE_DOWN:f=d._trimAlignValue(j-((d._valueMax()-d._valueMin())/a));break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(j===d._valueMax()){return}f=d._trimAlignValue(j+k);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(j===d._valueMin()){return}f=d._trimAlignValue(j-k);break}d._slide(l,g,f);return h}).keyup(function(g){var f=b(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(g,f);d._change(g,f);b(this).removeClass("ui-state-active")}});this._refreshValue();this._animateOff=false},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy();return this},_mouseCapture:function(f){var g=this.options,k,m,e,h,p,l,n,j,d;if(g.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();k={x:f.pageX,y:f.pageY};m=this._normValueFromMouse(k);e=this._valueMax()-this._valueMin()+1;p=this;this.handles.each(function(o){var q=Math.abs(m-p.values(o));if(e>q){e=q;h=b(this);l=o}});if(g.range===true&&this.values(1)===g.min){l+=1;h=b(this.handles[l])}n=this._start(f,l);if(n===false){return false}this._mouseSliding=true;p._handleIndex=l;h.addClass("ui-state-active").focus();j=h.offset();d=!b(f.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=d?{left:0,top:0}:{left:f.pageX-j.left-(h.width()/2),top:f.pageY-j.top-(h.height()/2)-(parseInt(h.css("borderTopWidth"),10)||0)-(parseInt(h.css("borderBottomWidth"),10)||0)+(parseInt(h.css("marginTop"),10)||0)};if(!this.handles.hasClass("ui-state-hover")){this._slide(f,l,m)}this._animateOff=true;return true},_mouseStart:function(d){return true},_mouseDrag:function(f){var d={x:f.pageX,y:f.pageY},e=this._normValueFromMouse(d);this._slide(f,this._handleIndex,e);return false},_mouseStop:function(d){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(d,this._handleIndex);this._change(d,this._handleIndex);this._handleIndex=null;this._clickOffset=null;this._animateOff=false;return false},_detectOrientation:function(){this.orientation=(this.options.orientation==="vertical")?"vertical":"horizontal"},_normValueFromMouse:function(e){var d,h,g,f,j;if(this.orientation==="horizontal"){d=this.elementSize.width;h=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;h=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}g=(h/d);if(g>1){g=1}if(g<0){g=0}if(this.orientation==="vertical"){g=1-g}f=this._valueMax()-this._valueMin();j=this._valueMin()+g*f;return this._trimAlignValue(j)},_start:function(f,e){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}return this._trigger("start",f,d)},_slide:function(h,g,f){var d,e,j;if(this.options.values&&this.options.values.length){d=this.values(g?0:1);if((this.options.values.length===2&&this.options.range===true)&&((g===0&&f>d)||(g===1&&f<d))){f=d}if(f!==this.values(g)){e=this.values();e[g]=f;j=this._trigger("slide",h,{handle:this.handles[g],value:f,values:e});d=this.values(g?0:1);if(j!==false){this.values(g,f,true)}}}else{if(f!==this.value()){j=this._trigger("slide",h,{handle:this.handles[g],value:f});if(j!==false){this.value(f)}}}},_stop:function(f,e){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}this._trigger("stop",f,d)},_change:function(f,e){if(!this._keySliding&&!this._mouseSliding){var d={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){d.value=this.values(e);d.values=this.values()}this._trigger("change",f,d)}},value:function(d){if(arguments.length){this.options.value=this._trimAlignValue(d);this._refreshValue();this._change(null,0)}return this._value()},values:function(e,h){var g,d,f;if(arguments.length>1){this.options.values[e]=this._trimAlignValue(h);this._refreshValue();this._change(null,e)}if(arguments.length){if(b.isArray(arguments[0])){g=this.options.values;d=arguments[0];for(f=0;f<g.length;f+=1){g[f]=this._trimAlignValue(d[f]);this._change(null,f)}this._refreshValue()}else{if(this.options.values&&this.options.values.length){return this._values(e)}else{return this.value()}}}else{return this._values()}},_setOption:function(e,f){var d,g=0;if(b.isArray(this.options.values)){g=this.options.values.length}b.Widget.prototype._setOption.apply(this,arguments);switch(e){case"disabled":if(f){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(d=0;d<g;d+=1){this._change(null,d)}this._animateOff=false;break}},_value:function(){var d=this.options.value;d=this._trimAlignValue(d);return d},_values:function(d){var g,f,e;if(arguments.length){g=this.options.values[d];g=this._trimAlignValue(g);return g}else{f=this.options.values.slice();for(e=0;e<f.length;e+=1){f[e]=this._trimAlignValue(f[e])}return f}},_trimAlignValue:function(f){if(f<=this._valueMin()){return this._valueMin()}if(f>=this._valueMax()){return this._valueMax()}var d=(this.options.step>0)?this.options.step:1,e=(f-this._valueMin())%d;alignValue=f-e;if(Math.abs(e)*2>=d){alignValue+=(e>0)?d:(-d)}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var g=this.options.range,f=this.options,n=this,e=(!this._animateOff)?f.animate:false,h,d={},j,l,k,m;if(this.options.values&&this.options.values.length){this.handles.each(function(p,o){h=(n.values(p)-n._valueMin())/(n._valueMax()-n._valueMin())*100;d[n.orientation==="horizontal"?"left":"bottom"]=h+"%";b(this).stop(1,1)[e?"animate":"css"](d,f.animate);if(n.options.range===true){if(n.orientation==="horizontal"){if(p===0){n.range.stop(1,1)[e?"animate":"css"]({left:h+"%"},f.animate)}if(p===1){n.range[e?"animate":"css"]({width:(h-j)+"%"},{queue:false,duration:f.animate})}}else{if(p===0){n.range.stop(1,1)[e?"animate":"css"]({bottom:(h)+"%"},f.animate)}if(p===1){n.range[e?"animate":"css"]({height:(h-j)+"%"},{queue:false,duration:f.animate})}}}j=h})}else{l=this.value();k=this._valueMin();m=this._valueMax();h=(m!==k)?(l-k)/(m-k)*100:0;d[n.orientation==="horizontal"?"left":"bottom"]=h+"%";this.handle.stop(1,1)[e?"animate":"css"](d,f.animate);if(g==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[e?"animate":"css"]({width:h+"%"},f.animate)}if(g==="max"&&this.orientation==="horizontal"){this.range[e?"animate":"css"]({width:(100-h)+"%"},{queue:false,duration:f.animate})}if(g==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[e?"animate":"css"]({height:h+"%"},f.animate)}if(g==="max"&&this.orientation==="vertical"){this.range[e?"animate":"css"]({height:(100-h)+"%"},{queue:false,duration:f.animate})}}}});b.extend(b.ui.slider,{version:"1.8.8"})}(jQuery));(function(d,f){var c=0,b=0;function e(){return ++c}function a(){return ++b}d.widget("ui.tabs",{options:{add:null,ajaxOptions:null,cache:false,cookie:null,collapsible:false,disable:null,disabled:[],enable:null,event:"click",fx:null,idPrefix:"ui-tabs-",load:null,panelTemplate:"<div></div>",remove:null,select:null,show:null,spinner:"<em>Loading&#8230;</em>",tabTemplate:"<li><a href='#{href}'><span>#{label}</span></a></li>"},_create:function(){this._tabify(true)},_setOption:function(g,h){if(g=="selected"){if(this.options.collapsible&&h==this.options.selected){return}this.select(h)}else{this.options[g]=h;this._tabify()}},_tabId:function(g){return g.title&&g.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(g){return g.replace(/:/g,"\\:")},_cookie:function(){var g=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a());return d.cookie.apply(null,[g].concat(d.makeArray(arguments)))},_ui:function(h,g){return{tab:h,panel:g,index:this.anchors.index(h)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var g=d(this);g.html(g.data("label.tabs")).removeData("label.tabs")})},_tabify:function(u){var v=this,j=this.options,h=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=d(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return d("a",this)[0]});this.panels=d([]);this.anchors.each(function(x,o){var w=d(o).attr("href");var y=w.split("#")[0],z;if(y&&(y===location.toString().split("#")[0]||(z=d("base")[0])&&y===z.href)){w=o.hash;o.href=w}if(h.test(w)){v.panels=v.panels.add(v.element.find(v._sanitizeSelector(w)))}else{if(w&&w!=="#"){d.data(o,"href.tabs",w);d.data(o,"load.tabs",w.replace(/#.*$/,""));var B=v._tabId(o);o.href="#"+B;var A=v.element.find("#"+B);if(!A.length){A=d(j.panelTemplate).attr("id",B).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(v.panels[x-1]||v.list);A.data("destroy.tabs",true)}v.panels=v.panels.add(A)}else{j.disabled.push(x)}}});if(u){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(j.selected===f){if(location.hash){this.anchors.each(function(w,o){if(o.hash==location.hash){j.selected=w;return false}})}if(typeof j.selected!=="number"&&j.cookie){j.selected=parseInt(v._cookie(),10)}if(typeof j.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){j.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}j.selected=j.selected||(this.lis.length?0:-1)}else{if(j.selected===null){j.selected=-1}}j.selected=((j.selected>=0&&this.anchors[j.selected])||j.selected<0)?j.selected:0;j.disabled=d.unique(j.disabled.concat(d.map(this.lis.filter(".ui-state-disabled"),function(w,o){return v.lis.index(w)}))).sort();if(d.inArray(j.selected,j.disabled)!=-1){j.disabled.splice(d.inArray(j.selected,j.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(j.selected>=0&&this.anchors.length){v.element.find(v._sanitizeSelector(v.anchors[j.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(j.selected).addClass("ui-tabs-selected ui-state-active");v.element.queue("tabs",function(){v._trigger("show",null,v._ui(v.anchors[j.selected],v.element.find(v._sanitizeSelector(v.anchors[j.selected].hash))))});this.load(j.selected)}d(window).bind("unload",function(){v.lis.add(v.anchors).unbind(".tabs");v.lis=v.anchors=v.panels=null})}else{j.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[j.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(j.cookie){this._cookie(j.selected,j.cookie)}for(var m=0,s;(s=this.lis[m]);m++){d(s)[d.inArray(m,j.disabled)!=-1&&!d(s).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(j.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(j.event!=="mouseover"){var l=function(w,o){if(o.is(":not(.ui-state-disabled)")){o.addClass("ui-state-"+w)}};var p=function(w,o){o.removeClass("ui-state-"+w)};this.lis.bind("mouseover.tabs",function(){l("hover",d(this))});this.lis.bind("mouseout.tabs",function(){p("hover",d(this))});this.anchors.bind("focus.tabs",function(){l("focus",d(this).closest("li"))});this.anchors.bind("blur.tabs",function(){p("focus",d(this).closest("li"))})}var g,n;if(j.fx){if(d.isArray(j.fx)){g=j.fx[0];n=j.fx[1]}else{g=n=j.fx}}function k(o,w){o.css("display","");if(!d.support.opacity&&w.opacity){o[0].style.removeAttribute("filter")}}var q=n?function(o,w){d(o).closest("li").addClass("ui-tabs-selected ui-state-active");w.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){k(w,n);v._trigger("show",null,v._ui(o,w[0]))})}:function(o,w){d(o).closest("li").addClass("ui-tabs-selected ui-state-active");w.removeClass("ui-tabs-hide");v._trigger("show",null,v._ui(o,w[0]))};var r=g?function(w,o){o.animate(g,g.duration||"normal",function(){v.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");k(o,g);v.element.dequeue("tabs")})}:function(w,o,x){v.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");v.element.dequeue("tabs")};this.anchors.bind(j.event+".tabs",function(){var w=this,y=d(w).closest("li"),o=v.panels.filter(":not(.ui-tabs-hide)"),x=v.element.find(v._sanitizeSelector(w.hash));if((y.hasClass("ui-tabs-selected")&&!j.collapsible)||y.hasClass("ui-state-disabled")||y.hasClass("ui-state-processing")||v.panels.filter(":animated").length||v._trigger("select",null,v._ui(this,x[0]))===false){this.blur();return false}j.selected=v.anchors.index(this);v.abort();if(j.collapsible){if(y.hasClass("ui-tabs-selected")){j.selected=-1;if(j.cookie){v._cookie(j.selected,j.cookie)}v.element.queue("tabs",function(){r(w,o)}).dequeue("tabs");this.blur();return false}else{if(!o.length){if(j.cookie){v._cookie(j.selected,j.cookie)}v.element.queue("tabs",function(){q(w,x)});v.load(v.anchors.index(this));this.blur();return false}}}if(j.cookie){v._cookie(j.selected,j.cookie)}if(x.length){if(o.length){v.element.queue("tabs",function(){r(w,o)})}v.element.queue("tabs",function(){q(w,x)});v.load(v.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(d.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(g){if(typeof g=="string"){g=this.anchors.index(this.anchors.filter("[href$="+g+"]"))}return g},destroy:function(){var g=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var h=d.data(this,"href.tabs");if(h){this.href=h}var j=d(this).unbind(".tabs");d.each(["href","load","cache"],function(k,l){j.removeData(l+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(d.data(this,"destroy.tabs")){d(this).remove()}else{d(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(g.cookie){this._cookie(null,g.cookie)}return this},add:function(k,j,h){if(h===f){h=this.anchors.length}var g=this,m=this.options,p=d(m.tabTemplate.replace(/#\{href\}/g,k).replace(/#\{label\}/g,j)),n=!k.indexOf("#")?k.replace("#",""):this._tabId(d("a",p)[0]);p.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var l=g.element.find("#"+n);if(!l.length){l=d(m.panelTemplate).attr("id",n).data("destroy.tabs",true)}l.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(h>=this.lis.length){p.appendTo(this.list);l.appendTo(this.list[0].parentNode)}else{p.insertBefore(this.lis[h]);l.insertBefore(this.panels[h])}m.disabled=d.map(m.disabled,function(q,o){return q>=h?++q:q});this._tabify();if(this.anchors.length==1){m.selected=0;p.addClass("ui-tabs-selected ui-state-active");l.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){g._trigger("show",null,g._ui(g.anchors[0],g.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[h],this.panels[h]));return this},remove:function(g){g=this._getIndex(g);var j=this.options,k=this.lis.eq(g).remove(),h=this.panels.eq(g).remove();if(k.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(g+(g+1<this.anchors.length?1:-1))}j.disabled=d.map(d.grep(j.disabled,function(m,l){return m!=g}),function(m,l){return m>=g?--m:m});this._tabify();this._trigger("remove",null,this._ui(k.find("a")[0],h[0]));return this},enable:function(g){g=this._getIndex(g);var h=this.options;if(d.inArray(g,h.disabled)==-1){return}this.lis.eq(g).removeClass("ui-state-disabled");h.disabled=d.grep(h.disabled,function(k,j){return k!=g});this._trigger("enable",null,this._ui(this.anchors[g],this.panels[g]));return this},disable:function(h){h=this._getIndex(h);var g=this,j=this.options;if(h!=j.selected){this.lis.eq(h).addClass("ui-state-disabled");j.disabled.push(h);j.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[h],this.panels[h]))}return this},select:function(g){g=this._getIndex(g);if(g==-1){if(this.options.collapsible&&this.options.selected!=-1){g=this.options.selected}else{return this}}this.anchors.eq(g).trigger(this.options.event+".tabs");return this},load:function(k){k=this._getIndex(k);var h=this,m=this.options,g=this.anchors.eq(k)[0],j=d.data(g,"load.tabs");this.abort();if(!j||this.element.queue("tabs").length!==0&&d.data(g,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(k).addClass("ui-state-processing");if(m.spinner){var l=d("span",g);l.data("label.tabs",l.html()).html(m.spinner)}this.xhr=d.ajax(d.extend({},m.ajaxOptions,{url:j,success:function(o,n){h.element.find(h._sanitizeSelector(g.hash)).html(o);h._cleanup();if(m.cache){d.data(g,"cache.tabs",true)}h._trigger("load",null,h._ui(h.anchors[k],h.panels[k]));try{m.ajaxOptions.success(o,n)}catch(p){}},error:function(p,n,o){h._cleanup();h._trigger("load",null,h._ui(h.anchors[k],h.panels[k]));try{m.ajaxOptions.error(p,n,k,g)}catch(o){}}}));h.element.dequeue("tabs");return this},abort:function(){this.element.queue([]);this.panels.stop(false,true);this.element.queue("tabs",this.element.queue("tabs").splice(-2,2));if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup();return this},url:function(h,g){this.anchors.eq(h).removeData("cache.tabs").data("load.tabs",g);return this},length:function(){return this.anchors.length}});d.extend(d.ui.tabs,{version:"1.8.8"});d.extend(d.ui.tabs.prototype,{rotation:null,rotate:function(j,l){var g=this,m=this.options;var h=g._rotate||(g._rotate=function(n){clearTimeout(g.rotation);g.rotation=setTimeout(function(){var o=m.selected;g.select(++o<g.anchors.length?o:0)},j);if(n){n.stopPropagation()}});var k=g._unrotate||(g._unrotate=!l?function(n){if(n.clientX){g.rotate(null)}}:function(n){t=m.selected;h()});if(j){this.element.bind("tabsshow",h);this.anchors.bind(m.event+".tabs",k);h()}else{clearTimeout(g.rotation);this.element.unbind("tabsshow",h);this.anchors.unbind(m.event+".tabs",k);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(g){var k,l,h=[],m=window;g.fn.tinymce=function(q){var a=this,u,f,s,d,r,e="",c="";if(!a.length){return a}if(!q){return tinyMCE.get(a[0].id)}function b(){var n=[],o=0;if(j){j();j=null}a.each(function(z,y){var A,p=y.id,x=q.oninit;if(!p){y.id=p=tinymce.DOM.uniqueId()}A=new tinymce.Editor(p,q);n.push(A);if(x){A.onInit.add(function(){var v,w=x;if(++o==n.length){if(tinymce.is(w,"string")){v=(w.indexOf(".")===-1)?null:tinymce.resolve(w.replace(/\.\w+$/,""));w=tinymce.resolve(w)}w.apply(v||tinymce,n)}})}});g.each(n,function(p,v){v.render()})}if(!m.tinymce&&!l&&(u=q.script_url)){l=1;s=u.substring(0,u.lastIndexOf("/"));if(/_(src|dev)\.js/g.test(u)){c="_src"}d=u.lastIndexOf("?");if(d!=-1){e=u.substring(d+1)}m.tinyMCEPreInit=m.tinyMCEPreInit||{base:s,suffix:c,query:e};if(u.indexOf("gzip")!=-1){r=q.language||"en";u=u+(/\?/.test(u)?"&":"?")+"js=true&core=true&suffix="+escape(c)+"&themes="+escape(q.theme)+"&plugins="+escape(q.plugins)+"&languages="+r;if(!m.tinyMCE_GZ){tinyMCE_GZ={start:function(){tinymce.suffix=c;function n(o){tinymce.ScriptLoader.markDone(tinyMCE.baseURI.toAbsolute(o))}n("langs/"+r+".js");n("themes/"+q.theme+"/editor_template"+c+".js");n("themes/"+q.theme+"/langs/"+r+".js");g.each(q.plugins.split(","),function(o,p){if(p){n("plugins/"+p+"/editor_plugin"+c+".js");n("plugins/"+p+"/langs/"+r+".js")}})},end:function(){}}}}g.ajax({type:"GET",url:u,dataType:"script",cache:true,success:function(){tinymce.dom.Event.domLoaded=1;l=2;if(q.script_loaded){q.script_loaded()}b();g.each(h,function(o,n){n()})}})}else{if(l===1){h.push(b)}else{b()}}return a};g.extend(g.expr[":"],{tinymce:function(a){return a.id&&!!tinyMCE.get(a.id)}});function j(){function c(f){if(f==="remove"){this.each(function(r,q){var p=d(q);if(p){p.remove()}})}this.find("span.mceEditor,div.mceEditor").each(function(r,q){var p=tinyMCE.get(q.id.replace(/_parent$/,""));if(p){p.remove()}})}function a(p){var f=this,o;if(p!==k){c.call(f);f.each(function(r,n){var s;if(s=tinyMCE.get(n.id)){s.setContent(p)}})}else{if(f.length>0){if(o=tinyMCE.get(f[0].id)){return o.getContent()}}}}function d(f){var n=null;(f)&&(f.id)&&(m.tinymce)&&(n=tinyMCE.get(f.id));return n}function e(f){return !!((f)&&(f.length)&&(m.tinymce)&&(f.is(":tinymce")))}var b={};g.each(["text","html","val"],function(r,p){var q=b[p]=g.fn[p],f=(p==="text");g.fn[p]=function(n){var v=this;if(!e(v)){return q.apply(v,arguments)}if(n!==k){a.call(v.filter(":tinymce"),n);q.apply(v.not(":tinymce"),arguments);return v}else{var o="";var u=arguments;(f?v:v.eq(0)).each(function(w,s){var x=d(s);o+=x?(f?x.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):x.getContent()):q.apply(g(s),u)});return o}}});g.each(["append","prepend"],function(r,f){var q=b[f]=g.fn[f],p=(f==="prepend");g.fn[f]=function(n){var o=this;if(!e(o)){return q.apply(o,arguments)}if(n!==k){o.filter(":tinymce").each(function(v,u){var w=d(u);w&&w.setContent(p?n+w.getContent():w.getContent()+n)});q.apply(o.not(":tinymce"),arguments);return o}}});g.each(["remove","replaceWith","replaceAll","empty"],function(f,o){var p=b[o]=g.fn[o];g.fn[o]=function(){c.call(this,o);return p.apply(this,arguments)}});b.attr=g.fn.attr;g.fn.attr=function(w,s,v){var f=this;if((!w)||(w!=="value")||(!e(f))){return b.attr.call(f,w,s,v)}if(s!==k){a.call(f.filter(":tinymce"),s);b.attr.call(f.not(":tinymce"),w,s,v);return f}else{var u=f[0],r=d(u);return r?r.getContent():b.attr.call(g(u),w,s,v)}}}})(jQuery);(function($,undefined){function Time(hours,minutes,seconds){switch(typeof hours){case"number":if(minutes===undefined){this.setFromSeconds(hours)}else{this.set(hours,minutes,seconds)}break;case"string":this.setFromString(hours,minutes);break;case"object":if(hours.getDate!==undefined){this.setFromDate(hours)}else{this.setFromTime(hours)}break;default:if(hours===undefined){break}throw"illegal parameters";break}}Time.prototype.hours=0;Time.prototype.minutes=0;Time.prototype.seconds=0;Time.prototype.getHours=function(){return this.hours};Time.prototype.setHours=function(hours){this.hours=hours};Time.prototype.getMinutes=function(){return this.minutes};Time.prototype.setMinutes=function(minutes){this.minutes=minutes};Time.prototype.getSeconds=function(){return this.seconds};Time.prototype.setSeconds=function(seconds){this.seconds=seconds};Time.prototype.getTime=function(){return this.hours*3600+this.minutes*60+this.seconds};Time.prototype.GT=function(time){return(this.hours>time.hours||(this.hours==time.hours&&this.minutes>time.minutes)||(this.hours==time.hours&&this.minutes==time.minutes&&this.seconds>time.seconds))?true:false};Time.prototype.LT=function(time){return(this.hours<time.hours||(this.hours==time.hours&&this.minutes<time.minutes)||(this.hours==time.hours&&this.minutes==time.minutes&&this.seconds<time.seconds))?true:false};Time.prototype.equals=function(time){return(this.hours==time.hours&&this.minutes==time.minutes&&this.seconds==time.seconds)?true:false};Time._isValidFormat=function(format){var match=(format.match(/(^((TT|tt|T|t)(\s)?)?h{1,2}((:|\.)m{1,2}((:|\.)s{1,2})?)?$)|(^h{1,2}((:|\.)m{1,2}((:|\.)s{1,2})?)?((\s)?(TT|tt|T|t))?$)|(^m{1,2}((:|\.)s{1,2})?$)|(^s{1,2}$)/g)!==null);var matchSep1=(format.match(/:/)===null);var matchSep2=(format.match(/\./)===null);var matchSep=(matchSep1&&matchSep2)||(matchSep1!=matchSep2);return(match&&matchSep)};Time._isValidTime=function(time,format){var is12HourFormat=Time._is12HourFormat(format);var numTimeFormat=format.replace(/hh/g,is12HourFormat?"((0[0-9])|(1[0-2]))":"(([0-1][0-9])|(2[0-4]))").replace(/h/g,is12HourFormat?"(([0-9])|(1[0-2]))":"(([0-9])|(1[0-9])|(2[0-4]))").replace(/mm/g,"([0-5][0-9])").replace(/m/g,"(([1-9])|([1-5][0-9]))").replace(/ss/g,"([0-5][0-9])").replace(/s/g,"(([1-9])|([1-5][0-9]))").replace(/TT/g,"(AM|PM)").replace(/tt/g,"(am|pm)").replace(/T/g,"(A|P)").replace(/t/g,"(a|p)");var numTimeFormat="^"+numTimeFormat+"$";return time===undefined?false:time.match(numTimeFormat)!==null};Time._is12HourFormat=function(format){return format.match(/t{1,2}/ig)!==null};Time.prototype.formatTime=function(format){var timeFormat="";if(format===undefined){timeFormat="hh:mm tt"}else{if(Time._isValidFormat(format)){timeFormat=format}else{throw"illegal format"}}var formattedTime="";var ampm=(this.hours>=12)?"PM":"AM";var hours=Time._is12HourFormat(timeFormat)?(this.hours>12?this.hours%12:(this.hours==0?12:this.hours)):this.hours;formattedTime=timeFormat.toString().replace(/hh/g,((hours<10)?"0":"")+hours).replace(/h/g,hours).replace(/mm/g,((this.minutes<10)?"0":"")+this.minutes).replace(/m/g,this.minutes).replace(/ss/g,((this.seconds<10)?"0":"")+this.seconds).replace(/s/g,this.seconds).replace(/TT/g,ampm.toUpperCase()).replace(/tt/g,ampm.toLowerCase()).replace(/T/g,ampm.charAt(0).toUpperCase()).replace(/t/g,ampm.charAt(0).toLowerCase());return formattedTime};Time.prototype.set=function(hours,minutes,seconds){var hours=(hours===undefined||(typeof hours!="number"))?0:Math.round(hours);var minutes=(minutes===undefined||(typeof minutes!="number"))?0:Math.round(minutes);var seconds=(seconds===undefined||(typeof minutes!="number"))?0:Math.round(seconds);this.setFromSeconds(hours*3600+minutes*60+seconds)};Time.prototype.setFromDate=function(date){if(date.getHours()===undefined||date.getMinutes()===undefined||date.getSeconds()===undefined){throw"illegal parameters"}this.hours=date.getHours();this.minutes=date.getMinutes();this.seconds=date.getSeconds()};Time.prototype.setFromTime=function(time){var hours=(time.hours===undefined||(typeof time.hours!="number"))?0:Math.round(time.hours);var minutes=(time.minutes===undefined||(typeof time.minutes!="number"))?0:Math.round(time.minutes);var seconds=(time.seconds===undefined||(typeof time.seconds!="number"))?0:Math.round(time.seconds);this.setFromSeconds(hours*3600+minutes*60+seconds)};Time.prototype.setMaxHour=function(){this.hours=23;this.minutes=59;this.seconds=59};Time.prototype.setMinHour=function(){this.hours=0;this.minutes=0;this.seconds=0};Time.prototype.setFromSeconds=function(seconds){if(seconds>=24*3600){this.setMaxHour()}else{if(seconds<0){this.setMinHour()}else{this.hours=Math.floor(seconds/3600);this.minutes=Math.floor((seconds%3600)/60);this.seconds=(seconds%3600)%60}}};Time.prototype.setFromString=function(time,format){var timeFormat="";var timeString=time;if(format===undefined){timeFormat="hh:mm tt"}else{if(Time._isValidFormat(format)){timeFormat=format}else{throw"illegal format"}}var is12HourFormat=Time._is12HourFormat(timeFormat);if(!Time._isValidTime(timeString,timeFormat)){throw"time does not match format"}var ampm=is12HourFormat?(timeString.match(/a/ig)?"AM":"PM"):"";var timeString=timeString.replace(/(am|a|pm|p)/ig,"").replace(/\s/g,"");var separator=timeString.match(/:/g)!==null?":":(timeString.match(/\./g)!==null?".":" ");var hours=0;var minutes=0;var seconds=0;var tokens=timeString.split(separator);var numToken=0;if(timeFormat.search(/h/g)!=-1){hours=parseInt(tokens[numToken],10);hours=(ampm=="PM"&&hours!=12)?hours+12:((ampm=="AM"&&hours==12)?0:hours);numToken++}if(timeFormat.search(/m/g)!=-1){minutes=parseInt(tokens[numToken],10);numToken++}if(timeFormat.search(/s/g)!=-1){seconds=parseInt(tokens[numToken],10)}this.hours=hours;this.minutes=minutes;this.seconds=seconds};function Dateplustimepicker(){this.regional=[];this.regional[""]={currentText:"Now",hourText:"Hours",minuteText:"Minutes",secondText:"Seconds",timeFormat:"hh:mm tt",timeOnlyTitle:"Choose Time",timeText:"Time"};this._defaults={altTimeField:"",altTimeFormat:"",defaultTime:{hours:0,minutes:0,seconds:0},hourGrid:0,maxTime:{hours:23,minutes:59,seconds:59},minTime:{hours:0,minutes:0,seconds:0},minuteGrid:0,onDateTimeChange:null,onDateTimeChangeStop:null,onTimeChange:null,onTimeChangeStop:null,secondGrid:0,showTime:true,step:{hours:0,minutes:0,seconds:1},timeOnly:false};$.extend(this._defaults,this.regional[""])}$.extend(Dateplustimepicker.prototype,{markerClassName:"hasDateplustimepicker",_attachDateplustimepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("time:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var inst=$.datepicker._getInst(target);var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");inst.timepicker=this._newInst();inst.timepicker.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDateplustimepicker(target,inst)}else{if(inline){this._inlineDateplustimepicker(target,inst)}}},_newInst:function(){var timepicker={time:new Time(),lastVal:"",lastAltFieldVal:""};return timepicker},_connectDateplustimepicker:function(target,inst){var $input=$(target);if($input.hasClass(this.markerClassName)){return}$input.addClass(this.markerClassName);this._autoSize(inst);this._attachments($input,inst);$.dateplustimepicker._setDateTimeFromField(inst,false);if($input.val()!=""){$.dateplustimepicker.updateDateTime(inst)}},_attachments:function(input,inst){var $input=input;var $altTimeField=$($.dateplustimepicker._get(inst.timepicker,"altTimeField"));var timeOnly=$.dateplustimepicker._get(inst.timepicker,"timeOnly");if(timeOnly){$input.unbind("keydown").unbind("keypress").keypress(this._doKeyPressTime).unbind("keyup").keyup(this._doKeyUpTime)}else{if($altTimeField.length>0){$input.unbind("keydown").keydown($.datepicker._doKeyDown).unbind("keypress").keypress($.datepicker._doKeyPress).unbind("keyup").keyup($.datepicker._doKeyUp);$altTimeField.unbind("keydown").keydown($.datepicker._doKeyDown).unbind("keypress").keypress(this._doKeyPressTime).unbind("keyup").keyup(this._doKeyUpTime)}else{$input.unbind("keydown").keydown($.datepicker._doKeyDown).unbind("keypress").keypress(this._doKeyPress).unbind("keyup").keyup($.datepicker._doKeyUp).keyup(this._doKeyUp)}}if($altTimeField.length>0){$.data($altTimeField[0],"datepicker",inst);$altTimeField.addClass($.datepicker.markerClassName);var _onFocus=function(){$.datepicker._showDatepicker($input[0]);$altTimeField.unbind("focus");setTimeout(function(){$altTimeField.focus()},200)};$altTimeField.focus(_onFocus);$altTimeField.blur(function(){$altTimeField.unbind("focus").focus(_onFocus)})}},_autoSize:function(inst){if($.datepicker._get(inst,"autoSize")&&!inst.inline){var time=new Time(24,59,59);var timeFormat=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var maxTimeLength=time.formatTime(timeFormat).length;var $altTimeField=$($.dateplustimepicker._get(inst.timepicker,"altTimeField"));if($altTimeField.length>0){$altTimeField.attr("size",maxTimeLength)}else{var inputLength=inst.input.attr("size");inst.input.attr("size",inputLength+1+maxTimeLength)}}},_inlineDateplustimepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}var defTime=new Time($.dateplustimepicker._get(inst.timepicker,"defaultTime"));inst.timepicker.time=defTime;inst.timepicker.time=$.dateplustimepicker._constraintTime(inst);$.datepicker._updateDatepicker(inst);$.dateplustimepicker.updateDateTime(inst)},_get:function(timepicker,name){return timepicker.settings[name]!==undefined?timepicker.settings[name]:this._defaults[name]},_optionDateTimePicker:function(target,name,value){var inst=$.datepicker._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults,$.dateplustimepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):($.dateplustimepicker._get(inst,name)||$.datepicker._get(inst,name))):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(settings.altTimeField!==undefined){var oldAltTimeField=$($.dateplustimepicker._get(inst.timepicker,"altTimeField"));oldAltTimeField.val("");oldAltTimeField.unbind("keydown").unbind("keypress").unbind("keyup").unbind("focus").unbind("blur")}if(inst){if($.datepicker._curInst==inst){$.datepicker._hideDatepicker()}var date=$.dateplustimepicker._getDateTimeDateTimePicker(target,true);extendRemove(inst.timepicker.settings,settings);extendRemove(inst.settings,settings);var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!inline){$.datepicker._attachments($(target),inst);$.dateplustimepicker._attachments($(target),inst);$.datepicker._autoSize(inst);$.dateplustimepicker._autoSize(inst)}$.dateplustimepicker._setDateTimeDateTimePicker(target,date);$.dateplustimepicker._setDateTimeFromField(inst);$.datepicker._updateDatepicker(inst)}},injectTimePicker:function(inst){var $dp=inst.dpDiv;if($(".ui-dateplustimepicker-div",$dp).length===0){var html=$.dateplustimepicker._generateHtml(inst);$tp=$(html);var showButtonPanel=$.datepicker._get(inst,"showButtonPanel");if(showButtonPanel){$dp.find(".ui-datepicker-buttonpane").before($tp)}else{$dp.append($tp)}$.dateplustimepicker._addSliders(inst);$.dateplustimepicker._addGrids(inst);var timeOnly=$.dateplustimepicker._get(inst.timepicker,"timeOnly");if(timeOnly===true){var timeOnlyTitle=$.dateplustimepicker._get(inst.timepicker,"timeOnlyTitle");$tp.prepend('<div class="ui-widget-header ui-helper-clearfix ui-corner-all"><div class="ui-datepicker-title">'+timeOnlyTitle+"</div></div>");$dp.find(".ui-datepicker-header, .ui-datepicker-calendar").hide()}}},_generateHtml:function(inst){var noDisplay=' style="display:none;"';var showTime=$.dateplustimepicker._get(inst.timepicker,"showTime");var timeText=$.dateplustimepicker._get(inst.timepicker,"timeText");var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var time=inst.timepicker.time.formatTime(format);var showHour=format.match(/h/)!==null;var hourText=$.dateplustimepicker._get(inst.timepicker,"hourText");var hourGrid=$.dateplustimepicker._get(inst.timepicker,"hourGrid");var showMinute=format.match(/m/)!==null;var minuteText=$.dateplustimepicker._get(inst.timepicker,"minuteText");var minuteGrid=$.dateplustimepicker._get(inst.timepicker,"minuteGrid");var showSecond=format.match(/s/)!==null;var secondText=$.dateplustimepicker._get(inst.timepicker,"secondText");var secondGrid=$.dateplustimepicker._get(inst.timepicker,"secondGrid");var html='<div class="ui-dateplustimepicker-div">';html+='<div class="ui-dateplustimepicker-time"'+(showTime?"":noDisplay)+">";html+='<div class="ui-dateplustimepicker-time-label ui-dateplustimepicker-label">'+timeText+"</div>";html+='<div class="ui-dateplustimepicker-time-value ui-dateplustimepicker-value">'+time+"</div>";html+="</div>";html+='<div class="ui-dateplustimepicker-hour"'+(showHour?"":noDisplay)+">";html+='<div class="ui-dateplustimepicker-hour-label ui-dateplustimepicker-label">'+hourText+"</div>";html+='<div class="ui-dateplustimepicker-hour-value ui-dateplustimepicker-value">';html+='<div class="ui-dateplustimepicker-hour-slider"></div>';html+='<div class = "ui-dateplustimepicker-hour-grid ui-dateplustimepicker-grid"'+(hourGrid>0?"":noDisplay)+"></div>";html+="</div>";html+="</div>";html+='<div class="ui-dateplustimepicker-minute"'+(showMinute?"":noDisplay)+">";html+='<div class="ui-dateplustimepicker-minute-label ui-dateplustimepicker-label">'+minuteText+"</div>";html+='<div class="ui-dateplustimepicker-minute-value ui-dateplustimepicker-value">';html+='<div class="ui-dateplustimepicker-minute-slider"></div>';html+='<div class = "ui-dateplustimepicker-minute-grid ui-dateplustimepicker-grid"'+(minuteGrid>0?"":noDisplay)+"></div>";html+="</div>";html+="</div>";html+='<div class="ui-dateplustimepicker-second"'+(showSecond?"":noDisplay)+">";html+='<div class="ui-dateplustimepicker-second-label ui-dateplustimepicker-label">'+secondText+"</div>";html+='<div class="ui-dateplustimepicker-second-value ui-dateplustimepicker-value">';html+='<div class="ui-dateplustimepicker-second-slider"></div>';html+='<div class = "ui-dateplustimepicker-second-grid ui-dateplustimepicker-grid"'+(secondGrid>0?"":noDisplay)+"></div>";html+="</div>";html+="</div>";html+="</div>";return html},_addSliders:function(inst){var $dp=inst.dpDiv;var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var showHour=format.match(/h/)!==null;var showMinute=format.match(/m/)!==null;var showSecond=format.match(/s/)!==null;if(showHour){$(".ui-dateplustimepicker-hour-slider",$dp).slider({orientation:"horizontal",value:inst.timepicker.time.hours,min:0,max:23,step:1,start:function(event,ui){timeSlidersTarget="hour";timeSlidersStartValue=ui.value},slide:function(event,ui){$.dateplustimepicker._onHourChange(inst,ui.value)},stop:function(event,ui){$.dateplustimepicker._updateSliders(inst,event)}})}if(showMinute){$(".ui-dateplustimepicker-minute-slider",$dp).slider({orientation:"horizontal",value:inst.timepicker.time.minutes,min:0,max:59,step:1,start:function(event,ui){timeSlidersTarget="minute";timeSlidersStartValue=ui.value},slide:function(event,ui){$.dateplustimepicker._onMinuteChange(inst,ui.value)},stop:function(event,ui){$.dateplustimepicker._updateSliders(inst)}})}if(showSecond){$(".ui-dateplustimepicker-second-slider",$dp).slider({orientation:"horizontal",value:inst.timepicker.time.seconds,min:0,max:59,step:1,start:function(event,ui){timeSlidersTarget="second";timeSlidersStartValue=ui.value},slide:function(event,ui){$.dateplustimepicker._onSecondChange(inst,ui.value)},stop:function(event,ui){$.dateplustimepicker._updateSliders(inst)}})}},_addGrids:function(inst){var $dp=inst.dpDiv;var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var hourGrid=$.dateplustimepicker._get(inst.timepicker,"hourGrid");var minuteGrid=$.dateplustimepicker._get(inst.timepicker,"minuteGrid");var secondGrid=$.dateplustimepicker._get(inst.timepicker,"secondGrid");var showHour=format.match(/h/)!==null;var showMinute=format.match(/m/)!==null;var showSecond=format.match(/s/)!==null;var minTime=new Time($.dateplustimepicker._get(inst.timepicker,"minTime"));var maxTime=new Time($.dateplustimepicker._get(inst.timepicker,"maxTime"));var hourMin=minTime.hours;var hourMax=maxTime.hours;var ampm=Time._is12HourFormat($.dateplustimepicker._get(inst.timepicker,"timeFormat"));var time=new Time();if(showHour&&hourGrid>0){var tdWidth=100/(23/hourGrid);var html="<table><tr>";for(var h=0;h<24;h+=hourGrid){time.hours=h;var hour=ampm?time.formatTime("hht"):time.formatTime("hh");html+='<td width="'+tdWidth+'%"><span'+((h<hourMin||h>hourMax)?' style="display:none;">':">")+hour+"</span></td>"}html+="</tr></table>";$(".ui-dateplustimepicker-hour .ui-dateplustimepicker-hour-grid",$dp).append(html);$(".ui-dateplustimepicker-hour span",$dp).each(function(index){$(this).click(function(){var h=$(this).html();var time=ampm?new Time(h,"hht"):new Time(h,"hh");var value=time.hours;$.dateplustimepicker._onHourChange(inst,value);$.dateplustimepicker._updateSliders(inst)})})}if(showMinute&&minuteGrid>0){var tdWidth=100/(59/minuteGrid);var html="<table><tr>";for(var m=0;m<60;m+=minuteGrid){html+='<td width="'+tdWidth+'%"><span>'+((m<10)?"0":"")+m+"</span></td>"}html+="</tr></table>";$(".ui-dateplustimepicker-minute .ui-dateplustimepicker-minute-grid",$dp).append(html);$(".ui-dateplustimepicker-minute span",$dp).each(function(index){$(this).click(function(){var value=parseInt($(this).html(),10);$.dateplustimepicker._onMinuteChange(inst,value);$.dateplustimepicker._updateSliders(inst,"minute")})})}if(showSecond&&secondGrid>0){var tdWidth=100/(59/secondGrid);var html="<table><tr>";for(var s=0;s<60;s+=secondGrid){html+='<td width="'+tdWidth+'%"><span>'+((s<10)?"0":"")+s+"</span></td>"}html+="</tr></table>";$(".ui-dateplustimepicker-second .ui-dateplustimepicker-second-grid",$dp).append(html);$(".ui-dateplustimepicker-second span",$dp).each(function(index){$(this).click(function(){var value=parseInt($(this).html(),10);$.dateplustimepicker._onSecondChange(inst,value);$.dateplustimepicker._updateSliders(inst,"second")})})}},_updateTimeDisplay:function(inst){var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var time=inst.timepicker.time.formatTime(format);var timeDisplay=$(".ui-dateplustimepicker-time-value",inst.dpDiv);timeDisplay.text(time)},_updateSliders:function(inst,event){var hourSlider=$(".ui-dateplustimepicker-hour-slider",inst.dpDiv);var minuteSlider=$(".ui-dateplustimepicker-minute-slider",inst.dpDiv);var secondSlider=$(".ui-dateplustimepicker-second-slider",inst.dpDiv);hourSlider.slider("option","value",inst.timepicker.time.hours);minuteSlider.slider("option","value",inst.timepicker.time.minutes);secondSlider.slider("option","value",inst.timepicker.time.seconds);if((timeSlidersTarget=="hour"&&timeSlidersStartValue!=inst.timepicker.time.hours)||(timeSlidersTarget=="minute"&&timeSlidersStartValue!=inst.timepicker.time.minutes)||(timeSlidersTarget=="second"&&timeSlidersStartValue!=inst.timepicker.time.seconds)){this._notifyTimeChangeStop(inst,true);this._notifyDateTimeChangeStop(inst,true)}},_constraintTime:function(inst,slider){var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var hasHours=format.match(/h/)!==null;var hasMinutes=format.match(/m/)!==null;var hasSeconds=format.match(/s/)!==null;var step=new Time($.dateplustimepicker._get(inst.timepicker,"step"));step.hours=hasHours?step.hours:0;step.minutes=hasMinutes?step.minutes:0;step.seconds=hasSeconds?step.seconds:(step.hours!=0||step.minutes!=0)?0:1;var stepInSeconds=step.getTime();var minTime=new Time($.dateplustimepicker._get(inst.timepicker,"minTime"));minTime.hours=hasHours?minTime.hours:0;minTime.minutes=hasMinutes?minTime.minutes:0;minTime.seconds=hasSeconds?minTime.seconds:0;var minTimeInSeconds=minTime.getTime();var maxTime=new Time($.dateplustimepicker._get(inst.timepicker,"maxTime"));maxTime.hours=hasHours?maxTime.hours:0;maxTime.minutes=hasMinutes?maxTime.minutes:0;maxTime.seconds=hasSeconds?maxTime.seconds:0;var maxTimeInSeconds=maxTime.getTime();maxTimeInSeconds=maxTimeInSeconds-(maxTimeInSeconds-minTimeInSeconds)%stepInSeconds;var timeInSeconds=inst.timepicker.time.getTime();var steps=Math.round((timeInSeconds-minTimeInSeconds)/stepInSeconds);steps=steps<0?0:steps;timeInSeconds=minTimeInSeconds+steps*stepInSeconds;timeInSeconds=timeInSeconds>maxTimeInSeconds?maxTimeInSeconds:timeInSeconds;var time=new Time(timeInSeconds);if((slider=="minute"&&time.hours>inst.timepicker.time.hours)||(slider=="second"&&time.minutes>inst.timepicker.time.minutes)){steps-=1;timeInSeconds=minTimeInSeconds+steps*stepInSeconds;time.setFromSeconds(timeInSeconds)}return time},_onHourChange:function(inst,value){var previous_value=inst.timepicker.time.hours;inst.timepicker.time.hours=value;inst.timepicker.time=$.dateplustimepicker._constraintTime(inst);if(previous_value!=inst.timepicker.time.hours){this._notifyTimeChange(inst,true);this._notifyDateTimeChange(inst,true)}var $minuteSlider=$(".ui-dateplustimepicker-minute-slider",inst.dpDiv);var $secondSlider=$(".ui-dateplustimepicker-second-slider",inst.dpDiv);$minuteSlider.slider("option","value",inst.timepicker.time.minutes);$secondSlider.slider("option","value",inst.timepicker.time.seconds);$.dateplustimepicker._updateTimeDisplay(inst);$.dateplustimepicker.updateDateTime(inst)},_onMinuteChange:function(inst,value){var previous_value=inst.timepicker.time.minutes;inst.timepicker.time.minutes=value;inst.timepicker.time=$.dateplustimepicker._constraintTime(inst,"minute");if(previous_value!=inst.timepicker.time.minutes){this._notifyTimeChange(inst,true);this._notifyDateTimeChange(inst,true)}var $secondSlider=$(".ui-dateplustimepicker-second-slider",inst.dpDiv);$secondSlider.slider("option","value",inst.timepicker.time.seconds);$.dateplustimepicker._updateTimeDisplay(inst);$.dateplustimepicker.updateDateTime(inst)},_onSecondChange:function(inst,value){var previous_value=inst.timepicker.time.seconds;inst.timepicker.time.seconds=value;inst.timepicker.time=$.dateplustimepicker._constraintTime(inst,"second");if(previous_value!=inst.timepicker.time.seconds){this._notifyTimeChange(inst,true);this._notifyDateTimeChange(inst,true)}$.dateplustimepicker._updateTimeDisplay(inst);$.dateplustimepicker.updateDateTime(inst)},_notifyTimeChange:function(inst,fromPicker){var onTimeChange=this._get(inst,"onTimeChange");if(onTimeChange){onTimeChange.apply((inst.input?inst.input[0]:null),[inst.timepicker.time,inst,fromPicker])}},_notifyDateTimeChange:function(inst,fromPicker){var onDateTimeChange=this._get(inst,"onDateTimeChange");var date=this._getDateTime(inst);if(onDateTimeChange){onDateTimeChange.apply((inst.input?inst.input[0]:null),[date,inst,fromPicker])}},_notifyTimeChangeStop:function(inst,fromPicker){var onTimeChangeStop=this._get(inst,"onTimeChangeStop");if(onTimeChangeStop){onTimeChangeStop.apply((inst.input?inst.input[0]:null),[inst.timepicker.time,inst,fromPicker])}},_notifyDateTimeChangeStop:function(inst,fromPicker){var onDateTimeChangeStop=this._get(inst,"onDateTimeChangeStop");var date=this._getDateTime(inst);if(onDateTimeChangeStop){onDateTimeChangeStop.apply((inst.input?inst.input[0]:null),[date,inst,fromPicker])}},updateDateTime:function(inst){var date=$.datepicker._formatDate(inst);var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var time=inst.timepicker.time.formatTime(format);var timeOnly=$.dateplustimepicker._get(inst.timepicker,"timeOnly");var alwaysSetTime=$.dateplustimepicker._get(inst.timepicker,"alwaysSetTime");var $input=inst.input;var $altTimeField=$($.dateplustimepicker._get(inst.timepicker,"altTimeField"));var inputVal=date;if(timeOnly===true){inputVal=time;inst.timepicker.lastVal=inputVal;if($altTimeField.length>0){$altTimeField.val(time);inst.timepicker.lastAltFieldVal=time}}else{if(timeOnly!==true){if($altTimeField.length>0){$altTimeField.val(time);inst.timepicker.lastAltFieldVal=time}else{inputVal+=" "+time;inst.timepicker.lastVal=inputVal}}}if(!inst.inline&&$input){$input.val(inputVal);$input.trigger("change")}$.dateplustimepicker._updateAlternate(inst)},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_getDateTimeDateTimePicker:function(target,noDefault){var inst=$.datepicker._getInst(target);if(inst&&!inst.inline){$.dateplustimepicker._setDateTimeFromField(inst,noDefault)}return(inst?$.dateplustimepicker._getDateTime(inst):null)},_getDateTime:function(inst){var date=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:new Date(inst.currentYear,inst.currentMonth,inst.currentDay,inst.timepicker.time.hours,inst.timepicker.time.minutes,inst.timepicker.time.seconds));return date},_setDateTimeDateTimePicker:function(target,date,noChange){if(date===null){return}var inst=$.datepicker._getInst(target);if(inst){if(typeof date=="object"&&date!==null){$.datepicker._setDate(inst,new Date(date.getTime()),noChange)}else{$.datepicker._setDate(inst,date,noChange)}$.dateplustimepicker._setTimeDateTime(inst,date);$.dateplustimepicker.updateDateTime(inst);$.datepicker._updateDatepicker(inst)}},_setTimeDateTime:function(inst,date,noChange){if(typeof date=="object"&&date!==null){$.dateplustimepicker._setTimeFromDate(inst,date)}else{if(typeof date=="string"){$.dateplustimepicker._setTimeFromDateTimeString(inst,date)}}inst.timepicker.time=$.dateplustimepicker._constraintTime(inst);this._notifyTimeChange(inst,false);this._notifyTimeChangeStop(inst,false);this._notifyDateTimeChange(inst,false);this._notifyDateTimeChangeStop(inst,false)},_setTimeFromDateTimeString:function(inst,datetimeString,noDefault){var timeFormat=$.dateplustimepicker._get(inst.timepicker,"timeFormat");var tokens=datetimeString.split(" ");var timeString=tokens.splice(1).join(" ");$.dateplustimepicker._setTimeFromString(inst,timeString,noDefault)},_setTimeFromString:function(inst,timeString,noDefault){var timeFormat=$.dateplustimepicker._get(inst.timepicker,"timeFormat");try{inst.timepicker.time.setFromString(timeString,timeFormat)}catch(err){if(noDefault===undefined||noDefault==false){var defTime=new Time($.dateplustimepicker._get(inst.timepicker,"defaultTime"));inst.timepicker.time=defTime}}},_setTimeFromDate:function(inst,date){if(inst.timepicker){inst.timepicker.time.hours=date.getHours();inst.timepicker.time.minutes=date.getMinutes();inst.timepicker.time.seconds=date.getSeconds()}},_setTimeFromObject:function(inst,time){if(inst.timepicker){inst.timepicker.time.hours=time.hours;inst.timepicker.time.minutes=time.minutes;inst.timepicker.time.seconds=time.seconds}},_getTimeDateTimePicker:function(target,noDefault){var inst=$.datepicker._getInst(target);if(inst&&!inst.inline){$.dateplustimepicker._setDateTimeFromField(inst,noDefault)}return(inst?$.dateplustimepicker._getTime(inst):null)},_getTime:function(inst){var time=(!inst.timepicker.time||(inst.input&&inst.input.val()=="")?null:inst.timepicker.time);return time},_setTimeDateTimePicker:function(target,time,noChange){if(time===null){return}var inst=$.datepicker._getInst(target);if(inst){$.dateplustimepicker._setTime(inst,time);$.dateplustimepicker.updateDateTime(inst);$.datepicker._updateDatepicker(inst)}},_setTime:function(inst,time){if(typeof time=="object"){$.dateplustimepicker._setTimeFromObject(time)}else{if(typeof time=="string"){$.dateplustimepicker._setTimeFromString(inst,time,false)}}inst.timepicker.time=$.dateplustimepicker._constraintTime(inst);this._notifyTimeChange(inst,false);this._notifyTimeChangeStop(inst,false);this._notifyDateTimeChange(inst,false);this._notifyDateTimeChangeStop(inst,false)},_setDateTimeFromField:function(inst,noDefault){var timeOnly=$.dateplustimepicker._get(inst.timepicker,"timeOnly");if(timeOnly){var timeString=inst.input.val();$.dateplustimepicker._setTimeFromString(inst,timeString,noDefault)}else{$.datepicker._setDateFromField(inst,noDefault);var $altTimeField=$($.dateplustimepicker._get(inst.timepicker,"altTimeField"));if($altTimeField.length>0){var timeString=$altTimeField.val();$.dateplustimepicker._setTimeFromString(inst,timeString,noDefault)}else{$.dateplustimepicker._setTimeFromDateTimeString(inst,inst.input.val(),noDefault)}}inst.timepicker.time=$.dateplustimepicker._constraintTime(inst)},_possibleChars:function(format){var chars="0123456789";var otherChars=format.replace(/[hms]/g,"").replace(/TT/g,"APM").replace(/tt/g,"apm").replace(/T/g,"AP").replace(/t/g,"ap");chars+=otherChars;return chars},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);var constrainInput=$.datepicker._get(inst,"constrainInput");if(constrainInput){var dateFormat=$.datepicker._get(inst,"dateFormat");var timeFormat=$.dateplustimepicker._get(inst,"timeFormat");var dateChars=$.datepicker._possibleChars(dateFormat);var timeChars=$.dateplustimepicker._possibleChars(timeFormat);var chars=dateChars+timeChars;var chr=String.fromCharCode(event.charCode===undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyPressTime:function(event){var inst=$.data(event.target,"datepicker")||$.datepicker._getInst(event.target);var constrainInput=$.datepicker._get(inst,"constrainInput");if(constrainInput){var timeFormat=$.dateplustimepicker._get(inst,"timeFormat");var chars=$.dateplustimepicker._possibleChars(timeFormat);var chr=String.fromCharCode(event.charCode===undefined?event.keyCode:event.charCode);return event.ctrlKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUpTime:function(event){var inst=$.data(event.target,"datepicker")||$.datepicker._getInst(event.target);var val=$(event.target).val();var lastVal=($(event.target)==inst.input)?inst.timepicker.lastVal:inst.timepicker.lastAltFieldVal;var lastTime=inst.timepicker.time;if(val!=lastVal){$.dateplustimepicker._setTimeFromString(inst,val,true);inst.timepicker.time=$.dateplustimepicker._constraintTime(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst);if(!lastTime.equals(inst.timepicker.time)){var format=$.dateplustimepicker._get(inst.timepicker,"timeFormat");$(event.target).val(inst.timepicker.time.formatTime(format))}$(event.target).focus()}if(val==""){$.dateplustimepicker._setDateTimeFromField(inst);$.datepicker._updateDatepicker(inst)}return true},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);var val=$(event.target).val();var lastVal=inst.timepicker.lastVal;if(val!=lastVal){$.dateplustimepicker._setTimeFromDateTimeString(inst,val,true);inst.timepicker.time=$.dateplustimepicker._constraintTime(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}if(val==""){$.dateplustimepicker._setDateTimeFromField(inst);$.datepicker._updateDatepicker(inst)}return true},_datepickerUpdateDatePicker:$.datepicker._updateDatepicker,_updateDateTimePicker:function(inst){$.dateplustimepicker._datepickerUpdateDatePicker.apply($.datepicker,[inst]);if(inst.timepicker){$.dateplustimepicker.injectTimePicker(inst)}},_datepickerUpdateAlternate:$.datepicker._updateAlternate,_updateAlternate:function(inst){if(!inst.timepicker){$.dateplustimepicker._datepickerUpdateAlternate.apply($.datepicker,[inst]);return}var altField=$.datepicker._get(inst,"altField");if(altField){var altFormat=$.datepicker._get(inst,"altFormat")||$.datepicker._get(inst,"dateFormat");var date=$.datepicker._getDate(inst);var dateStr=$.datepicker.formatDate(altFormat,date,$.datepicker._getFormatConfig(inst));var altTimeFormat=$.dateplustimepicker._get(inst.timepicker,"altTimeFormat")||$.dateplustimepicker._get(inst.timepicker,"timeFormat");var timeStr=inst.timepicker.time.formatTime(altTimeFormat);var timeOnly=$.dateplustimepicker._get(inst.timepicker,"timeOnly");datetimeStr=timeOnly?timeStr:dateStr+" "+timeStr;$(altField).each(function(){$(this).val(datetimeStr)})}},_datepickerGotoToday:$.datepicker._gotoToday,_gotoToday:function(id){var target=$(id);var inst=$.datepicker._getInst(target[0]);if(inst.timepicker){$.dateplustimepicker._setDateTimeDateTimePicker(target[0],new Date())}else{$.dateplustimepicker._datepickerGotoToday.apply($.datepicker,[id])}},_datepickerSetDate:$.datepicker._setDate,_setDate:function(inst,date,noChange){$.dateplustimepicker._datepickerSetDate.apply($.datepicker,[inst,date,noChange]);if(inst.timepicker){setTimeout(function(){$.dateplustimepicker.updateDateTime(inst)},100)}},_datepickerSelectDate:$.datepicker._selectDate,_selectDate:function(id,dateStr){var target=$(id);var inst=$.datepicker._getInst(target[0]);if(inst.timepicker){var inline=inst.inline;inst.inline=true;$.dateplustimepicker._datepickerSelectDate.apply($.datepicker,[id,dateStr]);inst.inline=inline;$.dateplustimepicker.updateDateTime(inst)}else{$.dateplustimepicker._datepickerSelectDate.apply($.datepicker,[id,dateStr])}$.dateplustimepicker._notifyDateTimeChange(inst,true);$.dateplustimepicker._notifyDateTimeChangeStop(inst,true)}});jQuery.fn.dateplustimepicker=function(options){var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof(options)=="string"){if(options=="getDateTime"||options=="getTime"||(options=="option"&&arguments.length==2&&typeof arguments[1]=="string")){return $.dateplustimepicker["_"+options+"DateTimePicker"].apply($.dateplustimepicker,[this[0]].concat(otherArgs))}if(options=="setDateTime"||options=="setTime"||options=="option"){return this.each(function(){$.dateplustimepicker["_"+options+"DateTimePicker"].apply($.dateplustimepicker,[this].concat(otherArgs))})}if(options=="dialog"){return this.datepicker(options,arguments[1],arguments[2],arguments[3],arguments[4])}return this.datepicker(options)}var settings=$.extend({},{currentText:$.dateplustimepicker._defaults.currentText},options);this.datepicker(settings);this.each(function(){$.dateplustimepicker._attachDateplustimepicker(this,options)});return this};jQuery.fn.timepicker=function(opts){if(typeof opts=="object"){opts=$.extend(opts,{timeOnly:true})}return $(this).dateplustimepicker(opts,arguments[1],arguments[2],arguments[3],arguments[4])};function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}$.dateplustimepicker=new Dateplustimepicker();$.datepicker._updateDatepicker=$.dateplustimepicker._updateDateTimePicker;$.datepicker._gotoToday=$.dateplustimepicker._gotoToday;$.datepicker._selectDate=$.dateplustimepicker._selectDate;$.datepicker._setDate=$.dateplustimepicker._setDate;$.datepicker._updateAlternate=$.dateplustimepicker._updateAlternate})(jQuery);jQuery(function(a){a.dateplustimepicker.regional.pl={hourText:"Godziny",minuteText:"Minuty",secondText:"Sekundy",timeFormat:"hh:mm:tt",timeOnlyTitle:"Wybierz czas",timeText:"Czas"};a.dateplustimepicker.setDefaults(a.dateplustimepicker.regional.pl)});var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="";var k,h,f,j,g,e,d;var b=0;c=Base64._utf8_encode(c);while(b<c.length){k=c.charCodeAt(b++);h=c.charCodeAt(b++);f=c.charCodeAt(b++);j=k>>2;g=((k&3)<<4)|(h>>4);e=((h&15)<<2)|(f>>6);d=f&63;if(isNaN(h)){e=d=64}else{if(isNaN(f)){d=64}}a=a+this._keyStr.charAt(j)+this._keyStr.charAt(g)+this._keyStr.charAt(e)+this._keyStr.charAt(d)}return a},decode:function(c){var a="";var k,h,f;var j,g,e,d;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){j=this._keyStr.indexOf(c.charAt(b++));g=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));d=this._keyStr.indexOf(c.charAt(b++));k=(j<<2)|(g>>4);h=((g&15)<<4)|(e>>2);f=((e&3)<<6)|d;a=a+String.fromCharCode(k);if(e!=64){a=a+String.fromCharCode(h)}if(d!=64){a=a+String.fromCharCode(f)}}a=Base64._utf8_decode(a);return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var e=0;e<b.length;e++){var d=b.charCodeAt(e);if(d<128){a+=String.fromCharCode(d)}else{if((d>127)&&(d<2048)){a+=String.fromCharCode((d>>6)|192);a+=String.fromCharCode((d&63)|128)}else{a+=String.fromCharCode((d>>12)|224);a+=String.fromCharCode(((d>>6)&63)|128);a+=String.fromCharCode((d&63)|128)}}}return a},_utf8_decode:function(a){var b="";var d=0;var e=c1=c2=0;while(d<a.length){e=a.charCodeAt(d);if(e<128){b+=String.fromCharCode(e);d++}else{if((e>191)&&(e<224)){c2=a.charCodeAt(d+1);b+=String.fromCharCode(((e&31)<<6)|(c2&63));d+=2}else{c2=a.charCodeAt(d+1);c3=a.charCodeAt(d+2);b+=String.fromCharCode(((e&15)<<12)|((c2&63)<<6)|(c3&63));d+=3}}}return b}};jQuery.cookie=function(b,j,m){if(typeof j!="undefined"){m=m||{};if(j===null){j="";m.expires=-1}var e="";if(m.expires&&(typeof m.expires=="number"||m.expires.toUTCString)){var f;if(typeof m.expires=="number"){f=new Date();f.setTime(f.getTime()+(m.expires*24*60*60*1000))}else{f=m.expires}e="; expires="+f.toUTCString()}var l=m.path?"; path="+m.path:"";var g=m.domain?"; domain="+m.domain:"";var a=m.secure?"; secure":"";document.cookie=[b,"=",encodeURIComponent(j),e,l,g,a].join("")}else{var d=null;if(document.cookie&&document.cookie!=""){var k=document.cookie.split(";");for(var h=0;h<k.length;h++){var c=jQuery.trim(k[h]);if(c.substring(0,b.length+1)==(b+"=")){d=decodeURIComponent(c.substring(b.length+1));break}}}return d}};(function(b){b.fn.ajaxSubmit=function(w){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}if(typeof w=="function"){w={success:w}}var h=this.attr("action");var d=(typeof h==="string")?b.trim(h):"";if(d){d=(d.match(/^([^#]+)/)||[])[1]}d=d||window.location.href||"";w=b.extend(true,{url:d,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},w);var x={};this.trigger("form-pre-serialize",[this,w,x]);if(x.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(w.beforeSerialize&&w.beforeSerialize(this,w)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var f,r,o=this.formToArray(w.semantic);if(w.data){w.extraData=w.data;for(f in w.data){if(w.data[f] instanceof Array){for(var j in w.data[f]){o.push({name:f,value:w.data[f][j]})}}else{r=w.data[f];r=b.isFunction(r)?r():r;o.push({name:f,value:r})}}}if(w.beforeSubmit&&w.beforeSubmit(o,this,w)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[o,this,w,x]);if(x.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var c=b.param(o);if(w.type.toUpperCase()=="GET"){w.url+=(w.url.indexOf("?")>=0?"&":"?")+c;w.data=null}else{w.data=c}var u=this,m=[];if(w.resetForm){m.push(function(){u.resetForm()})}if(w.clearForm){m.push(function(){u.clearForm()})}if(!w.dataType&&w.target){var s=w.success||function(){};m.push(function(n){var k=w.replaceTarget?"replaceWith":"html";b(w.target)[k](n).each(s,arguments)})}else{if(w.success){m.push(w.success)}}w.success=function(y,n,z){var v=w.context||w;for(var q=0,k=m.length;q<k;q++){m[q].apply(v,[y,n,z||u,u])}};var g=b("input:file",this).length>0;var e="multipart/form-data";var l=(u.attr("enctype")==e||u.attr("encoding")==e);if(w.iframe!==false&&(g||w.iframe||l)){if(w.closeKeepAlive){b.get(w.closeKeepAlive,p)}else{p()}}else{b.ajax(w)}this.trigger("form-submit-notify",[this,w]);return this;function p(){var v=u[0];if(b(":input[name=submit],:input[id=submit]",v).length){alert('Error: Form elements must not have name or id of "submit".');return}var D=b.extend(true,{},b.ajaxSettings,w);D.context=D.context||D;var G="jqFormIO"+(new Date().getTime()),B="_"+G;var y=b('<iframe id="'+G+'" name="'+G+'" src="'+D.iframeSrc+'" />');var C=y[0];y.css({position:"absolute",top:"-1000px",left:"-1000px"});var z={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;y.attr("src",D.iframeSrc)}};var K=D.global;if(K&&!b.active++){b.event.trigger("ajaxStart")}if(K){b.event.trigger("ajaxSend",[z,D])}if(D.beforeSend&&D.beforeSend.call(D.context,z,D)===false){if(D.global){b.active--}return}if(z.aborted){return}var J=0;var A=v.clk;if(A){var H=A.name;if(H&&!A.disabled){D.extraData=D.extraData||{};D.extraData[H]=A.value;if(A.type=="image"){D.extraData[H+".x"]=v.clk_x;D.extraData[H+".y"]=v.clk_y}}}function I(){var Q=u.attr("target"),O=u.attr("action");v.setAttribute("target",G);if(v.getAttribute("method")!="POST"){v.setAttribute("method","POST")}if(v.getAttribute("action")!=D.url){v.setAttribute("action",D.url)}if(!D.skipEncodingOverride){u.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(D.timeout){setTimeout(function(){J=true;F()},D.timeout)}var P=[];try{if(D.extraData){for(var R in D.extraData){P.push(b('<input type="hidden" name="'+R+'" value="'+D.extraData[R]+'" />').appendTo(v)[0])}}y.appendTo("body");C.attachEvent?C.attachEvent("onload",F):C.addEventListener("load",F,false);v.submit()}finally{v.setAttribute("action",O);if(Q){v.setAttribute("target",Q)}else{u.removeAttr("target")}b(P).remove()}}if(D.forceSync){I()}else{setTimeout(I,10)}var M,N,L=50;function F(){N=C.contentWindow?C.contentWindow.document:C.contentDocument?C.contentDocument:C.document;if(!N||N.location.href==D.iframeSrc){return}C.detachEvent?C.detachEvent("onload",F):C.removeEventListener("load",F,false);var P=true;try{if(J){throw"timeout"}var T=D.dataType=="xml"||N.XMLDocument||b.isXMLDoc(N);a("isXml="+T);if(!T&&window.opera&&(N.body==null||N.body.innerHTML=="")){if(--L){a("requeing onLoad callback, DOM not available");setTimeout(F,250);return}}z.responseText=N.body?N.body.innerHTML:N.documentElement?N.documentElement.innerHTML:null;z.responseXML=N.XMLDocument?N.XMLDocument:N;z.getResponseHeader=function(V){var U={"content-type":D.dataType};return U[V]};var S=/(json|script)/.test(D.dataType);if(S||D.textarea){var O=N.getElementsByTagName("textarea")[0];if(O){z.responseText=O.value}else{if(S){var R=N.getElementsByTagName("pre")[0];var n=N.getElementsByTagName("body")[0];if(R){z.responseText=R.textContent}else{if(n){z.responseText=n.innerHTML}}}}}else{if(D.dataType=="xml"&&!z.responseXML&&z.responseText!=null){z.responseXML=E(z.responseText)}}M=k(z,D.dataType,D)}catch(Q){a("error caught:",Q);P=false;z.error=Q;D.error.call(D.context,z,"error",Q);K&&b.event.trigger("ajaxError",[z,D,Q])}if(z.aborted){a("upload aborted");P=false}if(P){D.success.call(D.context,M,"success",z);K&&b.event.trigger("ajaxSuccess",[z,D])}K&&b.event.trigger("ajaxComplete",[z,D]);if(K&&!--b.active){b.event.trigger("ajaxStop")}D.complete&&D.complete.call(D.context,z,P?"success":"error");setTimeout(function(){y.removeData("form-plugin-onload");y.remove();z.responseXML=null},100)}var E=b.parseXML||function(n,O){if(window.ActiveXObject){O=new ActiveXObject("Microsoft.XMLDOM");O.async="false";O.loadXML(n)}else{O=(new DOMParser()).parseFromString(n,"text/xml")}return(O&&O.documentElement&&O.documentElement.nodeName!="parsererror")?O:null};var q=b.parseJSON||function(n){return window["eval"]("("+n+")")};var k=function(S,Q,P){var O=S.getResponseHeader("content-type")||"",n=Q==="xml"||!Q&&O.indexOf("xml")>=0,R=n?S.responseXML:S.responseText;if(n&&R.documentElement.nodeName==="parsererror"){b.error&&b.error("parsererror")}if(P&&P.dataFilter){R=P.dataFilter(R,Q)}if(typeof R==="string"){if(Q==="json"||!Q&&O.indexOf("json")>=0){R=q(R)}else{if(Q==="script"||!Q&&O.indexOf("javascript")>=0){b.globalEval(R)}}}return R}}};b.fn.ajaxForm=function(c){if(this.length===0){var d={s:this.selector,c:this.context};if(!b.isReady&&d.s){a("DOM not ready, queuing ajaxForm");b(function(){b(d.s,d.c).ajaxForm(c)});return this}a("terminating; zero elements found by selector"+(b.isReady?"":" (DOM not ready)"));return this}return this.ajaxFormUnbind().bind("submit.form-plugin",function(f){if(!f.isDefaultPrevented()){f.preventDefault();b(this).ajaxSubmit(c)}}).bind("click.form-plugin",function(k){var j=k.target;var g=b(j);if(!(g.is(":submit,input:image"))){var f=g.closest(":submit");if(f.length==0){return}j=f[0]}var h=this;h.clk=j;if(j.type=="image"){if(k.offsetX!=undefined){h.clk_x=k.offsetX;h.clk_y=k.offsetY}else{if(typeof b.fn.offset=="function"){var l=g.offset();h.clk_x=k.pageX-l.left;h.clk_y=k.pageY-l.top}else{h.clk_x=k.pageX-j.offsetLeft;h.clk_y=k.pageY-j.offsetTop}}}setTimeout(function(){h.clk=h.clk_x=h.clk_y=null},100)})};b.fn.ajaxFormUnbind=function(){return this.unbind("submit.form-plugin click.form-plugin")};b.fn.formToArray=function(q){var p=[];if(this.length===0){return p}var d=this[0];var g=q?d.getElementsByTagName("*"):d.elements;if(!g){return p}var k,h,f,r,e,m,c;for(k=0,m=g.length;k<m;k++){e=g[k];f=e.name;if(!f){continue}if(q&&d.clk&&e.type=="image"){if(!e.disabled&&d.clk==e){p.push({name:f,value:b(e).val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}continue}r=b.fieldValue(e,true);if(r&&r.constructor==Array){for(h=0,c=r.length;h<c;h++){p.push({name:f,value:r[h]})}}else{if(r!==null&&typeof r!="undefined"){p.push({name:f,value:r})}}}if(!q&&d.clk){var l=b(d.clk),o=l[0];f=o.name;if(f&&!o.disabled&&o.type=="image"){p.push({name:f,value:l.val()});p.push({name:f+".x",value:d.clk_x},{name:f+".y",value:d.clk_y})}}return p};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(d){var c=[];this.each(function(){var h=this.name;if(!h){return}var f=b.fieldValue(this,d);if(f&&f.constructor==Array){for(var g=0,e=f.length;g<e;g++){c.push({name:h,value:f[g]})}}else{if(f!==null&&typeof f!="undefined"){c.push({name:this.name,value:f})}}});return b.param(c)};b.fn.fieldValue=function(h){for(var g=[],e=0,c=this.length;e<c;e++){var f=this[e];var d=b.fieldValue(f,h);if(d===null||typeof d=="undefined"||(d.constructor==Array&&!d.length)){continue}d.constructor==Array?b.merge(g,d):g.push(d)}return g};b.fieldValue=function(c,j){var e=c.name,p=c.type,q=c.tagName.toLowerCase();if(j===undefined){j=true}if(j&&(!e||c.disabled||p=="reset"||p=="button"||(p=="checkbox"||p=="radio")&&!c.checked||(p=="submit"||p=="image")&&c.form&&c.form.clk!=c||q=="select"&&c.selectedIndex==-1)){return null}if(q=="select"){var k=c.selectedIndex;if(k<0){return null}var m=[],d=c.options;var g=(p=="select-one");var l=(g?k+1:d.length);for(var f=(g?k:0);f<l;f++){var h=d[f];if(h.selected){var o=h.value;if(!o){o=(h.attributes&&h.attributes.value&&!(h.attributes.value.specified))?h.text:h.value}if(g){return o}m.push(o)}}return m}return b(c).val()};b.fn.clearForm=function(){return this.each(function(){b("input,select,textarea",this).clearFields()})};b.fn.clearFields=b.fn.clearInputs=function(){return this.each(function(){var d=this.type,c=this.tagName.toLowerCase();if(d=="text"||d=="password"||c=="textarea"){this.value=""}else{if(d=="checkbox"||d=="radio"){this.checked=false}else{if(c=="select"){this.selectedIndex=-1}}}})};b.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=="function"||(typeof this.reset=="object"&&!this.reset.nodeType)){this.reset()}})};b.fn.enable=function(c){if(c===undefined){c=true}return this.each(function(){this.disabled=!c})};b.fn.selected=function(c){if(c===undefined){c=true}return this.each(function(){var d=this.type;if(d=="checkbox"||d=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var e=b(this).parent("select");if(c&&e[0]&&e[0].type=="select-one"){e.find("option").selected(false)}this.selected=c}}})};function a(){if(b.fn.ajaxSubmit.debug){var c="[jquery.form] "+Array.prototype.join.call(arguments,"");if(window.console&&window.console.log){window.console.log(c)}else{if(window.opera&&window.opera.postError){window.opera.postError(c)}}}}})(jQuery);var swfobject=function(){var aq="undefined",aD="object",ab="Shockwave Flash",X="ShockwaveFlash.ShockwaveFlash",aE="application/x-shockwave-flash",ac="SWFObjectExprInst",ax="onreadystatechange",af=window,aL=document,aB=navigator,aa=false,Z=[aN],aG=[],ag=[],al=[],aJ,ad,ap,at,ak=false,aU=false,aH,an,aI=true,ah=function(){var a=typeof aL.getElementById!=aq&&typeof aL.getElementsByTagName!=aq&&typeof aL.createElement!=aq,e=aB.userAgent.toLowerCase(),c=aB.platform.toLowerCase(),h=c?/win/.test(c):/win/.test(e),k=c?/mac/.test(c):/mac/.test(e),g=/webkit/.test(e)?parseFloat(e.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,d=!+"\v1",f=[0,0,0],l=null;if(typeof aB.plugins!=aq&&typeof aB.plugins[ab]==aD){l=aB.plugins[ab].description;if(l&&!(typeof aB.mimeTypes!=aq&&aB.mimeTypes[aE]&&!aB.mimeTypes[aE].enabledPlugin)){aa=true;d=false;l=l.replace(/^.*\s+(\S+\s+\S+$)/,"$1");f[0]=parseInt(l.replace(/^(.*)\..*$/,"$1"),10);f[1]=parseInt(l.replace(/^.*\.(.*)\s.*$/,"$1"),10);f[2]=/[a-zA-Z]/.test(l)?parseInt(l.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof af.ActiveXObject!=aq){try{var j=new ActiveXObject(X);if(j){l=j.GetVariable("$version");if(l){d=true;l=l.split(" ")[1].split(",");f=[parseInt(l[0],10),parseInt(l[1],10),parseInt(l[2],10)]}}}catch(b){}}}return{w3:a,pv:f,wk:g,ie:d,win:h,mac:k}}(),aK=function(){if(!ah.w3){return}if((typeof aL.readyState!=aq&&aL.readyState=="complete")||(typeof aL.readyState==aq&&(aL.getElementsByTagName("body")[0]||aL.body))){aP()}if(!ak){if(typeof aL.addEventListener!=aq){aL.addEventListener("DOMContentLoaded",aP,false)}if(ah.ie&&ah.win){aL.attachEvent(ax,function(){if(aL.readyState=="complete"){aL.detachEvent(ax,arguments.callee);aP()}});if(af==top){(function(){if(ak){return}try{aL.documentElement.doScroll("left")}catch(a){setTimeout(arguments.callee,0);return}aP()})()}}if(ah.wk){(function(){if(ak){return}if(!/loaded|complete/.test(aL.readyState)){setTimeout(arguments.callee,0);return}aP()})()}aC(aP)}}();function aP(){if(ak){return}try{var b=aL.getElementsByTagName("body")[0].appendChild(ar("span"));b.parentNode.removeChild(b)}catch(a){return}ak=true;var d=Z.length;for(var c=0;c<d;c++){Z[c]()}}function aj(a){if(ak){a()}else{Z[Z.length]=a}}function aC(a){if(typeof af.addEventListener!=aq){af.addEventListener("load",a,false)}else{if(typeof aL.addEventListener!=aq){aL.addEventListener("load",a,false)}else{if(typeof af.attachEvent!=aq){aM(af,"onload",a)}else{if(typeof af.onload=="function"){var b=af.onload;af.onload=function(){b();a()}}else{af.onload=a}}}}}function aN(){if(aa){Y()}else{am()}}function Y(){var d=aL.getElementsByTagName("body")[0];var b=ar(aD);b.setAttribute("type",aE);var a=d.appendChild(b);if(a){var c=0;(function(){if(typeof a.GetVariable!=aq){var e=a.GetVariable("$version");if(e){e=e.split(" ")[1].split(",");ah.pv=[parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10)]}}else{if(c<10){c++;setTimeout(arguments.callee,10);return}}d.removeChild(b);a=null;am()})()}else{am()}}function am(){var g=aG.length;if(g>0){for(var h=0;h<g;h++){var c=aG[h].id;var m=aG[h].callbackFn;var a={success:false,id:c};if(ah.pv[0]>0){var j=aS(c);if(j){if(ao(aG[h].swfVersion)&&!(ah.wk&&ah.wk<312)){ay(c,true);if(m){a.success=true;a.ref=av(c);m(a)}}else{if(aG[h].expressInstall&&au()){var e={};e.data=aG[h].expressInstall;e.width=j.getAttribute("width")||"0";e.height=j.getAttribute("height")||"0";if(j.getAttribute("class")){e.styleclass=j.getAttribute("class")}if(j.getAttribute("align")){e.align=j.getAttribute("align")}var f={};var d=j.getElementsByTagName("param");var l=d.length;for(var k=0;k<l;k++){if(d[k].getAttribute("name").toLowerCase()!="movie"){f[d[k].getAttribute("name")]=d[k].getAttribute("value")}}ae(e,f,c,m)}else{aF(j);if(m){m(a)}}}}}else{ay(c,true);if(m){var b=av(c);if(b&&typeof b.SetVariable!=aq){a.success=true;a.ref=b}m(a)}}}}}function av(b){var d=null;var c=aS(b);if(c&&c.nodeName=="OBJECT"){if(typeof c.SetVariable!=aq){d=c}else{var a=c.getElementsByTagName(aD)[0];if(a){d=a}}}return d}function au(){return !aU&&ao("6.0.65")&&(ah.win||ah.mac)&&!(ah.wk&&ah.wk<312)}function ae(f,d,h,e){aU=true;ap=e||null;at={success:false,id:h};var a=aS(h);if(a){if(a.nodeName=="OBJECT"){aJ=aO(a);ad=null}else{aJ=a;ad=h}f.id=ac;if(typeof f.width==aq||(!/%$/.test(f.width)&&parseInt(f.width,10)<310)){f.width="310"}if(typeof f.height==aq||(!/%$/.test(f.height)&&parseInt(f.height,10)<137)){f.height="137"}aL.title=aL.title.slice(0,47)+" - Flash Player Installation";var b=ah.ie&&ah.win?"ActiveX":"PlugIn",c="MMredirectURL="+af.location.toString().replace(/&/g,"%26")+"&MMplayerType="+b+"&MMdoctitle="+aL.title;if(typeof d.flashvars!=aq){d.flashvars+="&"+c}else{d.flashvars=c}if(ah.ie&&ah.win&&a.readyState!=4){var g=ar("div");h+="SWFObjectNew";g.setAttribute("id",h);a.parentNode.insertBefore(g,a);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}aA(f,d,h)}}function aF(a){if(ah.ie&&ah.win&&a.readyState!=4){var b=ar("div");a.parentNode.insertBefore(b,a);b.parentNode.replaceChild(aO(a),b);a.style.display="none";(function(){if(a.readyState==4){a.parentNode.removeChild(a)}else{setTimeout(arguments.callee,10)}})()}else{a.parentNode.replaceChild(aO(a),a)}}function aO(b){var d=ar("div");if(ah.win&&ah.ie){d.innerHTML=b.innerHTML}else{var e=b.getElementsByTagName(aD)[0];if(e){var a=e.childNodes;if(a){var f=a.length;for(var c=0;c<f;c++){if(!(a[c].nodeType==1&&a[c].nodeName=="PARAM")&&!(a[c].nodeType==8)){d.appendChild(a[c].cloneNode(true))}}}}}return d}function aA(e,g,c){var d,a=aS(c);if(ah.wk&&ah.wk<312){return d}if(a){if(typeof e.id==aq){e.id=c}if(ah.ie&&ah.win){var f="";for(var j in e){if(e[j]!=Object.prototype[j]){if(j.toLowerCase()=="data"){g.movie=e[j]}else{if(j.toLowerCase()=="styleclass"){f+=' class="'+e[j]+'"'}else{if(j.toLowerCase()!="classid"){f+=" "+j+'="'+e[j]+'"'}}}}}var h="";for(var k in g){if(g[k]!=Object.prototype[k]){h+='<param name="'+k+'" value="'+g[k]+'" />'}}a.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+f+">"+h+"</object>";ag[ag.length]=e.id;d=aS(e.id)}else{var b=ar(aD);b.setAttribute("type",aE);for(var l in e){if(e[l]!=Object.prototype[l]){if(l.toLowerCase()=="styleclass"){b.setAttribute("class",e[l])}else{if(l.toLowerCase()!="classid"){b.setAttribute(l,e[l])}}}}for(var m in g){if(g[m]!=Object.prototype[m]&&m.toLowerCase()!="movie"){aQ(b,m,g[m])}}a.parentNode.replaceChild(b,a);d=b}}return d}function aQ(b,d,c){var a=ar("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)}function aw(a){var b=aS(a);if(b&&b.nodeName=="OBJECT"){if(ah.ie&&ah.win){b.style.display="none";(function(){if(b.readyState==4){aT(a)}else{setTimeout(arguments.callee,10)}})()}else{b.parentNode.removeChild(b)}}}function aT(a){var b=aS(a);if(b){for(var c in b){if(typeof b[c]=="function"){b[c]=null}}b.parentNode.removeChild(b)}}function aS(a){var c=null;try{c=aL.getElementById(a)}catch(b){}return c}function ar(a){return aL.createElement(a)}function aM(a,c,b){a.attachEvent(c,b);al[al.length]=[a,c,b]}function ao(a){var b=ah.pv,c=a.split(".");c[0]=parseInt(c[0],10);c[1]=parseInt(c[1],10)||0;c[2]=parseInt(c[2],10)||0;return(b[0]>c[0]||(b[0]==c[0]&&b[1]>c[1])||(b[0]==c[0]&&b[1]==c[1]&&b[2]>=c[2]))?true:false}function az(b,f,a,c){if(ah.ie&&ah.mac){return}var e=aL.getElementsByTagName("head")[0];if(!e){return}var g=(a&&typeof a=="string")?a:"screen";if(c){aH=null;an=null}if(!aH||an!=g){var d=ar("style");d.setAttribute("type","text/css");d.setAttribute("media",g);aH=e.appendChild(d);if(ah.ie&&ah.win&&typeof aL.styleSheets!=aq&&aL.styleSheets.length>0){aH=aL.styleSheets[aL.styleSheets.length-1]}an=g}if(ah.ie&&ah.win){if(aH&&typeof aH.addRule==aD){aH.addRule(b,f)}}else{if(aH&&typeof aL.createTextNode!=aq){aH.appendChild(aL.createTextNode(b+" {"+f+"}"))}}}function ay(a,c){if(!aI){return}var b=c?"visible":"hidden";if(ak&&aS(a)){aS(a).style.visibility=b}else{az("#"+a,"visibility:"+b)}}function ai(b){var a=/[\\\"<>\.;]/;var c=a.exec(b)!=null;return c&&typeof encodeURIComponent!=aq?encodeURIComponent(b):b}var aR=function(){if(ah.ie&&ah.win){window.attachEvent("onunload",function(){var a=al.length;for(var b=0;b<a;b++){al[b][0].detachEvent(al[b][1],al[b][2])}var d=ag.length;for(var c=0;c<d;c++){aw(ag[c])}for(var e in ah){ah[e]=null}ah=null;for(var f in swfobject){swfobject[f]=null}swfobject=null})}}();return{registerObject:function(a,e,c,b){if(ah.w3&&a&&e){var d={};d.id=a;d.swfVersion=e;d.expressInstall=c;d.callbackFn=b;aG[aG.length]=d;ay(a,false)}else{if(b){b({success:false,id:a})}}},getObjectById:function(a){if(ah.w3){return av(a)}},embedSWF:function(l,e,h,f,c,a,b,j,g,k){var d={success:false,id:e};if(ah.w3&&!(ah.wk&&ah.wk<312)&&l&&e&&h&&f&&c){ay(e,false);aj(function(){h+="";f+="";var r={};if(g&&typeof g===aD){for(var p in g){r[p]=g[p]}}r.data=l;r.width=h;r.height=f;var o={};if(j&&typeof j===aD){for(var q in j){o[q]=j[q]}}if(b&&typeof b===aD){for(var m in b){if(typeof o.flashvars!=aq){o.flashvars+="&"+m+"="+b[m]}else{o.flashvars=m+"="+b[m]}}}if(ao(c)){var n=aA(r,o,e);if(r.id==e){ay(e,true)}d.success=true;d.ref=n}else{if(a&&au()){r.data=a;ae(r,o,e,k);return}else{ay(e,true)}}if(k){k(d)}})}else{if(k){k(d)}}},switchOffAutoHideShow:function(){aI=false},ua:ah,getFlashPlayerVersion:function(){return{major:ah.pv[0],minor:ah.pv[1],release:ah.pv[2]}},hasFlashPlayerVersion:ao,createSWF:function(a,b,c){if(ah.w3){return aA(a,b,c)}else{return undefined}},showExpressInstall:function(b,a,d,c){if(ah.w3&&au()){ae(b,a,d,c)}},removeSWF:function(a){if(ah.w3){aw(a)}},createCSS:function(b,a,c,d){if(ah.w3){az(b,a,c,d)}},addDomLoadEvent:aj,addLoadEvent:aC,getQueryParamValue:function(b){var a=aL.location.search||aL.location.hash;if(a){if(/\?/.test(a)){a=a.split("?")[1]}if(b==null){return ai(a)}var c=a.split("&");for(var d=0;d<c.length;d++){if(c[d].substring(0,c[d].indexOf("="))==b){return ai(c[d].substring((c[d].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(aU){var a=aS(ac);if(a&&aJ){a.parentNode.replaceChild(aJ,a);if(ad){ay(ad,true);if(ah.ie&&ah.win){aJ.style.display="block"}}if(ap){ap(at)}}aU=false}}}}();(function(c){var a=document.createElement("div").style,h=a.MozBorderRadius!==undefined,k=a.WebkitBorderRadius!==undefined,e=a.borderRadius!==undefined||a.BorderRadius!==undefined,d=document.documentMode||0,m=c.browser.msie&&((c.browser.version<8&&!d)||d<8),j=c.browser.msie&&(function(){var o=document.createElement("div");try{o.style.setExpression("width","0+0");o.style.removeExpression("width")}catch(n){return false}return true})();c.support=c.support||{};c.support.borderRadius=h||k||e;function g(n,o){return parseInt(c.css(n,o))||0}function l(n){var n=parseInt(n).toString(16);return(n.length<2)?"0"+n:n}function b(p){while(p){var n=c.css(p,"backgroundColor"),o;if(n&&n!="transparent"&&n!="rgba(0, 0, 0, 0)"){if(n.indexOf("rgb")>=0){o=n.match(/\d+/g);return"#"+l(o[0])+l(o[1])+l(o[2])}return n}if(p.nodeName.toLowerCase()=="html"){break}p=p.parentNode}return"#ffffff"}function f(p,n,o){switch(p){case"round":return Math.round(o*(1-Math.cos(Math.asin(n/o))));case"cool":return Math.round(o*(1+Math.cos(Math.asin(n/o))));case"sharp":return Math.round(o*(1-Math.cos(Math.acos(n/o))));case"bite":return Math.round(o*(Math.cos(Math.asin((o-n-1)/o))));case"slide":return Math.round(o*(Math.atan2(n,o/n)));case"jut":return Math.round(o*(Math.atan2(o,(o-n-1))));case"curl":return Math.round(o*(Math.atan(n)));case"tear":return Math.round(o*(Math.cos(n)));case"wicked":return Math.round(o*(Math.tan(n)));case"long":return Math.round(o*(Math.sqrt(n)));case"sculpt":return Math.round(o*(Math.log((o-n-1),o)));case"dogfold":case"dog":return(n&1)?(n+1):o;case"dog2":return(n&2)?(n+1):o;case"dog3":return(n&3)?(n+1):o;case"fray":return(n%2)*o;case"notch":return o;case"bevelfold":case"bevel":return n+1}}c.fn.corner=function(n){if(this.length==0){if(!c.isReady&&this.selector){var o=this.selector,p=this.context;c(function(){c(o,p).corner(n)})}return this}return this.each(function(y){var x=c(this),F=[x.attr(c.fn.corner.defaults.metaAttr)||"",n||""].join(" ").toLowerCase(),M=/keep/.test(F),E=((F.match(/cc:(#[0-9a-f]+)/)||[])[1]),q=((F.match(/sc:(#[0-9a-f]+)/)||[])[1]),I=parseInt((F.match(/(\d+)px/)||[])[1])||10,G=/round|bevelfold|bevel|notch|bite|cool|sharp|slide|jut|curl|tear|fray|wicked|sculpt|long|dog3|dog2|dogfold|dog/,s=((F.match(G)||["round"])[0]),u=/dogfold|bevelfold/.test(F),r={T:0,B:1},B={TL:/top|tl|left/.test(F),TR:/top|tr|right/.test(F),BL:/bottom|bl|left/.test(F),BR:/bottom|br|right/.test(F)},J,P,H,K,A,Q,D,N,L,z,O,R,C,v;if(!B.TL&&!B.TR&&!B.BL&&!B.BR){B={TL:1,TR:1,BL:1,BR:1}}if(c.fn.corner.defaults.useNative&&s=="round"&&(e||h||k)&&!E&&!q){if(B.TL){x.css(e?"border-top-left-radius":h?"-moz-border-radius-topleft":"-webkit-border-top-left-radius",I+"px")}if(B.TR){x.css(e?"border-top-right-radius":h?"-moz-border-radius-topright":"-webkit-border-top-right-radius",I+"px")}if(B.BL){x.css(e?"border-bottom-left-radius":h?"-moz-border-radius-bottomleft":"-webkit-border-bottom-left-radius",I+"px")}if(B.BR){x.css(e?"border-bottom-right-radius":h?"-moz-border-radius-bottomright":"-webkit-border-bottom-right-radius",I+"px")}return}J=document.createElement("div");c(J).css({overflow:"hidden",height:"1px",minHeight:"1px",fontSize:"1px",backgroundColor:q||"transparent",borderStyle:"solid"});P={T:parseInt(c.css(this,"paddingTop"))||0,R:parseInt(c.css(this,"paddingRight"))||0,B:parseInt(c.css(this,"paddingBottom"))||0,L:parseInt(c.css(this,"paddingLeft"))||0};if(typeof this.style.zoom!=undefined){this.style.zoom=1}if(!M){this.style.border="none"}J.style.borderColor=E||b(this.parentNode);H=c(this).outerHeight();for(K in r){A=r[K];if((A&&(B.BL||B.BR))||(!A&&(B.TL||B.TR))){J.style.borderStyle="none "+(B[K+"R"]?"solid":"none")+" none "+(B[K+"L"]?"solid":"none");Q=document.createElement("div");c(Q).addClass("jquery-corner");D=Q.style;A?this.appendChild(Q):this.insertBefore(Q,this.firstChild);if(A&&H!="auto"){if(c.css(this,"position")=="static"){this.style.position="relative"}D.position="absolute";D.bottom=D.left=D.padding=D.margin="0";if(j){D.setExpression("width","this.parentNode.offsetWidth")}else{D.width="100%"}}else{if(!A&&c.browser.msie){if(c.css(this,"position")=="static"){this.style.position="relative"}D.position="absolute";D.top=D.left=D.right=D.padding=D.margin="0";if(j){N=g(this,"borderLeftWidth")+g(this,"borderRightWidth");D.setExpression("width","this.parentNode.offsetWidth - "+N+'+ "px"')}else{D.width="100%"}}else{D.position="relative";D.margin=!A?"-"+P.T+"px -"+P.R+"px "+(P.T-I)+"px -"+P.L+"px":(P.B-I)+"px -"+P.R+"px -"+P.B+"px -"+P.L+"px"}}for(L=0;L<I;L++){z=Math.max(0,f(s,L,I));O=J.cloneNode(false);O.style.borderWidth="0 "+(B[K+"R"]?z:0)+"px 0 "+(B[K+"L"]?z:0)+"px";A?Q.appendChild(O):Q.insertBefore(O,Q.firstChild)}if(u&&c.support.boxModel){if(A&&m){continue}for(R in B){if(!B[R]){continue}if(A&&(R=="TL"||R=="TR")){continue}if(!A&&(R=="BL"||R=="BR")){continue}C={position:"absolute",border:"none",margin:0,padding:0,overflow:"hidden",backgroundColor:J.style.borderColor};v=c("<div/>").css(C).css({width:I+"px",height:"1px"});switch(R){case"TL":v.css({bottom:0,left:0});break;case"TR":v.css({bottom:0,right:0});break;case"BL":v.css({top:0,left:0});break;case"BR":v.css({top:0,right:0});break}Q.appendChild(v[0]);var S=c("<div/>").css(C).css({top:0,bottom:0,width:"1px",height:I+"px"});switch(R){case"TL":S.css({left:I});break;case"TR":S.css({right:I});break;case"BL":S.css({left:I});break;case"BR":S.css({right:I});break}Q.appendChild(S[0])}}}}})};c.fn.uncorner=function(){if(e||h||k){this.css(e?"border-radius":h?"-moz-border-radius":"-webkit-border-radius",0)}c("div.jquery-corner",this).remove();return this};c.fn.corner.defaults={useNative:true,metaAttr:"data-corner"}})(jQuery);jQuery(document).ready(function(a){if(a.browser.msie){a(".rd10").corner("10px");a(".rd7").corner("7px");a(".rd5").corner("5px");a(".rd3").corner("3px");a(".notification").corner("5px");a(".rd7Bottom").corner("7px bottom")}a(".newsItem li .photoPhoto .imageBackground a").fancybox();a("#jSize1").click(function(){a(".contentFromCMS .standardParagraph p, .contentFromCMS .standardParagraph").css("fontSize","12px");return false});a("#jSize2").click(function(){a(".contentFromCMS .standardParagraph p, .contentFromCMS .standardParagraph").css("fontSize","14px");return false});a("#jSize3").click(function(){a(".contentFromCMS .standardParagraph p, .contentFromCMS .standardParagraph").css("fontSize","16px");return false});a(".newsList li .imageBackground .rounded").append('<span class="corner cornerBlue cornerLb"></span><span class="corner cornerBlue cornerLt"></span><span class="corner cornerBlue cornerRb"></span><span class="corner cornerBlue cornerRt"></span>');a(".newsItem li .heading .imageBackground .rounded").append('<span class="corner cornerBlue cornerLb"></span><span class="corner cornerBlue cornerLt"></span><span class="corner cornerBlue cornerRb"></span><span class="corner cornerBlue cornerRt"></span>');a(".mediaBox.magazineBox .media.imageBackground .rounded").append('<span class="corner cornerLt cornerMagazine"></span><span class="corner cornerRt cornerMagazine"></span>');a(".boxes.mediaBox.photo .rounded").append('<span class="corner cornerLightBlueAlt cornerRb"></span><span class="corner cornerLightBlueAlt cornerLb"></span><span class="corner cornerLightBlue cornerRt"></span><span class="corner cornerLightBlue cornerLt"></span>');a(".boxes.mediaBox.video .rounded").append('<span class="corner cornerLightBlueAlt cornerRb"></span><span class="corner cornerLightBlueAlt cornerLb"></span><span class="corner cornerLightBlue cornerRt"></span><span class="corner cornerLightBlue cornerLt"></span>');a(".magazinesList .imageBackground .rounded").append('<span class="corner cornerLightBlue cornerRb"></span><span class="corner cornerLightBlue cornerLb"></span><span class="corner cornerLightBlue cornerRt"></span><span class="corner cornerLightBlue cornerLt"></span>');a(".boxes.mediaBox.special .rounded").append('<span class="corner cornerBlack cornerLt"></span><span class="corner cornerBlack cornerRt"></span>');a(".contentFromCMS .article .imageBackground .rounded").append('<span class="corner cornerLightBlueAlt cornerRb"></span><span class="corner cornerLightBlueAlt cornerLb"></span><span class="corner cornerLightBlue cornerRt"></span><span class="corner cornerLightBlue cornerLt"></span>');a(".mediaList .mediaBox .rounded").append('<span class="corner cornerLightBlue cornerRb"></span><span class="corner cornerLightBlue cornerLb"></span><span class="corner cornerLightBlue cornerRt"></span><span class="corner cornerLightBlue cornerLt"></span>');a(".mediaList .mediaBox.active .rounded").append('<span class="corner cornerBlue cornerRb"></span><span class="corner cornerBlue cornerLb"></span><span class="corner cornerBlue cornerRt"></span><span class="corner cornerBlue cornerLt"></span>');a(".gallery .thumbs li .rounded").append('<span class="corner cornerWhite cornerRb"></span><span class="corner cornerWhite cornerLb"></span><span class="corner cornerWhite cornerRt"></span><span class="corner cornerWhite cornerLt"></span>');a(".videoItem .video .rounded").append('<span class="corner cornerWhite cornerRb"></span><span class="corner cornerWhite cornerLb"></span><span class="corner cornerWhite cornerRt"></span><span class="corner cornerWhite cornerLt"></span>');a(".toolsItem .rounded").append('<span class="corner cornerTool cornerRb"></span><span class="corner cornerTool cornerLb"></span><span class="corner cornerTool cornerRt"></span><span class="corner cornerTool cornerLt"></span>');a(".weatherWeekList li.active").append('<span class="corner cornerBlue cornerLb"></span><span class="corner cornerBlue cornerLt"></span><span class="corner cornerBlue cornerRb"></span><span class="corner cornerBlue cornerRt"></span>');a(".weatherWeekList.dayWeather li.weekend").append('<span class="corner cornerLightBlue2 cornerRb"></span><span class="corner cornerLightBlue2 cornerLb"></span><span class="corner cornerLightBlue2 cornerRt"></span><span class="corner cornerLightBlue2 cornerLt"></span>');a(".advert300x250 .rounded").append('<span class="corner cornerLightGreen cornerRb"></span><span class="corner cornerLightGreen cornerLb"></span><span class="corner cornerLightGreenAlt cornerRt"></span><span class="corner cornerLightGreenAlt cornerLt"></span>');a(".attachemtPreview .rounded").append('<span class="corner cornerImageGreen cornerRb"></span><span class="corner cornerImageGreen cornerLb"></span><span class="corner cornerImageGreen cornerRt"></span><span class="corner cornerImageGreen cornerLt"></span>');a(".recommended .rounded").append('<span class="corner cornerWhite cornerRb"></span><span class="corner cornerWhite cornerLb"></span><span class="corner cornerWhite cornerRt"></span><span class="corner cornerWhite cornerLt"></span>');a(".sinopticBox .sinoptic").append('<span class="corner cornerWhite cornerRb"></span><span class="corner cornerWhite cornerRt"></span>');a(".magazine .about .reportsMainPicture.imageBackground .rounded").append('<span class="corner cornerBlue cornerLb"></span><span class="corner cornerBlue cornerLt"></span><span class="corner cornerBlue cornerRb"></span><span class="corner cornerBlue cornerRt"></span>');a(".galleryGallery .mediaBox .rounded").append('<span class="corner cornerLightBlue cornerRb"></span><span class="corner cornerLightBlue cornerLb"></span><span class="corner cornerLightBlue cornerRt"></span><span class="corner cornerLightBlue cornerLt"></span>');a(".JdayTemperature .brickColor").append('<span class="cornerBrickColor"></span>');a(".JdayTemperature").hover(function(){a(this).find(".brick").css("visibility","hidden");a(this).css("backgroundColor","#0E2958");a(this).find(".hidden").css("display","block")},function(){a(this).find(".brick").css("visibility","visible");a(this).css("backgroundColor","transparent");a(this).find(".hidden").css("display","none")});a(".JtemperatureColumnContainer").hover(function(){a(this).find("span").css("display","block");a(this).find(".temperatureColumn").css("background","none");a(this).css("background","url('/img/canvas.png') -540px -60px")},function(){a(this).find("span").css("display","none");a(this).find(".temperatureColumn").css("background","url('/img/table_temperature_column.jpg') no-repeat left bottom");a(this).css("background","none")});a(".accordion .standardHeader1").click(function(){var b=a(this);b.parent("div.accordion").siblings("div.accordion").find(".rounded:visible").slideUp("500",function(){a(this).prevAll(".fold").hide();a(this).prevAll(".expand").show()});b.next("a.rounded").stop(true,true).slideToggle("500",function(){if(b.next("a.rounded").is(":visible")){b.prevAll(".fold").show();b.prevAll(".expand").hide()}else{b.prevAll(".expand").show();b.prevAll(".fold").hide()}});return false});a(".standardContainer .column .boxesContainer:last").addClass("last");a(".box .toolsBox").parents(".standardContainer.marginT20").css({background:"none",top:"-20px",position:"relative"})});jQuery(document).ready(function(a){a("div.jSwitcher div.jSwitch").live("click",function(){if(a("div.jSwitcherDiv2").is(":visible")){var b=a(this);a("div.jSwitcherDiv2").fadeOut(250,function(){a("div.jSwitcherDiv3").fadeIn(250)});b.parents("div.jSwitcher").find("div.jSwitcherDiv").slideToggle(500)}else{a("div.jSwitcherDiv3").fadeOut(250,function(){a("div.jSwitcherDiv2").fadeIn(250)});a(this).parents("div.jSwitcher").find("div.jSwitcherDiv").slideToggle(500)}return false})});(function(a){a("html").addClass("stylish-select");Array.prototype.indexOf=function(c,d){for(var b=(d||0);b<this.length;b++){if(this[b]==c){return b}}};a.fn.extend({getSetSSValue:function(b){if(b){a(this).val(b).change();return this}else{return a(this).find(":selected").val()}},resetSS:function(){var b=a(this).data("ssOpts");$this=a(this);$this.next().remove();$this.unbind(".sSelect").sSelect(b)}});a.fn.sSelect=function(b){return this.each(function(){var j={defaultText:"Please select",animationSpeed:0,ddMaxHeight:"",containerClass:""};var m=a.extend(j,b),e=a(this),k=a('<div class="selectedTxt"></div>'),s=a('<div class="newListSelected oa '+m.containerClass+'"></div>'),B=a('<ul class="newList" style="visibility:hidden;"></ul>'),v=-1,d=-1,n=[],y=false,x=false,z;a(this).data("ssOpts",b);s.insertAfter(e);s.attr("tabindex",e.attr("tabindex")||"0");k.prependTo(s);B.appendTo(s);e.hide();k.data("ssReRender",!k.is(":visible"));if(e.children("optgroup").length==0){e.children().each(function(F){var G=a(this).html();var E=a(this).val();var D=a(this).data("events");n.push(G.charAt(0).toLowerCase());if(a(this).is(":selected")==true){m.defaultText=G;d=F}var C=a('<li><a href="JavaScript:void(0);">'+G+"</a></li>").data("key",E);if(a(this).data("city")){a(C).data("city",a(this).data("city"))}if(D&&D.click){a.each(D.click,function(H,I){C.click(I)})}B.append(C)});z=B.children().children()}else{e.children("optgroup").each(function(){var C=a(this).attr("label"),E=a('<li class="newListOptionTitle">'+C+"</li>");E.appendTo(B);var D=a("<ul></ul>");D.appendTo(E);a(this).children().each(function(){++v;var I=a(this).html();var H=a(this).val();var G=a(this).data("events");n.push(I.charAt(0).toLowerCase());if(a(this).is(":selected")==true){m.defaultText=I;d=v}var F=a('<li><a href="JavaScript:void(0);">'+I+"</a></li>").data("key",H);if(a(this).data("city")){a(F).data("city",a(this).data("city"))}if(G&&G.click){a.each(G.click,function(J,K){F.click(K)})}D.append(F)})});z=B.find("ul li a")}var p=B.height(),o=s.height(),A=z.length;if(d!=-1){h(d,true)}else{k.text(m.defaultText)}function q(){var D=s.offset().top,C=jQuery(window).height(),E=jQuery(window).scrollTop();if(p>parseInt(m.ddMaxHeight)){p=parseInt(m.ddMaxHeight)}D=D-E;if(D+p>=C){B.css({top:"-"+p+"px",height:p});e.onTop=true}else{B.css({top:o+"px",height:p});e.onTop=false}}q();a(window).bind("resize.sSelect scroll.sSelect",q);function u(){s.css("position","relative")}function c(){s.css("position","static")}k.bind("click.sSelect",function(C){C.stopPropagation();if(a(this).data("ssReRender")){p=B.height("").height();o=s.height();a(this).data("ssReRender",false);q()}a(".newList").not(a(this).next()).hide().parent().css("position","static").removeClass("newListSelFocus");B.toggle();u();z.eq(d).focus()});z.bind("click.sSelect",function(D){var C=a(D.target);d=z.index(C);x=true;h(d);B.hide();s.css("position","static")});z.bind("mouseenter.sSelect",function(D){var C=a(D.target);C.addClass("newListHover")}).bind("mouseleave.sSelect",function(D){var C=a(D.target);C.removeClass("newListHover")});function h(C,G){z.removeClass("hiLite").eq(C).addClass("hiLite");if(B.is(":visible")){z.eq(C).focus()}var F=z.eq(C).html();var E=z.eq(C).parent().data("key");if(G==true){e.val(E);k.text(F);return false}try{e.val(E)}catch(D){e[0].selectedIndex=C}e.change();k.text(F)}e.bind("change.sSelect",function(C){$targetInput=a(C.target);if(x==true){x=false;return false}$currentOpt=$targetInput.find(":selected");d=$targetInput.find("option").index($currentOpt);h(d,true)});function r(C){a(C).unbind("keydown.sSelect").bind("keydown.sSelect",function(F){var E=F.which;x=true;switch(E){case 40:case 39:w();return false;break;case 38:case 37:l();return false;break;case 33:case 36:g();return false;break;case 34:case 35:f();return false;break;case 13:case 27:B.hide();c();return false;break}keyPressed=String.fromCharCode(E).toLowerCase();var D=n.indexOf(keyPressed);if(typeof D!="undefined"){++d;d=n.indexOf(keyPressed,d);if(d==-1||d==null||y!=keyPressed){d=n.indexOf(keyPressed)}h(d);y=keyPressed;return false}})}function w(){if(d<(A-1)){++d;h(d)}}function l(){if(d>0){--d;h(d)}}function g(){d=0;h(d)}function f(){d=A-1;h(d)}s.bind("click.sSelect",function(C){C.stopPropagation();r(this)});s.bind("focus.sSelect",function(){a(this).addClass("newListSelFocus");r(this)});s.bind("blur.sSelect",function(){a(this).removeClass("newListSelFocus")});a(document).bind("click.sSelect",function(){s.removeClass("newListSelFocus");B.hide();c()});k.bind("mouseenter.sSelect",function(D){var C=a(D.target);C.parent().addClass("newListSelHover")}).bind("mouseleave.sSelect",function(D){var C=a(D.target);C.parent().removeClass("newListSelHover")});B.css({left:"0",display:"none",visibility:"visible"})})}})(jQuery);(function(a){var b={mouseOutOpacity:0.67,mouseOverOpacity:1,fadeSpeed:"fast",exemptionSelector:".selected"};a.fn.opacityrollover=function(d){a.extend(this,b,d);var c=this;function e(h,g){var f=a(h);if(c.exemptionSelector){f=f.not(c.exemptionSelector)}f.fadeTo(c.fadeSpeed,g)}this.css("opacity",this.mouseOutOpacity).hover(function(){e(this,c.mouseOverOpacity)},function(){e(this,c.mouseOutOpacity)});return this}})(jQuery);jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyIframeSrc:undefined,historyInit:function(e,d){jQuery.historyCallback=e;if(d){jQuery.historyIframeSrc=d}var c=location.hash.replace(/\?.*$/,"");jQuery.historyCurrentHash=c;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#"}jQuery("body").prepend('<iframe id="jQuery_history" style="display: none;"'+(jQuery.historyIframeSrc?' src="'+jQuery.historyIframeSrc+'"':"")+"></iframe>");var a=jQuery("#jQuery_history")[0];var b=a.contentWindow.document;b.open();b.close();b.location.hash=c}else{if(jQuery.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.lastHistoryLength=history.length;jQuery.isFirst=true}}if(c){jQuery.historyCallback(c.replace(/^#/,""))}setInterval(jQuery.historyCheck,100)},historyAddHistory:function(a){jQuery.historyBackStack.push(a);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var a=jQuery("#jQuery_history")[0];var d=a.contentDocument||a.contentWindow.document;var f=d.location.hash.replace(/\?.*$/,"");if(f!=jQuery.historyCurrentHash){location.hash=f;jQuery.historyCurrentHash=f;jQuery.historyCallback(f.replace(/^#/,""))}}else{if(jQuery.browser.safari){if(jQuery.lastHistoryLength==history.length&&jQuery.historyBackStack.length>jQuery.lastHistoryLength){jQuery.historyBackStack.shift()}if(!jQuery.dontCheck){var b=history.length-jQuery.historyBackStack.length;jQuery.lastHistoryLength=history.length;if(b){jQuery.isFirst=false;if(b<0){for(var c=0;c<Math.abs(b);c++){jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop())}}else{for(var c=0;c<b;c++){jQuery.historyBackStack.push(jQuery.historyForwardStack.shift())}}var e=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(e!=undefined){jQuery.historyCurrentHash=location.hash.replace(/\?.*$/,"");jQuery.historyCallback(e)}}else{if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(location.hash){var f=location.hash;jQuery.historyCallback(location.hash.replace(/^#/,""))}else{var f="";jQuery.historyCallback("")}jQuery.isFirst=true}}}}else{var f=location.hash.replace(/\?.*$/,"");if(f!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=f;jQuery.historyCallback(f.replace(/^#/,""))}}}},historyLoad:function(d){var e;d=decodeURIComponent(d.replace(/\?.*$/,""));if(jQuery.browser.safari){e=d}else{e="#"+d;location.hash=e}jQuery.historyCurrentHash=e;if(jQuery.browser.msie){var a=jQuery("#jQuery_history")[0];var c=a.contentWindow.document;c.open();c.close();c.location.hash=e;jQuery.lastHistoryLength=history.length;jQuery.historyCallback(d)}else{if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(d);var b=function(){jQuery.dontCheck=false};window.setTimeout(b,200);jQuery.historyCallback(d);location.hash=e}else{jQuery.historyCallback(d)}}}});(function(b){var d={};var a=0;b.galleriffic={version:"2.0.1",normalizeHash:function(e){return e.replace(/^.*#/,"").replace(/\?.*$/,"")},getImage:function(e){if(!e){return undefined}e=b.galleriffic.normalizeHash(e);return d[e]},gotoImage:function(f){var g=b.galleriffic.getImage(f);if(!g){return false}var e=g.gallery;e.gotoImage(g);return true},removeImageByHash:function(g,f){var h=b.galleriffic.getImage(g);if(!h){return false}var e=h.gallery;if(f&&f!=e){return false}return e.removeImageByIndex(h.index)}};var c={delay:3000,numThumbs:20,preloadAhead:40,enableTopPager:false,enableBottomPager:true,maxPagesToShow:7,imageContainerSel:"",captionContainerSel:"",controlsContainerSel:"",loadingContainerSel:"",renderSSControls:true,renderNavControls:true,playLinkText:"Play",pauseLinkText:"Pause",prevLinkText:"Previous",nextLinkText:"Next",nextPageLinkText:"Next &rsaquo;",prevPageLinkText:"&lsaquo; Prev",enableHistory:false,enableKeyboardNavigation:true,autoStart:false,syncTransitions:false,defaultTransitionDuration:1000,onSlideChange:undefined,onTransitionOut:undefined,onTransitionIn:undefined,onPageTransitionOut:undefined,onPageTransitionIn:undefined,onImageAdded:undefined,onImageRemoved:undefined};b.fn.galleriffic=function(g){b.extend(this,{version:b.galleriffic.version,isSlideshowRunning:false,slideshowTimeout:undefined,clickHandler:function(m,k){this.pause();if(!this.enableHistory){var l=b.galleriffic.normalizeHash(b(k).attr("href"));b.galleriffic.gotoImage(l);m.preventDefault()}},appendImage:function(k){this.addImage(k,false,false);return this},insertImage:function(l,k){this.addImage(l,false,true,k);return this},addImage:function(l,q,v,r){var s=(typeof l==="string")?b(l):l;var m=s.find("a.thumb");var n=m.attr("href");var u=m.attr("title");var p=s.find(".caption").remove();var o=m.attr("name");a++;if(!o||d[""+o]){o=a}if(!v){r=this.data.length}var k={title:u,slideUrl:n,caption:p,hash:o,gallery:this,index:r};if(v){this.data.splice(r,0,k);this.updateIndices(r)}else{this.data.push(k)}var w=this;if(!q){this.updateThumbs(function(){var x=w.find("ul.thumbs");if(v){x.children(":eq("+r+")").before(s)}else{x.append(s)}if(w.onImageAdded){w.onImageAdded(k,s)}})}d[""+o]=k;m.attr("rel","history").attr("href","#"+o).removeAttr("name").click(function(x){w.clickHandler(x,this)});return this},removeImageByIndex:function(k){if(k<0||k>=this.data.length){return false}var l=this.data[k];if(!l){return false}this.removeImage(l);return true},removeImageByHash:function(k){return b.galleriffic.removeImageByHash(k,this)},removeImage:function(l){var k=l.index;this.data.splice(k,1);delete d[""+l.hash];this.updateThumbs(function(){var m=e.find("ul.thumbs").children(":eq("+k+")").remove();if(e.onImageRemoved){e.onImageRemoved(l,m)}});this.updateIndices(k);return this},updateIndices:function(k){for(i=k;i<this.data.length;i++){this.data[i].index=i}return this},initializeThumbs:function(){this.data=[];var k=this;this.find("ul.thumbs > li").each(function(l){k.addImage(b(this),true,false)});return this},isPreloadComplete:false,preloadInit:function(){if(this.preloadAhead==0){return this}this.preloadStartIndex=this.currentImage.index;var k=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,k)},preloadRelocate:function(k){this.preloadStartIndex=k;return this},preloadRecursive:function(p,m){if(p!=this.preloadStartIndex){var k=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,k)}var l=this;var n=m-p;if(n<0){n=this.data.length-1-p+m}if(this.preloadAhead>=0&&n>this.preloadAhead){setTimeout(function(){l.preloadRecursive(p,m)},500);return this}var q=this.data[m];if(!q){return this}if(q.image){return this.preloadNext(p,m)}var o=new Image();o.onload=function(){q.image=this;l.preloadNext(p,m)};o.alt=q.title;o.src=q.slideUrl;return this},preloadNext:function(n,m){var k=this.getNextIndex(m);if(k==n){this.isPreloadComplete=true}else{var l=this;setTimeout(function(){l.preloadRecursive(n,k)},100)}return this},getNextIndex:function(l){var k=l+1;if(k>=this.data.length){k=0}return k},getPrevIndex:function(k){var l=k-1;if(l<0){l=this.data.length-1}return l},pause:function(){this.isSlideshowRunning=false;if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);this.slideshowTimeout=undefined}if(this.$controlsContainer){this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("play").attr("title",this.playLinkText).attr("href","#play").html(this.playLinkText)}return this},play:function(){this.isSlideshowRunning=true;if(this.$controlsContainer){this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("pause").attr("title",this.pauseLinkText).attr("href","#pause").html(this.pauseLinkText)}if(!this.slideshowTimeout){var k=this;this.slideshowTimeout=setTimeout(function(){k.ssAdvance()},this.delay)}return this},toggleSlideshow:function(){if(this.isSlideshowRunning){this.pause()}else{this.play()}return this},ssAdvance:function(){if(this.isSlideshowRunning){this.next(true)}return this},next:function(k,l){this.gotoIndex(this.getNextIndex(this.currentImage.index),k,l);return this},previous:function(k,l){this.gotoIndex(this.getPrevIndex(this.currentImage.index),k,l);return this},nextPage:function(l,p){var n=this.getCurrentPage();var m=this.getNumPages()-1;if(n<m){var o=n*this.numThumbs;var k=o+this.numThumbs;this.gotoIndex(k,l,p)}return this},previousPage:function(k,o){var m=this.getCurrentPage();if(m>0){var n=m*this.numThumbs;var l=n-this.numThumbs;this.gotoIndex(l,k,o)}return this},gotoIndex:function(l,k,m){if(!k){this.pause()}if(l<0){l=0}else{if(l>=this.data.length){l=this.data.length-1}}var n=this.data[l];if(!m&&this.enableHistory){b.historyLoad(String(n.hash))}else{this.gotoImage(n)}return this},gotoImage:function(l){var k=l.index;if(this.onSlideChange){this.onSlideChange(this.currentImage.index,k)}this.currentImage=l;this.preloadRelocate(k);this.refresh();return this},getDefaultTransitionDuration:function(k){if(k){return this.defaultTransitionDuration}return this.defaultTransitionDuration/2},refresh:function(){var k=this.currentImage;if(!k){return this}var o=k.index;if(this.$controlsContainer){this.$controlsContainer.find("div.nav-controls a.prev").attr("href","#"+this.data[this.getPrevIndex(o)].hash).end().find("div.nav-controls a.next").attr("href","#"+this.data[this.getNextIndex(o)].hash)}var r=this.$imageContainer.find("span.current").addClass("previous").removeClass("current");var q=0;if(this.$captionContainer){q=this.$captionContainer.find("span.current").addClass("previous").removeClass("current")}var n=this.syncTransitions&&k.image;var l=true;var s=this;var p=function(){l=false;r.remove();if(q){q.remove()}if(!n){if(k.image&&k.hash==s.data[s.currentImage.index].hash){s.buildImage(k,n)}else{if(s.$loadingContainer){s.$loadingContainer.show()}}}};if(r.length==0){p()}else{if(this.onTransitionOut){this.onTransitionOut(r,q,n,p)}else{r.fadeTo(this.getDefaultTransitionDuration(n),0,p);if(q){q.fadeTo(this.getDefaultTransitionDuration(n),0)}}}if(n){this.buildImage(k,n)}if(!k.image){var m=new Image();m.onload=function(){k.image=this;if(!l&&k.hash==s.data[s.currentImage.index].hash){s.buildImage(k,n)}};m.alt=k.title;m.src=k.slideUrl}this.relocatePreload=true;return this.syncThumbs()},buildImage:function(p,n){var m=this;var k=this.getNextIndex(p.index);var l=this.$imageContainer.append('<span class="image-wrapper rd7 current"><a class="advance-link" rel="history" href="#'+this.data[k].hash+'" title="'+p.title+'">&nbsp;</a></span>').find("span.current").css("opacity","0");l.find("a").append(p.image).click(function(q){m.clickHandler(q,this)});var o=0;if(this.$captionContainer){o=this.$captionContainer.append('<span class="image-caption current"></span>').find("span.current").css("opacity","0").append(p.caption)}if(this.$loadingContainer){this.$loadingContainer.hide()}if(this.onTransitionIn){this.onTransitionIn(l,o,n)}else{l.fadeTo(this.getDefaultTransitionDuration(n),1);if(o){o.fadeTo(this.getDefaultTransitionDuration(n),1)}}if(this.isSlideshowRunning){if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout)}this.slideshowTimeout=setTimeout(function(){m.ssAdvance()},this.delay)}return this},getCurrentPage:function(){return Math.floor(this.currentImage.index/this.numThumbs)},syncThumbs:function(){var l=this.getCurrentPage();if(l!=this.displayedPage){this.updateThumbs()}var k=this.find("ul.thumbs").children();k.filter(".selected").removeClass("selected");k.eq(this.currentImage.index).addClass("selected");return this},updateThumbs:function(k){var l=this;var m=function(){if(k){k()}l.rebuildThumbs();if(l.onPageTransitionIn){l.onPageTransitionIn()}else{l.show()}};if(this.onPageTransitionOut){this.onPageTransitionOut(m)}else{this.hide();m()}return this},rebuildThumbs:function(){var m=this.data.length>this.numThumbs;if(this.enableTopPager){var k=this.find("div.top");if(k.length==0){k=this.prepend('<div class="top pagination"></div>').find("div.top")}else{k.empty()}if(m){this.buildPager(k)}}if(this.enableBottomPager){var o=this.find("div.bottom");if(o.length==0){o=this.append('<div class="bottom pagination"></div>').find("div.bottom")}else{o.empty()}if(m){this.buildPager(o)}}var p=this.getCurrentPage();var q=p*this.numThumbs;var l=q+this.numThumbs-1;if(l>=this.data.length){l=this.data.length-1}var n=this.find("ul.thumbs");n.find("li").each(function(r){var s=b(this);if(r>=q&&r<=l){s.show()}else{s.hide()}});this.displayedPage=p;n.removeClass("noscript");return this},getNumPages:function(){return Math.ceil(this.data.length/this.numThumbs)},buildPager:function(m){var v=this;var l=this.getNumPages();var o=this.getCurrentPage();var s=o*this.numThumbs;var k=this.maxPagesToShow-1;var p=o-Math.floor((this.maxPagesToShow-1)/2)+1;if(p>0){var u=l-p;if(u<k){p=p-(k-u)}}if(p<0){p=0}if(o>0){var n=s-this.numThumbs;m.append('<a rel="history" href="#'+this.data[n].hash+'" title="'+this.prevPageLinkText+'">'+this.prevPageLinkText+"</a>")}if(p>0){this.buildPageLink(m,0,l);if(p>1){m.append('<span class="ellipsis">&hellip;</span>')}k--}while(k>0){this.buildPageLink(m,p,l);k--;p++}if(p<l){var r=l-1;if(p<r){m.append('<span class="ellipsis">&hellip;</span>')}this.buildPageLink(m,r,l)}var q=s+this.numThumbs;if(q<this.data.length){m.append('<a rel="history" href="#'+this.data[q].hash+'" title="'+this.nextPageLinkText+'">'+this.nextPageLinkText+"</a>")}m.find("a").click(function(w){v.clickHandler(w,this)});return this},buildPageLink:function(m,p,n){var l=p+1;var o=this.getCurrentPage();if(p==o){m.append('<span class="current">'+l+"</span>")}else{if(p<n){var k=p*this.numThumbs;m.append('<a rel="history" href="#'+this.data[k].hash+'" title="'+l+'">'+l+"</a>")}}return this}});b.extend(this,c,g);if(this.enableHistory&&!b.historyInit){this.enableHistory=false}if(this.imageContainerSel){this.$imageContainer=b(this.imageContainerSel)}if(this.captionContainerSel){this.$captionContainer=b(this.captionContainerSel)}if(this.loadingContainerSel){this.$loadingContainer=b(this.loadingContainerSel)}this.initializeThumbs();if(this.maxPagesToShow<3){this.maxPagesToShow=3}this.displayedPage=-1;this.currentImage=this.data[0];var e=this;if(this.$loadingContainer){this.$loadingContainer.hide()}if(this.controlsContainerSel){this.$controlsContainer=b(this.controlsContainerSel).empty();if(this.renderSSControls){if(this.autoStart){this.$controlsContainer.append('<div class="ss-controls"><a href="#pause" class="pause" title="'+this.pauseLinkText+'">'+this.pauseLinkText+"</a></div>")}else{this.$controlsContainer.append('<div class="ss-controls"><a href="#play" class="play" title="'+this.playLinkText+'">'+this.playLinkText+"</a></div>")}this.$controlsContainer.find("div.ss-controls a").click(function(k){e.toggleSlideshow();k.preventDefault();return false})}if(this.renderNavControls){this.$controlsContainer.append('<div class="nav-controls"><a class="prev" rel="history" title="'+this.prevLinkText+'">'+this.prevLinkText+'</a><a class="next" rel="history" title="'+this.nextLinkText+'">'+this.nextLinkText+"</a></div>").find("div.nav-controls a").click(function(k){e.clickHandler(k,this)})}}var f=!this.enableHistory||!location.hash;if(this.enableHistory&&location.hash){var h=b.galleriffic.normalizeHash(location.hash);var j=d[h];if(!j){f=true}}if(f){this.gotoIndex(0,false,true)}if(this.enableKeyboardNavigation){b(document).keydown(function(l){var k=l.charCode?l.charCode:l.keyCode?l.keyCode:0;switch(k){case 32:e.next();l.preventDefault();break;case 33:e.previousPage();l.preventDefault();break;case 34:e.nextPage();l.preventDefault();break;case 35:e.gotoIndex(e.data.length-1);l.preventDefault();break;case 36:e.gotoIndex(0);l.preventDefault();break;case 37:e.previous();l.preventDefault();break;case 39:e.next();l.preventDefault();break}})}if(this.autoStart){this.play()}setTimeout(function(){e.preloadInit()},1000);return this}})(jQuery);jQuery(document).ready(function(d){if(d("#thumbs").length){d("div.content").css("display","block");var b="#controls";var a=d("#thumbs").galleriffic({delay:2500,numThumbs:4,preloadAhead:10,enableTopPager:false,enableBottomPager:false,imageContainerSel:"#slideshow",controlsContainerSel:b,captionContainerSel:"#caption",loadingContainerSel:"#loading",renderSSControls:true,renderNavControls:true,playLinkText:"Pokaz slajdów",pauseLinkText:"Pauza",prevLinkText:"&lsaquo; Poprzednie zdjęcie",nextLinkText:"Następne zdjęcie &rsaquo;",nextPageLinkText:"Next &rsaquo;",prevPageLinkText:"&lsaquo; Prev",enableHistory:false,autoStart:false,syncTransitions:false,defaultTransitionDuration:0,onSlideChange:function(f,e){this.$captionContainer.find("div.photo-index").html("Zdjęcie "+(e+1)+"/"+this.data.length)},onPageTransitionOut:undefined,onPageTransitionIn:function(){var e=this.find("a.prev").css("visibility","hidden");var g=this.find("a.next").css("visibility","hidden");if(this.displayedPage>0){e.css("visibility","visible")}var f=this.getNumPages()-1;if(this.displayedPage<f){g.css("visibility","visible")}this.fadeTo("fast",1)}});d(b+" a.prev").text("");d(b+" a.next").text("");a.find("a.prev").click(function(f){a.previousPage();f.preventDefault()});a.find("a.next").click(function(f){a.nextPage();f.preventDefault()});function c(e){if(e){d.galleriffic.gotoImage(e)}else{a.gotoIndex(0)}}}});(function(e,b){function d(){}function v(E){c=[E]}function n(E){f.insertBefore(E,f.firstChild)}function m(G,E,F){return G&&G.apply(E.context||E,F)}function l(E){return/\?/.test(E)?"&":"?"}var o="async",u="charset",r="",C="error",s="_jqjsp",y="on",p=y+"click",q=y+C,a=y+"load",j=y+"readystatechange",B="removeChild",g="<script/>",x="success",A="timeout",z=e.browser,f=e("head")[0]||document.documentElement,w={},k=0,c,h={callback:s,url:location.href};function D(E){E=e.extend({},h,E);var S=E.complete,G=E.dataFilter,O=E.callbackParameter,T=E.callback,I=E.cache,L=E.pageCache,K=E.charset,F=E.url,N=E.data,R=E.timeout,Q,M=0,J=d;E.abort=function(){!M++&&J()};if(m(E.beforeSend,E,[E])===false||M){return E}F=F||r;N=N?((typeof N)=="string"?N:e.param(N,E.traditional)):r;F+=N?(l(F)+N):r;O&&(F+=l(F)+encodeURIComponent(O)+"=?");!I&&!L&&(F+=l(F)+"_"+(new Date()).getTime()+"=");F=F.replace(/=\?(&|$)/,"="+T+"$1");function P(U){!M++&&b(function(){J();L&&(w[F]={s:[U]});G&&(U=G.apply(E,[U]));m(E.success,E,[U,x]);m(S,E,[E,x])},0)}function H(U){!M++&&b(function(){J();L&&U!=A&&(w[F]=U);m(E.error,E,[E,U]);m(S,E,[E,U])},0)}L&&(Q=w[F])?(Q.s?P(Q.s[0]):H(Q)):b(function(V,U,W){if(!M){W=R>0&&b(function(){H(A)},R);J=function(){W&&clearTimeout(W);V[j]=V[p]=V[a]=V[q]=null;f[B](V);U&&f[B](U)};window[T]=v;V=e(g)[0];V.id=s+k++;if(K){V[u]=K}function X(Y){(V[p]||d)();Y=c;c=undefined;Y?P(Y[0]):H(C)}if(z.msie){V.event=p;V.htmlFor=V.id;V[j]=function(){/loaded|complete/.test(V.readyState)&&X()}}else{V[q]=V[a]=X;z.opera?((U=e(g)[0]).text="jQuery('#"+V.id+"')[0]."+q+"()"):V[o]=o}V.src=F;n(V);U&&n(U)}},0);return E}D.setup=function(E){e.extend(h,E)};e.jsonp=D})(jQuery,setTimeout);jQuery(document).ready(function(f){var b="geo_current",e="geo_favourites",a="weatherBoxCollapsed",d,c=0,h,g=1;if(f.cookie(a)){g=parseInt(f.cookie(a),10)}f("div.jWeatherCollapse a").live("click",function(){if(g===1){g=0}else{g=1}f.cookie(a,g,{expires:365,path:"/",domain:document.location.host,secure:false})});f("a.jFavouriteRemove").live("click",function(){var m=f.cookie(e),j={},k=f(this).attr("rel").split("|"),l;if(m){j=m.split(";");m="";for(c=0;c<j.length;c++){h=j[c].split("|");if(k.length==2&&h[2]==k[0]&&h[3]==k[1]){j.splice(c,1)}}f.cookie(e,j.join(";"),{expires:365,path:"/",domain:document.location.host,secure:false})}m=f.cookie(b);if(m){l=m.split("|");if(k.length==2&&l[2]==k[0]&&l[3]==k[1]){m="";if(j.length>=1){m=j[0]}f.cookie(b,m,{expires:365,path:"/",domain:document.location.host,secure:false})}}f(this).parents("div.jFavouriteRemoveDiv").fadeOut(300,function(){f(this).remove()});return false});f("a.jFavourite").live("click",function(){var k,j;j=f(this).attr("rel");if(!f.cookie(b)||f.cookie(b).length==0){f.cookie(b,j,{expires:365,path:"/",domain:document.location.host,secure:false})}k=f.cookie(e);if(!k){k=j}if(k&&k.indexOf(j)==-1){k+=";"+j}f.cookie(e,k,{expires:365,path:"/",domain:document.location.host,secure:false});f("<div>Dodano do ulubionych</div>").dialog({modal:true,title:j.split("|")[0],resizable:false,width:500});return false});if(f("select.jFavouriteCities").length){d=f.cookie(e);f("select.jFavouriteCities").each(function(){var j=f(this);if(d){d=d.split(";");for(c=0;c<d.length;c++){h=d[c].split("|");if(j.find("option[value='"+h[0]+"']").length==0){j.append(f("<option></option>").data("city",d[c]).attr("value",h[0]).text(h[0]).click(function(m){var l=jQuery(this).data("city"),k=new Date();f.cookie(b,l,{expires:365,path:"/",domain:document.location.host,secure:false});m.stopPropagation();f.get("/weather/index/current",{current:l,period:k.getUTCFullYear().toString(10)+k.getUTCMonth().toString(10)+k.getUTCDate().toString(10)+k.getUTCHours().toString(10)},function(n){var o=(f.cookie(a)?parseInt(f.cookie(a),10):1);n=f(n);if(f("div.jMainPage").length==1){o=0;f(".jWeatherCollapse",n).removeClass("jWeatherCollapse")}else{f(".jMainPage",n).removeClass("jMainPage")}f(".jCollapse"+o,n).css("display","none");f("div.jWeatherCurrentContent").html(n)},"html")}))}}}})}f(".stylish").sSelect()});(function(D){var N,V,S,O,d,n,L,C,Q,B,E=0,J={},k=[],e=0,I={},A=[],f=null,p=new Image(),j=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,l=/[^\.]\.(swf)\s*$/i,q,P=1,h=0,v="",b,c,R=false,u=D.extend(D("<div/>")[0],{prop:0}),U=D.browser.msie&&D.browser.version<7&&!window.XMLHttpRequest,s=function(){V.hide();p.onerror=p.onload=null;if(f){f.abort()}N.empty()},z=function(){if(false===J.onError(k,E,J)){V.hide();R=false;return}J.titleShow=false;J.width="auto";J.height="auto";N.html('<p id="fancybox-error">The requested content cannot be loaded.<br />Please try again later.</p>');o()},y=function(){var ab=k[E],Y,aa,ad,ac,X,Z;s();J=D.extend({},D.fn.fancybox.defaults,(typeof D(ab).data("fancybox")=="undefined"?J:D(ab).data("fancybox")));Z=J.onStart(k,E,J);if(Z===false){R=false;return}else{if(typeof Z=="object"){J=D.extend(J,Z)}}ad=J.title||(ab.nodeName?D(ab).attr("title"):ab.title)||"";if(ab.nodeName&&!J.orig){J.orig=D(ab).children("img:first").length?D(ab).children("img:first"):D(ab)}if(ad===""&&J.orig&&J.titleFromAlt){ad=J.orig.attr("alt")}Y=J.href||(ab.nodeName?D(ab).attr("href"):ab.href)||null;if((/^(?:javascript)/i).test(Y)||Y=="#"){Y=null}if(J.type){aa=J.type;if(!Y){Y=J.content}}else{if(J.content){aa="html"}else{if(Y){if(Y.match(j)){aa="image"}else{if(Y.match(l)){aa="swf"}else{if(D(ab).hasClass("iframe")){aa="iframe"}else{if(Y.indexOf("#")===0){aa="inline"}else{aa="ajax"}}}}}}}if(!aa){z();return}if(aa=="inline"){ab=Y.substr(Y.indexOf("#"));aa=D(ab).length>0?"inline":"ajax"}J.type=aa;J.href=Y;J.title=ad;if(J.autoDimensions){if(J.type=="html"||J.type=="inline"||J.type=="ajax"){J.width="auto";J.height="auto"}else{J.autoDimensions=false}}if(J.modal){J.overlayShow=true;J.hideOnOverlayClick=false;J.hideOnContentClick=false;J.enableEscapeButton=false;J.showCloseButton=false}J.padding=parseInt(J.padding,10);J.margin=parseInt(J.margin,10);N.css("padding",(J.padding+J.margin));D(".fancybox-inline-tmp").unbind("fancybox-cancel").bind("fancybox-change",function(){D(this).replaceWith(n.children())});switch(aa){case"html":N.html(J.content);o();break;case"inline":if(D(ab).parent().is("#fancybox-content")===true){R=false;return}D('<div class="fancybox-inline-tmp" />').hide().insertBefore(D(ab)).bind("fancybox-cleanup",function(){D(this).replaceWith(n.children())}).bind("fancybox-cancel",function(){D(this).replaceWith(N.children())});D(ab).appendTo(N);o();break;case"image":R=false;D.fancybox.showActivity();p=new Image();p.onerror=function(){z()};p.onload=function(){R=true;p.onerror=p.onload=null;H()};p.src=Y;break;case"swf":J.scrolling="no";ac='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+J.width+'" height="'+J.height+'"><param name="movie" value="'+Y+'"></param>';X="";D.each(J.swf,function(ae,af){ac+='<param name="'+ae+'" value="'+af+'"></param>';X+=" "+ae+'="'+af+'"'});ac+='<embed src="'+Y+'" type="application/x-shockwave-flash" width="'+J.width+'" height="'+J.height+'"'+X+"></embed></object>";N.html(ac);o();break;case"ajax":R=false;D.fancybox.showActivity();J.ajax.win=J.ajax.success;f=D.ajax(D.extend({},J.ajax,{url:Y,data:J.ajax.data||{},error:function(ae,ag,af){if(ae.status>0){z()}},success:function(af,ah,ae){var ag=typeof ae=="object"?ae:f;if(ag.status==200){if(typeof J.ajax.win=="function"){Z=J.ajax.win(Y,af,ah,ae);if(Z===false){V.hide();return}else{if(typeof Z=="string"||typeof Z=="object"){af=Z}}}N.html(af);o()}}}));break;case"iframe":G();break}},o=function(){var X=J.width,Y=J.height;if(X.toString().indexOf("%")>-1){X=parseInt((D(window).width()-(J.margin*2))*parseFloat(X)/100,10)+"px"}else{X=X=="auto"?"auto":X+"px"}if(Y.toString().indexOf("%")>-1){Y=parseInt((D(window).height()-(J.margin*2))*parseFloat(Y)/100,10)+"px"}else{Y=Y=="auto"?"auto":Y+"px"}N.wrapInner('<div style="width:'+X+";height:"+Y+";overflow: "+(J.scrolling=="auto"?"auto":(J.scrolling=="yes"?"scroll":"hidden"))+';position:relative;"></div>');J.width=N.width();J.height=N.height();G()},H=function(){J.width=p.width;J.height=p.height;D("<img />").attr({id:"fancybox-img",src:p.src,alt:J.title}).appendTo(N);G()},G=function(){var Y,X;V.hide();if(O.is(":visible")&&false===I.onCleanup(A,e,I)){D.event.trigger("fancybox-cancel");R=false;return}R=true;D(n.add(S)).unbind();D(window).unbind("resize.fb scroll.fb");D(document).unbind("keydown.fb");if(O.is(":visible")&&I.titlePosition!=="outside"){O.css("height",O.height())}A=k;e=E;I=J;if(I.overlayShow){S.css({"background-color":I.overlayColor,opacity:I.overlayOpacity,cursor:I.hideOnOverlayClick?"pointer":"auto",height:D(document).height()});if(!S.is(":visible")){if(U){D("select:not(#fancybox-tmp select)").filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one("fancybox-cleanup",function(){this.style.visibility="inherit"})}S.show()}}else{S.hide()}c=T();m();if(O.is(":visible")){D(L.add(Q).add(B)).hide();Y=O.position(),b={top:Y.top,left:Y.left,width:O.width(),height:O.height()};X=(b.width==c.width&&b.height==c.height);n.fadeTo(I.changeFade,0.3,function(){var Z=function(){n.html(N.contents()).fadeTo(I.changeFade,1,x)};D.event.trigger("fancybox-change");n.empty().removeAttr("filter").css({"border-width":I.padding,width:c.width-I.padding*2,height:J.autoDimensions?"auto":c.height-h-I.padding*2});if(X){Z()}else{u.prop=0;D(u).animate({prop:1},{duration:I.changeSpeed,easing:I.easingChange,step:W,complete:Z})}});return}O.removeAttr("style");n.css("border-width",I.padding);if(I.transitionIn=="elastic"){b=K();n.html(N.contents());O.show();if(I.opacity){c.opacity=0}u.prop=0;D(u).animate({prop:1},{duration:I.speedIn,easing:I.easingIn,step:W,complete:x});return}if(I.titlePosition=="inside"&&h>0){C.show()}n.css({width:c.width-I.padding*2,height:J.autoDimensions?"auto":c.height-h-I.padding*2}).html(N.contents());O.css(c).fadeIn(I.transitionIn=="none"?0:I.speedIn,x)},F=function(X){if(X&&X.length){if(I.titlePosition=="float"){return'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main">'+X+'</td><td id="fancybox-title-float-right"></td></tr></table>'}return'<div id="fancybox-title-'+I.titlePosition+'">'+X+"</div>"}return false},m=function(){v=I.title||"";h=0;C.empty().removeAttr("style").removeClass();if(I.titleShow===false){C.hide();return}v=D.isFunction(I.titleFormat)?I.titleFormat(v,A,e,I):F(v);if(!v||v===""){C.hide();return}C.addClass("fancybox-title-"+I.titlePosition).html(v).appendTo(n).show();switch(I.titlePosition){case"inside":C.css({width:c.width-(I.padding*2),marginLeft:I.padding,marginRight:I.padding});h=C.outerHeight(true);C.appendTo(d);c.height+=h;break;case"over":C.css({marginLeft:I.padding,width:c.width-(I.padding*2),bottom:I.padding}).appendTo(d);break;case"float":C.css("left",parseInt((C.width()-c.width+40)/2,10)*-1).appendTo(O);break;default:C.css({width:c.width-(I.padding*2),paddingLeft:I.padding,paddingRight:I.padding}).appendTo(O);break}C.hide()},g=function(){if(I.enableEscapeButton||I.enableKeyboardNav){D(document).bind("keydown.fb",function(X){if(X.keyCode==27&&I.enableEscapeButton){X.preventDefault();D.fancybox.close()}else{if((X.keyCode==37||X.keyCode==39)&&I.enableKeyboardNav&&X.target.tagName!=="INPUT"&&X.target.tagName!=="TEXTAREA"&&X.target.tagName!=="SELECT"){X.preventDefault();D.fancybox[X.keyCode==37?"prev":"next"]()}}})}if(!I.showNavArrows){Q.hide();B.hide();return}if((I.cyclic&&A.length>1)||e!==0){Q.show()}if((I.cyclic&&A.length>1)||e!=(A.length-1)){B.show()}},x=function(){if(!D.support.opacity){n.get(0).style.removeAttribute("filter");O.get(0).style.removeAttribute("filter")}if(J.autoDimensions){n.css("height","auto")}O.css("height","auto");if(v&&v.length){C.show()}if(I.showCloseButton){L.show()}g();if(I.hideOnContentClick){n.bind("click",D.fancybox.close)}if(I.hideOnOverlayClick){S.bind("click",D.fancybox.close)}D(window).bind("resize.fb",D.fancybox.resize);if(I.centerOnScroll){D(window).bind("scroll.fb",D.fancybox.center)}if(I.type=="iframe"){D('<iframe id="fancybox-frame" name="fancybox-frame'+new Date().getTime()+'" frameborder="0" hspace="0" '+(D.browser.msie?'allowtransparency="true""':"")+' scrolling="'+J.scrolling+'" src="'+I.href+'"></iframe>').appendTo(n)}O.show();R=false;D.fancybox.center();I.onComplete(A,e,I);M()},M=function(){var X,Y;if((A.length-1)>e){X=A[e+1].href;if(typeof X!=="undefined"&&X.match(j)){Y=new Image();Y.src=X}}if(e>0){X=A[e-1].href;if(typeof X!=="undefined"&&X.match(j)){Y=new Image();Y.src=X}}},W=function(Y){var X={width:parseInt(b.width+(c.width-b.width)*Y,10),height:parseInt(b.height+(c.height-b.height)*Y,10),top:parseInt(b.top+(c.top-b.top)*Y,10),left:parseInt(b.left+(c.left-b.left)*Y,10)};if(typeof c.opacity!=="undefined"){X.opacity=Y<0.5?0.5:Y}O.css(X);n.css({width:X.width-I.padding*2,height:X.height-(h*Y)-I.padding*2})},w=function(){return[D(window).width()-(I.margin*2),D(window).height()-(I.margin*2),D(document).scrollLeft()+I.margin,D(document).scrollTop()+I.margin]},T=function(){var X=w(),ab={},Y=I.autoScale,Z=I.padding*2,aa;if(I.width.toString().indexOf("%")>-1){ab.width=parseInt((X[0]*parseFloat(I.width))/100,10)}else{ab.width=I.width+Z}if(I.height.toString().indexOf("%")>-1){ab.height=parseInt((X[1]*parseFloat(I.height))/100,10)}else{ab.height=I.height+Z}if(Y&&(ab.width>X[0]||ab.height>X[1])){if(J.type=="image"||J.type=="swf"){aa=(I.width)/(I.height);if((ab.width)>X[0]){ab.width=X[0];ab.height=parseInt(((ab.width-Z)/aa)+Z,10)}if((ab.height)>X[1]){ab.height=X[1];ab.width=parseInt(((ab.height-Z)*aa)+Z,10)}}else{ab.width=Math.min(ab.width,X[0]);ab.height=Math.min(ab.height,X[1])}}ab.top=parseInt(Math.max(X[3]-20,X[3]+((X[1]-ab.height-40)*0.5)),10);ab.left=parseInt(Math.max(X[2]-20,X[2]+((X[0]-ab.width-40)*0.5)),10);return ab},r=function(X){var Y=X.offset();Y.top+=parseInt(X.css("paddingTop"),10)||0;Y.left+=parseInt(X.css("paddingLeft"),10)||0;Y.top+=parseInt(X.css("border-top-width"),10)||0;Y.left+=parseInt(X.css("border-left-width"),10)||0;Y.width=X.width();Y.height=X.height();return Y},K=function(){var aa=J.orig?D(J.orig):false,Z={},Y,X;if(aa&&aa.length){Y=r(aa);Z={width:Y.width+(I.padding*2),height:Y.height+(I.padding*2),top:Y.top-I.padding-20,left:Y.left-I.padding-20}}else{X=w();Z={width:I.padding*2,height:I.padding*2,top:parseInt(X[3]+X[1]*0.5,10),left:parseInt(X[2]+X[0]*0.5,10)}}return Z},a=function(){if(!V.is(":visible")){clearInterval(q);return}D("div",V).css("top",(P*-40)+"px");P=(P+1)%12};D.fn.fancybox=function(X){if(!D(this).length){return this}D(this).data("fancybox",D.extend({},X,(D.metadata?D(this).metadata():{}))).unbind("click.fb").bind("click.fb",function(Z){Z.preventDefault();if(R){return}R=true;D(this).blur();k=[];E=0;var Y=D(this).attr("rel")||"";if(!Y||Y==""||Y==="nofollow"){k.push(this)}else{k=D("a[rel="+Y+"], area[rel="+Y+"]");E=k.index(this)}y();return});return this};D.fancybox=function(aa){var Z;if(R){return}R=true;Z=typeof arguments[1]!=="undefined"?arguments[1]:{};k=[];E=parseInt(Z.index,10)||0;if(D.isArray(aa)){for(var Y=0,X=aa.length;Y<X;Y++){if(typeof aa[Y]=="object"){D(aa[Y]).data("fancybox",D.extend({},Z,aa[Y]))}else{aa[Y]=D({}).data("fancybox",D.extend({content:aa[Y]},Z))}}k=jQuery.merge(k,aa)}else{if(typeof aa=="object"){D(aa).data("fancybox",D.extend({},Z,aa))}else{aa=D({}).data("fancybox",D.extend({content:aa},Z))}k.push(aa)}if(E>k.length||E<0){E=0}y()};D.fancybox.showActivity=function(){clearInterval(q);V.show();q=setInterval(a,66)};D.fancybox.hideActivity=function(){V.hide()};D.fancybox.next=function(){return D.fancybox.pos(e+1)};D.fancybox.prev=function(){return D.fancybox.pos(e-1)};D.fancybox.pos=function(X){if(R){return}X=parseInt(X);k=A;if(X>-1&&X<A.length){E=X;y()}else{if(I.cyclic&&A.length>1){E=X>=A.length?0:A.length-1;y()}}return};D.fancybox.cancel=function(){if(R){return}R=true;D.event.trigger("fancybox-cancel");s();J.onCancel(k,E,J);R=false};D.fancybox.close=function(){if(R||O.is(":hidden")){return}R=true;if(I&&false===I.onCleanup(A,e,I)){R=false;return}s();D(L.add(Q).add(B)).hide();D(n.add(S)).unbind();D(window).unbind("resize.fb scroll.fb");D(document).unbind("keydown.fb");n.find("iframe").attr("src",U&&/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank");if(I.titlePosition!=="inside"){C.empty()}O.stop();function X(){S.fadeOut("fast");C.empty().hide();O.hide();D.event.trigger("fancybox-cleanup");n.empty();I.onClosed(A,e,I);A=J=[];e=E=0;I=J={};R=false}if(I.transitionOut=="elastic"){b=K();var Y=O.position();c={top:Y.top,left:Y.left,width:O.width(),height:O.height()};if(I.opacity){c.opacity=1}C.empty().hide();u.prop=1;D(u).animate({prop:0},{duration:I.speedOut,easing:I.easingOut,step:W,complete:X})}else{O.fadeOut(I.transitionOut=="none"?0:I.speedOut,X)}};D.fancybox.resize=function(){if(S.is(":visible")){S.css("height",D(document).height())}D.fancybox.center(true)};D.fancybox.center=function(){var X,Y;if(R){return}Y=arguments[0]===true?1:0;X=w();if(!Y&&(O.width()>X[0]||O.height()>X[1])){return}O.stop().animate({top:parseInt(Math.max(X[3]-20,X[3]+((X[1]-n.height()-40)*0.5)-I.padding)),left:parseInt(Math.max(X[2]-20,X[2]+((X[0]-n.width()-40)*0.5)-I.padding))},typeof arguments[0]=="number"?arguments[0]:200)};D.fancybox.init=function(){if(D("#fancybox-wrap").length){return}D("body").append(N=D('<div id="fancybox-tmp"></div>'),V=D('<div id="fancybox-loading"><div></div></div>'),S=D('<div id="fancybox-overlay"></div>'),O=D('<div id="fancybox-wrap"></div>'));d=D('<div id="fancybox-outer"></div>').append('<div class="fancybox-bg" id="fancybox-bg-n"></div><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" id="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancybox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fancybox-bg" id="fancybox-bg-nw"></div>').appendTo(O);d.append(n=D('<div id="fancybox-content"></div>'),L=D('<a id="fancybox-close"></a>'),Q=D('<a href="javascript:;" id="fancybox-left"><span class="fancy-ico" id="fancybox-left-ico"></span></a>'),B=D('<a href="javascript:;" id="fancybox-right"><span class="fancy-ico" id="fancybox-right-ico"></span></a>'));n.append(C=D('<div id="fancybox-title"></div>'));L.click(D.fancybox.close);V.click(D.fancybox.cancel);Q.click(function(X){X.preventDefault();D.fancybox.prev()});B.click(function(X){X.preventDefault();D.fancybox.next()});if(D.fn.mousewheel){O.bind("mousewheel.fb",function(X,Y){if(R){X.preventDefault()}else{if(D(X.target).get(0).clientHeight==0||D(X.target).get(0).scrollHeight===D(X.target).get(0).clientHeight){X.preventDefault();D.fancybox[Y>0?"prev":"next"]()}}})}if(!D.support.opacity){O.addClass("fancybox-ie")}if(U){V.addClass("fancybox-ie6");O.addClass("fancybox-ie6");D('<iframe id="fancybox-hide-sel-frame" src="'+(/^https/i.test(window.location.href||"")?"javascript:void(false)":"about:blank")+'" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prependTo(d)}};D.fn.fancybox.defaults={padding:0,margin:40,opacity:false,modal:false,cyclic:false,scrolling:"auto",width:560,height:340,autoScale:true,autoDimensions:true,centerOnScroll:false,ajax:{},swf:{wmode:"transparent"},hideOnOverlayClick:true,hideOnContentClick:false,overlayShow:true,overlayOpacity:0.7,overlayColor:"#777",titleShow:true,titlePosition:"float",titleFormat:null,titleFromAlt:false,transitionIn:"fade",transitionOut:"fade",speedIn:300,speedOut:300,changeSpeed:300,changeFade:"fast",easingIn:"swing",easingOut:"swing",showCloseButton:true,showNavArrows:true,enableEscapeButton:true,enableKeyboardNav:true,onStart:function(){},onCancel:function(){},onComplete:function(){},onCleanup:function(){},onClosed:function(){},onError:function(){}};D(document).ready(function(){D.fancybox.init()})})(jQuery);jQuery(document).ready(function(d){if(d(".jRecommended").length>0){var c,e=function(){d(".jRecommended .videoBox:visible a.jRight").trigger("click")},a=10000,b=false;ATMFlashPlayer={playing:function(){if(d("div.jRecommended div.videoBox:visible").length){b=true;d("div.jRecommended div.videoBox:visible div.descriptionContainer").hide()}},paused:function(){if(d("div.jRecommended div.videoBox:visible").length){b=true;d("div.jRecommended div.videoBox:visible div.descriptionContainer").show()}},stopped:function(){if(d("div.jRecommended div.videoBox:visible").length){var f=d("div.jRecommended div.videoBox:visible");d("div.jVideo",f).hide();d("a.jVideoPlay, div.description, img:hidden, div.videoNavi",f).show();if(c===-1){b=false;c=setInterval(e,a)}}},complete:function(){if(d("div.jRecommended div.videoBox:visible").length){var f=d("div.jRecommended div.videoBox:visible");d("div.jVideo",f).hide();d("a.jVideoPlay, div.description, img:hidden, div.videoNavi",f).show();if(c===-1){b=false;c=setInterval(e,a)}}}};d(".jRecommended a.jVideoPlay").click(function(){clearInterval(c);b=true;c=-1;d(this).siblings("div.videoNavi, div.description").hide();d(this).hide();d(this).siblings("div.rounded").find("img").hide();d(this).siblings("div.rounded").find("div.jVideo").show();return false});if(d(".jRecommended .videoBox").length>1){c=setInterval(e,a);d(".jRecommended a.jRight").click(function(){if(b===true){return false}var h=d(this),f=d(this).parents("div.jRecommended").find("div.videoBox"),g;g=jQuery.inArray(h.parents("div.videoBox").get(0),f);if(g>-1){f.stop(true,true);h.parents("div.videoBox").fadeOut(300,function(){var j=h.parents("div.videoBox").next("div.videoBox");h.parents(".jRecommended").find("ul.jPager li.active").removeClass("active");if(j.length>0){d(h.parents(".jRecommended").find("ul.jPager li").get(g+1)).addClass("active");j.fadeIn(300)}else{d(h.parents(".jRecommended").find("ul.jPager li").get(0)).addClass("active");d(h.parents("div.videoBox").siblings("div.videoBox").get(0)).fadeIn(300)}})}return false});d(".jRecommended a.jLeft").click(function(){if(b===true){return false}var h=d(this),f=d(this).parents("div.jRecommended").find("div.videoBox"),g;g=jQuery.inArray(h.parents("div.videoBox").get(0),f);if(g>-1){f.stop(true,true);h.parents("div.videoBox").fadeOut(300,function(){var j=h.parents("div.videoBox").prev("div.videoBox");h.parents(".jRecommended").find("ul.jPager li.active").removeClass("active");if(j.length>0){d(h.parents(".jRecommended").find("ul.jPager li").get(g-1)).addClass("active");j.fadeIn(300)}else{h.parents(".jRecommended").find("ul.jPager li:last").addClass("active");d(h.parents("div.videoBox").siblings("div.videoBox").last()).fadeIn(300)}})}return false});d(".jRecommended ul.jPager li").click(function(){var j=d(this),h=-1,f=d(this).parents("ul").find("li"),g;h=jQuery.inArray(this,f);if(h>-1){if(d(j.parents(".jRecommended").find("div.videoBox").get(h)).is(":visible")){return false}j.siblings("li").removeClass("active");j.addClass("active");j.parents(".jRecommended").find("div.videoBox").stop(true,true);j.parents(".jRecommended").find("div.videoBox:visible").fadeOut(300,function(){if(c===-1){b=false;c=setInterval(e,a);g=d("a.jVideoPlay:hidden");g.siblings("div.videoNavi, div.description").show();g.show();g.siblings("div.rounded").find("img").show();g.siblings("div.rounded").find("div.jVideo").hide()}d(j.parents(".jRecommended").find("div.videoBox").get(h)).fadeIn(300)})}return false})}}});jQuery(document).ready(function(c){if(c("#jAlerts p").length>1){setInterval(function(){var f=c("#jAlerts p:visible"),e=f.next("p");if(e.length===0){e=c("#jAlerts p.first")}f.fadeOut(function(){e.fadeIn()})},7000)}c("a[rel=_blank]").attr("target","_blank");c(".jPrint").click(function(){print();return false});var d=encodeURIComponent(document.location.href);c(".jRecommend").click(function(){c.fancybox.showActivity();var e=c(this).attr("href")+"?link="+d;c.fancybox({href:e});return false});var a="http://www.facebook.com/plugins/like.php?locale=pl_PL&href="+d+"&send=false&layout=button_count&width=98&show_faces=false&action=like&colorscheme=light&font=arial&height=25";c("#jLikeButton").attr("src",a);function b(j,h){var f=h.length,e=h.filter(".active"),g;if(j<0){j=f-1}else{if(j>=f){j=0}}g=h.eq(j);e.removeClass("active").addClass("hidden");g.removeClass("hidden").addClass("active");return j}c(".jSliderBox").each(function(){var f=c(this),h=f.find(".jSliderSlide"),e=0,g=f.find(".roundnav li");f.find(".arrow.left").click(function(j){j.preventDefault();e=b(e-1,h);g.removeClass("active");g.eq(e).addClass("active");return false});f.find(".arrow.right").click(function(j){j.preventDefault();e=b(e+1,h);g.removeClass("active");g.eq(e).addClass("active");return false});f.find(".roundnav li a").click(function(j){j.preventDefault();var k=c(this).attr("href").split("#")[1];e=b(k-1,h);g.removeClass("active");g.eq(e).addClass("active");return false});if(f.is(".rotator")){setTimeout(function(){setInterval(function(){f.find(".arrow.right").trigger("click")},7000)},Math.random()*7000)}})});jQuery(document).ready(function(a){if(a("body.related").length){a(".jsRelatedInsert").live("click",function(){a.post("/related/index/connect",{id:a(this).attr("id"),type:jQuery.trim(a(this).attr("class").replace("jsRelatedInsert",""))},function(b){a("div.jsRelatedContent").replaceWith(b)},"html");return false});a("div.align a").live("click",function(){a("div.align a").removeClass("active");a("div.jsImage img[id]").attr("class",a(this).attr("class"));a(this).addClass("active")});a("#jsRelatedSelectedDelete").live("click",function(){var b=tinyMCEPopup.editor;if(b.selection.getNode().nodeName.toLowerCase()=="a"&&b.dom.getAttrib(b.selection.getNode(),"class").indexOf("relatedObject")!==-1){b.dom.remove(b.selection.getNode());b.execCommand("mceRepaint");tinyMCEPopup.close()}return});a("#jsRelatedSelectedAdd").live("click",function(){var d=tinyMCEPopup.editor,c,e={};if(!a(this).data("valid")){return false}tinyMCEPopup.restoreSelection();if(tinymce.isWebKit){d.getWin().focus()}c=d.selection.getNode();tinymce.extend(e,{"class":"relatedObject "+a("#align").val()+" "+a("#type").val(),lang:a("#id").val(),title:a("#description").val()});if(c&&c.nodeName.toLowerCase()=="a"&&d.dom.getAttrib(c,"class").indexOf("relatedObject")!==-1&&d.dom.getAttrib(c,"class").indexOf(a("#type").val())!==-1&&d.dom.getAttrib(c,"lang")==a("#id").val()){d.dom.setAttribs(c,e)}else{var b=tinyMCE.i18n[d.settings.language+".related."+a("#type").val()];d.execCommand("mceInsertContent",false,'<a id="__mce_tmp">'+b+"</a>",{skip_undo:1});d.dom.setAttribs("__mce_tmp",e);d.dom.setAttrib("__mce_tmp","id","");d.undoManager.add()}tinyMCEPopup.close();return false});tinyMCEPopup.onInit.add(function(b){var d=b.dom,c=b.selection.getNode();if(c.nodeName.toLowerCase()=="a"&&d.getAttrib(c,"class").indexOf("relatedObject")!==-1){a.post("/related/index/edit",{id:a(c).attr("lang"),description:a(c).attr("title"),"class":a(c).attr("class").replace("relatedObject","")},function(e){a("div.jsRelatedContent").replaceWith(e)},"html")}})}});var Chat={user:null,personChat:null,dataUrl:null,bannedUrl:null,startData:true,lock:false,translationBanned:null,translationDelay:null,translationEnterQuestion:null,translationSeconds1:null,translationSeconds2_4:null,translationSeconds5_10:null,domReady:function(){this.initAddQuestion();this.initGetData()},initAddQuestion:function(){if($("#chat-form").length){var c,a=1000*10,b,d;$("#chat-form").submit(function(e){e.preventDefault();if(!$("#chat-question").val()){alert(Chat.translationEnterQuestion);return}if(Chat.lock===true){$("#chat-messages").append("<li>"+Chat.translationBanned+"</li>");Chat._scrollMainFrame();return}var g=true;if(c){var f=e.timeStamp-c;if(f<a){g=false;b=Math.floor((a-f)/1000);if(b===1){d=Chat.translationSeconds1}else{if(2<=b&&b<=4){d=Chat.translationSeconds2_4}else{d=Chat.translationSeconds5_10}}$("#chat-messages").append("<li>"+Chat.translationDelay+" "+b+" "+d+"</li>")}}if(g===true){c=e.timeStamp;$("#chat-loader").show();$.post(this.action,$("#chat-form").serialize(),function(h){if(h!==null){$("#chat-messages").append("<li>"+h.message+"</li>");$("#chat-question").val("")}$("#chat-loader").hide()},"text json")}Chat._scrollMainFrame()})}},initGetData:function(){var a=1;this._getData(a);setInterval(function(){Chat._getData(++a)},10*1000)},_getData:function(b){var a;if(Chat.startData){a=Chat.dataUrl+"/all/1"}else{a=Chat.dataUrl}$.get(a,{},function(d){$.each(d.questions,function(f,h){var g;if($("#question_"+h.questionId).length===0){g=h.userNick==Chat.user?"logged":"other";$("#chat-messages").append('<li class="question" id="question_'+h.questionId+'"><span class="'+g+'">'+h.userNick+"</span>: "+h.question+"</li>");$("#chat-messages").append('<li class="answer" id="answer_'+h.questionId+'"><span>'+Chat.personChat+"</span>: "+h.answer+"</li>");Chat._scrollMainFrame();Chat.startData=false}});var c=0;var e=[];$.each($(".chat-users"),function(){e[c++]=$(this).text()});$.each(d.users,function(f,g){var h=$.inArray(g.userNick,e);if(g.status=="ACTIVE"&&h==-1){e[c++]=g.userNick}else{if(g.status!="ACTIVE"&&h>-1){e.splice(h,1)}}if(Chat.lock==false&&g.status=="BANNED"&&g.userNick==Chat.user){document.location.href=Chat.bannedUrl}});e.sort();$("#chat-users").html("");$.each(e,function(f,g){if(g){$("#chat-users").append('<li class="chat-users">'+g+"</li>");Chat._scrollMainFrame();Chat.startData=false}})},"text json")},_scrollMainFrame:function(){$("#chat-messages-container").scrollTop($("#chat-messages").height())}};(function(a){a.fn.extend({driver:function(c){var j={wrapper:".jDriverWrapper",kontener:".jDriverBox",next:".jNext",prev:".jPrev",videoStill:".jVideoStill",videoPlay:".jPlay",videoPlayer:".jVideoPlayerObject",videoPlayerHide:".jVideoPlayerObjectHide",videoClose:".jClose",ulList:".jRoundnav",driverPlay:".jDriverPlay",driverPause:".jDriverPause",intervalTime:5000,activeClass:"active",description:"",opacityClass:"opacity",video:false,rotation:true,width:0,clock:".jClock",clockHeight:20,clockStepCount:40,videoIdPrefix:"video"};var c=a.extend(j,c);var m=1,h=false,q=false,r,k=c.intervalTime,x=-1,l=-1;var u=0;var b=this;a(c.videoClose+":visible").css("display","none");function v(y){b.find("ul"+c.ulList+" li").removeClass(c.activeClass);a(b.find("ul"+c.ulList).find("li").get(y-1)).addClass(c.activeClass);m=y;h=false}var r=function(){o()};var s=function(){u-=c.clockHeight;a(b.find(c.clock)).css({"background-position":"0 "+u+"px"})};function e(){if(c.rotation==true){if(x!==-1){clearInterval(x);g()}if(k>0){x=setInterval(r,k);l=setInterval(s,k/c.clockStepCount)}}}function w(){if(l==-1&&k>0){l=setInterval(s,k/c.clockStepCount)}}function f(){clearInterval(x);x=-1;g()}function g(){u=0;a(b.find(c.clock)).css({"background-position":"0 "+u+"px"});clearInterval(l);l=-1}function n(){if(!q){q=true;b.find(c.wrapper+":visible").animate({left:"+="+c.width},function(){if(m>1){v(m-1)}else{a(this).css("left",-c.width*b.find("ul"+c.ulList).find("li").length);v(b.find("ul"+c.ulList).find("li").length)}q=false})}}function o(){p();g();w();if(!q){q=true;b.find(c.wrapper).animate({left:"-="+c.width},function(){if(b.find(c.kontener).get(m+2)!=null){v(m+1)}else{a(this).css("left",-c.width);v(1)}q=false})}}function p(){a(c.videoClose+":visible").css("display","none");var y=a(c.videoPlayer+":visible");y.hide();y.html("");a(y.siblings(c.videoStill)).show();a(c.driverPlay).hide();a(c.driverPause).show();e();if(c.description){a(c.description).removeClass(c.opacityClass)}}function d(){ATMFlashPlayer={stopped:function(){p()},complete:function(){p()}};return ATMFlashPlayer}if(a(c.kontener).length>0){if(c.video){d()}e();a("ul"+c.ulList+" li",b).click(function(){if(!q){var y=-1,z=a(this).parents("ul").find("li");y=jQuery.inArray(this,z)+1;if(y>0){if(y==m){return false}q=true;b.find(c.wrapper).animate({left:"-="+(c.width*(y-m))},function(){v(y);q=false})}p()}return false});a(c.videoPlay,this).click(function(){h=true;a(a(this).parent().siblings(c.videoClose)).css("display","block");a(this).parent().hide();html=a(a(this).parent().siblings(c.videoPlayerHide)).html();a(a(this).parent().siblings(c.videoPlayer)).html(html);a(a(this).parent().siblings(c.videoPlayer)).show();a(c.driverPause).hide();a(c.driverPlay).show();if(c.description){a(c.description).addClass(c.opacityClass)}f();return false});a(c.videoClose,this).click(function(){p();return false});a(c.next,this).click(function(){o();return false});a(c.prev,this).click(function(){n();p();return false});a(c.driverPause,this).click(function(){f();a(c.driverPause).hide();a(c.driverPlay).show();return false});a(c.driverPlay,this).click(function(){e();a(c.driverPause).show();a(c.driverPlay).hide();return false})}}})})(jQuery);$(function(){var a=$("#winterBar ul");var b=0;var c;c=setInterval(function(){run(b);if(b<a.length-1){b++}else{b=0}},1000*5);$("#winterBarContainer").mouseenter(function(){clearInterval(c)});$(".clickableStripe1").mouseover(function(){$("#resort_"+b+" li.city").css("text-decoration","underline")});$("#winterBarContainer").mouseleave(function(){c=setInterval(function(){run(b);if(b<a.length-1){b++}else{b=0}},1000*5)});$(".clickableStripe1").mouseout(function(){$("#resort_"+b+" li.city").css("text-decoration","none")})});function run(d){var b=$("#winterBar ul");var e=d;if(d<b.length-1){e++}else{e=0}var c=b.eq(d);var a=b.eq(e);$(c).hide();$(a).css("top","40px");a.show();$(a).animate({top:"0px"},1000,function(){$(this).clearQueue()});$("#stripeLink_"+d).hide();$("#stripeLink_"+e).show();if(d<b.length-1){d++}else{d=0}};
