/*
 * jQuery JavaScript Library v1.7.1
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Mon Nov 21 21:11:03 2011 -0500
 */
(function(bf,P){var az=bf.document,by=bf.navigator,bp=bf.location;var b=(function(){var bJ=function(b4,b5){return new bJ.fn.init(b4,b5,bH);},bY=bf.jQuery,bL=bf.$,bH,b2=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bQ=/\S/,bM=/^\s+/,bI=/\s+$/,bE=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bR=/^[\],:{}\s]*$/,b0=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bT=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bN=/(?:^|:|,)(?:\s*\[)+/g,bC=/(webkit)[ \/]([\w.]+)/,bV=/(opera)(?:.*version)?[ \/]([\w.]+)/,bU=/(msie) ([\w.]+)/,bW=/(mozilla)(?:.*? rv:([\w.]+))?/,bF=/-([a-z]|[0-9])/ig,b3=/^-ms-/,bX=function(b4,b5){return(b5+"").toUpperCase();},b1=by.userAgent,bZ,bG,e,bP=Object.prototype.toString,bK=Object.prototype.hasOwnProperty,bD=Array.prototype.push,bO=Array.prototype.slice,bS=String.prototype.trim,bz=Array.prototype.indexOf,bB={};bJ.fn=bJ.prototype={constructor:bJ,init:function(b4,b8,b7){var b6,b9,b5,ca;if(!b4){return this;}if(b4.nodeType){this.context=this[0]=b4;this.length=1;return this;}if(b4==="body"&&!b8&&az.body){this.context=az;this[0]=az.body;this.selector=b4;this.length=1;return this;}if(typeof b4==="string"){if(b4.charAt(0)==="<"&&b4.charAt(b4.length-1)===">"&&b4.length>=3){b6=[null,b4,null];}else{b6=b2.exec(b4);}if(b6&&(b6[1]||!b8)){if(b6[1]){b8=b8 instanceof bJ?b8[0]:b8;ca=(b8?b8.ownerDocument||b8:az);b5=bE.exec(b4);if(b5){if(bJ.isPlainObject(b8)){b4=[az.createElement(b5[1])];bJ.fn.attr.call(b4,b8,true);}else{b4=[ca.createElement(b5[1])];}}else{b5=bJ.buildFragment([b6[1]],[ca]);b4=(b5.cacheable?bJ.clone(b5.fragment):b5.fragment).childNodes;}return bJ.merge(this,b4);}else{b9=az.getElementById(b6[2]);if(b9&&b9.parentNode){if(b9.id!==b6[2]){return b7.find(b4);}this.length=1;this[0]=b9;}this.context=az;this.selector=b4;return this;}}else{if(!b8||b8.jquery){return(b8||b7).find(b4);}else{return this.constructor(b8).find(b4);}}}else{if(bJ.isFunction(b4)){return b7.ready(b4);}}if(b4.selector!==P){this.selector=b4.selector;this.context=b4.context;}return bJ.makeArray(b4,this);},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length;},toArray:function(){return bO.call(this,0);},get:function(b4){return b4==null?this.toArray():(b4<0?this[this.length+b4]:this[b4]);},pushStack:function(b5,b7,b4){var b6=this.constructor();if(bJ.isArray(b5)){bD.apply(b6,b5);}else{bJ.merge(b6,b5);}b6.prevObject=this;b6.context=this.context;if(b7==="find"){b6.selector=this.selector+(this.selector?" ":"")+b4;}else{if(b7){b6.selector=this.selector+"."+b7+"("+b4+")";}}return b6;},each:function(b5,b4){return bJ.each(this,b5,b4);},ready:function(b4){bJ.bindReady();bG.add(b4);return this;},eq:function(b4){b4=+b4;return b4===-1?this.slice(b4):this.slice(b4,b4+1);},first:function(){return this.eq(0);},last:function(){return this.eq(-1);},slice:function(){return this.pushStack(bO.apply(this,arguments),"slice",bO.call(arguments).join(","));},map:function(b4){return this.pushStack(bJ.map(this,function(b6,b5){return b4.call(b6,b5,b6);}));},end:function(){return this.prevObject||this.constructor(null);},push:bD,sort:[].sort,splice:[].splice};bJ.fn.init.prototype=bJ.fn;bJ.extend=bJ.fn.extend=function(){var cd,b6,b4,b5,ca,cb,b9=arguments[0]||{},b8=1,b7=arguments.length,cc=false;if(typeof b9==="boolean"){cc=b9;b9=arguments[1]||{};b8=2;}if(typeof b9!=="object"&&!bJ.isFunction(b9)){b9={};}if(b7===b8){b9=this;--b8;}for(;b8<b7;b8++){if((cd=arguments[b8])!=null){for(b6 in cd){b4=b9[b6];b5=cd[b6];if(b9===b5){continue;}if(cc&&b5&&(bJ.isPlainObject(b5)||(ca=bJ.isArray(b5)))){if(ca){ca=false;cb=b4&&bJ.isArray(b4)?b4:[];}else{cb=b4&&bJ.isPlainObject(b4)?b4:{};}b9[b6]=bJ.extend(cc,cb,b5);}else{if(b5!==P){b9[b6]=b5;}}}}}return b9;};bJ.extend({noConflict:function(b4){if(bf.$===bJ){bf.$=bL;}if(b4&&bf.jQuery===bJ){bf.jQuery=bY;}return bJ;},isReady:false,readyWait:1,holdReady:function(b4){if(b4){bJ.readyWait++;}else{bJ.ready(true);}},ready:function(b4){if((b4===true&&!--bJ.readyWait)||(b4!==true&&!bJ.isReady)){if(!az.body){return setTimeout(bJ.ready,1);}bJ.isReady=true;if(b4!==true&&--bJ.readyWait>0){return;}bG.fireWith(az,[bJ]);if(bJ.fn.trigger){bJ(az).trigger("ready").off("ready");}}},bindReady:function(){if(bG){return;}bG=bJ.Callbacks("once memory");if(az.readyState==="complete"){return setTimeout(bJ.ready,1);}if(az.addEventListener){az.addEventListener("DOMContentLoaded",e,false);bf.addEventListener("load",bJ.ready,false);}else{if(az.attachEvent){az.attachEvent("onreadystatechange",e);bf.attachEvent("onload",bJ.ready);var b4=false;try{b4=bf.frameElement==null;}catch(b5){}if(az.documentElement.doScroll&&b4){bA();}}}},isFunction:function(b4){return bJ.type(b4)==="function";},isArray:Array.isArray||function(b4){return bJ.type(b4)==="array";},isWindow:function(b4){return b4&&typeof b4==="object"&&"setInterval" in b4;},isNumeric:function(b4){return !isNaN(parseFloat(b4))&&isFinite(b4);},type:function(b4){return b4==null?String(b4):bB[bP.call(b4)]||"object";},isPlainObject:function(b6){if(!b6||bJ.type(b6)!=="object"||b6.nodeType||bJ.isWindow(b6)){return false;}try{if(b6.constructor&&!bK.call(b6,"constructor")&&!bK.call(b6.constructor.prototype,"isPrototypeOf")){return false;}}catch(b5){return false;}var b4;for(b4 in b6){}return b4===P||bK.call(b6,b4);},isEmptyObject:function(b5){for(var b4 in b5){return false;}return true;},error:function(b4){throw new Error(b4);},parseJSON:function(b4){if(typeof b4!=="string"||!b4){return null;}b4=bJ.trim(b4);if(bf.JSON&&bf.JSON.parse){return bf.JSON.parse(b4);}if(bR.test(b4.replace(b0,"@").replace(bT,"]").replace(bN,""))){return(new Function("return "+b4))();}bJ.error("Invalid JSON: "+b4);},parseXML:function(b6){var b4,b5;try{if(bf.DOMParser){b5=new DOMParser();b4=b5.parseFromString(b6,"text/xml");}else{b4=new ActiveXObject("Microsoft.XMLDOM");b4.async="false";b4.loadXML(b6);}}catch(b7){b4=P;}if(!b4||!b4.documentElement||b4.getElementsByTagName("parsererror").length){bJ.error("Invalid XML: "+b6);}return b4;},noop:function(){},globalEval:function(b4){if(b4&&bQ.test(b4)){(bf.execScript||function(b5){bf["eval"].call(bf,b5);})(b4);}},camelCase:function(b4){return b4.replace(b3,"ms-").replace(bF,bX);},nodeName:function(b5,b4){return b5.nodeName&&b5.nodeName.toUpperCase()===b4.toUpperCase();},each:function(b7,ca,b6){var b5,b8=0,b9=b7.length,b4=b9===P||bJ.isFunction(b7);if(b6){if(b4){for(b5 in b7){if(ca.apply(b7[b5],b6)===false){break;}}}else{for(;b8<b9;){if(ca.apply(b7[b8++],b6)===false){break;}}}}else{if(b4){for(b5 in b7){if(ca.call(b7[b5],b5,b7[b5])===false){break;}}}else{for(;b8<b9;){if(ca.call(b7[b8],b8,b7[b8++])===false){break;}}}}return b7;},trim:bS?function(b4){return b4==null?"":bS.call(b4);}:function(b4){return b4==null?"":b4.toString().replace(bM,"").replace(bI,"");},makeArray:function(b7,b5){var b4=b5||[];if(b7!=null){var b6=bJ.type(b7);if(b7.length==null||b6==="string"||b6==="function"||b6==="regexp"||bJ.isWindow(b7)){bD.call(b4,b7);}else{bJ.merge(b4,b7);}}return b4;},inArray:function(b6,b7,b5){var b4;if(b7){if(bz){return bz.call(b7,b6,b5);}b4=b7.length;b5=b5?b5<0?Math.max(0,b4+b5):b5:0;for(;b5<b4;b5++){if(b5 in b7&&b7[b5]===b6){return b5;}}}return -1;},merge:function(b8,b6){var b7=b8.length,b5=0;if(typeof b6.length==="number"){for(var b4=b6.length;b5<b4;b5++){b8[b7++]=b6[b5];}}else{while(b6[b5]!==P){b8[b7++]=b6[b5++];}}b8.length=b7;return b8;},grep:function(b5,ca,b4){var b6=[],b9;b4=!!b4;for(var b7=0,b8=b5.length;b7<b8;b7++){b9=!!ca(b5[b7],b7);if(b4!==b9){b6.push(b5[b7]);}}return b6;},map:function(b4,cb,cc){var b9,ca,b8=[],b6=0,b5=b4.length,b7=b4 instanceof bJ||b5!==P&&typeof b5==="number"&&((b5>0&&b4[0]&&b4[b5-1])||b5===0||bJ.isArray(b4));if(b7){for(;b6<b5;b6++){b9=cb(b4[b6],b6,cc);if(b9!=null){b8[b8.length]=b9;}}}else{for(ca in b4){b9=cb(b4[ca],ca,cc);if(b9!=null){b8[b8.length]=b9;}}}return b8.concat.apply([],b8);},guid:1,proxy:function(b8,b7){if(typeof b7==="string"){var b6=b8[b7];b7=b8;b8=b6;}if(!bJ.isFunction(b8)){return P;}var b4=bO.call(arguments,2),b5=function(){return b8.apply(b7,b4.concat(bO.call(arguments)));};b5.guid=b8.guid=b8.guid||b5.guid||bJ.guid++;return b5;},access:function(b4,cc,ca,b6,b9,cb){var b5=b4.length;if(typeof cc==="object"){for(var b7 in cc){bJ.access(b4,b7,cc[b7],b6,b9,ca);}return b4;}if(ca!==P){b6=!cb&&b6&&bJ.isFunction(ca);for(var b8=0;b8<b5;b8++){b9(b4[b8],cc,b6?ca.call(b4[b8],b8,b9(b4[b8],cc)):ca,cb);}return b4;}return b5?b9(b4[0],cc):P;},now:function(){return(new Date()).getTime();},uaMatch:function(b5){b5=b5.toLowerCase();var b4=bC.exec(b5)||bV.exec(b5)||bU.exec(b5)||b5.indexOf("compatible")<0&&bW.exec(b5)||[];return{browser:b4[1]||"",version:b4[2]||"0"};},sub:function(){function b4(b7,b8){return new b4.fn.init(b7,b8);}bJ.extend(true,b4,this);b4.superclass=this;b4.fn=b4.prototype=this();b4.fn.constructor=b4;b4.sub=this.sub;b4.fn.init=function b6(b7,b8){if(b8&&b8 instanceof bJ&&!(b8 instanceof b4)){b8=b4(b8);}return bJ.fn.init.call(this,b7,b8,b5);};b4.fn.init.prototype=b4.fn;var b5=b4(az);return b4;},browser:{}});bJ.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b5,b4){bB["[object "+b4+"]"]=b4.toLowerCase();});bZ=bJ.uaMatch(b1);if(bZ.browser){bJ.browser[bZ.browser]=true;bJ.browser.version=bZ.version;}if(bJ.browser.webkit){bJ.browser.safari=true;}if(bQ.test("\xA0")){bM=/^[\s\xA0]+/;bI=/[\s\xA0]+$/;}bH=bJ(az);if(az.addEventListener){e=function(){az.removeEventListener("DOMContentLoaded",e,false);bJ.ready();};}else{if(az.attachEvent){e=function(){if(az.readyState==="complete"){az.detachEvent("onreadystatechange",e);bJ.ready();}};}}function bA(){if(bJ.isReady){return;}try{az.documentElement.doScroll("left");}catch(b4){setTimeout(bA,1);return;}bJ.ready();}return bJ;})();var a6={};function ab(e){var bz=a6[e]={},bA,bB;e=e.split(/\s+/);for(bA=0,bB=e.length;bA<bB;bA++){bz[e[bA]]=true;}return bz;}b.Callbacks=function(bA){bA=bA?(a6[bA]||ab(bA)):{};var bF=[],bG=[],bB,bC,bz,bD,bE,bI=function(bJ){var bK,bN,bM,bL,bO;for(bK=0,bN=bJ.length;bK<bN;bK++){bM=bJ[bK];bL=b.type(bM);if(bL==="array"){bI(bM);}else{if(bL==="function"){if(!bA.unique||!bH.has(bM)){bF.push(bM);}}}}},e=function(bK,bJ){bJ=bJ||[];bB=!bA.memory||[bK,bJ];bC=true;bE=bz||0;bz=0;bD=bF.length;for(;bF&&bE<bD;bE++){if(bF[bE].apply(bK,bJ)===false&&bA.stopOnFalse){bB=true;break;}}bC=false;if(bF){if(!bA.once){if(bG&&bG.length){bB=bG.shift();bH.fireWith(bB[0],bB[1]);}}else{if(bB===true){bH.disable();}else{bF=[];}}}},bH={add:function(){if(bF){var bJ=bF.length;bI(arguments);if(bC){bD=bF.length;}else{if(bB&&bB!==true){bz=bJ;e(bB[0],bB[1]);}}}return this;},remove:function(){if(bF){var bJ=arguments,bL=0,bM=bJ.length;for(;bL<bM;bL++){for(var bK=0;bK<bF.length;bK++){if(bJ[bL]===bF[bK]){if(bC){if(bK<=bD){bD--;if(bK<=bE){bE--;}}}bF.splice(bK--,1);if(bA.unique){break;}}}}}return this;},has:function(bK){if(bF){var bJ=0,bL=bF.length;for(;bJ<bL;bJ++){if(bK===bF[bJ]){return true;}}}return false;},empty:function(){bF=[];return this;},disable:function(){bF=bG=bB=P;return this;},disabled:function(){return !bF;},lock:function(){bG=P;if(!bB||bB===true){bH.disable();}return this;},locked:function(){return !bG;},fireWith:function(bK,bJ){if(bG){if(bC){if(!bA.once){bG.push([bK,bJ]);}}else{if(!(bA.once&&bB)){e(bK,bJ);}}}return this;},fire:function(){bH.fireWith(this,arguments);return this;},fired:function(){return !!bB;}};return bH;};var aN=[].slice;b.extend({Deferred:function(bC){var bB=b.Callbacks("once memory"),bA=b.Callbacks("once memory"),bz=b.Callbacks("memory"),e="pending",bE={resolve:bB,reject:bA,notify:bz},bG={done:bB.add,fail:bA.add,progress:bz.add,state:function(){return e;},isResolved:bB.fired,isRejected:bA.fired,then:function(bI,bH,bJ){bF.done(bI).fail(bH).progress(bJ);return this;},always:function(){bF.done.apply(bF,arguments).fail.apply(bF,arguments);return this;},pipe:function(bJ,bI,bH){return b.Deferred(function(bK){b.each({done:[bJ,"resolve"],fail:[bI,"reject"],progress:[bH,"notify"]},function(bM,bP){var bL=bP[0],bO=bP[1],bN;if(b.isFunction(bL)){bF[bM](function(){bN=bL.apply(this,arguments);if(bN&&b.isFunction(bN.promise)){bN.promise().then(bK.resolve,bK.reject,bK.notify);}else{bK[bO+"With"](this===bF?bK:this,[bN]);}});}else{bF[bM](bK[bO]);}});}).promise();},promise:function(bI){if(bI==null){bI=bG;}else{for(var bH in bG){bI[bH]=bG[bH];}}return bI;}},bF=bG.promise({}),bD;for(bD in bE){bF[bD]=bE[bD].fire;bF[bD+"With"]=bE[bD].fireWith;}bF.done(function(){e="resolved";},bA.disable,bz.lock).fail(function(){e="rejected";},bB.disable,bz.lock);if(bC){bC.call(bF,bF);}return bF;},when:function(bE){var bB=aN.call(arguments,0),bz=0,e=bB.length,bF=new Array(e),bA=e,bC=e,bG=e<=1&&bE&&b.isFunction(bE.promise)?bE:b.Deferred(),bI=bG.promise();function bH(bJ){return function(bK){bB[bJ]=arguments.length>1?aN.call(arguments,0):bK;if(!(--bA)){bG.resolveWith(bG,bB);}};}function bD(bJ){return function(bK){bF[bJ]=arguments.length>1?aN.call(arguments,0):bK;bG.notifyWith(bI,bF);};}if(e>1){for(;bz<e;bz++){if(bB[bz]&&bB[bz].promise&&b.isFunction(bB[bz].promise)){bB[bz].promise().then(bH(bz),bG.reject,bD(bz));}else{--bA;}}if(!bA){bG.resolveWith(bG,bB);}}else{if(bG!==bE){bG.resolveWith(bG,e?[bE]:[]);}}return bI;}});b.support=(function(){var bN,bM,bJ,bK,bB,bI,bE,bH,bD,bO,bF,bC,bA,bz=az.createElement("div"),bL=az.documentElement;bz.setAttribute("className","t");bz.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bM=bz.getElementsByTagName("*");bJ=bz.getElementsByTagName("a")[0];if(!bM||!bM.length||!bJ){return{};}bK=az.createElement("select");bB=bK.appendChild(az.createElement("option"));bI=bz.getElementsByTagName("input")[0];bN={leadingWhitespace:(bz.firstChild.nodeType===3),tbody:!bz.getElementsByTagName("tbody").length,htmlSerialize:!!bz.getElementsByTagName("link").length,style:/top/.test(bJ.getAttribute("style")),hrefNormalized:(bJ.getAttribute("href")==="/a"),opacity:/^0.55/.test(bJ.style.opacity),cssFloat:!!bJ.style.cssFloat,checkOn:(bI.value==="on"),optSelected:bB.selected,getSetAttribute:bz.className!=="t",enctype:!!az.createElement("form").enctype,html5Clone:az.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bI.checked=true;bN.noCloneChecked=bI.cloneNode(true).checked;bK.disabled=true;bN.optDisabled=!bB.disabled;try{delete bz.test;}catch(bG){bN.deleteExpando=false;}if(!bz.addEventListener&&bz.attachEvent&&bz.fireEvent){bz.attachEvent("onclick",function(){bN.noCloneEvent=false;});bz.cloneNode(true).fireEvent("onclick");}bI=az.createElement("input");bI.value="t";bI.setAttribute("type","radio");bN.radioValue=bI.value==="t";bI.setAttribute("checked","checked");bz.appendChild(bI);bH=az.createDocumentFragment();bH.appendChild(bz.lastChild);bN.checkClone=bH.cloneNode(true).cloneNode(true).lastChild.checked;bN.appendChecked=bI.checked;bH.removeChild(bI);bH.appendChild(bz);bz.innerHTML="";if(bf.getComputedStyle){bE=az.createElement("div");bE.style.width="0";bE.style.marginRight="0";bz.style.width="2px";bz.appendChild(bE);bN.reliableMarginRight=(parseInt((bf.getComputedStyle(bE,null)||{marginRight:0}).marginRight,10)||0)===0;}if(bz.attachEvent){for(bC in {submit:1,change:1,focusin:1}){bF="on"+bC;bA=(bF in bz);if(!bA){bz.setAttribute(bF,"return;");bA=(typeof bz[bF]==="function");}bN[bC+"Bubbles"]=bA;}}bH.removeChild(bz);bH=bK=bB=bE=bz=bI=null;b(function(){var bQ,bY,bZ,bX,bR,bS,bP,bW,bV,e,bT,bU=az.getElementsByTagName("body")[0];if(!bU){return;}bP=1;bW="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bV="visibility:hidden;border:0;";e="style='"+bW+"border:5px solid #000;padding:0;'";bT="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bQ=az.createElement("div");bQ.style.cssText=bV+"width:0;height:0;position:static;top:0;margin-top:"+bP+"px";bU.insertBefore(bQ,bU.firstChild);bz=az.createElement("div");bQ.appendChild(bz);bz.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bD=bz.getElementsByTagName("td");bA=(bD[0].offsetHeight===0);bD[0].style.display="";bD[1].style.display="none";bN.reliableHiddenOffsets=bA&&(bD[0].offsetHeight===0);bz.innerHTML="";bz.style.width=bz.style.paddingLeft="1px";b.boxModel=bN.boxModel=bz.offsetWidth===2;if(typeof bz.style.zoom!=="undefined"){bz.style.display="inline";bz.style.zoom=1;bN.inlineBlockNeedsLayout=(bz.offsetWidth===2);bz.style.display="";bz.innerHTML="<div style='width:4px;'></div>";bN.shrinkWrapBlocks=(bz.offsetWidth!==2);}bz.style.cssText=bW+bV;bz.innerHTML=bT;bY=bz.firstChild;bZ=bY.firstChild;bR=bY.nextSibling.firstChild.firstChild;bS={doesNotAddBorder:(bZ.offsetTop!==5),doesAddBorderForTableAndCells:(bR.offsetTop===5)};bZ.style.position="fixed";bZ.style.top="20px";bS.fixedPosition=(bZ.offsetTop===20||bZ.offsetTop===15);bZ.style.position=bZ.style.top="";bY.style.overflow="hidden";bY.style.position="relative";bS.subtractsBorderForOverflowNotVisible=(bZ.offsetTop===-5);bS.doesNotIncludeMarginInBodyOffset=(bU.offsetTop!==bP);bU.removeChild(bQ);bz=bQ=null;b.extend(bN,bS);});return bN;})();var aW=/^(?:\{.*\}|\[.*\])$/,aE=/([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(bB,bz,bD,bC){if(!b.acceptData(bB)){return;}var bK,bE,bH,bI=b.expando,bG=typeof bz==="string",bJ=bB.nodeType,e=bJ?b.cache:bB,bA=bJ?bB[bI]:bB[bI]&&bI,bF=bz==="events";if((!bA||!e[bA]||(!bF&&!bC&&!e[bA].data))&&bG&&bD===P){return;}if(!bA){if(bJ){bB[bI]=bA=++b.uuid;}else{bA=bI;}}if(!e[bA]){e[bA]={};if(!bJ){e[bA].toJSON=b.noop;}}if(typeof bz==="object"||typeof bz==="function"){if(bC){e[bA]=b.extend(e[bA],bz);}else{e[bA].data=b.extend(e[bA].data,bz);}}bK=bE=e[bA];if(!bC){if(!bE.data){bE.data={};}bE=bE.data;}if(bD!==P){bE[b.camelCase(bz)]=bD;}if(bF&&!bE[bz]){return bK.events;}if(bG){bH=bE[bz];if(bH==null){bH=bE[b.camelCase(bz)];}}else{bH=bE;}return bH;},removeData:function(bB,bz,bC){if(!b.acceptData(bB)){return;}var bF,bE,bD,bG=b.expando,bH=bB.nodeType,e=bH?b.cache:bB,bA=bH?bB[bG]:bG;if(!e[bA]){return;}if(bz){bF=bC?e[bA]:e[bA].data;if(bF){if(!b.isArray(bz)){if(bz in bF){bz=[bz];}else{bz=b.camelCase(bz);if(bz in bF){bz=[bz];}else{bz=bz.split(" ");}}}for(bE=0,bD=bz.length;bE<bD;bE++){delete bF[bz[bE]];}if(!(bC?W:b.isEmptyObject)(bF)){return;}}}if(!bC){delete e[bA].data;if(!W(e[bA])){return;}}if(b.support.deleteExpando||!e.setInterval){delete e[bA];}else{e[bA]=null;}if(bH){if(b.support.deleteExpando){delete bB[bG];}else{if(bB.removeAttribute){bB.removeAttribute(bG);}else{bB[bG]=null;}}}},_data:function(bz,e,bA){return b.data(bz,e,bA,true);},acceptData:function(bz){if(bz.nodeName){var e=b.noData[bz.nodeName.toLowerCase()];if(e){return !(e===true||bz.getAttribute("classid")!==e);}}return true;}});b.fn.extend({data:function(bC,bE){var bF,e,bA,bD=null;if(typeof bC==="undefined"){if(this.length){bD=b.data(this[0]);if(this[0].nodeType===1&&!b._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bB=0,bz=e.length;bB<bz;bB++){bA=e[bB].name;if(bA.indexOf("data-")===0){bA=b.camelCase(bA.substring(5));a9(this[0],bA,bD[bA]);}}b._data(this[0],"parsedAttrs",true);}}return bD;}else{if(typeof bC==="object"){return this.each(function(){b.data(this,bC);});}}bF=bC.split(".");bF[1]=bF[1]?"."+bF[1]:"";if(bE===P){bD=this.triggerHandler("getData"+bF[1]+"!",[bF[0]]);if(bD===P&&this.length){bD=b.data(this[0],bC);bD=a9(this[0],bC,bD);}return bD===P&&bF[1]?this.data(bF[0]):bD;}else{return this.each(function(){var bG=b(this),bH=[bF[0],bE];bG.triggerHandler("setData"+bF[1]+"!",bH);b.data(this,bC,bE);bG.triggerHandler("changeData"+bF[1]+"!",bH);});}},removeData:function(e){return this.each(function(){b.removeData(this,e);});}});function a9(bB,bA,bC){if(bC===P&&bB.nodeType===1){var bz="data-"+bA.replace(aE,"-$1").toLowerCase();bC=bB.getAttribute(bz);if(typeof bC==="string"){try{bC=bC==="true"?true:bC==="false"?false:bC==="null"?null:b.isNumeric(bC)?parseFloat(bC):aW.test(bC)?b.parseJSON(bC):bC;}catch(bD){}b.data(bB,bA,bC);}else{bC=P;}}return bC;}function W(bz){for(var e in bz){if(e==="data"&&b.isEmptyObject(bz[e])){continue;}if(e!=="toJSON"){return false;}}return true;}function bm(bC,bB,bE){var bA=bB+"defer",bz=bB+"queue",e=bB+"mark",bD=b._data(bC,bA);if(bD&&(bE==="queue"||!b._data(bC,bz))&&(bE==="mark"||!b._data(bC,e))){setTimeout(function(){if(!b._data(bC,bz)&&!b._data(bC,e)){b.removeData(bC,bA,true);bD.fire();}},0);}}b.extend({_mark:function(bz,e){if(bz){e=(e||"fx")+"mark";b._data(bz,e,(b._data(bz,e)||0)+1);}},_unmark:function(bC,bB,bz){if(bC!==true){bz=bB;bB=bC;bC=false;}if(bB){bz=bz||"fx";var e=bz+"mark",bA=bC?0:((b._data(bB,e)||1)-1);if(bA){b._data(bB,e,bA);}else{b.removeData(bB,e,true);bm(bB,bz,"mark");}}},queue:function(bz,e,bB){var bA;if(bz){e=(e||"fx")+"queue";bA=b._data(bz,e);if(bB){if(!bA||b.isArray(bB)){bA=b._data(bz,e,b.makeArray(bB));}else{bA.push(bB);}}return bA||[];}},dequeue:function(bC,bB){bB=bB||"fx";var bz=b.queue(bC,bB),bA=bz.shift(),e={};if(bA==="inprogress"){bA=bz.shift();}if(bA){if(bB==="fx"){bz.unshift("inprogress");}b._data(bC,bB+".run",e);bA.call(bC,function(){b.dequeue(bC,bB);},e);}if(!bz.length){b.removeData(bC,bB+"queue "+bB+".run",true);bm(bC,bB,"queue");}}});b.fn.extend({queue:function(e,bz){if(typeof e!=="string"){bz=e;e="fx";}if(bz===P){return b.queue(this[0],e);}return this.each(function(){var bA=b.queue(this,e,bz);if(e==="fx"&&bA[0]!=="inprogress"){b.dequeue(this,e);}});},dequeue:function(e){return this.each(function(){b.dequeue(this,e);});},delay:function(bz,e){bz=b.fx?b.fx.speeds[bz]||bz:bz;e=e||"fx";return this.queue(e,function(bB,bA){var bC=setTimeout(bB,bz);bA.stop=function(){clearTimeout(bC);};});},clearQueue:function(e){return this.queue(e||"fx",[]);},promise:function(bH,bA){if(typeof bH!=="string"){bA=bH;bH=P;}bH=bH||"fx";var e=b.Deferred(),bz=this,bC=bz.length,bF=1,bD=bH+"defer",bE=bH+"queue",bG=bH+"mark",bB;function bI(){if(!(--bF)){e.resolveWith(bz,[bz]);}}while(bC--){if((bB=b.data(bz[bC],bD,P,true)||(b.data(bz[bC],bE,P,true)||b.data(bz[bC],bG,P,true))&&b.data(bz[bC],bD,b.Callbacks("once memory"),true))){bF++;bB.add(bI);}}bI();return e.promise();}});var aT=/[\n\t\r]/g,aj=/\s+/,aY=/\r/g,g=/^(?:button|input)$/i,H=/^(?:button|input|object|select|textarea)$/i,m=/^a(?:rea)?$/i,at=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=b.support.getSetAttribute,bi,a2,aJ;b.fn.extend({attr:function(e,bz){return b.access(this,e,bz,true,b.attr);},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e);});},prop:function(e,bz){return b.access(this,e,bz,true,b.prop);},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=P;delete this[e];}catch(bz){}});},addClass:function(bC){var bE,bA,bz,bB,bD,bF,e;if(b.isFunction(bC)){return this.each(function(bG){b(this).addClass(bC.call(this,bG,this.className));});}if(bC&&typeof bC==="string"){bE=bC.split(aj);for(bA=0,bz=this.length;bA<bz;bA++){bB=this[bA];if(bB.nodeType===1){if(!bB.className&&bE.length===1){bB.className=bC;}else{bD=" "+bB.className+" ";for(bF=0,e=bE.length;bF<e;bF++){if(!~bD.indexOf(" "+bE[bF]+" ")){bD+=bE[bF]+" ";}}bB.className=b.trim(bD);}}}}return this;},removeClass:function(bD){var bE,bA,bz,bC,bB,bF,e;if(b.isFunction(bD)){return this.each(function(bG){b(this).removeClass(bD.call(this,bG,this.className));});}if((bD&&typeof bD==="string")||bD===P){bE=(bD||"").split(aj);for(bA=0,bz=this.length;bA<bz;bA++){bC=this[bA];if(bC.nodeType===1&&bC.className){if(bD){bB=(" "+bC.className+" ").replace(aT," ");for(bF=0,e=bE.length;bF<e;bF++){bB=bB.replace(" "+bE[bF]+" "," ");}bC.className=b.trim(bB);}else{bC.className="";}}}}return this;},toggleClass:function(bB,bz){var bA=typeof bB,e=typeof bz==="boolean";if(b.isFunction(bB)){return this.each(function(bC){b(this).toggleClass(bB.call(this,bC,this.className,bz),bz);});}return this.each(function(){if(bA==="string"){var bE,bD=0,bC=b(this),bF=bz,bG=bB.split(aj);while((bE=bG[bD++])){bF=e?bF:!bC.hasClass(bE);bC[bF?"addClass":"removeClass"](bE);}}else{if(bA==="undefined"||bA==="boolean"){if(this.className){b._data(this,"__className__",this.className);}this.className=this.className||bB===false?"":b._data(this,"__className__")||"";}}});},hasClass:function(e){var bB=" "+e+" ",bA=0,bz=this.length;for(;bA<bz;bA++){if(this[bA].nodeType===1&&(" "+this[bA].className+" ").replace(aT," ").indexOf(bB)>-1){return true;}}return false;},val:function(bB){var e,bz,bC,bA=this[0];if(!arguments.length){if(bA){e=b.valHooks[bA.nodeName.toLowerCase()]||b.valHooks[bA.type];if(e&&"get" in e&&(bz=e.get(bA,"value"))!==P){return bz;}bz=bA.value;return typeof bz==="string"?bz.replace(aY,""):bz==null?"":bz;}return;}bC=b.isFunction(bB);return this.each(function(bE){var bD=b(this),bF;if(this.nodeType!==1){return;}if(bC){bF=bB.call(this,bE,bD.val());}else{bF=bB;}if(bF==null){bF="";}else{if(typeof bF==="number"){bF+="";}else{if(b.isArray(bF)){bF=b.map(bF,function(bG){return bG==null?"":bG+"";});}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bF,"value")===P){this.value=bF;}});}});b.extend({valHooks:{option:{get:function(e){var bz=e.attributes.value;return !bz||bz.specified?e.value:e.text;}},select:{get:function(e){var bE,bz,bD,bB,bC=e.selectedIndex,bF=[],bG=e.options,bA=e.type==="select-one";if(bC<0){return null;}bz=bA?bC:0;bD=bA?bC+1:bG.length;for(;bz<bD;bz++){bB=bG[bz];if(bB.selected&&(b.support.optDisabled?!bB.disabled:bB.getAttribute("disabled")===null)&&(!bB.parentNode.disabled||!b.nodeName(bB.parentNode,"optgroup"))){bE=b(bB).val();if(bA){return bE;}bF.push(bE);}}if(bA&&!bF.length&&bG.length){return b(bG[bC]).val();}return bF;},set:function(bz,bA){var e=b.makeArray(bA);b(bz).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0;});if(!e.length){bz.selectedIndex=-1;}return e;}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bE,bB,bF,bD){var bA,e,bC,bz=bE.nodeType;if(!bE||bz===3||bz===8||bz===2){return;}if(bD&&bB in b.attrFn){return b(bE)[bB](bF);}if(typeof bE.getAttribute==="undefined"){return b.prop(bE,bB,bF);}bC=bz!==1||!b.isXMLDoc(bE);if(bC){bB=bB.toLowerCase();e=b.attrHooks[bB]||(at.test(bB)?a2:bi);}if(bF!==P){if(bF===null){b.removeAttr(bE,bB);return;}else{if(e&&"set" in e&&bC&&(bA=e.set(bE,bF,bB))!==P){return bA;}else{bE.setAttribute(bB,""+bF);return bF;}}}else{if(e&&"get" in e&&bC&&(bA=e.get(bE,bB))!==null){return bA;}else{bA=bE.getAttribute(bB);return bA===null?P:bA;}}},removeAttr:function(bB,bD){var bC,bE,bz,e,bA=0;if(bD&&bB.nodeType===1){bE=bD.toLowerCase().split(aj);e=bE.length;for(;bA<e;bA++){bz=bE[bA];if(bz){bC=b.propFix[bz]||bz;b.attr(bB,bz,"");bB.removeAttribute(J?bz:bC);if(at.test(bz)&&bC in bB){bB[bC]=false;}}}}},attrHooks:{type:{set:function(e,bz){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed");}else{if(!b.support.radioValue&&bz==="radio"&&b.nodeName(e,"input")){var bA=e.value;e.setAttribute("type",bz);if(bA){e.value=bA;}return bz;}}}},value:{get:function(bz,e){if(bi&&b.nodeName(bz,"button")){return bi.get(bz,e);}return e in bz?bz.value:null;},set:function(bz,bA,e){if(bi&&b.nodeName(bz,"button")){return bi.set(bz,bA,e);}bz.value=bA;}}},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(bD,bB,bE){var bA,e,bC,bz=bD.nodeType;if(!bD||bz===3||bz===8||bz===2){return;}bC=bz!==1||!b.isXMLDoc(bD);if(bC){bB=b.propFix[bB]||bB;e=b.propHooks[bB];}if(bE!==P){if(e&&"set" in e&&(bA=e.set(bD,bE,bB))!==P){return bA;}else{return(bD[bB]=bE);}}else{if(e&&"get" in e&&(bA=e.get(bD,bB))!==null){return bA;}else{return bD[bB];}}},propHooks:{tabIndex:{get:function(bz){var e=bz.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):H.test(bz.nodeName)||m.test(bz.nodeName)&&bz.href?0:P;}}}});b.attrHooks.tabindex=b.propHooks.tabIndex;a2={get:function(bz,e){var bB,bA=b.prop(bz,e);return bA===true||typeof bA!=="boolean"&&(bB=bz.getAttributeNode(e))&&bB.nodeValue!==false?e.toLowerCase():P;},set:function(bz,bB,e){var bA;if(bB===false){b.removeAttr(bz,e);}else{bA=b.propFix[e]||e;if(bA in bz){bz[bA]=true;}bz.setAttribute(e,e.toLowerCase());}return e;}};if(!J){aJ={name:true,id:true};bi=b.valHooks.button={get:function(bA,bz){var e;e=bA.getAttributeNode(bz);return e&&(aJ[bz]?e.nodeValue!=="":e.specified)?e.nodeValue:P;},set:function(bA,bB,bz){var e=bA.getAttributeNode(bz);if(!e){e=az.createAttribute(bz);bA.setAttributeNode(e);}return(e.nodeValue=bB+"");}};b.attrHooks.tabindex.set=bi.set;b.each(["width","height"],function(bz,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bA,bB){if(bB===""){bA.setAttribute(e,"auto");return bB;}}});});b.attrHooks.contenteditable={get:bi.get,set:function(bz,bA,e){if(bA===""){bA="false";}bi.set(bz,bA,e);}};}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bz,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bB){var bA=bB.getAttribute(e,2);return bA===null?P:bA;}});});}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||P;},set:function(e,bz){return(e.style.cssText=""+bz);}};}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bz){var e=bz.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex;}}return null;}});}if(!b.support.enctype){b.propFix.enctype="encoding";}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value;}};});}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bz){if(b.isArray(bz)){return(e.checked=b.inArray(b(e).val(),bz)>=0);}}});});var bh=/^(?:textarea|input|select)$/i,o=/^([^\.]*)?(?:\.(.+))?$/,N=/\bhover(\.\S+)?\b/,aS=/^key/,bj=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,ac=function(e){var bz=Y.exec(e);if(bz){bz[1]=(bz[1]||"").toLowerCase();bz[3]=bz[3]&&new RegExp("(?:^|\\s)"+bz[3]+"(?:\\s|$)");}return bz;},k=function(bA,e){var bz=bA.attributes||{};return((!e[1]||bA.nodeName.toLowerCase()===e[1])&&(!e[2]||(bz.id||{}).value===e[2])&&(!e[3]||e[3].test((bz["class"]||{}).value)));},bx=function(e){return b.event.special.hover?e:e.replace(N,"mouseenter$1 mouseleave$1");};b.event={add:function(bB,bG,bN,bE,bC){var bH,bF,bO,bM,bL,bJ,e,bK,bz,bD,bA,bI;if(bB.nodeType===3||bB.nodeType===8||!bG||!bN||!(bH=b._data(bB))){return;}if(bN.handler){bz=bN;bN=bz.handler;}if(!bN.guid){bN.guid=b.guid++;}bO=bH.events;if(!bO){bH.events=bO={};}bF=bH.handle;if(!bF){bH.handle=bF=function(bP){return typeof b!=="undefined"&&(!bP||b.event.triggered!==bP.type)?b.event.dispatch.apply(bF.elem,arguments):P;};bF.elem=bB;}bG=b.trim(bx(bG)).split(" ");for(bM=0;bM<bG.length;bM++){bL=o.exec(bG[bM])||[];bJ=bL[1];e=(bL[2]||"").split(".").sort();bI=b.event.special[bJ]||{};bJ=(bC?bI.delegateType:bI.bindType)||bJ;bI=b.event.special[bJ]||{};bK=b.extend({type:bJ,origType:bL[1],data:bE,handler:bN,guid:bN.guid,selector:bC,quick:ac(bC),namespace:e.join(".")},bz);bA=bO[bJ];if(!bA){bA=bO[bJ]=[];bA.delegateCount=0;if(!bI.setup||bI.setup.call(bB,bE,e,bF)===false){if(bB.addEventListener){bB.addEventListener(bJ,bF,false);}else{if(bB.attachEvent){bB.attachEvent("on"+bJ,bF);}}}}if(bI.add){bI.add.call(bB,bK);if(!bK.handler.guid){bK.handler.guid=bN.guid;}}if(bC){bA.splice(bA.delegateCount++,0,bK);}else{bA.push(bK);}b.event.global[bJ]=true;}bB=null;},global:{},remove:function(bN,bI,bz,bL,bF){var bM=b.hasData(bN)&&b._data(bN),bJ,bB,bD,bP,bG,bE,bK,bA,bC,bO,bH,e;if(!bM||!(bA=bM.events)){return;}bI=b.trim(bx(bI||"")).split(" ");for(bJ=0;bJ<bI.length;bJ++){bB=o.exec(bI[bJ])||[];bD=bP=bB[1];bG=bB[2];if(!bD){for(bD in bA){b.event.remove(bN,bD+bI[bJ],bz,bL,true);}continue;}bC=b.event.special[bD]||{};bD=(bL?bC.delegateType:bC.bindType)||bD;bH=bA[bD]||[];bE=bH.length;bG=bG?new RegExp("(^|\\.)"+bG.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(bK=0;bK<bH.length;bK++){e=bH[bK];if((bF||bP===e.origType)&&(!bz||bz.guid===e.guid)&&(!bG||bG.test(e.namespace))&&(!bL||bL===e.selector||bL==="**"&&e.selector)){bH.splice(bK--,1);if(e.selector){bH.delegateCount--;}if(bC.remove){bC.remove.call(bN,e);}}}if(bH.length===0&&bE!==bH.length){if(!bC.teardown||bC.teardown.call(bN,bG)===false){b.removeEvent(bN,bD,bM.handle);}delete bA[bD];}}if(b.isEmptyObject(bA)){bO=bM.handle;if(bO){bO.elem=null;}b.removeData(bN,["events","handle"],true);}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bz,bH,bE,bN){if(bE&&(bE.nodeType===3||bE.nodeType===8)){return;}var bK=bz.type||bz,bB=[],e,bA,bG,bL,bD,bC,bJ,bI,bF,bM;if(X.test(bK+b.event.triggered)){return;}if(bK.indexOf("!")>=0){bK=bK.slice(0,-1);bA=true;}if(bK.indexOf(".")>=0){bB=bK.split(".");bK=bB.shift();bB.sort();}if((!bE||b.event.customEvent[bK])&&!b.event.global[bK]){return;}bz=typeof bz==="object"?bz[b.expando]?bz:new b.Event(bK,bz):new b.Event(bK);bz.type=bK;bz.isTrigger=true;bz.exclusive=bA;bz.namespace=bB.join(".");bz.namespace_re=bz.namespace?new RegExp("(^|\\.)"+bB.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;bC=bK.indexOf(":")<0?"on"+bK:"";if(!bE){e=b.cache;for(bG in e){if(e[bG].events&&e[bG].events[bK]){b.event.trigger(bz,bH,e[bG].handle.elem,true);}}return;}bz.result=P;if(!bz.target){bz.target=bE;}bH=bH!=null?b.makeArray(bH):[];bH.unshift(bz);bJ=b.event.special[bK]||{};if(bJ.trigger&&bJ.trigger.apply(bE,bH)===false){return;}bF=[[bE,bJ.bindType||bK]];if(!bN&&!bJ.noBubble&&!b.isWindow(bE)){bM=bJ.delegateType||bK;bL=X.test(bM+bK)?bE:bE.parentNode;bD=null;for(;bL;bL=bL.parentNode){bF.push([bL,bM]);bD=bL;}if(bD&&bD===bE.ownerDocument){bF.push([bD.defaultView||bD.parentWindow||bf,bM]);}}for(bG=0;bG<bF.length&&!bz.isPropagationStopped();bG++){bL=bF[bG][0];bz.type=bF[bG][1];bI=(b._data(bL,"events")||{})[bz.type]&&b._data(bL,"handle");if(bI){bI.apply(bL,bH);}bI=bC&&bL[bC];if(bI&&b.acceptData(bL)&&bI.apply(bL,bH)===false){bz.preventDefault();}}bz.type=bK;if(!bN&&!bz.isDefaultPrevented()){if((!bJ._default||bJ._default.apply(bE.ownerDocument,bH)===false)&&!(bK==="click"&&b.nodeName(bE,"a"))&&b.acceptData(bE)){if(bC&&bE[bK]&&((bK!=="focus"&&bK!=="blur")||bz.target.offsetWidth!==0)&&!b.isWindow(bE)){bD=bE[bC];if(bD){bE[bC]=null;}b.event.triggered=bK;bE[bK]();b.event.triggered=P;if(bD){bE[bC]=bD;}}}}return bz.result;},dispatch:function(e){e=b.event.fix(e||bf.event);var bD=((b._data(this,"events")||{})[e.type]||[]),bE=bD.delegateCount,bK=[].slice.call(arguments,0),bC=!e.exclusive&&!e.namespace,bL=[],bG,bF,bO,bB,bJ,bI,bz,bH,bM,bA,bN;bK[0]=e;e.delegateTarget=this;if(bE&&!e.target.disabled&&!(e.button&&e.type==="click")){bB=b(this);bB.context=this.ownerDocument||this;for(bO=e.target;bO!=this;bO=bO.parentNode||this){bI={};bH=[];bB[0]=bO;for(bG=0;bG<bE;bG++){bM=bD[bG];bA=bM.selector;if(bI[bA]===P){bI[bA]=(bM.quick?k(bO,bM.quick):bB.is(bA));}if(bI[bA]){bH.push(bM);}}if(bH.length){bL.push({elem:bO,matches:bH});}}}if(bD.length>bE){bL.push({elem:this,matches:bD.slice(bE)});}for(bG=0;bG<bL.length&&!e.isPropagationStopped();bG++){bz=bL[bG];e.currentTarget=bz.elem;for(bF=0;bF<bz.matches.length&&!e.isImmediatePropagationStopped();bF++){bM=bz.matches[bF];if(bC||(!e.namespace&&!bM.namespace)||e.namespace_re&&e.namespace_re.test(bM.namespace)){e.data=bM.data;e.handleObj=bM;bJ=((b.event.special[bM.origType]||{}).handle||bM.handler).apply(bz.elem,bK);if(bJ!==P){e.result=bJ;if(bJ===false){e.preventDefault();e.stopPropagation();}}}}}return e.result;},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(bz,e){if(bz.which==null){bz.which=e.charCode!=null?e.charCode:e.keyCode;}return bz;}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(bB,bA){var bC,bD,e,bz=bA.button,bE=bA.fromElement;if(bB.pageX==null&&bA.clientX!=null){bC=bB.target.ownerDocument||az;bD=bC.documentElement;e=bC.body;bB.pageX=bA.clientX+(bD&&bD.scrollLeft||e&&e.scrollLeft||0)-(bD&&bD.clientLeft||e&&e.clientLeft||0);bB.pageY=bA.clientY+(bD&&bD.scrollTop||e&&e.scrollTop||0)-(bD&&bD.clientTop||e&&e.clientTop||0);}if(!bB.relatedTarget&&bE){bB.relatedTarget=bE===bB.target?bA.toElement:bE;}if(!bB.which&&bz!==P){bB.which=(bz&1?1:(bz&2?3:(bz&4?2:0)));}return bB;}},fix:function(bA){if(bA[b.expando]){return bA;}var bz,bD,e=bA,bB=b.event.fixHooks[bA.type]||{},bC=bB.props?this.props.concat(bB.props):this.props;bA=b.Event(e);for(bz=bC.length;bz;){bD=bC[--bz];bA[bD]=e[bD];}if(!bA.target){bA.target=e.srcElement||az;}if(bA.target.nodeType===3){bA.target=bA.target.parentNode;}if(bA.metaKey===P){bA.metaKey=bA.ctrlKey;}return bB.filter?bB.filter(bA,e):bA;},special:{ready:{setup:b.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(bA,bz,e){if(b.isWindow(this)){this.onbeforeunload=e;}},teardown:function(bz,e){if(this.onbeforeunload===e){this.onbeforeunload=null;}}}},simulate:function(bA,bC,bB,bz){var bD=b.extend(new b.Event(),bB,{type:bA,isSimulated:true,originalEvent:{}});if(bz){b.event.trigger(bD,null,bC);}else{b.event.dispatch.call(bC,bD);}if(bD.isDefaultPrevented()){bB.preventDefault();}}};b.event.handle=b.event.dispatch;b.removeEvent=az.removeEventListener?function(bz,e,bA){if(bz.removeEventListener){bz.removeEventListener(e,bA,false);}}:function(bz,e,bA){if(bz.detachEvent){bz.detachEvent("on"+e,bA);}};b.Event=function(bz,e){if(!(this instanceof b.Event)){return new b.Event(bz,e);}if(bz&&bz.type){this.originalEvent=bz;this.type=bz.type;this.isDefaultPrevented=(bz.defaultPrevented||bz.returnValue===false||bz.getPreventDefault&&bz.getPreventDefault())?j:bo;}else{this.type=bz;}if(e){b.extend(this,e);}this.timeStamp=bz&&bz.timeStamp||b.now();this[b.expando]=true;};function bo(){return false;}function j(){return true;}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=j;var bz=this.originalEvent;if(!bz){return;}if(bz.preventDefault){bz.preventDefault();}else{bz.returnValue=false;}},stopPropagation:function(){this.isPropagationStopped=j;var bz=this.originalEvent;if(!bz){return;}if(bz.stopPropagation){bz.stopPropagation();}bz.cancelBubble=true;},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=j;this.stopPropagation();},isDefaultPrevented:bo,isPropagationStopped:bo,isImmediatePropagationStopped:bo};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bz,e){b.event.special[bz]={delegateType:e,bindType:e,handle:function(bD){var bF=this,bE=bD.relatedTarget,bC=bD.handleObj,bA=bC.selector,bB;if(!bE||(bE!==bF&&!b.contains(bF,bE))){bD.type=bC.origType;bB=bC.handler.apply(this,arguments);bD.type=e;}return bB;}};});if(!b.support.submitBubbles){b.event.special.submit={setup:function(){if(b.nodeName(this,"form")){return false;}b.event.add(this,"click._submit keypress._submit",function(bB){var bA=bB.target,bz=b.nodeName(bA,"input")||b.nodeName(bA,"button")?bA.form:P;if(bz&&!bz._submit_attached){b.event.add(bz,"submit._submit",function(e){if(this.parentNode&&!e.isTrigger){b.event.simulate("submit",this.parentNode,e,true);}});bz._submit_attached=true;}});},teardown:function(){if(b.nodeName(this,"form")){return false;}b.event.remove(this,"._submit");}};}if(!b.support.changeBubbles){b.event.special.change={setup:function(){if(bh.test(this.nodeName)){if(this.type==="checkbox"||this.type==="radio"){b.event.add(this,"propertychange._change",function(e){if(e.originalEvent.propertyName==="checked"){this._just_changed=true;}});b.event.add(this,"click._change",function(e){if(this._just_changed&&!e.isTrigger){this._just_changed=false;b.event.simulate("change",this,e,true);}});}return false;}b.event.add(this,"beforeactivate._change",function(bA){var bz=bA.target;if(bh.test(bz.nodeName)&&!bz._change_attached){b.event.add(bz,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){b.event.simulate("change",this.parentNode,e,true);}});bz._change_attached=true;}});},handle:function(bz){var e=bz.target;if(this!==e||bz.isSimulated||bz.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bz.handleObj.handler.apply(this,arguments);}},teardown:function(){b.event.remove(this,"._change");return bh.test(this.nodeName);}};}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bB,e){var bz=0,bA=function(bC){b.event.simulate(e,bC.target,b.event.fix(bC),true);};b.event.special[e]={setup:function(){if(bz++===0){az.addEventListener(bB,bA,true);}},teardown:function(){if(--bz===0){az.removeEventListener(bB,bA,true);}}};});}b.fn.extend({on:function(bA,e,bD,bC,bz){var bE,bB;if(typeof bA==="object"){if(typeof e!=="string"){bD=e;e=P;}for(bB in bA){this.on(bB,e,bD,bA[bB],bz);}return this;}if(bD==null&&bC==null){bC=e;bD=e=P;}else{if(bC==null){if(typeof e==="string"){bC=bD;bD=P;}else{bC=bD;bD=e;e=P;}}}if(bC===false){bC=bo;}else{if(!bC){return this;}}if(bz===1){bE=bC;bC=function(bF){b().off(bF);return bE.apply(this,arguments);};bC.guid=bE.guid||(bE.guid=b.guid++);}return this.each(function(){b.event.add(this,bA,bC,bD,e);});},one:function(bz,e,bB,bA){return this.on.call(this,bz,e,bB,bA,1);},off:function(bA,e,bC){if(bA&&bA.preventDefault&&bA.handleObj){var bz=bA.handleObj;b(bA.delegateTarget).off(bz.namespace?bz.type+"."+bz.namespace:bz.type,bz.selector,bz.handler);return this;}if(typeof bA==="object"){for(var bB in bA){this.off(bB,e,bA[bB]);}return this;}if(e===false||typeof e==="function"){bC=e;e=P;}if(bC===false){bC=bo;}return this.each(function(){b.event.remove(this,bA,bC,e);});},bind:function(e,bA,bz){return this.on(e,null,bA,bz);},unbind:function(e,bz){return this.off(e,null,bz);},live:function(e,bA,bz){b(this.context).on(e,this.selector,bA,bz);return this;},die:function(e,bz){b(this.context).off(e,this.selector||"**",bz);return this;},delegate:function(e,bz,bB,bA){return this.on(bz,e,bB,bA);},undelegate:function(e,bz,bA){return arguments.length==1?this.off(e,"**"):this.off(bz,e,bA);},trigger:function(e,bz){return this.each(function(){b.event.trigger(e,bz,this);});},triggerHandler:function(e,bz){if(this[0]){return b.event.trigger(e,bz,this[0],true);}},toggle:function(bB){var bz=arguments,e=bB.guid||b.guid++,bA=0,bC=function(bD){var bE=(b._data(this,"lastToggle"+bB.guid)||0)%bA;b._data(this,"lastToggle"+bB.guid,bE+1);bD.preventDefault();return bz[bE].apply(this,arguments)||false;};bC.guid=e;while(bA<bz.length){bz[bA++].guid=e;}return this.click(bC);},hover:function(e,bz){return this.mouseenter(e).mouseleave(bz||e);}});b.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu").split(" "),function(bz,e){b.fn[e]=function(bB,bA){if(bA==null){bA=bB;bB=null;}return arguments.length>0?this.on(e,null,bB,bA):this.trigger(e);};if(b.attrFn){b.attrFn[e]=true;}if(aS.test(e)){b.event.fixHooks[e]=b.event.keyHooks;}if(bj.test(e)){b.event.fixHooks[e]=b.event.mouseHooks;}});
/*
     * Sizzle CSS Selector Engine
     *  Copyright 2011, The Dojo Foundation
     *  Released under the MIT, BSD, and GPL Licenses.
     *  More information: http://sizzlejs.com/
     */
(function(){var bL=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bG="sizcache"+(Math.random()+"").replace(".",""),bM=0,bP=Object.prototype.toString,bF=false,bE=true,bO=/\\/g,bS=/\r\n/g,bU=/\W/;[0,0].sort(function(){bE=false;return 0;});var bC=function(bZ,e,b2,b3){b2=b2||[];e=e||az;var b5=e;if(e.nodeType!==1&&e.nodeType!==9){return[];}if(!bZ||typeof bZ!=="string"){return b2;}var bW,b7,ca,bV,b6,b9,b8,b1,bY=true,bX=bC.isXML(e),b0=[],b4=bZ;do{bL.exec("");bW=bL.exec(b4);if(bW){b4=bW[3];b0.push(bW[1]);if(bW[2]){bV=bW[3];break;}}}while(bW);if(b0.length>1&&bH.exec(bZ)){if(b0.length===2&&bI.relative[b0[0]]){b7=bQ(b0[0]+b0[1],e,b3);}else{b7=bI.relative[b0[0]]?[e]:bC(b0.shift(),e);while(b0.length){bZ=b0.shift();if(bI.relative[bZ]){bZ+=b0.shift();}b7=bQ(bZ,b7,b3);}}}else{if(!b3&&b0.length>1&&e.nodeType===9&&!bX&&bI.match.ID.test(b0[0])&&!bI.match.ID.test(b0[b0.length-1])){b6=bC.find(b0.shift(),e,bX);e=b6.expr?bC.filter(b6.expr,b6.set)[0]:b6.set[0];}if(e){b6=b3?{expr:b0.pop(),set:bJ(b3)}:bC.find(b0.pop(),b0.length===1&&(b0[0]==="~"||b0[0]==="+")&&e.parentNode?e.parentNode:e,bX);b7=b6.expr?bC.filter(b6.expr,b6.set):b6.set;if(b0.length>0){ca=bJ(b7);}else{bY=false;}while(b0.length){b9=b0.pop();b8=b9;if(!bI.relative[b9]){b9="";}else{b8=b0.pop();}if(b8==null){b8=e;}bI.relative[b9](ca,b8,bX);}}else{ca=b0=[];}}if(!ca){ca=b7;}if(!ca){bC.error(b9||bZ);}if(bP.call(ca)==="[object Array]"){if(!bY){b2.push.apply(b2,ca);}else{if(e&&e.nodeType===1){for(b1=0;ca[b1]!=null;b1++){if(ca[b1]&&(ca[b1]===true||ca[b1].nodeType===1&&bC.contains(e,ca[b1]))){b2.push(b7[b1]);}}}else{for(b1=0;ca[b1]!=null;b1++){if(ca[b1]&&ca[b1].nodeType===1){b2.push(b7[b1]);}}}}}else{bJ(ca,b2);}if(bV){bC(bV,b5,b2,b3);bC.uniqueSort(b2);}return b2;};bC.uniqueSort=function(bV){if(bN){bF=bE;bV.sort(bN);if(bF){for(var e=1;e<bV.length;e++){if(bV[e]===bV[e-1]){bV.splice(e--,1);}}}}return bV;};bC.matches=function(e,bV){return bC(e,null,null,bV);};bC.matchesSelector=function(e,bV){return bC(bV,null,null,[e]).length>0;};bC.find=function(b1,e,b2){var b0,bW,bY,bX,bZ,bV;if(!b1){return[];}for(bW=0,bY=bI.order.length;bW<bY;bW++){bZ=bI.order[bW];if((bX=bI.leftMatch[bZ].exec(b1))){bV=bX[1];bX.splice(1,1);if(bV.substr(bV.length-1)!=="\\"){bX[1]=(bX[1]||"").replace(bO,"");b0=bI.find[bZ](bX,e,b2);if(b0!=null){b1=b1.replace(bI.match[bZ],"");break;}}}}if(!b0){b0=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[];}return{set:b0,expr:b1};};bC.filter=function(b5,b4,b8,bY){var b0,e,b3,ca,b7,bV,bX,bZ,b6,bW=b5,b9=[],b2=b4,b1=b4&&b4[0]&&bC.isXML(b4[0]);while(b5&&b4.length){for(b3 in bI.filter){if((b0=bI.leftMatch[b3].exec(b5))!=null&&b0[2]){bV=bI.filter[b3];bX=b0[1];e=false;b0.splice(1,1);if(bX.substr(bX.length-1)==="\\"){continue;}if(b2===b9){b9=[];}if(bI.preFilter[b3]){b0=bI.preFilter[b3](b0,b2,b8,b9,bY,b1);if(!b0){e=ca=true;}else{if(b0===true){continue;}}}if(b0){for(bZ=0;(b7=b2[bZ])!=null;bZ++){if(b7){ca=bV(b7,b0,bZ,b2);b6=bY^ca;if(b8&&ca!=null){if(b6){e=true;}else{b2[bZ]=false;}}else{if(b6){b9.push(b7);e=true;}}}}}if(ca!==P){if(!b8){b2=b9;}b5=b5.replace(bI.match[b3],"");if(!e){return[];}break;}}}if(b5===bW){if(e==null){bC.error(b5);}else{break;}}bW=b5;}return b2;};bC.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e);};var bA=bC.getText=function(bY){var bW,bX,e=bY.nodeType,bV="";if(e){if(e===1||e===9){if(typeof bY.textContent==="string"){return bY.textContent;}else{if(typeof bY.innerText==="string"){return bY.innerText.replace(bS,"");}else{for(bY=bY.firstChild;bY;bY=bY.nextSibling){bV+=bA(bY);}}}}else{if(e===3||e===4){return bY.nodeValue;}}}else{for(bW=0;(bX=bY[bW]);bW++){if(bX.nodeType!==8){bV+=bA(bX);}}}return bV;};var bI=bC.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(b0,bV){var bX=typeof bV==="string",bZ=bX&&!bU.test(bV),b1=bX&&!bZ;if(bZ){bV=bV.toLowerCase();}for(var bW=0,e=b0.length,bY;bW<e;bW++){if((bY=b0[bW])){while((bY=bY.previousSibling)&&bY.nodeType!==1){}b0[bW]=b1||bY&&bY.nodeName.toLowerCase()===bV?bY||false:bY===bV;}}if(b1){bC.filter(bV,b0,true);}},">":function(b0,bV){var bZ,bY=typeof bV==="string",bW=0,e=b0.length;if(bY&&!bU.test(bV)){bV=bV.toLowerCase();for(;bW<e;bW++){bZ=b0[bW];if(bZ){var bX=bZ.parentNode;b0[bW]=bX.nodeName.toLowerCase()===bV?bX:false;}}}else{for(;bW<e;bW++){bZ=b0[bW];if(bZ){b0[bW]=bY?bZ.parentNode:bZ.parentNode===bV;}}if(bY){bC.filter(bV,b0,true);}}},"":function(bX,bV,bZ){var bY,bW=bM++,e=bR;if(typeof bV==="string"&&!bU.test(bV)){bV=bV.toLowerCase();bY=bV;e=bz;}e("parentNode",bV,bW,bX,bY,bZ);},"~":function(bX,bV,bZ){var bY,bW=bM++,e=bR;if(typeof bV==="string"&&!bU.test(bV)){bV=bV.toLowerCase();bY=bV;e=bz;}e("previousSibling",bV,bW,bX,bY,bZ);}},find:{ID:function(bV,bW,bX){if(typeof bW.getElementById!=="undefined"&&!bX){var e=bW.getElementById(bV[1]);return e&&e.parentNode?[e]:[];}},NAME:function(bW,bZ){if(typeof bZ.getElementsByName!=="undefined"){var bV=[],bY=bZ.getElementsByName(bW[1]);for(var bX=0,e=bY.length;bX<e;bX++){if(bY[bX].getAttribute("name")===bW[1]){bV.push(bY[bX]);}}return bV.length===0?null:bV;}},TAG:function(e,bV){if(typeof bV.getElementsByTagName!=="undefined"){return bV.getElementsByTagName(e[1]);}}},preFilter:{CLASS:function(bX,bV,bW,e,b0,b1){bX=" "+bX[1].replace(bO,"")+" ";if(b1){return bX;}for(var bY=0,bZ;(bZ=bV[bY])!=null;bY++){if(bZ){if(b0^(bZ.className&&(" "+bZ.className+" ").replace(/[\t\n\r]/g," ").indexOf(bX)>=0)){if(!bW){e.push(bZ);}}else{if(bW){bV[bY]=false;}}}}return false;},ID:function(e){return e[1].replace(bO,"");},TAG:function(bV,e){return bV[1].replace(bO,"").toLowerCase();},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bC.error(e[0]);}e[2]=e[2].replace(/^\+|\s*/g,"");var bV=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bV[1]+(bV[2]||1))-0;e[3]=bV[3]-0;}else{if(e[2]){bC.error(e[0]);}}e[0]=bM++;return e;},ATTR:function(bY,bV,bW,e,bZ,b0){var bX=bY[1]=bY[1].replace(bO,"");if(!b0&&bI.attrMap[bX]){bY[1]=bI.attrMap[bX];}bY[4]=(bY[4]||bY[5]||"").replace(bO,"");if(bY[2]==="~="){bY[4]=" "+bY[4]+" ";}return bY;},PSEUDO:function(bY,bV,bW,e,bZ){if(bY[1]==="not"){if((bL.exec(bY[3])||"").length>1||/^\w/.test(bY[3])){bY[3]=bC(bY[3],null,null,bV);}else{var bX=bC.filter(bY[3],bV,bW,true^bZ);if(!bW){e.push.apply(e,bX);}return false;}}else{if(bI.match.POS.test(bY[0])||bI.match.CHILD.test(bY[0])){return true;}}return bY;},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(bW,bV,e){return !!bC(e[3],bW).length;},header:function(e){return(/h\d/i).test(e.nodeName);},text:function(bW){var e=bW.getAttribute("type"),bV=bW.type;return bW.nodeName.toLowerCase()==="input"&&"text"===bV&&(e===bV||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(bV){var e=bV.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bV.type;},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type;},reset:function(bV){var e=bV.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bV.type;},button:function(bV){var e=bV.nodeName.toLowerCase();return e==="input"&&"button"===bV.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(bV,e){return e===0;},last:function(bW,bV,e,bX){return bV===bX.length-1;},even:function(bV,e){return e%2===0;},odd:function(bV,e){return e%2===1;},lt:function(bW,bV,e){return bV<e[3]-0;},gt:function(bW,bV,e){return bV>e[3]-0;},nth:function(bW,bV,e){return e[3]-0===bV;},eq:function(bW,bV,e){return e[3]-0===bV;}},filter:{PSEUDO:function(bW,b1,b0,b2){var e=b1[1],bV=bI.filters[e];if(bV){return bV(bW,b0,b1,b2);}else{if(e==="contains"){return(bW.textContent||bW.innerText||bA([bW])||"").indexOf(b1[3])>=0;}else{if(e==="not"){var bX=b1[3];for(var bZ=0,bY=bX.length;bZ<bY;bZ++){if(bX[bZ]===bW){return false;}}return true;}else{bC.error(e);}}}},CHILD:function(bW,bY){var bX,b4,b0,b3,e,bZ,b2,b1=bY[1],bV=bW;switch(b1){case"only":case"first":while((bV=bV.previousSibling)){if(bV.nodeType===1){return false;}}if(b1==="first"){return true;}bV=bW;case"last":while((bV=bV.nextSibling)){if(bV.nodeType===1){return false;}}return true;case"nth":bX=bY[2];b4=bY[3];if(bX===1&&b4===0){return true;}b0=bY[0];b3=bW.parentNode;if(b3&&(b3[bG]!==b0||!bW.nodeIndex)){bZ=0;for(bV=b3.firstChild;bV;bV=bV.nextSibling){if(bV.nodeType===1){bV.nodeIndex=++bZ;}}b3[bG]=b0;}b2=bW.nodeIndex-b4;if(bX===0){return b2===0;}else{return(b2%bX===0&&b2/bX>=0);}}},ID:function(bV,e){return bV.nodeType===1&&bV.getAttribute("id")===e;},TAG:function(bV,e){return(e==="*"&&bV.nodeType===1)||!!bV.nodeName&&bV.nodeName.toLowerCase()===e;},CLASS:function(bV,e){return(" "+(bV.className||bV.getAttribute("class"))+" ").indexOf(e)>-1;},ATTR:function(bZ,bX){var bW=bX[1],e=bC.attr?bC.attr(bZ,bW):bI.attrHandle[bW]?bI.attrHandle[bW](bZ):bZ[bW]!=null?bZ[bW]:bZ.getAttribute(bW),b0=e+"",bY=bX[2],bV=bX[4];return e==null?bY==="!=":!bY&&bC.attr?e!=null:bY==="="?b0===bV:bY==="*="?b0.indexOf(bV)>=0:bY==="~="?(" "+b0+" ").indexOf(bV)>=0:!bV?b0&&e!==false:bY==="!="?b0!==bV:bY==="^="?b0.indexOf(bV)===0:bY==="$="?b0.substr(b0.length-bV.length)===bV:bY==="|="?b0===bV||b0.substr(0,bV.length+1)===bV+"-":false;},POS:function(bY,bV,bW,bZ){var e=bV[2],bX=bI.setFilters[e];if(bX){return bX(bY,bW,bV,bZ);}}}};var bH=bI.match.POS,bB=function(bV,e){return"\\"+(e-0+1);};for(var bD in bI.match){bI.match[bD]=new RegExp(bI.match[bD].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bI.leftMatch[bD]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bI.match[bD].source.replace(/\\(\d+)/g,bB));}var bJ=function(bV,e){bV=Array.prototype.slice.call(bV,0);if(e){e.push.apply(e,bV);return e;}return bV;};try{Array.prototype.slice.call(az.documentElement.childNodes,0)[0].nodeType;}catch(bT){bJ=function(bY,bX){var bW=0,bV=bX||[];if(bP.call(bY)==="[object Array]"){Array.prototype.push.apply(bV,bY);}else{if(typeof bY.length==="number"){for(var e=bY.length;bW<e;bW++){bV.push(bY[bW]);}}else{for(;bY[bW];bW++){bV.push(bY[bW]);}}}return bV;};}var bN,bK;if(az.documentElement.compareDocumentPosition){bN=function(bV,e){if(bV===e){bF=true;return 0;}if(!bV.compareDocumentPosition||!e.compareDocumentPosition){return bV.compareDocumentPosition?-1:1;}return bV.compareDocumentPosition(e)&4?-1:1;};}else{bN=function(b2,b1){if(b2===b1){bF=true;return 0;}else{if(b2.sourceIndex&&b1.sourceIndex){return b2.sourceIndex-b1.sourceIndex;}}var bZ,bV,bW=[],e=[],bY=b2.parentNode,b0=b1.parentNode,b3=bY;if(bY===b0){return bK(b2,b1);}else{if(!bY){return -1;}else{if(!b0){return 1;}}}while(b3){bW.unshift(b3);b3=b3.parentNode;}b3=b0;while(b3){e.unshift(b3);b3=b3.parentNode;}bZ=bW.length;bV=e.length;for(var bX=0;bX<bZ&&bX<bV;bX++){if(bW[bX]!==e[bX]){return bK(bW[bX],e[bX]);}}return bX===bZ?bK(b2,e[bX],-1):bK(bW[bX],b1,1);};bK=function(bV,e,bW){if(bV===e){return bW;}var bX=bV.nextSibling;while(bX){if(bX===e){return -1;}bX=bX.nextSibling;}return 1;};}(function(){var bV=az.createElement("div"),bW="script"+(new Date()).getTime(),e=az.documentElement;bV.innerHTML="<a name='"+bW+"'/>";e.insertBefore(bV,e.firstChild);if(az.getElementById(bW)){bI.find.ID=function(bY,bZ,b0){if(typeof bZ.getElementById!=="undefined"&&!b0){var bX=bZ.getElementById(bY[1]);return bX?bX.id===bY[1]||typeof bX.getAttributeNode!=="undefined"&&bX.getAttributeNode("id").nodeValue===bY[1]?[bX]:P:[];}};bI.filter.ID=function(bZ,bX){var bY=typeof bZ.getAttributeNode!=="undefined"&&bZ.getAttributeNode("id");return bZ.nodeType===1&&bY&&bY.nodeValue===bX;};}e.removeChild(bV);e=bV=null;})();(function(){var e=az.createElement("div");e.appendChild(az.createComment(""));if(e.getElementsByTagName("*").length>0){bI.find.TAG=function(bV,bZ){var bY=bZ.getElementsByTagName(bV[1]);if(bV[1]==="*"){var bX=[];for(var bW=0;bY[bW];bW++){if(bY[bW].nodeType===1){bX.push(bY[bW]);}}bY=bX;}return bY;};}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bI.attrHandle.href=function(bV){return bV.getAttribute("href",2);};}e=null;})();if(az.querySelectorAll){(function(){var e=bC,bX=az.createElement("div"),bW="__sizzle__";bX.innerHTML="<p class='TEST'></p>";if(bX.querySelectorAll&&bX.querySelectorAll(".TEST").length===0){return;}bC=function(b8,bZ,b3,b7){bZ=bZ||az;if(!b7&&!bC.isXML(bZ)){var b6=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b8);if(b6&&(bZ.nodeType===1||bZ.nodeType===9)){if(b6[1]){return bJ(bZ.getElementsByTagName(b8),b3);}else{if(b6[2]&&bI.find.CLASS&&bZ.getElementsByClassName){return bJ(bZ.getElementsByClassName(b6[2]),b3);}}}if(bZ.nodeType===9){if(b8==="body"&&bZ.body){return bJ([bZ.body],b3);}else{if(b6&&b6[3]){var b2=bZ.getElementById(b6[3]);if(b2&&b2.parentNode){if(b2.id===b6[3]){return bJ([b2],b3);}}else{return bJ([],b3);}}}try{return bJ(bZ.querySelectorAll(b8),b3);}catch(b4){}}else{if(bZ.nodeType===1&&bZ.nodeName.toLowerCase()!=="object"){var b0=bZ,b1=bZ.getAttribute("id"),bY=b1||bW,ca=bZ.parentNode,b9=/^\s*[+~]/.test(b8);if(!b1){bZ.setAttribute("id",bY);}else{bY=bY.replace(/'/g,"\\$&");}if(b9&&ca){bZ=bZ.parentNode;}try{if(!b9||ca){return bJ(bZ.querySelectorAll("[id='"+bY+"'] "+b8),b3);}}catch(b5){}finally{if(!b1){b0.removeAttribute("id");}}}}}return e(b8,bZ,b3,b7);};for(var bV in e){bC[bV]=e[bV];}bX=null;})();}(function(){var e=az.documentElement,bW=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bW){var bY=!bW.call(az.createElement("div"),"div"),bV=false;try{bW.call(az.documentElement,"[test!='']:sizzle");}catch(bX){bV=true;}bC.matchesSelector=function(b0,b2){b2=b2.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bC.isXML(b0)){try{if(bV||!bI.match.PSEUDO.test(b2)&&!/!=/.test(b2)){var bZ=bW.call(b0,b2);if(bZ||!bY||b0.document&&b0.document.nodeType!==11){return bZ;}}}catch(b1){}}return bC(b2,null,null,[b0]).length>0;};}})();(function(){var e=az.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;}bI.order.splice(1,0,"CLASS");bI.find.CLASS=function(bV,bW,bX){if(typeof bW.getElementsByClassName!=="undefined"&&!bX){return bW.getElementsByClassName(bV[1]);}};e=null;})();function bz(bV,b0,bZ,b3,b1,b2){for(var bX=0,bW=b3.length;bX<bW;bX++){var e=b3[bX];if(e){var bY=false;e=e[bV];while(e){if(e[bG]===bZ){bY=b3[e.sizset];break;}if(e.nodeType===1&&!b2){e[bG]=bZ;e.sizset=bX;}if(e.nodeName.toLowerCase()===b0){bY=e;break;}e=e[bV];}b3[bX]=bY;}}}function bR(bV,b0,bZ,b3,b1,b2){for(var bX=0,bW=b3.length;bX<bW;bX++){var e=b3[bX];if(e){var bY=false;e=e[bV];while(e){if(e[bG]===bZ){bY=b3[e.sizset];break;}if(e.nodeType===1){if(!b2){e[bG]=bZ;e.sizset=bX;}if(typeof b0!=="string"){if(e===b0){bY=true;break;}}else{if(bC.filter(b0,[e]).length>0){bY=e;break;}}}e=e[bV];}b3[bX]=bY;}}}if(az.documentElement.contains){bC.contains=function(bV,e){return bV!==e&&(bV.contains?bV.contains(e):true);};}else{if(az.documentElement.compareDocumentPosition){bC.contains=function(bV,e){return !!(bV.compareDocumentPosition(e)&16);};}else{bC.contains=function(){return false;};}}bC.isXML=function(e){var bV=(e?e.ownerDocument||e:0).documentElement;return bV?bV.nodeName!=="HTML":false;};var bQ=function(bW,e,b0){var bZ,b1=[],bY="",b2=e.nodeType?[e]:e;while((bZ=bI.match.PSEUDO.exec(bW))){bY+=bZ[0];bW=bW.replace(bI.match.PSEUDO,"");}bW=bI.relative[bW]?bW+"*":bW;for(var bX=0,bV=b2.length;bX<bV;bX++){bC(bW,b2[bX],b1,b0);}return bC.filter(bY,b1);};bC.attr=b.attr;bC.selectors.attrMap={};b.find=bC;b.expr=bC.selectors;b.expr[":"]=b.expr.filters;b.unique=bC.uniqueSort;b.text=bC.getText;b.isXMLDoc=bC.isXML;b.contains=bC.contains;})();var af=/Until$/,av=/^(?:parents|prevUntil|prevAll)/,bd=/,/,bt=/^.[^:#\[\.,]*$/,T=Array.prototype.slice,L=b.expr.match.POS,aC={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bA=this,bC,bz;if(typeof e!=="string"){return b(e).filter(function(){for(bC=0,bz=bA.length;bC<bz;bC++){if(b.contains(bA[bC],this)){return true;}}});}var bB=this.pushStack("","find",e),bE,bF,bD;for(bC=0,bz=this.length;bC<bz;bC++){bE=bB.length;b.find(e,this[bC],bB);if(bC>0){for(bF=bE;bF<bB.length;bF++){for(bD=0;bD<bE;bD++){if(bB[bD]===bB[bF]){bB.splice(bF--,1);break;}}}}}return bB;},has:function(bz){var e=b(bz);return this.filter(function(){for(var bB=0,bA=e.length;bB<bA;bB++){if(b.contains(this,e[bB])){return true;}}});},not:function(e){return this.pushStack(aK(this,e,false),"not",e);},filter:function(e){return this.pushStack(aK(this,e,true),"filter",e);},is:function(e){return !!e&&(typeof e==="string"?L.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>0:this.filter(e).length>0);},closest:function(bC,bB){var bz=[],bA,e,bD=this[0];if(b.isArray(bC)){var bF=1;while(bD&&bD.ownerDocument&&bD!==bB){for(bA=0;bA<bC.length;bA++){if(b(bD).is(bC[bA])){bz.push({selector:bC[bA],elem:bD,level:bF});}}bD=bD.parentNode;bF++;}return bz;}var bE=L.test(bC)||typeof bC!=="string"?b(bC,bB||this.context):0;for(bA=0,e=this.length;bA<e;bA++){bD=this[bA];while(bD){if(bE?bE.index(bD)>-1:b.find.matchesSelector(bD,bC)){bz.push(bD);break;}else{bD=bD.parentNode;if(!bD||!bD.ownerDocument||bD===bB||bD.nodeType===11){break;}}}}bz=bz.length>1?b.unique(bz):bz;return this.pushStack(bz,"closest",bC);},index:function(e){if(!e){return(this[0]&&this[0].parentNode)?this.prevAll().length:-1;}if(typeof e==="string"){return b.inArray(this[0],b(e));}return b.inArray(e.jquery?e[0]:e,this);},add:function(e,bz){var bB=typeof e==="string"?b(e,bz):b.makeArray(e&&e.nodeType?[e]:e),bA=b.merge(this.get(),bB);return this.pushStack(G(bB[0])||G(bA[0])?bA:b.unique(bA));},andSelf:function(){return this.add(this.prevObject);}});function G(e){return !e||!e.parentNode||e.parentNode.nodeType===11;}b.each({parent:function(bz){var e=bz.parentNode;return e&&e.nodeType!==11?e:null;},parents:function(e){return b.dir(e,"parentNode");},parentsUntil:function(bz,e,bA){return b.dir(bz,"parentNode",bA);},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(bz,e,bA){return b.dir(bz,"nextSibling",bA);},prevUntil:function(bz,e,bA){return b.dir(bz,"previousSibling",bA);},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,bz){b.fn[e]=function(bC,bA){var bB=b.map(this,bz,bC);if(!af.test(e)){bA=bC;}if(bA&&typeof bA==="string"){bB=b.filter(bA,bB);}bB=this.length>1&&!aC[e]?b.unique(bB):bB;if((this.length>1||bd.test(bA))&&av.test(e)){bB=bB.reverse();}return this.pushStack(bB,e,T.call(arguments).join(","));};});b.extend({filter:function(bA,e,bz){if(bz){bA=":not("+bA+")";}return e.length===1?b.find.matchesSelector(e[0],bA)?[e[0]]:[]:b.find.matches(bA,e);},dir:function(bA,bz,bC){var e=[],bB=bA[bz];while(bB&&bB.nodeType!==9&&(bC===P||bB.nodeType!==1||!b(bB).is(bC))){if(bB.nodeType===1){e.push(bB);}bB=bB[bz];}return e;},nth:function(bC,e,bA,bB){e=e||1;var bz=0;for(;bC;bC=bC[bA]){if(bC.nodeType===1&&++bz===e){break;}}return bC;},sibling:function(bA,bz){var e=[];for(;bA;bA=bA.nextSibling){if(bA.nodeType===1&&bA!==bz){e.push(bA);}}return e;}});function aK(bB,bA,e){bA=bA||0;if(b.isFunction(bA)){return b.grep(bB,function(bD,bC){var bE=!!bA.call(bD,bC,bD);return bE===e;});}else{if(bA.nodeType){return b.grep(bB,function(bD,bC){return(bD===bA)===e;});}else{if(typeof bA==="string"){var bz=b.grep(bB,function(bC){return bC.nodeType===1;});if(bt.test(bA)){return b.filter(bA,bz,!e);}else{bA=b.filter(bA,bz);}}}}return b.grep(bB,function(bD,bC){return(b.inArray(bD,bA)>=0)===e;});}function a(e){var bA=aV.split("|"),bz=e.createDocumentFragment();if(bz.createElement){while(bA.length){bz.createElement(bA.pop());}}return bz;}var aV="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",ak=/ jQuery\d+="(?:\d+|null)"/g,aw=/^\s+/,V=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,A=/<tbody/i,aa=/<|&#?\w+;/,ai=/<(?:script|style)/i,S=/<(?:script|object|embed|option|style)/i,al=new RegExp("<(?:"+aV+")","i"),p=/checked\s*(?:[^=]|=\s*.checked.)/i,bq=/\/(java|ecma)script/i,aR=/^\s*<!(?:\[CDATA\[|\-\-)/,aB={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,"",""]},ag=a(az);aB.optgroup=aB.option;aB.tbody=aB.tfoot=aB.colgroup=aB.caption=aB.thead;aB.th=aB.td;if(!b.support.htmlSerialize){aB._default=[1,"div<div>","</div>"];}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bA){var bz=b(this);bz.text(e.call(this,bA,bz.text()));});}if(typeof e!=="object"&&e!==P){return this.empty().append((this[0]&&this[0].ownerDocument||az).createTextNode(e));}return b.text(this);},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bA){b(this).wrapAll(e.call(this,bA));});}if(this[0]){var bz=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bz.insertBefore(this[0]);}bz.map(function(){var bA=this;while(bA.firstChild&&bA.firstChild.nodeType===1){bA=bA.firstChild;}return bA;}).append(this);}return this;},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bz){b(this).wrapInner(e.call(this,bz));});}return this.each(function(){var bz=b(this),bA=bz.contents();if(bA.length){bA.wrapAll(e);}else{bz.append(e);}});},wrap:function(e){var bz=b.isFunction(e);return this.each(function(bA){b(this).wrapAll(bz?e.call(this,bA):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(bz){this.parentNode.insertBefore(bz,this);});}else{if(arguments.length){var e=b.clean(arguments);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(bz){this.parentNode.insertBefore(bz,this.nextSibling);});}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b.clean(arguments));return e;}}},remove:function(e,bB){for(var bz=0,bA;(bA=this[bz])!=null;bz++){if(!e||b.filter(e,[bA]).length){if(!bB&&bA.nodeType===1){b.cleanData(bA.getElementsByTagName("*"));b.cleanData([bA]);}if(bA.parentNode){bA.parentNode.removeChild(bA);}}}return this;},empty:function(){for(var e=0,bz;(bz=this[e])!=null;e++){if(bz.nodeType===1){b.cleanData(bz.getElementsByTagName("*"));}while(bz.firstChild){bz.removeChild(bz.firstChild);}}return this;},clone:function(bz,e){bz=bz==null?false:bz;e=e==null?bz:e;return this.map(function(){return b.clone(this,bz,e);});},html:function(bB){if(bB===P){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ak,""):null;}else{if(typeof bB==="string"&&!ai.test(bB)&&(b.support.leadingWhitespace||!aw.test(bB))&&!aB[(d.exec(bB)||["",""])[1].toLowerCase()]){bB=bB.replace(V,"<$1></$2>");try{for(var bA=0,bz=this.length;bA<bz;bA++){if(this[bA].nodeType===1){b.cleanData(this[bA].getElementsByTagName("*"));this[bA].innerHTML=bB;}}}catch(bC){this.empty().append(bB);}}else{if(b.isFunction(bB)){this.each(function(bD){var e=b(this);e.html(bB.call(this,bD,e.html()));});}else{this.empty().append(bB);}}}return this;},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bB){var bA=b(this),bz=bA.html();bA.replaceWith(e.call(this,bB,bz));});}if(typeof e!=="string"){e=b(e).detach();}return this.each(function(){var bA=this.nextSibling,bz=this.parentNode;b(this).remove();if(bA){b(bA).before(e);}else{b(bz).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(bF,bJ,bI){var bB,bC,bE,bH,bG=bF[0],bz=[];if(!b.support.checkClone&&arguments.length===3&&typeof bG==="string"&&p.test(bG)){return this.each(function(){b(this).domManip(bF,bJ,bI,true);});}if(b.isFunction(bG)){return this.each(function(bL){var bK=b(this);bF[0]=bG.call(this,bL,bJ?bK.html():P);bK.domManip(bF,bJ,bI);});}if(this[0]){bH=bG&&bG.parentNode;if(b.support.parentNode&&bH&&bH.nodeType===11&&bH.childNodes.length===this.length){bB={fragment:bH};}else{bB=b.buildFragment(bF,this,bz);}bE=bB.fragment;if(bE.childNodes.length===1){bC=bE=bE.firstChild;}else{bC=bE.firstChild;}if(bC){bJ=bJ&&b.nodeName(bC,"tr");for(var bA=0,e=this.length,bD=e-1;bA<e;bA++){bI.call(bJ?be(this[bA],bC):this[bA],bB.cacheable||(e>1&&bA<bD)?b.clone(bE,true,true):bE);}}if(bz.length){b.each(bz,bs);}}return this;}});function be(e,bz){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e;}function x(bF,bz){if(bz.nodeType!==1||!b.hasData(bF)){return;}var bC,bB,e,bE=b._data(bF),bD=b._data(bz,bE),bA=bE.events;if(bA){delete bD.handle;bD.events={};for(bC in bA){for(bB=0,e=bA[bC].length;bB<e;bB++){b.event.add(bz,bC+(bA[bC][bB].namespace?".":"")+bA[bC][bB].namespace,bA[bC][bB],bA[bC][bB].data);}}}if(bD.data){bD.data=b.extend({},bD.data);}}function am(bz,e){var bA;if(e.nodeType!==1){return;}if(e.clearAttributes){e.clearAttributes();}if(e.mergeAttributes){e.mergeAttributes(bz);}bA=e.nodeName.toLowerCase();if(bA==="object"){e.outerHTML=bz.outerHTML;}else{if(bA==="input"&&(bz.type==="checkbox"||bz.type==="radio")){if(bz.checked){e.defaultChecked=e.checked=bz.checked;}if(e.value!==bz.value){e.value=bz.value;}}else{if(bA==="option"){e.selected=bz.defaultSelected;}else{if(bA==="input"||bA==="textarea"){e.defaultValue=bz.defaultValue;}}}}e.removeAttribute(b.expando);}b.buildFragment=function(bD,bB,bz){var bC,e,bA,bE,bF=bD[0];if(bB&&bB[0]){bE=bB[0].ownerDocument||bB[0];}if(!bE.createDocumentFragment){bE=az;}if(bD.length===1&&typeof bF==="string"&&bF.length<512&&bE===az&&bF.charAt(0)==="<"&&!S.test(bF)&&(b.support.checkClone||!p.test(bF))&&(b.support.html5Clone||!al.test(bF))){e=true;bA=b.fragments[bF];if(bA&&bA!==1){bC=bA;}}if(!bC){bC=bE.createDocumentFragment();b.clean(bD,bE,bC,bz);}if(e){b.fragments[bF]=bA?bC:1;}return{fragment:bC,cacheable:e};};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bz){b.fn[e]=function(bA){var bD=[],bG=b(bA),bF=this.length===1&&this[0].parentNode;if(bF&&bF.nodeType===11&&bF.childNodes.length===1&&bG.length===1){bG[bz](this[0]);return this;}else{for(var bE=0,bB=bG.length;bE<bB;bE++){var bC=(bE>0?this.clone(true):this).get();b(bG[bE])[bz](bC);bD=bD.concat(bC);}return this.pushStack(bD,e,bG.selector);}};});function bk(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*");}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*");}else{return[];}}}function aD(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked;}}function I(e){var bz=(e.nodeName||"").toLowerCase();if(bz==="input"){aD(e);}else{if(bz!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),aD);}}}function ap(e){var bz=az.createElement("div");ag.appendChild(bz);bz.innerHTML=e.outerHTML;return bz.firstChild;}b.extend({clone:function(bC,bE,bA){var e,bz,bB,bD=b.support.html5Clone||!al.test("<"+bC.nodeName)?bC.cloneNode(true):ap(bC);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bC.nodeType===1||bC.nodeType===11)&&!b.isXMLDoc(bC)){am(bC,bD);e=bk(bC);bz=bk(bD);for(bB=0;e[bB];++bB){if(bz[bB]){am(e[bB],bz[bB]);}}}if(bE){x(bC,bD);if(bA){e=bk(bC);bz=bk(bD);for(bB=0;e[bB];++bB){x(e[bB],bz[bB]);}}}e=bz=null;return bD;},clean:function(bA,bC,bL,bE){var bJ;bC=bC||az;if(typeof bC.createElement==="undefined"){bC=bC.ownerDocument||bC[0]&&bC[0].ownerDocument||az;}var bM=[],bF;for(var bI=0,bD;(bD=bA[bI])!=null;bI++){if(typeof bD==="number"){bD+="";}if(!bD){continue;}if(typeof bD==="string"){if(!aa.test(bD)){bD=bC.createTextNode(bD);}else{bD=bD.replace(V,"<$1></$2>");var bO=(d.exec(bD)||["",""])[1].toLowerCase(),bB=aB[bO]||aB._default,bH=bB[0],bz=bC.createElement("div");if(bC===az){ag.appendChild(bz);}else{a(bC).appendChild(bz);}bz.innerHTML=bB[1]+bD+bB[2];while(bH--){bz=bz.lastChild;}if(!b.support.tbody){var e=A.test(bD),bG=bO==="table"&&!e?bz.firstChild&&bz.firstChild.childNodes:bB[1]==="<table>"&&!e?bz.childNodes:[];for(bF=bG.length-1;bF>=0;--bF){if(b.nodeName(bG[bF],"tbody")&&!bG[bF].childNodes.length){bG[bF].parentNode.removeChild(bG[bF]);}}}if(!b.support.leadingWhitespace&&aw.test(bD)){bz.insertBefore(bC.createTextNode(aw.exec(bD)[0]),bz.firstChild);}bD=bz.childNodes;}}var bK;if(!b.support.appendChecked){if(bD[0]&&typeof(bK=bD.length)==="number"){for(bF=0;bF<bK;bF++){I(bD[bF]);}}else{I(bD);}}if(bD.nodeType){bM.push(bD);}else{bM=b.merge(bM,bD);}}if(bL){bJ=function(bP){return !bP.type||bq.test(bP.type);};for(bI=0;bM[bI];bI++){if(bE&&b.nodeName(bM[bI],"script")&&(!bM[bI].type||bM[bI].type.toLowerCase()==="text/javascript")){bE.push(bM[bI].parentNode?bM[bI].parentNode.removeChild(bM[bI]):bM[bI]);}else{if(bM[bI].nodeType===1){var bN=b.grep(bM[bI].getElementsByTagName("script"),bJ);bM.splice.apply(bM,[bI+1,0].concat(bN));}bL.appendChild(bM[bI]);}}}return bM;},cleanData:function(bz){var bC,bA,e=b.cache,bF=b.event.special,bE=b.support.deleteExpando;for(var bD=0,bB;(bB=bz[bD])!=null;bD++){if(bB.nodeName&&b.noData[bB.nodeName.toLowerCase()]){continue;}bA=bB[b.expando];if(bA){bC=e[bA];if(bC&&bC.events){for(var bG in bC.events){if(bF[bG]){b.event.remove(bB,bG);}else{b.removeEvent(bB,bG,bC.handle);}}if(bC.handle){bC.handle.elem=null;}}if(bE){delete bB[b.expando];}else{if(bB.removeAttribute){bB.removeAttribute(b.expando);}}delete e[bA];}}}});function bs(e,bz){if(bz.src){b.ajax({url:bz.src,async:false,dataType:"script"});}else{b.globalEval((bz.text||bz.textContent||bz.innerHTML||"").replace(aR,"/*$0*/"));}if(bz.parentNode){bz.parentNode.removeChild(bz);}}var ao=/alpha\([^)]*\)/i,ay=/opacity=([^)]*)/,D=/([A-Z]|^ms)/g,bg=/^-?\d+(?:px)?$/i,br=/^-?\d/,M=/^([\-+])=([\-+.\de]+)/,bb={position:"absolute",visibility:"hidden",display:"block"},ar=["Left","Right"],a5=["Top","Bottom"],ad,aM,a1;b.fn.css=function(e,bz){if(arguments.length===2&&bz===P){return this;}return b.access(this,e,bz,true,function(bB,bA,bC){return bC!==P?b.style(bB,bA,bC):b.css(bB,bA);});};b.extend({cssHooks:{opacity:{get:function(bA,bz){if(bz){var e=ad(bA,"opacity","opacity");return e===""?"1":e;}else{return bA.style.opacity;}}}},cssNumber:{fillOpacity:true,fontWeight:true,lineHeight:true,opacity:true,orphans:true,widows:true,zIndex:true,zoom:true},cssProps:{"float":b.support.cssFloat?"cssFloat":"styleFloat"},style:function(bB,bA,bH,bC){if(!bB||bB.nodeType===3||bB.nodeType===8||!bB.style){return;}var bF,bG,bD=b.camelCase(bA),bz=bB.style,bI=b.cssHooks[bD];bA=b.cssProps[bD]||bD;if(bH!==P){bG=typeof bH;if(bG==="string"&&(bF=M.exec(bH))){bH=(+(bF[1]+1)*+bF[2])+parseFloat(b.css(bB,bA));bG="number";}if(bH==null||bG==="number"&&isNaN(bH)){return;}if(bG==="number"&&!b.cssNumber[bD]){bH+="px";}if(!bI||!("set" in bI)||(bH=bI.set(bB,bH))!==P){try{bz[bA]=bH;}catch(bE){}}}else{if(bI&&"get" in bI&&(bF=bI.get(bB,false,bC))!==P){return bF;}return bz[bA];}},css:function(bC,bB,bz){var bA,e;bB=b.camelCase(bB);e=b.cssHooks[bB];bB=b.cssProps[bB]||bB;if(bB==="cssFloat"){bB="float";}if(e&&"get" in e&&(bA=e.get(bC,true,bz))!==P){return bA;}else{if(ad){return ad(bC,bB);}}},swap:function(bB,bA,bC){var e={};for(var bz in bA){e[bz]=bB.style[bz];bB.style[bz]=bA[bz];}bC.call(bB);for(bz in bA){bB.style[bz]=e[bz];}}});b.curCSS=b.css;b.each(["height","width"],function(bz,e){b.cssHooks[e]={get:function(bC,bB,bA){var bD;if(bB){if(bC.offsetWidth!==0){return q(bC,e,bA);}else{b.swap(bC,bb,function(){bD=q(bC,e,bA);});}return bD;}},set:function(bA,bB){if(bg.test(bB)){bB=parseFloat(bB);if(bB>=0){return bB+"px";}}else{return bB;}}};});if(!b.support.opacity){b.cssHooks.opacity={get:function(bz,e){return ay.test((e&&bz.currentStyle?bz.currentStyle.filter:bz.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":"";},set:function(bC,bD){var bB=bC.style,bz=bC.currentStyle,e=b.isNumeric(bD)?"alpha(opacity="+bD*100+")":"",bA=bz&&bz.filter||bB.filter||"";bB.zoom=1;if(bD>=1&&b.trim(bA.replace(ao,""))===""){bB.removeAttribute("filter");if(bz&&!bz.filter){return;}}bB.filter=ao.test(bA)?bA.replace(ao,e):bA+" "+e;}};}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bA,bz){var e;b.swap(bA,{display:"inline-block"},function(){if(bz){e=ad(bA,"margin-right","marginRight");}else{e=bA.style.marginRight;}});return e;}};}});if(az.defaultView&&az.defaultView.getComputedStyle){aM=function(bC,bA){var bz,bB,e;bA=bA.replace(D,"-$1").toLowerCase();if((bB=bC.ownerDocument.defaultView)&&(e=bB.getComputedStyle(bC,null))){bz=e.getPropertyValue(bA);if(bz===""&&!b.contains(bC.ownerDocument.documentElement,bC)){bz=b.style(bC,bA);}}return bz;};}if(az.documentElement.currentStyle){a1=function(bD,bA){var bE,e,bC,bz=bD.currentStyle&&bD.currentStyle[bA],bB=bD.style;if(bz===null&&bB&&(bC=bB[bA])){bz=bC;}if(!bg.test(bz)&&br.test(bz)){bE=bB.left;e=bD.runtimeStyle&&bD.runtimeStyle.left;if(e){bD.runtimeStyle.left=bD.currentStyle.left;}bB.left=bA==="fontSize"?"1em":(bz||0);bz=bB.pixelLeft+"px";bB.left=bE;if(e){bD.runtimeStyle.left=e;}}return bz===""?"auto":bz;};}ad=aM||a1;function q(bC,bA,bz){var bE=bA==="width"?bC.offsetWidth:bC.offsetHeight,bD=bA==="width"?ar:a5,bB=0,e=bD.length;if(bE>0){if(bz!=="border"){for(;bB<e;bB++){if(!bz){bE-=parseFloat(b.css(bC,"padding"+bD[bB]))||0;}if(bz==="margin"){bE+=parseFloat(b.css(bC,bz+bD[bB]))||0;}else{bE-=parseFloat(b.css(bC,"border"+bD[bB]+"Width"))||0;}}}return bE+"px";}bE=ad(bC,bA,bA);if(bE<0||bE==null){bE=bC.style[bA]||0;}bE=parseFloat(bE)||0;if(bz){for(;bB<e;bB++){bE+=parseFloat(b.css(bC,"padding"+bD[bB]))||0;if(bz!=="padding"){bE+=parseFloat(b.css(bC,"border"+bD[bB]+"Width"))||0;}if(bz==="margin"){bE+=parseFloat(b.css(bC,bz+bD[bB]))||0;}}}return bE+"px";}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bA){var bz=bA.offsetWidth,e=bA.offsetHeight;return(bz===0&&e===0)||(!b.support.reliableHiddenOffsets&&((bA.style&&bA.style.display)||b.css(bA,"display"))==="none");};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e);};}var l=/%20/g,au=/\[\]$/,bw=/\r?\n/g,bu=/#.*$/,aH=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a3=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aQ=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aU=/^(?:GET|HEAD)$/,c=/^\/\//,Q=/\?/,ba=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,u=/^(?:select|textarea)/i,h=/\s+/,bv=/([?&])_=[^&]*/,O=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,E=b.fn.load,ae={},v={},aI,w,aZ=["*/"]+["*"];try{aI=bp.href;}catch(aA){aI=az.createElement("a");aI.href="";aI=aI.href;}w=O.exec(aI.toLowerCase())||[];function f(e){return function(bC,bE){if(typeof bC!=="string"){bE=bC;bC="*";}if(b.isFunction(bE)){var bB=bC.toLowerCase().split(h),bA=0,bD=bB.length,bz,bF,bG;for(;bA<bD;bA++){bz=bB[bA];bG=/^\+/.test(bz);if(bG){bz=bz.substr(1)||"*";}bF=e[bz]=e[bz]||[];bF[bG?"unshift":"push"](bE);}}};}function a0(bz,bI,bD,bH,bF,bB){bF=bF||bI.dataTypes[0];bB=bB||{};bB[bF]=true;var bE=bz[bF],bA=0,e=bE?bE.length:0,bC=(bz===ae),bG;for(;bA<e&&(bC||!bG);bA++){bG=bE[bA](bI,bD,bH);if(typeof bG==="string"){if(!bC||bB[bG]){bG=P;}else{bI.dataTypes.unshift(bG);bG=a0(bz,bI,bD,bH,bG,bB);}}}if((bC||!bG)&&!bB["*"]){bG=a0(bz,bI,bD,bH,"*",bB);}return bG;}function aq(bA,bB){var bz,e,bC=b.ajaxSettings.flatOptions||{};for(bz in bB){if(bB[bz]!==P){(bC[bz]?bA:(e||(e={})))[bz]=bB[bz];}}if(e){b.extend(true,bA,e);}}b.fn.extend({load:function(bA,bD,bE){if(typeof bA!=="string"&&E){return E.apply(this,arguments);}else{if(!this.length){return this;}}var bC=bA.indexOf(" ");if(bC>=0){var e=bA.slice(bC,bA.length);bA=bA.slice(0,bC);}var bB="GET";if(bD){if(b.isFunction(bD)){bE=bD;bD=P;}else{if(typeof bD==="object"){bD=b.param(bD,b.ajaxSettings.traditional);bB="POST";}}}var bz=this;b.ajax({url:bA,type:bB,dataType:"html",data:bD,complete:function(bG,bF,bH){bH=bG.responseText;if(bG.isResolved()){bG.done(function(bI){bH=bI;});bz.html(e?b("<div>").append(bH.replace(ba,"")).find(e):bH);}if(bE){bz.each(bE,[bH,bF,bG]);}}});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||u.test(this.nodeName)||a3.test(this.type));}).map(function(e,bz){var bA=b(this).val();return bA==null?null:b.isArray(bA)?b.map(bA,function(bC,bB){return{name:bz.name,value:bC.replace(bw,"\r\n")};}):{name:bz.name,value:bA.replace(bw,"\r\n")};}).get();}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bz){b.fn[bz]=function(bA){return this.on(bz,bA);};});b.each(["get","post"],function(e,bz){b[bz]=function(bA,bC,bD,bB){if(b.isFunction(bC)){bB=bB||bD;bD=bC;bC=P;}return b.ajax({type:bz,url:bA,data:bC,success:bD,dataType:bB});};});b.extend({getScript:function(e,bz){return b.get(e,P,bz,"script");},getJSON:function(e,bz,bA){return b.get(e,bz,bA,"json");},ajaxSetup:function(bz,e){if(e){aq(bz,b.ajaxSettings);}else{e=bz;bz=b.ajaxSettings;}aq(bz,e);return bz;},ajaxSettings:{url:aI,isLocal:aQ.test(w[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","*":aZ},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bf.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:f(ae),ajaxTransport:f(v),ajax:function(bD,bB){if(typeof bD==="object"){bB=bD;bD=P;}bB=bB||{};var bH=b.ajaxSetup({},bB),bW=bH.context||bH,bK=bW!==bH&&(bW.nodeType||bW instanceof b)?b(bW):b.event,bV=b.Deferred(),bR=b.Callbacks("once memory"),bF=bH.statusCode||{},bG,bL={},bS={},bU,bC,bP,bI,bM,bE=0,bA,bO,bN={readyState:0,setRequestHeader:function(bX,bY){if(!bE){var e=bX.toLowerCase();bX=bS[e]=bS[e]||bX;bL[bX]=bY;}return this;},getAllResponseHeaders:function(){return bE===2?bU:null;},getResponseHeader:function(bX){var e;if(bE===2){if(!bC){bC={};while((e=aH.exec(bU))){bC[e[1].toLowerCase()]=e[2];}}e=bC[bX.toLowerCase()];}return e===P?null:e;},overrideMimeType:function(e){if(!bE){bH.mimeType=e;}return this;},abort:function(e){e=e||"abort";if(bP){bP.abort(e);}bJ(0,e);return this;}};function bJ(b3,bY,b4,b0){if(bE===2){return;}bE=2;if(bI){clearTimeout(bI);}bP=P;bU=b0||"";bN.readyState=b3>0?4:0;var bX,b8,b7,b1=bY,b2=b4?bn(bH,bN,b4):P,bZ,b6;if(b3>=200&&b3<300||b3===304){if(bH.ifModified){if((bZ=bN.getResponseHeader("Last-Modified"))){b.lastModified[bG]=bZ;}if((b6=bN.getResponseHeader("Etag"))){b.etag[bG]=b6;}}if(b3===304){b1="notmodified";bX=true;}else{try{b8=K(bH,b2);b1="success";bX=true;}catch(b5){b1="parsererror";b7=b5;}}}else{b7=b1;if(!b1||b3){b1="error";if(b3<0){b3=0;}}}bN.status=b3;bN.statusText=""+(bY||b1);if(bX){bV.resolveWith(bW,[b8,b1,bN]);}else{bV.rejectWith(bW,[bN,b1,b7]);}bN.statusCode(bF);bF=P;if(bA){bK.trigger("ajax"+(bX?"Success":"Error"),[bN,bH,bX?b8:b7]);}bR.fireWith(bW,[bN,b1]);if(bA){bK.trigger("ajaxComplete",[bN,bH]);if(!(--b.active)){b.event.trigger("ajaxStop");}}}bV.promise(bN);bN.success=bN.done;bN.error=bN.fail;bN.complete=bR.add;bN.statusCode=function(bX){if(bX){var e;if(bE<2){for(e in bX){bF[e]=[bF[e],bX[e]];}}else{e=bX[bN.status];bN.then(e,e);}}return this;};bH.url=((bD||bH.url)+"").replace(bu,"").replace(c,w[1]+"//");bH.dataTypes=b.trim(bH.dataType||"*").toLowerCase().split(h);if(bH.crossDomain==null){bM=O.exec(bH.url.toLowerCase());bH.crossDomain=!!(bM&&(bM[1]!=w[1]||bM[2]!=w[2]||(bM[3]||(bM[1]==="http:"?80:443))!=(w[3]||(w[1]==="http:"?80:443))));}if(bH.data&&bH.processData&&typeof bH.data!=="string"){bH.data=b.param(bH.data,bH.traditional);}a0(ae,bH,bB,bN);if(bE===2){return false;}bA=bH.global;bH.type=bH.type.toUpperCase();bH.hasContent=!aU.test(bH.type);if(bA&&b.active++===0){b.event.trigger("ajaxStart");}if(!bH.hasContent){if(bH.data){bH.url+=(Q.test(bH.url)?"&":"?")+bH.data;delete bH.data;}bG=bH.url;if(bH.cache===false){var bz=b.now(),bT=bH.url.replace(bv,"$1_="+bz);bH.url=bT+((bT===bH.url)?(Q.test(bH.url)?"&":"?")+"_="+bz:"");}}if(bH.data&&bH.hasContent&&bH.contentType!==false||bB.contentType){bN.setRequestHeader("Content-Type",bH.contentType);}if(bH.ifModified){bG=bG||bH.url;if(b.lastModified[bG]){bN.setRequestHeader("If-Modified-Since",b.lastModified[bG]);}if(b.etag[bG]){bN.setRequestHeader("If-None-Match",b.etag[bG]);}}bN.setRequestHeader("Accept",bH.dataTypes[0]&&bH.accepts[bH.dataTypes[0]]?bH.accepts[bH.dataTypes[0]]+(bH.dataTypes[0]!=="*"?", "+aZ+"; q=0.01":""):bH.accepts["*"]);for(bO in bH.headers){bN.setRequestHeader(bO,bH.headers[bO]);}if(bH.beforeSend&&(bH.beforeSend.call(bW,bN,bH)===false||bE===2)){bN.abort();return false;}for(bO in {success:1,error:1,complete:1}){bN[bO](bH[bO]);}bP=a0(v,bH,bB,bN);if(!bP){bJ(-1,"No Transport");}else{bN.readyState=1;if(bA){bK.trigger("ajaxSend",[bN,bH]);}if(bH.async&&bH.timeout>0){bI=setTimeout(function(){bN.abort("timeout");},bH.timeout);}try{bE=1;bP.send(bL,bJ);}catch(bQ){if(bE<2){bJ(-1,bQ);}else{throw bQ;}}}return bN;},param:function(e,bA){var bz=[],bC=function(bD,bE){bE=b.isFunction(bE)?bE():bE;bz[bz.length]=encodeURIComponent(bD)+"="+encodeURIComponent(bE);};if(bA===P){bA=b.ajaxSettings.traditional;}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bC(this.name,this.value);});}else{for(var bB in e){z(bB,e[bB],bA,bC);}}return bz.join("&").replace(l,"+");}});function z(bA,bC,bz,bB){if(b.isArray(bC)){b.each(bC,function(bE,bD){if(bz||au.test(bA)){bB(bA,bD);}else{z(bA+"["+(typeof bD==="object"||b.isArray(bD)?bE:"")+"]",bD,bz,bB);}});}else{if(!bz&&bC!=null&&typeof bC==="object"){for(var e in bC){z(bA+"["+e+"]",bC[e],bz,bB);}}else{bB(bA,bC);}}}b.extend({active:0,lastModified:{},etag:{}});function bn(bH,bG,bD){var bz=bH.contents,bF=bH.dataTypes,bA=bH.responseFields,bC,bE,bB,e;for(bE in bA){if(bE in bD){bG[bA[bE]]=bD[bE];}}while(bF[0]==="*"){bF.shift();if(bC===P){bC=bH.mimeType||bG.getResponseHeader("content-type");}}if(bC){for(bE in bz){if(bz[bE]&&bz[bE].test(bC)){bF.unshift(bE);break;}}}if(bF[0] in bD){bB=bF[0];}else{for(bE in bD){if(!bF[0]||bH.converters[bE+" "+bF[0]]){bB=bE;break;}if(!e){e=bE;}}bB=bB||e;}if(bB){if(bB!==bF[0]){bF.unshift(bB);}return bD[bB];}}function K(bL,bD){if(bL.dataFilter){bD=bL.dataFilter(bD,bL.dataType);}var bH=bL.dataTypes,bK={},bE,bI,bA=bH.length,bF,bG=bH[0],bB,bC,bJ,bz,e;for(bE=1;bE<bA;bE++){if(bE===1){for(bI in bL.converters){if(typeof bI==="string"){bK[bI.toLowerCase()]=bL.converters[bI];}}}bB=bG;bG=bH[bE];if(bG==="*"){bG=bB;}else{if(bB!=="*"&&bB!==bG){bC=bB+" "+bG;bJ=bK[bC]||bK["* "+bG];if(!bJ){e=P;for(bz in bK){bF=bz.split(" ");if(bF[0]===bB||bF[0]==="*"){e=bK[bF[1]+" "+bG];if(e){bz=bK[bz];if(bz===true){bJ=e;}else{if(e===true){bJ=bz;}}break;}}}}if(!(bJ||e)){b.error("No conversion from "+bC.replace(" "," to "));}if(bJ!==true){bD=bJ?bJ(bD):e(bz(bD));}}}}return bD;}var aG=b.now(),y=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aG++);}});b.ajaxPrefilter("json jsonp",function(bH,bE,bG){var bB=bH.contentType==="application/x-www-form-urlencoded"&&(typeof bH.data==="string");if(bH.dataTypes[0]==="jsonp"||bH.jsonp!==false&&(y.test(bH.url)||bB&&y.test(bH.data))){var bF,bA=bH.jsonpCallback=b.isFunction(bH.jsonpCallback)?bH.jsonpCallback():bH.jsonpCallback,bD=bf[bA],e=bH.url,bC=bH.data,bz="$1"+bA+"$2";if(bH.jsonp!==false){e=e.replace(y,bz);if(bH.url===e){if(bB){bC=bC.replace(y,bz);}if(bH.data===bC){e+=(/\?/.test(e)?"&":"?")+bH.jsonp+"="+bA;}}}bH.url=e;bH.data=bC;bf[bA]=function(bI){bF=[bI];};bG.always(function(){bf[bA]=bD;if(bF&&b.isFunction(bD)){bf[bA](bF[0]);}});bH.converters["script json"]=function(){if(!bF){b.error(bA+" was not called");}return bF[0];};bH.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===P){e.cache=false;}if(e.crossDomain){e.type="GET";e.global=false;}});b.ajaxTransport("script",function(bA){if(bA.crossDomain){var e,bz=az.head||az.getElementsByTagName("head")[0]||az.documentElement;return{send:function(bB,bC){e=az.createElement("script");e.async="async";if(bA.scriptCharset){e.charset=bA.scriptCharset;}e.src=bA.url;e.onload=e.onreadystatechange=function(bE,bD){if(bD||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bz&&e.parentNode){bz.removeChild(e);}e=P;if(!bD){bC(200,"success");}}};bz.insertBefore(e,bz.firstChild);},abort:function(){if(e){e.onload(0,1);}}};}});var F=bf.ActiveXObject?function(){for(var e in R){R[e](0,1);}}:false,C=0,R;function aP(){try{return new bf.XMLHttpRequest();}catch(bz){}}function an(){try{return new bf.ActiveXObject("Microsoft.XMLHTTP");}catch(bz){}}b.ajaxSettings.xhr=bf.ActiveXObject?function(){return !this.isLocal&&aP()||an();}:aP;(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 bz;return{send:function(bF,bA){var bE=e.xhr(),bD,bC;if(e.username){bE.open(e.type,e.url,e.async,e.username,e.password);}else{bE.open(e.type,e.url,e.async);}if(e.xhrFields){for(bC in e.xhrFields){bE[bC]=e.xhrFields[bC];}}if(e.mimeType&&bE.overrideMimeType){bE.overrideMimeType(e.mimeType);}if(!e.crossDomain&&!bF["X-Requested-With"]){bF["X-Requested-With"]="XMLHttpRequest";}try{for(bC in bF){bE.setRequestHeader(bC,bF[bC]);}}catch(bB){}bE.send((e.hasContent&&e.data)||null);bz=function(bO,bI){var bJ,bH,bG,bM,bL;try{if(bz&&(bI||bE.readyState===4)){bz=P;if(bD){bE.onreadystatechange=b.noop;if(F){delete R[bD];}}if(bI){if(bE.readyState!==4){bE.abort();}}else{bJ=bE.status;bG=bE.getAllResponseHeaders();bM={};bL=bE.responseXML;if(bL&&bL.documentElement){bM.xml=bL;}bM.text=bE.responseText;try{bH=bE.statusText;}catch(bN){bH="";}if(!bJ&&e.isLocal&&!e.crossDomain){bJ=bM.text?200:404;}else{if(bJ===1223){bJ=204;}}}}}catch(bK){if(!bI){bA(-1,bK);}}if(bM){bA(bJ,bH,bM,bG);}};if(!e.async||bE.readyState===4){bz();}else{bD=++C;if(F){if(!R){R={};b(bf).unload(F);}R[bD]=bz;}bE.onreadystatechange=bz;}},abort:function(){if(bz){bz(0,1);}}};}});}var U={},bc,n,aF=/^(?:toggle|show|hide)$/,aX=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a7,aL=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a8;b.fn.extend({show:function(bB,bE,bD){var bA,bC;if(bB||bB===0){return this.animate(a4("show",3),bB,bE,bD);}else{for(var bz=0,e=this.length;bz<e;bz++){bA=this[bz];if(bA.style){bC=bA.style.display;if(!b._data(bA,"olddisplay")&&bC==="none"){bC=bA.style.display="";}if(bC===""&&b.css(bA,"display")==="none"){b._data(bA,"olddisplay",B(bA.nodeName));}}}for(bz=0;bz<e;bz++){bA=this[bz];if(bA.style){bC=bA.style.display;if(bC===""||bC==="none"){bA.style.display=b._data(bA,"olddisplay")||"";}}}return this;}},hide:function(bB,bE,bD){if(bB||bB===0){return this.animate(a4("hide",3),bB,bE,bD);}else{var bA,bC,bz=0,e=this.length;for(;bz<e;bz++){bA=this[bz];if(bA.style){bC=b.css(bA,"display");if(bC!=="none"&&!b._data(bA,"olddisplay")){b._data(bA,"olddisplay",bC);}}}for(bz=0;bz<e;bz++){if(this[bz].style){this[bz].style.display="none";}}return this;}},_toggle:b.fn.toggle,toggle:function(bA,bz,bB){var e=typeof bA==="boolean";if(b.isFunction(bA)&&b.isFunction(bz)){this._toggle.apply(this,arguments);}else{if(bA==null||e){this.each(function(){var bC=e?bA:b(this).is(":hidden");b(this)[bC?"show":"hide"]();});}else{this.animate(a4("toggle",3),bA,bz,bB);}}return this;},fadeTo:function(e,bB,bA,bz){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bB},e,bA,bz);},animate:function(bD,bA,bC,bB){var e=b.speed(bA,bC,bB);if(b.isEmptyObject(bD)){return this.each(e.complete,[false]);}bD=b.extend({},bD);function bz(){if(e.queue===false){b._mark(this);}var bI=b.extend({},e),bO=this.nodeType===1,bM=bO&&b(this).is(":hidden"),bF,bJ,bH,bN,bL,bG,bK,bP,bE;bI.animatedProperties={};for(bH in bD){bF=b.camelCase(bH);if(bH!==bF){bD[bF]=bD[bH];delete bD[bH];}bJ=bD[bF];if(b.isArray(bJ)){bI.animatedProperties[bF]=bJ[1];bJ=bD[bF]=bJ[0];}else{bI.animatedProperties[bF]=bI.specialEasing&&bI.specialEasing[bF]||bI.easing||"swing";}if(bJ==="hide"&&bM||bJ==="show"&&!bM){return bI.complete.call(this);}if(bO&&(bF==="height"||bF==="width")){bI.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||B(this.nodeName)==="inline"){this.style.display="inline-block";}else{this.style.zoom=1;}}}}if(bI.overflow!=null){this.style.overflow="hidden";}for(bH in bD){bN=new b.fx(this,bI,bH);bJ=bD[bH];if(aF.test(bJ)){bE=b._data(this,"toggle"+bH)||(bJ==="toggle"?bM?"show":"hide":0);if(bE){b._data(this,"toggle"+bH,bE==="show"?"hide":"show");bN[bE]();}else{bN[bJ]();}}else{bL=aX.exec(bJ);bG=bN.cur();if(bL){bK=parseFloat(bL[2]);bP=bL[3]||(b.cssNumber[bH]?"":"px");if(bP!=="px"){b.style(this,bH,(bK||1)+bP);bG=((bK||1)/bN.cur())*bG;b.style(this,bH,bG+bP);}if(bL[1]){bK=((bL[1]==="-="?-1:1)*bK)+bG;}bN.custom(bG,bK,bP);}else{bN.custom(bG,bJ,"");}}}return true;}return e.queue===false?this.each(bz):this.queue(e.queue,bz);},stop:function(bA,bz,e){if(typeof bA!=="string"){e=bz;bz=bA;bA=P;}if(bz&&bA!==false){this.queue(bA||"fx",[]);}return this.each(function(){var bB,bC=false,bE=b.timers,bD=b._data(this);if(!e){b._unmark(true,this);}function bF(bI,bJ,bH){var bG=bJ[bH];b.removeData(bI,bH,true);bG.stop(e);}if(bA==null){for(bB in bD){if(bD[bB]&&bD[bB].stop&&bB.indexOf(".run")===bB.length-4){bF(this,bD,bB);}}}else{if(bD[bB=bA+".run"]&&bD[bB].stop){bF(this,bD,bB);}}for(bB=bE.length;bB--;){if(bE[bB].elem===this&&(bA==null||bE[bB].queue===bA)){if(e){bE[bB](true);}else{bE[bB].saveState();}bC=true;bE.splice(bB,1);}}if(!(e&&bC)){b.dequeue(this,bA);}});}});function bl(){setTimeout(ax,0);return(a8=b.now());}function ax(){a8=P;}function a4(bz,e){var bA={};b.each(aL.concat.apply([],aL.slice(0,e)),function(){bA[this]=bz;});return bA;}b.each({slideDown:a4("show",1),slideUp:a4("hide",1),slideToggle:a4("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bz){b.fn[e]=function(bA,bC,bB){return this.animate(bz,bA,bC,bB);};});b.extend({speed:function(bA,bB,bz){var e=bA&&typeof bA==="object"?b.extend({},bA):{complete:bz||!bz&&bB||b.isFunction(bA)&&bA,duration:bA,easing:bz&&bB||bB&&!b.isFunction(bB)&&bB};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;if(e.queue==null||e.queue===true){e.queue="fx";}e.old=e.complete;e.complete=function(bC){if(b.isFunction(e.old)){e.old.call(this);}if(e.queue){b.dequeue(this,e.queue);}else{if(bC!==false){b._unmark(this);}}};return e;},easing:{linear:function(bA,bB,e,bz){return e+bz*bA;},swing:function(bA,bB,e,bz){return((-Math.cos(bA*Math.PI)/2)+0.5)*bz+e;}},timers:[],fx:function(bz,e,bA){this.options=e;this.elem=bz;this.prop=bA;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,bz=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bz))?!bz||bz==="auto"?0:bz:e;},custom:function(bD,bC,bB){var e=this,bA=b.fx;this.startTime=a8||bl();this.end=bC;this.now=this.start=bD;this.pos=this.state=0;this.unit=bB||this.unit||(b.cssNumber[this.prop]?"":"px");function bz(bE){return e.step(bE);}bz.queue=this.options.queue;bz.elem=this.elem;bz.saveState=function(){if(e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===P){b._data(e.elem,"fxshow"+e.prop,e.start);}};if(bz()&&b.timers.push(bz)&&!a7){a7=setInterval(bA.tick,bA.interval);}},show:function(){var e=b._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=e||b.style(this.elem,this.prop);this.options.show=true;if(e!==P){this.custom(this.cur(),e);}else{this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());}b(this.elem).show();},hide:function(){this.options.orig[this.prop]=b._data(this.elem,"fxshow"+this.prop)||b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(bC){var bE,bF,bz,bB=a8||bl(),e=true,bD=this.elem,bA=this.options;if(bC||bB>=bA.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bA.animatedProperties[this.prop]=true;for(bE in bA.animatedProperties){if(bA.animatedProperties[bE]!==true){e=false;}}if(e){if(bA.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bG,bH){bD.style["overflow"+bH]=bA.overflow[bG];});}if(bA.hide){b(bD).hide();}if(bA.hide||bA.show){for(bE in bA.animatedProperties){b.style(bD,bE,bA.orig[bE]);b.removeData(bD,"fxshow"+bE,true);b.removeData(bD,"toggle"+bE,true);}}bz=bA.complete;if(bz){bA.complete=false;bz.call(bD);}}return false;}else{if(bA.duration==Infinity){this.now=bB;}else{bF=bB-this.startTime;this.state=bF/bA.duration;this.pos=b.easing[bA.animatedProperties[this.prop]](this.state,bF,0,1,bA.duration);this.now=this.start+((this.end-this.start)*this.pos);}this.update();}return true;}};b.extend(b.fx,{tick:function(){var bA,bz=b.timers,e=0;for(;e<bz.length;e++){bA=bz[e];if(!bA()&&bz[e]===bA){bz.splice(e--,1);}}if(!bz.length){b.fx.stop();}},interval:13,stop:function(){clearInterval(a7);a7=null;},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now);},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=e.now+e.unit;}else{e.elem[e.prop]=e.now;}}}});b.each(["width","height"],function(e,bz){b.fx.step[bz]=function(bA){b.style(bA.elem,bz,Math.max(0,bA.now)+bA.unit);};});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bz){return e===bz.elem;}).length;};}function B(bB){if(!U[bB]){var e=az.body,bz=b("<"+bB+">").appendTo(e),bA=bz.css("display");bz.remove();if(bA==="none"||bA===""){if(!bc){bc=az.createElement("iframe");bc.frameBorder=bc.width=bc.height=0;}e.appendChild(bc);if(!n||!bc.createElement){n=(bc.contentWindow||bc.contentDocument).document;n.write((az.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");n.close();}bz=n.createElement(bB);n.body.appendChild(bz);bA=b.css(bz,"display");e.removeChild(bc);}U[bB]=bA;}return U[bB];}var Z=/^t(?:able|d|h)$/i,ah=/^(?:body|html)$/i;if("getBoundingClientRect" in az.documentElement){b.fn.offset=function(bM){var bC=this[0],bF;if(bM){return this.each(function(e){b.offset.setOffset(this,bM,e);});}if(!bC||!bC.ownerDocument){return null;}if(bC===bC.ownerDocument.body){return b.offset.bodyOffset(bC);}try{bF=bC.getBoundingClientRect();}catch(bJ){}var bL=bC.ownerDocument,bA=bL.documentElement;if(!bF||!b.contains(bA,bC)){return bF?{top:bF.top,left:bF.left}:{top:0,left:0};}var bG=bL.body,bH=aO(bL),bE=bA.clientTop||bG.clientTop||0,bI=bA.clientLeft||bG.clientLeft||0,bz=bH.pageYOffset||b.support.boxModel&&bA.scrollTop||bG.scrollTop,bD=bH.pageXOffset||b.support.boxModel&&bA.scrollLeft||bG.scrollLeft,bK=bF.top+bz-bE,bB=bF.left+bD-bI;return{top:bK,left:bB};};}else{b.fn.offset=function(bJ){var bD=this[0];if(bJ){return this.each(function(bK){b.offset.setOffset(this,bJ,bK);});}if(!bD||!bD.ownerDocument){return null;}if(bD===bD.ownerDocument.body){return b.offset.bodyOffset(bD);}var bG,bA=bD.offsetParent,bz=bD,bI=bD.ownerDocument,bB=bI.documentElement,bE=bI.body,bF=bI.defaultView,e=bF?bF.getComputedStyle(bD,null):bD.currentStyle,bH=bD.offsetTop,bC=bD.offsetLeft;while((bD=bD.parentNode)&&bD!==bE&&bD!==bB){if(b.support.fixedPosition&&e.position==="fixed"){break;}bG=bF?bF.getComputedStyle(bD,null):bD.currentStyle;bH-=bD.scrollTop;bC-=bD.scrollLeft;if(bD===bA){bH+=bD.offsetTop;bC+=bD.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&Z.test(bD.nodeName))){bH+=parseFloat(bG.borderTopWidth)||0;bC+=parseFloat(bG.borderLeftWidth)||0;}bz=bA;bA=bD.offsetParent;}if(b.support.subtractsBorderForOverflowNotVisible&&bG.overflow!=="visible"){bH+=parseFloat(bG.borderTopWidth)||0;bC+=parseFloat(bG.borderLeftWidth)||0;}e=bG;}if(e.position==="relative"||e.position==="static"){bH+=bE.offsetTop;bC+=bE.offsetLeft;}if(b.support.fixedPosition&&e.position==="fixed"){bH+=Math.max(bB.scrollTop,bE.scrollTop);bC+=Math.max(bB.scrollLeft,bE.scrollLeft);}return{top:bH,left:bC};};}b.offset={bodyOffset:function(e){var bA=e.offsetTop,bz=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bA+=parseFloat(b.css(e,"marginTop"))||0;bz+=parseFloat(b.css(e,"marginLeft"))||0;}return{top:bA,left:bz};},setOffset:function(bB,bK,bE){var bF=b.css(bB,"position");if(bF==="static"){bB.style.position="relative";}var bD=b(bB),bz=bD.offset(),e=b.css(bB,"top"),bI=b.css(bB,"left"),bJ=(bF==="absolute"||bF==="fixed")&&b.inArray("auto",[e,bI])>-1,bH={},bG={},bA,bC;if(bJ){bG=bD.position();bA=bG.top;bC=bG.left;}else{bA=parseFloat(e)||0;bC=parseFloat(bI)||0;}if(b.isFunction(bK)){bK=bK.call(bB,bE,bz);}if(bK.top!=null){bH.top=(bK.top-bz.top)+bA;}if(bK.left!=null){bH.left=(bK.left-bz.left)+bC;}if("using" in bK){bK.using.call(bB,bH);}else{bD.css(bH);}}};b.fn.extend({position:function(){if(!this[0]){return null;}var bA=this[0],bz=this.offsetParent(),bB=this.offset(),e=ah.test(bz[0].nodeName)?{top:0,left:0}:bz.offset();bB.top-=parseFloat(b.css(bA,"marginTop"))||0;bB.left-=parseFloat(b.css(bA,"marginLeft"))||0;e.top+=parseFloat(b.css(bz[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bz[0],"borderLeftWidth"))||0;return{top:bB.top-e.top,left:bB.left-e.left};},offsetParent:function(){return this.map(function(){var e=this.offsetParent||az.body;while(e&&(!ah.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent;}return e;});}});b.each(["Left","Top"],function(bz,e){var bA="scroll"+e;b.fn[bA]=function(bD){var bB,bC;if(bD===P){bB=this[0];if(!bB){return null;}bC=aO(bB);return bC?("pageXOffset" in bC)?bC[bz?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bC.document.documentElement[bA]||bC.document.body[bA]:bB[bA];}return this.each(function(){bC=aO(this);if(bC){bC.scrollTo(!bz?bD:b(bC).scrollLeft(),bz?bD:b(bC).scrollTop());}else{this[bA]=bD;}});};});function aO(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false;}b.each(["Height","Width"],function(bz,e){var bA=e.toLowerCase();b.fn["inner"+e]=function(){var bB=this[0];return bB?bB.style?parseFloat(b.css(bB,bA,"padding")):this[bA]():null;};b.fn["outer"+e]=function(bC){var bB=this[0];return bB?bB.style?parseFloat(b.css(bB,bA,bC?"margin":"border")):this[bA]():null;};b.fn[bA]=function(bD){var bE=this[0];if(!bE){return bD==null?null:this;}if(b.isFunction(bD)){return this.each(function(bI){var bH=b(this);bH[bA](bD.call(this,bI,bH[bA]()));});}if(b.isWindow(bE)){var bF=bE.document.documentElement["client"+e],bB=bE.document.body;return bE.document.compatMode==="CSS1Compat"&&bF||bB&&bB["client"+e]||bF;}else{if(bE.nodeType===9){return Math.max(bE.documentElement["client"+e],bE.body["scroll"+e],bE.documentElement["scroll"+e],bE.body["offset"+e],bE.documentElement["offset"+e]);}else{if(bD===P){var bG=b.css(bE,bA),bC=parseFloat(bG);return b.isNumeric(bC)?bC:bG;}else{return this.css(bA,typeof bD==="string"?bD:bD+"px");}}}};});bf.jQuery=bf.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b;});}})(window);
/*
 * jQuery UI 1.8.17
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(a,d){a.ui=a.ui||{};if(a.ui.version){return;}a.extend(a.ui,{version:"1.8.17",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(e,f){return typeof e==="number"?this.each(function(){var g=this;setTimeout(function(){a(g).focus();if(f){f.call(g);}},e);}):this._focus.apply(this,arguments);},scrollParent:function(){var e;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){e=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1));}).eq(0);}else{e=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1));}).eq(0);}return(/fixed/).test(this.css("position"))||!e.length?a(document):e;},zIndex:function(h){if(h!==d){return this.css("zIndex",h);}if(this.length){var f=a(this[0]),e,g;while(f.length&&f[0]!==document){e=f.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){g=parseInt(f.css("zIndex"),10);if(!isNaN(g)&&g!==0){return g;}}f=f.parent();}}return 0;},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(e){e.preventDefault();});},enableSelection:function(){return this.unbind(".ui-disableSelection");}});a.each(["Width","Height"],function(g,e){var f=e==="Width"?["Left","Right"]:["Top","Bottom"],h=e.toLowerCase(),k={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function j(n,m,l,o){a.each(f,function(){m-=parseFloat(a.curCSS(n,"padding"+this,true))||0;if(l){m-=parseFloat(a.curCSS(n,"border"+this+"Width",true))||0;}if(o){m-=parseFloat(a.curCSS(n,"margin"+this,true))||0;}});return m;}a.fn["inner"+e]=function(l){if(l===d){return k["inner"+e].call(this);}return this.each(function(){a(this).css(h,j(this,l)+"px");});};a.fn["outer"+e]=function(l,m){if(typeof l!=="number"){return k["outer"+e].call(this,l);}return this.each(function(){a(this).css(h,j(this,l,true,m)+"px");});};});function c(g,e){var k=g.nodeName.toLowerCase();if("area"===k){var j=g.parentNode,h=j.name,f;if(!g.href||!h||j.nodeName.toLowerCase()!=="map"){return false;}f=a("img[usemap=#"+h+"]")[0];return !!f&&b(f);}return(/input|select|textarea|button|object/.test(k)?!g.disabled:"a"==k?g.href||e:e)&&b(g);}function b(e){return !a(e).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this);}).length;}a.extend(a.expr[":"],{data:function(g,f,e){return !!a.data(g,e[3]);},focusable:function(e){return c(e,!isNaN(a.attr(e,"tabindex")));},tabbable:function(g){var e=a.attr(g,"tabindex"),f=isNaN(e);return(f||e>=0)&&c(g,!f);}});a(function(){var e=document.body,f=e.appendChild(f=document.createElement("div"));a.extend(f.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=f.offsetHeight===100;a.support.selectstart="onselectstart" in f;e.removeChild(f).style.display="none";});a.extend(a.ui,{plugin:{add:function(f,g,j){var h=a.ui[f].prototype;for(var e in j){h.plugins[e]=h.plugins[e]||[];h.plugins[e].push([g,j[e]]);}},call:function(e,g,f){var j=e.plugins[g];if(!j||!e.element[0].parentNode){return;}for(var h=0;h<j.length;h++){if(e.options[j[h][0]]){j[h][1].apply(e.element,f);}}}},contains:function(f,e){return document.compareDocumentPosition?f.compareDocumentPosition(e)&16:f!==e&&f.contains(e);},hasScroll:function(h,f){if(a(h).css("overflow")==="hidden"){return false;}var e=(f&&f==="left")?"scrollLeft":"scrollTop",g=false;if(h[e]>0){return true;}h[e]=1;g=(h[e]>0);h[e]=0;return g;},isOverAxis:function(f,e,g){return(f>e)&&(f<(e+g));},isOver:function(k,f,j,h,e,g){return a.ui.isOverAxis(k,j,e)&&a.ui.isOverAxis(f,h,g);}});})(jQuery);
/*
 * jQuery UI Widget 1.8.17
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(f){for(var g=0,h;(h=f[g])!=null;g++){try{b(h).triggerHandler("remove");}catch(j){}}c(f);};}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){try{b(this).triggerHandler("remove");}catch(g){}});}}return a.call(b(this),e,f);});};}b.widget=function(f,h,e){var g=f.split(".")[0],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(e,f,g){var k,j,h=this.options[e];g=g||{};f=b.Event(f);f.type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase();f.target=this.element[0];j=f.originalEvent;if(j){for(k in j){if(!(k in f)){f[k]=j[k];}}}this.element.trigger(f,g);return !(b.isFunction(h)&&h.call(this.element[0],f,g)===false||f.isDefaultPrevented());}};})(jQuery);
/*
 * jQuery UI Mouse 1.8.17
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(b,c){var a=false;b(document).mouseup(function(d){a=false;});b.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var d=this;this.element.bind("mousedown."+this.widgetName,function(e){return d._mouseDown(e);}).bind("click."+this.widgetName,function(e){if(true===b.data(e.target,d.widgetName+".preventClickEvent")){b.removeData(e.target,d.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false;}});this.started=false;},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);},_mouseDown:function(f){if(a){return;}(this._mouseStarted&&this._mouseUp(f));this._mouseDownEvent=f;var e=this,g=(f.which==1),d=(typeof this.options.cancel=="string"&&f.target.nodeName?b(f.target).closest(this.options.cancel).length:false);if(!g||d||!this._mouseCapture(f)){return true;}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){e.mouseDelayMet=true;},this.options.delay);}if(this._mouseDistanceMet(f)&&this._mouseDelayMet(f)){this._mouseStarted=(this._mouseStart(f)!==false);if(!this._mouseStarted){f.preventDefault();return true;}}if(true===b.data(f.target,this.widgetName+".preventClickEvent")){b.removeData(f.target,this.widgetName+".preventClickEvent");}this._mouseMoveDelegate=function(h){return e._mouseMove(h);};this._mouseUpDelegate=function(h){return e._mouseUp(h);};b(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);f.preventDefault();a=true;return true;},_mouseMove:function(d){if(b.browser.msie&&!(document.documentMode>=9)&&!d.button){return this._mouseUp(d);}if(this._mouseStarted){this._mouseDrag(d);return d.preventDefault();}if(this._mouseDistanceMet(d)&&this._mouseDelayMet(d)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,d)!==false);(this._mouseStarted?this._mouseDrag(d):this._mouseUp(d));}return !this._mouseStarted;},_mouseUp:function(d){b(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;if(d.target==this._mouseDownEvent.target){b.data(d.target,this.widgetName+".preventClickEvent",true);}this._mouseStop(d);}return false;},_mouseDistanceMet:function(d){return(Math.max(Math.abs(this._mouseDownEvent.pageX-d.pageX),Math.abs(this._mouseDownEvent.pageY-d.pageY))>=this.options.distance);},_mouseDelayMet:function(d){return this.mouseDelayMet;},_mouseStart:function(d){},_mouseDrag:function(d){},_mouseStop:function(d){},_mouseCapture:function(d){return true;}});})(jQuery);(function(g,h){g.ui=g.ui||{};var d=/left|center|right/,e=/top|center|bottom/,a="center",f={},b=g.fn.position,c=g.fn.offset;g.fn.position=function(k){if(!k||!k.of){return b.apply(this,arguments);}k=g.extend({},k);var o=g(k.of),n=o[0],q=(k.collision||"flip").split(" "),p=k.offset?k.offset.split(" "):[0,0],m,j,l;if(n.nodeType===9){m=o.width();j=o.height();l={top:0,left:0};}else{if(n.setTimeout){m=o.width();j=o.height();l={top:o.scrollTop(),left:o.scrollLeft()};}else{if(n.preventDefault){k.at="left top";m=j=0;l={top:k.of.pageY,left:k.of.pageX};}else{m=o.outerWidth();j=o.outerHeight();l=o.offset();}}}g.each(["my","at"],function(){var u=(k[this]||"").split(" ");if(u.length===1){u=d.test(u[0])?u.concat([a]):e.test(u[0])?[a].concat(u):[a,a];}u[0]=d.test(u[0])?u[0]:a;u[1]=e.test(u[1])?u[1]:a;k[this]=u;});if(q.length===1){q[1]=q[0];}p[0]=parseInt(p[0],10)||0;if(p.length===1){p[1]=p[0];}p[1]=parseInt(p[1],10)||0;if(k.at[0]==="right"){l.left+=m;}else{if(k.at[0]===a){l.left+=m/2;}}if(k.at[1]==="bottom"){l.top+=j;}else{if(k.at[1]===a){l.top+=j/2;}}l.left+=p[0];l.top+=p[1];return this.each(function(){var x=g(this),z=x.outerWidth(),w=x.outerHeight(),y=parseInt(g.curCSS(this,"marginLeft",true))||0,v=parseInt(g.curCSS(this,"marginTop",true))||0,B=z+y+(parseInt(g.curCSS(this,"marginRight",true))||0),C=w+v+(parseInt(g.curCSS(this,"marginBottom",true))||0),A=g.extend({},l),u;if(k.my[0]==="right"){A.left-=z;}else{if(k.my[0]===a){A.left-=z/2;}}if(k.my[1]==="bottom"){A.top-=w;}else{if(k.my[1]===a){A.top-=w/2;}}if(!f.fractions){A.left=Math.round(A.left);A.top=Math.round(A.top);}u={left:A.left-y,top:A.top-v};g.each(["left","top"],function(E,D){if(g.ui.position[q[E]]){g.ui.position[q[E]][D](A,{targetWidth:m,targetHeight:j,elemWidth:z,elemHeight:w,collisionPosition:u,collisionWidth:B,collisionHeight:C,offset:p,my:k.my,at:k.at});}});if(g.fn.bgiframe){x.bgiframe();}x.offset(g.extend(A,{using:k.using}));});};g.ui.position={fit:{left:function(j,k){var m=g(window),l=k.collisionPosition.left+k.collisionWidth-m.width()-m.scrollLeft();j.left=l>0?j.left-l:Math.max(j.left-k.collisionPosition.left,j.left);},top:function(j,k){var m=g(window),l=k.collisionPosition.top+k.collisionHeight-m.height()-m.scrollTop();j.top=l>0?j.top-l:Math.max(j.top-k.collisionPosition.top,j.top);}},flip:{left:function(k,m){if(m.at[0]===a){return;}var o=g(window),n=m.collisionPosition.left+m.collisionWidth-o.width()-o.scrollLeft(),j=m.my[0]==="left"?-m.elemWidth:m.my[0]==="right"?m.elemWidth:0,l=m.at[0]==="left"?m.targetWidth:-m.targetWidth,p=-2*m.offset[0];k.left+=m.collisionPosition.left<0?j+l+p:n>0?j+l+p:0;},top:function(k,m){if(m.at[1]===a){return;}var o=g(window),n=m.collisionPosition.top+m.collisionHeight-o.height()-o.scrollTop(),j=m.my[1]==="top"?-m.elemHeight:m.my[1]==="bottom"?m.elemHeight:0,l=m.at[1]==="top"?m.targetHeight:-m.targetHeight,p=-2*m.offset[1];k.top+=m.collisionPosition.top<0?j+l+p:n>0?j+l+p:0;}}};if(!g.offset.setOffset){g.offset.setOffset=function(n,k){if(/static/.test(g.curCSS(n,"position"))){n.style.position="relative";}var m=g(n),p=m.offset(),j=parseInt(g.curCSS(n,"top",true),10)||0,o=parseInt(g.curCSS(n,"left",true),10)||0,l={top:(k.top-p.top)+j,left:(k.left-p.left)+o};if("using" in k){k.using.call(n,l);}else{m.css(l);}};g.fn.offset=function(j){var k=this[0];if(!k||!k.ownerDocument){return null;}if(j){return this.each(function(){g.offset.setOffset(this,j);});}return c.call(this);};}(function(){var j=document.getElementsByTagName("body")[0],q=document.createElement("div"),n,p,k,o,m;n=document.createElement(j?"div":"body");k={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"};if(j){jQuery.extend(k,{position:"absolute",left:"-1000px",top:"-1000px"});}for(var l in k){n.style[l]=k[l];}n.appendChild(q);p=j||document.documentElement;p.insertBefore(n,p.firstChild);q.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;";o=g(q).offset(function(u,v){return v;}).offset();n.innerHTML="";p.removeChild(n);m=o.top+o.left+(j?2000:0);f.fractions=m>21&&m<22;})();}(jQuery));(function(a,b){a.widget("ui.draggable",a.ui.mouse,{widgetEventPrefix:"drag",options:{addClasses:true,appendTo:"parent",axis:false,connectToSortable:false,containment:false,cursor:"auto",cursorAt:false,grid:false,handle:false,helper:"original",iframeFix:false,opacity:false,refreshPositions:false,revert:false,revertDuration:500,scope:"default",scroll:true,scrollSensitivity:20,scrollSpeed:20,snap:false,snapMode:"both",snapTolerance:20,stack:false,zIndex:false},_create:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative";}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit();},destroy:function(){if(!this.element.data("draggable")){return;}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this;},_mouseCapture:function(c){var d=this.options;if(this.helper||d.disabled||a(c.target).is(".ui-resizable-handle")){return false;}this.handle=this._getHandle(c);if(!this.handle){return false;}if(d.iframeFix){a(d.iframeFix===true?"iframe":d.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body");});}return true;},_mouseStart:function(c){var d=this.options;this.helper=this._createHelper(c);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this;}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.positionAbs=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:c.pageX-this.offset.left,top:c.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(c);this.originalPageX=c.pageX;this.originalPageY=c.pageY;(d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt));if(d.containment){this._setContainment();}if(this._trigger("start",c)===false){this._clear();return false;}this._cacheHelperProportions();if(a.ui.ddmanager&&!d.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,c);}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(c,true);if(a.ui.ddmanager){a.ui.ddmanager.dragStart(this,c);}return true;},_mouseDrag:function(c,e){this.position=this._generatePosition(c);this.positionAbs=this._convertPositionTo("absolute");if(!e){var d=this._uiHash();if(this._trigger("drag",c,d)===false){this._mouseUp({});return false;}this.position=d.position;}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px";}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px";}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,c);}return false;},_mouseStop:function(d){var e=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){e=a.ui.ddmanager.drop(this,d);}if(this.dropped){e=this.dropped;this.dropped=false;}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false;}if((this.options.revert=="invalid"&&!e)||(this.options.revert=="valid"&&e)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,e))){var c=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){if(c._trigger("stop",d)!==false){c._clear();}});}else{if(this._trigger("stop",d)!==false){this._clear();}}return false;},_mouseUp:function(c){if(this.options.iframeFix===true){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this);});}if(a.ui.ddmanager){a.ui.ddmanager.dragStop(this,c);}return a.ui.mouse.prototype._mouseUp.call(this,c);},cancel:function(){if(this.helper.is(".ui-draggable-dragging")){this._mouseUp({});}else{this._clear();}return this;},_getHandle:function(c){var d=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==c.target){d=true;}});return d;},_createHelper:function(d){var e=this.options;var c=a.isFunction(e.helper)?a(e.helper.apply(this.element[0],[d])):(e.helper=="clone"?this.element.clone().removeAttr("id"):this.element);if(!c.parents("body").length){c.appendTo((e.appendTo=="parent"?this.element[0].parentNode:e.appendTo));}if(c[0]!=this.element[0]&&!(/(fixed|absolute)/).test(c.css("position"))){c.css("position","absolute");}return c;},_adjustOffsetFromHelper:function(c){if(typeof c=="string"){c=c.split(" ");}if(a.isArray(c)){c={left:+c[0],top:+c[1]||0};}if("left" in c){this.offset.click.left=c.left+this.margins.left;}if("right" in c){this.offset.click.left=this.helperProportions.width-c.right+this.margins.left;}if("top" in c){this.offset.click.top=c.top+this.margins.top;}if("bottom" in c){this.offset.click.top=this.helperProportions.height-c.bottom+this.margins.top;}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var c=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){c.left+=this.scrollParent.scrollLeft();c.top+=this.scrollParent.scrollTop();}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){c={top:0,left:0};}return{top:c.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:c.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)};},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var c=this.element.position();return{top:c.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:c.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()};}else{return{top:0,left:0};}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0),right:(parseInt(this.element.css("marginRight"),10)||0),bottom:(parseInt(this.element.css("marginBottom"),10)||0)};},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()};},_setContainment:function(){var g=this.options;if(g.containment=="parent"){g.containment=this.helper[0].parentNode;}if(g.containment=="document"||g.containment=="window"){this.containment=[g.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,g.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(g.containment=="document"?0:a(window).scrollLeft())+a(g.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(g.containment=="document"?0:a(window).scrollTop())+(a(g.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];}if(!(/^(document|window|parent)$/).test(g.containment)&&g.containment.constructor!=Array){var h=a(g.containment);var e=h[0];if(!e){return;}var f=h.offset();var d=(a(e).css("overflow")!="hidden");this.containment=[(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),(d?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(a(e).css("borderLeftWidth"),10)||0)-(parseInt(a(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(d?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(a(e).css("borderTopWidth"),10)||0)-(parseInt(a(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=h;}else{if(g.containment.constructor==Array){this.containment=g.containment;}}},_convertPositionTo:function(g,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(d){var e=this.options,m=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,j=(/(html|body)/i).test(m[0].tagName);var h=d.pageX;var g=d.pageY;if(this.originalPosition){var c;if(this.containment){if(this.relative_container){var l=this.relative_container.offset();c=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top];}else{c=this.containment;}if(d.pageX-this.offset.click.left<c[0]){h=c[0]+this.offset.click.left;}if(d.pageY-this.offset.click.top<c[1]){g=c[1]+this.offset.click.top;}if(d.pageX-this.offset.click.left>c[2]){h=c[2]+this.offset.click.left;}if(d.pageY-this.offset.click.top>c[3]){g=c[3]+this.offset.click.top;}}if(e.grid){var k=e.grid[1]?this.originalPageY+Math.round((g-this.originalPageY)/e.grid[1])*e.grid[1]:this.originalPageY;g=c?(!(k-this.offset.click.top<c[1]||k-this.offset.click.top>c[3])?k:(!(k-this.offset.click.top<c[1])?k-e.grid[1]:k+e.grid[1])):k;var f=e.grid[0]?this.originalPageX+Math.round((h-this.originalPageX)/e.grid[0])*e.grid[0]:this.originalPageX;h=c?(!(f-this.offset.click.left<c[0]||f-this.offset.click.left>c[2])?f:(!(f-this.offset.click.left<c[0])?f-e.grid[0]:f+e.grid[0])):f;}}return{top:(g-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(j?0:m.scrollTop())))),left:(h-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():j?0:m.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.17"});a.ui.plugin.add("draggable","connectToSortable",{start:function(d,f){var e=a(this).data("draggable"),g=e.options,c=a.extend({},f,{item:e.element});e.sortables=[];a(g.connectToSortable).each(function(){var h=a.data(this,"sortable");if(h&&!h.options.disabled){e.sortables.push({instance:h,shouldRevert:h.options.revert});h.refreshPositions();h._trigger("activate",d,c);}});},stop:function(d,f){var e=a(this).data("draggable"),c=a.extend({},f,{item:e.element});a.each(e.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;e.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true;}this.instance._mouseStop(d);this.instance.options.helper=this.instance.options._helper;if(e.options.helper=="original"){this.instance.currentItem.css({top:"auto",left:"auto"});}}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",d,c);}});},drag:function(d,g){var f=a(this).data("draggable"),c=this;var e=function(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 u=k.top,j=k.left;return a.ui.isOver(h+q,m+p,u,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().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return g.helper[0];};d.target=this.instance.currentItem[0];this.instance._mouseCapture(d,true);this.instance._mouseStart(d,true,true);this.instance.offset.click.top=f.offset.click.top;this.instance.offset.click.left=f.offset.click.left;this.instance.offset.parent.left-=f.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=f.offset.parent.top-this.instance.offset.parent.top;f._trigger("toSortable",d);f.dropped=this.instance.element;f.currentItem=f.element;this.instance.fromOutside=f;}if(this.instance.currentItem){this.instance._mouseDrag(d);}}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",d,this.instance._uiHash(this.instance));this.instance._mouseStop(d,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();if(this.instance.placeholder){this.instance.placeholder.remove();}f._trigger("fromSortable",d);f.dropped=false;}}});}});a.ui.plugin.add("draggable","cursor",{start:function(d,e){var c=a("body"),f=a(this).data("draggable").options;if(c.css("cursor")){f._cursor=c.css("cursor");}c.css("cursor",f.cursor);},stop:function(c,d){var e=a(this).data("draggable").options;if(e._cursor){a("body").css("cursor",e._cursor);}}});a.ui.plugin.add("draggable","opacity",{start:function(d,e){var c=a(e.helper),f=a(this).data("draggable").options;if(c.css("opacity")){f._opacity=c.css("opacity");}c.css("opacity",f.opacity);},stop:function(c,d){var e=a(this).data("draggable").options;if(e._opacity){a(d.helper).css("opacity",e._opacity);}}});a.ui.plugin.add("draggable","scroll",{start:function(d,e){var c=a(this).data("draggable");if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){c.overflowOffset=c.scrollParent.offset();}},drag:function(e,f){var d=a(this).data("draggable"),g=d.options,c=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!g.axis||g.axis!="x"){if((d.overflowOffset.top+d.scrollParent[0].offsetHeight)-e.pageY<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop+g.scrollSpeed;}else{if(e.pageY-d.overflowOffset.top<g.scrollSensitivity){d.scrollParent[0].scrollTop=c=d.scrollParent[0].scrollTop-g.scrollSpeed;}}}if(!g.axis||g.axis!="y"){if((d.overflowOffset.left+d.scrollParent[0].offsetWidth)-e.pageX<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft+g.scrollSpeed;}else{if(e.pageX-d.overflowOffset.left<g.scrollSensitivity){d.scrollParent[0].scrollLeft=c=d.scrollParent[0].scrollLeft-g.scrollSpeed;}}}}else{if(!g.axis||g.axis!="x"){if(e.pageY-a(document).scrollTop()<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed);}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<g.scrollSensitivity){c=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed);}}}if(!g.axis||g.axis!="y"){if(e.pageX-a(document).scrollLeft()<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed);}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<g.scrollSensitivity){c=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed);}}}}if(c!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(d,e);}}});a.ui.plugin.add("draggable","snap",{start:function(d,e){var c=a(this).data("draggable"),f=c.options;c.snapElements=[];a(f.snap.constructor!=String?(f.snap.items||":data(draggable)"):f.snap).each(function(){var h=a(this);var g=h.offset();if(this!=c.element[0]){c.snapElements.push({item:this,width:h.outerWidth(),height:h.outerHeight(),top:g.top,left:g.left});}});},drag:function(v,p){var g=a(this).data("draggable"),q=g.options;var z=q.snapTolerance;var y=p.offset.left,x=y+g.helperProportions.width,f=p.offset.top,e=f+g.helperProportions.height;for(var w=g.snapElements.length-1;w>=0;w--){var u=g.snapElements[w].left,n=u+g.snapElements[w].width,m=g.snapElements[w].top,B=m+g.snapElements[w].height;if(!((u-z<y&&y<n+z&&m-z<f&&f<B+z)||(u-z<y&&y<n+z&&m-z<e&&e<B+z)||(u-z<x&&x<n+z&&m-z<f&&f<B+z)||(u-z<x&&x<n+z&&m-z<e&&e<B+z))){if(g.snapElements[w].snapping){(g.options.snap.release&&g.options.snap.release.call(g.element,v,a.extend(g._uiHash(),{snapItem:g.snapElements[w].item})));}g.snapElements[w].snapping=false;continue;}if(q.snapMode!="inner"){var c=Math.abs(m-e)<=z;var A=Math.abs(B-f)<=z;var j=Math.abs(u-x)<=z;var k=Math.abs(n-y)<=z;if(c){p.position.top=g._convertPositionTo("relative",{top:m-g.helperProportions.height,left:0}).top-g.margins.top;}if(A){p.position.top=g._convertPositionTo("relative",{top:B,left:0}).top-g.margins.top;}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:u-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||A||j||k);if(q.snapMode!="outer"){var c=Math.abs(m-f)<=z;var A=Math.abs(B-e)<=z;var j=Math.abs(u-y)<=z;var k=Math.abs(n-x)<=z;if(c){p.position.top=g._convertPositionTo("relative",{top:m,left:0}).top-g.margins.top;}if(A){p.position.top=g._convertPositionTo("relative",{top:B-g.helperProportions.height,left:0}).top-g.margins.top;}if(j){p.position.left=g._convertPositionTo("relative",{top:0,left:u}).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[w].snapping&&(c||A||j||k||h)){(g.options.snap.snap&&g.options.snap.snap.call(g.element,v,a.extend(g._uiHash(),{snapItem:g.snapElements[w].item})));}g.snapElements[w].snapping=(c||A||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.17"});a.ui.intersect=function(u,k,p){if(!k.offset){return false;}var e=(u.positionAbs||u.position.absolute).left,d=e+u.helperProportions.width,o=(u.positionAbs||u.position.absolute).top,n=o+u.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+(u.helperProportions.width/2)&&d-(u.helperProportions.width/2)<c&&q<o+(u.helperProportions.height/2)&&n-(u.helperProportions.height/2)<m);break;case"pointer":var h=((u.positionAbs||u.position.absolute).left+(u.clickOffset||u.offset.click).left),j=((u.positionAbs||u.position.absolute).top+(u.clickOffset||u.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;}if(g=="mousedown"){c[e]._activate.call(c[e],h);}c[e].offset=c[e].element.offset();c[e].proportions={width:c[e].element[0].offsetWidth,height:c[e].element[0].offsetHeight};}},drop:function(c,d){var e=false;a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(!this.options){return;}if(!this.options.disabled&&this.visible&&a.ui.intersect(c,this,this.options.tolerance)){e=this._drop.call(this,d)||e;}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],(c.currentItem||c.element))){this.isout=1;this.isover=0;this._deactivate.call(this,d);}});return e;},dragStart:function(c,d){c.element.parents(":not(body,html)").bind("scroll.droppable",function(){if(!c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d);}});},drag:function(c,d){if(c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d);}a.each(a.ui.ddmanager.droppables[c.options.scope]||[],function(){if(this.options.disabled||this.greedyChild||!this.visible){return;}var f=a.ui.intersect(c,this,this.options.tolerance);var h=!f&&this.isover==1?"isout":(f&&this.isover==0?"isover":null);if(!h){return;}var g;if(this.options.greedy){var e=this.element.parents(":data(droppable):eq(0)");if(e.length){g=a.data(e[0],"droppable");g.greedyChild=(h=="isover"?1:0);}}if(g&&h=="isover"){g.isover=0;g.isout=1;g._out.call(g,d);}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,d);if(g&&h=="isout"){g.isout=0;g.isover=1;g._over.call(g,d);}});},dragStop:function(c,d){c.element.parents(":not(body,html)").unbind("scroll.droppable");if(!c.options.refreshPositions){a.ui.ddmanager.prepareOffsets(c,d);}}};})(jQuery);(function(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(){if(k.disabled){return;}c(this).removeClass("ui-resizable-autohide");f._handles.show();},function(){if(k.disabled){return;}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={},u=this,k=this.originalMousePosition,p=this.axis;var v=(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,v,q]),l=c.browser.msie&&c.browser.version<7,f=this.sizeDiff;this._updateVirtualBoundaries(e.shiftKey);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.helper.width()-l),height:(n.helper.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;},_updateVirtualBoundaries:function(g){var k=this.options,j,h,f,l,e;e={minWidth:a(k.minWidth)?k.minWidth:0,maxWidth:a(k.maxWidth)?k.maxWidth:Infinity,minHeight:a(k.minHeight)?k.minHeight:0,maxHeight:a(k.maxHeight)?k.maxHeight:Infinity};if(this._aspectRatio||g){j=e.minHeight*this.aspectRatio;f=e.minWidth/this.aspectRatio;h=e.maxHeight*this.aspectRatio;l=e.maxWidth/this.aspectRatio;if(j>e.minWidth){e.minWidth=j;}if(f>e.minHeight){e.minHeight=f;}if(h<e.maxWidth){e.maxWidth=h;}if(l<e.maxHeight){e.maxHeight=l;}}this._vBoundaries=e;},_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(a(h.height)){h.width=(h.height*this.aspectRatio);}else{if(a(h.width)){h.height=(h.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._vBoundaries,v=this._aspectRatio||g.shiftKey,u=this.axis,x=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),w=a(m.height)&&j.minHeight&&(j.minHeight>m.height);if(h){m.width=j.minWidth;}if(w){m.height=j.minHeight;}if(x){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(u),e=/nw|ne|n/.test(u);if(h&&l){m.left=f-j.minWidth;}if(x&&l){m.left=f-j.maxWidth;}if(w&&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.17"});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 u=c(this),v=c(this).data("resizable-alsoresize"),q={},p=o&&o.length?o:u.parents(j.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(p,function(w,y){var x=(v[y]||0)+(l[y]||0);if(x&&x>=0){q[y]=x||null;}});if(c.browser.opera&&/relative/.test(u.css("position"))){f._revertToRelativePosition=true;u.css({position:"absolute",top:"auto",left:"auto"});}u.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,v){var x=c(this).data("resizable"),k=x.options,m=x.element;var g=k.containment,l=(g instanceof c)?g.get(0):(/parent/.test(g))?m.parent().get(0):g;if(!l){return;}x.containerElement=c(l);if(/document/.test(g)||g==document){x.containerOffset={left:0,top:0};x.containerPosition={left:0,top:0};x.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));});x.containerOffset=q.offset();x.containerPosition=q.position();x.containerSize={height:(q.innerHeight()-j[3]),width:(q.innerWidth()-j[1])};var u=x.containerOffset,e=x.containerSize.height,n=x.containerSize.width,h=(c.ui.hasScroll(l,"left")?l.scrollWidth:n),w=(c.ui.hasScroll(l)?l.scrollHeight:e);x.parentData={element:l,left:u.left,top:u.top,width:h,height:w};}},resize:function(g,u){var x=c(this).data("resizable"),j=x.options,f=x.containerSize,q=x.containerOffset,n=x.size,p=x.position,v=x._aspectRatio||g.shiftKey,e={top:0,left:0},h=x.containerElement;if(h[0]!=document&&(/static/).test(h.css("position"))){e=q;}if(p.left<(x._helper?q.left:0)){x.size.width=x.size.width+(x._helper?(x.position.left-q.left):(x.position.left-e.left));if(v){x.size.height=x.size.width/j.aspectRatio;}x.position.left=j.helper?q.left:0;}if(p.top<(x._helper?q.top:0)){x.size.height=x.size.height+(x._helper?(x.position.top-q.top):x.position.top);if(v){x.size.width=x.size.height*j.aspectRatio;}x.position.top=x._helper?q.top:0;}x.offset.left=x.parentData.left+x.position.left;x.offset.top=x.parentData.top+x.position.top;var m=Math.abs((x._helper?x.offset.left-e.left:(x.offset.left-e.left))+x.sizeDiff.width),w=Math.abs((x._helper?x.offset.top-e.top:(x.offset.top-q.top))+x.sizeDiff.height);var l=x.containerElement.get(0)==x.element.parent().get(0),k=/relative|absolute/.test(x.containerElement.css("position"));if(l&&k){m-=x.parentData.left;}if(m+x.size.width>=x.parentData.width){x.size.width=x.parentData.width-m;if(v){x.size.height=x.size.width/x.aspectRatio;}}if(w+x.size.height>=x.parentData.height){x.size.height=x.parentData.height-w;if(v){x.size.width=x.size.height*x.aspectRatio;}}},stop:function(f,p){var u=c(this).data("resizable"),g=u.options,m=u.position,n=u.containerOffset,e=u.containerPosition,j=u.containerElement;var k=c(u.helper),v=k.offset(),q=k.outerWidth()-u.sizeDiff.width,l=k.outerHeight()-u.sizeDiff.height;if(u._helper&&!g.animate&&(/relative/).test(j.css("position"))){c(this).css({left:v.left-e.left-n.left,width:q,height:l});}if(u._helper&&!g.animate&&(/static/).test(j.css("position"))){c(this).css({left:v.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.addClass("ui-selectee");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&&!e.ctrlKey){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&&!e.ctrlKey)||!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||k.ctrlKey)&&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&&!k.ctrlKey&&!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.17"});})(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?c.axis==="x"||(/left|right/).test(this.items[0].item.css("float"))||(/inline|table-cell/).test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit();},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled");this._mouseDestroy();for(var c=this.items.length-1;c>=0;c--){this.items[c].item.removeData(this.widgetName+"-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(g,h){var f=this;if(this.reverting){return false;}if(this.options.disabled||this.options.type=="static"){return false;}this._refreshItems(g);var e=null,d=this,c=a(g.target).parents().each(function(){if(a.data(this,f.widgetName+"-item")==d){e=a(this);return false;}});if(a.data(g.target,f.widgetName+"-item")==d){e=a(g.target);}if(!e){return false;}if(this.options.handle&&!h){var j=false;a(this.options.handle,e).find("*").andSelf().each(function(){if(this==g.target){j=true;}});if(!j){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({target:null});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){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],this.widgetName);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("+this.widgetName+"-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],this.widgetName);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(this.widgetName+"-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];if(f.instance!=this.currentContainer&&this.currentContainer&&f.item[0]!=this.currentItem[0]){continue;}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.parent().length){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.17"});})(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","aria-selected":"false",tabIndex:-1}).next().hide();if(!c.active.length){c.headers.eq(0).attr("tabIndex",0);}else{c.active.attr({"aria-expanded":"true","aria-selected":"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("aria-selected").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","aria-selected":"false",tabIndex:-1}).blur();c.prev().attr({"aria-expanded":"true","aria-selected":"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");if(this.toHide.length){this.toHide.parent()[0].className=this.toHide.parent()[0].className;}this._trigger("change",null,this.data);}});a.extend(a.ui.accordion,{version:"1.8.17",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(k.parent().width()-parseFloat(k.css("paddingLeft"))-parseFloat(k.css("paddingRight"))-(parseFloat(k.css("borderLeftWidth"))||0)-(parseFloat(k.css("borderRightWidth"))||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){var c=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var d=this,f=this.element[0].ownerDocument,e;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(g){if(d.options.disabled||d.element.propAttr("readOnly")){return;}e=false;var h=a.ui.keyCode;switch(g.keyCode){case h.PAGE_UP:d._move("previousPage",g);break;case h.PAGE_DOWN:d._move("nextPage",g);break;case h.UP:d._move("previous",g);g.preventDefault();break;case h.DOWN:d._move("next",g);g.preventDefault();break;case h.ENTER:case h.NUMPAD_ENTER:if(d.menu.active){e=true;g.preventDefault();}case h.TAB:if(!d.menu.active){return;}d.menu.select(g);break;case h.ESCAPE:d.element.val(d.term);d.close(g);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,g);}},d.options.delay);break;}}).bind("keypress.autocomplete",function(g){if(e){e=false;g.preventDefault();}}).bind("focus.autocomplete",function(){if(d.options.disabled){return;}d.selectedItem=null;d.previous=d.element.val();}).bind("blur.autocomplete",function(g){if(d.options.disabled){return;}clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(g);d._change(g);},150);});this._initSource();this.response=function(){return d._response.apply(d,arguments);};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",f)[0]).mousedown(function(g){var h=d.menu.element[0];if(!a(g.target).closest(".ui-menu-item").length){setTimeout(function(){a(document).one("mousedown",function(j){if(j.target!==d.element[0]&&j.target!==h&&!a.ui.contains(h,j.target)){d.close();}});},1);}setTimeout(function(){clearTimeout(d.closing);},13);}).menu({focus:function(h,j){var g=j.item.data("item.autocomplete");if(false!==d._trigger("focus",h,{item:g})){if(/^key/.test(h.originalEvent.type)){d.element.val(g.value);}}},selected:function(j,k){var h=k.item.data("item.autocomplete"),g=d.previous;if(d.element[0]!==f.activeElement){d.element.focus();d.previous=g;setTimeout(function(){d.previous=g;d.selectedItem=h;},1);}if(false!==d._trigger("select",j,{item:h})){d.element.val(h.value);}d.term=d.element.val();d.close(j);d.selectedItem=h;},blur:function(g,h){if(d.menu.element.is(":visible")&&(d.element.val()!==d.term)){d.element.val(d.term);}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if(a.fn.bgiframe){this.menu.element.bgiframe();}d.beforeunloadHandler=function(){d.element.removeAttr("autocomplete");};a(window).bind("beforeunload",d.beforeunloadHandler);},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a(window).unbind("beforeunload",this.beforeunloadHandler);a.Widget.prototype.destroy.call(this);},_setOption:function(d,e){a.Widget.prototype._setOption.apply(this,arguments);if(d==="source"){this._initSource();}if(d==="appendTo"){this.menu.element.appendTo(a(e||"body",this.element[0].ownerDocument)[0]);}if(d==="disabled"&&e&&this.xhr){this.xhr.abort();}},_initSource:function(){var d=this,f,e;if(a.isArray(this.options.source)){f=this.options.source;this.source=function(h,g){g(a.ui.autocomplete.filter(f,h.term));};}else{if(typeof this.options.source==="string"){e=this.options.source;this.source=function(h,g){if(d.xhr){d.xhr.abort();}d.xhr=a.ajax({url:e,data:h,dataType:"json",autocompleteRequest:++c,success:function(k,j){if(this.autocompleteRequest===c){g(k);}},error:function(){if(this.autocompleteRequest===c){g([]);}}});};}else{this.source=this.options.source;}}},search:function(e,d){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength){return this.close(d);}clearTimeout(this.closing);if(this._trigger("search",d)===false){return;}return this._search(e);},_search:function(d){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:d},this.response);},_response:function(d){if(!this.options.disabled&&d&&d.length){d=this._normalize(d);this._suggest(d);this._trigger("open");}else{this.close();}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading");}},close:function(d){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",d);}},_change:function(d){if(this.previous!==this.element.val()){this._trigger("change",d,{item:this.selectedItem});}},_normalize:function(d){if(d.length&&d[0].label&&d[0].value){return d;}return a.map(d,function(e){if(typeof e==="string"){return{label:e,value:e};}return a.extend({label:e.label||e.value,value:e.value||e.label},e);});},_suggest:function(d){var e=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(e,d);this.menu.deactivate();this.menu.refresh();e.show();this._resizeMenu();e.position(a.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next(new a.Event("mouseover"));}},_resizeMenu:function(){var d=this.menu.element;d.outerWidth(Math.max(d.width("").outerWidth()+1,this.element.outerWidth()));},_renderMenu:function(f,e){var d=this;a.each(e,function(g,h){d._renderItem(f,h);});},_renderItem:function(d,e){return a("<li></li>").data("item.autocomplete",e).append(a("<a></a>").text(e.label)).appendTo(d);},_move:function(e,d){if(!this.menu.element.is(":visible")){this.search(null,d);return;}if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate();return;}this.menu[e](d);},widget:function(){return this.menu.element;}});a.extend(a.ui.autocomplete,{escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");},filter:function(f,d){var e=new RegExp(a.ui.autocomplete.escapeRegex(d),"i");return a.grep(f,function(g){return e.test(g.label||g.value||g);});}});}(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.scrollTop(),c=this.element.height();if(f<0){this.element.scrollTop(b+f);}else{if(f>=c){this.element.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[a.fn.prop?"prop":"attr"]("scrollHeight");},select:function(b){this._trigger("selected",b,{item:this.active});}});}(jQuery));(function(f,b){var l,e,a,h,j="ui-button ui-widget ui-state-default ui-corner-all",c="ui-state-hover ui-state-active ",g="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",k=function(){var m=f(this).find(":ui-button");setTimeout(function(){m.button("refresh");},1);},d=function(n){var m=n.name,o=n.form,p=f([]);if(m){if(o){p=f(o).find("[name='"+m+"']");}else{p=f("[name='"+m+"']",n.ownerDocument).filter(function(){return !this.form;});}}return p;};f.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",k);if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.propAttr("disabled");}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var m=this,o=this.options,p=this.type==="checkbox"||this.type==="radio",q="ui-state-hover"+(!p?" ui-state-active":""),n="ui-state-focus";if(o.label===null){o.label=this.buttonElement.html();}if(this.element.is(":disabled")){o.disabled=true;}this.buttonElement.addClass(j).attr("role","button").bind("mouseenter.button",function(){if(o.disabled){return;}f(this).addClass("ui-state-hover");if(this===l){f(this).addClass("ui-state-active");}}).bind("mouseleave.button",function(){if(o.disabled){return;}f(this).removeClass(q);}).bind("click.button",function(u){if(o.disabled){u.preventDefault();u.stopImmediatePropagation();}});this.element.bind("focus.button",function(){m.buttonElement.addClass(n);}).bind("blur.button",function(){m.buttonElement.removeClass(n);});if(p){this.element.bind("change.button",function(){if(h){return;}m.refresh();});this.buttonElement.bind("mousedown.button",function(u){if(o.disabled){return;}h=false;e=u.pageX;a=u.pageY;}).bind("mouseup.button",function(u){if(o.disabled){return;}if(e!==u.pageX||a!==u.pageY){h=true;}});}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(o.disabled||h){return false;}f(this).toggleClass("ui-state-active");m.buttonElement.attr("aria-pressed",m.element[0].checked);});}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(o.disabled||h){return false;}f(this).addClass("ui-state-active");m.buttonElement.attr("aria-pressed","true");var u=m.element[0];d(u).not(u).map(function(){return f(this).button("widget")[0];}).removeClass("ui-state-active").attr("aria-pressed","false");});}else{this.buttonElement.bind("mousedown.button",function(){if(o.disabled){return false;}f(this).addClass("ui-state-active");l=this;f(document).one("mouseup",function(){l=null;});}).bind("mouseup.button",function(){if(o.disabled){return false;}f(this).removeClass("ui-state-active");}).bind("keydown.button",function(u){if(o.disabled){return false;}if(u.keyCode==f.ui.keyCode.SPACE||u.keyCode==f.ui.keyCode.ENTER){f(this).addClass("ui-state-active");}}).bind("keyup.button",function(){f(this).removeClass("ui-state-active");});if(this.buttonElement.is("a")){this.buttonElement.keyup(function(u){if(u.keyCode===f.ui.keyCode.SPACE){f(this).click();}});}}}this._setOption("disabled",o.disabled);this._resetButton();},_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"){var m=this.element.parents().filter(":last"),o="label[for='"+this.element.attr("id")+"']";this.buttonElement=m.find(o);if(!this.buttonElement.length){m=m.length?m.siblings():this.element.siblings();this.buttonElement=m.filter(o);if(!this.buttonElement.length){this.buttonElement=m.find(o);}}this.element.addClass("ui-helper-hidden-accessible");var n=this.element.is(":checked");if(n){this.buttonElement.addClass("ui-state-active");}this.buttonElement.attr("aria-pressed",n);}else{this.buttonElement=this.element;}},widget:function(){return this.buttonElement;},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass(j+" "+c+" "+g).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());if(!this.hasTitle){this.buttonElement.removeAttr("title");}f.Widget.prototype.destroy.call(this);},_setOption:function(m,n){f.Widget.prototype._setOption.apply(this,arguments);if(m==="disabled"){if(n){this.element.propAttr("disabled",true);}else{this.element.propAttr("disabled",false);}return;}this._resetButton();},refresh:function(){var m=this.element.is(":disabled");if(m!==this.options.disabled){this._setOption("disabled",m);}if(this.type==="radio"){d(this.element[0]).each(function(){if(f(this).is(":checked")){f(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true");}else{f(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 q=this.buttonElement.removeClass(g),o=f("<span></span>",this.element[0].ownerDocument).addClass("ui-button-text").html(this.options.label).appendTo(q.empty()).text(),n=this.options.icons,m=n.primary&&n.secondary,p=[];if(n.primary||n.secondary){if(this.options.text){p.push("ui-button-text-icon"+(m?"s":(n.primary?"-primary":"-secondary")));}if(n.primary){q.prepend("<span class='ui-button-icon-primary ui-icon "+n.primary+"'></span>");}if(n.secondary){q.append("<span class='ui-button-icon-secondary ui-icon "+n.secondary+"'></span>");}if(!this.options.text){p.push(m?"ui-button-icons-only":"ui-button-icon-only");if(!this.hasTitle){q.attr("title",o);}}}else{p.push("ui-button-text-only");}q.addClass(p.join(" "));}});f.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(m,n){if(m==="disabled"){this.buttons.button("option",m,n);}f.Widget.prototype._setOption.apply(this,arguments);},refresh:function(){var m=this.element.css("direction")==="rtl";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return f(this).button("widget")[0];}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(m?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(m?"ui-corner-left":"ui-corner-right").end().end();},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return f(this).button("widget")[0];}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");f.Widget.prototype.destroy.call(this);}});}(jQuery));(function(e,f){var c="ui-dialog ui-widget ui-widget-content ui-corner-all ",b={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},d={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},a=e.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};e.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(h){var g=e(this).css(h).offset().top;if(g<0){e(this).css("top",h.top-g);}}},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 p=this,q=p.options,n=q.title||"&#160;",h=e.ui.dialog.getTitleId(p.element),o=(p.uiDialog=e("<div></div>")).appendTo(document.body).hide().addClass(c+q.dialogClass).css({zIndex:q.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(u){if(q.closeOnEscape&&!u.isDefaultPrevented()&&u.keyCode&&u.keyCode===e.ui.keyCode.ESCAPE){p.close(u);u.preventDefault();}}).attr({role:"dialog","aria-labelledby":h}).mousedown(function(u){p.moveToTop(false,u);}),k=p.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(o),j=(p.uiDialogTitlebar=e("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(o),m=e('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){m.addClass("ui-state-hover");},function(){m.removeClass("ui-state-hover");}).focus(function(){m.addClass("ui-state-focus");}).blur(function(){m.removeClass("ui-state-focus");}).click(function(u){p.close(u);return false;}).appendTo(j),l=(p.uiDialogTitlebarCloseText=e("<span></span>")).addClass("ui-icon ui-icon-closethick").text(q.closeText).appendTo(m),g=e("<span></span>").addClass("ui-dialog-title").attr("id",h).html(n).prependTo(j);if(e.isFunction(q.beforeclose)&&!e.isFunction(q.beforeClose)){q.beforeClose=q.beforeclose;}j.find("*").add(j).disableSelection();if(q.draggable&&e.fn.draggable){p._makeDraggable();}if(q.resizable&&e.fn.resizable){p._makeResizable();}p._createButtons(q.buttons);p._isOpen=false;if(e.fn.bgiframe){o.bgiframe();}},_init:function(){if(this.options.autoOpen){this.open();}},destroy:function(){var g=this;if(g.overlay){g.overlay.destroy();}g.uiDialog.hide();g.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");g.uiDialog.remove();if(g.originalTitle){g.element.attr("title",g.originalTitle);}return g;},widget:function(){return this.uiDialog;},close:function(k){var g=this,j,h;if(false===g._trigger("beforeClose",k)){return;}if(g.overlay){g.overlay.destroy();}g.uiDialog.unbind("keypress.ui-dialog");g._isOpen=false;if(g.options.hide){g.uiDialog.hide(g.options.hide,function(){g._trigger("close",k);});}else{g.uiDialog.hide();g._trigger("close",k);}e.ui.dialog.overlay.resize();if(g.options.modal){j=0;e(".ui-dialog").each(function(){if(this!==g.uiDialog[0]){h=e(this).css("z-index");if(!isNaN(h)){j=Math.max(j,h);}}});e.ui.dialog.maxZ=j;}return g;},isOpen:function(){return this._isOpen;},moveToTop:function(l,k){var g=this,j=g.options,h;if((j.modal&&!l)||(!j.stack&&!j.modal)){return g._trigger("focus",k);}if(j.zIndex>e.ui.dialog.maxZ){e.ui.dialog.maxZ=j.zIndex;}if(g.overlay){e.ui.dialog.maxZ+=1;g.overlay.$el.css("z-index",e.ui.dialog.overlay.maxZ=e.ui.dialog.maxZ);}h={scrollTop:g.element.scrollTop(),scrollLeft:g.element.scrollLeft()};e.ui.dialog.maxZ+=1;g.uiDialog.css("z-index",e.ui.dialog.maxZ);g.element.attr(h);g._trigger("focus",k);return g;},open:function(){if(this._isOpen){return;}var h=this,j=h.options,g=h.uiDialog;h.overlay=j.modal?new e.ui.dialog.overlay(h):null;h._size();h._position(j.position);g.show(j.show);h.moveToTop(true);if(j.modal){g.bind("keydown.ui-dialog",function(m){if(m.keyCode!==e.ui.keyCode.TAB){return;}var l=e(":tabbable",this),n=l.filter(":first"),k=l.filter(":last");if(m.target===k[0]&&!m.shiftKey){n.focus(1);return false;}else{if(m.target===n[0]&&m.shiftKey){k.focus(1);return false;}}});}e(h.element.find(":tabbable").get().concat(g.find(".ui-dialog-buttonpane :tabbable").get().concat(g.get()))).eq(0).focus();h._isOpen=true;h._trigger("open");return h;},_createButtons:function(k){var j=this,g=false,h=e("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),l=e("<div></div>").addClass("ui-dialog-buttonset").appendTo(h);j.uiDialog.find(".ui-dialog-buttonpane").remove();if(typeof k==="object"&&k!==null){e.each(k,function(){return !(g=true);});}if(g){e.each(k,function(m,o){o=e.isFunction(o)?{click:o,text:m}:o;var n=e('<button type="button"></button>').click(function(){o.click.apply(j.element[0],arguments);}).appendTo(l);e.each(o,function(p,q){if(p==="click"){return;}if(p in a){n[p](q);}else{n.attr(p,q);}});if(e.fn.button){n.button();}});h.appendTo(j.uiDialog);}},_makeDraggable:function(){var g=this,k=g.options,l=e(document),j;function h(m){return{position:m.position,offset:m.offset};}g.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(m,n){j=k.height==="auto"?"auto":e(this).height();e(this).height(e(this).height()).addClass("ui-dialog-dragging");g._trigger("dragStart",m,h(n));},drag:function(m,n){g._trigger("drag",m,h(n));},stop:function(m,n){k.position=[n.position.left-l.scrollLeft(),n.position.top-l.scrollTop()];e(this).removeClass("ui-dialog-dragging").height(j);g._trigger("dragStop",m,h(n));e.ui.dialog.overlay.resize();}});},_makeResizable:function(m){m=(m===f?this.options.resizable:m);var h=this,l=h.options,g=h.uiDialog.css("position"),k=(typeof m==="string"?m:"n,e,s,w,se,sw,ne,nw");function j(n){return{originalPosition:n.originalPosition,originalSize:n.originalSize,position:n.position,size:n.size};}h.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:h.element,maxWidth:l.maxWidth,maxHeight:l.maxHeight,minWidth:l.minWidth,minHeight:h._minHeight(),handles:k,start:function(n,o){e(this).addClass("ui-dialog-resizing");h._trigger("resizeStart",n,j(o));},resize:function(n,o){h._trigger("resize",n,j(o));},stop:function(n,o){e(this).removeClass("ui-dialog-resizing");l.height=e(this).height();l.width=e(this).width();h._trigger("resizeStop",n,j(o));e.ui.dialog.overlay.resize();}}).css("position",g).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se");},_minHeight:function(){var g=this.options;if(g.height==="auto"){return g.minHeight;}else{return Math.min(g.minHeight,g.height);}},_position:function(h){var j=[],k=[0,0],g;if(h){if(typeof h==="string"||(typeof h==="object"&&"0" in h)){j=h.split?h.split(" "):[h[0],h[1]];if(j.length===1){j[1]=j[0];}e.each(["left","top"],function(m,l){if(+j[m]===j[m]){k[m]=j[m];j[m]=l;}});h={my:j.join(" "),at:j.join(" "),offset:k.join(" ")};}h=e.extend({},e.ui.dialog.prototype.options.position,h);}else{h=e.ui.dialog.prototype.options.position;}g=this.uiDialog.is(":visible");if(!g){this.uiDialog.show();}this.uiDialog.css({top:0,left:0}).position(e.extend({of:window},h));if(!g){this.uiDialog.hide();}},_setOptions:function(k){var h=this,g={},j=false;e.each(k,function(l,m){h._setOption(l,m);if(l in b){j=true;}if(l in d){g[l]=m;}});if(j){this._size();}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option",g);}},_setOption:function(k,l){var h=this,g=h.uiDialog;switch(k){case"beforeclose":k="beforeClose";break;case"buttons":h._createButtons(l);break;case"closeText":h.uiDialogTitlebarCloseText.text(""+l);break;case"dialogClass":g.removeClass(h.options.dialogClass).addClass(c+l);break;case"disabled":if(l){g.addClass("ui-dialog-disabled");}else{g.removeClass("ui-dialog-disabled");}break;case"draggable":var j=g.is(":data(draggable)");if(j&&!l){g.draggable("destroy");}if(!j&&l){h._makeDraggable();}break;case"position":h._position(l);break;case"resizable":var m=g.is(":data(resizable)");if(m&&!l){g.resizable("destroy");}if(m&&typeof l==="string"){g.resizable("option","handles",l);}if(!m&&l!==false){h._makeResizable(l);}break;case"title":e(".ui-dialog-title",h.uiDialogTitlebar).html(""+(l||"&#160;"));break;}e.Widget.prototype._setOption.apply(h,arguments);},_size:function(){var l=this.options,h,k,g=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(l.minWidth>l.width){l.width=l.minWidth;}h=this.uiDialog.css({height:"auto",width:l.width}).height();k=Math.max(0,l.minHeight-h);if(l.height==="auto"){if(e.support.minHeight){this.element.css({minHeight:k,height:"auto"});}else{this.uiDialog.show();var j=this.element.css("height","auto").height();if(!g){this.uiDialog.hide();}this.element.height(Math.max(j,k));}}else{this.element.height(Math.max(l.height-h,0));}if(this.uiDialog.is(":data(resizable)")){this.uiDialog.resizable("option","minHeight",this._minHeight());}}});e.extend(e.ui.dialog,{version:"1.8.17",uuid:0,maxZ:0,getTitleId:function(g){var h=g.attr("id");if(!h){this.uuid+=1;h=this.uuid;}return"ui-dialog-title-"+h;},overlay:function(g){this.$el=e.ui.dialog.overlay.create(g);}});e.extend(e.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:e.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(g){return g+".dialog-overlay";}).join(" "),create:function(h){if(this.instances.length===0){setTimeout(function(){if(e.ui.dialog.overlay.instances.length){e(document).bind(e.ui.dialog.overlay.events,function(j){if(e(j.target).zIndex()<e.ui.dialog.overlay.maxZ){return false;}});}},1);e(document).bind("keydown.dialog-overlay",function(j){if(h.options.closeOnEscape&&!j.isDefaultPrevented()&&j.keyCode&&j.keyCode===e.ui.keyCode.ESCAPE){h.close(j);j.preventDefault();}});e(window).bind("resize.dialog-overlay",e.ui.dialog.overlay.resize);}var g=(this.oldInstances.pop()||e("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});if(e.fn.bgiframe){g.bgiframe();}this.instances.push(g);return g;},destroy:function(g){var h=e.inArray(g,this.instances);if(h!=-1){this.oldInstances.push(this.instances.splice(h,1)[0]);}if(this.instances.length===0){e([document,window]).unbind(".dialog-overlay");}g.remove();var j=0;e.each(this.instances,function(){j=Math.max(j,this.css("z-index"));});this.maxZ=j;},height:function(){var h,g;if(e.browser.msie&&e.browser.version<7){h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);g=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(h<g){return e(window).height()+"px";}else{return h+"px";}}else{return e(document).height()+"px";}},width:function(){var g,h;if(e.browser.msie){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);h=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(g<h){return e(window).width()+"px";}else{return g+"px";}}else{return e(document).width()+"px";}},resize:function(){var g=e([]);e.each(e.ui.dialog.overlay.instances,function(){g=g.add(this);});g.css({width:0,height:0}).css({width:e.ui.dialog.overlay.width(),height:e.ui.dialog.overlay.height()});}});e.extend(e.ui.dialog.overlay.prototype,{destroy:function(){e.ui.dialog.overlay.destroy(this.$el);}});}(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 e=this,k=this.options,j=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),h="<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>",d=(k.values&&k.values.length)||1,g=[];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"+(k.disabled?" ui-slider-disabled ui-disabled":""));this.range=b([]);if(k.range){if(k.range===true){if(!k.values){k.values=[this._valueMin(),this._valueMin()];}if(k.values.length&&k.values.length!==2){k.values=[k.values[0],k.values[0]];}}this.range=b("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+((k.range==="min"||k.range==="max")?" ui-slider-range-"+k.range:""));}for(var f=j.length;f<d;f+=1){g.push(h);}this.handles=j.add(b(g.join("")).appendTo(e.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(l){l.preventDefault();}).hover(function(){if(!k.disabled){b(this).addClass("ui-state-hover");}},function(){b(this).removeClass("ui-state-hover");}).focus(function(){if(!k.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(l){b(this).data("index.ui-slider-handle",l);});this.handles.keydown(function(q){var n=true,m=b(this).data("index.ui-slider-handle"),u,o,l,p;if(e.options.disabled){return;}switch(q.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:n=false;if(!e._keySliding){e._keySliding=true;b(this).addClass("ui-state-active");u=e._start(q,m);if(u===false){return;}}break;}p=e.options.step;if(e.options.values&&e.options.values.length){o=l=e.values(m);}else{o=l=e.value();}switch(q.keyCode){case b.ui.keyCode.HOME:l=e._valueMin();break;case b.ui.keyCode.END:l=e._valueMax();break;case b.ui.keyCode.PAGE_UP:l=e._trimAlignValue(o+((e._valueMax()-e._valueMin())/a));break;case b.ui.keyCode.PAGE_DOWN:l=e._trimAlignValue(o-((e._valueMax()-e._valueMin())/a));break;case b.ui.keyCode.UP:case b.ui.keyCode.RIGHT:if(o===e._valueMax()){return;}l=e._trimAlignValue(o+p);break;case b.ui.keyCode.DOWN:case b.ui.keyCode.LEFT:if(o===e._valueMin()){return;}l=e._trimAlignValue(o-p);break;}e._slide(q,m,l);return n;}).keyup(function(m){var l=b(this).data("index.ui-slider-handle");if(e._keySliding){e._keySliding=false;e._stop(m,l);e._change(m,l);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;}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);return;}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.propAttr("disabled",true);this.element.addClass("ui-disabled");}else{this.handles.propAttr("disabled",false);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(g){if(g<=this._valueMin()){return this._valueMin();}if(g>=this._valueMax()){return this._valueMax();}var d=(this.options.step>0)?this.options.step:1,f=(g-this._valueMin())%d,e=g-f;if(Math.abs(f)*2>=d){e+=(f>0)?d:(-d);}return parseFloat(e.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.17"});}(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(w){var x=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(z,o){var y=d(o).attr("href");var A=y.split("#")[0],B;if(A&&(A===location.toString().split("#")[0]||(B=d("base")[0])&&A===B.href)){y=o.hash;o.href=y;}if(h.test(y)){x.panels=x.panels.add(x.element.find(x._sanitizeSelector(y)));}else{if(y&&y!=="#"){d.data(o,"href.tabs",y);d.data(o,"load.tabs",y.replace(/#.*$/,""));var D=x._tabId(o);o.href="#"+D;var C=x.element.find("#"+D);if(!C.length){C=d(j.panelTemplate).attr("id",D).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(x.panels[z-1]||x.list);C.data("destroy.tabs",true);}x.panels=x.panels.add(C);}else{j.disabled.push(z);}}});if(w){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(y,o){if(o.hash==location.hash){j.selected=y;return false;}});}if(typeof j.selected!=="number"&&j.cookie){j.selected=parseInt(x._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(y,o){return x.lis.index(y);}))).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){x.element.find(x._sanitizeSelector(x.anchors[j.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(j.selected).addClass("ui-tabs-selected ui-state-active");x.element.queue("tabs",function(){x._trigger("show",null,x._ui(x.anchors[j.selected],x.element.find(x._sanitizeSelector(x.anchors[j.selected].hash))[0]));});this.load(j.selected);}d(window).bind("unload",function(){x.lis.add(x.anchors).unbind(".tabs");x.lis=x.anchors=x.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,v;(v=this.lis[m]);m++){d(v)[d.inArray(m,j.disabled)!=-1&&!d(v).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(y,o){if(o.is(":not(.ui-state-disabled)")){o.addClass("ui-state-"+y);}};var p=function(y,o){o.removeClass("ui-state-"+y);};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,y){o.css("display","");if(!d.support.opacity&&y.opacity){o[0].style.removeAttribute("filter");}}var q=n?function(o,y){d(o).closest("li").addClass("ui-tabs-selected ui-state-active");y.hide().removeClass("ui-tabs-hide").animate(n,n.duration||"normal",function(){k(y,n);x._trigger("show",null,x._ui(o,y[0]));});}:function(o,y){d(o).closest("li").addClass("ui-tabs-selected ui-state-active");y.removeClass("ui-tabs-hide");x._trigger("show",null,x._ui(o,y[0]));};var u=g?function(y,o){o.animate(g,g.duration||"normal",function(){x.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");k(o,g);x.element.dequeue("tabs");});}:function(y,o,z){x.lis.removeClass("ui-tabs-selected ui-state-active");o.addClass("ui-tabs-hide");x.element.dequeue("tabs");};this.anchors.bind(j.event+".tabs",function(){var y=this,A=d(y).closest("li"),o=x.panels.filter(":not(.ui-tabs-hide)"),z=x.element.find(x._sanitizeSelector(y.hash));if((A.hasClass("ui-tabs-selected")&&!j.collapsible)||A.hasClass("ui-state-disabled")||A.hasClass("ui-state-processing")||x.panels.filter(":animated").length||x._trigger("select",null,x._ui(this,z[0]))===false){this.blur();return false;}j.selected=x.anchors.index(this);x.abort();if(j.collapsible){if(A.hasClass("ui-tabs-selected")){j.selected=-1;if(j.cookie){x._cookie(j.selected,j.cookie);}x.element.queue("tabs",function(){u(y,o);}).dequeue("tabs");this.blur();return false;}else{if(!o.length){if(j.cookie){x._cookie(j.selected,j.cookie);}x.element.queue("tabs",function(){q(y,z);});x.load(x.anchors.index(this));this.blur();return false;}}}if(j.cookie){x._cookie(j.selected,j.cookie);}if(z.length){if(o.length){x.element.queue("tabs",function(){u(y,o);});}x.element.queue("tabs",function(){q(y,z);});x.load(x.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.17"});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($,undefined){$.extend($.ui,{datepicker:{version:"1.8.17"}});var PROP_NAME="datepicker";var dpuuid=new Date().getTime();var instActive;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,disabled:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=bindHover($('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'));}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",maxRows:4,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:bindHover($('<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);if(inst.settings.disabled){this._disableDatepicker(target);}},_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);if(inst.settings.disabled){this._disableDatepicker(target);}inst.dpDiv.css("display","block");},_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");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("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");inline.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","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);var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate);}if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate);}this._attachments($(target),inst);this._autoSize(inst);this._setDate(inst,date);this._updateAlternate(inst);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]);}var onSelect=$.datepicker._get(inst,"onSelect");if(onSelect){var dateStr=$.datepicker._formatDate(inst);onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst]);}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);if(inst&&$.datepicker._datepickerShowing){$.datepicker._hideDatepicker($.datepicker._curInst.input[0]);}}var beforeShow=$.datepicker._get(inst,"beforeShow");var beforeShowSettings=beforeShow?beforeShow.apply(input,[input,inst]):{};if(beforeShowSettings===false){return;}extendRemove(inst.settings,beforeShowSettings);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(){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);$.datepicker._datepickerShowing=true;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;self.maxRows=4;var borders=$.datepicker._getBorders(inst.dpDiv);instActive=inst;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("."+this._dayOverClass+" a").mouseover();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em");}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[0]!=document.activeElement){inst.input.focus();}if(inst.yearshtml){var origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml&&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||$.expr.filters.hidden(obj))){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 self=this;var postProcess=function(){$.datepicker._tidyDialog(inst);self._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();}this._datepickerShowing=false;var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst]);}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),inst=$.datepicker._getInst($target[0]);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)))||($target.hasClass($.datepicker.markerClassName)&&$.datepicker._curInst!=inst)){$.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["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target);},_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;shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));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=$.map(lookAhead(match)?longNames:shortNames,function(v,k){return[[k,v]];}).sort(function(a,b){return -(a[1].length-b[1].length);});var index=-1;$.each(names,function(i,pair){var name=pair[1];if(value.substr(iValue,name.length).toLowerCase()==name.toLowerCase()){index=pair[0];iValue+=name.length;return false;}});if(index!=-1){return index+1;}else{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(iValue<value.length){throw"Extra/unparsed characters found in date: "+value.substring(iValue);}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",Math.round((new Date(date.getFullYear(),date.getMonth(),date.getDate()).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="";this.maxRows=4;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 curRows=Math.ceil((leadDays+daysInMonth)/7);var numRows=(isMultiMonth?this.maxRows>curRows?this.maxRows:curRows:curRows);this.maxRows=numRows;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');\" >";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;":"");}if(!inst.yearshtml){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');\" >";for(;year<=endYear;year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>";}inst.yearshtml+="</select>";html+=inst.yearshtml;inst.yearshtml=null;}}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-this._daylightSavingAdjust(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 bindHover(dpDiv){var selector="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return dpDiv.bind("mouseout",function(event){var elem=$(event.target).closest(selector);if(!elem.length){return;}elem.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover");}).bind("mouseover",function(event){var elem=$(event.target).closest(selector);if($.datepicker._isDisabledDatepicker(instActive.inline?dpDiv.parent()[0]:instActive.input[0])||!elem.length){return;}elem.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");elem.addClass("ui-state-hover");if(elem.hasClass("ui-datepicker-prev")){elem.addClass("ui-datepicker-prev-hover");}if(elem.hasClass("ui-datepicker-next")){elem.addClass("ui-datepicker-next-hover");}});}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(!this.length){return this;}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.17";window["DP_jQuery_"+dpuuid]=$;})(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.toggle(d>this.min).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.17"});})(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,u={},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(v,w){return w.toUpperCase();});u[p]=q[o];}}}else{for(o in q){if(typeof q[o]==="string"){u[o]=q[o];}}}return u;}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(function(){var x=h(this),u=x.attr("style")||" ",y=b(g.call(this)),w,v=x.attr("class");h.each(f,function(z,A){if(n[A]){x[A+"Class"](n[A]);}});w=b(g.call(this));x.attr("class",v);x.animate(j(y,w),{queue:false,duration:o,easing:q,complete:function(){h.each(f,function(z,A){if(n[A]){x[A+"Class"](n[A]);}});if(typeof x.attr("style")=="object"){x.attr("style").cssText="";x.attr("style").cssText=u;}else{x.attr("style",u);}if(p){p.apply(this,arguments);}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,u,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,u,q]);}}else{return h.effects.animateClass.apply(this,[{toggle:p},o,n,u]);}},switchClass:function(n,p,o,u,q){return h.effects.animateClass.apply(this,[{add:p,remove:n},o,u,q]);}});h.extend(h.effects,{version:"1.8.17",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")},q=h("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),p=document.activeElement;n.wrap(q);if(n[0]===p||h.contains(n[0],p)){h(p).focus();}q=n.parent();if(n.css("position")=="static"){q.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(u,v){o[v]=n.css(v);if(isNaN(parseInt(o[v],10))){o[v]="auto";}});n.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"});}return q.css(o).show();},removeWrapper:function(n){var o,p=document.activeElement;if(n.parent().is(".ui-effects-wrapper")){o=n.parent().replaceWith(n);if(n[0]===p||h.contains(n[0],p)){h(p).focus();}return o;}return n;},setTransition:function(o,q,n,p){p=p||{};h.each(q,function(v,u){unit=o.cssUnit(u);if(unit[0]>0){p[u]=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,v,x){var o=d.apply(this,arguments),u={options:o[1],duration:o[2],callback:o[3]},w=u.options.mode,n=h.effects[q];if(h.fx.off||!n){if(w){return this[w](u.duration,u.callback);}else{return this.each(function(){if(u.callback){u.callback.call(this);}});}}return n.call(this,u);},_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,u){if(o.indexOf(u)>0){p=[parseFloat(o),u];}});return p;}});h.easing.jswing=h.easing.swing;h.extend(h.easing,{def:"easeOutQuad",swing:function(o,p,n,u,q){return h.easing[h.easing.def](o,p,n,u,q);},easeInQuad:function(o,p,n,u,q){return u*(p/=q)*p+n;},easeOutQuad:function(o,p,n,u,q){return -u*(p/=q)*(p-2)+n;},easeInOutQuad:function(o,p,n,u,q){if((p/=q/2)<1){return u/2*p*p+n;}return -u/2*((--p)*(p-2)-1)+n;},easeInCubic:function(o,p,n,u,q){return u*(p/=q)*p*p+n;},easeOutCubic:function(o,p,n,u,q){return u*((p=p/q-1)*p*p+1)+n;},easeInOutCubic:function(o,p,n,u,q){if((p/=q/2)<1){return u/2*p*p*p+n;}return u/2*((p-=2)*p*p+2)+n;},easeInQuart:function(o,p,n,u,q){return u*(p/=q)*p*p*p+n;},easeOutQuart:function(o,p,n,u,q){return -u*((p=p/q-1)*p*p*p-1)+n;},easeInOutQuart:function(o,p,n,u,q){if((p/=q/2)<1){return u/2*p*p*p*p+n;}return -u/2*((p-=2)*p*p*p-2)+n;},easeInQuint:function(o,p,n,u,q){return u*(p/=q)*p*p*p*p+n;},easeOutQuint:function(o,p,n,u,q){return u*((p=p/q-1)*p*p*p*p+1)+n;},easeInOutQuint:function(o,p,n,u,q){if((p/=q/2)<1){return u/2*p*p*p*p*p+n;}return u/2*((p-=2)*p*p*p*p+2)+n;},easeInSine:function(o,p,n,u,q){return -u*Math.cos(p/q*(Math.PI/2))+u+n;},easeOutSine:function(o,p,n,u,q){return u*Math.sin(p/q*(Math.PI/2))+n;},easeInOutSine:function(o,p,n,u,q){return -u/2*(Math.cos(Math.PI*p/q)-1)+n;},easeInExpo:function(o,p,n,u,q){return(p==0)?n:u*Math.pow(2,10*(p/q-1))+n;},easeOutExpo:function(o,p,n,u,q){return(p==q)?n+u:u*(-Math.pow(2,-10*p/q)+1)+n;},easeInOutExpo:function(o,p,n,u,q){if(p==0){return n;}if(p==q){return n+u;}if((p/=q/2)<1){return u/2*Math.pow(2,10*(p-1))+n;}return u/2*(-Math.pow(2,-10*--p)+2)+n;},easeInCirc:function(o,p,n,u,q){return -u*(Math.sqrt(1-(p/=q)*p)-1)+n;},easeOutCirc:function(o,p,n,u,q){return u*Math.sqrt(1-(p=p/q-1)*p)+n;},easeInOutCirc:function(o,p,n,u,q){if((p/=q/2)<1){return -u/2*(Math.sqrt(1-p*p)-1)+n;}return u/2*(Math.sqrt(1-(p-=2)*p)+1)+n;},easeInElastic:function(o,u,n,z,y){var v=1.70158;var w=0;var q=z;if(u==0){return n;}if((u/=y)==1){return n+z;}if(!w){w=y*0.3;}if(q<Math.abs(z)){q=z;var v=w/4;}else{var v=w/(2*Math.PI)*Math.asin(z/q);}return -(q*Math.pow(2,10*(u-=1))*Math.sin((u*y-v)*(2*Math.PI)/w))+n;},easeOutElastic:function(o,u,n,z,y){var v=1.70158;var w=0;var q=z;if(u==0){return n;}if((u/=y)==1){return n+z;}if(!w){w=y*0.3;}if(q<Math.abs(z)){q=z;var v=w/4;}else{var v=w/(2*Math.PI)*Math.asin(z/q);}return q*Math.pow(2,-10*u)*Math.sin((u*y-v)*(2*Math.PI)/w)+z+n;},easeInOutElastic:function(o,u,n,z,y){var v=1.70158;var w=0;var q=z;if(u==0){return n;}if((u/=y/2)==2){return n+z;}if(!w){w=y*(0.3*1.5);}if(q<Math.abs(z)){q=z;var v=w/4;}else{var v=w/(2*Math.PI)*Math.asin(z/q);}if(u<1){return -0.5*(q*Math.pow(2,10*(u-=1))*Math.sin((u*y-v)*(2*Math.PI)/w))+n;}return q*Math.pow(2,-10*(u-=1))*Math.sin((u*y-v)*(2*Math.PI)/w)*0.5+z+n;},easeInBack:function(o,p,n,v,u,q){if(q==e){q=1.70158;}return v*(p/=u)*p*((q+1)*p-q)+n;},easeOutBack:function(o,p,n,v,u,q){if(q==e){q=1.70158;}return v*((p=p/u-1)*p*((q+1)*p+q)+1)+n;},easeInOutBack:function(o,p,n,v,u,q){if(q==e){q=1.70158;}if((p/=u/2)<1){return v/2*(p*p*(((q*=(1.525))+1)*p-q))+n;}return v/2*((p-=2)*p*(((q*=(1.525))+1)*p+q)+2)+n;},easeInBounce:function(o,p,n,u,q){return u-h.easing.easeOutBounce(o,q-p,0,u,q)+n;},easeOutBounce:function(o,p,n,u,q){if((p/=q)<(1/2.75)){return u*(7.5625*p*p)+n;}else{if(p<(2/2.75)){return u*(7.5625*(p-=(1.5/2.75))*p+0.75)+n;}else{if(p<(2.5/2.75)){return u*(7.5625*(p-=(2.25/2.75))*p+0.9375)+n;}else{return u*(7.5625*(p-=(2.625/2.75))*p+0.984375)+n;}}}},easeInOutBounce:function(o,p,n,u,q){if(p<q/2){return h.easing.easeInBounce(o,p*2,0,u,q)*0.5+n;}return h.easing.easeOutBounce(o,p*2-q,0,u,q)*0.5+u*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 u=["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(u);d.from=a.effects.setTransition(d,u,n.from.y,d.from);d.to=a.effects.setTransition(d,u,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(u);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 v={height:child.height(),width:child.width()};child.from={height:v.height*n.from.y,width:v.width*n.from.x};child.to={height:v.height*n.to.y,width:v.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(){var a;a=(function(){function b(){this.options_index=0;this.parsed=[];}b.prototype.add_node=function(c){if(c.nodeName==="OPTGROUP"){return this.add_group(c);}else{return this.add_option(c);}};b.prototype.add_group=function(j){var h,e,g,d,f,c;h=this.parsed.length;this.parsed.push({array_index:h,group:true,label:j.label,children:0,disabled:j.disabled});f=j.childNodes;c=[];for(g=0,d=f.length;g<d;g++){e=f[g];c.push(this.add_option(e,h,j.disabled));}return c;};b.prototype.add_option=function(d,e,c){if(d.nodeName==="OPTION"){if(d.text!==""){if(e!=null){this.parsed[e].children+=1;}this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:d.value,text:d.text,html:d.innerHTML,selected:d.selected,disabled:c===true?c:d.disabled,group_array_index:e,classes:d.className,style:d.style.cssText});}else{this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:true});}return this.options_index+=1;}};return b;})();a.select_to_array=function(b){var g,f,e,c,d;f=new a();d=b.childNodes;for(e=0,c=d.length;e<c;e++){g=d[e];f.add_node(g);}return f.parsed;};this.SelectParser=a;}).call(this);(function(){var b,a;var c=function(d,e){return function(){return d.apply(e,arguments);};};a=this;b=(function(){function d(e,f){this.form_field=e;this.options=f!=null?f:{};this.set_default_values();this.is_multiple=this.form_field.multiple;this.default_text_default=this.is_multiple?"Select Some Options":"Select an Option";this.setup();this.set_up_html();this.register_observers();this.finish_setup();}d.prototype.set_default_values=function(){this.click_test_action=c(function(e){return this.test_active_click(e);},this);this.activate_action=c(function(e){return this.activate_field(e);},this);this.active_field=false;this.mouse_on_container=false;this.results_showing=false;this.result_highlighted=null;this.result_single_selected=null;this.allow_single_deselect=(this.options.allow_single_deselect!=null)&&(this.form_field.options[0]!=null)&&this.form_field.options[0].text===""?this.options.allow_single_deselect:false;this.disable_search_threshold=this.options.disable_search_threshold||0;this.choices=0;return this.results_none_found=this.options.no_results_text||"No results match";};d.prototype.mouse_enter=function(){return this.mouse_on_container=true;};d.prototype.mouse_leave=function(){return this.mouse_on_container=false;};d.prototype.input_focus=function(e){if(!this.active_field){return setTimeout((c(function(){return this.container_mousedown();},this)),50);}};d.prototype.input_blur=function(e){if(!this.mouse_on_container){this.active_field=false;return setTimeout((c(function(){return this.blur_test();},this)),100);}};d.prototype.result_add_option=function(g){var e,f;if(!g.disabled){g.dom_id=this.container_id+"_o_"+g.array_index;e=g.selected&&this.is_multiple?[]:["active-result"];if(g.selected){e.push("result-selected");}if(g.group_array_index!=null){e.push("group-option");}if(g.classes!==""){e.push(g.classes);}f=g.style.cssText!==""?' style="'+g.style+'"':"";return'<li id="'+g.dom_id+'" class="'+e.join(" ")+'"'+f+">"+g.html+"</li>";}else{return"";}};d.prototype.results_update_field=function(){this.result_clear_highlight();this.result_single_selected=null;return this.results_build();};d.prototype.results_toggle=function(){if(this.results_showing){return this.results_hide();}else{return this.results_show();}};d.prototype.results_search=function(e){if(this.results_showing){return this.winnow_results();}else{return this.results_show();}};d.prototype.keyup_checker=function(e){var g,f;g=(f=e.which)!=null?f:e.keyCode;this.search_field_scale();switch(g){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0){return this.keydown_backstroke();}else{if(!this.pending_backstroke){this.result_clear_highlight();return this.results_search();}}break;case 13:e.preventDefault();if(this.results_showing){return this.result_select(e);}break;case 27:if(this.results_showing){return this.results_hide();}break;case 9:case 38:case 40:case 16:case 91:case 17:break;default:return this.results_search();}};d.prototype.generate_field_id=function(){var e;e=this.generate_random_id();this.form_field.id=e;return e;};d.prototype.generate_random_char=function(){var g,f,e;g="0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZ";e=Math.floor(Math.random()*g.length);return f=g.substring(e,e+1);};return d;})();a.AbstractChosen=b;}).call(this);(function(){var f,g,e,a;var c=Object.prototype.hasOwnProperty,d=function(l,j){for(var h in j){if(c.call(j,h)){l[h]=j[h];}}function k(){this.constructor=l;}k.prototype=j.prototype;l.prototype=new k;l.__super__=j.prototype;return l;},b=function(h,j){return function(){return h.apply(j,arguments);};};a=this;f=jQuery;f.fn.extend({chosen:function(h){if(f.browser.msie&&(f.browser.version==="6.0"||f.browser.version==="7.0")){return this;}return f(this).each(function(j){if(!(f(this)).hasClass("chzn-done")){return new g(this,h);}});}});g=(function(){d(h,AbstractChosen);function h(){h.__super__.constructor.apply(this,arguments);}h.prototype.setup=function(){this.form_field_jq=f(this.form_field);return this.is_rtl=this.form_field_jq.hasClass("chzn-rtl");};h.prototype.finish_setup=function(){return this.form_field_jq.addClass("chzn-done");};h.prototype.set_up_html=function(){var m,l,k,j;this.container_id=this.form_field.id.length?this.form_field.id.replace(/(:|\.)/g,"_"):this.generate_field_id();this.container_id+="_chzn";this.f_width=this.form_field_jq.outerWidth();this.default_text=this.form_field_jq.data("placeholder")?this.form_field_jq.data("placeholder"):this.default_text_default;m=f("<div />",{id:this.container_id,"class":"chzn-container"+(this.is_rtl?" chzn-rtl":""),style:"width: "+this.f_width+"px;"});if(this.is_multiple){m.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chzn-drop" style="left:-9000px;"><ul class="chzn-results"></ul></div>');}else{m.html('<a href="javascript:void(0)" class="chzn-single"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop" style="left:-9000px;"><div class="chzn-search"><input type="text" autocomplete="off" /></div><ul class="chzn-results"></ul></div>');}this.form_field_jq.hide().after(m);this.container=f("#"+this.container_id);this.container.addClass("chzn-container-"+(this.is_multiple?"multi":"single"));this.dropdown=this.container.find("div.chzn-drop").first();l=this.container.height();k=this.f_width-e(this.dropdown);this.dropdown.css({width:k+"px",top:l+"px"});this.search_field=this.container.find("input").first();this.search_results=this.container.find("ul.chzn-results").first();this.search_field_scale();this.search_no_results=this.container.find("li.no-results").first();if(this.is_multiple){this.search_choices=this.container.find("ul.chzn-choices").first();this.search_container=this.container.find("li.search-field").first();}else{this.search_container=this.container.find("div.chzn-search").first();this.selected_item=this.container.find(".chzn-single").first();j=k-e(this.search_container)-e(this.search_field);this.search_field.css({width:j+"px"});}this.results_build();this.set_tab_index();return this.form_field_jq.trigger("liszt:ready",{chosen:this});};h.prototype.register_observers=function(){this.container.mousedown(b(function(j){return this.container_mousedown(j);},this));this.container.mouseup(b(function(j){return this.container_mouseup(j);},this));this.container.mouseenter(b(function(j){return this.mouse_enter(j);},this));this.container.mouseleave(b(function(j){return this.mouse_leave(j);},this));this.search_results.mouseup(b(function(j){return this.search_results_mouseup(j);},this));this.search_results.mouseover(b(function(j){return this.search_results_mouseover(j);},this));this.search_results.mouseout(b(function(j){return this.search_results_mouseout(j);},this));this.form_field_jq.bind("liszt:updated",b(function(j){return this.results_update_field(j);},this));this.search_field.blur(b(function(j){return this.input_blur(j);},this));this.search_field.keyup(b(function(j){return this.keyup_checker(j);},this));this.search_field.keydown(b(function(j){return this.keydown_checker(j);},this));if(this.is_multiple){this.search_choices.click(b(function(j){return this.choices_click(j);},this));return this.search_field.focus(b(function(j){return this.input_focus(j);},this));}};h.prototype.search_field_disabled=function(){this.is_disabled=this.form_field_jq[0].disabled;if(this.is_disabled){this.container.addClass("chzn-disabled");this.search_field[0].disabled=true;if(!this.is_multiple){this.selected_item.unbind("focus",this.activate_action);}return this.close_field();}else{this.container.removeClass("chzn-disabled");this.search_field[0].disabled=false;if(!this.is_multiple){return this.selected_item.bind("focus",this.activate_action);}}};h.prototype.container_mousedown=function(j){var k;if(!this.is_disabled){k=j!=null?(f(j.target)).hasClass("search-choice-close"):false;if(j&&j.type==="mousedown"){j.stopPropagation();}if(!this.pending_destroy_click&&!k){if(!this.active_field){if(this.is_multiple){this.search_field.val("");}f(document).click(this.click_test_action);this.results_show();}else{if(!this.is_multiple&&j&&((f(j.target)[0]===this.selected_item[0])||f(j.target).parents("a.chzn-single").length)){j.preventDefault();this.results_toggle();}}return this.activate_field();}else{return this.pending_destroy_click=false;}}};h.prototype.container_mouseup=function(j){if(j.target.nodeName==="ABBR"){return this.results_reset(j);}};h.prototype.blur_test=function(j){if(!this.active_field&&this.container.hasClass("chzn-container-active")){return this.close_field();}};h.prototype.close_field=function(){f(document).unbind("click",this.click_test_action);if(!this.is_multiple){this.selected_item.attr("tabindex",this.search_field.attr("tabindex"));this.search_field.attr("tabindex",-1);}this.active_field=false;this.results_hide();this.container.removeClass("chzn-container-active");this.winnow_results_clear();this.clear_backstroke();this.show_search_field_default();return this.search_field_scale();};h.prototype.activate_field=function(){if(!this.is_multiple&&!this.active_field){this.search_field.attr("tabindex",this.selected_item.attr("tabindex"));this.selected_item.attr("tabindex",-1);}this.container.addClass("chzn-container-active");this.active_field=true;this.search_field.val(this.search_field.val());return this.search_field.focus();};h.prototype.test_active_click=function(j){if(f(j.target).parents("#"+this.container_id).length){return this.active_field=true;}else{return this.close_field();}};h.prototype.results_build=function(){var k,n,m,j,l;this.parsing=true;this.results_data=a.SelectParser.select_to_array(this.form_field);if(this.is_multiple&&this.choices>0){this.search_choices.find("li.search-choice").remove();this.choices=0;}else{if(!this.is_multiple){this.selected_item.find("span").text(this.default_text);if(this.form_field.options.length<=this.disable_search_threshold){this.container.addClass("chzn-container-single-nosearch");}else{this.container.removeClass("chzn-container-single-nosearch");}}}k="";l=this.results_data;for(m=0,j=l.length;m<j;m++){n=l[m];if(n.group){k+=this.result_add_group(n);}else{if(!n.empty){k+=this.result_add_option(n);if(n.selected&&this.is_multiple){this.choice_build(n);}else{if(n.selected&&!this.is_multiple){this.selected_item.find("span").text(n.text);if(this.allow_single_deselect){this.single_deselect_control_build();}}}}}}this.search_field_disabled();this.show_search_field_default();this.search_field_scale();this.search_results.html(k);return this.parsing=false;};h.prototype.result_add_group=function(j){if(!j.disabled){j.dom_id=this.container_id+"_g_"+j.array_index;return'<li id="'+j.dom_id+'" class="group-result">'+f("<div />").text(j.label).html()+"</li>";}else{return"";}};h.prototype.result_do_highlight=function(k){var o,n,l,m,j;if(k.length){this.result_clear_highlight();this.result_highlight=k;this.result_highlight.addClass("highlighted");l=parseInt(this.search_results.css("maxHeight"),10);j=this.search_results.scrollTop();m=l+j;n=this.result_highlight.position().top+this.search_results.scrollTop();o=n+this.result_highlight.outerHeight();if(o>=m){return this.search_results.scrollTop((o-l)>0?o-l:0);}else{if(n<j){return this.search_results.scrollTop(n);}}}};h.prototype.result_clear_highlight=function(){if(this.result_highlight){this.result_highlight.removeClass("highlighted");}return this.result_highlight=null;};h.prototype.results_show=function(){var j;if(!this.is_multiple){this.selected_item.addClass("chzn-single-with-drop");if(this.result_single_selected){this.result_do_highlight(this.result_single_selected);}}j=this.is_multiple?this.container.height():this.container.height()-1;this.dropdown.css({top:j+"px",left:0});this.results_showing=true;this.search_field.focus();this.search_field.val(this.search_field.val());return this.winnow_results();};h.prototype.results_hide=function(){if(!this.is_multiple){this.selected_item.removeClass("chzn-single-with-drop");}this.result_clear_highlight();this.dropdown.css({left:"-9000px"});return this.results_showing=false;};h.prototype.set_tab_index=function(k){var j;if(this.form_field_jq.attr("tabindex")){j=this.form_field_jq.attr("tabindex");this.form_field_jq.attr("tabindex",-1);if(this.is_multiple){return this.search_field.attr("tabindex",j);}else{this.selected_item.attr("tabindex",j);return this.search_field.attr("tabindex",-1);}}};h.prototype.show_search_field_default=function(){if(this.is_multiple&&this.choices<1&&!this.active_field){this.search_field.val(this.default_text);return this.search_field.addClass("default");}else{this.search_field.val("");return this.search_field.removeClass("default");}};h.prototype.search_results_mouseup=function(j){var k;k=f(j.target).hasClass("active-result")?f(j.target):f(j.target).parents(".active-result").first();if(k.length){this.result_highlight=k;return this.result_select(j);}};h.prototype.search_results_mouseover=function(j){var k;k=f(j.target).hasClass("active-result")?f(j.target):f(j.target).parents(".active-result").first();if(k){return this.result_do_highlight(k);}};h.prototype.search_results_mouseout=function(j){if(f(j.target).hasClass("active-result"||f(j.target).parents(".active-result").first())){return this.result_clear_highlight();}};h.prototype.choices_click=function(j){j.preventDefault();if(this.active_field&&!(f(j.target).hasClass("search-choice"||f(j.target).parents(".search-choice").first))&&!this.results_showing){return this.results_show();}};h.prototype.choice_build=function(l){var j,k;j=this.container_id+"_c_"+l.array_index;this.choices+=1;this.search_container.before('<li class="search-choice" id="'+j+'"><span>'+l.html+'</span><a href="javascript:void(0)" class="search-choice-close" rel="'+l.array_index+'"></a></li>');k=f("#"+j).find("a").first();return k.click(b(function(m){return this.choice_destroy_link_click(m);},this));};h.prototype.choice_destroy_link_click=function(j){j.preventDefault();if(!this.is_disabled){this.pending_destroy_click=true;return this.choice_destroy(f(j.target));}else{return j.stopPropagation;}};h.prototype.choice_destroy=function(j){this.choices-=1;this.show_search_field_default();if(this.is_multiple&&this.choices>0&&this.search_field.val().length<1){this.results_hide();}this.result_deselect(j.attr("rel"));return j.parents("li").first().remove();};h.prototype.results_reset=function(j){this.form_field.options[0].selected=true;this.selected_item.find("span").text(this.default_text);this.show_search_field_default();f(j.target).remove();this.form_field_jq.trigger("change");if(this.active_field){return this.results_hide();}};h.prototype.result_select=function(k){var n,m,l,j;if(this.result_highlight){n=this.result_highlight;m=n.attr("id");this.result_clear_highlight();if(this.is_multiple){this.result_deactivate(n);}else{this.search_results.find(".result-selected").removeClass("result-selected");this.result_single_selected=n;}n.addClass("result-selected");j=m.substr(m.lastIndexOf("_")+1);l=this.results_data[j];l.selected=true;this.form_field.options[l.options_index].selected=true;if(this.is_multiple){this.choice_build(l);}else{this.selected_item.find("span").first().text(l.text);if(this.allow_single_deselect){this.single_deselect_control_build();}}if(!(k.metaKey&&this.is_multiple)){this.results_hide();}this.search_field.val("");this.form_field_jq.trigger("change");return this.search_field_scale();}};h.prototype.result_activate=function(j){return j.addClass("active-result");};h.prototype.result_deactivate=function(j){return j.removeClass("active-result");};h.prototype.result_deselect=function(l){var j,k;k=this.results_data[l];k.selected=false;this.form_field.options[k.options_index].selected=false;j=f("#"+this.container_id+"_o_"+l);j.removeClass("result-selected").addClass("active-result").show();this.result_clear_highlight();this.winnow_results();this.form_field_jq.trigger("change");return this.search_field_scale();};h.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect&&this.selected_item.find("abbr").length<1){return this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>');}};h.prototype.winnow_results=function(){var B,u,l,o,y,C,w,q,A,v,z,k,n,m,x,j,p;this.no_results_clear();q=0;A=this.search_field.val()===this.default_text?"":f("<div/>").text(f.trim(this.search_field.val())).html();y=new RegExp("^"+A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i");k=new RegExp(A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i");p=this.results_data;for(n=0,x=p.length;n<x;n++){u=p[n];if(!u.disabled&&!u.empty){if(u.group){f("#"+u.dom_id).css("display","none");}else{if(!(this.is_multiple&&u.selected)){B=false;w=u.dom_id;C=f("#"+w);if(y.test(u.html)){B=true;q+=1;}else{if(u.html.indexOf(" ")>=0||u.html.indexOf("[")===0){o=u.html.replace(/\[|\]/g,"").split(" ");if(o.length){for(m=0,j=o.length;m<j;m++){l=o[m];if(y.test(l)){B=true;q+=1;}}}}}if(B){if(A.length){v=u.html.search(k);z=u.html.substr(0,v+A.length)+"</em>"+u.html.substr(v+A.length);z=z.substr(0,v)+"<em>"+z.substr(v);}else{z=u.html;}C.html(z);this.result_activate(C);if(u.group_array_index!=null){f("#"+this.results_data[u.group_array_index].dom_id).css("display","list-item");}}else{if(this.result_highlight&&w===this.result_highlight.attr("id")){this.result_clear_highlight();}this.result_deactivate(C);}}}}}if(q<1&&A.length){return this.no_results(A);}else{return this.winnow_results_set_highlight();}};h.prototype.winnow_results_clear=function(){var j,m,n,l,k;this.search_field.val("");m=this.search_results.find("li");k=[];for(n=0,l=m.length;n<l;n++){j=m[n];j=f(j);k.push(j.hasClass("group-result")?j.css("display","auto"):!this.is_multiple||!j.hasClass("result-selected")?this.result_activate(j):void 0);}return k;};h.prototype.winnow_results_set_highlight=function(){var j,k;if(!this.result_highlight){k=!this.is_multiple?this.search_results.find(".result-selected.active-result"):[];j=k.length?k.first():this.search_results.find(".active-result").first();if(j!=null){return this.result_do_highlight(j);}}};h.prototype.no_results=function(j){var k;k=f('<li class="no-results">'+this.results_none_found+' "<span></span>"</li>');k.find("span").first().html(j);return this.search_results.append(k);};h.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove();};h.prototype.keydown_arrow=function(){var k,j;if(!this.result_highlight){k=this.search_results.find("li.active-result").first();if(k){this.result_do_highlight(f(k));}}else{if(this.results_showing){j=this.result_highlight.nextAll("li.active-result").first();if(j){this.result_do_highlight(j);}}}if(!this.results_showing){return this.results_show();}};h.prototype.keyup_arrow=function(){var j;if(!this.results_showing&&!this.is_multiple){return this.results_show();}else{if(this.result_highlight){j=this.result_highlight.prevAll("li.active-result");if(j.length){return this.result_do_highlight(j.first());}else{if(this.choices>0){this.results_hide();}return this.result_clear_highlight();}}}};h.prototype.keydown_backstroke=function(){if(this.pending_backstroke){this.choice_destroy(this.pending_backstroke.find("a").first());return this.clear_backstroke();}else{this.pending_backstroke=this.search_container.siblings("li.search-choice").last();return this.pending_backstroke.addClass("search-choice-focus");}};h.prototype.clear_backstroke=function(){if(this.pending_backstroke){this.pending_backstroke.removeClass("search-choice-focus");}return this.pending_backstroke=null;};h.prototype.keydown_checker=function(j){var l,k;l=(k=j.which)!=null?k:j.keyCode;this.search_field_scale();if(l!==8&&this.pending_backstroke){this.clear_backstroke();}switch(l){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:if(this.results_showing&&!this.is_multiple){this.result_select(j);}this.mouse_on_container=false;break;case 13:j.preventDefault();break;case 38:j.preventDefault();this.keyup_arrow();break;case 40:this.keydown_arrow();break;}};h.prototype.search_field_scale=function(){var u,j,m,k,p,q,o,l,n;if(this.is_multiple){m=0;o=0;p="position:absolute; left: -1000px; top: -1000px; display:none;";q=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(l=0,n=q.length;l<n;l++){k=q[l];p+=k+":"+this.search_field.css(k)+";";}j=f("<div />",{style:p});j.text(this.search_field.val());f("body").append(j);o=j.width()+25;j.remove();if(o>this.f_width-10){o=this.f_width-10;}this.search_field.css({width:o+"px"});u=this.container.height();return this.dropdown.css({top:u+"px"});}};h.prototype.generate_random_id=function(){var j;j="sel"+this.generate_random_char()+this.generate_random_char()+this.generate_random_char();while(f("#"+j).length>0){j+=this.generate_random_char();}return j;};return h;})();e=function(h){var j;return j=h.outerWidth()-h.width();};a.get_side_border_padding=e;}).call(this);(function(K,l,Y){var L={transition:"elastic",speed:300,width:false,initialWidth:"600",innerWidth:false,maxWidth:false,height:false,initialHeight:"450",innerHeight:false,maxHeight:false,scalePhotos:true,scrolling:true,inline:false,html:false,iframe:false,fastIframe:true,photo:false,href:false,title:false,rel:false,opacity:0.9,preloading:true,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:false,returnFocus:true,loop:true,slideshow:false,slideshowAuto:true,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:false,onLoad:false,onComplete:false,onCleanup:false,onClosed:false,overlayClose:true,escKey:true,arrowKey:true,top:false,bottom:false,left:false,right:false,fixed:false,data:false},z="colorbox",U="cbox",q=U+"Element",X=U+"_open",e=U+"_load",W=U+"_complete",w=U+"_cleanup",ad=U+"_closed",j=U+"_purge",x=K.browser.msie&&!K.support.opacity,af=x&&K.browser.version<7,ac=U+"_IE6",S,ag,ah,d,I,p,b,R,c,ab,O,k,h,o,v,Z,u,T,B,D,ae,ai,m,g,a,y,J,n,F,aa,N,H,C,M;function Q(al,aj,ak){ak=l.createElement("div");if(al){ak.id=U+al;}ak.style.cssText=aj||"";return K(ak);}function P(aj,ak){return Math.round((/%/.test(aj)?((ak==="x"?ab.width():ab.height())/100):1)*parseInt(aj,10));}function E(aj){return ae.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(aj);}function V(aj){ae=K.extend({},K.data(y,z));for(aj in ae){if(K.isFunction(ae[aj])&&aj.substring(0,2)!=="on"){ae[aj]=ae[aj].call(y);}}ae.rel=ae.rel||y.rel||"nofollow";ae.href=ae.href||K(y).attr("href");ae.title=ae.title||y.title;if(typeof ae.href==="string"){ae.href=K.trim(ae.href);}}function G(aj,ak){if(ak){ak.call(y);}K.event.trigger(aj);}function A(){var ak,am=U+"Slideshow_",an="click."+U,ao,al,aj;if(ae.slideshow&&c[1]){ao=function(){Z.text(ae.slideshowStop).unbind(an).bind(W,function(){if(J<c.length-1||ae.loop){ak=setTimeout(M.next,ae.slideshowSpeed);}}).bind(e,function(){clearTimeout(ak);}).one(an+" "+w,al);ag.removeClass(am+"off").addClass(am+"on");ak=setTimeout(M.next,ae.slideshowSpeed);};al=function(){clearTimeout(ak);Z.text(ae.slideshowStart).unbind([W,e,w,an].join(" ")).one(an,ao);ag.removeClass(am+"on").addClass(am+"off");};if(ae.slideshowAuto){ao();}else{al();}}else{ag.removeClass(am+"off "+am+"on");}}function f(ak){if(!N){y=ak;V();c=K(y);J=0;if(ae.rel!=="nofollow"){c=K("."+q).filter(function(){var al=K.data(this,z).rel||this.rel;return(al===ae.rel);});J=c.index(y);if(J===-1){c=c.add(y);J=c.length-1;}}if(!F){F=aa=true;ag.show();if(ae.returnFocus){try{y.blur();K(y).one(ad,function(){try{this.focus();}catch(al){}});}catch(aj){}}S.css({opacity:+ae.opacity,cursor:ae.overlayClose?"pointer":"auto"}).show();ae.w=P(ae.initialWidth,"x");ae.h=P(ae.initialHeight,"y");M.position();if(af){ab.bind("resize."+ac+" scroll."+ac,function(){S.css({width:ab.width(),height:ab.height(),top:ab.scrollTop(),left:ab.scrollLeft()});}).trigger("resize."+ac);}G(X,ae.onOpen);D.add(o).hide();B.html(ae.close).show();}M.load(true);}}M=K.fn[z]=K[z]=function(aj,al){var ak=this;aj=aj||{};if(!ak[0]){if(ak.selector){return ak;}ak=K("<a/>");aj.open=true;}if(al){aj.onComplete=al;}ak.each(function(){K.data(this,z,K.extend({},K.data(this,z)||L,aj));K(this).addClass(q);});if((K.isFunction(aj.open)&&aj.open.call(ak))||aj.open){f(ak[0]);}return ak;};M.init=function(){ab=K(Y);ag=Q().attr({id:z,"class":x?U+(af?"IE6":"IE"):""});S=Q("Overlay",af?"position:absolute":"").hide();ah=Q("Wrapper");d=Q("Content").append(O=Q("LoadedContent","width:0; height:0; overflow:hidden"),h=Q("LoadingOverlay").add(Q("LoadingGraphic")),o=Q("Title"),v=Q("Current"),u=Q("Next"),T=Q("Previous"),Z=Q("Slideshow").bind(X,A),B=Q("Close"));ah.append(Q().append(Q("TopLeft"),I=Q("TopCenter"),Q("TopRight")),Q(false,"clear:left").append(p=Q("MiddleLeft"),d,b=Q("MiddleRight")),Q(false,"clear:left").append(Q("BottomLeft"),R=Q("BottomCenter"),Q("BottomRight"))).children().children().css({"float":"left"});k=Q(false,"position:absolute; width:9999px; visibility:hidden; display:none");K("body").prepend(S,ag.append(ah,k));d.children().hover(function(){K(this).addClass("hover");},function(){K(this).removeClass("hover");}).addClass("hover");ai=I.height()+R.height()+d.outerHeight(true)-d.height();m=p.width()+b.width()+d.outerWidth(true)-d.width();g=O.outerHeight(true);a=O.outerWidth(true);ag.css({"padding-bottom":ai,"padding-right":m}).hide();u.click(function(){M.next();});T.click(function(){M.prev();});B.click(function(){M.close();});D=u.add(T).add(v).add(Z);d.children().removeClass("hover");S.click(function(){if(ae.overlayClose){M.close();}});K(l).bind("keydown."+U,function(ak){var aj=ak.keyCode;if(F&&ae.escKey&&aj===27){ak.preventDefault();M.close();}if(F&&ae.arrowKey&&c[1]){if(aj===37){ak.preventDefault();T.click();}else{if(aj===39){ak.preventDefault();u.click();}}}});};M.remove=function(){ag.add(S).remove();K("."+q).removeData(z).removeClass(q);};M.position=function(ak,aj){var am=0,al=0;ab.unbind("resize."+U);ag.hide();if(ae.fixed&&!af){ag.css({position:"fixed"});}else{am=ab.scrollTop();al=ab.scrollLeft();ag.css({position:"absolute"});}if(ae.right!==false){al+=Math.max(ab.width()-ae.w-a-m-P(ae.right,"x"),0);}else{if(ae.left!==false){al+=P(ae.left,"x");}else{al+=Math.round(Math.max(ab.width()-ae.w-a-m,0)/2);}}if(ae.bottom!==false){am+=Math.max(l.documentElement.clientHeight-ae.h-g-ai-P(ae.bottom,"y"),0);}else{if(ae.top!==false){am+=P(ae.top,"y");}else{am+=Math.round(Math.max(l.documentElement.clientHeight-ae.h-g-ai,0)/2);}}ag.show();ak=(ag.width()===ae.w+a&&ag.height()===ae.h+g)?0:ak||0;ah[0].style.width=ah[0].style.height="9999px";function an(ao){I[0].style.width=R[0].style.width=d[0].style.width=ao.style.width;h[0].style.height=h[1].style.height=d[0].style.height=p[0].style.height=b[0].style.height=ao.style.height;}ag.dequeue().animate({width:ae.w+a,height:ae.h+g,top:am,left:al},{duration:ak,complete:function(){an(this);aa=false;ah[0].style.width=(ae.w+a+m)+"px";ah[0].style.height=(ae.h+g+ai)+"px";if(aj){aj();}setTimeout(function(){ab.bind("resize."+U,M.position);},1);},step:function(){an(this);}});};M.resize=function(aj){if(F){aj=aj||{};if(aj.width){ae.w=P(aj.width,"x")-a-m;}if(aj.innerWidth){ae.w=P(aj.innerWidth,"x");}O.css({width:ae.w});if(aj.height){ae.h=P(aj.height,"y")-g-ai;}if(aj.innerHeight){ae.h=P(aj.innerHeight,"y");}if(!aj.innerHeight&&!aj.height){var ak=O.wrapInner("<div style='overflow:auto'></div>").children();ae.h=ak.height();ak.replaceWith(ak.children());}O.css({height:ae.h});M.position(ae.transition==="none"?0:ae.speed);}};M.prep=function(ak){if(!F){return;}var an,al=ae.transition==="none"?0:ae.speed;O.remove();O=Q("LoadedContent").append(ak);function aj(){ae.w=ae.w||O.width();ae.w=ae.mw&&ae.mw<ae.w?ae.mw:ae.w;return ae.w;}function am(){ae.h=ae.h||O.height();ae.h=ae.mh&&ae.mh<ae.h?ae.mh:ae.h;return ae.h;}O.hide().appendTo(k.show()).css({width:aj(),overflow:ae.scrolling?"auto":"hidden"}).css({height:am()}).prependTo(d);k.hide();K(n).css({"float":"none"});if(af){K("select").not(ag.find("select")).filter(function(){return this.style.visibility!=="hidden";}).css({visibility:"hidden"}).one(w,function(){this.style.visibility="inherit";});}an=function(){var au,aw,ar,aq,at=c.length,ap,ao;if(!F){return;}function av(){if(x){ag[0].style.removeAttribute("filter");}}ao=function(){clearTimeout(C);h.hide();G(W,ae.onComplete);};if(x){if(n){O.fadeIn(100);}}o.html(ae.title).add(O).show();if(at>1){if(typeof ae.current==="string"){v.html(ae.current.replace("{current}",J+1).replace("{total}",at)).show();}u[(ae.loop||J<at-1)?"show":"hide"]().html(ae.next);T[(ae.loop||J)?"show":"hide"]().html(ae.previous);au=J?c[J-1]:c[at-1];ar=J<at-1?c[J+1]:c[0];if(ae.slideshow){Z.show();}if(ae.preloading){aq=K.data(ar,z).href||ar.href;aw=K.data(au,z).href||au.href;aq=K.isFunction(aq)?aq.call(ar):aq;aw=K.isFunction(aw)?aw.call(au):aw;if(E(aq)){K("<img/>")[0].src=aq;}if(E(aw)){K("<img/>")[0].src=aw;}}}else{D.hide();}if(ae.iframe){ap=K("<iframe/>").addClass(U+"Iframe")[0];if(ae.fastIframe){ao();}else{K(ap).one("load",ao);}ap.name=U+(+new Date());ap.src=ae.href;if(!ae.scrolling){ap.scrolling="no";}if(x){ap.frameBorder=0;ap.allowTransparency="true";}K(ap).appendTo(O).one(j,function(){ap.src="//about:blank";});}else{ao();}if(ae.transition==="fade"){ag.fadeTo(al,1,av);}else{av();}};if(ae.transition==="fade"){ag.fadeTo(al,0,function(){M.position(0,an);});}else{M.position(al,an);}};M.load=function(al){var ak,am,aj=M.prep;aa=true;n=false;y=c[J];if(!al){V();}G(j);G(e,ae.onLoad);ae.h=ae.height?P(ae.height,"y")-g-ai:ae.innerHeight&&P(ae.innerHeight,"y");ae.w=ae.width?P(ae.width,"x")-a-m:ae.innerWidth&&P(ae.innerWidth,"x");ae.mw=ae.w;ae.mh=ae.h;if(ae.maxWidth){ae.mw=P(ae.maxWidth,"x")-a-m;ae.mw=ae.w&&ae.w<ae.mw?ae.w:ae.mw;}if(ae.maxHeight){ae.mh=P(ae.maxHeight,"y")-g-ai;ae.mh=ae.h&&ae.h<ae.mh?ae.h:ae.mh;}ak=ae.href;C=setTimeout(function(){h.show();},100);if(ae.inline){Q().hide().insertBefore(K(ak)[0]).one(j,function(){K(this).replaceWith(O.children());});aj(K(ak));}else{if(ae.iframe){aj(" ");}else{if(ae.html){aj(ae.html);}else{if(E(ak)){K(n=new Image()).addClass(U+"Photo").error(function(){ae.title=false;aj(Q("Error").text("This image could not be loaded"));}).load(function(){var an;n.onload=null;if(ae.scalePhotos){am=function(){n.height-=n.height*an;n.width-=n.width*an;};if(ae.mw&&n.width>ae.mw){an=(n.width-ae.mw)/n.width;am();}if(ae.mh&&n.height>ae.mh){an=(n.height-ae.mh)/n.height;am();}}if(ae.h){n.style.marginTop=Math.max(ae.h-n.height,0)/2+"px";}if(c[1]&&(J<c.length-1||ae.loop)){n.style.cursor="pointer";n.onclick=function(){M.next();};}if(x){n.style.msInterpolationMode="bicubic";}setTimeout(function(){aj(n);},1);});setTimeout(function(){n.src=ak;},1);}else{if(ak){k.load(ak,ae.data,function(ao,an,ap){aj(an==="error"?Q("Error").text("Request unsuccessful: "+ap.statusText):K(this).contents());});}}}}}};M.next=function(){if(!aa&&c[1]&&(J<c.length-1||ae.loop)){J=J<c.length-1?J+1:0;M.load();}};M.prev=function(){if(!aa&&c[1]&&(J||ae.loop)){J=J?J-1:c.length-1;M.load();}};M.close=function(){if(F&&!N){N=true;F=false;G(w,ae.onCleanup);ab.unbind("."+U+" ."+ac);S.fadeTo(200,0);ag.stop().fadeTo(300,0,function(){ag.add(S).css({opacity:1,cursor:"auto"}).hide();G(j);O.remove();setTimeout(function(){N=false;G(ad,ae.onClosed);},1);});}};M.element=function(){return K(y);};M.settings=L;H=function(aj){if(!((aj.button!==0&&typeof aj.button!=="undefined")||aj.ctrlKey||aj.shiftKey||aj.altKey)){aj.preventDefault();f(this);}};if(K.fn.delegate){K(l).delegate("."+q,"click",H);}else{K("."+q).live("click",H);}K(M.init);}(jQuery,document,this));jQuery.cookie=function(d,e,b){if(arguments.length>1&&String(e)!=="[object Object]"){b=jQuery.extend({},b);if(e===null||e===undefined){b.expires=-1;}if(typeof b.expires==="number"){var g=b.expires,c=b.expires=new Date();c.setDate(c.getDate()+g);}e=String(e);return(document.cookie=[encodeURIComponent(d),"=",b.raw?e:encodeURIComponent(e),b.expires?"; expires="+b.expires.toUTCString():"",b.path?"; path="+b.path:"",b.domain?"; domain="+b.domain:"",b.secure?"; secure":""].join(""));}b=e||{};var a,f=b.raw?function(h){return h;}:decodeURIComponent;return(a=new RegExp("(?:^|; )"+encodeURIComponent(d)+"=([^;]*)").exec(document.cookie))?f(a[1]):null;};(function(g){function b(){this.regional=[];this.regional[""]={labels:["Years","Months","Weeks","Days","Hours","Minutes","Seconds"],labels1:["Year","Month","Week","Day","Hour","Minute","Second"],compactLabels:["y","m","w","d"],whichLabels:null,timeSeparator:":",isRTL:false};this._defaults={until:null,since:null,timezone:null,serverSync:null,format:"dHMS",layout:"",compact:false,significant:0,description:"",expiryUrl:"",expiryText:"",alwaysExpire:false,onExpiry:null,onTick:null,tickInterval:1};g.extend(this._defaults,this.regional[""]);this._serverSyncs=[];function n(p){var q=(p||new Date().getTime());if(q-m>=1000){g.countdown._updateTargets();m=q;}o(n);}var o=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||null;var m=0;if(!o){setInterval(function(){g.countdown._updateTargets();},980);}else{m=window.mozAnimationStartTime||new Date().getTime();o(n);}}var k="countdown";var c=0;var h=1;var d=2;var a=3;var l=4;var j=5;var f=6;g.extend(b.prototype,{markerClassName:"hasCountdown",_timerTargets:[],setDefaults:function(m){this._resetExtraLabels(this._defaults,m);e(this._defaults,m||{});},UTCDate:function(o,v,q,w,x,n,p,m){if(typeof v=="object"&&v.constructor==Date){m=v.getMilliseconds();p=v.getSeconds();n=v.getMinutes();x=v.getHours();w=v.getDate();q=v.getMonth();v=v.getFullYear();}var u=new Date();u.setUTCFullYear(v);u.setUTCDate(1);u.setUTCMonth(q||0);u.setUTCDate(w||1);u.setUTCHours(x||0);u.setUTCMinutes((n||0)-(Math.abs(o)<30?o*60:o));u.setUTCSeconds(p||0);u.setUTCMilliseconds(m||0);return u;},periodsToSeconds:function(m){return m[0]*31557600+m[1]*2629800+m[2]*604800+m[3]*86400+m[4]*3600+m[5]*60+m[6];},_settingsCountdown:function(o,m){if(!m){return g.countdown._defaults;}var n=g.data(o,k);return(m=="all"?n.options:n.options[m]);},_attachCountdown:function(p,n){var m=g(p);if(m.hasClass(this.markerClassName)){return;}m.addClass(this.markerClassName);var o={options:g.extend({},n),_periods:[0,0,0,0,0,0,0]};g.data(p,k,o);this._changeCountdown(p);},_addTarget:function(m){if(!this._hasTarget(m)){this._timerTargets.push(m);}},_hasTarget:function(m){return(g.inArray(m,this._timerTargets)>-1);},_removeTarget:function(m){this._timerTargets=g.map(this._timerTargets,function(n){return(n==m?null:n);});},_updateTargets:function(){for(var m=this._timerTargets.length-1;m>=0;m--){this._updateCountdown(this._timerTargets[m]);}},_updateCountdown:function(v,q){var o=g(v);q=q||g.data(v,k);if(!q){return;}o.html(this._generateHTML(q));o[(this._get(q,"isRTL")?"add":"remove")+"Class"]("countdown_rtl");var p=this._get(q,"onTick");if(p){var w=q._hold!="lap"?q._periods:this._calculatePeriods(q,q._show,this._get(q,"significant"),new Date());var m=this._get(q,"tickInterval");if(m==1||this.periodsToSeconds(w)%m==0){p.apply(v,[w]);}}var x=q._hold!="pause"&&(q._since?q._now.getTime()<q._since.getTime():q._now.getTime()>=q._until.getTime());if(x&&!q._expiring){q._expiring=true;if(this._hasTarget(v)||this._get(q,"alwaysExpire")){this._removeTarget(v);var n=this._get(q,"onExpiry");if(n){n.apply(v,[]);}var z=this._get(q,"expiryText");if(z){var u=this._get(q,"layout");q.options.layout=z;this._updateCountdown(v,q);q.options.layout=u;}var y=this._get(q,"expiryUrl");if(y){window.location=y;}}q._expiring=false;}else{if(q._hold=="pause"){this._removeTarget(v);}}g.data(v,k,q);},_changeCountdown:function(u,o,q){o=o||{};if(typeof o=="string"){var n=o;o={};o[n]=q;}var p=g.data(u,k);if(p){this._resetExtraLabels(p.options,o);e(p.options,o);this._adjustSettings(u,p);g.data(u,k,p);var m=new Date();if((p._since&&p._since<m)||(p._until&&p._until>m)){this._addTarget(u);}this._updateCountdown(u,p);}},_resetExtraLabels:function(p,m){var o=false;for(var q in m){if(q!="whichLabels"&&q.match(/[Ll]abels/)){o=true;break;}}if(o){for(var q in p){if(q.match(/[Ll]abels[0-9]/)){p[q]=null;}}}},_adjustSettings:function(v,q){var n;var w=this._get(q,"serverSync");var p=0;var x=null;for(var o=0;o<this._serverSyncs.length;o++){if(this._serverSyncs[o][0]==w){x=this._serverSyncs[o][1];break;}}if(x!=null){p=(w?x:0);n=new Date();}else{var m=(w?w.apply(v,[]):null);n=new Date();p=(m?n.getTime()-m.getTime():0);this._serverSyncs.push([w,p]);}var u=this._get(q,"timezone");u=(u==null?-n.getTimezoneOffset():u);q._since=this._get(q,"since");if(q._since!=null){q._since=this.UTCDate(u,this._determineTime(q._since,null));if(q._since&&p){q._since.setMilliseconds(q._since.getMilliseconds()+p);}}q._until=this.UTCDate(u,this._determineTime(this._get(q,"until"),n));if(p){q._until.setMilliseconds(q._until.getMilliseconds()+p);}q._show=this._determineShow(q);},_destroyCountdown:function(n){var m=g(n);if(!m.hasClass(this.markerClassName)){return;}this._removeTarget(n);m.removeClass(this.markerClassName).empty();g.removeData(n,k);},_pauseCountdown:function(m){this._hold(m,"pause");},_lapCountdown:function(m){this._hold(m,"lap");},_resumeCountdown:function(m){this._hold(m,null);},_hold:function(p,o){var n=g.data(p,k);if(n){if(n._hold=="pause"&&!o){n._periods=n._savePeriods;var m=(n._since?"-":"+");n[n._since?"_since":"_until"]=this._determineTime(m+n._periods[0]+"y"+m+n._periods[1]+"o"+m+n._periods[2]+"w"+m+n._periods[3]+"d"+m+n._periods[4]+"h"+m+n._periods[5]+"m"+m+n._periods[6]+"s");this._addTarget(p);}n._hold=o;n._savePeriods=(o=="pause"?n._periods:null);g.data(p,k,n);this._updateCountdown(p,n);}},_getTimesCountdown:function(n){var m=g.data(n,k);return(!m?null:(!m._hold?m._periods:this._calculatePeriods(m,m._show,this._get(m,"significant"),new Date())));},_get:function(n,m){return(n.options[m]!=null?n.options[m]:g.countdown._defaults[m]);},_determineTime:function(p,m){var o=function(v){var u=new Date();u.setTime(u.getTime()+v*1000);return u;};var n=function(y){y=y.toLowerCase();var v=new Date();var C=v.getFullYear();var A=v.getMonth();var D=v.getDate();var x=v.getHours();var w=v.getMinutes();var u=v.getSeconds();var B=/([+-]?[0-9]+)\s*(s|m|h|d|w|o|y)?/g;var z=B.exec(y);while(z){switch(z[2]||"s"){case"s":u+=parseInt(z[1],10);break;case"m":w+=parseInt(z[1],10);break;case"h":x+=parseInt(z[1],10);break;case"d":D+=parseInt(z[1],10);break;case"w":D+=parseInt(z[1],10)*7;break;case"o":A+=parseInt(z[1],10);D=Math.min(D,g.countdown._getDaysInMonth(C,A));break;case"y":C+=parseInt(z[1],10);D=Math.min(D,g.countdown._getDaysInMonth(C,A));break;}z=B.exec(y);}return new Date(C,A,D,x,w,u,0);};var q=(p==null?m:(typeof p=="string"?n(p):(typeof p=="number"?o(p):p)));if(q){q.setMilliseconds(0);}return q;},_getDaysInMonth:function(m,n){return 32-new Date(m,n,32).getDate();},_normalLabels:function(m){return m;},_generateHTML:function(q){var E=this._get(q,"significant");q._periods=(q._hold?q._periods:this._calculatePeriods(q,q._show,E,new Date()));var z=false;var n=0;var p=E;var B=g.extend({},q._show);for(var y=c;y<=f;y++){z|=(q._show[y]=="?"&&q._periods[y]>0);B[y]=(q._show[y]=="?"&&!z?null:q._show[y]);n+=(B[y]?1:0);p-=(q._periods[y]>0?1:0);}var A=[false,false,false,false,false,false,false];for(var y=f;y>=c;y--){if(q._show[y]){if(q._periods[y]){A[y]=true;}else{A[y]=p>0;p--;}}}var x=this._get(q,"compact");var v=this._get(q,"layout");var u=(x?this._get(q,"compactLabels"):this._get(q,"labels"));var m=this._get(q,"whichLabels")||this._normalLabels;var D=this._get(q,"timeSeparator");var C=this._get(q,"description")||"";var w=function(G){var F=g.countdown._get(q,"compactLabels"+m(q._periods[G]));return(B[G]?q._periods[G]+(F?F[G]:u[G])+" ":"");};var o=function(G){var F=g.countdown._get(q,"labels"+m(q._periods[G]));return((!E&&B[G])||(E&&A[G])?'<span class="countdown_section"><span class="countdown_amount">'+q._periods[G]+"</span><br/>"+(F?F[G]:u[G])+"</span>":"");};return(v?this._buildLayout(q,B,v,x,E,A):((x?'<span class="countdown_row countdown_amount'+(q._hold?" countdown_holding":"")+'">'+w(c)+w(h)+w(d)+w(a)+(B[l]?this._minDigits(q._periods[l],2):"")+(B[j]?(B[l]?D:"")+this._minDigits(q._periods[j],2):"")+(B[f]?(B[l]||B[j]?D:"")+this._minDigits(q._periods[f],2):""):'<span class="countdown_row countdown_show'+(E||n)+(q._hold?" countdown_holding":"")+'">'+o(c)+o(h)+o(d)+o(a)+o(l)+o(j)+o(f))+"</span>"+(C?'<span class="countdown_row countdown_descr">'+C+"</span>":"")));},_buildLayout:function(u,B,w,y,C,A){var v=this._get(u,(y?"compactLabels":"labels"));var n=this._get(u,"whichLabels")||this._normalLabels;var m=function(E){return(g.countdown._get(u,(y?"compactLabels":"labels")+n(u._periods[E]))||v)[E];};var z=function(F,E){return Math.floor(F/E)%10;};var o={desc:this._get(u,"description"),sep:this._get(u,"timeSeparator"),yl:m(c),yn:u._periods[c],ynn:this._minDigits(u._periods[c],2),ynnn:this._minDigits(u._periods[c],3),y1:z(u._periods[c],1),y10:z(u._periods[c],10),y100:z(u._periods[c],100),y1000:z(u._periods[c],1000),ol:m(h),on:u._periods[h],onn:this._minDigits(u._periods[h],2),onnn:this._minDigits(u._periods[h],3),o1:z(u._periods[h],1),o10:z(u._periods[h],10),o100:z(u._periods[h],100),o1000:z(u._periods[h],1000),wl:m(d),wn:u._periods[d],wnn:this._minDigits(u._periods[d],2),wnnn:this._minDigits(u._periods[d],3),w1:z(u._periods[d],1),w10:z(u._periods[d],10),w100:z(u._periods[d],100),w1000:z(u._periods[d],1000),dl:m(a),dn:u._periods[a],dnn:this._minDigits(u._periods[a],2),dnnn:this._minDigits(u._periods[a],3),d1:z(u._periods[a],1),d10:z(u._periods[a],10),d100:z(u._periods[a],100),d1000:z(u._periods[a],1000),hl:m(l),hn:u._periods[l],hnn:this._minDigits(u._periods[l],2),hnnn:this._minDigits(u._periods[l],3),h1:z(u._periods[l],1),h10:z(u._periods[l],10),h100:z(u._periods[l],100),h1000:z(u._periods[l],1000),ml:m(j),mn:u._periods[j],mnn:this._minDigits(u._periods[j],2),mnnn:this._minDigits(u._periods[j],3),m1:z(u._periods[j],1),m10:z(u._periods[j],10),m100:z(u._periods[j],100),m1000:z(u._periods[j],1000),sl:m(f),sn:u._periods[f],snn:this._minDigits(u._periods[f],2),snnn:this._minDigits(u._periods[f],3),s1:z(u._periods[f],1),s10:z(u._periods[f],10),s100:z(u._periods[f],100),s1000:z(u._periods[f],1000)};var q=w;for(var p=c;p<=f;p++){var x="yowdhms".charAt(p);var D=new RegExp("\\{"+x+"<\\}(.*)\\{"+x+">\\}","g");q=q.replace(D,((!C&&B[p])||(C&&A[p])?"$1":""));}g.each(o,function(G,E){var F=new RegExp("\\{"+G+"\\}","g");q=q.replace(F,E);});return q;},_minDigits:function(n,m){n=""+n;if(n.length>=m){return n;}n="0000000000"+n;return n.substr(n.length-m);},_determineShow:function(n){var o=this._get(n,"format");var m=[];m[c]=(o.match("y")?"?":(o.match("Y")?"!":null));m[h]=(o.match("o")?"?":(o.match("O")?"!":null));m[d]=(o.match("w")?"?":(o.match("W")?"!":null));m[a]=(o.match("d")?"?":(o.match("D")?"!":null));m[l]=(o.match("h")?"?":(o.match("H")?"!":null));m[j]=(o.match("m")?"?":(o.match("M")?"!":null));m[f]=(o.match("s")?"?":(o.match("S")?"!":null));return m;},_calculatePeriods:function(p,G,w,n){p._now=n;p._now.setMilliseconds(0);var u=new Date(p._now.getTime());if(p._since){if(n.getTime()<p._since.getTime()){p._now=n=u;}else{n=p._since;}}else{u.setTime(p._until.getTime());if(n.getTime()>p._until.getTime()){p._now=n=u;}}var m=[0,0,0,0,0,0,0];if(G[c]||G[h]){var B=g.countdown._getDaysInMonth(n.getFullYear(),n.getMonth());var C=g.countdown._getDaysInMonth(u.getFullYear(),u.getMonth());var v=(u.getDate()==n.getDate()||(u.getDate()>=Math.min(B,C)&&n.getDate()>=Math.min(B,C)));var F=function(I){return(I.getHours()*60+I.getMinutes())*60+I.getSeconds();};var x=Math.max(0,(u.getFullYear()-n.getFullYear())*12+u.getMonth()-n.getMonth()+((u.getDate()<n.getDate()&&!v)||(v&&F(u)<F(n))?-1:0));m[c]=(G[c]?Math.floor(x/12):0);m[h]=(G[h]?x-m[c]*12:0);n=new Date(n.getTime());var H=(n.getDate()==B);var q=g.countdown._getDaysInMonth(n.getFullYear()+m[c],n.getMonth()+m[h]);if(n.getDate()>q){n.setDate(q);}n.setFullYear(n.getFullYear()+m[c]);n.setMonth(n.getMonth()+m[h]);if(H){n.setDate(q);}}var A=Math.floor((u.getTime()-n.getTime())/1000);var o=function(J,I){m[J]=(G[J]?Math.floor(A/I):0);A-=m[J]*I;};o(d,604800);o(a,86400);o(l,3600);o(j,60);o(f,1);if(A>0&&!p._since){var y=[1,12,4.3482,7,24,60,60];var z=f;var D=1;for(var E=f;E>=c;E--){if(G[E]){if(m[z]>=D){m[z]=0;A=1;}if(A>0){m[E]++;A=0;z=E;D=1;}}D*=y[E];}}if(w){for(var E=c;E<=f;E++){if(w&&m[E]){w--;}else{if(!w){m[E]=0;}}}}return m;}});function e(o,n){g.extend(o,n);for(var m in n){if(n[m]==null){o[m]=null;}}return o;}g.fn.countdown=function(n){var m=Array.prototype.slice.call(arguments,1);if(n=="getTimes"||n=="settings"){return g.countdown["_"+n+"Countdown"].apply(g.countdown,[this[0]].concat(m));}return this.each(function(){if(typeof n=="string"){g.countdown["_"+n+"Countdown"].apply(g.countdown,[this].concat(m));}else{g.countdown._attachCountdown(this,n);}});};g.countdown=new b();})(jQuery);(function(d){var a="Lite-1.3";d.fn.cycle=function(e){return this.each(function(){e=e||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout);}this.cycleTimeout=0;this.cyclePause=0;var m=d(this);var j=e.slideExpr?d(e.slideExpr,this):m.children();var g=j.get();if(g.length<2){window.console&&console.log("terminating; too few slides: "+g.length);return;}var f=d.extend({},d.fn.cycle.defaults,e||{},d.metadata?m.metadata():d.meta?m.data():{});var n=d.isFunction(m.data)?m.data(f.metaAttr):null;if(n){f=d.extend(f,n);}f.before=f.before?[f.before]:[];f.after=f.after?[f.after]:[];f.after.unshift(function(){f.busy=0;});var o=this.className;f.width=parseInt((o.match(/w:(\d+)/)||[])[1])||f.width;f.height=parseInt((o.match(/h:(\d+)/)||[])[1])||f.height;f.timeout=parseInt((o.match(/t:(\d+)/)||[])[1])||f.timeout;if(m.css("position")=="static"){m.css("position","relative");}if(f.width){m.width(f.width);}if(f.height&&f.height!="auto"){m.height(f.height);}var h=0;j.css({position:"absolute",top:0,left:0}).each(function(p){d(this).css("z-index",g.length-p);});d(g[h]).css("opacity",1).show();if(d.browser.msie){g[h].style.removeAttribute("filter");}if(f.fit&&f.width){j.width(f.width);}if(f.fit&&f.height&&f.height!="auto"){j.height(f.height);}if(f.pause){m.hover(function(){this.cyclePause=1;},function(){this.cyclePause=0;});}var k=d.fn.cycle.transitions[f.fx];k&&k(m,j,f);j.each(function(){var p=d(this);this.cycleH=(f.fit&&f.height)?f.height:p.height();this.cycleW=(f.fit&&f.width)?f.width:p.width();});if(f.cssFirst){d(j[h]).css(f.cssFirst);}if(f.timeout){if(f.speed.constructor==String){f.speed={slow:600,fast:200}[f.speed]||400;}if(!f.sync){f.speed=f.speed/2;}while((f.timeout-f.speed)<250){f.timeout+=f.speed;}}f.speedIn=f.speed;f.speedOut=f.speed;f.slideCount=g.length;f.currSlide=h;f.nextSlide=1;var l=j[h];if(f.before.length){f.before[0].apply(l,[l,l,f,true]);}if(f.after.length>1){f.after[1].apply(l,[l,l,f,true]);}if(f.click&&!f.next){f.next=f.click;}if(f.next){d(f.next).bind("click",function(){return c(g,f,f.rev?-1:1);});}if(f.prev){d(f.prev).bind("click",function(){return c(g,f,f.rev?1:-1);});}if(f.timeout){this.cycleTimeout=setTimeout(function(){b(g,f,0,!f.rev);},f.timeout+(f.delay||0));}});};function b(k,e,j,l){if(e.busy){return;}var h=k[0].parentNode,n=k[e.currSlide],m=k[e.nextSlide];if(h.cycleTimeout===0&&!j){return;}if(j||!h.cyclePause){if(e.before.length){d.each(e.before,function(p,q){q.apply(m,[n,m,e,l]);});}var f=function(){if(d.browser.msie){this.style.removeAttribute("filter");}d.each(e.after,function(p,q){q.apply(m,[n,m,e,l]);});};if(e.nextSlide!=e.currSlide){e.busy=1;d.fn.cycle.custom(n,m,e,f);}var g=(e.nextSlide+1)==k.length;e.nextSlide=g?0:e.nextSlide+1;e.currSlide=g?k.length-1:e.nextSlide-1;}if(e.timeout){h.cycleTimeout=setTimeout(function(){b(k,e,0,!e.rev);},e.timeout);}}function c(e,f,j){var h=e[0].parentNode,g=h.cycleTimeout;if(g){clearTimeout(g);h.cycleTimeout=0;}f.nextSlide=f.currSlide+j;if(f.nextSlide<0){f.nextSlide=e.length-1;}else{if(f.nextSlide>=e.length){f.nextSlide=0;}}b(e,f,1,j>=0);return false;}d.fn.cycle.custom=function(l,h,j,e){var k=d(l),g=d(h);g.css(j.cssBefore);var f=function(){g.animate(j.animIn,j.speedIn,j.easeIn,e);};k.animate(j.animOut,j.speedOut,j.easeOut,function(){k.css(j.cssAfter);if(!j.sync){f();}});if(j.sync){f();}};d.fn.cycle.transitions={fade:function(f,g,e){g.not(":eq(0)").hide();e.cssBefore={opacity:0,display:"block"};e.cssAfter={display:"none"};e.animOut={opacity:0};e.animIn={opacity:1};},fadeout:function(f,g,e){e.before.push(function(l,j,k,h){d(l).css("zIndex",k.slideCount+(h===true?1:0));d(j).css("zIndex",k.slideCount+(h===true?0:1));});g.not(":eq(0)").hide();e.cssBefore={opacity:1,display:"block",zIndex:1};e.cssAfter={display:"none",zIndex:0};e.animOut={opacity:0};}};d.fn.cycle.ver=function(){return a;};d.fn.cycle.defaults={animIn:{},animOut:{},fx:"fade",after:null,before:null,cssBefore:{},cssAfter:{},delay:0,fit:0,height:"auto",metaAttr:"cycle",next:null,pause:0,prev:null,speed:1000,slideExpr:null,sync:1,timeout:4000};})(jQuery);(function(f){f.fn.dirtyFields=function(j){var h=f.extend({},f.fn.dirtyFields.defaults,j);return this.each(function(){var k=f(this);k.data("dF",h);k.data("dF").dirtyFieldsDataProperty=new Array;f("input[type='text'],input[type='file'],input[type='password'],textarea",k).each(function(l){f.fn.dirtyFields.configureField(f(this),k,"text");});f("select",k).each(function(l){f.fn.dirtyFields.configureField(f(this),k,"select");});f(":checkbox,:radio",k).each(function(l){f.fn.dirtyFields.configureField(f(this),k,"checkRadio");});f.fn.dirtyFields.setStartingValues(k);});};f.fn.dirtyFields.defaults={checkboxRadioContext:"next-span",denoteDirtyOptions:false,denoteDirtyForm:false,dirtyFieldClass:"dirtyField",dirtyFieldsDataProperty:"dirtyFields",dirtyFormClass:"dirtyForm",dirtyOptionClass:"dirtyOption",fieldChangeCallback:"",formChangeCallback:"",preFieldChangeCallback:"",startingValueDataProperty:"startingValue",textboxSelectContext:"id-for",trimText:false,fieldOverrides:{none:"none"}};f.fn.dirtyFields.configureField=function(j,l,h,k){if(typeof k!="undefined"){l.data("dF").fieldOverrides[j.attr("id")]=k;}switch(h){case"text":j.change(function(){if(f.isFunction(l.data("dF").preFieldChangeCallback)){if(l.data("dF").preFieldChangeCallback.call(j,j.data(l.data("dF").startingValueDataProperty))==false){return false;}}e(j,l);});break;case"select":j.change(function(){if(f.isFunction(l.data("dF").preFieldChangeCallback)){if(l.data("dF").preFieldChangeCallback.call(j,j.data(l.data("dF").startingValueDataProperty))==false){return false;}}c(j,l);});break;case"checkRadio":j.change(function(){if(f.isFunction(l.data("dF").preFieldChangeCallback)){if(l.data("dF").preFieldChangeCallback.call(j,j.data(l.data("dF").startingValueDataProperty))==false){return false;}}g(j,l);});break;}};f.fn.dirtyFields.formSaved=function(h){f.fn.dirtyFields.setStartingValues(h);f.fn.dirtyFields.markContainerFieldsClean(h);};f.fn.dirtyFields.markContainerFieldsClean=function(h){var j=new Array();h.data("dF").dirtyFieldsDataProperty=j;f("."+h.data("dF").dirtyFieldClass,h).removeClass(h.data("dF").dirtyFieldClass);if(h.data("dF").denoteDirtyOptions){f("."+h.data("dF").dirtyOptionClass,h).removeClass(h.data("dF").dirtyOptionClass);}if(h.data("dF").denoteDirtyForm){h.removeClass(h.data("dF").dirtyFormClass);}};f.fn.dirtyFields.setStartingValues=function(j,h){f("input[type='text'],input[type='file'],input[type='password'],:checkbox,:radio,textarea",j).each(function(k){var l=f(this);if(l.attr("type")=="radio"||l.attr("type")=="checkbox"){f.fn.dirtyFields.setStartingCheckboxRadioValue(l,j);}else{f.fn.dirtyFields.setStartingTextValue(l,j);}});f("select",j).each(function(k){f.fn.dirtyFields.setStartingSelectValue(f(this),j);});};f.fn.dirtyFields.setStartingTextValue=function(h,j){return h.each(function(){var k=f(this);k.data(j.data("dF").startingValueDataProperty,k.val());});};f.fn.dirtyFields.setStartingCheckboxRadioValue=function(h,j){return h.each(function(){var k=f(this);if(k.attr("checked")){k.data(j.data("dF").startingValueDataProperty,true);}else{k.data(j.data("dF").startingValueDataProperty,false);}});};f.fn.dirtyFields.setStartingSelectValue=function(h,j){return h.each(function(){var k=f(this);if(j.data("dF").denoteDirtyOptions==false&&k.attr("multiple")==false){k.data(j.data("dF").startingValueDataProperty,k.val());}else{var l=new Array;k.children("option").each(function(n){var m=f(this);if(m.attr("selected")){m.data(j.data("dF").startingValueDataProperty,true);l.push(m.val());}else{m.data(j.data("dF").startingValueDataProperty,false);}});k.data(j.data("dF").startingValueDataProperty,l);}});};f.fn.dirtyFields.rollbackTextValue=function(j,k,h){if(typeof h=="undefined"){h=true;}return j.each(function(){var l=f(this);l.val(l.data(k.data("dF").startingValueDataProperty));if(h){e(l,k);}});};f.fn.dirtyFields.updateTextState=function(h,j){return h.each(function(){e(f(this),j);});};f.fn.dirtyFields.rollbackCheckboxRadioState=function(j,k,h){if(typeof h=="undefined"){h=true;}return j.each(function(){var l=f(this);if(l.data(k.data("dF").startingValueDataProperty)){l.attr("checked",true);}else{l.attr("checked",false);}if(h){g(l,k);}});};f.fn.dirtyFields.updateCheckboxRadioState=function(h,j){return h.each(function(){g(f(this),j);});};f.fn.dirtyFields.rollbackSelectState=function(j,k,h){if(typeof h=="undefined"){h=true;}return j.each(function(){var l=f(this);if(k.data("dF").denoteDirtyOptions==false&&l.attr("multiple")==false){l.val(l.data(k.data("dF").startingValueDataProperty));}else{l.children("option").each(function(n){var m=f(this);if(m.data(k.data("dF").startingValueDataProperty)){m.attr("selected",true);}else{m.attr("selected",false);}});}if(h){c(l,k);}});};f.fn.dirtyFields.updateSelectState=function(h,j){return h.each(function(){c(f(this),j);});};f.fn.dirtyFields.rollbackForm=function(h){f("input[type='text'],input[type='file'],input[type='password'],:checkbox,:radio,textarea",h).each(function(j){$object=f(this);if($object.attr("type")=="radio"||$object.attr("type")=="checkbox"){f.fn.dirtyFields.rollbackCheckboxRadioState($object,h,false);}else{f.fn.dirtyFields.rollbackTextValue($object,h,false);}});f("select",h).each(function(k){f.fn.dirtyFields.rollbackSelectState(f(this),h,false);});f.fn.dirtyFields.markContainerFieldsClean(h);};function d(m,l,h){var k=l.data("dF").dirtyFieldsDataProperty;var j=f.inArray(m,k);if(h=="dirty"&&j==-1){k.push(m);l.data("dF").dirtyFieldsDataProperty=k;}else{if(h=="clean"&&j>-1){k.splice(j,1);l.data("dF").dirtyFieldsDataProperty=k;}}}function a(h){if(f("."+h.data("dF").dirtyFieldClass,h).length>0){h.addClass(h.data("dF").dirtyFormClass);if(f.isFunction(h.data("dF").formChangeCallback)){h.data("dF").formChangeCallback.call(h,true,h.data("dF").dirtyFieldsDataProperty);}}else{h.removeClass(h.data("dF").dirtyFormClass);if(f.isFunction(h.data("dF").formChangeCallback)){h.data("dF").formChangeCallback.call(h,false,h.data("dF").dirtyFieldsDataProperty);}}}function b(k,q,m,u){var p=u.data("dF").fieldOverrides;var l=q.attr("id");var j=false;for(var n in p){if(l==n){if(m=="changed"){f("#"+p[n]).addClass(u.data("dF").dirtyFieldClass);}else{f("#"+p[n]).removeClass(u.data("dF").dirtyFieldClass);}j=true;}}if(j==false){if(k=="textboxSelectContext"){var o=u.data("dF").textboxSelectContext;}else{var o=u.data("dF").checkboxRadioContext;}var h=o.split("-");switch(h[0]){case"next":if(m=="changed"){q.next(h[1]).addClass(u.data("dF").dirtyFieldClass);}else{q.next(h[1]).removeClass(u.data("dF").dirtyFieldClass);}break;case"previous":if(m=="changed"){q.prev(h[1]).addClass(u.data("dF").dirtyFieldClass);}else{q.prev(h[1]).removeClass(u.data("dF").dirtyFieldClass);}break;case"closest":if(m=="changed"){q.closest(h[1]).addClass(u.data("dF").dirtyFieldClass);}else{q.closest(h[1]).removeClass(u.data("dF").dirtyFieldClass);}break;default:if(h[0]=="id"||h[0]=="name"){switch(h[1]){case"class":if(m=="changed"){f("."+q.attr(h[0]),u).addClass(u.data("dF").dirtyFieldClass);}else{f("."+q.attr(h[0]),u).removeClass(u.data("dF").dirtyFieldClass);}break;case"title":if(m=="changed"){f("*[title='"+q.attr(h[0])+"']",u).addClass(u.data("dF").dirtyFieldClass);}else{f("*[title='"+q.attr(h[0])+"']",u).removeClass(u.data("dF").dirtyFieldClass);}break;case"for":if(m=="changed"){f("label[for='"+q.attr(h[0])+"']",u).addClass(u.data("dF").dirtyFieldClass);}else{f("label[for='"+q.attr(h[0])+"']",u).removeClass(u.data("dF").dirtyFieldClass);}break;}}break;}}}function e(k,l){var m=k.attr("name");var h=false;if(l.data("dF").trimText){var j=jQuery.trim(k.val());}else{var j=k.val();}if(j!=k.data(l.data("dF").startingValueDataProperty)){b("textboxSelectContext",k,"changed",l);d(m,l,"dirty");h=true;}else{b("textboxSelectContext",k,"unchanged",l);d(m,l,"clean");}if(f.isFunction(l.data("dF").fieldChangeCallback)){l.data("dF").fieldChangeCallback.call(k,k.data(l.data("dF").startingValueDataProperty),h);}if(l.data("dF").denoteDirtyForm){a(l);}}function c(j,l){var m=j.attr("name");var h=false;if(l.data("dF").denoteDirtyOptions==false&&j.attr("multiple")==false){if(j.val()!=j.data(l.data("dF").startingValueDataProperty)){b("textboxSelectContext",j,"changed",l);d(m,l,"dirty");h=true;}else{b("textboxSelectContext",j,"unchanged",l);d(m,l,"clean");}}else{var k=false;j.children("option").each(function(q){var p=f(this);var n=p.attr("selected");if(n!=p.data(l.data("dF").startingValueDataProperty)){if(l.data("dF").denoteDirtyOptions){p.addClass(l.data("dF").dirtyOptionClass);}k=true;}else{if(l.data("dF").denoteDirtyOptions){p.removeClass(l.data("dF").dirtyOptionClass);}}});if(k){b("textboxSelectContext",j,"changed",l);d(m,l,"dirty");h=true;}else{b("textboxSelectContext",j,"unchanged",l);d(m,l,"clean");}}if(f.isFunction(l.data("dF").fieldChangeCallback)){l.data("dF").fieldChangeCallback.call(j,j.data(l.data("dF").startingValueDataProperty),h);}if(l.data("dF").denoteDirtyForm){a(l);}}function g(j,k){var m=j.attr("name");var h=false;var l=j.attr("checked");if(l!=j.data(k.data("dF").startingValueDataProperty)){b("checkboxRadioContext",j,"changed",k);h=true;}else{b("checkboxRadioContext",j,"unchanged",k);}if(j.attr("type")=="radio"){f(":radio[name='"+m+"']",k).each(function(q){var p=f(this);var o=p.attr("name");var n=p.attr("checked");if(n!=p.data(k.data("dF").startingValueDataProperty)){b("checkboxRadioContext",p,"changed",k);h=true;}else{b("checkboxRadioContext",p,"unchanged",k);}});}if(h){d(m,k,"dirty");}else{d(m,k,"clean");}if(f.isFunction(k.data("dF").fieldChangeCallback)){k.data("dF").fieldChangeCallback.call(j,j.data(k.data("dF").startingValueDataProperty),h);}if(k.data("dF").denoteDirtyForm){a(k);}}})(jQuery);
/*
 * jQuery Form Plugin
 * version: 2.63 (29-JAN-2011)
 * @requires jQuery v1.3.2 or later
 *
 * Examples and documentation at: http://malsup.com/jquery/form/
 * Dual licensed under the MIT and GPL licenses:
 *   http://www.opensource.org/licenses/mit-license.php
 *   http://www.gnu.org/licenses/gpl.html
 */
(function(b){b.fn.ajaxSubmit=function(y){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this;}if(typeof y=="function"){y={success:y};}var h=this.attr("action");var d=(typeof h==="string")?b.trim(h):"";if(d){d=(d.match(/^([^#]+)/)||[])[1];}d=d||window.location.href||"";y=b.extend(true,{url:d,type:this[0].getAttribute("method")||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},y);var z={};this.trigger("form-pre-serialize",[this,y,z]);if(z.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this;}if(y.beforeSerialize&&y.beforeSerialize(this,y)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this;}var f,u,o=this.formToArray(y.semantic);if(y.data){y.extraData=y.data;for(f in y.data){if(y.data[f] instanceof Array){for(var j in y.data[f]){o.push({name:f,value:y.data[f][j]});}}else{u=y.data[f];u=b.isFunction(u)?u():u;o.push({name:f,value:u});}}}if(y.beforeSubmit&&y.beforeSubmit(o,this,y)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this;}this.trigger("form-submit-validate",[o,this,y,z]);if(z.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this;}var c=b.param(o);if(y.type.toUpperCase()=="GET"){y.url+=(y.url.indexOf("?")>=0?"&":"?")+c;y.data=null;}else{y.data=c;}var x=this,m=[];if(y.resetForm){m.push(function(){x.resetForm();});}if(y.clearForm){m.push(function(){x.clearForm();});}if(!y.dataType&&y.target){var w=y.success||function(){};m.push(function(n){var k=y.replaceTarget?"replaceWith":"html";b(y.target)[k](n).each(w,arguments);});}else{if(y.success){m.push(y.success);}}y.success=function(A,n,B){var v=y.context||y;for(var q=0,k=m.length;q<k;q++){m[q].apply(v,[A,n,B||x,x]);}};var g=b("input:file",this).length>0;var e="multipart/form-data";var l=(x.attr("enctype")==e||x.attr("encoding")==e);if(y.iframe!==false&&(g||y.iframe||l)){if(y.closeKeepAlive){b.get(y.closeKeepAlive,p);}else{p();}}else{b.ajax(y);}this.trigger("form-submit-notify",[this,y]);return this;function p(){var v=x[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 F=b.extend(true,{},b.ajaxSettings,y);F.context=F.context||F;var I="jqFormIO"+(new Date().getTime()),D="_"+I;var A=b('<iframe id="'+I+'" name="'+I+'" src="'+F.iframeSrc+'" />');var E=A[0];A.css({position:"absolute",top:"-1000px",left:"-1000px"});var B={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(){this.aborted=1;A.attr("src",F.iframeSrc);}};var M=F.global;if(M&&!b.active++){b.event.trigger("ajaxStart");}if(M){b.event.trigger("ajaxSend",[B,F]);}if(F.beforeSend&&F.beforeSend.call(F.context,B,F)===false){if(F.global){b.active--;}return;}if(B.aborted){return;}var L=0;var C=v.clk;if(C){var J=C.name;if(J&&!C.disabled){F.extraData=F.extraData||{};F.extraData[J]=C.value;if(C.type=="image"){F.extraData[J+".x"]=v.clk_x;F.extraData[J+".y"]=v.clk_y;}}}function K(){var S=x.attr("target"),Q=x.attr("action");v.setAttribute("target",I);if(v.getAttribute("method")!="POST"){v.setAttribute("method","POST");}if(v.getAttribute("action")!=F.url){v.setAttribute("action",F.url);}if(!F.skipEncodingOverride){x.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"});}if(F.timeout){setTimeout(function(){L=true;H();},F.timeout);}var R=[];try{if(F.extraData){for(var T in F.extraData){R.push(b('<input type="hidden" name="'+T+'" value="'+F.extraData[T]+'" />').appendTo(v)[0]);}}A.appendTo("body");E.attachEvent?E.attachEvent("onload",H):E.addEventListener("load",H,false);v.submit();}finally{v.setAttribute("action",Q);if(S){v.setAttribute("target",S);}else{x.removeAttr("target");}b(R).remove();}}if(F.forceSync){K();}else{setTimeout(K,10);}var O,P,N=50;function H(){P=E.contentWindow?E.contentWindow.document:E.contentDocument?E.contentDocument:E.document;if(!P||P.location.href==F.iframeSrc){return;}E.detachEvent?E.detachEvent("onload",H):E.removeEventListener("load",H,false);var R=true;try{if(L){throw"timeout";}var V=F.dataType=="xml"||P.XMLDocument||b.isXMLDoc(P);a("isXml="+V);if(!V&&window.opera&&(P.body==null||P.body.innerHTML=="")){if(--N){a("requeing onLoad callback, DOM not available");setTimeout(H,250);return;}}B.responseText=P.body?P.body.innerHTML:P.documentElement?P.documentElement.innerHTML:null;B.responseXML=P.XMLDocument?P.XMLDocument:P;B.getResponseHeader=function(X){var W={"content-type":F.dataType};return W[X];};var U=/(json|script)/.test(F.dataType);if(U||F.textarea){var Q=P.getElementsByTagName("textarea")[0];if(Q){B.responseText=Q.value;}else{if(U){var T=P.getElementsByTagName("pre")[0];var n=P.getElementsByTagName("body")[0];if(T){B.responseText=T.textContent;}else{if(n){B.responseText=n.innerHTML;}}}}}else{if(F.dataType=="xml"&&!B.responseXML&&B.responseText!=null){B.responseXML=G(B.responseText);}}O=k(B,F.dataType,F);}catch(S){a("error caught:",S);R=false;B.error=S;F.error.call(F.context,B,"error",S);M&&b.event.trigger("ajaxError",[B,F,S]);}if(B.aborted){a("upload aborted");R=false;}if(R){F.success.call(F.context,O,"success",B);M&&b.event.trigger("ajaxSuccess",[B,F]);}M&&b.event.trigger("ajaxComplete",[B,F]);if(M&&!--b.active){b.event.trigger("ajaxStop");}F.complete&&F.complete.call(F.context,B,R?"success":"error");setTimeout(function(){A.removeData("form-plugin-onload");A.remove();B.responseXML=null;},100);}var G=b.parseXML||function(n,Q){if(window.ActiveXObject){Q=new ActiveXObject("Microsoft.XMLDOM");Q.async="false";Q.loadXML(n);}else{Q=(new DOMParser()).parseFromString(n,"text/xml");}return(Q&&Q.documentElement&&Q.documentElement.nodeName!="parsererror")?Q:null;};var q=b.parseJSON||function(n){return window["eval"]("("+n+")");};var k=function(U,S,R){var Q=U.getResponseHeader("content-type")||"",n=S==="xml"||!S&&Q.indexOf("xml")>=0,T=n?U.responseXML:U.responseText;if(n&&T.documentElement.nodeName==="parsererror"){b.error&&b.error("parsererror");}if(R&&R.dataFilter){T=R.dataFilter(T,S);}if(typeof T==="string"){if(S==="json"||!S&&Q.indexOf("json")>=0){T=q(T);}else{if(S==="script"||!S&&Q.indexOf("javascript")>=0){b.globalEval(T);}}}return T;};}};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,u,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;}u=b.fieldValue(e,true);if(u&&u.constructor==Array){for(h=0,c=u.length;h<c;h++){p.push({name:f,value:u[h]});}}else{if(u!==null&&typeof u!="undefined"){p.push({name:f,value:u});}}}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);(function(c,d){c.fn.jPlayer=function(h){var g="jPlayer";var e=typeof h==="string",f=Array.prototype.slice.call(arguments,1),j=this;h=!e&&f.length?c.extend.apply(null,[true,h].concat(f)):h;if(e&&h.charAt(0)==="_"){return j;}if(e){this.each(function(){var k=c.data(this,g),l=k&&c.isFunction(k[h])?k[h].apply(k,f):k;if(l!==k&&l!==d){j=l;return false;}});}else{this.each(function(){var k=c.data(this,g);if(k){k.option(h||{});}else{c.data(this,g,new c.jPlayer(h,this));}});}return j;};c.jPlayer=function(f,g){if(arguments.length){this.element=c(g);this.options=c.extend(true,{},this.options,f);var e=this;this.element.bind("remove.jPlayer",function(){e.destroy();});this._init();}};c.jPlayer.emulateMethods="load play pause";c.jPlayer.emulateStatus="src readyState networkState currentTime duration paused ended playbackRate";c.jPlayer.emulateOptions="muted volume";c.jPlayer.reservedEvent="ready flashreset resize repeat error warning";c.jPlayer.event={ready:"jPlayer_ready",flashreset:"jPlayer_flashreset",resize:"jPlayer_resize",repeat:"jPlayer_repeat",click:"jPlayer_click",error:"jPlayer_error",warning:"jPlayer_warning",loadstart:"jPlayer_loadstart",progress:"jPlayer_progress",suspend:"jPlayer_suspend",abort:"jPlayer_abort",emptied:"jPlayer_emptied",stalled:"jPlayer_stalled",play:"jPlayer_play",pause:"jPlayer_pause",loadedmetadata:"jPlayer_loadedmetadata",loadeddata:"jPlayer_loadeddata",waiting:"jPlayer_waiting",playing:"jPlayer_playing",canplay:"jPlayer_canplay",canplaythrough:"jPlayer_canplaythrough",seeking:"jPlayer_seeking",seeked:"jPlayer_seeked",timeupdate:"jPlayer_timeupdate",ended:"jPlayer_ended",ratechange:"jPlayer_ratechange",durationchange:"jPlayer_durationchange",volumechange:"jPlayer_volumechange"};c.jPlayer.htmlEvent=["loadstart","abort","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","ratechange"];c.jPlayer.pause=function(){c.each(c.jPlayer.prototype.instances,function(f,e){if(e.data("jPlayer").status.srcSet){e.jPlayer("pause");}});};c.jPlayer.timeFormat={showHour:false,showMin:true,showSec:true,padHour:false,padMin:true,padSec:true,sepHour:":",sepMin:":",sepSec:""};c.jPlayer.convertTime=function(k){var l=new Date(k*1000);var f=l.getUTCHours();var h=l.getUTCMinutes();var j=l.getUTCSeconds();var g=(c.jPlayer.timeFormat.padHour&&f<10)?"0"+f:f;var m=(c.jPlayer.timeFormat.padMin&&h<10)?"0"+h:h;var e=(c.jPlayer.timeFormat.padSec&&j<10)?"0"+j:j;return((c.jPlayer.timeFormat.showHour)?g+c.jPlayer.timeFormat.sepHour:"")+((c.jPlayer.timeFormat.showMin)?m+c.jPlayer.timeFormat.sepMin:"")+((c.jPlayer.timeFormat.showSec)?e+c.jPlayer.timeFormat.sepSec:"");};c.jPlayer.uaBrowser=function(k){var f=k.toLowerCase();var h=/(webkit)[ \/]([\w.]+)/;var l=/(opera)(?:.*version)?[ \/]([\w.]+)/;var g=/(msie) ([\w.]+)/;var j=/(mozilla)(?:.*? rv:([\w.]+))?/;var e=h.exec(f)||l.exec(f)||g.exec(f)||f.indexOf("compatible")<0&&j.exec(f)||[];return{browser:e[1]||"",version:e[2]||"0"};};c.jPlayer.uaPlatform=function(l){var h=l.toLowerCase();var m=/(ipad|iphone|ipod|android|blackberry|playbook|windows ce|webos)/;var k=/(ipad|playbook)/;var g=/(android)/;var j=/(mobile)/;var e=m.exec(h)||[];var f=k.exec(h)||!j.exec(h)&&g.exec(h)||[];if(e[1]){e[1]=e[1].replace(/\s/g,"_");}return{platform:e[1]||"",tablet:f[1]||""};};c.jPlayer.browser={};c.jPlayer.platform={};var b=c.jPlayer.uaBrowser(navigator.userAgent);if(b.browser){c.jPlayer.browser[b.browser]=true;c.jPlayer.browser.version=b.version;}var a=c.jPlayer.uaPlatform(navigator.userAgent);if(a.platform){c.jPlayer.platform[a.platform]=true;c.jPlayer.platform.mobile=!a.tablet;c.jPlayer.platform.tablet=!!a.tablet;}c.jPlayer.prototype={count:0,version:{script:"2.1.0",needFlash:"2.1.0",flash:"unknown"},options:{swfPath:"js",solution:"html, flash",supplied:"mp3",preload:"metadata",volume:0.8,muted:false,wmode:"opaque",backgroundColor:"#000000",cssSelectorAncestor:"#jp_container_1",cssSelector:{videoPlay:".jp-video-play",play:".jp-play",pause:".jp-pause",stop:".jp-stop",seekBar:".jp-seek-bar",playBar:".jp-play-bar",mute:".jp-mute",unmute:".jp-unmute",volumeBar:".jp-volume-bar",volumeBarValue:".jp-volume-bar-value",volumeMax:".jp-volume-max",currentTime:".jp-current-time",duration:".jp-duration",fullScreen:".jp-full-screen",restoreScreen:".jp-restore-screen",repeat:".jp-repeat",repeatOff:".jp-repeat-off",gui:".jp-gui",noSolution:".jp-no-solution"},fullScreen:false,autohide:{restored:false,full:true,fadeIn:200,fadeOut:600,hold:1000},loop:false,repeat:function(e){if(e.jPlayer.options.loop){c(this).unbind(".jPlayerRepeat").bind(c.jPlayer.event.ended+".jPlayer.jPlayerRepeat",function(){c(this).jPlayer("play");});}else{c(this).unbind(".jPlayerRepeat");}},nativeVideoControls:{},noFullScreen:{msie:/msie [0-6]/,ipad:/ipad.*?os [0-4]/,iphone:/iphone/,ipod:/ipod/,android_pad:/android [0-3](?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/},noVolume:{ipad:/ipad/,iphone:/iphone/,ipod:/ipod/,android_pad:/android(?!.*?mobile)/,android_phone:/android.*?mobile/,blackberry:/blackberry/,windows_ce:/windows ce/,webos:/webos/,playbook:/playbook/},verticalVolume:false,idPrefix:"jp",noConflict:"jQuery",emulateHtml:false,errorAlerts:false,warningAlerts:false},optionsAudio:{size:{width:"0px",height:"0px",cssClass:""},sizeFull:{width:"0px",height:"0px",cssClass:""}},optionsVideo:{size:{width:"480px",height:"270px",cssClass:"jp-video-270p"},sizeFull:{width:"100%",height:"100%",cssClass:"jp-video-full"}},instances:{},status:{src:"",media:{},paused:true,format:{},formatType:"",waitForPlay:true,waitForLoad:true,srcSet:false,video:false,seekPercent:0,currentPercentRelative:0,currentPercentAbsolute:0,currentTime:0,duration:0,readyState:0,networkState:0,playbackRate:1,ended:0},internal:{ready:false},solution:{html:true,flash:true},format:{mp3:{codec:'audio/mpeg; codecs="mp3"',flashCanPlay:true,media:"audio"},m4a:{codec:'audio/mp4; codecs="mp4a.40.2"',flashCanPlay:true,media:"audio"},oga:{codec:'audio/ogg; codecs="vorbis"',flashCanPlay:false,media:"audio"},wav:{codec:'audio/wav; codecs="1"',flashCanPlay:false,media:"audio"},webma:{codec:'audio/webm; codecs="vorbis"',flashCanPlay:false,media:"audio"},fla:{codec:"audio/x-flv",flashCanPlay:true,media:"audio"},m4v:{codec:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',flashCanPlay:true,media:"video"},ogv:{codec:'video/ogg; codecs="theora, vorbis"',flashCanPlay:false,media:"video"},webmv:{codec:'video/webm; codecs="vorbis, vp8"',flashCanPlay:false,media:"video"},flv:{codec:"video/x-flv",flashCanPlay:true,media:"video"}},_init:function(){var f=this;this.element.empty();this.status=c.extend({},this.status);this.internal=c.extend({},this.internal);this.internal.domNode=this.element.get(0);this.formats=[];this.solutions=[];this.require={};this.htmlElement={};this.html={};this.html.audio={};this.html.video={};this.flash={};this.css={};this.css.cs={};this.css.jq={};this.ancestorJq=[];this.options.volume=this._limitValue(this.options.volume,0,1);c.each(this.options.supplied.toLowerCase().split(","),function(p,m){var n=m.replace(/^\s+|\s+$/g,"");if(f.format[n]){var o=false;c.each(f.formats,function(u,q){if(n===q){o=true;return false;}});if(!o){f.formats.push(n);}}});c.each(this.options.solution.toLowerCase().split(","),function(p,n){var m=n.replace(/^\s+|\s+$/g,"");if(f.solution[m]){var o=false;c.each(f.solutions,function(u,q){if(m===q){o=true;return false;}});if(!o){f.solutions.push(m);}}});this.internal.instance="jp_"+this.count;this.instances[this.internal.instance]=this.element;if(!this.element.attr("id")){this.element.attr("id",this.options.idPrefix+"_jplayer_"+this.count);}this.internal.self=c.extend({},{id:this.element.attr("id"),jq:this.element});this.internal.audio=c.extend({},{id:this.options.idPrefix+"_audio_"+this.count,jq:d});this.internal.video=c.extend({},{id:this.options.idPrefix+"_video_"+this.count,jq:d});this.internal.flash=c.extend({},{id:this.options.idPrefix+"_flash_"+this.count,jq:d,swf:this.options.swfPath+(this.options.swfPath.toLowerCase().slice(-4)!==".swf"?(this.options.swfPath&&this.options.swfPath.slice(-1)!=="/"?"/":"")+"Jplayer.swf":"")});this.internal.poster=c.extend({},{id:this.options.idPrefix+"_poster_"+this.count,jq:d});c.each(c.jPlayer.event,function(m,n){if(f.options[m]!==d){f.element.bind(n+".jPlayer",f.options[m]);f.options[m]=d;}});this.require.audio=false;this.require.video=false;c.each(this.formats,function(m,n){f.require[f.format[n].media]=true;});if(this.require.video){this.options=c.extend(true,{},this.optionsVideo,this.options);}else{this.options=c.extend(true,{},this.optionsAudio,this.options);}this._setSize();this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._restrictNativeVideoControls();this.htmlElement.poster=document.createElement("img");this.htmlElement.poster.id=this.internal.poster.id;this.htmlElement.poster.onload=function(){if(!f.status.video||f.status.waitForPlay){f.internal.poster.jq.show();}};this.element.append(this.htmlElement.poster);this.internal.poster.jq=c("#"+this.internal.poster.id);this.internal.poster.jq.css({width:this.status.width,height:this.status.height});this.internal.poster.jq.hide();this.internal.poster.jq.bind("click.jPlayer",function(){f._trigger(c.jPlayer.event.click);});this.html.audio.available=false;if(this.require.audio){this.htmlElement.audio=document.createElement("audio");this.htmlElement.audio.id=this.internal.audio.id;this.html.audio.available=!!this.htmlElement.audio.canPlayType&&this._testCanPlayType(this.htmlElement.audio);}this.html.video.available=false;if(this.require.video){this.htmlElement.video=document.createElement("video");this.htmlElement.video.id=this.internal.video.id;this.html.video.available=!!this.htmlElement.video.canPlayType&&this._testCanPlayType(this.htmlElement.video);}this.flash.available=this._checkForFlash(10);this.html.canPlay={};this.flash.canPlay={};c.each(this.formats,function(m,n){f.html.canPlay[n]=f.html[f.format[n].media].available&&""!==f.htmlElement[f.format[n].media].canPlayType(f.format[n].codec);f.flash.canPlay[n]=f.format[n].flashCanPlay&&f.flash.available;});this.html.desired=false;this.flash.desired=false;c.each(this.solutions,function(o,m){if(o===0){f[m].desired=true;}else{var p=false;var n=false;c.each(f.formats,function(q,u){if(f[f.solutions[0]].canPlay[u]){if(f.format[u].media==="video"){n=true;}else{p=true;}}});f[m].desired=(f.require.audio&&!p)||(f.require.video&&!n);}});this.html.support={};this.flash.support={};c.each(this.formats,function(m,n){f.html.support[n]=f.html.canPlay[n]&&f.html.desired;f.flash.support[n]=f.flash.canPlay[n]&&f.flash.desired;});this.html.used=false;this.flash.used=false;c.each(this.solutions,function(n,m){c.each(f.formats,function(o,p){if(f[m].support[p]){f[m].used=true;return false;}});});this._resetActive();this._resetGate();this._cssSelectorAncestor(this.options.cssSelectorAncestor);if(!(this.html.used||this.flash.used)){this._error({type:c.jPlayer.error.NO_SOLUTION,context:"{solution:'"+this.options.solution+"', supplied:'"+this.options.supplied+"'}",message:c.jPlayer.errorMsg.NO_SOLUTION,hint:c.jPlayer.errorHint.NO_SOLUTION});if(this.css.jq.noSolution.length){this.css.jq.noSolution.show();}}else{if(this.css.jq.noSolution.length){this.css.jq.noSolution.hide();}}if(this.flash.used){var j,k="jQuery="+encodeURI(this.options.noConflict)+"&id="+encodeURI(this.internal.self.id)+"&vol="+this.options.volume+"&muted="+this.options.muted;if(c.browser.msie&&Number(c.browser.version)<=8){var e='<object id="'+this.internal.flash.id+'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="0" height="0"></object>';var h=['<param name="movie" value="'+this.internal.flash.swf+'" />','<param name="FlashVars" value="'+k+'" />','<param name="allowScriptAccess" value="always" />','<param name="bgcolor" value="'+this.options.backgroundColor+'" />','<param name="wmode" value="'+this.options.wmode+'" />'];j=document.createElement(e);for(var g=0;g<h.length;g++){j.appendChild(document.createElement(h[g]));}}else{var l=function(o,u,m){var q=document.createElement("param");q.setAttribute("name",u);q.setAttribute("value",m);o.appendChild(q);};j=document.createElement("object");j.setAttribute("id",this.internal.flash.id);j.setAttribute("data",this.internal.flash.swf);j.setAttribute("type","application/x-shockwave-flash");j.setAttribute("width","1");j.setAttribute("height","1");l(j,"flashvars",k);l(j,"allowscriptaccess","always");l(j,"bgcolor",this.options.backgroundColor);l(j,"wmode",this.options.wmode);}this.element.append(j);this.internal.flash.jq=c(j);}if(this.html.used){if(this.html.audio.available){this._addHtmlEventListeners(this.htmlElement.audio,this.html.audio);this.element.append(this.htmlElement.audio);this.internal.audio.jq=c("#"+this.internal.audio.id);}if(this.html.video.available){this._addHtmlEventListeners(this.htmlElement.video,this.html.video);this.element.append(this.htmlElement.video);this.internal.video.jq=c("#"+this.internal.video.id);if(this.status.nativeVideoControls){this.internal.video.jq.css({width:this.status.width,height:this.status.height});}else{this.internal.video.jq.css({width:"0px",height:"0px"});}this.internal.video.jq.bind("click.jPlayer",function(){f._trigger(c.jPlayer.event.click);});}}if(this.options.emulateHtml){this._emulateHtmlBridge();}if(this.html.used&&!this.flash.used){setTimeout(function(){f.internal.ready=true;f.version.flash="n/a";f._trigger(c.jPlayer.event.repeat);f._trigger(c.jPlayer.event.ready);},100);}this._updateNativeVideoControls();this._updateInterface();this._updateButtons(false);this._updateAutohide();this._updateVolume(this.options.volume);this._updateMute(this.options.muted);if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide();}c.jPlayer.prototype.count++;},destroy:function(){this.clearMedia();this._removeUiClass();if(this.css.jq.currentTime.length){this.css.jq.currentTime.text("");}if(this.css.jq.duration.length){this.css.jq.duration.text("");}c.each(this.css.jq,function(e,f){if(f.length){f.unbind(".jPlayer");}});this.internal.poster.jq.unbind(".jPlayer");if(this.internal.video.jq){this.internal.video.jq.unbind(".jPlayer");}if(this.options.emulateHtml){this._destroyHtmlBridge();}this.element.removeData("jPlayer");this.element.unbind(".jPlayer");this.element.empty();delete this.instances[this.internal.instance];},enable:function(){},disable:function(){},_testCanPlayType:function(f){try{f.canPlayType(this.format.mp3.codec);return true;}catch(e){return false;}},_uaBlocklist:function(f){var e=navigator.userAgent.toLowerCase(),g=false;c.each(f,function(j,h){if(h&&h.test(e)){g=true;return false;}});return g;},_restrictNativeVideoControls:function(){if(this.require.audio){if(this.status.nativeVideoControls){this.status.nativeVideoControls=false;this.status.noFullScreen=true;}}},_updateNativeVideoControls:function(){if(this.html.video.available&&this.html.used){this.htmlElement.video.controls=this.status.nativeVideoControls;this._updateAutohide();if(this.status.nativeVideoControls&&this.require.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height});}else{if(this.status.waitForPlay&&this.status.video){this.internal.poster.jq.show();this.internal.video.jq.css({width:"0px",height:"0px"});}}}},_addHtmlEventListeners:function(e,g){var f=this;e.preload=this.options.preload;e.muted=this.options.muted;e.volume=this.options.volume;e.addEventListener("progress",function(){if(g.gate){f._getHtmlStatus(e);f._updateInterface();f._trigger(c.jPlayer.event.progress);}},false);e.addEventListener("timeupdate",function(){if(g.gate){f._getHtmlStatus(e);f._updateInterface();f._trigger(c.jPlayer.event.timeupdate);}},false);e.addEventListener("durationchange",function(){if(g.gate){f.status.duration=this.duration;f._getHtmlStatus(e);f._updateInterface();f._trigger(c.jPlayer.event.durationchange);}},false);e.addEventListener("play",function(){if(g.gate){f._updateButtons(true);f._html_checkWaitForPlay();f._trigger(c.jPlayer.event.play);}},false);e.addEventListener("playing",function(){if(g.gate){f._updateButtons(true);f._seeked();f._trigger(c.jPlayer.event.playing);}},false);e.addEventListener("pause",function(){if(g.gate){f._updateButtons(false);f._trigger(c.jPlayer.event.pause);}},false);e.addEventListener("waiting",function(){if(g.gate){f._seeking();f._trigger(c.jPlayer.event.waiting);}},false);e.addEventListener("seeking",function(){if(g.gate){f._seeking();f._trigger(c.jPlayer.event.seeking);}},false);e.addEventListener("seeked",function(){if(g.gate){f._seeked();f._trigger(c.jPlayer.event.seeked);}},false);e.addEventListener("volumechange",function(){if(g.gate){f.options.volume=e.volume;f.options.muted=e.muted;f._updateMute();f._updateVolume();f._trigger(c.jPlayer.event.volumechange);}},false);e.addEventListener("suspend",function(){if(g.gate){f._seeked();f._trigger(c.jPlayer.event.suspend);}},false);e.addEventListener("ended",function(){if(g.gate){if(!c.jPlayer.browser.webkit){f.htmlElement.media.currentTime=0;}f.htmlElement.media.pause();f._updateButtons(false);f._getHtmlStatus(e,true);f._updateInterface();f._trigger(c.jPlayer.event.ended);}},false);e.addEventListener("error",function(){if(g.gate){f._updateButtons(false);f._seeked();if(f.status.srcSet){clearTimeout(f.internal.htmlDlyCmdId);f.status.waitForLoad=true;f.status.waitForPlay=true;if(f.status.video&&!f.status.nativeVideoControls){f.internal.video.jq.css({width:"0px",height:"0px"});}if(f._validString(f.status.media.poster)&&!f.status.nativeVideoControls){f.internal.poster.jq.show();}if(f.css.jq.videoPlay.length){f.css.jq.videoPlay.show();}f._error({type:c.jPlayer.error.URL,context:f.status.src,message:c.jPlayer.errorMsg.URL,hint:c.jPlayer.errorHint.URL});}}},false);c.each(c.jPlayer.htmlEvent,function(j,h){e.addEventListener(this,function(){if(g.gate){f._trigger(c.jPlayer.event[h]);}},false);});},_getHtmlStatus:function(j,f){var e=0,k=0,g=0,h=0,l=0;if(j.duration){this.status.duration=j.duration;}e=j.currentTime;g=(this.status.duration>0)?100*e/this.status.duration:0;if((typeof j.seekable==="object")&&(j.seekable.length>0)){h=(this.status.duration>0)?100*j.seekable.end(j.seekable.length-1)/this.status.duration:100;l=100*j.currentTime/j.seekable.end(j.seekable.length-1);}else{h=100;l=g;}if(f){e=0;l=0;g=0;}this.status.seekPercent=h;this.status.currentPercentRelative=l;this.status.currentPercentAbsolute=g;this.status.currentTime=e;this.status.readyState=j.readyState;this.status.networkState=j.networkState;this.status.playbackRate=j.playbackRate;this.status.ended=j.ended;},_resetStatus:function(){this.status=c.extend({},this.status,c.jPlayer.prototype.status);},_trigger:function(f,e,g){var h=c.Event(f);h.jPlayer={};h.jPlayer.version=c.extend({},this.version);h.jPlayer.options=c.extend(true,{},this.options);h.jPlayer.status=c.extend(true,{},this.status);h.jPlayer.html=c.extend(true,{},this.html);h.jPlayer.flash=c.extend(true,{},this.flash);if(e){h.jPlayer.error=c.extend({},e);}if(g){h.jPlayer.warning=c.extend({},g);}this.element.trigger(h);},jPlayerFlashEvent:function(g,e){if(g===c.jPlayer.event.ready){if(!this.internal.ready){this.internal.ready=true;this.internal.flash.jq.css({width:"0px",height:"0px"});this.version.flash=e.version;if(this.version.needFlash!==this.version.flash){this._error({type:c.jPlayer.error.VERSION,context:this.version.flash,message:c.jPlayer.errorMsg.VERSION+this.version.flash,hint:c.jPlayer.errorHint.VERSION});}this._trigger(c.jPlayer.event.repeat);this._trigger(g);}else{if(this.flash.gate){if(this.status.srcSet){var h=this.status.currentTime,f=this.status.paused;this.setMedia(this.status.media);if(h>0){if(f){this.pause(h);}else{this.play(h);}}}this._trigger(c.jPlayer.event.flashreset);}}}if(this.flash.gate){switch(g){case c.jPlayer.event.progress:this._getFlashStatus(e);this._updateInterface();this._trigger(g);break;case c.jPlayer.event.timeupdate:this._getFlashStatus(e);this._updateInterface();this._trigger(g);break;case c.jPlayer.event.play:this._seeked();this._updateButtons(true);this._trigger(g);break;case c.jPlayer.event.pause:this._updateButtons(false);this._trigger(g);break;case c.jPlayer.event.ended:this._updateButtons(false);this._trigger(g);break;case c.jPlayer.event.click:this._trigger(g);break;case c.jPlayer.event.error:this.status.waitForLoad=true;this.status.waitForPlay=true;if(this.status.video){this.internal.flash.jq.css({width:"0px",height:"0px"});}if(this._validString(this.status.media.poster)){this.internal.poster.jq.show();}if(this.css.jq.videoPlay.length&&this.status.video){this.css.jq.videoPlay.show();}if(this.status.video){this._flash_setVideo(this.status.media);}else{this._flash_setAudio(this.status.media);}this._updateButtons(false);this._error({type:c.jPlayer.error.URL,context:e.src,message:c.jPlayer.errorMsg.URL,hint:c.jPlayer.errorHint.URL});break;case c.jPlayer.event.seeking:this._seeking();this._trigger(g);break;case c.jPlayer.event.seeked:this._seeked();this._trigger(g);break;case c.jPlayer.event.ready:break;default:this._trigger(g);}}return false;},_getFlashStatus:function(e){this.status.seekPercent=e.seekPercent;this.status.currentPercentRelative=e.currentPercentRelative;this.status.currentPercentAbsolute=e.currentPercentAbsolute;this.status.currentTime=e.currentTime;this.status.duration=e.duration;this.status.readyState=4;this.status.networkState=0;this.status.playbackRate=1;this.status.ended=false;},_updateButtons:function(e){if(e!==d){this.status.paused=!e;if(this.css.jq.play.length&&this.css.jq.pause.length){if(e){this.css.jq.play.hide();this.css.jq.pause.show();}else{this.css.jq.play.show();this.css.jq.pause.hide();}}}if(this.css.jq.restoreScreen.length&&this.css.jq.fullScreen.length){if(this.status.noFullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.hide();}else{if(this.options.fullScreen){this.css.jq.fullScreen.hide();this.css.jq.restoreScreen.show();}else{this.css.jq.fullScreen.show();this.css.jq.restoreScreen.hide();}}}if(this.css.jq.repeat.length&&this.css.jq.repeatOff.length){if(this.options.loop){this.css.jq.repeat.hide();this.css.jq.repeatOff.show();}else{this.css.jq.repeat.show();this.css.jq.repeatOff.hide();}}},_updateInterface:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.width(this.status.seekPercent+"%");}if(this.css.jq.playBar.length){this.css.jq.playBar.width(this.status.currentPercentRelative+"%");}if(this.css.jq.currentTime.length){this.css.jq.currentTime.text(c.jPlayer.convertTime(this.status.currentTime));}if(this.css.jq.duration.length){this.css.jq.duration.text(c.jPlayer.convertTime(this.status.duration));}},_seeking:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.addClass("jp-seeking-bg");}},_seeked:function(){if(this.css.jq.seekBar.length){this.css.jq.seekBar.removeClass("jp-seeking-bg");}},_resetGate:function(){this.html.audio.gate=false;this.html.video.gate=false;this.flash.gate=false;},_resetActive:function(){this.html.active=false;this.flash.active=false;},setMedia:function(g){var f=this,e=false,h=this.status.media.poster!==g.poster;this._resetMedia();this._resetGate();this._resetActive();c.each(this.formats,function(j,l){var k=f.format[l].media==="video";c.each(f.solutions,function(n,m){if(f[m].support[l]&&f._validString(g[l])){var o=m==="html";if(k){if(o){f.html.video.gate=true;f._html_setVideo(g);f.html.active=true;}else{f.flash.gate=true;f._flash_setVideo(g);f.flash.active=true;}if(f.css.jq.videoPlay.length){f.css.jq.videoPlay.show();}f.status.video=true;}else{if(o){f.html.audio.gate=true;f._html_setAudio(g);f.html.active=true;}else{f.flash.gate=true;f._flash_setAudio(g);f.flash.active=true;}if(f.css.jq.videoPlay.length){f.css.jq.videoPlay.hide();}f.status.video=false;}e=true;return false;}});if(e){return false;}});if(e){if(!(this.status.nativeVideoControls&&this.html.video.gate)){if(this._validString(g.poster)){if(h){this.htmlElement.poster.src=g.poster;}else{this.internal.poster.jq.show();}}}this.status.srcSet=true;this.status.media=c.extend({},g);this._updateButtons(false);this._updateInterface();}else{this._error({type:c.jPlayer.error.NO_SUPPORT,context:"{supplied:'"+this.options.supplied+"'}",message:c.jPlayer.errorMsg.NO_SUPPORT,hint:c.jPlayer.errorHint.NO_SUPPORT});}},_resetMedia:function(){this._resetStatus();this._updateButtons(false);this._updateInterface();this._seeked();this.internal.poster.jq.hide();clearTimeout(this.internal.htmlDlyCmdId);if(this.html.active){this._html_resetMedia();}else{if(this.flash.active){this._flash_resetMedia();}}},clearMedia:function(){this._resetMedia();if(this.html.active){this._html_clearMedia();}else{if(this.flash.active){this._flash_clearMedia();}}this._resetGate();this._resetActive();},load:function(){if(this.status.srcSet){if(this.html.active){this._html_load();}else{if(this.flash.active){this._flash_load();}}}else{this._urlNotSetError("load");}},play:function(e){e=(typeof e==="number")?e:NaN;if(this.status.srcSet){if(this.html.active){this._html_play(e);}else{if(this.flash.active){this._flash_play(e);}}}else{this._urlNotSetError("play");}},videoPlay:function(f){this.play();},pause:function(e){e=(typeof e==="number")?e:NaN;if(this.status.srcSet){if(this.html.active){this._html_pause(e);}else{if(this.flash.active){this._flash_pause(e);}}}else{this._urlNotSetError("pause");}},pauseOthers:function(){var e=this;c.each(this.instances,function(g,f){if(e.element!==f){if(f.data("jPlayer").status.srcSet){f.jPlayer("pause");}}});},stop:function(){if(this.status.srcSet){if(this.html.active){this._html_pause(0);}else{if(this.flash.active){this._flash_pause(0);}}}else{this._urlNotSetError("stop");}},playHead:function(e){e=this._limitValue(e,0,100);if(this.status.srcSet){if(this.html.active){this._html_playHead(e);}else{if(this.flash.active){this._flash_playHead(e);}}}else{this._urlNotSetError("playHead");}},_muted:function(e){this.options.muted=e;if(this.html.used){this._html_mute(e);}if(this.flash.used){this._flash_mute(e);}if(!this.html.video.gate&&!this.html.audio.gate){this._updateMute(e);this._updateVolume(this.options.volume);this._trigger(c.jPlayer.event.volumechange);}},mute:function(e){e=e===d?true:!!e;this._muted(e);},unmute:function(e){e=e===d?true:!!e;this._muted(!e);},_updateMute:function(e){if(e===d){e=this.options.muted;}if(this.css.jq.mute.length&&this.css.jq.unmute.length){if(this.status.noVolume){this.css.jq.mute.hide();this.css.jq.unmute.hide();}else{if(e){this.css.jq.mute.hide();this.css.jq.unmute.show();}else{this.css.jq.mute.show();this.css.jq.unmute.hide();}}}},volume:function(e){e=this._limitValue(e,0,1);this.options.volume=e;if(this.html.used){this._html_volume(e);}if(this.flash.used){this._flash_volume(e);}if(!this.html.video.gate&&!this.html.audio.gate){this._updateVolume(e);this._trigger(c.jPlayer.event.volumechange);}},volumeBar:function(k){if(this.css.jq.volumeBar.length){var l=this.css.jq.volumeBar.offset(),f=k.pageX-l.left,g=this.css.jq.volumeBar.width(),m=this.css.jq.volumeBar.height()-k.pageY+l.top,j=this.css.jq.volumeBar.height();if(this.options.verticalVolume){this.volume(m/j);}else{this.volume(f/g);}}if(this.options.muted){this._muted(false);}},volumeBarValue:function(f){this.volumeBar(f);},_updateVolume:function(e){if(e===d){e=this.options.volume;}e=this.options.muted?0:e;if(this.status.noVolume){if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.hide();}if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.hide();}if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.hide();}}else{if(this.css.jq.volumeBar.length){this.css.jq.volumeBar.show();}if(this.css.jq.volumeBarValue.length){this.css.jq.volumeBarValue.show();this.css.jq.volumeBarValue[this.options.verticalVolume?"height":"width"]((e*100)+"%");}if(this.css.jq.volumeMax.length){this.css.jq.volumeMax.show();}}},volumeMax:function(){this.volume(1);if(this.options.muted){this._muted(false);}},_cssSelectorAncestor:function(f){var e=this;this.options.cssSelectorAncestor=f;this._removeUiClass();this.ancestorJq=f?c(f):[];if(f&&this.ancestorJq.length!==1){this._warning({type:c.jPlayer.warning.CSS_SELECTOR_COUNT,context:f,message:c.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.ancestorJq.length+" found for cssSelectorAncestor.",hint:c.jPlayer.warningHint.CSS_SELECTOR_COUNT});}this._addUiClass();c.each(this.options.cssSelector,function(g,h){e._cssSelector(g,h);});},_cssSelector:function(g,h){var e=this;if(typeof h==="string"){if(c.jPlayer.prototype.options.cssSelector[g]){if(this.css.jq[g]&&this.css.jq[g].length){this.css.jq[g].unbind(".jPlayer");}this.options.cssSelector[g]=h;this.css.cs[g]=this.options.cssSelectorAncestor+" "+h;if(h){this.css.jq[g]=c(this.css.cs[g]);}else{this.css.jq[g]=[];}if(this.css.jq[g].length){var f=function(j){e[g](j);c(this).blur();return false;};this.css.jq[g].bind("click.jPlayer",f);}if(h&&this.css.jq[g].length!==1){this._warning({type:c.jPlayer.warning.CSS_SELECTOR_COUNT,context:this.css.cs[g],message:c.jPlayer.warningMsg.CSS_SELECTOR_COUNT+this.css.jq[g].length+" found for "+g+" method.",hint:c.jPlayer.warningHint.CSS_SELECTOR_COUNT});}}else{this._warning({type:c.jPlayer.warning.CSS_SELECTOR_METHOD,context:g,message:c.jPlayer.warningMsg.CSS_SELECTOR_METHOD,hint:c.jPlayer.warningHint.CSS_SELECTOR_METHOD});}}else{this._warning({type:c.jPlayer.warning.CSS_SELECTOR_STRING,context:h,message:c.jPlayer.warningMsg.CSS_SELECTOR_STRING,hint:c.jPlayer.warningHint.CSS_SELECTOR_STRING});}},seekBar:function(j){if(this.css.jq.seekBar){var k=this.css.jq.seekBar.offset();var f=j.pageX-k.left;var g=this.css.jq.seekBar.width();var h=100*f/g;this.playHead(h);}},playBar:function(f){this.seekBar(f);},repeat:function(){this._loop(true);},repeatOff:function(){this._loop(false);},_loop:function(e){if(this.options.loop!==e){this.options.loop=e;this._updateButtons();this._trigger(c.jPlayer.event.repeat);}},currentTime:function(f){},duration:function(f){},gui:function(f){},noSolution:function(f){},option:function(k,n){var f=k;if(arguments.length===0){return c.extend(true,{},this.options);}if(typeof k==="string"){var m=k.split(".");if(n===d){var h=c.extend(true,{},this.options);for(var g=0;g<m.length;g++){if(h[m[g]]!==d){h=h[m[g]];}else{this._warning({type:c.jPlayer.warning.OPTION_KEY,context:k,message:c.jPlayer.warningMsg.OPTION_KEY,hint:c.jPlayer.warningHint.OPTION_KEY});return d;}}return h;}f={};var l=f;for(var e=0;e<m.length;e++){if(e<m.length-1){l[m[e]]={};l=l[m[e]];}else{l[m[e]]=n;}}}this._setOptions(f);return this;},_setOptions:function(f){var e=this;c.each(f,function(g,h){e._setOption(g,h);});return this;},_setOption:function(f,g){var e=this;switch(f){case"volume":this.volume(g);break;case"muted":this._muted(g);break;case"cssSelectorAncestor":this._cssSelectorAncestor(g);break;case"cssSelector":c.each(g,function(h,j){e._cssSelector(h,j);});break;case"fullScreen":if(this.options[f]!==g){this._removeUiClass();this.options[f]=g;this._refreshSize();}break;case"size":if(!this.options.fullScreen&&this.options[f].cssClass!==g.cssClass){this._removeUiClass();}this.options[f]=c.extend({},this.options[f],g);this._refreshSize();break;case"sizeFull":if(this.options.fullScreen&&this.options[f].cssClass!==g.cssClass){this._removeUiClass();}this.options[f]=c.extend({},this.options[f],g);this._refreshSize();break;case"autohide":this.options[f]=c.extend({},this.options[f],g);this._updateAutohide();break;case"loop":this._loop(g);break;case"nativeVideoControls":this.options[f]=c.extend({},this.options[f],g);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this._restrictNativeVideoControls();this._updateNativeVideoControls();break;case"noFullScreen":this.options[f]=c.extend({},this.options[f],g);this.status.nativeVideoControls=this._uaBlocklist(this.options.nativeVideoControls);this.status.noFullScreen=this._uaBlocklist(this.options.noFullScreen);this._restrictNativeVideoControls();this._updateButtons();break;case"noVolume":this.options[f]=c.extend({},this.options[f],g);this.status.noVolume=this._uaBlocklist(this.options.noVolume);this._updateVolume();this._updateMute();break;case"emulateHtml":if(this.options[f]!==g){this.options[f]=g;if(g){this._emulateHtmlBridge();}else{this._destroyHtmlBridge();}}break;}return this;},_refreshSize:function(){this._setSize();this._addUiClass();this._updateSize();this._updateButtons();this._updateAutohide();this._trigger(c.jPlayer.event.resize);},_setSize:function(){if(this.options.fullScreen){this.status.width=this.options.sizeFull.width;this.status.height=this.options.sizeFull.height;this.status.cssClass=this.options.sizeFull.cssClass;}else{this.status.width=this.options.size.width;this.status.height=this.options.size.height;this.status.cssClass=this.options.size.cssClass;}this.element.css({width:this.status.width,height:this.status.height});},_addUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.addClass(this.status.cssClass);}},_removeUiClass:function(){if(this.ancestorJq.length){this.ancestorJq.removeClass(this.status.cssClass);}},_updateSize:function(){this.internal.poster.jq.css({width:this.status.width,height:this.status.height});if(!this.status.waitForPlay&&this.html.active&&this.status.video||this.html.video.available&&this.html.used&&this.status.nativeVideoControls){this.internal.video.jq.css({width:this.status.width,height:this.status.height});}else{if(!this.status.waitForPlay&&this.flash.active&&this.status.video){this.internal.flash.jq.css({width:this.status.width,height:this.status.height});}}},_updateAutohide:function(){var e=this,j="mousemove.jPlayer",h=".jPlayerAutohide",f=j+h,g=function(){e.css.jq.gui.fadeIn(e.options.autohide.fadeIn,function(){clearTimeout(e.internal.autohideId);e.internal.autohideId=setTimeout(function(){e.css.jq.gui.fadeOut(e.options.autohide.fadeOut);},e.options.autohide.hold);});};if(this.css.jq.gui.length){this.css.jq.gui.stop(true,true);clearTimeout(this.internal.autohideId);this.element.unbind(h);this.css.jq.gui.unbind(h);if(!this.status.nativeVideoControls){if(this.options.fullScreen&&this.options.autohide.full||!this.options.fullScreen&&this.options.autohide.restored){this.element.bind(f,g);this.css.jq.gui.bind(f,g);this.css.jq.gui.hide();}else{this.css.jq.gui.show();}}else{this.css.jq.gui.hide();}}},fullScreen:function(){this._setOption("fullScreen",true);},restoreScreen:function(){this._setOption("fullScreen",false);},_html_initMedia:function(){this.htmlElement.media.src=this.status.src;if(this.options.preload!=="none"){this._html_load();}this._trigger(c.jPlayer.event.timeupdate);},_html_setAudio:function(f){var e=this;c.each(this.formats,function(g,h){if(e.html.support[h]&&f[h]){e.status.src=f[h];e.status.format[h]=true;e.status.formatType=h;return false;}});this.htmlElement.media=this.htmlElement.audio;this._html_initMedia();},_html_setVideo:function(f){var e=this;c.each(this.formats,function(g,h){if(e.html.support[h]&&f[h]){e.status.src=f[h];e.status.format[h]=true;e.status.formatType=h;return false;}});if(this.status.nativeVideoControls){this.htmlElement.video.poster=this._validString(f.poster)?f.poster:"";}this.htmlElement.media=this.htmlElement.video;this._html_initMedia();},_html_resetMedia:function(){if(this.htmlElement.media){if(this.htmlElement.media.id===this.internal.video.id&&!this.status.nativeVideoControls){this.internal.video.jq.css({width:"0px",height:"0px"});}this.htmlElement.media.pause();}},_html_clearMedia:function(){if(this.htmlElement.media){this.htmlElement.media.src="";this.htmlElement.media.load();}},_html_load:function(){if(this.status.waitForLoad){this.status.waitForLoad=false;this.htmlElement.media.load();}clearTimeout(this.internal.htmlDlyCmdId);},_html_play:function(g){var e=this;this._html_load();this.htmlElement.media.play();if(!isNaN(g)){try{this.htmlElement.media.currentTime=g;}catch(f){this.internal.htmlDlyCmdId=setTimeout(function(){e.play(g);},100);return;}}this._html_checkWaitForPlay();},_html_pause:function(g){var e=this;if(g>0){this._html_load();}else{clearTimeout(this.internal.htmlDlyCmdId);}this.htmlElement.media.pause();if(!isNaN(g)){try{this.htmlElement.media.currentTime=g;}catch(f){this.internal.htmlDlyCmdId=setTimeout(function(){e.pause(g);},100);return;}}if(g>0){this._html_checkWaitForPlay();}},_html_playHead:function(g){var e=this;this._html_load();try{if((typeof this.htmlElement.media.seekable==="object")&&(this.htmlElement.media.seekable.length>0)){this.htmlElement.media.currentTime=g*this.htmlElement.media.seekable.end(this.htmlElement.media.seekable.length-1)/100;}else{if(this.htmlElement.media.duration>0&&!isNaN(this.htmlElement.media.duration)){this.htmlElement.media.currentTime=g*this.htmlElement.media.duration/100;}else{throw"e";}}}catch(f){this.internal.htmlDlyCmdId=setTimeout(function(){e.playHead(g);},100);return;}if(!this.status.waitForLoad){this._html_checkWaitForPlay();}},_html_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide();}if(this.status.video){this.internal.poster.jq.hide();this.internal.video.jq.css({width:this.status.width,height:this.status.height});}}},_html_volume:function(e){if(this.html.audio.available){this.htmlElement.audio.volume=e;}if(this.html.video.available){this.htmlElement.video.volume=e;}},_html_mute:function(e){if(this.html.audio.available){this.htmlElement.audio.muted=e;}if(this.html.video.available){this.htmlElement.video.muted=e;}},_flash_setAudio:function(g){var e=this;try{c.each(this.formats,function(h,j){if(e.flash.support[j]&&g[j]){switch(j){case"m4a":case"fla":e._getMovie().fl_setAudio_m4a(g[j]);break;case"mp3":e._getMovie().fl_setAudio_mp3(g[j]);break;}e.status.src=g[j];e.status.format[j]=true;e.status.formatType=j;return false;}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false;}}catch(f){this._flashError(f);}},_flash_setVideo:function(g){var e=this;try{c.each(this.formats,function(h,j){if(e.flash.support[j]&&g[j]){switch(j){case"m4v":case"flv":e._getMovie().fl_setVideo_m4v(g[j]);break;}e.status.src=g[j];e.status.format[j]=true;e.status.formatType=j;return false;}});if(this.options.preload==="auto"){this._flash_load();this.status.waitForLoad=false;}}catch(f){this._flashError(f);}},_flash_resetMedia:function(){this.internal.flash.jq.css({width:"0px",height:"0px"});this._flash_pause(NaN);},_flash_clearMedia:function(){try{this._getMovie().fl_clearMedia();}catch(e){this._flashError(e);}},_flash_load:function(){try{this._getMovie().fl_load();}catch(e){this._flashError(e);}this.status.waitForLoad=false;},_flash_play:function(f){try{this._getMovie().fl_play(f);}catch(e){this._flashError(e);}this.status.waitForLoad=false;this._flash_checkWaitForPlay();},_flash_pause:function(f){try{this._getMovie().fl_pause(f);}catch(e){this._flashError(e);}if(f>0){this.status.waitForLoad=false;this._flash_checkWaitForPlay();}},_flash_playHead:function(f){try{this._getMovie().fl_play_head(f);}catch(e){this._flashError(e);}if(!this.status.waitForLoad){this._flash_checkWaitForPlay();}},_flash_checkWaitForPlay:function(){if(this.status.waitForPlay){this.status.waitForPlay=false;if(this.css.jq.videoPlay.length){this.css.jq.videoPlay.hide();}if(this.status.video){this.internal.poster.jq.hide();this.internal.flash.jq.css({width:this.status.width,height:this.status.height});}}},_flash_volume:function(e){try{this._getMovie().fl_volume(e);}catch(f){this._flashError(f);}},_flash_mute:function(e){try{this._getMovie().fl_mute(e);}catch(f){this._flashError(f);}},_getMovie:function(){return document[this.internal.flash.id];},_checkForFlash:function(g){var f=false;var j;if(window.ActiveXObject){try{j=new ActiveXObject(("ShockwaveFlash.ShockwaveFlash."+g));f=true;}catch(k){}}else{if(navigator.plugins&&navigator.mimeTypes.length>0){j=navigator.plugins["Shockwave Flash"];if(j){var h=navigator.plugins["Shockwave Flash"].description.replace(/.*\s(\d+\.\d+).*/,"$1");if(h>=g){f=true;}}}}return f;},_validString:function(e){return(e&&typeof e==="string");},_limitValue:function(g,f,e){return(g<f)?f:((g>e)?e:g);},_urlNotSetError:function(e){this._error({type:c.jPlayer.error.URL_NOT_SET,context:e,message:c.jPlayer.errorMsg.URL_NOT_SET,hint:c.jPlayer.errorHint.URL_NOT_SET});},_flashError:function(e){var f;if(!this.internal.ready){f="FLASH";}else{f="FLASH_DISABLED";}this._error({type:c.jPlayer.error[f],context:this.internal.flash.swf,message:c.jPlayer.errorMsg[f]+e.message,hint:c.jPlayer.errorHint[f]});this.internal.flash.jq.css({width:"1px",height:"1px"});},_error:function(e){this._trigger(c.jPlayer.event.error,e);if(this.options.errorAlerts){this._alert("Error!"+(e.message?"\n\n"+e.message:"")+(e.hint?"\n\n"+e.hint:"")+"\n\nContext: "+e.context);}},_warning:function(e){this._trigger(c.jPlayer.event.warning,d,e);if(this.options.warningAlerts){this._alert("Warning!"+(e.message?"\n\n"+e.message:"")+(e.hint?"\n\n"+e.hint:"")+"\n\nContext: "+e.context);}},_alert:function(e){alert("jPlayer "+this.version.script+" : id='"+this.internal.self.id+"' : "+e);},_emulateHtmlBridge:function(){var f=this,e=c.jPlayer.emulateMethods;c.each(c.jPlayer.emulateMethods.split(/\s+/g),function(h,g){f.internal.domNode[g]=function(j){f[g](j);};});c.each(c.jPlayer.event,function(h,j){var g=true;c.each(c.jPlayer.reservedEvent.split(/\s+/g),function(l,k){if(k===h){g=false;return false;}});if(g){f.element.bind(j+".jPlayer.jPlayerHtml",function(){f._emulateHtmlUpdate();var k=document.createEvent("Event");k.initEvent(h,false,true);f.internal.domNode.dispatchEvent(k);});}});},_emulateHtmlUpdate:function(){var e=this;c.each(c.jPlayer.emulateStatus.split(/\s+/g),function(g,f){e.internal.domNode[f]=e.status[f];});c.each(c.jPlayer.emulateOptions.split(/\s+/g),function(g,f){e.internal.domNode[f]=e.options[f];});},_destroyHtmlBridge:function(){var e=this;this.element.unbind(".jPlayerHtml");var f=c.jPlayer.emulateMethods+" "+c.jPlayer.emulateStatus+" "+c.jPlayer.emulateOptions;c.each(f.split(/\s+/g),function(h,g){delete e.internal.domNode[g];});}};c.jPlayer.error={FLASH:"e_flash",FLASH_DISABLED:"e_flash_disabled",NO_SOLUTION:"e_no_solution",NO_SUPPORT:"e_no_support",URL:"e_url",URL_NOT_SET:"e_url_not_set",VERSION:"e_version"};c.jPlayer.errorMsg={FLASH:"jPlayer's Flash fallback is not configured correctly, or a command was issued before the jPlayer Ready event. Details: ",FLASH_DISABLED:"jPlayer's Flash fallback has been disabled by the browser due to the CSS rules you have used. Details: ",NO_SOLUTION:"No solution can be found by jPlayer in this browser. Neither HTML nor Flash can be used.",NO_SUPPORT:"It is not possible to play any media format provided in setMedia() on this browser using your current options.",URL:"Media URL could not be loaded.",URL_NOT_SET:"Attempt to issue media playback commands, while no media url is set.",VERSION:"jPlayer "+c.jPlayer.prototype.version.script+" needs Jplayer.swf version "+c.jPlayer.prototype.version.needFlash+" but found "};c.jPlayer.errorHint={FLASH:"Check your swfPath option and that Jplayer.swf is there.",FLASH_DISABLED:"Check that you have not display:none; the jPlayer entity or any ancestor.",NO_SOLUTION:"Review the jPlayer options: support and supplied.",NO_SUPPORT:"Video or audio formats defined in the supplied option are missing.",URL:"Check media URL is valid.",URL_NOT_SET:"Use setMedia() to set the media URL.",VERSION:"Update jPlayer files."};c.jPlayer.warning={CSS_SELECTOR_COUNT:"e_css_selector_count",CSS_SELECTOR_METHOD:"e_css_selector_method",CSS_SELECTOR_STRING:"e_css_selector_string",OPTION_KEY:"e_option_key"};c.jPlayer.warningMsg={CSS_SELECTOR_COUNT:"The number of css selectors found did not equal one: ",CSS_SELECTOR_METHOD:"The methodName given in jPlayer('cssSelector') is not a valid jPlayer method.",CSS_SELECTOR_STRING:"The methodCssSelector given in jPlayer('cssSelector') is not a String or is empty.",OPTION_KEY:"The option requested in jPlayer('option') is undefined."};c.jPlayer.warningHint={CSS_SELECTOR_COUNT:"Check your css selector and the ancestor.",CSS_SELECTOR_METHOD:"Check your method name.",CSS_SELECTOR_STRING:"Check your css selector is a string.",OPTION_KEY:"Check your option name."};})(jQuery);(function($){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={array:function(x){var a=["["],b,f,i,l=x.length,v;for(i=0;i<l;i+=1){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}a[a.length]=v;b=true;}}}a[a.length]="]";return a.join("");},"boolean":function(x){return String(x);},"null":function(x){return"null";},number:function(x){return isFinite(x)?String(x):"null";},object:function(x){if(x){if(x instanceof Array){return s.array(x);}var a=["{"],b,f,i,v;for(i in x){v=x[i];f=s[typeof v];if(f){v=f(v);if(typeof v=="string"){if(b){a[a.length]=",";}a.push(s.string(i),":",v);b=true;}}}a[a.length]="}";return a.join("");}return"null";},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c;}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16);});}return'"'+x+'"';}};$.toJSON=function(v){var f=isNaN(v)?s[typeof v]:s.number;if(f){return f(v);}};$.parseJSON=function(v,safe){if(safe===undefined){safe=$.parseJSON.safe;}if(safe&&!/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/.test(v)){return undefined;}return eval("("+v+")");};$.parseJSON.safe=false;})(jQuery);(function($){$.layout={version:"1.3.rc29.15",revision:0.032915,language:{Open:"Open",Close:"Close",Resize:"Resize",Slide:"Slide Open",Pin:"Pin",Unpin:"Un-Pin",noRoomToOpenTip:"Not enough room to show this pane.",pane:"pane",selector:"selector",errButton:"Error Adding Button \n\nInvalid ",errContainerMissing:"UI Layout Initialization Error\n\nThe specified layout-container does not exist.",errCenterPaneMissing:"UI Layout Initialization Error\n\nThe center-pane element does not exist.\n\nThe center-pane is a required element.",errContainerHeight:"UI Layout Initialization Warning\n\nThe layout-container \"CONTAINER\" has no height.\n\nTherefore the layout is 0-height and hence 'invisible'!"},browser:{mozilla:!!$.browser.mozilla,webkit:!!$.browser.webkit||!!$.browser.safari,msie:!!$.browser.msie,isIE6:!!$.browser.msie&&$.browser.version==6,boxModel:false},scrollbarWidth:function(){return window.scrollbarWidth||$.layout.getScrollbarSize("width");},scrollbarHeight:function(){return window.scrollbarHeight||$.layout.getScrollbarSize("height");},getScrollbarSize:function(dim){var $c=$('<div style="position: absolute; top: -10000px; left: -10000px; width: 100px; height: 100px; overflow: scroll;"></div>').appendTo("body");var d={width:$c.width()-$c[0].clientWidth,height:$c.height()-$c[0].clientHeight};$c.remove();window.scrollbarWidth=d.width;window.scrollbarHeight=d.height;return dim.match(/^(width|height)$/i)?d[dim]:d;},showInvisibly:function($E,force){if(!$E){return{};}if(!$E.jquery){$E=$($E);}var CSS={display:$E.css("display"),visibility:$E.css("visibility")};if(force||CSS.display=="none"){$E.css({display:"block",visibility:"hidden"});return CSS;}else{return{};}},getElementDimensions:function($E){var d={},x=d.css={},i={},b,p,N=$.layout.cssNum,off=$E.offset();d.offsetLeft=off.left;d.offsetTop=off.top;$.each("Left,Right,Top,Bottom".split(","),function(idx,e){b=x["border"+e]=$.layout.borderWidth($E,e);p=x["padding"+e]=$.layout.cssNum($E,"padding"+e);i[e]=b+p;d["inset"+e]=p;});d.offsetWidth=$E.innerWidth();d.offsetHeight=$E.innerHeight();d.outerWidth=$E.outerWidth();d.outerHeight=$E.outerHeight();d.innerWidth=Math.max(0,d.outerWidth-i.Left-i.Right);d.innerHeight=Math.max(0,d.outerHeight-i.Top-i.Bottom);x.width=$E.width();x.height=$E.height();x.top=N($E,"top",true);x.bottom=N($E,"bottom",true);x.left=N($E,"left",true);x.right=N($E,"right",true);return d;},getElementCSS:function($E,list){var CSS={},style=$E[0].style,props=list.split(","),sides="Top,Bottom,Left,Right".split(","),attrs="Color,Style,Width".split(","),p,s,a,i,j,k;for(i=0;i<props.length;i++){p=props[i];if(p.match(/(border|padding|margin)$/)){for(j=0;j<4;j++){s=sides[j];if(p=="border"){for(k=0;k<3;k++){a=attrs[k];CSS[p+s+a]=style[p+s+a];}}else{CSS[p+s]=style[p+s];}}}else{CSS[p]=style[p];}}return CSS;},cssWidth:function($E,outerWidth){var b=$.layout.borderWidth,n=$.layout.cssNum;if(outerWidth<=0){return 0;}if(!$.layout.browser.boxModel){return outerWidth;}var W=outerWidth-b($E,"Left")-b($E,"Right")-n($E,"paddingLeft")-n($E,"paddingRight");return Math.max(0,W);},cssHeight:function($E,outerHeight){var b=$.layout.borderWidth,n=$.layout.cssNum;if(outerHeight<=0){return 0;}if(!$.layout.browser.boxModel){return outerHeight;}var H=outerHeight-b($E,"Top")-b($E,"Bottom")-n($E,"paddingTop")-n($E,"paddingBottom");return Math.max(0,H);},cssNum:function($E,prop,allowAuto){if(!$E.jquery){$E=$($E);}var CSS=$.layout.showInvisibly($E),p=$.curCSS($E[0],prop,true),v=allowAuto&&p=="auto"?p:(parseInt(p,10)||0);$E.css(CSS);return v;},borderWidth:function(el,side){if(el.jquery){el=el[0];}var b="border"+side.substr(0,1).toUpperCase()+side.substr(1);return $.curCSS(el,b+"Style",true)=="none"?0:(parseInt($.curCSS(el,b+"Width",true),10)||0);},isMouseOverElem:function(evt,el){var $E=$(el||this),d=$E.offset(),T=d.top,L=d.left,R=L+$E.outerWidth(),B=T+$E.outerHeight(),x=evt.pageX,y=evt.pageY;return($.layout.browser.msie&&x<0&&y<0)||((x>=L&&x<=R)&&(y>=T&&y<=B));}};$.fn.layout=function(opts){var lang=$.layout.language,options={name:"",containerClass:"ui-layout-container",scrollToBookmarkOnLoad:true,resizeWithWindow:true,resizeWithWindowDelay:200,resizeWithWindowMaxDelay:0,onresizeall_start:null,onresizeall_end:null,onload_start:null,onload_end:null,onunload_start:null,onunload_end:null,autoBindCustomButtons:false,zIndex:null,initPanes:true,showErrorMessages:true,defaults:{applyDemoStyles:false,closable:true,resizable:true,slidable:true,initClosed:false,initHidden:false,contentSelector:".ui-layout-content",contentIgnoreSelector:".ui-layout-ignore",findNestedContent:false,paneClass:"ui-layout-pane",resizerClass:"ui-layout-resizer",togglerClass:"ui-layout-toggler",buttonClass:"ui-layout-button",minSize:0,maxSize:0,spacing_open:3,spacing_closed:3,togglerLength_open:50,togglerLength_closed:50,togglerAlign_open:"center",togglerAlign_closed:"center",togglerTip_open:lang.Close,togglerTip_closed:lang.Open,togglerContent_open:"",togglerContent_closed:"",resizerDblClickToggle:true,autoResize:true,autoReopen:true,resizerDragOpacity:1,maskIframesOnResize:true,resizeNestedLayout:true,resizeWhileDragging:false,resizeContentWhileDragging:false,noRoomToOpenTip:lang.noRoomToOpenTip,resizerTip:lang.Resize,sliderTip:lang.Slide,sliderCursor:"pointer",slideTrigger_open:"click",slideTrigger_close:"mouseleave",slideDelay_open:300,slideDelay_close:300,hideTogglerOnSlide:false,preventQuickSlideClose:$.layout.browser.webkit,preventPrematureSlideClose:false,showOverflowOnHover:false,enableCursorHotkey:true,customHotkeyModifier:"SHIFT",fxName:"slide",fxSpeed:null,fxSettings:{},fxOpacityFix:true,triggerEventsOnLoad:false,triggerEventsWhileDragging:true,onshow_start:null,onshow_end:null,onhide_start:null,onhide_end:null,onopen_start:null,onopen_end:null,onclose_start:null,onclose_end:null,onresize_start:null,onresize_end:null,onsizecontent_start:null,onsizecontent_end:null,onswap_start:null,onswap_end:null,ondrag_start:null,ondrag_end:null},north:{paneSelector:".ui-layout-north",size:"auto",resizerCursor:"n-resize",customHotkey:""},south:{paneSelector:".ui-layout-south",size:"auto",resizerCursor:"s-resize",customHotkey:""},east:{paneSelector:".ui-layout-east",size:200,resizerCursor:"e-resize",customHotkey:""},west:{paneSelector:".ui-layout-west",size:200,resizerCursor:"w-resize",customHotkey:""},center:{paneSelector:".ui-layout-center",minWidth:0,minHeight:0},useStateCookie:false,cookie:{name:"",autoSave:true,autoLoad:true,domain:"",path:"",expires:"",secure:false,keys:"north.size,south.size,east.size,west.size,north.isClosed,south.isClosed,east.isClosed,west.isClosed,north.isHidden,south.isHidden,east.isHidden,west.isHidden"}},effects={slide:{all:{duration:"fast"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},drop:{all:{duration:"slow"},north:{direction:"up"},south:{direction:"down"},east:{direction:"right"},west:{direction:"left"}},scale:{all:{duration:"fast"}}},state={id:"layout"+new Date().getTime(),initialized:false,container:{},north:{},south:{},east:{},west:{},center:{},cookie:{}},_c={allPanes:"north,south,west,east,center",borderPanes:"north,south,west,east",altSide:{north:"south",south:"north",east:"west",west:"east"},hidden:{visibility:"hidden"},visible:{visibility:"visible"},zIndex:{pane_normal:1,resizer_normal:2,iframe_mask:2,pane_sliding:100,pane_animate:1000,resizer_drag:10000},resizers:{cssReq:{position:"absolute",padding:0,margin:0,fontSize:"1px",textAlign:"left",overflow:"hidden"},cssDemo:{background:"#DDD",border:"none"}},togglers:{cssReq:{position:"absolute",display:"block",padding:0,margin:0,overflow:"hidden",textAlign:"center",fontSize:"1px",cursor:"pointer",zIndex:1},cssDemo:{background:"#AAA"}},content:{cssReq:{position:"relative"},cssDemo:{overflow:"auto",padding:"10px"},cssDemoPane:{overflow:"hidden",padding:0}},panes:{cssReq:{position:"absolute",margin:0},cssDemo:{padding:"10px",background:"#FFF",border:"1px solid #BBB",overflow:"auto"}},north:{side:"Top",sizeType:"Height",dir:"horz",cssReq:{top:0,bottom:"auto",left:0,right:0,width:"auto"},pins:[]},south:{side:"Bottom",sizeType:"Height",dir:"horz",cssReq:{top:"auto",bottom:0,left:0,right:0,width:"auto"},pins:[]},east:{side:"Right",sizeType:"Width",dir:"vert",cssReq:{left:"auto",right:0,top:"auto",bottom:"auto",height:"auto"},pins:[]},west:{side:"Left",sizeType:"Width",dir:"vert",cssReq:{left:0,right:"auto",top:"auto",bottom:"auto",height:"auto"},pins:[]},center:{dir:"center",cssReq:{left:"auto",right:"auto",top:"auto",bottom:"auto",height:"auto",width:"auto"}}},timer={data:{},set:function(s,fn,ms){timer.clear(s);timer.data[s]=setTimeout(fn,ms);},clear:function(s){var t=timer.data;if(t[s]){clearTimeout(t[s]);delete t[s];}}},isStr=function(o){try{return typeof o=="string"||(typeof o=="object"&&o.constructor.toString().match(/string/i)!==null);}catch(e){return false;}},str=function(o){return isStr(o)?$.trim(o):o==undefined||o==null?"":o;},min=function(x,y){return Math.min(x,y);},max=function(x,y){return Math.max(x,y);},_transformData=function(d){var a,json={cookie:{},defaults:{fxSettings:{}},north:{fxSettings:{}},south:{fxSettings:{}},east:{fxSettings:{}},west:{fxSettings:{}},center:{fxSettings:{}}};d=d||{};if(d.effects||d.cookie||d.defaults||d.north||d.south||d.west||d.east||d.center){json=$.extend(true,json,d);}else{$.each(d,function(key,val){a=key.split("__");if(!a[1]||json[a[0]]){json[a[1]?a[0]:"defaults"][a[1]?a[1]:a[0]]=val;}});}return json;},_queue=function(action,pane,param){var tried=[];$.each(_c.borderPanes.split(","),function(i,p){if(_c[p].isMoving){bindCallback(p);return false;}});function bindCallback(p){var c=_c[p];if(!c.doCallback){c.doCallback=true;c.callback=action+","+pane+","+(param?1:0);}else{tried.push(p);var cbPane=c.callback.split(",")[1];if(cbPane!=pane&&!$.inArray(cbPane,tried)>=0){bindCallback(cbPane);}}}},_dequeue=function(pane){var c=_c[pane];_c.isLayoutBusy=false;delete c.isMoving;if(!c.doCallback||!c.callback){return;}c.doCallback=false;var cb=c.callback.split(","),param=(cb[2]>0?true:false);if(cb[0]=="open"){open(cb[1],param);}else{if(cb[0]=="close"){close(cb[1],param);}}if(!c.doCallback){c.callback=null;}},_execCallback=function(pane,v_fn){if(!v_fn){return;}var fn;try{if(typeof v_fn=="function"){fn=v_fn;}else{if(!isStr(v_fn)){return;}else{if(v_fn.match(/,/)){var args=v_fn.split(",");fn=eval(args[0]);if(typeof fn=="function"&&args.length>1){return fn(args[1]);}}else{fn=eval(v_fn);}}}if(typeof fn=="function"){if(pane&&$Ps[pane]){return fn(pane,$Ps[pane],state[pane],options[pane],options.name);}else{return fn(Instance,state,options,options.name);}}}catch(ex){}},_fixIframe=function(pane){if($.layout.browser.mozilla){return;}var $P=$Ps[pane];if(state[pane].tagName=="IFRAME"){$P.css(_c.hidden).css(_c.visible);}else{$P.find("IFRAME").css(_c.hidden).css(_c.visible);}},cssW=function(el,outerWidth){var str=isStr(el),$E=str?$Ps[el]:$(el);if(!$E.length){return 0;}if(isNaN(outerWidth)){outerWidth=str?getPaneSize(el):$E.outerWidth();}return $.layout.cssWidth($E,outerWidth);},cssH=function(el,outerHeight){var str=isStr(el),$E=str?$Ps[el]:$(el);if(!$E.length){return 0;}if(isNaN(outerHeight)){outerHeight=str?getPaneSize(el):$E.outerHeight();}return $.layout.cssHeight($E,outerHeight);},cssSize=function(pane,outerSize){if(_c[pane].dir=="horz"){return cssH(pane,outerSize);}else{return cssW(pane,outerSize);}},cssMinDims=function(pane){var dir=_c[pane].dir,d={minWidth:1001-cssW(pane,1000),minHeight:1001-cssH(pane,1000)};if(dir=="horz"){d.minSize=d.minHeight;}if(dir=="vert"){d.minSize=d.minWidth;}return d;},setOuterWidth=function(el,outerWidth,autoHide){var $E=el,w;if(isStr(el)){$E=$Ps[el];}else{if(!el.jquery){$E=$(el);}}w=cssW($E,outerWidth);$E.css({width:w});if(w>0){if(autoHide&&$E.data("autoHidden")&&$E.innerHeight()>0){$E.show().data("autoHidden",false);if(!$.layout.browser.mozilla){$E.css(_c.hidden).css(_c.visible);}}}else{if(autoHide&&!$E.data("autoHidden")){$E.hide().data("autoHidden",true);}}},setOuterHeight=function(el,outerHeight,autoHide){var $E=el,h;if(isStr(el)){$E=$Ps[el];}else{if(!el.jquery){$E=$(el);}}h=cssH($E,outerHeight);$E.css({height:h,visibility:"visible"});if(h>0&&$E.innerWidth()>0){if(autoHide&&$E.data("autoHidden")){$E.show().data("autoHidden",false);if(!$.layout.browser.mozilla){$E.css(_c.hidden).css(_c.visible);}}}else{if(autoHide&&!$E.data("autoHidden")){$E.hide().data("autoHidden",true);}}},setOuterSize=function(el,outerSize,autoHide){if(_c[pane].dir=="horz"){setOuterHeight(el,outerSize,autoHide);}else{setOuterWidth(el,outerSize,autoHide);}},_parseSize=function(pane,size,dir){if(!dir){dir=_c[pane].dir;}if(isStr(size)&&size.match(/%/)){size=parseInt(size,10)/100;}if(size===0){return 0;}else{if(size>=1){return parseInt(size,10);}else{if(size>0){var o=options,avail;if(dir=="horz"){avail=sC.innerHeight-($Ps.north?o.north.spacing_open:0)-($Ps.south?o.south.spacing_open:0);}else{if(dir=="vert"){avail=sC.innerWidth-($Ps.west?o.west.spacing_open:0)-($Ps.east?o.east.spacing_open:0);}}return Math.floor(avail*size);}else{if(pane=="center"){return 0;}else{var $P=$Ps[pane],dim=(dir=="horz"?"height":"width"),vis=$.layout.showInvisibly($P),s=$P.css(dim);$P.css(dim,"auto");size=(dim=="height")?$P.outerHeight():$P.outerWidth();$P.css(dim,s).css(vis);return size;}}}}},getPaneSize=function(pane,inclSpace){var $P=$Ps[pane],o=options[pane],s=state[pane],oSp=(inclSpace?o.spacing_open:0),cSp=(inclSpace?o.spacing_closed:0);if(!$P||s.isHidden){return 0;}else{if(s.isClosed||(s.isSliding&&inclSpace)){return cSp;}else{if(_c[pane].dir=="horz"){return $P.outerHeight()+oSp;}else{return $P.outerWidth()+oSp;}}}},setSizeLimits=function(pane,slide){if(!isInitialized()){return;}var o=options[pane],s=state[pane],c=_c[pane],dir=c.dir,side=c.side.toLowerCase(),type=c.sizeType.toLowerCase(),isSliding=(slide!=undefined?slide:s.isSliding),$P=$Ps[pane],paneSpacing=o.spacing_open,altPane=_c.altSide[pane],altS=state[altPane],$altP=$Ps[altPane],altPaneSize=(!$altP||altS.isVisible===false||altS.isSliding?0:(dir=="horz"?$altP.outerHeight():$altP.outerWidth())),altPaneSpacing=((!$altP||altS.isHidden?0:options[altPane][altS.isClosed!==false?"spacing_closed":"spacing_open"])||0),containerSize=(dir=="horz"?sC.innerHeight:sC.innerWidth),minCenterDims=cssMinDims("center"),minCenterSize=dir=="horz"?max(options.center.minHeight,minCenterDims.minHeight):max(options.center.minWidth,minCenterDims.minWidth),limitSize=(containerSize-paneSpacing-(isSliding?0:(_parseSize("center",minCenterSize,dir)+altPaneSize+altPaneSpacing))),minSize=s.minSize=max(_parseSize(pane,o.minSize),cssMinDims(pane).minSize),maxSize=s.maxSize=min((o.maxSize?_parseSize(pane,o.maxSize):100000),limitSize),r=s.resizerPosition={},top=sC.insetTop,left=sC.insetLeft,W=sC.innerWidth,H=sC.innerHeight,rW=o.spacing_open;switch(pane){case"north":r.min=top+minSize;r.max=top+maxSize;break;case"west":r.min=left+minSize;r.max=left+maxSize;break;case"south":r.min=top+H-maxSize-rW;r.max=top+H-minSize-rW;break;case"east":r.min=left+W-maxSize-rW;r.max=left+W-minSize-rW;break;}},calcNewCenterPaneDims=function(){var d={top:getPaneSize("north",true),bottom:getPaneSize("south",true),left:getPaneSize("west",true),right:getPaneSize("east",true),width:0,height:0};d.width=sC.innerWidth-d.left-d.right;d.height=sC.innerHeight-d.bottom-d.top;d.top+=sC.insetTop;d.bottom+=sC.insetBottom;d.left+=sC.insetLeft;d.right+=sC.insetRight;return d;},elDims=function($E){return $.layout.getElementDimensions($E);},elCSS=function($E,list){return $.layout.getElementCSS($E,list);},getHoverClasses=function(el,allStates){var $El=$(el),type=$El.data("layoutRole"),pane=$El.data("layoutEdge"),o=options[pane],root=o[type+"Class"],_pane="-"+pane,_open="-open",_closed="-closed",_slide="-sliding",_hover="-hover ",_state=$El.hasClass(root+_closed)?_closed:_open,_alt=_state==_closed?_open:_closed,classes=(root+_hover)+(root+_pane+_hover)+(root+_state+_hover)+(root+_pane+_state+_hover);if(allStates){classes+=(root+_alt+_hover)+(root+_pane+_alt+_hover);}if(type=="resizer"&&$El.hasClass(root+_slide)){classes+=(root+_slide+_hover)+(root+_pane+_slide+_hover);}return $.trim(classes);},addHover=function(evt,el){var $E=$(el||this);if(evt&&$E.data("layoutRole")=="toggler"){evt.stopPropagation();}$E.addClass(getHoverClasses($E));},removeHover=function(evt,el){var $E=$(el||this);$E.removeClass(getHoverClasses($E,true));},onResizerEnter=function(evt){$("body").disableSelection();addHover(evt,this);},onResizerLeave=function(evt,el){var e=el||this,pane=$(e).data("layoutEdge"),name=pane+"ResizerLeave";timer.clear(pane+"_openSlider");timer.clear(name);if(!el){removeHover(evt,this);timer.set(name,function(){onResizerLeave(evt,e);},200);}else{if(!state[pane].isResizing){$("body").enableSelection();}}},_create=function(){initOptions();var o=options;$.layout.browser.boxModel=$.support.boxModel;if(o.useStateCookie&&o.cookie.autoLoad){loadCookie();}state.creatingLayout=true;if(false===_execCallback(null,o.onload_start)){return"cancel";}_initContainer();initHotkeys();if(o.autoBindCustomButtons){initButtons();}$(window).bind("unload."+sID,unload);if(o.initPanes){_initLayoutElements();}delete state.creatingLayout;return state.initialized;},isInitialized=function(){if(state.initialized||state.creatingLayout){return true;}else{return _initLayoutElements();}},_initLayoutElements=function(){var o=options;if(!$N.is(":visible")){return false;}if(!getPane("center").length){if(o.showErrorMessages){alert(lang.errCenterPaneMissing);}return false;}state.creatingLayout=true;$.extend(sC,elDims($N));initPanes();sizeContent();if(o.scrollToBookmarkOnLoad){var l=self.location;if(l.hash){l.replace(l.hash);}}if(o.resizeWithWindow&&!$N.data("layoutRole")){$(window).bind("resize."+sID,windowResize);}delete state.creatingLayout;state.initialized=true;_execCallback(null,o.onload_end||o.onload);return true;},windowResize=function(){var delay=Number(options.resizeWithWindowDelay);if(delay<10){delay=100;}timer.clear("winResize");timer.set("winResize",function(){timer.clear("winResize");timer.clear("winResizeRepeater");var dims=elDims($N);if(dims.innerWidth!==sC.innerWidth||dims.innerHeight!==sC.innerHeight){resizeAll();}},delay);if(!timer.data.winResizeRepeater){setWindowResizeRepeater();}},setWindowResizeRepeater=function(){var delay=Number(options.resizeWithWindowMaxDelay);if(delay>0){timer.set("winResizeRepeater",function(){setWindowResizeRepeater();resizeAll();},delay);}},unload=function(){var o=options;state.cookie=getState();_execCallback(null,o.onunload_start);if(o.useStateCookie&&o.cookie.autoSave){saveCookie();}_execCallback(null,o.onunload_end||o.onunload);},_initContainer=function(){var tag=sC.tagName=$N[0].tagName,o=options,fullPage=(tag=="BODY"),props="overflow,position,margin,padding,border",CSS={},hid="hidden",isVis=$N.is(":visible");sC.selector=$N.selector.split(".slice")[0];sC.ref=tag+"/"+sC.selector;$N.data("layout",Instance).data("layoutContainer",sID).addClass(o.containerClass);if(!$N.data("layoutCSS")){if(fullPage){CSS=$.extend(elCSS($N,props),{height:$N.css("height"),overflow:$N.css("overflow"),overflowX:$N.css("overflowX"),overflowY:$N.css("overflowY")});var $H=$("html");$H.data("layoutCSS",{height:"auto",overflow:$H.css("overflow"),overflowX:$H.css("overflowX"),overflowY:$H.css("overflowY")});}else{CSS=elCSS($N,props+",top,bottom,left,right,width,height,overflow,overflowX,overflowY");}$N.data("layoutCSS",CSS);}try{if(fullPage){$("html").css({height:"100%",overflow:hid,overflowX:hid,overflowY:hid});$("body").css({position:"relative",height:"100%",overflow:hid,overflowX:hid,overflowY:hid,margin:0,padding:0,border:"none"});$.extend(sC,elDims($N));}else{CSS={overflow:hid,overflowX:hid,overflowY:hid};var p=$N.css("position"),h=$N.css("height");if(!$N.data("layoutRole")){if(!p||!p.match(/fixed|absolute|relative/)){CSS.position="relative";}}$N.css(CSS);if(isVis){$.extend(sC,elDims($N));if(o.showErrorMessages&&sC.innerHeight<2){alert(lang.errContainerHeight.replace(/CONTAINER/,sC.ref));}}}}catch(ex){}},initHotkeys=function(panes){if(!panes||panes=="all"){panes=_c.borderPanes;}$.each(panes.split(","),function(i,pane){var o=options[pane];if(o.enableCursorHotkey||o.customHotkey){$(document).bind("keydown."+sID,keyDown);return false;}});},initOptions=function(){opts=_transformData(opts);var newOpts={applyDefaultStyles:"applyDemoStyles"};renameOpts(opts.defaults);$.each(_c.allPanes.split(","),function(i,pane){renameOpts(opts[pane]);});if(opts.effects){$.extend(effects,opts.effects);delete opts.effects;}$.extend(options.cookie,opts.cookie);var globals="name,containerClass,zIndex,scrollToBookmarkOnLoad,resizeWithWindow,resizeWithWindowDelay,resizeWithWindowMaxDelay,onresizeall,onresizeall_start,onresizeall_end,onload,onload_start,onload_end,onunload,onunload_start,onunload_end,autoBindCustomButtons,useStateCookie,showErrorMessages";$.each(globals.split(","),function(i,key){if(opts[key]!==undefined){options[key]=opts[key];}else{if(opts.defaults[key]!==undefined){options[key]=opts.defaults[key];delete opts.defaults[key];}}});$.each("paneSelector,resizerCursor,customHotkey".split(","),function(i,key){delete opts.defaults[key];});$.extend(true,options.defaults,opts.defaults);_c.center=$.extend(true,{},_c.panes,_c.center);var z=options.zIndex;if(z===0||z>0){_c.zIndex.pane_normal=z;_c.zIndex.resizer_normal=z+1;_c.zIndex.iframe_mask=z+1;}$.extend(options.center,opts.center);var o_Center=$.extend(true,{},options.defaults,opts.defaults,options.center);var optionsCenter=("paneClass,contentSelector,applyDemoStyles,triggerEventsOnLoad,showOverflowOnHover,onresize,onresize_start,onresize_end,resizeNestedLayout,resizeContentWhileDragging,findNestedContent,onsizecontent,onsizecontent_start,onsizecontent_end").split(",");$.each(optionsCenter,function(i,key){options.center[key]=o_Center[key];});var o,defs=options.defaults;$.each(_c.borderPanes.split(","),function(i,pane){_c[pane]=$.extend(true,{},_c.panes,_c[pane]);o=options[pane]=$.extend(true,{},options.defaults,options[pane],opts.defaults,opts[pane]);if(!o.paneClass){o.paneClass="ui-layout-pane";}if(!o.resizerClass){o.resizerClass="ui-layout-resizer";}if(!o.togglerClass){o.togglerClass="ui-layout-toggler";}$.each(["_open","_close",""],function(i,n){var sName="fxName"+n,sSpeed="fxSpeed"+n,sSettings="fxSettings"+n;o[sName]=opts[pane][sName]||opts[pane].fxName||opts.defaults[sName]||opts.defaults.fxName||o[sName]||o.fxName||defs[sName]||defs.fxName||"none";var fxName=o[sName];if(fxName=="none"||!$.effects||!$.effects[fxName]||(!effects[fxName]&&!o[sSettings]&&!o.fxSettings)){fxName=o[sName]="none";}var fx=effects[fxName]||{},fx_all=fx.all||{},fx_pane=fx[pane]||{};o[sSettings]=$.extend({},fx_all,fx_pane,defs.fxSettings||{},defs[sSettings]||{},o.fxSettings,o[sSettings],opts.defaults.fxSettings,opts.defaults[sSettings]||{},opts[pane].fxSettings,opts[pane][sSettings]||{});o[sSpeed]=opts[pane][sSpeed]||opts[pane].fxSpeed||opts.defaults[sSpeed]||opts.defaults.fxSpeed||o[sSpeed]||o[sSettings].duration||o.fxSpeed||o.fxSettings.duration||defs.fxSpeed||defs.fxSettings.duration||fx_pane.duration||fx_all.duration||"normal";});});function renameOpts(O){for(var key in newOpts){if(O[key]!=undefined){O[newOpts[key]]=O[key];delete O[key];}}}},getPane=function(pane){var sel=options[pane].paneSelector;if(sel.substr(0,1)==="#"){return $N.find(sel).eq(0);}else{var $P=$N.children(sel).eq(0);return $P.length?$P:$N.children("form:first").children(sel).eq(0);}},initPanes=function(){$.each(_c.allPanes.split(","),function(idx,pane){addPane(pane,true);});initHandles();$.each(_c.borderPanes.split(","),function(i,pane){if($Ps[pane]&&state[pane].isVisible){setSizeLimits(pane);makePaneFit(pane);}});sizeMidPanes("center");setTimeout(function(){$.each(_c.allPanes.split(","),function(i,pane){var o=options[pane];if($Ps[pane]&&state[pane].isVisible){if(o.triggerEventsOnLoad){_execCallback(pane,o.onresize_end||o.onresize);}resizeNestedLayout(pane);}});},50);if(options.showErrorMessages&&$N.innerHeight()<2){alert(lang.errContainerHeight.replace(/CONTAINER/,sC.ref));}},addPane=function(pane,force){if(!force&&!isInitialized()){return;}var o=options[pane],s=state[pane],c=_c[pane],fx=s.fx,dir=c.dir,spacing=o.spacing_open||0,isCenter=(pane=="center"),CSS={},$P=$Ps[pane],size,minSize,maxSize;if($P){removePane(pane);}else{$Cs[pane]=false;}$P=$Ps[pane]=getPane(pane);if(!$P.length){$Ps[pane]=false;return;}if(!$P.data("layoutCSS")){var props="position,top,left,bottom,right,width,height,overflow,zIndex,display,backgroundColor,padding,margin,border";$P.data("layoutCSS",elCSS($P,props));}$P.data("parentLayout",Instance).data("layoutRole","pane").data("layoutEdge",pane).css(c.cssReq).css("zIndex",_c.zIndex.pane_normal).css(o.applyDemoStyles?c.cssDemo:{}).addClass(o.paneClass+" "+o.paneClass+"-"+pane).bind("mouseenter."+sID,addHover).bind("mouseleave."+sID,removeHover);initContent(pane,false);if(!isCenter){size=s.size=_parseSize(pane,o.size);minSize=_parseSize(pane,o.minSize)||1;maxSize=_parseSize(pane,o.maxSize)||100000;if(size>0){size=max(min(size,maxSize),minSize);}s.isClosed=false;s.isSliding=false;s.isResizing=false;s.isHidden=false;}s.tagName=$P[0].tagName;s.edge=pane;s.noRoom=false;s.isVisible=true;switch(pane){case"north":CSS.top=sC.insetTop;CSS.left=sC.insetLeft;CSS.right=sC.insetRight;break;case"south":CSS.bottom=sC.insetBottom;CSS.left=sC.insetLeft;CSS.right=sC.insetRight;break;case"west":CSS.left=sC.insetLeft;break;case"east":CSS.right=sC.insetRight;break;case"center":}if(dir=="horz"){CSS.height=max(1,cssH(pane,size));}else{if(dir=="vert"){CSS.width=max(1,cssW(pane,size));}}$P.css(CSS);if(dir!="horz"){sizeMidPanes(pane,true);}if(o.initClosed&&o.closable&&!o.initHidden){close(pane,true,true);}else{if(o.initHidden||o.initClosed){hide(pane);}else{if(!s.noRoom){$P.css("display","block");}}}$P.css("visibility","visible");if(o.showOverflowOnHover){$P.hover(allowOverflow,resetOverflow);}if(state.initialized){initHandles(pane);initHotkeys(pane);resizeAll();if(s.isVisible){if(o.triggerEventsOnLoad){_execCallback(pane,o.onresize_end||o.onresize);}resizeNestedLayout(pane);}}},initHandles=function(panes){if(!panes||panes=="all"){panes=_c.borderPanes;}$.each(panes.split(","),function(i,pane){var $P=$Ps[pane];$Rs[pane]=false;$Ts[pane]=false;if(!$P){return;}var o=options[pane],s=state[pane],c=_c[pane],rClass=o.resizerClass,tClass=o.togglerClass,side=c.side.toLowerCase(),spacing=(s.isVisible?o.spacing_open:o.spacing_closed),_pane="-"+pane,_state=(s.isVisible?"-open":"-closed"),$R=$Rs[pane]=$("<div></div>"),$T=(o.closable?$Ts[pane]=$("<div></div>"):false);if(!s.isVisible&&o.slidable){$R.attr("title",o.sliderTip).css("cursor",o.sliderCursor);}$R.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-resizer":"")).data("parentLayout",Instance).data("layoutRole","resizer").data("layoutEdge",pane).css(_c.resizers.cssReq).css("zIndex",_c.zIndex.resizer_normal).css(o.applyDemoStyles?_c.resizers.cssDemo:{}).addClass(rClass+" "+rClass+_pane).appendTo($N);if($T){$T.attr("id",(o.paneSelector.substr(0,1)=="#"?o.paneSelector.substr(1)+"-toggler":"")).data("parentLayout",Instance).data("layoutRole","toggler").data("layoutEdge",pane).css(_c.togglers.cssReq).css(o.applyDemoStyles?_c.togglers.cssDemo:{}).addClass(tClass+" "+tClass+_pane).appendTo($R);if(o.togglerContent_open){$("<span>"+o.togglerContent_open+"</span>").data("layoutRole","togglerContent").data("layoutEdge",pane).addClass("content content-open").css("display","none").appendTo($T);}if(o.togglerContent_closed){$("<span>"+o.togglerContent_closed+"</span>").data("layoutRole","togglerContent").data("layoutEdge",pane).addClass("content content-closed").css("display","none").appendTo($T);}enableClosable(pane);}initResizable(pane);if(s.isVisible){setAsOpen(pane);}else{setAsClosed(pane);bindStartSlidingEvent(pane,true);}});sizeHandles("all");},initContent=function(pane,resize){if(!isInitialized()){return;}var o=options[pane],sel=o.contentSelector,$P=$Ps[pane],$C;if(sel){$C=$Cs[pane]=(o.findNestedContent)?$P.find(sel).eq(0):$P.children(sel).eq(0);}if($C&&$C.length){if(!$C.data("layoutCSS")){$C.data("layoutCSS",elCSS($C,"height"));}$C.css(_c.content.cssReq);if(o.applyDemoStyles){$C.css(_c.content.cssDemo);$P.css(_c.content.cssDemoPane);}state[pane].content={};if(resize!==false){sizeContent(pane);}}else{$Cs[pane]=false;}},initButtons=function(){var pre="ui-layout-button-",name;$.each("toggle,open,close,pin,toggle-slide,open-slide".split(","),function(i,action){$.each(_c.borderPanes.split(","),function(ii,pane){$("."+pre+action+"-"+pane).each(function(){name=$(this).data("layoutName")||$(this).attr("layoutName");if(name==undefined||name==options.name){bindButton(this,action,pane);}});});});},initResizable=function(panes){var draggingAvailable=(typeof $.fn.draggable=="function"),$Frames,side;if(!panes||panes=="all"){panes=_c.borderPanes;}$.each(panes.split(","),function(idx,pane){var o=options[pane],s=state[pane],c=_c[pane],side=(c.dir=="horz"?"top":"left"),r,live;if(!draggingAvailable||!$Ps[pane]||!o.resizable){o.resizable=false;return true;}var $P=$Ps[pane],$R=$Rs[pane],base=o.resizerClass,resizerClass=base+"-drag",resizerPaneClass=base+"-"+pane+"-drag",helperClass=base+"-dragging",helperPaneClass=base+"-"+pane+"-dragging",helperLimitClass=base+"-dragging-limit",helperPaneLimitClass=base+"-"+pane+"-dragging-limit",helperClassesSet=false;if(!s.isClosed){$R.attr("title",o.resizerTip).css("cursor",o.resizerCursor);}$R.bind("mouseenter."+sID,onResizerEnter).bind("mouseleave."+sID,onResizerLeave);$R.draggable({containment:$N[0],axis:(c.dir=="horz"?"y":"x"),delay:0,distance:1,helper:"clone",opacity:o.resizerDragOpacity,addClasses:false,zIndex:_c.zIndex.resizer_drag,start:function(e,ui){o=options[pane];s=state[pane];live=o.resizeWhileDragging;if(false===_execCallback(pane,o.ondrag_start)){return false;}_c.isLayoutBusy=true;s.isResizing=true;timer.clear(pane+"_closeSlider");setSizeLimits(pane);r=s.resizerPosition;$R.addClass(resizerClass+" "+resizerPaneClass);helperClassesSet=false;$Frames=$(o.maskIframesOnResize===true?"iframe":o.maskIframesOnResize).filter(":visible");var id,i=0;$Frames.each(function(){id="ui-layout-mask-"+(++i);$(this).data("layoutMaskID",id);$('<div id="'+id+'" class="ui-layout-mask ui-layout-mask-'+pane+'"/>').css({background:"#fff",opacity:"0.001",zIndex:_c.zIndex.iframe_mask,position:"absolute",width:this.offsetWidth+"px",height:this.offsetHeight+"px"}).css($(this).position()).appendTo(this.parentNode);});$("body").disableSelection();},drag:function(e,ui){if(!helperClassesSet){ui.helper.addClass(helperClass+" "+helperPaneClass).css({right:"auto",bottom:"auto"}).children().css("visibility","hidden");helperClassesSet=true;if(s.isSliding){$Ps[pane].css("zIndex",_c.zIndex.pane_sliding);}}var limit=0;if(ui.position[side]<r.min){ui.position[side]=r.min;limit=-1;}else{if(ui.position[side]>r.max){ui.position[side]=r.max;limit=1;}}if(limit){ui.helper.addClass(helperLimitClass+" "+helperPaneLimitClass);window.defaultStatus="Panel has reached its "+((limit>0&&pane.match(/north|west/))||(limit<0&&pane.match(/south|east/))?"maximum":"minimum")+" size";}else{ui.helper.removeClass(helperLimitClass+" "+helperPaneLimitClass);window.defaultStatus="";}if(live){resizePanes(e,ui,pane);}},stop:function(e,ui){$("body").enableSelection();window.defaultStatus="";$R.removeClass(resizerClass+" "+resizerPaneClass);s.isResizing=false;_c.isLayoutBusy=false;resizePanes(e,ui,pane,true);}});var resizePanes=function(evt,ui,pane,resizingDone){var dragPos=ui.position,c=_c[pane],resizerPos,newSize,i=0;switch(pane){case"north":resizerPos=dragPos.top;break;case"west":resizerPos=dragPos.left;break;case"south":resizerPos=sC.offsetHeight-dragPos.top-o.spacing_open;break;case"east":resizerPos=sC.offsetWidth-dragPos.left-o.spacing_open;break;}if(resizingDone){$("div.ui-layout-mask").each(function(){this.parentNode.removeChild(this);});if(false===_execCallback(pane,o.ondrag_end||o.ondrag)){return false;}}else{$Frames.each(function(){$("#"+$(this).data("layoutMaskID")).css($(this).position()).css({width:this.offsetWidth+"px",height:this.offsetHeight+"px"});});}newSize=resizerPos-sC["inset"+c.side];manualSizePane(pane,newSize);};});},destroy=function(){$(window).unbind("."+sID);$(document).unbind("."+sID);$.each(_c.allPanes.split(","),function(i,pane){removePane(pane,false,true);});$N.removeData("layout").removeData("layoutContainer").removeClass(options.containerClass);if(!$N.data("layoutEdge")&&$N.data("layoutCSS")){$N.css($N.data("layoutCSS")).removeData("layoutCSS");}if(sC.tagName=="BODY"&&($N=$("html")).data("layoutCSS")){$N.css($N.data("layoutCSS")).removeData("layoutCSS");}unload();},removePane=function(pane,remove,skipResize){if(!isInitialized()){return;}if(!$Ps[pane]){return;}var $P=$Ps[pane],$C=$Cs[pane],$R=$Rs[pane],$T=$Ts[pane],_open="-open",_sliding="-sliding",_closed="-closed",root=options[pane].paneClass,pRoot=root+"-"+pane,classes=[root,root+_open,root+_closed,root+_sliding,pRoot,pRoot+_open,pRoot+_closed,pRoot+_sliding];$.merge(classes,getHoverClasses($P,true));if(!$P||!$P.length){}else{if(remove&&!$P.data("layoutContainer")&&(!$C||!$C.length||!$C.data("layoutContainer"))){$P.remove();}else{$P.removeClass(classes.join(" ")).removeData("layoutParent").removeData("layoutRole").removeData("layoutEdge").removeData("autoHidden").unbind("."+sID);if(!$P.data("layoutContainer")){$P.css($P.data("layoutCSS")).removeData("layoutCSS");}if($C&&$C.length&&!$C.data("layoutContainer")){$C.css($C.data("layoutCSS")).removeData("layoutCSS");}}}if($T&&$T.length){$T.remove();}if($R&&$R.length){$R.remove();}$Ps[pane]=$Cs[pane]=$Rs[pane]=$Ts[pane]=false;if(!skipResize){resizeAll();state[pane]={};}},hide=function(pane,noAnimation){if(!isInitialized()){return;}var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||s.isHidden){return;}if(state.initialized&&false===_execCallback(pane,o.onhide_start)){return;}s.isSliding=false;if($R){$R.hide();}if(!state.initialized||s.isClosed){s.isClosed=true;s.isHidden=true;s.isVisible=false;$P.hide();sizeMidPanes(_c[pane].dir=="horz"?"all":"center");if(state.initialized||o.triggerEventsOnLoad){_execCallback(pane,o.onhide_end||o.onhide);}}else{s.isHiding=true;close(pane,false,noAnimation);}},show=function(pane,openPane,noAnimation,noAlert){if(!isInitialized()){return;}var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane];if(!$P||!s.isHidden){return;}if(false===_execCallback(pane,o.onshow_start)){return;}s.isSliding=false;s.isShowing=true;if(openPane===false){close(pane,true);}else{open(pane,false,noAnimation,noAlert);}},toggle=function(pane,slide){if(!isInitialized()){return;}if(!isStr(pane)){pane.stopImmediatePropagation();pane=$(this).data("layoutEdge");}var s=state[str(pane)];if(s.isHidden){show(pane);}else{if(s.isClosed){open(pane,!!slide);}else{close(pane);}}},_closePane=function(pane,setHandles){var $P=$Ps[pane],s=state[pane];$P.hide();s.isClosed=true;s.isVisible=false;},close=function(pane,force,noAnimation,skipCallback){if(!state.initialized&&$Ps[pane]){_closePane(pane);return;}if(!isInitialized()){return;}var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&!s.isClosed&&(o.fxName_close!="none"),isShowing=s.isShowing,isHiding=s.isHiding,wasSliding=s.isSliding;delete s.isShowing;delete s.isHiding;if(!$P||(!o.closable&&!isShowing&&!isHiding)){return;}else{if(!force&&s.isClosed&&!isShowing){return;}}if(_c.isLayoutBusy){_queue("close",pane,force);return;}if(!isShowing&&false===_execCallback(pane,o.onclose_start)){return;}_c[pane].isMoving=true;_c.isLayoutBusy=true;s.isClosed=true;s.isVisible=false;if(isHiding){s.isHidden=true;}else{if(isShowing){s.isHidden=false;}}if(s.isSliding){bindStopSlidingEvents(pane,false);}else{sizeMidPanes(_c[pane].dir=="horz"?"all":"center",false);}setAsClosed(pane);if(doFX){lockPaneForFX(pane,true);$P.hide(o.fxName_close,o.fxSettings_close,o.fxSpeed_close,function(){lockPaneForFX(pane,false);close_2();});}else{$P.hide();close_2();}function close_2(){if(s.isClosed){bindStartSlidingEvent(pane,true);var altPane=_c.altSide[pane];if(state[altPane].noRoom){setSizeLimits(altPane);makePaneFit(altPane);}if(!skipCallback&&(state.initialized||o.triggerEventsOnLoad)){if(!isShowing){_execCallback(pane,o.onclose_end||o.onclose);}if(isShowing){_execCallback(pane,o.onshow_end||o.onshow);}if(isHiding){_execCallback(pane,o.onhide_end||o.onhide);}}}_dequeue(pane);}},setAsClosed=function(pane){var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],side=_c[pane].side.toLowerCase(),inset="inset"+_c[pane].side,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_sliding="-sliding",_closed="-closed";$R.css(side,sC[inset]).removeClass(rClass+_open+" "+rClass+_pane+_open).removeClass(rClass+_sliding+" "+rClass+_pane+_sliding).addClass(rClass+_closed+" "+rClass+_pane+_closed).unbind("dblclick."+sID);if(o.resizable&&typeof $.fn.draggable=="function"){$R.draggable("disable").removeClass("ui-state-disabled").css("cursor","default").attr("title","");}if($T){$T.removeClass(tClass+_open+" "+tClass+_pane+_open).addClass(tClass+_closed+" "+tClass+_pane+_closed).attr("title",o.togglerTip_closed);$T.children(".content-open").hide();$T.children(".content-closed").css("display","block");}syncPinBtns(pane,false);if(state.initialized){sizeHandles("all");}},open=function(pane,slide,noAnimation,noAlert){if(!isInitialized()){return;}var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],doFX=!noAnimation&&s.isClosed&&(o.fxName_open!="none"),isShowing=s.isShowing;delete s.isShowing;if(!$P||(!o.resizable&&!o.closable&&!isShowing)){return;}else{if(s.isVisible&&!s.isSliding){return;}}if(s.isHidden&&!isShowing){show(pane,true);return;}if(_c.isLayoutBusy){_queue("open",pane,slide);return;}setSizeLimits(pane,slide);if(false===_execCallback(pane,o.onopen_start)){return;}setSizeLimits(pane,slide);if(s.minSize>s.maxSize){syncPinBtns(pane,false);if(!noAlert&&o.noRoomToOpenTip){alert(o.noRoomToOpenTip);}return;}_c[pane].isMoving=true;_c.isLayoutBusy=true;if(slide){bindStopSlidingEvents(pane,true);}else{if(s.isSliding){bindStopSlidingEvents(pane,false);}else{if(o.slidable){bindStartSlidingEvent(pane,false);}}}s.noRoom=false;makePaneFit(pane);s.isVisible=true;s.isClosed=false;if(isShowing){s.isHidden=false;}if(doFX){lockPaneForFX(pane,true);$P.show(o.fxName_open,o.fxSettings_open,o.fxSpeed_open,function(){lockPaneForFX(pane,false);open_2();});}else{$P.show();open_2();}function open_2(){if(s.isVisible){_fixIframe(pane);if(!s.isSliding){sizeMidPanes(_c[pane].dir=="vert"?"center":"all",false);}setAsOpen(pane);}_dequeue(pane);}},setAsOpen=function(pane,skipCallback){var $P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],o=options[pane],s=state[pane],side=_c[pane].side.toLowerCase(),inset="inset"+_c[pane].side,rClass=o.resizerClass,tClass=o.togglerClass,_pane="-"+pane,_open="-open",_closed="-closed",_sliding="-sliding";$R.css(side,sC[inset]+getPaneSize(pane)).removeClass(rClass+_closed+" "+rClass+_pane+_closed).addClass(rClass+_open+" "+rClass+_pane+_open);if(s.isSliding){$R.addClass(rClass+_sliding+" "+rClass+_pane+_sliding);}else{$R.removeClass(rClass+_sliding+" "+rClass+_pane+_sliding);}if(o.resizerDblClickToggle){$R.bind("dblclick",toggle);}removeHover(0,$R);if(o.resizable&&typeof $.fn.draggable=="function"){$R.draggable("enable").css("cursor",o.resizerCursor).attr("title",o.resizerTip);}else{if(!s.isSliding){$R.css("cursor","default");}}if($T){$T.removeClass(tClass+_closed+" "+tClass+_pane+_closed).addClass(tClass+_open+" "+tClass+_pane+_open).attr("title",o.togglerTip_open);removeHover(0,$T);$T.children(".content-closed").hide();$T.children(".content-open").css("display","block");}syncPinBtns(pane,!s.isSliding);$.extend(s,elDims($P));if(state.initialized){sizeHandles("all");sizeContent(pane,true);}if(!skipCallback&&(state.initialized||o.triggerEventsOnLoad)&&$P.is(":visible")){_execCallback(pane,o.onopen_end||o.onopen);if(s.isShowing){_execCallback(pane,o.onshow_end||o.onshow);}if(state.initialized){_execCallback(pane,o.onresize_end||o.onresize);resizeNestedLayout(pane);}}},slideOpen=function(evt_or_pane){if(!isInitialized()){return;}var evt=isStr(evt_or_pane)?null:evt_or_pane,pane=evt?$(this).data("layoutEdge"):evt_or_pane,s=state[pane],delay=options[pane].slideDelay_open;if(evt){evt.stopImmediatePropagation();}if(s.isClosed&&evt&&evt.type=="mouseenter"&&delay>0){timer.set(pane+"_openSlider",open_NOW,delay);}else{open_NOW();}function open_NOW(evt){if(!s.isClosed){bindStopSlidingEvents(pane,true);}else{if(!_c[pane].isMoving){open(pane,true);}}}},slideClose=function(evt_or_pane){if(!isInitialized()){return;}var evt=isStr(evt_or_pane)?null:evt_or_pane,pane=evt?$(this).data("layoutEdge"):evt_or_pane,o=options[pane],s=state[pane],delay=_c[pane].isMoving?1000:300;if(s.isClosed||s.isResizing){return;}else{if(o.slideTrigger_close=="click"){close_NOW();}else{if(o.preventQuickSlideClose&&_c.isLayoutBusy){return;}else{if(o.preventPrematureSlideClose&&evt&&$.layout.isMouseOverElem(evt,$Ps[pane])){return;}else{if(evt){timer.set(pane+"_closeSlider",close_NOW,max(o.slideDelay_close,delay));}else{close_NOW();}}}}}function close_NOW(){if(s.isClosed){bindStopSlidingEvents(pane,false);}else{if(!_c[pane].isMoving){close(pane);}}}},slideToggle=function(pane){toggle(pane,true);},lockPaneForFX=function(pane,doLock){var $P=$Ps[pane];if(doLock){$P.css({zIndex:_c.zIndex.pane_animate});if(pane=="south"){$P.css({top:sC.insetTop+sC.innerHeight-$P.outerHeight()});}else{if(pane=="east"){$P.css({left:sC.insetLeft+sC.innerWidth-$P.outerWidth()});}}}else{$P.css({zIndex:(state[pane].isSliding?_c.zIndex.pane_sliding:_c.zIndex.pane_normal)});if(pane=="south"){$P.css({top:"auto"});}else{if(pane=="east"){$P.css({left:"auto"});}}var o=options[pane];if($.layout.browser.msie&&o.fxOpacityFix&&o.fxName_open!="slide"&&$P.css("filter")&&$P.css("opacity")==1){$P[0].style.removeAttribute("filter");}}},bindStartSlidingEvent=function(pane,enable){var o=options[pane],$P=$Ps[pane],$R=$Rs[pane],trigger=o.slideTrigger_open.toLowerCase();if(!$R||(enable&&!o.slidable)){return;}if(trigger.match(/mouseover/)){trigger=o.slideTrigger_open="mouseenter";}else{if(!trigger.match(/click|dblclick|mouseenter/)){trigger=o.slideTrigger_open="click";}}$R[enable?"bind":"unbind"](trigger+"."+sID,slideOpen).css("cursor",enable?o.sliderCursor:"default").attr("title",enable?o.sliderTip:"");},bindStopSlidingEvents=function(pane,enable){var o=options[pane],s=state[pane],z=_c.zIndex,trigger=o.slideTrigger_close.toLowerCase(),action=(enable?"bind":"unbind"),$P=$Ps[pane],$R=$Rs[pane];s.isSliding=enable;timer.clear(pane+"_closeSlider");if(enable){bindStartSlidingEvent(pane,false);}$P.css("zIndex",enable?z.pane_sliding:z.pane_normal);$R.css("zIndex",enable?z.pane_sliding:z.resizer_normal);if(!trigger.match(/click|mouseleave/)){trigger=o.slideTrigger_close="mouseleave";}$R[action](trigger,slideClose);if(trigger=="mouseleave"){$P[action]("mouseleave."+sID,slideClose);$R[action]("mouseenter."+sID,cancelMouseOut);$P[action]("mouseenter."+sID,cancelMouseOut);}if(!enable){timer.clear(pane+"_closeSlider");}else{if(trigger=="click"&&!o.resizable){$R.css("cursor",enable?o.sliderCursor:"default");$R.attr("title",enable?o.togglerTip_open:"");}}function cancelMouseOut(evt){timer.clear(pane+"_closeSlider");evt.stopPropagation();}},makePaneFit=function(pane,isOpening,skipCallback,force){var o=options[pane],s=state[pane],c=_c[pane],$P=$Ps[pane],$R=$Rs[pane],isSidePane=c.dir=="vert",hasRoom=false;if(pane=="center"||(isSidePane&&s.noVerticalRoom)){hasRoom=(s.maxHeight>0);if(hasRoom&&s.noRoom){$P.show();if($R){$R.show();}s.isVisible=true;s.noRoom=false;if(isSidePane){s.noVerticalRoom=false;}_fixIframe(pane);}else{if(!hasRoom&&!s.noRoom){$P.hide();if($R){$R.hide();}s.isVisible=false;s.noRoom=true;}}}if(pane=="center"){}else{if(s.minSize<=s.maxSize){hasRoom=true;if(s.size>s.maxSize){sizePane(pane,s.maxSize,skipCallback,force);}else{if(s.size<s.minSize){sizePane(pane,s.minSize,skipCallback,force);}else{if($R&&$P.is(":visible")){var side=c.side.toLowerCase(),pos=s.size+sC["inset"+c.side];if($.layout.cssNum($R,side)!=pos){$R.css(side,pos);}}}}if(s.noRoom){if(s.wasOpen&&o.closable){if(o.autoReopen){open(pane,false,true,true);}else{s.noRoom=false;}}else{show(pane,s.wasOpen,true,true);}}}else{if(!s.noRoom){s.noRoom=true;s.wasOpen=!s.isClosed&&!s.isSliding;if(s.isClosed){}else{if(o.closable){close(pane,true,true);}else{hide(pane,true);}}}}}},manualSizePane=function(pane,size,skipCallback){if(!isInitialized()){return;}var o=options[pane],forceResize=o.resizeWhileDragging&&!_c.isLayoutBusy;o.autoResize=false;sizePane(pane,size,skipCallback,forceResize);},sizePane=function(pane,size,skipCallback,force){if(!isInitialized()){return;}var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],side=_c[pane].side.toLowerCase(),dimName=_c[pane].sizeType.toLowerCase(),inset="inset"+_c[pane].side,skipResizeWhileDragging=_c.isLayoutBusy&&!o.triggerEventsWhileDragging,oldSize;setSizeLimits(pane);oldSize=s.size;size=_parseSize(pane,size);size=max(size,_parseSize(pane,o.minSize));size=min(size,s.maxSize);if(size<s.minSize){makePaneFit(pane,false,skipCallback);return;}if(!force&&size==oldSize){return;}if(!skipCallback&&state.initialized&&s.isVisible){_execCallback(pane,o.onresize_start);}$P.css(dimName,max(1,cssSize(pane,size)));s.size=size;$.extend(s,elDims($P));if($R&&$P.is(":visible")){$R.css(side,size+sC[inset]);}sizeContent(pane);if(!skipCallback&&!skipResizeWhileDragging&&state.initialized&&s.isVisible){_execCallback(pane,o.onresize_end||o.onresize);resizeNestedLayout(pane);}if(!skipCallback){if(!s.isSliding){sizeMidPanes(_c[pane].dir=="horz"?"all":"center",skipResizeWhileDragging,force);}sizeHandles("all");}var altPane=_c.altSide[pane];if(size<oldSize&&state[altPane].noRoom){setSizeLimits(altPane);makePaneFit(altPane,false,skipCallback);}},sizeMidPanes=function(panes,skipCallback,force){if(!panes||panes=="all"){panes="east,west,center";}$.each(panes.split(","),function(i,pane){if(!$Ps[pane]){return;}var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],isCenter=(pane=="center"),hasRoom=true,CSS={},newCenter=calcNewCenterPaneDims();$.extend(s,elDims($P));if(pane=="center"){if(!force&&s.isVisible&&newCenter.width==s.outerWidth&&newCenter.height==s.outerHeight){return true;}$.extend(s,cssMinDims(pane),{maxWidth:newCenter.width,maxHeight:newCenter.height});CSS=newCenter;CSS.width=cssW(pane,CSS.width);CSS.height=cssH(pane,CSS.height);hasRoom=CSS.width>0&&CSS.height>0;if(!hasRoom&&!state.initialized&&o.minWidth>0){var reqPx=o.minWidth-s.outerWidth,minE=options.east.minSize||0,minW=options.west.minSize||0,sizeE=state.east.size,sizeW=state.west.size,newE=sizeE,newW=sizeW;if(reqPx>0&&state.east.isVisible&&sizeE>minE){newE=max(sizeE-minE,sizeE-reqPx);reqPx-=sizeE-newE;}if(reqPx>0&&state.west.isVisible&&sizeW>minW){newW=max(sizeW-minW,sizeW-reqPx);reqPx-=sizeW-newW;}if(reqPx==0){if(sizeE!=minE){sizePane("east",newE,true);}if(sizeW!=minW){sizePane("west",newW,true);}sizeMidPanes("center",skipCallback,force);return;}}}else{if(s.isVisible&&!s.noVerticalRoom){$.extend(s,elDims($P),cssMinDims(pane));}if(!force&&!s.noVerticalRoom&&newCenter.height==s.outerHeight){return true;}CSS.top=newCenter.top;CSS.bottom=newCenter.bottom;CSS.height=cssH(pane,newCenter.height);s.maxHeight=max(0,CSS.height);hasRoom=(s.maxHeight>0);if(!hasRoom){s.noVerticalRoom=true;}}if(hasRoom){if(!skipCallback&&state.initialized){_execCallback(pane,o.onresize_start);}$P.css(CSS);if(s.noRoom&&!s.isClosed&&!s.isHidden){makePaneFit(pane);}if(s.isVisible){$.extend(s,elDims($P));if(state.initialized){sizeContent(pane);}}}else{if(!s.noRoom&&s.isVisible){makePaneFit(pane);}}if(!s.isVisible){return true;}if(pane=="center"){var b=$.layout.browser;var fix=b.isIE6||(b.msie&&!b.boxModel);if($Ps.north&&(fix||state.north.tagName=="IFRAME")){$Ps.north.css("width",cssW($Ps.north,sC.innerWidth));}if($Ps.south&&(fix||state.south.tagName=="IFRAME")){$Ps.south.css("width",cssW($Ps.south,sC.innerWidth));}}if(!skipCallback&&state.initialized){_execCallback(pane,o.onresize_end||o.onresize);resizeNestedLayout(pane);}});},resizeAll=function(){if(!state.initialized){_initLayoutElements();return;}var oldW=sC.innerWidth,oldH=sC.innerHeight;if(!$N.is(":visible:")){return;}$.extend(state.container,elDims($N));if(!sC.outerHeight){return;}if(false===_execCallback(null,options.onresizeall_start)){return false;}var shrunkH=(sC.innerHeight<oldH),shrunkW=(sC.innerWidth<oldW),$P,o,s,dir;$.each(["south","north","east","west"],function(i,pane){if(!$Ps[pane]){return;}s=state[pane];o=options[pane];dir=_c[pane].dir;if(o.autoResize&&s.size!=o.size){sizePane(pane,o.size,true,true);}else{setSizeLimits(pane);makePaneFit(pane,false,true,true);}});sizeMidPanes("all",true,true);sizeHandles("all");o=options;$.each(_c.allPanes.split(","),function(i,pane){$P=$Ps[pane];if(!$P){return;}if(state[pane].isVisible){_execCallback(pane,o[pane].onresize_end||o[pane].onresize);resizeNestedLayout(pane);}});_execCallback(null,o.onresizeall_end||o.onresizeall);},resizeNestedLayout=function(pane){var $P=$Ps[pane],$C=$Cs[pane],d="layoutContainer";if(options[pane].resizeNestedLayout){if($P.data(d)){$P.layout().resizeAll();}else{if($C&&$C.data(d)){$C.layout().resizeAll();}}}},sizeContent=function(panes,remeasure){if(!isInitialized()){return;}if(!panes||panes=="all"){panes=_c.allPanes;}$.each(panes.split(","),function(idx,pane){var $P=$Ps[pane],$C=$Cs[pane],o=options[pane],s=state[pane],m=s.content;if(!$P||!$C||!$P.is(":visible")){return true;}if(false===_execCallback(null,o.onsizecontent_start)){return;}if(!_c.isLayoutBusy||m.top==undefined||remeasure||o.resizeContentWhileDragging){_measure();if(m.hiddenFooters>0&&$P.css("overflow")=="hidden"){$P.css("overflow","visible");_measure();$P.css("overflow","hidden");}}var newH=s.innerHeight-(m.spaceAbove-s.css.paddingTop)-(m.spaceBelow-s.css.paddingBottom);if(!$C.is(":visible")||m.height!=newH){setOuterHeight($C,newH,true);m.height=newH;}if(state.initialized){_execCallback(pane,o.onsizecontent_end||o.onsizecontent);resizeNestedLayout(pane);}function _below($E){return max(s.css.paddingBottom,(parseInt($E.css("marginBottom"),10)||0));}function _measure(){var ignore=options[pane].contentIgnoreSelector,$Fs=$C.nextAll().not(ignore||":lt(0)"),$Fs_vis=$Fs.filter(":visible"),$F=$Fs_vis.filter(":last");m={top:$C[0].offsetTop,height:$C.outerHeight(),numFooters:$Fs.length,hiddenFooters:$Fs.length-$Fs_vis.length,spaceBelow:0};m.spaceAbove=m.top;m.bottom=m.top+m.height;if($F.length){m.spaceBelow=($F[0].offsetTop+$F.outerHeight())-m.bottom+_below($F);}else{m.spaceBelow=_below($C);}}});},sizeHandles=function(panes){if(!panes||panes=="all"){panes=_c.borderPanes;}$.each(panes.split(","),function(i,pane){var o=options[pane],s=state[pane],$P=$Ps[pane],$R=$Rs[pane],$T=$Ts[pane],$TC;if(!$P||!$R){return;}var dir=_c[pane].dir,_state=(s.isClosed?"_closed":"_open"),spacing=o["spacing"+_state],togAlign=o["togglerAlign"+_state],togLen=o["togglerLength"+_state],paneLen,offset,CSS={};if(spacing==0){$R.hide();return;}else{if(!s.noRoom&&!s.isHidden){$R.show();}}if(dir=="horz"){paneLen=$P.outerWidth();s.resizerLength=paneLen;$R.css({width:max(1,cssW($R,paneLen)),height:max(0,cssH($R,spacing)),left:$.layout.cssNum($P,"left")});}else{paneLen=$P.outerHeight();s.resizerLength=paneLen;$R.css({height:max(1,cssH($R,paneLen)),width:max(0,cssW($R,spacing)),top:sC.insetTop+getPaneSize("north",true)});}removeHover(o,$R);if($T){if(togLen==0||(s.isSliding&&o.hideTogglerOnSlide)){$T.hide();return;}else{$T.show();}if(!(togLen>0)||togLen=="100%"||togLen>paneLen){togLen=paneLen;offset=0;}else{if(isStr(togAlign)){switch(togAlign){case"top":case"left":offset=0;break;case"bottom":case"right":offset=paneLen-togLen;break;case"middle":case"center":default:offset=Math.floor((paneLen-togLen)/2);}}else{var x=parseInt(togAlign,10);if(togAlign>=0){offset=x;}else{offset=paneLen-togLen+x;}}}if(dir=="horz"){var width=cssW($T,togLen);$T.css({width:max(0,width),height:max(1,cssH($T,spacing)),left:offset,top:0});$T.children(".content").each(function(){$TC=$(this);$TC.css("marginLeft",Math.floor((width-$TC.outerWidth())/2));});}else{var height=cssH($T,togLen);$T.css({height:max(0,height),width:max(1,cssW($T,spacing)),top:offset,left:0});$T.children(".content").each(function(){$TC=$(this);$TC.css("marginTop",Math.floor((height-$TC.outerHeight())/2));});}removeHover(0,$T);}if(!state.initialized&&(o.initHidden||s.noRoom)){$R.hide();if($T){$T.hide();}}});},enableClosable=function(pane){if(!isInitialized()){return;}var $T=$Ts[pane],o=options[pane];if(!$T){return;}o.closable=true;$T.bind("click."+sID,function(evt){evt.stopPropagation();toggle(pane);}).bind("mouseenter."+sID,addHover).bind("mouseleave."+sID,removeHover).css("visibility","visible").css("cursor","pointer").attr("title",state[pane].isClosed?o.togglerTip_closed:o.togglerTip_open).show();},disableClosable=function(pane,hide){if(!isInitialized()){return;}var $T=$Ts[pane];if(!$T){return;}options[pane].closable=false;if(state[pane].isClosed){open(pane,false,true);}$T.unbind("."+sID).css("visibility",hide?"hidden":"visible").css("cursor","default").attr("title","");},enableSlidable=function(pane){if(!isInitialized()){return;}var $R=$Rs[pane],o=options[pane];if(!$R||!$R.data("draggable")){return;}options[pane].slidable=true;if(s.isClosed){bindStartSlidingEvent(pane,true);}},disableSlidable=function(pane){if(!isInitialized()){return;}var $R=$Rs[pane];if(!$R){return;}options[pane].slidable=false;if(state[pane].isSliding){close(pane,false,true);}else{bindStartSlidingEvent(pane,false);$R.css("cursor","default").attr("title","");removeHover(null,$R[0]);}},enableResizable=function(pane){if(!isInitialized()){return;}var $R=$Rs[pane],o=options[pane];if(!$R||!$R.data("draggable")){return;}o.resizable=true;$R.draggable("enable").bind("mouseenter."+sID,onResizerEnter).bind("mouseleave."+sID,onResizerLeave);if(!state[pane].isClosed){$R.css("cursor",o.resizerCursor).attr("title",o.resizerTip);}},disableResizable=function(pane){if(!isInitialized()){return;}var $R=$Rs[pane];if(!$R||!$R.data("draggable")){return;}options[pane].resizable=false;$R.draggable("disable").unbind("."+sID).css("cursor","default").attr("title","");removeHover(null,$R[0]);},swapPanes=function(pane1,pane2){if(!isInitialized()){return;}state[pane1].edge=pane2;state[pane2].edge=pane1;var cancelled=false;if(false===_execCallback(pane1,options[pane1].onswap_start)){cancelled=true;}if(!cancelled&&false===_execCallback(pane2,options[pane2].onswap_start)){cancelled=true;}if(cancelled){state[pane1].edge=pane1;state[pane2].edge=pane2;return;}var oPane1=copy(pane1),oPane2=copy(pane2),sizes={};sizes[pane1]=oPane1?oPane1.state.size:0;sizes[pane2]=oPane2?oPane2.state.size:0;$Ps[pane1]=false;$Ps[pane2]=false;state[pane1]={};state[pane2]={};if($Ts[pane1]){$Ts[pane1].remove();}if($Ts[pane2]){$Ts[pane2].remove();}if($Rs[pane1]){$Rs[pane1].remove();}if($Rs[pane2]){$Rs[pane2].remove();}$Rs[pane1]=$Rs[pane2]=$Ts[pane1]=$Ts[pane2]=false;move(oPane1,pane2);move(oPane2,pane1);oPane1=oPane2=sizes=null;if($Ps[pane1]){$Ps[pane1].css(_c.visible);}if($Ps[pane2]){$Ps[pane2].css(_c.visible);}resizeAll();_execCallback(pane1,options[pane1].onswap_end||options[pane1].onswap);_execCallback(pane2,options[pane2].onswap_end||options[pane2].onswap);return;function copy(n){var $P=$Ps[n],$C=$Cs[n];return !$P?false:{pane:n,P:$P?$P[0]:false,C:$C?$C[0]:false,state:$.extend({},state[n]),options:$.extend({},options[n])};}function move(oPane,pane){if(!oPane){return;}var P=oPane.P,C=oPane.C,oldPane=oPane.pane,c=_c[pane],side=c.side.toLowerCase(),inset="inset"+c.side,s=$.extend({},state[pane]),o=options[pane],fx={resizerCursor:o.resizerCursor},re,size,pos;$.each("fxName,fxSpeed,fxSettings".split(","),function(i,k){fx[k]=o[k];fx[k+"_open"]=o[k+"_open"];fx[k+"_close"]=o[k+"_close"];});$Ps[pane]=$(P).data("layoutEdge",pane).css(_c.hidden).css(c.cssReq);$Cs[pane]=C?$(C):false;options[pane]=$.extend({},oPane.options,fx);state[pane]=$.extend({},oPane.state);re=new RegExp(o.paneClass+"-"+oldPane,"g");P.className=P.className.replace(re,o.paneClass+"-"+pane);initHandles(pane);if(c.dir!=_c[oldPane].dir){size=sizes[pane]||0;setSizeLimits(pane);size=max(size,state[pane].minSize);manualSizePane(pane,size,true);}else{$Rs[pane].css(side,sC[inset]+(state[pane].isVisible?getPaneSize(pane):0));}if(oPane.state.isVisible&&!s.isVisible){setAsOpen(pane,true);}else{setAsClosed(pane);bindStartSlidingEvent(pane,true);}oPane=null;}};function keyDown(evt){if(!evt){return true;}var code=evt.keyCode;if(code<33){return true;}var PANE={38:"north",40:"south",37:"west",39:"east"},ALT=evt.altKey,SHIFT=evt.shiftKey,CTRL=evt.ctrlKey,CURSOR=(CTRL&&code>=37&&code<=40),o,k,m,pane;if(CURSOR&&options[PANE[code]].enableCursorHotkey){pane=PANE[code];}else{if(CTRL||SHIFT){$.each(_c.borderPanes.split(","),function(i,p){o=options[p];k=o.customHotkey;m=o.customHotkeyModifier;if((SHIFT&&m=="SHIFT")||(CTRL&&m=="CTRL")||(CTRL&&SHIFT)){if(k&&code==(isNaN(k)||k<=9?k.toUpperCase().charCodeAt(0):k)){pane=p;return false;}}});}}if(!pane||!$Ps[pane]||!options[pane].closable||state[pane].isHidden){return true;}toggle(pane);evt.stopPropagation();evt.returnValue=false;return false;}function allowOverflow(el){if(!isInitialized()){return;}if(this&&this.tagName){el=this;}var $P;if(isStr(el)){$P=$Ps[el];}else{if($(el).data("layoutRole")){$P=$(el);}else{$(el).parents().each(function(){if($(this).data("layoutRole")){$P=$(this);return false;}});}}if(!$P||!$P.length){return;}var pane=$P.data("layoutEdge"),s=state[pane];if(s.cssSaved){resetOverflow(pane);}if(s.isSliding||s.isResizing||s.isClosed){s.cssSaved=false;return;}var newCSS={zIndex:(_c.zIndex.pane_normal+2)},curCSS={},of=$P.css("overflow"),ofX=$P.css("overflowX"),ofY=$P.css("overflowY");if(of!="visible"){curCSS.overflow=of;newCSS.overflow="visible";}if(ofX&&!ofX.match(/visible|auto/)){curCSS.overflowX=ofX;newCSS.overflowX="visible";}if(ofY&&!ofY.match(/visible|auto/)){curCSS.overflowY=ofX;newCSS.overflowY="visible";}s.cssSaved=curCSS;$P.css(newCSS);$.each(_c.allPanes.split(","),function(i,p){if(p!=pane){resetOverflow(p);}});}function resetOverflow(el){if(!isInitialized()){return;}if(this&&this.tagName){el=this;}var $P;if(isStr(el)){$P=$Ps[el];}else{if($(el).data("layoutRole")){$P=$(el);}else{$(el).parents().each(function(){if($(this).data("layoutRole")){$P=$(this);return false;}});}}if(!$P||!$P.length){return;}var pane=$P.data("layoutEdge"),s=state[pane],CSS=s.cssSaved||{};if(!s.isSliding&&!s.isResizing){$P.css("zIndex",_c.zIndex.pane_normal);}$P.css(CSS);s.cssSaved=false;}function getBtn(selector,pane,action){var $E=$(selector),err=options.showErrorMessages;if(!$E.length){if(err){alert(lang.errButton+lang.selector+": "+selector);}}else{if(_c.borderPanes.indexOf(pane)==-1){if(err){alert(lang.errButton+lang.pane+": "+pane);}}else{var btn=options[pane].buttonClass+"-"+action;$E.addClass(btn+" "+btn+"-"+pane).data("layoutName",options.name);return $E;}}return null;}function bindButton(selector,action,pane){switch(action.toLowerCase()){case"toggle":addToggleBtn(selector,pane);break;case"open":addOpenBtn(selector,pane);break;case"close":addCloseBtn(selector,pane);break;case"pin":addPinBtn(selector,pane);break;case"toggle-slide":addToggleBtn(selector,pane,true);break;case"open-slide":addOpenBtn(selector,pane,true);break;}}function addToggleBtn(selector,pane,slide){var $E=getBtn(selector,pane,"toggle");if($E){$E.click(function(evt){toggle(pane,!!slide);evt.stopPropagation();});}}function addOpenBtn(selector,pane,slide){var $E=getBtn(selector,pane,"open");if($E){$E.attr("title",lang.Open).click(function(evt){open(pane,!!slide);evt.stopPropagation();});}}function addCloseBtn(selector,pane){var $E=getBtn(selector,pane,"close");if($E){$E.attr("title",lang.Close).click(function(evt){close(pane);evt.stopPropagation();});}}function addPinBtn(selector,pane){var $E=getBtn(selector,pane,"pin");if($E){var s=state[pane];$E.click(function(evt){setPinState($(this),pane,(s.isSliding||s.isClosed));if(s.isSliding||s.isClosed){open(pane);}else{close(pane);}evt.stopPropagation();});setPinState($E,pane,(!s.isClosed&&!s.isSliding));_c[pane].pins.push(selector);}}function syncPinBtns(pane,doPin){$.each(_c[pane].pins,function(i,selector){setPinState($(selector),pane,doPin);});}function setPinState($Pin,pane,doPin){var updown=$Pin.attr("pin");if(updown&&doPin==(updown=="down")){return;}var pin=options[pane].buttonClass+"-pin",side=pin+"-"+pane,UP=pin+"-up "+side+"-up",DN=pin+"-down "+side+"-down";$Pin.attr("pin",doPin?"down":"up").attr("title",doPin?lang.Unpin:lang.Pin).removeClass(doPin?UP:DN).addClass(doPin?DN:UP);}function isCookiesEnabled(){return(navigator.cookieEnabled!=0);}function getCookie(opts){var o=$.extend({},options.cookie,opts||{}),name=o.name||options.name||"Layout",c=document.cookie,cs=c?c.split(";"):[],pair;for(var i=0,n=cs.length;i<n;i++){pair=$.trim(cs[i]).split("=");if(pair[0]==name){return decodeJSON(decodeURIComponent(pair[1]));}}return"";}function saveCookie(keys,opts){var o=$.extend({},options.cookie,opts||{}),name=o.name||options.name||"Layout",params="",date="",clear=false;if(o.expires.toUTCString){date=o.expires;}else{if(typeof o.expires=="number"){date=new Date();if(o.expires>0){date.setDate(date.getDate()+o.expires);}else{date.setYear(1970);clear=true;}}}if(date){params+=";expires="+date.toUTCString();}if(o.path){params+=";path="+o.path;}if(o.domain){params+=";domain="+o.domain;}if(o.secure){params+=";secure";}if(clear){state.cookie={};document.cookie=name+"="+params;}else{state.cookie=getState(keys||o.keys);document.cookie=name+"="+encodeURIComponent(encodeJSON(state.cookie))+params;}return $.extend({},state.cookie);}function deleteCookie(){saveCookie("",{expires:-1});}function loadCookie(opts){var o=getCookie(opts);if(o){state.cookie=$.extend({},o);loadState(o);}return o;}function loadState(opts,animate){opts=_transformData(opts);$.extend(true,options,opts);if(state.initialized){var pane,o,s,h,c,a=!animate;$.each(_c.allPanes.split(","),function(idx,pane){o=opts[pane];if(typeof o!="object"){return;}s=o.size;c=o.initClosed;h=o.initHidden;if(s>0||s=="auto"){sizePane(pane,s);}if(h===true){hide(pane,a);}else{if(c===false){open(pane,false,a);}else{if(c===true){close(pane,false,a);}else{if(h===false){show(pane,false,a);}}}}});}}function getState(keys){var data={},alt={isClosed:"initClosed",isHidden:"initHidden"},pair,pane,key,val;if(!keys){keys=options.cookie.keys;}if($.isArray(keys)){keys=keys.join(",");}keys=keys.replace(/__/g,".").split(",");for(var i=0,n=keys.length;i<n;i++){pair=keys[i].split(".");pane=pair[0];key=pair[1];if(_c.allPanes.indexOf(pane)<0){continue;}val=state[pane][key];if(val==undefined){continue;}if(key=="isClosed"&&state[pane]["isSliding"]){val=true;}(data[pane]||(data[pane]={}))[alt[key]?alt[key]:key]=val;}return data;}function encodeJSON(JSON){return parse(JSON);function parse(h){var D=[],i=0,k,v,t;for(k in h){v=h[k];t=typeof v;if(t=="string"){v='"'+v+'"';}else{if(t=="object"){v=parse(v);}}D[i++]='"'+k+'":'+v;}return"{"+D.join(",")+"}";}}function decodeJSON(str){try{return window["eval"]("("+str+")")||{};}catch(e){return{};}}var $N=$(this).eq(0);if(!$N.length){if(options.showErrorMessages){alert(lang.errContainerMissing);}return null;}if($N.data("layoutContainer")&&$N.data("layout")){return $N.data("layout");}var $Ps={},$Cs={},$Rs={},$Ts={},sC=state.container,sID=state.id;var Instance={options:options,state:state,container:$N,panes:$Ps,contents:$Cs,resizers:$Rs,togglers:$Ts,toggle:toggle,hide:hide,show:show,open:open,close:close,slideOpen:slideOpen,slideClose:slideClose,slideToggle:slideToggle,initContent:initContent,sizeContent:sizeContent,sizePane:manualSizePane,swapPanes:swapPanes,resizeAll:resizeAll,initPanes:isInitialized,destroy:destroy,addPane:addPane,removePane:removePane,setSizeLimits:setSizeLimits,bindButton:bindButton,addToggleBtn:addToggleBtn,addOpenBtn:addOpenBtn,addCloseBtn:addCloseBtn,addPinBtn:addPinBtn,allowOverflow:allowOverflow,resetOverflow:resetOverflow,encodeJSON:encodeJSON,decodeJSON:decodeJSON,getState:getState,getCookie:getCookie,saveCookie:saveCookie,deleteCookie:deleteCookie,loadCookie:loadCookie,loadState:loadState,cssWidth:cssW,cssHeight:cssH,enableClosable:enableClosable,disableClosable:disableClosable,enableSlidable:enableSlidable,disableSlidable:disableSlidable,enableResizable:enableResizable,disableResizable:disableResizable};if(_create()==="cancel"){return null;}else{return Instance;}};})(jQuery);(function($){$.extend({metadata:{defaults:{type:"class",name:"metadata",cre:/({.*})/,single:"metadata"},setType:function(type,name){this.defaults.type=type;this.defaults.name=name;},get:function(elem,opts){var settings=$.extend({},this.defaults,opts);if(!settings.single.length){settings.single="metadata";}var data=$.data(elem,settings.single);if(data){return data;}data="{}";if(settings.type=="class"){var m=settings.cre.exec(elem.className);if(m){data=m[1];}}else{if(settings.type=="elem"){if(!elem.getElementsByTagName){return undefined;}var e=elem.getElementsByTagName(settings.name);if(e.length){data=$.trim(e[0].innerHTML);}}else{if(elem.getAttribute!=undefined){var attr=elem.getAttribute(settings.name);if(attr){data=attr;}}}}if(data.indexOf("{")<0){data="{"+data+"}";}data=eval("("+data+")");$.data(elem,settings.single,data);return data;}}});$.fn.metadata=function(opts){return $.metadata.get(this[0],opts);};})(jQuery);(function(b){function a(d){this.input=d;if(d.attr("type")=="password"){this.handlePassword();}b(d[0].form).submit(function(){if(d.hasClass("placeholder")&&d[0].value==d.attr("placeholder")){d[0].value="";}});}a.prototype={show:function(f){if(this.input[0].value===""||(f&&this.valueIsPlaceholder())){if(this.isPassword){try{this.input[0].setAttribute("type","text");}catch(d){this.input.before(this.fakePassword.show()).hide();}}this.input.addClass("placeholder");this.input[0].value=this.input.attr("placeholder");}},hide:function(){if(this.valueIsPlaceholder()&&this.input.hasClass("placeholder")){this.input.removeClass("placeholder");this.input[0].value="";if(this.isPassword){try{this.input[0].setAttribute("type","password");}catch(d){}this.input.show();this.input[0].focus();}}},valueIsPlaceholder:function(){return this.input[0].value==this.input.attr("placeholder");},handlePassword:function(){var d=this.input;d.attr("realType","password");this.isPassword=true;if(b.browser.msie&&d[0].outerHTML){var e=b(d[0].outerHTML.replace(/type=(['"])?password\1/gi,"type=$1text$1"));this.fakePassword=e.val(d.attr("placeholder")).addClass("placeholder").focus(function(){d.trigger("focus");b(this).hide();});b(d[0].form).submit(function(){e.remove();d.show();});}}};var c=!!("placeholder" in document.createElement("input"));b.fn.placeholder=function(){return c?this:this.each(function(){var d=b(this);var e=new a(d);e.show(true);d.focus(function(){e.hide();});d.blur(function(){e.show(false);});if(b.browser.msie){b(window).load(function(){if(d.val()){d.removeClass("placeholder");}e.show(true);});d.focus(function(){if(this.value==""){var f=this.createTextRange();f.collapse(true);f.moveStart("character",0);f.select();}});}});};})(jQuery);(function(a){a.fn.popupWindow=function(b){return this.each(function(){a(this).click(function(){a.fn.popupWindow.defaultSettings={fullscreen:0,centerBrowser:0,centerScreen:0,height:500,left:0,location:0,menubar:0,resizable:0,scrollbars:0,status:0,width:500,windowName:null,windowURL:null,top:0,toolbar:0};var d=a.extend({},a.fn.popupWindow.defaultSettings,b||{});if(d.fullscreen){d.width=screen.width;d.height=screen.height;d.left=0;d.top=0;}var e,f,c="height="+d.height+",width="+d.width+",toolbar="+d.toolbar+",scrollbars="+d.scrollbars+",status="+d.status+",resizable="+d.resizable+",location="+d.location+",location="+d.location+",fullscreen="+d.fullscreen+",menuBar="+d.menubar;d.windowName=this.name||d.windowName;d.windowURL=this.href||d.windowURL;if(d.centerBrowser){if(a.browser.msie){e=(window.screenTop-120)+((((document.documentElement.clientHeight+120)/2)-(d.height/2)));f=window.screenLeft+((((document.body.offsetWidth+20)/2)-(d.width/2)));}else{e=window.screenY+(((window.outerHeight/2)-(d.height/2)));f=window.screenX+(((window.outerWidth/2)-(d.width/2)));}window.open(d.windowURL,d.windowName,c+",left="+f+",top="+e).focus();}else{if(d.centerScreen){e=(screen.height-d.height)/2;f=(screen.width-d.width)/2;window.open(d.windowURL,d.windowName,c+",left="+f+",top="+e).focus();}else{window.open(d.windowURL,d.windowName,c+",left="+d.left+",top="+d.top).focus();}}return false;});});};})(jQuery);(function(c){var a=c.scrollTo=function(f,e,d){c(window).scrollTo(f,e,d);};a.defaults={axis:"xy",duration:parseFloat(c.fn.jquery)>=1.3?0:1};a.window=function(d){return c(window)._scrollable();};c.fn._scrollable=function(){return this.map(function(){var e=this,d=!e.nodeName||c.inArray(e.nodeName.toLowerCase(),["iframe","#document","html","body"])!=-1;if(!d){return e;}var f=(e.contentWindow||e).document||e.ownerDocument||e;return c.browser.safari||f.compatMode=="BackCompat"?f.body:f.documentElement;});};c.fn.scrollTo=function(f,e,d){if(typeof e=="object"){d=e;e=0;}if(typeof d=="function"){d={onAfter:d};}if(f=="max"){f=9000000000;}d=c.extend({},a.defaults,d);e=e||d.speed||d.duration;d.queue=d.queue&&d.axis.length>1;if(d.queue){e/=2;}d.offset=b(d.offset);d.over=b(d.over);return this._scrollable().each(function(){var m=this,k=c(m),l=f,j,g={},n=k.is("html,body");switch(typeof l){case"number":case"string":if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(l)){l=b(l);break;}l=c(l,this);case"object":if(l.is||l.style){j=(l=c(l)).offset();}}c.each(d.axis.split(""),function(u,v){var w=v=="x"?"Left":"Top",y=w.toLowerCase(),q="scroll"+w,p=m[q],o=a.max(m,v);if(j){g[q]=j[y]+(n?0:p-k.offset()[y]);if(d.margin){g[q]-=parseInt(l.css("margin"+w))||0;g[q]-=parseInt(l.css("border"+w+"Width"))||0;}g[q]+=d.offset[y]||0;if(d.over[y]){g[q]+=l[v=="x"?"width":"height"]()*d.over[y];}}else{var x=l[y];g[q]=x.slice&&x.slice(-1)=="%"?parseFloat(x)/100*o:x;}if(/^\d+$/.test(g[q])){g[q]=g[q]<=0?0:Math.min(g[q],o);}if(!u&&d.queue){if(p!=g[q]){h(d.onAfterFirst);}delete g[q];}});h(d.onAfter);function h(o){k.animate(g,e,d.easing,o&&function(){o.call(this,f,d);});}}).end();};a.max=function(k,j){var h=j=="x"?"Width":"Height",e="scroll"+h;if(!c(k).is("html,body")){return k[e]-c(k)[h.toLowerCase()]();}var g="client"+h,f=k.ownerDocument.documentElement,d=k.ownerDocument.body;return Math.max(f[e],d[e])-Math.min(f[g],d[g]);};function b(d){return typeof d=="object"?d:{top:d,left:d};}})(jQuery);(function(d){var a={"%":function(e){return"%";},b:function(e){return parseInt(e,10).toString(2);},c:function(e){return String.fromCharCode(parseInt(e,10));},d:function(e){return parseInt(e,10)?parseInt(e,10):0;},u:function(e){return Math.abs(e);},f:function(f,e){return(e>-1)?Math.round(parseFloat(f)*Math.pow(10,e))/Math.pow(10,e):parseFloat(f);},o:function(e){return parseInt(e,10).toString(8);},s:function(e){return e;},x:function(e){return(""+parseInt(e,10).toString(16)).toLowerCase();},X:function(e){return(""+parseInt(e,10).toString(16)).toUpperCase();}};var c=/%(?:(\d+)?(?:\.(\d+))?|\(([^)]+)\))([%bcdufosxX])/g;var b=function(f){if(f.length==1&&typeof f[0]=="object"){f=f[0];return function(j,h,l,k,g,n,m){return a[g](f[k]);};}else{var e=0;return function(j,h,l,k,g,n,m){return a[g](f[e++],l);};}};d.extend({sprintf:function(f){var e=Array.apply(null,arguments).slice(1);return f.replace(c,b(e));},vsprintf:function(f,e){return f.replace(c,b(e));}});})(jQuery);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:".",debug:false};function benchmark(s,d){log(s+","+(new Date().getTime()-d.getTime())+"ms");}this.benchmark=benchmark;function log(s){if(typeof console!="undefined"&&typeof console.debug!="undefined"){console.log(s);}else{alert(s);}}function buildParserCache(table,$headers){if(table.config.debug){var parsersDebug="";}var rows=table.tBodies[0].rows;if(table.tBodies[0].rows[0]){var list=[],cells=rows[0].cells,l=cells.length;for(var i=0;i<l;i++){var p=false;if($.metadata&&($($headers[i]).metadata()&&$($headers[i]).metadata().sorter)){p=getParserById($($headers[i]).metadata().sorter);}else{if((table.config.headers[i]&&table.config.headers[i].sorter)){p=getParserById(table.config.headers[i].sorter);}}if(!p){p=detectParserForColumn(table,cells[i]);}if(table.config.debug){parsersDebug+="column:"+i+" parser:"+p.id+"\n";}list.push(p);}}if(table.config.debug){log(parsersDebug);}return list;}function detectParserForColumn(table,node){var l=parsers.length;for(var i=1;i<l;i++){if(parsers[i].is($.trim(getElementText(table.config,node)),table,node)){return parsers[i];}}return parsers[0];}function getParserById(name){var l=parsers.length;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==name.toLowerCase()){return parsers[i];}}return false;}function buildCache(table){if(table.config.debug){var cacheTime=new Date();}var totalRows=(table.tBodies[0]&&table.tBodies[0].rows.length)||0,totalCells=(table.tBodies[0].rows[0]&&table.tBodies[0].rows[0].cells.length)||0,parsers=table.config.parsers,cache={row:[],normalized:[]};for(var i=0;i<totalRows;++i){var c=table.tBodies[0].rows[i],cols=[];cache.row.push($(c));for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c.cells[j]),table,c.cells[j]));}cols.push(i);cache.normalized.push(cols);cols=null;}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime);}return cache;}function getElementText(config,node){if(!node){return"";}var t="";if(config.textExtraction=="simple"){if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){t=node.childNodes[0].innerHTML;}else{t=node.innerHTML;}}else{if(typeof(config.textExtraction)=="function"){t=config.textExtraction(node);}else{t=$(node).text();}}return t;}function appendToTable(table,cache){if(table.config.debug){var appendTime=new Date();}var c=cache,r=c.row,n=c.normalized,totalRows=n.length,checkCell=(n[0].length-1),tableBody=$(table.tBodies[0]),rows=[];for(var i=0;i<totalRows;i++){rows.push(r[n[i][checkCell]]);if(!table.config.appender){var o=r[n[i][checkCell]];var l=o.length;for(var j=0;j<l;j++){tableBody[0].appendChild(o[j]);}}}if(table.config.appender){table.config.appender(table,rows);}rows=null;if(table.config.debug){benchmark("Rebuilt table:",appendTime);}applyWidget(table);setTimeout(function(){$(table).trigger("sortEnd");},0);}function buildHeaders(table){if(table.config.debug){var time=new Date();}var meta=($.metadata)?true:false,tableHeadersRows=[];for(var i=0;i<table.tHead.rows.length;i++){tableHeadersRows[i]=0;}$tableHeaders=$("thead th",table);$tableHeaders.each(function(index){this.count=0;this.column=index;this.order=formatSortingOrder(table.config.sortInitialOrder);if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true;}if(!this.sortDisabled){$(this).addClass(table.config.cssHeader);}table.config.headerList[index]=this;});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders);}return $tableHeaders;}function checkCellColSpan(table,rows,row){var arr=[],r=table.tHead.rows,c=r[row].cells;for(var i=0;i<c.length;i++){var cell=c[i];if(cell.colSpan>1){arr=arr.concat(checkCellColSpan(table,headerArr,row++));}else{if(table.tHead.length==1||(cell.rowSpan>1||!r[row+1])){arr.push(cell);}}}return arr;}function checkHeaderMetadata(cell){if(($.metadata)&&($(cell).metadata().sorter===false)){return true;}return false;}function checkHeaderOptions(table,i){if((table.config.headers[i])&&(table.config.headers[i].sorter===false)){return true;}return false;}function applyWidget(table){var c=table.config.widgets;var l=c.length;for(var i=0;i<l;i++){getWidgetById(c[i]).format(table);}}function getWidgetById(name){var l=widgets.length;for(var i=0;i<l;i++){if(widgets[i].id.toLowerCase()==name.toLowerCase()){return widgets[i];}}}function formatSortingOrder(v){if(typeof(v)!="Number"){i=(v.toLowerCase()=="desc")?1:0;}else{i=(v==(0||1))?v:0;}return i;}function isValueInArray(v,a){var l=a.length;for(var i=0;i<l;i++){if(a[i][0]==v){return true;}}return false;}function setHeadersCss(table,$headers,list,css){$headers.removeClass(css[0]).removeClass(css[1]);var h=[];$headers.each(function(offset){if(!this.sortDisabled){h[this.column]=$(this);}});var l=list.length;for(var i=0;i<l;i++){h[list[i][0]].addClass(css[list[i][1]]);}}function fixColumnWidth(table,$headers){var c=table.config;if(c.widthFixed){var colgroup=$("<colgroup>");$("tr:first td",table.tBodies[0]).each(function(){colgroup.append($("<col>").css("width",$(this).width()));});$(table).prepend(colgroup);}}function updateHeaderSortCount(table,sortList){var c=table.config,l=sortList.length;for(var i=0;i<l;i++){var s=sortList[i],o=c.headerList[s[0]];o.order=o.count=s[1];o.count++;}}function multisort(table,sortList,cache){if(table.config.debug){var sortTime=new Date();}var dynamicExp="var sortWrapper = function(a,b) {",l=sortList.length;for(var i=0;i<l;i++){var c=sortList[i][0];var order=sortList[i][1];var s=(getCachedSortType(table.config.parsers,c)=="text")?((order==0)?"sortText":"sortTextDesc"):((order==0)?"sortNumeric":"sortNumericDesc");var e="e"+i;dynamicExp+="var "+e+" = "+s+"(a["+c+"],b["+c+"]); ";dynamicExp+="if("+e+") { return "+e+"; } ";dynamicExp+="else { ";}var orgOrderCol=cache.normalized[0].length-1;dynamicExp+="return a["+orgOrderCol+"]-b["+orgOrderCol+"];";for(var i=0;i<l;i++){dynamicExp+="}; ";}dynamicExp+="return 0; ";dynamicExp+="}; ";eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime);}return cache;}function sortText(a,b){return((a<b)?-1:((a>b)?1:0));}function sortTextDesc(a,b){return((b<a)?-1:((b>a)?1:0));}function sortNumeric(a,b){return a-b;}function sortNumericDesc(a,b){return b-a;}function getCachedSortType(parsers,i){return parsers[i].type;}this.construct=function(settings){return this.each(function(){if(!this.tHead||!this.tBodies){return;}var $this,$document,$headers,cache,config,shiftDown=0,sortOrder;this.config={};config=$.extend(this.config,$.tablesorter.defaults,settings);$this=$(this);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);this.config.cache=cache;var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){$this.trigger("sortStart");var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){var $cell=$(this);var i=this.column;this.order=this.count++==0?this.order:(1-this.order);$headers.not($cell).each(function(){this.count=0;});if(!e[config.sortMultiSortKey]){config.sortList=[];if(config.sortForce!=null){var a=config.sortForce;for(var j=0;j<a.length;j++){if(a[j][0]!=i){config.sortList.push(a[j]);}}}config.sortList.push([i,this.order]);}else{if(isValueInArray(i,config.sortList)){for(var j=0;j<config.sortList.length;j++){var s=config.sortList[j],o=config.headerList[s[0]];if(s[0]==i){o.count=s[1];o.count++;s[1]=o.count%2;}}}else{config.sortList.push([i,this.order]);}}setTimeout(function(){setHeadersCss($this[0],$headers,config.sortList,sortCSS);appendToTable($this[0],multisort($this[0],config.sortList,cache));},1);return false;}}).mousedown(function(){if(config.cancelSelection){this.onselectstart=function(){return false;};return false;}});$this.bind("update",function(){this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);}).bind("sorton",function(e,list){$(this).trigger("sortStart");if(list==null){}else{config.sortList=list;}var sortList=config.sortList;updateHeaderSortCount(this,sortList);setHeadersCss(this,$headers,sortList,sortCSS);appendToTable(this,multisort(this,sortList,cache));}).bind("appendCache",function(){appendToTable(this,cache);}).bind("applyWidgetId",function(e,id){getWidgetById(id).format(this);}).bind("applyWidgets",function(){applyWidget(this);});if($.metadata&&($(this).metadata()&&$(this).metadata().sortlist)){config.sortList=$(this).metadata().sortlist;}if(config.sortList.length>0){$this.trigger("sorton",[config.sortList]);}applyWidget(this);});};this.addParser=function(parser){var l=parsers.length,a=true;for(var i=0;i<l;i++){if(parsers[i].id.toLowerCase()==parser.id.toLowerCase()){a=false;}}if(a){parsers.push(parser);}};this.addWidget=function(widget){widgets.push(widget);};this.formatFloat=function(s){var i=parseFloat(s);return(isNaN(i))?0:i;};this.formatInt=function(s){var i=parseInt(s);return(isNaN(i))?0:i;};this.isDigit=function(s,config){var DECIMAL="\\"+config.decimal;var exp="/(^[+]?0("+DECIMAL+"0+)?$)|(^([-+]?[1-9][0-9]*)$)|(^([-+]?((0?|[1-9
