var FILEDATE=1327758350;var ABCUMGROUP={};var ABCUMMARKETING={};var ABCUMCOMMERCE={};var ABCUMCONNECT={};var ABCUMPRINT={};var ABCUMEDIT={};(function(bh,P){var aB=bh.document,bA=bh.navigator,br=bh.location;var b=(function(){var bL=function(b6,b7){return new bL.fn.init(b6,b7,bJ)},b0=bh.jQuery,bN=bh.$,bJ,b4=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bS=/\S/,bO=/^\s+/,bK=/\s+$/,bG=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bT=/^[\],:{}\s]*$/,b2=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bV=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bP=/(?:^|:|,)(?:\s*\[)+/g,bE=/(webkit)[ \/]([\w.]+)/,bX=/(opera)(?:.*version)?[ \/]([\w.]+)/,bW=/(msie) ([\w.]+)/,bY=/(mozilla)(?:.*? rv:([\w.]+))?/,bH=/-([a-z]|[0-9])/ig,b5=/^-ms-/,bZ=function(b6,b7){return(b7+"").toUpperCase()},b3=bA.userAgent,b1,bI,e,bR=Object.prototype.toString,bM=Object.prototype.hasOwnProperty,bF=Array.prototype.push,bQ=Array.prototype.slice,bU=String.prototype.trim,bB=Array.prototype.indexOf,bD={};bL.fn=bL.prototype={constructor:bL,init:function(b6,ca,b9){var b8,cb,b7,cc;if(!b6){return this}if(b6.nodeType){this.context=this[0]=b6;this.length=1;return this}if(b6==="body"&&!ca&&aB.body){this.context=aB;this[0]=aB.body;this.selector=b6;this.length=1;return this}if(typeof b6==="string"){if(b6.charAt(0)==="<"&&b6.charAt(b6.length-1)===">"&&b6.length>=3){b8=[null,b6,null]}else{b8=b4.exec(b6)}if(b8&&(b8[1]||!ca)){if(b8[1]){ca=ca instanceof bL?ca[0]:ca;cc=(ca?ca.ownerDocument||ca:aB);b7=bG.exec(b6);if(b7){if(bL.isPlainObject(ca)){b6=[aB.createElement(b7[1])];bL.fn.attr.call(b6,ca,true)}else{b6=[cc.createElement(b7[1])]}}else{b7=bL.buildFragment([b8[1]],[cc]);b6=(b7.cacheable?bL.clone(b7.fragment):b7.fragment).childNodes}return bL.merge(this,b6)}else{cb=aB.getElementById(b8[2]);if(cb&&cb.parentNode){if(cb.id!==b8[2]){return b9.find(b6)}this.length=1;this[0]=cb}this.context=aB;this.selector=b6;return this}}else{if(!ca||ca.jquery){return(ca||b9).find(b6)}else{return this.constructor(ca).find(b6)}}}else{if(bL.isFunction(b6)){return b9.ready(b6)}}if(b6.selector!==P){this.selector=b6.selector;this.context=b6.context}return bL.makeArray(b6,this)},selector:"",jquery:"1.7.1",length:0,size:function(){return this.length},toArray:function(){return bQ.call(this,0)},get:function(b6){return b6==null?this.toArray():(b6<0?this[this.length+b6]:this[b6])},pushStack:function(b7,b9,b6){var b8=this.constructor();if(bL.isArray(b7)){bF.apply(b8,b7)}else{bL.merge(b8,b7)}b8.prevObject=this;b8.context=this.context;if(b9==="find"){b8.selector=this.selector+(this.selector?" ":"")+b6}else{if(b9){b8.selector=this.selector+"."+b9+"("+b6+")"}}return b8},each:function(b7,b6){return bL.each(this,b7,b6)},ready:function(b6){bL.bindReady();bI.add(b6);return this},eq:function(b6){b6=+b6;return b6===-1?this.slice(b6):this.slice(b6,b6+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bQ.apply(this,arguments),"slice",bQ.call(arguments).join(","))},map:function(b6){return this.pushStack(bL.map(this,function(b8,b7){return b6.call(b8,b7,b8)}))},end:function(){return this.prevObject||this.constructor(null)},push:bF,sort:[].sort,splice:[].splice};bL.fn.init.prototype=bL.fn;bL.extend=bL.fn.extend=function(){var cf,b8,b6,b7,cc,cd,cb=arguments[0]||{},ca=1,b9=arguments.length,ce=false;if(typeof cb==="boolean"){ce=cb;cb=arguments[1]||{};ca=2}if(typeof cb!=="object"&&!bL.isFunction(cb)){cb={}}if(b9===ca){cb=this;--ca}for(;ca<b9;ca++){if((cf=arguments[ca])!=null){for(b8 in cf){b6=cb[b8];b7=cf[b8];if(cb===b7){continue}if(ce&&b7&&(bL.isPlainObject(b7)||(cc=bL.isArray(b7)))){if(cc){cc=false;cd=b6&&bL.isArray(b6)?b6:[]}else{cd=b6&&bL.isPlainObject(b6)?b6:{}}cb[b8]=bL.extend(ce,cd,b7)}else{if(b7!==P){cb[b8]=b7}}}}}return cb};bL.extend({noConflict:function(b6){if(bh.$===bL){bh.$=bN}if(b6&&bh.jQuery===bL){bh.jQuery=b0}return bL},isReady:false,readyWait:1,holdReady:function(b6){if(b6){bL.readyWait++}else{bL.ready(true)}},ready:function(b6){if((b6===true&&!--bL.readyWait)||(b6!==true&&!bL.isReady)){if(!aB.body){return setTimeout(bL.ready,1)}bL.isReady=true;if(b6!==true&&--bL.readyWait>0){return}bI.fireWith(aB,[bL]);if(bL.fn.trigger){bL(aB).trigger("ready").off("ready")}}},bindReady:function(){if(bI){return}bI=bL.Callbacks("once memory");if(aB.readyState==="complete"){return setTimeout(bL.ready,1)}if(aB.addEventListener){aB.addEventListener("DOMContentLoaded",e,false);bh.addEventListener("load",bL.ready,false)}else{if(aB.attachEvent){aB.attachEvent("onreadystatechange",e);bh.attachEvent("onload",bL.ready);var b6=false;try{b6=bh.frameElement==null}catch(b7){}if(aB.documentElement.doScroll&&b6){bC()}}}},isFunction:function(b6){return bL.type(b6)==="function"},isArray:Array.isArray||function(b6){return bL.type(b6)==="array"},isWindow:function(b6){return b6&&typeof b6==="object"&&"setInterval" in b6},isNumeric:function(b6){return !isNaN(parseFloat(b6))&&isFinite(b6)},type:function(b6){return b6==null?String(b6):bD[bR.call(b6)]||"object"},isPlainObject:function(b8){if(!b8||bL.type(b8)!=="object"||b8.nodeType||bL.isWindow(b8)){return false}try{if(b8.constructor&&!bM.call(b8,"constructor")&&!bM.call(b8.constructor.prototype,"isPrototypeOf")){return false}}catch(b7){return false}var b6;for(b6 in b8){}return b6===P||bM.call(b8,b6)},isEmptyObject:function(b7){for(var b6 in b7){return false}return true},error:function(b6){throw new Error(b6)},parseJSON:function(b6){if(typeof b6!=="string"||!b6){return null}b6=bL.trim(b6);if(bh.JSON&&bh.JSON.parse){return bh.JSON.parse(b6)}if(bT.test(b6.replace(b2,"@").replace(bV,"]").replace(bP,""))){return(new Function("return "+b6))()}bL.error("Invalid JSON: "+b6)},parseXML:function(b8){var b6,b7;try{if(bh.DOMParser){b7=new DOMParser();b6=b7.parseFromString(b8,"text/xml")}else{b6=new ActiveXObject("Microsoft.XMLDOM");b6.async="false";b6.loadXML(b8)}}catch(b9){b6=P}if(!b6||!b6.documentElement||b6.getElementsByTagName("parsererror").length){bL.error("Invalid XML: "+b8)}return b6},noop:function(){},globalEval:function(b6){if(b6&&bS.test(b6)){(bh.execScript||function(b7){bh["eval"].call(bh,b7)})(b6)}},camelCase:function(b6){return b6.replace(b5,"ms-").replace(bH,bZ)},nodeName:function(b7,b6){return b7.nodeName&&b7.nodeName.toUpperCase()===b6.toUpperCase()},each:function(b9,cc,b8){var b7,ca=0,cb=b9.length,b6=cb===P||bL.isFunction(b9);if(b8){if(b6){for(b7 in b9){if(cc.apply(b9[b7],b8)===false){break}}}else{for(;ca<cb;){if(cc.apply(b9[ca++],b8)===false){break}}}}else{if(b6){for(b7 in b9){if(cc.call(b9[b7],b7,b9[b7])===false){break}}}else{for(;ca<cb;){if(cc.call(b9[ca],ca,b9[ca++])===false){break}}}}return b9},trim:bU?function(b6){return b6==null?"":bU.call(b6)}:function(b6){return b6==null?"":b6.toString().replace(bO,"").replace(bK,"")},makeArray:function(b9,b7){var b6=b7||[];if(b9!=null){var b8=bL.type(b9);if(b9.length==null||b8==="string"||b8==="function"||b8==="regexp"||bL.isWindow(b9)){bF.call(b6,b9)}else{bL.merge(b6,b9)}}return b6},inArray:function(b8,b9,b7){var b6;if(b9){if(bB){return bB.call(b9,b8,b7)}b6=b9.length;b7=b7?b7<0?Math.max(0,b6+b7):b7:0;for(;b7<b6;b7++){if(b7 in b9&&b9[b7]===b8){return b7}}}return -1},merge:function(ca,b8){var b9=ca.length,b7=0;if(typeof b8.length==="number"){for(var b6=b8.length;b7<b6;b7++){ca[b9++]=b8[b7]}}else{while(b8[b7]!==P){ca[b9++]=b8[b7++]}}ca.length=b9;return ca},grep:function(b7,cc,b6){var b8=[],cb;b6=!!b6;for(var b9=0,ca=b7.length;b9<ca;b9++){cb=!!cc(b7[b9],b9);if(b6!==cb){b8.push(b7[b9])}}return b8},map:function(b6,cd,ce){var cb,cc,ca=[],b8=0,b7=b6.length,b9=b6 instanceof bL||b7!==P&&typeof b7==="number"&&((b7>0&&b6[0]&&b6[b7-1])||b7===0||bL.isArray(b6));if(b9){for(;b8<b7;b8++){cb=cd(b6[b8],b8,ce);if(cb!=null){ca[ca.length]=cb}}}else{for(cc in b6){cb=cd(b6[cc],cc,ce);if(cb!=null){ca[ca.length]=cb}}}return ca.concat.apply([],ca)},guid:1,proxy:function(ca,b9){if(typeof b9==="string"){var b8=ca[b9];b9=ca;ca=b8}if(!bL.isFunction(ca)){return P}var b6=bQ.call(arguments,2),b7=function(){return ca.apply(b9,b6.concat(bQ.call(arguments)))};b7.guid=ca.guid=ca.guid||b7.guid||bL.guid++;return b7},access:function(b6,ce,cc,b8,cb,cd){var b7=b6.length;if(typeof ce==="object"){for(var b9 in ce){bL.access(b6,b9,ce[b9],b8,cb,cc)}return b6}if(cc!==P){b8=!cd&&b8&&bL.isFunction(cc);for(var ca=0;ca<b7;ca++){cb(b6[ca],ce,b8?cc.call(b6[ca],ca,cb(b6[ca],ce)):cc,cd)}return b6}return b7?cb(b6[0],ce):P},now:function(){return(new Date()).getTime()},uaMatch:function(b7){b7=b7.toLowerCase();var b6=bE.exec(b7)||bX.exec(b7)||bW.exec(b7)||b7.indexOf("compatible")<0&&bY.exec(b7)||[];return{browser:b6[1]||"",version:b6[2]||"0"}},sub:function(){function b6(b9,ca){return new b6.fn.init(b9,ca)}bL.extend(true,b6,this);b6.superclass=this;b6.fn=b6.prototype=this();b6.fn.constructor=b6;b6.sub=this.sub;b6.fn.init=function b8(b9,ca){if(ca&&ca instanceof bL&&!(ca instanceof b6)){ca=b6(ca)}return bL.fn.init.call(this,b9,ca,b7)};b6.fn.init.prototype=b6.fn;var b7=b6(aB);return b6},browser:{}});bL.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b7,b6){bD["[object "+b6+"]"]=b6.toLowerCase()});b1=bL.uaMatch(b3);if(b1.browser){bL.browser[b1.browser]=true;bL.browser.version=b1.version}if(bL.browser.webkit){bL.browser.safari=true}if(bS.test("\xA0")){bO=/^[\s\xA0]+/;bK=/[\s\xA0]+$/}bJ=bL(aB);if(aB.addEventListener){e=function(){aB.removeEventListener("DOMContentLoaded",e,false);bL.ready()}}else{if(aB.attachEvent){e=function(){if(aB.readyState==="complete"){aB.detachEvent("onreadystatechange",e);bL.ready()}}}}function bC(){if(bL.isReady){return}try{aB.documentElement.doScroll("left")}catch(b6){setTimeout(bC,1);return}bL.ready()}return bL})();var a8={};function ab(e){var bB=a8[e]={},bC,bD;e=e.split(/\s+/);for(bC=0,bD=e.length;bC<bD;bC++){bB[e[bC]]=true}return bB}b.Callbacks=function(bC){bC=bC?(a8[bC]||ab(bC)):{};var bH=[],bI=[],bD,bE,bB,bF,bG,bK=function(bL){var bM,bP,bO,bN,bQ;for(bM=0,bP=bL.length;bM<bP;bM++){bO=bL[bM];bN=b.type(bO);if(bN==="array"){bK(bO)}else{if(bN==="function"){if(!bC.unique||!bJ.has(bO)){bH.push(bO)}}}}},e=function(bM,bL){bL=bL||[];bD=!bC.memory||[bM,bL];bE=true;bG=bB||0;bB=0;bF=bH.length;for(;bH&&bG<bF;bG++){if(bH[bG].apply(bM,bL)===false&&bC.stopOnFalse){bD=true;break}}bE=false;if(bH){if(!bC.once){if(bI&&bI.length){bD=bI.shift();bJ.fireWith(bD[0],bD[1])}}else{if(bD===true){bJ.disable()}else{bH=[]}}}},bJ={add:function(){if(bH){var bL=bH.length;bK(arguments);if(bE){bF=bH.length}else{if(bD&&bD!==true){bB=bL;e(bD[0],bD[1])}}}return this},remove:function(){if(bH){var bL=arguments,bN=0,bO=bL.length;for(;bN<bO;bN++){for(var bM=0;bM<bH.length;bM++){if(bL[bN]===bH[bM]){if(bE){if(bM<=bF){bF--;if(bM<=bG){bG--}}}bH.splice(bM--,1);if(bC.unique){break}}}}}return this},has:function(bM){if(bH){var bL=0,bN=bH.length;for(;bL<bN;bL++){if(bM===bH[bL]){return true}}}return false},empty:function(){bH=[];return this},disable:function(){bH=bI=bD=P;return this},disabled:function(){return !bH},lock:function(){bI=P;if(!bD||bD===true){bJ.disable()}return this},locked:function(){return !bI},fireWith:function(bM,bL){if(bI){if(bE){if(!bC.once){bI.push([bM,bL])}}else{if(!(bC.once&&bD)){e(bM,bL)}}}return this},fire:function(){bJ.fireWith(this,arguments);return this},fired:function(){return !!bD}};return bJ};var aP=[].slice;b.extend({Deferred:function(bE){var bD=b.Callbacks("once memory"),bC=b.Callbacks("once memory"),bB=b.Callbacks("memory"),e="pending",bG={resolve:bD,reject:bC,notify:bB},bI={done:bD.add,fail:bC.add,progress:bB.add,state:function(){return e},isResolved:bD.fired,isRejected:bC.fired,then:function(bK,bJ,bL){bH.done(bK).fail(bJ).progress(bL);return this},always:function(){bH.done.apply(bH,arguments).fail.apply(bH,arguments);return this},pipe:function(bL,bK,bJ){return b.Deferred(function(bM){b.each({done:[bL,"resolve"],fail:[bK,"reject"],progress:[bJ,"notify"]},function(bO,bR){var bN=bR[0],bQ=bR[1],bP;if(b.isFunction(bN)){bH[bO](function(){bP=bN.apply(this,arguments);if(bP&&b.isFunction(bP.promise)){bP.promise().then(bM.resolve,bM.reject,bM.notify)}else{bM[bQ+"With"](this===bH?bM:this,[bP])}})}else{bH[bO](bM[bQ])}})}).promise()},promise:function(bK){if(bK==null){bK=bI}else{for(var bJ in bI){bK[bJ]=bI[bJ]}}return bK}},bH=bI.promise({}),bF;for(bF in bG){bH[bF]=bG[bF].fire;bH[bF+"With"]=bG[bF].fireWith}bH.done(function(){e="resolved"},bC.disable,bB.lock).fail(function(){e="rejected"},bD.disable,bB.lock);if(bE){bE.call(bH,bH)}return bH},when:function(bG){var bD=aP.call(arguments,0),bB=0,e=bD.length,bH=new Array(e),bC=e,bE=e,bI=e<=1&&bG&&b.isFunction(bG.promise)?bG:b.Deferred(),bK=bI.promise();function bJ(bL){return function(bM){bD[bL]=arguments.length>1?aP.call(arguments,0):bM;if(!(--bC)){bI.resolveWith(bI,bD)}}}function bF(bL){return function(bM){bH[bL]=arguments.length>1?aP.call(arguments,0):bM;bI.notifyWith(bK,bH)}}if(e>1){for(;bB<e;bB++){if(bD[bB]&&bD[bB].promise&&b.isFunction(bD[bB].promise)){bD[bB].promise().then(bJ(bB),bI.reject,bF(bB))}else{--bC}}if(!bC){bI.resolveWith(bI,bD)}}else{if(bI!==bG){bI.resolveWith(bI,e?[bG]:[])}}return bK}});b.support=(function(){var bP,bO,bL,bM,bD,bK,bG,bJ,bF,bQ,bH,bE,bC,bB=aB.createElement("div"),bN=aB.documentElement;bB.setAttribute("className","t");bB.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bO=bB.getElementsByTagName("*");bL=bB.getElementsByTagName("a")[0];if(!bO||!bO.length||!bL){return{}}bM=aB.createElement("select");bD=bM.appendChild(aB.createElement("option"));bK=bB.getElementsByTagName("input")[0];bP={leadingWhitespace:(bB.firstChild.nodeType===3),tbody:!bB.getElementsByTagName("tbody").length,htmlSerialize:!!bB.getElementsByTagName("link").length,style:/top/.test(bL.getAttribute("style")),hrefNormalized:(bL.getAttribute("href")==="/a"),opacity:/^0.55/.test(bL.style.opacity),cssFloat:!!bL.style.cssFloat,checkOn:(bK.value==="on"),optSelected:bD.selected,getSetAttribute:bB.className!=="t",enctype:!!aB.createElement("form").enctype,html5Clone:aB.createElement("nav").cloneNode(true).outerHTML!=="<:nav></:nav>",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bK.checked=true;bP.noCloneChecked=bK.cloneNode(true).checked;bM.disabled=true;bP.optDisabled=!bD.disabled;try{delete bB.test}catch(bI){bP.deleteExpando=false}if(!bB.addEventListener&&bB.attachEvent&&bB.fireEvent){bB.attachEvent("onclick",function(){bP.noCloneEvent=false});bB.cloneNode(true).fireEvent("onclick")}bK=aB.createElement("input");bK.value="t";bK.setAttribute("type","radio");bP.radioValue=bK.value==="t";bK.setAttribute("checked","checked");bB.appendChild(bK);bJ=aB.createDocumentFragment();bJ.appendChild(bB.lastChild);bP.checkClone=bJ.cloneNode(true).cloneNode(true).lastChild.checked;bP.appendChecked=bK.checked;bJ.removeChild(bK);bJ.appendChild(bB);bB.innerHTML="";if(bh.getComputedStyle){bG=aB.createElement("div");bG.style.width="0";bG.style.marginRight="0";bB.style.width="2px";bB.appendChild(bG);bP.reliableMarginRight=(parseInt((bh.getComputedStyle(bG,null)||{marginRight:0}).marginRight,10)||0)===0}if(bB.attachEvent){for(bE in {submit:1,change:1,focusin:1}){bH="on"+bE;bC=(bH in bB);if(!bC){bB.setAttribute(bH,"return;");bC=(typeof bB[bH]==="function")}bP[bE+"Bubbles"]=bC}}bJ.removeChild(bB);bJ=bM=bD=bG=bB=bK=null;b(function(){var bS,b0,b1,bZ,bT,bU,bR,bY,bX,e,bV,bW=aB.getElementsByTagName("body")[0];if(!bW){return}bR=1;bY="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;";bX="visibility:hidden;border:0;";e="style='"+bY+"border:5px solid #000;padding:0;'";bV="<div "+e+"><div></div></div><table "+e+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";bS=aB.createElement("div");bS.style.cssText=bX+"width:0;height:0;position:static;top:0;margin-top:"+bR+"px";bW.insertBefore(bS,bW.firstChild);bB=aB.createElement("div");bS.appendChild(bB);bB.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bF=bB.getElementsByTagName("td");bC=(bF[0].offsetHeight===0);bF[0].style.display="";bF[1].style.display="none";bP.reliableHiddenOffsets=bC&&(bF[0].offsetHeight===0);bB.innerHTML="";bB.style.width=bB.style.paddingLeft="1px";b.boxModel=bP.boxModel=bB.offsetWidth===2;if(typeof bB.style.zoom!=="undefined"){bB.style.display="inline";bB.style.zoom=1;bP.inlineBlockNeedsLayout=(bB.offsetWidth===2);bB.style.display="";bB.innerHTML="<div style='width:4px;'></div>";bP.shrinkWrapBlocks=(bB.offsetWidth!==2)}bB.style.cssText=bY+bX;bB.innerHTML=bV;b0=bB.firstChild;b1=b0.firstChild;bT=b0.nextSibling.firstChild.firstChild;bU={doesNotAddBorder:(b1.offsetTop!==5),doesAddBorderForTableAndCells:(bT.offsetTop===5)};b1.style.position="fixed";b1.style.top="20px";bU.fixedPosition=(b1.offsetTop===20||b1.offsetTop===15);b1.style.position=b1.style.top="";b0.style.overflow="hidden";b0.style.position="relative";bU.subtractsBorderForOverflowNotVisible=(b1.offsetTop===-5);bU.doesNotIncludeMarginInBodyOffset=(bW.offsetTop!==bR);bW.removeChild(bS);bB=bS=null;b.extend(bP,bU)});return bP})();var aY=/^(?:\{.*\}|\[.*\])$/,aG=/([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(bD,bB,bF,bE){if(!b.acceptData(bD)){return}var bM,bG,bJ,bK=b.expando,bI=typeof bB==="string",bL=bD.nodeType,e=bL?b.cache:bD,bC=bL?bD[bK]:bD[bK]&&bK,bH=bB==="events";if((!bC||!e[bC]||(!bH&&!bE&&!e[bC].data))&&bI&&bF===P){return}if(!bC){if(bL){bD[bK]=bC=++b.uuid}else{bC=bK}}if(!e[bC]){e[bC]={};if(!bL){e[bC].toJSON=b.noop}}if(typeof bB==="object"||typeof bB==="function"){if(bE){e[bC]=b.extend(e[bC],bB)}else{e[bC].data=b.extend(e[bC].data,bB)}}bM=bG=e[bC];if(!bE){if(!bG.data){bG.data={}}bG=bG.data}if(bF!==P){bG[b.camelCase(bB)]=bF}if(bH&&!bG[bB]){return bM.events}if(bI){bJ=bG[bB];if(bJ==null){bJ=bG[b.camelCase(bB)]}}else{bJ=bG}return bJ},removeData:function(bD,bB,bE){if(!b.acceptData(bD)){return}var bH,bG,bF,bI=b.expando,bJ=bD.nodeType,e=bJ?b.cache:bD,bC=bJ?bD[bI]:bI;if(!e[bC]){return}if(bB){bH=bE?e[bC]:e[bC].data;if(bH){if(!b.isArray(bB)){if(bB in bH){bB=[bB]}else{bB=b.camelCase(bB);if(bB in bH){bB=[bB]}else{bB=bB.split(" ")}}}for(bG=0,bF=bB.length;bG<bF;bG++){delete bH[bB[bG]]}if(!(bE?W:b.isEmptyObject)(bH)){return}}}if(!bE){delete e[bC].data;if(!W(e[bC])){return}}if(b.support.deleteExpando||!e.setInterval){delete e[bC]}else{e[bC]=null}if(bJ){if(b.support.deleteExpando){delete bD[bI]}else{if(bD.removeAttribute){bD.removeAttribute(bI)}else{bD[bI]=null}}}},_data:function(bB,e,bC){return b.data(bB,e,bC,true)},acceptData:function(bB){if(bB.nodeName){var e=b.noData[bB.nodeName.toLowerCase()];if(e){return !(e===true||bB.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(bE,bG){var bH,e,bC,bF=null;if(typeof bE==="undefined"){if(this.length){bF=b.data(this[0]);if(this[0].nodeType===1&&!b._data(this[0],"parsedAttrs")){e=this[0].attributes;for(var bD=0,bB=e.length;bD<bB;bD++){bC=e[bD].name;if(bC.indexOf("data-")===0){bC=b.camelCase(bC.substring(5));bb(this[0],bC,bF[bC])}}b._data(this[0],"parsedAttrs",true)}}return bF}else{if(typeof bE==="object"){return this.each(function(){b.data(this,bE)})}}bH=bE.split(".");bH[1]=bH[1]?"."+bH[1]:"";if(bG===P){bF=this.triggerHandler("getData"+bH[1]+"!",[bH[0]]);if(bF===P&&this.length){bF=b.data(this[0],bE);bF=bb(this[0],bE,bF)}return bF===P&&bH[1]?this.data(bH[0]):bF}else{return this.each(function(){var bI=b(this),bJ=[bH[0],bG];bI.triggerHandler("setData"+bH[1]+"!",bJ);b.data(this,bE,bG);bI.triggerHandler("changeData"+bH[1]+"!",bJ)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function bb(bD,bC,bE){if(bE===P&&bD.nodeType===1){var bB="data-"+bC.replace(aG,"-$1").toLowerCase();bE=bD.getAttribute(bB);if(typeof bE==="string"){try{bE=bE==="true"?true:bE==="false"?false:bE==="null"?null:b.isNumeric(bE)?parseFloat(bE):aY.test(bE)?b.parseJSON(bE):bE}catch(bF){}b.data(bD,bC,bE)}else{bE=P}}return bE}function W(bB){for(var e in bB){if(e==="data"&&b.isEmptyObject(bB[e])){continue}if(e!=="toJSON"){return false}}return true}function bo(bE,bD,bG){var bC=bD+"defer",bB=bD+"queue",e=bD+"mark",bF=b._data(bE,bC);if(bF&&(bG==="queue"||!b._data(bE,bB))&&(bG==="mark"||!b._data(bE,e))){setTimeout(function(){if(!b._data(bE,bB)&&!b._data(bE,e)){b.removeData(bE,bC,true);bF.fire()}},0)}}b.extend({_mark:function(bB,e){if(bB){e=(e||"fx")+"mark";b._data(bB,e,(b._data(bB,e)||0)+1)}},_unmark:function(bE,bD,bB){if(bE!==true){bB=bD;bD=bE;bE=false}if(bD){bB=bB||"fx";var e=bB+"mark",bC=bE?0:((b._data(bD,e)||1)-1);if(bC){b._data(bD,e,bC)}else{b.removeData(bD,e,true);bo(bD,bB,"mark")}}},queue:function(bB,e,bD){var bC;if(bB){e=(e||"fx")+"queue";bC=b._data(bB,e);if(bD){if(!bC||b.isArray(bD)){bC=b._data(bB,e,b.makeArray(bD))}else{bC.push(bD)}}return bC||[]}},dequeue:function(bE,bD){bD=bD||"fx";var bB=b.queue(bE,bD),bC=bB.shift(),e={};if(bC==="inprogress"){bC=bB.shift()}if(bC){if(bD==="fx"){bB.unshift("inprogress")}b._data(bE,bD+".run",e);bC.call(bE,function(){b.dequeue(bE,bD)},e)}if(!bB.length){b.removeData(bE,bD+"queue "+bD+".run",true);bo(bE,bD,"queue")}}});b.fn.extend({queue:function(e,bB){if(typeof e!=="string"){bB=e;e="fx"}if(bB===P){return b.queue(this[0],e)}return this.each(function(){var bC=b.queue(this,e,bB);if(e==="fx"&&bC[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bB,e){bB=b.fx?b.fx.speeds[bB]||bB:bB;e=e||"fx";return this.queue(e,function(bD,bC){var bE=setTimeout(bD,bB);bC.stop=function(){clearTimeout(bE)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bJ,bC){if(typeof bJ!=="string"){bC=bJ;bJ=P}bJ=bJ||"fx";var e=b.Deferred(),bB=this,bE=bB.length,bH=1,bF=bJ+"defer",bG=bJ+"queue",bI=bJ+"mark",bD;function bK(){if(!(--bH)){e.resolveWith(bB,[bB])}}while(bE--){if((bD=b.data(bB[bE],bF,P,true)||(b.data(bB[bE],bG,P,true)||b.data(bB[bE],bI,P,true))&&b.data(bB[bE],bF,b.Callbacks("once memory"),true))){bH++;bD.add(bK)}}bK();return e.promise()}});var aV=/[\n\t\r]/g,ak=/\s+/,a0=/\r/g,h=/^(?:button|input)$/i,H=/^(?:button|input|object|select|textarea)$/i,n=/^a(?:rea)?$/i,av=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,J=b.support.getSetAttribute,bk,a4,aL;b.fn.extend({attr:function(e,bB){return b.access(this,e,bB,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bB){return b.access(this,e,bB,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=P;delete this[e]}catch(bB){}})},addClass:function(bE){var bG,bC,bB,bD,bF,bH,e;if(b.isFunction(bE)){return this.each(function(bI){b(this).addClass(bE.call(this,bI,this.className))})}if(bE&&typeof bE==="string"){bG=bE.split(ak);for(bC=0,bB=this.length;bC<bB;bC++){bD=this[bC];if(bD.nodeType===1){if(!bD.className&&bG.length===1){bD.className=bE}else{bF=" "+bD.className+" ";for(bH=0,e=bG.length;bH<e;bH++){if(!~bF.indexOf(" "+bG[bH]+" ")){bF+=bG[bH]+" "}}bD.className=b.trim(bF)}}}}return this},removeClass:function(bF){var bG,bC,bB,bE,bD,bH,e;if(b.isFunction(bF)){return this.each(function(bI){b(this).removeClass(bF.call(this,bI,this.className))})}if((bF&&typeof bF==="string")||bF===P){bG=(bF||"").split(ak);for(bC=0,bB=this.length;bC<bB;bC++){bE=this[bC];if(bE.nodeType===1&&bE.className){if(bF){bD=(" "+bE.className+" ").replace(aV," ");for(bH=0,e=bG.length;bH<e;bH++){bD=bD.replace(" "+bG[bH]+" "," ")}bE.className=b.trim(bD)}else{bE.className=""}}}}return this},toggleClass:function(bD,bB){var bC=typeof bD,e=typeof bB==="boolean";if(b.isFunction(bD)){return this.each(function(bE){b(this).toggleClass(bD.call(this,bE,this.className,bB),bB)})}return this.each(function(){if(bC==="string"){var bG,bF=0,bE=b(this),bH=bB,bI=bD.split(ak);while((bG=bI[bF++])){bH=e?bH:!bE.hasClass(bG);bE[bH?"addClass":"removeClass"](bG)}}else{if(bC==="undefined"||bC==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||bD===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var bD=" "+e+" ",bC=0,bB=this.length;for(;bC<bB;bC++){if(this[bC].nodeType===1&&(" "+this[bC].className+" ").replace(aV," ").indexOf(bD)>-1){return true}}return false},val:function(bD){var e,bB,bE,bC=this[0];if(!arguments.length){if(bC){e=b.valHooks[bC.nodeName.toLowerCase()]||b.valHooks[bC.type];if(e&&"get" in e&&(bB=e.get(bC,"value"))!==P){return bB}bB=bC.value;return typeof bB==="string"?bB.replace(a0,""):bB==null?"":bB}return}bE=b.isFunction(bD);return this.each(function(bG){var bF=b(this),bH;if(this.nodeType!==1){return}if(bE){bH=bD.call(this,bG,bF.val())}else{bH=bD}if(bH==null){bH=""}else{if(typeof bH==="number"){bH+=""}else{if(b.isArray(bH)){bH=b.map(bH,function(bI){return bI==null?"":bI+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bH,"value")===P){this.value=bH}})}});b.extend({valHooks:{option:{get:function(e){var bB=e.attributes.value;return !bB||bB.specified?e.value:e.text}},select:{get:function(e){var bG,bB,bF,bD,bE=e.selectedIndex,bH=[],bI=e.options,bC=e.type==="select-one";if(bE<0){return null}bB=bC?bE:0;bF=bC?bE+1:bI.length;for(;bB<bF;bB++){bD=bI[bB];if(bD.selected&&(b.support.optDisabled?!bD.disabled:bD.getAttribute("disabled")===null)&&(!bD.parentNode.disabled||!b.nodeName(bD.parentNode,"optgroup"))){bG=b(bD).val();if(bC){return bG}bH.push(bG)}}if(bC&&!bH.length&&bI.length){return b(bI[bE]).val()}return bH},set:function(bB,bC){var e=b.makeArray(bC);b(bB).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bB.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bG,bD,bH,bF){var bC,e,bE,bB=bG.nodeType;if(!bG||bB===3||bB===8||bB===2){return}if(bF&&bD in b.attrFn){return b(bG)[bD](bH)}if(typeof bG.getAttribute==="undefined"){return b.prop(bG,bD,bH)}bE=bB!==1||!b.isXMLDoc(bG);if(bE){bD=bD.toLowerCase();e=b.attrHooks[bD]||(av.test(bD)?a4:bk)}if(bH!==P){if(bH===null){b.removeAttr(bG,bD);return}else{if(e&&"set" in e&&bE&&(bC=e.set(bG,bH,bD))!==P){return bC}else{bG.setAttribute(bD,""+bH);return bH}}}else{if(e&&"get" in e&&bE&&(bC=e.get(bG,bD))!==null){return bC}else{bC=bG.getAttribute(bD);return bC===null?P:bC}}},removeAttr:function(bD,bF){var bE,bG,bB,e,bC=0;if(bF&&bD.nodeType===1){bG=bF.toLowerCase().split(ak);e=bG.length;for(;bC<e;bC++){bB=bG[bC];if(bB){bE=b.propFix[bB]||bB;b.attr(bD,bB,"");bD.removeAttribute(J?bB:bE);if(av.test(bB)&&bE in bD){bD[bE]=false}}}}},attrHooks:{type:{set:function(e,bB){if(h.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bB==="radio"&&b.nodeName(e,"input")){var bC=e.value;e.setAttribute("type",bB);if(bC){e.value=bC}return bB}}}},value:{get:function(bB,e){if(bk&&b.nodeName(bB,"button")){return bk.get(bB,e)}return e in bB?bB.value:null},set:function(bB,bC,e){if(bk&&b.nodeName(bB,"button")){return bk.set(bB,bC,e)}bB.value=bC}}},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(bF,bD,bG){var bC,e,bE,bB=bF.nodeType;if(!bF||bB===3||bB===8||bB===2){return}bE=bB!==1||!b.isXMLDoc(bF);if(bE){bD=b.propFix[bD]||bD;e=b.propHooks[bD]}if(bG!==P){if(e&&"set" in e&&(bC=e.set(bF,bG,bD))!==P){return bC}else{return(bF[bD]=bG)}}else{if(e&&"get" in e&&(bC=e.get(bF,bD))!==null){return bC}else{return bF[bD]}}},propHooks:{tabIndex:{get:function(bB){var e=bB.getAttributeNode("tabindex");return e&&e.specified?parseInt(e.value,10):H.test(bB.nodeName)||n.test(bB.nodeName)&&bB.href?0:P}}}});b.attrHooks.tabindex=b.propHooks.tabIndex;a4={get:function(bB,e){var bD,bC=b.prop(bB,e);return bC===true||typeof bC!=="boolean"&&(bD=bB.getAttributeNode(e))&&bD.nodeValue!==false?e.toLowerCase():P},set:function(bB,bD,e){var bC;if(bD===false){b.removeAttr(bB,e)}else{bC=b.propFix[e]||e;if(bC in bB){bB[bC]=true}bB.setAttribute(e,e.toLowerCase())}return e}};if(!J){aL={name:true,id:true};bk=b.valHooks.button={get:function(bC,bB){var e;e=bC.getAttributeNode(bB);return e&&(aL[bB]?e.nodeValue!=="":e.specified)?e.nodeValue:P},set:function(bC,bD,bB){var e=bC.getAttributeNode(bB);if(!e){e=aB.createAttribute(bB);bC.setAttributeNode(e)}return(e.nodeValue=bD+"")}};b.attrHooks.tabindex.set=bk.set;b.each(["width","height"],function(bB,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bC,bD){if(bD===""){bC.setAttribute(e,"auto");return bD}}})});b.attrHooks.contenteditable={get:bk.get,set:function(bB,bC,e){if(bC===""){bC="false"}bk.set(bB,bC,e)}}}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bB,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(bD){var bC=bD.getAttribute(e,2);return bC===null?P:bC}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||P},set:function(e,bB){return(e.style.cssText=""+bB)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bB){var e=bB.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,bB){if(b.isArray(bB)){return(e.checked=b.inArray(b(e).val(),bB)>=0)}}})});var bj=/^(?:textarea|input|select)$/i,p=/^([^\.]*)?(?:\.(.+))?$/,N=/\bhover(\.\S+)?\b/,aU=/^key/,bl=/^(?:mouse|contextmenu)|click/,X=/^(?:focusinfocus|focusoutblur)$/,Y=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,ad=function(e){var bB=Y.exec(e);if(bB){bB[1]=(bB[1]||"").toLowerCase();bB[3]=bB[3]&&new RegExp("(?:^|\\s)"+bB[3]+"(?:\\s|$)")}return bB},l=function(bC,e){var bB=bC.attributes||{};return((!e[1]||bC.nodeName.toLowerCase()===e[1])&&(!e[2]||(bB.id||{}).value===e[2])&&(!e[3]||e[3].test((bB["class"]||{}).value)))},bz=function(e){return b.event.special.hover?e:e.replace(N,"mouseenter$1 mouseleave$1")};b.event={add:function(bD,bI,bP,bG,bE){var bJ,bH,bQ,bO,bN,bL,e,bM,bB,bF,bC,bK;if(bD.nodeType===3||bD.nodeType===8||!bI||!bP||!(bJ=b._data(bD))){return}if(bP.handler){bB=bP;bP=bB.handler}if(!bP.guid){bP.guid=b.guid++}bQ=bJ.events;if(!bQ){bJ.events=bQ={}}bH=bJ.handle;if(!bH){bJ.handle=bH=function(bR){return typeof b!=="undefined"&&(!bR||b.event.triggered!==bR.type)?b.event.dispatch.apply(bH.elem,arguments):P};bH.elem=bD}bI=b.trim(bz(bI)).split(" ");for(bO=0;bO<bI.length;bO++){bN=p.exec(bI[bO])||[];bL=bN[1];e=(bN[2]||"").split(".").sort();bK=b.event.special[bL]||{};bL=(bE?bK.delegateType:bK.bindType)||bL;bK=b.event.special[bL]||{};bM=b.extend({type:bL,origType:bN[1],data:bG,handler:bP,guid:bP.guid,selector:bE,quick:ad(bE),namespace:e.join(".")},bB);bC=bQ[bL];if(!bC){bC=bQ[bL]=[];bC.delegateCount=0;if(!bK.setup||bK.setup.call(bD,bG,e,bH)===false){if(bD.addEventListener){bD.addEventListener(bL,bH,false)}else{if(bD.attachEvent){bD.attachEvent("on"+bL,bH)}}}}if(bK.add){bK.add.call(bD,bM);if(!bM.handler.guid){bM.handler.guid=bP.guid}}if(bE){bC.splice(bC.delegateCount++,0,bM)}else{bC.push(bM)}b.event.global[bL]=true}bD=null},global:{},remove:function(bP,bK,bB,bN,bH){var bO=b.hasData(bP)&&b._data(bP),bL,bD,bF,bR,bI,bG,bM,bC,bE,bQ,bJ,e;if(!bO||!(bC=bO.events)){return}bK=b.trim(bz(bK||"")).split(" ");for(bL=0;bL<bK.length;bL++){bD=p.exec(bK[bL])||[];bF=bR=bD[1];bI=bD[2];if(!bF){for(bF in bC){b.event.remove(bP,bF+bK[bL],bB,bN,true)}continue}bE=b.event.special[bF]||{};bF=(bN?bE.delegateType:bE.bindType)||bF;bJ=bC[bF]||[];bG=bJ.length;bI=bI?new RegExp("(^|\\.)"+bI.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null;for(bM=0;bM<bJ.length;bM++){e=bJ[bM];if((bH||bR===e.origType)&&(!bB||bB.guid===e.guid)&&(!bI||bI.test(e.namespace))&&(!bN||bN===e.selector||bN==="**"&&e.selector)){bJ.splice(bM--,1);if(e.selector){bJ.delegateCount--}if(bE.remove){bE.remove.call(bP,e)}}}if(bJ.length===0&&bG!==bJ.length){if(!bE.teardown||bE.teardown.call(bP,bI)===false){b.removeEvent(bP,bF,bO.handle)}delete bC[bF]}}if(b.isEmptyObject(bC)){bQ=bO.handle;if(bQ){bQ.elem=null}b.removeData(bP,["events","handle"],true)}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(bB,bJ,bG,bP){if(bG&&(bG.nodeType===3||bG.nodeType===8)){return}var bM=bB.type||bB,bD=[],e,bC,bI,bN,bF,bE,bL,bK,bH,bO;if(X.test(bM+b.event.triggered)){return}if(bM.indexOf("!")>=0){bM=bM.slice(0,-1);bC=true}if(bM.indexOf(".")>=0){bD=bM.split(".");bM=bD.shift();bD.sort()}if((!bG||b.event.customEvent[bM])&&!b.event.global[bM]){return}bB=typeof bB==="object"?bB[b.expando]?bB:new b.Event(bM,bB):new b.Event(bM);bB.type=bM;bB.isTrigger=true;bB.exclusive=bC;bB.namespace=bD.join(".");bB.namespace_re=bB.namespace?new RegExp("(^|\\.)"+bD.join("\\.(?:.*\\.)?")+"(\\.|$)"):null;bE=bM.indexOf(":")<0?"on"+bM:"";if(!bG){e=b.cache;for(bI in e){if(e[bI].events&&e[bI].events[bM]){b.event.trigger(bB,bJ,e[bI].handle.elem,true)}}return}bB.result=P;if(!bB.target){bB.target=bG}bJ=bJ!=null?b.makeArray(bJ):[];bJ.unshift(bB);bL=b.event.special[bM]||{};if(bL.trigger&&bL.trigger.apply(bG,bJ)===false){return}bH=[[bG,bL.bindType||bM]];if(!bP&&!bL.noBubble&&!b.isWindow(bG)){bO=bL.delegateType||bM;bN=X.test(bO+bM)?bG:bG.parentNode;bF=null;for(;bN;bN=bN.parentNode){bH.push([bN,bO]);bF=bN}if(bF&&bF===bG.ownerDocument){bH.push([bF.defaultView||bF.parentWindow||bh,bO])}}for(bI=0;bI<bH.length&&!bB.isPropagationStopped();bI++){bN=bH[bI][0];bB.type=bH[bI][1];bK=(b._data(bN,"events")||{})[bB.type]&&b._data(bN,"handle");if(bK){bK.apply(bN,bJ)}bK=bE&&bN[bE];if(bK&&b.acceptData(bN)&&bK.apply(bN,bJ)===false){bB.preventDefault()}}bB.type=bM;if(!bP&&!bB.isDefaultPrevented()){if((!bL._default||bL._default.apply(bG.ownerDocument,bJ)===false)&&!(bM==="click"&&b.nodeName(bG,"a"))&&b.acceptData(bG)){if(bE&&bG[bM]&&((bM!=="focus"&&bM!=="blur")||bB.target.offsetWidth!==0)&&!b.isWindow(bG)){bF=bG[bE];if(bF){bG[bE]=null}b.event.triggered=bM;bG[bM]();b.event.triggered=P;if(bF){bG[bE]=bF}}}}return bB.result},dispatch:function(e){e=b.event.fix(e||bh.event);var bF=((b._data(this,"events")||{})[e.type]||[]),bG=bF.delegateCount,bM=[].slice.call(arguments,0),bE=!e.exclusive&&!e.namespace,bN=[],bI,bH,bQ,bD,bL,bK,bB,bJ,bO,bC,bP;bM[0]=e;e.delegateTarget=this;if(bG&&!e.target.disabled&&!(e.button&&e.type==="click")){bD=b(this);bD.context=this.ownerDocument||this;for(bQ=e.target;bQ!=this;bQ=bQ.parentNode||this){bK={};bJ=[];bD[0]=bQ;for(bI=0;bI<bG;bI++){bO=bF[bI];bC=bO.selector;if(bK[bC]===P){bK[bC]=(bO.quick?l(bQ,bO.quick):bD.is(bC))}if(bK[bC]){bJ.push(bO)}}if(bJ.length){bN.push({elem:bQ,matches:bJ})}}}if(bF.length>bG){bN.push({elem:this,matches:bF.slice(bG)})}for(bI=0;bI<bN.length&&!e.isPropagationStopped();bI++){bB=bN[bI];e.currentTarget=bB.elem;for(bH=0;bH<bB.matches.length&&!e.isImmediatePropagationStopped();bH++){bO=bB.matches[bH];if(bE||(!e.namespace&&!bO.namespace)||e.namespace_re&&e.namespace_re.test(bO.namespace)){e.data=bO.data;e.handleObj=bO;bL=((b.event.special[bO.origType]||{}).handle||bO.handler).apply(bB.elem,bM);if(bL!==P){e.result=bL;if(bL===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(bB,e){if(bB.which==null){bB.which=e.charCode!=null?e.charCode:e.keyCode}return bB}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(bD,bC){var bE,bF,e,bB=bC.button,bG=bC.fromElement;if(bD.pageX==null&&bC.clientX!=null){bE=bD.target.ownerDocument||aB;bF=bE.documentElement;e=bE.body;bD.pageX=bC.clientX+(bF&&bF.scrollLeft||e&&e.scrollLeft||0)-(bF&&bF.clientLeft||e&&e.clientLeft||0);bD.pageY=bC.clientY+(bF&&bF.scrollTop||e&&e.scrollTop||0)-(bF&&bF.clientTop||e&&e.clientTop||0)}if(!bD.relatedTarget&&bG){bD.relatedTarget=bG===bD.target?bC.toElement:bG}if(!bD.which&&bB!==P){bD.which=(bB&1?1:(bB&2?3:(bB&4?2:0)))}return bD}},fix:function(bC){if(bC[b.expando]){return bC}var bB,bF,e=bC,bD=b.event.fixHooks[bC.type]||{},bE=bD.props?this.props.concat(bD.props):this.props;bC=b.Event(e);for(bB=bE.length;bB;){bF=bE[--bB];bC[bF]=e[bF]}if(!bC.target){bC.target=e.srcElement||aB}if(bC.target.nodeType===3){bC.target=bC.target.parentNode}if(bC.metaKey===P){bC.metaKey=bC.ctrlKey}return bD.filter?bD.filter(bC,e):bC},special:{ready:{setup:b.bindReady},load:{noBubble:true},focus:{delegateType:"focusin"},blur:{delegateType:"focusout"},beforeunload:{setup:function(bC,bB,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bB,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}},simulate:function(bC,bE,bD,bB){var bF=b.extend(new b.Event(),bD,{type:bC,isSimulated:true,originalEvent:{}});if(bB){b.event.trigger(bF,null,bE)}else{b.event.dispatch.call(bE,bF)}if(bF.isDefaultPrevented()){bD.preventDefault()}}};b.event.handle=b.event.dispatch;b.removeEvent=aB.removeEventListener?function(bB,e,bC){if(bB.removeEventListener){bB.removeEventListener(e,bC,false)}}:function(bB,e,bC){if(bB.detachEvent){bB.detachEvent("on"+e,bC)}};b.Event=function(bB,e){if(!(this instanceof b.Event)){return new b.Event(bB,e)}if(bB&&bB.type){this.originalEvent=bB;this.type=bB.type;this.isDefaultPrevented=(bB.defaultPrevented||bB.returnValue===false||bB.getPreventDefault&&bB.getPreventDefault())?k:bq}else{this.type=bB}if(e){b.extend(this,e)}this.timeStamp=bB&&bB.timeStamp||b.now();this[b.expando]=true};function bq(){return false}function k(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=k;var bB=this.originalEvent;if(!bB){return}if(bB.preventDefault){bB.preventDefault()}else{bB.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=k;var bB=this.originalEvent;if(!bB){return}if(bB.stopPropagation){bB.stopPropagation()}bB.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=k;this.stopPropagation()},isDefaultPrevented:bq,isPropagationStopped:bq,isImmediatePropagationStopped:bq};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bB,e){b.event.special[bB]={delegateType:e,bindType:e,handle:function(bF){var bH=this,bG=bF.relatedTarget,bE=bF.handleObj,bC=bE.selector,bD;if(!bG||(bG!==bH&&!b.contains(bH,bG))){bF.type=bE.origType;bD=bE.handler.apply(this,arguments);bF.type=e}return bD}}});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(bD){var bC=bD.target,bB=b.nodeName(bC,"input")||b.nodeName(bC,"button")?bC.form:P;if(bB&&!bB._submit_attached){b.event.add(bB,"submit._submit",function(e){if(this.parentNode&&!e.isTrigger){b.event.simulate("submit",this.parentNode,e,true)}});bB._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(bj.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(bC){var bB=bC.target;if(bj.test(bB.nodeName)&&!bB._change_attached){b.event.add(bB,"change._change",function(e){if(this.parentNode&&!e.isSimulated&&!e.isTrigger){b.event.simulate("change",this.parentNode,e,true)}});bB._change_attached=true}})},handle:function(bB){var e=bB.target;if(this!==e||bB.isSimulated||bB.isTrigger||(e.type!=="radio"&&e.type!=="checkbox")){return bB.handleObj.handler.apply(this,arguments)}},teardown:function(){b.event.remove(this,"._change");return bj.test(this.nodeName)}}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(bD,e){var bB=0,bC=function(bE){b.event.simulate(e,bE.target,b.event.fix(bE),true)};b.event.special[e]={setup:function(){if(bB++===0){aB.addEventListener(bD,bC,true)}},teardown:function(){if(--bB===0){aB.removeEventListener(bD,bC,true)}}}})}b.fn.extend({on:function(bC,e,bF,bE,bB){var bG,bD;if(typeof bC==="object"){if(typeof e!=="string"){bF=e;e=P}for(bD in bC){this.on(bD,e,bF,bC[bD],bB)}return this}if(bF==null&&bE==null){bE=e;bF=e=P}else{if(bE==null){if(typeof e==="string"){bE=bF;bF=P}else{bE=bF;bF=e;e=P}}}if(bE===false){bE=bq}else{if(!bE){return this}}if(bB===1){bG=bE;bE=function(bH){b().off(bH);return bG.apply(this,arguments)};bE.guid=bG.guid||(bG.guid=b.guid++)}return this.each(function(){b.event.add(this,bC,bE,bF,e)})},one:function(bB,e,bD,bC){return this.on.call(this,bB,e,bD,bC,1)},off:function(bC,e,bE){if(bC&&bC.preventDefault&&bC.handleObj){var bB=bC.handleObj;b(bC.delegateTarget).off(bB.namespace?bB.type+"."+bB.namespace:bB.type,bB.selector,bB.handler);return this}if(typeof bC==="object"){for(var bD in bC){this.off(bD,e,bC[bD])}return this}if(e===false||typeof e==="function"){bE=e;e=P}if(bE===false){bE=bq}return this.each(function(){b.event.remove(this,bC,bE,e)})},bind:function(e,bC,bB){return this.on(e,null,bC,bB)},unbind:function(e,bB){return this.off(e,null,bB)},live:function(e,bC,bB){b(this.context).on(e,this.selector,bC,bB);return this},die:function(e,bB){b(this.context).off(e,this.selector||"**",bB);return this},delegate:function(e,bB,bD,bC){return this.on(bB,e,bD,bC)},undelegate:function(e,bB,bC){return arguments.length==1?this.off(e,"**"):this.off(bB,e,bC)},trigger:function(e,bB){return this.each(function(){b.event.trigger(e,bB,this)})},triggerHandler:function(e,bB){if(this[0]){return b.event.trigger(e,bB,this[0],true)}},toggle:function(bD){var bB=arguments,e=bD.guid||b.guid++,bC=0,bE=function(bF){var bG=(b._data(this,"lastToggle"+bD.guid)||0)%bC;b._data(this,"lastToggle"+bD.guid,bG+1);bF.preventDefault();return bB[bG].apply(this,arguments)||false};bE.guid=e;while(bC<bB.length){bB[bC++].guid=e}return this.click(bE)},hover:function(e,bB){return this.mouseenter(e).mouseleave(bB||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(bB,e){b.fn[e]=function(bD,bC){if(bC==null){bC=bD;bD=null}return arguments.length>0?this.on(e,null,bD,bC):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}if(aU.test(e)){b.event.fixHooks[e]=b.event.keyHooks}if(bl.test(e)){b.event.fixHooks[e]=b.event.mouseHooks}});(function(){var bN=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bI="sizcache"+(Math.random()+"").replace(".",""),bO=0,bR=Object.prototype.toString,bH=false,bG=true,bQ=/\\/g,bU=/\r\n/g,bW=/\W/;[0,0].sort(function(){bG=false;return 0});var bE=function(b1,e,b4,b5){b4=b4||[];e=e||aB;var b7=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!b1||typeof b1!=="string"){return b4}var bY,b9,cc,bX,b8,cb,ca,b3,b0=true,bZ=bE.isXML(e),b2=[],b6=b1;do{bN.exec("");bY=bN.exec(b6);if(bY){b6=bY[3];b2.push(bY[1]);if(bY[2]){bX=bY[3];break}}}while(bY);if(b2.length>1&&bJ.exec(b1)){if(b2.length===2&&bK.relative[b2[0]]){b9=bS(b2[0]+b2[1],e,b5)}else{b9=bK.relative[b2[0]]?[e]:bE(b2.shift(),e);while(b2.length){b1=b2.shift();if(bK.relative[b1]){b1+=b2.shift()}b9=bS(b1,b9,b5)}}}else{if(!b5&&b2.length>1&&e.nodeType===9&&!bZ&&bK.match.ID.test(b2[0])&&!bK.match.ID.test(b2[b2.length-1])){b8=bE.find(b2.shift(),e,bZ);e=b8.expr?bE.filter(b8.expr,b8.set)[0]:b8.set[0]}if(e){b8=b5?{expr:b2.pop(),set:bL(b5)}:bE.find(b2.pop(),b2.length===1&&(b2[0]==="~"||b2[0]==="+")&&e.parentNode?e.parentNode:e,bZ);b9=b8.expr?bE.filter(b8.expr,b8.set):b8.set;if(b2.length>0){cc=bL(b9)}else{b0=false}while(b2.length){cb=b2.pop();ca=cb;if(!bK.relative[cb]){cb=""}else{ca=b2.pop()}if(ca==null){ca=e}bK.relative[cb](cc,ca,bZ)}}else{cc=b2=[]}}if(!cc){cc=b9}if(!cc){bE.error(cb||b1)}if(bR.call(cc)==="[object Array]"){if(!b0){b4.push.apply(b4,cc)}else{if(e&&e.nodeType===1){for(b3=0;cc[b3]!=null;b3++){if(cc[b3]&&(cc[b3]===true||cc[b3].nodeType===1&&bE.contains(e,cc[b3]))){b4.push(b9[b3])}}}else{for(b3=0;cc[b3]!=null;b3++){if(cc[b3]&&cc[b3].nodeType===1){b4.push(b9[b3])}}}}}else{bL(cc,b4)}if(bX){bE(bX,b7,b4,b5);bE.uniqueSort(b4)}return b4};bE.uniqueSort=function(bX){if(bP){bH=bG;bX.sort(bP);if(bH){for(var e=1;e<bX.length;e++){if(bX[e]===bX[e-1]){bX.splice(e--,1)}}}}return bX};bE.matches=function(e,bX){return bE(e,null,null,bX)};bE.matchesSelector=function(e,bX){return bE(bX,null,null,[e]).length>0};bE.find=function(b3,e,b4){var b2,bY,b0,bZ,b1,bX;if(!b3){return[]}for(bY=0,b0=bK.order.length;bY<b0;bY++){b1=bK.order[bY];if((bZ=bK.leftMatch[b1].exec(b3))){bX=bZ[1];bZ.splice(1,1);if(bX.substr(bX.length-1)!=="\\"){bZ[1]=(bZ[1]||"").replace(bQ,"");b2=bK.find[b1](bZ,e,b4);if(b2!=null){b3=b3.replace(bK.match[b1],"");break}}}}if(!b2){b2=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:b2,expr:b3}};bE.filter=function(b7,b6,ca,b0){var b2,e,b5,cc,b9,bX,bZ,b1,b8,bY=b7,cb=[],b4=b6,b3=b6&&b6[0]&&bE.isXML(b6[0]);while(b7&&b6.length){for(b5 in bK.filter){if((b2=bK.leftMatch[b5].exec(b7))!=null&&b2[2]){bX=bK.filter[b5];bZ=b2[1];e=false;b2.splice(1,1);if(bZ.substr(bZ.length-1)==="\\"){continue}if(b4===cb){cb=[]}if(bK.preFilter[b5]){b2=bK.preFilter[b5](b2,b4,ca,cb,b0,b3);if(!b2){e=cc=true}else{if(b2===true){continue}}}if(b2){for(b1=0;(b9=b4[b1])!=null;b1++){if(b9){cc=bX(b9,b2,b1,b4);b8=b0^cc;if(ca&&cc!=null){if(b8){e=true}else{b4[b1]=false}}else{if(b8){cb.push(b9);e=true}}}}}if(cc!==P){if(!ca){b4=cb}b7=b7.replace(bK.match[b5],"");if(!e){return[]}break}}}if(b7===bY){if(e==null){bE.error(b7)}else{break}}bY=b7}return b4};bE.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)};var bC=bE.getText=function(b0){var bY,bZ,e=b0.nodeType,bX="";if(e){if(e===1||e===9){if(typeof b0.textContent==="string"){return b0.textContent}else{if(typeof b0.innerText==="string"){return b0.innerText.replace(bU,"")}else{for(b0=b0.firstChild;b0;b0=b0.nextSibling){bX+=bC(b0)}}}}else{if(e===3||e===4){return b0.nodeValue}}}else{for(bY=0;(bZ=b0[bY]);bY++){if(bZ.nodeType!==8){bX+=bC(bZ)}}}return bX};var bK=bE.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(b2,bX){var bZ=typeof bX==="string",b1=bZ&&!bW.test(bX),b3=bZ&&!b1;if(b1){bX=bX.toLowerCase()}for(var bY=0,e=b2.length,b0;bY<e;bY++){if((b0=b2[bY])){while((b0=b0.previousSibling)&&b0.nodeType!==1){}b2[bY]=b3||b0&&b0.nodeName.toLowerCase()===bX?b0||false:b0===bX}}if(b3){bE.filter(bX,b2,true)}},">":function(b2,bX){var b1,b0=typeof bX==="string",bY=0,e=b2.length;if(b0&&!bW.test(bX)){bX=bX.toLowerCase();for(;bY<e;bY++){b1=b2[bY];if(b1){var bZ=b1.parentNode;b2[bY]=bZ.nodeName.toLowerCase()===bX?bZ:false}}}else{for(;bY<e;bY++){b1=b2[bY];if(b1){b2[bY]=b0?b1.parentNode:b1.parentNode===bX}}if(b0){bE.filter(bX,b2,true)}}},"":function(bZ,bX,b1){var b0,bY=bO++,e=bT;if(typeof bX==="string"&&!bW.test(bX)){bX=bX.toLowerCase();b0=bX;e=bB}e("parentNode",bX,bY,bZ,b0,b1)},"~":function(bZ,bX,b1){var b0,bY=bO++,e=bT;if(typeof bX==="string"&&!bW.test(bX)){bX=bX.toLowerCase();b0=bX;e=bB}e("previousSibling",bX,bY,bZ,b0,b1)}},find:{ID:function(bX,bY,bZ){if(typeof bY.getElementById!=="undefined"&&!bZ){var e=bY.getElementById(bX[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bY,b1){if(typeof b1.getElementsByName!=="undefined"){var bX=[],b0=b1.getElementsByName(bY[1]);for(var bZ=0,e=b0.length;bZ<e;bZ++){if(b0[bZ].getAttribute("name")===bY[1]){bX.push(b0[bZ])}}return bX.length===0?null:bX}},TAG:function(e,bX){if(typeof bX.getElementsByTagName!=="undefined"){return bX.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bZ,bX,bY,e,b2,b3){bZ=" "+bZ[1].replace(bQ,"")+" ";if(b3){return bZ}for(var b0=0,b1;(b1=bX[b0])!=null;b0++){if(b1){if(b2^(b1.className&&(" "+b1.className+" ").replace(/[\t\n\r]/g," ").indexOf(bZ)>=0)){if(!bY){e.push(b1)}}else{if(bY){bX[b0]=false}}}}return false},ID:function(e){return e[1].replace(bQ,"")},TAG:function(bX,e){return bX[1].replace(bQ,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){bE.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bX=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bX[1]+(bX[2]||1))-0;e[3]=bX[3]-0}else{if(e[2]){bE.error(e[0])}}e[0]=bO++;return e},ATTR:function(b0,bX,bY,e,b1,b2){var bZ=b0[1]=b0[1].replace(bQ,"");if(!b2&&bK.attrMap[bZ]){b0[1]=bK.attrMap[bZ]}b0[4]=(b0[4]||b0[5]||"").replace(bQ,"");if(b0[2]==="~="){b0[4]=" "+b0[4]+" "}return b0},PSEUDO:function(b0,bX,bY,e,b1){if(b0[1]==="not"){if((bN.exec(b0[3])||"").length>1||/^\w/.test(b0[3])){b0[3]=bE(b0[3],null,null,bX)}else{var bZ=bE.filter(b0[3],bX,bY,true^b1);if(!bY){e.push.apply(e,bZ)}return false}}else{if(bK.match.POS.test(b0[0])||bK.match.CHILD.test(b0[0])){return true}}return b0},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(bY,bX,e){return !!bE(e[3],bY).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bY){var e=bY.getAttribute("type"),bX=bY.type;return bY.nodeName.toLowerCase()==="input"&&"text"===bX&&(e===bX||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(bX){var e=bX.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bX.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bX){var e=bX.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bX.type},button:function(bX){var e=bX.nodeName.toLowerCase();return e==="input"&&"button"===bX.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(bX,e){return e===0},last:function(bY,bX,e,bZ){return bX===bZ.length-1},even:function(bX,e){return e%2===0},odd:function(bX,e){return e%2===1},lt:function(bY,bX,e){return bX<e[3]-0},gt:function(bY,bX,e){return bX>e[3]-0},nth:function(bY,bX,e){return e[3]-0===bX},eq:function(bY,bX,e){return e[3]-0===bX}},filter:{PSEUDO:function(bY,b3,b2,b4){var e=b3[1],bX=bK.filters[e];if(bX){return bX(bY,b2,b3,b4)}else{if(e==="contains"){return(bY.textContent||bY.innerText||bC([bY])||"").indexOf(b3[3])>=0}else{if(e==="not"){var bZ=b3[3];for(var b1=0,b0=bZ.length;b1<b0;b1++){if(bZ[b1]===bY){return false}}return true}else{bE.error(e)}}}},CHILD:function(bY,b0){var bZ,b6,b2,b5,e,b1,b4,b3=b0[1],bX=bY;switch(b3){case"only":case"first":while((bX=bX.previousSibling)){if(bX.nodeType===1){return false}}if(b3==="first"){return true}bX=bY;case"last":while((bX=bX.nextSibling)){if(bX.nodeType===1){return false}}return true;case"nth":bZ=b0[2];b6=b0[3];if(bZ===1&&b6===0){return true}b2=b0[0];b5=bY.parentNode;if(b5&&(b5[bI]!==b2||!bY.nodeIndex)){b1=0;for(bX=b5.firstChild;bX;bX=bX.nextSibling){if(bX.nodeType===1){bX.nodeIndex=++b1}}b5[bI]=b2}b4=bY.nodeIndex-b6;if(bZ===0){return b4===0}else{return(b4%bZ===0&&b4/bZ>=0)}}},ID:function(bX,e){return bX.nodeType===1&&bX.getAttribute("id")===e},TAG:function(bX,e){return(e==="*"&&bX.nodeType===1)||!!bX.nodeName&&bX.nodeName.toLowerCase()===e},CLASS:function(bX,e){return(" "+(bX.className||bX.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(b1,bZ){var bY=bZ[1],e=bE.attr?bE.attr(b1,bY):bK.attrHandle[bY]?bK.attrHandle[bY](b1):b1[bY]!=null?b1[bY]:b1.getAttribute(bY),b2=e+"",b0=bZ[2],bX=bZ[4];return e==null?b0==="!=":!b0&&bE.attr?e!=null:b0==="="?b2===bX:b0==="*="?b2.indexOf(bX)>=0:b0==="~="?(" "+b2+" ").indexOf(bX)>=0:!bX?b2&&e!==false:b0==="!="?b2!==bX:b0==="^="?b2.indexOf(bX)===0:b0==="$="?b2.substr(b2.length-bX.length)===bX:b0==="|="?b2===bX||b2.substr(0,bX.length+1)===bX+"-":false},POS:function(b0,bX,bY,b1){var e=bX[2],bZ=bK.setFilters[e];if(bZ){return bZ(b0,bY,bX,b1)}}}};var bJ=bK.match.POS,bD=function(bX,e){return"\\"+(e-0+1)};for(var bF in bK.match){bK.match[bF]=new RegExp(bK.match[bF].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bK.leftMatch[bF]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bK.match[bF].source.replace(/\\(\d+)/g,bD))}var bL=function(bX,e){bX=Array.prototype.slice.call(bX,0);if(e){e.push.apply(e,bX);return e}return bX};try{Array.prototype.slice.call(aB.documentElement.childNodes,0)[0].nodeType}catch(bV){bL=function(b0,bZ){var bY=0,bX=bZ||[];if(bR.call(b0)==="[object Array]"){Array.prototype.push.apply(bX,b0)}else{if(typeof b0.length==="number"){for(var e=b0.length;bY<e;bY++){bX.push(b0[bY])}}else{for(;b0[bY];bY++){bX.push(b0[bY])}}}return bX}}var bP,bM;if(aB.documentElement.compareDocumentPosition){bP=function(bX,e){if(bX===e){bH=true;return 0}if(!bX.compareDocumentPosition||!e.compareDocumentPosition){return bX.compareDocumentPosition?-1:1}return bX.compareDocumentPosition(e)&4?-1:1}}else{bP=function(b4,b3){if(b4===b3){bH=true;return 0}else{if(b4.sourceIndex&&b3.sourceIndex){return b4.sourceIndex-b3.sourceIndex}}var b1,bX,bY=[],e=[],b0=b4.parentNode,b2=b3.parentNode,b5=b0;if(b0===b2){return bM(b4,b3)}else{if(!b0){return -1}else{if(!b2){return 1}}}while(b5){bY.unshift(b5);b5=b5.parentNode}b5=b2;while(b5){e.unshift(b5);b5=b5.parentNode}b1=bY.length;bX=e.length;for(var bZ=0;bZ<b1&&bZ<bX;bZ++){if(bY[bZ]!==e[bZ]){return bM(bY[bZ],e[bZ])}}return bZ===b1?bM(b4,e[bZ],-1):bM(bY[bZ],b3,1)};bM=function(bX,e,bY){if(bX===e){return bY}var bZ=bX.nextSibling;while(bZ){if(bZ===e){return -1}bZ=bZ.nextSibling}return 1}}(function(){var bX=aB.createElement("div"),bY="script"+(new Date()).getTime(),e=aB.documentElement;bX.innerHTML="<a name='"+bY+"'/>";e.insertBefore(bX,e.firstChild);if(aB.getElementById(bY)){bK.find.ID=function(b0,b1,b2){if(typeof b1.getElementById!=="undefined"&&!b2){var bZ=b1.getElementById(b0[1]);return bZ?bZ.id===b0[1]||typeof bZ.getAttributeNode!=="undefined"&&bZ.getAttributeNode("id").nodeValue===b0[1]?[bZ]:P:[]}};bK.filter.ID=function(b1,bZ){var b0=typeof b1.getAttributeNode!=="undefined"&&b1.getAttributeNode("id");return b1.nodeType===1&&b0&&b0.nodeValue===bZ}}e.removeChild(bX);e=bX=null})();(function(){var e=aB.createElement("div");e.appendChild(aB.createComment(""));if(e.getElementsByTagName("*").length>0){bK.find.TAG=function(bX,b1){var b0=b1.getElementsByTagName(bX[1]);if(bX[1]==="*"){var bZ=[];for(var bY=0;b0[bY];bY++){if(b0[bY].nodeType===1){bZ.push(b0[bY])}}b0=bZ}return b0}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bK.attrHandle.href=function(bX){return bX.getAttribute("href",2)}}e=null})();if(aB.querySelectorAll){(function(){var e=bE,bZ=aB.createElement("div"),bY="__sizzle__";bZ.innerHTML="<p class='TEST'></p>";if(bZ.querySelectorAll&&bZ.querySelectorAll(".TEST").length===0){return}bE=function(ca,b1,b5,b9){b1=b1||aB;if(!b9&&!bE.isXML(b1)){var b8=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(ca);if(b8&&(b1.nodeType===1||b1.nodeType===9)){if(b8[1]){return bL(b1.getElementsByTagName(ca),b5)}else{if(b8[2]&&bK.find.CLASS&&b1.getElementsByClassName){return bL(b1.getElementsByClassName(b8[2]),b5)}}}if(b1.nodeType===9){if(ca==="body"&&b1.body){return bL([b1.body],b5)}else{if(b8&&b8[3]){var b4=b1.getElementById(b8[3]);if(b4&&b4.parentNode){if(b4.id===b8[3]){return bL([b4],b5)}}else{return bL([],b5)}}}try{return bL(b1.querySelectorAll(ca),b5)}catch(b6){}}else{if(b1.nodeType===1&&b1.nodeName.toLowerCase()!=="object"){var b2=b1,b3=b1.getAttribute("id"),b0=b3||bY,cc=b1.parentNode,cb=/^\s*[+~]/.test(ca);if(!b3){b1.setAttribute("id",b0)}else{b0=b0.replace(/'/g,"\\$&")}if(cb&&cc){b1=b1.parentNode}try{if(!cb||cc){return bL(b1.querySelectorAll("[id='"+b0+"'] "+ca),b5)}}catch(b7){}finally{if(!b3){b2.removeAttribute("id")}}}}}return e(ca,b1,b5,b9)};for(var bX in e){bE[bX]=e[bX]}bZ=null})()}(function(){var e=aB.documentElement,bY=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bY){var b0=!bY.call(aB.createElement("div"),"div"),bX=false;try{bY.call(aB.documentElement,"[test!='']:sizzle")}catch(bZ){bX=true}bE.matchesSelector=function(b2,b4){b4=b4.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bE.isXML(b2)){try{if(bX||!bK.match.PSEUDO.test(b4)&&!/!=/.test(b4)){var b1=bY.call(b2,b4);if(b1||!b0||b2.document&&b2.document.nodeType!==11){return b1}}}catch(b3){}}return bE(b4,null,null,[b2]).length>0}}})();(function(){var e=aB.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}bK.order.splice(1,0,"CLASS");bK.find.CLASS=function(bX,bY,bZ){if(typeof bY.getElementsByClassName!=="undefined"&&!bZ){return bY.getElementsByClassName(bX[1])}};e=null})();function bB(bX,b2,b1,b5,b3,b4){for(var bZ=0,bY=b5.length;bZ<bY;bZ++){var e=b5[bZ];if(e){var b0=false;e=e[bX];while(e){if(e[bI]===b1){b0=b5[e.sizset];break}if(e.nodeType===1&&!b4){e[bI]=b1;e.sizset=bZ}if(e.nodeName.toLowerCase()===b2){b0=e;break}e=e[bX]}b5[bZ]=b0}}}function bT(bX,b2,b1,b5,b3,b4){for(var bZ=0,bY=b5.length;bZ<bY;bZ++){var e=b5[bZ];if(e){var b0=false;e=e[bX];while(e){if(e[bI]===b1){b0=b5[e.sizset];break}if(e.nodeType===1){if(!b4){e[bI]=b1;e.sizset=bZ}if(typeof b2!=="string"){if(e===b2){b0=true;break}}else{if(bE.filter(b2,[e]).length>0){b0=e;break}}}e=e[bX]}b5[bZ]=b0}}}if(aB.documentElement.contains){bE.contains=function(bX,e){return bX!==e&&(bX.contains?bX.contains(e):true)}}else{if(aB.documentElement.compareDocumentPosition){bE.contains=function(bX,e){return !!(bX.compareDocumentPosition(e)&16)}}else{bE.contains=function(){return false}}}bE.isXML=function(e){var bX=(e?e.ownerDocument||e:0).documentElement;return bX?bX.nodeName!=="HTML":false};var bS=function(bY,e,b2){var b1,b3=[],b0="",b4=e.nodeType?[e]:e;while((b1=bK.match.PSEUDO.exec(bY))){b0+=b1[0];bY=bY.replace(bK.match.PSEUDO,"")}bY=bK.relative[bY]?bY+"*":bY;for(var bZ=0,bX=b4.length;bZ<bX;bZ++){bE(bY,b4[bZ],b3,b2)}return bE.filter(b0,b3)};bE.attr=b.attr;bE.selectors.attrMap={};b.find=bE;b.expr=bE.selectors;b.expr[":"]=b.expr.filters;b.unique=bE.uniqueSort;b.text=bE.getText;b.isXMLDoc=bE.isXML;b.contains=bE.contains})();var ag=/Until$/,ax=/^(?:parents|prevUntil|prevAll)/,bf=/,/,bv=/^.[^:#\[\.,]*$/,T=Array.prototype.slice,L=b.expr.match.POS,aE={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bC=this,bE,bB;if(typeof e!=="string"){return b(e).filter(function(){for(bE=0,bB=bC.length;bE<bB;bE++){if(b.contains(bC[bE],this)){return true}}})}var bD=this.pushStack("","find",e),bG,bH,bF;for(bE=0,bB=this.length;bE<bB;bE++){bG=bD.length;b.find(e,this[bE],bD);if(bE>0){for(bH=bG;bH<bD.length;bH++){for(bF=0;bF<bG;bF++){if(bD[bF]===bD[bH]){bD.splice(bH--,1);break}}}}}return bD},has:function(bB){var e=b(bB);return this.filter(function(){for(var bD=0,bC=e.length;bD<bC;bD++){if(b.contains(this,e[bD])){return true}}})},not:function(e){return this.pushStack(aM(this,e,false),"not",e)},filter:function(e){return this.pushStack(aM(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(bE,bD){var bB=[],bC,e,bF=this[0];if(b.isArray(bE)){var bH=1;while(bF&&bF.ownerDocument&&bF!==bD){for(bC=0;bC<bE.length;bC++){if(b(bF).is(bE[bC])){bB.push({selector:bE[bC],elem:bF,level:bH})}}bF=bF.parentNode;bH++}return bB}var bG=L.test(bE)||typeof bE!=="string"?b(bE,bD||this.context):0;for(bC=0,e=this.length;bC<e;bC++){bF=this[bC];while(bF){if(bG?bG.index(bF)>-1:b.find.matchesSelector(bF,bE)){bB.push(bF);break}else{bF=bF.parentNode;if(!bF||!bF.ownerDocument||bF===bD||bF.nodeType===11){break}}}}bB=bB.length>1?b.unique(bB):bB;return this.pushStack(bB,"closest",bE)},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,bB){var bD=typeof e==="string"?b(e,bB):b.makeArray(e&&e.nodeType?[e]:e),bC=b.merge(this.get(),bD);return this.pushStack(G(bD[0])||G(bC[0])?bC:b.unique(bC))},andSelf:function(){return this.add(this.prevObject)}});function G(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bB){var e=bB.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bB,e,bC){return b.dir(bB,"parentNode",bC)},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(bB,e,bC){return b.dir(bB,"nextSibling",bC)},prevUntil:function(bB,e,bC){return b.dir(bB,"previousSibling",bC)},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,bB){b.fn[e]=function(bE,bC){var bD=b.map(this,bB,bE);if(!ag.test(e)){bC=bE}if(bC&&typeof bC==="string"){bD=b.filter(bC,bD)}bD=this.length>1&&!aE[e]?b.unique(bD):bD;if((this.length>1||bf.test(bC))&&ax.test(e)){bD=bD.reverse()}return this.pushStack(bD,e,T.call(arguments).join(","))}});b.extend({filter:function(bC,e,bB){if(bB){bC=":not("+bC+")"}return e.length===1?b.find.matchesSelector(e[0],bC)?[e[0]]:[]:b.find.matches(bC,e)},dir:function(bC,bB,bE){var e=[],bD=bC[bB];while(bD&&bD.nodeType!==9&&(bE===P||bD.nodeType!==1||!b(bD).is(bE))){if(bD.nodeType===1){e.push(bD)}bD=bD[bB]}return e},nth:function(bE,e,bC,bD){e=e||1;var bB=0;for(;bE;bE=bE[bC]){if(bE.nodeType===1&&++bB===e){break}}return bE},sibling:function(bC,bB){var e=[];for(;bC;bC=bC.nextSibling){if(bC.nodeType===1&&bC!==bB){e.push(bC)}}return e}});function aM(bD,bC,e){bC=bC||0;if(b.isFunction(bC)){return b.grep(bD,function(bF,bE){var bG=!!bC.call(bF,bE,bF);return bG===e})}else{if(bC.nodeType){return b.grep(bD,function(bF,bE){return(bF===bC)===e})}else{if(typeof bC==="string"){var bB=b.grep(bD,function(bE){return bE.nodeType===1});if(bv.test(bC)){return b.filter(bC,bB,!e)}else{bC=b.filter(bC,bB)}}}}return b.grep(bD,function(bF,bE){return(b.inArray(bF,bC)>=0)===e})}function a(e){var bC=aX.split("|"),bB=e.createDocumentFragment();if(bB.createElement){while(bC.length){bB.createElement(bC.pop())}}return bB}var aX="abbr|article|aside|audio|canvas|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",al=/ jQuery\d+="(?:\d+|null)"/g,ay=/^\s+/,V=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,f=/<([\w:]+)/,A=/<tbody/i,aa=/<|&#?\w+;/,aj=/<(?:script|style)/i,S=/<(?:script|object|embed|option|style)/i,an=new RegExp("<(?:"+aX+")","i"),q=/checked\s*(?:[^=]|=\s*.checked.)/i,bs=/\/(java|ecma)script/i,aT=/^\s*<!(?:\[CDATA\[|\-\-)/,aD={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,"",""]},ah=a(aB);aD.optgroup=aD.option;aD.tbody=aD.tfoot=aD.colgroup=aD.caption=aD.thead;aD.th=aD.td;if(!b.support.htmlSerialize){aD._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bC){var bB=b(this);bB.text(e.call(this,bC,bB.text()))})}if(typeof e!=="object"&&e!==P){return this.empty().append((this[0]&&this[0].ownerDocument||aB).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bC){b(this).wrapAll(e.call(this,bC))})}if(this[0]){var bB=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bB.insertBefore(this[0])}bB.map(function(){var bC=this;while(bC.firstChild&&bC.firstChild.nodeType===1){bC=bC.firstChild}return bC}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bB){b(this).wrapInner(e.call(this,bB))})}return this.each(function(){var bB=b(this),bC=bB.contents();if(bC.length){bC.wrapAll(e)}else{bB.append(e)}})},wrap:function(e){var bB=b.isFunction(e);return this.each(function(bC){b(this).wrapAll(bB?e.call(this,bC):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(bB){this.parentNode.insertBefore(bB,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(bB){this.parentNode.insertBefore(bB,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,bD){for(var bB=0,bC;(bC=this[bB])!=null;bB++){if(!e||b.filter(e,[bC]).length){if(!bD&&bC.nodeType===1){b.cleanData(bC.getElementsByTagName("*"));b.cleanData([bC])}if(bC.parentNode){bC.parentNode.removeChild(bC)}}}return this},empty:function(){for(var e=0,bB;(bB=this[e])!=null;e++){if(bB.nodeType===1){b.cleanData(bB.getElementsByTagName("*"))}while(bB.firstChild){bB.removeChild(bB.firstChild)}}return this},clone:function(bB,e){bB=bB==null?false:bB;e=e==null?bB:e;return this.map(function(){return b.clone(this,bB,e)})},html:function(bD){if(bD===P){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(al,""):null}else{if(typeof bD==="string"&&!aj.test(bD)&&(b.support.leadingWhitespace||!ay.test(bD))&&!aD[(f.exec(bD)||["",""])[1].toLowerCase()]){bD=bD.replace(V,"<$1></$2>");try{for(var bC=0,bB=this.length;bC<bB;bC++){if(this[bC].nodeType===1){b.cleanData(this[bC].getElementsByTagName("*"));this[bC].innerHTML=bD}}}catch(bE){this.empty().append(bD)}}else{if(b.isFunction(bD)){this.each(function(bF){var e=b(this);e.html(bD.call(this,bF,e.html()))})}else{this.empty().append(bD)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(bD){var bC=b(this),bB=bC.html();bC.replaceWith(e.call(this,bD,bB))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bC=this.nextSibling,bB=this.parentNode;b(this).remove();if(bC){b(bC).before(e)}else{b(bB).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(bH,bL,bK){var bD,bE,bG,bJ,bI=bH[0],bB=[];if(!b.support.checkClone&&arguments.length===3&&typeof bI==="string"&&q.test(bI)){return this.each(function(){b(this).domManip(bH,bL,bK,true)})}if(b.isFunction(bI)){return this.each(function(bN){var bM=b(this);bH[0]=bI.call(this,bN,bL?bM.html():P);bM.domManip(bH,bL,bK)})}if(this[0]){bJ=bI&&bI.parentNode;if(b.support.parentNode&&bJ&&bJ.nodeType===11&&bJ.childNodes.length===this.length){bD={fragment:bJ}}else{bD=b.buildFragment(bH,this,bB)}bG=bD.fragment;if(bG.childNodes.length===1){bE=bG=bG.firstChild}else{bE=bG.firstChild}if(bE){bL=bL&&b.nodeName(bE,"tr");for(var bC=0,e=this.length,bF=e-1;bC<e;bC++){bK.call(bL?bg(this[bC],bE):this[bC],bD.cacheable||(e>1&&bC<bF)?b.clone(bG,true,true):bG)}}if(bB.length){b.each(bB,bu)}}return this}});function bg(e,bB){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function x(bH,bB){if(bB.nodeType!==1||!b.hasData(bH)){return}var bE,bD,e,bG=b._data(bH),bF=b._data(bB,bG),bC=bG.events;if(bC){delete bF.handle;bF.events={};for(bE in bC){for(bD=0,e=bC[bE].length;bD<e;bD++){b.event.add(bB,bE+(bC[bE][bD].namespace?".":"")+bC[bE][bD].namespace,bC[bE][bD],bC[bE][bD].data)}}}if(bF.data){bF.data=b.extend({},bF.data)}}function ao(bB,e){var bC;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bB)}bC=e.nodeName.toLowerCase();if(bC==="object"){e.outerHTML=bB.outerHTML}else{if(bC==="input"&&(bB.type==="checkbox"||bB.type==="radio")){if(bB.checked){e.defaultChecked=e.checked=bB.checked}if(e.value!==bB.value){e.value=bB.value}}else{if(bC==="option"){e.selected=bB.defaultSelected}else{if(bC==="input"||bC==="textarea"){e.defaultValue=bB.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bF,bD,bB){var bE,e,bC,bG,bH=bF[0];if(bD&&bD[0]){bG=bD[0].ownerDocument||bD[0]}if(!bG.createDocumentFragment){bG=aB}if(bF.length===1&&typeof bH==="string"&&bH.length<512&&bG===aB&&bH.charAt(0)==="<"&&!S.test(bH)&&(b.support.checkClone||!q.test(bH))&&(b.support.html5Clone||!an.test(bH))){e=true;bC=b.fragments[bH];if(bC&&bC!==1){bE=bC}}if(!bE){bE=bG.createDocumentFragment();b.clean(bF,bG,bE,bB)}if(e){b.fragments[bH]=bC?bE:1}return{fragment:bE,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bB){b.fn[e]=function(bC){var bF=[],bI=b(bC),bH=this.length===1&&this[0].parentNode;if(bH&&bH.nodeType===11&&bH.childNodes.length===1&&bI.length===1){bI[bB](this[0]);return this}else{for(var bG=0,bD=bI.length;bG<bD;bG++){var bE=(bG>0?this.clone(true):this).get();b(bI[bG])[bB](bE);bF=bF.concat(bE)}return this.pushStack(bF,e,bI.selector)}}});function bm(e){if(typeof e.getElementsByTagName!=="undefined"){return e.getElementsByTagName("*")}else{if(typeof e.querySelectorAll!=="undefined"){return e.querySelectorAll("*")}else{return[]}}}function aF(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function I(e){var bB=(e.nodeName||"").toLowerCase();if(bB==="input"){aF(e)}else{if(bB!=="script"&&typeof e.getElementsByTagName!=="undefined"){b.grep(e.getElementsByTagName("input"),aF)}}}function ar(e){var bB=aB.createElement("div");ah.appendChild(bB);bB.innerHTML=e.outerHTML;return bB.firstChild}b.extend({clone:function(bE,bG,bC){var e,bB,bD,bF=b.support.html5Clone||!an.test("<"+bE.nodeName)?bE.cloneNode(true):ar(bE);if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bE.nodeType===1||bE.nodeType===11)&&!b.isXMLDoc(bE)){ao(bE,bF);e=bm(bE);bB=bm(bF);for(bD=0;e[bD];++bD){if(bB[bD]){ao(e[bD],bB[bD])}}}if(bG){x(bE,bF);if(bC){e=bm(bE);bB=bm(bF);for(bD=0;e[bD];++bD){x(e[bD],bB[bD])}}}e=bB=null;return bF},clean:function(bC,bE,bN,bG){var bL;bE=bE||aB;if(typeof bE.createElement==="undefined"){bE=bE.ownerDocument||bE[0]&&bE[0].ownerDocument||aB}var bO=[],bH;for(var bK=0,bF;(bF=bC[bK])!=null;bK++){if(typeof bF==="number"){bF+=""}if(!bF){continue}if(typeof bF==="string"){if(!aa.test(bF)){bF=bE.createTextNode(bF)}else{bF=bF.replace(V,"<$1></$2>");var bQ=(f.exec(bF)||["",""])[1].toLowerCase(),bD=aD[bQ]||aD._default,bJ=bD[0],bB=bE.createElement("div");if(bE===aB){ah.appendChild(bB)}else{a(bE).appendChild(bB)}bB.innerHTML=bD[1]+bF+bD[2];while(bJ--){bB=bB.lastChild}if(!b.support.tbody){var e=A.test(bF),bI=bQ==="table"&&!e?bB.firstChild&&bB.firstChild.childNodes:bD[1]==="<table>"&&!e?bB.childNodes:[];for(bH=bI.length-1;bH>=0;--bH){if(b.nodeName(bI[bH],"tbody")&&!bI[bH].childNodes.length){bI[bH].parentNode.removeChild(bI[bH])}}}if(!b.support.leadingWhitespace&&ay.test(bF)){bB.insertBefore(bE.createTextNode(ay.exec(bF)[0]),bB.firstChild)}bF=bB.childNodes}}var bM;if(!b.support.appendChecked){if(bF[0]&&typeof(bM=bF.length)==="number"){for(bH=0;bH<bM;bH++){I(bF[bH])}}else{I(bF)}}if(bF.nodeType){bO.push(bF)}else{bO=b.merge(bO,bF)}}if(bN){bL=function(bR){return !bR.type||bs.test(bR.type)};for(bK=0;bO[bK];bK++){if(bG&&b.nodeName(bO[bK],"script")&&(!bO[bK].type||bO[bK].type.toLowerCase()==="text/javascript")){bG.push(bO[bK].parentNode?bO[bK].parentNode.removeChild(bO[bK]):bO[bK])}else{if(bO[bK].nodeType===1){var bP=b.grep(bO[bK].getElementsByTagName("script"),bL);bO.splice.apply(bO,[bK+1,0].concat(bP))}bN.appendChild(bO[bK])}}}return bO},cleanData:function(bB){var bE,bC,e=b.cache,bH=b.event.special,bG=b.support.deleteExpando;for(var bF=0,bD;(bD=bB[bF])!=null;bF++){if(bD.nodeName&&b.noData[bD.nodeName.toLowerCase()]){continue}bC=bD[b.expando];if(bC){bE=e[bC];if(bE&&bE.events){for(var bI in bE.events){if(bH[bI]){b.event.remove(bD,bI)}else{b.removeEvent(bD,bI,bE.handle)}}if(bE.handle){bE.handle.elem=null}}if(bG){delete bD[b.expando]}else{if(bD.removeAttribute){bD.removeAttribute(b.expando)}}delete e[bC]}}}});function bu(e,bB){if(bB.src){b.ajax({url:bB.src,async:false,dataType:"script"})}else{b.globalEval((bB.text||bB.textContent||bB.innerHTML||"").replace(aT,"/*$0*/"))}if(bB.parentNode){bB.parentNode.removeChild(bB)}}var aq=/alpha\([^)]*\)/i,aA=/opacity=([^)]*)/,D=/([A-Z]|^ms)/g,bi=/^-?\d+(?:px)?$/i,bt=/^-?\d/,M=/^([\-+])=([\-+.\de]+)/,bd={position:"absolute",visibility:"hidden",display:"block"},au=["Left","Right"],a7=["Top","Bottom"],ae,aO,a3;b.fn.css=function(e,bB){if(arguments.length===2&&bB===P){return this}return b.access(this,e,bB,true,function(bD,bC,bE){return bE!==P?b.style(bD,bC,bE):b.css(bD,bC)})};b.extend({cssHooks:{opacity:{get:function(bC,bB){if(bB){var e=ae(bC,"opacity","opacity");return e===""?"1":e}else{return bC.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(bD,bC,bJ,bE){if(!bD||bD.nodeType===3||bD.nodeType===8||!bD.style){return}var bH,bI,bF=b.camelCase(bC),bB=bD.style,bK=b.cssHooks[bF];bC=b.cssProps[bF]||bF;if(bJ!==P){bI=typeof bJ;if(bI==="string"&&(bH=M.exec(bJ))){bJ=(+(bH[1]+1)*+bH[2])+parseFloat(b.css(bD,bC));bI="number"}if(bJ==null||bI==="number"&&isNaN(bJ)){return}if(bI==="number"&&!b.cssNumber[bF]){bJ+="px"}if(!bK||!("set" in bK)||(bJ=bK.set(bD,bJ))!==P){try{bB[bC]=bJ}catch(bG){}}}else{if(bK&&"get" in bK&&(bH=bK.get(bD,false,bE))!==P){return bH}return bB[bC]}},css:function(bE,bD,bB){var bC,e;bD=b.camelCase(bD);e=b.cssHooks[bD];bD=b.cssProps[bD]||bD;if(bD==="cssFloat"){bD="float"}if(e&&"get" in e&&(bC=e.get(bE,true,bB))!==P){return bC}else{if(ae){return ae(bE,bD)}}},swap:function(bD,bC,bE){var e={};for(var bB in bC){e[bB]=bD.style[bB];bD.style[bB]=bC[bB]}bE.call(bD);for(bB in bC){bD.style[bB]=e[bB]}}});b.curCSS=b.css;b.each(["height","width"],function(bB,e){b.cssHooks[e]={get:function(bE,bD,bC){var bF;if(bD){if(bE.offsetWidth!==0){return s(bE,e,bC)}else{b.swap(bE,bd,function(){bF=s(bE,e,bC)})}return bF}},set:function(bC,bD){if(bi.test(bD)){bD=parseFloat(bD);if(bD>=0){return bD+"px"}}else{return bD}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bB,e){return aA.test((e&&bB.currentStyle?bB.currentStyle.filter:bB.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bE,bF){var bD=bE.style,bB=bE.currentStyle,e=b.isNumeric(bF)?"alpha(opacity="+bF*100+")":"",bC=bB&&bB.filter||bD.filter||"";bD.zoom=1;if(bF>=1&&b.trim(bC.replace(aq,""))===""){bD.removeAttribute("filter");if(bB&&!bB.filter){return}}bD.filter=aq.test(bC)?bC.replace(aq,e):bC+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bC,bB){var e;b.swap(bC,{display:"inline-block"},function(){if(bB){e=ae(bC,"margin-right","marginRight")}else{e=bC.style.marginRight}});return e}}}});if(aB.defaultView&&aB.defaultView.getComputedStyle){aO=function(bE,bC){var bB,bD,e;bC=bC.replace(D,"-$1").toLowerCase();if((bD=bE.ownerDocument.defaultView)&&(e=bD.getComputedStyle(bE,null))){bB=e.getPropertyValue(bC);if(bB===""&&!b.contains(bE.ownerDocument.documentElement,bE)){bB=b.style(bE,bC)}}return bB}}if(aB.documentElement.currentStyle){a3=function(bF,bC){var bG,e,bE,bB=bF.currentStyle&&bF.currentStyle[bC],bD=bF.style;if(bB===null&&bD&&(bE=bD[bC])){bB=bE}if(!bi.test(bB)&&bt.test(bB)){bG=bD.left;e=bF.runtimeStyle&&bF.runtimeStyle.left;if(e){bF.runtimeStyle.left=bF.currentStyle.left}bD.left=bC==="fontSize"?"1em":(bB||0);bB=bD.pixelLeft+"px";bD.left=bG;if(e){bF.runtimeStyle.left=e}}return bB===""?"auto":bB}}ae=aO||a3;function s(bE,bC,bB){var bG=bC==="width"?bE.offsetWidth:bE.offsetHeight,bF=bC==="width"?au:a7,bD=0,e=bF.length;if(bG>0){if(bB!=="border"){for(;bD<e;bD++){if(!bB){bG-=parseFloat(b.css(bE,"padding"+bF[bD]))||0}if(bB==="margin"){bG+=parseFloat(b.css(bE,bB+bF[bD]))||0}else{bG-=parseFloat(b.css(bE,"border"+bF[bD]+"Width"))||0}}}return bG+"px"}bG=ae(bE,bC,bC);if(bG<0||bG==null){bG=bE.style[bC]||0}bG=parseFloat(bG)||0;if(bB){for(;bD<e;bD++){bG+=parseFloat(b.css(bE,"padding"+bF[bD]))||0;if(bB!=="padding"){bG+=parseFloat(b.css(bE,"border"+bF[bD]+"Width"))||0}if(bB==="margin"){bG+=parseFloat(b.css(bE,bB+bF[bD]))||0}}}return bG+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bC){var bB=bC.offsetWidth,e=bC.offsetHeight;return(bB===0&&e===0)||(!b.support.reliableHiddenOffsets&&((bC.style&&bC.style.display)||b.css(bC,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var m=/%20/g,aw=/\[\]$/,by=/\r?\n/g,bw=/#.*$/,aJ=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,a5=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aS=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,aW=/^(?:GET|HEAD)$/,c=/^\/\//,Q=/\?/,bc=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,u=/^(?:select|textarea)/i,j=/\s+/,bx=/([?&])_=[^&]*/,O=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,E=b.fn.load,af={},v={},aK,w,a1=["*/"]+["*"];try{aK=br.href}catch(aC){aK=aB.createElement("a");aK.href="";aK=aK.href}w=O.exec(aK.toLowerCase())||[];function g(e){return function(bE,bG){if(typeof bE!=="string"){bG=bE;bE="*"}if(b.isFunction(bG)){var bD=bE.toLowerCase().split(j),bC=0,bF=bD.length,bB,bH,bI;for(;bC<bF;bC++){bB=bD[bC];bI=/^\+/.test(bB);if(bI){bB=bB.substr(1)||"*"}bH=e[bB]=e[bB]||[];bH[bI?"unshift":"push"](bG)}}}}function a2(bB,bK,bF,bJ,bH,bD){bH=bH||bK.dataTypes[0];bD=bD||{};bD[bH]=true;var bG=bB[bH],bC=0,e=bG?bG.length:0,bE=(bB===af),bI;for(;bC<e&&(bE||!bI);bC++){bI=bG[bC](bK,bF,bJ);if(typeof bI==="string"){if(!bE||bD[bI]){bI=P}else{bK.dataTypes.unshift(bI);bI=a2(bB,bK,bF,bJ,bI,bD)}}}if((bE||!bI)&&!bD["*"]){bI=a2(bB,bK,bF,bJ,"*",bD)}return bI}function at(bC,bD){var bB,e,bE=b.ajaxSettings.flatOptions||{};for(bB in bD){if(bD[bB]!==P){(bE[bB]?bC:(e||(e={})))[bB]=bD[bB]}}if(e){b.extend(true,bC,e)}}b.fn.extend({load:function(bC,bF,bG){if(typeof bC!=="string"&&E){return E.apply(this,arguments)}else{if(!this.length){return this}}var bE=bC.indexOf(" ");if(bE>=0){var e=bC.slice(bE,bC.length);bC=bC.slice(0,bE)}var bD="GET";if(bF){if(b.isFunction(bF)){bG=bF;bF=P}else{if(typeof bF==="object"){bF=b.param(bF,b.ajaxSettings.traditional);bD="POST"}}}var bB=this;b.ajax({url:bC,type:bD,dataType:"html",data:bF,complete:function(bI,bH,bJ){bJ=bI.responseText;if(bI.isResolved()){bI.done(function(bK){bJ=bK});bB.html(e?b("<div>").append(bJ.replace(bc,"")).find(e):bJ)}if(bG){bB.each(bG,[bJ,bH,bI])}}});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)||a5.test(this.type))}).map(function(e,bB){var bC=b(this).val();return bC==null?null:b.isArray(bC)?b.map(bC,function(bE,bD){return{name:bB.name,value:bE.replace(by,"\r\n")}}):{name:bB.name,value:bC.replace(by,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bB){b.fn[bB]=function(bC){return this.on(bB,bC)}});b.each(["get","post"],function(e,bB){b[bB]=function(bC,bE,bF,bD){if(b.isFunction(bE)){bD=bD||bF;bF=bE;bE=P}return b.ajax({type:bB,url:bC,data:bE,success:bF,dataType:bD})}});b.extend({getScript:function(e,bB){return b.get(e,P,bB,"script")},getJSON:function(e,bB,bC){return b.get(e,bB,bC,"json")},ajaxSetup:function(bB,e){if(e){at(bB,b.ajaxSettings)}else{e=bB;bB=b.ajaxSettings}at(bB,e);return bB},ajaxSettings:{url:aK,isLocal:aS.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","*":a1},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bh.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML},flatOptions:{context:true,url:true}},ajaxPrefilter:g(af),ajaxTransport:g(v),ajax:function(bF,bD){if(typeof bF==="object"){bD=bF;bF=P}bD=bD||{};var bJ=b.ajaxSetup({},bD),bY=bJ.context||bJ,bM=bY!==bJ&&(bY.nodeType||bY instanceof b)?b(bY):b.event,bX=b.Deferred(),bT=b.Callbacks("once memory"),bH=bJ.statusCode||{},bI,bN={},bU={},bW,bE,bR,bK,bO,bG=0,bC,bQ,bP={readyState:0,setRequestHeader:function(bZ,b0){if(!bG){var e=bZ.toLowerCase();bZ=bU[e]=bU[e]||bZ;bN[bZ]=b0}return this},getAllResponseHeaders:function(){return bG===2?bW:null},getResponseHeader:function(bZ){var e;if(bG===2){if(!bE){bE={};while((e=aJ.exec(bW))){bE[e[1].toLowerCase()]=e[2]}}e=bE[bZ.toLowerCase()]}return e===P?null:e},overrideMimeType:function(e){if(!bG){bJ.mimeType=e}return this},abort:function(e){e=e||"abort";if(bR){bR.abort(e)}bL(0,e);return this}};function bL(b5,b0,b6,b2){if(bG===2){return}bG=2;if(bK){clearTimeout(bK)}bR=P;bW=b2||"";bP.readyState=b5>0?4:0;var bZ,ca,b9,b3=b0,b4=b6?bp(bJ,bP,b6):P,b1,b8;if(b5>=200&&b5<300||b5===304){if(bJ.ifModified){if((b1=bP.getResponseHeader("Last-Modified"))){b.lastModified[bI]=b1}if((b8=bP.getResponseHeader("Etag"))){b.etag[bI]=b8}}if(b5===304){b3="notmodified";bZ=true}else{try{ca=K(bJ,b4);b3="success";bZ=true}catch(b7){b3="parsererror";b9=b7}}}else{b9=b3;if(!b3||b5){b3="error";if(b5<0){b5=0}}}bP.status=b5;bP.statusText=""+(b0||b3);if(bZ){bX.resolveWith(bY,[ca,b3,bP])}else{bX.rejectWith(bY,[bP,b3,b9])}bP.statusCode(bH);bH=P;if(bC){bM.trigger("ajax"+(bZ?"Success":"Error"),[bP,bJ,bZ?ca:b9])}bT.fireWith(bY,[bP,b3]);if(bC){bM.trigger("ajaxComplete",[bP,bJ]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bX.promise(bP);bP.success=bP.done;bP.error=bP.fail;bP.complete=bT.add;bP.statusCode=function(bZ){if(bZ){var e;if(bG<2){for(e in bZ){bH[e]=[bH[e],bZ[e]]}}else{e=bZ[bP.status];bP.then(e,e)}}return this};bJ.url=((bF||bJ.url)+"").replace(bw,"").replace(c,w[1]+"//");bJ.dataTypes=b.trim(bJ.dataType||"*").toLowerCase().split(j);if(bJ.crossDomain==null){bO=O.exec(bJ.url.toLowerCase());bJ.crossDomain=!!(bO&&(bO[1]!=w[1]||bO[2]!=w[2]||(bO[3]||(bO[1]==="http:"?80:443))!=(w[3]||(w[1]==="http:"?80:443))))}if(bJ.data&&bJ.processData&&typeof bJ.data!=="string"){bJ.data=b.param(bJ.data,bJ.traditional)}a2(af,bJ,bD,bP);if(bG===2){return false}bC=bJ.global;bJ.type=bJ.type.toUpperCase();bJ.hasContent=!aW.test(bJ.type);if(bC&&b.active++===0){b.event.trigger("ajaxStart")}if(!bJ.hasContent){if(bJ.data){bJ.url+=(Q.test(bJ.url)?"&":"?")+bJ.data;delete bJ.data}bI=bJ.url;if(bJ.cache===false){var bB=b.now(),bV=bJ.url.replace(bx,"$1_="+bB);bJ.url=bV+((bV===bJ.url)?(Q.test(bJ.url)?"&":"?")+"_="+bB:"")}}if(bJ.data&&bJ.hasContent&&bJ.contentType!==false||bD.contentType){bP.setRequestHeader("Content-Type",bJ.contentType)}if(bJ.ifModified){bI=bI||bJ.url;if(b.lastModified[bI]){bP.setRequestHeader("If-Modified-Since",b.lastModified[bI])}if(b.etag[bI]){bP.setRequestHeader("If-None-Match",b.etag[bI])}}bP.setRequestHeader("Accept",bJ.dataTypes[0]&&bJ.accepts[bJ.dataTypes[0]]?bJ.accepts[bJ.dataTypes[0]]+(bJ.dataTypes[0]!=="*"?", "+a1+"; q=0.01":""):bJ.accepts["*"]);for(bQ in bJ.headers){bP.setRequestHeader(bQ,bJ.headers[bQ])}if(bJ.beforeSend&&(bJ.beforeSend.call(bY,bP,bJ)===false||bG===2)){bP.abort();return false}for(bQ in {success:1,error:1,complete:1}){bP[bQ](bJ[bQ])}bR=a2(v,bJ,bD,bP);if(!bR){bL(-1,"No Transport")}else{bP.readyState=1;if(bC){bM.trigger("ajaxSend",[bP,bJ])}if(bJ.async&&bJ.timeout>0){bK=setTimeout(function(){bP.abort("timeout")},bJ.timeout)}try{bG=1;bR.send(bN,bL)}catch(bS){if(bG<2){bL(-1,bS)}else{throw bS}}}return bP},param:function(e,bC){var bB=[],bE=function(bF,bG){bG=b.isFunction(bG)?bG():bG;bB[bB.length]=encodeURIComponent(bF)+"="+encodeURIComponent(bG)};if(bC===P){bC=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bE(this.name,this.value)})}else{for(var bD in e){z(bD,e[bD],bC,bE)}}return bB.join("&").replace(m,"+")}});function z(bC,bE,bB,bD){if(b.isArray(bE)){b.each(bE,function(bG,bF){if(bB||aw.test(bC)){bD(bC,bF)}else{z(bC+"["+(typeof bF==="object"||b.isArray(bF)?bG:"")+"]",bF,bB,bD)}})}else{if(!bB&&bE!=null&&typeof bE==="object"){for(var e in bE){z(bC+"["+e+"]",bE[e],bB,bD)}}else{bD(bC,bE)}}}b.extend({active:0,lastModified:{},etag:{}});function bp(bJ,bI,bF){var bB=bJ.contents,bH=bJ.dataTypes,bC=bJ.responseFields,bE,bG,bD,e;for(bG in bC){if(bG in bF){bI[bC[bG]]=bF[bG]}}while(bH[0]==="*"){bH.shift();if(bE===P){bE=bJ.mimeType||bI.getResponseHeader("content-type")}}if(bE){for(bG in bB){if(bB[bG]&&bB[bG].test(bE)){bH.unshift(bG);break}}}if(bH[0] in bF){bD=bH[0]}else{for(bG in bF){if(!bH[0]||bJ.converters[bG+" "+bH[0]]){bD=bG;break}if(!e){e=bG}}bD=bD||e}if(bD){if(bD!==bH[0]){bH.unshift(bD)}return bF[bD]}}function K(bN,bF){if(bN.dataFilter){bF=bN.dataFilter(bF,bN.dataType)}var bJ=bN.dataTypes,bM={},bG,bK,bC=bJ.length,bH,bI=bJ[0],bD,bE,bL,bB,e;for(bG=1;bG<bC;bG++){if(bG===1){for(bK in bN.converters){if(typeof bK==="string"){bM[bK.toLowerCase()]=bN.converters[bK]}}}bD=bI;bI=bJ[bG];if(bI==="*"){bI=bD}else{if(bD!=="*"&&bD!==bI){bE=bD+" "+bI;bL=bM[bE]||bM["* "+bI];if(!bL){e=P;for(bB in bM){bH=bB.split(" ");if(bH[0]===bD||bH[0]==="*"){e=bM[bH[1]+" "+bI];if(e){bB=bM[bB];if(bB===true){bL=e}else{if(e===true){bL=bB}}break}}}}if(!(bL||e)){b.error("No conversion from "+bE.replace(" "," to "))}if(bL!==true){bF=bL?bL(bF):e(bB(bF))}}}}return bF}var aI=b.now(),y=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aI++)}});b.ajaxPrefilter("json jsonp",function(bJ,bG,bI){var bD=bJ.contentType==="application/x-www-form-urlencoded"&&(typeof bJ.data==="string");if(bJ.dataTypes[0]==="jsonp"||bJ.jsonp!==false&&(y.test(bJ.url)||bD&&y.test(bJ.data))){var bH,bC=bJ.jsonpCallback=b.isFunction(bJ.jsonpCallback)?bJ.jsonpCallback():bJ.jsonpCallback,bF=bh[bC],e=bJ.url,bE=bJ.data,bB="$1"+bC+"$2";if(bJ.jsonp!==false){e=e.replace(y,bB);if(bJ.url===e){if(bD){bE=bE.replace(y,bB)}if(bJ.data===bE){e+=(/\?/.test(e)?"&":"?")+bJ.jsonp+"="+bC}}}bJ.url=e;bJ.data=bE;bh[bC]=function(bK){bH=[bK]};bI.always(function(){bh[bC]=bF;if(bH&&b.isFunction(bF)){bh[bC](bH[0])}});bJ.converters["script json"]=function(){if(!bH){b.error(bC+" was not called")}return bH[0]};bJ.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(bC){if(bC.crossDomain){var e,bB=aB.head||aB.getElementsByTagName("head")[0]||aB.documentElement;return{send:function(bD,bE){e=aB.createElement("script");e.async="async";if(bC.scriptCharset){e.charset=bC.scriptCharset}e.src=bC.url;e.onload=e.onreadystatechange=function(bG,bF){if(bF||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bB&&e.parentNode){bB.removeChild(e)}e=P;if(!bF){bE(200,"success")}}};bB.insertBefore(e,bB.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var F=bh.ActiveXObject?function(){for(var e in R){R[e](0,1)}}:false,C=0,R;function aR(){try{return new bh.XMLHttpRequest()}catch(bB){}}function ap(){try{return new bh.ActiveXObject("Microsoft.XMLHTTP")}catch(bB){}}b.ajaxSettings.xhr=bh.ActiveXObject?function(){return !this.isLocal&&aR()||ap()}:aR;(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 bB;return{send:function(bH,bC){var bG=e.xhr(),bF,bE;if(e.username){bG.open(e.type,e.url,e.async,e.username,e.password)}else{bG.open(e.type,e.url,e.async)}if(e.xhrFields){for(bE in e.xhrFields){bG[bE]=e.xhrFields[bE]}}if(e.mimeType&&bG.overrideMimeType){bG.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bH["X-Requested-With"]){bH["X-Requested-With"]="XMLHttpRequest"}try{for(bE in bH){bG.setRequestHeader(bE,bH[bE])}}catch(bD){}bG.send((e.hasContent&&e.data)||null);bB=function(bQ,bK){var bL,bJ,bI,bO,bN;try{if(bB&&(bK||bG.readyState===4)){bB=P;if(bF){bG.onreadystatechange=b.noop;if(F){delete R[bF]}}if(bK){if(bG.readyState!==4){bG.abort()}}else{bL=bG.status;bI=bG.getAllResponseHeaders();bO={};bN=bG.responseXML;if(bN&&bN.documentElement){bO.xml=bN}bO.text=bG.responseText;try{bJ=bG.statusText}catch(bP){bJ=""}if(!bL&&e.isLocal&&!e.crossDomain){bL=bO.text?200:404}else{if(bL===1223){bL=204}}}}}catch(bM){if(!bK){bC(-1,bM)}}if(bO){bC(bL,bJ,bO,bI)}};if(!e.async||bG.readyState===4){bB()}else{bF=++C;if(F){if(!R){R={};b(bh).unload(F)}R[bF]=bB}bG.onreadystatechange=bB}},abort:function(){if(bB){bB(0,1)}}}}})}var U={},be,o,aH=/^(?:toggle|show|hide)$/,aZ=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a9,aN=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],ba;b.fn.extend({show:function(bD,bG,bF){var bC,bE;if(bD||bD===0){return this.animate(a6("show",3),bD,bG,bF)}else{for(var bB=0,e=this.length;bB<e;bB++){bC=this[bB];if(bC.style){bE=bC.style.display;if(!b._data(bC,"olddisplay")&&bE==="none"){bE=bC.style.display=""}if(bE===""&&b.css(bC,"display")==="none"){b._data(bC,"olddisplay",B(bC.nodeName))}}}for(bB=0;bB<e;bB++){bC=this[bB];if(bC.style){bE=bC.style.display;if(bE===""||bE==="none"){bC.style.display=b._data(bC,"olddisplay")||""}}}return this}},hide:function(bD,bG,bF){if(bD||bD===0){return this.animate(a6("hide",3),bD,bG,bF)}else{var bC,bE,bB=0,e=this.length;for(;bB<e;bB++){bC=this[bB];if(bC.style){bE=b.css(bC,"display");if(bE!=="none"&&!b._data(bC,"olddisplay")){b._data(bC,"olddisplay",bE)}}}for(bB=0;bB<e;bB++){if(this[bB].style){this[bB].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bC,bB,bD){var e=typeof bC==="boolean";if(b.isFunction(bC)&&b.isFunction(bB)){this._toggle.apply(this,arguments)}else{if(bC==null||e){this.each(function(){var bE=e?bC:b(this).is(":hidden");b(this)[bE?"show":"hide"]()})}else{this.animate(a6("toggle",3),bC,bB,bD)}}return this},fadeTo:function(e,bD,bC,bB){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bD},e,bC,bB)},animate:function(bF,bC,bE,bD){var e=b.speed(bC,bE,bD);if(b.isEmptyObject(bF)){return this.each(e.complete,[false])}bF=b.extend({},bF);function bB(){if(e.queue===false){b._mark(this)}var bK=b.extend({},e),bQ=this.nodeType===1,bO=bQ&&b(this).is(":hidden"),bH,bL,bJ,bP,bN,bI,bM,bR,bG;bK.animatedProperties={};for(bJ in bF){bH=b.camelCase(bJ);if(bJ!==bH){bF[bH]=bF[bJ];delete bF[bJ]}bL=bF[bH];if(b.isArray(bL)){bK.animatedProperties[bH]=bL[1];bL=bF[bH]=bL[0]}else{bK.animatedProperties[bH]=bK.specialEasing&&bK.specialEasing[bH]||bK.easing||"swing"}if(bL==="hide"&&bO||bL==="show"&&!bO){return bK.complete.call(this)}if(bQ&&(bH==="height"||bH==="width")){bK.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(bK.overflow!=null){this.style.overflow="hidden"}for(bJ in bF){bP=new b.fx(this,bK,bJ);bL=bF[bJ];if(aH.test(bL)){bG=b._data(this,"toggle"+bJ)||(bL==="toggle"?bO?"show":"hide":0);if(bG){b._data(this,"toggle"+bJ,bG==="show"?"hide":"show");bP[bG]()}else{bP[bL]()}}else{bN=aZ.exec(bL);bI=bP.cur();if(bN){bM=parseFloat(bN[2]);bR=bN[3]||(b.cssNumber[bJ]?"":"px");if(bR!=="px"){b.style(this,bJ,(bM||1)+bR);bI=((bM||1)/bP.cur())*bI;b.style(this,bJ,bI+bR)}if(bN[1]){bM=((bN[1]==="-="?-1:1)*bM)+bI}bP.custom(bI,bM,bR)}else{bP.custom(bI,bL,"")}}}return true}return e.queue===false?this.each(bB):this.queue(e.queue,bB)},stop:function(bC,bB,e){if(typeof bC!=="string"){e=bB;bB=bC;bC=P}if(bB&&bC!==false){this.queue(bC||"fx",[])}return this.each(function(){var bD,bE=false,bG=b.timers,bF=b._data(this);if(!e){b._unmark(true,this)}function bH(bK,bL,bJ){var bI=bL[bJ];b.removeData(bK,bJ,true);bI.stop(e)}if(bC==null){for(bD in bF){if(bF[bD]&&bF[bD].stop&&bD.indexOf(".run")===bD.length-4){bH(this,bF,bD)}}}else{if(bF[bD=bC+".run"]&&bF[bD].stop){bH(this,bF,bD)}}for(bD=bG.length;bD--;){if(bG[bD].elem===this&&(bC==null||bG[bD].queue===bC)){if(e){bG[bD](true)}else{bG[bD].saveState()}bE=true;bG.splice(bD,1)}}if(!(e&&bE)){b.dequeue(this,bC)}})}});function bn(){setTimeout(az,0);return(ba=b.now())}function az(){ba=P}function a6(bB,e){var bC={};b.each(aN.concat.apply([],aN.slice(0,e)),function(){bC[this]=bB});return bC}b.each({slideDown:a6("show",1),slideUp:a6("hide",1),slideToggle:a6("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bB){b.fn[e]=function(bC,bE,bD){return this.animate(bB,bC,bE,bD)}});b.extend({speed:function(bC,bD,bB){var e=bC&&typeof bC==="object"?b.extend({},bC):{complete:bB||!bB&&bD||b.isFunction(bC)&&bC,duration:bC,easing:bB&&bD||bD&&!b.isFunction(bD)&&bD};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(bE){if(b.isFunction(e.old)){e.old.call(this)}if(e.queue){b.dequeue(this,e.queue)}else{if(bE!==false){b._unmark(this)}}};return e},easing:{linear:function(bC,bD,e,bB){return e+bB*bC},swing:function(bC,bD,e,bB){return((-Math.cos(bC*Math.PI)/2)+0.5)*bB+e}},timers:[],fx:function(bB,e,bC){this.options=e;this.elem=bB;this.prop=bC;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,bB=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bB))?!bB||bB==="auto"?0:bB:e},custom:function(bF,bE,bD){var e=this,bC=b.fx;this.startTime=ba||bn();this.end=bE;this.now=this.start=bF;this.pos=this.state=0;this.unit=bD||this.unit||(b.cssNumber[this.prop]?"":"px");function bB(bG){return e.step(bG)}bB.queue=this.options.queue;bB.elem=this.elem;bB.saveState=function(){if(e.options.hide&&b._data(e.elem,"fxshow"+e.prop)===P){b._data(e.elem,"fxshow"+e.prop,e.start)}};if(bB()&&b.timers.push(bB)&&!a9){a9=setInterval(bC.tick,bC.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(bE){var bG,bH,bB,bD=ba||bn(),e=true,bF=this.elem,bC=this.options;if(bE||bD>=bC.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bC.animatedProperties[this.prop]=true;for(bG in bC.animatedProperties){if(bC.animatedProperties[bG]!==true){e=false}}if(e){if(bC.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bI,bJ){bF.style["overflow"+bJ]=bC.overflow[bI]})}if(bC.hide){b(bF).hide()}if(bC.hide||bC.show){for(bG in bC.animatedProperties){b.style(bF,bG,bC.orig[bG]);b.removeData(bF,"fxshow"+bG,true);b.removeData(bF,"toggle"+bG,true)}}bB=bC.complete;if(bB){bC.complete=false;bB.call(bF)}}return false}else{if(bC.duration==Infinity){this.now=bD}else{bH=bD-this.startTime;this.state=bH/bC.duration;this.pos=b.easing[bC.animatedProperties[this.prop]](this.state,bH,0,1,bC.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){var bC,bB=b.timers,e=0;for(;e<bB.length;e++){bC=bB[e];if(!bC()&&bB[e]===bC){bB.splice(e--,1)}}if(!bB.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a9);a9=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,bB){b.fx.step[bB]=function(bC){b.style(bC.elem,bB,Math.max(0,bC.now)+bC.unit)}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bB){return e===bB.elem}).length}}function B(bD){if(!U[bD]){var e=aB.body,bB=b("<"+bD+">").appendTo(e),bC=bB.css("display");bB.remove();if(bC==="none"||bC===""){if(!be){be=aB.createElement("iframe");be.frameBorder=be.width=be.height=0}e.appendChild(be);if(!o||!be.createElement){o=(be.contentWindow||be.contentDocument).document;o.write((aB.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");o.close()}bB=o.createElement(bD);o.body.appendChild(bB);bC=b.css(bB,"display");e.removeChild(be)}U[bD]=bC}return U[bD]}var Z=/^t(?:able|d|h)$/i,ai=/^(?:body|html)$/i;if("getBoundingClientRect" in aB.documentElement){b.fn.offset=function(bO){var bE=this[0],bH;if(bO){return this.each(function(e){b.offset.setOffset(this,bO,e)})}if(!bE||!bE.ownerDocument){return null}if(bE===bE.ownerDocument.body){return b.offset.bodyOffset(bE)}try{bH=bE.getBoundingClientRect()}catch(bL){}var bN=bE.ownerDocument,bC=bN.documentElement;if(!bH||!b.contains(bC,bE)){return bH?{top:bH.top,left:bH.left}:{top:0,left:0}}var bI=bN.body,bJ=aQ(bN),bG=bC.clientTop||bI.clientTop||0,bK=bC.clientLeft||bI.clientLeft||0,bB=bJ.pageYOffset||b.support.boxModel&&bC.scrollTop||bI.scrollTop,bF=bJ.pageXOffset||b.support.boxModel&&bC.scrollLeft||bI.scrollLeft,bM=bH.top+bB-bG,bD=bH.left+bF-bK;return{top:bM,left:bD}}}else{b.fn.offset=function(bL){var bF=this[0];if(bL){return this.each(function(bM){b.offset.setOffset(this,bL,bM)})}if(!bF||!bF.ownerDocument){return null}if(bF===bF.ownerDocument.body){return b.offset.bodyOffset(bF)}var bI,bC=bF.offsetParent,bB=bF,bK=bF.ownerDocument,bD=bK.documentElement,bG=bK.body,bH=bK.defaultView,e=bH?bH.getComputedStyle(bF,null):bF.currentStyle,bJ=bF.offsetTop,bE=bF.offsetLeft;while((bF=bF.parentNode)&&bF!==bG&&bF!==bD){if(b.support.fixedPosition&&e.position==="fixed"){break}bI=bH?bH.getComputedStyle(bF,null):bF.currentStyle;bJ-=bF.scrollTop;bE-=bF.scrollLeft;if(bF===bC){bJ+=bF.offsetTop;bE+=bF.offsetLeft;if(b.support.doesNotAddBorder&&!(b.support.doesAddBorderForTableAndCells&&Z.test(bF.nodeName))){bJ+=parseFloat(bI.borderTopWidth)||0;bE+=parseFloat(bI.borderLeftWidth)||0}bB=bC;bC=bF.offsetParent}if(b.support.subtractsBorderForOverflowNotVisible&&bI.overflow!=="visible"){bJ+=parseFloat(bI.borderTopWidth)||0;bE+=parseFloat(bI.borderLeftWidth)||0}e=bI}if(e.position==="relative"||e.position==="static"){bJ+=bG.offsetTop;bE+=bG.offsetLeft}if(b.support.fixedPosition&&e.position==="fixed"){bJ+=Math.max(bD.scrollTop,bG.scrollTop);bE+=Math.max(bD.scrollLeft,bG.scrollLeft)}return{top:bJ,left:bE}}}b.offset={bodyOffset:function(e){var bC=e.offsetTop,bB=e.offsetLeft;if(b.support.doesNotIncludeMarginInBodyOffset){bC+=parseFloat(b.css(e,"marginTop"))||0;bB+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bC,left:bB}},setOffset:function(bD,bM,bG){var bH=b.css(bD,"position");if(bH==="static"){bD.style.position="relative"}var bF=b(bD),bB=bF.offset(),e=b.css(bD,"top"),bK=b.css(bD,"left"),bL=(bH==="absolute"||bH==="fixed")&&b.inArray("auto",[e,bK])>-1,bJ={},bI={},bC,bE;if(bL){bI=bF.position();bC=bI.top;bE=bI.left}else{bC=parseFloat(e)||0;bE=parseFloat(bK)||0}if(b.isFunction(bM)){bM=bM.call(bD,bG,bB)}if(bM.top!=null){bJ.top=(bM.top-bB.top)+bC}if(bM.left!=null){bJ.left=(bM.left-bB.left)+bE}if("using" in bM){bM.using.call(bD,bJ)}else{bF.css(bJ)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bC=this[0],bB=this.offsetParent(),bD=this.offset(),e=ai.test(bB[0].nodeName)?{top:0,left:0}:bB.offset();bD.top-=parseFloat(b.css(bC,"marginTop"))||0;bD.left-=parseFloat(b.css(bC,"marginLeft"))||0;e.top+=parseFloat(b.css(bB[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bB[0],"borderLeftWidth"))||0;return{top:bD.top-e.top,left:bD.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||aB.body;while(e&&(!ai.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bB,e){var bC="scroll"+e;b.fn[bC]=function(bF){var bD,bE;if(bF===P){bD=this[0];if(!bD){return null}bE=aQ(bD);return bE?("pageXOffset" in bE)?bE[bB?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bE.document.documentElement[bC]||bE.document.body[bC]:bD[bC]}return this.each(function(){bE=aQ(this);if(bE){bE.scrollTo(!bB?bF:b(bE).scrollLeft(),bB?bF:b(bE).scrollTop())}else{this[bC]=bF}})}});function aQ(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bB,e){var bC=e.toLowerCase();b.fn["inner"+e]=function(){var bD=this[0];return bD?bD.style?parseFloat(b.css(bD,bC,"padding")):this[bC]():null};b.fn["outer"+e]=function(bE){var bD=this[0];return bD?bD.style?parseFloat(b.css(bD,bC,bE?"margin":"border")):this[bC]():null};b.fn[bC]=function(bF){var bG=this[0];if(!bG){return bF==null?null:this}if(b.isFunction(bF)){return this.each(function(bK){var bJ=b(this);bJ[bC](bF.call(this,bK,bJ[bC]()))})}if(b.isWindow(bG)){var bH=bG.document.documentElement["client"+e],bD=bG.document.body;return bG.document.compatMode==="CSS1Compat"&&bH||bD&&bD["client"+e]||bH}else{if(bG.nodeType===9){return Math.max(bG.documentElement["client"+e],bG.body["scroll"+e],bG.documentElement["scroll"+e],bG.body["offset"+e],bG.documentElement["offset"+e])}else{if(bF===P){var bI=b.css(bG,bC),bE=parseFloat(bI);return b.isNumeric(bE)?bE:bI}else{return this.css(bC,typeof bF==="string"?bF:bF+"px")}}}}});bh.jQuery=bh.$=b;if(typeof define==="function"&&define.amd&&define.amd.jQuery){define("jquery",[],function(){return b})}})(window);(function(e,b){function a(c){return !e(c).parents().andSelf().filter(function(){return e.curCSS(this,"visibility")==="hidden"||e.expr.filters.hidden(this)}).length}e.ui=e.ui||{};if(!e.ui.version){e.extend(e.ui,{version:"1.8.12",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}});e.fn.extend({_focus:e.fn.focus,focus:function(f,c){return typeof f==="number"?this.each(function(){var g=this;setTimeout(function(){e(g).focus();c&&c.call(g)},f)}):this._focus.apply(this,arguments)},scrollParent:function(){var c;c=e.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(e.curCSS(this,"position",1))&&/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(e.curCSS(this,"overflow",1)+e.curCSS(this,"overflow-y",1)+e.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!c.length?e(document):c},zIndex:function(f){if(f!==b){return this.css("zIndex",f)}if(this.length){f=e(this[0]);for(var c;f.length&&f[0]!==document;){c=f.css("position");if(c==="absolute"||c==="relative"||c==="fixed"){c=parseInt(f.css("zIndex"),10);if(!isNaN(c)&&c!==0){return c}}f=f.parent()}}return 0},disableSelection:function(){return this.bind((e.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(c){c.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});e.each(["Width","Height"],function(f,c){function l(p,o,n,h){e.each(k,function(){o-=parseFloat(e.curCSS(p,"padding"+this,true))||0;if(n){o-=parseFloat(e.curCSS(p,"border"+this+"Width",true))||0}if(h){o-=parseFloat(e.curCSS(p,"margin"+this,true))||0}});return o}var k=c==="Width"?["Left","Right"]:["Top","Bottom"],j=c.toLowerCase(),g={innerWidth:e.fn.innerWidth,innerHeight:e.fn.innerHeight,outerWidth:e.fn.outerWidth,outerHeight:e.fn.outerHeight};e.fn["inner"+c]=function(h){if(h===b){return g["inner"+c].call(this)}return this.each(function(){e(this).css(j,l(this,h)+"px")})};e.fn["outer"+c]=function(m,h){if(typeof m!=="number"){return g["outer"+c].call(this,m)}return this.each(function(){e(this).css(j,l(this,m,true,h)+"px")})}});e.extend(e.expr[":"],{data:function(f,c,g){return !!e.data(f,g[3])},focusable:function(f){var c=f.nodeName.toLowerCase(),g=e.attr(f,"tabindex");if("area"===c){c=f.parentNode;g=c.name;if(!f.href||!g||c.nodeName.toLowerCase()!=="map"){return false}f=e("img[usemap=#"+g+"]")[0];return !!f&&a(f)}return(/input|select|textarea|button|object/.test(c)?!f.disabled:"a"==c?f.href||!isNaN(g):!isNaN(g))&&a(f)},tabbable:function(f){var c=e.attr(f,"tabindex");return(isNaN(c)||c>=0)&&e(f).is(":focusable")}});e(function(){var f=document.body,c=f.appendChild(c=document.createElement("div"));e.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});e.support.minHeight=c.offsetHeight===100;e.support.selectstart="onselectstart" in c;f.removeChild(c).style.display="none"});e.extend(e.ui,{plugin:{add:function(f,c,h){f=e.ui[f].prototype;for(var g in h){f.plugins[g]=f.plugins[g]||[];f.plugins[g].push([c,h[g]])}},call:function(f,c,h){if((c=f.plugins[c])&&f.element[0].parentNode){for(var g=0;g<c.length;g++){f.options[c[g][0]]&&c[g][1].apply(f.element,h)}}}},contains:function(f,c){return document.compareDocumentPosition?f.compareDocumentPosition(c)&16:f!==c&&f.contains(c)},hasScroll:function(f,c){if(e(f).css("overflow")==="hidden"){return false}c=c&&c==="left"?"scrollLeft":"scrollTop";var g=false;if(f[c]>0){return true}f[c]=1;g=f[c]>0;f[c]=0;return g},isOverAxis:function(f,c,g){return f>c&&f<c+g},isOver:function(f,c,l,k,j,g){return e.ui.isOverAxis(f,l,j)&&e.ui.isOverAxis(c,k,g)}})}})(jQuery);(function(a,f){if(a.cleanData){var e=a.cleanData;a.cleanData=function(b){for(var h=0,g;(g=b[h])!=null;h++){a(g).triggerHandler("remove")}e(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,g){return this.each(function(){if(!g){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")})}}return c.call(a(this),b,g)})}}a.widget=function(b,k,j){var h=b.split(".")[0],g;b=b.split(".")[1];g=h+"-"+b;if(!j){j=k;k=a.Widget}a.expr[":"][g]=function(l){return !!a.data(l,b)};a[h]=a[h]||{};a[h][b]=function(l,m){arguments.length&&this._createWidget(l,m)};k=new k;k.options=a.extend(true,{},k.options);a[h][b].prototype=a.extend(true,k,{namespace:h,widgetName:b,widgetEventPrefix:a[h][b].prototype.widgetEventPrefix||b,widgetBaseClass:g},j);a.widget.bridge(b,a[h][b])};a.widget.bridge=function(b,g){a.fn[b]=function(m){var l=typeof m==="string",k=Array.prototype.slice.call(arguments,1),j=this;m=!l&&k.length?a.extend.apply(null,[true,m].concat(k)):m;if(l&&m.charAt(0)==="_"){return j}l?this.each(function(){var n=a.data(this,b),h=n&&a.isFunction(n[m])?n[m].apply(n,k):n;if(h!==n&&h!==f){j=h;return false}}):this.each(function(){var h=a.data(this,b);h?h.option(m||{})._init():a.data(this,b,new g(m,this))});return j}};a.Widget=function(b,g){arguments.length&&this._createWidget(b,g)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,h){a.data(h,this.widgetName,this);this.element=a(h);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var g=this;this.element.bind("remove."+this.widgetName,function(){g.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return a.metadata&&a.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(b,h){var g=b;if(arguments.length===0){return a.extend({},this.options)}if(typeof b==="string"){if(h===f){return this.options[b]}g={};g[b]=h}this._setOptions(g);return this},_setOptions:function(b){var g=this;a.each(b,function(j,h){g._setOption(j,h)});return this},_setOption:function(b,g){this.options[b]=g;if(b==="disabled"){this.widget()[g?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",g)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(b,k,j){var h=this.options[b];k=a.Event(k);k.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase();j=j||{};if(k.originalEvent){b=a.event.props.length;for(var g;b;){g=a.event.props[--b];k[g]=k.originalEvent[g]}}this.element.trigger(k,j);return !(a.isFunction(h)&&h.call(this.element[0],k,j)===false||k.isDefaultPrevented())}}})(jQuery);(function(a){a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(e){return b._mouseDown(e)}).bind("click."+this.widgetName,function(e){if(true===a.data(e.target,b.widgetName+".preventClickEvent")){a.removeData(e.target,b.widgetName+".preventClickEvent");e.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){b.originalEvent=b.originalEvent||{};if(!b.originalEvent.mouseHandled){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var j=this,h=b.which==1,g=typeof this.options.cancel=="string"?a(b.target).parents().add(b.target).filter(this.options.cancel).length:false;if(!h||g||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){j.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==false;if(!this._mouseStarted){b.preventDefault();return true}}true===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent");this._mouseMoveDelegate=function(c){return j._mouseMove(c)};this._mouseUpDelegate=function(c){return j._mouseUp(c)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return b.originalEvent.mouseHandled=true}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button){return this._mouseUp(b)}if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==false)?this._mouseDrag(b):this._mouseUp(b)}return !this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",true);this._mouseStop(b)}return false},_mouseDistanceMet:function(b){return Math.max(Math.abs(this._mouseDownEvent.pageX-b.pageX),Math.abs(this._mouseDownEvent.pageY-b.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return true}})})(jQuery);(function(g){g.ui=g.ui||{};var f=/left|center|right/,e=/top|center|bottom/,b=g.fn.position,a=g.fn.offset;g.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)}c=g.extend({},c);var l=g(c.of),s=l[0],p=(c.collision||"flip").split(" "),q=c.offset?c.offset.split(" "):[0,0],o,m,n;if(s.nodeType===9){o=l.width();m=l.height();n={top:0,left:0}}else{if(s.setTimeout){o=l.width();m=l.height();n={top:l.scrollTop(),left:l.scrollLeft()}}else{if(s.preventDefault){c.at="left top";o=m=0;n={top:c.of.pageY,left:c.of.pageX}}else{o=l.outerWidth();m=l.outerHeight();n=l.offset()}}}g.each(["my","at"],function(){var h=(c[this]||"").split(" ");if(h.length===1){h=f.test(h[0])?h.concat(["center"]):e.test(h[0])?["center"].concat(h):["center","center"]}h[0]=f.test(h[0])?h[0]:"center";h[1]=e.test(h[1])?h[1]:"center";c[this]=h});if(p.length===1){p[1]=p[0]}q[0]=parseInt(q[0],10)||0;if(q.length===1){q[1]=q[0]}q[1]=parseInt(q[1],10)||0;if(c.at[0]==="right"){n.left+=o}else{if(c.at[0]==="center"){n.left+=o/2}}if(c.at[1]==="bottom"){n.top+=m}else{if(c.at[1]==="center"){n.top+=m/2}}n.left+=q[0];n.top+=q[1];return this.each(function(){var z=g(this),x=z.outerWidth(),u=z.outerHeight(),k=parseInt(g.curCSS(this,"marginLeft",true))||0,j=parseInt(g.curCSS(this,"marginTop",true))||0,B=x+k+(parseInt(g.curCSS(this,"marginRight",true))||0),A=u+j+(parseInt(g.curCSS(this,"marginBottom",true))||0),y=g.extend({},n),h;if(c.my[0]==="right"){y.left-=x}else{if(c.my[0]==="center"){y.left-=x/2}}if(c.my[1]==="bottom"){y.top-=u}else{if(c.my[1]==="center"){y.top-=u/2}}y.left=Math.round(y.left);y.top=Math.round(y.top);h={left:y.left-k,top:y.top-j};g.each(["left","top"],function(w,v){g.ui.position[p[w]]&&g.ui.position[p[w]][v](y,{targetWidth:o,targetHeight:m,elemWidth:x,elemHeight:u,collisionPosition:h,collisionWidth:B,collisionHeight:A,offset:q,my:c.my,at:c.at})});g.fn.bgiframe&&z.bgiframe();z.offset(g.extend(y,{using:c.using}))})};g.ui.position={fit:{left:function(c,h){var j=g(window);j=h.collisionPosition.left+h.collisionWidth-j.width()-j.scrollLeft();c.left=j>0?c.left-j:Math.max(c.left-h.collisionPosition.left,c.left)},top:function(c,h){var j=g(window);j=h.collisionPosition.top+h.collisionHeight-j.height()-j.scrollTop();c.top=j>0?c.top-j:Math.max(c.top-h.collisionPosition.top,c.top)}},flip:{left:function(c,j){if(j.at[0]!=="center"){var n=g(window);n=j.collisionPosition.left+j.collisionWidth-n.width()-n.scrollLeft();var l=j.my[0]==="left"?-j.elemWidth:j.my[0]==="right"?j.elemWidth:0,m=j.at[0]==="left"?j.targetWidth:-j.targetWidth,k=-2*j.offset[0];c.left+=j.collisionPosition.left<0?l+m+k:n>0?l+m+k:0}},top:function(c,j){if(j.at[1]!=="center"){var n=g(window);n=j.collisionPosition.top+j.collisionHeight-n.height()-n.scrollTop();var l=j.my[1]==="top"?-j.elemHeight:j.my[1]==="bottom"?j.elemHeight:0,m=j.at[1]==="top"?j.targetHeight:-j.targetHeight,k=-2*j.offset[1];c.top+=j.collisionPosition.top<0?l+m+k:n>0?l+m+k:0}}}};if(!g.offset.setOffset){g.offset.setOffset=function(c,j){if(/static/.test(g.curCSS(c,"position"))){c.style.position="relative"}var n=g(c),l=n.offset(),m=parseInt(g.curCSS(c,"top",true),10)||0,k=parseInt(g.curCSS(c,"left",true),10)||0;l={top:j.top-l.top+m,left:j.left-l.left+k};"using" in j?j.using.call(c,l):n.css(l)};g.fn.offset=function(c){var h=this[0];if(!h||!h.ownerDocument){return null}if(c){return this.each(function(){g.offset.setOffset(this,c)})}return a.call(this)}}})(jQuery);(function(a){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")){this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy();return this}},_mouseCapture:function(e){var c=this.options;if(this.helper||c.disabled||a(e.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(e);if(!this.handle){return false}return true},_mouseStart:function(e){var c=this.options;this.helper=this._createHelper(e);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:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",e)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,e);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(e,true);return true},_mouseDrag:function(e,c){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!c){c=this._uiHash();if(this._trigger("drag",e,c)===false){this._mouseUp({});return false}this.position=c.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"}a.ui.ddmanager&&a.ui.ddmanager.drag(this,e);return false},_mouseStop:function(f){var e=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){e=a.ui.ddmanager.drop(this,f)}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 g=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){g._trigger("stop",f)!==false&&g._clear()})}else{this._trigger("stop",f)!==false&&this._clear()}return false},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(e){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==e.target){c=true}});return c},_createHelper:function(e){var c=this.options;e=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[e])):c.helper=="clone"?this.element.clone():this.element;e.parents("body").length||e.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);e[0]!=this.element[0]&&!/(fixed|absolute)/.test(e.css("position"))&&e.css("position","absolute");return e},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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 f=this.options;if(f.containment=="parent"){f.containment=this.helper[0].parentNode}if(f.containment=="document"||f.containment=="window"){this.containment=[(f.containment=="document"?0:a(window).scrollLeft())-this.offset.relative.left-this.offset.parent.left,(f.containment=="document"?0:a(window).scrollTop())-this.offset.relative.top-this.offset.parent.top,(f.containment=="document"?0:a(window).scrollLeft())+a(f.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(f.containment=="document"?0:a(window).scrollTop())+(a(f.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(f.containment)&&f.containment.constructor!=Array){var e=a(f.containment)[0];if(e){f=a(f.containment).offset();var g=a(e).css("overflow")!="hidden";this.containment=[f.left+(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0),f.top+(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0),f.left+(g?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,f.top+(g?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]}}else{if(f.containment.constructor==Array){this.containment=f.containment}}},_convertPositionTo:function(g,e){if(!e){e=this.position}g=g=="absolute"?1:-1;var j=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(j[0].tagName);return{top:e.top+this.offset.relative.top*g+this.offset.parent.top*g-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:j.scrollTop())*g),left:e.left+this.offset.relative.left*g+this.offset.parent.left*g-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:j.scrollLeft())*g)}},_generatePosition:function(j){var h=this.options,n=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,l=/(html|body)/i.test(n[0].tagName),m=j.pageX,k=j.pageY;if(this.originalPosition){if(this.containment){if(j.pageX-this.offset.click.left<this.containment[0]){m=this.containment[0]+this.offset.click.left}if(j.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top}if(j.pageX-this.offset.click.left>this.containment[2]){m=this.containment[2]+this.offset.click.left}if(j.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top}}if(h.grid){k=this.originalPageY+Math.round((k-this.originalPageY)/h.grid[1])*h.grid[1];k=this.containment?!(k-this.offset.click.top<this.containment[1]||k-this.offset.click.top>this.containment[3])?k:!(k-this.offset.click.top<this.containment[1])?k-h.grid[1]:k+h.grid[1]:k;m=this.originalPageX+Math.round((m-this.originalPageX)/h.grid[0])*h.grid[0];m=this.containment?!(m-this.offset.click.left<this.containment[0]||m-this.offset.click.left>this.containment[2])?m:!(m-this.offset.click.left<this.containment[0])?m-h.grid[0]:m+h.grid[0]:m}}return{top:k-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():l?0:n.scrollTop()),left:m-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():l?0:n.scrollLeft())}},_clear:function(){this.helper.removeClass("ui-draggable-dragging");this.helper[0]!=this.element[0]&&!this.cancelHelperRemoval&&this.helper.remove();this.helper=null;this.cancelHelperRemoval=false},_trigger:function(f,e,g){g=g||this._uiHash();a.ui.plugin.call(this,f,[e,g]);if(f=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,f,e,g)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.12"});a.ui.plugin.add("draggable","connectToSortable",{start:function(h,g){var l=a(this).data("draggable"),j=l.options,k=a.extend({},g,{item:l.element});l.sortables=[];a(j.connectToSortable).each(function(){var b=a.data(this,"sortable");if(b&&!b.options.disabled){l.sortables.push({instance:b,shouldRevert:b.options.revert});b.refreshPositions();b._trigger("activate",h,k)}})},stop:function(g,e){var j=a(this).data("draggable"),h=a.extend({},e,{item:j.element});a.each(j.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;j.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(g);this.instance.options.helper=this.instance.options._helper;j.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",g,h)}})},drag:function(g,e){var j=a(this).data("draggable"),h=this;a.each(j.sortables,function(){this.instance.positionAbs=j.positionAbs;this.instance.helperProportions=j.helperProportions;this.instance.offset.click=j.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(h).clone().appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return e.helper[0]};g.target=this.instance.currentItem[0];this.instance._mouseCapture(g,true);this.instance._mouseStart(g,true,true);this.instance.offset.click.top=j.offset.click.top;this.instance.offset.click.left=j.offset.click.left;this.instance.offset.parent.left-=j.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=j.offset.parent.top-this.instance.offset.parent.top;j._trigger("toSortable",g);j.dropped=this.instance.element;j.currentItem=j.element;this.instance.fromOutside=j}this.instance.currentItem&&this.instance._mouseDrag(g)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",g,this.instance._uiHash(this.instance));this.instance._mouseStop(g,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();j._trigger("fromSortable",g);j.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var e=a("body"),c=a(this).data("draggable").options;if(e.css("cursor")){c._cursor=e.css("cursor")}e.css("cursor",c.cursor)},stop:function(){var b=a(this).data("draggable").options;b._cursor&&a("body").css("cursor",b._cursor)}});a.ui.plugin.add("draggable","iframeFix",{start:function(){var b=a(this).data("draggable").options;a(b.iframeFix===true?"iframe":b.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(e,c){e=a(c.helper);c=a(this).data("draggable").options;if(e.css("opacity")){c._opacity=e.css("opacity")}e.css("opacity",c.opacity)},stop:function(e,c){e=a(this).data("draggable").options;e._opacity&&a(c.helper).css("opacity",e._opacity)}});a.ui.plugin.add("draggable","scroll",{start:function(){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(g){var e=a(this).data("draggable"),j=e.options,h=false;if(e.scrollParent[0]!=document&&e.scrollParent[0].tagName!="HTML"){if(!j.axis||j.axis!="x"){if(e.overflowOffset.top+e.scrollParent[0].offsetHeight-g.pageY<j.scrollSensitivity){e.scrollParent[0].scrollTop=h=e.scrollParent[0].scrollTop+j.scrollSpeed}else{if(g.pageY-e.overflowOffset.top<j.scrollSensitivity){e.scrollParent[0].scrollTop=h=e.scrollParent[0].scrollTop-j.scrollSpeed}}}if(!j.axis||j.axis!="y"){if(e.overflowOffset.left+e.scrollParent[0].offsetWidth-g.pageX<j.scrollSensitivity){e.scrollParent[0].scrollLeft=h=e.scrollParent[0].scrollLeft+j.scrollSpeed}else{if(g.pageX-e.overflowOffset.left<j.scrollSensitivity){e.scrollParent[0].scrollLeft=h=e.scrollParent[0].scrollLeft-j.scrollSpeed}}}}else{if(!j.axis||j.axis!="x"){if(g.pageY-a(document).scrollTop()<j.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()-j.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<j.scrollSensitivity){h=a(document).scrollTop(a(document).scrollTop()+j.scrollSpeed)}}}if(!j.axis||j.axis!="y"){if(g.pageX-a(document).scrollLeft()<j.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()-j.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<j.scrollSensitivity){h=a(document).scrollLeft(a(document).scrollLeft()+j.scrollSpeed)}}}}h!==false&&a.ui.ddmanager&&!j.dropBehaviour&&a.ui.ddmanager.prepareOffsets(e,g)}});a.ui.plugin.add("draggable","snap",{start:function(){var e=a(this).data("draggable"),c=e.options;e.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var g=a(this),b=g.offset();this!=e.element[0]&&e.snapElements.push({item:this,width:g.outerWidth(),height:g.outerHeight(),top:b.top,left:b.left})})},drag:function(M,L){for(var K=a(this).data("draggable"),I=K.options,J=I.snapTolerance,H=L.offset.left,A=H+K.helperProportions.width,B=L.offset.top,z=B+K.helperProportions.height,G=K.snapElements.length-1;G>=0;G--){var F=K.snapElements[G].left,D=F+K.snapElements[G].width,E=K.snapElements[G].top,C=E+K.snapElements[G].height;if(F-J<H&&H<D+J&&E-J<B&&B<C+J||F-J<H&&H<D+J&&E-J<z&&z<C+J||F-J<A&&A<D+J&&E-J<B&&B<C+J||F-J<A&&A<D+J&&E-J<z&&z<C+J){if(I.snapMode!="inner"){var y=Math.abs(E-z)<=J,x=Math.abs(C-B)<=J,w=Math.abs(F-A)<=J,v=Math.abs(D-H)<=J;if(y){L.position.top=K._convertPositionTo("relative",{top:E-K.helperProportions.height,left:0}).top-K.margins.top}if(x){L.position.top=K._convertPositionTo("relative",{top:C,left:0}).top-K.margins.top}if(w){L.position.left=K._convertPositionTo("relative",{top:0,left:F-K.helperProportions.width}).left-K.margins.left}if(v){L.position.left=K._convertPositionTo("relative",{top:0,left:D}).left-K.margins.left}}var u=y||x||w||v;if(I.snapMode!="outer"){y=Math.abs(E-B)<=J;x=Math.abs(C-z)<=J;w=Math.abs(F-H)<=J;v=Math.abs(D-A)<=J;if(y){L.position.top=K._convertPositionTo("relative",{top:E,left:0}).top-K.margins.top}if(x){L.position.top=K._convertPositionTo("relative",{top:C-K.helperProportions.height,left:0}).top-K.margins.top}if(w){L.position.left=K._convertPositionTo("relative",{top:0,left:F}).left-K.margins.left}if(v){L.position.left=K._convertPositionTo("relative",{top:0,left:D-K.helperProportions.width}).left-K.margins.left}}if(!K.snapElements[G].snapping&&(y||x||w||v||u)){K.options.snap.snap&&K.options.snap.snap.call(K.element,M,a.extend(K._uiHash(),{snapItem:K.snapElements[G].item}))}K.snapElements[G].snapping=y||x||w||v||u}else{K.snapElements[G].snapping&&K.options.snap.release&&K.options.snap.release.call(K.element,M,a.extend(K._uiHash(),{snapItem:K.snapElements[G].item}));K.snapElements[G].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var e=a(this).data("draggable").options;e=a.makeArray(a(e.stack)).sort(function(g,b){return(parseInt(a(g).css("zIndex"),10)||0)-(parseInt(a(b).css("zIndex"),10)||0)});if(e.length){var c=parseInt(e[0].style.zIndex)||0;a(e).each(function(b){this.style.zIndex=c+b});this[0].style.zIndex=c+e.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(e,c){e=a(c.helper);c=a(this).data("draggable").options;if(e.css("zIndex")){c._zIndex=e.css("zIndex")}e.css("zIndex",c.zIndex)},stop:function(e,c){e=a(this).data("draggable").options;e._zIndex&&a(c.helper).css("zIndex",e._zIndex)}})})(jQuery);(function(a){a.widget("ui.droppable",{widgetEventPrefix:"drop",options:{accept:"*",activeClass:false,addClasses:true,greedy:false,hoverClass:false,scope:"default",tolerance:"intersect"},_create:function(){var e=this.options,c=e.accept;this.isover=0;this.isout=1;this.accept=a.isFunction(c)?c:function(b){return b.is(c)};this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};a.ui.ddmanager.droppables[e.scope]=a.ui.ddmanager.droppables[e.scope]||[];a.ui.ddmanager.droppables[e.scope].push(this);e.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var e=a.ui.ddmanager.droppables[this.options.scope],c=0;c<e.length;c++){e[c]==this&&e.splice(c,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(e,c){if(e=="accept"){this.accept=a.isFunction(c)?c:function(b){return b.is(c)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);c&&this._trigger("activate",e,this.ui(c))},_deactivate:function(e){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);c&&this._trigger("deactivate",e,this.ui(c))},_over:function(e){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",e,this.ui(c))}}},_out:function(e){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",e,this.ui(c))}}},_drop:function(g,f){var j=f||a.ui.ddmanager.current;if(!j||(j.currentItem||j.element)[0]==this.element[0]){return false}var h=false;this.element.find(":data(droppable)").not(".ui-draggable-dragging").each(function(){var b=a.data(this,"droppable");if(b.options.greedy&&!b.options.disabled&&b.options.scope==j.options.scope&&b.accept.call(b.element[0],j.currentItem||j.element)&&a.ui.intersect(j,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){h=true;return false}});if(h){return false}if(this.accept.call(this.element[0],j.currentItem||j.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",g,this.ui(j));return this.element}return false},ui:function(b){return{draggable:b.currentItem||b.element,helper:b.helper,position:b.position,offset:b.positionAbs}}});a.extend(a.ui.droppable,{version:"1.8.12"});a.ui.intersect=function(y,x,w){if(!x.offset){return false}var v=(y.positionAbs||y.position.absolute).left,s=v+y.helperProportions.width,u=(y.positionAbs||y.position.absolute).top,q=u+y.helperProportions.height,p=x.offset.left,n=p+x.proportions.width,o=x.offset.top,m=o+x.proportions.height;switch(w){case"fit":return p<=v&&s<=n&&o<=u&&q<=m;case"intersect":return p<v+y.helperProportions.width/2&&s-y.helperProportions.width/2<n&&o<u+y.helperProportions.height/2&&q-y.helperProportions.height/2<m;case"pointer":return a.ui.isOver((y.positionAbs||y.position.absolute).top+(y.clickOffset||y.offset.click).top,(y.positionAbs||y.position.absolute).left+(y.clickOffset||y.offset.click).left,o,p,x.proportions.height,x.proportions.width);case"touch":return(u>=o&&u<=m||q>=o&&q<=m||u<o&&q>m)&&(v>=p&&v<=n||s>=p&&s<=n||v<p&&s>n);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(k,j){var p=a.ui.ddmanager.droppables[k.options.scope]||[],o=j?j.type:null,m=(k.currentItem||k.element).find(":data(droppable)").andSelf(),n=0;k:for(;n<p.length;n++){if(!(p[n].options.disabled||k&&!p[n].accept.call(p[n].element[0],k.currentItem||k.element))){for(var l=0;l<m.length;l++){if(m[l]==p[n].element[0]){p[n].proportions.height=0;continue k}}p[n].visible=p[n].element.css("display")!="none";if(p[n].visible){o=="mousedown"&&p[n]._activate.call(p[n],j);p[n].offset=p[n].element.offset();p[n].proportions={width:p[n].element[0].offsetWidth,height:p[n].element[0].offsetHeight}}}}},drop:function(f,e){var g=false;a.each(a.ui.ddmanager.droppables[f.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(f,this,this.options.tolerance)){g=g||this._drop.call(this,e)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],f.currentItem||f.element)){this.isout=1;this.isover=0;this._deactivate.call(this,e)}}});return g},drag:function(e,c){e.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(e,c);a.each(a.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=a.ui.intersect(e,this,this.options.tolerance);if(h=!h&&this.isover==1?"isout":h&&this.isover==0?"isover":null){var f;if(this.options.greedy){var b=this.element.parents(":data(droppable):eq(0)");if(b.length){f=a.data(b[0],"droppable");f.greedyChild=h=="isover"?1:0}}if(f&&h=="isover"){f.isover=0;f.isout=1;f._out.call(f,c)}this[h]=1;this[h=="isout"?"isover":"isout"]=0;this[h=="isover"?"_over":"_out"].call(this,c);if(f&&h=="isout"){f.isout=0;f.isover=1;f._over.call(f,c)}}}})}}})(jQuery);(function(c){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 e=this,h=this.options;this.element.addClass("ui-resizable");c.extend(this,{_aspectRatio:!!h.aspectRatio,aspectRatio:h.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:h.helper||h.ghost||h.animate?h.helper||"ui-resizable-helper":null});if(this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)){/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=h.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 m=this.handles.split(",");this.handles={};for(var l=0;l<m.length;l++){var k=c.trim(m[l]),j=c('<div class="ui-resizable-handle '+("ui-resizable-"+k)+'"></div>');/sw|se|ne|nw/.test(k)&&j.css({zIndex:++h.zIndex});"se"==k&&j.addClass("ui-icon ui-icon-gripsmall-diagonal-se");this.handles[k]=".ui-resizable-"+k;this.element.append(j)}}this._renderAxis=function(o){o=o||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 g=c(this.handles[n],this.element),f=0;f=/sw|ne|nw|se|n|s/.test(n)?g.outerHeight():g.outerWidth();g=["padding",/ne|nw|n/.test(n)?"Top":/se|sw|s/.test(n)?"Bottom":/^e$/.test(n)?"Right":"Left"].join("");o.css(g,f);this._proportionallyResize()}c(this.handles[n])}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var f=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=f&&f[1]?f[1]:"se"}});if(h.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._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(e){var f=false;for(var g in this.handles){if(c(this.handles[g])[0]==e.target){f=true}}return !this.options.disabled&&f},_mouseStart:function(e){var g=this.options,k=this.element.position(),j=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(j.is(".ui-draggable")||/absolute/.test(j.css("position"))){j.css({position:"absolute",top:k.top,left:k.left})}c.browser.opera&&/relative/.test(j.css("position"))&&j.css({position:"relative",top:"auto",left:"auto"});this._renderProxy();k=a(this.helper.css("left"));var h=a(this.helper.css("top"));if(g.containment){k+=c(g.containment).scrollLeft()||0;h+=c(g.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:k,top:h};this.size=this._helper?{width:j.outerWidth(),height:j.outerHeight()}:{width:j.width(),height:j.height()};this.originalSize=this._helper?{width:j.outerWidth(),height:j.outerHeight()}:{width:j.width(),height:j.height()};this.originalPosition={left:k,top:h};this.sizeDiff={width:j.outerWidth()-j.width(),height:j.outerHeight()-j.height()};this.originalMousePosition={left:e.pageX,top:e.pageY};this.aspectRatio=typeof g.aspectRatio=="number"?g.aspectRatio:this.originalSize.width/this.originalSize.height||1;g=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",g=="auto"?this.axis+"-resize":g);j.addClass("ui-resizable-resizing");this._propagate("start",e);return true},_mouseDrag:function(e){var f=this.helper,h=this.originalMousePosition,g=this._change[this.axis];if(!g){return false}h=g.apply(this,[e,e.pageX-h.left||0,e.pageY-h.top||0]);if(this._aspectRatio||e.shiftKey){h=this._updateRatio(h,e)}h=this._respectSize(h,e);this._propagate("resize",e);f.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize();this._updateCache(h);this._trigger("resize",e,this.ui());return false},_mouseStop:function(e){this.resizing=false;var h=this.options,m=this;if(this._helper){var l=this._proportionallyResizeElements,k=l.length&&/textarea/i.test(l[0].nodeName);l=k&&c.ui.hasScroll(l[0],"left")?0:m.sizeDiff.height;k=k?0:m.sizeDiff.width;k={width:m.helper.width()-k,height:m.helper.height()-l};l=parseInt(m.element.css("left"),10)+(m.position.left-m.originalPosition.left)||null;var j=parseInt(m.element.css("top"),10)+(m.position.top-m.originalPosition.top)||null;h.animate||this.element.css(c.extend(k,{top:j,left:l}));m.helper.height(m.size.height);m.helper.width(m.size.width);this._helper&&!h.animate&&this._proportionallyResize()}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",e);this._helper&&this.helper.remove();return false},_updateCache:function(e){this.offset=this.helper.offset();if(b(e.left)){this.position.left=e.left}if(b(e.top)){this.position.top=e.top}if(b(e.height)){this.size.height=e.height}if(b(e.width)){this.size.width=e.width}},_updateRatio:function(e){var f=this.position,h=this.size,g=this.axis;if(e.height){e.width=h.height*this.aspectRatio}else{if(e.width){e.height=h.width/this.aspectRatio}}if(g=="sw"){e.left=f.left+(h.width-e.width);e.top=null}if(g=="nw"){e.top=f.top+(h.height-e.height);e.left=f.left+(h.width-e.width)}return e},_respectSize:function(u){var v=this.options,s=this.axis,q=b(u.width)&&v.maxWidth&&v.maxWidth<u.width,p=b(u.height)&&v.maxHeight&&v.maxHeight<u.height,o=b(u.width)&&v.minWidth&&v.minWidth>u.width,n=b(u.height)&&v.minHeight&&v.minHeight>u.height;if(o){u.width=v.minWidth}if(n){u.height=v.minHeight}if(q){u.width=v.maxWidth}if(p){u.height=v.maxHeight}var m=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,e=/sw|nw|w/.test(s);s=/nw|ne|n/.test(s);if(o&&e){u.left=m-v.minWidth}if(q&&e){u.left=m-v.maxWidth}if(n&&s){u.top=l-v.minHeight}if(p&&s){u.top=l-v.maxHeight}if((v=!u.width&&!u.height)&&!u.left&&u.top){u.top=null}else{if(v&&!u.top&&u.left){u.left=null}}return u},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){for(var e=this.helper||this.element,g=0;g<this._proportionallyResizeElements.length;g++){var k=this._proportionallyResizeElements[g];if(!this.borderDif){var j=[k.css("borderTopWidth"),k.css("borderRightWidth"),k.css("borderBottomWidth"),k.css("borderLeftWidth")],h=[k.css("paddingTop"),k.css("paddingRight"),k.css("paddingBottom"),k.css("paddingLeft")];this.borderDif=c.map(j,function(l,f){l=parseInt(l,10)||0;f=parseInt(h[f],10)||0;return l+f})}c.browser.msie&&(c(e).is(":hidden")||c(e).parents(":hidden").length)||k.css({height:e.height()-this.borderDif[0]-this.borderDif[2]||0,width:e.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var f=c.browser.msie&&c.browser.version<7,g=f?1:0;f=f?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+f,height:this.element.outerHeight()+f,position:"absolute",left:this.elementOffset.left-g+"px",top:this.elementOffset.top-g+"px",zIndex:++e.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(e,f){return{width:this.originalSize.width+f}},w:function(e,f){return{left:this.originalPosition.left+f,width:this.originalSize.width-f}},n:function(e,f,g){return{top:this.originalPosition.top+g,height:this.originalSize.height-g}},s:function(e,f,g){return{height:this.originalSize.height+g}},se:function(e,f,g){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,f,g]))},sw:function(e,f,g){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,f,g]))},ne:function(e,f,g){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,f,g]))},nw:function(e,f,g){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,f,g]))}},_propagate:function(e,f){c.ui.plugin.call(this,e,[f,this.ui()]);e!="resize"&&this._trigger(e,f,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.12"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var e=c(this).data("resizable").options,f=function(g){c(g).each(function(){var h=c(this);h.data("resizable-alsoresize",{width:parseInt(h.width(),10),height:parseInt(h.height(),10),left:parseInt(h.css("left"),10),top:parseInt(h.css("top"),10),position:h.css("position")})})};if(typeof e.alsoResize=="object"&&!e.alsoResize.parentNode){if(e.alsoResize.length){e.alsoResize=e.alsoResize[0];f(e.alsoResize)}else{c.each(e.alsoResize,function(g){f(g)})}}else{f(e.alsoResize)}},resize:function(e,j){var o=c(this).data("resizable");e=o.options;var n=o.originalSize,m=o.originalPosition,l={height:o.size.height-n.height||0,width:o.size.width-n.width||0,top:o.position.top-m.top||0,left:o.position.left-m.left||0},k=function(g,f){c(g).each(function(){var h=c(this),u=c(this).data("resizable-alsoresize"),v={},s=f&&f.length?f:h.parents(j.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(s,function(q,p){if((q=(u[p]||0)+(l[p]||0))&&q>=0){v[p]=q||null}});if(c.browser.opera&&/relative/.test(h.css("position"))){o._revertToRelativePosition=true;h.css({position:"absolute",top:"auto",left:"auto"})}h.css(v)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?c.each(e.alsoResize,function(g,f){k(g,f)}):k(e.alsoResize)},stop:function(){var e=c(this).data("resizable"),f=e.options,g=function(h){c(h).each(function(){var j=c(this);j.css({position:j.data("resizable-alsoresize").position})})};if(e._revertToRelativePosition){e._revertToRelativePosition=false;typeof f.alsoResize=="object"&&!f.alsoResize.nodeType?c.each(f.alsoResize,function(h){g(h)}):g(f.alsoResize)}c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(e){var j=c(this).data("resizable"),o=j.options,n=j._proportionallyResizeElements,m=n.length&&/textarea/i.test(n[0].nodeName),l=m&&c.ui.hasScroll(n[0],"left")?0:j.sizeDiff.height;m={width:j.size.width-(m?0:j.sizeDiff.width),height:j.size.height-l};l=parseInt(j.element.css("left"),10)+(j.position.left-j.originalPosition.left)||null;var k=parseInt(j.element.css("top"),10)+(j.position.top-j.originalPosition.top)||null;j.element.animate(c.extend(m,k&&l?{top:k,left:l}:{}),{duration:o.animateDuration,easing:o.animateEasing,step:function(){var f={width:parseInt(j.element.css("width"),10),height:parseInt(j.element.css("height"),10),top:parseInt(j.element.css("top"),10),left:parseInt(j.element.css("left"),10)};n&&n.length&&c(n[0]).css({width:f.width,height:f.height});j._updateCache(f);j._propagate("resize",e)}})}});c.ui.plugin.add("resizable","containment",{start:function(){var e=c(this).data("resizable"),j=e.element,o=e.options.containment;if(j=o instanceof c?o.get(0):/parent/.test(o)?j.parent().get(0):o){e.containerElement=c(j);if(/document/.test(o)||o==document){e.containerOffset={left:0,top:0};e.containerPosition={left:0,top:0};e.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var n=c(j),m=[];c(["Top","Right","Left","Bottom"]).each(function(g,f){m[g]=a(n.css("padding"+f))});e.containerOffset=n.offset();e.containerPosition=n.position();e.containerSize={height:n.innerHeight()-m[3],width:n.innerWidth()-m[1]};o=e.containerOffset;var l=e.containerSize.height,k=e.containerSize.width;k=c.ui.hasScroll(j,"left")?j.scrollWidth:k;l=c.ui.hasScroll(j)?j.scrollHeight:l;e.parentData={element:j,left:o.left,top:o.top,width:k,height:l}}}},resize:function(e){var j=c(this).data("resizable"),o=j.options,n=j.containerOffset,m=j.position;e=j._aspectRatio||e.shiftKey;var l={top:0,left:0},k=j.containerElement;if(k[0]!=document&&/static/.test(k.css("position"))){l=n}if(m.left<(j._helper?n.left:0)){j.size.width+=j._helper?j.position.left-n.left:j.position.left-l.left;if(e){j.size.height=j.size.width/o.aspectRatio}j.position.left=o.helper?n.left:0}if(m.top<(j._helper?n.top:0)){j.size.height+=j._helper?j.position.top-n.top:j.position.top;if(e){j.size.width=j.size.height*o.aspectRatio}j.position.top=j._helper?n.top:0}j.offset.left=j.parentData.left+j.position.left;j.offset.top=j.parentData.top+j.position.top;o=Math.abs((j._helper?j.offset.left-l.left:j.offset.left-l.left)+j.sizeDiff.width);n=Math.abs((j._helper?j.offset.top-l.top:j.offset.top-n.top)+j.sizeDiff.height);m=j.containerElement.get(0)==j.element.parent().get(0);l=/relative|absolute/.test(j.containerElement.css("position"));if(m&&l){o-=j.parentData.left}if(o+j.size.width>=j.parentData.width){j.size.width=j.parentData.width-o;if(e){j.size.height=j.size.width/j.aspectRatio}}if(n+j.size.height>=j.parentData.height){j.size.height=j.parentData.height-n;if(e){j.size.width=j.size.height*j.aspectRatio}}},stop:function(){var e=c(this).data("resizable"),j=e.options,p=e.containerOffset,o=e.containerPosition,n=e.containerElement,m=c(e.helper),l=m.offset(),k=m.outerWidth()-e.sizeDiff.width;m=m.outerHeight()-e.sizeDiff.height;e._helper&&!j.animate&&/relative/.test(n.css("position"))&&c(this).css({left:l.left-o.left-p.left,width:k,height:m});e._helper&&!j.animate&&/static/.test(n.css("position"))&&c(this).css({left:l.left-o.left-p.left,width:k,height:m})}});c.ui.plugin.add("resizable","ghost",{start:function(){var e=c(this).data("resizable"),f=e.options,g=e.size;e.ghost=e.originalElement.clone();e.ghost.css({opacity:0.25,display:"block",position:"relative",height:g.height,width:g.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof f.ghost=="string"?f.ghost:"");e.ghost.appendTo(e.helper)},resize:function(){var e=c(this).data("resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=c(this).data("resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}});c.ui.plugin.add("resizable","grid",{resize:function(){var e=c(this).data("resizable"),j=e.options,o=e.size,n=e.originalSize,m=e.originalPosition,l=e.axis;j.grid=typeof j.grid=="number"?[j.grid,j.grid]:j.grid;var k=Math.round((o.width-n.width)/(j.grid[0]||1))*(j.grid[0]||1);j=Math.round((o.height-n.height)/(j.grid[1]||1))*(j.grid[1]||1);if(/^(se|s|e)$/.test(l)){e.size.width=n.width+k;e.size.height=n.height+j}else{if(/^(ne)$/.test(l)){e.size.width=n.width+k;e.size.height=n.height+j;e.position.top=m.top-j}else{if(/^(sw)$/.test(l)){e.size.width=n.width+k;e.size.height=n.height+j}else{e.size.width=n.width+k;e.size.height=n.height+j;e.position.top=m.top-j}e.position.left=m.left-k}}}});var a=function(e){return parseInt(e,10)||0},b=function(e){return !isNaN(parseInt(e,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var e=this;this.element.addClass("ui-selectable");this.dragged=false;var b;this.refresh=function(){b=a(e.options.filter,e.element[0]);b.each(function(){var f=a(this),c=f.offset();a.data(this,"selectable-item",{element:this,$element:f,left:c.left,top:c.top,right:c.left+f.outerWidth(),bottom:c.top+f.outerHeight(),startselected:false,selected:f.hasClass("ui-selected"),selecting:f.hasClass("ui-selecting"),unselecting:f.hasClass("ui-unselecting")})})};this.refresh();this.selectees=b.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(g){var b=this;this.opos=[g.pageX,g.pageY];if(!this.options.disabled){var e=this.options;this.selectees=a(e.filter,this.element[0]);this._trigger("start",g);a(e.appendTo).append(this.helper);this.helper.css({left:g.clientX,top:g.clientY,width:0,height:0});e.autoRefresh&&this.refresh();this.selectees.filter(".ui-selected").each(function(){var c=a.data(this,"selectable-item");c.startselected=true;if(!g.metaKey){c.$element.removeClass("ui-selected");c.selected=false;c.$element.addClass("ui-unselecting");c.unselecting=true;b._trigger("unselecting",g,{unselecting:c.element})}});a(g.target).parents().andSelf().each(function(){var c=a.data(this,"selectable-item");if(c){var f=!g.metaKey||!c.$element.hasClass("ui-selected");c.$element.removeClass(f?"ui-unselecting":"ui-selected").addClass(f?"ui-selecting":"ui-unselecting");c.unselecting=!f;c.selecting=f;(c.selected=f)?b._trigger("selecting",g,{selecting:c.element}):b._trigger("unselecting",g,{unselecting:c.element});return false}})}},_mouseDrag:function(q){var o=this;this.dragged=true;if(!this.options.disabled){var p=this.options,e=this.opos[0],n=this.opos[1],m=q.pageX,l=q.pageY;if(e>m){var k=m;m=e;e=k}if(n>l){k=l;l=n;n=k}this.helper.css({left:e,top:n,width:m-e,height:l-n});this.selectees.each(function(){var b=a.data(this,"selectable-item");if(!(!b||b.element==o.element[0])){var c=false;if(p.tolerance=="touch"){c=!(b.left>m||b.right<e||b.top>l||b.bottom<n)}else{if(p.tolerance=="fit"){c=b.left>e&&b.right<m&&b.top>n&&b.bottom<l}}if(c){if(b.selected){b.$element.removeClass("ui-selected");b.selected=false}if(b.unselecting){b.$element.removeClass("ui-unselecting");b.unselecting=false}if(!b.selecting){b.$element.addClass("ui-selecting");b.selecting=true;o._trigger("selecting",q,{selecting:b.element})}}else{if(b.selecting){if(q.metaKey&&b.startselected){b.$element.removeClass("ui-selecting");b.selecting=false;b.$element.addClass("ui-selected");b.selected=true}else{b.$element.removeClass("ui-selecting");b.selecting=false;if(b.startselected){b.$element.addClass("ui-unselecting");b.unselecting=true}o._trigger("unselecting",q,{unselecting:b.element})}}if(b.selected){if(!q.metaKey&&!b.startselected){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;o._trigger("unselecting",q,{unselecting:b.element})}}}}});return false}},_mouseStop:function(e){var b=this;this.dragged=false;a(".ui-unselecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");c.$element.removeClass("ui-unselecting");c.unselecting=false;c.startselected=false;b._trigger("unselected",e,{unselected:c.element})});a(".ui-selecting",this.element[0]).each(function(){var c=a.data(this,"selectable-item");c.$element.removeClass("ui-selecting").addClass("ui-selected");c.selecting=false;c.selected=true;c.startselected=true;b._trigger("selected",e,{selected:c.element})});this._trigger("stop",e);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.12"})})(jQuery);(function(a){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(){this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?/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").removeData("sortable").unbind(".sortable");this._mouseDestroy();for(var b=this.items.length-1;b>=0;b--){this.items[b].item.removeData("sortable-item")}return this},_setOption:function(e,c){if(e==="disabled"){this.options[e]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(h,g){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(h);var l=null,k=this;a(h.target).parents().each(function(){if(a.data(this,"sortable-item")==k){l=a(this);return false}});if(a.data(h.target,"sortable-item")==k){l=a(h.target)}if(!l){return false}if(this.options.handle&&!g){var j=false;a(this.options.handle,l).find("*").andSelf().each(function(){if(this==h.target){j=true}});if(!j){return false}}this.currentItem=l;this._removeCurrentsFromItems();return true},_mouseStart:function(g,f,j){f=this.options;var h=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(g);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:g.pageX-this.offset.left,top:g.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(g);this.originalPageX=g.pageX;this.originalPageY=g.pageY;f.cursorAt&&this._adjustOffsetFromHelper(f.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();f.containment&&this._setContainment();if(f.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",f.cursor)}if(f.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",f.opacity)}if(f.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",f.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",g,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!j){for(j=this.containers.length-1;j>=0;j--){this.containers[j]._trigger("activate",g,h._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}a.ui.ddmanager&&!f.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,g);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(g);return true},_mouseDrag:function(h){this.position=this._generatePosition(h);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,l=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-h.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(h.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=l=this.scrollParent[0].scrollTop-g.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-h.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(h.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=l=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(h.pageY-a(document).scrollTop()<g.scrollSensitivity){l=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(h.pageY-a(document).scrollTop())<g.scrollSensitivity){l=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(h.pageX-a(document).scrollLeft()<g.scrollSensitivity){l=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(h.pageX-a(document).scrollLeft())<g.scrollSensitivity){l=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}l!==false&&a.ui.ddmanager&&!g.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,h)}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(g=this.items.length-1;g>=0;g--){l=this.items[g];var k=l.item[0],j=this._intersectsWithPointer(l);if(j){if(k!=this.currentItem[0]&&this.placeholder[j==1?"next":"prev"]()[0]!=k&&!a.ui.contains(this.placeholder[0],k)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],k):true)){this.direction=j==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(l)){this._rearrange(h,l)}else{break}this._trigger("change",h,this._uiHash());break}}}this._contactContainers(h);a.ui.ddmanager&&a.ui.ddmanager.drag(this,h);this._trigger("sort",h,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(f,e){if(f){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,f);if(this.options.revert){var g=this;e=g.placeholder.offset();g.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-g.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-g.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){g._clear(f)})}else{this._clear(f,e)}return false}},cancel:function(){var e=this;if(this.dragging){this._mouseUp({target:null});this.options.helper=="original"?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,e._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,e._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder){this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.options.helper!="original"&&this.helper&&this.helper[0].parentNode&&this.helper.remove();a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});this.domPosition.prev?a(this.domPosition.prev).after(this.currentItem):a(this.domPosition.parent).prepend(this.currentItem)}return this},serialize:function(f){var e=this._getItemsAsjQuery(f&&f.connected),g=[];f=f||{};a(e).each(function(){var b=(a(f.item||this).attr(f.attribute||"id")||"").match(f.expression||/(.+)[-=_](.+)/);if(b){g.push((f.key||b[1]+"[]")+"="+(f.key&&f.expression?b[1]:b[2]))}});!g.length&&f.key&&g.push(f.key+"=");return g.join("&")},toArray:function(f){var e=this._getItemsAsjQuery(f&&f.connected),g=[];f=f||{};e.each(function(){g.push(a(f.item||this).attr(f.attribute||"id")||"")});return g},_intersectsWith:function(y){var x=this.positionAbs.left,w=x+this.helperProportions.width,v=this.positionAbs.top,u=v+this.helperProportions.height,s=y.left,q=s+y.width,p=y.top,n=p+y.height,o=this.offset.click.top,m=this.offset.click.left;o=v+o>p&&v+o<n&&x+m>s&&x+m<q;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>y[this.floating?"width":"height"]?o:s<x+this.helperProportions.width/2&&w-this.helperProportions.width/2<q&&p<v+this.helperProportions.height/2&&u-this.helperProportions.height/2<n},_intersectsWithPointer:function(f){var e=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top,f.height);f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left,f.width);e=e&&f;f=this._getDragVerticalDirection();var g=this._getDragHorizontalDirection();if(!e){return false}return this.floating?g&&g=="right"||f=="down"?2:1:f&&(f=="down"?2:1)},_intersectsWithSides:function(g){var f=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,g.top+g.height/2,g.height);g=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,g.left+g.width/2,g.width);var j=this._getDragVerticalDirection(),h=this._getDragHorizontalDirection();return this.floating&&h?h=="right"&&g||h=="left"&&!g:j&&(j=="down"&&f||j=="up"&&!f)},_getDragVerticalDirection:function(){var b=this.positionAbs.top-this.lastPositionAbs.top;return b!=0&&(b>0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions();return this},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(k){var j=[],p=[],o=this._connectWith();if(o&&k){for(k=o.length-1;k>=0;k--){for(var n=a(o[k]),m=n.length-1;m>=0;m--){var l=a.data(n[m],"sortable");if(l&&l!=this&&!l.options.disabled){p.push([a.isFunction(l.options.items)?l.options.items.call(l.element):a(l.options.items,l.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),l])}}}}p.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(k=p.length-1;k>=0;k--){p[k][0].each(function(){j.push(this)})}return a(j)},_removeCurrentsFromItems:function(){for(var f=this.currentItem.find(":data(sortable-item)"),e=0;e<this.items.length;e++){for(var g=0;g<f.length;g++){f[g]==this.items[e].item[0]&&this.items.splice(e,1)}}},_refreshItems:function(k){this.items=[];this.containers=[this];var j=this.items,q=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],k,{item:this.currentItem}):a(this.options.items,this.element),this]],p=this._connectWith();if(p){for(var o=p.length-1;o>=0;o--){for(var n=a(p[o]),m=n.length-1;m>=0;m--){var l=a.data(n[m],"sortable");if(l&&l!=this&&!l.options.disabled){q.push([a.isFunction(l.options.items)?l.options.items.call(l.element[0],k,{item:this.currentItem}):a(l.options.items,l.element),l]);this.containers.push(l)}}}}for(o=q.length-1;o>=0;o--){k=q[o][1];p=q[o][0];m=0;for(n=p.length;m<n;m++){l=a(p[m]);l.data("sortable-item",k);j.push({item:l,instance:k,width:0,height:0,left:0,top:0})}}},refreshPositions:function(g){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var f=this.items.length-1;f>=0;f--){var j=this.items[f];if(!(j.instance!=this.currentContainer&&this.currentContainer&&j.item[0]!=this.currentItem[0])){var h=this.options.toleranceElement?a(this.options.toleranceElement,j.item):j.item;if(!g){j.width=h.outerWidth();j.height=h.outerHeight()}h=h.offset();j.left=h.left;j.top=h.top}}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(f=this.containers.length-1;f>=0;f--){h=this.containers[f].element.offset();this.containers[f].containerCache.left=h.left;this.containers[f].containerCache.top=h.top;this.containers[f].containerCache.width=this.containers[f].element.outerWidth();this.containers[f].containerCache.height=this.containers[f].element.outerHeight()}}return this},_createPlaceholder:function(g){var f=g||this,j=f.options;if(!j.placeholder||j.placeholder.constructor==String){var h=j.placeholder;j.placeholder={element:function(){var b=a(document.createElement(f.currentItem[0].nodeName)).addClass(h||f.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!h){b.style.visibility="hidden"}return b},update:function(c,b){if(!(h&&!j.forcePlaceholderSize)){b.height()||b.height(f.currentItem.innerHeight()-parseInt(f.currentItem.css("paddingTop")||0,10)-parseInt(f.currentItem.css("paddingBottom")||0,10));b.width()||b.width(f.currentItem.innerWidth()-parseInt(f.currentItem.css("paddingLeft")||0,10)-parseInt(f.currentItem.css("paddingRight")||0,10))}}}}f.placeholder=a(j.placeholder.element.call(f.element,f.currentItem));f.currentItem.after(f.placeholder);j.placeholder.update(f,f.placeholder)},_contactContainers:function(k){for(var j=null,p=null,o=this.containers.length-1;o>=0;o--){if(!a.ui.contains(this.currentItem[0],this.containers[o].element[0])){if(this._intersectsWith(this.containers[o].containerCache)){if(!(j&&a.ui.contains(this.containers[o].element[0],j.element[0]))){j=this.containers[o];p=o}}else{if(this.containers[o].containerCache.over){this.containers[o]._trigger("out",k,this._uiHash(this));this.containers[o].containerCache.over=0}}}}if(j){if(this.containers.length===1){this.containers[p]._trigger("over",k,this._uiHash(this));this.containers[p].containerCache.over=1}else{if(this.currentContainer!=this.containers[p]){j=10000;o=null;for(var n=this.positionAbs[this.containers[p].floating?"left":"top"],m=this.items.length-1;m>=0;m--){if(a.ui.contains(this.containers[p].element[0],this.items[m].item[0])){var l=this.items[m][this.containers[p].floating?"left":"top"];if(Math.abs(l-n)<j){j=Math.abs(l-n);o=this.items[m]}}}if(o||this.options.dropOnEmpty){this.currentContainer=this.containers[p];o?this._rearrange(k,o,null,true):this._rearrange(k,null,this.containers[p].element,true);this._trigger("change",k,this._uiHash());this.containers[p]._trigger("change",k,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[p]._trigger("over",k,this._uiHash(this));this.containers[p].containerCache.over=1}}}}},_createHelper:function(e){var c=this.options;e=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[e,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;e.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(e[0]);if(e[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(e[0].style.width==""||c.forceHelperSize){e.width(this.currentItem.width())}if(e[0].style.height==""||c.forceHelperSize){e.height(this.currentItem.height())}return e},_adjustOffsetFromHelper:function(b){if(typeof b=="string"){b=b.split(" ")}if(a.isArray(b)){b={left:+b[0],top:+b[1]||0}}if("left" in b){this.offset.click.left=b.left+this.margins.left}if("right" in b){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if("top" in b){this.offset.click.top=b.top+this.margins.top}if("bottom" in b){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if(this.offsetParent[0]==document.body||this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.currentItem.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.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 e=a(f.containment)[0];f=a(f.containment).offset();var g=a(e).css("overflow")!="hidden";this.containment=[f.left+(parseInt(a(e).css("borderLeftWidth"),10)||0)+(parseInt(a(e).css("paddingLeft"),10)||0)-this.margins.left,f.top+(parseInt(a(e).css("borderTopWidth"),10)||0)+(parseInt(a(e).css("paddingTop"),10)||0)-this.margins.top,f.left+(g?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,f.top+(g?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]}},_convertPositionTo:function(g,f){if(!f){f=this.position}g=g=="absolute"?1:-1;var j=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(j[0].tagName);return{top:f.top+this.offset.relative.top*g+this.offset.parent.top*g-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():h?0:j.scrollTop())*g),left:f.left+this.offset.relative.left*g+this.offset.parent.left*g-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():h?0:j.scrollLeft())*g)}},_generatePosition:function(j){var h=this.options,n=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,m=/(html|body)/i.test(n[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var l=j.pageX,k=j.pageY;if(this.originalPosition){if(this.containment){if(j.pageX-this.offset.click.left<this.containment[0]){l=this.containment[0]+this.offset.click.left}if(j.pageY-this.offset.click.top<this.containment[1]){k=this.containment[1]+this.offset.click.top}if(j.pageX-this.offset.click.left>this.containment[2]){l=this.containment[2]+this.offset.click.left}if(j.pageY-this.offset.click.top>this.containment[3]){k=this.containment[3]+this.offset.click.top}}if(h.grid){k=this.originalPageY+Math.round((k-this.originalPageY)/h.grid[1])*h.grid[1];k=this.containment?!(k-this.offset.click.top<this.containment[1]||k-this.offset.click.top>this.containment[3])?k:!(k-this.offset.click.top<this.containment[1])?k-h.grid[1]:k+h.grid[1]:k;l=this.originalPageX+Math.round((l-this.originalPageX)/h.grid[0])*h.grid[0];l=this.containment?!(l-this.offset.click.left<this.containment[0]||l-this.offset.click.left>this.containment[2])?l:!(l-this.offset.click.left<this.containment[0])?l-h.grid[0]:l+h.grid[0]:l}}return{top:k-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():m?0:n.scrollTop()),left:l-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():m?0:n.scrollLeft())}},_rearrange:function(j,h,n,m){n?n[0].appendChild(this.placeholder[0]):h.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?h.item[0]:h.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var l=this,k=this.counter;window.setTimeout(function(){k==l.counter&&l.refreshPositions(!m)},0)},_clear:function(g,f){this.reverting=false;var j=[];!this._noFinalSort&&this.currentItem[0].parentNode&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var h in this._storedCSS){if(this._storedCSS[h]=="auto"||this._storedCSS[h]=="static"){this._storedCSS[h]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!f&&j.push(function(b){this._trigger("receive",b,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){j.push(function(b){this._trigger("update",b,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){f||j.push(function(b){this._trigger("remove",b,this._uiHash())});for(h=this.containers.length-1;h>=0;h--){if(a.ui.contains(this.containers[h].element[0],this.currentItem[0])&&!f){j.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[h]));j.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[h]))}}}for(h=this.containers.length-1;h>=0;h--){f||j.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[h]));if(this.containers[h].containerCache.over){j.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[h]));this.containers[h].containerCache.over=0}}this._storedCursor&&a("body").css("cursor",this._storedCursor);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",g,this._uiHash());for(h=0;h<j.length;h++){j[h].call(this,g)}this._trigger("stop",g,this._uiHash())}return false}f||this._trigger("beforeStop",g,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!f){for(h=0;h<j.length;h++){j[h].call(this,g)}this._trigger("stop",g,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(e){var c=e||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:e?e.element:null}}});a.extend(a.ui.sortable,{version:"1.8.12"})})(jQuery);(function(a){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 e=this,c=e.options;e.running=0;e.element.addClass("ui-accordion ui-widget ui-helper-reset").children("li").addClass("ui-accordion-li-fix");e.headers=e.element.find(c.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){c.disabled||a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){c.disabled||a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){c.disabled||a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){c.disabled||a(this).removeClass("ui-state-focus")});e.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");if(c.navigation){var g=e.element.find("a").filter(c.navigationFilter).eq(0);if(g.length){var f=g.closest(".ui-accordion-header");e.active=f.length?f:g.closest(".ui-accordion-content").prev()}}e.active=e._findActive(e.active||c.active).addClass("ui-state-default ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");e.active.next().addClass("ui-accordion-content-active");e._createIcons();e.resize();e.element.attr("role","tablist");e.headers.attr("role","tab").bind("keydown.accordion",function(b){return e._keydown(b)}).next().attr("role","tabpanel");e.headers.not(e.active||"").attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).next().hide();e.active.length?e.active.attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}):e.headers.eq(0).attr("tabIndex",0);a.browser.safari||e.headers.find("a").attr("tabIndex",-1);c.event&&e.headers.bind(c.event.split(" ").join(".accordion ")+".accordion",function(b){e._clickHandler.call(e,b,this);b.preventDefault()})},_createIcons:function(){var b=this.options;if(b.icons){a("<span></span>").addClass("ui-icon "+b.icons.header).prependTo(this.headers);this.active.children(".ui-icon").toggleClass(b.icons.header).toggleClass(b.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 e=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 c=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(e.autoHeight||e.fillHeight){c.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(e,c){a.Widget.prototype._setOption.apply(this,arguments);e=="active"&&this.activate(c);if(e=="icons"){this._destroyIcons();c&&this._createIcons()}if(e=="disabled"){this.headers.add(this.headers.next())[c?"addClass":"removeClass"]("ui-accordion-disabled ui-state-disabled")}},_keydown:function(e){if(!(this.options.disabled||e.altKey||e.ctrlKey)){var c=a.ui.keyCode,k=this.headers.length,g=this.headers.index(e.target),j=false;switch(e.keyCode){case c.RIGHT:case c.DOWN:j=this.headers[(g+1)%k];break;case c.LEFT:case c.UP:j=this.headers[(g-1+k)%k];break;case c.SPACE:case c.ENTER:this._clickHandler({target:e.target},e.target);e.preventDefault()}if(j){a(e.target).attr("tabIndex",-1);a(j).attr("tabIndex",0);j.focus();return false}return true}},resize:function(){var e=this.options,c;if(e.fillSpace){if(a.browser.msie){var f=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}c=this.element.parent().height();a.browser.msie&&this.element.parent().css("overflow",f);this.headers.each(function(){c-=a(this).outerHeight(true)});this.headers.next().each(function(){a(this).height(Math.max(0,c-a(this).innerHeight()+a(this).height()))}).css("overflow","auto")}else{if(e.autoHeight){c=0;this.headers.next().each(function(){c=Math.max(c,a(this).height("").height())}).height(c)}}return this},activate:function(b){this.options.active=b;b=this._findActive(b)[0];this._clickHandler({target:b},b);return this},_findActive:function(b){return b?typeof b==="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(k,c){var q=this.options;if(!q.disabled){if(k.target){k=a(k.currentTarget||c);c=k[0]===this.active[0];q.active=q.collapsible&&c?false:this.headers.index(k);if(!(this.running||!q.collapsible&&c)){var m=this.active;l=k.next();n=this.active.next();p={options:q,newHeader:c&&q.collapsible?a([]):k,oldHeader:this.active,newContent:c&&q.collapsible?a([]):l,oldContent:n};var o=this.headers.index(this.active[0])>this.headers.index(k[0]);this.active=c?a([]):k;this._toggle(l,n,p,c,o);m.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(q.icons.headerSelected).addClass(q.icons.header);if(!c){k.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(q.icons.header).addClass(q.icons.headerSelected);k.next().addClass("ui-accordion-content-active")}}}else{if(q.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(q.icons.headerSelected).addClass(q.icons.header);this.active.next().addClass("ui-accordion-content-active");var n=this.active.next(),p={options:q,newHeader:a([]),oldHeader:q.active,newContent:a([]),oldContent:n},l=this.active=a([]);this._toggle(l,n,p)}}}},_toggle:function(v,u,s,n,p){var o=this,q=o.options;o.toShow=v;o.toHide=u;o.data=s;var l=function(){if(o){return o._completed.apply(o,arguments)}};o._trigger("changestart",null,o.data);o.running=u.size()===0?v.size():u.size();if(q.animated){s={};s=q.collapsible&&n?{toShow:a([]),toHide:u,complete:l,down:p,autoHeight:q.autoHeight||q.fillSpace}:{toShow:v,toHide:u,complete:l,down:p,autoHeight:q.autoHeight||q.fillSpace};if(!q.proxied){q.proxied=q.animated}if(!q.proxiedDuration){q.proxiedDuration=q.duration}q.animated=a.isFunction(q.proxied)?q.proxied(s):q.proxied;q.duration=a.isFunction(q.proxiedDuration)?q.proxiedDuration(s):q.proxiedDuration;n=a.ui.accordion.animations;var m=q.duration,c=q.animated;if(c&&!n[c]&&!a.easing[c]){c="slide"}n[c]||(n[c]=function(b){this.slide(b,{easing:c,duration:m||700})});n[c](s)}else{if(q.collapsible&&n){v.toggle()}else{u.hide();v.show()}l(true)}u.prev().attr({"aria-expanded":"false","aria-selected":"false",tabIndex:-1}).blur();v.prev().attr({"aria-expanded":"true","aria-selected":"true",tabIndex:0}).focus()},_completed:function(b){this.running=b?0:--this.running;if(!this.running){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.12",animations:{slide:function(j,c){j=a.extend({easing:"swing",duration:300},j,c);if(j.toHide.size()){if(j.toShow.size()){var o=j.toShow.css("overflow"),k=0,m={},l={},n;c=j.toShow;n=c[0].style.width;c.width(parseInt(c.parent().width(),10)-parseInt(c.css("paddingLeft"),10)-parseInt(c.css("paddingRight"),10)-(parseInt(c.css("borderLeftWidth"),10)||0)-(parseInt(c.css("borderRightWidth"),10)||0));a.each(["height","paddingTop","paddingBottom"],function(b,e){l[e]="hide";b=(""+a.css(j.toShow[0],e)).match(/^([\d+-.]+)(.*)$/);m[e]={value:b[1],unit:b[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(l,{step:function(b,e){if(e.prop=="height"){k=e.end-e.start===0?0:(e.now-e.start)/(e.end-e.start)}j.toShow[0].style[e.prop]=k*m[e.prop].value+m[e.prop].unit},duration:j.duration,easing:j.easing,complete:function(){j.autoHeight||j.toShow.css("height","");j.toShow.css({width:n,overflow:o});j.complete()}})}else{j.toHide.animate({height:"hide",paddingTop:"hide",paddingBottom:"hide"},j)}}else{j.toShow.animate({height:"show",paddingTop:"show",paddingBottom:"show"},j)}},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})}}})})(jQuery);(function(b){var a=0;b.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 e=this,c=this.element[0].ownerDocument,f;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(h){if(!(e.options.disabled||e.element.attr("readonly"))){f=false;var g=b.ui.keyCode;switch(h.keyCode){case g.PAGE_UP:e._move("previousPage",h);break;case g.PAGE_DOWN:e._move("nextPage",h);break;case g.UP:e._move("previous",h);h.preventDefault();break;case g.DOWN:e._move("next",h);h.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(e.menu.active){f=true;h.preventDefault()}case g.TAB:if(!e.menu.active){return}e.menu.select(h);break;case g.ESCAPE:e.element.val(e.term);e.close(h);break;default:clearTimeout(e.searching);e.searching=setTimeout(function(){if(e.term!=e.element.val()){e.selectedItem=null;e.search(null,h)}},e.options.delay);break}}}).bind("keypress.autocomplete",function(g){if(f){f=false;g.preventDefault()}}).bind("focus.autocomplete",function(){if(!e.options.disabled){e.selectedItem=null;e.previous=e.element.val()}}).bind("blur.autocomplete",function(g){if(!e.options.disabled){clearTimeout(e.searching);e.closing=setTimeout(function(){e.close(g);e._change(g)},150)}});this._initSource();this.response=function(){return e._response.apply(e,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",c)[0]).mousedown(function(h){var g=e.menu.element[0];b(h.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(j){j.target!==e.element[0]&&j.target!==g&&!b.ui.contains(g,j.target)&&e.close()})},1);setTimeout(function(){clearTimeout(e.closing)},13)}).menu({focus:function(h,g){g=g.item.data("item.autocomplete");false!==e._trigger("focus",h,{item:g})&&/^key/.test(h.originalEvent.type)&&e.element.val(g.value)},selected:function(l,k){var j=k.item.data("item.autocomplete"),g=e.previous;if(e.element[0]!==c.activeElement){e.element.focus();e.previous=g;setTimeout(function(){e.previous=g;e.selectedItem=j},1)}false!==e._trigger("select",l,{item:j})&&e.element.val(j.value);e.term=e.element.val();e.close(l);e.selectedItem=j},blur:function(){e.menu.element.is(":visible")&&e.element.val()!==e.term&&e.element.val(e.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");b.fn.bgiframe&&this.menu.element.bgiframe()},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();b.Widget.prototype.destroy.call(this)},_setOption:function(e,c){b.Widget.prototype._setOption.apply(this,arguments);e==="source"&&this._initSource();if(e==="appendTo"){this.menu.element.appendTo(b(c||"body",this.element[0].ownerDocument)[0])}e==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var e=this,c,f;if(b.isArray(this.options.source)){c=this.options.source;this.source=function(h,g){g(b.ui.autocomplete.filter(c,h.term))}}else{if(typeof this.options.source==="string"){f=this.options.source;this.source=function(h,g){e.xhr&&e.xhr.abort();e.xhr=b.ajax({url:f,data:h,dataType:"json",autocompleteRequest:++a,success:function(j){this.autocompleteRequest===a&&g(j)},error:function(){this.autocompleteRequest===a&&g([])}})}}else{this.source=this.options.source}}},search:function(e,c){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength){return this.close(c)}clearTimeout(this.closing);if(this._trigger("search",c)!==false){return this._search(e)}},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.pending--;this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(c){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",c)}},_change:function(c){this.previous!==this.element.val()&&this._trigger("change",c,{item:this.selectedItem})},_normalize:function(c){if(c.length&&c[0].label&&c[0].value){return c}return b.map(c,function(e){if(typeof e==="string"){return{label:e,value:e}}return b.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(e){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,e);this.menu.deactivate();this.menu.refresh();c.show();this._resizeMenu();c.position(b.extend({of:this.element},this.options.position));this.options.autoFocus&&this.menu.next(new b.Event("mouseover"))},_resizeMenu:function(){var c=this.menu.element;c.outerWidth(Math.max(c.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(e,c){var f=this;b.each(c,function(h,g){f._renderItem(e,g)})},_renderItem:function(e,c){return b("<li></li>").data("item.autocomplete",c).append(b("<a></a>").text(c.label)).appendTo(e)},_move:function(e,c){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate()}else{this.menu[e](c)}}else{this.search(null,c)}},widget:function(){return this.menu.element}});b.extend(b.ui.autocomplete,{escapeRegex:function(c){return c.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(e,c){var f=new RegExp(b.ui.autocomplete.escapeRegex(c),"i");return b.grep(e,function(g){return f.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){c.preventDefault();b.select(c)}});this.refresh()},refresh:function(){var b=this;this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem").children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(k,h){this.deactivate();if(this.hasScroll()){var f=h.offset().top-this.element.offset().top,j=this.element.attr("scrollTop"),l=this.element.height();if(f<0){this.element.attr("scrollTop",j+f)}else{f>=l&&this.element.attr("scrollTop",j+f-l+h.height())}}this.active=h.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",k,{item:h})},deactivate:function(){if(this.active){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(g,f,c){if(this.active){g=this.active[g+"All"](".ui-menu-item").eq(0);g.length?this.activate(c,g):this.activate(c,this.element.children(f))}else{this.activate(c,this.element.children(f))}},nextPage:function(j){if(this.hasScroll()){if(!this.active||this.last()){this.activate(j,this.element.children(".ui-menu-item:first"))}else{var f=this.active.offset().top,c=this.element.height(),h=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-f-c+a(this).height();return b<10&&b>-10});h.length||(h=this.element.children(".ui-menu-item:last"));this.activate(j,h)}}else{this.activate(j,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(g){if(this.hasScroll()){if(!this.active||this.first()){this.activate(g,this.element.children(".ui-menu-item:last"))}else{var f=this.active.offset().top,c=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-f+c-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(g,result)}}else{this.activate(g,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);(function(b){var f,c=function(a){b(":ui-button",a.target.form).each(function(){var g=b(this).data("button");setTimeout(function(){g.refresh()},1)})},e=function(a){var j=a.name,h=a.form,g=b([]);if(j){g=h?b(h).find("[name='"+j+"']"):b("[name='"+j+"']",a.ownerDocument).filter(function(){return !this.form})}return g};b.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",c);if(typeof this.options.disabled!=="boolean"){this.options.disabled=this.element.attr("disabled")}this._determineButtonType();this.hasTitle=!!this.buttonElement.attr("title");var a=this,j=this.options,h=this.type==="checkbox"||this.type==="radio",g="ui-state-hover"+(!h?" ui-state-active":"");if(j.label===null){j.label=this.buttonElement.html()}if(this.element.is(":disabled")){j.disabled=true}this.buttonElement.addClass("ui-button ui-widget ui-state-default ui-corner-all").attr("role","button").bind("mouseenter.button",function(){if(!j.disabled){b(this).addClass("ui-state-hover");this===f&&b(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){j.disabled||b(this).removeClass(g)}).bind("focus.button",function(){b(this).addClass("ui-state-focus")}).bind("blur.button",function(){b(this).removeClass("ui-state-focus")});h&&this.element.bind("change.button",function(){a.refresh()});if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(j.disabled){return false}b(this).toggleClass("ui-state-active");a.buttonElement.attr("aria-pressed",a.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(j.disabled){return false}b(this).addClass("ui-state-active");a.buttonElement.attr("aria-pressed",true);var k=a.element[0];e(k).not(k).map(function(){return b(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(j.disabled){return false}b(this).addClass("ui-state-active");f=this;b(document).one("mouseup",function(){f=null})}).bind("mouseup.button",function(){if(j.disabled){return false}b(this).removeClass("ui-state-active")}).bind("keydown.button",function(k){if(j.disabled){return false}if(k.keyCode==b.ui.keyCode.SPACE||k.keyCode==b.ui.keyCode.ENTER){b(this).addClass("ui-state-active")}}).bind("keyup.button",function(){b(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(k){k.keyCode===b.ui.keyCode.SPACE&&b(this).click()})}}this._setOption("disabled",j.disabled)},_determineButtonType:function(){this.type=this.element.is(":checkbox")?"checkbox":this.element.is(":radio")?"radio":this.element.is("input")?"input":"button";if(this.type==="checkbox"||this.type==="radio"){var a=this.element.parents().filter(":last"),g="label[for="+this.element.attr("id")+"]";this.buttonElement=a.find(g);if(!this.buttonElement.length){a=a.length?a.siblings():this.element.siblings();this.buttonElement=a.filter(g);if(!this.buttonElement.length){this.buttonElement=a.find(g)}}this.element.addClass("ui-helper-hidden-accessible");(a=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",a)}else{this.buttonElement=this.element}},widget:function(){return this.buttonElement},destroy:function(){this.element.removeClass("ui-helper-hidden-accessible");this.buttonElement.removeClass("ui-button ui-widget ui-state-default ui-corner-all ui-state-hover ui-state-active  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").removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html());this.hasTitle||this.buttonElement.removeAttr("title");b.Widget.prototype.destroy.call(this)},_setOption:function(a,g){b.Widget.prototype._setOption.apply(this,arguments);if(a==="disabled"){g?this.element.attr("disabled",true):this.element.removeAttr("disabled")}this._resetButton()},refresh:function(){var a=this.element.is(":disabled");a!==this.options.disabled&&this._setOption("disabled",a);if(this.type==="radio"){e(this.element[0]).each(function(){b(this).is(":checked")?b(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):b(this).button("widget").removeClass("ui-state-active").attr("aria-pressed",false)})}else{if(this.type==="checkbox"){this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed",true):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed",false)}}},_resetButton:function(){if(this.type==="input"){this.options.label&&this.element.val(this.options.label)}else{var a=this.buttonElement.removeClass("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=b("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(a.empty()).text(),j=this.options.icons,g=j.primary&&j.secondary,h=[];if(j.primary||j.secondary){if(this.options.text){h.push("ui-button-text-icon"+(g?"s":j.primary?"-primary":"-secondary"))}j.primary&&a.prepend("<span class='ui-button-icon-primary ui-icon "+j.primary+"'></span>");j.secondary&&a.append("<span class='ui-button-icon-secondary ui-icon "+j.secondary+"'></span>");if(!this.options.text){h.push(g?"ui-button-icons-only":"ui-button-icon-only");this.hasTitle||a.attr("title",k)}}else{h.push("ui-button-text-only")}a.addClass(h.join(" "))}}});b.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(a,g){a==="disabled"&&this.buttons.button("option",a,g);b.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass("ui-corner-left").end().filter(":last").addClass("ui-corner-right").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return b(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");b.Widget.prototype.destroy.call(this)}})})(jQuery);(function(g,b){var a={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},f={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},e=g.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};g.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 c=g(this).css(h).offset().top;c<0&&g(this).css("top",h.top-c)}},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 j=this,c=j.options,o=c.title||"&#160;",n=g.ui.dialog.getTitleId(j.element),l=(j.uiDialog=g("<div></div>")).appendTo(document.body).hide().addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c.dialogClass).css({zIndex:c.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(h){if(c.closeOnEscape&&h.keyCode&&h.keyCode===g.ui.keyCode.ESCAPE){j.close(h);h.preventDefault()}}).attr({role:"dialog","aria-labelledby":n}).mousedown(function(h){j.moveToTop(false,h)});j.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(l);var m=(j.uiDialogTitlebar=g("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(l),k=g('<a href="#"></a>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){k.addClass("ui-state-hover")},function(){k.removeClass("ui-state-hover")}).focus(function(){k.addClass("ui-state-focus")}).blur(function(){k.removeClass("ui-state-focus")}).click(function(h){j.close(h);return false}).appendTo(m);(j.uiDialogTitlebarCloseText=g("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(k);g("<span></span>").addClass("ui-dialog-title").attr("id",n).html(o).prependTo(m);if(g.isFunction(c.beforeclose)&&!g.isFunction(c.beforeClose)){c.beforeClose=c.beforeclose}m.find("*").add(m).disableSelection();c.draggable&&g.fn.draggable&&j._makeDraggable();c.resizable&&g.fn.resizable&&j._makeResizable();j._createButtons(c.buttons);j._isOpen=false;g.fn.bgiframe&&l.bgiframe()},_init:function(){this.options.autoOpen&&this.open()},destroy:function(){var c=this;c.overlay&&c.overlay.destroy();c.uiDialog.hide();c.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");c.uiDialog.remove();c.originalTitle&&c.element.attr("title",c.originalTitle);return c},widget:function(){return this.uiDialog},close:function(h){var c=this,k,j;if(false!==c._trigger("beforeClose",h)){c.overlay&&c.overlay.destroy();c.uiDialog.unbind("keypress.ui-dialog");c._isOpen=false;if(c.options.hide){c.uiDialog.hide(c.options.hide,function(){c._trigger("close",h)})}else{c.uiDialog.hide();c._trigger("close",h)}g.ui.dialog.overlay.resize();if(c.options.modal){k=0;g(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){j=g(this).css("z-index");isNaN(j)||(k=Math.max(k,j))}});g.ui.dialog.maxZ=k}return c}},isOpen:function(){return this._isOpen},moveToTop:function(h,c){var k=this,j=k.options;if(j.modal&&!h||!j.stack&&!j.modal){return k._trigger("focus",c)}if(j.zIndex>g.ui.dialog.maxZ){g.ui.dialog.maxZ=j.zIndex}if(k.overlay){g.ui.dialog.maxZ+=1;k.overlay.$el.css("z-index",g.ui.dialog.overlay.maxZ=g.ui.dialog.maxZ)}h={scrollTop:k.element.attr("scrollTop"),scrollLeft:k.element.attr("scrollLeft")};g.ui.dialog.maxZ+=1;k.uiDialog.css("z-index",g.ui.dialog.maxZ);k.element.attr(h);k._trigger("focus",c);return k},open:function(){if(!this._isOpen){var h=this,c=h.options,j=h.uiDialog;h.overlay=c.modal?new g.ui.dialog.overlay(h):null;h._size();h._position(c.position);j.show(c.show);h.moveToTop(true);c.modal&&j.bind("keypress.ui-dialog",function(m){if(m.keyCode===g.ui.keyCode.TAB){var k=g(":tabbable",this),l=k.filter(":first");k=k.filter(":last");if(m.target===k[0]&&!m.shiftKey){l.focus(1);return false}else{if(m.target===l[0]&&m.shiftKey){k.focus(1);return false}}}});g(h.element.find(":tabbable").get().concat(j.find(".ui-dialog-buttonpane :tabbable").get().concat(j.get()))).eq(0).focus();h._isOpen=true;h._trigger("open");return h}},_createButtons:function(h){var c=this,l=false,k=g("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),j=g("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof h==="object"&&h!==null&&g.each(h,function(){return !(l=true)});if(l){g.each(h,function(o,n){n=g.isFunction(n)?{click:n,text:o}:n;var m=g('<button type="button"></button>').click(function(){n.click.apply(c.element[0],arguments)}).appendTo(j);g.each(n,function(q,p){if(q!=="click"){q in e?m[q](p):m.attr(q,p)}});g.fn.button&&m.button()});k.appendTo(c.uiDialog)}},_makeDraggable:function(){function h(m){return{position:m.position,offset:m.offset}}var c=this,l=c.options,k=g(document),j;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,m){j=l.height==="auto"?"auto":g(this).height();g(this).height(g(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",n,h(m))},drag:function(n,m){c._trigger("drag",n,h(m))},stop:function(n,m){l.position=[m.position.left-k.scrollLeft(),m.position.top-k.scrollTop()];g(this).removeClass("ui-dialog-dragging").height(j);c._trigger("dragStop",n,h(m));g.ui.dialog.overlay.resize()}})},_makeResizable:function(h){function c(m){return{originalPosition:m.originalPosition,originalSize:m.originalSize,position:m.position,size:m.size}}h=h===b?this.options.resizable:h;var l=this,k=l.options,j=l.uiDialog.css("position");h=typeof h==="string"?h:"n,e,s,w,se,sw,ne,nw";l.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:l.element,maxWidth:k.maxWidth,maxHeight:k.maxHeight,minWidth:k.minWidth,minHeight:l._minHeight(),handles:h,start:function(n,m){g(this).addClass("ui-dialog-resizing");l._trigger("resizeStart",n,c(m))},resize:function(n,m){l._trigger("resize",n,c(m))},stop:function(n,m){g(this).removeClass("ui-dialog-resizing");k.height=g(this).height();k.width=g(this).width();l._trigger("resizeStop",n,c(m));g.ui.dialog.overlay.resize()}}).css("position",j).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_minHeight:function(){var c=this.options;return c.height==="auto"?c.minHeight:Math.min(c.minHeight,c.height)},_position:function(h){var c=[],k=[0,0],j;if(h){if(typeof h==="string"||typeof h==="object"&&"0" in h){c=h.split?h.split(" "):[h[0],h[1]];if(c.length===1){c[1]=c[0]}g.each(["left","top"],function(l,m){if(+c[l]===c[l]){k[l]=c[l];c[l]=m}});h={my:c.join(" "),at:c.join(" "),offset:k.join(" ")}}h=g.extend({},g.ui.dialog.prototype.options.position,h)}else{h=g.ui.dialog.prototype.options.position}(j=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(g.extend({of:window},h));j||this.uiDialog.hide()},_setOptions:function(h){var c=this,k={},j=false;g.each(h,function(l,m){c._setOption(l,m);if(l in a){j=true}if(l in f){k[l]=m}});j&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",k)},_setOption:function(h,c){var l=this,k=l.uiDialog;switch(h){case"beforeclose":h="beforeClose";break;case"buttons":l._createButtons(c);break;case"closeText":l.uiDialogTitlebarCloseText.text(""+c);break;case"dialogClass":k.removeClass(l.options.dialogClass).addClass("ui-dialog ui-widget ui-widget-content ui-corner-all "+c);break;case"disabled":c?k.addClass("ui-dialog-disabled"):k.removeClass("ui-dialog-disabled");break;case"draggable":var j=k.is(":data(draggable)");j&&!c&&k.draggable("destroy");!j&&c&&l._makeDraggable();break;case"position":l._position(c);break;case"resizable":(j=k.is(":data(resizable)"))&&!c&&k.resizable("destroy");j&&typeof c==="string"&&k.resizable("option","handles",c);!j&&c!==false&&l._makeResizable(c);break;case"title":g(".ui-dialog-title",l.uiDialogTitlebar).html(""+(c||"&#160;"));break}g.Widget.prototype._setOption.apply(l,arguments)},_size:function(){var h=this.options,c,k,j=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(h.minWidth>h.width){h.width=h.minWidth}c=this.uiDialog.css({height:"auto",width:h.width}).height();k=Math.max(0,h.minHeight-c);if(h.height==="auto"){if(g.support.minHeight){this.element.css({minHeight:k,height:"auto"})}else{this.uiDialog.show();h=this.element.css("height","auto").height();j||this.uiDialog.hide();this.element.height(Math.max(h,k))}}else{this.element.height(Math.max(h.height-c,0))}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});g.extend(g.ui.dialog,{version:"1.8.12",uuid:0,maxZ:0,getTitleId:function(c){c=c.attr("id");if(!c){this.uuid+=1;c=this.uuid}return"ui-dialog-title-"+c},overlay:function(c){this.$el=g.ui.dialog.overlay.create(c)}});g.extend(g.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:g.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(h){if(this.instances.length===0){setTimeout(function(){g.ui.dialog.overlay.instances.length&&g(document).bind(g.ui.dialog.overlay.events,function(j){if(g(j.target).zIndex()<g.ui.dialog.overlay.maxZ){return false}})},1);g(document).bind("keydown.dialog-overlay",function(j){if(h.options.closeOnEscape&&j.keyCode&&j.keyCode===g.ui.keyCode.ESCAPE){h.close(j);j.preventDefault()}});g(window).bind("resize.dialog-overlay",g.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||g("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});g.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(h){var c=g.inArray(h,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&g([document,window]).unbind(".dialog-overlay");h.remove();var j=0;g.each(this.instances,function(){j=Math.max(j,this.css("z-index"))});this.maxZ=j},height:function(){var h,c;if(g.browser.msie&&g.browser.version<7){h=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return h<c?g(window).height()+"px":h+"px"}else{return g(document).height()+"px"}},width:function(){var h,c;if(g.browser.msie&&g.browser.version<7){h=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return h<c?g(window).width()+"px":h+"px"}else{return g(document).width()+"px"}},resize:function(){var c=g([]);g.each(g.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:g.ui.dialog.overlay.width(),height:g.ui.dialog.overlay.height()})}});g.extend(g.ui.dialog.overlay.prototype,{destroy:function(){g.ui.dialog.overlay.destroy(this.$el)}})})(jQuery);(function(a){a.widget("ui.slider",a.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 c=this,e=this.options;this._mouseSliding=this._keySliding=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");e.disabled&&this.element.addClass("ui-slider-disabled ui-disabled");this.range=a([]);if(e.range){if(e.range===true){this.range=a("<div></div>");if(!e.values){e.values=[this._valueMin(),this._valueMin()]}if(e.values.length&&e.values.length!==2){e.values=[e.values[0],e.values[0]]}}else{this.range=a("<div></div>")}this.range.appendTo(this.element).addClass("ui-slider-range");if(e.range==="min"||e.range==="max"){this.range.addClass("ui-slider-range-"+e.range)}this.range.addClass("ui-widget-header")}a(".ui-slider-handle",this.element).length===0&&a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle");if(e.values&&e.values.length){for(;a(".ui-slider-handle",this.element).length<e.values.length;){a("<a href='#'></a>").appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){e.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(e.disabled){a(this).blur()}else{a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(b){a(this).data("index.ui-slider-handle",b)});this.handles.keydown(function(n){var m=true,l=a(this).data("index.ui-slider-handle"),j,k,b;if(!c.options.disabled){switch(n.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.PAGE_UP:case a.ui.keyCode.PAGE_DOWN:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:m=false;if(!c._keySliding){c._keySliding=true;a(this).addClass("ui-state-active");j=c._start(n,l);if(j===false){return}}break}b=c.options.step;j=c.options.values&&c.options.values.length?(k=c.values(l)):(k=c.value());switch(n.keyCode){case a.ui.keyCode.HOME:k=c._valueMin();break;case a.ui.keyCode.END:k=c._valueMax();break;case a.ui.keyCode.PAGE_UP:k=c._trimAlignValue(j+(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:k=c._trimAlignValue(j-(c._valueMax()-c._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(j===c._valueMax()){return}k=c._trimAlignValue(j+b);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(j===c._valueMin()){return}k=c._trimAlignValue(j-b);break}c._slide(n,l,k);return m}}).keyup(function(f){var b=a(this).data("index.ui-slider-handle");if(c._keySliding){c._keySliding=false;c._stop(f,b);c._change(f,b);a(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(j){var k=this.options,p,o,n,l,m;if(k.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();p=this._normValueFromMouse({x:j.pageX,y:j.pageY});o=this._valueMax()-this._valueMin()+1;l=this;this.handles.each(function(c){var b=Math.abs(p-l.values(c));if(o>b){o=b;n=a(this);m=c}});if(k.range===true&&this.values(1)===k.min){m+=1;n=a(this.handles[m])}if(this._start(j,m)===false){return false}this._mouseSliding=true;l._handleIndex=m;n.addClass("ui-state-active").focus();k=n.offset();this._clickOffset=!a(j.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:j.pageX-k.left-n.width()/2,top:j.pageY-k.top-n.height()/2-(parseInt(n.css("borderTopWidth"),10)||0)-(parseInt(n.css("borderBottomWidth"),10)||0)+(parseInt(n.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(j,m,p);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(c){var e=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,e);return false},_mouseStop:function(c){this.handles.removeClass("ui-state-active");this._mouseSliding=false;this._stop(c,this._handleIndex);this._change(c,this._handleIndex);this._clickOffset=this._handleIndex=null;return this._animateOff=false},_detectOrientation:function(){this.orientation=this.options.orientation==="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(c){var e;if(this.orientation==="horizontal"){e=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{e=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}e=c/e;if(e>1){e=1}if(e<0){e=0}if(this.orientation==="vertical"){e=1-e}c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+e*c)},_start:function(e,f){var g={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){g.value=this.values(f);g.values=this.values()}return this._trigger("start",e,g)},_slide:function(f,g,j){var h;if(this.options.values&&this.options.values.length){h=this.values(g?0:1);if(this.options.values.length===2&&this.options.range===true&&(g===0&&j>h||g===1&&j<h)){j=h}if(j!==this.values(g)){h=this.values();h[g]=j;f=this._trigger("slide",f,{handle:this.handles[g],value:j,values:h});this.values(g?0:1);f!==false&&this.values(g,j,true)}}else{if(j!==this.value()){f=this._trigger("slide",f,{handle:this.handles[g],value:j});f!==false&&this.value(j)}}},_stop:function(e,f){var g={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){g.value=this.values(f);g.values=this.values()}this._trigger("stop",e,g)},_change:function(e,f){if(!this._keySliding&&!this._mouseSliding){var g={handle:this.handles[f],value:this.value()};if(this.options.values&&this.options.values.length){g.value=this.values(f);g.values=this.values()}this._trigger("change",e,g)}},value:function(c){if(arguments.length){this.options.value=this._trimAlignValue(c);this._refreshValue();this._change(null,0)}else{return this._value()}},values:function(g,h){var l,k,j;if(arguments.length>1){this.options.values[g]=this._trimAlignValue(h);this._refreshValue();this._change(null,g)}else{if(arguments.length){if(a.isArray(arguments[0])){l=this.options.values;k=arguments[0];for(j=0;j<l.length;j+=1){l[j]=this._trimAlignValue(k[j]);this._change(null,j)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(g):this.value()}}else{return this._values()}}},_setOption:function(f,g){var j,h=0;if(a.isArray(this.options.values)){h=this.options.values.length}a.Widget.prototype._setOption.apply(this,arguments);switch(f){case"disabled":if(g){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled");this.element.addClass("ui-disabled")}else{this.handles.removeAttr("disabled");this.element.removeClass("ui-disabled")}break;case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue();break;case"value":this._animateOff=true;this._refreshValue();this._change(null,0);this._animateOff=false;break;case"values":this._animateOff=true;this._refreshValue();for(j=0;j<h;j+=1){this._change(null,j)}this._animateOff=false;break}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(e){var f,g;if(arguments.length){f=this.options.values[e];return f=this._trimAlignValue(f)}else{f=this.options.values.slice();for(g=0;g<f.length;g+=1){f[g]=this._trimAlignValue(f[g])}return f}},_trimAlignValue:function(e){if(e<=this._valueMin()){return this._valueMin()}if(e>=this._valueMax()){return this._valueMax()}var f=this.options.step>0?this.options.step:1,g=(e-this._valueMin())%f;alignValue=e-g;if(Math.abs(g)*2>=f){alignValue+=g>0?f:-f}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var v=this.options.range,w=this.options,u=this,s=!this._animateOff?w.animate:false,q,o={},p,n,m,k;if(this.options.values&&this.options.values.length){this.handles.each(function(b){q=(u.values(b)-u._valueMin())/(u._valueMax()-u._valueMin())*100;o[u.orientation==="horizontal"?"left":"bottom"]=q+"%";a(this).stop(1,1)[s?"animate":"css"](o,w.animate);if(u.options.range===true){if(u.orientation==="horizontal"){if(b===0){u.range.stop(1,1)[s?"animate":"css"]({left:q+"%"},w.animate)}if(b===1){u.range[s?"animate":"css"]({width:q-p+"%"},{queue:false,duration:w.animate})}}else{if(b===0){u.range.stop(1,1)[s?"animate":"css"]({bottom:q+"%"},w.animate)}if(b===1){u.range[s?"animate":"css"]({height:q-p+"%"},{queue:false,duration:w.animate})}}}p=q})}else{n=this.value();m=this._valueMin();k=this._valueMax();q=k!==m?(n-m)/(k-m)*100:0;o[u.orientation==="horizontal"?"left":"bottom"]=q+"%";this.handle.stop(1,1)[s?"animate":"css"](o,w.animate);if(v==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[s?"animate":"css"]({width:q+"%"},w.animate)}if(v==="max"&&this.orientation==="horizontal"){this.range[s?"animate":"css"]({width:100-q+"%"},{queue:false,duration:w.animate})}if(v==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[s?"animate":"css"]({height:q+"%"},w.animate)}if(v==="max"&&this.orientation==="vertical"){this.range[s?"animate":"css"]({height:100-q+"%"},{queue:false,duration:w.animate})}}}});a.extend(a.ui.slider,{version:"1.8.12"})})(jQuery);(function(g,f){function e(){return ++c}function b(){return ++a}var c=0,a=0;g.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(h,j){if(h=="selected"){this.options.collapsible&&j==this.options.selected||this.select(j)}else{this.options[h]=j;this._tabify()}},_tabId:function(h){return h.title&&h.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(h){return h.replace(/:/g,"\\:")},_cookie:function(){var h=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b());return g.cookie.apply(null,[h].concat(g.makeArray(arguments)))},_ui:function(h,j){return{tab:h,panel:j,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 h=g(this);h.html(h.data("label.tabs")).removeData("label.tabs")})},_tabify:function(A){function y(h,j){h.css("display","");!g.support.opacity&&j.opacity&&h[0].style.removeAttribute("filter")}var B=this,z=this.options,x=/^#.+/;this.list=this.element.find("ol,ul").eq(0);this.lis=g(" > li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return g("a",this)[0]});this.panels=g([]);this.anchors.each(function(k,n){var j=g(n).attr("href"),h=j.split("#")[0],m;if(h&&(h===location.toString().split("#")[0]||(m=g("base")[0])&&h===m.href)){j=n.hash;n.href=j}if(x.test(j)){B.panels=B.panels.add(B.element.find(B._sanitizeSelector(j)))}else{if(j&&j!=="#"){g.data(n,"href.tabs",j);g.data(n,"load.tabs",j.replace(/#.*$/,""));j=B._tabId(n);n.href="#"+j;n=B.element.find("#"+j);if(!n.length){n=g(z.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(B.panels[k-1]||B.list);n.data("destroy.tabs",true)}B.panels=B.panels.add(n)}else{z.disabled.push(k)}}});if(A){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(z.selected===f){location.hash&&this.anchors.each(function(h,j){if(j.hash==location.hash){z.selected=h;return false}});if(typeof z.selected!=="number"&&z.cookie){z.selected=parseInt(B._cookie(),10)}if(typeof z.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}z.selected=z.selected||(this.lis.length?0:-1)}else{if(z.selected===null){z.selected=-1}}z.selected=z.selected>=0&&this.anchors[z.selected]||z.selected<0?z.selected:0;z.disabled=g.unique(z.disabled.concat(g.map(this.lis.filter(".ui-state-disabled"),function(h){return B.lis.index(h)}))).sort();g.inArray(z.selected,z.disabled)!=-1&&z.disabled.splice(g.inArray(z.selected,z.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(z.selected>=0&&this.anchors.length){B.element.find(B._sanitizeSelector(B.anchors[z.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(z.selected).addClass("ui-tabs-selected ui-state-active");B.element.queue("tabs",function(){B._trigger("show",null,B._ui(B.anchors[z.selected],B.element.find(B._sanitizeSelector(B.anchors[z.selected].hash))[0]))});this.load(z.selected)}g(window).bind("unload",function(){B.lis.add(B.anchors).unbind(".tabs");B.lis=B.anchors=B.panels=null})}else{z.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[z.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");z.cookie&&this._cookie(z.selected,z.cookie);A=0;for(var w;w=this.lis[A];A++){g(w)[g.inArray(A,z.disabled)!=-1&&!g(w).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}z.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(z.event!=="mouseover"){var v=function(h,j){j.is(":not(.ui-state-disabled)")&&j.addClass("ui-state-"+h)},q=function(h,j){j.removeClass("ui-state-"+h)};this.lis.bind("mouseover.tabs",function(){v("hover",g(this))});this.lis.bind("mouseout.tabs",function(){q("hover",g(this))});this.anchors.bind("focus.tabs",function(){v("focus",g(this).closest("li"))});this.anchors.bind("blur.tabs",function(){q("focus",g(this).closest("li"))})}var u,p;if(z.fx){if(g.isArray(z.fx)){u=z.fx[0];p=z.fx[1]}else{u=p=z.fx}}var l=p?function(h,j){g(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.hide().removeClass("ui-tabs-hide").animate(p,p.duration||"normal",function(){y(j,p);B._trigger("show",null,B._ui(h,j[0]))})}:function(h,j){g(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");B._trigger("show",null,B._ui(h,j[0]))},C=u?function(h,j){j.animate(u,u.duration||"normal",function(){B.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");y(j,u);B.element.dequeue("tabs")})}:function(h,j){B.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");B.element.dequeue("tabs")};this.anchors.bind(z.event+".tabs",function(){var k=this,m=g(k).closest("li"),j=B.panels.filter(":not(.ui-tabs-hide)"),h=B.element.find(B._sanitizeSelector(k.hash));if(m.hasClass("ui-tabs-selected")&&!z.collapsible||m.hasClass("ui-state-disabled")||m.hasClass("ui-state-processing")||B.panels.filter(":animated").length||B._trigger("select",null,B._ui(this,h[0]))===false){this.blur();return false}z.selected=B.anchors.index(this);B.abort();if(z.collapsible){if(m.hasClass("ui-tabs-selected")){z.selected=-1;z.cookie&&B._cookie(z.selected,z.cookie);B.element.queue("tabs",function(){C(k,j)}).dequeue("tabs");this.blur();return false}else{if(!j.length){z.cookie&&B._cookie(z.selected,z.cookie);B.element.queue("tabs",function(){l(k,h)});B.load(B.anchors.index(this));this.blur();return false}}}z.cookie&&B._cookie(z.selected,z.cookie);if(h.length){j.length&&B.element.queue("tabs",function(){C(k,j)});B.element.queue("tabs",function(){l(k,h)});B.load(B.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}g.browser.msie&&this.blur()});this.anchors.bind("click.tabs",function(){return false})},_getIndex:function(h){if(typeof h=="string"){h=this.anchors.index(this.anchors.filter("[href$="+h+"]"))}return h},destroy:function(){var h=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 k=g.data(this,"href.tabs");if(k){this.href=k}var j=g(this).unbind(".tabs");g.each(["href","load","cache"],function(m,l){j.removeData(l+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){g.data(this,"destroy.tabs")?g(this).remove():g(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")});h.cookie&&this._cookie(null,h.cookie);return this},add:function(k,o,l){if(l===f){l=this.anchors.length}var p=this,n=this.options;o=g(n.tabTemplate.replace(/#\{href\}/g,k).replace(/#\{label\}/g,o));k=!k.indexOf("#")?k.replace("#",""):this._tabId(g("a",o)[0]);o.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var m=p.element.find("#"+k);m.length||(m=g(n.panelTemplate).attr("id",k).data("destroy.tabs",true));m.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(l>=this.lis.length){o.appendTo(this.list);m.appendTo(this.list[0].parentNode)}else{o.insertBefore(this.lis[l]);m.insertBefore(this.panels[l])}n.disabled=g.map(n.disabled,function(h){return h>=l?++h:h});this._tabify();if(this.anchors.length==1){n.selected=0;o.addClass("ui-tabs-selected ui-state-active");m.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){p._trigger("show",null,p._ui(p.anchors[0],p.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[l],this.panels[l]));return this},remove:function(h){h=this._getIndex(h);var k=this.options,j=this.lis.eq(h).remove(),l=this.panels.eq(h).remove();if(j.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(h+(h+1<this.anchors.length?1:-1))}k.disabled=g.map(g.grep(k.disabled,function(m){return m!=h}),function(m){return m>=h?--m:m});this._tabify();this._trigger("remove",null,this._ui(j.find("a")[0],l[0]));return this},enable:function(h){h=this._getIndex(h);var j=this.options;if(g.inArray(h,j.disabled)!=-1){this.lis.eq(h).removeClass("ui-state-disabled");j.disabled=g.grep(j.disabled,function(k){return k!=h});this._trigger("enable",null,this._ui(this.anchors[h],this.panels[h]));return this}},disable:function(h){h=this._getIndex(h);var 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(h){h=this._getIndex(h);if(h==-1){if(this.options.collapsible&&this.options.selected!=-1){h=this.options.selected}else{return this}}this.anchors.eq(h).trigger(this.options.event+".tabs");return this},load:function(k){k=this._getIndex(k);var o=this,l=this.options,p=this.anchors.eq(k)[0],n=g.data(p,"load.tabs");this.abort();if(!n||this.element.queue("tabs").length!==0&&g.data(p,"cache.tabs")){this.element.dequeue("tabs")}else{this.lis.eq(k).addClass("ui-state-processing");if(l.spinner){var m=g("span",p);m.data("label.tabs",m.html()).html(l.spinner)}this.xhr=g.ajax(g.extend({},l.ajaxOptions,{url:n,success:function(j,q){o.element.find(o._sanitizeSelector(p.hash)).html(j);o._cleanup();l.cache&&g.data(p,"cache.tabs",true);o._trigger("load",null,o._ui(o.anchors[k],o.panels[k]));try{l.ajaxOptions.success(j,q)}catch(h){}},error:function(j,q){o._cleanup();o._trigger("load",null,o._ui(o.anchors[k],o.panels[k]));try{l.ajaxOptions.error(j,q,k,p)}catch(h){}}}));o.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,j){this.anchors.eq(h).removeData("cache.tabs").data("load.tabs",j);return this},length:function(){return this.anchors.length}});g.extend(g.ui.tabs,{version:"1.8.12"});g.extend(g.ui.tabs.prototype,{rotation:null,rotate:function(j,m){var k=this,n=this.options,l=k._rotate||(k._rotate=function(h){clearTimeout(k.rotation);k.rotation=setTimeout(function(){var o=n.selected;k.select(++o<k.anchors.length?o:0)},j);h&&h.stopPropagation()});m=k._unrotate||(k._unrotate=!m?function(h){h.clientX&&k.rotate(null)}:function(){t=n.selected;l()});if(j){this.element.bind("tabsshow",l);this.anchors.bind(n.event+".tabs",m);l()}else{clearTimeout(k.rotation);this.element.unbind("tabsshow",l);this.anchors.unbind(n.event+".tabs",m);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(d,A){function K(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._inDialog=this._datepickerShowing=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};d.extend(this._defaults,this.regional[""]);this.dpDiv=d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}function F(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==A){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.12"}});var y=(new Date).getTime();d.extend(K.prototype,{markerClassName:"hasDatepicker",log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){F(this._defaults,a||{});return this},_attachDatepicker:function(a,b){var c=null;for(var e in this._defaults){var f=a.getAttribute("date:"+e);if(f){c=c||{};try{c[e]=eval(f)}catch(h){c[e]=f}}}e=a.nodeName.toLowerCase();f=e=="div"||e=="span";if(!a.id){this.uuid+=1;a.id="dp"+this.uuid}var i=this._newInst(d(a),f);i.settings=d.extend({},b||{},c||{});if(e=="input"){this._connectDatepicker(a,i)}else{f&&this._inlineDatepicker(a,i)}},_newInst:function(a,b){return{id:a[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1"),input:a,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:b,dpDiv:!b?this.dpDiv:d('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}},_connectDatepicker:function(a,b){var c=d(a);b.append=d([]);b.trigger=d([]);if(!c.hasClass(this.markerClassName)){this._attachments(c,b);c.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});this._autoSize(b);d.data(a,"datepicker",b)}},_attachments:function(a,b){var c=this._get(b,"appendText"),e=this._get(b,"isRTL");b.append&&b.append.remove();if(c){b.append=d('<span class="'+this._appendClass+'">'+c+"</span>");a[e?"before":"after"](b.append)}a.unbind("focus",this._showDatepicker);b.trigger&&b.trigger.remove();c=this._get(b,"showOn");if(c=="focus"||c=="both"){a.focus(this._showDatepicker)}if(c=="button"||c=="both"){c=this._get(b,"buttonText");var f=this._get(b,"buttonImage");b.trigger=d(this._get(b,"buttonImageOnly")?d("<img/>").addClass(this._triggerClass).attr({src:f,alt:c,title:c}):d('<button type="button"></button>').addClass(this._triggerClass).html(f==""?c:d("<img/>").attr({src:f,alt:c,title:c})));a[e?"before":"after"](b.trigger);b.trigger.click(function(){d.datepicker._datepickerShowing&&d.datepicker._lastInput==a[0]?d.datepicker._hideDatepicker():d.datepicker._showDatepicker(a[0]);return false})}},_autoSize:function(a){if(this._get(a,"autoSize")&&!a.inline){var b=new Date(2009,11,20),c=this._get(a,"dateFormat");if(c.match(/[DM]/)){var e=function(f){for(var h=0,i=0,g=0;g<f.length;g++){if(f[g].length>h){h=f[g].length;i=g}}return i};b.setMonth(e(this._get(a,c.match(/MM/)?"monthNames":"monthNamesShort")));b.setDate(e(this._get(a,c.match(/DD/)?"dayNames":"dayNamesShort"))+20-b.getDay())}a.input.attr("size",this._formatDate(a,b).length)}},_inlineDatepicker:function(a,b){var c=d(a);if(!c.hasClass(this.markerClassName)){c.addClass(this.markerClassName).append(b.dpDiv).bind("setData.datepicker",function(e,f,h){b.settings[f]=h}).bind("getData.datepicker",function(e,f){return this._get(b,f)});d.data(a,"datepicker",b);this._setDate(b,this._getDefaultDate(b),true);this._updateDatepicker(b);this._updateAlternate(b);b.dpDiv.show()}},_dialogDatepicker:function(a,b,c,e,f){a=this._dialogInst;if(!a){this.uuid+=1;this._dialogInput=d('<input type="text" id="'+("dp"+this.uuid)+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);d("body").append(this._dialogInput);a=this._dialogInst=this._newInst(this._dialogInput,false);a.settings={};d.data(this._dialogInput[0],"datepicker",a)}F(a.settings,e||{});b=b&&b.constructor==Date?this._formatDate(a,b):b;this._dialogInput.val(b);this._pos=f?f.length?f:[f.pageX,f.pageY]:null;if(!this._pos){this._pos=[document.documentElement.clientWidth/2-100+(document.documentElement.scrollLeft||document.body.scrollLeft),document.documentElement.clientHeight/2-150+(document.documentElement.scrollTop||document.body.scrollTop)]}this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px");a.settings.onSelect=c;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);d.blockUI&&d.blockUI(this.dpDiv);d.data(this._dialogInput[0],"datepicker",a);return this},_destroyDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();d.removeData(a,"datepicker");if(e=="input"){c.append.remove();c.trigger.remove();b.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(e=="div"||e=="span"){b.removeClass(this.markerClassName).empty()}}}},_enableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=false;c.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().removeClass("ui-state-disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f})}},_disableDatepicker:function(a){var b=d(a),c=d.data(a,"datepicker");if(b.hasClass(this.markerClassName)){var e=a.nodeName.toLowerCase();if(e=="input"){a.disabled=true;c.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(e=="div"||e=="span"){b.children("."+this._inlineClass).children().addClass("ui-state-disabled")}}this._disabledInputs=d.map(this._disabledInputs,function(f){return f==a?null:f});this._disabledInputs[this._disabledInputs.length]=a}},_isDisabledDatepicker:function(a){if(!a){return false}for(var b=0;b<this._disabledInputs.length;b++){if(this._disabledInputs[b]==a){return true}}return false},_getInst:function(a){try{return d.data(a,"datepicker")}catch(b){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(a,b,c){var e=this._getInst(a);if(arguments.length==2&&typeof b=="string"){return b=="defaults"?d.extend({},d.datepicker._defaults):e?b=="all"?d.extend({},e.settings):this._get(e,b):null}var f=b||{};if(typeof b=="string"){f={};f[b]=c}if(e){this._curInst==e&&this._hideDatepicker();var h=this._getDateDatepicker(a,true),i=this._getMinMaxDate(e,"min"),g=this._getMinMaxDate(e,"max");F(e.settings,f);if(i!==null&&f.dateFormat!==A&&f.minDate===A){e.settings.minDate=this._formatDate(e,i)}if(g!==null&&f.dateFormat!==A&&f.maxDate===A){e.settings.maxDate=this._formatDate(e,g)}this._attachments(d(a),e);this._autoSize(e);this._setDateDatepicker(a,h);this._updateDatepicker(e)}},_changeDatepicker:function(a,b,c){this._optionDatepicker(a,b,c)},_refreshDatepicker:function(a){(a=this._getInst(a))&&this._updateDatepicker(a)},_setDateDatepicker:function(a,b){if(a=this._getInst(a)){this._setDate(a,b);this._updateDatepicker(a);this._updateAlternate(a)}},_getDateDatepicker:function(a,b){(a=this._getInst(a))&&!a.inline&&this._setDateFromField(a,b);return a?this._getDate(a):null},_doKeyDown:function(a){var b=d.datepicker._getInst(a.target),c=true,e=b.dpDiv.is(".ui-datepicker-rtl");b._keyEvent=true;if(d.datepicker._datepickerShowing){switch(a.keyCode){case 9:d.datepicker._hideDatepicker();c=false;break;case 13:c=d("td."+d.datepicker._dayOverClass+":not(."+d.datepicker._currentClass+")",b.dpDiv);c[0]?d.datepicker._selectDay(a.target,b.selectedMonth,b.selectedYear,c[0]):d.datepicker._hideDatepicker();return false;case 27:d.datepicker._hideDatepicker();break;case 33:d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M");break;case 34:d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M");break;case 35:if(a.ctrlKey||a.metaKey){d.datepicker._clearDate(a.target)}c=a.ctrlKey||a.metaKey;break;case 36:if(a.ctrlKey||a.metaKey){d.datepicker._gotoToday(a.target)}c=a.ctrlKey||a.metaKey;break;case 37:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?+1:-1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?-d.datepicker._get(b,"stepBigMonths"):-d.datepicker._get(b,"stepMonths"),"M")}break;case 38:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,-7,"D")}c=a.ctrlKey||a.metaKey;break;case 39:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,e?-1:+1,"D")}c=a.ctrlKey||a.metaKey;if(a.originalEvent.altKey){d.datepicker._adjustDate(a.target,a.ctrlKey?+d.datepicker._get(b,"stepBigMonths"):+d.datepicker._get(b,"stepMonths"),"M")}break;case 40:if(a.ctrlKey||a.metaKey){d.datepicker._adjustDate(a.target,+7,"D")}c=a.ctrlKey||a.metaKey;break;default:c=false}}else{if(a.keyCode==36&&a.ctrlKey){d.datepicker._showDatepicker(this)}else{c=false}}if(c){a.preventDefault();a.stopPropagation()}},_doKeyPress:function(a){var b=d.datepicker._getInst(a.target);if(d.datepicker._get(b,"constrainInput")){b=d.datepicker._possibleChars(d.datepicker._get(b,"dateFormat"));var c=String.fromCharCode(a.charCode==A?a.keyCode:a.charCode);return a.ctrlKey||a.metaKey||c<" "||!b||b.indexOf(c)>-1}},_doKeyUp:function(a){a=d.datepicker._getInst(a.target);if(a.input.val()!=a.lastVal){try{if(d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),a.input?a.input.val():null,d.datepicker._getFormatConfig(a))){d.datepicker._setDateFromField(a);d.datepicker._updateAlternate(a);d.datepicker._updateDatepicker(a)}}catch(b){d.datepicker.log(b)}}return true},_showDatepicker:function(a){a=a.target||a;if(a.nodeName.toLowerCase()!="input"){a=d("input",a.parentNode)[0]}if(!(d.datepicker._isDisabledDatepicker(a)||d.datepicker._lastInput==a)){var b=d.datepicker._getInst(a);d.datepicker._curInst&&d.datepicker._curInst!=b&&d.datepicker._curInst.dpDiv.stop(true,true);var c=d.datepicker._get(b,"beforeShow");F(b.settings,c?c.apply(a,[a,b]):{});b.lastVal=null;d.datepicker._lastInput=a;d.datepicker._setDateFromField(b);if(d.datepicker._inDialog){a.value=""}if(!d.datepicker._pos){d.datepicker._pos=d.datepicker._findPos(a);d.datepicker._pos[1]+=a.offsetHeight}var e=false;d(a).parents().each(function(){e|=d(this).css("position")=="fixed";return !e});if(e&&d.browser.opera){d.datepicker._pos[0]-=document.documentElement.scrollLeft;d.datepicker._pos[1]-=document.documentElement.scrollTop}c={left:d.datepicker._pos[0],top:d.datepicker._pos[1]};d.datepicker._pos=null;b.dpDiv.empty();b.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});d.datepicker._updateDatepicker(b);c=d.datepicker._checkOffset(b,c,e);b.dpDiv.css({position:d.datepicker._inDialog&&d.blockUI?"static":e?"fixed":"absolute",display:"none",left:c.left+"px",top:c.top+"px"});if(!b.inline){c=d.datepicker._get(b,"showAnim");var f=d.datepicker._get(b,"duration"),h=function(){d.datepicker._datepickerShowing=true;var i=b.dpDiv.find("iframe.ui-datepicker-cover");if(i.length){var g=d.datepicker._getBorders(b.dpDiv);i.css({left:-g[0],top:-g[1],width:b.dpDiv.outerWidth(),height:b.dpDiv.outerHeight()})}};b.dpDiv.zIndex(d(a).zIndex()+1);d.effects&&d.effects[c]?b.dpDiv.show(c,d.datepicker._get(b,"showOptions"),f,h):b.dpDiv[c||"show"](c?f:null,h);if(!c||!f){h()}b.input.is(":visible")&&!b.input.is(":disabled")&&b.input.focus();d.datepicker._curInst=b}}},_updateDatepicker:function(a){var b=this,c=d.datepicker._getBorders(a.dpDiv);a.dpDiv.empty().append(this._generateHTML(a));var e=a.dpDiv.find("iframe.ui-datepicker-cover");e.length&&e.css({left:-c[0],top:-c[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){d(this).removeClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).removeClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).removeClass("ui-datepicker-next-hover")}).bind("mouseover",function(){if(!b._isDisabledDatepicker(a.inline?a.dpDiv.parent()[0]:a.input[0])){d(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");d(this).addClass("ui-state-hover");this.className.indexOf("ui-datepicker-prev")!=-1&&d(this).addClass("ui-datepicker-prev-hover");this.className.indexOf("ui-datepicker-next")!=-1&&d(this).addClass("ui-datepicker-next-hover")}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();c=this._getNumberOfMonths(a);e=c[1];e>1?a.dpDiv.addClass("ui-datepicker-multi-"+e).css("width",17*e+"em"):a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");a.dpDiv[(c[0]!=1||c[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");a.dpDiv[(this._get(a,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");a==d.datepicker._curInst&&d.datepicker._datepickerShowing&&a.input&&a.input.is(":visible")&&!a.input.is(":disabled")&&a.input[0]!=document.activeElement&&a.input.focus();if(a.yearshtml){var f=a.yearshtml;setTimeout(function(){f===a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);f=a.yearshtml=null},0)}},_getBorders:function(a){var b=function(c){return{thin:1,medium:2,thick:3}[c]||c};return[parseFloat(b(a.css("border-left-width"))),parseFloat(b(a.css("border-top-width")))]},_checkOffset:function(a,b,c){var e=a.dpDiv.outerWidth(),f=a.dpDiv.outerHeight(),h=a.input?a.input.outerWidth():0,i=a.input?a.input.outerHeight():0,g=document.documentElement.clientWidth+d(document).scrollLeft(),j=document.documentElement.clientHeight+d(document).scrollTop();b.left-=this._get(a,"isRTL")?e-h:0;b.left-=c&&b.left==a.input.offset().left?d(document).scrollLeft():0;b.top-=c&&b.top==a.input.offset().top+i?d(document).scrollTop():0;b.left-=Math.min(b.left,b.left+e>g&&g>e?Math.abs(b.left+e-g):0);b.top-=Math.min(b.top,b.top+f>j&&j>f?Math.abs(f+i):0);return b},_findPos:function(a){for(var b=this._get(this._getInst(a),"isRTL");a&&(a.type=="hidden"||a.nodeType!=1||d.expr.filters.hidden(a));){a=a[b?"previousSibling":"nextSibling"]}a=d(a).offset();return[a.left,a.top]},_hideDatepicker:function(a){var b=this._curInst;if(!(!b||a&&b!=d.data(a,"datepicker"))){if(this._datepickerShowing){a=this._get(b,"showAnim");var c=this._get(b,"duration"),e=function(){d.datepicker._tidyDialog(b);this._curInst=null};d.effects&&d.effects[a]?b.dpDiv.hide(a,d.datepicker._get(b,"showOptions"),c,e):b.dpDiv[a=="slideDown"?"slideUp":a=="fadeIn"?"fadeOut":"hide"](a?c:null,e);a||e();if(a=this._get(b,"onClose")){a.apply(b.input?b.input[0]:null,[b.input?b.input.val():"",b])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if(d.blockUI){d.unblockUI();d("body").append(this.dpDiv)}}this._inDialog=false}}},_tidyDialog:function(a){a.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(a){if(d.datepicker._curInst){a=d(a.target);a[0].id!=d.datepicker._mainDivId&&a.parents("#"+d.datepicker._mainDivId).length==0&&!a.hasClass(d.datepicker.markerClassName)&&!a.hasClass(d.datepicker._triggerClass)&&d.datepicker._datepickerShowing&&!(d.datepicker._inDialog&&d.blockUI)&&d.datepicker._hideDatepicker()}},_adjustDate:function(a,b,c){a=d(a);var e=this._getInst(a[0]);if(!this._isDisabledDatepicker(a[0])){this._adjustInstDate(e,b+(c=="M"?this._get(e,"showCurrentAtPos"):0),c);this._updateDatepicker(e)}},_gotoToday:function(a){a=d(a);var b=this._getInst(a[0]);if(this._get(b,"gotoCurrent")&&b.currentDay){b.selectedDay=b.currentDay;b.drawMonth=b.selectedMonth=b.currentMonth;b.drawYear=b.selectedYear=b.currentYear}else{var c=new Date;b.selectedDay=c.getDate();b.drawMonth=b.selectedMonth=c.getMonth();b.drawYear=b.selectedYear=c.getFullYear()}this._notifyChange(b);this._adjustDate(a)},_selectMonthYear:function(a,b,c){a=d(a);var e=this._getInst(a[0]);e._selectingMonthYear=false;e["selected"+(c=="M"?"Month":"Year")]=e["draw"+(c=="M"?"Month":"Year")]=parseInt(b.options[b.selectedIndex].value,10);this._notifyChange(e);this._adjustDate(a)},_clickMonthYear:function(a){var b=this._getInst(d(a)[0]);b.input&&b._selectingMonthYear&&setTimeout(function(){b.input.focus()},0);b._selectingMonthYear=!b._selectingMonthYear},_selectDay:function(a,b,c,e){var f=d(a);if(!(d(e).hasClass(this._unselectableClass)||this._isDisabledDatepicker(f[0]))){f=this._getInst(f[0]);f.selectedDay=f.currentDay=d("a",e).html();f.selectedMonth=f.currentMonth=b;f.selectedYear=f.currentYear=c;this._selectDate(a,this._formatDate(f,f.currentDay,f.currentMonth,f.currentYear))}},_clearDate:function(a){a=d(a);this._getInst(a[0]);this._selectDate(a,"")},_selectDate:function(a,b){a=this._getInst(d(a)[0]);b=b!=null?b:this._formatDate(a);a.input&&a.input.val(b);this._updateAlternate(a);var c=this._get(a,"onSelect");if(c){c.apply(a.input?a.input[0]:null,[b,a])}else{a.input&&a.input.trigger("change")}if(a.inline){this._updateDatepicker(a)}else{this._hideDatepicker();this._lastInput=a.input[0];typeof a.input[0]!="object"&&a.input.focus();this._lastInput=null}},_updateAlternate:function(a){var b=this._get(a,"altField");if(b){var c=this._get(a,"altFormat")||this._get(a,"dateFormat"),e=this._getDate(a),f=this.formatDate(c,e,this._getFormatConfig(a));d(b).each(function(){d(this).val(f)})}},noWeekends:function(a){a=a.getDay();return[a>0&&a<6,""]},iso8601Week:function(a){a=new Date(a.getTime());a.setDate(a.getDate()+4-(a.getDay()||7));var b=a.getTime();a.setMonth(0);a.setDate(1);return Math.floor(Math.round((b-a)/86400000)/7)+1},parseDate:function(a,b,c){if(a==null||b==null){throw"Invalid arguments"}b=typeof b=="object"?b.toString():b+"";if(b==""){return null}var e=(c?c.shortYearCutoff:null)||this._defaults.shortYearCutoff;e=typeof e!="string"?e:(new Date).getFullYear()%100+parseInt(e,10);for(var f=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,h=(c?c.dayNames:null)||this._defaults.dayNames,i=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort,g=(c?c.monthNames:null)||this._defaults.monthNames,j=c=-1,l=-1,u=-1,k=false,o=function(p){(p=z+1<a.length&&a.charAt(z+1)==p)&&z++;return p},m=function(p){var v=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&v?4:p=="o"?3:2)+"}");p=b.substring(s).match(p);if(!p){throw"Missing number at position "+s}s+=p[0].length;return parseInt(p[0],10)},n=function(p,v,H){p=o(p)?H:v;for(v=0;v<p.length;v++){if(b.substr(s,p[v].length).toLowerCase()==p[v].toLowerCase()){s+=p[v].length;return v+1}}throw"Unknown name at position "+s},r=function(){if(b.charAt(s)!=a.charAt(z)){throw"Unexpected literal at position "+s}s++},s=0,z=0;z<a.length;z++){if(k){if(a.charAt(z)=="'"&&!o("'")){k=false}else{r()}}else{switch(a.charAt(z)){case"d":l=m("d");break;case"D":n("D",f,h);break;case"o":u=m("o");break;case"m":j=m("m");break;case"M":j=n("M",i,g);break;case"y":c=m("y");break;case"@":var w=new Date(m("@"));c=w.getFullYear();j=w.getMonth()+1;l=w.getDate();break;case"!":w=new Date((m("!")-this._ticksTo1970)/10000);c=w.getFullYear();j=w.getMonth()+1;l=w.getDate();break;case"'":if(o("'")){r()}else{k=true}break;default:r()}}}if(c==-1){c=(new Date).getFullYear()}else{if(c<100){c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=e?0:-100)}}if(u>-1){j=1;l=u;do{e=this._getDaysInMonth(c,j-1);if(l<=e){break}j++;l-=e}while(1)}w=this._daylightSavingAdjust(new Date(c,j-1,l));if(w.getFullYear()!=c||w.getMonth()+1!=j||w.getDate()!=l){throw"Invalid date"}return w},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:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*24*60*60*10000000,formatDate:function(a,b,c){if(!b){return""}var e=(c?c.dayNamesShort:null)||this._defaults.dayNamesShort,f=(c?c.dayNames:null)||this._defaults.dayNames,h=(c?c.monthNamesShort:null)||this._defaults.monthNamesShort;c=(c?c.monthNames:null)||this._defaults.monthNames;var i=function(o){(o=k+1<a.length&&a.charAt(k+1)==o)&&k++;return o},g=function(o,m,n){m=""+m;if(i(o)){for(;m.length<n;){m="0"+m}}return m},j=function(o,m,n,r){return i(o)?r[m]:n[m]},l="",u=false;if(b){for(var k=0;k<a.length;k++){if(u){if(a.charAt(k)=="'"&&!i("'")){u=false}else{l+=a.charAt(k)}}else{switch(a.charAt(k)){case"d":l+=g("d",b.getDate(),2);break;case"D":l+=j("D",b.getDay(),e,f);break;case"o":l+=g("o",(b.getTime()-(new Date(b.getFullYear(),0,0)).getTime())/86400000,3);break;case"m":l+=g("m",b.getMonth()+1,2);break;case"M":l+=j("M",b.getMonth(),h,c);break;case"y":l+=i("y")?b.getFullYear():(b.getYear()%100<10?"0":"")+b.getYear()%100;break;case"@":l+=b.getTime();break;case"!":l+=b.getTime()*10000+this._ticksTo1970;break;case"'":if(i("'")){l+="'"}else{u=true}break;default:l+=a.charAt(k)}}}}return l},_possibleChars:function(a){for(var b="",c=false,e=function(h){(h=f+1<a.length&&a.charAt(f+1)==h)&&f++;return h},f=0;f<a.length;f++){if(c){if(a.charAt(f)=="'"&&!e("'")){c=false}else{b+=a.charAt(f)}}else{switch(a.charAt(f)){case"d":case"m":case"y":case"@":b+="0123456789";break;case"D":case"M":return null;case"'":if(e("'")){b+="'"}else{c=true}break;default:b+=a.charAt(f)}}}return b},_get:function(a,b){return a.settings[b]!==A?a.settings[b]:this._defaults[b]},_setDateFromField:function(a,b){if(a.input.val()!=a.lastVal){var c=this._get(a,"dateFormat"),e=a.lastVal=a.input?a.input.val():null,f,h;f=h=this._getDefaultDate(a);var i=this._getFormatConfig(a);try{f=this.parseDate(c,e,i)||h}catch(g){this.log(g);e=b?"":e}a.selectedDay=f.getDate();a.drawMonth=a.selectedMonth=f.getMonth();a.drawYear=a.selectedYear=f.getFullYear();a.currentDay=e?f.getDate():0;a.currentMonth=e?f.getMonth():0;a.currentYear=e?f.getFullYear():0;this._adjustInstDate(a)}},_getDefaultDate:function(a){return this._restrictMinMax(a,this._determineDate(a,this._get(a,"defaultDate"),new Date))},_determineDate:function(a,b,c){var e=function(h){var i=new Date;i.setDate(i.getDate()+h);return i},f=function(h){try{return d.datepicker.parseDate(d.datepicker._get(a,"dateFormat"),h,d.datepicker._getFormatConfig(a))}catch(i){}var g=(h.toLowerCase().match(/^c/)?d.datepicker._getDate(a):null)||new Date,j=g.getFullYear(),l=g.getMonth();g=g.getDate();for(var u=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,k=u.exec(h);k;){switch(k[2]||"d"){case"d":case"D":g+=parseInt(k[1],10);break;case"w":case"W":g+=parseInt(k[1],10)*7;break;case"m":case"M":l+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break;case"y":case"Y":j+=parseInt(k[1],10);g=Math.min(g,d.datepicker._getDaysInMonth(j,l));break}k=u.exec(h)}return new Date(j,l,g)};if(b=(b=b==null||b===""?c:typeof b=="string"?f(b):typeof b=="number"?isNaN(b)?c:e(b):new Date(b.getTime()))&&b.toString()=="Invalid Date"?c:b){b.setHours(0);b.setMinutes(0);b.setSeconds(0);b.setMilliseconds(0)}return this._daylightSavingAdjust(b)},_daylightSavingAdjust:function(a){if(!a){return null}a.setHours(a.getHours()>12?a.getHours()+2:0);return a},_setDate:function(a,b,c){var e=!b,f=a.selectedMonth,h=a.selectedYear;b=this._restrictMinMax(a,this._determineDate(a,b,new Date));a.selectedDay=a.currentDay=b.getDate();a.drawMonth=a.selectedMonth=a.currentMonth=b.getMonth();a.drawYear=a.selectedYear=a.currentYear=b.getFullYear();if((f!=a.selectedMonth||h!=a.selectedYear)&&!c){this._notifyChange(a)}this._adjustInstDate(a);if(a.input){a.input.val(e?"":this._formatDate(a))}},_getDate:function(a){return !a.currentYear||a.input&&a.input.val()==""?null:this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay))},_generateHTML:function(a){var b=new Date;b=this._daylightSavingAdjust(new Date(b.getFullYear(),b.getMonth(),b.getDate()));var c=this._get(a,"isRTL"),e=this._get(a,"showButtonPanel"),f=this._get(a,"hideIfNoPrevNext"),h=this._get(a,"navigationAsDateFormat"),i=this._getNumberOfMonths(a),g=this._get(a,"showCurrentAtPos"),j=this._get(a,"stepMonths"),l=i[0]!=1||i[1]!=1,u=this._daylightSavingAdjust(!a.currentDay?new Date(9999,9,9):new Date(a.currentYear,a.currentMonth,a.currentDay)),k=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max");g=a.drawMonth-g;var m=a.drawYear;if(g<0){g+=12;m--}if(o){var n=this._daylightSavingAdjust(new Date(o.getFullYear(),o.getMonth()-i[0]*i[1]+1,o.getDate()));for(n=k&&n<k?k:n;this._daylightSavingAdjust(new Date(m,g,1))>n;){g--;if(g<0){g=11;m--}}}a.drawMonth=g;a.drawYear=m;n=this._get(a,"prevText");n=!h?n:this.formatDate(n,this._daylightSavingAdjust(new Date(m,g-j,1)),this._getFormatConfig(a));n=this._canAdjustMonth(a,-1,m,g)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', -"+j+", 'M');\" title=\""+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>":f?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+n+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"e":"w")+'">'+n+"</span></a>";var r=this._get(a,"nextText");r=!h?r:this.formatDate(r,this._daylightSavingAdjust(new Date(m,g+j,1)),this._getFormatConfig(a));f=this._canAdjustMonth(a,+1,m,g)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+r+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+r+"</span></a>";j=this._get(a,"currentText");r=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,r,this._getFormatConfig(a));h=!a.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_jQuery_'+y+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,r)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+y+".datepicker._gotoToday('#"+a.id+"');\">"+j+"</button>":"")+(c?"":h)+"</div>":"";h=parseInt(this._get(a,"firstDay"),10);h=isNaN(h)?0:h;j=this._get(a,"showWeek");r=this._get(a,"dayNames");this._get(a,"dayNamesShort");var s=this._get(a,"dayNamesMin"),z=this._get(a,"monthNames"),w=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),v=this._get(a,"showOtherMonths"),H=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var L=this._getDefaultDate(a),I="",D=0;D<i[0];D++){for(var M="",E=0;E<i[1];E++){var N=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",x="";if(l){x+='<div class="ui-datepicker-group';if(i[1]>1){switch(E){case 0:x+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:x+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:x+=" ui-datepicker-group-middle";t="";break}}x+='">'}x+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&D==0?c?f:n:"")+(/all|right/.test(t)&&D==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,D>0||E>0,z,w)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var B=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var q=(t+h)%7;B+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+r[q]+'">'+s[q]+"</span></th>"}x+=B+"</tr></thead><tbody>";B=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,B)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;B=l?6:Math.ceil((t+B)/7);q=this._daylightSavingAdjust(new Date(m,g,1-t));for(var O=0;O<B;O++){x+="<tr>";var P=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(q)+"</td>";for(t=0;t<7;t++){var G=p?p.apply(a.input?a.input[0]:null,[q]):[true,""],C=q.getMonth()!=g,J=C&&!H||!G[0]||k&&q<k||o&&q>o;P+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(C?" ui-datepicker-other-month":"")+(q.getTime()==N.getTime()&&g==a.selectedMonth&&a._keyEvent||L.getTime()==q.getTime()&&L.getTime()==N.getTime()?" "+this._dayOverClass:"")+(J?" "+this._unselectableClass+" ui-state-disabled":"")+(C&&!v?"":" "+G[1]+(q.getTime()==u.getTime()?" "+this._currentClass:"")+(q.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!C||v)&&G[2]?' title="'+G[2]+'"':"")+(J?"":' onclick="DP_jQuery_'+y+".datepicker._selectDay('#"+a.id+"',"+q.getMonth()+","+q.getFullYear()+', this);return false;"')+">"+(C&&!v?"&#xa0;":J?'<span class="ui-state-default">'+q.getDate()+"</span>":'<a class="ui-state-default'+(q.getTime()==b.getTime()?" ui-state-highlight":"")+(q.getTime()==u.getTime()?" ui-state-active":"")+(C?" ui-priority-secondary":"")+'" href="#">'+q.getDate()+"</a>")+"</td>";q.setDate(q.getDate()+1);q=this._daylightSavingAdjust(q)}x+=P+"</tr>"}g++;if(g>11){g=0;m++}x+="</tbody></table>"+(l?"</div>"+(i[0]>0&&E==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");M+=x}I+=M}I+=e+(d.browser.msie&&parseInt(d.browser.version,10)<7&&!a.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");a._keyEvent=false;return I},_generateMonthYearHeader:function(a,b,c,e,f,h,i,g){var j=this._get(a,"changeMonth"),l=this._get(a,"changeYear"),u=this._get(a,"showMonthAfterYear"),k='<div class="ui-datepicker-title">',o="";if(h||!j){o+='<span class="ui-datepicker-month">'+i[b]+"</span>"}else{i=e&&e.getFullYear()==c;var m=f&&f.getFullYear()==c;o+='<select class="ui-datepicker-month" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";for(var n=0;n<12;n++){if((!i||n>=e.getMonth())&&(!m||n<=f.getMonth())){o+='<option value="'+n+'"'+(n==b?' selected="selected"':"")+">"+g[n]+"</option>"}}o+="</select>"}u||(k+=o+(h||!(j&&l)?"&#xa0;":""));if(!a.yearshtml){a.yearshtml="";if(h||!l){k+='<span class="ui-datepicker-year">'+c+"</span>"}else{g=this._get(a,"yearRange").split(":");var r=(new Date).getFullYear();i=function(s){s=s.match(/c[+-].*/)?c+parseInt(s.substring(1),10):s.match(/[+-].*/)?r+parseInt(s,10):parseInt(s,10);return isNaN(s)?r:s};b=i(g[0]);g=Math.max(b,i(g[1]||""));b=e?Math.max(b,e.getFullYear()):b;g=f?Math.min(g,f.getFullYear()):g;for(a.yearshtml+='<select class="ui-datepicker-year" onchange="DP_jQuery_'+y+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+y+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++){a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"}a.yearshtml+="</select>";if(d.browser.mozilla){k+='<select class="ui-datepicker-year"><option value="'+c+'" selected="selected">'+c+"</option></select>"}else{k+=a.yearshtml;a.yearshtml=null}}}k+=this._get(a,"yearSuffix");if(u){k+=(h||!(j&&l)?"&#xa0;":"")+o}k+="</div>";return k},_adjustInstDate:function(a,b,c){var e=a.drawYear+(c=="Y"?b:0),f=a.drawMonth+(c=="M"?b:0);b=Math.min(a.selectedDay,this._getDaysInMonth(e,f))+(c=="D"?b:0);e=this._restrictMinMax(a,this._daylightSavingAdjust(new Date(e,f,b)));a.selectedDay=e.getDate();a.drawMonth=a.selectedMonth=e.getMonth();a.drawYear=a.selectedYear=e.getFullYear();if(c=="M"||c=="Y"){this._notifyChange(a)}},_restrictMinMax:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");b=c&&b<c?c:b;return b=a&&b>a?a:b},_notifyChange:function(a){var b=this._get(a,"onChangeMonthYear");if(b){b.apply(a.input?a.input[0]:null,[a.selectedYear,a.selectedMonth+1,a])}},_getNumberOfMonths:function(a){a=this._get(a,"numberOfMonths");return a==null?[1,1]:typeof a=="number"?[1,a]:a},_getMinMaxDate:function(a,b){return this._determineDate(a,this._get(a,b+"Date"),null)},_getDaysInMonth:function(a,b){return 32-this._daylightSavingAdjust(new Date(a,b,32)).getDate()},_getFirstDayOfMonth:function(a,b){return(new Date(a,b,1)).getDay()},_canAdjustMonth:function(a,b,c,e){var f=this._getNumberOfMonths(a);c=this._daylightSavingAdjust(new Date(c,e+(b<0?b:f[0]*f[1]),1));b<0&&c.setDate(this._getDaysInMonth(c.getFullYear(),c.getMonth()));return this._isInRange(a,c)},_isInRange:function(a,b){var c=this._getMinMaxDate(a,"min");a=this._getMinMaxDate(a,"max");return(!c||b.getTime()>=c.getTime())&&(!a||b.getTime()<=a.getTime())},_getFormatConfig:function(a){var b=this._get(a,"shortYearCutoff");b=typeof b!="string"?b:(new Date).getFullYear()%100+parseInt(b,10);return{shortYearCutoff:b,dayNamesShort:this._get(a,"dayNamesShort"),dayNames:this._get(a,"dayNames"),monthNamesShort:this._get(a,"monthNamesShort"),monthNames:this._get(a,"monthNames")}},_formatDate:function(a,b,c,e){if(!b){a.currentDay=a.selectedDay;a.currentMonth=a.selectedMonth;a.currentYear=a.selectedYear}b=b?typeof b=="object"?b:this._daylightSavingAdjust(new Date(e,c,b)):this._daylightSavingAdjust(new Date(a.currentYear,a.currentMonth,a.currentDay));return this.formatDate(this._get(a,"dateFormat"),b,this._getFormatConfig(a))}});d.fn.datepicker=function(a){if(!this.length){return this}if(!d.datepicker.initialized){d(document).mousedown(d.datepicker._checkExternalClick).find("body").append(d.datepicker.dpDiv);d.datepicker.initialized=true}var b=Array.prototype.slice.call(arguments,1);if(typeof a=="string"&&(a=="isDisabled"||a=="getDate"||a=="widget")){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}if(a=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this[0]].concat(b))}return this.each(function(){typeof a=="string"?d.datepicker["_"+a+"Datepicker"].apply(d.datepicker,[this].concat(b)):d.datepicker._attachDatepicker(this,a)})};d.datepicker=new K;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.12";window["DP_jQuery_"+y]=d})(jQuery);(function(a,c){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(b){if(b===c){return this._value()}this._setOption("value",b);return this},_setOption:function(b,e){if(b==="value"){this.options.value=e;this._refreshValue();this._value()===this.options.max&&this._trigger("complete")}a.Widget.prototype._setOption.apply(this,arguments)},_value:function(){var b=this.options.value;if(typeof b!=="number"){b=0}return Math.min(this.options.max,Math.max(this.min,b))},_percentage:function(){return 100*this._value()/this.options.max},_refreshValue:function(){var b=this.value(),e=this._percentage();if(this.oldValue!==b){this.oldValue=b;this._trigger("change")}this.valueDiv.toggle(b>this.min).toggleClass("ui-corner-right",b===this.options.max).width(e.toFixed(0)+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.8.12"})})(jQuery);jQuery.effects||function(w,v){function g(j){var f;if(j&&j.constructor==Array&&j.length==3){return j}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(j)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(j)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(j)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(j)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(/rgba\(0, 0, 0, 0\)/.exec(j)){return e.transparent}return e[w.trim(j).toLowerCase()]}function z(k,j){var f;do{f=w.curCSS(k,j);if(f!=""&&f!="transparent"||w.nodeName(k,"body")){break}j="backgroundColor"}while(k=k.parentNode);return g(f)}function c(){var n=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,j={},f,m;if(n&&n.length&&n[0]&&n[n[0]]){for(var k=n.length;k--;){f=n[k];if(typeof n[f]=="string"){m=f.replace(/\-(\w)/g,function(p,o){return o.toUpperCase()});j[m]=n[f]}}}else{for(f in n){if(typeof n[f]==="string"){j[f]=n[f]}}}return j}function b(k){var j,f;for(j in k){f=k[j];if(f==null||w.isFunction(f)||j in y||/scrollbar/.test(j)||!/color/i.test(j)&&isNaN(parseFloat(f))){delete k[j]}}return k}function x(m,j){var f={_:0},k;for(k in j){if(m[k]!=j[k]){f[k]=j[k]}}return f}function l(m,j,f,k){if(typeof m=="object"){k=j;f=null;j=m;m=j.effect}if(w.isFunction(j)){k=j;f=null;j={}}if(typeof j=="number"||w.fx.speeds[j]){k=f;f=j;j={}}if(w.isFunction(f)){k=f;f=null}j=j||{};f=f||j.duration;f=w.fx.off?0:typeof f=="number"?f:f in w.fx.speeds?w.fx.speeds[f]:w.fx.speeds._default;k=k||j.complete;return[m,j,f,k]}function h(f){if(!f||typeof f==="number"||w.fx.speeds[f]){return true}if(typeof f==="string"&&!w.effects[f]){return true}return false}w.effects={};w.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(j,f){w.fx.step[f]=function(k){if(!k.colorInit){k.start=z(k.elem,f);k.end=g(k.end);k.colorInit=true}k.elem.style[f]="rgb("+Math.max(Math.min(parseInt(k.pos*(k.end[0]-k.start[0])+k.start[0],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[1]-k.start[1])+k.start[1],10),255),0)+","+Math.max(Math.min(parseInt(k.pos*(k.end[2]-k.start[2])+k.start[2],10),255),0)+")"}});var e={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]},a=["add","remove","toggle"],y={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};w.effects.animateClass=function(m,j,f,k){if(w.isFunction(f)){k=f;f=null}return this.queue("fx",function(){var s=w(this),q=s.attr("style")||" ",p=b(c.call(this)),n,o=s.attr("className");w.each(a,function(u,A){m[A]&&s[A+"Class"](m[A])});n=b(c.call(this));s.attr("className",o);s.animate(x(p,n),j,f,function(){w.each(a,function(u,A){m[A]&&s[A+"Class"](m[A])});if(typeof s.attr("style")=="object"){s.attr("style").cssText="";s.attr("style").cssText=q}else{s.attr("style",q)}k&&k.apply(this,arguments)});p=w.queue(this);n=p.splice(p.length-1,1)[0];p.splice(1,0,n);w.dequeue(this)})};w.fn.extend({_addClass:w.fn.addClass,addClass:function(m,j,f,k){return j?w.effects.animateClass.apply(this,[{add:m},j,f,k]):this._addClass(m)},_removeClass:w.fn.removeClass,removeClass:function(m,j,f,k){return j?w.effects.animateClass.apply(this,[{remove:m},j,f,k]):this._removeClass(m)},_toggleClass:w.fn.toggleClass,toggleClass:function(n,j,f,m,k){return typeof j=="boolean"||j===v?f?w.effects.animateClass.apply(this,[j?{add:n}:{remove:n},f,m,k]):this._toggleClass(n,j):w.effects.animateClass.apply(this,[{toggle:n},j,f,m])},switchClass:function(n,j,f,m,k){return w.effects.animateClass.apply(this,[{add:j,remove:n},f,m,k])}});w.extend(w.effects,{version:"1.8.12",save:function(k,j){for(var f=0;f<j.length;f++){j[f]!==null&&k.data("ec.storage."+j[f],k[0].style[j[f]])}},restore:function(k,j){for(var f=0;f<j.length;f++){j[f]!==null&&k.css(j[f],k.data("ec.storage."+j[f]))}},setMode:function(j,f){if(f=="toggle"){f=j.is(":hidden")?"show":"hide"}return f},getBaseline:function(k,j){var f;switch(k[0]){case"top":f=0;break;case"middle":f=0.5;break;case"bottom":f=1;break;default:f=k[0]/j.height}switch(k[1]){case"left":k=0;break;case"center":k=0.5;break;case"right":k=1;break;default:k=k[1]/j.width}return{x:k,y:f}},createWrapper:function(k){if(k.parent().is(".ui-effects-wrapper")){return k.parent()}var j={width:k.outerWidth(true),height:k.outerHeight(true),"float":k.css("float")},f=w("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});k.wrap(f);f=k.parent();if(k.css("position")=="static"){f.css({position:"relative"});k.css({position:"relative"})}else{w.extend(j,{position:k.css("position"),zIndex:k.css("z-index")});w.each(["top","left","bottom","right"],function(n,m){j[m]=k.css(m);if(isNaN(parseInt(j[m],10))){j[m]="auto"}});k.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return f.css(j).show()},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(m,j,f,k){k=k||{};w.each(j,function(o,n){unit=m.cssUnit(n);if(unit[0]>0){k[n]=unit[0]*f+unit[1]}});return k}});w.fn.extend({effect:function(m){var j=l.apply(this,arguments),f={options:j[1],duration:j[2],callback:j[3]};j=f.options.mode;var k=w.effects[m];if(w.fx.off||!k){return j?this[j](f.duration,f.callback):this.each(function(){f.callback&&f.callback.call(this)})}return k.call(this,f)},_show:w.fn.show,show:function(j){if(h(j)){return this._show.apply(this,arguments)}else{var f=l.apply(this,arguments);f[1].mode="show";return this.effect.apply(this,f)}},_hide:w.fn.hide,hide:function(j){if(h(j)){return this._hide.apply(this,arguments)}else{var f=l.apply(this,arguments);f[1].mode="hide";return this.effect.apply(this,f)}},__toggle:w.fn.toggle,toggle:function(j){if(h(j)||typeof j==="boolean"||w.isFunction(j)){return this.__toggle.apply(this,arguments)}else{var f=l.apply(this,arguments);f[1].mode="toggle";return this.effect.apply(this,f)}},cssUnit:function(k){var j=this.css(k),f=[];w.each(["em","px","%","pt"],function(n,m){if(j.indexOf(m)>0){f=[parseFloat(j),m]}});return f}});w.easing.jswing=w.easing.swing;w.extend(w.easing,{def:"easeOutQuad",swing:function(n,j,f,m,k){return w.easing[w.easing.def](n,j,f,m,k)},easeInQuad:function(n,j,f,m,k){return m*(j/=k)*j+f},easeOutQuad:function(n,j,f,m,k){return -m*(j/=k)*(j-2)+f},easeInOutQuad:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j+f}return -m/2*(--j*(j-2)-1)+f},easeInCubic:function(n,j,f,m,k){return m*(j/=k)*j*j+f},easeOutCubic:function(n,j,f,m,k){return m*((j=j/k-1)*j*j+1)+f},easeInOutCubic:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j*j+f}return m/2*((j-=2)*j*j+2)+f},easeInQuart:function(n,j,f,m,k){return m*(j/=k)*j*j*j+f},easeOutQuart:function(n,j,f,m,k){return -m*((j=j/k-1)*j*j*j-1)+f},easeInOutQuart:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j*j*j+f}return -m/2*((j-=2)*j*j*j-2)+f},easeInQuint:function(n,j,f,m,k){return m*(j/=k)*j*j*j*j+f},easeOutQuint:function(n,j,f,m,k){return m*((j=j/k-1)*j*j*j*j+1)+f},easeInOutQuint:function(n,j,f,m,k){if((j/=k/2)<1){return m/2*j*j*j*j*j+f}return m/2*((j-=2)*j*j*j*j+2)+f},easeInSine:function(n,j,f,m,k){return -m*Math.cos(j/k*(Math.PI/2))+m+f},easeOutSine:function(n,j,f,m,k){return m*Math.sin(j/k*(Math.PI/2))+f},easeInOutSine:function(n,j,f,m,k){return -m/2*(Math.cos(Math.PI*j/k)-1)+f},easeInExpo:function(n,j,f,m,k){return j==0?f:m*Math.pow(2,10*(j/k-1))+f},easeOutExpo:function(n,j,f,m,k){return j==k?f+m:m*(-Math.pow(2,-10*j/k)+1)+f},easeInOutExpo:function(n,j,f,m,k){if(j==0){return f}if(j==k){return f+m}if((j/=k/2)<1){return m/2*Math.pow(2,10*(j-1))+f}return m/2*(-Math.pow(2,-10*--j)+2)+f},easeInCirc:function(n,j,f,m,k){return -m*(Math.sqrt(1-(j/=k)*j)-1)+f},easeOutCirc:function(n,j,f,m,k){return m*Math.sqrt(1-(j=j/k-1)*j)+f},easeInOutCirc:function(n,j,f,m,k){if((j/=k/2)<1){return -m/2*(Math.sqrt(1-j*j)-1)+f}return m/2*(Math.sqrt(1-(j-=2)*j)+1)+f},easeInElastic:function(p,j,f,o,n){p=1.70158;var m=0,k=o;if(j==0){return f}if((j/=n)==1){return f+o}m||(m=n*0.3);if(k<Math.abs(o)){k=o;p=m/4}else{p=m/(2*Math.PI)*Math.asin(o/k)}return -(k*Math.pow(2,10*(j-=1))*Math.sin((j*n-p)*2*Math.PI/m))+f},easeOutElastic:function(p,j,f,o,n){p=1.70158;var m=0,k=o;if(j==0){return f}if((j/=n)==1){return f+o}m||(m=n*0.3);if(k<Math.abs(o)){k=o;p=m/4}else{p=m/(2*Math.PI)*Math.asin(o/k)}return k*Math.pow(2,-10*j)*Math.sin((j*n-p)*2*Math.PI/m)+o+f},easeInOutElastic:function(p,j,f,o,n){p=1.70158;var m=0,k=o;if(j==0){return f}if((j/=n/2)==2){return f+o}m||(m=n*0.3*1.5);if(k<Math.abs(o)){k=o;p=m/4}else{p=m/(2*Math.PI)*Math.asin(o/k)}if(j<1){return -0.5*k*Math.pow(2,10*(j-=1))*Math.sin((j*n-p)*2*Math.PI/m)+f}return k*Math.pow(2,-10*(j-=1))*Math.sin((j*n-p)*2*Math.PI/m)*0.5+o+f},easeInBack:function(o,j,f,n,m,k){if(k==v){k=1.70158}return n*(j/=m)*j*((k+1)*j-k)+f},easeOutBack:function(o,j,f,n,m,k){if(k==v){k=1.70158}return n*((j=j/m-1)*j*((k+1)*j+k)+1)+f},easeInOutBack:function(o,j,f,n,m,k){if(k==v){k=1.70158}if((j/=m/2)<1){return n/2*j*j*(((k*=1.525)+1)*j-k)+f}return n/2*((j-=2)*j*(((k*=1.525)+1)*j+k)+2)+f},easeInBounce:function(n,j,f,m,k){return m-w.easing.easeOutBounce(n,k-j,0,m,k)+f},easeOutBounce:function(n,j,f,m,k){return(j/=k)<1/2.75?m*7.5625*j*j+f:j<2/2.75?m*(7.5625*(j-=1.5/2.75)*j+0.75)+f:j<2.5/2.75?m*(7.5625*(j-=2.25/2.75)*j+0.9375)+f:m*(7.5625*(j-=2.625/2.75)*j+0.984375)+f},easeInOutBounce:function(n,j,f,m,k){if(j<k/2){return w.easing.easeInBounce(n,j*2,0,m,k)*0.5+f}return w.easing.easeOutBounce(n,j*2-k,0,m,k)*0.5+m*0.5+f}})}(jQuery);(function(a){a.effects.blind=function(b){return this.queue(function(){var c=a(this),l=["position","top","bottom","left","right"],m=a.effects.setMode(c,b.options.mode||"hide"),o=b.options.direction||"vertical";a.effects.save(c,l);c.show();var n=a.effects.createWrapper(c).css({overflow:"hidden"}),k=o=="vertical"?"height":"width";o=o=="vertical"?n.height():n.width();m=="show"&&n.css(k,0);var j={};j[k]=m=="show"?o:0;n.animate(j,b.duration,b.options.easing,function(){m=="hide"&&c.hide();a.effects.restore(c,l);a.effects.removeWrapper(c);b.callback&&b.callback.apply(c[0],arguments);c.dequeue()})})}})(jQuery);(function(a){a.effects.bounce=function(c){return this.queue(function(){var x=a(this),e=["position","top","bottom","left","right"],q=a.effects.setMode(x,c.options.mode||"effect"),v=c.options.direction||"up",w=c.options.distance||20,b=c.options.times||5,p=c.duration||250;/show|hide/.test(q)&&e.push("opacity");a.effects.save(x,e);x.show();a.effects.createWrapper(x);var u=v=="up"||v=="down"?"top":"left";v=v=="up"||v=="left"?"pos":"neg";w=c.options.distance||(u=="top"?x.outerHeight({margin:true})/3:x.outerWidth({margin:true})/3);if(q=="show"){x.css("opacity",0).css(u,v=="pos"?-w:w)}if(q=="hide"){w/=b*2}q!="hide"&&b--;if(q=="show"){var s={opacity:1};s[u]=(v=="pos"?"+=":"-=")+w;x.animate(s,p/2,c.options.easing);w/=2;b--}for(s=0;s<b;s++){var o={},n={};o[u]=(v=="pos"?"-=":"+=")+w;n[u]=(v=="pos"?"+=":"-=")+w;x.animate(o,p/2,c.options.easing).animate(n,p/2,c.options.easing);w=q=="hide"?w*2:w/2}if(q=="hide"){s={opacity:0};s[u]=(v=="pos"?"-=":"+=")+w;x.animate(s,p/2,c.options.easing,function(){x.hide();a.effects.restore(x,e);a.effects.removeWrapper(x);c.callback&&c.callback.apply(this,arguments)})}else{o={};n={};o[u]=(v=="pos"?"-=":"+=")+w;n[u]=(v=="pos"?"+=":"-=")+w;x.animate(o,p/2,c.options.easing).animate(n,p/2,c.options.easing,function(){a.effects.restore(x,e);a.effects.removeWrapper(x);c.callback&&c.callback.apply(this,arguments)})}x.queue("fx",function(){x.dequeue()});x.dequeue()})}})(jQuery);(function(a){a.effects.clip=function(b){return this.queue(function(){var e=a(this),j=["position","top","bottom","left","right","height","width"],m=a.effects.setMode(e,b.options.mode||"hide"),o=b.options.direction||"vertical";a.effects.save(e,j);e.show();var n=a.effects.createWrapper(e).css({overflow:"hidden"});n=e[0].tagName=="IMG"?n:e;var l={size:o=="vertical"?"height":"width",position:o=="vertical"?"top":"left"};o=o=="vertical"?n.height():n.width();if(m=="show"){n.css(l.size,0);n.css(l.position,o/2)}var k={};k[l.size]=m=="show"?o:0;k[l.position]=m=="show"?0:o/2;n.animate(k,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){m=="hide"&&e.hide();a.effects.restore(e,j);a.effects.removeWrapper(e);b.callback&&b.callback.apply(e[0],arguments);e.dequeue()}})})}})(jQuery);(function(a){a.effects.drop=function(b){return this.queue(function(){var j=a(this),l=["position","top","bottom","left","right","opacity"],o=a.effects.setMode(j,b.options.mode||"hide"),c=b.options.direction||"left";a.effects.save(j,l);j.show();a.effects.createWrapper(j);var n=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";var m=b.options.distance||(n=="top"?j.outerHeight({margin:true})/2:j.outerWidth({margin:true})/2);if(o=="show"){j.css("opacity",0).css(n,c=="pos"?-m:m)}var k={opacity:o=="show"?1:0};k[n]=(o=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+m;j.animate(k,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){o=="hide"&&j.hide();a.effects.restore(j,l);a.effects.removeWrapper(j);b.callback&&b.callback.apply(this,arguments);j.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var q=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,p=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3;b.options.mode=b.options.mode=="toggle"?a(this).is(":visible")?"hide":"show":b.options.mode;var j=a(this).show().css("visibility","hidden"),m=j.offset();m.top-=parseInt(j.css("marginTop"),10)||0;m.left-=parseInt(j.css("marginLeft"),10)||0;for(var l=j.outerWidth(true),k=j.outerHeight(true),o=0;o<q;o++){for(var n=0;n<p;n++){j.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-n*(l/p),top:-o*(k/q)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l/p,height:k/q,left:m.left+n*(l/p)+(b.options.mode=="show"?(n-Math.floor(p/2))*(l/p):0),top:m.top+o*(k/q)+(b.options.mode=="show"?(o-Math.floor(q/2))*(k/q):0),opacity:b.options.mode=="show"?0:1}).animate({left:m.left+n*(l/p)+(b.options.mode=="show"?0:(n-Math.floor(p/2))*(l/p)),top:m.top+o*(k/q)+(b.options.mode=="show"?0:(o-Math.floor(q/2))*(k/q)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?j.css({visibility:"visible"}):j.css({visibility:"visible"}).hide();b.callback&&b.callback.apply(j[0]);j.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);(function(a){a.effects.fade=function(b){return this.queue(function(){var f=a(this),e=a.effects.setMode(f,b.options.mode||"hide");f.animate({opacity:e},{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){b.callback&&b.callback.apply(this,arguments);f.dequeue()}})})}})(jQuery);(function(a){a.effects.fold=function(b){return this.queue(function(){var w=a(this),n=["position","top","bottom","left","right"],v=a.effects.setMode(w,b.options.mode||"hide"),q=b.options.size||15,p=!!b.options.horizFirst,m=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(w,n);w.show();var u=a.effects.createWrapper(w).css({overflow:"hidden"}),s=v=="show"!=p,c=s?["width","height"]:["height","width"];s=s?[u.width(),u.height()]:[u.height(),u.width()];var o=/([0-9]+)%/.exec(q);if(o){q=parseInt(o[1],10)/100*s[v=="hide"?0:1]}if(v=="show"){u.css(p?{height:0,width:q}:{height:q,width:0})}p={};o={};p[c[0]]=v=="show"?s[0]:q;o[c[1]]=v=="show"?s[1]:0;u.animate(p,m,b.options.easing).animate(o,m,b.options.easing,function(){v=="hide"&&w.hide();a.effects.restore(w,n);a.effects.removeWrapper(w);b.callback&&b.callback.apply(w[0],arguments);w.dequeue()})})}})(jQuery);(function(a){a.effects.highlight=function(b){return this.queue(function(){var c=a(this),h=["backgroundImage","backgroundColor","opacity"],j=a.effects.setMode(c,b.options.mode||"show"),g={backgroundColor:c.css("backgroundColor")};if(j=="hide"){g.opacity=0}a.effects.save(c,h);c.show().css({backgroundImage:"none",backgroundColor:b.options.color||"#ffff99"}).animate(g,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){j=="hide"&&c.hide();a.effects.restore(c,h);j=="show"&&!a.support.opacity&&this.style.removeAttribute("filter");b.callback&&b.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);(function(a){a.effects.pulsate=function(b){return this.queue(function(){var e=a(this),f=a.effects.setMode(e,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.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(f=0;f<times;f++){e.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}e.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&e.hide();b.callback&&b.callback.apply(this,arguments)});e.queue("fx",function(){e.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(c){return this.queue(function(){var b=a(this),l=a.effects.setMode(b,c.options.mode||"hide"),k=parseInt(c.options.percent,10)||150,j=k/100,f={height:b.height(),width:b.width()};a.extend(c.options,{fade:true,mode:l,percent:l=="hide"?k:100,from:l=="hide"?f:{height:f.height*j,width:f.width*j}});b.effect("scale",c.options,c.duration,c.callback);b.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var b=a(this),n=a.extend(true,{},c.options),l=a.effects.setMode(b,c.options.mode||"effect"),k=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:l=="hide"?0:100),j=c.options.direction||"both",m=c.options.origin;if(l!="effect"){n.origin=m||["middle","center"];n.restore=true}m={height:b.height(),width:b.width()};b.from=c.options.from||(l=="show"?{height:0,width:0}:m);k={y:j!="horizontal"?k/100:1,x:j!="vertical"?k/100:1};b.to={height:m.height*k.y,width:m.width*k.x};if(c.options.fade){if(l=="show"){b.from.opacity=0;b.to.opacity=1}if(l=="hide"){b.from.opacity=1;b.to.opacity=0}}n.from=b.from;n.to=b.to;n.mode=l;b.effect("size",n,c.duration,c.callback);b.dequeue()})};a.effects.size=function(c){return this.queue(function(){var C=a(this),A=["position","top","bottom","left","right","width","height","overflow","opacity"],y=["position","top","bottom","left","right","overflow","opacity"],x=["width","height","overflow"],w=["fontSize"],z=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],u=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],b=a.effects.setMode(C,c.options.mode||"effect"),o=c.options.restore||false,q=c.options.scale||"both",s=c.options.origin,v={height:C.height(),width:C.width()};C.from=c.options.from||v;C.to=c.options.to||v;if(s){s=a.effects.getBaseline(s,v);C.from.top=(v.height-C.from.height)*s.y;C.from.left=(v.width-C.from.width)*s.x;C.to.top=(v.height-C.to.height)*s.y;C.to.left=(v.width-C.to.width)*s.x}var B={from:{y:C.from.height/v.height,x:C.from.width/v.width},to:{y:C.to.height/v.height,x:C.to.width/v.width}};if(q=="box"||q=="both"){if(B.from.y!=B.to.y){A=A.concat(z);C.from=a.effects.setTransition(C,z,B.from.y,C.from);C.to=a.effects.setTransition(C,z,B.to.y,C.to)}if(B.from.x!=B.to.x){A=A.concat(u);C.from=a.effects.setTransition(C,u,B.from.x,C.from);C.to=a.effects.setTransition(C,u,B.to.x,C.to)}}if(q=="content"||q=="both"){if(B.from.y!=B.to.y){A=A.concat(w);C.from=a.effects.setTransition(C,w,B.from.y,C.from);C.to=a.effects.setTransition(C,w,B.to.y,C.to)}}a.effects.save(C,o?A:y);C.show();a.effects.createWrapper(C);C.css("overflow","hidden").css(C.from);if(q=="content"||q=="both"){z=z.concat(["marginTop","marginBottom"]).concat(w);u=u.concat(["marginLeft","marginRight"]);x=A.concat(z).concat(u);C.find("*[width]").each(function(){child=a(this);o&&a.effects.save(child,x);var e={height:child.height(),width:child.width()};child.from={height:e.height*B.from.y,width:e.width*B.from.x};child.to={height:e.height*B.to.y,width:e.width*B.to.x};if(B.from.y!=B.to.y){child.from=a.effects.setTransition(child,z,B.from.y,child.from);child.to=a.effects.setTransition(child,z,B.to.y,child.to)}if(B.from.x!=B.to.x){child.from=a.effects.setTransition(child,u,B.from.x,child.from);child.to=a.effects.setTransition(child,u,B.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){o&&a.effects.restore(child,x)})})}C.animate(C.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){C.to.opacity===0&&C.css("opacity",C.from.opacity);b=="hide"&&C.hide();a.effects.restore(C,o?A:y);a.effects.removeWrapper(C);c.callback&&c.callback.apply(this,arguments);C.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var x=a(this),o=["position","top","bottom","left","right"];a.effects.setMode(x,b.options.mode||"effect");var w=b.options.direction||"left",v=b.options.distance||20,m=b.options.times||3,u=b.duration||b.options.duration||140;a.effects.save(x,o);x.show();a.effects.createWrapper(x);var s=w=="up"||w=="down"?"top":"left",q=w=="up"||w=="left"?"pos":"neg";w={};var p={},n={};w[s]=(q=="pos"?"-=":"+=")+v;p[s]=(q=="pos"?"+=":"-=")+v*2;n[s]=(q=="pos"?"-=":"+=")+v*2;x.animate(w,u,b.options.easing);for(v=1;v<m;v++){x.animate(p,u,b.options.easing).animate(n,u,b.options.easing)}x.animate(p,u,b.options.easing).animate(w,u/2,b.options.easing,function(){a.effects.restore(x,o);a.effects.removeWrapper(x);b.callback&&b.callback.apply(this,arguments)});x.queue("fx",function(){x.dequeue()});x.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var j=a(this),l=["position","top","bottom","left","right"],n=a.effects.setMode(j,b.options.mode||"show"),c=b.options.direction||"left";a.effects.save(j,l);j.show();a.effects.createWrapper(j).css({overflow:"hidden"});var m=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";var o=b.options.distance||(m=="top"?j.outerHeight({margin:true}):j.outerWidth({margin:true}));if(n=="show"){j.css(m,c=="pos"?isNaN(o)?"-"+o:-o:o)}var k={};k[m]=(n=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+o;j.animate(k,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){n=="hide"&&j.hide();a.effects.restore(j,l);a.effects.removeWrapper(j);b.callback&&b.callback.apply(this,arguments);j.dequeue()}})})}})(jQuery);(function(a){a.effects.transfer=function(b){return this.queue(function(){var e=a(this),j=a(b.options.to),h=j.offset();j={top:h.top,left:h.left,height:j.innerHeight(),width:j.innerWidth()};h=e.offset();var g=a('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(b.options.className).css({top:h.top,left:h.left,height:e.innerHeight(),width:e.innerWidth(),position:"absolute"}).animate(j,b.duration,b.options.easing,function(){g.remove();b.callback&&b.callback.apply(e[0],arguments);e.dequeue()})})}})(jQuery);(function(a){a.widget("ui.nestedSortable",a.extend({},a.ui.sortable.prototype,{options:{tabSize:20,disableNesting:"ui-nestedSortable-no-nesting",errorClass:"ui-nestedSortable-error",listType:"ol",maxLevels:0,revertOnError:1},_create:function(){this.element.data("sortable",this.element.data("nestedSortable"));return a.ui.sortable.prototype._create.apply(this,arguments)},destroy:function(){this.element.removeData("nestedSortable").unbind(".nestedSortable");return a.ui.sortable.prototype.destroy.apply(this,arguments)},_mouseDrag:function(e){this.position=this._generatePosition(e);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,f=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-e.pageY<g.scrollSensitivity){this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop+g.scrollSpeed}else{if(e.pageY-this.overflowOffset.top<g.scrollSensitivity){this.scrollParent[0].scrollTop=f=this.scrollParent[0].scrollTop-g.scrollSpeed}}if((this.overflowOffset.left+this.scrollParent[0].offsetWidth)-e.pageX<g.scrollSensitivity){this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft+g.scrollSpeed}else{if(e.pageX-this.overflowOffset.left<g.scrollSensitivity){this.scrollParent[0].scrollLeft=f=this.scrollParent[0].scrollLeft-g.scrollSpeed}}}else{if(e.pageY-a(document).scrollTop()<g.scrollSensitivity){f=a(document).scrollTop(a(document).scrollTop()-g.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<g.scrollSensitivity){f=a(document).scrollTop(a(document).scrollTop()+g.scrollSpeed)}}if(e.pageX-a(document).scrollLeft()<g.scrollSensitivity){f=a(document).scrollLeft(a(document).scrollLeft()-g.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<g.scrollSensitivity){f=a(document).scrollLeft(a(document).scrollLeft()+g.scrollSpeed)}}}if(f!==false&&a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}}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 m=this.items.length-1;m>=0;m--){var n=this.items[m],h=n.item[0],c=this._intersectsWithPointer(n);if(!c){continue}if(h!=this.currentItem[0]&&this.placeholder[c==1?"next":"prev"]()[0]!=h&&!a.contains(this.placeholder[0],h)&&(this.options.type=="semi-dynamic"?!a.contains(this.element[0],h):true)){a(h).mouseenter();this.direction=c==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(n)){a(h).mouseleave();this._rearrange(e,n)}else{break}this._clearEmpty(h);this._trigger("change",e,this._uiHash());break}}var j=(this.placeholder[0].parentNode.parentNode&&a(this.placeholder[0].parentNode.parentNode).closest(".ui-sortable").length)?a(this.placeholder[0].parentNode.parentNode):null,b=this._getLevel(this.placeholder),k=this._getChildLevels(this.helper),l=this.placeholder[0].previousSibling?a(this.placeholder[0].previousSibling):null;if(l!=null){while(l[0].nodeName.toLowerCase()!="li"||l[0]==this.currentItem[0]){if(l[0].previousSibling){l=a(l[0].previousSibling)}else{l=null;break}}}newList=document.createElement(g.listType);this.beyondMaxLevels=0;if(j!=null&&this.positionAbs.left<j.offset().left){j.after(this.placeholder[0]);this._clearEmpty(j[0]);this._trigger("change",e,this._uiHash())}else{if(l!=null&&this.positionAbs.left>l.offset().left+g.tabSize){this._isAllowed(l,b+k+1);if(!l.children(g.listType).length){l[0].appendChild(newList)}l.children(g.listType)[0].appendChild(this.placeholder[0]);this._trigger("change",e,this._uiHash())}else{this._isAllowed(j,b+k)}}this._contactContainers(e);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,e)}this._trigger("sort",e,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(f,g){if(this.beyondMaxLevels){this.placeholder.removeClass(this.options.errorClass);if(this.options.revertOnError){if(this.domPosition.prev){a(this.domPosition.prev).after(this.placeholder)}else{a(this.domPosition.parent).prepend(this.placeholder)}this._trigger("revert",f,this._uiHash())}else{var c=this.placeholder.parent().closest(this.options.items);for(var b=this.beyondMaxLevels-1;b>0;b--){c=c.parent().closest(this.options.items)}c.after(this.placeholder);this._trigger("change",f,this._uiHash())}}for(var b=this.items.length-1;b>=0;b--){var e=this.items[b].item[0];this._clearEmpty(e)}a.ui.sortable.prototype._mouseStop.apply(this,arguments)},serialize:function(e){var b=this._getItemsAsjQuery(e&&e.connected),c=[];e=e||{};a(b).each(function(){var g=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||(/(.+)[-=_](.+)/)),f=(a(e.item||this).parent(e.listType).parent("li").attr(e.attribute||"id")||"").match(e.expression||(/(.+)[-=_](.+)/));if(g){c.push((e.key||g[1]+"["+(e.key&&e.expression?g[1]:g[2])+"]")+"="+(f?(e.key&&e.expression?f[1]:f[2]):"root"))}});if(!c.length&&e.key){c.push(e.key+"=")}return c.join("&")},toHierarchy:function(f){f=f||{};var c=f.startDepthCount||0,e=[];a(this.element).children("li").each(function(){var g=b(a(this));e.push(g)});return e;function b(g){var j=(a(g).attr(f.attribute||"id")||"").match(f.expression||(/(.+)[-=_](.+)/));if(j){var h={id:j[2]};if(a(g).children(f.listType).children("li").length>0){h.children=[];a(g).children(f.listType).children("li").each(function(){var k=b(a(this));h.children.push(k)})}return h}}},toArray:function(g){g=g||{};var b=g.startDepthCount||0,c=[],e=2;c.push({item_id:"root",parent_id:"none",depth:b,left:"1",right:(a("li",this.element).length+1)*2});a(this.element).children("li").each(function(){e=f(this,b+1,e)});c=c.sort(function(j,h){return(j.left-h.left)});return c;function f(l,n,m){var k=m+1,o,j;if(a(l).children(g.listType).children("li").length>0){n++;a(l).children(g.listType).children("li").each(function(){k=f(a(this),n,k)});n--}o=(a(l).attr(g.attribute||"id")).match(g.expression||(/(.+)[-=_](.+)/));if(n===b+1){j="root"}else{var h=(a(l).parent(g.listType).parent("li").attr(g.attribute||"id")).match(g.expression||(/(.+)[-=_](.+)/));j=h[2]}if(o){c.push({item_id:o[2],parent_id:j,depth:n,left:m,right:k})}m=k+1;return m}},_clearEmpty:function(b){var c=a(b).children(this.options.listType);if(c.length&&!c.children().length){c.remove()}},_getLevel:function(b){var e=1;if(this.options.listType){var c=b.closest(this.options.listType);while(!c.is(".ui-sortable")){e++;c=c.parent().closest(this.options.listType)}}return e},_getChildLevels:function(e,g){var c=this,f=this.options,b=0;g=g||0;a(e).children(f.listType).children(f.items).each(function(h,j){b=Math.max(c._getChildLevels(j,g+1),b)});return g?b+1:b},_isAllowed:function(b,c){var e=this.options;if(b==null||!(b.hasClass(e.disableNesting))){if(e.maxLevels<c&&e.maxLevels!=0){this.placeholder.addClass(e.errorClass);this.beyondMaxLevels=c-e.maxLevels}else{this.placeholder.removeClass(e.errorClass);this.beyondMaxLevels=0}}else{this.placeholder.addClass(e.errorClass);if(e.maxLevels<c&&e.maxLevels!=0){this.beyondMaxLevels=c-e.maxLevels}else{this.beyondMaxLevels=1}}}}));a.ui.nestedSortable.prototype.options=a.extend({},a.ui.sortable.prototype.options,a.ui.nestedSortable.prototype.options)})(jQuery);(function($){var b,e,l=1,a,g=this,h=!1,j="postMessage",c="addEventListener",f,k=g[j]&&!$.browser.opera;$[j]=function(m,o,n){if(!o){return}m=typeof m==="string"?m:$.param(m);n=n||parent;if(k){n[j](m,o.replace(/([^:]+:\/\/[^\/]+).*/,"$1"))}else{if(o){n.location=o.replace(/#.*$/,"")+"#"+(+new Date)+(l++)+"&"+m}}};$.receiveMessage=f=function(o,n,m){if(k){if(o){a&&f();a=function(p){if((typeof n==="string"&&p.origin!==n)||($.isFunction(n)&&n(p.origin)===h)){return h}o(p)}}if(g[c]){g[o?c:"removeEventListener"]("message",a,h)}else{g[o?"attachEvent":"detachEvent"]("onmessage",a)}}else{b&&clearInterval(b);b=null;if(o){m=typeof n==="number"?n:typeof m==="number"?m:100;b=setInterval(function(){var q=document.location.hash,p=/^#?\d+&/;if(q!==e&&p.test(q)){e=q;o({data:q.replace(p,"")})}},m)}}}})(jQuery);(function(b){b.fn.ajaxSubmit=function(e){if(!this.length){a("ajaxSubmit: skipping submit process - no element selected");return this}var c,u,g,h=this;if(typeof e=="function"){e={success:e}}c=this.attr("method");u=this.attr("action");g=(typeof u==="string")?b.trim(u):"";g=g||window.location.href||"";if(g){g=(g.match(/^([^#]+)/)||[])[1]}e=b.extend(true,{url:g,success:b.ajaxSettings.success,type:c||"GET",iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},e);var m={};this.trigger("form-pre-serialize",[this,e,m]);if(m.veto){a("ajaxSubmit: submit vetoed via form-pre-serialize trigger");return this}if(e.beforeSerialize&&e.beforeSerialize(this,e)===false){a("ajaxSubmit: submit aborted via beforeSerialize callback");return this}var s,l,A=this.formToArray(e.semantic);if(e.data){e.extraData=e.data;for(s in e.data){if(e.data[s] instanceof Array){for(var w in e.data[s]){A.push({name:s,value:e.data[s][w]})}}else{l=e.data[s];l=b.isFunction(l)?l():l;A.push({name:s,value:l})}}}if(e.beforeSubmit&&e.beforeSubmit(A,this,e)===false){a("ajaxSubmit: submit aborted via beforeSubmit callback");return this}this.trigger("form-submit-validate",[A,this,e,m]);if(m.veto){a("ajaxSubmit: submit vetoed via form-submit-validate trigger");return this}var p=b.param(A);if(e.type.toUpperCase()=="GET"){e.url+=(e.url.indexOf("?")>=0?"&":"?")+p;e.data=null}else{e.data=p}var B=[];if(e.resetForm){B.push(function(){h.resetForm()})}if(e.clearForm){B.push(function(){h.clearForm()})}if(!e.dataType&&e.target){var f=e.success||function(){};B.push(function(n){var k=e.replaceTarget?"replaceWith":"html";b(e.target)[k](n).each(f,arguments)})}else{if(e.success){B.push(e.success)}}e.success=function(C,n,D){var v=e.context||e;for(var q=0,k=B.length;q<k;q++){B[q].apply(v,[C,n,D||h,h])}};var y=b("input:file",this).length>0;var x="multipart/form-data";var o=(h.attr("enctype")==x||h.attr("encoding")==x);if(e.iframe!==false&&(y||e.iframe||o)){if(e.closeKeepAlive){b.get(e.closeKeepAlive,function(){j(A)})}else{j(A)}}else{if(b.browser.msie&&c=="get"){var z=h[0].getAttribute("method");if(typeof z==="string"){e.type=z}}b.ajax(e)}this.trigger("form-submit-notify",[this,e]);return this;function j(X){var C=h[0],v,T,N,V,Q,E,I,G,H,R,U,L;var F=!!b.fn.prop;if(X){for(T=0;T<X.length;T++){v=b(C[X[T].name]);v[F?"prop":"attr"]("disabled",false)}}if(b(":input[name=submit],:input[id=submit]",C).length){alert('Error: Form elements must not have name or id of "submit".');return}N=b.extend(true,{},b.ajaxSettings,e);N.context=N.context||N;Q="jqFormIO"+(new Date().getTime());if(N.iframeTarget){E=b(N.iframeTarget);R=E.attr("name");if(R==null){E.attr("name",Q)}else{Q=R}}else{E=b('<iframe name="'+Q+'" src="'+N.iframeSrc+'" />');E.css({position:"absolute",top:"-1000px",left:"-1000px"})}I=E[0];G={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(n){var aa=(n==="timeout"?"timeout":"aborted");a("aborting upload... "+aa);this.aborted=1;E.attr("src",N.iframeSrc);G.error=aa;N.error&&N.error.call(N.context,G,aa,n);V&&b.event.trigger("ajaxError",[G,N,aa]);N.complete&&N.complete.call(N.context,G,aa)}};V=N.global;if(V&&!b.active++){b.event.trigger("ajaxStart")}if(V){b.event.trigger("ajaxSend",[G,N])}if(N.beforeSend&&N.beforeSend.call(N.context,G,N)===false){if(N.global){b.active--}return}if(G.aborted){return}H=C.clk;if(H){R=H.name;if(R&&!H.disabled){N.extraData=N.extraData||{};N.extraData[R]=H.value;if(H.type=="image"){N.extraData[R+".x"]=C.clk_x;N.extraData[R+".y"]=C.clk_y}}}var M=1;var J=2;function K(aa){var n=aa.contentWindow?aa.contentWindow.document:aa.contentDocument?aa.contentDocument:aa.document;return n}function S(){var ad=h.attr("target"),aa=h.attr("action");C.setAttribute("target",Q);if(!c){C.setAttribute("method","POST")}if(aa!=N.url){C.setAttribute("action",N.url)}if(!N.skipEncodingOverride&&(!c||/post/i.test(c))){h.attr({encoding:"multipart/form-data",enctype:"multipart/form-data"})}if(N.timeout){L=setTimeout(function(){U=true;P(M)},N.timeout)}function ae(){try{var n=K(I).readyState;a("state = "+n);if(n.toLowerCase()=="uninitialized"){setTimeout(ae,50)}}catch(ag){a("Server abort: ",ag," (",ag.name,")");P(J);L&&clearTimeout(L);L=undefined}}var ab=[];try{if(N.extraData){for(var af in N.extraData){ab.push(b('<input type="hidden" name="'+af+'" />').attr("value",N.extraData[af]).appendTo(C)[0])}}if(!N.iframeTarget){E.appendTo("body");I.attachEvent?I.attachEvent("onload",P):I.addEventListener("load",P,false)}setTimeout(ae,15);C.submit()}finally{C.setAttribute("action",aa);if(ad){C.setAttribute("target",ad)}else{h.removeAttr("target")}b(ab).remove()}}if(N.forceSync){S()}else{setTimeout(S,10)}var Y,Z,W=50,D;function P(af){if(G.aborted||D){return}try{Z=K(I)}catch(ai){a("cannot access response document: ",ai);af=J}if(af===M&&G){G.abort("timeout");return}else{if(af==J&&G){G.abort("server abort");return}}if(!Z||Z.location.href==N.iframeSrc){if(!U){return}}I.detachEvent?I.detachEvent("onload",P):I.removeEventListener("load",P,false);var ad="success",ah;try{if(U){throw"timeout"}var ab=N.dataType=="xml"||Z.XMLDocument||b.isXMLDoc(Z);a("isXml="+ab);if(!ab&&window.opera&&(Z.body==null||Z.body.innerHTML=="")){if(--W){a("requeing onLoad callback, DOM not available");setTimeout(P,250);return}}var aj=Z.body?Z.body:Z.documentElement;G.responseText=aj?aj.innerHTML:null;G.responseXML=Z.XMLDocument?Z.XMLDocument:Z;if(ab){N.dataType="xml"}G.getResponseHeader=function(an){var al={"content-type":N.dataType};return al[an]};if(aj){G.status=Number(aj.getAttribute("status"))||G.status;G.statusText=aj.getAttribute("statusText")||G.statusText}var n=N.dataType||"";var ag=/(json|script|text)/.test(n.toLowerCase());if(ag||N.textarea){var ae=Z.getElementsByTagName("textarea")[0];if(ae){G.responseText=ae.value;G.status=Number(ae.getAttribute("status"))||G.status;G.statusText=ae.getAttribute("statusText")||G.statusText}else{if(ag){var aa=Z.getElementsByTagName("pre")[0];var ak=Z.getElementsByTagName("body")[0];if(aa){G.responseText=aa.textContent?aa.textContent:aa.innerHTML}else{if(ak){G.responseText=ak.innerHTML}}}}}else{if(N.dataType=="xml"&&!G.responseXML&&G.responseText!=null){G.responseXML=O(G.responseText)}}try{Y=k(G,N.dataType,N)}catch(af){ad="parsererror";G.error=ah=(af||ad)}}catch(af){a("error caught: ",af);ad="error";G.error=ah=(af||ad)}if(G.aborted){a("upload aborted");ad=null}if(G.status){ad=(G.status>=200&&G.status<300||G.status===304)?"success":"error"}if(ad==="success"){N.success&&N.success.call(N.context,Y,"success",G);V&&b.event.trigger("ajaxSuccess",[G,N])}else{if(ad){if(ah==undefined){ah=G.statusText}N.error&&N.error.call(N.context,G,ad,ah);V&&b.event.trigger("ajaxError",[G,N,ah])}}V&&b.event.trigger("ajaxComplete",[G,N]);if(V&&!--b.active){b.event.trigger("ajaxStop")}N.complete&&N.complete.call(N.context,G,ad);D=true;if(N.timeout){clearTimeout(L)}setTimeout(function(){if(!N.iframeTarget){E.remove()}G.responseXML=null},100)}var O=b.parseXML||function(n,aa){if(window.ActiveXObject){aa=new ActiveXObject("Microsoft.XMLDOM");aa.async="false";aa.loadXML(n)}else{aa=(new DOMParser()).parseFromString(n,"text/xml")}return(aa&&aa.documentElement&&aa.documentElement.nodeName!="parsererror")?aa:null};var q=b.parseJSON||function(n){return window["eval"]("("+n+")")};var k=function(af,ad,ab){var aa=af.getResponseHeader("content-type")||"",n=ad==="xml"||!ad&&aa.indexOf("xml")>=0,ae=n?af.responseXML:af.responseText;if(n&&ae.documentElement.nodeName==="parsererror"){b.error&&b.error("parsererror")}if(ab&&ab.dataFilter){ae=ab.dataFilter(ae,ad)}if(typeof ae==="string"){if(ad==="json"||!ad&&aa.indexOf("json")>=0){ae=q(ae)}else{if(ad==="script"||!ad&&aa.indexOf("javascript")>=0){b.globalEval(ae)}}}return ae}}};b.fn.ajaxForm=function(c){if(this.length===0){var e={s:this.selector,c:this.context};if(!b.isReady&&e.s){a("DOM not ready, queuing ajaxForm");b(function(){b(e.s,e.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(s){var q=[];if(this.length===0){return q}var e=this[0];var h=s?e.getElementsByTagName("*"):e.elements;if(!h){return q}var l,k,g,u,f,o,c;for(l=0,o=h.length;l<o;l++){f=h[l];g=f.name;if(!g){continue}if(s&&e.clk&&f.type=="image"){if(!f.disabled&&e.clk==f){q.push({name:g,value:b(f).val()});q.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}continue}u=b.fieldValue(f,true);if(u&&u.constructor==Array){for(k=0,c=u.length;k<c;k++){q.push({name:g,value:u[k]})}}else{if(u!==null&&typeof u!="undefined"){q.push({name:g,value:u})}}}if(!s&&e.clk){var m=b(e.clk),p=m[0];g=p.name;if(g&&!p.disabled&&p.type=="image"){q.push({name:g,value:m.val()});q.push({name:g+".x",value:e.clk_x},{name:g+".y",value:e.clk_y})}}return q};b.fn.formSerialize=function(c){return b.param(this.formToArray(c))};b.fn.fieldSerialize=function(e){var c=[];this.each(function(){var j=this.name;if(!j){return}var g=b.fieldValue(this,e);if(g&&g.constructor==Array){for(var h=0,f=g.length;h<f;h++){c.push({name:j,value:g[h]})}}else{if(g!==null&&typeof g!="undefined"){c.push({name:this.name,value:g})}}});return b.param(c)};b.fn.fieldValue=function(j){for(var h=[],f=0,c=this.length;f<c;f++){var g=this[f];var e=b.fieldValue(g,j);if(e===null||typeof e=="undefined"||(e.constructor==Array&&!e.length)){continue}e.constructor==Array?b.merge(h,e):h.push(e)}return h};b.fieldValue=function(c,k){var f=c.name,q=c.type,s=c.tagName.toLowerCase();if(k===undefined){k=true}if(k&&(!f||c.disabled||q=="reset"||q=="button"||(q=="checkbox"||q=="radio")&&!c.checked||(q=="submit"||q=="image")&&c.form&&c.form.clk!=c||s=="select"&&c.selectedIndex==-1)){return null}if(s=="select"){var l=c.selectedIndex;if(l<0){return null}var o=[],e=c.options;var h=(q=="select-one");var m=(h?l+1:e.length);for(var g=(h?l:0);g<m;g++){var j=e[g];if(j.selected){var p=j.value;if(!p){p=(j.attributes&&j.attributes.value&&!(j.attributes.value.specified))?j.text:j.value}if(h){return p}o.push(p)}}return o}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(){var c=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var f=this.type,e=this.tagName.toLowerCase();if(c.test(f)||e=="textarea"){this.value=""}else{if(f=="checkbox"||f=="radio"){this.checked=false}else{if(e=="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 e=this.type;if(e=="checkbox"||e=="radio"){this.checked=c}else{if(this.tagName.toLowerCase()=="option"){var f=b(this).parent("select");if(c&&f[0]&&f[0].type=="select-one"){f.find("option").selected(false)}this.selected=c}}})};function a(){return null;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(a){a.facebox=function(c,b){if(c.ajax){a.facebox.boxy(c.ajax,b)}else{a.facebox.open(c,b)}};a.extend(a.facebox,{settings:{html:'    <div id="facebox-overlay" onclick="$.facebox.close();"></div>    <div id="facebox-container">     <div id="facebox">      <div id="facebox-close" onclick="$.facebox.close();"></div>      <div id="facebox-header"></div>      <div id="facebox-content">      </div>      <div id="facebox-footer"></div>     </div>    </div>    '},open:function(c,b){a.facebox.init();c="<div>"+c+"</div>";a.facebox.header(a(c).find("#temp-header").html());a.facebox.footer(a(c).find("#temp-footer").html());a("#facebox-content").html(c).initialise(null,function(){a("#facebox-overlay").fadeTo(200,0.7,function(){a("#facebox-container").show(0,function(){__onresize();a("#facebox").animate({marginTop:"80"},500,function(){if(typeof(window.__wizard)=="function"){__wizard();window.__wizard=null}})})})})},header:function(b){if(b){a("#facebox-header").html(b).show(0).initialise()}else{a("#facebox-header").hide()}},footer:function(b){if(b){a("#facebox-footer").html(b).show(0).initialise()}else{a("#facebox-footer").hide()}},close:function(){clearTimeout($General.faceboxtimer);a("#facebox").animate({marginTop:"-500"},150,function(){a.facebox.clean();a("#facebox-container").hide();a("#facebox-overlay").fadeOut()});a(document).unbind("keydown.facebox")},clean:function(){a("#facebox-header").empty();a("#facebox-content").empty();a("#facebox-footer").empty()},boxy:function(b,c){a.ajax({url:b,dataType:"text",success:function(e){a.facebox.open(e,c)}});return false},init:function(){if(a("#facebox").length==0){a("body").append(a.facebox.settings.html)}a(document).bind("keydown.facebox",function(b){if(b.keyCode==27){a.facebox.close()}return true})}});a.fn.facebox=function(b){function c(){a.ajax({url:this.href,dataType:"text",success:function(e){a.facebox.open("<div>"+e+"</div>")}});return false}return this.click(c)}})(jQuery);(function(a){a.sticky=function(c,b,e){return a.fn.sticky(c,b,e)};a.fn.sticky=function(h,l,j){var c={position:"bottom-right",speed:"fast",duplicates:false,autoclose:5000};if(!h){h=this.html()}if(l){a.extend(c,l)}var g=true;var f="no";var b=Math.floor(Math.random()*99999);a(".sticky-note").each(function(){if(a(this).html()==h&&a(this).is(":visible")){f="yes";if(!c.duplicates){g=false}}if(a(this).attr("id")==b){b=Math.floor(Math.random()*9999999)}});if(!a("body").find(".sticky-queue").html()){a("body").append('<div class="sticky-queue '+c.position+'"></div>')}if(g){a(".sticky-queue").prepend('<div class="sticky border-'+c.position+'" id="'+b+'"></div>');a("#"+b).append('<div class="sticky-close" rel="'+b+'"></div>');a("#"+b).append('<div class="sticky-note" rel="'+b+'">'+h+"</div>");var k=a("#"+b).height();a("#"+b).css("height",k);a("#"+b).slideDown(c.speed);g=true}a(".sticky").ready(function(){if(c.autoclose){a("#"+b).delay(c.autoclose).slideUp(c.speed)}});a(".sticky-close").click(function(){a("#"+a(this).attr("rel")).dequeue().slideUp(c.speed)});var e={id:b,duplicate:f,displayed:g,position:c.position};if(j){j(e)}else{return(e)}}})(jQuery);(function(a){a.prompt=function(j,f){f=a.extend({},a.prompt.defaults,f);a.prompt.currentPrefix=f.prefix;var k=(a.browser.msie&&a.browser.version<7);var u=a(document.body);var v=a(window);var c='<div class="'+f.prefix+'box" id="'+f.prefix+'box">';if(f.useiframe&&((a("object, applet").length>0)||k)){c+='<iframe src="javascript:;" class="'+f.prefix+'fade" id="'+f.prefix+'fade"></iframe>'}else{if(k){a("select").css("visibility","hidden")}c+='<div class="'+f.prefix+'fade" id="'+f.prefix+'fade"></div>'}c+='<div class="'+f.prefix+'" id="'+f.prefix+'"><div class="'+f.prefix+'container">';if(f.close==true){c+='<div class="'+f.prefix+'close"><img src="/img/facebox/closebox.png" /></div>'}c+='<div id="'+f.prefix+'states"></div>';+"</div></div></div>";var e=a(c).appendTo(u);var g=e.children("#"+f.prefix);var y=e.children("#"+f.prefix+"fade");if(j.constructor==String){j={state0:{html:j,buttons:f.buttons,focus:f.focus,submit:f.submit}}}var x="";a.each(j,function(m,b){b=a.extend({},a.prompt.defaults.state,b);j[m]=b;x+='<div id="'+f.prefix+"_state_"+m+'" class="'+f.prefix+'_state" style="display:none;"><div class="'+f.prefix+'message">'+b.html+'</div><div class="'+f.prefix+'buttons">';a.each(b.buttons,function(w,o){x+='<a name="'+f.prefix+"_"+m+"_button"+w+'" id="'+f.prefix+"_"+m+"_button"+w+'" value="'+o+'" class="button ';if(w=="Cancel"){x+='big white right" style="'}if(w=="Yes"){x+='big blue-arrow right" style="'}if(w=="No"){x+='big white right" style="margin-right:10px;'}x+='"><span>'+w+"</span></a>"});x+='<div class="clear"></div></div></div>'});g.find("#"+f.prefix+"states").html(x).children("."+f.prefix+"_state:first").css("display","block");g.find("."+f.prefix+"buttons:empty").css("display","none");a.each(j,function(o,m){var b=g.find("#"+f.prefix+"_state_"+o);b.children("."+f.prefix+"buttons").children("a.button").click(function(){var z=b.children("."+f.prefix+"message");var w=m.buttons[a(this).text()];var A={};a.each(g.find("#"+f.prefix+"states :input").serializeArray(),function(B,C){if(A[C.name]==undefined){A[C.name]=C.value}else{if(typeof A[C.name]==Array){A[C.name].push(C.value)}else{A[C.name]=[A[C.name],C.value]}}});if(m.submit(w,z,A)){h(true,w,z,A)}});b.find("."+f.prefix+"buttons button:eq("+m.focus+")").addClass(f.prefix+"defaultbutton")});var l=function(){e.css({top:v.scrollTop()})};var p=function(){if(f.persistent){var m=0;e.addClass(f.prefix+"warning");var b=setInterval(function(){e.toggleClass(f.prefix+"warning");if(m++>5){clearInterval(b);e.removeClass(f.prefix+"warning")}},100)}else{h()}};var s=function(m){var b=(window.event)?event.keyCode:m.keyCode;if(b==27){h()}};var n=function(){e.css({position:(k)?"absolute":"fixed",height:v.height(),width:"100%",top:(k)?v.scrollTop():0,left:0,right:0,bottom:0});y.css({position:"absolute",height:v.height(),width:"100%",top:0,left:0,right:0,bottom:0});g.css({position:"absolute",top:f.top,left:"50%",marginLeft:((g.outerWidth()/2)*-1)})};var q=function(){y.css({zIndex:f.zIndex,display:"none",opacity:f.opacity});g.css({zIndex:f.zIndex+1,display:"none"});e.css({zIndex:f.zIndex})};var h=function(o,m,w,b){g.remove();if(k){u.unbind("scroll",l)}v.unbind("resize",n);y.fadeOut(f.overlayspeed,function(){y.unbind("click",p);y.remove();if(o){f.callback(m,w,b)}e.unbind("keypress",s);e.remove();if(k&&!f.useiframe){a("select").css("visibility","visible")}})};n();q();if(k){v.scroll(l)}y.click(p);v.resize(n);e.keypress(s);g.find("."+f.prefix+"close").click(h);y.fadeIn(f.overlayspeed);g[f.show](f.promptspeed,f.loaded);g.find("#"+f.prefix+"states ."+f.prefix+"_state:first ."+f.prefix+"defaultbutton").focus();return e};a.prompt.defaults={prefix:"jqi",buttons:{Ok:true},loaded:function(){},submit:function(){return true},callback:function(){},opacity:0.7,zIndex:75000,overlayspeed:"slow",promptspeed:"slow",show:"fadeIn",focus:0,close:true,useiframe:false,top:"25%",persistent:true,state:{html:"",buttons:{Ok:true},focus:0,submit:function(){return true}}};a.prompt.currentPrefix=a.prompt.defaults.prefix;a.prompt.setDefaults=function(b){a.prompt.defaults=a.extend({},a.prompt.defaults,b)};a.prompt.setStateDefaults=function(b){a.prompt.defaults.state=a.extend({},a.prompt.defaults.state,b)};a.prompt.getStateContent=function(b){return a("#"+a.prompt.currentPrefix+"_state_"+b)};a.prompt.goToState=function(b){a("."+a.prompt.currentPrefix+"_state").slideUp("slow");a("#"+a.prompt.currentPrefix+"_state_"+b).slideDown("slow",function(){a(this).find("."+a.prompt.currentPrefix+"defaultbutton").focus()})};a.prompt.nextState=function(){var b=a("."+a.prompt.currentPrefix+"_state:visible").next();a("."+a.prompt.currentPrefix+"_state").slideUp("slow");b.slideDown("slow",function(){a(this).find("."+a.prompt.currentPrefix+"defaultbutton").focus()})};a.prompt.prevState=function(){var b=a("."+a.prompt.currentPrefix+"_state:visible").prev();a("."+a.prompt.currentPrefix+"_state").slideUp("slow");b.slideDown("slow",function(){a(this).find("."+a.prompt.currentPrefix+"defaultbutton").focus()})};a.prompt.close=function(){a("#"+a.prompt.currentPrefix+"box").fadeOut("fast",function(){a(this).remove()})}})(jQuery);(function(c){function b(f,e){return(typeof f=="function")?(f.call(e)):f}function a(f,e){this.$element=c(f);this.options=e;this.enabled=true;this.fixTitle()}a.prototype={show:function(){var h=this.getTitle();if(h&&this.enabled){var g=this.tip();g.find(".tipsy-inner")[this.options.html?"html":"text"](h);g[0].className="tipsy";g.remove().css({top:0,left:0,visibility:"hidden",display:"block"}).prependTo(document.body);var l=c.extend({},this.$element.offset(),{width:this.$element[0].offsetWidth,height:this.$element[0].offsetHeight});var e=g[0].offsetWidth,k=g[0].offsetHeight,j=b(this.options.gravity,this.$element[0]);var f;switch(j.charAt(0)){case"n":f={top:l.top+l.height+this.options.offset,left:l.left+l.width/2-e/2};break;case"s":f={top:l.top-k-this.options.offset,left:l.left+l.width/2-e/2};break;case"e":f={top:l.top+l.height/2-k/2,left:l.left-e-this.options.offset};break;case"w":f={top:l.top+l.height/2-k/2,left:l.left+l.width+this.options.offset};break}if(j.length==2){if(j.charAt(1)=="w"){f.left=l.left+l.width/2-15}else{f.left=l.left+l.width/2-e+15}}g.css(f).addClass("tipsy-"+j);g.find(".tipsy-arrow")[0].className="tipsy-arrow tipsy-arrow-"+j.charAt(0);if(this.options.className){g.addClass(b(this.options.className,this.$element[0]))}if(this.options.fade){g.stop().css({opacity:0,display:"block",visibility:"visible"}).animate({opacity:this.options.opacity})}else{g.css({visibility:"visible",opacity:this.options.opacity})}}},hide:function(){if(this.options.fade){this.tip().stop().fadeOut(function(){c(this).remove()})}else{this.tip().remove()}},fixTitle:function(){var e=this.$element;if(e.attr("title")||typeof(e.attr("original-title"))!="string"){e.attr("original-title",e.attr("title")||"").removeAttr("title")}},getTitle:function(){var g,e=this.$element,f=this.options;this.fixTitle();var g,f=this.options;if(typeof f.title=="string"){g=e.attr(f.title=="title"?"original-title":f.title)}else{if(typeof f.title=="function"){g=f.title.call(e[0])}}g=(""+g).replace(/(^\s*|\s*$)/,"");return g||f.fallback},tip:function(){if(!this.$tip){this.$tip=c('<div class="tipsy"></div>').html('<div class="tipsy-arrow"></div><div class="tipsy-inner"></div>')}return this.$tip},validate:function(){if(!this.$element[0].parentNode){this.hide();this.$element=null;this.options=null}},enable:function(){this.enabled=true},disable:function(){this.enabled=false},toggleEnabled:function(){this.enabled=!this.enabled}};c.fn.tipsy=function(j){if(j===true){return this.data("tipsy")}else{if(typeof j=="string"){var l=this.data("tipsy");if(l){l[j]()}return this}}j=c.extend({},c.fn.tipsy.defaults,j);function h(n){var o=c.data(n,"tipsy");if(!o){o=new a(n,c.fn.tipsy.elementOptions(n,j));c.data(n,"tipsy",o)}return o}function m(){var n=h(this);n.hoverState="in";if(j.delayIn==0){n.show()}else{n.fixTitle();setTimeout(function(){if(n.hoverState=="in"){n.show()}},j.delayIn)}}function g(){var n=h(this);n.hoverState="out";if(j.delayOut==0){n.hide()}else{setTimeout(function(){if(n.hoverState=="out"){n.hide()}},j.delayOut)}}if(!j.live){this.each(function(){h(this)})}if(j.trigger!="manual"){var e=j.live?"live":"bind",k=j.trigger=="hover"?"mouseenter":"focus",f=j.trigger=="hover"?"mouseleave":"blur";this[e](k,m)[e](f,g)}return this};c.fn.tipsy.defaults={className:null,delayIn:0,delayOut:0,fade:false,fallback:"",gravity:"n",html:false,live:false,offset:0,opacity:0.8,title:"title",trigger:"hover"};c.fn.tipsy.elementOptions=function(f,e){return c.metadata?c.extend({},e,c(f).metadata()):e};c.fn.tipsy.autoNS=function(){return c(this).offset().top>(c(document).scrollTop()+c(window).height()/2)?"s":"n"};c.fn.tipsy.autoWE=function(){return c(this).offset().left>(c(document).scrollLeft()+c(window).width()/2)?"e":"w"};c.fn.tipsy.autoBounds=function(f,e){return function(){var g={ns:e[0],ew:(e.length>1?e[1]:false)},k=c(document).scrollTop()+f,h=c(document).scrollLeft()+f,j=c(this);if(j.offset().top<k){g.ns="n"}if(j.offset().left<h){g.ew="w"}if(c(window).width()+c(document).scrollLeft()-j.offset().left<f){g.ew="e"}if(c(window).height()+c(document).scrollTop()-j.offset().top<f){g.ns="s"}return g.ns+(g.ew?g.ew:"")}}})(jQuery);(function(b,a){b[a]=function(e,c){this.$elem=b(e);var f=this;b.each(c,function(g,h){f[g]=h});this.wrapCheckboxWithDivs();this.attachEvents();this.disableTextSelection();if(this.resizeHandle){this.optionallyResize("handle")}if(this.resizeContainer){this.optionallyResize("container")}this.initialPosition()};b.extend(b[a].prototype,{wrapCheckboxWithDivs:function(){this.$elem.wrap('<div class="'+this.containerClass+'" />');this.container=this.$elem.parent();this.offLabel=b('<label class="'+this.labelOffClass+'"><span>'+this.uncheckedLabel+"</span></label>").appendTo(this.container);this.offSpan=this.offLabel.children("span");this.onLabel=b('<label class="'+this.labelOnClass+'"><span>'+this.checkedLabel+"</span></label>").appendTo(this.container);this.onSpan=this.onLabel.children("span");this.handle=b('<div class="'+this.handleClass+'"><div class="'+this.handleRightClass+'"><div class="'+this.handleCenterClass+'" /></div></div>').appendTo(this.container)},disableTextSelection:function(){if(!b.browser.msie){return}b.each([this.handle,this.offLabel,this.onLabel,this.container],function(c){b(c).attr("unselectable","on")})},optionallyResize:function(g){var c=this.onLabel.width(),e=this.offLabel.width(),f=(c<e)?c:e;if(g=="container"){f+=this.handle.width()+25}this[g].css({width:f})},attachEvents:function(){var c=this;this.container.bind("mousedown touchstart",function(f){f.preventDefault();if(c.$elem.is(":disabled")){return}var e=f.pageX||f.changedTouches[0].pageX;b[a].currentlyClicking=c.handle;b[a].dragStartPosition=e-(parseInt(c.handle.css("left"),10)||0)}).bind("iPhoneDrag",function(f,e){f.preventDefault();if(c.$elem.is(":disabled")){return}var g=(e-b[a].dragStartPosition)/c.rightSide;if(g<0){g=0}if(g>1){g=1}c.handle.css({left:g*c.rightSide});c.onLabel.css({width:g*c.rightSide+4});c.offSpan.css({marginRight:-g*c.rightSide});c.onSpan.css({marginLeft:-(1-g)*c.rightSide})}).bind("iPhoneDragEnd",function(f,e){if(c.$elem.is(":disabled")){return}if(b[a].dragging){var g=(e-b[a].dragStartPosition)/c.rightSide;c.$elem.attr("checked",(g>=0.5))}else{c.$elem.attr("checked",!c.$elem.attr("checked"))}b[a].currentlyClicking=null;b[a].dragging=null;c.$elem.change()});this.$elem.change(function(){if(c.$elem.is(":disabled")){c.container.addClass(c.disabledClass);return false}else{c.container.removeClass(c.disabledClass)}var e=c.$elem.attr("checked")?c.rightSide:0;c.handle.animate({left:e},c.duration);c.onLabel.animate({width:e+4},c.duration);c.offSpan.animate({marginRight:-e},c.duration);c.onSpan.animate({marginLeft:e-c.rightSide},c.duration)})},initialPosition:function(){this.offLabel.css({width:this.container.width()-5});var c=(b.browser.msie&&b.browser.version<7)?3:6;this.rightSide=this.container.width()-this.handle.width()-c;if(this.$elem.is(":checked")){this.handle.css({left:this.rightSide});this.onLabel.css({width:this.rightSide+4});this.offSpan.css({marginRight:-this.rightSide})}else{this.onLabel.css({width:0});this.onSpan.css({marginLeft:-this.rightSide})}if(this.$elem.is(":disabled")){this.container.addClass(this.disabledClass)}}});b.fn[a]=function(c){var f=this.filter(":checkbox");if(!f.length){return this}var e=b.extend({},b[a].defaults,c);f.each(function(){b(this).data(a,new b[a](this,e))});if(!b[a].initComplete){b(document).bind("mousemove touchmove",function(h){if(!b[a].currentlyClicking){return}if(h.pageX!=b[a].dragStartPosition){b[a].dragging=true}h.preventDefault();var g=h.pageX||h.changedTouches[0].pageX;b(h.target).trigger("iPhoneDrag",[g])}).bind("mouseup touchend",function(h){if(!b[a].currentlyClicking){return}h.preventDefault();var g=h.pageX||h.changedTouches[0].pageX;b(b[a].currentlyClicking).trigger("iPhoneDragEnd",[g])});b[a].initComplete=true}return this};b[a].defaults={duration:200,checkedLabel:"ON",uncheckedLabel:"OFF",resizeHandle:true,resizeContainer:true,disabledClass:"iPhoneCheckDisabled",containerClass:"iPhoneCheckContainer",labelOnClass:"iPhoneCheckLabelOn",labelOffClass:"iPhoneCheckLabelOff",handleClass:"iPhoneCheckHandle",handleCenterClass:"iPhoneCheckHandleCenter",handleRightClass:"iPhoneCheckHandleRight"}})(jQuery,"iphoneStyle");(function(a){a.fn.typeWatch=function(e){var b=a.extend({wait:750,callback:function(){},highlight:true,captureLength:2},e);function c(j,h){var g=a(j.el).val();if((g.length>=b.captureLength&&g!=j.text)||(h&&g.length>b.captureLength)){j.text=g;j.cb(g)}}function f(h){if(h.type.toUpperCase()=="TEXT"||h.type.toUpperCase()=="SEARCH"||h.nodeName.toUpperCase()=="TEXTAREA"){var j={timer:null,text:a(h).val(),cb:b.callback,el:h,wait:b.wait};var g=function(k){var n=j.wait;var m=false;if(k.keyCode==13&&(this.type.toUpperCase()=="TEXT"||h.type.toUpperCase()=="SEARCH")){n=1;m=true}var l=function(){c(j,m)};clearTimeout(j.timer);j.timer=setTimeout(l,n)};a(h).keydown(g)}}return this.each(function(g){f(this)})}})(jQuery);(function(a){a.fn.extend({elastic:function(){var b=["paddingTop","paddingRight","paddingBottom","paddingLeft","fontSize","lineHeight","fontFamily","width","fontWeight"];return this.each(function(){var h=a(this),c=a("<div />").css({position:"absolute",display:"none","word-wrap":"break-word"}),j=parseInt(h.css("line-height"),10)||parseInt(h.css("font-size"),"10"),l=parseInt(h.css("height"),10)||j*3,k=parseInt(h.css("max-height"),10)||Number.MAX_VALUE,e=0,g=0;if(k<0){k=Number.MAX_VALUE}c.appendTo(h.parent());var g=b.length;while(g--){c.css(b[g].toString(),h.css(b[g].toString()))}function m(n,o){curratedHeight=Math.floor(parseInt(n,10));if(h.height()!=curratedHeight){h.css({height:curratedHeight+"px",overflow:o})}}function f(){var p=h.val().replace(/&/g,"&amp;").replace(/  /g,"&nbsp;").replace(/<|>/g,"&gt;").replace(/\n/g,"<br />");var n=c.html();if(p+"&nbsp;"!=n){c.html(p+"&nbsp;");if(Math.abs(c.height()+j-h.height())>3){var o=c.outerHeight()+j;if(o>=k){m(k,"auto")}else{if(o<=l){m(l,"hidden")}else{m(o,"hidden")}}}}}h.css({overflow:"hidden"});h.keyup(function(){f()});h.keydown(function(){f()});h.change(function(){f()});h.live("input paste",function(n){setTimeout(f,250)});f()})}})})(jQuery);(function(G){G.cleditor={defaultOptions:{width:"100%",height:"90%",controls:"bold italic underline strikethrough subscript superscript | font size style | color highlight removeformat | bullets numbering | outdent indent | alignleft center alignright justify | undo redo | rule image link unlink | cut copy paste pastetext | print source",colors:"FFF FCC FC9 FF9 FFC 9F9 9FF CFF CCF FCF CCC F66 F96 FF6 FF3 6F9 3FF 6FF 99F F9F BBB F00 F90 FC6 FF0 3F3 6CC 3CF 66C C6C 999 C00 F60 FC3 FC0 3C0 0CC 36F 63F C3C 666 900 C60 C93 990 090 399 33F 60C 939 333 600 930 963 660 060 366 009 339 636 000 300 630 633 330 030 033 006 309 303",fonts:"Arial,Arial Black,Comic Sans MS,Courier New,Narrow,Garamond,Georgia,Impact,Sans Serif,Serif,Tahoma,Trebuchet MS,Verdana",sizes:"1,2,3,4,5,6,7",styles:[["Paragraph","<p>"],["Header 1","<h1>"],["Header 2","<h2>"],["Header 3","<h3>"],["Header 4","<h4>"],["Header 5","<h5>"],["Header 6","<h6>"]],useCSS:false,docType:'<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">',docCSSFile:"",bodyStyle:"margin:4px; font:10pt Arial,Verdana; cursor:text"},buttons:{init:"bold,,|italic,,|underline,,|strikethrough,,|subscript,,|superscript,,|font,,fontname,|size,Font Size,fontsize,|style,,formatblock,|color,Font Color,forecolor,|highlight,Text Highlight Color,hilitecolor,color|removeformat,Remove Formatting,|bullets,,insertunorderedlist|numbering,,insertorderedlist|outdent,,|indent,,|alignleft,Align Text Left,justifyleft|center,,justifycenter|alignright,Align Text Right,justifyright|justify,,justifyfull|undo,,|redo,,|rule,Insert Horizontal Rule,inserthorizontalrule|image,Insert Image,insertimage,url|link,Insert Hyperlink,createlink,url|unlink,Remove Hyperlink,|cut,,|copy,,|paste,,|pastetext,Paste as Text,inserthtml,|print,,|source,Show Source"},imagesPath:function(){return x()}};G.fn.cleditor=function(al){var ak=G([]);this.each(function(an,ao){if(ao.tagName=="TEXTAREA"){var ap=G.data(ao,e);if(!ap){ap=new cleditor(ao,al)}ak=ak.add(ap)}});return ak};var p="backgroundColor",ae="button",ad="buttonName",E="change",e="cleditor",U="click",D="disabled",H="<div>",A="transparent",Q="unselectable",b="cleditorMain",y="cleditorToolbar",af="cleditorGroup",P="cleditorButton",ag="cleditorDisabled",N="cleditorDivider",K="cleditorPopup",ai="cleditorList",Y="cleditorColor",c="cleditorPrompt",aa="cleditorMsg",L=G.browser.msie,u=/msie\s6/i.test(navigator.userAgent),n=/iphone|ipad|ipod/i.test(navigator.userAgent),h={},F,z=G.cleditor.buttons;G.each(z.init.split("|"),function(ak,ao){var al=ao.split(","),an=al[0];z[an]={stripIndex:ak,name:an,title:al[1]===""?an.charAt(0).toUpperCase()+an.substr(1):al[1],command:al[2]===""?an:al[2],popupName:al[3]===""?an:al[3]}});delete z.init;cleditor=function(aq,an){var ap=this;ap.options=an=G.extend({},G.cleditor.defaultOptions,an);var ak=ap.$area=G(aq).hide().data(e,ap).blur(function(){R(ap,true)});var ar=ap.$main=G(H).addClass(b).width(an.width).height(an.height);var al=ap.$toolbar=G(H).addClass(y).appendTo(ar);var ao=G(H).addClass(af).appendTo(al);G.each(an.controls.split(" "),function(au,at){if(at===""){return true}if(at=="|"){var aw=G(H).addClass(N).appendTo(ao);ao=G(H).addClass(af).appendTo(al)}else{var ax=z[at];var av=G(H).data(ad,ax.name).addClass(P).attr("title",ax.title).bind(U,G.proxy(f,ap)).appendTo(ao).hover(ab,g);var ay={};if(ax.css){ay=ax.css}else{if(ax.image){ay.backgroundImage=I(ax.image)}}if(ax.stripIndex){ay.backgroundPosition=ax.stripIndex*-24}av.css(ay);if(L){av.attr(Q,"on")}if(ax.popupName){s(ax.popupName,an,ax.popupClass,ax.popupContent,ax.popupHover)}}});ar.insertBefore(ak).append(ak);if(!F){G(document).click(function(au){var at=G(au.target);if(!at.add(at.parents()).is("."+c)){aj()}});F=true}G(window).resize(function(){ah(ap)});ah(ap)};var B=cleditor.prototype,J=[["clear",M],["disable",k],["execCommand",a],["focus",V],["hidePopups",aj],["sourceMode",j,true],["refresh",ah],["select",W],["selectedHTML",o,true],["selectedText",S,true],["showMessage",C],["updateFrame",R],["updateTextArea",O]];G.each(J,function(ak,al){B[al[0]]=function(){var aq=this,ap=[aq];for(var ao=0;ao<arguments.length;ao++){ap.push(arguments[ao])}var an=al[1].apply(aq,ap);if(al[2]){return an}return aq}});B.change=function(ak){var al=G(this);return ak?al.bind(E,ak):al.trigger(E)};function f(aq){var ap=this,at=aq.target,au=G.data(at,ad),ao=z[au],ar=ao.popupName,al=h[ar];if(ap.disabled||G(at).attr(D)==D){return}var an={editor:ap,button:at,buttonName:au,popup:al,popupName:ar,command:ao.command,useCSS:ap.options.useCSS};if(ao.buttonClick&&ao.buttonClick(aq,an)===false){return false}if(au=="source"){if(j(ap)){delete ap.range;ap.$area.hide();ap.$frame.show();at.title=ao.title}else{ap.$frame.hide();ap.$area.show();at.title="Show Rich Text"}setTimeout(function(){q(ap)},100)}else{if(!j(ap)){if(ar){var ak=G(al);if(ar=="url"){if(au=="link"&&S(ap)===""){C(ap,"A selection is required when inserting a link.",at);return false}ak.children(":button").unbind(U).bind(U,function(){var aw=ak.find(":text"),av=G.trim(aw.val());if(av!==""){a(ap,an.command,av,null,an.button)}aw.val("http://");aj();V(ap)})}else{if(ar=="pastetext"){ak.children(":button").unbind(U).bind(U,function(){var aw=ak.find("textarea"),av=aw.val().replace(/\n/g,"<br />");if(av!==""){a(ap,an.command,av,null,an.button)}aw.val("");aj();V(ap)})}}if(at!==G.data(al,ae)){m(ap,al,at);return false}return}else{if(au=="print"){ap.$frame[0].contentWindow.print()}else{if(!a(ap,an.command,an.value,an.useCSS,at)){return false}}}}}V(ap)}function ab(al){var ak=G(al.target).closest("div");ak.css(p,ak.data(ad)?"#FFF":"#FFC")}function g(ak){G(ak.target).closest("div").css(p,"transparent")}function X(ar){var ap=this,ak=ar.data.popup,at=ar.target;if(ak===h.msg||G(ak).hasClass(c)){return}var av=G.data(ak,ae),aw=G.data(av,ad),ao=z[aw],al=ao.command,au,aq=ap.options.useCSS;if(aw=="font"){au=at.style.fontFamily.replace(/"/g,"")}else{if(aw=="size"){if(at.tagName=="DIV"){at=at.children[0]}au=at.innerHTML}else{if(aw=="style"){au="<"+at.tagName+">"}else{if(aw=="color"){au=T(at.style.backgroundColor)}else{if(aw=="highlight"){au=T(at.style.backgroundColor);if(L){al="backcolor"}else{aq=true}}}}}}var an={editor:ap,button:av,buttonName:aw,popup:ak,popupName:ao.popupName,command:al,value:au,useCSS:aq};if(ao.popupClick&&ao.popupClick(ar,an)===false){return}if(an.command&&!a(ap,an.command,an.value,an.useCSS,av)){return false}aj();V(ap)}function v(ao){var al=1,ak=0;for(var an=0;an<ao.length;++an){al=(al+ao.charCodeAt(an))%65521;ak=(ak+al)%65521}return(ak<<16)|al}function M(ak){ak.$area.val("");R(ak)}function s(ap,an,ao,al,aq){if(h[ap]){return h[ap]}var ar=G(H).hide().addClass(K).appendTo("body");if(al){ar.html(al)}else{if(ap=="color"){var ak=an.colors.split(" ");if(ak.length<10){ar.width("auto")}G.each(ak,function(at,au){G(H).appendTo(ar).css(p,"#"+au)});ao=Y}else{if(ap=="font"){G.each(an.fonts.split(","),function(at,au){G(H).appendTo(ar).css("fontFamily",au).html(au)})}else{if(ap=="size"){G.each(an.sizes.split(","),function(at,au){G(H).appendTo(ar).html("<font size="+au+">"+au+"</font>")})}else{if(ap=="style"){G.each(an.styles,function(at,au){G(H).appendTo(ar).html(au[1]+au[0]+au[1].replace("<","</"))})}else{if(ap=="url"){ar.html('Enter URL:<br><input type=text value="http://" size=35><br><input type=button value="Submit">');ao=c}else{if(ap=="pastetext"){ar.html("Paste your content here and click submit.<br /><textarea cols=40 rows=3></textarea><br /><input type=button value=Submit>");ao=c}}}}}}}if(!ao&&!al){ao=ai}ar.addClass(ao);if(L){ar.attr(Q,"on").find("div,font,p,h1,h2,h3,h4,h5,h6").attr(Q,"on")}if(ar.hasClass(ai)||aq===true){ar.children().hover(ab,g)}h[ap]=ar[0];return ar[0]}function k(al,ak){if(ak){al.$area.attr(D,D);al.disabled=true}else{al.$area.removeAttr(D);delete al.disabled}try{if(L){al.doc.body.contentEditable=!ak}else{al.doc.designMode=!ak?"on":"off"}}catch(an){}q(al)}function a(al,at,ap,ar,ak){Z(al);if(!L){if(ar===undefined||ar===null){ar=al.options.useCSS}al.doc.execCommand("styleWithCSS",0,ar.toString())}var aq=true,ao;if(L&&at.toLowerCase()=="inserthtml"){l(al).pasteHTML(ap)}else{try{aq=al.doc.execCommand(at,0,ap||null)}catch(an){ao=an.description;aq=false}if(!aq){if("cutcopypaste".indexOf(at)>-1){C(al,"For security reasons, your browser does not support the "+at+" command. Try using the keyboard shortcut or context menu instead.",ak)}else{C(al,(ao?ao:"Error executing the "+at+" command."),ak)}}}q(al);return aq}function V(ak){setTimeout(function(){if(j(ak)){ak.$area.focus()}else{ak.$frame[0].contentWindow.focus()}q(ak)},0)}function l(ak){if(L){return w(ak).createRange()}return w(ak).getRangeAt(0)}function w(ak){if(L){return ak.doc.selection}return ak.$frame[0].contentWindow.getSelection()}function T(al){var ak=/rgba?\((\d+), (\d+), (\d+)/.exec(al),an=al.split("");if(ak){al=(ak[1]<<16|ak[2]<<8|ak[3]).toString(16);while(al.length<6){al="0"+al}}return"#"+(al.length==6?al:an[1]+an[1]+an[2]+an[2]+an[3]+an[3])}function aj(){G.each(h,function(ak,al){G(al).hide().unbind(U).removeData(ae)})}function x(){var ak="jquery.cleditor.css",al=G("link[href$='"+ak+"']").attr("href");return al.substr(0,al.length-ak.length)+"images/"}function I(ak){return"url("+x()+ak+")"}function ah(an){var ap=an.$main,al=an.options;if(an.$frame){an.$frame.remove()}var ao=an.$frame=G('<iframe frameborder="0" src="javascript:true;">').hide().appendTo(ap);var ak=ao[0].contentWindow,aq=an.doc=ak.document,ar=G(aq);aq.open();aq.write(al.docType+"<html>"+((al.docCSSFile==="")?"":'<head><link rel="stylesheet" type="text/css" href="'+al.docCSSFile+'" /></head>')+'<body style="'+al.bodyStyle+'"></body></html>');aq.close();if(L){ar.click(function(){V(an)})}R(an);if(L){ar.bind("beforedeactivate beforeactivate selectionchange keypress",function(at){if(at.type=="beforedeactivate"){an.inactive=true}else{if(at.type=="beforeactivate"){if(!an.inactive&&an.range&&an.range.length>1){an.range.shift()}delete an.inactive}else{if(!an.inactive){if(!an.range){an.range=[]}an.range.unshift(l(an));while(an.range.length>2){an.range.pop()}}}}});ao.focus(function(){Z(an)})}(G.browser.mozilla?ar:G(ak)).blur(function(){O(an,true)});ar.click(aj).bind("keyup mouseup",function(){q(an)});if(n){an.$area.show()}else{ao.show()}G(function(){var au=an.$toolbar,av=au.children("div:last"),aw=ap.width();var at=av.offset().top+av.outerHeight()-au.offset().top+1;au.height(at);at=(/%/.test(""+al.height)?ap.height():parseInt(al.height))-at;ao.width(aw).height(at);an.$area.width(aw).height(u?at-2:at);k(an,an.disabled);q(an)})}function q(ak){if(!n&&G.browser.webkit&&!ak.focused){ak.$frame[0].contentWindow.focus();window.focus();ak.focused=true}var al=ak.doc;if(L){al=l(ak)}var an=j(ak);G.each(ak.$toolbar.find("."+P),function(ao,au){var ap=G(au),ar=G.cleditor.buttons[G.data(au,ad)],aw=ar.command,aq=true;if(ak.disabled){aq=false}else{if(ar.getEnabled){var av={editor:ak,button:au,buttonName:ar.name,popup:h[ar.popupName],popupName:ar.popupName,command:ar.command,useCSS:ak.options.useCSS};aq=ar.getEnabled(av);if(aq===undefined){aq=true}}else{if(((an||n)&&ar.name!="source")||(L&&(aw=="undo"||aw=="redo"))){aq=false}else{if(aw&&aw!="print"){if(L&&aw=="hilitecolor"){aw="backcolor"}if(!L||aw!="inserthtml"){try{aq=al.queryCommandEnabled(aw)}catch(at){aq=false}}}}}}if(aq){ap.removeClass(ag);ap.removeAttr(D)}else{ap.addClass(ag);ap.attr(D,D)}})}function Z(ak){if(L&&ak.range){ak.range[0].select()}}function W(ak){setTimeout(function(){if(j(ak)){ak.$area.select()}else{a(ak,"selectall")}},0)}function o(ao){Z(ao);var ak=l(ao);if(L){return ak.htmlText}var an=G("<layer>")[0];an.appendChild(ak.cloneContents());var al=an.innerHTML;an=null;return al}function S(ak){Z(ak);if(L){return l(ak).text}return w(ak).toString()}function C(an,ao,al){var ak=s("msg",an.options,aa);ak.innerHTML=ao;m(an,ak,al)}function m(at,an,ar){var aq,ap,au,ak=G(an);if(ar){var al=G(ar);aq=al.offset();ap=--aq.left;au=aq.top+al.height()}else{var ao=at.$toolbar;aq=ao.offset();ap=Math.floor((ao.width()-ak.width())/2)+aq.left;au=aq.top+ao.height()-2}aj();ak.css({left:ap,top:au}).show();if(ar){G.data(an,ae,ar);ak.bind(U,{popup:an},G.proxy(X,at))}setTimeout(function(){ak.find(":text,textarea").eq(0).focus().select()},100)}function j(ak){return ak.$area.is(":visible")}function R(ap,ak){var aq=ap.$area.val(),al=ap.options,at=al.updateFrame,ar=G(ap.doc.body);if(at){var ao=v(aq);if(ak&&ap.areaChecksum==ao){return}ap.areaChecksum=ao}var an=at?at(aq):aq;an=an.replace(/<(?=\/?script)/ig,"&lt;");if(al.updateTextArea){ap.frameChecksum=v(an)}if(an!=ar.html()){ar.html(an);G(ap).triggerHandler(E)}}function O(aq,ak){var ao=G(aq.doc.body).html(),an=aq.options,at=an.updateTextArea,al=aq.$area;if(at){var ap=v(ao);if(ak&&aq.frameChecksum==ap){return}aq.frameChecksum=ap}var ar=at?at(ao):ao;if(an.updateFrame){aq.areaChecksum=v(ar)}if(ar!=al.val()){al.val(ar);G(aq).triggerHandler(E)}}})(jQuery);(function(a){a.fn.extend({filterinput:function(b){var f={regex:".*",live:false};var b=a.extend(f,b);var c=new RegExp(b.regex);function e(j){var h=j.charCode?j.charCode:j.keyCode?j.keyCode:0;if(h==8||h==9||h==13||h==35||h==36||h==37||h==39||h==46){if(a.browser.mozilla){if(j.charCode==0&&j.keyCode==h){return true}}}var g=String.fromCharCode(h);if(c.test(g)){return true}return false}if(b.live){a(this).live("keypress",e)}else{return this.each(function(){a(this).unbind("keypress").keypress(e)})}}})})(jQuery);(function($){$.extend({tablesorter:new function(){var parsers=[],widgets=[];this.defaults={cssHeader:"header",cssAsc:"headerSortUp",cssDesc:"headerSortDown",cssChildRow:"expand-child",sortInitialOrder:"asc",sortMultiSortKey:"shiftKey",sortForce:null,sortAppend:null,sortLocaleCompare:true,textExtraction:"simple",parsers:{},widgets:[],widgetZebra:{css:["even","odd"]},headers:{},widthFixed:false,cancelSelection:true,sortList:[],headerList:[],dateFormat:"us",decimal:"/.|,/g",onRenderHeader:null,selectorHeaders:"thead th",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=""}if(table.tBodies.length==0){return}var rows=table.tBodies[0].rows;if(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,rows,-1,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,rows,rowIndex,cellIndex){var l=parsers.length,node=false,nodeValue=false,keepLooking=true;while(nodeValue==""&&keepLooking){rowIndex++;if(rows[rowIndex]){node=getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex);nodeValue=trimAndGetNodeText(table.config,node);if(table.config.debug){log("Checking if value was empty on row:"+rowIndex)}}else{keepLooking=false}}for(var i=1;i<l;i++){if(parsers[i].is(nodeValue,table,node)){return parsers[i]}}return parsers[0]}function getNodeFromRowAndCellIndex(rows,rowIndex,cellIndex){return rows[rowIndex].cells[cellIndex]}function trimAndGetNodeText(config,node){return $.trim(getElementText(config,node))}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=[];if(c.hasClass(table.config.cssChildRow)){cache.row[cache.row.length-1]=cache.row[cache.row.length-1].add(c);continue}cache.row.push(c);for(var j=0;j<totalCells;++j){cols.push(parsers[j].format(getElementText(table.config,c[0].cells[j]),table,c[0].cells[j]))}cols.push(cache.normalized.length);cache.normalized.push(cols);cols=null}if(table.config.debug){benchmark("Building cache for "+totalRows+" rows:",cacheTime)}return cache}function getElementText(config,node){var text="";if(!node){return""}if(!config.supportsTextContent){config.supportsTextContent=node.textContent||false}if(config.textExtraction=="simple"){if(config.supportsTextContent){text=node.textContent}else{if(node.childNodes[0]&&node.childNodes[0].hasChildNodes()){text=node.childNodes[0].innerHTML}else{text=node.innerHTML}}}else{if(typeof(config.textExtraction)=="function"){text=config.textExtraction(node)}else{text=$(node).text()}}return text}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++){var pos=n[i][checkCell];rows.push(r[pos]);if(!table.config.appender){var l=r[pos].length;for(var j=0;j<l;j++){tableBody[0].appendChild(r[pos][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;var header_index=computeTableHeaderCellIndexes(table);$tableHeaders=$(table.config.selectorHeaders,table).each(function(index){this.column=header_index[this.parentNode.rowIndex+"-"+this.cellIndex];this.order=formatSortingOrder(table.config.sortInitialOrder);this.count=this.order;if(checkHeaderMetadata(this)||checkHeaderOptions(table,index)){this.sortDisabled=true}if(checkHeaderOptionsSortingLocked(table,index)){this.order=this.lockedOrder=checkHeaderOptionsSortingLocked(table,index)}if(!this.sortDisabled){var $th=$(this).addClass(table.config.cssHeader);if(table.config.onRenderHeader){table.config.onRenderHeader.apply($th)}}table.config.headerList[index]=this});if(table.config.debug){benchmark("Built headers:",time);log($tableHeaders)}return $tableHeaders}function computeTableHeaderCellIndexes(t){var matrix=[];var lookup={};var thead=t.getElementsByTagName("THEAD")[0];var trs=thead.getElementsByTagName("TR");for(var i=0;i<trs.length;i++){var cells=trs[i].cells;for(var j=0;j<cells.length;j++){var c=cells[j];var rowIndex=c.parentNode.rowIndex;var cellId=rowIndex+"-"+c.cellIndex;var rowSpan=c.rowSpan||1;var colSpan=c.colSpan||1;var firstAvailCol;if(typeof(matrix[rowIndex])=="undefined"){matrix[rowIndex]=[]}for(var k=0;k<matrix[rowIndex].length+1;k++){if(typeof(matrix[rowIndex][k])=="undefined"){firstAvailCol=k;break}}lookup[cellId]=firstAvailCol;for(var k=rowIndex;k<rowIndex+rowSpan;k++){if(typeof(matrix[k])=="undefined"){matrix[k]=[]}var matrixrow=matrix[k];for(var l=firstAvailCol;l<firstAvailCol+colSpan;l++){matrixrow[l]="x"}}}}return lookup}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 checkHeaderOptionsSortingLocked(table,i){if((table.config.headers[i])&&(table.config.headers[i].lockedOrder)){return table.config.headers[i].lockedOrder}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"){return(v.toLowerCase()=="desc")?1:0}else{return(v==1)?1:0}}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.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=(table.config.parsers[c].type=="text")?((order==0)?makeSortFunction("text","asc",c):makeSortFunction("text","desc",c)):((order==0)?makeSortFunction("numeric","asc",c):makeSortFunction("numeric","desc",c));var e="e"+i;dynamicExp+="var "+e+" = "+s;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+="}; ";if(table.config.debug){benchmark("Evaling expression:"+dynamicExp,new Date())}eval(dynamicExp);cache.normalized.sort(sortWrapper);if(table.config.debug){benchmark("Sorting on "+sortList.toString()+" and dir "+order+" time:",sortTime)}return cache}function makeSortFunction(type,direction,index){var a="a["+index+"]",b="b["+index+"]";if(type=="text"&&direction=="asc"){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+a+" < "+b+") ? -1 : 1 )));"}else{if(type=="text"&&direction=="desc"){return"("+a+" == "+b+" ? 0 : ("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : ("+b+" < "+a+") ? -1 : 1 )));"}else{if(type=="numeric"&&direction=="asc"){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+a+" - "+b+"));"}else{if(type=="numeric"&&direction=="desc"){return"("+a+" === null && "+b+" === null) ? 0 :("+a+" === null ? Number.POSITIVE_INFINITY : ("+b+" === null ? Number.NEGATIVE_INFINITY : "+b+" - "+a+"));"}}}}}function makeSortText(i){return"((a["+i+"] < b["+i+"]) ? -1 : ((a["+i+"] > b["+i+"]) ? 1 : 0));"}function makeSortTextDesc(i){return"((b["+i+"] < a["+i+"]) ? -1 : ((b["+i+"] > a["+i+"]) ? 1 : 0));"}function makeSortNumeric(i){return"a["+i+"]-b["+i+"];"}function makeSortNumericDesc(i){return"b["+i+"]-a["+i+"];"}function sortText(a,b){if(table.config.sortLocaleCompare){return a.localeCompare(b)}return((a<b)?-1:((a>b)?1:0))}function sortTextDesc(a,b){if(table.config.sortLocaleCompare){return b.localeCompare(a)}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);$.data(this,"tablesorter",config);$headers=buildHeaders(this);this.config.parsers=buildParserCache(this,$headers);cache=buildCache(this);var sortCSS=[config.cssDesc,config.cssAsc];fixColumnWidth(this);$headers.click(function(e){var totalRows=($this[0].tBodies[0]&&$this[0].tBodies[0].rows.length)||0;if(!this.sortDisabled&&totalRows>0){$this.trigger("sortStart");var $cell=$(this);var i=this.column;this.order=this.count++%2;if(this.lockedOrder){this.order=this.lockedOrder}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(){var me=this;setTimeout(function(){me.config.parsers=buildParserCache(me,$headers);cache=buildCache(me)},1)}).bind("updateCell",function(e,cell){var config=this.config;var pos=[(cell.parentNode.rowIndex-1),cell.cellIndex];cache.normalized[pos[0]][pos[1]]=config.parsers[pos[1]].format(getElementText(config,cell),cell)}).bind("sorton",function(e,list){$(this).trigger("sortStart");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){return/^[-+]?\d*$/.test($.trim(s.replace(/[,.']/g,"")))};this.clearTableBody=function(table){if($.browser.msie){function empty(){while(this.firstChild){this.removeChild(this.firstChild)}}empty.apply(table.tBodies[0])}else{table.tBodies[0].innerHTML=""}}}});$.fn.extend({tablesorter:$.tablesorter.construct});var ts=$.tablesorter;ts.addParser({id:"text",is:function(s){return true},format:function(s){return $.trim(s.toLocaleLowerCase())},type:"text"});ts.addParser({id:"digit",is:function(s,table){var c=table.config;return $.tablesorter.isDigit(s,c)},format:function(s){return $.tablesorter.formatFloat(s)},type:"numeric"});ts.addParser({id:"currency",is:function(s){return/^[£$€?.]/.test(s)},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/[£$€]/g),""))},type:"numeric"});ts.addParser({id:"ipAddress",is:function(s){return/^\d{2,3}[\.]\d{2,3}[\.]\d{2,3}[\.]\d{2,3}$/.test(s)},format:function(s){var a=s.split("."),r="",l=a.length;for(var i=0;i<l;i++){var item=a[i];if(item.length==2){r+="0"+item}else{r+=item}}return $.tablesorter.formatFloat(r)},type:"numeric"});ts.addParser({id:"url",is:function(s){return/^(https?|ftp|file):\/\/$/.test(s)},format:function(s){return jQuery.trim(s.replace(new RegExp(/(https?|ftp|file):\/\//),""))},type:"text"});ts.addParser({id:"isoDate",is:function(s){return/^\d{4}[\/-]\d{1,2}[\/-]\d{1,2}$/.test(s)},format:function(s){return $.tablesorter.formatFloat((s!="")?new Date(s.replace(new RegExp(/-/g),"/")).getTime():"0")},type:"numeric"});ts.addParser({id:"percent",is:function(s){return/\%$/.test($.trim(s))},format:function(s){return $.tablesorter.formatFloat(s.replace(new RegExp(/%/g),""))},type:"numeric"});ts.addParser({id:"usLongDate",is:function(s){return s.match(new RegExp(/^[A-Za-z]{3,10}\.? [0-9]{1,2}, ([0-9]{4}|'?[0-9]{2}) (([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(AM|PM)))$/))},format:function(s){return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"shortDate",is:function(s){return/\d{1,2}[\/\-]\d{1,2}[\/\-]\d{2,4}/.test(s)},format:function(s,table){var c=table.config;s=s.replace(/\-/g,"/");if(c.dateFormat=="us"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$1/$2")}else{if(c.dateFormat=="uk"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{4})/,"$3/$2/$1")}else{if(c.dateFormat=="dd/mm/yy"||c.dateFormat=="dd-mm-yy"){s=s.replace(/(\d{1,2})[\/\-](\d{1,2})[\/\-](\d{2})/,"$1/$2/$3")}}}return $.tablesorter.formatFloat(new Date(s).getTime())},type:"numeric"});ts.addParser({id:"time",is:function(s){return/^(([0-2]?[0-9]:[0-5][0-9])|([0-1]?[0-9]:[0-5][0-9]\s(am|pm)))$/.test(s)},format:function(s){return $.tablesorter.formatFloat(new Date("2000/01/01 "+s).getTime())},type:"numeric"});ts.addParser({id:"metadata",is:function(s){return false},format:function(s,table,cell){var c=table.config,p=(!c.parserMetadataName)?"sortValue":c.parserMetadataName;return $(cell).metadata()[p]},type:"numeric"});ts.addWidget({id:"zebra",format:function(table){if(table.config.debug){var time=new Date()}var $tr,row=-1,odd;$("tr:visible",table.tBodies[0]).each(function(i){$tr=$(this);if(!$tr.hasClass(table.config.cssChildRow)){row++}odd=(row%2==0);$tr.removeClass(table.config.widgetZebra.css[odd?0:1]).addClass(table.config.widgetZebra.css[odd?1:0])});if(table.config.debug){$.tablesorter.benchmark("Applying Zebra widget",time)}}})})(jQuery);(function(b){b.fn.jOrgChart=function(f){var h=b.extend({},b.fn.jOrgChart.defaults,f);var c=b(h.chartElement);$this=b(this);var k=b("<div class='"+h.chartClass+"'/>");if($this.is("ul")){a($this.find("li:first"),k,0,h)}else{if($this.is("li")){a($this,k,0,h)}}c.append(k);if(h.dragAndDrop){b("div.node").draggable({cursor:"move",distance:40,helper:"clone",opacity:0.8,revert:true,revertDuration:500,snap:"div.node.expanded",snapMode:"inner",stack:"div.node"});b("div.node").droppable({accept:".node",activeClass:"drag-active",hoverClass:"drop-hover"});b("div.node").bind("dragstart",function j(m,n){var l=b(this);l.parentsUntil(".node-container").find("*").filter(".node").droppable("disable")});b("div.node").bind("dragstop",function g(l,m){b(h.chartElement).children().remove();$this.jOrgChart(h)});b("div.node").bind("drop",function e(p,q){var o=q.draggable;var u=b(this);var n=b("li").filter(function(){li=b(this).clone().children("ul,li").remove().end();return li.html()==u.html()});var s=b("li").filter(function(){li=b(this).clone().children("ul,li").remove().end();return li.html()==o.html()});var l=s.clone();var m=s.parent("ul");if(m.children("li").size()>1){s.remove()}else{m.remove()}if(n.children("ul").size()>0){n.children("ul").append("<li>"+l.html()+"</li>")}else{n.append("<ul><li>"+l.html()+"</li></ul>")}})}};b.fn.jOrgChart.defaults={chartElement:"body",depth:-1,chartClass:"jOrgChart",dragAndDrop:false};function a(g,o,f,e){var s=b("<table cellpadding='0' cellspacing='0' border='0'/>");var l=b("<tbody/>");var k=b("<tr/>").addClass("node-cells");var j=b("<td/>").addClass("node-cell").attr("colspan",2);var n=g.children("ul:first").children("li");if(n.length>1){j.attr("colspan",n.length*2)}var q=g.clone().children("ul,li").remove().end().html();$nodeDiv=b("<div>").addClass("node").append(q);j.append($nodeDiv);k.append(j);l.append(k);if(n.length>0){if(e.depth==-1||(f+1<e.depth)){var p=b("<tr/>");var m=b("<td/>").attr("colspan",n.length*2);p.append(m);$downLine=b("<div></div>").addClass("jOrgChartLine jOrgChartDown");m.append($downLine);l.append(p);var h=b("<tr/>");n.each(function(){var v=b("<td/>").addClass("jOrgChartLine jOrgChartLeft jOrgChartTop");var u=b("<td/>").addClass("jOrgChartLine jOrgChartRight jOrgChartTop");h.append(v).append(u)});h.find("td:first").removeClass("jOrgChartTop").end().find("td:last").removeClass("jOrgChartTop");l.append(h);var c=b("<tr/>");n.each(function(){var u=b("<td class='node-container'/>");u.attr("colspan",2);a(b(this),u,f+1,e);c.append(u)})}l.append(c)}s.append(l);o.append(s)}})(jQuery);(function(){var j=document.all,l="http://www.adobe.com/go/getflashplayer",c=typeof jQuery=="function",g=/(\d+)[^\d]+(\d+)[^\d]*(\d*)/,b={width:"100%",height:"100%",id:"_"+(""+Math.random()).slice(9),allowfullscreen:true,allowscriptaccess:"always",quality:"high",version:[3,0],onFail:null,expressInstall:null,w3c:false,cachebusting:false};if(window.attachEvent){window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){}})}function k(o,n){if(n){for(var f in n){if(n.hasOwnProperty(f)){o[f]=n[f]}}}return o}function a(f,p){var o=[];for(var n in f){if(f.hasOwnProperty(n)){o[n]=p(f[n])}}return o}window.flashembed=function(f,o,n){if(typeof f=="string"){f=document.getElementById(f.replace("#",""))}if(!f){return}if(typeof o=="string"){o={src:o}}return new e(f,k(k({},b),o),n)};var h=k(window.flashembed,{conf:b,getVersion:function(){var o,f;try{f=navigator.plugins["Shockwave Flash"].description.slice(16)}catch(q){try{o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");f=o&&o.GetVariable("$version")}catch(p){try{o=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");f=o&&o.GetVariable("$version")}catch(n){}}}f=g.exec(f);return f?[f[1],f[3]]:[0,0]},asString:function(n){if(n===null||n===undefined){return null}var f=typeof n;if(f=="object"&&n.push){f="array"}switch(f){case"string":n=n.replace(new RegExp('(["\\\\])',"g"),"\\$1");n=n.replace(/^\s?(\d+\.?\d+)%/,"$1pct");return'"'+n+'"';case"array":return"["+a(n,function(q){return h.asString(q)}).join(",")+"]";case"function":return'"function()"';case"object":var o=[];for(var p in n){if(n.hasOwnProperty(p)){o.push('"'+p+'":'+h.asString(n[p]))}}return"{"+o.join(",")+"}"}return String(n).replace(/\s/g," ").replace(/\'/g,'"')},getHTML:function(q,n){q=k({},q);var p='<object width="'+q.width+'" height="'+q.height+'" id="'+q.id+'" name="'+q.id+'"';if(q.cachebusting){q.src+=((q.src.indexOf("?")!=-1?"&":"?")+Math.random())}if(q.w3c||!j){p+=' data="'+q.src+'" type="application/x-shockwave-flash"'}else{p+=' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'}p+=">";if(q.w3c||j){p+='<param name="movie" value="'+q.src+'" />'}q.width=q.height=q.id=q.w3c=q.src=null;q.onFail=q.version=q.expressInstall=null;for(var o in q){if(q[o]){p+='<param name="'+o+'" value="'+q[o]+'" />'}}var s="";if(n){for(var f in n){if(n[f]){var u=n[f];s+=f+"="+(/function|object/.test(typeof u)?h.asString(u):u)+"&"}}s=s.slice(0,-1);p+='<param name="flashvars" value=\''+s+"' />"}p+="</object>";return p},isSupported:function(f){return m[0]>f[0]||m[0]==f[0]&&m[1]>=f[1]}});var m=h.getVersion();function e(f,p,o){if(h.isSupported(p.version)){f.innerHTML=h.getHTML(p,o)}else{if(p.expressInstall&&h.isSupported([6,65])){f.innerHTML=h.getHTML(k(p,{src:p.expressInstall}),{MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title})}else{if(!f.innerHTML.replace(/\s/g,"")){f.innerHTML="<h2>Flash version "+p.version+" or greater is required</h2><h3>"+(m[0]>0?"Your version is "+m:"You have no flash plugin installed")+"</h3>"+(f.tagName=="A"?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='"+l+"'>here</a></p>");if(f.tagName=="A"){f.onclick=function(){location.href=l}}}if(p.onFail){var n=p.onFail.call(this);if(typeof n=="string"){f.innerHTML=n}}}}if(j){window[p.id]=document.getElementById(p.id)}k(this,{getRoot:function(){return f},getOptions:function(){return p},getConf:function(){return o},getApi:function(){return f.firstChild}})}if(c){jQuery.tools=jQuery.tools||{version:"@VERSION"};jQuery.tools.flashembed={conf:b};jQuery.fn.flashembed=function(n,f){return this.each(function(){$(this).data("flashembed",flashembed(this,n,f))})}}})();(function(){var g=0,m=[],o={},k={},a={"<":"lt",">":"gt","&":"amp",'"':"quot","'":"#39"},n=/[<>&\"\']/g,b,c=window.setTimeout,e={},f;function j(){this.returnValue=false}function l(){this.cancelBubble=true}(function(p){var q=p.split(/,/),s,v,u;for(s=0;s<q.length;s+=2){u=q[s+1].split(/ /);for(v=0;v<u.length;v++){k[u[v]]=q[s]}}})("application/msword,doc dot,application/pdf,pdf,application/pgp-signature,pgp,application/postscript,ps ai eps,application/rtf,rtf,application/vnd.ms-excel,xls xlb,application/vnd.ms-powerpoint,ppt pps pot,application/zip,zip,application/x-shockwave-flash,swf swfl,application/vnd.openxmlformats,docx pptx xlsx,audio/mpeg,mpga mpega mp2 mp3,audio/x-wav,wav,audio/mp4,m4a,image/bmp,bmp,image/gif,gif,image/jpeg,jpeg jpg jpe,image/photoshop,psd,image/png,png,image/svg+xml,svg svgz,image/tiff,tiff tif,text/html,htm html xhtml,text/rtf,rtf,video/mpeg,mpeg mpg mpe,video/quicktime,qt mov,video/mp4,mp4,video/x-m4v,m4v,video/x-flv,flv,video/x-ms-wmv,wmv,video/avi,avi,video/webm,webm,video/vnd.rn-realvideo,rv,text/csv,csv,text/plain,asc txt text diff log,application/octet-stream,exe");var h={VERSION:"@@version@@",STOPPED:1,STARTED:2,QUEUED:1,UPLOADING:2,FAILED:4,DONE:5,GENERIC_ERROR:-100,HTTP_ERROR:-200,IO_ERROR:-300,SECURITY_ERROR:-400,INIT_ERROR:-500,FILE_SIZE_ERROR:-600,FILE_EXTENSION_ERROR:-601,IMAGE_FORMAT_ERROR:-700,IMAGE_MEMORY_ERROR:-701,IMAGE_DIMENSIONS_ERROR:-702,mimeTypes:k,ua:(function(){var v=navigator,u=v.userAgent,w=v.vendor,q,p,s;q=/WebKit/.test(u);s=q&&w.indexOf("Apple")!==-1;p=window.opera&&window.opera.buildNumber;return{windows:navigator.platform.indexOf("Win")!==-1,ie:!q&&!p&&(/MSIE/gi).test(u)&&(/Explorer/gi).test(v.appName),webkit:q,gecko:!q&&/Gecko/.test(u),safari:s,opera:!!p}}()),extend:function(p){h.each(arguments,function(q,s){if(s>0){h.each(q,function(v,u){p[u]=v})}});return p},cleanName:function(p){var q,s;s=[/[\300-\306]/g,"A",/[\340-\346]/g,"a",/\307/g,"C",/\347/g,"c",/[\310-\313]/g,"E",/[\350-\353]/g,"e",/[\314-\317]/g,"I",/[\354-\357]/g,"i",/\321/g,"N",/\361/g,"n",/[\322-\330]/g,"O",/[\362-\370]/g,"o",/[\331-\334]/g,"U",/[\371-\374]/g,"u"];for(q=0;q<s.length;q+=2){p=p.replace(s[q],s[q+1])}p=p.replace(/\s+/g,"_");p=p.replace(/[^a-z0-9_\-\.]+/gi,"");return p},addRuntime:function(p,q){q.name=p;m[p]=q;m.push(q);return q},guid:function(){var p=new Date().getTime().toString(32),q;for(q=0;q<5;q++){p+=Math.floor(Math.random()*65535).toString(32)}return(h.guidPrefix||"p")+p+(g++).toString(32)},buildUrl:function(q,p){var s="";h.each(p,function(v,u){s+=(s?"&":"")+encodeURIComponent(u)+"="+encodeURIComponent(v)});if(s){q+=(q.indexOf("?")>0?"&":"?")+s}return q},each:function(u,v){var s,q,p;if(u){s=u.length;if(s===b){for(q in u){if(u.hasOwnProperty(q)){if(v(u[q],q)===false){return}}}}else{for(p=0;p<s;p++){if(v(u[p],p)===false){return}}}}},formatSize:function(p){if(p===b||/\D/.test(p)){return h.translate("N/A")}if(p>1073741824){return Math.round(p/1073741824,1)+" GB"}if(p>1048576){return Math.round(p/1048576,1)+" MB"}if(p>1024){return Math.round(p/1024,1)+" KB"}return p+" b"},getPos:function(q,w){var z=0,v=0,B,A=document,s,u;q=q;w=w||A.body;function p(F){var D,E,C=0,G=0;if(F){E=F.getBoundingClientRect();D=A.compatMode==="CSS1Compat"?A.documentElement:A.body;C=E.left+D.scrollLeft;G=E.top+D.scrollTop}return{x:C,y:G}}if(q&&q.getBoundingClientRect&&(navigator.userAgent.indexOf("MSIE")>0&&A.documentMode!==8)){s=p(q);u=p(w);return{x:s.x-u.x,y:s.y-u.y}}B=q;while(B&&B!=w&&B.nodeType){z+=B.offsetLeft||0;v+=B.offsetTop||0;B=B.offsetParent}B=q.parentNode;while(B&&B!=w&&B.nodeType){z-=B.scrollLeft||0;v-=B.scrollTop||0;B=B.parentNode}return{x:z,y:v}},getSize:function(p){return{w:p.offsetWidth||p.clientWidth,h:p.offsetHeight||p.clientHeight}},parseSize:function(p){var q;if(typeof(p)=="string"){p=/^([0-9]+)([mgk]?)$/.exec(p.toLowerCase().replace(/[^0-9mkg]/g,""));q=p[2];p=+p[1];if(q=="g"){p*=1073741824}if(q=="m"){p*=1048576}if(q=="k"){p*=1024}}return p},xmlEncode:function(p){return p?(""+p).replace(n,function(q){return a[q]?"&"+a[q]+";":q}):p},toArray:function(s){var q,p=[];for(q=0;q<s.length;q++){p[q]=s[q]}return p},addI18n:function(p){return h.extend(o,p)},translate:function(p){return o[p]||p},isEmptyObj:function(p){if(p===b){return true}for(var q in p){return false}return true},hasClass:function(s,q){var p;if(s.className==""){return false}p=new RegExp("(^|\\s+)"+q+"(\\s+|$)");return p.test(s.className)},addClass:function(q,p){if(!h.hasClass(q,p)){q.className=q.className==""?p:q.className.replace(/\s+$/,"")+" "+p}},removeClass:function(s,q){var p=new RegExp("(^|\\s+)"+q+"(\\s+|$)");s.className=s.className.replace(p,function(v,u,w){return u===" "&&w===" "?" ":""})},getStyle:function(q,p){if(q.currentStyle){return q.currentStyle[p]}else{if(window.getComputedStyle){return window.getComputedStyle(q,null)[p]}}},addEvent:function(w,p,x){var v,u,s,q;q=arguments[3];p=p.toLowerCase();if(f===b){f="Plupload_"+h.guid()}if(w.addEventListener){v=x;w.addEventListener(p,v,false)}else{if(w.attachEvent){v=function(){var y=window.event;if(!y.target){y.target=y.srcElement}y.preventDefault=j;y.stopPropagation=l;x(y)};w.attachEvent("on"+p,v)}}if(w[f]===b){w[f]=h.guid()}if(!e.hasOwnProperty(w[f])){e[w[f]]={}}u=e[w[f]];if(!u.hasOwnProperty(p)){u[p]=[]}u[p].push({func:v,orig:x,key:q})},removeEvent:function(w,p){var u,x,s;if(typeof(arguments[2])=="function"){x=arguments[2]}else{s=arguments[2]}p=p.toLowerCase();if(w[f]&&e[w[f]]&&e[w[f]][p]){u=e[w[f]][p]}else{return}for(var q=u.length-1;q>=0;q--){if(u[q].key===s||u[q].orig===x){if(w.detachEvent){w.detachEvent("on"+p,u[q].func)}else{if(w.removeEventListener){w.removeEventListener(p,u[q].func,false)}}u[q].orig=null;u[q].func=null;u.splice(q,1);if(x!==b){break}}}if(!u.length){delete e[w[f]][p]}if(h.isEmptyObj(e[w[f]])){delete e[w[f]];try{delete w[f]}catch(v){w[f]=b}}},removeAllEvents:function(q){var p=arguments[1];if(q[f]===b||!q[f]){return}h.each(e[q[f]],function(u,s){h.removeEvent(q,s,p)})}};h.Uploader=function(u){var q={},x,w=[],s;x=new h.QueueProgress();u=h.extend({chunk_size:0,multipart:true,multi_selection:true,file_data_name:"file",filters:[]},u);function v(){var z,A=0,y;if(this.state==h.STARTED){for(y=0;y<w.length;y++){if(!z&&w[y].status==h.QUEUED){z=w[y];z.status=h.UPLOADING;if(this.trigger("BeforeUpload",z)){this.trigger("UploadFile",z)}}else{A++}}if(A==w.length){this.stop();this.trigger("UploadComplete",w)}}}function p(){var z,y;x.reset();for(z=0;z<w.length;z++){y=w[z];if(y.size!==b){x.size+=y.size;x.loaded+=y.loaded}else{x.size=b}if(y.status==h.DONE){x.uploaded++}else{if(y.status==h.FAILED){x.failed++}else{x.queued++}}}if(x.size===b){x.percent=w.length>0?Math.ceil(x.uploaded/w.length*100):0}else{x.bytesPerSec=Math.ceil(x.loaded/((+new Date()-s||1)/1000));x.percent=x.size>0?Math.ceil(x.loaded/x.size*100):0}}h.extend(this,{state:h.STOPPED,runtime:"",features:{},files:w,settings:u,total:x,id:h.guid(),init:function(){var D=this,E,A,z,C=0,B;if(typeof(u.preinit)=="function"){u.preinit(D)}else{h.each(u.preinit,function(G,F){D.bind(F,G)})}u.page_url=u.page_url||document.location.pathname.replace(/\/[^\/]+$/g,"/");if(!/^(\w+:\/\/|\/)/.test(u.url)){u.url=u.page_url+u.url}u.chunk_size=h.parseSize(u.chunk_size);u.max_file_size=h.parseSize(u.max_file_size);D.bind("FilesAdded",function(F,I){var H,G,K=0,L,J=u.filters;if(J&&J.length){L=[];h.each(J,function(M){h.each(M.extensions.split(/,/),function(N){if(/^\s*\*\s*$/.test(N)){L.push("\\.*")}else{L.push("\\."+N.replace(new RegExp("["+("/^$.*+?|()[]{}\\".replace(/./g,"\\$&"))+"]","g"),"\\$&"))}})});L=new RegExp(L.join("|")+"$","i")}for(H=0;H<I.length;H++){G=I[H];G.loaded=0;G.percent=0;G.status=h.QUEUED;if(L&&!L.test(G.name)){F.trigger("Error",{code:h.FILE_EXTENSION_ERROR,message:h.translate("File extension error."),file:G});continue}if(G.size!==b&&G.size>u.max_file_size){F.trigger("Error",{code:h.FILE_SIZE_ERROR,message:h.translate("File size error."),file:G});continue}w.push(G);K++}if(K){c(function(){D.trigger("QueueChanged");D.refresh()},1)}else{return false}});if(u.unique_names){D.bind("UploadFile",function(F,G){var I=G.name.match(/\.([^.]+)$/),H="tmp";if(I){H=I[1]}G.target_name=G.id+"."+H})}D.bind("UploadProgress",function(F,G){G.percent=G.size>0?Math.ceil(G.loaded/G.size*100):100;p()});D.bind("StateChanged",function(F){if(F.state==h.STARTED){s=(+new Date())}else{if(F.state==h.STOPPED){for(E=F.files.length-1;E>=0;E--){if(F.files[E].status==h.UPLOADING){F.files[E].status=h.QUEUED;p()}}}}});D.bind("QueueChanged",p);D.bind("Error",function(F,G){if(G.file){G.file.status=h.FAILED;p();if(F.state==h.STARTED){c(function(){v.call(D)},1)}}});D.bind("FileUploaded",function(F,G){G.status=h.DONE;G.loaded=G.size;F.trigger("UploadProgress",G);c(function(){v.call(D)},1)});if(u.runtimes){A=[];B=u.runtimes.split(/\s?,\s?/);for(E=0;E<B.length;E++){if(m[B[E]]){A.push(m[B[E]])}}}else{A=m}function y(){var I=A[C++],H,F,G;if(I){H=I.getFeatures();F=D.settings.required_features;if(F){F=F.split(",");for(G=0;G<F.length;G++){if(!H[F[G]]){y();return}}}I.init(D,function(J){if(J&&J.success){D.features=H;D.runtime=I.name;D.trigger("Init",{runtime:I.name});D.trigger("PostInit");D.refresh()}else{y()}})}else{D.trigger("Error",{code:h.INIT_ERROR,message:h.translate("Init error.")})}}y();if(typeof(u.init)=="function"){u.init(D)}else{h.each(u.init,function(G,F){D.bind(F,G)})}},refresh:function(){this.trigger("Refresh")},start:function(){if(this.state!=h.STARTED){this.state=h.STARTED;this.trigger("StateChanged");v.call(this)}},stop:function(){if(this.state!=h.STOPPED){this.state=h.STOPPED;this.trigger("StateChanged")}},getFile:function(z){var y;for(y=w.length-1;y>=0;y--){if(w[y].id===z){return w[y]}}},removeFile:function(z){var y;for(y=w.length-1;y>=0;y--){if(w[y].id===z.id){return this.splice(y,1)[0]}}},splice:function(A,y){var z;z=w.splice(A===b?0:A,y===b?w.length:y);this.trigger("FilesRemoved",z);this.trigger("QueueChanged");return z},trigger:function(z){var B=q[z.toLowerCase()],A,y;if(B){y=Array.prototype.slice.call(arguments);y[0]=this;for(A=0;A<B.length;A++){if(B[A].func.apply(B[A].scope,y)===false){return false}}}return true},hasEventListener:function(y){return !!q[y.toLowerCase()]},bind:function(y,A,z){var B;y=y.toLowerCase();B=q[y]||[];B.push({func:A,scope:z||this});q[y]=B},unbind:function(y){y=y.toLowerCase();var B=q[y],z,A=arguments[1];if(B){if(A!==b){for(z=B.length-1;z>=0;z--){if(B[z].func===A){B.splice(z,1);break}}}else{B=[]}if(!B.length){delete q[y]}}},unbindAll:function(){var y=this;h.each(q,function(A,z){y.unbind(z)})},destroy:function(){this.trigger("Destroy");this.unbindAll()}})};h.File=function(u,q,s){var p=this;p.id=u;p.name=q;p.size=s;p.loaded=0;p.percent=0;p.status=0};h.Runtime=function(){this.getFeatures=function(){};this.init=function(p,q){}};h.QueueProgress=function(){var p=this;p.size=0;p.loaded=0;p.uploaded=0;p.failed=0;p.queued=0;p.percent=0;p.bytesPerSec=0;p.reset=function(){p.size=p.loaded=p.uploaded=p.failed=p.queued=p.percent=p.bytesPerSec=0}};h.runtimes={};window.plupload=h})();(function(j,l,k,f){var c={},h;function n(p,q){var o;if("FileReader" in j){o=new FileReader();o.readAsDataURL(p);o.onload=function(){q(o.result)}}else{return q(p.getAsDataURL())}}function m(p,q){var o;if("FileReader" in j){o=new FileReader();o.readAsBinaryString(p);o.onload=function(){q(o.result)}}else{return q(p.getAsBinary())}}function e(u,q,o,y){var s,p,x,v,w=this;n(c[u.id],function(z){s=l.createElement("canvas");s.style.display="none";l.body.appendChild(s);p=s.getContext("2d");x=new Image();x.onerror=x.onabort=function(){y({success:false})};x.onload=function(){var E,A,C,B,D;if(!q.width){q.width=x.width}if(!q.height){q.height=x.height}v=Math.min(q.width/x.width,q.height/x.height);if(v<1||(v===1&&o==="image/jpeg")){E=Math.round(x.width*v);A=Math.round(x.height*v);s.width=E;s.height=A;p.drawImage(x,0,0,E,A);if(o==="image/jpeg"){B=new g(atob(z.substring(z.indexOf("base64,")+7)));if(B.headers&&B.headers.length){D=new a();if(D.init(B.get("exif")[0])){D.setExif("PixelXDimension",E);D.setExif("PixelYDimension",A);B.set("exif",D.getBinary());if(w.hasEventListener("ExifData")){w.trigger("ExifData",u,D.EXIF())}if(w.hasEventListener("GpsData")){w.trigger("GpsData",u,D.GPS())}}}if(q.quality){try{z=s.toDataURL(o,q.quality/100)}catch(F){z=s.toDataURL(o)}}}else{z=s.toDataURL(o)}z=z.substring(z.indexOf("base64,")+7);z=atob(z);if(B&&B.headers&&B.headers.length){z=B.restore(z);B.purge()}s.parentNode.removeChild(s);y({success:true,data:z})}else{y({success:false})}};x.src=z})}k.runtimes.Html5=k.addRuntime("html5",{getFeatures:function(){var v,p,u,s,q,o;p=u=q=o=false;if(j.XMLHttpRequest){v=new XMLHttpRequest();u=!!v.upload;p=!!(v.sendAsBinary||v.upload)}if(p){s=!!(v.sendAsBinary||(j.Uint8Array&&j.ArrayBuffer));q=!!(File&&(File.prototype.getAsDataURL||j.FileReader)&&s);o=!!(File&&(File.prototype.mozSlice||File.prototype.webkitSlice||File.prototype.slice))}h=k.ua.safari&&k.ua.windows;return{html5:p,dragdrop:(function(){var w=l.createElement("div");return("draggable" in w)||("ondragstart" in w&&"ondrop" in w)}()),jpgresize:q,pngresize:q,multipart:q||!!j.FileReader||!!j.FormData,canSendBinary:s,cantSendBlobInFormData:!!(k.ua.gecko&&j.FormData&&j.FileReader&&!FileReader.prototype.readAsArrayBuffer),progress:u,chunks:o,multi_selection:!(k.ua.safari&&k.ua.windows),triggerDialog:(k.ua.gecko&&j.FormData||k.ua.webkit)}},init:function(q,s){var o;function p(y){var w,v,x=[],z,u={};for(v=0;v<y.length;v++){w=y[v];if(u[w.name]){continue}u[w.name]=true;z=k.guid();c[z]=w;x.push(new k.File(z,w.fileName||w.name,w.fileSize||w.size))}if(x.length){q.trigger("FilesAdded",x)}}o=this.getFeatures();if(!o.html5){s({success:false});return}q.bind("Init",function(z){var I,H,E=[],x,F,v=z.settings.filters,w,D,u=l.body,G;I=l.createElement("div");I.id=z.id+"_html5_container";k.extend(I.style,{position:"absolute",background:q.settings.shim_bgcolor||"transparent",width:"100px",height:"100px",overflow:"hidden",zIndex:99999,opacity:q.settings.shim_bgcolor?"":0});I.className="plupload html5";if(q.settings.container){u=l.getElementById(q.settings.container);if(k.getStyle(u,"position")==="static"){u.style.position="relative"}}u.appendChild(I);no_type_restriction:for(x=0;x<v.length;x++){w=v[x].extensions.split(/,/);for(F=0;F<w.length;F++){if(w[F]==="*"){E=[];break no_type_restriction}D=k.mimeTypes[w[F]];if(D){E.push(D)}}}I.innerHTML='<input id="'+q.id+'_html5"  style="font-size:999px" type="file" accept="'+E.join(",")+'" '+(q.settings.multi_selection&&q.features.multi_selection?'multiple="multiple"':"")+" />";I.scrollTop=100;G=l.getElementById(q.id+"_html5");if(z.features.triggerDialog){k.extend(G.style,{position:"absolute",width:"100%",height:"100%"})}else{k.extend(G.style,{cssFloat:"right",styleFloat:"right"})}G.onchange=function(){p(this.files);this.value=""};H=l.getElementById(z.settings.browse_button);if(H){var B=z.settings.browse_button_hover,C=z.settings.browse_button_active,A=z.features.triggerDialog?H:I;if(B){k.addEvent(A,"mouseover",function(){k.addClass(H,B)},z.id);k.addEvent(A,"mouseout",function(){k.removeClass(H,B)},z.id)}if(C){k.addEvent(A,"mousedown",function(){k.addClass(H,C)},z.id);k.addEvent(l.body,"mouseup",function(){k.removeClass(H,C)},z.id)}if(z.features.triggerDialog){k.addEvent(H,"click",function(y){l.getElementById(z.id+"_html5").click();y.preventDefault()},z.id)}}});q.bind("PostInit",function(){var u=l.getElementById(q.settings.drop_element);if(u){if(h){k.addEvent(u,"dragenter",function(y){var x,v,w;x=l.getElementById(q.id+"_drop");if(!x){x=l.createElement("input");x.setAttribute("type","file");x.setAttribute("id",q.id+"_drop");x.setAttribute("multiple","multiple");k.addEvent(x,"change",function(){p(this.files);k.removeEvent(x,"change",q.id);x.parentNode.removeChild(x)},q.id);u.appendChild(x)}v=k.getPos(u,l.getElementById(q.settings.container));w=k.getSize(u);if(k.getStyle(u,"position")==="static"){k.extend(u.style,{position:"relative"})}k.extend(x.style,{position:"absolute",display:"block",top:0,left:0,width:w.w+"px",height:w.h+"px",opacity:0})},q.id);return}k.addEvent(u,"dragover",function(v){v.preventDefault()},q.id);k.addEvent(u,"drop",function(w){var v=w.dataTransfer;if(v&&v.files){p(v.files)}w.preventDefault()},q.id)}});q.bind("Refresh",function(u){var v,w,x,z,y;v=l.getElementById(q.settings.browse_button);if(v){w=k.getPos(v,l.getElementById(u.settings.container));x=k.getSize(v);z=l.getElementById(q.id+"_html5_container");k.extend(z.style,{top:w.y+"px",left:w.x+"px",width:x.w+"px",height:x.h+"px"});if(q.features.triggerDialog){if(k.getStyle(v,"position")==="static"){k.extend(v.style,{position:"relative"})}y=parseInt(k.getStyle(v,"z-index"),10);if(isNaN(y)){y=0}k.extend(v.style,{zIndex:y});k.extend(z.style,{zIndex:y-1})}}});q.bind("UploadFile",function(u,w){var x=u.settings,A,v;function z(C,F,B){var D;if(File.prototype.slice){try{C.slice();return C.slice(F,B)}catch(E){return C.slice(F,B-F)}}else{if(D=File.prototype.webkitSlice||File.prototype.mozSlice){return D.call(C,F,B)}else{return null}}}function y(C){var F=0,E=0,B=("FileReader" in j)?new FileReader:null;function D(){var K,O,M,N,J,L,H,G=u.settings.url;function I(Y){var V=0,W=new XMLHttpRequest,Z=W.upload,P="----pluploadboundary"+k.guid(),Q,R="--",X="\r\n",T="";if(Z){Z.onprogress=function(aa){w.loaded=Math.min(w.size,E+aa.loaded-V);u.trigger("UploadProgress",w)}}W.onreadystatechange=function(){var aa,ad;if(W.readyState==4){try{aa=W.status}catch(ab){aa=0}if(aa>=400){u.trigger("Error",{code:k.HTTP_ERROR,message:k.translate("HTTP Error."),file:w,status:aa})}else{if(M){ad={chunk:F,chunks:M,response:W.responseText,status:aa};u.trigger("ChunkUploaded",w,ad);E+=L;if(ad.cancelled){w.status=k.FAILED;return}w.loaded=Math.min(w.size,(F+1)*J)}else{w.loaded=w.size}u.trigger("UploadProgress",w);Y=K=Q=T=null;if(!M||++F>=M){w.status=k.DONE;u.trigger("FileUploaded",w,{response:W.responseText,status:aa})}else{D()}}W=null}};if(u.settings.multipart&&o.multipart){N.name=w.target_name||w.name;W.open("post",G,true);k.each(u.settings.headers,function(ab,aa){W.setRequestHeader(aa,ab)});if(typeof(Y)!=="string"&&!!j.FormData){Q=new FormData();k.each(k.extend(N,u.settings.multipart_params),function(ab,aa){Q.append(aa,ab)});Q.append(u.settings.file_data_name,Y);W.send(Q);return}if(typeof(Y)==="string"){W.setRequestHeader("Content-Type","multipart/form-data; boundary="+P);k.each(k.extend(N,u.settings.multipart_params),function(ab,aa){T+=R+P+X+'Content-Disposition: form-data; name="'+aa+'"'+X+X;T+=unescape(encodeURIComponent(ab))+X});H=k.mimeTypes[w.name.replace(/^.+\.([^.]+)/,"$1").toLowerCase()]||"application/octet-stream";T+=R+P+X+'Content-Disposition: form-data; name="'+u.settings.file_data_name+'"; filename="'+unescape(encodeURIComponent(w.name))+'"'+X+"Content-Type: "+H+X+X+Y+X+R+P+R+X;V=T.length-Y.length;Y=T;if(W.sendAsBinary){W.sendAsBinary(Y)}else{if(o.canSendBinary){var U=new Uint8Array(Y.length);for(var S=0;S<Y.length;S++){U[S]=(Y.charCodeAt(S)&255)}W.send(U.buffer)}}return}}G=k.buildUrl(u.settings.url,k.extend(N,u.settings.multipart_params));W.open("post",G,true);W.setRequestHeader("Content-Type","application/octet-stream");k.each(u.settings.headers,function(ab,aa){W.setRequestHeader(aa,ab)});W.send(Y)}if(w.status==k.DONE||w.status==k.FAILED||u.state==k.STOPPED){return}N={name:w.target_name||w.name};if(x.chunk_size&&w.size>x.chunk_size&&(o.chunks||typeof(C)=="string")){J=x.chunk_size;M=Math.ceil(w.size/J);L=Math.min(J,w.size-(F*J));if(typeof(C)=="string"){K=C.substring(F*J,F*J+L)}else{K=z(C,F*J,F*J+L)}N.chunk=F;N.chunks=M}else{L=w.size;K=C}if(typeof(K)!=="string"&&B&&o.cantSendBlobInFormData&&o.chunks&&u.settings.chunk_size){B.onload=function(){I(B.result)};B.readAsBinaryString(K)}else{I(K)}}D()}A=c[w.id];if(o.jpgresize&&u.settings.resize&&/\.(png|jpg|jpeg)$/i.test(w.name)){e.call(u,w,u.settings.resize,/\.png$/i.test(w.name)?"image/png":"image/jpeg",function(B){if(B.success){w.size=B.data.length;y(B.data)}else{y(A)}})}else{if(!o.chunks&&o.jpgresize){m(A,y)}else{y(A)}}});q.bind("Destroy",function(u){var w,x,v=l.body,y={inputContainer:u.id+"_html5_container",inputFile:u.id+"_html5",browseButton:u.settings.browse_button,dropElm:u.settings.drop_element};for(w in y){x=l.getElementById(y[w]);if(x){k.removeAllEvents(x,u.id)}}k.removeAllEvents(l.body,u.id);if(u.settings.container){v=l.getElementById(u.settings.container)}v.removeChild(l.getElementById(y.inputContainer))});s({success:true})}});function b(){var s=false,p;function u(w,y){var v=s?0:-8*(y-1),z=0,x;for(x=0;x<y;x++){z|=(p.charCodeAt(w+x)<<Math.abs(v+x*8))}return z}function o(x,v,w){var w=arguments.length===3?w:p.length-v-1;p=p.substr(0,v)+x+p.substr(w+v)}function q(w,x,z){var A="",v=s?0:-8*(z-1),y;for(y=0;y<z;y++){A+=String.fromCharCode((x>>Math.abs(v+y*8))&255)}o(A,w,z)}return{II:function(v){if(v===f){return s}else{s=v}},init:function(v){s=false;p=v},SEGMENT:function(v,x,w){switch(arguments.length){case 1:return p.substr(v,p.length-v-1);case 2:return p.substr(v,x);case 3:o(w,v,x);break;default:return p}},BYTE:function(v){return u(v,1)},SHORT:function(v){return u(v,2)},LONG:function(v,w){if(w===f){return u(v,4)}else{q(v,w,4)}},SLONG:function(v){var w=u(v,4);return(w>2147483647?w-4294967296:w)},STRING:function(v,w){var x="";for(w+=v;v<w;v++){x+=String.fromCharCode(u(v,1))}return x}}}function g(v){var x={65505:{app:"EXIF",name:"APP1",signature:"Exif\0"},65506:{app:"ICC",name:"APP2",signature:"ICC_PROFILE\0"},65517:{app:"IPTC",name:"APP13",signature:"Photoshop 3.0\0"}},w=[],u,o,q=f,s=0,p;u=new b();u.init(v);if(u.SHORT(0)!==65496){return}o=2;p=Math.min(1048576,v.length);while(o<=p){q=u.SHORT(o);if(q>=65488&&q<=65495){o+=2;continue}if(q===65498||q===65497){break}s=u.SHORT(o+2)+2;if(x[q]&&u.STRING(o+4,x[q].signature.length)===x[q].signature){w.push({hex:q,app:x[q].app.toUpperCase(),name:x[q].name.toUpperCase(),start:o,length:s,segment:u.SEGMENT(o,s)})}o+=s}u.init(null);return{headers:w,restore:function(B){u.init(B);var z=new g(B);if(!z.headers){return false}for(var A=z.headers.length;A>0;A--){var C=z.headers[A-1];u.SEGMENT(C.start,C.length,"")}z.purge();o=u.SHORT(2)==65504?4+u.SHORT(4):2;for(var A=0,y=w.length;A<y;A++){u.SEGMENT(o,0,w[A].segment);o+=w[A].length}return u.SEGMENT()},get:function(A){var B=[];for(var z=0,y=w.length;z<y;z++){if(w[z].app===A.toUpperCase()){B.push(w[z].segment)}}return B},set:function(B,A){var C=[];if(typeof(A)==="string"){C.push(A)}else{C=A}for(var z=ii=0,y=w.length;z<y;z++){if(w[z].app===B.toUpperCase()){w[z].segment=C[ii];w[z].length=C[ii].length;ii++}if(ii>=C.length){break}}},purge:function(){w=[];u.init(null)}}}function a(){var s,o,p={},w;s=new b();o={tiff:{274:"Orientation",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer"},exif:{36864:"ExifVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",36867:"DateTimeOriginal",33434:"ExposureTime",33437:"FNumber",34855:"ISOSpeedRatings",37377:"ShutterSpeedValue",37378:"ApertureValue",37383:"MeteringMode",37384:"LightSource",37385:"Flash",41986:"ExposureMode",41987:"WhiteBalance",41990:"SceneCaptureType",41988:"DigitalZoomRatio",41992:"Contrast",41993:"Saturation",41994:"Sharpness"},gps:{0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude"}};w={ColorSpace:{1:"sRGB",0:"Uncalibrated"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{1:"Daylight",2:"Fliorescent",3:"Tungsten",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 -5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire.",1:"Flash fired.",5:"Strobe return light not detected.",7:"Strobe return light detected.",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},ExposureMode:{0:"Auto exposure",1:"Manual exposure",2:"Auto bracket"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},GPSLatitudeRef:{N:"North latitude",S:"South latitude"},GPSLongitudeRef:{E:"East longitude",W:"West longitude"}};function q(x,F){var z=s.SHORT(x),C,I,J,E,D,y,A,G,H=[],B={};for(C=0;C<z;C++){A=y=x+12*C+2;J=F[s.SHORT(A)];if(J===f){continue}E=s.SHORT(A+=2);D=s.LONG(A+=2);A+=4;H=[];switch(E){case 1:case 7:if(D>4){A=s.LONG(A)+p.tiffHeader}for(I=0;I<D;I++){H[I]=s.BYTE(A+I)}break;case 2:if(D>4){A=s.LONG(A)+p.tiffHeader}B[J]=s.STRING(A,D-1);continue;case 3:if(D>2){A=s.LONG(A)+p.tiffHeader}for(I=0;I<D;I++){H[I]=s.SHORT(A+I*2)}break;case 4:if(D>1){A=s.LONG(A)+p.tiffHeader}for(I=0;I<D;I++){H[I]=s.LONG(A+I*4)}break;case 5:A=s.LONG(A)+p.tiffHeader;for(I=0;I<D;I++){H[I]=s.LONG(A+I*4)/s.LONG(A+I*4+4)}break;case 9:A=s.LONG(A)+p.tiffHeader;for(I=0;I<D;I++){H[I]=s.SLONG(A+I*4)}break;case 10:A=s.LONG(A)+p.tiffHeader;for(I=0;I<D;I++){H[I]=s.SLONG(A+I*4)/s.SLONG(A+I*4+4)}break;default:continue}G=(D==1?H[0]:H);if(w.hasOwnProperty(J)&&typeof G!="object"){B[J]=w[J][G]}else{B[J]=G}}return B}function v(){var y=f,x=p.tiffHeader;s.II(s.SHORT(x)==18761);if(s.SHORT(x+=2)!==42){return false}p.IFD0=p.tiffHeader+s.LONG(x+=2);y=q(p.IFD0,o.tiff);p.exifIFD=("ExifIFDPointer" in y?p.tiffHeader+y.ExifIFDPointer:f);p.gpsIFD=("GPSInfoIFDPointer" in y?p.tiffHeader+y.GPSInfoIFDPointer:f);return true}function u(z,x,C){var E,B,A,D=0;if(typeof(x)==="string"){var y=o[z.toLowerCase()];for(hex in y){if(y[hex]===x){x=hex;break}}}E=p[z.toLowerCase()+"IFD"];B=s.SHORT(E);for(i=0;i<B;i++){A=E+12*i+2;if(s.SHORT(A)==x){D=A+8;break}}if(!D){return false}s.LONG(D,C);return true}return{init:function(x){p={tiffHeader:10};if(x===f||!x.length){return false}s.init(x);if(s.SHORT(0)===65505&&s.STRING(4,5).toUpperCase()==="EXIF\0"){return v()}return false},EXIF:function(){var x;x=q(p.exifIFD,o.exif);if(x.ExifVersion){x.ExifVersion=String.fromCharCode(x.ExifVersion[0],x.ExifVersion[1],x.ExifVersion[2],x.ExifVersion[3])}return x},GPS:function(){var x;x=q(p.gpsIFD,o.gps);if(x.GPSVersionID){x.GPSVersionID=x.GPSVersionID.join(".")}return x},setExif:function(x,y){if(x!=="PixelXDimension"&&x!=="PixelYDimension"){return false}return u("exif",x,y)},getBinary:function(){return s.SEGMENT()}}}})(window,document,plupload);(function(e,a,b,c){function f(g){return a.getElementById(g)}b.runtimes.Html4=b.addRuntime("html4",{getFeatures:function(){return{multipart:true,triggerDialog:(b.ua.gecko&&e.FormData||b.ua.webkit)}},init:function(g,h){g.bind("Init",function(q){var k=a.body,o,j="javascript",l,B,s,C=[],u=/MSIE/.test(navigator.userAgent),w=[],n=q.settings.filters,p,m,v,A;no_type_restriction:for(p=0;p<n.length;p++){m=n[p].extensions.split(/,/);for(A=0;A<m.length;A++){if(m[A]==="*"){w=[];break no_type_restriction}v=b.mimeTypes[m[A]];if(v){w.push(v)}}}w=w.join(",");function z(){var F,D,y,E;s=b.guid();C.push(s);F=a.createElement("form");F.setAttribute("id","form_"+s);F.setAttribute("method","post");F.setAttribute("enctype","multipart/form-data");F.setAttribute("encoding","multipart/form-data");F.setAttribute("target",q.id+"_iframe");F.style.position="absolute";D=a.createElement("input");D.setAttribute("id","input_"+s);D.setAttribute("type","file");D.setAttribute("accept",w);D.setAttribute("size",1);E=f(q.settings.browse_button);if(q.features.triggerDialog&&E){b.addEvent(f(q.settings.browse_button),"click",function(G){D.click();G.preventDefault()},q.id)}b.extend(D.style,{width:"100%",height:"100%",opacity:0,fontSize:"999px"});b.extend(F.style,{overflow:"hidden"});y=q.settings.shim_bgcolor;if(y){F.style.background=y}if(u){b.extend(D.style,{filter:"alpha(opacity=0)"})}b.addEvent(D,"change",function(J){var H=J.target,G,I=[],K;if(H.value){f("form_"+s).style.top=-1048575+"px";G=H.value.replace(/\\/g,"/");G=G.substring(G.length,G.lastIndexOf("/")+1);I.push(new b.File(s,G));if(!q.features.triggerDialog){b.removeAllEvents(F,q.id)}else{b.removeEvent(E,"click",q.id)}b.removeEvent(D,"change",q.id);z();if(I.length){g.trigger("FilesAdded",I)}}},q.id);F.appendChild(D);k.appendChild(F);q.refresh()}function x(){var y=a.createElement("div");y.innerHTML='<iframe id="'+q.id+'_iframe" name="'+q.id+'_iframe" src="'+j+':&quot;&quot;" style="display:none"></iframe>';o=y.firstChild;k.appendChild(o);b.addEvent(o,"load",function(G){var H=G.target,F,D;if(!l){return}try{F=H.contentWindow.document||H.contentDocument||e.frames[H.id].document}catch(E){q.trigger("Error",{code:b.SECURITY_ERROR,message:b.translate("Security error."),file:l});return}D=F.body.innerHTML;if(D){l.status=b.DONE;l.loaded=1025;l.percent=100;q.trigger("UploadProgress",l);q.trigger("FileUploaded",l,{response:D})}},q.id)}if(q.settings.container){k=f(q.settings.container);if(b.getStyle(k,"position")==="static"){k.style.position="relative"}}q.bind("UploadFile",function(y,E){var F,D;if(E.status==b.DONE||E.status==b.FAILED||y.state==b.STOPPED){return}F=f("form_"+E.id);D=f("input_"+E.id);D.setAttribute("name",y.settings.file_data_name);F.setAttribute("action",y.settings.url);b.each(b.extend({name:E.target_name||E.name},y.settings.multipart_params),function(I,G){var H=a.createElement("input");b.extend(H,{type:"hidden",name:G,value:I});F.insertBefore(H,F.firstChild)});l=E;f("form_"+s).style.top=-1048575+"px";F.submit();F.parentNode.removeChild(F)});q.bind("FileUploaded",function(y){y.refresh()});q.bind("StateChanged",function(y){if(y.state==b.STARTED){x()}if(y.state==b.STOPPED){e.setTimeout(function(){b.removeEvent(o,"load",y.id);if(o.parentNode){o.parentNode.removeChild(o)}},0)}});q.bind("Refresh",function(D){var J,E,F,G,y,K,L,I,H;J=f(D.settings.browse_button);if(J){y=b.getPos(J,f(D.settings.container));K=b.getSize(J);L=f("form_"+s);I=f("input_"+s);b.extend(L.style,{top:y.y+"px",left:y.x+"px",width:K.w+"px",height:K.h+"px"});if(D.features.triggerDialog){if(b.getStyle(J,"position")==="static"){b.extend(J.style,{position:"relative"})}H=parseInt(J.style.zIndex,10);if(isNaN(H)){H=0}b.extend(J.style,{zIndex:H});b.extend(L.style,{zIndex:H-1})}F=D.settings.browse_button_hover;G=D.settings.browse_button_active;E=D.features.triggerDialog?J:L;if(F){b.addEvent(E,"mouseover",function(){b.addClass(J,F)},D.id);b.addEvent(E,"mouseout",function(){b.removeClass(J,F)},D.id)}if(G){b.addEvent(E,"mousedown",function(){b.addClass(J,G)},D.id);b.addEvent(a.body,"mouseup",function(){b.removeClass(J,G)},D.id)}}});g.bind("FilesRemoved",function(y,E){var D,F;for(D=0;D<E.length;D++){F=f("form_"+E[D].id);if(F){F.parentNode.removeChild(F)}}});g.bind("Destroy",function(y){var D,E,F,G={inputContainer:"form_"+s,inputFile:"input_"+s,browseButton:y.settings.browse_button};for(D in G){E=f(G[D]);if(E){b.removeAllEvents(E,y.id)}}b.removeAllEvents(a.body,y.id);b.each(C,function(I,H){F=f("form_"+I);if(F){k.removeChild(F)}})});z()});h({success:true})}})})(window,document,plupload);(function(c){var e={};function a(f){return plupload.translate(f)||f}function b(g,f){f.contents().each(function(h,j){j=c(j);if(!j.is(".plupload")){j.remove()}});f.prepend('<div class="Abcum-list-header"><a href="#" class="button plupload_add"><span><div class="data-image-button-add"></div>Add a new file</span></a><a href="#" class="button plupload_start"><span><div class="data-image-button-save"></div>Upload</span></a></div><div class="plupload_wrapper plupload_scroll"><div id="'+g+'_container" class="plupload_container"><div class="plupload"><div class="plupload_header"><div class="plupload_header_content"><div class="plupload_header_title">'+a("Select files")+'</div><div class="plupload_header_text">'+a("Add files to the upload queue and click the start button.")+'</div></div></div><div class="plupload_content"><div class="plupload_filelist_header"><div class="plupload_file_name">'+a("Filename")+'</div><div class="plupload_file_action">&nbsp;</div><div class="plupload_file_status"><span>'+a("Status")+'</span></div><div class="plupload_file_size">'+a("Size")+'</div><div class="plupload_clearer">&nbsp;</div></div><ul id="'+g+'_filelist" class="plupload_filelist"></ul><div class="plupload_filelist_footer"><div class="plupload_file_name"><div class="plupload_buttons"></div><span class="plupload_upload_status"></span></div><div class="plupload_file_action"></div><div class="plupload_file_status"><span class="plupload_total_status">0%</span></div><div class="plupload_file_size"><span class="plupload_total_file_size">0 b</span></div><div class="plupload_progress"><div class="plupload_progress_container"><div class="plupload_progress_bar"></div></div></div><div class="plupload_clearer">&nbsp;</div></div></div></div></div><input type="hidden" id="'+g+'_count" name="'+g+'_count" value="0" /></div>')}c.fn.pluploadQueue=function(f){if(f){this.each(function(){var l,k,m;k=c(this);m=k.attr("id");if(!m){m=plupload.guid();k.attr("id",m)}l=new plupload.Uploader(c.extend({dragdrop:true,container:m},f));e[m]=l;function j(n){var p;if(n.status==plupload.DONE){p="plupload_done"}if(n.status==plupload.FAILED){p="plupload_failed"}if(n.status==plupload.QUEUED){p="plupload_delete"}if(n.status==plupload.UPLOADING){p="plupload_uploading"}var o=c("#"+n.id).attr("class",p).find("a").css("display","block");if(n.hint){o.attr("title",n.hint)}}function g(){c("span.plupload_total_status",k).html(l.total.percent+"%");c("div.plupload_progress_bar",k).css("width",l.total.percent+"%");c("span.plupload_upload_status",k).text(a("Uploaded %d/%d files").replace(/%d\/%d/,l.total.uploaded+"/"+l.files.length))}function h(){var o=c("ul.plupload_filelist",k).html(""),p=0,n;c.each(l.files,function(s,q){n="";if(q.status==plupload.DONE){if(q.target_name){n+='<input type="hidden" name="'+m+"_"+p+'_tmpname" value="'+plupload.xmlEncode(q.target_name)+'" />'}n+='<input type="hidden" name="'+m+"_"+p+'_name" value="'+plupload.xmlEncode(q.name)+'" />';n+='<input type="hidden" name="'+m+"_"+p+'_status" value="'+(q.status==plupload.DONE?"done":"failed")+'" />';p++;c("#"+m+"_count").val(p)}o.append('<li id="'+q.id+'"><div class="plupload_file_name"><span>'+q.name+'</span></div><div class="plupload_file_action"><a href="#"></a></div><div class="plupload_file_status">'+q.percent+'%</div><div class="plupload_file_size">'+plupload.formatSize(q.size)+'</div><div class="plupload_clearer">&nbsp;</div>'+n+"</li>");j(q);c("#"+q.id+".plupload_delete a").click(function(u){c("#"+q.id).remove();l.removeFile(q);u.preventDefault()})});c("span.plupload_total_file_size",k).html(plupload.formatSize(l.total.size));if(l.total.queued===0){c("span.plupload_add_text",k).text(a("Add files."))}else{c("span.plupload_add_text",k).text(l.total.queued+" files queued.")}c("a.plupload_start",k).toggleClass("plupload_disabled",l.files.length==(l.total.uploaded+l.total.failed));o[0].scrollTop=o[0].scrollHeight;g();if(!l.files.length&&l.features.dragdrop&&l.settings.dragdrop){c("#"+m+"_filelist").append('<li class="plupload_droptext">'+a("Drag files here.")+"</li>")}}l.bind("UploadFile",function(n,o){c("#"+o.id).addClass("plupload_current_file")});l.bind("Init",function(n,o){b(m,k);if(!f.unique_names&&f.rename){c("#"+m+"_filelist div.plupload_file_name span",k).live("click",function(w){var u=c(w.target),q,v,p,s="";q=n.getFile(u.parents("li")[0].id);p=q.name;v=/^(.+)(\.[^.]+)$/.exec(p);if(v){p=v[1];s=v[2]}u.hide().after('<input type="text" />');u.next().val(p).focus().blur(function(){u.show().next().remove()}).keydown(function(y){var x=c(this);if(y.keyCode==13){y.preventDefault();q.name=x.val()+s;u.text(q.name);x.blur()}})})}c("a.plupload_add",k).attr("id",m+"_browse");n.settings.browse_button=m+"_browse";if(n.features.dragdrop&&n.settings.dragdrop){n.settings.drop_element=m+"_filelist";c("#"+m+"_filelist").append('<li class="plupload_droptext">'+a("Drag files here.")+"</li>")}c("#"+m+"_container").attr("title","Using runtime: "+o.runtime);c("a.plupload_start",k).click(function(p){if(!c(this).hasClass("plupload_disabled")){l.start()}p.preventDefault()});c("a.plupload_stop",k).click(function(p){p.preventDefault();l.stop()});c("a.plupload_start",k).addClass("plupload_disabled")});l.init();l.bind("Error",function(n,q){var o=q.file,p;if(o){p=q.message;if(q.details){p+=" ("+q.details+")"}if(q.code==plupload.FILE_SIZE_ERROR){alert(a("Error: File too large: ")+o.name)}if(q.code==plupload.FILE_EXTENSION_ERROR){alert(a("Error: Invalid file extension: ")+o.name)}o.hint=p;c("#"+o.id).attr("class","plupload_failed").find("a").css("display","block").attr("title",p)}});l.bind("StateChanged",function(){if(l.state===plupload.STARTED){c("li.plupload_delete a,div.plupload_buttons",k).hide();c("span.plupload_upload_status,div.plupload_progress,a.plupload_stop",k).css("display","block");c("span.plupload_upload_status",k).text("Uploaded "+l.total.uploaded+"/"+l.files.length+" files");if(f.multiple_queues){c("span.plupload_total_status,span.plupload_total_file_size",k).show()}}else{h();c("a.plupload_stop,div.plupload_progress",k).hide();c("a.plupload_delete",k).css("display","block")}});l.bind("QueueChanged",h);l.bind("FileUploaded",function(n,o){j(o)});l.bind("UploadProgress",function(n,o){c("#"+o.id+" div.plupload_file_status",k).html(o.percent+"%");j(o);g();if(f.multiple_queues&&l.total.uploaded+l.total.failed==l.files.length){c(".plupload_buttons,.plupload_upload_status",k).css("display","inline");c(".plupload_start",k).addClass("plupload_disabled");c("span.plupload_total_status,span.plupload_total_file_size",k).hide()}});if(f.setup){f.setup(l)}});return this}else{return e[c(this[0]).attr("id")]}}})(jQuery);(function(){var T=document,aR=window,ag=Math,B=ag.round,aa=ag.floor,bt=ag.ceil,a5=ag.max,ap=ag.min,bq=ag.abs,ba=ag.cos,N=ag.sin,s=ag.PI,bs=s*2/360,g=navigator.userAgent,bi=/msie/i.test(g)&&!aR.opera,bd=T.documentMode===8,aN=/AppleWebKit/.test(g),h=/Firefox/.test(g),aq="http://www.w3.org/2000/svg",c=!!T.createElementNS&&!!T.createElementNS(aq,"svg").createSVGRect,a0=h&&parseInt(g.split("Firefox/")[1],10)<4,aU,bf=T.documentElement.ontouchstart!==undefined,aF={},Z=0,W=1,O,aY,aP,q,n,aO,aC="div",bh="absolute",p="relative",aH="hidden",H="highcharts-",aA="visible",ay="px",aw="none",aI="M",aJ="L",aT="rgba(192,192,192,"+(c?0.000001:0.002)+")",ai="",ab="hover",C="select",bc,U,a6,ax,bl,a7,az,aV,R,a9,S,G,e=aR.HighchartsAdapter,K=e||{},br=K.each,u=K.grep,z=K.map,E=K.merge,ao=K.addEvent,ar=K.removeEvent,a3=K.fireEvent,au=K.animate,a8=K.stop,bm={};function aK(M,L){var bv;if(!M){M={}}for(bv in L){M[bv]=L[bv]}return M}function v(L,M){return parseInt(L,M||10)}function bg(L){return typeof L==="string"}function Q(L){return typeof L==="object"}function f(L){return Object.prototype.toString.call(L)==="[object Array]"}function af(L){return typeof L==="number"}function be(L){return ag.log(L)/ag.LN10}function aX(L){return ag.pow(10,L)}function a2(L,bv){var M=L.length;while(M--){if(L[M]===bv){L.splice(M,1);break}}}function m(L){return L!==aO&&L!==null}function an(bv,by,bx){var M,bw="setAttribute",L;if(bg(by)){if(m(bx)){bv[bw](by,bx)}else{if(bv&&bv.getAttribute){L=bv.getAttribute(by)}}}else{if(m(by)&&Q(by)){for(M in by){bv[bw](M,by[M])}}}return L}function at(L){return f(L)?L:[L]}function b(){var M=arguments,bv,L,bw=M.length;for(bv=0;bv<bw;bv++){L=M[bv];if(typeof L!=="undefined"&&L!==null){return L}}}function aL(L,M){if(bi){if(M&&M.opacity!==aO){M.filter="alpha(opacity="+(M.opacity*100)+")"}}aK(L.style,M)}function aG(L,by,bx,bw,bv){var M=T.createElement(L);if(by){aK(M,by)}if(bv){aL(M,{padding:0,border:aw,margin:0})}if(bx){aL(M,bx)}if(bw){bw.appendChild(M)}return M}function a4(bv,L){var M=function(){};M.prototype=new bv();aK(M.prototype,L);return M}function l(bw,bv,bC,bB){var L=aY.lang,M=bw,bA=isNaN(bv=bq(bv))?2:bv,bz=bC===undefined?L.decimalPoint:bC,bD=bB===undefined?L.thousandsSep:bB,bE=M<0?"-":"",by=String(v(M=bq(+M||0).toFixed(bA))),bx=by.length>3?by.length%3:0;return bE+(bx?by.substr(0,bx)+bD:"")+by.substr(bx).replace(/(\d{3})(?=\d)/g,"$1"+bD)+(bA?bz+bq(M-by).toFixed(bA).slice(2):"")}aP=function(bD,bz,bx){function M(bH){return bH.toString().replace(/^([0-9])$/,"0$1")}if(!m(bz)||isNaN(bz)){return"Invalid date"}bD=b(bD,"%Y-%m-%d %H:%M:%S");var bv=new Date(bz*W),bF,bC=bv[a6](),bA=bv[ax](),bE=bv[bl](),by=bv[a7](),bG=bv[az](),L=aY.lang,bB=L.weekdays,bw={a:bB[bA].substr(0,3),A:bB[bA],d:M(bE),e:bE,b:L.shortMonths[by],B:L.months[by],m:M(by+1),y:bG.toString().substr(2,2),Y:bG,H:M(bC),I:M((bC%12)||12),l:(bC%12)||12,M:M(bv[U]()),p:bC<12?"AM":"PM",P:bC<12?"am":"pm",S:M(bv.getSeconds())};for(bF in bw){bD=bD.replace("%"+bF,bw[bF])}return bx?bD.substr(0,1).toUpperCase()+bD.substr(1):bD};function y(L){var M={left:L.offsetLeft,top:L.offsetTop};L=L.offsetParent;while(L){M.left+=L.offsetLeft;M.top+=L.offsetTop;if(L!==T.body&&L!==T.documentElement){M.left-=L.scrollLeft;M.top-=L.scrollTop}L=L.offsetParent}return M}function I(){this.color=0;this.symbol=0}I.prototype={wrapColor:function(L){if(this.color>=L){this.color=0}},wrapSymbol:function(L){if(this.symbol>=L){this.symbol=0}}};function ah(M,by,bv,bw,bE,bC,bB){var L=bB.x,bD=bB.y,bA=L-M+bv-25,bz=bD-by+bw+10,bx;if(bA<7){bA=bv+L+15}if((bA+M)>(bv+bE)){bA-=(bA+M)-(bv+bE);bz-=by;bx=true}if(bz<5){bz=5;if(bx&&bD>=bz&&bD<=(bz+by)){bz=bD+by-5}}else{if(bz+by>bw+bC){bz=bw+bC-by-5}}return{x:bA,y:bz}}function V(M,L){var bw=M.length,bv;for(bv=0;bv<bw;bv++){M[bv].ss_i=bv}M.sort(function(bz,bx){var by=L(bz,bx);return by===0?bz.ss_i-bx.ss_i:by});for(bv=0;bv<bw;bv++){delete M[bv].ss_i}}function bp(L){var M;for(M in L){if(L[M]&&L[M].destroy){L[M].destroy()}delete L[M]}}n={init:function(bx,bC,bD){bC=bC||"";var M=bx.shift,bv=bC.indexOf("C")>-1,bw=bv?7:3,bA,bE,bz,L=bC.split(" "),by=[].concat(bD),bG,bB,bF=function(bH){bz=bH.length;while(bz--){if(bH[bz]===aI){bH.splice(bz+1,0,bH[bz+1],bH[bz+2],bH[bz+1],bH[bz+2])}}};if(bv){bF(L);bF(by)}if(bx.isArea){bG=L.splice(L.length-6,6);bB=by.splice(by.length-6,6)}if(M){by=[].concat(by).splice(0,bw).concat(by);bx.shift=false}if(L.length){bA=by.length;while(L.length<bA){bE=[].concat(L).splice(L.length-bw,bw);if(bv){bE[bw-6]=bE[bw-2];bE[bw-5]=bE[bw-1]}L=L.concat(bE)}}if(bG){L=L.concat(bG);by=by.concat(bB)}return[L,by]},step:function(bz,M,by,L){var bw=[],bx=bz.length,bv;if(by===1){bw=L}else{if(bx===M.length&&by<1){while(bx--){bv=parseFloat(bz[bx]);bw[bx]=isNaN(bv)?bz[bx]:by*(parseFloat(M[bx]-bv))+bv}}else{bw=M}}return bw}};function aM(M,L){q=b(M,L.animation)}if(e&&e.init){e.init(n)}if(!e&&aR.jQuery){var Y=jQuery;br=function(M,bw){var bv=0,L=M.length;for(;bv<L;bv++){if(bw.call(M[bv],M[bv],bv,M)===false){return bv}}};u=Y.grep;z=function(M,bx){var bw=[],bv=0,L=M.length;for(;bv<L;bv++){bw[bv]=bx.call(M[bv],M[bv],bv,M)}return bw};E=function(){var L=arguments;return Y.extend(true,null,L[0],L[1],L[2],L[3])};ao=function(M,bv,L){Y(M).bind(bv,L)};ar=function(bv,L,M){var bw=T.removeEventListener?"removeEventListener":"detachEvent";if(T[bw]&&!bv[bw]){bv[bw]=function(){}}Y(bv).unbind(L,M)};a3=function(bw,bv,M,L){var by=Y.Event(bv),bx="detached"+bv;aK(by,M);if(bw[bv]){bw[bx]=bw[bv];bw[bv]=null}Y(bw).trigger(by);if(bw[bx]){bw[bv]=bw[bx];bw[bx]=null}if(L&&!by.isDefaultPrevented()){L(by)}};au=function(bv,bw,L){var M=Y(bv);if(bw.d){bv.toD=bw.d;bw.d=1}M.stop();M.animate(bw,L)};a8=function(L){Y(L).stop()};Y.extend(Y.easing,{easeOutQuad:function(M,bv,L,bx,bw){return -bx*(bv/=bw)*(bv-2)+L}});var aW=jQuery.fx,aD=aW.step;br(["cur","_default","width","height"],function(M,L){var bx=L?aD:aW.prototype,bw=bx[M],bv;if(bw){bx[M]=function(by){by=L?by:this;bv=by.elem;return bv.attr?bv.attr(by.prop,by.now):bw.apply(this,arguments)}}});aD.d=function(bv){var M=bv.elem;if(!bv.started){var L=n.init(M,M.d,M.toD);bv.start=L[0];bv.end=L[1];bv.started=true}M.attr("d",n.step(bv.start,bv.end,bv.pos,M.toD))}}function aS(){var L=aY.global.useUTC;bc=L?Date.UTC:function(bx,by,bv,M,bw,bz){return new Date(bx,by,b(bv,1),b(M,0),b(bw,0),b(bz,0)).getTime()};U=L?"getUTCMinutes":"getMinutes";a6=L?"getUTCHours":"getHours";ax=L?"getUTCDay":"getDay";bl=L?"getUTCDate":"getDate";a7=L?"getUTCMonth":"getMonth";az=L?"getUTCFullYear":"getFullYear";aV=L?"setUTCMinutes":"setMinutes";R=L?"setUTCHours":"setHours";a9=L?"setUTCDate":"setDate";S=L?"setUTCMonth":"setMonth";G=L?"setUTCFullYear":"setFullYear"}function aQ(L){aY=E(aY,L);aS();return aY}function P(){return aY}function ae(L){if(!O){O=aG(aC)}if(L){O.appendChild(L)}O.innerHTML=""}var ak={enabled:true,align:"center",x:0,y:15,style:{color:"#666",fontSize:"11px",lineHeight:"14px"}};aY={colors:["#4572A7","#AA4643","#89A54E","#80699B","#3D96AE","#DB843D","#92A8CD","#A47D7C","#B5CA92"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","June","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:","},global:{useUTC:true},chart:{borderColor:"#4572A7",borderRadius:5,defaultSeriesType:"line",ignoreHiddenSeries:true,spacingTop:10,spacingRight:10,spacingBottom:15,spacingLeft:10,style:{fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif',fontSize:"12px"},backgroundColor:"#FFFFFF",plotBorderColor:"#C0C0C0"},title:{text:"Chart title",align:"center",y:15,style:{color:"#3E576F",fontSize:"16px"}},subtitle:{text:"",align:"center",y:30,style:{color:"#6D869F"}},plotOptions:{line:{allowPointSelect:false,showCheckbox:false,animation:{duration:1000},events:{},lineWidth:2,shadow:true,marker:{enabled:true,lineWidth:0,radius:4,lineColor:"#FFFFFF",states:{hover:{},select:{fillColor:"#FFFFFF",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:E(ak,{enabled:false,y:-6,formatter:function(){return this.y}}),showInLegend:true,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:true}},labels:{style:{position:bh,color:"#3E576F"}},legend:{enabled:true,align:"center",layout:"horizontal",labelFormatter:function(){return this.name},borderWidth:1,borderColor:"#909090",borderRadius:5,shadow:false,style:{padding:"5px"},itemStyle:{cursor:"pointer",color:"#3E576F"},itemHoverStyle:{cursor:"pointer",color:"#000000"},itemHiddenStyle:{color:"#C0C0C0"},itemCheckboxStyle:{position:bh,width:"13px",height:"13px"},symbolWidth:16,symbolPadding:5,verticalAlign:"bottom",x:0,y:0},loading:{hideDuration:100,labelStyle:{fontWeight:"bold",position:p,top:"1em"},showDuration:100,style:{position:bh,backgroundColor:"white",opacity:0.5,textAlign:"center"}},tooltip:{enabled:true,backgroundColor:"rgba(255, 255, 255, .85)",borderWidth:2,borderRadius:5,shadow:true,snap:bf?25:10,style:{color:"#333333",fontSize:"12px",padding:"5px",whiteSpace:"nowrap"}},toolbar:{itemStyle:{color:"#4572A7",cursor:"pointer"}},credits:{enabled:true,text:"Highcharts.com",href:"http://www.highcharts.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#909090",fontSize:"10px"}}};var aB={dateTimeLabelFormats:{second:"%H:%M:%S",minute:"%H:%M",hour:"%H:%M",day:"%e. %b",week:"%e. %b",month:"%b '%y",year:"%Y"},endOnTick:false,gridLineColor:"#C0C0C0",labels:ak,lineColor:"#C0D0E0",lineWidth:1,max:null,min:null,minPadding:0.01,maxPadding:0.01,minorGridLineColor:"#E0E0E0",minorGridLineWidth:1,minorTickColor:"#A0A0A0",minorTickLength:2,minorTickPosition:"outside",startOfWeek:1,startOnTick:false,tickColor:"#C0D0E0",tickLength:5,tickmarkPlacement:"between",tickPixelInterval:100,tickPosition:"outside",tickWidth:1,title:{align:"middle",style:{color:"#6D869F",fontWeight:"bold"}},type:"linear"},bb=E(aB,{endOnTick:true,gridLineWidth:1,tickPixelInterval:72,showLastLabel:true,labels:{align:"right",x:-8,y:3},lineWidth:0,maxPadding:0.05,minPadding:0.05,startOnTick:true,tickWidth:0,title:{rotation:270,text:"Y-values"},stackLabels:{enabled:false,formatter:function(){return this.total},style:ak.style}}),av={labels:{align:"right",x:-8,y:null},title:{rotation:270}},J={labels:{align:"left",x:8,y:null},title:{rotation:90}},bk={labels:{align:"center",x:0,y:14},title:{rotation:0}},A=E(bk,{labels:{y:-5}});var bu=aY.plotOptions,bn=bu.line;bu.spline=E(bn);bu.scatter=E(bn,{lineWidth:0,states:{hover:{lineWidth:0}}});bu.area=E(bn,{});bu.areaspline=E(bu.area);bu.column=E(bn,{borderColor:"#FFFFFF",borderWidth:1,borderRadius:0,groupPadding:0.2,marker:null,pointPadding:0.1,minPointLength:0,states:{hover:{brightness:0.1,shadow:false},select:{color:"#C0C0C0",borderColor:"#000000",shadow:false}},dataLabels:{y:null,verticalAlign:null}});bu.bar=E(bu.column,{dataLabels:{align:"left",x:5,y:0}});bu.pie=E(bn,{borderColor:"#FFFFFF",borderWidth:1,center:["50%","50%"],colorByPoint:true,dataLabels:{distance:30,enabled:true,formatter:function(){return this.point.name},y:5},legendType:"point",marker:null,size:"75%",showInLegend:false,slicedOffset:10,states:{hover:{brightness:0.1,shadow:false}}});aS();var D=function(M){var bx=[],L;function bz(bA){L=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/.exec(bA);if(L){bx=[v(L[1]),v(L[2]),v(L[3]),parseFloat(L[4],10)]}else{L=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(bA);if(L){bx=[v(L[1],16),v(L[2],16),v(L[3],16),1]}}}function bw(bB){var bA;if(bx&&!isNaN(bx[0])){if(bB==="rgb"){bA="rgb("+bx[0]+","+bx[1]+","+bx[2]+")"}else{if(bB==="a"){bA=bx[3]}else{bA="rgba("+bx.join(",")+")"}}}else{bA=M}return bA}function by(bB){if(af(bB)&&bB!==0){var bA;for(bA=0;bA<3;bA++){bx[bA]+=v(bB*255);if(bx[bA]<0){bx[bA]=0}if(bx[bA]>255){bx[bA]=255}}}return this}function bv(bA){bx[3]=bA;return this}bz(M);return{get:bw,brighten:by,setOpacity:bv}};function k(){}k.prototype={init:function(L,M){this.element=T.createElementNS(aq,M);this.renderer=L},animate:function(bw,M,L){var bv=b(M,q,true);if(bv){bv=E(bv);if(L){bv.complete=L}au(this,bw,bv)}else{this.attr(bw);if(L){L()}}},attr:function(bw,bN){var bL,bG,bJ,bB,bx=this.element,M=bx.nodeName,bH=this.renderer,bE,bv=this.shadows,bD=this.htmlNode,bA,bK=this;if(bg(bw)&&m(bN)){bL=bw;bw={};bw[bL]=bN}if(bg(bw)){bL=bw;if(M==="circle"){bL={x:"cx",y:"cy"}[bL]||bL}else{if(bL==="strokeWidth"){bL="stroke-width"}}bK=an(bx,bL)||this[bL]||0;if(bL!=="d"&&bL!=="visibility"){bK=parseFloat(bK)}}else{for(bL in bw){bE=false;bG=bw[bL];if(bL==="d"){if(bG&&bG.join){bG=bG.join(" ")}if(/(NaN| {2}|^$)/.test(bG)){bG="M 0 0"}this.d=bG}else{if(bL==="x"&&M==="text"){for(bJ=0;bJ<bx.childNodes.length;bJ++){bB=bx.childNodes[bJ];if(an(bB,"x")===an(bx,"x")){an(bB,"x",bG)}}if(this.rotation){an(bx,"transform","rotate("+this.rotation+" "+bG+" "+v(bw.y||an(bx,"y"))+")")}}else{if(bL==="fill"){bG=bH.color(bG,bx,bL)}else{if(M==="circle"&&(bL==="x"||bL==="y")){bL={x:"cx",y:"cy"}[bL]||bL}else{if(bL==="translateX"||bL==="translateY"||bL==="rotation"||bL==="verticalAlign"){this[bL]=bG;this.updateTransform();bE=true}else{if(bL==="stroke"){bG=bH.color(bG,bx,bL)}else{if(bL==="dashstyle"){bL="stroke-dasharray";bG=bG&&bG.toLowerCase();if(bG==="solid"){bG=aw}else{if(bG){bG=bG.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");bJ=bG.length;while(bJ--){bG[bJ]=v(bG[bJ])*bw["stroke-width"]}bG=bG.join(",")}}}else{if(bL==="isTracker"){this[bL]=bG}else{if(bL==="width"){bG=v(bG)}else{if(bL==="align"){bL="text-anchor";bG={left:"start",center:"middle",right:"end"}[bG]}else{if(bL==="title"){var bM=T.createElementNS(aq,"title");bM.appendChild(T.createTextNode(bG));bx.appendChild(bM)}}}}}}}}}}}if(bL==="strokeWidth"){bL="stroke-width"}if(aN&&bL==="stroke-width"&&bG===0){bG=0.000001}if(this.symbolName&&/^(x|y|r|start|end|innerR)/.test(bL)){if(!bA){this.symbolAttr(bw);bA=true}bE=true}if(bv&&/^(width|height|visibility|x|y|d)$/.test(bL)){bJ=bv.length;while(bJ--){an(bv[bJ],bL,bG)}}if((bL==="width"||bL==="height")&&M==="rect"&&bG<0){bG=0}if(bL==="text"){this.textStr=bG;if(this.added){bH.buildText(this)}}else{if(!bE){an(bx,bL,bG)}}if(bD&&(bL==="x"||bL==="y"||bL==="translateX"||bL==="translateY"||bL==="visibility")){var bz=this,bC,L=bD.length?bD:[this],by=L.length,bF,bI;for(bI=0;bI<by;bI++){bF=L[bI];bC=bF.getBBox();bD=bF.htmlNode;aL(bD,aK(bz.styles,{left:(bC.x+(bz.translateX||0))+ay,top:(bC.y+(bz.translateY||0))+ay}));if(bL==="visibility"){aL(bD,{visibility:bG})}}}}}return bK},symbolAttr:function(L){var M=this;br(["x","y","r","start","end","width","height","innerR"],function(bv){M[bv]=b(L[bv],M[bv])});M.attr({d:M.renderer.symbols[M.symbolName](B(M.x*2)/2,B(M.y*2)/2,M.r,{start:M.start,end:M.end,width:M.width,height:M.height,innerR:M.innerR})})},clip:function(L){return this.attr("clip-path","url("+this.renderer.url+"#"+L.id+")")},crisp:function(by,bz,bx,M,bC){var L=this,bB,bw={},bA={},bv;by=by||L.strokeWidth||0;bv=by%2/2;bA.x=aa(bz||L.x||0)+bv;bA.y=aa(bx||L.y||0)+bv;bA.width=aa((M||L.width||0)-2*bv);bA.height=aa((bC||L.height||0)-2*bv);bA.strokeWidth=by;for(bB in bA){if(L[bB]!==bA[bB]){L[bB]=bw[bB]=bA[bB]}}return bw},css:function(bw){var L=this,bv=L.element,by=bw&&bw.width&&bv.nodeName==="text",bz,bx="",M=function(bB,bA){return"-"+bA.toLowerCase()};if(bw&&bw.color){bw.fill=bw.color}bw=aK(L.styles,bw);L.styles=bw;if(bi&&!c){if(by){delete bw.width}aL(L.element,bw)}else{for(bz in bw){bx+=bz.replace(/([A-Z])/g,M)+":"+bw[bz]+";"}L.attr({style:bx})}if(by&&L.added){L.renderer.buildText(L)}return L},on:function(L,bv){var M=bv;if(bf&&L==="click"){L="touchstart";M=function(bw){bw.preventDefault();bv()}}this.element["on"+L]=M;return this},translate:function(L,M){return this.attr({translateX:L,translateY:M})},invert:function(){var L=this;L.inverted=true;L.updateTransform();return L},updateTransform:function(){var by=this,bx=by.translateX||0,bw=by.translateY||0,L=by.inverted,bv=by.rotation,M=[];if(L){bx+=by.attr("width");bw+=by.attr("height")}if(bx||bw){M.push("translate("+bx+","+bw+")")}if(L){M.push("rotate(90) scale(-1,1)")}else{if(bv){M.push("rotate("+bv+" "+by.x+" "+by.y+")")}}if(M.length){an(by.element,"transform",M.join(" "))}},toFront:function(){var L=this.element;L.parentNode.appendChild(L);return this},align:function(M,by,bv){var bB=this;if(!M){M=bB.alignOptions;by=bB.alignByTranslate}else{bB.alignOptions=M;bB.alignByTranslate=by;if(!bv){bB.renderer.alignedObjects.push(bB)}}bv=b(bv,bB.renderer);var bx=M.align,bw=M.verticalAlign,bA=(bv.x||0)+(M.x||0),bz=(bv.y||0)+(M.y||0),L={};if(/^(right|center)$/.test(bx)){bA+=(bv.width-(M.width||0))/{right:1,center:2}[bx]}L[by?"translateX":"x"]=B(bA);if(/^(bottom|middle)$/.test(bw)){bz+=(bv.height-(M.height||0))/({bottom:1,middle:2}[bw]||1)}L[by?"translateY":"y"]=B(bz);bB[bB.placed?"animate":"attr"](L);bB.placed=true;bB.alignAttr=L;return bB},getBBox:function(){var bx,bw,M,bv=this.rotation,L=bv*bs;try{bx=aK({},this.element.getBBox())}catch(by){bx={width:0,height:0}}bw=bx.width;M=bx.height;if(bv){bx.width=bq(M*N(L))+bq(bw*ba(L));bx.height=bq(M*ba(L))+bq(bw*N(L))}return bx},show:function(){return this.attr({visibility:aA})},hide:function(){return this.attr({visibility:aH})},add:function(bA){var by=this.renderer,bx=bA||by,bw=bx.element||by.box,bC=bw.childNodes,bv=this.element,bz=an(bv,"zIndex"),bB,L,M;this.parentInverted=bA&&bA.inverted;if(this.textStr!==undefined){by.buildText(this)}if(bA&&this.htmlNode){if(!bA.htmlNode){bA.htmlNode=[]}bA.htmlNode.push(this)}if(bz){bx.handleZ=true;bz=v(bz)}if(bx.handleZ){for(M=0;M<bC.length;M++){bB=bC[M];L=an(bB,"zIndex");if(bB!==bv&&(v(L)>bz||(!m(bz)&&m(L)))){bw.insertBefore(bv,bB);return this}}}bw.appendChild(bv);this.added=true;return this},safeRemoveChild:function(M){var L=M.parentNode;if(L){L.removeChild(M)}},destroy:function(){var bx=this,bv=bx.element||{},bw=bx.shadows,M,L;bv.onclick=bv.onmouseout=bv.onmouseover=bv.onmousemove=null;a8(bx);if(bx.clipPath){bx.clipPath=bx.clipPath.destroy()}if(bx.stops){for(L=0;L<bx.stops.length;L++){bx.stops[L]=bx.stops[L].destroy()}bx.stops=null}bx.safeRemoveChild(bv);if(bw){br(bw,function(by){bx.safeRemoveChild(by)})}a2(bx.renderer.alignedObjects,bx);for(M in bx){delete bx[M]}return null},empty:function(){var M=this.element,bv=M.childNodes,L=bv.length;while(L--){M.removeChild(bv[L])}},shadow:function(L,by){var bx=[],bw,bz,bv=this.element,M=this.parentInverted?"(-1,-1)":"(1,1)";if(L){for(bw=1;bw<=3;bw++){bz=bv.cloneNode(0);an(bz,{isShadow:"true",stroke:"rgb(0, 0, 0)","stroke-opacity":0.05*bw,"stroke-width":7-2*bw,transform:"translate"+M,fill:aw});if(by){by.element.appendChild(bz)}else{bv.parentNode.insertBefore(bz,bv)}bx.push(bz)}this.shadows=bx}return this}};var w=function(){this.init.apply(this,arguments)};w.prototype={Element:k,init:function(bv,bw,M,by){var bx=this,bz=location,L;L=bx.createElement("svg").attr({xmlns:aq,version:"1.1"});bv.appendChild(L.element);bx.box=L.element;bx.boxWrapper=L;bx.alignedObjects=[];bx.url=bi?"":bz.href.replace(/#.*?$/,"");bx.defs=this.createElement("defs").add();bx.forExport=by;bx.gradients=[];bx.setSize(bw,M,false)},destroy:function(){var bv=this,L,M=bv.gradients,bw=bv.defs;bv.box=null;bv.boxWrapper=bv.boxWrapper.destroy();if(M){for(L=0;L<M.length;L++){bv.gradients[L]=M[L].destroy()}bv.gradients=null}if(bw){bv.defs=bw.destroy()}bv.alignedObjects=null;return null},createElement:function(M){var L=new this.Element();L.init(this,M);return L},buildText:function(L){var bw=L.element,bH=b(L.textStr,"").toString().replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">').replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(/<br.*?>/g),bE=bw.childNodes,bG=/style="([^"]+)"/,bv=/href="([^"]+)"/,bF=an(bw,"x"),bA=L.styles,bz=bA&&L.useHTML&&!this.forExport,bC=L.htmlNode,M=bA&&v(bA.width),bD=bA&&bA.lineHeight,bB,bx="getComputedStyle",by=bE.length;while(by--){bw.removeChild(bE[by])}if(M&&!L.added){this.box.appendChild(bw)}br(bH,function(bI,bM){var bK,bJ=0,bL;bI=bI.replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||");bK=bI.split("|||");br(bK,function(bP){if(bP!==""||bK.length===1){var bN={},bR=T.createElementNS(aq,"tspan");if(bG.test(bP)){an(bR,"style",bP.match(bG)[1].replace(/(;| |^)color([ :])/,"$1fill$2"))}if(bv.test(bP)){an(bR,"onclick",'location.href="'+bP.match(bv)[1]+'"');aL(bR,{cursor:"pointer"})}bP=(bP.replace(/<(.|\n)*?>/g,"")||" ").replace(/&lt;/g,"<").replace(/&gt;/g,">");bR.appendChild(T.createTextNode(bP));if(!bJ){bN.x=bF}else{bN.dx=3}if(!bJ){if(bM){if(!c&&L.renderer.forExport){aL(bR,{display:"block"})}bL=aR[bx]&&v(aR[bx](bB,null).getPropertyValue("line-height"));if(!bL||isNaN(bL)){bL=bD||bB.offsetHeight||18}an(bR,"dy",bL)}bB=bR}an(bR,bN);bw.appendChild(bR);bJ++;if(M){var bS=bP.replace(/-/g,"- ").split(" "),bT,bQ,bO=[];while(bS.length||bO.length){bQ=bw.getBBox().width;bT=bQ>M;if(!bT||bS.length===1){bS=bO;bO=[];if(bS.length){bR=T.createElementNS(aq,"tspan");an(bR,{dy:bD||16,x:bF});bw.appendChild(bR);if(bQ>M){M=bQ}}}else{bR.removeChild(bR.firstChild);bO.unshift(bS.pop())}if(bS.length){bR.appendChild(T.createTextNode(bS.join(" ").replace(/- /g,"-")))}}}}})});if(bz){if(!bC){bC=L.htmlNode=aG("span",null,aK(bA,{position:bh,top:0,left:0}),this.box.parentNode)}bC.innerHTML=L.textStr;by=bE.length;while(by--){bE[by].style.visibility=aH}}},crispLine:function(M,L){if(M[1]===M[4]){M[1]=M[4]=B(M[1])+(L%2/2)}if(M[2]===M[5]){M[2]=M[5]=B(M[2])+(L%2/2)}return M},path:function(L){return this.createElement("path").attr({d:L,fill:aw})},circle:function(M,bw,bv){var L=Q(M)?M:{x:M,y:bw,r:bv};return this.createElement("circle").attr(L)},arc:function(L,by,bw,bv,bx,M){if(Q(L)){by=L.y;bw=L.r;bv=L.innerR;bx=L.start;M=L.end;L=L.x}return this.symbol("arc",L||0,by||0,bw||0,{innerR:bv||0,start:bx||0,end:M||0})},rect:function(M,bz,bv,L,bw,by){if(Q(M)){bz=M.y;bv=M.width;L=M.height;bw=M.r;by=M.strokeWidth;M=M.x}var bx=this.createElement("rect").attr({rx:bw,ry:bw,fill:aw});return bx.attr(bx.crisp(by,M,bz,a5(bv,0),a5(L,0)))},setSize:function(bx,L,bv){var by=this,M=by.alignedObjects,bw=M.length;by.width=bx;by.height=L;by.boxWrapper[b(bv,true)?"animate":"attr"]({width:bx,height:L});while(bw--){M[bw].align()}},g:function(L){var M=this.createElement("g");return m(L)?M.attr({"class":H+L}):M},image:function(by,M,bz,bw,L){var bx={preserveAspectRatio:aw},bv;if(arguments.length>1){aK(bx,{x:M,y:bz,width:bw,height:L})}bv=this.createElement("image").attr(bx);if(bv.element.setAttributeNS){bv.element.setAttributeNS("http://www.w3.org/1999/xlink","href",by)}else{bv.element.setAttribute("hc-svg-href",by)}return bv},symbol:function(bv,bC,bA,by,bE){var bx,M=this.symbols[bv],bD=M&&M(B(bC),B(bA),by,bE),bw=/^url\((.*?)\)$/,bB,bz;if(bD){bx=this.path(bD);aK(bx,{symbolName:bv,x:bC,y:bA,r:by});if(bE){aK(bx,bE)}}else{if(bw.test(bv)){var L=function(bF,bG){bF.attr({width:bG[0],height:bG[1]}).translate(-B(bG[0]/2),-B(bG[1]/2))};bB=bv.match(bw)[1];bz=aF[bB];bx=this.image(bB).attr({x:bC,y:bA});if(bz){L(bx,bz)}else{bx.attr({width:0,height:0});aG("img",{onload:function(){var bF=this;L(bx,aF[bB]=[bF.width,bF.height])},src:bB})}}else{bx=this.circle(bC,bA,by)}}return bx},symbols:{square:function(bv,bw,M){var L=0.707*M;return[aI,bv-L,bw-L,aJ,bv+L,bw-L,bv+L,bw+L,bv-L,bw+L,"Z"]},triangle:function(M,bv,L){return[aI,M,bv-1.33*L,aJ,M+L,bv+0.67*L,M-L,bv+0.67*L,"Z"]},"triangle-down":function(M,bv,L){return[aI,M,bv+1.33*L,aJ,M-L,bv-0.67*L,M+L,bv-0.67*L,"Z"]},diamond:function(M,bv,L){return[aI,M,bv-L,aJ,M+L,bv,M,bv+L,M-L,bv,"Z"]},arc:function(bC,bB,bz,bE){var bv=bE.start,bw=bE.end-0.000001,bA=bE.innerR,by=ba(bv),L=N(bv),M=ba(bw),bD=N(bw),bx=bE.end-bv<s?0:1;return[aI,bC+bz*by,bB+bz*L,"A",bz,bz,0,bx,1,bC+bz*M,bB+bz*bD,aJ,bC+bA*M,bB+bA*bD,"A",bA,bA,0,bx,0,bC+bA*by,bB+bA*L,"Z"]}},clipRect:function(M,bz,bv,L){var by,bx=H+Z++,bw=this.createElement("clipPath").attr({id:bx}).add(this.defs);by=this.rect(M,bz,bv,L,0).add(bw);by.id=bx;by.clipPath=bw;return by},color:function(by,bx,M){var bE,bw=/^rgba/;if(by&&by.linearGradient){var bC=this,bz="linearGradient",bD=by[bz],bv=H+Z++,L,bB,bA;L=bC.createElement(bz).attr({id:bv,gradientUnits:"userSpaceOnUse",x1:bD[0],y1:bD[1],x2:bD[2],y2:bD[3]}).add(bC.defs);bC.gradients.push(L);L.stops=[];br(by.stops,function(bF){var bG;if(bw.test(bF[1])){bE=D(bF[1]);bB=bE.get("rgb");bA=bE.get("a")}else{bB=bF[1];bA=1}bG=bC.createElement("stop").attr({offset:bF[0],"stop-color":bB,"stop-opacity":bA}).add(L);L.stops.push(bG)});return"url("+this.url+"#"+bv+")"}else{if(bw.test(by)){bE=D(by);an(bx,M+"-opacity",bE.get("a"));return bE.get("rgb")}else{bx.removeAttribute(M+"-opacity");return by}}},text:function(bw,L,by,bv){var M=aY.chart.style,bx;L=B(b(L,0));by=B(b(by,0));bx=this.createElement("text").attr({x:L,y:by,text:bw}).css({fontFamily:M.fontFamily,fontSize:M.fontSize});bx.x=L;bx.y=by;bx.useHTML=bv;return bx}};aU=w;var bo;if(!c){var a1=a4(k,{init:function(bv,bw){var L=["<",bw,' filled="f" stroked="f"'],M=["position: ",bh,";"];if(bw==="shape"||bw===aC){M.push("left:0;top:0;width:10px;height:10px;")}if(bd){M.push("visibility: ",bw===aC?aH:aA)}L.push(' style="',M.join(""),'"/>');if(bw){L=bw===aC||bw==="span"||bw==="img"?L.join(""):bv.prepVML(L);this.element=aG(L)}this.renderer=bv},add:function(bw){var bz=this,by=bz.renderer,bv=bz.element,bx=by.box,M=bw&&bw.inverted,L=bw?bw.element||bw:bx;if(M){by.invertChild(bv,L)}if(bd&&L.gVis===aH){aL(bv,{visibility:aH})}L.appendChild(bv);bz.added=true;if(bz.alignOnAdd){bz.updateTransform()}return bz},attr:function(bx,L){var bI,bH,by,bz=this.element||{},M=bz.style,bG=bz.nodeName,bD=this.renderer,bw=this.symbolName,bJ,bC,bv=this.shadows,bE,bA=this;if(bg(bx)&&m(L)){bI=bx;bx={};bx[bI]=L}if(bg(bx)){bI=bx;if(bI==="strokeWidth"||bI==="stroke-width"){bA=this.strokeweight}else{bA=this[bI]}}else{for(bI in bx){bH=bx[bI];bE=false;if(bw&&/^(x|y|r|start|end|width|height|innerR)/.test(bI)){if(!bC){this.symbolAttr(bx);bC=true}bE=true}else{if(bI==="d"){bH=bH||[];this.d=bH.join(" ");by=bH.length;var bB=[];while(by--){if(af(bH[by])){bB[by]=B(bH[by]*10)-5}else{if(bH[by]==="Z"){bB[by]="x"}else{bB[by]=bH[by]}}}bH=bB.join(" ")||"x";bz.path=bH;if(bv){by=bv.length;while(by--){bv[by].path=bH}}bE=true}else{if(bI==="zIndex"||bI==="visibility"){if(bd&&bI==="visibility"&&bG==="DIV"){bz.gVis=bH;bJ=bz.childNodes;by=bJ.length;while(by--){aL(bJ[by],{visibility:bH})}if(bH===aA){bH=null}}if(bH){M[bI]=bH}bE=true}else{if(/^(width|height)$/.test(bI)){this[bI]=bH;if(this.updateClipping){this[bI]=bH;this.updateClipping()}else{M[bI]=bH}bE=true}else{if(/^(x|y)$/.test(bI)){this[bI]=bH;if(bz.tagName==="SPAN"){this.updateTransform()}else{M[{x:"left",y:"top"}[bI]]=bH}}else{if(bI==="class"){bz.className=bH}else{if(bI==="stroke"){bH=bD.color(bH,bz,bI);bI="strokecolor"}else{if(bI==="stroke-width"||bI==="strokeWidth"){bz.stroked=bH?true:false;bI="strokeweight";this[bI]=bH;if(af(bH)){bH+=ay}}else{if(bI==="dashstyle"){var bF=bz.getElementsByTagName("stroke")[0]||aG(bD.prepVML(["<stroke/>"]),null,null,bz);bF[bI]=bH||"solid";this.dashstyle=bH;bE=true}else{if(bI==="fill"){if(bG==="SPAN"){M.color=bH}else{bz.filled=bH!==aw?true:false;bH=bD.color(bH,bz,bI);bI="fillcolor"}}else{if(bI==="translateX"||bI==="translateY"||bI==="rotation"||bI==="align"){if(bI==="align"){bI="textAlign"}this[bI]=bH;this.updateTransform();bE=true}else{if(bI==="text"){this.bBox=null;bz.innerHTML=bH;bE=true}}}}}}}}}}}}if(bv&&bI==="visibility"){by=bv.length;while(by--){bv[by].style[bI]=bH}}if(!bE){if(bd){bz[bI]=bH}else{an(bz,bI,bH)}}}}return bA},clip:function(L){var bv=this,M=L.members;M.push(bv);bv.destroyClip=function(){a2(M,bv)};return bv.css(L.getCSS(bv.inverted))},css:function(M){var bw=this,L=bw.element,bv=M&&L.tagName==="SPAN"&&M.width;if(bv){delete M.width;bw.textWidth=bv;bw.updateTransform()}bw.styles=aK(bw.styles,M);aL(bw.element,M);return bw},safeRemoveChild:function(M){var L=M.parentNode;if(L){ae(M)}},destroy:function(){var L=this;if(L.destroyClip){L.destroyClip()}return k.prototype.destroy.apply(L)},empty:function(){var M=this.element,bw=M.childNodes,L=bw.length,bv;while(L--){bv=bw[L];bv.parentNode.removeChild(bv)}},getBBox:function(){var bv=this,L=bv.element,M=bv.bBox;if(!M){if(L.nodeName==="text"){L.style.position=bh}M=bv.bBox={x:L.offsetLeft,y:L.offsetTop,width:L.offsetWidth,height:L.offsetHeight}}return M},on:function(L,M){this.element["on"+L]=function(){var bv=aR.event;bv.target=bv.srcElement;M(bv)};return this},updateTransform:function(){if(!this.added){this.alignOnAdd=true;return}var bw=this,bK=bw.element,bN=bw.translateX||0,bM=bw.translateY||0,bB=bw.x||0,bz=bw.y||0,bI=bw.textAlign||"left",bC={left:0,center:0.5,right:1}[bI],bx=bI&&bI!=="left";if(bN||bM){bw.css({marginLeft:bN,marginTop:bM})}if(bw.inverted){br(bK.childNodes,function(bO){bw.renderer.invertChild(bO,bK)})}if(bK.tagName==="SPAN"){var bG,bE,bH=bw.rotation,M,bL=0,bv=1,bD=0,bA,L=v(bw.textWidth),bJ=bw.xCorr||0,by=bw.yCorr||0,bF=[bH,bI,bK.innerHTML,bw.textWidth].join(",");if(bF!==bw.cTT){if(m(bH)){bL=bH*bs;bv=ba(bL);bD=N(bL);aL(bK,{filter:bH?["progid:DXImageTransform.Microsoft.Matrix(M11=",bv,", M12=",-bD,", M21=",bD,", M22=",bv,", sizingMethod='auto expand')"].join(""):aw})}bG=bK.offsetWidth;bE=bK.offsetHeight;if(bG>L){aL(bK,{width:L+ay,display:"block",whiteSpace:"normal"});bG=L}M=B((v(bK.style.fontSize)||12)*1.2);bJ=bv<0&&-bG;by=bD<0&&-bE;bA=bv*bD<0;bJ+=bD*M*(bA?1-bC:bC);by-=bv*M*(bH?(bA?bC:1-bC):1);if(bx){bJ-=bG*bC*(bv<0?-1:1);if(bH){by-=bE*bC*(bD<0?-1:1)}aL(bK,{textAlign:bI})}bw.xCorr=bJ;bw.yCorr=by}aL(bK,{left:bB+bJ,top:bz+by});bw.cTT=bF}},shadow:function(bA,bz){var M=[],bv,bw=this.element,bx=this.renderer,by,L=bw.style,bB,bC=bw.path;if(bC&&typeof bC.value!=="string"){bC="x"}if(bA){for(bv=1;bv<=3;bv++){bB=['<shape isShadow="true" strokeweight="',(7-2*bv),'" filled="false" path="',bC,'" coordsize="100,100" style="',bw.style.cssText,'" />'];by=aG(bx.prepVML(bB),null,{left:v(L.left)+1,top:v(L.top)+1});bB=['<stroke color="black" opacity="',(0.05*bv),'"/>'];aG(bx.prepVML(bB),null,null,by);if(bz){bz.element.appendChild(by)}else{bw.parentNode.insertBefore(by,bw)}M.push(by)}this.shadows=M}return this}});bo=function(){this.init.apply(this,arguments)};bo.prototype=E(w.prototype,{Element:a1,isIE8:g.indexOf("MSIE 8.0")>-1,init:function(bv,bw,M){var bx=this,L;bx.alignedObjects=[];L=bx.createElement(aC);bv.appendChild(L.element);bx.box=L.element;bx.boxWrapper=L;bx.setSize(bw,M,false);if(!T.namespaces.hcv){T.namespaces.add("hcv","urn:schemas-microsoft-com:vml");T.createStyleSheet().cssText="hcv\\:fill, hcv\\:path, hcv\\:shape, hcv\\:stroke{ behavior:url(#default#VML); display: inline-block; } "}},clipRect:function(M,bx,bw,L){var bv=this.createElement();return aK(bv,{members:[],left:M,top:bx,width:bw,height:L,getCSS:function(bz){var bC=this,bE=bC.top,bD=bC.left,bB=bD+bC.width,by=bE+bC.height,bA={clip:"rect("+B(bz?bD:bE)+"px,"+B(bz?by:bB)+"px,"+B(bz?bB:by)+"px,"+B(bz?bE:bD)+"px)"};if(!bz&&bd){aK(bA,{width:bB+ay,height:by+ay})}return bA},updateClipping:function(){br(bv.members,function(by){by.css(bv.getCSS(by.inverted))})}})},color:function(bx,bv,L){var bF,M=/^rgba/,bH;if(bx&&bx.linearGradient){var bB,bA,bE=bx.linearGradient,bw,bG,bz,bD,by;br(bx.stops,function(bJ,bI){if(M.test(bJ[1])){bF=D(bJ[1]);bB=bF.get("rgb");bA=bF.get("a")}else{bB=bJ[1];bA=1}if(!bI){bG=bB;bz=bA}else{bD=bB;by=bA}});bw=90-ag.atan((bE[3]-bE[1])/(bE[2]-bE[0]))*180/s;bH=["<",L,' colors="0% ',bG,",100% ",bD,'" angle="',bw,'" opacity="',by,'" o:opacity2="',bz,'" type="gradient" focus="100%" />'];aG(this.prepVML(bH),null,null,bv)}else{if(M.test(bx)&&bv.tagName!=="IMG"){bF=D(bx);bH=["<",L,' opacity="',bF.get("a"),'"/>'];aG(this.prepVML(bH),null,null,bv);return bF.get("rgb")}else{var bC=bv.getElementsByTagName(L);if(bC.length){bC[0].opacity=1}return bx}}},prepVML:function(L){var M="display:inline-block;behavior:url(#default#VML);",bv=this.isIE8;L=L.join("");if(bv){L=L.replace("/>",' xmlns="urn:schemas-microsoft-com:vml" />');if(L.indexOf('style="')===-1){L=L.replace("/>",' style="'+M+'" />')}else{L=L.replace('style="','style="'+M)}}else{L=L.replace("<","<hcv:")}return L},text:function(bv,L,bw){var M=aY.chart.style;return this.createElement("span").attr({text:bv,x:B(L),y:B(bw)}).css({whiteSpace:"nowrap",fontFamily:M.fontFamily,fontSize:M.fontSize})},path:function(L){return this.createElement("shape").attr({coordsize:"100 100",d:L})},circle:function(L,bv,M){return this.symbol("circle").attr({x:L,y:bv,r:M})},g:function(L){var bv,M;if(L){M={className:H+L,"class":H+L}}bv=this.createElement(aC).attr(M);return bv},image:function(bx,M,by,bv,L){var bw=this.createElement("img").attr({src:bx});if(arguments.length>1){bw.css({left:M,top:by,width:bv,height:L})}return bw},rect:function(M,bz,bv,L,bw,by){if(Q(M)){bz=M.y;bv=M.width;L=M.height;bw=M.r;by=M.strokeWidth;M=M.x}var bx=this.symbol("rect");bx.r=bw;return bx.attr(bx.crisp(by,M,bz,a5(bv,0),a5(L,0)))},invertChild:function(M,L){var bv=L.style;aL(M,{flip:"x",left:v(bv.width)-10,top:v(bv.height)-10,rotation:-90})},symbols:{arc:function(bC,bB,bz,bF){var bv=bF.start,bw=bF.end,by=ba(bv),L=N(bv),M=ba(bw),bD=N(bw),bA=bF.innerR,bE=0.07/bz,bx=(bA&&0.1/bA)||0;if(bw-bv===0){return["x"]}else{if(2*s-bw+bv<bE){M=-bE}else{if(bw-bv<bx){M=ba(bv+bx)}}}return["wa",bC-bz,bB-bz,bC+bz,bB+bz,bC+bz*by,bB+bz*L,bC+bz*M,bB+bz*bD,"at",bC-bA,bB-bA,bC+bA,bB+bA,bC+bA*M,bB+bA*bD,bC+bA*by,bB+bA*L,"x","e"]},circle:function(L,bv,M){return["wa",L-M,bv-M,L+M,bv+M,L+M,bv,L+M,bv,"e"]},rect:function(bA,bz,by,bv){if(!m(bv)){return[]}var bx=bv.width,L=bv.height,bw=bA+bx,M=bz+L;by=ap(by,bx,L);return[aI,bA+by,bz,aJ,bw-by,bz,"wa",bw-2*by,bz,bw,bz+2*by,bw-by,bz,bw,bz+by,aJ,bw,M-by,"wa",bw-2*by,M-2*by,bw,M,bw,M-by,bw-by,M,aJ,bA+by,M,"wa",bA,M-2*by,bA+2*by,M,bA+by,M,bA,M-by,aJ,bA,bz+by,"wa",bA,bz,bA+2*by,bz+2*by,bA,bz+by,bA+by,bz,"x","e"]}}});aU=bo}function bj(cg,bU){aB=E(aB,aY.xAxis);bb=E(bb,aY.yAxis);aY.xAxis=aY.yAxis=null;cg=E(aY,cg);var bV=cg.chart,cu=bV.margin,cH=Q(cu)?cu:[cu,cu,cu,cu],bS=b(bV.marginTop,cH[0]),bQ=b(bV.marginRight,cH[1]),b9=b(bV.marginBottom,cH[2]),cc=b(bV.marginLeft,cH[3]),cW=bV.spacingTop,b2=bV.spacingRight,bX=bV.spacingBottom,cL=bV.spacingLeft,ca,cd,cv,cz,cF,cb,M,bI,b1,cA,ct,b5,cM,b8,cX,bN,bJ,ce,bO,bA,cj,bE,cK=this,b0=bV.events,cY=b0&&!!b0.click,bR,bP,bG,bW,bx,cI,cV,bF,bv,L,cq,bZ,cS,bL,bD,cm,co=bV.showAxes,bT=0,cB=[],by,ck=[],bC,ch,cx,cp,bK,cn,cG,bH,cE,bB,bz,b4;function bM(dW){var d7=dW.isX,dP=dW.opposite,c4=bC?!d7:d7,d8=c4?(dP?0:2):(dP?1:3),dD={},dF=E(d7?aB:bb,[A,J,bk,av][d8],dW),da=this,d4,dA=dF.type,d5=dA==="datetime",dr=dA==="logarithmic",de=dF.offset||0,dJ=d7?"x":"y",dh,dL,du,dK=c4?M:cb,dg,c9,dl,d1,d3,d6,di,dX,c0,dn,dk=null,d9=null,dE,dT,c8=dF.minPadding,c1=dF.maxPadding,dj=m(dF.linkedTo),ec,d0,dQ,dp=dF.events,dt,db=[],dc,dM,d2,dZ,dU={},ee={},dd={},c6,ea,dB,eb,dS=dF.categories,dV=dF.labels.formatter||function(){var eh=this.value,eg;if(eb){eg=aP(eb,eh)}else{if(dc%1000000===0){eg=(eh/1000000)+"M"}else{if(dc%1000===0){eg=(eh/1000)+"k"}else{if(!dS&&eh>=1000){eg=l(eh,0)}else{eg=eh}}}}return eg},dH=c4&&dF.labels.staggerLines,c5=dF.reversed,dm=(dS&&dF.tickmarkPlacement==="between")?0.5:0;function dq(ei,eh){var eg=this;eg.pos=ei;eg.minor=eh;eg.isNew=true;if(!eh){eg.addLabel()}}dq.prototype={addLabel:function(){var en=this.pos,eg=dF.labels,em,ej=!((en===d9&&!b(dF.showFirstLabel,1))||(en===dk&&!b(dF.showLastLabel,0))),ek=(dS&&c4&&dS.length&&!eg.step&&!eg.staggerLines&&!eg.rotation&&bv/dS.length)||(!c4&&bv/2),ei,el=dS&&m(dS[en])?dS[en]:en,eh=this.label;em=dV.call({isFirst:en===dZ[0],isLast:en===dZ[dZ.length-1],dateTimeLabelFormat:eb,value:dr?aX(el):el});ei=ek&&{width:a5(1,B(ek-2*(eg.padding||10)))+ay};ei=aK(ei,eg.style);if(eh===aO){this.label=m(em)&&ej&&eg.enabled?ch.text(em,0,0,eg.useHTML).attr({align:eg.align,rotation:eg.rotation}).css(ei).add(dl):null}else{if(eh){eh.attr({text:em}).css(ei)}}},getLabelSize:function(){var eg=this.label;return eg?((this.labelBBox=eg.getBBox()))[c4?"height":"width"]:0},render:function(em,eh){var eB=this,eA=!eB.minor,ep=eB.label,el=eB.pos,ey=dF.labels,en=eB.gridLine,ex=eA?dF.gridLineWidth:dF.minorGridLineWidth,ez=eA?dF.gridLineColor:dF.minorGridLineColor,eo=eA?dF.gridLineDashStyle:dF.minorGridLineDashStyle,eC,es=eB.mark,eg,ei=eA?dF.tickLength:dF.minorTickLength,eq=eA?dF.tickWidth:(dF.minorTickWidth||0),eu=eA?dF.tickColor:dF.minorTickColor,ev=eA?dF.tickPosition:dF.minorTickPosition,ek=ey.step,ej=(eh&&ce)||bN,ew,et,er;et=c4?dg(el+dm,null,null,eh)+dK:M+de+(dP?((eh&&bJ)||cX)-cF-M:0);er=c4?ej-cb+de-(dP?bF:0):ej-dg(el+dm,null,null,eh)-dK;if(ex){eC=c9(el+dm,ex,eh);if(en===aO){ew={stroke:ez,"stroke-width":ex};if(eo){ew.dashstyle=eo}if(eA){ew.zIndex=1}eB.gridLine=en=ex?ch.path(eC).attr(ew).add(d1):null}if(!eh&&en&&eC){en.animate({d:eC})}}if(eq){if(ev==="inside"){ei=-ei}if(dP){ei=-ei}eg=ch.crispLine([aI,et,er,aJ,et+(c4?0:-ei),er+(c4?ei:0)],eq);if(es){es.animate({d:eg})}else{eB.mark=ch.path(eg).attr({stroke:eu,"stroke-width":eq}).add(dl)}}if(ep&&!isNaN(et)){et=et+ey.x-(dm&&c4?dm*dL*(c5?-1:1):0);er=er+ey.y-(dm&&!c4?dm*dL*(c5?1:-1):0);if(!m(ey.y)){er+=v(ep.styles.lineHeight)*0.9-ep.getBBox().height/2}if(dH){er+=(em/(ek||1)%dH)*16}if(ek){ep[em%ek?"hide":"show"]()}ep[eB.isNew?"attr":"animate"]({x:et,y:er})}eB.isNew=false},destroy:function(){bp(this)}};function dO(eh){var eg=this;if(eh){eg.options=eh;eg.id=eh.id}return eg}dO.prototype={render:function(){var eB=this,ej=eB.options,eg=ej.label,el=eB.label,eu=ej.width,ei=ej.to,ez=ej.from,ev=ej.value,es,ek=ej.dashStyle,ex=eB.svgElem,et=[],ew,ep,em,eA,eo,en,ey=ej.color,er=ej.zIndex,eh=ej.events,eq;if(dr){ez=be(ez);ei=be(ei);ev=be(ev)}if(eu){et=c9(ev,eu);eq={stroke:ey,"stroke-width":eu};if(ek){eq.dashstyle=ek}}else{if(m(ez)&&m(ei)){ez=a5(ez,d9);ei=ap(ei,dk);es=c9(ei);et=c9(ez);if(et&&es){et.push(es[4],es[5],es[1],es[2])}else{et=null}eq={fill:ey}}else{return}}if(m(er)){eq.zIndex=er}if(ex){if(et){ex.animate({d:et},null,ex.onGetPath)}else{ex.hide();ex.onGetPath=function(){ex.show()}}}else{if(et&&et.length){eB.svgElem=ex=ch.path(et).attr(eq).add();if(eh){ew=function(eC){ex.on(eC,function(eD){eh[eC].apply(eB,[eD])})};for(ep in eh){ew(ep)}}}}if(eg&&m(eg.text)&&et&&et.length&&bv>0&&bF>0){eg=E({align:c4&&es&&"center",x:c4?!es&&4:10,verticalAlign:!c4&&es&&"middle",y:c4?es?16:10:es?6:-4,rotation:c4&&!es&&90},eg);if(!el){eB.label=el=ch.text(eg.text,0,0).attr({align:eg.textAlign||eg.align,rotation:eg.rotation,zIndex:er}).css(eg.style).add()}em=[et[1],et[4],b(et[6],et[1])];eA=[et[2],et[5],b(et[7],et[2])];eo=ap.apply(ag,em);en=ap.apply(ag,eA);el.align(eg,false,{x:eo,y:en,width:a5.apply(ag,em)-eo,height:a5.apply(ag,eA)-en});el.show()}else{if(el){el.hide()}}return eB},destroy:function(){var eg=this;bp(eg);a2(db,eg)}};function dv(ei,eh,eg,ek){var ej=this;ej.isNegative=eh;ej.options=ei;ej.x=eg;ej.stack=ek;ej.alignOptions={align:ei.align||(bC?(eh?"left":"right"):"center"),verticalAlign:ei.verticalAlign||(bC?"middle":(eh?"bottom":"top")),y:b(ei.y,bC?4:(eh?14:-6)),x:b(ei.x,bC?(eh?-6:6):0)};ej.textAlign=ei.textAlign||(bC?(eh?"right":"left"):"center")}dv.prototype={destroy:function(){bp(this)},setTotal:function(eg){this.total=eg;this.cum=eg},render:function(eh){var eg=this,ei=eg.options.formatter.call(eg);if(eg.label){eg.label.attr({text:ei,visibility:aH})}else{eg.label=cK.renderer.text(ei,0,0).css(eg.options.style).attr({align:eg.textAlign,rotation:eg.options.rotation,visibility:aH}).add(eh)}},setOffset:function(ej,el){var eo=this,eg=eo.isNegative,em=da.translate(eo.total),ei=da.translate(0),eh=bq(em-ei),en=cK.xAxis[0].translate(eo.x)+ej,ek=cK.plotHeight,ep={x:bC?(eg?em:em-eh):en,y:bC?ek-en-el:(eg?(ek-em-eh):ek-em),width:bC?eh:el,height:bC?el:eh};if(eo.label){eo.label.align(eo.alignOptions,null,ep).attr({visibility:aA})}}};function c3(){var eg=[],eh=[],ei;d6=di=null;dX=[];br(ck,function(eo){ei=false;br(["xAxis","yAxis"],function(er){if(eo.isCartesian&&((er==="xAxis"&&d7)||(er==="yAxis"&&!d7))&&((eo.options[er]===dF.index)||(eo.options[er]===aO&&dF.index===0))){eo[er]=da;dX.push(eo);ei=true}});if(!eo.visible&&bV.ignoreHiddenSeries){ei=false}if(ei){var en,ep,em,ek,eq,el;if(!d7){en=eo.options.stacking;dQ=en==="percent";if(en){eq=eo.options.stack;ek=eo.type+b(eq,"");el="-"+ek;eo.stackKey=ek;ep=eg[ek]||[];eg[ek]=ep;em=eh[el]||[];eh[el]=em}if(dQ){d6=0;di=99}}if(eo.isCartesian){br(eo.data,function(er){var ey=er.x,ex=er.y,es=ex<0,eu=es?em:ep,ew=es?el:ek,et,ev;if(d6===null){d6=di=er[dJ]}if(d7){if(ey>di){di=ey}else{if(ey<d6){d6=ey}}}else{if(m(ex)){if(en){eu[ey]=m(eu[ey])?eu[ey]+ex:ex}et=eu?eu[ey]:ex;ev=b(er.low,et);if(!dQ){if(et>di){di=et}else{if(ev<d6){d6=ev}}}if(en){if(!dD[ew]){dD[ew]={}}if(!dD[ew][ey]){dD[ew][ey]=new dv(dF.stackLabels,es,ey,eq)}dD[ew][ey].setTotal(et)}}}});if(/(area|column|bar)/.test(eo.type)&&!d7){var ej=0;if(d6>=ej){d6=ej;ec=true}else{if(di<ej){di=ej;d0=true}}}}}})}dg=function(eh,en,eo,ei,em){var ej=1,el=0,ek=ei?du:dL,ep=ei?dE:d9,eg;if(!ek){ek=dL}if(eo){ej*=-1;el=dh}if(c5){ej*=-1;el-=ej*dh}if(en){if(c5){eh=dh-eh}eg=eh/ek+ep;if(dr&&em){eg=aX(eg)}}else{if(dr&&em){eh=be(eh)}eg=ej*(eh-ep)*ek+el}return eg};c9=function(ep,el,ei){var eh,eo,eg,en,ek=dg(ep,null,null,ei),em=(ei&&ce)||bN,ej=(ei&&bJ)||cX,eq;eh=eg=B(ek+dK);eo=en=B(em-ek-dK);if(isNaN(ek)){eq=true}else{if(c4){eo=cz;en=em-cb;if(eh<M||eh>M+bv){eq=true}}else{eh=M;eg=ej-cF;if(eo<cz||eo>cz+bF){eq=true}}}return eq?null:ch.crispLine([aI,eh,eo,aJ,eg,en],el||0)};function ed(eg,ej){var ei,eh;d2=ej?1:ag.pow(10,aa(ag.log(eg)/ag.LN10));ei=eg/d2;if(!ej){ej=[1,2,2.5,5,10];if(dF.allowDecimals===false||dr){if(d2===1){ej=[1,2,5,10]}else{if(d2<=0.1){ej=[1/d2]}}}}for(eh=0;eh<ej.length;eh++){eg=ej[eh];if(ei<=(ej[eh]+(ej[eh+1]||ej[eh]))/2){break}}eg*=d2;return eg}function dR(){dZ=[];var eu,en=aY.global.useUTC,eq=1000/W,ek=60000/W,eg=3600000/W,ep=24*3600000/W,eo=7*24*3600000/W,ex=30*24*3600000/W,el=31556952000/W,es=[["second",eq,[1,2,5,10,15,30]],["minute",ek,[1,2,5,10,15,30]],["hour",eg,[1,2,3,4,6,8,12]],["day",ep,[1,2]],["week",eo,[1,2]],["month",ex,[1,2,3,4,6]],["year",el,null]],em=es[6],ey=em[1],eh=em[2];for(eu=0;eu<es.length;eu++){em=es[eu];ey=em[1];eh=em[2];if(es[eu+1]){var et=(ey*eh[eh.length-1]+es[eu+1][1])/2;if(dc<=et){break}}}if(ey===el&&dc<5*ey){eh=[1,2,5]}var ew=ed(dc/ey,eh),ez,ej=new Date(d9*W);ej.setMilliseconds(0);if(ey>=eq){ej.setSeconds(ey>=ek?0:ew*aa(ej.getSeconds()/ew))}if(ey>=ek){ej[aV](ey>=eg?0:ew*aa(ej[U]()/ew))}if(ey>=eg){ej[R](ey>=ep?0:ew*aa(ej[a6]()/ew))}if(ey>=ep){ej[a9](ey>=ex?1:ew*aa(ej[bl]()/ew))}if(ey>=ex){ej[S](ey>=el?0:ew*aa(ej[a7]()/ew));ez=ej[az]()}if(ey>=el){ez-=ez%ew;ej[G](ez)}if(ey===eo){ej[a9](ej[bl]()-ej[ax]()+dF.startOfWeek)}eu=1;ez=ej[az]();var ei=ej.getTime()/W,ev=ej[a7](),er=ej[bl]();while(ei<dk&&eu<bv){dZ.push(ei);if(ey===el){ei=bc(ez+eu*ew,0)/W}else{if(ey===ex){ei=bc(ez,ev+eu*ew)/W}else{if(!en&&(ey===ep||ey===eo)){ei=bc(ez,ev,er+eu*ew*(ey===ep?1:7))}else{ei+=ey*ew}}}eu++}dZ.push(ei);eb=dF.dateTimeLabelFormats[em[0]]}function dC(eh){var ei,eg=eh;d2=b(d2,ag.pow(10,aa(ag.log(dc)/ag.LN10)));if(d2<1){ei=B(1/d2)*10;eg=B(eh*ei)/ei}return eg}function ds(){var eh,ei=dC(aa(d9/dc)*dc),eg=dC(bt(dk/dc)*dc);dZ=[];eh=dC(ei);while(eh<=eg){dZ.push(eh);eh=dC(eh+dc)}}function dz(){var eg,ep,eh,ek,el=dF.tickInterval,ej=dF.tickPixelInterval,em=dF.maxZoom||(d7&&!m(dF.min)&&!m(dF.max)?ap(cK.smallestInterval*5,di-d6):null),en;dh=c4?bv:bF;if(dj){eh=cK[d7?"xAxis":"yAxis"][dF.linkedTo];ek=eh.getExtremes();d9=b(ek.min,ek.dataMin);dk=b(ek.max,ek.dataMax)}else{d9=b(c0,dF.min,d6);dk=b(dn,dF.max,di)}if(dr){d9=be(d9);dk=be(dk)}if(dk-d9<em){en=(em-dk+d9)/2;d9=a5(d9-en,b(dF.min,d9-en),d6);dk=ap(d9+em,b(dF.max,d9+em),di)}if(!dS&&!dQ&&!dj&&m(d9)&&m(dk)){eg=(dk-d9)||1;if(!m(dF.min)&&!m(c0)&&c8&&(d6<0||!ec)){d9-=eg*c8}if(!m(dF.max)&&!m(dn)&&c1&&(di>0||!d0)){dk+=eg*c1}}if(d9===dk){dc=1}else{if(dj&&!el&&ej===eh.options.tickPixelInterval){dc=eh.tickInterval}else{dc=b(el,dS?1:(dk-d9)*ej/dh)}}if(!d5&&!m(dF.tickInterval)){dc=ed(dc)}da.tickInterval=dc;dM=dF.minorTickInterval==="auto"&&dc?dc/5:dF.minorTickInterval;if(d5){dR()}else{ds()}if(!dj){if(dS||(d7&&cK.hasColumn)){ep=(dS?1:dc)*0.5;if(dS||!m(b(dF.min,c0))){d9-=ep}if(dS||!m(b(dF.max,dn))){dk+=ep}}var ei=dZ[0],eo=dZ[dZ.length-1];if(dF.startOnTick){d9=ei}else{if(d9>ei){dZ.shift()}}if(dF.endOnTick){dk=eo}else{if(dk<eo){dZ.pop()}}if(!by){by={x:0,y:0}}if(!d5&&dZ.length>by[dJ]){by[dJ]=dZ.length}}}function ef(){if(by&&!d5&&!dS&&!dj){var eh=c6,eg=dZ.length;c6=by[dJ];if(eg<c6){while(dZ.length<c6){dZ.push(dC(dZ[dZ.length-1]+dc))}dL*=(eg-1)/(c6-1);dk=dZ[dZ.length-1]}if(m(eh)&&c6!==eh){da.isDirty=true}}}function dG(){var eh,eg;dE=d9;dT=dk;c3();dz();du=dL;dL=dh/((dk-d9)||1);if(!d7){for(eh in dD){for(eg in dD[eh]){dD[eh][eg].cum=dD[eh][eg].total}}}if(!da.isDirty){da.isDirty=(d9!==dE||dk!==dT)}}function dN(ei,eg,ej,eh){ej=b(ej,true);a3(da,"setExtremes",{min:ei,max:eg},function(){c0=ei;dn=eg;if(ej){cK.redraw(eh)}})}function c2(){return{min:d9,max:dk,dataMin:d6,dataMax:di,userMin:c0,userMax:dn}}function dI(eg){if(d9>eg){eg=d9}else{if(dk<eg){eg=dk}}return dg(eg,0,1)}function df(eg){var eh=new dO(eg).render();db.push(eh);return eh}function dY(){var ei=dX.length&&m(d9)&&m(dk),el=0,ek=0,ej=dF.title,eh=dF.labels,eg=[-1,1,1,-1][d8],em;if(!dl){dl=ch.g("axis").attr({zIndex:7}).add();d1=ch.g("grid").attr({zIndex:1}).add()}ea=0;if(ei||dj){br(dZ,function(en){if(!dU[en]){dU[en]=new dq(en)}else{dU[en].addLabel()}if(d8===0||d8===2||{1:"left",3:"right"}[d8]===eh.align){ea=a5(dU[en].getLabelSize(),ea)}});if(dH){ea+=(dH-1)*16}}else{for(em in dU){dU[em].destroy();delete dU[em]}}if(ej&&ej.text){if(!d4){d4=da.axisTitle=ch.text(ej.text,0,0,ej.useHTML).attr({zIndex:7,rotation:ej.rotation||0,align:ej.textAlign||{low:"left",middle:"center",high:"right"}[ej.align]}).css(ej.style).add();d4.isNew=true}el=d4.getBBox()[c4?"height":"width"];ek=b(ej.margin,c4?5:10)}de=eg*(dF.offset||bI[d8]);dB=ea+(d8!==2&&ea&&eg*dF.labels[c4?"y":"x"])+ek;bI[d8]=a5(bI[d8],dB+el+eg*de)}function dy(){var ej=dF.title,ev=dF.stackLabels,ei=dF.alternateGridColor,eh=dF.lineWidth,ey,em,ep,es=cK.hasRendered,er=es&&m(dE)&&!isNaN(dE),ex=dX.length&&m(d9)&&m(dk);dh=c4?bv:bF;dL=dh/((dk-d9)||1);dK=c4?M:cb;if(ex||dj){if(dM&&!dS){var eo=d9+(dZ[0]-d9)%dM;for(;eo<=dk;eo+=dM){if(!ee[eo]){ee[eo]=new dq(eo,true)}if(er&&ee[eo].isNew){ee[eo].render(null,true)}ee[eo].isActive=true;ee[eo].render()}}br(dZ,function(eA,ez){if(!dj||(eA>=d9&&eA<=dk)){if(er&&dU[eA].isNew){dU[eA].render(ez,true)}dU[eA].isActive=true;dU[eA].render(ez)}});if(ei){br(dZ,function(eA,ez){if(ez%2===0&&eA<dk){if(!dd[eA]){dd[eA]=new dO()}dd[eA].options={from:eA,to:dZ[ez+1]!==aO?dZ[ez+1]:dk,color:ei};dd[eA].render();dd[eA].isActive=true}})}if(!es){br((dF.plotLines||[]).concat(dF.plotBands||[]),function(ez){db.push(new dO(ez).render())})}}br([dU,ee,dd],function(ez){var eA;for(eA in ez){if(!ez[eA].isActive){ez[eA].destroy();delete ez[eA]}else{ez[eA].isActive=false}}});if(eh){ey=M+(dP?bv:0)+de;em=bN-cb-(dP?bF:0)+de;ep=ch.crispLine([aI,c4?M:ey,c4?em:cz,aJ,c4?cX-cF:ey,c4?em:bN-cb],eh);if(!d3){d3=ch.path(ep).attr({stroke:dF.lineColor,"stroke-width":eh,zIndex:7}).add()}else{d3.animate({d:ep})}}if(d4){var et=c4?M:cz,el=v(ej.style.fontSize||12),eq={low:et+(c4?0:dh),middle:et+dh/2,high:et+(c4?dh:0)}[ej.align],eu=(c4?cz+bF:M)+(c4?1:-1)*(dP?-1:1)*dB+(d8===2?el:0);d4[d4.isNew?"attr":"animate"]({x:c4?eq:eu+(dP?bv:0)+de+(ej.x||0),y:c4?eu-(dP?bF:0)+de:eq+(ej.y||0)});d4.isNew=false}if(ev&&ev.enabled){var ek,en,ew,eg=da.stackTotalGroup;if(!eg){da.stackTotalGroup=eg=ch.g("stack-labels").attr({visibility:aA,zIndex:6}).translate(M,cz).add()}for(ek in dD){en=dD[ek];for(ew in en){en[ew].render(eg)}}}da.isDirty=false}function cZ(eh){var eg=db.length;while(eg--){if(db[eg].id===eh){db[eg].destroy()}}}function dx(){if(L.resetTracker){L.resetTracker()}dy();br(db,function(eg){eg.render()});br(dX,function(eg){eg.isDirty=true})}function dw(eg,eh){da.categories=dW.categories=dS=eg;br(dX,function(ei){ei.translate();ei.setTooltipPoints(true)});da.isDirty=true;if(b(eh,true)){cK.redraw()}}function c7(){var eg;ar(da);for(eg in dD){bp(dD[eg]);dD[eg]=null}if(da.stackTotalGroup){da.stackTotalGroup=da.stackTotalGroup.destroy()}br([dU,ee,dd,db],function(eh){bp(eh)});br([d3,dl,d1,d4],function(eh){if(eh){eh.destroy()}});d3=dl=d1=d4=null}if(bC&&d7&&c5===aO){c5=true}aK(da,{addPlotBand:df,addPlotLine:df,adjustTickAmount:ef,categories:dS,getExtremes:c2,getPlotLinePath:c9,getThreshold:dI,isXAxis:d7,options:dF,plotLinesAndBands:db,getOffset:dY,render:dy,setCategories:dw,setExtremes:dN,setScale:dG,setTickPositions:dz,translate:dg,redraw:dx,removePlotBand:cZ,removePlotLine:cZ,reversed:c5,stacks:dD,destroy:c7});for(dt in dp){ao(da,dt,dp[dt])}dG()}function cC(){var c0={};function c1(c6,c5,c4,c3){if(!c0[c6]){var c2=ch.text(c5,0,0).css(cg.toolbar.itemStyle).align({align:"right",x:-cF-20,y:cz+30}).on("click",c3).attr({align:"right",zIndex:20}).add();c0[c6]=c2}}function cZ(c2){ae(c0[c2].element);c0[c2]=null}return{add:c1,remove:cZ}}function cN(c1){var da,dk=c1.borderWidth,cZ=c1.crosshairs,dc=[],di=c1.style,c0=c1.shared,dd=v(di.padding),de=dk+dd,db=true,c6,c3,dh=0,dg=0;di.padding=0;var c4=ch.g("tooltip").attr({zIndex:8}).add(),c7=ch.rect(de,de,0,0,c1.borderRadius,dk).attr({fill:c1.backgroundColor,"stroke-width":dk}).add(c4).shadow(c1.shadow),c5=ch.text("",dd+de,v(di.fontSize)+dd+de,c1.useHTML).attr({zIndex:1}).css(di).add(c4);c4.hide();function dj(){br(dc,function(dl){if(dl){dl.destroy()}});br([c7,c5,c4],function(dl){if(dl){dl.destroy()}});c7=c5=c4=null}function c9(){var ds=this,dm=ds.points||at(ds),dr=dm[0].series.xAxis,dl=ds.x,dq=dr&&dr.options.type==="datetime",dp=bg(dl)||dq,dn;dn=dp?['<span style="font-size: 10px">'+(dq?aP("%A, %b %e, %Y",dl):dl)+"</span>"]:[];br(dm,function(dt){dn.push(dt.point.tooltipFormatter(dp))});return dn.join("<br/>")}function df(dm,dl){dh=db?dm:(2*dh+dm)/3;dg=db?dl:(dg+dl)/2;c4.translate(dh,dg);if(bq(dm-dh)>1||bq(dl-dg)>1){cx=function(){df(dm,dl)}}else{cx=null}}function c8(){if(!db){var dl=cK.hoverPoints;c4.hide();br(dc,function(dm){if(dm){dm.hide()}});if(dl){br(dl,function(dm){dm.setState()})}cK.hoverPoints=null;db=true}}function c2(dA){var dv,du,dD,ds,dq,dp=0,dt={},dx,dr=[],dl=dA.tooltipPos,dB=c1.formatter||c9,dw=cK.hoverPoints,dn;if(c0){if(dw){br(dw,function(dE){dE.setState()})}cK.hoverPoints=dA;br(dA,function(dE){dE.setState(ab);dp+=dE.plotY;dr.push(dE.getLabelConfig())});dq=dA[0].plotX;dp=B(dp)/dA.length;dt={x:dA[0].category};dt.points=dr;dA=dA[0]}else{dt=dA.getLabelConfig()}dx=dB.call(dt);da=dA.series;dq=c0?dq:dA.plotX;dp=c0?dp:dA.plotY;dv=B(dl?dl[0]:(bC?bv-dp:dq));du=B(dl?dl[1]:(bC?bF-dq:dp));dD=c0||!dA.series.isCartesian||bP(dv,du);if(dx===false||!dD){c8()}else{if(db){c4.show();db=false}c5.attr({text:dx});ds=c5.getBBox();c6=ds.width+2*dd;c3=ds.height+2*dd;c7.attr({width:c6,height:c3,stroke:c1.borderColor||dA.color||da.color||"#606060"});dn=ah(c6,c3,M,cz,bv,bF,{x:dv,y:du});df(B(dn.x-de),B(dn.y-de))}if(cZ){cZ=at(cZ);var dz,dC=cZ.length,dy,dm;while(dC--){dm=dA.series[dC?"yAxis":"xAxis"];if(cZ[dC]&&dm){dz=dm.getPlotLinePath(dA[dC?"y":"x"],1);if(dc[dC]){dc[dC].attr({d:dz,visibility:aA})}else{dy={"stroke-width":cZ[dC].width||1,stroke:cZ[dC].color||"#C0C0C0",zIndex:2};if(cZ[dC].dashStyle){dy.dashstyle=cZ[dC].dashStyle}dc[dC]=ch.path(dz).attr(dy).add()}}}}}return{shared:c0,refresh:c2,hide:c8,destroy:dj}}function cJ(c1){var df,de,dc,cZ,db=bV.zoomType,da=/x/.test(db),c9=/y/.test(db),dd=(da&&!bC)||(c9&&bC),c0=(c9&&!bC)||(da&&bC);function c4(dk){var di,dn=aN&&T.width/T.body.scrollWidth-1,dj,dm,dh,dl;dk=dk||aR.event;if(!dk.target){dk.target=dk.srcElement}di=dk.touches?dk.touches.item(0):dk;if(dk.type!=="mousemove"||aR.opera||dn){cm=y(ct);dj=cm.left;dm=cm.top}if(bi){dh=dk.x;dl=dk.y}else{if(di.layerX===aO){dh=di.pageX-dj;dl=di.pageY-dm}else{dh=dk.layerX;dl=dk.layerY}}if(dn){dh+=B((dn+1)*dj-dj);dl+=B((dn+1)*dm-dm)}return aK(dk,{chartX:dh,chartY:dl})}function c3(dh){var di={xAxis:[],yAxis:[]};br(cB,function(dj){var dm=dj.translate,dl=dj.isXAxis,dk=bC?!dl:dl;di[dl?"xAxis":"yAxis"].push({axis:dj,value:dm(dk?dh.chartX-M:bF-dh.chartY+cz,true)})});return di}function c2(dm){var dp,dq,dh=cK.hoverPoint,dn=cK.hoverSeries,dk,dj,di=cX,dl=bC?dm.chartY:dm.chartX-M;if(bG&&c1.shared){dq=[];dk=ck.length;for(dj=0;dj<dk;dj++){if(ck[dj].visible&&ck[dj].tooltipPoints.length){dp=ck[dj].tooltipPoints[dl];dp._dist=bq(dl-dp.plotX);di=ap(di,dp._dist);dq.push(dp)}}dk=dq.length;while(dk--){if(dq[dk]._dist>di){dq.splice(dk,1)}}if(dq.length&&(dq[0].plotX!==bK)){bG.refresh(dq);bK=dq[0].plotX}}if(dn&&dn.tracker){dp=dn.tooltipPoints[dl];if(dp&&dp!==dh){dp.onMouseOver()}}}function c8(){var di=cK.hoverSeries,dh=cK.hoverPoint;if(dh){dh.onMouseOut()}if(di){di.onMouseOut()}if(bG){bG.hide()}bK=null}function c7(){if(cZ){var dj={xAxis:[],yAxis:[]},dh=cZ.getBBox(),dk=dh.x-M,di=dh.y-cz;if(dc){br(cB,function(dm){var dr=dm.translate,dq=dm.isXAxis,dp=bC?!dq:dq,dl=dr(dp?dk:bF-di-dh.height,true,0,0,1),dn=dr(dp?dk+dh.width:bF-di,true,0,0,1);dj[dq?"xAxis":"yAxis"].push({axis:dm,min:ap(dl,dn),max:a5(dl,dn)})});a3(cK,"selection",dj,bz)}cZ=cZ.destroy()}cK.mouseIsDown=bW=dc=false;ar(T,bf?"touchend":"mouseup",c7)}function c6(dj){var di=m(dj.pageX)?dj.pageX:dj.page.x,dh=m(dj.pageX)?dj.pageY:dj.page.y;if(cm&&!bP(di-cm.left-M,dh-cm.top-cz)){c8()}}function c5(){var di=true;ct.onmousedown=function(dj){dj=c4(dj);if(!bf&&dj.preventDefault){dj.preventDefault()}cK.mouseIsDown=bW=true;df=dj.chartX;de=dj.chartY;ao(T,bf?"touchend":"mouseup",c7)};var dh=function(dn){if(dn&&dn.touches&&dn.touches.length>1){return}dn=c4(dn);if(!bf){dn.returnValue=false}var dj=dn.chartX,dp=dn.chartY,dl=!bP(dj-M,dp-cz);if(!cm){cm=y(ct)}if(bf&&dn.type==="touchstart"){if(an(dn.target,"isTracker")){if(!cK.runTrackerClick){dn.preventDefault()}}else{if(!cY&&!dl){dn.preventDefault()}}}if(dl){if(dj<M){dj=M}else{if(dj>M+bv){dj=M+bv}}if(dp<cz){dp=cz}else{if(dp>cz+bF){dp=cz+bF}}}if(bW&&dn.type!=="touchstart"){dc=Math.sqrt(Math.pow(df-dj,2)+Math.pow(de-dp,2));if(dc>10){if(co&&(da||c9)&&bP(df-M,de-cz)){if(!cZ){cZ=ch.rect(M,cz,dd?1:bv,c0?1:bF,0).attr({fill:bV.selectionMarkerFill||"rgba(69,114,167,0.25)",zIndex:7}).add()}}if(cZ&&dd){var dm=dj-df;cZ.attr({width:bq(dm),x:(dm>0?0:dm)+df})}if(cZ&&c0){var dk=dp-de;cZ.attr({height:bq(dk),y:(dk>0?0:dk)+de})}}}else{if(!dl){c2(dn)}}di=dl;return dl||!co};ct.onmousemove=dh;ao(ct,"mouseleave",c8);ao(T,"mousemove",c6);ct.ontouchstart=function(dj){if(da||c9){ct.onmousedown(dj)}dh(dj)};ct.ontouchmove=dh;ct.ontouchend=function(){if(dc){c8()}};ct.onclick=function(dm){var dk=cK.hoverPoint;dm=c4(dm);dm.cancelBubble=true;if(!dc){if(dk&&an(dm.target,"isTracker")){var dl=dk.plotX,dj=dk.plotY;aK(dk,{pageX:cm.left+M+(bC?bv-dj:dl),pageY:cm.top+cz+(bC?bF-dl:dj)});a3(dk.series,"click",aK(dm,{point:dk}));dk.firePointEvent("click",dm)}else{aK(dm,c3(dm));if(bP(dm.chartX-M,dm.chartY-cz)){a3(cK,"click",dm)}}}dc=false}}function dg(){if(cK.trackerGroup){cK.trackerGroup=cq=cK.trackerGroup.destroy()}ar(T,"mousemove",c6);ct.onclick=ct.onmousedown=ct.onmousemove=ct.ontouchstart=ct.ontouchend=ct.ontouchmove=null}bZ=function(){if(!cq){cK.trackerGroup=cq=ch.g("tracker").attr({zIndex:9}).add()}else{cq.translate(M,cz);if(bC){cq.attr({width:cK.plotWidth,height:cK.plotHeight}).invert()}}};bZ();if(c1.enabled){cK.tooltip=bG=cN(c1)}c5();cp=setInterval(function(){if(cx){cx()}},32);aK(this,{zoomX:da,zoomY:c9,resetTracker:c8,destroy:dg})}var cO=function(){var c4=cK.options.legend;if(!c4.enabled){return}var dr=c4.layout==="horizontal",ds=c4.symbolWidth,cZ=c4.symbolPadding,di,dq=c4.style,c7=c4.itemStyle,c8=c4.itemHoverStyle,c1=c4.itemHiddenStyle,dh=v(dq.padding),db=18,dn=4+dh+ds+cZ,c2,c0,dj,dl=0,dd,dg=c4.borderWidth,c9=c4.backgroundColor,c5,dk,df=c4.width,dc=cK.series,dm=c4.reversed;function du(dD,dw){var dx=dD.legendItem,dy=dD.legendLine,dv=dD.legendSymbol,dB=c1.color,dA=dw?c4.itemStyle.color:dB,dz=dw?dD.color:dB,dC=dw?dD.pointAttr[ai]:{stroke:dB,fill:dB};if(dx){dx.css({fill:dA})}if(dy){dy.attr({stroke:dz})}if(dv){dv.attr(dC)}}function dp(dx,dA,dw){var dv=dx.legendItem,dz=dx.legendLine,dB=dx.legendSymbol,dy=dx.checkbox;if(dv){dv.attr({x:dA,y:dw})}if(dz){dz.translate(dA,dw-4)}if(dB){dB.attr({x:dA+dB.xOff,y:dw+dB.yOff})}if(dy){dy.x=dA;dy.y=dw}}function c6(dv){var dw=dv.checkbox;br(["legendItem","legendLine","legendSymbol"],function(dx){if(dv[dx]){dv[dx].destroy()}});if(dw){ae(dv.checkbox)}}function dt(){if(dd){dd=dd.destroy()}if(c5){c5=c5.destroy()}}function da(){br(di,function(dv){var dw=dv.checkbox,dx=c5.alignAttr;if(dw){aL(dw,{left:(dx.translateX+dv.legendItemWidth+dw.x-40)+ay,top:(dx.translateY+dw.y-11)+ay})}})}function de(dE){var dF,dA,dv,dx,dw,dz,dD=dE.legendItem,dy=dE.series||dE,dG=dy.options,dB=(dG&&dG.borderWidth)||0;if(!dD){dz=/^(bar|pie|area|column)$/.test(dy.type);dE.legendItem=dD=ch.text(c4.labelFormatter.call(dE),0,0).css(dE.visible?c7:c1).on("mouseover",function(){dE.setState(ab);dD.css(c8)}).on("mouseout",function(){dD.css(dE.visible?c7:c1);dE.setState()}).on("click",function(){var dI="legendItemClick",dH=function(){dE.setVisible()};if(dE.firePointEvent){dE.firePointEvent(dI,null,dH)}else{a3(dE,dI,null,dH)}}).attr({zIndex:2}).add(c5);if(!dz&&dG&&dG.lineWidth){var dC={"stroke-width":dG.lineWidth,zIndex:2};if(dG.dashStyle){dC.dashstyle=dG.dashStyle}dE.legendLine=ch.path([aI,-ds-cZ,0,aJ,-cZ,0]).attr(dC).add(c5)}if(dz){dv=ch.rect((dx=-ds-cZ),(dw=-11),ds,12,2).attr({zIndex:3}).add(c5)}else{if(dG&&dG.marker&&dG.marker.enabled){dv=ch.symbol(dE.symbol,(dx=-ds/2-cZ),(dw=-4),dG.marker.radius).attr({zIndex:3}).add(c5)}}if(dv){dv.xOff=dx+(dB%2/2);dv.yOff=dw+(dB%2/2)}dE.legendSymbol=dv;du(dE,dE.visible);if(dG&&dG.showCheckbox){dE.checkbox=aG("input",{type:"checkbox",checked:dE.selected,defaultChecked:dE.selected},c4.itemCheckboxStyle,ct);ao(dE.checkbox,"click",function(dH){var dI=dH.target;a3(dE,"checkboxClick",{checked:dI.checked},function(){dE.select()})})}}dF=dD.getBBox();dA=dE.legendItemWidth=c4.itemWidth||ds+cZ+dF.width+dh;dl=dF.height;if(dr&&c2-dn+dA>(df||(cX-2*dh-dn))){c2=dn;c0+=dl}dj=c0;dp(dE,c2,c0);if(dr){c2+=dA}else{c0+=dl}dk=df||a5(dr?c2-dn:dA,dk)}function c3(){c2=dn;c0=db;dk=0;dj=0;if(!c5){c5=ch.g("legend").attr({zIndex:7}).add()}di=[];br(dc,function(dz){var dy=dz.options;if(!dy.showInLegend){return}di=di.concat(dy.legendType==="point"?dz.data:dz)});V(di,function(dz,dy){return(dz.options.legendIndex||0)-(dy.options.legendIndex||0)});if(dm){di.reverse()}br(di,de);bL=df||dk;bD=dj-db+dl;if(dg||c9){bL+=2*dh;bD+=2*dh;if(!dd){dd=ch.rect(0,0,bL,bD,c4.borderRadius,dg||0).attr({stroke:c4.borderColor,"stroke-width":dg||0,fill:c9||aw}).add(c5).shadow(c4.shadow);dd.isNew=true}else{if(bL>0&&bD>0){dd[dd.isNew?"attr":"animate"](dd.crisp(null,null,null,bL,bD));dd.isNew=false}}dd[di.length?"show":"hide"]()}var dw=["left","right","top","bottom"],dx,dv=4;while(dv--){dx=dw[dv];if(dq[dx]&&dq[dx]!=="auto"){c4[dv<2?"align":"verticalAlign"]=dx;c4[dv<2?"x":"y"]=v(dq[dx])*(dv%2?-1:1)}}if(di.length){c5.align(aK(c4,{width:bL,height:bD}),true,ca)}if(!bT){da()}}c3();ao(cK,"endResize",da);return{colorizeItem:du,destroyItem:c6,renderLegend:c3,destroy:dt}};function cR(cZ){var c0=cZ.type||bV.type||bV.defaultSeriesType,c3=bm[c0],c1,c2=cK.hasRendered;if(c2){if(bC&&c0==="column"){c3=bm.bar}else{if(!bC&&c0==="bar"){c3=bm.column}}}c1=new c3();c1.init(cK,cZ);if(!c2&&c1.inverted){bC=true}if(c1.isCartesian){co=c1.isCartesian}ck.push(c1);return c1}function cQ(cZ,c2,c1){var c0;if(cZ){aM(c1,cK);c2=b(c2,true);a3(cK,"addSeries",{options:cZ},function(){c0=cR(cZ);c0.isDirty=true;cK.isDirtyLegend=true;if(c2){cK.redraw()}})}return c0}bP=function(cZ,c0){return cZ>=0&&cZ<=bv&&c0>=0&&c0<=bF};function cl(){if(bV.alignTicks!==false){br(cB,function(cZ){cZ.adjustTickAmount()})}by=null}function b3(c6){var c1=cK.isDirtyLegend,c0,c5=cK.isDirtyBox,cZ=ck.length,c3=cZ,c2=cK.clipRect,c4;aM(c6,cK);while(c3--){c4=ck[c3];if(c4.isDirty&&c4.options.stacking){c0=true;break}}if(c0){c3=cZ;while(c3--){c4=ck[c3];if(c4.options.stacking){c4.isDirty=true}}}br(ck,function(c7){if(c7.isDirty){c7.cleanData();c7.getSegments();if(c7.options.legendType==="point"){c1=true}}});if(c1&&cS.renderLegend){cS.renderLegend();cK.isDirtyLegend=false}if(co){if(!bT){by=null;br(cB,function(c7){c7.setScale()})}cl();cG();br(cB,function(c7){if(c7.isDirty||c5){c7.redraw();c5=true}})}if(c5){cn();bZ();if(c2){a8(c2);c2.animate({width:cK.plotSizeX,height:cK.plotSizeY})}}br(ck,function(c7){if(c7.isDirty&&c7.visible&&(!c7.isCartesian||c7.xAxis)){c7.redraw()}});if(L&&L.resetTracker){L.resetTracker()}a3(cK,"redraw")}function bY(c0){var cZ=cg.loading;if(!bx){bx=aG(aC,{className:"highcharts-loading"},aK(cZ.style,{left:M+ay,top:cz+ay,width:bv+ay,height:bF+ay,zIndex:10,display:aw}),ct);cI=aG("span",null,cZ.labelStyle,bx)}cI.innerHTML=c0||cg.lang.loading;if(!cV){aL(bx,{opacity:0,display:""});au(bx,{opacity:cZ.style.opacity},{duration:cZ.showDuration});cV=true}}function cP(){au(bx,{opacity:0},{duration:cg.loading.hideDuration,complete:function(){aL(bx,{display:aw})}});cV=false}function cy(c2){var c0,cZ,c1;for(c0=0;c0<cB.length;c0++){if(cB[c0].options.id===c2){return cB[c0]}}for(c0=0;c0<ck.length;c0++){if(ck[c0].options.id===c2){return ck[c0]}}for(c0=0;c0<ck.length;c0++){c1=ck[c0].data;for(cZ=0;cZ<c1.length;cZ++){if(c1[cZ].id===c2){return c1[cZ]}}}return null}function b7(){var cZ=cg.xAxis||{},c1=cg.yAxis||{},c0;cZ=at(cZ);br(cZ,function(c3,c2){c3.index=c2;c3.isX=true});c1=at(c1);br(c1,function(c3,c2){c3.index=c2});cB=cZ.concat(c1);cK.xAxis=[];cK.yAxis=[];cB=z(cB,function(c2){c0=new bM(c2);cK[c0.isXAxis?"xAxis":"yAxis"].push(c0);return c0});cl()}function ci(){var cZ=[];br(ck,function(c0){cZ=cZ.concat(u(c0.data,function(c1){return c1.selected}))});return cZ}function cD(){return u(ck,function(cZ){return cZ.selected})}b4=function(){a3(cK,"selection",{resetSelection:true},bz);cK.toolbar.remove("zoom")};bz=function(c0){var c1=aY.lang,cZ=cK.pointCount<100;cK.toolbar.add("zoom",c1.resetZoom,c1.resetZoomTitle,b4);if(!c0||c0.resetSelection){br(cB,function(c2){c2.setExtremes(null,null,false,cZ)})}else{br(c0.xAxis.concat(c0.yAxis),function(c2){var c3=c2.axis;if(cK.tracker[c3.isXAxis?"zoomX":"zoomY"]){c3.setExtremes(c2.min,c2.max,false,cZ)}})}b3()};function cU(c0,cZ){cd=E(cg.title,c0);cv=E(cg.subtitle,cZ);br([["title",c0,cd],["subtitle",cZ,cv]],function(c1){var c2=c1[0],c5=cK[c2],c4=c1[1],c3=c1[2];if(c5&&c4){c5=c5.destroy()}if(c3&&c3.text&&!c5){cK[c2]=ch.text(c3.text,0,0,c3.useHTML).attr({align:c3.align,"class":"highcharts-"+c2,zIndex:1}).css(c3.style).add().align(c3,false,ca)}})}function cT(){cM=(cA||b1).offsetWidth;b8=(cA||b1).offsetHeight;cK.chartWidth=cX=bV.width||cM||600;cK.chartHeight=bN=bV.height||(b8>19?b8:400)}function cf(){b1=bV.renderTo;b5=H+Z++;if(bg(b1)){b1=T.getElementById(b1)}b1.innerHTML="";if(!b1.offsetWidth){cA=b1.cloneNode(0);aL(cA,{position:bh,top:"-9999px",display:""});T.body.appendChild(cA)}cT();cK.container=ct=aG(aC,{className:"highcharts-container"+(bV.className?" "+bV.className:""),id:b5},aK({position:p,overflow:aH,width:cX+ay,height:bN+ay,textAlign:"left"},bV.style),cA||b1);cK.renderer=ch=bV.forExport?new w(ct,cX,bN,true):new aU(ct,cX,bN);var cZ,c0;if(h&&ct.getBoundingClientRect){cZ=function(){aL(ct,{left:0,top:0});c0=ct.getBoundingClientRect();aL(ct,{left:(-(c0.left-v(c0.left)))+ay,top:(-(c0.top-v(c0.top)))+ay})};cZ();ao(aR,"resize",cZ);ao(cK,"destroy",function(){ar(aR,"resize",cZ)})}}cG=function(){var cZ=cg.legend,c3=b(cZ.margin,10),c1=cZ.x,c0=cZ.y,c5=cZ.align,c4=cZ.verticalAlign,c2;bH();if((cK.title||cK.subtitle)&&!m(bS)){c2=a5((cK.title&&!cd.floating&&!cd.verticalAlign&&cd.y)||0,(cK.subtitle&&!cv.floating&&!cv.verticalAlign&&cv.y)||0);if(c2){cz=a5(cz,c2+b(cd.margin,15)+cW)}}if(cZ.enabled&&!cZ.floating){if(c5==="right"){if(!m(bQ)){cF=a5(cF,bL-c1+c3+b2)}}else{if(c5==="left"){if(!m(cc)){M=a5(M,bL+c1+c3+cL)}}else{if(c4==="top"){if(!m(bS)){cz=a5(cz,bD+c0+c3+cW)}}else{if(c4==="bottom"){if(!m(b9)){cb=a5(cb,bD-c0+c3+bX)}}}}}}if(co){br(cB,function(c6){c6.getOffset()})}if(!m(cc)){M+=bI[3]}if(!m(bS)){cz+=bI[0]}if(!m(b9)){cb+=bI[2]}if(!m(bQ)){cF+=bI[1]}cE()};function cw(){var c0;function cZ(){var c2=bV.width||b1.offsetWidth,c1=bV.height||b1.offsetHeight;if(c2&&c1){if(c2!==cM||c1!==b8){clearTimeout(c0);c0=setTimeout(function(){bB(c2,c1,false)},100)}cM=c2;b8=c1}}ao(aR,"resize",cZ);ao(cK,"destroy",function(){ar(aR,"resize",cZ)})}function cr(){a3(cK,"endResize",null,function(){bT-=1})}bB=function(c1,cZ,c2){var c3=cK.title,c0=cK.subtitle;bT+=1;aM(c2,cK);ce=bN;bJ=cX;cK.chartWidth=cX=B(c1);cK.chartHeight=bN=B(cZ);aL(ct,{width:cX+ay,height:bN+ay});ch.setSize(cX,bN,c2);bv=cX-M-cF;bF=bN-cz-cb;by=null;br(cB,function(c4){c4.isDirty=true;c4.setScale()});br(ck,function(c4){c4.isDirty=true});cK.isDirtyLegend=true;cK.isDirtyBox=true;cG();if(c3){c3.align(null,null,ca)}if(c0){c0.align(null,null,ca)}b3(c2);ce=null;a3(cK,"resize");if(q===false){cr()}else{setTimeout(cr,(q&&q.duration)||500)}};cE=function(){cK.plotLeft=M=B(M);cK.plotTop=cz=B(cz);cK.plotWidth=bv=B(cX-M-cF);cK.plotHeight=bF=B(bN-cz-cb);cK.plotSizeX=bC?bF:bv;cK.plotSizeY=bC?bv:bF;ca={x:cL,y:cW,width:cX-cL-b2,height:bN-cW-bX}};bH=function(){cz=b(bS,cW);cF=b(bQ,b2);cb=b(b9,bX);M=b(cc,cL);bI=[0,0,0,0]};cn=function(){var c2=bV.borderWidth||0,c0=bV.backgroundColor,c1=bV.plotBackgroundColor,c4=bV.plotBackgroundImage,cZ,c3={x:M,y:cz,width:bv,height:bF};cZ=c2+(bV.shadow?8:0);if(c2||c0){if(!bO){bO=ch.rect(cZ/2,cZ/2,cX-cZ,bN-cZ,bV.borderRadius,c2).attr({stroke:bV.borderColor,"stroke-width":c2,fill:c0||aw}).add().shadow(bV.shadow)}else{bO.animate(bO.crisp(null,null,null,cX-cZ,bN-cZ))}}if(c1){if(!bA){bA=ch.rect(M,cz,bv,bF,0).attr({fill:c1}).add().shadow(bV.plotShadow)}else{bA.animate(c3)}}if(c4){if(!cj){cj=ch.image(c4,M,cz,bv,bF).add()}else{cj.animate(c3)}}if(bV.plotBorderWidth){if(!bE){bE=ch.rect(M,cz,bv,bF,0,bV.plotBorderWidth).attr({stroke:bV.plotBorderColor,"stroke-width":bV.plotBorderWidth,zIndex:4}).add()}else{bE.animate(bE.crisp(null,M,cz,bv,bF))}}cK.isDirtyBox=false};function b6(){var c1=cg.labels,cZ=cg.credits,c0;cU();cS=cK.legend=new cO();cG();br(cB,function(c2){c2.setTickPositions(true)});cl();cG();cn();if(co){br(cB,function(c2){c2.render()})}if(!cK.seriesGroup){cK.seriesGroup=ch.g("series-group").attr({zIndex:3}).add()}br(ck,function(c2){c2.translate();c2.setTooltipPoints();c2.render()});if(c1.items){br(c1.items,function(){var c3=aK(c1.style,this.style),c2=v(c3.left)+M,c4=v(c3.top)+cz+12;delete c3.left;delete c3.top;ch.text(this.html,c2,c4).attr({zIndex:2}).css(c3).add()})}if(!cK.toolbar){cK.toolbar=cC()}if(cZ.enabled&&!cK.credits){c0=cZ.href;cK.credits=ch.text(cZ.text,0,0).on("click",function(){if(c0){location.href=c0}}).attr({align:cZ.position.align,zIndex:8}).css(cZ.style).add().align(cZ.position)}bZ();cK.hasRendered=true;if(cA){b1.appendChild(ct);ae(cA)}}function bw(){var c0,cZ=ct&&ct.parentNode;if(cK===null){return}a3(cK,"destroy");ar(aR,"unload",bw);ar(cK);c0=cB.length;while(c0--){cB[c0]=cB[c0].destroy()}c0=ck.length;while(c0--){ck[c0]=ck[c0].destroy()}br(["title","subtitle","seriesGroup","clipRect","credits","tracker"],function(c1){var c2=cK[c1];if(c2){cK[c1]=c2.destroy()}});br([bO,bE,bA,cS,bG,ch,L],function(c1){if(c1&&c1.destroy){c1.destroy()}});bO=bE=bA=cS=bG=ch=L=null;if(ct){ct.innerHTML="";ar(ct);if(cZ){ae(ct)}ct=null}clearInterval(cp);for(c0 in cK){delete cK[c0]}cK=null}function cs(){var cZ="onreadystatechange",c0="complete";if(!c&&aR==aR.top&&T.readyState!==c0){T.attachEvent(cZ,function(){T.detachEvent(cZ,cs);if(T.readyState===c0){cs()}});return}cf();bH();cE();br(cg.series||[],function(c1){cR(c1)});cK.inverted=bC=b(bC,cg.chart.inverted);b7();cK.render=b6;cK.tracker=L=new cJ(cg.tooltip);b6();a3(cK,"load");if(bU){bU.apply(cK,[cK])}br(cK.callbacks,function(c1){c1.apply(cK,[cK])})}ao(aR,"unload",bw);if(bV.reflow!==false){ao(cK,"load",cw)}if(b0){for(bR in b0){ao(cK,bR,b0[bR])}}cK.options=cg;cK.series=ck;cK.addSeries=cQ;cK.animation=b(bV.animation,true);cK.destroy=bw;cK.get=cy;cK.getSelectedPoints=ci;cK.getSelectedSeries=cD;cK.hideLoading=cP;cK.isInsidePlot=bP;cK.redraw=b3;cK.setSize=bB;cK.setTitle=cU;cK.showLoading=bY;cK.pointCount=0;cK.counters=new I();cs()}bj.prototype.callbacks=[];var j=function(){};j.prototype={init:function(bv,M){var L=this,bw=bv.chart.counters,bx;L.series=bv;L.applyOptions(M);L.pointAttr={};if(bv.options.colorByPoint){bx=bv.chart.options.colors;if(!L.options){L.options={}}L.color=L.options.color=L.color||bx[bw.color++];bw.wrapColor(bx.length)}bv.chart.pointCount++;return L},applyOptions:function(M){var L=this,bv=L.series;L.config=M;if(af(M)||M===null){L.y=M}else{if(Q(M)&&!af(M.length)){aK(L,M);L.options=M}else{if(bg(M[0])){L.name=M[0];L.y=M[1]}else{if(af(M[0])){L.x=M[0];L.y=M[1]}}}}if(L.x===aO){L.x=bv.autoIncrement()}},destroy:function(){var L=this,M=L.series,bv=M.chart.hoverPoints,bw;M.chart.pointCount--;if(bv){L.setState();a2(bv,L)}if(L===M.chart.hoverPoint){L.onMouseOut()}ar(L);br(["graphic","tracker","group","dataLabel","connector","shadowGroup"],function(bx){if(L[bx]){L[bx].destroy()}});if(L.legendItem){L.series.chart.legend.destroyItem(L)}for(bw in L){L[bw]=null}},getLabelConfig:function(){var L=this;return{x:L.category,y:L.y,series:L.series,point:L,percentage:L.percentage,total:L.total||L.stackTotal}},select:function(bx,M){var L=this,bv=L.series,bw=bv.chart;bx=b(bx,!L.selected);L.firePointEvent(bx?"select":"unselect",{accumulate:M},function(){L.selected=bx;L.setState(bx&&C);if(!M){br(bw.getSelectedPoints(),function(by){if(by.selected&&by!==L){by.selected=false;by.setState(ai);by.firePointEvent("unselect")}})}})},onMouseOver:function(){var L=this,bv=L.series.chart,bw=bv.tooltip,M=bv.hoverPoint;if(M&&M!==L){M.onMouseOut()}L.firePointEvent("mouseOver");if(bw&&!bw.shared){bw.refresh(L)}L.setState(ab);bv.hoverPoint=L},onMouseOut:function(){var L=this;L.firePointEvent("mouseOut");L.setState();L.series.chart.hoverPoint=null},tooltipFormatter:function(bv){var L=this,M=L.series;return['<span style="color:'+M.color+'">',(L.name||M.name),"</span>: ",(!bv?("<b>x = "+(L.name||L.x)+",</b> "):""),"<b>",(!bv?"y = ":""),L.y,"</b>"].join("")},update:function(M,bz,bx){var L=this,bv=L.series,by=L.graphic,bw=bv.chart;bz=b(bz,true);L.firePointEvent("update",{options:M},function(){L.applyOptions(M);if(Q(M)){bv.getAttribs();if(by){by.attr(L.pointAttr[bv.state])}}bv.isDirty=true;if(bz){bw.redraw(bx)}})},remove:function(by,bx){var L=this,M=L.series,bv=M.chart,bw=M.data;aM(bx,bv);by=b(by,true);L.firePointEvent("remove",null,function(){a2(bw,L);L.destroy();M.isDirty=true;if(by){bv.redraw()}})},firePointEvent:function(by,bw,M){var L=this,bx=this.series,bv=bx.options;if(bv.point.events[by]||(L.options&&L.options.events&&L.options.events[by])){this.importEvents()}if(by==="click"&&bv.allowPointSelect){M=function(bz){L.select(null,bz.ctrlKey||bz.metaKey||bz.shiftKey)}}a3(this,by,bw,M)},importEvents:function(){if(!this.hasImportedEvents){var L=this,M=E(L.series.options.point,L.options),bw=M.events,bv;L.events=bw;for(bv in bw){ao(L,bv,bw[bv])}this.hasImportedEvents=true}},setState:function(M){var bC=this,by=bC.series,bD=by.options.states,bv=bu[by.type].marker&&by.options.marker,bx=bv&&!bv.enabled,bw=bv&&bv.states[M],bz=bw&&bw.enabled===false,bB=by.stateMarkerGraphic,bA=by.chart,L=bC.pointAttr;M=M||ai;if(M===bC.state||(bC.selected&&M!==C)||(bD[M]&&bD[M].enabled===false)||(M&&(bz||(bx&&!bw.enabled)))){return}if(bC.graphic){bC.graphic.attr(L[M])}else{if(M){if(!bB){by.stateMarkerGraphic=bB=bA.renderer.circle(0,0,L[M].r).attr(L[M]).add(by.group)}bB.translate(bC.plotX,bC.plotY)}if(bB){bB[M?"show":"hide"]()}}bC.state=M}};var aE=function(){};aE.prototype={isCartesian:true,type:"line",pointClass:j,pointAttrToOptions:{stroke:"lineColor","stroke-width":"lineWidth",fill:"fillColor",r:"radius"},init:function(by,M){var bx=this,bw,bv,L=by.series.length;bx.chart=by;M=bx.setOptions(M);aK(bx,{index:L,options:M,name:M.name||"Series "+(L+1),state:ai,pointAttr:{},visible:M.visible!==false,selected:M.selected===true});bv=M.events;for(bw in bv){ao(bx,bw,bv[bw])}if((bv&&bv.click)||(M.point&&M.point.events&&M.point.events.click)||M.allowPointSelect){by.runTrackerClick=true}bx.getColor();bx.getSymbol();bx.setData(M.data,false)},autoIncrement:function(){var M=this,L=M.options,bv=M.xIncrement;bv=b(bv,L.pointStart,0);M.pointInterval=b(M.pointInterval,L.pointInterval,1);M.xIncrement=bv+M.pointInterval;return bv},cleanData:function(){var bw=this,bx=bw.chart,by=bw.data,bA,bv,bz=bx.smallestInterval,L,M;V(by,function(bC,bB){return(bC.x-bB.x)});if(bw.options.connectNulls){for(M=by.length-1;M>=0;M--){if(by[M].y===null&&by[M-1]&&by[M+1]){by.splice(M,1)}}}for(M=by.length-1;M>=0;M--){if(by[M-1]){L=by[M].x-by[M-1].x;if(L>0&&(bv===aO||L<bv)){bv=L;bA=M}}}if(bz===aO||bv<bz){bx.smallestInterval=bv}bw.closestPoints=bA},getSegments:function(){var L=-1,M=[],bv=this.data;br(bv,function(bw,bx){if(bw.y===null){if(bx>L+1){M.push(bv.slice(L+1,bx))}L=bx}else{if(bx===bv.length-1){M.push(bv.slice(L+1,bx+1))}}});this.segments=M},setOptions:function(bv){var L=this.chart.options.plotOptions,M=E(L[this.type],L.series,bv);return M},getColor:function(){var M=this.chart.options.colors,L=this.chart.counters;this.color=this.options.color||M[L.color++]||"#0000ff";L.wrapColor(M.length)},getSymbol:function(){var L=this.chart.options.symbols,M=this.chart.counters;this.symbol=this.options.marker.symbol||L[M.symbol++];M.wrapSymbol(L.length)},addPoint:function(bC,bB,M,bv){var bx=this,bw=bx.data,bA=bx.graph,L=bx.area,by=bx.chart,bz=(new bx.pointClass()).init(bx,bC);aM(bv,by);if(bA&&M){bA.shift=M}if(L){L.shift=M;L.isArea=true}bB=b(bB,true);bw.push(bz);if(M){bw[0].remove(false)}bx.getAttribs();bx.isDirty=true;if(bB){by.redraw()}},setData:function(bx,bz){var M=this,by=M.data,bw=M.initialColor,bv=M.chart,L=(by&&by.length)||0;M.xIncrement=null;if(m(bw)){bv.counters.color=bw}bx=z(at(bx||[]),function(bA){return(new M.pointClass()).init(M,bA)});while(L--){by[L].destroy()}M.data=bx;M.cleanData();M.getSegments();M.getAttribs();M.isDirty=true;bv.isDirtyBox=true;if(b(bz,true)){bv.redraw(false)}},remove:function(bw,bv){var L=this,M=L.chart;bw=b(bw,true);if(!L.isRemoving){L.isRemoving=true;a3(L,"remove",null,function(){L.destroy();M.isDirtyLegend=M.isDirtyBox=true;if(bw){M.redraw(bv)}})}L.isRemoving=false},translate:function(){var bx=this,bB=bx.chart,bA=bx.options.stacking,bz=bx.xAxis.categories,L=bx.yAxis,bw=bx.data,by=bw.length;while(by--){var bF=bw[by],M=bF.x,bD=bF.y,bC=bF.low,bE=L.stacks[(bD<0?"-":"")+bx.stackKey],bG,bv;bF.plotX=bx.xAxis.translate(M);if(bA&&bx.visible&&bE&&bE[M]){bG=bE[M];bv=bG.total;bG.cum=bC=bG.cum-bD;bD=bC+bD;if(bA==="percent"){bC=bv?bC*100/bv:0;bD=bv?bD*100/bv:0}bF.percentage=bv?bF.y*100/bv:0;bF.stackTotal=bv}if(m(bC)){bF.yBottom=L.translate(bC,0,1,0,1)}if(bD!==null){bF.plotY=L.translate(bD,0,1,0,1)}bF.clientX=bB.inverted?bB.plotHeight-bF.plotX:bF.plotX;bF.category=bz&&bz[bF.x]!==aO?bz[bF.x]:bF.x}},setTooltipPoints:function(bw){var by=this,bz=by.chart,M=bz.inverted,bx=[],bB=B((M?bz.plotTop:bz.plotLeft)+bz.plotSizeX),bA,bv,L=[];if(bw){by.tooltipPoints=null}br(by.segments,function(bC){bx=bx.concat(bC)});if(by.xAxis&&by.xAxis.reversed){bx=bx.reverse()}br(bx,function(bC,bD){bA=bx[bD-1]?bx[bD-1]._high+1:0;bv=bC._high=bx[bD+1]?(aa((bC.plotX+(bx[bD+1]?bx[bD+1].plotX:bB))/2)):bB;while(bA<=bv){L[M?bB-bA++:bA++]=bC}});by.tooltipPoints=L},onMouseOver:function(){var M=this,bv=M.chart,L=bv.hoverSeries;if(!bf&&bv.mouseIsDown){return}if(L&&L!==M){L.onMouseOut()}if(M.options.events.mouseOver){a3(M,"mouseOver")}if(M.tracker){M.tracker.toFront()}M.setState(ab);bv.hoverSeries=M},onMouseOut:function(){var bv=this,M=bv.options,bw=bv.chart,bx=bw.tooltip,L=bw.hoverPoint;if(L){L.onMouseOut()}if(bv&&M.events.mouseOut){a3(bv,"mouseOut")}if(bx&&!M.stickyTracking){bx.hide()}bv.setState();bw.hoverSeries=null},animate:function(bx){var M=this,bv=M.chart,L=M.clipRect,bw=M.options.animation;if(bw&&!Q(bw)){bw={}}if(bx){if(!L.isAnimating){L.attr("width",0);L.isAnimating=true}}else{L.animate({width:bv.plotSizeX},bw);this.animate=null}},drawPoints:function(){var bx=this,L,bw=bx.data,bA=bx.chart,M,bC,by,bB,bz,bv;if(bx.options.marker.enabled){by=bw.length;while(by--){bB=bw[by];M=bB.plotX;bC=bB.plotY;bv=bB.graphic;if(bC!==aO&&!isNaN(bC)){L=bB.pointAttr[bB.selected?C:ai];bz=L.r;if(bv){bv.animate({x:M,y:bC,r:bz})}else{bB.graphic=bA.renderer.symbol(b(bB.marker&&bB.marker.symbol,bx.symbol),M,bC,bz).attr(L).add(bx.group)}}}}},convertAttribs:function(bv,M,bA,bz){var bx=this.pointAttrToOptions,L,bw,by={};bv=bv||{};M=M||{};bA=bA||{};bz=bz||{};for(L in bx){bw=bx[L];by[L]=b(bv[bw],M[L],bA[L],bz[L])}return by},getAttribs:function(){var bB=this,bv=bu[bB.type].marker?bB.options.marker:bB.options,bH=bv.states,M=bH[ab],bC,bw=bB.color,bD={stroke:bw,fill:bw},bA=bB.data,bz,bF,by=[],L,bx=bB.pointAttrToOptions,bE,bG;if(bB.options.marker){M.radius=M.radius||bv.radius+2;M.lineWidth=M.lineWidth||bv.lineWidth+1}else{M.color=M.color||D(M.color||bw).brighten(M.brightness).get()}by[ai]=bB.convertAttribs(bv,bD);br([ab,C],function(bI){by[bI]=bB.convertAttribs(bH[bI],by[ai])});bB.pointAttr=by;bz=bA.length;while(bz--){bF=bA[bz];bv=(bF.options&&bF.options.marker)||bF.options;if(bv&&bv.enabled===false){bv.radius=0}bE=false;if(bF.options){for(bG in bx){if(m(bv[bx[bG]])){bE=true}}}if(bE){L=[];bH=bv.states||{};bC=bH[ab]=bH[ab]||{};if(!bB.options.marker){bC.color=D(bC.color||bF.options.color).brighten(bC.brightness||M.brightness).get()}L[ai]=bB.convertAttribs(bv,by[ai]);L[ab]=bB.convertAttribs(bH[ab],by[ab],L[ai]);L[C]=bB.convertAttribs(bH[C],by[C],L[ai])}else{L=by}bF.pointAttr=L}},destroy:function(){var bv=this,bw=bv.chart,L=bv.clipRect,bx=/\/5[0-9\.]+ (Safari|Mobile)\//.test(g),M,by;a3(bv,"destroy");ar(bv);if(bv.legendItem){bv.chart.legend.destroyItem(bv)}br(bv.data,function(bz){bz.destroy()});if(L&&L!==bw.clipRect){bv.clipRect=L.destroy()}br(["area","graph","dataLabelsGroup","group","tracker"],function(bz){if(bv[bz]){M=bx&&bz==="group"?"hide":"destroy";bv[bz][M]()}});if(bw.hoverSeries===bv){bw.hoverSeries=null}a2(bw.series,bv);for(by in bv){delete bv[by]}},drawDataLabels:function(){if(this.options.dataLabels.enabled){var by=this,bH,bF,bx=by.data,L=by.options,bJ=L.dataLabels,bE,bB=by.dataLabelsGroup,bD=by.chart,bC=bD.renderer,M=bD.inverted,bw=by.type,bv,bz=L.stacking,bG=bw==="column"||bw==="bar",bA=bJ.verticalAlign===null,bI=bJ.y===null;if(bG){if(bz){if(bA){bJ=E(bJ,{verticalAlign:"middle"})}if(bI){bJ=E(bJ,{y:{top:14,middle:4,bottom:-6}[bJ.verticalAlign]})}}else{if(bA){bJ=E(bJ,{verticalAlign:"top"})}}}if(!bB){bB=by.dataLabelsGroup=bC.g("data-labels").attr({visibility:by.visible?aA:aH,zIndex:6}).translate(bD.plotLeft,bD.plotTop).add()}else{bB.translate(bD.plotLeft,bD.plotTop)}bv=bJ.color;if(bv==="auto"){bv=null}bJ.style.color=b(bv,by.color,"black");br(bx,function(bQ){var bK=bQ.barX,bL=(bK&&bK+bQ.barW/2)||bQ.plotX||-999,bT=b(bQ.plotY,-999),bS=bQ.dataLabel,bN=bJ.align,bP=bI?(bQ.y>=0?-6:12):bJ.y;bE=bJ.formatter.call(bQ.getLabelConfig());bH=(M?bD.plotWidth-bT:bL)+bJ.x;bF=(M?bD.plotHeight-bL:bT)+bP;if(bw==="column"){bH+={left:-1,right:1}[bN]*bQ.barW/2||0}if(M&&bQ.y<0){bN="right";bH-=10}if(bS){if(M&&!bJ.y){bF=bF+v(bS.styles.lineHeight)*0.9-bS.getBBox().height/2}bS.attr({text:bE}).animate({x:bH,y:bF})}else{if(m(bE)){bS=bQ.dataLabel=bC.text(bE,bH,bF).attr({align:bN,rotation:bJ.rotation,zIndex:1}).css(bJ.style).add(bB);if(M&&!bJ.y){bS.attr({y:bF+v(bS.styles.lineHeight)*0.9-bS.getBBox().height/2})}}}if(bG&&L.stacking&&bS){var bR=bQ.barY,bM=bQ.barW,bO=bQ.barH;bS.align(bJ,null,{x:M?bD.plotWidth-bR-bO:bK,y:M?bD.plotHeight-bK-bM:bR,width:M?bO:bM,height:M?bM:bO})}})}},drawGraph:function(){var bA=this,bv=bA.options,bE=bA.chart,M=bA.graph,bB=[],bx,bJ=bA.area,bz=bA.group,bI=bv.lineColor||bA.color,L=bv.lineWidth,by=bv.dashStyle,bw,bH=bE.renderer,bC=bA.yAxis.getThreshold(bv.threshold||0),bK=/^area/.test(bA.type),bF=[],bG=[],bD;br(bA.segments,function(bN){bw=[];br(bN,function(bP,bQ){if(bA.getPointSpline){bw.push.apply(bw,bA.getPointSpline(bN,bP,bQ))}else{bw.push(bQ?aJ:aI);if(bQ&&bv.step){var bR=bN[bQ-1];bw.push(bP.plotX,bR.plotY)}bw.push(bP.plotX,bP.plotY)}});if(bN.length>1){bB=bB.concat(bw)}else{bF.push(bN[0])}if(bK){var bO=[],bM,bL=bw.length;for(bM=0;bM<bL;bM++){bO.push(bw[bM])}if(bL===3){bO.push(aJ,bw[1],bw[2])}if(bv.stacking&&bA.type!=="areaspline"){for(bM=bN.length-1;bM>=0;bM--){bO.push(bN[bM].plotX,bN[bM].yBottom)}}else{bO.push(aJ,bN[bN.length-1].plotX,bC,aJ,bN[0].plotX,bC)}bG=bG.concat(bO)}});bA.graphPath=bB;bA.singlePoints=bF;if(bK){bx=b(bv.fillColor,D(bA.color).setOpacity(bv.fillOpacity||0.75).get());if(bJ){bJ.animate({d:bG})}else{bA.area=bA.chart.renderer.path(bG).attr({fill:bx}).add(bz)}}if(M){a8(M);M.animate({d:bB})}else{if(L){bD={stroke:bI,"stroke-width":L};if(by){bD.dashstyle=by}bA.graph=bH.path(bB).attr(bD).add(bz).shadow(bv.shadow)}}},render:function(){var bw=this,by=bw.chart,bz,bA,bC=bw.options,M=bC.animation,bB=M&&bw.animate,L=bB?(M&&M.duration)||500:0,bv=bw.clipRect,bx=by.renderer;if(!bv){bv=bw.clipRect=!by.hasRendered&&by.clipRect?by.clipRect:bx.clipRect(0,0,by.plotSizeX,by.plotSizeY);if(!by.clipRect){by.clipRect=bv}}if(!bw.group){bz=bw.group=bx.g("series");if(by.inverted){bA=function(){bz.attr({width:by.plotWidth,height:by.plotHeight}).invert()};bA();ao(by,"resize",bA);ao(bw,"destroy",function(){ar(by,"resize",bA)})}bz.clip(bw.clipRect).attr({visibility:bw.visible?aA:aH,zIndex:bC.zIndex}).translate(by.plotLeft,by.plotTop).add(by.seriesGroup)}bw.drawDataLabels();if(bB){bw.animate(true)}if(bw.drawGraph){bw.drawGraph()}bw.drawPoints();if(bw.options.enableMouseTracking!==false){bw.drawTracker()}if(bB){bw.animate()}setTimeout(function(){bv.isAnimating=false;bz=bw.group;if(bz&&bv!==by.clipRect&&bv.renderer){bz.clip((bw.clipRect=by.clipRect));bv.destroy()}},L);bw.isDirty=false},redraw:function(){var L=this,M=L.chart,bv=L.group;if(bv){if(M.inverted){bv.attr({width:M.plotWidth,height:M.plotHeight})}bv.animate({translateX:M.plotLeft,translateY:M.plotTop})}L.translate();L.setTooltipPoints(true);L.render()},setState:function(bx){var bv=this,M=bv.options,bw=bv.graph,by=M.states,L=M.lineWidth;bx=bx||ai;if(bv.state!==bx){bv.state=bx;if(by[bx]&&by[bx].enabled===false){return}if(bx){L=by[bx].lineWidth||L+1}if(bw&&!bw.dashstyle){bw.attr({"stroke-width":L},bx?0:500)}}},setVisible:function(M,bE){var bx=this,bB=bx.chart,bA=bx.legendItem,bC=bx.group,bG=bx.tracker,bz=bx.dataLabelsGroup,L,bw,bv=bx.data,bD,bF=bB.options.chart.ignoreHiddenSeries,by=bx.visible;bx.visible=M=M===aO?!by:M;L=M?"show":"hide";if(bC){bC[L]()}if(bG){bG[L]()}else{bw=bv.length;while(bw--){bD=bv[bw];if(bD.tracker){bD.tracker[L]()}}}if(bz){bz[L]()}if(bA){bB.legend.colorizeItem(bx,M)}bx.isDirty=true;if(bx.options.stacking){br(bB.series,function(bH){if(bH.options.stacking&&bH.visible){bH.isDirty=true}})}if(bF){bB.isDirtyBox=true}if(bE!==false){bB.redraw()}a3(bx,L)},show:function(){this.setVisible(true)},hide:function(){this.setVisible(false)},select:function(M){var L=this;L.selected=M=(M===aO)?!L.selected:M;if(L.checkbox){L.checkbox.checked=M}a3(L,M?"select":"unselect")},drawTracker:function(){var by=this,bE=by.options,L=[].concat(by.graphPath),bB=L.length,bA=by.chart,M=bA.options.tooltip.snap,bC=by.tracker,bD=bE.cursor,bz=bD&&{cursor:bD},bx=by.singlePoints,bv,bw;if(bB){bw=bB+1;while(bw--){if(L[bw]===aI){L.splice(bw+1,0,L[bw+1]-M,L[bw+2],aJ)}if((bw&&L[bw]===aI)||bw===bB){L.splice(bw,0,aJ,L[bw-2]+M,L[bw-1])}}}for(bw=0;bw<bx.length;bw++){bv=bx[bw];L.push(aI,bv.plotX-M,bv.plotY,aJ,bv.plotX+M,bv.plotY)}if(bC){bC.attr({d:L})}else{by.tracker=bA.renderer.path(L).attr({isTracker:true,stroke:aT,fill:aw,"stroke-width":bE.lineWidth+2*M,visibility:by.visible?aA:aH,zIndex:bE.zIndex||1}).on(bf?"touchstart":"mouseover",function(){if(bA.hoverSeries!==by){by.onMouseOver()}}).on("mouseout",function(){if(!bE.stickyTracking){by.onMouseOut()}}).css(bz).add(bA.trackerGroup)}}};var X=a4(aE);bm.line=X;var x=a4(aE,{type:"area"});bm.area=x;var F=a4(aE,{type:"spline",getPointSpline:function(M,bG,bH){var bE=1.5,L=bE+1,bx=bG.plotX,bv=bG.plotY,bw=M[bH-1],bI=M[bH+1],bB,bA,bD,bC,bL;if(bH&&bH<M.length-1){var bz=bw.plotX,by=bw.plotY,bK=bI.plotX,bJ=bI.plotY,bF;bB=(bE*bx+bz)/L;bA=(bE*bv+by)/L;bD=(bE*bx+bK)/L;bC=(bE*bv+bJ)/L;bF=((bC-bA)*(bD-bx))/(bD-bB)+bv-bC;bA+=bF;bC+=bF;if(bA>by&&bA>bv){bA=a5(by,bv);bC=2*bv-bA}else{if(bA<by&&bA<bv){bA=ap(by,bv);bC=2*bv-bA}}if(bC>bJ&&bC>bv){bC=a5(bJ,bv);bA=2*bv-bC}else{if(bC<bJ&&bC<bv){bC=ap(bJ,bv);bA=2*bv-bC}}bG.rightContX=bD;bG.rightContY=bC}if(!bH){bL=[aI,bx,bv]}else{bL=["C",bw.rightContX||bw.plotX,bw.rightContY||bw.plotY,bB||bx,bA||bv,bx,bv];bw.rightContX=bw.rightContY=null}return bL}});bm.spline=F;var a=a4(F,{type:"areaspline"});bm.areaspline=a;var aZ=a4(aE,{type:"column",pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color",r:"borderRadius"},init:function(){aE.prototype.init.apply(this,arguments);var L=this,M=L.chart;M.hasColumn=true;if(M.hasRendered){br(M.series,function(bv){if(bv.type===L.type){bv.isDirty=true}})}},translate:function(){var bD=this,bG=bD.chart,bx=bD.options,bv=bx.stacking,bR=bx.borderWidth,bN=0,L=bD.xAxis.reversed,bJ=bD.xAxis.categories,bP={},M,bO;aE.prototype.translate.apply(bD);br(bG.series,function(bS){if(bS.type===bD.type&&bS.visible){if(bS.options.stacking){M=bS.stackKey;if(bP[M]===aO){bP[M]=bN++}bO=bP[M]}else{bO=bN++}bS.columnIndex=bO}});var bQ=bD.data,by=bD.closestPoints,bz=bq(bQ[1]?bQ[by].plotX-bQ[by-1].plotX:bG.plotSizeX/((bJ&&bJ.length)||1)),bL=bz*bx.groupPadding,bE=bz-2*bL,bK=bE/bN,bI=bx.pointWidth,bC=m(bI)?(bK-bI)/2:bK*bx.pointPadding,bA=a5(b(bI,bK-2*bC),1),bH=(L?bN-bD.columnIndex:bD.columnIndex)||0,bM=bC+(bL+bH*bK-(bz/2))*(L?-1:1),bw=bx.threshold||0,bF=bD.yAxis.getThreshold(bw),bB=b(bx.minPointLength,5);br(bQ,function(bY){var b0=bY.plotY,bV=bY.yBottom||bF,bS=bY.plotX+bM,bZ=bt(ap(b0,bV)),bW=bt(a5(b0,bV)-bZ),bX=bD.yAxis.stacks[(bY.y<0?"-":"")+bD.stackKey],bU,bT;if(bv&&bD.visible&&bX&&bX[bY.x]){bX[bY.x].setOffset(bM,bA)}if(bq(bW)<bB){if(bB){bW=bB;bZ=bq(bZ-bF)>bB?bV-bB:bF-(b0<=bF?bB:0)}bU=bZ-3}aK(bY,{barX:bS,barY:bZ,barW:bA,barH:bW});bY.shapeType="rect";bT=aK(bG.renderer.Element.prototype.crisp.apply({},[bR,bS,bZ,bA,bW]),{r:bx.borderRadius});if(bR%2){bT.y-=1;bT.height+=1}bY.shapeArgs=bT;bY.trackerArgs=m(bU)&&E(bY.shapeArgs,{height:a5(6,bW+3),y:bU})})},getSymbol:function(){},drawGraph:function(){},drawPoints:function(){var bv=this,L=bv.options,bw=bv.chart.renderer,bx,M;br(bv.data,function(by){var bz=by.plotY;if(bz!==aO&&!isNaN(bz)&&by.y!==null){bx=by.graphic;M=by.shapeArgs;if(bx){a8(bx);bx.animate(M)}else{by.graphic=bw[by.shapeType](M).attr(by.pointAttr[by.selected?C:ai]).add(bv.group).shadow(L.shadow)}}})},drawTracker:function(){var M=this,by=M.chart,bx=by.renderer,L,bz,bw=+new Date(),bC=M.options,bA=bC.cursor,bv=bA&&{cursor:bA},bB;br(M.data,function(bD){bz=bD.tracker;L=bD.trackerArgs||bD.shapeArgs;delete L.strokeWidth;if(bD.y!==null){if(bz){bz.attr(L)}else{bD.tracker=bx[bD.shapeType](L).attr({isTracker:bw,fill:aT,visibility:M.visible?aA:aH,zIndex:bC.zIndex||1}).on(bf?"touchstart":"mouseover",function(bE){bB=bE.relatedTarget||bE.fromElement;if(by.hoverSeries!==M&&an(bB,"isTracker")!==bw){M.onMouseOver()}bD.onMouseOver()}).on("mouseout",function(bE){if(!bC.stickyTracking){bB=bE.relatedTarget||bE.toElement;if(an(bB,"isTracker")!==bw){M.onMouseOut()}}}).css(bv).add(bD.group||by.trackerGroup)}}})},animate:function(bv){var L=this,M=L.data;if(!bv){br(M,function(bw){var by=bw.graphic,bx=bw.shapeArgs;if(by){by.attr({height:0,y:L.yAxis.translate(0,0,1)});by.animate({height:bx.height,y:bx.y},L.options.animation)}});L.animate=null}},remove:function(){var L=this,M=L.chart;if(M.hasRendered){br(M.series,function(bv){if(bv.type===L.type){bv.isDirty=true}})}aE.prototype.remove.apply(L,arguments)}});bm.column=aZ;var al=a4(aZ,{type:"bar",init:function(L){L.inverted=this.inverted=true;aZ.prototype.init.apply(this,arguments)}});bm.bar=al;var ad=a4(aE,{type:"scatter",translate:function(){var L=this;aE.prototype.translate.apply(L);br(L.data,function(M){M.shapeType="circle";M.shapeArgs={x:M.plotX,y:M.plotY,r:L.chart.options.tooltip.snap}})},drawTracker:function(){var M=this,bv=M.options.cursor,L=bv&&{cursor:bv},bw;br(M.data,function(bx){bw=bx.graphic;if(bw){bw.attr({isTracker:true}).on("mouseover",function(){M.onMouseOver();bx.onMouseOver()}).on("mouseout",function(){if(!M.options.stickyTracking){M.onMouseOut()}}).css(L)}})},cleanData:function(){}});bm.scatter=ad;var aj=a4(j,{init:function(){j.prototype.init.apply(this,arguments);var L=this,M;aK(L,{visible:L.visible!==false,name:b(L.name,"Slice")});M=function(){L.slice()};ao(L,"select",M);ao(L,"unselect",M);return L},setVisible:function(bz){var L=this,bx=L.series.chart,by=L.tracker,bw=L.dataLabel,M=L.connector,bv=L.shadowGroup,bA;L.visible=bz=bz===aO?!L.visible:bz;bA=bz?"show":"hide";L.group[bA]();if(by){by[bA]()}if(bw){bw[bA]()}if(M){M[bA]()}if(bv){bv[bA]()}if(L.legendItem){bx.legend.colorizeItem(L,bz)}},slice:function(bv,bA,by){var L=this,bw=L.series,bx=bw.chart,M=L.slicedTranslation,bz;aM(by,bx);bA=b(bA,true);bv=L.sliced=m(bv)?bv:!L.sliced;bz={translateX:(bv?M[0]:bx.plotLeft),translateY:(bv?M[1]:bx.plotTop)};L.group.animate(bz);if(L.shadowGroup){L.shadowGroup.animate(bz)}}});var o=a4(aE,{type:"pie",isCartesian:false,pointClass:aj,pointAttrToOptions:{stroke:"borderColor","stroke-width":"borderWidth",fill:"color"},getColor:function(){this.initialColor=this.chart.counters.color},animate:function(){var L=this,M=L.data;br(M,function(bw){var by=bw.graphic,bx=bw.shapeArgs,bv=-s/2;if(by){by.attr({r:0,start:bv,end:bv});by.animate({r:bx.r,start:bx.start,end:bx.end},L.options.animation)}});L.animate=null},translate:function(){var bO=0,bF=this,bI=-0.25,bL=1000,M=bF.options,bw=M.slicedOffset,bE=bw+M.borderWidth,bD=M.center.concat([M.size,M.innerSize||0]),bH=bF.chart,bC=bH.plotWidth,bK=bH.plotHeight,bx,bv,bM,bN=bF.data,bG=2*s,bA,bJ=ap(bC,bK),L,bB,bz,by=M.dataLabels.distance;bD=z(bD,function(bQ,bP){L=/%$/.test(bQ);return L?[bC,bK,bJ,bJ][bP]*v(bQ)/100:bQ});bF.getX=function(bQ,bP){bM=ag.asin((bQ-bD[1])/(bD[2]/2+by));return bD[0]+(bP?-1:1)*(ba(bM)*(bD[2]/2+by))};bF.center=bD;br(bN,function(bP){bO+=bP.y});br(bN,function(bP){bA=bO?bP.y/bO:0;bx=B(bI*bG*bL)/bL;bI+=bA;bv=B(bI*bG*bL)/bL;bP.shapeType="arc";bP.shapeArgs={x:bD[0],y:bD[1],r:bD[2]/2,innerR:bD[3]/2,start:bx,end:bv};bM=(bv+bx)/2;bP.slicedTranslation=z([ba(bM)*bw+bH.plotLeft,N(bM)*bw+bH.plotTop],B);bB=ba(bM)*bD[2]/2;bz=N(bM)*bD[2]/2;bP.tooltipPos=[bD[0]+bB*0.7,bD[1]+bz*0.7];bP.labelPos=[bD[0]+bB+ba(bM)*by,bD[1]+bz+N(bM)*by,bD[0]+bB+ba(bM)*bE,bD[1]+bz+N(bM)*bE,bD[0]+bB,bD[1]+bz,by<0?"center":bM<bG/4?"left":"right",bM];bP.percentage=bA*100;bP.total=bO});this.setTooltipPoints()},render:function(){var L=this;this.drawPoints();if(L.options.enableMouseTracking!==false){L.drawTracker()}this.drawDataLabels();if(L.options.animation&&L.animate){L.animate()}L.isDirty=false},drawPoints:function(){var bx=this,bz=bx.chart,by=bz.renderer,bv,L,bB,bA=bx.options.shadow,M,bw;br(bx.data,function(bC){L=bC.graphic;bw=bC.shapeArgs;bB=bC.group;M=bC.shadowGroup;if(bA&&!M){M=bC.shadowGroup=by.g("shadow").attr({zIndex:4}).add()}if(!bB){bB=bC.group=by.g("point").attr({zIndex:5}).add()}bv=bC.sliced?bC.slicedTranslation:[bz.plotLeft,bz.plotTop];bB.translate(bv[0],bv[1]);if(M){M.translate(bv[0],bv[1])}if(L){L.animate(bw)}else{bC.graphic=by.arc(bw).attr(aK(bC.pointAttr[ai],{"stroke-linejoin":"round"})).add(bC.group).shadow(bA,M)}if(bC.visible===false){bC.setVisible(false)}})},drawDataLabels:function(){var bz=this,b1=bz.data,bR,b2=bz.chart,bO=bz.options.dataLabels,bw=b(bO.connectorPadding,10),bM=b(bO.connectorWidth,1),L,bY,bN=b(bO.softConnector,true),bF=bO.distance,by=bz.center,bW=by[2]/2,M=by[1],bD=bF>0,bx,bE,bV,bQ=[[],[]],bU,bT,bG,bB,b0,bZ=2,bX;if(!bO.enabled){return}aE.prototype.drawDataLabels.apply(bz);br(b1,function(b5){if(b5.dataLabel){bQ[b5.labelPos[7]<s/2?0:1].push(b5)}});bQ[1].reverse();b0=function(b6,b5){return b5.y-b6.y};bV=bQ[0][0]&&bQ[0][0].dataLabel&&v(bQ[0][0].dataLabel.styles.lineHeight);while(bZ--){var b3=[],bA,bK=[],bS=bQ[bZ],bP,bI=bS.length,b4;for(bP=M-bW-bF;bP<=M+bW+bF;bP+=bV){b3.push(bP)}bA=b3.length;if(bI>bA){bB=[].concat(bS);bB.sort(b0);bX=bI;while(bX--){bB[bX].rank=bX}bX=bI;while(bX--){if(bS[bX].rank>=bA){bS.splice(bX,1)}}bI=bS.length}for(bX=0;bX<bI;bX++){bR=bS[bX];bE=bR.labelPos;var bH=9999,bL,bJ;for(bJ=0;bJ<bA;bJ++){bL=bq(b3[bJ]-bE[1]);if(bL<bH){bH=bL;b4=bJ}}if(b4<bX&&b3[bX]!==null){b4=bX}else{if(bA<bI-bX+b4&&b3[bX]!==null){b4=bA-bI+bX;while(b3[b4]===null){b4++}}else{while(b3[b4]===null){b4++}}}bK.push({i:b4,y:b3[b4]});b3[b4]=null}bK.sort(b0);for(bX=0;bX<bI;bX++){bR=bS[bX];bE=bR.labelPos;bx=bR.dataLabel;var bC=bK.pop(),bv=bE[1];bG=bR.visible===false?aH:aA;b4=bC.i;bT=bC.y;if((bv>bT&&b3[b4+1]!==null)||(bv<bT&&b3[b4-1]!==null)){bT=bv}bU=bz.getX(b4===0||b4===b3.length-1?bv:bT,bZ);bx.attr({visibility:bG,align:bE[6]})[bx.moved?"animate":"attr"]({x:bU+bO.x+({left:bw,right:-bw}[bE[6]]||0),y:bT+bO.y});bx.moved=true;if(bD&&bM){L=bR.connector;bY=bN?[aI,bU+(bE[6]==="left"?5:-5),bT,"C",bU,bT,2*bE[2]-bE[4],2*bE[3]-bE[5],bE[2],bE[3],aJ,bE[4],bE[5]]:[aI,bU+(bE[6]==="left"?5:-5),bT,aJ,bE[2],bE[3],aJ,bE[4],bE[5]];if(L){L.animate({d:bY});L.attr("visibility",bG)}else{bR.connector=L=bz.chart.renderer.path(bY).attr({"stroke-width":bM,stroke:bO.connectorColor||bR.color||"#606060",visibility:bG,zIndex:3}).translate(b2.plotLeft,b2.plotTop).add()}}}}},drawTracker:aZ.prototype.drawTracker,getSymbol:function(){}});bm.pie=o;aR.Highcharts={Chart:bj,dateFormat:aP,pathAnim:n,getOptions:P,hasRtlBug:a0,numberFormat:l,Point:j,Color:D,Renderer:aU,seriesTypes:bm,setOptions:aQ,Series:aE,addEvent:ao,removeEvent:ar,createElement:aG,discardElement:ae,css:aL,each:br,extend:aK,map:z,merge:E,pick:b,extendClass:a4,product:"Highcharts",version:"2.1.9"}}());(function(k){var f="0.4.0",l="hasOwnProperty",b=/[\.\/]/,a="*",h=function(){},g=function(o,n){return o-n},e,j,m={n:{}},c=function(n,E){var x=m,u=j,y=Array.prototype.slice.call(arguments,2),B=c.listeners(n),A=0,w=false,p,o=[],v={},q=[],C=[];e=n;j=0;for(var s=0,D=B.length;s<D;s++){if("zIndex" in B[s]){o.push(B[s].zIndex);if(B[s].zIndex<0){v[B[s].zIndex]=B[s]}}}o.sort(g);while(o[A]<0){p=v[o[A++]];q.push(p.apply(E,y));if(j){j=u;return q}}for(s=0;s<D;s++){p=B[s];if("zIndex" in p){if(p.zIndex==o[A]){q.push(p.apply(E,y));if(j){j=u;return q}do{A++;p=v[o[A]];p&&q.push(p.apply(E,y));if(j){j=u;return q}}while(p)}else{v[p.zIndex]=p}}else{q.push(p.apply(E,y));if(j){j=u;return q}}}j=u;return q.length?q:null};c.listeners=function(n){var x=n.split(b),v=m,B,w,o,s,A,q,u,y,z=[v],p=[];for(s=0,A=x.length;s<A;s++){y=[];for(q=0,u=z.length;q<u;q++){v=z[q].n;w=[v[x[s]],v[a]];o=2;while(o--){B=w[o];if(B){y.push(B);p=p.concat(B.f||[])}}}z=y}return p};c.on=function(n,q){var u=n.split(b),s=m;for(var o=0,p=u.length;o<p;o++){s=s.n;!s[u[o]]&&(s[u[o]]={n:{}});s=s[u[o]]}s.f=s.f||[];for(o=0,p=s.f.length;o<p;o++){if(s.f[o]==q){return h}}s.f.push(q);return function(v){if(+v==+v){q.zIndex=+v}}};c.stop=function(){j=1};c.nt=function(n){if(n){return new RegExp("(?:\\.|\\/|^)"+n+"(?:\\.|\\/|$)").test(e)}return e};c.unbind=function(o,v){var x=o.split(b),w,z,p,s,A,q,u,y=[m];for(s=0,A=x.length;s<A;s++){for(q=0;q<y.length;q+=p.length-2){p=[q,1];w=y[q].n;if(x[s]!=a){if(w[x[s]]){p.push(w[x[s]])}}else{for(z in w){if(w[l](z)){p.push(w[z])}}}y.splice.apply(y,p)}}for(s=0,A=y.length;s<A;s++){w=y[s];while(w.n){if(v){if(w.f){for(q=0,u=w.f.length;q<u;q++){if(w.f[q]==v){w.f.splice(q,1);break}}!w.f.length&&delete w.f}for(z in w.n){if(w.n[l](z)&&w.n[z].f){var n=w.n[z].f;for(q=0,u=n.length;q<u;q++){if(n[q]==v){n.splice(q,1);break}}!n.length&&delete w.n[z].f}}}else{delete w.f;for(z in w.n){if(w.n[l](z)&&w.n[z].f){delete w.n[z].f}}}w=w.n}}};c.once=function(n,o){var p=function(){o.apply(this,arguments);c.unbind(n,p)};return c.on(n,p)};c.version=f;c.toString=function(){return"You are running Eve "+f};(typeof module!="undefined"&&module.exports)?(module.exports=c):(k.eve=c)})(this);(function(){function aJ(E){if(aJ.is(E,"function")){return ag?E():eve.on("DOMload",E)}else{if(aJ.is(E,a5)){return aJ._engine.create[bw](aJ,E.splice(0,3+aJ.is(E[0],aD))).add(E)}else{var b=Array.prototype.slice.call(arguments,0);if(aJ.is(b[b.length-1],"function")){var g=b.pop();return ag?g.call(aJ._engine.create[bw](aJ,b)):eve.on("DOMload",function(){g.call(aJ._engine.create[bw](aJ,b))})}else{return aJ._engine.create[bw](aJ,arguments)}}}}aJ.version="2.0.1";aJ.eve=eve;var ag,a=/[, ]+/,bm={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},bh=/\{(\d+)\}/g,bz="prototype",ab="hasOwnProperty",ar={doc:document,win:window},s={was:Object.prototype[ab].call(ar.win,"Raphael"),is:ar.win.Raphael},bv=function(){this.ca=this.customAttributes={}},aW,be="appendChild",bw="apply",bu="concat",T="createTouch" in ar.doc,aP="",aI=" ",bx=String,C="split",N="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[C](aI),bn={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},bA=bx.prototype.toLowerCase,al=Math,m=al.max,bc=al.min,ao=al.abs,bf=al.pow,aN=al.PI,aD="number",aa="string",a5="array",aX="toString",a1="fill",aT=Object.prototype.toString,bp={},j="push",f=aJ._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i,A=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,an={"NaN":1,"Infinity":1,"-Infinity":1},c=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,Y=al.round,z="setAttribute",af=parseFloat,O=parseInt,bj=bx.prototype.toUpperCase,q=aJ._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},aj=aJ._availableAnimAttrs={blur:aD,"clip-rect":"csv",cx:aD,cy:aD,fill:"colour","fill-opacity":aD,"font-size":aD,height:aD,opacity:aD,path:"path",r:aD,rx:aD,ry:aD,stroke:"colour","stroke-opacity":aD,"stroke-width":aD,transform:"transform",width:aD,x:aD,y:aD},ba=/\s*,\s*/,n={hs:1,rg:1},a8=/,?([achlmqrstvxz]),?/gi,aS=/([achlmrqstvz])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,Z=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?\s*,?\s*)+)/ig,aH=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)\s*,?\s*/ig,aO=aJ._radial_gradient=/^r(?:\(([^,]+?)\s*,\s*([^\)]+?)\))?/,aM={},bg=function(E,g){return E.key-g.key},u=function(E,g){return af(E)-af(g)},G=function(){},br=function(b){return b},aq=aJ._rectPath=function(b,S,g,E,R){if(R){return[["M",b+R,S],["l",g-R*2,0],["a",R,R,0,0,1,R,R],["l",0,E-R*2],["a",R,R,0,0,1,-R,R],["l",R*2-g,0],["a",R,R,0,0,1,-R,-R],["l",0,R*2-E],["a",R,R,0,0,1,R,-R],["z"]]}return[["M",b,S],["l",g,0],["l",0,E],["l",-g,0],["z"]]},I=function(b,R,E,g){if(g==null){g=E}return[["M",b,R],["m",0,-g],["a",E,g,0,1,1,0,2*g],["a",E,g,0,1,1,0,-2*g],["z"]]},L=aJ._getPath={path:function(b){return b.attr("path")},circle:function(g){var b=g.attrs;return I(b.cx,b.cy,b.r)},ellipse:function(g){var b=g.attrs;return I(b.cx,b.cy,b.rx,b.ry)},rect:function(g){var b=g.attrs;return aq(b.x,b.y,b.width,b.height,b.r)},image:function(g){var b=g.attrs;return aq(b.x,b.y,b.width,b.height)},text:function(b){var g=b._getBBox();return aq(g.x,g.y,g.width,g.height)}},J=aJ.mapPath=function(bE,bB){if(!bB){return bE}var bC,S,E,b,bD,R,g;bE=Q(bE);for(E=0,bD=bE.length;E<bD;E++){g=bE[E];for(b=1,R=g.length;b<R;b+=2){bC=bB.x(g[b],g[b+1]);S=bB.y(g[b],g[b+1]);g[b]=bC;g[b+1]=S}}return bE};aJ._g=ar;aJ.type=(ar.win.SVGAngle||ar.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML");if(aJ.type=="VML"){var aw=ar.doc.createElement("div"),az;aw.innerHTML='<v:shape adj="1"/>';az=aw.firstChild;az.style.behavior="url(#default#VML)";if(!(az&&typeof az.adj=="object")){return(aJ.type=aP)}aw=null}aJ.svg=!(aJ.vml=aJ.type=="VML");aJ._Paper=bv;aJ.fn=aW=bv.prototype=aJ.prototype;aJ._id=0;aJ._oid=0;aJ.is=function(g,b){b=bA.call(b);if(b=="finite"){return !an[ab](+g)}if(b=="array"){return g instanceof Array}return(b=="null"&&g===null)||(b==typeof g&&g!==null)||(b=="object"&&g===Object(g))||(b=="array"&&Array.isArray&&Array.isArray(g))||aT.call(g).slice(8,-1).toLowerCase()==b};aJ.angle=function(S,bC,E,bB,g,R){if(g==null){var b=S-E,bD=bC-bB;if(!b&&!bD){return 0}return(180+al.atan2(-bD,-b)*180/aN+360)%360}else{return aJ.angle(S,bC,g,R)-aJ.angle(E,bB,g,R)}};aJ.rad=function(b){return b%360*aN/180};aJ.deg=function(b){return b*180/aN%360};aJ.snapTo=function(g,R,b){b=aJ.is(b,"finite")?b:10;if(aJ.is(g,a5)){var E=g.length;while(E--){if(ao(g[E]-R)<=b){return g[E]}}}else{g=+g;var S=R%g;if(S<b){return R-S}if(S>g-b){return R-S+g}}return R};var h=aJ.createUUID=(function(b,g){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(b,g).toUpperCase()}})(/[xy]/g,function(E){var g=al.random()*16|0,b=E=="x"?g:(g&3|8);return b.toString(16)});aJ.setWindow=function(b){eve("setWindow",aJ,ar.win,b);ar.win=b;ar.doc=ar.win.document;if(aJ._engine.initWin){aJ._engine.initWin(ar.win)}};var a7=function(E){if(aJ.vml){var b=/^\s+|\s+$/g;var S;try{var bB=new ActiveXObject("htmlfile");bB.write("<body>");bB.close();S=bB.body}catch(bC){S=createPopup().document.body}var g=S.createTextRange();a7=ay(function(bD){try{S.style.color=bx(bD).replace(b,aP);var bE=g.queryCommandValue("ForeColor");bE=((bE&255)<<16)|(bE&65280)|((bE&16711680)>>>16);return"#"+("000000"+bE.toString(16)).slice(-6)}catch(bF){return"none"}})}else{var R=ar.doc.createElement("i");R.title="Rapha\xebl Colour Picker";R.style.display="none";ar.doc.body.appendChild(R);a7=ay(function(bD){R.style.color=bD;return ar.doc.defaultView.getComputedStyle(R,aP).getPropertyValue("color")})}return a7(E)},aA=function(){return"hsb("+[this.h,this.s,this.b]+")"},K=function(){return"hsl("+[this.h,this.s,this.l]+")"},x=function(){return this.hex},aQ=function(bB,S,E){if(S==null&&aJ.is(bB,"object")&&"r" in bB&&"g" in bB&&"b" in bB){E=bB.b;S=bB.g;bB=bB.r}if(S==null&&aJ.is(bB,aa)){var R=aJ.getRGB(bB);bB=R.r;S=R.g;E=R.b}if(bB>1||S>1||E>1){bB/=255;S/=255;E/=255}return[bB,S,E]},aU=function(bB,S,E,bC){bB*=255;S*=255;E*=255;var R={r:bB,g:S,b:E,hex:aJ.rgb(bB,S,E),toString:x};aJ.is(bC,"finite")&&(R.opacity=bC);return R};aJ.color=function(b){var g;if(aJ.is(b,"object")&&"h" in b&&"s" in b&&"b" in b){g=aJ.hsb2rgb(b);b.r=g.r;b.g=g.g;b.b=g.b;b.hex=g.hex}else{if(aJ.is(b,"object")&&"h" in b&&"s" in b&&"l" in b){g=aJ.hsl2rgb(b);b.r=g.r;b.g=g.g;b.b=g.b;b.hex=g.hex}else{if(aJ.is(b,"string")){b=aJ.getRGB(b)}if(aJ.is(b,"object")&&"r" in b&&"g" in b&&"b" in b){g=aJ.rgb2hsl(b);b.h=g.h;b.s=g.s;b.l=g.l;g=aJ.rgb2hsb(b);b.v=g.b}else{b={hex:"none"};b.r=b.g=b.b=b.h=b.s=b.v=b.l=-1}}}b.toString=x;return b};aJ.hsb2rgb=function(bC,bF,bD,S){if(this.is(bC,"object")&&"h" in bC&&"s" in bC&&"b" in bC){bD=bC.b;bF=bC.s;bC=bC.h;S=bC.o}bC*=360;var bB,bE,g,E,b;bC=(bC%360)/60;b=bD*bF;E=b*(1-ao(bC%2-1));bB=bE=g=bD-b;bC=~~bC;bB+=[b,E,0,0,E,b][bC];bE+=[E,b,b,E,0,0][bC];g+=[0,0,E,b,b,E][bC];return aU(bB,bE,g,S)};aJ.hsl2rgb=function(bD,bF,bB,S){if(this.is(bD,"object")&&"h" in bD&&"s" in bD&&"l" in bD){bB=bD.l;bF=bD.s;bD=bD.h}if(bD>1||bF>1||bB>1){bD/=360;bF/=100;bB/=100}bD*=360;var bC,bE,g,E,b;bD=(bD%360)/60;b=2*bF*(bB<0.5?bB:1-bB);E=b*(1-ao(bD%2-1));bC=bE=g=bB-b/2;bD=~~bD;bC+=[b,E,0,0,E,b][bD];bE+=[E,b,b,E,0,0][bD];g+=[0,0,E,b,b,E][bD];return aU(bC,bE,g,S)};aJ.rgb2hsb=function(bE,bD,E){E=aQ(bE,bD,E);bE=E[0];bD=E[1];E=E[2];var bC,bB,R,bF;R=m(bE,bD,E);bF=R-bc(bE,bD,E);bC=(bF==0?null:R==bE?(bD-E)/bF:R==bD?(E-bE)/bF+2:(bE-bD)/bF+4);bC=((bC+360)%6)*60/360;bB=bF==0?0:bF/R;return{h:bC,s:bB,b:R,toString:aA}};aJ.rgb2hsl=function(E,bD,bG){bG=aQ(E,bD,bG);E=bG[0];bD=bG[1];bG=bG[2];var bH,bC,bF,bE,bB,R;bE=m(E,bD,bG);bB=bc(E,bD,bG);R=bE-bB;bH=(R==0?null:bE==E?(bD-bG)/R:bE==bD?(bG-E)/R+2:(E-bD)/R+4);bH=((bH+360)%6)*60/360;bF=(bE+bB)/2;bC=(R==0?0:bF<0.5?R/(2*bF):R/(2-2*bF));return{h:bH,s:bC,l:bF,toString:K}};aJ._path2string=function(){return this.join(",").replace(a8,"$1")};function bb(R,E){for(var b=0,g=R.length;b<g;b++){if(R[b]===E){return R.push(R.splice(b,1)[0])}}}function ay(R,g,b){function E(){var S=Array.prototype.slice.call(arguments,0),bC=S.join("\u2400"),bB=E.cache=E.cache||{},bD=E.count=E.count||[];if(bB[ab](bC)){bb(bD,bC);return b?b(bB[bC]):bB[bC]}bD.length>=1000&&delete bB[bD.shift()];bD.push(bC);bB[bC]=R[bw](g,S);return b?b(bB[bC]):bB[bC]}return E}var bl=aJ._preload=function(E,g){var b=ar.doc.createElement("img");b.style.cssText="position:absolute;left:-9999em;top:-9999em";b.onload=function(){g.call(this);this.onload=null;ar.doc.body.removeChild(this)};b.onerror=function(){ar.doc.body.removeChild(this)};ar.doc.body.appendChild(b);b.src=E};function ai(){return this.hex}aJ.getRGB=ay(function(b){if(!b||!!((b=bx(b)).indexOf("-")+1)){return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ai}}if(b=="none"){return{r:-1,g:-1,b:-1,hex:"none",toString:ai}}!(n[ab](b.toLowerCase().substring(0,2))||b.charAt()=="#")&&(b=a7(b));var S,g,E,bC,R,bE,bD,bB=b.match(A);if(bB){if(bB[2]){bC=O(bB[2].substring(5),16);E=O(bB[2].substring(3,5),16);g=O(bB[2].substring(1,3),16)}if(bB[3]){bC=O((bE=bB[3].charAt(3))+bE,16);E=O((bE=bB[3].charAt(2))+bE,16);g=O((bE=bB[3].charAt(1))+bE,16)}if(bB[4]){bD=bB[4][C](ba);g=af(bD[0]);bD[0].slice(-1)=="%"&&(g*=2.55);E=af(bD[1]);bD[1].slice(-1)=="%"&&(E*=2.55);bC=af(bD[2]);bD[2].slice(-1)=="%"&&(bC*=2.55);bB[1].toLowerCase().slice(0,4)=="rgba"&&(R=af(bD[3]));bD[3]&&bD[3].slice(-1)=="%"&&(R/=100)}if(bB[5]){bD=bB[5][C](ba);g=af(bD[0]);bD[0].slice(-1)=="%"&&(g*=2.55);E=af(bD[1]);bD[1].slice(-1)=="%"&&(E*=2.55);bC=af(bD[2]);bD[2].slice(-1)=="%"&&(bC*=2.55);(bD[0].slice(-3)=="deg"||bD[0].slice(-1)=="\xb0")&&(g/=360);bB[1].toLowerCase().slice(0,4)=="hsba"&&(R=af(bD[3]));bD[3]&&bD[3].slice(-1)=="%"&&(R/=100);return aJ.hsb2rgb(g,E,bC,R)}if(bB[6]){bD=bB[6][C](ba);g=af(bD[0]);bD[0].slice(-1)=="%"&&(g*=2.55);E=af(bD[1]);bD[1].slice(-1)=="%"&&(E*=2.55);bC=af(bD[2]);bD[2].slice(-1)=="%"&&(bC*=2.55);(bD[0].slice(-3)=="deg"||bD[0].slice(-1)=="\xb0")&&(g/=360);bB[1].toLowerCase().slice(0,4)=="hsla"&&(R=af(bD[3]));bD[3]&&bD[3].slice(-1)=="%"&&(R/=100);return aJ.hsl2rgb(g,E,bC,R)}bB={r:g,g:E,b:bC,toString:ai};bB.hex="#"+(16777216|bC|(E<<8)|(g<<16)).toString(16).slice(1);aJ.is(R,"finite")&&(bB.opacity=R);return bB}return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:ai}},aJ);aJ.hsb=ay(function(R,E,g){return aJ.hsb2rgb(R,E,g).hex});aJ.hsl=ay(function(E,g,b){return aJ.hsl2rgb(E,g,b).hex});aJ.rgb=ay(function(S,R,E){return"#"+(16777216|E|(R<<8)|(S<<16)).toString(16).slice(1)});aJ.getColor=function(g){var E=this.getColor.start=this.getColor.start||{h:0,s:1,b:g||0.75},b=this.hsb2rgb(E.h,E.s,E.b);E.h+=0.075;if(E.h>1){E.h=0;E.s-=0.2;E.s<=0&&(this.getColor.start={h:0,s:1,b:E.b})}return b.hex};aJ.getColor.reset=function(){delete this.start};function a3(E){var S=[];for(var g=0,b=E.length;b-2>g;g+=2){var R=[{x:+E[g],y:+E[g+1]},{x:+E[g],y:+E[g+1]},{x:+E[g+2],y:+E[g+3]},{x:+E[g+4],y:+E[g+5]}];if(b-4==g){R[0]={x:+E[g-2],y:+E[g-1]};R[3]=R[2]}else{if(g){R[0]={x:+E[g-2],y:+E[g-1]}}}S.push(["C",(-R[0].x+6*R[1].x+R[2].x)/6,(-R[0].y+6*R[1].y+R[2].y)/6,(R[1].x+6*R[2].x-R[3].x)/6,(R[1].y+6*R[2].y-R[3].y)/6,R[2].x,R[2].y])}return S}aJ.parsePathString=ay(function(b){if(!b){return null}var E={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},g=[];if(aJ.is(b,a5)&&aJ.is(b[0],a5)){g=aR(b)}if(!g.length){bx(b).replace(aS,function(S,R,bD){var bC=[],bB=R.toLowerCase();bD.replace(aH,function(bF,bE){bE&&bC.push(+bE)});if(bB=="m"&&bC.length>2){g.push([R][bu](bC.splice(0,2)));bB="l";R=R=="m"?"l":"L"}if(bB=="r"){g.push([R][bu](bC))}else{while(bC.length>=E[bB]){g.push([R][bu](bC.splice(0,E[bB])));if(!E[bB]){break}}}})}g.toString=aJ._path2string;return g});aJ.parseTransformString=ay(function(g){if(!g){return null}var E={r:3,s:4,t:2,m:6},b=[];if(aJ.is(g,a5)&&aJ.is(g[0],a5)){b=aR(g)}if(!b.length){bx(g).replace(Z,function(S,R,bD){var bC=[],bB=bA.call(R);bD.replace(aH,function(bF,bE){bE&&bC.push(+bE)});b.push([R][bu](bC))})}b.toString=aJ._path2string;return b});aJ.findDotsAtSegment=function(g,b,bU,bS,bC,S,bF,bD,bN){var bK=1-bN,bP=bf(bK,3),bQ=bf(bK,2),bH=bN*bN,bE=bH*bN,bJ=bP*g+bQ*3*bN*bU+bK*3*bN*bN*bC+bE*bF,bG=bP*b+bQ*3*bN*bS+bK*3*bN*bN*S+bE*bD,bO=g+2*bN*(bU-g)+bH*(bC-2*bU+g),bM=b+2*bN*(bS-b)+bH*(S-2*bS+b),bT=bU+2*bN*(bC-bU)+bH*(bF-2*bC+bU),bR=bS+2*bN*(S-bS)+bH*(bD-2*S+bS),bL=bK*g+bN*bU,bI=bK*b+bN*bS,R=bK*bC+bN*bF,E=bK*S+bN*bD,bB=(90-al.atan2(bO-bT,bM-bR)*180/aN);(bO>bT||bM<bR)&&(bB+=180);return{x:bJ,y:bG,m:{x:bO,y:bM},n:{x:bT,y:bR},start:{x:bL,y:bI},end:{x:R,y:E},alpha:bB}};aJ._removedFactory=function(b){return function(){throw new Error("Rapha\xebl: you are calling to method \u201c"+b+"\u201d of removed object")}};var ae=ay(function(bG){if(!bG){return{x:0,y:0,width:0,height:0}}bG=Q(bG);var bD=0,bC=0,R=[],g=[],E;for(var S=0,bF=bG.length;S<bF;S++){E=bG[S];if(E[0]=="M"){bD=E[1];bC=E[2];R.push(bD);g.push(bC)}else{var bB=a2(bD,bC,E[1],E[2],E[3],E[4],E[5],E[6]);R=R[bu](bB.min.x,bB.max.x);g=g[bu](bB.min.y,bB.max.y);bD=E[5];bC=E[6]}}var b=bc[bw](0,R),bE=bc[bw](0,g);return{x:b,y:bE,width:m[bw](0,R)-b,height:m[bw](0,g)-bE}},null,function(b){return{x:b.x,y:b.y,width:b.width,height:b.height}}),aR=function(bB){var E=[];if(!aJ.is(bB,a5)||!aJ.is(bB&&bB[0],a5)){bB=aJ.parsePathString(bB)}for(var g=0,R=bB.length;g<R;g++){E[g]=[];for(var b=0,S=bB[g].length;b<S;b++){E[g][b]=bB[g][b]}}E.toString=aJ._path2string;return E},au=aJ._pathToRelative=ay(function(R){if(!aJ.is(R,a5)||!aJ.is(R&&R[0],a5)){R=aJ.parsePathString(R)}var bF=[],bH=0,bG=0,bK=0,bJ=0,E=0;if(R[0][0]=="M"){bH=R[0][1];bG=R[0][2];bK=bH;bJ=bG;E++;bF.push(["M",bH,bG])}for(var bC=E,bL=R.length;bC<bL;bC++){var b=bF[bC]=[],bI=R[bC];if(bI[0]!=bA.call(bI[0])){b[0]=bA.call(bI[0]);switch(b[0]){case"a":b[1]=bI[1];b[2]=bI[2];b[3]=bI[3];b[4]=bI[4];b[5]=bI[5];b[6]=+(bI[6]-bH).toFixed(3);b[7]=+(bI[7]-bG).toFixed(3);break;case"v":b[1]=+(bI[1]-bG).toFixed(3);break;case"m":bK=bI[1];bJ=bI[2];default:for(var bB=1,bD=bI.length;bB<bD;bB++){b[bB]=+(bI[bB]-((bB%2)?bH:bG)).toFixed(3)}}}else{b=bF[bC]=[];if(bI[0]=="m"){bK=bI[1]+bH;bJ=bI[2]+bG}for(var S=0,g=bI.length;S<g;S++){bF[bC][S]=bI[S]}}var bE=bF[bC].length;switch(bF[bC][0]){case"z":bH=bK;bG=bJ;break;case"h":bH+=+bF[bC][bE-1];break;case"v":bG+=+bF[bC][bE-1];break;default:bH+=+bF[bC][bE-2];bG+=+bF[bC][bE-1]}}bF.toString=aJ._path2string;return bF},0,aR),w=aJ._pathToAbsolute=ay(function(R){if(!aJ.is(R,a5)||!aJ.is(R&&R[0],a5)){R=aJ.parsePathString(R)}if(!R||!R.length){return[["M",0,0]]}var bE=[],bH=0,bG=0,bK=0,bJ=0,E=0;if(R[0][0]=="M"){bH=+R[0][1];bG=+R[0][2];bK=bH;bJ=bG;E++;bE[0]=["M",bH,bG]}for(var b,bI,bC=E,bL=R.length;bC<bL;bC++){bE.push(b=[]);bI=R[bC];if(bI[0]!=bj.call(bI[0])){b[0]=bj.call(bI[0]);switch(b[0]){case"A":b[1]=bI[1];b[2]=bI[2];b[3]=bI[3];b[4]=bI[4];b[5]=bI[5];b[6]=+(bI[6]+bH);b[7]=+(bI[7]+bG);break;case"V":b[1]=+bI[1]+bG;break;case"H":b[1]=+bI[1]+bH;break;case"R":var bF=[bH,bG][bu](bI.slice(1));for(var bB=2,bD=bF.length;bB<bD;bB++){bF[bB]=+bF[bB]+bH;bF[++bB]=+bF[bB]+bG}bE.pop();bE=bE[bu](a3(bF));break;case"M":bK=+bI[1]+bH;bJ=+bI[2]+bG;default:for(bB=1,bD=bI.length;bB<bD;bB++){b[bB]=+bI[bB]+((bB%2)?bH:bG)}}}else{if(bI[0]=="R"){bF=[bH,bG][bu](bI.slice(1));bE.pop();bE=bE[bu](a3(bF));b=["R"][bu](bI.slice(-2))}else{for(var S=0,g=bI.length;S<g;S++){b[S]=bI[S]}}}switch(b[0]){case"Z":bH=bK;bG=bJ;break;case"H":bH=b[1];break;case"V":bG=b[1];break;case"M":bK=b[b.length-2];bJ=b[b.length-1];default:bH=b[b.length-2];bG=b[b.length-1]}}bE.toString=aJ._path2string;return bE},null,aR),by=function(g,R,b,E){return[g,R,b,E,b,E]},bd=function(g,R,bC,S,b,E){var bB=1/3,bD=2/3;return[bB*g+bD*bC,bB*R+bD*S,bB*b+bD*bC,bB*E+bD*S,b,E]},W=function(bJ,ce,bS,bQ,bK,bE,R,bI,cd,bL){var bP=aN*120/180,b=aN/180*(+bK||0),bW=[],bT,ca=ay(function(cg,cj,cf){var ci=cg*al.cos(cf)-cj*al.sin(cf),ch=cg*al.sin(cf)+cj*al.cos(cf);return{x:ci,y:ch}});if(!bL){bT=ca(bJ,ce,-b);bJ=bT.x;ce=bT.y;bT=ca(bI,cd,-b);bI=bT.x;cd=bT.y;var g=al.cos(aN/180*bK),bG=al.sin(aN/180*bK),bY=(bJ-bI)/2,bX=(ce-cd)/2;var b8=(bY*bY)/(bS*bS)+(bX*bX)/(bQ*bQ);if(b8>1){b8=al.sqrt(b8);bS=b8*bS;bQ=b8*bQ}var E=bS*bS,b1=bQ*bQ,b3=(bE==R?-1:1)*al.sqrt(ao((E*b1-E*bX*bX-b1*bY*bY)/(E*bX*bX+b1*bY*bY))),bN=b3*bS*bX/bQ+(bJ+bI)/2,bM=b3*-bQ*bY/bS+(ce+cd)/2,bD=al.asin(((ce-bM)/bQ).toFixed(9)),bC=al.asin(((cd-bM)/bQ).toFixed(9));bD=bJ<bN?aN-bD:bD;bC=bI<bN?aN-bC:bC;bD<0&&(bD=aN*2+bD);bC<0&&(bC=aN*2+bC);if(R&&bD>bC){bD=bD-aN*2}if(!R&&bC>bD){bC=bC-aN*2}}else{bD=bL[0];bC=bL[1];bN=bL[2];bM=bL[3]}var bH=bC-bD;if(ao(bH)>bP){var bO=bC,bR=bI,bF=cd;bC=bD+bP*(R&&bC>bD?1:-1);bI=bN+bS*al.cos(bC);cd=bM+bQ*al.sin(bC);bW=W(bI,cd,bS,bQ,bK,0,R,bR,bF,[bC,bO,bN,bM])}bH=bC-bD;var bB=al.cos(bD),cc=al.sin(bD),S=al.cos(bC),cb=al.sin(bC),bZ=al.tan(bH/4),b2=4/3*bS*bZ,b0=4/3*bQ*bZ,b9=[bJ,ce],b7=[bJ+b2*cc,ce-b0*bB],b6=[bI+b2*cb,cd-b0*S],b4=[bI,cd];b7[0]=2*b9[0]-b7[0];b7[1]=2*b9[1]-b7[1];if(bL){return[b7,b6,b4][bu](bW)}else{bW=[b7,b6,b4][bu](bW).join()[C](",");var bU=[];for(var b5=0,bV=bW.length;b5<bV;b5++){bU[b5]=b5%2?ca(bW[b5-1],bW[b5],b).y:ca(bW[b5],bW[b5+1],b).x}return bU}},X=function(g,b,R,E,bE,bD,bC,bB,bF){var S=1-bF;return{x:bf(S,3)*g+bf(S,2)*3*bF*R+S*3*bF*bF*bE+bf(bF,3)*bC,y:bf(S,3)*b+bf(S,2)*3*bF*E+S*3*bF*bF*bD+bf(bF,3)*bB}},a2=ay(function(R,g,bB,S,bM,bL,bI,bF){var bK=(bM-2*bB+R)-(bI-2*bM+bB),bH=2*(bB-R)-2*(bM-bB),bE=R-bB,bD=(-bH+al.sqrt(bH*bH-4*bK*bE))/2/bK,bC=(-bH-al.sqrt(bH*bH-4*bK*bE))/2/bK,bG=[g,bF],bJ=[R,bI],E;ao(bD)>"1e12"&&(bD=0.5);ao(bC)>"1e12"&&(bC=0.5);if(bD>0&&bD<1){E=X(R,g,bB,S,bM,bL,bI,bF,bD);bJ.push(E.x);bG.push(E.y)}if(bC>0&&bC<1){E=X(R,g,bB,S,bM,bL,bI,bF,bC);bJ.push(E.x);bG.push(E.y)}bK=(bL-2*S+g)-(bF-2*bL+S);bH=2*(S-g)-2*(bL-S);bE=g-S;bD=(-bH+al.sqrt(bH*bH-4*bK*bE))/2/bK;bC=(-bH-al.sqrt(bH*bH-4*bK*bE))/2/bK;ao(bD)>"1e12"&&(bD=0.5);ao(bC)>"1e12"&&(bC=0.5);if(bD>0&&bD<1){E=X(R,g,bB,S,bM,bL,bI,bF,bD);bJ.push(E.x);bG.push(E.y)}if(bC>0&&bC<1){E=X(R,g,bB,S,bM,bL,bI,bF,bC);bJ.push(E.x);bG.push(E.y)}return{min:{x:bc[bw](0,bJ),y:bc[bw](0,bG)},max:{x:m[bw](0,bJ),y:m[bw](0,bG)}}}),Q=aJ._path2curve=ay(function(bK,bF){var R=w(bK),bG=bF&&w(bF),bH={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},b={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},bB=function(bM,bN){var bL,bO;if(!bM){return["C",bN.x,bN.y,bN.x,bN.y,bN.x,bN.y]}!(bM[0] in {T:1,Q:1})&&(bN.qx=bN.qy=null);switch(bM[0]){case"M":bN.X=bM[1];bN.Y=bM[2];break;case"A":bM=["C"][bu](W[bw](0,[bN.x,bN.y][bu](bM.slice(1))));break;case"S":bL=bN.x+(bN.x-(bN.bx||bN.x));bO=bN.y+(bN.y-(bN.by||bN.y));bM=["C",bL,bO][bu](bM.slice(1));break;case"T":bN.qx=bN.x+(bN.x-(bN.qx||bN.x));bN.qy=bN.y+(bN.y-(bN.qy||bN.y));bM=["C"][bu](bd(bN.x,bN.y,bN.qx,bN.qy,bM[1],bM[2]));break;case"Q":bN.qx=bM[1];bN.qy=bM[2];bM=["C"][bu](bd(bN.x,bN.y,bM[1],bM[2],bM[3],bM[4]));break;case"L":bM=["C"][bu](by(bN.x,bN.y,bM[1],bM[2]));break;case"H":bM=["C"][bu](by(bN.x,bN.y,bM[1],bN.y));break;case"V":bM=["C"][bu](by(bN.x,bN.y,bN.x,bM[1]));break;case"Z":bM=["C"][bu](by(bN.x,bN.y,bN.X,bN.Y));break}return bM},g=function(bL,bM){if(bL[bM].length>7){bL[bM].shift();var bN=bL[bM];while(bN.length){bL.splice(bM++,0,["C"][bu](bN.splice(0,6)))}bL.splice(bM,1);bI=m(R.length,bG&&bG.length||0)}},E=function(bP,bO,bM,bL,bN){if(bP&&bO&&bP[bN][0]=="M"&&bO[bN][0]!="M"){bO.splice(bN,0,["M",bL.x,bL.y]);bM.bx=0;bM.by=0;bM.x=bP[bN][1];bM.y=bP[bN][2];bI=m(R.length,bG&&bG.length||0)}};for(var bD=0,bI=m(R.length,bG&&bG.length||0);bD<bI;bD++){R[bD]=bB(R[bD],bH);g(R,bD);bG&&(bG[bD]=bB(bG[bD],b));bG&&g(bG,bD);E(R,bG,bH,b,bD);E(bG,R,b,bH,bD);var bC=R[bD],bJ=bG&&bG[bD],S=bC.length,bE=bG&&bJ.length;bH.x=bC[S-2];bH.y=bC[S-1];bH.bx=af(bC[S-4])||bH.x;bH.by=af(bC[S-3])||bH.y;b.bx=bG&&(af(bJ[bE-4])||b.x);b.by=bG&&(af(bJ[bE-3])||b.y);b.x=bG&&bJ[bE-2];b.y=bG&&bJ[bE-1]}return bG?[R,bG]:R},null,aR),v=aJ._parseDots=ay(function(bE){var bD=[];for(var S=0,bF=bE.length;S<bF;S++){var b={},bC=bE[S].match(/^([^:]*):?([\d\.]*)/);b.color=aJ.getRGB(bC[1]);if(b.color.error){return null}b.color=b.color.hex;bC[2]&&(b.offset=bC[2]+"%");bD.push(b)}for(S=1,bF=bD.length-1;S<bF;S++){if(!bD[S].offset){var g=af(bD[S-1].offset||0),E=0;for(var R=S+1;R<bF;R++){if(bD[R].offset){E=bD[R].offset;break}}if(!E){E=100;R=bF}E=af(E);var bB=(E-g)/(R-S+1);for(;S<R;S++){g+=bB;bD[S].offset=g+"%"}}}return bD}),aC=aJ._tear=function(b,g){b==g.top&&(g.top=b.prev);b==g.bottom&&(g.bottom=b.next);b.next&&(b.next.prev=b.prev);b.prev&&(b.prev.next=b.next)},ah=aJ._tofront=function(b,g){if(g.top===b){return}aC(b,g);b.next=null;b.prev=g.top;g.top.next=b;g.top=b},p=aJ._toback=function(b,g){if(g.bottom===b){return}aC(b,g);b.next=g.bottom;b.prev=null;g.bottom.prev=b;g.bottom=b},D=aJ._insertafter=function(g,b,E){aC(g,E);b==E.top&&(E.top=g);b.next&&(b.next.prev=g);g.next=b.next;g.prev=b;b.next=g},aL=aJ._insertbefore=function(g,b,E){aC(g,E);b==E.bottom&&(E.bottom=g);b.prev&&(b.prev.next=g);g.prev=b.prev;b.prev=g;g.next=b},aG=aJ._extractTransform=function(g,bQ){if(bQ==null){return g._.transform}bQ=bx(bQ).replace(/\.{3}|\u2026/g,g._.transform||aP);var bI=aJ.parseTransformString(bQ),bG=0,bE=0,bD=0,bK=1,bJ=1,bR=g._,bL=new ax;bR.transform=bI||[];if(bI){for(var bM=0,bF=bI.length;bM<bF;bM++){var bH=bI[bM],b=bH.length,S=bx(bH[0]).toLowerCase(),bP=bH[0]!=S,bC=bP?bL.invert():0,bO,R,bN,E,bB;if(S=="t"&&b==3){if(bP){bO=bC.x(0,0);R=bC.y(0,0);bN=bC.x(bH[1],bH[2]);E=bC.y(bH[1],bH[2]);bL.translate(bN-bO,E-R)}else{bL.translate(bH[1],bH[2])}}else{if(S=="r"){if(b==2){bB=bB||g.getBBox(1);bL.rotate(bH[1],bB.x+bB.width/2,bB.y+bB.height/2);bG+=bH[1]}else{if(b==4){if(bP){bN=bC.x(bH[2],bH[3]);E=bC.y(bH[2],bH[3]);bL.rotate(bH[1],bN,E)}else{bL.rotate(bH[1],bH[2],bH[3])}bG+=bH[1]}}}else{if(S=="s"){if(b==2||b==3){bB=bB||g.getBBox(1);bL.scale(bH[1],bH[b-1],bB.x+bB.width/2,bB.y+bB.height/2);bK*=bH[1];bJ*=bH[b-1]}else{if(b==5){if(bP){bN=bC.x(bH[3],bH[4]);E=bC.y(bH[3],bH[4]);bL.scale(bH[1],bH[2],bN,E)}else{bL.scale(bH[1],bH[2],bH[3],bH[4])}bK*=bH[1];bJ*=bH[2]}}}else{if(S=="m"&&b==7){bL.add(bH[1],bH[2],bH[3],bH[4],bH[5],bH[6])}}}}bR.dirtyT=1;g.matrix=bL}}g.matrix=bL;bR.sx=bK;bR.sy=bJ;bR.deg=bG;bR.dx=bE=bL.e;bR.dy=bD=bL.f;if(bK==1&&bJ==1&&!bG&&bR.bbox){bR.bbox.x+=+bE;bR.bbox.y+=+bD}else{bR.dirtyT=1}},l=function(g){var b=g[0];switch(b.toLowerCase()){case"t":return[b,0,0];case"m":return[b,1,0,0,1,0,0];case"r":if(g.length==4){return[b,0,g[2],g[3]]}else{return[b,0]}case"s":if(g.length==5){return[b,1,1,g[3],g[4]]}else{if(g.length==3){return[b,1,1]}else{return[b,1]}}}},at=aJ._equaliseTransform=function(S,R){R=bx(R).replace(/\.{3}|\u2026/g,S);S=aJ.parseTransformString(S)||[];R=aJ.parseTransformString(R)||[];var b=m(S.length,R.length),bE=[],bF=[],E=0,g,bB,bD,bC;for(;E<b;E++){bD=S[E]||l(R[E]);bC=R[E]||l(bD);if((bD[0]!=bC[0])||(bD[0].toLowerCase()=="r"&&(bD[2]!=bC[2]||bD[3]!=bC[3]))||(bD[0].toLowerCase()=="s"&&(bD[3]!=bC[3]||bD[4]!=bC[4]))){return}bE[E]=[];bF[E]=[];for(g=0,bB=m(bD.length,bC.length);g<bB;g++){g in bD&&(bE[E][g]=bD[g]);g in bC&&(bF[E][g]=bC[g])}}return{from:bE,to:bF}};aJ._getContainer=function(b,S,E,R){var g;g=R==null&&!aJ.is(b,"object")?ar.doc.getElementById(b):b;if(g==null){return}if(g.tagName){if(S==null){return{container:g,width:g.style.pixelWidth||g.offsetWidth,height:g.style.pixelHeight||g.offsetHeight}}else{return{container:g,width:S,height:E}}}return{container:1,x:b,y:S,width:E,height:R}};aJ.pathToRelative=au;aJ._engine={};aJ.path2curve=Q;aJ.matrix=function(E,g,bC,bB,S,R){return new ax(E,g,bC,bB,S,R)};function ax(E,g,bC,bB,S,R){if(E!=null){this.a=+E;this.b=+g;this.c=+bC;this.d=+bB;this.e=+S;this.f=+R}else{this.a=1;this.b=0;this.c=0;this.d=1;this.e=0;this.f=0}}(function(E){E.add=function(bL,bI,bG,bE,bC,bB){var S=[[],[],[]],R=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]],bK=[[bL,bG,bC],[bI,bE,bB],[0,0,1]],bJ,bH,bF,bD;if(bL&&bL instanceof ax){bK=[[bL.a,bL.c,bL.e],[bL.b,bL.d,bL.f],[0,0,1]]}for(bJ=0;bJ<3;bJ++){for(bH=0;bH<3;bH++){bD=0;for(bF=0;bF<3;bF++){bD+=R[bJ][bF]*bK[bF][bH]}S[bJ][bH]=bD}}this.a=S[0][0];this.b=S[1][0];this.c=S[0][1];this.d=S[1][1];this.e=S[0][2];this.f=S[1][2]};E.invert=function(){var S=this,R=S.a*S.d-S.b*S.c;return new ax(S.d/R,-S.b/R,-S.c/R,S.a/R,(S.c*S.f-S.d*S.e)/R,(S.b*S.e-S.a*S.f)/R)};E.clone=function(){return new ax(this.a,this.b,this.c,this.d,this.e,this.f)};E.translate=function(R,S){this.add(1,0,0,1,R,S)};E.scale=function(S,bC,R,bB){bC==null&&(bC=S);(R||bB)&&this.add(1,0,0,1,R,bB);this.add(S,0,0,bC,0,0);(R||bB)&&this.add(1,0,0,1,-R,-bB)};E.rotate=function(S,R,bD){S=aJ.rad(S);R=R||0;bD=bD||0;var bC=+al.cos(S).toFixed(9),bB=+al.sin(S).toFixed(9);this.add(bC,bB,-bB,bC,R,bD);this.add(1,0,0,1,-R,-bD)};E.x=function(R,S){return R*this.a+S*this.c+this.e};E.y=function(R,S){return R*this.b+S*this.d+this.f};E.get=function(R){return +this[bx.fromCharCode(97+R)].toFixed(4)};E.toString=function(){return aJ.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};E.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};E.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};function g(R){return R[0]*R[0]+R[1]*R[1]}function b(R){var S=al.sqrt(g(R));R[0]&&(R[0]/=S);R[1]&&(R[1]/=S)}E.split=function(){var S={};S.dx=this.e;S.dy=this.f;var bC=[[this.a,this.c],[this.b,this.d]];S.scalex=al.sqrt(g(bC[0]));b(bC[0]);S.shear=bC[0][0]*bC[1][0]+bC[0][1]*bC[1][1];bC[1]=[bC[1][0]-bC[0][0]*S.shear,bC[1][1]-bC[0][1]*S.shear];S.scaley=al.sqrt(g(bC[1]));b(bC[1]);S.shear/=S.scaley;var R=-bC[0][1],bB=bC[1][1];if(bB<0){S.rotate=aJ.deg(al.acos(bB));if(R<0){S.rotate=360-S.rotate}}else{S.rotate=aJ.deg(al.asin(R))}S.isSimple=!+S.shear.toFixed(9)&&(S.scalex.toFixed(9)==S.scaley.toFixed(9)||!S.rotate);S.isSuperSimple=!+S.shear.toFixed(9)&&S.scalex.toFixed(9)==S.scaley.toFixed(9)&&!S.rotate;S.noRotation=!+S.shear.toFixed(9)&&!S.rotate;return S};E.toTransformString=function(R){var S=R||this[C]();if(S.isSimple){S.scalex=+S.scalex.toFixed(4);S.scaley=+S.scaley.toFixed(4);S.rotate=+S.rotate.toFixed(4);return(S.dx&&S.dy?"t"+[S.dx,S.dy]:aP)+(S.scalex!=1||S.scaley!=1?"s"+[S.scalex,S.scaley,0,0]:aP)+(S.rotate?"r"+[S.rotate,0,0]:aP)}else{return"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]}}})(ax.prototype);var P=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);if((navigator.vendor=="Apple Computer, Inc.")&&(P&&P[1]<4||navigator.platform.slice(0,2)=="iP")||(navigator.vendor=="Google Inc."&&P&&P[1]<8)){aW.safari=function(){var b=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){b.remove()})}}else{aW.safari=G}var M=function(){this.returnValue=false},bt=function(){return this.originalEvent.preventDefault()},a0=function(){this.cancelBubble=true},aB=function(){return this.originalEvent.stopPropagation()},av=(function(){if(ar.doc.addEventListener){return function(bB,R,E,g){var b=T&&bn[R]?bn[R]:R,S=function(bH){var bG=ar.doc.documentElement.scrollTop||ar.doc.body.scrollTop,bI=ar.doc.documentElement.scrollLeft||ar.doc.body.scrollLeft,bC=bH.clientX+bI,bJ=bH.clientY+bG;if(T&&bn[ab](R)){for(var bE=0,bF=bH.targetTouches&&bH.targetTouches.length;bE<bF;bE++){if(bH.targetTouches[bE].target==bB){var bD=bH;bH=bH.targetTouches[bE];bH.originalEvent=bD;bH.preventDefault=bt;bH.stopPropagation=aB;break}}}return E.call(g,bH,bC,bJ)};bB.addEventListener(b,S,false);return function(){bB.removeEventListener(b,S,false);return true}}}else{if(ar.doc.attachEvent){return function(bB,R,E,g){var S=function(bE){bE=bE||ar.win.event;var bD=ar.doc.documentElement.scrollTop||ar.doc.body.scrollTop,bF=ar.doc.documentElement.scrollLeft||ar.doc.body.scrollLeft,bC=bE.clientX+bF,bG=bE.clientY+bD;bE.preventDefault=bE.preventDefault||M;bE.stopPropagation=bE.stopPropagation||a0;return E.call(g,bE,bC,bG)};bB.attachEvent("on"+R,S);var b=function(){bB.detachEvent("on"+R,S);return true};return b}}}})(),a6=[],bo=function(bD){var bG=bD.clientX,bF=bD.clientY,bI=ar.doc.documentElement.scrollTop||ar.doc.body.scrollTop,bJ=ar.doc.documentElement.scrollLeft||ar.doc.body.scrollLeft,E,R=a6.length;while(R--){E=a6[R];if(T){var bB=bD.touches.length,S;while(bB--){S=bD.touches[bB];if(S.identifier==E.el._drag.id){bG=S.clientX;bF=S.clientY;(bD.originalEvent?bD.originalEvent:bD).preventDefault();break}}}else{bD.preventDefault()}var g=E.el.node,b,bC=g.nextSibling,bH=g.parentNode,bE=g.style.display;ar.win.opera&&bH.removeChild(g);g.style.display="none";b=E.el.paper.getElementByPoint(bG,bF);g.style.display=bE;ar.win.opera&&(bC?bH.insertBefore(g,bC):bH.appendChild(g));b&&eve("drag.over."+E.el.id,E.el,b);bG+=bJ;bF+=bI;eve("drag.move."+E.el.id,E.move_scope||E.el,bG-E.el._drag.x,bF-E.el._drag.y,bG,bF,bD)}},e=function(E){aJ.unmousemove(bo).unmouseup(e);var g=a6.length,b;while(g--){b=a6[g];b.el._drag={};eve("drag.end."+b.el.id,b.end_scope||b.start_scope||b.move_scope||b.el,E)}a6=[]},a9=aJ.el={};for(var ap=N.length;ap--;){(function(b){aJ[b]=a9[b]=function(E,g){if(aJ.is(E,"function")){this.events=this.events||[];this.events.push({name:b,f:E,unbind:av(this.shape||this.node||ar.doc,b,E,g||this)})}return this};aJ["un"+b]=a9["un"+b]=function(R){var E=this.events,g=E.length;while(g--){if(E[g].name==b&&E[g].f==R){E[g].unbind();E.splice(g,1);!E.length&&delete this.events;return this}}return this}})(N[ap])}a9.data=function(g,R){var E=aM[this.id]=aM[this.id]||{};if(arguments.length==1){if(aJ.is(g,"object")){for(var b in g){if(g[ab](b)){this.data(b,g[b])}}return this}eve("data.get."+this.id,this,E[g],g);return E[g]}E[g]=R;eve("data.set."+this.id,this,R,g);return this};a9.removeData=function(b){if(b==null){aM[this.id]={}}else{aM[this.id]&&delete aM[this.id][b]}return this};a9.hover=function(R,b,E,g){return this.mouseover(R,E).mouseout(b,g||E)};a9.unhover=function(g,b){return this.unmouseover(g).unmouseout(b)};var bk=[];a9.drag=function(g,bB,S,b,E,R){function bC(bE){(bE.originalEvent||bE).preventDefault();var bD=ar.doc.documentElement.scrollTop||ar.doc.body.scrollTop,bF=ar.doc.documentElement.scrollLeft||ar.doc.body.scrollLeft;this._drag.x=bE.clientX+bF;this._drag.y=bE.clientY+bD;this._drag.id=bE.identifier;!a6.length&&aJ.mousemove(bo).mouseup(e);a6.push({el:this,move_scope:b,start_scope:E,end_scope:R});bB&&eve.on("drag.start."+this.id,bB);g&&eve.on("drag.move."+this.id,g);S&&eve.on("drag.end."+this.id,S);eve("drag.start."+this.id,E||b||this,bE.clientX+bF,bE.clientY+bD,bE)}this._drag={};bk.push({el:this,start:bC});this.mousedown(bC);return this};a9.onDragOver=function(b){b?eve.on("drag.over."+this.id,b):eve.unbind("drag.over."+this.id)};a9.undrag=function(){var b=bk.length;while(b--){if(bk[b].el==this){this.unmousedown(bk[b].start);bk.splice(b,1);eve.unbind("drag.*."+this.id)}}!bk.length&&aJ.unmousemove(bo).unmouseup(e)};aW.circle=function(b,R,E){var g=aJ._engine.circle(this,b||0,R||0,E||0);this.__set__&&this.__set__.push(g);return g};aW.rect=function(b,bB,g,R,S){var E=aJ._engine.rect(this,b||0,bB||0,g||0,R||0,S||0);this.__set__&&this.__set__.push(E);return E};aW.ellipse=function(b,S,R,E){var g=aJ._engine.ellipse(this,b||0,S||0,R||0,E||0);this.__set__&&this.__set__.push(g);return g};aW.path=function(b){b&&!aJ.is(b,aa)&&!aJ.is(b[0],a5)&&(b+=aP);var g=aJ._engine.path(aJ.format[bw](aJ,arguments),this);this.__set__&&this.__set__.push(g);return g};aW.image=function(S,b,bB,g,R){var E=aJ._engine.image(this,S||"about:blank",b||0,bB||0,g||0,R||0);this.__set__&&this.__set__.push(E);return E};aW.text=function(b,R,E){var g=aJ._engine.text(this,b||0,R||0,bx(E));this.__set__&&this.__set__.push(g);return g};aW.set=function(g){!aJ.is(g,"array")&&(g=Array.prototype.splice.call(arguments,0,arguments.length));var b=new ad(g);this.__set__&&this.__set__.push(b);return b};aW.setStart=function(b){this.__set__=b||this.set()};aW.setFinish=function(g){var b=this.__set__;delete this.__set__;return b};aW.setSize=function(g,b){return aJ._engine.setSize.call(this,g,b)};aW.setViewBox=function(b,S,g,R,E){return aJ._engine.setViewBox.call(this,b,S,g,R,E)};aW.top=aW.bottom=null;aW.raphael=aJ;var bi=function(E){var S=E.getBoundingClientRect(),bE=E.ownerDocument,bB=bE.body,b=bE.documentElement,R=b.clientTop||bB.clientTop||0,bC=b.clientLeft||bB.clientLeft||0,bD=S.top+(ar.win.pageYOffset||b.scrollTop||bB.scrollTop)-R,g=S.left+(ar.win.pageXOffset||b.scrollLeft||bB.scrollLeft)-bC;return{y:bD,x:g}};aW.getElementByPoint=function(g,bD){var bC=this,E=bC.canvas,bB=ar.doc.elementFromPoint(g,bD);if(ar.win.opera&&bB.tagName=="svg"){var S=bi(E),R=E.createSVGRect();R.x=g-S.x;R.y=bD-S.y;R.width=R.height=1;var b=E.getIntersectionList(R,null);if(b.length){bB=b[b.length-1]}}if(!bB){return null}while(bB.parentNode&&bB!=E.parentNode&&!bB.raphael){bB=bB.parentNode}bB==bC.canvas.parentNode&&(bB=E);bB=bB&&bB.raphael?bC.getById(bB.raphaelid):null;return bB};aW.getById=function(g){var b=this.bottom;while(b){if(b.id==g){return b}b=b.next}return null};aW.forEach=function(E,b){var g=this.bottom;while(g){if(E.call(b,g)===false){return this}g=g.next}return this};function y(){return this.x+aI+this.y}function ak(){return this.x+aI+this.y+aI+this.width+" \xd7 "+this.height}a9.getBBox=function(g){if(this.removed){return{}}var b=this._;if(g){if(b.dirty||!b.bboxwt){this.realPath=L[this.type](this);b.bboxwt=ae(this.realPath);b.bboxwt.toString=ak;b.dirty=0}return b.bboxwt}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath){b.bboxwt=0;this.realPath=L[this.type](this)}b.bbox=ae(J(this.realPath,this.matrix));b.bbox.toString=ak;b.dirty=b.dirtyT=0}return b.bbox};a9.clone=function(){if(this.removed){return null}var b=this.paper[this.type]().attr(this.attr());this.__set__&&this.__set__.push(b);return b};a9.glow=function(bC){if(this.type=="text"){return null}bC=bC||{};var E={width:(bC.width||10)+(+this.attr("stroke-width")||1),fill:bC.fill||false,opacity:bC.opacity||0.5,offsetx:bC.offsetx||0,offsety:bC.offsety||0,color:bC.color||"#000"},bB=E.width/2,R=this.paper,b=R.set(),S=this.realPath||L[this.type](this);S=this.matrix?J(S,this.matrix):S;for(var g=1;g<bB+1;g++){b.push(R.path(S).attr({stroke:E.color,fill:E.fill?E.color:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(E.width/bB*g).toFixed(3),opacity:+(E.opacity/bB).toFixed(3)}))}return b.insertBefore(this).translate(E.offsetx,E.offsety)};var aZ={},k=function(S,g,bE,bD,bM,bL,bK,bI,bB){var bH=0,bG=100,R=[S,g,bE,bD,bM,bL,bK,bI].join(),b=aZ[R],bC,E;!b&&(aZ[R]=b={data:[]});b.timer&&clearTimeout(b.timer);b.timer=setTimeout(function(){delete aZ[R]},2000);if(bB!=null&&!b.precision){var bJ=k(S,g,bE,bD,bM,bL,bK,bI);b.precision=~~bJ*10;b.data=[]}bG=b.precision||bG;for(var bF=0;bF<bG+1;bF++){if(b.data[bF*bG]){E=b.data[bF*bG]}else{E=aJ.findDotsAtSegment(S,g,bE,bD,bM,bL,bK,bI,bF/bG);b.data[bF*bG]=E}bF&&(bH+=bf(bf(bC.x-E.x,2)+bf(bC.y-E.y,2),0.5));if(bB!=null&&bH>=bB){return E}bC=E}if(bB==null){return bH}},aY=function(b,g){return function(bK,S,bB){bK=Q(bK);var bG,bF,E,bC,R="",bJ={},bH,bE=0;for(var bD=0,bI=bK.length;bD<bI;bD++){E=bK[bD];if(E[0]=="M"){bG=+E[1];bF=+E[2]}else{bC=k(bG,bF,E[1],E[2],E[3],E[4],E[5],E[6]);if(bE+bC>S){if(g&&!bJ.start){bH=k(bG,bF,E[1],E[2],E[3],E[4],E[5],E[6],S-bE);R+=["C"+bH.start.x,bH.start.y,bH.m.x,bH.m.y,bH.x,bH.y];if(bB){return R}bJ.start=R;R=["M"+bH.x,bH.y+"C"+bH.n.x,bH.n.y,bH.end.x,bH.end.y,E[5],E[6]].join();bE+=bC;bG=+E[5];bF=+E[6];continue}if(!b&&!g){bH=k(bG,bF,E[1],E[2],E[3],E[4],E[5],E[6],S-bE);return{x:bH.x,y:bH.y,alpha:bH.alpha}}}bE+=bC;bG=+E[5];bF=+E[6]}R+=E.shift()+E}bJ.end=R;bH=b?bE:g?bJ:aJ.findDotsAtSegment(bG,bF,E[0],E[1],E[2],E[3],E[4],E[5],1);bH.alpha&&(bH={x:bH.x,y:bH.y,alpha:bH.alpha});return bH}};var aK=aY(1),H=aY(),V=aY(0,1);aJ.getTotalLength=aK;aJ.getPointAtLength=H;aJ.getSubpath=function(g,R,E){if(this.getTotalLength(g)-E<0.000001){return V(g,R).end}var b=V(g,E,1);return R?V(b,R).end:b};a9.getTotalLength=function(){if(this.type!="path"){return}if(this.node.getTotalLength){return this.node.getTotalLength()}return aK(this.attrs.path)};a9.getPointAtLength=function(b){if(this.type!="path"){return}return H(this.attrs.path,b)};a9.getSubpath=function(g,b){if(this.type!="path"){return}return aJ.getSubpath(this.attrs.path,g,b)};var o=aJ.easing_formulas={linear:function(b){return b},"<":function(b){return bf(b,1.7)},">":function(b){return bf(b,0.48)},"<>":function(bD){var R=0.48-bD/1.04,E=al.sqrt(0.1734+R*R),b=E-R,bC=bf(ao(b),1/3)*(b<0?-1:1),bB=-E-R,S=bf(ao(bB),1/3)*(bB<0?-1:1),g=bC+S+0.5;return(1-g)*3*g*g+g*g*g},backIn:function(g){var b=1.70158;return g*g*((b+1)*g-b)},backOut:function(g){g=g-1;var b=1.70158;return g*g*((b+1)*g+b)+1},elastic:function(b){if(b==!!b){return b}return bf(2,-10*b)*al.sin((b-0.075)*(2*aN)/0.3)+1},bounce:function(R){var g=7.5625,E=2.75,b;if(R<(1/E)){b=g*R*R}else{if(R<(2/E)){R-=(1.5/E);b=g*R*R+0.75}else{if(R<(2.5/E)){R-=(2.25/E);b=g*R*R+0.9375}else{R-=(2.625/E);b=g*R*R+0.984375}}}return b}};o.easeIn=o["ease-in"]=o["<"];o.easeOut=o["ease-out"]=o[">"];o.easeInOut=o["ease-in-out"]=o["<>"];o["back-in"]=o.backIn;o["back-out"]=o.backOut;var U=[],aF=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(b){setTimeout(b,16)},bs=function(){var bC=+new Date,bK=0;for(;bK<U.length;bK++){var bQ=U[bK];if(bQ.el.removed||bQ.paused){continue}var R=bC-bQ.start,bI=bQ.ms,bH=bQ.easing,bL=bQ.from,bF=bQ.diff,g=bQ.to,bE=bQ.t,bB=bQ.el,bG={},b,bO={},bS;if(bQ.initstatus){R=(bQ.initstatus*bQ.anim.top-bQ.prev)/(bQ.percent-bQ.prev)*bI;bQ.status=bQ.initstatus;delete bQ.initstatus;bQ.stop&&U.splice(bK--,1)}else{bQ.status=(bQ.prev+(bQ.percent-bQ.prev)*(R/bI))/bQ.anim.top}if(R<0){continue}if(R<bI){var E=bH(R/bI);for(var bJ in bL){if(bL[ab](bJ)){switch(aj[bJ]){case aD:b=+bL[bJ]+E*bI*bF[bJ];break;case"colour":b="rgb("+[F(Y(bL[bJ].r+E*bI*bF[bJ].r)),F(Y(bL[bJ].g+E*bI*bF[bJ].g)),F(Y(bL[bJ].b+E*bI*bF[bJ].b))].join(",")+")";break;case"path":b=[];for(var bN=0,bD=bL[bJ].length;bN<bD;bN++){b[bN]=[bL[bJ][bN][0]];for(var bM=1,bP=bL[bJ][bN].length;bM<bP;bM++){b[bN][bM]=+bL[bJ][bN][bM]+E*bI*bF[bJ][bN][bM]}b[bN]=b[bN].join(aI)}b=b.join(aI);break;case"transform":if(bF[bJ].real){b=[];for(bN=0,bD=bL[bJ].length;bN<bD;bN++){b[bN]=[bL[bJ][bN][0]];for(bM=1,bP=bL[bJ][bN].length;bM<bP;bM++){b[bN][bM]=bL[bJ][bN][bM]+E*bI*bF[bJ][bN][bM]}}}else{var bR=function(bT){return +bL[bJ][bT]+E*bI*bF[bJ][bT]};b=[["m",bR(0),bR(1),bR(2),bR(3),bR(4),bR(5)]]}break;case"csv":if(bJ=="clip-rect"){b=[];bN=4;while(bN--){b[bN]=+bL[bJ][bN]+E*bI*bF[bJ][bN]}}break;default:var S=[][bu](bL[bJ]);b=[];bN=bB.paper.customAttributes[bJ].length;while(bN--){b[bN]=+S[bN]+E*bI*bF[bJ][bN]}break}bG[bJ]=b}}bB.attr(bG);(function(bV,bT,bU){setTimeout(function(){eve("anim.frame."+bV,bT,bU)})})(bB.id,bB,bQ.anim)}else{(function(bV,bU,bT){setTimeout(function(){eve("anim.frame."+bU.id,bU,bT);eve("anim.finish."+bU.id,bU,bT);aJ.is(bV,"function")&&bV.call(bU)})})(bQ.callback,bB,bQ.anim);bB.attr(g);U.splice(bK--,1);if(bQ.repeat>1&&!bQ.next){for(bS in g){if(g[ab](bS)){bO[bS]=bQ.totalOrigin[bS]}}bQ.el.attr(bO);aE(bQ.anim,bQ.el,bQ.anim.percents[0],null,bQ.totalOrigin,bQ.repeat-1)}if(bQ.next&&!bQ.stop){aE(bQ.anim,bQ.el,bQ.next,null,bQ.totalOrigin,bQ.repeat)}}}aJ.svg&&bB&&bB.paper&&bB.paper.safari();U.length&&aF(bs)},F=function(b){return b>255?255:b<0?0:b};a9.animateWith=function(R,S,bB,E,bD,bC){var g=bB?aJ.animation(bB,E,bD,bC):S,b=R.status(S);return this.animate(g).status(g,b*S.ms/g.ms)};function aV(bJ,R,g,bI,bH,bD){var bE=3*R,bG=3*(bI-R)-bE,b=1-bE-bG,bC=3*g,bF=3*(bH-g)-bC,bK=1-bC-bF;function bB(bL){return((b*bL+bG)*bL+bE)*bL}function E(bL,bN){var bM=S(bL,bN);return((bK*bM+bF)*bM+bC)*bM}function S(bL,bS){var bR,bQ,bO,bM,bP,bN;for(bO=bL,bN=0;bN<8;bN++){bM=bB(bO)-bL;if(ao(bM)<bS){return bO}bP=(3*b*bO+2*bG)*bO+bE;if(ao(bP)<0.000001){break}bO=bO-bM/bP}bR=0;bQ=1;bO=bL;if(bO<bR){return bR}if(bO>bQ){return bQ}while(bR<bQ){bM=bB(bO);if(ao(bM-bL)<bS){return bO}if(bL>bM){bR=bO}else{bQ=bO}bO=(bQ-bR)/2+bR}return bO}return E(bJ,1/(200*bD))}a9.onAnimation=function(b){b?eve.on("anim.frame."+this.id,b):eve.unbind("anim.frame."+this.id);return this};function bq(S,E){var g=[],R={};this.ms=E;this.times=1;if(S){for(var b in S){if(S[ab](b)){R[af(b)]=S[b];g.push(af(b))}}g.sort(u)}this.anim=R;this.top=g[g.length-1];this.percents=g}bq.prototype.delay=function(g){var b=new bq(this.anim,this.ms);b.times=this.times;b.del=+g||0;return b};bq.prototype.repeat=function(g){var b=new bq(this.anim,this.ms);b.del=this.del;b.times=al.floor(m(g,0))||1;return b};function aE(bU,E,b,bS,bC,bG){b=af(b);var b1,bB,bF,b2=[],bM,bL,S,bO=bU.ms,bT={},R={},bI={};if(bS){for(bX=0,bH=U.length;bX<bH;bX++){var bZ=U[bX];if(bZ.el.id==E.id&&bZ.anim==bU){if(bZ.percent!=b){U.splice(bX,1);bF=1}else{bB=bZ}E.attr(bZ.totalOrigin);break}}}else{bS=+R}for(var bX=0,bH=bU.percents.length;bX<bH;bX++){if(bU.percents[bX]==b||bU.percents[bX]>bS*bU.top){b=bU.percents[bX];bL=bU.percents[bX-1]||0;bO=bO/bU.top*(b-bL);bM=bU.percents[bX+1];b1=bU.anim[b];break}else{if(bS){E.attr(bU.anim[bU.percents[bX]])}}}if(!b1){return}if(!bB){for(var bQ in b1){if(b1[ab](bQ)){if(aj[ab](bQ)||E.paper.customAttributes[ab](bQ)){bT[bQ]=E.attr(bQ);(bT[bQ]==null)&&(bT[bQ]=q[bQ]);R[bQ]=b1[bQ];switch(aj[bQ]){case aD:bI[bQ]=(R[bQ]-bT[bQ])/bO;break;case"colour":bT[bQ]=aJ.getRGB(bT[bQ]);var bR=aJ.getRGB(R[bQ]);bI[bQ]={r:(bR.r-bT[bQ].r)/bO,g:(bR.g-bT[bQ].g)/bO,b:(bR.b-bT[bQ].b)/bO};break;case"path":var bD=Q(bT[bQ],R[bQ]),bK=bD[1];bT[bQ]=bD[0];bI[bQ]=[];for(bX=0,bH=bT[bQ].length;bX<bH;bX++){bI[bQ][bX]=[0];for(var bW=1,bY=bT[bQ][bX].length;bW<bY;bW++){bI[bQ][bX][bW]=(bK[bX][bW]-bT[bQ][bX][bW])/bO}}break;case"transform":var b4=E._,b3=at(b4[bQ],R[bQ]);if(b3){bT[bQ]=b3.from;R[bQ]=b3.to;bI[bQ]=[];bI[bQ].real=true;for(bX=0,bH=bT[bQ].length;bX<bH;bX++){bI[bQ][bX]=[bT[bQ][bX][0]];for(bW=1,bY=bT[bQ][bX].length;bW<bY;bW++){bI[bQ][bX][bW]=(R[bQ][bX][bW]-bT[bQ][bX][bW])/bO}}}else{var bP=(E.matrix||new ax),b0={_:{transform:b4.transform},getBBox:function(){return E.getBBox(1)}};bT[bQ]=[bP.a,bP.b,bP.c,bP.d,bP.e,bP.f];aG(b0,R[bQ]);R[bQ]=b0._.transform;bI[bQ]=[(b0.matrix.a-bP.a)/bO,(b0.matrix.b-bP.b)/bO,(b0.matrix.c-bP.c)/bO,(b0.matrix.d-bP.d)/bO,(b0.matrix.e-bP.e)/bO,(b0.matrix.e-bP.f)/bO]}break;case"csv":var g=bx(b1[bQ])[C](a),bE=bx(bT[bQ])[C](a);if(bQ=="clip-rect"){bT[bQ]=bE;bI[bQ]=[];bX=bE.length;while(bX--){bI[bQ][bX]=(g[bX]-bT[bQ][bX])/bO}}R[bQ]=g;break;default:g=[][bu](b1[bQ]);bE=[][bu](bT[bQ]);bI[bQ]=[];bX=E.paper.customAttributes[bQ].length;while(bX--){bI[bQ][bX]=((g[bX]||0)-(bE[bX]||0))/bO}break}}}}var bN=b1.easing,bV=aJ.easing_formulas[bN];if(!bV){bV=bx(bN).match(c);if(bV&&bV.length==5){var bJ=bV;bV=function(b5){return aV(b5,+bJ[1],+bJ[2],+bJ[3],+bJ[4],bO)}}else{bV=br}}S=b1.start||bU.start||+new Date;bZ={anim:bU,percent:b,timestamp:S,start:S+(bU.del||0),status:0,initstatus:bS||0,stop:false,ms:bO,easing:bV,from:bT,diff:bI,to:R,el:E,callback:b1.callback,prev:bL,next:bM,repeat:bG||bU.times,origin:E.attr(),totalOrigin:bC};U.push(bZ);if(bS&&!bB&&!bF){bZ.stop=true;bZ.start=new Date-bO*bS;if(U.length==1){return bs()}}if(bF){bZ.start=new Date-bZ.ms*bS}U.length==1&&aF(bs)}else{bB.initstatus=bS;bB.start=new Date-bB.ms*bS}eve("anim.start."+E.id,E,bU)}aJ.animation=function(S,g,bC,bB){if(S instanceof bq){return S}if(aJ.is(bC,"function")||!bC){bB=bB||bC||null;bC=null}S=Object(S);g=+g||0;var R={},E,b;for(b in S){if(S[ab](b)&&af(b)!=b&&af(b)+"%"!=b){E=true;R[b]=S[b]}}if(!E){return new bq(S,g)}else{bC&&(R.easing=bC);bB&&(R.callback=bB);return new bq({100:R},g)}};a9.animate=function(R,b,bB,S){var g=this;if(g.removed){S&&S.call(g);return g}var E=R instanceof bq?R:aJ.animation(R,b,bB,S);aE(E,g,E.percents[0],null,g.attr());return g};a9.setTime=function(g,b){if(g&&b!=null){this.status(g,bc(b,g.ms)/g.ms)}return this};a9.status=function(S,R){var g=[],E=0,b,bB;if(R!=null){aE(S,this,-1,bc(R,1));return this}else{b=U.length;for(;E<b;E++){bB=U[E];if(bB.el.id==this.id&&(!S||bB.anim==S)){if(S){return bB.status}g.push({anim:bB.anim,status:bB.status})}}if(S){return 0}return g}};a9.pause=function(g){for(var b=0;b<U.length;b++){if(U[b].el.id==this.id&&(!g||U[b].anim==g)){if(eve("anim.pause."+this.id,this,U[b].anim)!==false){U[b].paused=true}}}return this};a9.resume=function(g){for(var b=0;b<U.length;b++){if(U[b].el.id==this.id&&(!g||U[b].anim==g)){var E=U[b];if(eve("anim.resume."+this.id,this,E.anim)!==false){delete E.paused;this.status(E.anim,E.status)}}}return this};a9.stop=function(g){for(var b=0;b<U.length;b++){if(U[b].el.id==this.id&&(!g||U[b].anim==g)){if(eve("anim.stop."+this.id,this,U[b].anim)!==false){U.splice(b--,1)}}}return this};a9.toString=function(){return"Rapha\xebl\u2019s object"};var ad=function(b){this.items=[];this.length=0;this.type="set";if(b){for(var g=0,E=b.length;g<E;g++){if(b[g]&&(b[g].constructor==a9.constructor||b[g].constructor==ad)){this[this.items.length]=this.items[this.items.length]=b[g];this.length++}}}},a4=ad.prototype;a4.push=function(){var R,b;for(var g=0,E=arguments.length;g<E;g++){R=arguments[g];if(R&&(R.constructor==a9.constructor||R.constructor==ad)){b=this.items.length;this[b]=this.items[b]=R;this.length++}}return this};a4.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};a4.forEach=function(R,b){for(var g=0,E=this.items.length;g<E;g++){if(R.call(b,this.items[g],g)===false){return this}}return this};for(var B in a9){if(a9[ab](B)){a4[B]=(function(b){return function(){var g=arguments;return this.forEach(function(E){E[b][bw](E,g)})}})(B)}}a4.attr=function(g,bB){if(g&&aJ.is(g,a5)&&aJ.is(g[0],"object")){for(var b=0,S=g.length;b<S;b++){this.items[b].attr(g[b])}}else{for(var E=0,R=this.items.length;E<R;E++){this.items[E].attr(g,bB)}}return this};a4.clear=function(){while(this.length){this.pop()}};a4.splice=function(R,bC,bD){R=R<0?m(this.length+R,0):R;bC=m(0,bc(this.length-R,bC));var E=[],b=[],g=[],S;for(S=2;S<arguments.length;S++){g.push(arguments[S])}for(S=0;S<bC;S++){b.push(this[R+S])}for(;S<this.length-R;S++){E.push(this[R+S])}var bB=g.length;for(S=0;S<bB+E.length;S++){this.items[R+S]=this[R+S]=S<bB?g[S]:E[S-bB]}S=this.items.length=this.length-=bC-bB;while(this[S]){delete this[S++]}return new ad(b)};a4.exclude=function(E){for(var b=0,g=this.length;b<g;b++){if(this[b]==E){this.splice(b,1);return true}}};a4.animate=function(E,b,bC,bE){(aJ.is(bC,"function")||!bC)&&(bE=bC||null);var bB=this.items.length,R=bB,bF,bD=this,S;if(!bB){return this}bE&&(S=function(){!--bB&&bE.call(bD)});bC=aJ.is(bC,aa)?bC:S;var g=aJ.animation(E,b,bC,S);bF=this.items[--R].animate(g);while(R--){this.items[R]&&!this.items[R].removed&&this.items[R].animateWith(bF,g)}return this};a4.insertAfter=function(g){var b=this.items.length;while(b--){this.items[b].insertAfter(g)}return this};a4.getBBox=function(){var b=[],bB=[],g=[],R=[];for(var E=this.items.length;E--;){if(!this.items[E].removed){var S=this.items[E].getBBox();b.push(S.x);bB.push(S.y);g.push(S.x+S.width);R.push(S.y+S.height)}}b=bc[bw](0,b);bB=bc[bw](0,bB);return{x:b,y:bB,width:m[bw](0,g)-b,height:m[bw](0,R)-bB}};a4.clone=function(E){E=new ad;for(var b=0,g=this.items.length;b<g;b++){E.push(this.items[b].clone())}return E};a4.toString=function(){return"Rapha\xebl\u2018s set"};aJ.registerFont=function(g){if(!g.face){return g}this.fonts=this.fonts||{};var R={w:g.w,face:{},glyphs:{}},E=g.face["font-family"];for(var bC in g.face){if(g.face[ab](bC)){R.face[bC]=g.face[bC]}}if(this.fonts[E]){this.fonts[E].push(R)}else{this.fonts[E]=[R]}if(!g.svg){R.face["units-per-em"]=O(g.face["units-per-em"],10);for(var S in g.glyphs){if(g.glyphs[ab](S)){var bB=g.glyphs[S];R.glyphs[S]={w:bB.w,k:{},d:bB.d&&"M"+bB.d.replace(/[mlcxtrv]/g,function(bD){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[bD]||"M"})+"z"};if(bB.k){for(var b in bB.k){if(bB[ab](b)){R.glyphs[S].k[b]=bB.k[b]}}}}}}return g};aW.getFont=function(bD,bE,g,R){R=R||"normal";g=g||"normal";bE=+bE||{normal:400,bold:700,lighter:300,bolder:800}[bE]||400;if(!aJ.fonts){return}var S=aJ.fonts[bD];if(!S){var E=new RegExp("(^|\\s)"+bD.replace(/[^\w\d\s+!~.:_-]/g,aP)+"(\\s|$)","i");for(var b in aJ.fonts){if(aJ.fonts[ab](b)){if(E.test(b)){S=aJ.fonts[b];break}}}}var bB;if(S){for(var bC=0,bF=S.length;bC<bF;bC++){bB=S[bC];if(bB.face["font-weight"]==bE&&(bB.face["font-style"]==g||!bB.face["font-style"])&&bB.face["font-stretch"]==R){break}}}return bB};aW.print=function(S,R,b,bD,bE,bN,g){bN=bN||"middle";g=m(bc(g||0,1),-1);var bJ=this.set(),bM=bx(b)[C](aP),bK=0,bH=aP,bO;aJ.is(bD,b)&&(bD=this.getFont(bD));if(bD){bO=(bE||16)/bD.face["units-per-em"];var E=bD.face.bbox[C](a),bC=+E[0],bF=+E[1]+(bN=="baseline"?E[3]-E[1]+(+bD.face.descent):(E[3]-E[1])/2);for(var bI=0,bB=bM.length;bI<bB;bI++){var bG=bI&&bD.glyphs[bM[bI-1]]||{},bL=bD.glyphs[bM[bI]];bK+=bI?(bG.w||bD.w)+(bG.k&&bG.k[bM[bI]]||0)+(bD.w*g):0;bL&&bL.d&&bJ.push(this.path(bL.d).attr({fill:"#000",stroke:"none",transform:[["t",bK*bO,0]]}))}bJ.transform(["...s",bO,bO,bC,bF,"t",(S-bC)/bO,(R-bF)/bO])}return bJ};aW.add=function(R){if(aJ.is(R,"array")){var E=this.set(),g=0,S=R.length,b;for(;g<S;g++){b=R[g]||{};bm[ab](b.type)&&E.push(this[b.type]().attr(b))}}return E};aJ.format=function(g,E){var b=aJ.is(E,a5)?[0][bu](E):arguments;g&&aJ.is(g,aa)&&b.length-1&&(g=g.replace(bh,function(S,R){return b[++R]==null?aP:b[R]}));return g||aP};aJ.fullfill=(function(){var E=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,g=function(bB,S,bC){var R=bC;S.replace(b,function(bF,bE,bD,bH,bG){bE=bE||bH;if(R){if(bE in R){R=R[bE]}typeof R=="function"&&bG&&(R=R())}});R=(R==null||R==bC?bB:R)+"";return R};return function(S,R){return String(S).replace(E,function(bC,bB){return g(bC,bB,R)})}})();aJ.ninja=function(){s.was?(ar.win.Raphael=s.is):delete Raphael;return aJ};aJ.st=a4;(function(R,g,E){if(R.readyState==null&&R.addEventListener){R.addEventListener(g,E=function(){R.removeEventListener(g,E,false);R.readyState="complete"},false);R.readyState="loading"}function b(){(/in/).test(R.readyState)?setTimeout(b,9):aJ.eve("DOMload")}b()})(document,"DOMContentLoaded");s.was?(ar.win.Raphael=aJ):(Raphael=aJ);eve.on("DOMload",function(){ag=true})})();window.Raphael.svg&&function(n){var e="hasOwnProperty",G=String,p=parseFloat,u=parseInt,g=Math,H=g.max,w=g.abs,j=g.pow,h=/[, ]+/,D=n.eve,v="",l=" ";var q="http://www.w3.org/1999/xlink",C={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},y={};n.toString=function(){return"Your browser supports SVG.\nYou are running Rapha\xebl "+this.version};var k=function(J,E){if(E){if(typeof J=="string"){J=k(J)}for(var I in E){if(E[e](I)){if(I.substring(0,6)=="xlink:"){J.setAttributeNS(q,I.substring(6),G(E[I]))}else{J.setAttribute(I,G(E[I]))}}}}else{J=n._g.doc.createElementNS("http://www.w3.org/2000/svg",J);J.style&&(J.style.webkitTapHighlightColor="rgba(0,0,0,0)")}return J},a=function(Q,U){var S="linear",I=Q.id+U,O=0.5,M=0.5,K=Q.node,E=Q.paper,W=K.style,J=n._g.doc.getElementById(I);if(!J){U=G(U).replace(n._radial_gradient,function(Z,X,aa){S="radial";if(X&&aa){O=p(X);M=p(aa);var Y=((M>0.5)*2-1);j(O-0.5,2)+j(M-0.5,2)>0.25&&(M=g.sqrt(0.25-j(O-0.5,2))*Y+0.5)&&M!=0.5&&(M=M.toFixed(5)-0.00001*Y)}return v});U=U.split(/\s*\-\s*/);if(S=="linear"){var N=U.shift();N=-p(N);if(isNaN(N)){return null}var L=[0,0,g.cos(n.rad(N)),g.sin(n.rad(N))],T=1/(H(w(L[2]),w(L[3]))||1);L[2]*=T;L[3]*=T;if(L[2]<0){L[0]=-L[2];L[2]=0}if(L[3]<0){L[1]=-L[3];L[3]=0}}var R=n._parseDots(U);if(!R){return null}I=I.replace(/[\(\)\s,\xb0#]/g,"_");if(Q.gradient&&I!=Q.gradient.id){E.defs.removeChild(Q.gradient);delete Q.gradient}if(!Q.gradient){J=k(S+"Gradient",{id:I});Q.gradient=J;k(J,S=="radial"?{fx:O,fy:M}:{x1:L[0],y1:L[1],x2:L[2],y2:L[3],gradientTransform:Q.matrix.invert()});E.defs.appendChild(J);for(var P=0,V=R.length;P<V;P++){J.appendChild(k("stop",{offset:R[P].offset?R[P].offset:P?"100%":"0%","stop-color":R[P].color||"#fff"}))}}}k(K,{fill:"url(#"+I+")",opacity:1,"fill-opacity":1});W.fill=v;W.opacity=1;W.fillOpacity=1;return 1},b=function(I){var E=I.getBBox(1);k(I.pattern,{patternTransform:I.matrix.invert()+" translate("+E.x+","+E.y+")"})},c=function(S,U,N){if(S.type=="path"){var E=G(U).toLowerCase().split("-"),R=S.paper,ag=N?"end":"start",W=S.node,T=S.attrs,M=T["stroke-width"],aa=E.length,K="classic",Z,J,P,X,V,O=3,ab=3,Q=5;while(aa--){switch(E[aa]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":K=E[aa];break;case"wide":ab=5;break;case"narrow":ab=2;break;case"long":O=5;break;case"short":O=2;break}}if(K=="open"){O+=2;ab+=2;Q+=2;P=1;X=N?4:1;V={fill:"none",stroke:T.stroke}}else{X=P=O/2;V={fill:T.stroke,stroke:"none"}}if(S._.arrows){if(N){S._.arrows.endPath&&y[S._.arrows.endPath]--;S._.arrows.endMarker&&y[S._.arrows.endMarker]--}else{S._.arrows.startPath&&y[S._.arrows.startPath]--;S._.arrows.startMarker&&y[S._.arrows.startMarker]--}}else{S._.arrows={}}if(K!="none"){var I="raphael-marker-"+K,af="raphael-marker-"+ag+K+O+ab;if(!n._g.doc.getElementById(I)){R.defs.appendChild(k(k("path"),{"stroke-linecap":"round",d:C[K],id:I}));y[I]=1}else{y[I]++}var L=n._g.doc.getElementById(af),Y;if(!L){L=k(k("marker"),{id:af,markerHeight:ab,markerWidth:O,orient:"auto",refX:X,refY:ab/2});Y=k(k("use"),{"xlink:href":"#"+I,transform:(N?" rotate(180 "+O/2+" "+ab/2+") ":l)+"scale("+O/Q+","+ab/Q+")","stroke-width":1/((O/Q+ab/Q)/2)});L.appendChild(Y);R.defs.appendChild(L);y[af]=1}else{y[af]++;Y=L.getElementsByTagName("use")[0]}k(Y,V);var ae=P*(K!="diamond"&&K!="oval");if(N){Z=S._.arrows.startdx*M||0;J=n.getTotalLength(T.path)-ae*M}else{Z=ae*M;J=n.getTotalLength(T.path)-(S._.arrows.enddx*M||0)}V={};V["marker-"+ag]="url(#"+af+")";if(J||Z){V.d=Raphael.getSubpath(T.path,Z,J)}k(W,V);S._.arrows[ag+"Path"]=I;S._.arrows[ag+"Marker"]=af;S._.arrows[ag+"dx"]=ae;S._.arrows[ag+"Type"]=K;S._.arrows[ag+"String"]=U}else{if(N){Z=S._.arrows.startdx*M||0;J=n.getTotalLength(T.path)-Z}else{Z=0;J=n.getTotalLength(T.path)-(S._.arrows.enddx*M||0)}S._.arrows[ag+"Path"]&&k(W,{d:Raphael.getSubpath(T.path,Z,J)});delete S._.arrows[ag+"Path"];delete S._.arrows[ag+"Marker"];delete S._.arrows[ag+"dx"];delete S._.arrows[ag+"Type"];delete S._.arrows[ag+"String"]}for(V in y){if(y[e](V)&&!y[V]){var ad=n._g.doc.getElementById(V);ad&&ad.parentNode.removeChild(ad)}}}},z={"":[0],none:[0],"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},m=function(N,L,M){L=z[G(L).toLowerCase()];if(L){var J=N.attrs["stroke-width"]||"1",E={round:J,square:J,butt:0}[N.attrs["stroke-linecap"]||M["stroke-linecap"]]||0,K=[],I=L.length;while(I--){K[I]=L[I]*J+((I%2)?1:-1)*E}k(N.node,{"stroke-dasharray":K.join(",")})}},A=function(S,aa){var W=S.node,T=S.attrs,Q=W.style.visibility;W.style.visibility="hidden";for(var V in aa){if(aa[e](V)){if(!n._availableAttrs[e](V)){continue}var U=aa[V];T[V]=U;switch(V){case"blur":S.blur(U);break;case"href":case"title":case"target":var Y=W.parentNode;if(Y.tagName.toLowerCase()!="a"){var L=k("a");Y.insertBefore(L,W);L.appendChild(W);Y=L}if(V=="target"&&U=="blank"){Y.setAttributeNS(q,"show","new")}else{Y.setAttributeNS(q,V,U)}break;case"cursor":W.style.cursor=U;break;case"transform":S.transform(U);break;case"arrow-start":c(S,U);break;case"arrow-end":c(S,U,1);break;case"clip-rect":var I=G(U).split(h);if(I.length==4){S.clip&&S.clip.parentNode.parentNode.removeChild(S.clip.parentNode);var J=k("clipPath"),X=k("rect");J.id=n.createUUID();k(X,{x:I[0],y:I[1],width:I[2],height:I[3]});J.appendChild(X);S.paper.defs.appendChild(J);k(W,{"clip-path":"url(#"+J.id+")"});S.clip=X}if(!U){var R=W.getAttribute("clip-path");if(R){var Z=n._g.doc.getElementById(R.replace(/(^url\(#|\)$)/g,v));Z&&Z.parentNode.removeChild(Z);k(W,{"clip-path":v});delete S.clip}}break;case"path":if(S.type=="path"){k(W,{d:U?T.path=n._pathToAbsolute(U):"M0,0"});S._.dirty=1;if(S._.arrows){"startString" in S._.arrows&&c(S,S._.arrows.startString);"endString" in S._.arrows&&c(S,S._.arrows.endString,1)}}break;case"width":W.setAttribute(V,U);S._.dirty=1;if(T.fx){V="x";U=T.x}else{break}case"x":if(T.fx){U=-T.x-(T.width||0)}case"rx":if(V=="rx"&&S.type=="rect"){break}case"cx":W.setAttribute(V,U);S.pattern&&b(S);S._.dirty=1;break;case"height":W.setAttribute(V,U);S._.dirty=1;if(T.fy){V="y";U=T.y}else{break}case"y":if(T.fy){U=-T.y-(T.height||0)}case"ry":if(V=="ry"&&S.type=="rect"){break}case"cy":W.setAttribute(V,U);S.pattern&&b(S);S._.dirty=1;break;case"r":if(S.type=="rect"){k(W,{rx:U,ry:U})}else{W.setAttribute(V,U)}S._.dirty=1;break;case"src":if(S.type=="image"){W.setAttributeNS(q,"href",U)}break;case"stroke-width":if(S._.sx!=1||S._.sy!=1){U/=H(w(S._.sx),w(S._.sy))||1}if(S.paper._vbSize){U*=S.paper._vbSize}W.setAttribute(V,U);if(T["stroke-dasharray"]){m(S,T["stroke-dasharray"],aa)}if(S._.arrows){"startString" in S._.arrows&&c(S,S._.arrows.startString);"endString" in S._.arrows&&c(S,S._.arrows.endString,1)}break;case"stroke-dasharray":m(S,U,aa);break;case"fill":var M=G(U).match(n._ISURL);if(M){J=k("pattern");var P=k("image");J.id=n.createUUID();k(J,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});k(P,{x:0,y:0,"xlink:href":M[1]});J.appendChild(P);(function(ab){n._preload(M[1],function(){var ad=this.offsetWidth,ae=this.offsetHeight;k(ab,{width:ad,height:ae});k(P,{width:ad,height:ae});S.paper.safari()})})(J);S.paper.defs.appendChild(J);W.style.fill="url(#"+J.id+")";k(W,{fill:"url(#"+J.id+")"});S.pattern=J;S.pattern&&b(S);break}var K=n.getRGB(U);if(!K.error){delete aa.gradient;delete T.gradient;!n.is(T.opacity,"undefined")&&n.is(aa.opacity,"undefined")&&k(W,{opacity:T.opacity});!n.is(T["fill-opacity"],"undefined")&&n.is(aa["fill-opacity"],"undefined")&&k(W,{"fill-opacity":T["fill-opacity"]})}else{if((S.type=="circle"||S.type=="ellipse"||G(U).charAt()!="r")&&a(S,U)){if("opacity" in T||"fill-opacity" in T){var E=n._g.doc.getElementById(W.getAttribute("fill").replace(/^url\(#|\)$/g,v));if(E){var N=E.getElementsByTagName("stop");k(N[N.length-1],{"stop-opacity":("opacity" in T?T.opacity:1)*("fill-opacity" in T?T["fill-opacity"]:1)})}}T.gradient=U;T.fill="none";break}}K[e]("opacity")&&k(W,{"fill-opacity":K.opacity>1?K.opacity/100:K.opacity});case"stroke":K=n.getRGB(U);W.setAttribute(V,K.hex);V=="stroke"&&K[e]("opacity")&&k(W,{"stroke-opacity":K.opacity>1?K.opacity/100:K.opacity});if(V=="stroke"&&S._.arrows){"startString" in S._.arrows&&c(S,S._.arrows.startString);"endString" in S._.arrows&&c(S,S._.arrows.endString,1)}break;case"gradient":(S.type=="circle"||S.type=="ellipse"||G(U).charAt()!="r")&&a(S,U);break;case"opacity":if(T.gradient&&!T[e]("stroke-opacity")){k(W,{"stroke-opacity":U>1?U/100:U})}case"fill-opacity":if(T.gradient){E=n._g.doc.getElementById(W.getAttribute("fill").replace(/^url\(#|\)$/g,v));if(E){N=E.getElementsByTagName("stop");k(N[N.length-1],{"stop-opacity":U})}break}default:V=="font-size"&&(U=u(U,10)+"px");var O=V.replace(/(\-.)/g,function(ab){return ab.substring(1).toUpperCase()});W.style[O]=U;S._.dirty=1;W.setAttribute(V,U);break}}}s(S,aa);W.style.visibility=Q},F=1.2,s=function(E,L){if(E.type!="text"||!(L[e]("text")||L[e]("font")||L[e]("font-size")||L[e]("x")||L[e]("y"))){return}var Q=E.attrs,J=E.node,S=J.firstChild?u(n._g.doc.defaultView.getComputedStyle(J.firstChild,v).getPropertyValue("font-size"),10):10;if(L[e]("text")){Q.text=L.text;while(J.firstChild){J.removeChild(J.firstChild)}var K=G(L.text).split("\n"),I=[],O;for(var M=0,R=K.length;M<R;M++){O=k("tspan");M&&k(O,{dy:S*F,x:Q.x});O.appendChild(n._g.doc.createTextNode(K[M]));J.appendChild(O);I[M]=O}}else{I=J.getElementsByTagName("tspan");for(M=0,R=I.length;M<R;M++){if(M){k(I[M],{dy:S*F,x:Q.x})}else{k(I[0],{dy:0})}}}k(J,{x:Q.x,y:Q.y});E._.dirty=1;var N=E._getBBox(),P=Q.y-(N.y+N.height/2);P&&n.is(P,"finite")&&k(I[0],{dy:P})},x=function(I,E){var K=0,J=0;this[0]=this.node=I;I.raphael=true;this.id=n._oid++;I.raphaelid=this.id;this.matrix=n.matrix();this.realPath=null;this.paper=E;this.attrs=this.attrs||{};this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};!E.bottom&&(E.bottom=this);this.prev=E.top;E.top&&(E.top.next=this);E.top=this;this.next=null},o=n.el;x.prototype=o;o.constructor=x;n._engine.path=function(E,K){var I=k("path");K.canvas&&K.canvas.appendChild(I);var J=new x(I,K);J.type="path";A(J,{fill:"none",stroke:"#000",path:E});return J};o.rotate=function(I,E,K){if(this.removed){return this}I=G(I).split(h);if(I.length-1){E=p(I[1]);K=p(I[2])}I=p(I[0]);(K==null)&&(E=K);if(E==null||K==null){var J=this.getBBox(1);E=J.x+J.width/2;K=J.y+J.height/2}this.transform(this._.transform.concat([["r",I,E,K]]));return this};o.scale=function(L,J,E,K){if(this.removed){return this}L=G(L).split(h);if(L.length-1){J=p(L[1]);E=p(L[2]);K=p(L[3])}L=p(L[0]);(J==null)&&(J=L);(K==null)&&(E=K);if(E==null||K==null){var I=this.getBBox(1)}E=E==null?I.x+I.width/2:E;K=K==null?I.y+I.height/2:K;this.transform(this._.transform.concat([["s",L,J,E,K]]));return this};o.translate=function(I,E){if(this.removed){return this}I=G(I).split(h);if(I.length-1){E=p(I[1])}I=p(I[0])||0;E=+E||0;this.transform(this._.transform.concat([["t",I,E]]));return this};o.transform=function(I){var J=this._;if(I==null){return J.transform}n._extractTransform(this,I);this.clip&&k(this.clip,{transform:this.matrix.invert()});this.pattern&&b(this);this.node&&k(this.node,{transform:this.matrix});if(J.sx!=1||J.sy!=1){var E=this.attrs[e]("stroke-width")?this.attrs["stroke-width"]:1;this.attr({"stroke-width":E})}return this};o.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};o.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};o.remove=function(){if(this.removed){return}var I=this.paper;I.__set__&&I.__set__.exclude(this);D.unbind("*.*."+this.id);if(this.gradient){I.defs.removeChild(this.gradient)}n._tear(this,I);this.node.parentNode.removeChild(this.node);for(var E in this){this[E]=typeof this[E]=="function"?n._removedFactory(E):null}this.removed=true};o._getBBox=function(){if(this.node.style.display=="none"){this.show();var E=true}var J={};try{J=this.node.getBBox()}catch(I){}finally{J=J||{}}E&&this.hide();return J};o.attr=function(E,Q){if(this.removed){return this}if(E==null){var N={};for(var P in this.attrs){if(this.attrs[e](P)){N[P]=this.attrs[P]}}N.gradient&&N.fill=="none"&&(N.fill=N.gradient)&&delete N.gradient;N.transform=this._.transform;return N}if(Q==null&&n.is(E,"string")){if(E=="fill"&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient}if(E=="transform"){return this._.transform}var O=E.split(h),K={};for(var L=0,S=O.length;L<S;L++){E=O[L];if(E in this.attrs){K[E]=this.attrs[E]}else{if(n.is(this.paper.customAttributes[E],"function")){K[E]=this.paper.customAttributes[E].def}else{K[E]=n._availableAttrs[E]}}}return S-1?K:K[O[0]]}if(Q==null&&n.is(E,"array")){K={};for(L=0,S=E.length;L<S;L++){K[E[L]]=this.attr(E[L])}return K}if(Q!=null){var I={};I[E]=Q}else{if(E!=null&&n.is(E,"object")){I=E}}for(var R in I){D("attr."+R+"."+this.id,this,I[R])}for(R in this.paper.customAttributes){if(this.paper.customAttributes[e](R)&&I[e](R)&&n.is(this.paper.customAttributes[R],"function")){var M=this.paper.customAttributes[R].apply(this,[].concat(I[R]));this.attrs[R]=I[R];for(var J in M){if(M[e](J)){I[J]=M[J]}}}}A(this,I);return this};o.toFront=function(){if(this.removed){return this}if(this.node.parentNode.tagName.toLowerCase()=="a"){this.node.parentNode.parentNode.appendChild(this.node.parentNode)}else{this.node.parentNode.appendChild(this.node)}var E=this.paper;E.top!=this&&n._tofront(this,E);return this};o.toBack=function(){if(this.removed){return this}var I=this.node.parentNode;if(I.tagName.toLowerCase()=="a"){I.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild)}else{if(I.firstChild!=this.node){I.insertBefore(this.node,this.node.parentNode.firstChild)}}n._toback(this,this.paper);var E=this.paper;return this};o.insertAfter=function(E){if(this.removed){return this}var I=E.node||E[E.length-1].node;if(I.nextSibling){I.parentNode.insertBefore(this.node,I.nextSibling)}else{I.parentNode.appendChild(this.node)}n._insertafter(this,E,this.paper);return this};o.insertBefore=function(E){if(this.removed){return this}var I=E.node||E[0].node;I.parentNode.insertBefore(this.node,I);n._insertbefore(this,E,this.paper);return this};o.blur=function(I){var E=this;if(+I!==0){var J=k("filter"),K=k("feGaussianBlur");E.attrs.blur=I;J.id=n.createUUID();k(K,{stdDeviation:+I||1.5});J.appendChild(K);E.paper.defs.appendChild(J);E._blur=J;k(E.node,{filter:"url(#"+J.id+")"})}else{if(E._blur){E._blur.parentNode.removeChild(E._blur);delete E._blur;delete E.attrs.blur}E.node.removeAttribute("filter")}};n._engine.circle=function(I,E,M,L){var K=k("circle");I.canvas&&I.canvas.appendChild(K);var J=new x(K,I);J.attrs={cx:E,cy:M,r:L,fill:"none",stroke:"#000"};J.type="circle";k(K,J.attrs);return J};n._engine.rect=function(J,E,O,I,M,N){var L=k("rect");J.canvas&&J.canvas.appendChild(L);var K=new x(L,J);K.attrs={x:E,y:O,width:I,height:M,r:N||0,rx:N||0,ry:N||0,fill:"none",stroke:"#000"};K.type="rect";k(L,K.attrs);return K};n._engine.ellipse=function(I,E,N,M,L){var K=k("ellipse");I.canvas&&I.canvas.appendChild(K);var J=new x(K,I);J.attrs={cx:E,cy:N,rx:M,ry:L,fill:"none",stroke:"#000"};J.type="ellipse";k(K,J.attrs);return J};n._engine.image=function(J,N,E,O,I,M){var L=k("image");k(L,{x:E,y:O,width:I,height:M,preserveAspectRatio:"none"});L.setAttributeNS(q,"href",N);J.canvas&&J.canvas.appendChild(L);var K=new x(L,J);K.attrs={x:E,y:O,width:I,height:M,src:N};K.type="image";return K};n._engine.text=function(I,E,M,L){var K=k("text");I.canvas&&I.canvas.appendChild(K);var J=new x(K,I);J.attrs={x:E,y:M,"text-anchor":"middle",text:L,font:n._availableAttrs.font,stroke:"none",fill:"#000"};J.type="text";A(J,J.attrs);return J};n._engine.setSize=function(I,E){this.width=I||this.width;this.height=E||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",this.height);if(this._viewBox){this.setViewBox.apply(this,this._viewBox)}return this};n._engine.create=function(){var K=n._getContainer.apply(0,arguments),I=K&&K.container,O=K.x,N=K.y,J=K.width,P=K.height;if(!I){throw new Error("SVG container not found.")}var E=k("svg"),M="overflow:hidden;",L;O=O||0;N=N||0;J=J||512;P=P||342;k(E,{height:P,version:1.1,width:J,xmlns:"http://www.w3.org/2000/svg"});if(I==1){E.style.cssText=M+"position:absolute;left:"+O+"px;top:"+N+"px";n._g.doc.body.appendChild(E);L=1}else{E.style.cssText=M+"position:relative";if(I.firstChild){I.insertBefore(E,I.firstChild)}else{I.appendChild(E)}}I=new n._Paper;I.width=J;I.height=P;I.canvas=E;I.clear();I._left=I._top=0;L&&(I.renderfix=function(){});I.renderfix();return I};n._engine.setViewBox=function(M,K,O,E,I){D("setViewBox",this,this._viewBox,[M,K,O,E,I]);var Q=H(O/this.width,E/this.height),L=this.top,P=I?"meet":"xMinYMin",J,N;if(M==null){if(this._vbSize){Q=1}delete this._vbSize;J="0 0 "+this.width+l+this.height}else{this._vbSize=Q;J=M+l+K+l+O+l+E}k(this.canvas,{viewBox:J,preserveAspectRatio:P});while(Q&&L){N="stroke-width" in L.attrs?L.attrs["stroke-width"]:1;L.attr({"stroke-width":N});L._.dirty=1;L._.dirtyT=1;L=L.prev}this._viewBox=[M,K,O,E,!!I];return this};n.prototype.renderfix=function(){var L=this.canvas,E=L.style,K=L.getScreenCTM()||L.createSVGMatrix(),J=-K.e%1,I=-K.f%1;if(J||I){if(J){this._left=(this._left+J)%1;E.left=this._left+"px"}if(I){this._top=(this._top+I)%1;E.top=this._top+"px"}}};n.prototype.clear=function(){n.eve("clear",this);var E=this.canvas;while(E.firstChild){E.removeChild(E.firstChild)}this.bottom=this.top=null;(this.desc=k("desc")).appendChild(n._g.doc.createTextNode("Created with Rapha\xebl "+n.version));E.appendChild(this.desc);E.appendChild(this.defs=k("defs"))};n.prototype.remove=function(){D("remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var E in this){this[E]=typeof this[E]=="function"?n._removedFactory(E):null}};var B=n.st;for(var f in o){if(o[e](f)&&!B[e](f)){B[f]=(function(E){return function(){var I=arguments;return this.forEach(function(J){J[E].apply(J,I)})}})(f)}}}(window.Raphael);window.Raphael.vml&&function(n){var f="hasOwnProperty",J=String,p=parseFloat,j=Math,G=j.round,M=j.max,H=j.min,w=j.abs,z="fill",k=/[, ]+/,F=n.eve,A=" progid:DXImageTransform.Microsoft",m=" ",u="",I={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},l=/([clmz]),?([^clmz]*)/gi,x=/ progid:\S+Blur\([^\)]+\)/g,L=/-?[^,\s-]+/g,e="position:absolute;left:0;top:0;width:1px;height:1px",b=21600,D={path:1,rect:1,image:1},v={circle:1,ellipse:1},g=function(W){var T=/[ahqstv]/ig,O=n._pathToAbsolute;J(W).match(T)&&(O=n._path2curve);T=/[clmz]/g;if(O==n._pathToAbsolute&&!J(W).match(T)){var S=J(W).replace(l,function(aa,ad,Y){var ab=[],X=ad.toLowerCase()=="m",Z=I[ad];Y.replace(L,function(ae){if(X&&ab.length==2){Z+=ab+I[ad=="m"?"l":"L"];ab=[]}ab.push(G(ae*b))});return Z+ab});return S}var U=O(W),N,E;S=[];for(var Q=0,V=U.length;Q<V;Q++){N=U[Q];E=U[Q][0].toLowerCase();E=="z"&&(E="x");for(var P=1,R=N.length;P<R;P++){E+=G(N[P]*b)+(P!=R-1?",":u)}S.push(E)}return S.join(m)},q=function(P,O,N){var E=n.matrix();E.rotate(-P,0.5,0.5);return{dx:E.x(O,N),dy:E.y(O,N)}},s=function(V,U,T,Q,P,R){var ae=V._,X=V.matrix,E=ae.fillpos,W=V.node,S=W.style,O=1,N="",Z,ab=b/U,aa=b/T;S.visibility="hidden";if(!U||!T){return}W.coordsize=w(ab)+m+w(aa);S.rotation=R*(U*T<0?-1:1);if(R){var ad=q(R,Q,P);Q=ad.dx;P=ad.dy}U<0&&(N+="x");T<0&&(N+=" y")&&(O=-1);S.flip=N;W.coordorigin=(Q*-ab)+m+(P*-aa);if(E||ae.fillsize){var Y=W.getElementsByTagName(z);Y=Y&&Y[0];W.removeChild(Y);if(E){ad=q(R,X.x(E[0],E[1]),X.y(E[0],E[1]));Y.position=ad.dx*O+m+ad.dy*O}if(ae.fillsize){Y.size=ae.fillsize[0]*w(U)+m+ae.fillsize[1]*w(T)}W.appendChild(Y)}S.visibility="visible"};n.toString=function(){return"Your browser doesn\u2019t support SVG. Falling down to VML.\nYou are running Rapha\xebl "+this.version};var c=function(E,S,N){var U=J(S).toLowerCase().split("-"),Q=N?"end":"start",O=U.length,R="classic",T="medium",P="medium";while(O--){switch(U[O]){case"block":case"classic":case"oval":case"diamond":case"open":case"none":R=U[O];break;case"wide":case"narrow":P=U[O];break;case"long":case"short":T=U[O];break}}var V=E.node.getElementsByTagName("stroke")[0];V[Q+"arrow"]=R;V[Q+"arrowlength"]=T;V[Q+"arrowwidth"]=P},B=function(ae,ap){ae.attrs=ae.attrs||{};var aj=ae.node,au=ae.attrs,Z=aj.style,V,an=D[ae.type]&&(ap.x!=au.x||ap.y!=au.y||ap.width!=au.width||ap.height!=au.height||ap.cx!=au.cx||ap.cy!=au.cy||ap.rx!=au.rx||ap.ry!=au.ry||ap.r!=au.r),ad=v[ae.type]&&(au.cx!=ap.cx||au.cy!=ap.cy||au.r!=ap.r||au.rx!=ap.rx||au.ry!=ap.ry),ax=ae;for(var aa in ap){if(ap[f](aa)){au[aa]=ap[aa]}}if(an){au.path=n._getPath[ae.type](ae);ae._.dirty=1}ap.href&&(aj.href=ap.href);ap.title&&(aj.title=ap.title);ap.target&&(aj.target=ap.target);ap.cursor&&(Z.cursor=ap.cursor);"blur" in ap&&ae.blur(ap.blur);if(ap.path&&ae.type=="path"||an){aj.path=g(~J(au.path).toLowerCase().indexOf("r")?n._pathToAbsolute(au.path):au.path);if(ae.type=="image"){ae._.fillpos=[au.x,au.y];ae._.fillsize=[au.width,au.height];s(ae,1,1,0,0,0)}}"transform" in ap&&ae.transform(ap.transform);if(ad){var Q=+au.cx,O=+au.cy,U=+au.rx||+au.r||0,T=+au.ry||+au.r||0;aj.path=n.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",G((Q-U)*b),G((O-T)*b),G((Q+U)*b),G((O+T)*b),G(Q*b))}if("clip-rect" in ap){var N=J(ap["clip-rect"]).split(k);if(N.length==4){N[2]=+N[2]+(+N[0]);N[3]=+N[3]+(+N[1]);var ab=aj.clipRect||n._g.doc.createElement("div"),aw=ab.style;aw.clip=n.format("rect({1}px {2}px {3}px {0}px)",N);if(!aj.clipRect){aw.position="absolute";aw.top=0;aw.left=0;aw.width=ae.paper.width+"px";aw.height=ae.paper.height+"px";aj.parentNode.insertBefore(ab,aj);ab.appendChild(aj);aj.clipRect=ab}}if(!ap["clip-rect"]){aj.clipRect&&(aj.clipRect.style.clip="auto")}}if(ae.textpath){var ar=ae.textpath.style;ap.font&&(ar.font=ap.font);ap["font-family"]&&(ar.fontFamily='"'+ap["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,u)+'"');ap["font-size"]&&(ar.fontSize=ap["font-size"]);ap["font-weight"]&&(ar.fontWeight=ap["font-weight"]);ap["font-style"]&&(ar.fontStyle=ap["font-style"])}if("arrow-start" in ap){c(ax,ap["arrow-start"])}if("arrow-end" in ap){c(ax,ap["arrow-end"],1)}if(ap.opacity!=null||ap["stroke-width"]!=null||ap.fill!=null||ap.src!=null||ap.stroke!=null||ap["stroke-width"]!=null||ap["stroke-opacity"]!=null||ap["fill-opacity"]!=null||ap["stroke-dasharray"]!=null||ap["stroke-miterlimit"]!=null||ap["stroke-linejoin"]!=null||ap["stroke-linecap"]!=null){var ak=aj.getElementsByTagName(z),at=false;ak=ak&&ak[0];!ak&&(at=ak=K(z));if(ae.type=="image"&&ap.src){ak.src=ap.src}ap.fill&&(ak.on=true);if(ak.on==null||ap.fill=="none"||ap.fill===null){ak.on=false}if(ak.on&&ap.fill){var S=J(ap.fill).match(n._ISURL);if(S){ak.parentNode==aj&&aj.removeChild(ak);ak.rotate=true;ak.src=S[1];ak.type="tile";var E=ae.getBBox(1);ak.position=E.x+m+E.y;ae._.fillpos=[E.x,E.y];n._preload(S[1],function(){ae._.fillsize=[this.offsetWidth,this.offsetHeight]})}else{ak.color=n.getRGB(ap.fill).hex;ak.src=u;ak.type="solid";if(n.getRGB(ap.fill).error&&(ax.type in {circle:1,ellipse:1}||J(ap.fill).charAt()!="r")&&a(ax,ap.fill,ak)){au.fill="none";au.gradient=ap.fill;ak.rotate=false}}}if("fill-opacity" in ap||"opacity" in ap){var R=((+au["fill-opacity"]+1||2)-1)*((+au.opacity+1||2)-1)*((+n.getRGB(ap.fill).o+1||2)-1);R=H(M(R,0),1);ak.opacity=R;if(ak.src){ak.color="none"}}aj.appendChild(ak);var W=(aj.getElementsByTagName("stroke")&&aj.getElementsByTagName("stroke")[0]),av=false;!W&&(av=W=K("stroke"));if((ap.stroke&&ap.stroke!="none")||ap["stroke-width"]||ap["stroke-opacity"]!=null||ap["stroke-dasharray"]||ap["stroke-miterlimit"]||ap["stroke-linejoin"]||ap["stroke-linecap"]){W.on=true}(ap.stroke=="none"||ap.stroke===null||W.on==null||ap.stroke==0||ap["stroke-width"]==0)&&(W.on=false);var ai=n.getRGB(ap.stroke);W.on&&ap.stroke&&(W.color=ai.hex);R=((+au["stroke-opacity"]+1||2)-1)*((+au.opacity+1||2)-1)*((+ai.o+1||2)-1);var af=(p(ap["stroke-width"])||1)*0.75;R=H(M(R,0),1);ap["stroke-width"]==null&&(af=au["stroke-width"]);ap["stroke-width"]&&(W.weight=af);af&&af<1&&(R*=af)&&(W.weight=1);W.opacity=R;ap["stroke-linejoin"]&&(W.joinstyle=ap["stroke-linejoin"]||"miter");W.miterlimit=ap["stroke-miterlimit"]||8;ap["stroke-linecap"]&&(W.endcap=ap["stroke-linecap"]=="butt"?"flat":ap["stroke-linecap"]=="square"?"square":"round");if(ap["stroke-dasharray"]){var ah={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"};W.dashstyle=ah[f](ap["stroke-dasharray"])?ah[ap["stroke-dasharray"]]:u}av&&aj.appendChild(W)}if(ax.type=="text"){ax.paper.canvas.style.display=u;var al=ax.paper.span,ag=100,P=au.font&&au.font.match(/\d+(?:\.\d*)?(?=px)/);Z=al.style;au.font&&(Z.font=au.font);au["font-family"]&&(Z.fontFamily=au["font-family"]);au["font-weight"]&&(Z.fontWeight=au["font-weight"]);au["font-style"]&&(Z.fontStyle=au["font-style"]);P=p(au["font-size"]||P&&P[0])||10;Z.fontSize=P*ag+"px";ax.textpath.string&&(al.innerHTML=J(ax.textpath.string).replace(/</g,"&#60;").replace(/&/g,"&#38;").replace(/\n/g,"<br>"));var Y=al.getBoundingClientRect();ax.W=au.w=(Y.right-Y.left)/ag;ax.H=au.h=(Y.bottom-Y.top)/ag;ax.X=au.x;ax.Y=au.y+ax.H/2;("x" in ap||"y" in ap)&&(ax.path.v=n.format("m{0},{1}l{2},{1}",G(au.x*b),G(au.y*b),G(au.x*b)+1));var X=["x","y","text","font","font-family","font-weight","font-style","font-size"];for(var ao=0,aq=X.length;ao<aq;ao++){if(X[ao] in ap){ax._.dirty=1;break}}switch(au["text-anchor"]){case"start":ax.textpath.style["v-text-align"]="left";ax.bbx=ax.W/2;break;case"end":ax.textpath.style["v-text-align"]="right";ax.bbx=-ax.W/2;break;default:ax.textpath.style["v-text-align"]="center";ax.bbx=0;break}ax.textpath.style["v-text-kern"]=true}},a=function(E,V,Y){E.attrs=E.attrs||{};var W=E.attrs,P=Math.pow,Q,R,T="linear",U=".5 .5";E.attrs.gradient=V;V=J(V).replace(n._radial_gradient,function(ab,ad,aa){T="radial";if(ad&&aa){ad=p(ad);aa=p(aa);P(ad-0.5,2)+P(aa-0.5,2)>0.25&&(aa=j.sqrt(0.25-P(ad-0.5,2))*((aa>0.5)*2-1)+0.5);U=ad+m+aa}return u});V=V.split(/\s*\-\s*/);if(T=="linear"){var N=V.shift();N=-p(N);if(isNaN(N)){return null}}var S=n._parseDots(V);if(!S){return null}E=E.shape||E.node;if(S.length){E.removeChild(Y);Y.on=true;Y.method="none";Y.color=S[0].color;Y.color2=S[S.length-1].color;var Z=[];for(var O=0,X=S.length;O<X;O++){S[O].offset&&Z.push(S[O].offset+m+S[O].color)}Y.colors=Z.length?Z.join():"0% "+Y.color;if(T=="radial"){Y.type="gradientTitle";Y.focus="100%";Y.focussize="0 0";Y.focusposition=U;Y.angle=0}else{Y.type="gradient";Y.angle=(270-N)%360}E.appendChild(Y)}return 1},y=function(N,E){this[0]=this.node=N;N.raphael=true;this.id=n._oid++;N.raphaelid=this.id;this.X=0;this.Y=0;this.attrs={};this.paper=E;this.matrix=n.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};!E.bottom&&(E.bottom=this);this.prev=E.top;E.top&&(E.top.next=this);E.top=this;this.next=null};var o=n.el;y.prototype=o;o.constructor=y;o.transform=function(Q){if(Q==null){return this._.transform}var S=this.paper._viewBoxShift,R=S?"s"+[S.scale,S.scale]+"-1-1t"+[S.dx,S.dy]:u,V;if(S){V=Q=J(Q).replace(/\.{3}|\u2026/g,this._.transform||u)}n._extractTransform(this,R+Q);var W=this.matrix.clone(),Y=this.skew,O=this.node,U,P=~J(this.attrs.fill).indexOf("-"),E=!J(this.attrs.fill).indexOf("url(");W.translate(-0.5,-0.5);if(E||P||this.type=="image"){Y.matrix="1 0 0 1";Y.offset="0 0";U=W.split();if((P&&U.noRotation)||!U.isSimple){O.style.filter=W.toFilter();var T=this.getBBox(),N=this.getBBox(1),Z=T.x-N.x,X=T.y-N.y;O.coordorigin=(Z*-b)+m+(X*-b);s(this,1,1,Z,X,0)}else{O.style.filter=u;s(this,U.scalex,U.scaley,U.dx,U.dy,U.rotate)}}else{O.style.filter=u;Y.matrix=J(W);Y.offset=W.offset()}V&&(this._.transform=V);return this};o.rotate=function(N,E,P){if(this.removed){return this}if(N==null){return}N=J(N).split(k);if(N.length-1){E=p(N[1]);P=p(N[2])}N=p(N[0]);(P==null)&&(E=P);if(E==null||P==null){var O=this.getBBox(1);E=O.x+O.width/2;P=O.y+O.height/2}this._.dirtyT=1;this.transform(this._.transform.concat([["r",N,E,P]]));return this};o.translate=function(N,E){if(this.removed){return this}N=J(N).split(k);if(N.length-1){E=p(N[1])}N=p(N[0])||0;E=+E||0;if(this._.bbox){this._.bbox.x+=N;this._.bbox.y+=E}this.transform(this._.transform.concat([["t",N,E]]));return this};o.scale=function(Q,O,E,P){if(this.removed){return this}Q=J(Q).split(k);if(Q.length-1){O=p(Q[1]);E=p(Q[2]);P=p(Q[3]);isNaN(E)&&(E=null);isNaN(P)&&(P=null)}Q=p(Q[0]);(O==null)&&(O=Q);(P==null)&&(E=P);if(E==null||P==null){var N=this.getBBox(1)}E=E==null?N.x+N.width/2:E;P=P==null?N.y+N.height/2:P;this.transform(this._.transform.concat([["s",Q,O,E,P]]));this._.dirtyT=1;return this};o.hide=function(){!this.removed&&(this.node.style.display="none");return this};o.show=function(){!this.removed&&(this.node.style.display=u);return this};o._getBBox=function(){if(this.removed){return{}}return{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};o.remove=function(){if(this.removed){return}this.paper.__set__&&this.paper.__set__.exclude(this);n.eve.unbind("*.*."+this.id);n._tear(this,this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var E in this){this[E]=typeof this[E]=="function"?n._removedFactory(E):null}this.removed=true};o.attr=function(E,V){if(this.removed){return this}if(E==null){var S={};for(var U in this.attrs){if(this.attrs[f](U)){S[U]=this.attrs[U]}}S.gradient&&S.fill=="none"&&(S.fill=S.gradient)&&delete S.gradient;S.transform=this._.transform;return S}if(V==null&&n.is(E,"string")){if(E==z&&this.attrs.fill=="none"&&this.attrs.gradient){return this.attrs.gradient}var T=E.split(k),P={};for(var Q=0,X=T.length;Q<X;Q++){E=T[Q];if(E in this.attrs){P[E]=this.attrs[E]}else{if(n.is(this.paper.customAttributes[E],"function")){P[E]=this.paper.customAttributes[E].def}else{P[E]=n._availableAttrs[E]}}}return X-1?P:P[T[0]]}if(this.attrs&&V==null&&n.is(E,"array")){P={};for(Q=0,X=E.length;Q<X;Q++){P[E[Q]]=this.attr(E[Q])}return P}var N;if(V!=null){N={};N[E]=V}V==null&&n.is(E,"object")&&(N=E);for(var W in N){F("attr."+W+"."+this.id,this,N[W])}if(N){for(W in this.paper.customAttributes){if(this.paper.customAttributes[f](W)&&N[f](W)&&n.is(this.paper.customAttributes[W],"function")){var R=this.paper.customAttributes[W].apply(this,[].concat(N[W]));this.attrs[W]=N[W];for(var O in R){if(R[f](O)){N[O]=R[O]}}}}if(N.text&&this.type=="text"){this.textpath.string=N.text}B(this,N)}return this};o.toFront=function(){!this.removed&&this.node.parentNode.appendChild(this.node);this.paper&&this.paper.top!=this&&n._tofront(this,this.paper);return this};o.toBack=function(){if(this.removed){return this}if(this.node.parentNode.firstChild!=this.node){this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild);n._toback(this,this.paper)}return this};o.insertAfter=function(E){if(this.removed){return this}if(E.constructor==n.st.constructor){E=E[E.length-1]}if(E.node.nextSibling){E.node.parentNode.insertBefore(this.node,E.node.nextSibling)}else{E.node.parentNode.appendChild(this.node)}n._insertafter(this,E,this.paper);return this};o.insertBefore=function(E){if(this.removed){return this}if(E.constructor==n.st.constructor){E=E[0]}E.node.parentNode.insertBefore(this.node,E.node);n._insertbefore(this,E,this.paper);return this};o.blur=function(E){var N=this.node.runtimeStyle,O=N.filter;O=O.replace(x,u);if(+E!==0){this.attrs.blur=E;N.filter=O+m+A+".Blur(pixelradius="+(+E||1.5)+")";N.margin=n.format("-{0}px 0 0 -{0}px",G(+E||1.5))}else{N.filter=O;N.margin=0;delete this.attrs.blur}};n._engine.path=function(P,N){var Q=K("shape");Q.style.cssText=e;Q.coordsize=b+m+b;Q.coordorigin=N.coordorigin;var R=new y(Q,N),E={fill:"none",stroke:"#000"};P&&(E.path=P);R.type="path";R.path=[];R.Path=u;B(R,E);N.canvas.appendChild(Q);var O=K("skew");O.on=true;Q.appendChild(O);R.skew=O;R.transform(u);return R};n._engine.rect=function(N,S,Q,T,O,E){var U=n._rectPath(S,Q,T,O,E),P=N.path(U),R=P.attrs;P.X=R.x=S;P.Y=R.y=Q;P.W=R.width=T;P.H=R.height=O;R.r=E;R.path=U;P.type="rect";return P};n._engine.ellipse=function(N,E,S,R,Q){var P=N.path(),O=P.attrs;P.X=E-R;P.Y=S-Q;P.W=R*2;P.H=Q*2;P.type="ellipse";B(P,{cx:E,cy:S,rx:R,ry:Q});return P};n._engine.circle=function(N,E,R,Q){var P=N.path(),O=P.attrs;P.X=E-Q;P.Y=R-Q;P.W=P.H=Q*2;P.type="circle";B(P,{cx:E,cy:R,r:Q});return P};n._engine.image=function(N,E,T,R,U,P){var W=n._rectPath(T,R,U,P),Q=N.path(W).attr({stroke:"none"}),S=Q.attrs,O=Q.node,V=O.getElementsByTagName(z)[0];S.src=E;Q.X=S.x=T;Q.Y=S.y=R;Q.W=S.width=U;Q.H=S.height=P;S.path=W;Q.type="image";V.parentNode==O&&O.removeChild(V);V.rotate=true;V.src=E;V.type="tile";Q._.fillpos=[T,R];Q._.fillsize=[U,P];O.appendChild(V);s(Q,1,1,0,0,0);return Q};n._engine.text=function(E,S,R,T){var P=K("shape"),V=K("path"),O=K("textpath");S=S||0;R=R||0;T=T||"";V.v=n.format("m{0},{1}l{2},{1}",G(S*b),G(R*b),G(S*b)+1);V.textpathok=true;O.string=J(T);O.on=true;P.style.cssText=e;P.coordsize=b+m+b;P.coordorigin="0 0";var N=new y(P,E),Q={fill:"#000",stroke:"none",font:n._availableAttrs.font,text:T};N.shape=P;N.path=V;N.textpath=O;N.type="text";N.attrs.text=J(T);N.attrs.x=S;N.attrs.y=R;N.attrs.w=1;N.attrs.h=1;B(N,Q);P.appendChild(O);P.appendChild(V);E.canvas.appendChild(P);var U=K("skew");U.on=true;P.appendChild(U);N.skew=U;N.transform(u);return N};n._engine.setSize=function(O,E){var N=this.canvas.style;this.width=O;this.height=E;O==+O&&(O+="px");E==+E&&(E+="px");N.width=O;N.height=E;N.clip="rect(0 "+O+" "+E+" 0)";if(this._viewBox){n._engine.setViewBox.apply(this,this._viewBox)}return this};n._engine.setViewBox=function(R,Q,S,O,P){n.eve("setViewBox",this,this._viewBox,[R,Q,S,O,P]);var E=this.width,U=this.height,V=1/M(S/E,O/U),T,N;if(P){T=U/O;N=E/S;if(S*T<E){R-=(E-S*T)/2/T}if(O*N<U){Q-=(U-O*N)/2/N}}this._viewBox=[R,Q,S,O,!!P];this._viewBoxShift={dx:-R,dy:-Q,scale:V};this.forEach(function(W){W.transform("...")});return this};var K;n._engine.initWin=function(O){var N=O.document;N.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!N.namespaces.rvml&&N.namespaces.add("rvml","urn:schemas-microsoft-com:vml");K=function(P){return N.createElement("<rvml:"+P+' class="rvml">')}}catch(E){K=function(P){return N.createElement("<"+P+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}};n._engine.initWin(n._g.win);n._engine.create=function(){var O=n._getContainer.apply(0,arguments),E=O.container,U=O.height,V,N=O.width,T=O.x,S=O.y;if(!E){throw new Error("VML container not found.")}var Q=new n._Paper,R=Q.canvas=n._g.doc.createElement("div"),P=R.style;T=T||0;S=S||0;N=N||512;U=U||342;Q.width=N;Q.height=U;N==+N&&(N+="px");U==+U&&(U+="px");Q.coordsize=b*1000+m+b*1000;Q.coordorigin="0 0";Q.span=n._g.doc.createElement("span");Q.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";R.appendChild(Q.span);P.cssText=n.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",N,U);if(E==1){n._g.doc.body.appendChild(R);P.left=T+"px";P.top=S+"px";P.position="absolute"}else{if(E.firstChild){E.insertBefore(R,E.firstChild)}else{E.appendChild(R)}}Q.renderfix=function(){};return Q};n.prototype.clear=function(){n.eve("clear",this);this.canvas.innerHTML=u;this.span=n._g.doc.createElement("span");this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;";this.canvas.appendChild(this.span);this.bottom=this.top=null};n.prototype.remove=function(){n.eve("remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var E in this){this[E]=typeof this[E]=="function"?n._removedFactory(E):null}return true};var C=n.st;for(var h in o){if(o[f](h)&&!C[f](h)){C[h]=(function(E){return function(){var N=arguments;return this.forEach(function(O){O[E].apply(O,N)})}})(h)}}}(window.Raphael);(function(){var a=Math.max,c=Math.min;Raphael.fn.g=Raphael.fn.g||{};Raphael.fn.g.markers={disc:"disc",o:"disc",flower:"flower",f:"flower",diamond:"diamond",d:"diamond",square:"square",s:"square",triangle:"triangle",t:"triangle",star:"star","*":"star",cross:"cross",x:"cross",plus:"plus","+":"plus",arrow:"arrow","->":"arrow"};Raphael.fn.g.shim={stroke:"none",fill:"#000","fill-opacity":0};Raphael.fn.g.txtattr={font:"12px Arial, sans-serif"};Raphael.fn.g.colors=[];var e=[0.6,0.2,0.05,0.1333,0.75,0];for(var b=0;b<10;b++){if(b<e.length){Raphael.fn.g.colors.push("hsb("+e[b]+", .75, .75)")}else{Raphael.fn.g.colors.push("hsb("+e[b-e.length]+", 1, .5)")}}Raphael.fn.g.text=function(f,h,g){return this.text(f,h,g).attr(this.g.txtattr)};Raphael.fn.g.labelise=function(f,h,g){if(f){return(f+"").replace(/(##+(?:\.#+)?)|(%%+(?:\.%+)?)/g,function(j,l,k){if(l){return(+h).toFixed(l.replace(/^#+\.?/g,"").length)}if(k){return(h*100/g).toFixed(k.replace(/^%+\.?/g,"").length)+"%"}})}else{return(+h).toFixed(0)}};Raphael.fn.g.finger=function(m,l,g,n,h,j,k){if((h&&!n)||(!h&&!g)){return k?"":this.path()}j={square:"square",sharp:"sharp",soft:"soft"}[j]||"round";var p;n=Math.round(n);g=Math.round(g);m=Math.round(m);l=Math.round(l);switch(j){case"round":if(!h){var f=~~(n/2);if(g<f){f=g;p=["M",m+0.5,l+0.5-~~(n/2),"l",0,0,"a",f,~~(n/2),0,0,1,0,n,"l",0,0,"z"]}else{p=["M",m+0.5,l+0.5-f,"l",g-f,0,"a",f,f,0,1,1,0,n,"l",f-g,0,"z"]}}else{f=~~(g/2);if(n<f){f=n;p=["M",m-~~(g/2),l,"l",0,0,"a",~~(g/2),f,0,0,1,g,0,"l",0,0,"z"]}else{p=["M",m-f,l,"l",0,f-n,"a",f,f,0,1,1,g,0,"l",0,n-f,"z"]}}break;case"sharp":if(!h){var o=~~(n/2);p=["M",m,l+o,"l",0,-n,a(g-o,0),0,c(o,g),o,-c(o,g),o+(o*2<n),"z"]}else{o=~~(g/2);p=["M",m+o,l,"l",-g,0,0,-a(n-o,0),o,-c(o,n),o,c(o,n),o,"z"]}break;case"square":if(!h){p=["M",m,l+~~(n/2),"l",0,-n,g,0,0,n,"z"]}else{p=["M",m+~~(g/2),l,"l",1-g,0,0,-n,g-1,0,"z"]}break;case"soft":if(!h){f=c(g,Math.round(n/5));p=["M",m+0.5,l+0.5-~~(n/2),"l",g-f,0,"a",f,f,0,0,1,f,f,"l",0,n-f*2,"a",f,f,0,0,1,-f,f,"l",f-g,0,"z"]}else{f=c(Math.round(g/5),n);p=["M",m-~~(g/2),l,"l",0,f-n,"a",f,f,0,0,1,f,-f,"l",g-2*f,0,"a",f,f,0,0,1,f,f,"l",0,n-f,"z"]}}if(k){return p.join(",")}else{return this.path(p)}};Raphael.fn.g.disc=function(f,h,g){return this.circle(f,h,g)};Raphael.fn.g.line=function(f,h,g){return this.rect(f-g,h-g/5,2*g,2*g/5)};Raphael.fn.g.square=function(f,h,g){g=g*0.7;return this.rect(f-g,h-g,2*g,2*g)};Raphael.fn.g.triangle=function(f,h,g){g*=1.75;return this.path("M".concat(f,",",h,"m0-",g*0.58,"l",g*0.5,",",g*0.87,"-",g,",0z"))};Raphael.fn.g.diamond=function(f,h,g){return this.path(["M",f,h-g,"l",g,g,-g,g,-g,-g,g,-g,"z"])};Raphael.fn.g.flower=function(j,h,f,g){f=f*1.25;var o=f,m=o*0.5;g=+g<3||!g?5:g;var p=["M",j,h+m,"Q"],l;for(var k=1;k<g*2+1;k++){l=k%2?o:m;p=p.concat([+(j+l*Math.sin(k*Math.PI/g)).toFixed(3),+(h+l*Math.cos(k*Math.PI/g)).toFixed(3)])}p.push("z");return this.path(p.join(","))};Raphael.fn.g.star=function(f,n,m,h,g){h=h||m*0.382;g=g||5;var l=["M",f,n+h,"L"],k;for(var j=1;j<g*2;j++){k=j%2?m:h;l=l.concat([(f+k*Math.sin(j*Math.PI/g)),(n+k*Math.cos(j*Math.PI/g))])}l.push("z");return this.path(l.join(","))};Raphael.fn.g.cross=function(f,h,g){g=g/2.5;return this.path("M".concat(f-g,",",h,"l",[-g,-g,g,-g,g,g,g,-g,g,g,-g,g,g,g,-g,g,-g,-g,-g,g,-g,-g,"z"]))};Raphael.fn.g.plus=function(f,h,g){g=g/2;return this.path("M".concat(f-g/2,",",h-g/2,"l",[0,-g,g,0,0,g,g,0,0,g,-g,0,0,g,-g,0,0,-g,-g,0,0,-g,"z"]))};Raphael.fn.g.arrow=function(f,h,g){return this.path("M".concat(f-g*0.7,",",h-g*0.4,"l",[g*0.6,0,0,-g*0.4,g,g*0.8,-g,g*0.8,0,-g*0.4,-g*0.6,0],"z"))};Raphael.fn.g.tag=function(f,n,m,l,j){l=l||0;j=j==null?5:j;m=m==null?"$9.99":m;var h=0.5522*j,g=this.set(),k=3;g.push(this.path().attr({fill:"#000",stroke:"#000"}));g.push(this.text(f,n,m).attr(this.g.txtattr).attr({fill:"#fff","font-family":"Helvetica, Arial"}));g.update=function(){this.rotate(0,f,n);var p=this[1].getBBox();if(p.height>=j*2){this[0].attr({path:["M",f,n+j,"a",j,j,0,1,1,0,-j*2,j,j,0,1,1,0,j*2,"m",0,-j*2-k,"a",j+k,j+k,0,1,0,0,(j+k)*2,"L",f+j+k,n+p.height/2+k,"l",p.width+2*k,0,0,-p.height-2*k,-p.width-2*k,0,"L",f,n-j-k].join(",")})}else{var o=Math.sqrt(Math.pow(j+k,2)-Math.pow(p.height/2+k,2));this[0].attr({path:["M",f,n+j,"c",-h,0,-j,h-j,-j,-j,0,-h,j-h,-j,j,-j,h,0,j,j-h,j,j,0,h,h-j,j,-j,j,"M",f+o,n-p.height/2-k,"a",j+k,j+k,0,1,0,0,p.height+2*k,"l",j+k-o+p.width+2*k,0,0,-p.height-2*k,"L",f+o,n-p.height/2-k].join(",")})}this[1].attr({x:f+j+k+p.width/2,y:n});l=(360-l)%360;this.rotate(l,f,n);l>90&&l<270&&this[1].attr({x:f-j-k-p.width/2,y:n,rotation:[180+l,f,n]});return this};g.update();return g};Raphael.fn.g.popupit=function(m,l,n,g,v){g=g==null?2:g;v=v||5;m=Math.round(m);l=Math.round(l);var k=n.getBBox(),o=Math.round(k.width/2),j=Math.round(k.height/2),u=[0,o+v*2,0,-o-v*2],q=[-j*2-v*3,-j-v,0,-j-v],f=["M",m-u[g],l-q[g],"l",-v,(g==2)*-v,-a(o-v,0),0,"a",v,v,0,0,1,-v,-v,"l",0,-a(j-v,0),(g==3)*-v,-v,(g==3)*v,-v,0,-a(j-v,0),"a",v,v,0,0,1,v,-v,"l",a(o-v,0),0,v,!g*-v,v,!g*v,a(o-v,0),0,"a",v,v,0,0,1,v,v,"l",0,a(j-v,0),(g==1)*v,v,(g==1)*-v,v,0,a(j-v,0),"a",v,v,0,0,1,-v,v,"l",-a(o-v,0),0,"z"].join(","),s=[{x:m,y:l+v*2+j},{x:m-v*2-o,y:l},{x:m,y:l-v*2-j},{x:m+v*2+o,y:l}][g];n.translate(s.x-o-k.x,s.y-j-k.y);return this.path(f).attr({fill:"#000",stroke:"none"}).insertBefore(n.node?n:n[0])};Raphael.fn.g.popup=function(f,m,l,g,j){g=g==null?2:g>3?3:g;j=j||5;l=l||"$9.99";var h=this.set(),k=3;h.push(this.path().attr({fill:"#000",stroke:"#000"}));h.push(this.text(f,m,l).attr(this.g.txtattr).attr({fill:"#fff","font-family":"Helvetica, Arial"}));h.update=function(q,o,s){q=q||f;o=o||m;var v=this[1].getBBox(),x=v.width/2,u=v.height/2,A=[0,x+j*2,0,-x-j*2],y=[-u*2-j*3,-u-j,0,-u-j],n=["M",q-A[g],o-y[g],"l",-j,(g==2)*-j,-a(x-j,0),0,"a",j,j,0,0,1,-j,-j,"l",0,-a(u-j,0),(g==3)*-j,-j,(g==3)*j,-j,0,-a(u-j,0),"a",j,j,0,0,1,j,-j,"l",a(x-j,0),0,j,!g*-j,j,!g*j,a(x-j,0),0,"a",j,j,0,0,1,j,j,"l",0,a(u-j,0),(g==1)*j,j,(g==1)*-j,j,0,a(u-j,0),"a",j,j,0,0,1,-j,j,"l",-a(x-j,0),0,"z"].join(","),z=[{x:q,y:o+j*2+u},{x:q-j*2-x,y:o},{x:q,y:o-j*2-u},{x:q+j*2+x,y:o}][g];z.path=n;if(s){this.animate(z,500,">")}else{this.attr(z)}return this};return h.update(f,m)};Raphael.fn.g.flag=function(f,l,k,j){j=j||0;k=k||"$9.99";var g=this.set(),h=3;g.push(this.path().attr({fill:"#000",stroke:"#000"}));g.push(this.text(f,l,k).attr(this.g.txtattr).attr({fill:"#fff","font-family":"Helvetica, Arial"}));g.update=function(m,p){this.rotate(0,m,p);var o=this[1].getBBox(),n=o.height/2;this[0].attr({path:["M",m,p,"l",n+h,-n-h,o.width+2*h,0,0,o.height+2*h,-o.width-2*h,0,"z"].join(",")});this[1].attr({x:m+n+h+o.width/2,y:p});j=360-j;this.rotate(j,m,p);j>90&&j<270&&this[1].attr({x:m-r-h-o.width/2,y:p,rotation:[180+j,m,p]});return this};return g.update(f,l)};Raphael.fn.g.label=function(f,j,h){var g=this.set();g.push(this.rect(f,j,10,10).attr({stroke:"none",fill:"#000"}));g.push(this.text(f,j,h).attr(this.g.txtattr).attr({fill:"#fff"}));g.update=function(){var l=this[1].getBBox(),k=c(l.width+10,l.height+10)/2;this[0].attr({x:l.x-k/2,y:l.y-k/2,width:l.width+k,height:l.height+k,r:k})};g.update();return g};Raphael.fn.g.labelit=function(h){var g=h.getBBox(),f=c(20,g.width+10,g.height+10)/2;return this.rect(g.x-f/2,g.y-f/2,g.width+f,g.height+f,f).attr({stroke:"none",fill:"#000"}).insertBefore(h.node?h:h[0])};Raphael.fn.g.drop=function(f,l,k,h,j){h=h||30;j=j||0;var g=this.set();g.push(this.path(["M",f,l,"l",h,0,"A",h*0.4,h*0.4,0,1,0,f+h*0.7,l-h*0.7,"z"]).attr({fill:"#000",stroke:"none",rotation:[22.5-j,f,l]}));j=(j+90)*Math.PI/180;g.push(this.text(f+h*Math.sin(j),l+h*Math.cos(j),k).attr(this.g.txtattr).attr({"font-size":h*12/30,fill:"#fff"}));g.drop=g[0];g.text=g[1];return g};Raphael.fn.g.blob=function(g,n,m,l,j){l=(+l+1?l:45)+90;j=j||12;var f=Math.PI/180,k=j*12/12;var h=this.set();h.push(this.path().attr({fill:"#000",stroke:"none"}));h.push(this.text(g+j*Math.sin((l)*f),n+j*Math.cos((l)*f)-k/2,m).attr(this.g.txtattr).attr({"font-size":k,fill:"#fff"}));h.update=function(v,u,A){v=v||g;u=u||n;var C=this[1].getBBox(),F=a(C.width+k,j*25/12),B=a(C.height+k,j*25/12),p=v+j*Math.sin((l-22.5)*f),D=u+j*Math.cos((l-22.5)*f),s=v+j*Math.sin((l+22.5)*f),E=u+j*Math.cos((l+22.5)*f),H=(s-p)/2,G=(E-D)/2,q=F/2,o=B/2,z=-Math.sqrt(Math.abs(q*q*o*o-q*q*G*G-o*o*H*H)/(q*q*G*G+o*o*H*H)),y=z*q*G/o+(s+p)/2,x=z*-o*H/q+(E+D)/2;if(A){this.animate({x:y,y:x,path:["M",g,n,"L",s,E,"A",q,o,0,1,1,p,D,"z"].join(",")},500,">")}else{this.attr({x:y,y:x,path:["M",g,n,"L",s,E,"A",q,o,0,1,1,p,D,"z"].join(",")})}return this};h.update(g,n);return h};Raphael.fn.g.colorValue=function(j,h,g,f){return"hsb("+[c((1-j/h)*0.4,1),g||0.75,f||0.75]+")"};Raphael.fn.g.snapEnds=function(n,o,m){var k=n,p=o;if(k==p){return{from:k,to:p,power:0}}function q(f){return Math.abs(f-0.5)<0.25?~~(f)+0.5:Math.round(f)}var l=(p-k)/m,g=~~(l),j=g,h=0;if(g){while(j){h--;j=~~(l*Math.pow(10,h))/Math.pow(10,h)}h++}else{while(!g){h=h||1;g=~~(l*Math.pow(10,h))/Math.pow(10,h);h++}h&&h--}p=q(o*Math.pow(10,h))/Math.pow(10,h);if(p<o){p=q((o+0.5)*Math.pow(10,h))/Math.pow(10,h)}k=q((n-(h>0?0:0.5))*Math.pow(10,h))/Math.pow(10,h);return{from:k,to:p,power:h}};Raphael.fn.g.axis=function(v,u,o,G,l,J,m,L,n,g){g=g==null?2:g;n=n||"t";J=J||10;var F=n=="|"||n==" "?["M",v+0.5,u,"l",0,0.001]:m==1||m==3?["M",v+0.5,u,"l",0,-o]:["M",v,u+0.5,"l",o,0],z=this.g.snapEnds(G,l,J),K=z.from,B=z.to,I=z.power,H=0,C=this.set();d=(B-K)/J;var s=K,q=I>0?I:0;w=o/J;if(+m==1||+m==3){var h=u,A=(m-1?1:-1)*(g+3+!!(m-1));while(h>=u-o){n!="-"&&n!=" "&&(F=F.concat(["M",v-(n=="+"||n=="|"?g:!(m-1)*g*2),h+0.5,"l",g*2+1,0]));C.push(this.text(v+A,h,(L&&L[H++])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr).attr({"text-anchor":m-1?"start":"end"}));s+=d;h-=w}if(Math.round(h+w-(u-o))){n!="-"&&n!=" "&&(F=F.concat(["M",v-(n=="+"||n=="|"?g:!(m-1)*g*2),u-o+0.5,"l",g*2+1,0]));C.push(this.text(v+A,u-o,(L&&L[H])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr).attr({"text-anchor":m-1?"start":"end"}))}}else{s=K;q=(I>0)*I;A=(m?-1:1)*(g+9+!m);var k=v,w=o/J,D=0,E=0;while(k<=v+o){n!="-"&&n!=" "&&(F=F.concat(["M",k+0.5,u-(n=="+"?g:!!m*g*2),"l",0,g*2+1]));C.push(D=this.text(k,u+A,(L&&L[H++])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr));var p=D.getBBox();if(E>=p.x-5){C.pop(C.length-1).remove()}else{E=p.x+p.width}s+=d;k+=w}if(Math.round(k-w-v-o)){n!="-"&&n!=" "&&(F=F.concat(["M",v+o+0.5,u-(n=="+"?g:!!m*g*2),"l",0,g*2+1]));C.push(this.text(v+o,u+A,(L&&L[H])||(Math.round(s)==s?s:+s.toFixed(q))).attr(this.g.txtattr))}}var M=this.path(F);M.text=C;M.all=this.set([M,C]);M.remove=function(){this.text.remove();this.constructor.prototype.remove.call(this)};return M};Raphael.el.lighter=function(g){g=g||2;var f=[this.attrs.fill,this.attrs.stroke];this.fs=this.fs||[f[0],f[1]];f[0]=Raphael.rgb2hsb(Raphael.getRGB(f[0]).hex);f[1]=Raphael.rgb2hsb(Raphael.getRGB(f[1]).hex);f[0].b=c(f[0].b*g,1);f[0].s=f[0].s/g;f[1].b=c(f[1].b*g,1);f[1].s=f[1].s/g;this.attr({fill:"hsb("+[f[0].h,f[0].s,f[0].b]+")",stroke:"hsb("+[f[1].h,f[1].s,f[1].b]+")"})};Raphael.el.darker=function(g){g=g||2;var f=[this.attrs.fill,this.attrs.stroke];this.fs=this.fs||[f[0],f[1]];f[0]=Raphael.rgb2hsb(Raphael.getRGB(f[0]).hex);f[1]=Raphael.rgb2hsb(Raphael.getRGB(f[1]).hex);f[0].s=c(f[0].s*g,1);f[0].b=f[0].b/g;f[1].s=c(f[1].s*g,1);f[1].b=f[1].b/g;this.attr({fill:"hsb("+[f[0].h,f[0].s,f[0].b]+")",stroke:"hsb("+[f[1].h,f[1].s,f[1].b]+")"})};Raphael.el.original=function(){if(this.fs){this.attr({fill:this.fs[0],stroke:this.fs[1]});delete this.fs}}})();Raphael.fn.g.barchart=function(F,D,a,e,R,z){z=z||{};var S={round:"round",sharp:"sharp",soft:"soft"}[z.type]||"square",o=parseFloat(z.gutter||"20%"),P=this.set(),A=this.set(),f=this.set(),v=this.set(),B=Math.max.apply(Math,R),Q=[],c=this,E=0,I=z.colors||this.g.colors,u=R.length;if(this.raphael.is(R[0],"array")){B=[];E=u;u=0;for(var N=R.length;N--;){A.push(this.set());B.push(Math.max.apply(Math,R[N]));u=Math.max(u,R[N].length)}if(z.stacked){for(var N=u;N--;){var m=0;for(var M=R.length;M--;){m+=+R[M][N]||0}Q.push(m)}}for(var N=R.length;N--;){if(R[N].length<u){for(var M=u;M--;){R[N].push(0)}}}B=Math.max.apply(Math,z.stacked?Q:B)}B=(z.to)||B;var G=a/(u*(100+o)+o)*100,b=G*o/100,k=z.vgutter==null?20:z.vgutter,w=[],l=F+b,g=(e-2*k)/B;if(!z.stretch){b=Math.round(b);G=Math.floor(G)}!z.stacked&&(G/=E||1);for(var N=0;N<u;N++){w=[];for(var M=0;M<(E||1);M++){var O=Math.round((E?R[M][N]:R[N])*g),n=D+e-k-O,K=this.g.finger(Math.round(l+G/2),n+O,G,O,true,S).attr({stroke:"none",fill:I[E?M:N]});if(E){A[M].push(K)}else{A.push(K)}K.y=n;K.x=Math.round(l+G/2);K.w=G;K.h=O;K.value=E?R[M][N]:R[N];if(!z.stacked){l+=G}else{w.push(K)}}if(z.stacked){var L;v.push(L=this.rect(w[0].x-w[0].w/2,D,G,e).attr(this.g.shim));L.bars=this.set();var p=0;for(var H=w.length;H--;){w[H].toFront()}for(var H=0,q=w.length;H<q;H++){var K=w[H],C,O=(p+K.value)*g,J=this.g.finger(K.x,D+e-k-!!p*0.5,G,O,true,S,1);L.bars.push(K);p&&K.attr({path:J});K.h=O;K.y=D+e-k-!!p*0.5-O;f.push(C=this.rect(K.x-K.w/2,K.y,G,K.value*g).attr(this.g.shim));C.bar=K;C.value=K.value;p+=K.value}l+=G}l+=b}v.toFront();l=F+b;if(!z.stacked){for(var N=0;N<u;N++){for(var M=0;M<(E||1);M++){var C;f.push(C=this.rect(Math.round(l),D+k,G,e-k).attr(this.g.shim));C.bar=E?A[M][N]:A[N];C.value=C.bar.value;l+=G}l+=b}}P.label=function(y,V){y=y||[];this.labels=c.set();var W,h=-Infinity;if(z.stacked){for(var x=0;x<u;x++){var T=0;for(var s=0;s<(E||1);s++){T+=E?R[s][x]:R[x];if(s==E-1){var X=c.g.labelise(y[x],T,B);W=c.g.text(A[x*(E||1)+s].x,D+e-k/2,X).insertBefore(f[x*(E||1)+s]);var U=W.getBBox();if(U.x-7<h){W.remove()}else{this.labels.push(W);h=U.x+U.width}}}}}else{for(var x=0;x<u;x++){for(var s=0;s<(E||1);s++){var X=c.g.labelise(E?y[s]&&y[s][x]:y[x],E?R[s][x]:R[x],B);W=c.g.text(A[x*(E||1)+s].x,V?D+e-k/2:A[x*(E||1)+s].y-10,X).insertBefore(f[x*(E||1)+s]);var U=W.getBBox();if(U.x-7<h){W.remove()}else{this.labels.push(W);h=U.x+U.width}}}}return this};P.hover=function(j,h){v.hide();f.show();f.mouseover(j).mouseout(h);return this};P.hoverColumn=function(j,h){f.hide();v.show();h=h||function(){};v.mouseover(j).mouseout(h);return this};P.click=function(h){v.hide();f.show();f.click(h);return this};P.each=function(j){if(!Raphael.is(j,"function")){return this}for(var h=f.length;h--;){j.call(f[h])}return this};P.eachColumn=function(j){if(!Raphael.is(j,"function")){return this}for(var h=v.length;h--;){j.call(v[h])}return this};P.clickColumn=function(h){f.hide();v.show();v.click(h);return this};P.push(A,f,v);P.bars=A;P.covers=f;return P};Raphael.fn.g.hbarchart=function(o,m,E,B,c,v){v=v||{};var f={round:"round",sharp:"sharp",soft:"soft"}[v.type]||"square",g=parseFloat(v.gutter||"20%"),z=this.set(),D=this.set(),k=this.set(),H=this.set(),P=Math.max.apply(Math,c),a=[],p=this,F=0,n=v.colors||this.g.colors,K=c.length;if(this.raphael.is(c[0],"array")){P=[];F=K;K=0;for(var J=c.length;J--;){D.push(this.set());P.push(Math.max.apply(Math,c[J]));K=Math.max(K,c[J].length)}if(v.stacked){for(var J=K;J--;){var q=0;for(var I=c.length;I--;){q+=+c[I][J]||0}a.push(q)}}for(var J=c.length;J--;){if(c[J].length<K){for(var I=K;I--;){c[J].push(0)}}}P=Math.max.apply(Math,v.stacked?a:P)}P=(v.to)||P;var M=Math.floor(B/(K*(100+g)+g)*100),l=Math.floor(M*g/100),h=[],b=m+l,e=(E-1)/P;!v.stacked&&(M/=F||1);for(var J=0;J<K;J++){h=[];for(var I=0;I<(F||1);I++){var O=F?c[I][J]:c[J],L=this.g.finger(o,b+M/2,Math.round(O*e),M-1,false,f).attr({stroke:"none",fill:n[F?I:J]});if(F){D[I].push(L)}else{D.push(L)}L.x=o+Math.round(O*e);L.y=b+M/2;L.w=Math.round(O*e);L.h=M;L.value=+O;if(!v.stacked){b+=M}else{h.push(L)}}if(v.stacked){var u=this.rect(o,h[0].y-h[0].h/2,E,M).attr(this.g.shim);H.push(u);u.bars=this.set();var A=0;for(var w=h.length;w--;){h[w].toFront()}for(var w=0,G=h.length;w<G;w++){var L=h[w],N,O=Math.round((A+L.value)*e),C=this.g.finger(o,L.y,O,M-1,false,f,1);u.bars.push(L);A&&L.attr({path:C});L.w=O;L.x=o+O;k.push(N=this.rect(o+A*e,L.y-L.h/2,L.value*e,M).attr(this.g.shim));N.bar=L;A+=L.value}b+=M}b+=l}H.toFront();b=m+l;if(!v.stacked){for(var J=0;J<K;J++){for(var I=0;I<(F||1);I++){var N=this.rect(o,b,E,M).attr(this.g.shim);k.push(N);N.bar=F?D[I][J]:D[J];N.value=N.bar.value;b+=M}b+=l}}z.label=function(U,S){U=U||[];this.labels=p.set();for(var R=0;R<K;R++){for(var Q=0;Q<F;Q++){var y=p.g.labelise(F?U[Q]&&U[Q][R]:U[R],F?c[Q][R]:c[R],P);var T=S?D[R*(F||1)+Q].x-M/2+3:o+5,x=S?"end":"start",s;this.labels.push(s=p.g.text(T,D[R*(F||1)+Q].y,y).attr({"text-anchor":x}).insertBefore(k[0]));if(s.getBBox().x<o+5){s.attr({x:o+5,"text-anchor":"start"})}else{D[R*(F||1)+Q].label=s}}}return this};z.hover=function(s,j){H.hide();k.show();j=j||function(){};k.mouseover(s).mouseout(j);return this};z.hoverColumn=function(s,j){k.hide();H.show();j=j||function(){};H.mouseover(s).mouseout(j);return this};z.each=function(s){if(!Raphael.is(s,"function")){return this}for(var j=k.length;j--;){s.call(k[j])}return this};z.eachColumn=function(s){if(!Raphael.is(s,"function")){return this}for(var j=H.length;j--;){s.call(H[j])}return this};z.click=function(j){H.hide();k.show();k.click(j);return this};z.clickColumn=function(j){k.hide();H.show();H.click(j);return this};z.push(D,k,H);z.bars=D;z.covers=k;return z};Raphael.fn.g.dotchart=function(N,M,a,h,B,A,u,I){function U(b){+b[0]&&(b[0]=c.g.axis(N+s,M+s,a-2*s,E,o,I.axisxstep||Math.floor((a-2*s)/20),2,I.axisxlabels||null,I.axisxtype||"t"));+b[1]&&(b[1]=c.g.axis(N+a-s,M+h-s,h-2*s,D,n,I.axisystep||Math.floor((h-2*s)/20),3,I.axisylabels||null,I.axisytype||"t"));+b[2]&&(b[2]=c.g.axis(N+s,M+h-s+H,a-2*s,E,o,I.axisxstep||Math.floor((a-2*s)/20),0,I.axisxlabels||null,I.axisxtype||"t"));+b[3]&&(b[3]=c.g.axis(N+s-H,M+h-s,h-2*s,D,n,I.axisystep||Math.floor((h-2*s)/20),1,I.axisylabels||null,I.axisytype||"t"))}I=I||{};var z=this.g.snapEnds(Math.min.apply(Math,B),Math.max.apply(Math,B),B.length-1),E=z.from,o=z.to,s=I.gutter||10,L=this.g.snapEnds(Math.min.apply(Math,A),Math.max.apply(Math,A),A.length-1),D=L.from,n=L.to,C=Math.max(B.length,A.length,u.length),w=this.g.markers[I.symbol]||"disc",J=this.set(),v=this.set(),G=I.max||100,q=Math.max.apply(Math,u),p=[],c=this,Q=Math.sqrt(q/Math.PI)*2/G;for(var S=0;S<C;S++){p[S]=Math.min(Math.sqrt(u[S]/Math.PI)*2/Q,G)}s=Math.max.apply(Math,p.concat(s));var F=this.set(),H=Math.max.apply(Math,p);if(I.axis){var m=(I.axis+"").split(/[,\s]+/);U(m);var T=[],V=[];for(var S=0,K=m.length;S<K;S++){var W=m[S].all?m[S].all.getBBox()[["height","width"][S%2]]:0;T[S]=W+s;V[S]=W}s=Math.max.apply(Math,T.concat(s));for(var S=0,K=m.length;S<K;S++){if(m[S].all){m[S].remove();m[S]=1}}U(m);for(var S=0,K=m.length;S<K;S++){if(m[S].all){F.push(m[S].all)}}J.axis=F}var P=(a-s*2)/((o-E)||1),O=(h-s*2)/((n-D)||1);for(var S=0,K=A.length;S<K;S++){var f=this.raphael.is(w,"array")?w[S]:w,l=N+s+(B[S]-E)*P,j=M+h-s-(A[S]-D)*O;f&&p[S]&&v.push(this.g[f](l,j,p[S]).attr({fill:I.heat?this.g.colorValue(p[S],H):Raphael.fn.g.colors[0],"fill-opacity":I.opacity?p[S]/G:1,stroke:"none"}))}var e=this.set();for(var S=0,K=A.length;S<K;S++){var l=N+s+(B[S]-E)*P,j=M+h-s-(A[S]-D)*O;e.push(this.circle(l,j,H).attr(this.g.shim));I.href&&I.href[S]&&e[S].attr({href:I.href[S]});e[S].r=+p[S].toFixed(3);e[S].x=+l.toFixed(3);e[S].y=+j.toFixed(3);e[S].X=B[S];e[S].Y=A[S];e[S].value=u[S]||0;e[S].dot=v[S]}J.covers=e;J.series=v;J.push(v,F,e);J.hover=function(g,b){e.mouseover(g).mouseout(b);return this};J.click=function(b){e.click(b);return this};J.each=function(g){if(!Raphael.is(g,"function")){return this}for(var b=e.length;b--;){g.call(e[b])}return this};J.href=function(k){var g;for(var b=e.length;b--;){g=e[b];if(g.X==k.x&&g.Y==k.y&&g.value==k.value){g.attr({href:k.href})}}};return J};Raphael.fn.g.linechart=function(P,O,b,e,w,v,I){function H(y,aj){var x=y.length/aj,X=0,a=x,ai=0,Y=[];while(X<y.length){a--;if(a<0){ai+=y[X]*(1+a);Y.push(ai/x);ai=y[X++]*-a;a+=x}else{ai+=y[X++]}}return Y}function S(x,j,ap,an,aj,ai){var X=(ap-x)/2,y=(aj-ap)/2,aq=Math.atan((ap-x)/Math.abs(an-j)),ao=Math.atan((aj-ap)/Math.abs(an-ai));aq=j<an?Math.PI-aq:aq;ao=ai<an?Math.PI-ao:ao;var Y=Math.PI/2-((aq+ao)%(Math.PI*2))/2,at=X*Math.sin(Y+aq),al=X*Math.cos(Y+aq),ar=y*Math.sin(Y+ao),ak=y*Math.cos(Y+ao);return{x1:ap-at,y1:an+al,x2:ap+ar,y2:an+ak}}I=I||{};if(!this.raphael.is(w[0],"array")){w=[w]}if(!this.raphael.is(v[0],"array")){v=[v]}var n=I.gutter||10,z=Math.max(w[0].length,v[0].length),p=I.symbol||"",T=I.colors||Raphael.fn.g.colors,N=this,s=null,m=null,af=this.set(),U=[];for(var ae=0,K=v.length;ae<K;ae++){z=Math.max(z,v[ae].length)}var ag=this.set();for(ae=0,K=v.length;ae<K;ae++){if(I.shade){ag.push(this.path().attr({stroke:"none",fill:T[ae],opacity:I.nostroke?1:0.3}))}if(v[ae].length>b-2*n){v[ae]=H(v[ae],b-2*n);z=b-2*n}if(w[ae]&&w[ae].length>b-2*n){w[ae]=H(w[ae],b-2*n)}}var Z=Array.prototype.concat.apply([],w),V=Array.prototype.concat.apply([],v),q=this.g.snapEnds(Math.min.apply(Math,Z),Math.max.apply(Math,Z),w[0].length-1),C=q.from,l=q.to,M=this.g.snapEnds(Math.min.apply(Math,V),Math.max.apply(Math,V),v[0].length-1),A=M.from,k=M.to,aa=(b-n*2)/((l-C)||1),W=(e-n*2)/((k-A)||1);var E=this.set();if(I.axis){var h=(I.axis+"").split(/[,\s]+/);+h[0]&&E.push(this.g.axis(P+n,O+n,b-2*n,C,l,I.axisxstep||Math.floor((b-2*n)/20),2));+h[1]&&E.push(this.g.axis(P+b-n,O+e-n,e-2*n,A,k,I.axisystep||Math.floor((e-2*n)/20),3));+h[2]&&E.push(this.g.axis(P+n,O+e-n,b-2*n,C,l,I.axisxstep||Math.floor((b-2*n)/20),0));+h[3]&&E.push(this.g.axis(P+n,O+e-n,e-2*n,A,k,I.axisystep||Math.floor((e-2*n)/20),1))}var L=this.set(),ab=this.set(),o;for(ae=0,K=v.length;ae<K;ae++){if(!I.nostroke){L.push(o=this.path().attr({stroke:T[ae],"stroke-width":I.width||2,"stroke-linejoin":"round","stroke-linecap":"round","stroke-dasharray":I.dash||""}))}var c=this.raphael.is(p,"array")?p[ae]:p,F=this.set();U=[];for(var ad=0,u=v[ae].length;ad<u;ad++){var g=P+n+((w[ae]||w[0])[ad]-C)*aa,f=O+e-n-(v[ae][ad]-A)*W;(Raphael.is(c,"array")?c[ad]:c)&&F.push(this.g[Raphael.fn.g.markers[this.raphael.is(c,"array")?c[ad]:c]](g,f,(I.width||2)*3).attr({fill:T[ae],stroke:"none"}));if(I.smooth){if(ad&&ad!=u-1){var R=P+n+((w[ae]||w[0])[ad-1]-C)*aa,D=O+e-n-(v[ae][ad-1]-A)*W,Q=P+n+((w[ae]||w[0])[ad+1]-C)*aa,B=O+e-n-(v[ae][ad+1]-A)*W;var ah=S(R,D,g,f,Q,B);U=U.concat([ah.x1,ah.y1,g,f,ah.x2,ah.y2])}if(!ad){U=["M",g,f,"C",g,f]}}else{U=U.concat([ad?"L":"M",g,f])}}if(I.smooth){U=U.concat([g,f,g,f])}ab.push(F);if(I.shade){ag[ae].attr({path:U.concat(["L",g,O+e-n,"L",P+n+((w[ae]||w[0])[0]-C)*aa,O+e-n,"z"]).join(",")})}!I.nostroke&&o.attr({path:U.join(",")})}function J(ap){var al=[];for(var an=0,ar=w.length;an<ar;an++){al=al.concat(w[an])}var at=[],ai=[];for(an=0,ar=al.length;an<ar;an++){al[an]!=al[an-1]&&at.push(al[an])&&ai.push(P+n+(al[an]-C)*aa)}al=at;ar=al.length;var Y=ap||N.set();for(an=0;an<ar;an++){var y=ai[an]-(ai[an]-(ai[an-1]||P))/2,aq=((ai[an+1]||P+b)-ai[an])/2+(ai[an]-(ai[an-1]||P))/2,a;ap?(a={}):Y.push(a=N.rect(y-1,O,Math.max(aq+1,1),e).attr({stroke:"none",fill:"#000",opacity:0}));a.values=[];a.symbols=N.set();a.y=[];a.x=ai[an];a.axis=al[an];for(var ak=0,ao=v.length;ak<ao;ak++){at=w[ak]||w[0];for(var aj=0,x=at.length;aj<x;aj++){if(at[aj]==al[an]){a.values.push(v[ak][aj]);a.y.push(O+e-n-(v[ak][aj]-A)*W);a.symbols.push(af.symbols[ak][aj])}}}ap&&ap.call(a)}!ap&&(s=Y)}function G(an){var ai=an||N.set(),a;for(var ak=0,ap=v.length;ak<ap;ak++){for(var aj=0,al=v[ak].length;aj<al;aj++){var y=P+n+((w[ak]||w[0])[aj]-C)*aa,ao=P+n+((w[ak]||w[0])[aj?aj-1:1]-C)*aa,x=O+e-n-(v[ak][aj]-A)*W;an?(a={}):ai.push(a=N.circle(y,x,Math.abs(ao-y)/2).attr({stroke:"none",fill:"#000",opacity:0}));a.x=y;a.y=x;a.value=v[ak][aj];a.line=af.lines[ak];a.shade=af.shades[ak];a.symbol=af.symbols[ak][aj];a.symbols=af.symbols[ak];a.axis=(w[ak]||w[0])[aj];an&&an.call(a)}}!an&&(m=ai)}af.push(L,ag,ab,E,s,m);af.lines=L;af.shades=ag;af.symbols=ab;af.axis=E;af.hoverColumn=function(j,a){!s&&J();s.mouseover(j).mouseout(a);return this};af.clickColumn=function(a){!s&&J();s.click(a);return this};af.hrefColumn=function(X){var Y=N.raphael.is(arguments[0],"array")?arguments[0]:arguments;if(!(arguments.length-1)&&typeof X=="object"){for(var a in X){for(var j=0,y=s.length;j<y;j++){if(s[j].axis==a){s[j].attr("href",X[a])}}}}!s&&J();for(j=0,y=Y.length;j<y;j++){s[j]&&s[j].attr("href",Y[j])}return this};af.hover=function(j,a){!m&&G();m.mouseover(j).mouseout(a);return this};af.click=function(a){!m&&G();m.click(a);return this};af.each=function(a){G(a);return this};af.eachColumn=function(a){J(a);return this};return af};Raphael.fn.g.piechart=function(f,e,q,b,m){m=m||{};var l=this,n=[],h=this.set(),o=this.set(),k=this.set(),w=[],y=b.length,z=0,C=0,B=0,c=9,A=true;o.covers=h;if(y==1){k.push(this.circle(f,e,q).attr({fill:this.g.colors[0],stroke:m.stroke||"#fff","stroke-width":m.strokewidth==null?1:m.strokewidth}));h.push(this.circle(f,e,q).attr(this.g.shim));C=b[0];b[0]={value:b[0],order:0,valueOf:function(){return this.value}};k[0].middle={x:f,y:e};k[0].mangle=180}else{function v(I,H,p,K,G,P){var M=Math.PI/180,E=I+p*Math.cos(-K*M),D=I+p*Math.cos(-G*M),J=I+p/2*Math.cos(-(K+(G-K)/2)*M),O=H+p*Math.sin(-K*M),N=H+p*Math.sin(-G*M),F=H+p/2*Math.sin(-(K+(G-K)/2)*M),L=["M",I,H,"L",E,O,"A",p,p,0,+(Math.abs(G-K)>180),1,D,N,"z"];L.middle={x:J,y:F};return L}for(var x=0;x<y;x++){C+=b[x];b[x]={value:b[x],order:x,valueOf:function(){return this.value}}}b.sort(function(D,p){return p.value-D.value});for(x=0;x<y;x++){if(A&&b[x]*360/C<=1.5){c=x;A=false}if(x>c){A=false;b[c].value+=b[x];b[c].others=true;B=b[c].value}}y=Math.min(c+1,b.length);B&&b.splice(y)&&(b[c].others=true);for(x=0;x<y;x++){var g=z-360*b[x]/C/2;if(!x){z=90-g;g=z-360*b[x]/C/2}if(m.init){var j=v(f,e,1,z,z-360*b[x]/C).join(",")}var u=v(f,e,q,z,z-=360*b[x]/C);var s=this.path(m.init?j:u).attr({fill:m.colors&&m.colors[x]||this.g.colors[x]||"#666",stroke:m.stroke||"#fff","stroke-width":(m.strokewidth==null?1:m.strokewidth),"stroke-linejoin":"round"});s.value=b[x];s.middle=u.middle;s.mangle=g;n.push(s);k.push(s);m.init&&s.animate({path:u.join(",")},(+m.init-1)||1000,">")}for(x=0;x<y;x++){s=l.path(n[x].attr("path")).attr(this.g.shim);m.href&&m.href[x]&&s.attr({href:m.href[x]});s.attr=function(){};h.push(s);k.push(s)}}o.hover=function(F,D){D=D||function(){};var E=this;for(var p=0;p<y;p++){(function(H,I,G){var J={sector:H,cover:I,cx:f,cy:e,mx:H.middle.x,my:H.middle.y,mangle:H.mangle,r:q,value:b[G],total:C,label:E.labels&&E.labels[G]};I.mouseover(function(){F.call(J)}).mouseout(function(){D.call(J)})})(k[p],h[p],p)}return this};o.each=function(E){var D=this;for(var p=0;p<y;p++){(function(G,H,F){var I={sector:G,cover:H,cx:f,cy:e,x:G.middle.x,y:G.middle.y,mangle:G.mangle,r:q,value:b[F],total:C,label:D.labels&&D.labels[F]};E.call(I)})(k[p],h[p],p)}return this};o.click=function(E){var D=this;for(var p=0;p<y;p++){(function(G,H,F){var I={sector:G,cover:H,cx:f,cy:e,mx:G.middle.x,my:G.middle.y,mangle:G.mangle,r:q,value:b[F],total:C,label:D.labels&&D.labels[F]};H.click(function(){E.call(I)})})(k[p],h[p],p)}return this};o.inject=function(p){p.insertBefore(h[0])};var a=function(J,E,D,p){var N=f+q+q/5,M=e,I=M+10;J=J||[];p=(p&&p.toLowerCase&&p.toLowerCase())||"east";D=l.g.markers[D&&D.toLowerCase()]||"disc";o.labels=l.set();for(var H=0;H<y;H++){var O=k[H].attr("fill"),F=b[H].order,G;b[H].others&&(J[F]=E||"Others");J[F]=l.g.labelise(J[F],b[H],C);o.labels.push(l.set());o.labels[H].push(l.g[D](N+5,I,5).attr({fill:O,stroke:"none"}));o.labels[H].push(G=l.text(N+20,I,J[F]||b[F]).attr(l.g.txtattr).attr({fill:m.legendcolor||"#000","text-anchor":"start"}));h[H].label=o.labels[H];I+=G.getBBox().height*1.2}var K=o.labels.getBBox(),L={east:[0,-K.height/2],west:[-K.width-2*q-20,-K.height/2],north:[-q-K.width/2,-q-K.height-10],south:[-q-K.width/2,q+10]}[p];o.labels.translate.apply(o.labels,L);o.push(o.labels)};if(m.legend){a(m.legend,m.legendothers,m.legendmark,m.legendpos)}o.push(k,h);o.series=k;o.covers=h;return o};(function(){var c=/\{([^\}]+)\}/g,a=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,b=function(h,g,j){var f=j;g.replace(a,function(m,l,k,o,n){l=l||o;if(f){if(l in f){f=f[l]}typeof f=="function"&&n&&(f=f())}});f=(f==null||f==j?h:f)+"";return f},e=function(g,f){return String(g).replace(c,function(j,h){return b(j,h,f)})};Raphael.fn.popup=function(g,f,s,l,D){l=String(l||"top-middle").split("-");l[1]=l[1]||"middle";var u=5,j=s.getBBox(),p=Math.round(j.width),C=Math.round(j.height),n=Math.round(j.x)-u,m=Math.round(j.y)-u,v=Math.min(C/2,p/2,10),z={top:"M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}l-{right},0-{gap},{gap}-{gap}-{gap}-{left},0a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z",bottom:"M{x},{y}l{left},0,{gap}-{gap},{gap},{gap},{right},0a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z",right:"M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}v{h4},{h4},{h4},{h4}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}l0-{bottom}-{gap}-{gap},{gap}-{gap},0-{top}a{r},{r},0,0,1,{r}-{r}z",left:"M{x},{y}h{w4},{w4},{w4},{w4}a{r},{r},0,0,1,{r},{r}l0,{top},{gap},{gap}-{gap},{gap},0,{bottom}a{r},{r},0,0,1,-{r},{r}h-{w4}-{w4}-{w4}-{w4}a{r},{r},0,0,1-{r}-{r}v-{h4}-{h4}-{h4}-{h4}a{r},{r},0,0,1,{r}-{r}z"},k={hx0:g-(n+u+p-v*2),hx1:g-(n+u+p/2-v),hx2:g-(n+u+v),vhy:f-(m+u+C+u+v),"^hy":f-(m-v)},B=[{x:n+u,y:m,w:p,w4:p/4,h4:C/4,right:0,left:p-v*2,bottom:0,top:C-v*2,r:u,h:C,gap:v},{x:n+u,y:m,w:p,w4:p/4,h4:C/4,left:p/2-v,right:p/2-v,top:C/2-v,bottom:C/2-v,r:u,h:C,gap:v},{x:n+u,y:m,w:p,w4:p/4,h4:C/4,left:0,right:p-v*2,top:0,bottom:C-v*2,r:u,h:C,gap:v}][l[1]=="middle"?1:(l[1]=="top"||l[1]=="left")*2];var q=0,o=0,A=this.path(e(z[l[0]],B)).insertBefore(s);switch(l[0]){case"top":q=g-(n+u+B.left+v);o=f-(m+u+C+u+v);break;case"bottom":q=g-(n+u+B.left+v);o=f-(m-v);break;case"left":q=g-(n+u+p+u+v);o=f-(m+u+B.top+v);break;case"right":q=g-(n-v);o=f-(m+u+B.top+v);break}A.translate(q,o);if(D){D=A.attr("path");A.remove();return{path:D,dx:q,dy:o}}s.translate(q,o);return A}})();(function(a){a.colorpicker=function(h,m,k,l,j){return new b(h,m,k,l,j)};a.fn.colorPickerIcon=function(h,o,m){var k=f*m*2/Math.min(m/8,4);var j=f/2-f*2/k*1.5,n=["M",h,o-m,"A",m,m,0,0,1,m*Math.cos(j)+h,o-m*Math.sin(j),"L",h,o,"z"].join();for(var l=0;l<k;l++){this.path(n).attr({stroke:"none",fill:"hsb("+(k-l)*(255/k)/255+", 1, 1)",transform:"r"+[90+(360/k)*l,h,o]})}return this.circle(h,o,m).attr({fill:"r#fff-#fff","fill-opacity":0,"stroke-width":Math.round(m*0.03),stroke:"#fff"})};var f=Math.PI;function g(h,j){return(h<0)*180+Math.atan(-j/-h)*180/f}var e=document,c=window,b=function(u,p,F,k,j){F=F||200;var q=3*F/200,w=F/200,z=1.6180339887,L=F/20,o=F/2,D=2*F/200,G=F+L*2+D*3,A=this,v=1,l=1,I=1,C=F-(L*4),E=j?a(j,F,G):a(u,p,F,G),m=C/6+L*2+D,n=C*2/3-D*2;w<1&&(w=1);q<1&&(q=1);E.colorPickerIcon(o,o,o-D);A.cursor=E.set();A.cursor.push(E.circle(o,o,L/2).attr({stroke:"#000",opacity:0.5,"stroke-width":q}));A.cursor.push(A.cursor[0].clone().attr({stroke:"#fff",opacity:1,"stroke-width":w}));A.disc=E.circle(o,o,o-D).attr({fill:"#000","fill-opacity":0,stroke:"none",cursor:"crosshair"});var K=A.disc.node.style;K.unselectable="on";K.MozUserSelect="none";K.WebkitUserSelect="none";var J=L*2+2;A.brect=E.rect(D+J/z/2,F+D*2,F-D*2-J/z,J-D*2).attr({stroke:"#fff",fill:"180-#fff-#000"});A.cursorb=E.set();A.cursorb.push(E.rect(F-D-J/z,F+D,~~(J/z),J,q).attr({stroke:"#000",opacity:0.5,"stroke-width":q}));A.cursorb.push(A.cursorb[0].clone().attr({stroke:"#fff",opacity:1,"stroke-width":w}));A.btop=A.brect.clone().attr({stroke:"#000",fill:"#000",opacity:0});K=A.btop.node.style;K.unselectable="on";K.MozUserSelect="none";K.WebkitUserSelect="none";A.bwidth=~~(J/z)/2;A.minx=D+A.bwidth;A.maxx=F-J/z-D+A.bwidth;A.H=A.S=A.B=1;A.padding=D;A.raphael=E;A.size2=o;A.size20=L;A.x=u;A.y=p;A.disc.drag(function(B,s,h,H){A.docOnMove(B,s,h,H)},function(h,s){A.hsOnTheMove=true;A.setHS(h-A.x,s-A.y)},function(){A.hsOnTheMove=false});A.btop.drag(function(B,s,h,H){A.docOnMove(B,s,h,H)},function(h,s){A.bOnTheMove=true;A.setB(h-A.x)},function(){A.bOnTheMove=false});A.color(k||"#fff");this.onchanged&&this.onchanged(this.color())};b.prototype.setB=function(h){h<this.minx&&(h=this.minx);h>this.maxx&&(h=this.maxx);this.cursorb.attr({x:h-this.bwidth});this.B=(h-this.minx)/(this.maxx-this.minx);this.onchange&&this.onchange(this.color())};b.prototype.setHS=function(h,o){var n=h-this.size2,m=o-this.size2,j=this.size2-this.size20/2-this.padding,l=g(n,m),k=l*f/180;isNaN(l)&&(l=0);if(n*n+m*m>j*j){h=j*Math.cos(k)+this.size2;o=j*Math.sin(k)+this.size2}this.cursor.attr({cx:h,cy:o});this.H=(1-l/360)%1;this.S=Math.min((n*n+m*m)/j/j,1);this.brect.attr({fill:"180-hsb("+[this.H,this.S]+",1)-#000"});this.onchange&&this.onchange(this.color())};b.prototype.docOnMove=function(k,j,h,l){if(this.hsOnTheMove){this.setHS(h-this.x,l-this.y)}if(this.bOnTheMove){this.setB(h-this.x)}};b.prototype.remove=function(){this.raphael.remove();this.color=function(){return false}};b.prototype.color=function(j){if(j){j=a.getRGB(j);var m=j.hex;j=a.rgb2hsb(j.r,j.g,j.b);n=j.h*360;this.H=j.h;this.S=j.s;this.B=j.b;this.cursorb.attr({x:this.B*(this.maxx-this.minx)+this.minx-this.bwidth});this.brect.attr({fill:"180-hsb("+[this.H,this.S]+",1)-#000"});var n=(1-this.H)*360,l=n*f/180,k=(this.size2-this.size20/2-this.padding)*this.S,h=Math.cos(l)*k+this.size2,o=Math.sin(l)*k+this.size2;this.cursor.attr({cx:h,cy:o});return this}else{return a.hsb2rgb(this.H,this.S,this.B).hex}}})(window.Raphael);(function(a){a.colorwheel=function(h,m,k,l,j){return new c(h,m,k,l,j)};var g=Math.PI,f=document,e=window,c=function(v,q,G,k,j){G=G||200;var u=3*G/200,z=G/200,A=1.6180339887,K=g*G/5,P=G/20,p=G/2,E=2*G/200,C=this;var w=1,l=1,I=1,D=G-(P*4);var F=j?a(j,G,G):a(v,q,G,G),n=D/6+P*2+E,o=D*2/3-E*2;z<1&&(z=1);u<1&&(u=1);var O=g/2-g*2/K*1.3,m=p-E,N=p-E-P*2,J=["M",p,E,"A",m,m,0,0,1,m*Math.cos(O)+m+E,m-m*Math.sin(O)+E,"L",N*Math.cos(O)+m+E,m-N*Math.sin(O)+E,"A",N,N,0,0,0,p,E+P*2,"z"].join();for(var L=0;L<K;L++){F.path(J).attr({stroke:"none",fill:"hsb("+L*(255/K)/255+", 1, 0.78)",transform:"r"+[(360/K)*L,p,p]})}F.path(["M",p,E,"A",m,m,0,1,1,p-1,E,"l1,0","M",p,E+P*2,"A",N,N,0,1,1,p-1,E+P*2,"l1,0"]).attr({"stroke-width":u,stroke:"#fff"});C.cursorhsb=F.set();var M=P*2+2;C.cursorhsb.push(F.rect(p-M/A/2,E-1,M/A,M,3*G/200).attr({stroke:"#000",opacity:0.5,"stroke-width":u}));C.cursorhsb.push(C.cursorhsb[0].clone().attr({stroke:"#fff",opacity:1,"stroke-width":z}));C.ring=F.path(["M",p,E,"A",m,m,0,1,1,p-1,E,"l1,0M",p,E+P*2,"A",N,N,0,1,1,p-1,E+P*2,"l1,0"]).attr({fill:"#000",opacity:0,stroke:"none"});C.main=F.rect(n,n,o,o).attr({stroke:"none",fill:"#f00",opacity:1});C.main.clone().attr({stroke:"none",fill:"0-#fff-#fff",opacity:0});C.square=F.rect(n-1,n-1,o+2,o+2).attr({r:2,stroke:"#fff","stroke-width":u,fill:"90-#000-#000",opacity:0,cursor:"crosshair"});C.cursor=F.set();C.cursor.push(F.circle(p,p,P/2).attr({stroke:"#000",opacity:0.5,"stroke-width":u}));C.cursor.push(C.cursor[0].clone().attr({stroke:"#fff",opacity:1,"stroke-width":z}));C.H=C.S=C.B=1;C.raphael=F;C.size2=p;C.wh=o;C.x=v;C.xy=n;C.y=q;C.ring.drag(function(B,s,h,H){C.docOnMove(B,s,h,H)},function(h,s){C.hsbOnTheMove=true;C.setH(h-C.x-C.size2,s-C.y-C.size2)},function(){C.hsbOnTheMove=false});C.square.drag(function(B,s,h,H){C.docOnMove(B,s,h,H)},function(h,s){C.clrOnTheMove=true;C.setSB(h-C.x,s-C.y)},function(){C.clrOnTheMove=false});C.color(k||"#f00");this.onchanged&&this.onchanged(this.color())},b=c.prototype;b.setH=function(h,l){var k=a.angle(h,l,0,0),j=a.rad(k);this.cursorhsb.attr({transform:"r"+[k+90,this.size2,this.size2]});this.H=(k+90)/360;this.main.attr({fill:"hsb("+this.H+",1,1)"});this.onchange&&this.onchange(this.color())};b.setSB=function(h,k){var j=this;h<j.size2-j.wh/2&&(h=j.size2-j.wh/2);h>j.size2+j.wh/2&&(h=j.size2+j.wh/2);k<j.size2-j.wh/2&&(k=j.size2-j.wh/2);k>j.size2+j.wh/2&&(k=j.size2+j.wh/2);j.cursor.attr({cx:h,cy:k});j.B=1-(k-j.xy)/j.wh;j.S=(h-j.xy)/j.wh;j.onchange&&j.onchange(j.color())};b.docOnMove=function(k,j,h,l){if(this.hsbOnTheMove){this.setH(h-this.x-this.size2,l-this.y-this.size2)}if(this.clrOnTheMove){this.setSB(h-this.x,l-this.y)}};b.remove=function(){this.raphael.remove();this.color=function(){return false}};b.color=function(j){if(j){j=a.color(j);var k=j.h*360;this.H=j.h;this.S=j.s;this.B=j.v;this.cursorhsb.attr({transform:"r"+[k,this.size2,this.size2]});this.main.attr({fill:"hsb("+this.H+",1,1)"});var h=this.S*this.wh+this.xy,l=(1-this.B)*this.wh+this.xy;this.cursor.attr({cx:h,cy:l});return this}else{return a.hsb2rgb(this.H,this.S,this.B).hex}}})(window.Raphael);(function(a){function b(m,A,z,l,s,n){var k=l||12,v=n||"#fff",u=s||15,y=Math.min(A,z)||35,w=Math.max(A,z)||60,g=w+u,f=w+u,q=Raphael(m,w*2+u*2,w*2+u*2),p=[],h=[],B=2*Math.PI/k,o={stroke:v,"stroke-width":u,"stroke-linecap":"round"};Raphael.getColor.reset();for(var x=0;x<k;x++){var j=B*x-Math.PI/2,e=Math.cos(j),c=Math.sin(j);h[x]=1/k*x;p[x]=q.path([["M",g+y*e,f+y*c],["L",g+w*e,f+w*c]]).attr(o);if(v=="rainbow"){p[x].attr("stroke",Raphael.getColor())}}(function C(){h.unshift(h.pop());for(var D=0;D<k;D++){p[D].attr("opacity",h[D])}q.safari();tick=setTimeout(C,1000/k)})();return function(){clearTimeout(tick);q.remove()}}a.fn.spinner=function(c){c=a.extend({innerRadius:40,outerRadius:80,dashes:12,strokeWidth:15,color:"#fff"},c);a(this).each(function(){b(this,c.innerRadius,c.outerRadius,c.dashes,c.strokeWidth,c.color)});return this}})(jQuery);(function(a){a.fn.extend({reload:function(c,b){var e={attribute:"page",page:null};var c=a.extend(e,c);return this.each(function(){if($Deleting.deleting){$Deleting.error()}else{var f={};f.id=$General.uniqid();f.page=(c.page)?c.page:a(this).attr(c.attribute);$General.that[f.id]=a(this);$General.that[f.id].load(f.page,function(){$General.that[f.id].initialise();if(typeof(b)=="function"){b.call()}delete $General.that[f.id]})}})}})})(jQuery);(function(a){a.fn.extend({cloner:function(b){var c={group:false,buttons:".Javascript-cloner-buttons"};var b=a.extend(c,b);return this.each(function(){var e="";e=e+'<div onclick="$Cloner.add(this);" class="data-image-button-add cloner-add"></div>';e=e+'<div onclick="$Cloner.del(this);" class="data-image-button-remove cloner-remove"></div>';if(b.group){a(this).removeClass("Javascript-cloner-group").addClass("Javascript-cloned").find(b.buttons).html(e)}else{a(this).removeClass("Javascript-cloner").wrap('<div class="Javascript-cloned"></div>').parent().prepend(e)}})}})})(jQuery);(function(a){a.fn.extend({section:function(e,b){var f={};var c=a.extend(f,c);return this.each(function(){if($Deleting.deleting){$Deleting.error()}else{var g={};g.id=$General.uniqid();g.page=e;$General.that[g.id]=a(this);$Editing.check(function(){$General.that[g.id].load(g.page,function(){$General.that[g.id].initialise();if(typeof(b)=="function"){b.call()}})})}})}})})(jQuery);(function(a){a.fn.extend({initialise:function(c,b){var e={};var c=a.extend(e,c);return this.each(function(){process();forms();if(typeof(b)=="function"){b.call()}if(typeof(window.__ajax)=="function"){__ajax()}__onresize()})}})})(jQuery);(function(a){a.fn.extend({placeholder:function(b){var c={placeholderAttribute:"placeholder",placeholderClass:"placeholder"};var b=a.extend(c,b);return this.each(function(){var e="placeholder" in document.createElement("input");if(!e&&a(this).attr("type")!="password"){if(!a(this).val()){a(this).addClass(b.placeholderClass);a(this).val(a(this).attr(b.placeholderAttribute))}a(this).focus(function(){if(a(this).hasClass(b.placeholderClass)){a(this).val(null);a(this).removeClass(b.placeholderClass)}});a(this).blur(function(){if(!a(this).val()){a(this).addClass(b.placeholderClass);a(this).val(a(this).attr(b.placeholderAttribute))}})}})}})})(jQuery);jQuery.fn.selectedText=function(c){c=c||window;var b=null;var e=null;if(c.getSelection){var b=c.getSelection().anchorNode;var e=c.getSelection().toString();var a=c.getSelection();console.log(c.getSelection());if(!a.isCollapsed&&$.browser.mozilla){if(a.focusNode.nodeName!=="#text"){if((a.focusOffset-a.anchorOffset)>1){console.log("Selected spanning more than one",b=a.anchorNode)}else{if(a.anchorNode.childNodes[a.anchorOffset].nodeName!=="#text"){console.log("Selected non-text",b=a.anchorNode.childNodes[a.anchorOffset])}else{console.log("Selected whole element",b=a.anchorNode)}}}else{if(a.anchorNode.data===a.focusNode.data){console.log("Selected non bounding text",b=a.anchorNode.parentNode)}else{if(a.anchorOffset===0&&!a.anchorNode.data){console.log("Selected whole element at start of paragraph (whereby selected element has not text e.g. &lt;script&gt;",b=a.anchorNode)}else{if(typeof a.anchorNode.data!=="undefined"&&a.anchorOffset===0&&a.anchorOffset<a.anchorNode.data.length){console.log("Selected whole element at start of paragraph",b=a.anchorNode.parentNode)}else{if(typeof a.anchorNode.data!=="undefined"&&a.anchorOffset<a.anchorNode.data.length){console.log("Selected preceeding element text",b=a.anchorNode.parentNode)}else{if(typeof a.anchorNode.data!=="undefined"&&a.anchorOffset===a.anchorNode.data.length&&a.focusOffset===0){console.log("Selected whole element text",b=(a.anchorNode.nextSibling||a.focusNode.previousSibling))}else{if(a.focusOffset>0){console.log("Selected suceeding element text",b=a.focusNode.parentNode)}}}}}}}}else{if(a.isCollapsed){b=b.parentNode}}}else{if(c.document.selection){var a=c.document.selection.createRange();var b=a;if(a.parentElement){b=a.parentElement()}else{b=a.item(0)}e=a.text||a;if(e.toString){e=e.toString()}}else{throw"Error"}}if(b.nodeName==="#text"){b=b.parentNode}if(typeof b.tagName==="undefined"){return false}return{obj:b,text:e}};ABCUMGROUP.Admin=function(){this.loadmorePrints=function(b,a){$Loading.check(function(){lastObjectID=$("#column1 .normallist:last").attr("mysqlpull");if(b>lastObjectID){$Loading.loading=true;var c="";c=c+'<li class="contact_contact_more" id="loadmoreSpinner">';c=c+'<a href="#">';c=c+'<center><strong>&nbsp;<img src="/img/loaders/small.gif" style="vertical-align:middle;" />&nbsp;</strong></center>';c=c+"</a>";c=c+"</li>";$("#column1 .Abcum-list").append(c);$.post("/"+SYSTEMTYPE+"/prints/list/"+lastObjectID+"/-/type="+a,function(e){if(e!=""){$("#column1 .Abcum-list").append(e).initialise()}$("#loadmoreSpinner").remove();$Loading.loading=false})}})};this.prices={};this.prices.select=function(a){$(document).ready(function(){$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #prices_"+a).addClass("selected");$("#section").reload({page:"/"+SYSTEMTYPE+"/pricing/view/"+a+"/"});$Admin.prices.last=a})})};this.payments={};this.payments.select=function(a){$(document).ready(function(){$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #prices_"+a).addClass("selected");$("#section").reload({page:"/"+SYSTEMTYPE+"/payments/view/"+a+"/"});$Admin.payments.last=a})})};this.orders={};this.orders.select=function(a){$(document).ready(function(){$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #orders_"+a).addClass("selected");$("#section").reload({page:"/"+SYSTEMTYPE+"/prints/view/"+a+"/"});$Admin.orders.last=a})})};this.help={};this.help.close=function(a){$(document).ready(function(){$("#load").load("/a/"+SYSTEMTYPE+"/help/close/"+a+"/",function(){$("#column1").reload({page:"/"+SYSTEMTYPE+"/help/list/0/"});$("#column2").reload({page:"/"+SYSTEMTYPE+"/help/view/"+a+"/"})})})};this.templates={};this.templates.mailshots={};this.templates.prints={};this.templates.mailshots.select=function(a){$(document).ready(function(){$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #templates_"+a).addClass("selected");$("#section").reload({page:"/"+SYSTEMTYPE+"/templatemailshots/view/"+a+"/"});$Admin.templates.mailshots.last=a})})};this.templates.mailshots.section=function(a,b){$(document).ready(function(){$("#template-sections li.selected").removeClass("selected");$("#template-sections #section_"+b).addClass("selected");$("#template-section").reload({page:"/"+SYSTEMTYPE+"/templatemailshots/section-section/"+a+"/-/sectionid="+b})})}};ABCUMGROUP.Admin.prototype={};ABCUMGROUP.General=function(){this.that={};this.processFunction=function(){var b=Array.prototype.slice.call(arguments);var e=b[0];function_arguments=new Array();for(var c=1,a=b.length;c<a;++c){if(b[c]==null){function_arguments[c-1]="null"}else{function_arguments[c-1]='"'+b[c]+'"'}}function_full=e+"("+function_arguments.join(", ")+")";new Function(function_full).call();return false};this.development=function(a){$Loading.show();$.ajax({url:"/development/"+a+"/",dataType:"html",success:function(b){if(b=="OK"){if($History.locator){c=$History.locator}else{var c="";c=$History.clean(window.location.href);c=c.replace("/a/","/")}$General.page(c)}}})};this.alert=function(a){alert(a)};this.growl=function(c,b){if(DESKTOP==true){var a="";a=a+"var notification = Titanium.Notification.createNotification();\n";a=a+"notification.setTitle('"+c+"');\n";a=a+"notification.setMessage('"+b+"');\n";a=a+"notification.setTimeout(3000);\n";a=a+"notification.show();\n";$General.titanium(a)}else{$.sticky("<b>"+c+"</b><p>"+b+"</p>")}};this.confirm=function(b,a){if(confirm(b)){a.call()}};this.dialogConfirm=function(a){$.prompt("Are you sure?",{callback:function(c,b,e){if(c===true){new Function(a).call()}else{if(c===false){return false}}},buttons:{Yes:true,No:false},focus:0})};this.dialogChanges=function(a){$.prompt("Do you wish to save your changes?",{callback:function(c,b,e){if(c===true){new Function($Editing.save).call();$Editing.editing=false}else{if(c===false){$Editing.editing=false;a.call()}}},buttons:{Yes:true,No:false},focus:0})};this.dialogAccept=function(c,a,b){if(b===undefined||b==null){b={Yes:true,No:false}}$.prompt(c,{callback:function(g,e,h){if(g===true){a.call();return false}},buttons:b,focus:0})};this.titanium=function(a){$.postMessage(a,"app://com."+SHORTNAME+".app")};this.load=function(a){$("#Ajax-content").section(a)};this.reload=function(){};this.page=function(a){window.location.href=a};this.window=function(a){window.open(a,"","width=1100,height=600,toolbar=yes,status=no")};this.refresh=function(a){setTimeout("location.reload(true)",a)};this.click=function(a){document.getElementById(a).click();return false};this.toggle=function(c,a,b){if($(c).hasClass("General-toggle-open")){$(c).removeClass("General-toggle-open");$(c).animate({height:a+"px"},500,"swing");$("#panel").animate({top:a+"px"},500,"swing")}else{$(c).addClass("General-toggle-open");$(c).animate({height:b+"px"},500,"swing");$("#panel").animate({top:b+"px"},500,"swing")}};this.change=function(a){$General.page("/"+a+"/home/index/")};this.dump=function(a,h){var g="";if(!h){h=0}var f="";for(var b=0;b<h+1;b++){f+="    "}if(typeof(a)=="object"){for(var c in a){var e=a[c];if(typeof(e)=="object"){g+=f+"'"+c+"' ...\n";g+=$General.dump(e,h+1)}else{g+=f+"'"+c+"' => \""+e+'"\n'}}}else{g="===>"+a+"<===("+typeof(a)+")"}return g};this.uniqid=function(e,c){if(typeof e=="undefined"){e=""}var b;var a=function(f,g){f=parseInt(f,10).toString(16);if(g<f.length){return f.slice(f.length-g)}if(g>f.length){return Array(1+(g-f.length)).join("0")+f}return f};if(!this.php_js){this.php_js={}}if(!this.php_js.uniqidSeed){this.php_js.uniqidSeed=Math.floor(Math.random()*123456789)}this.php_js.uniqidSeed++;b=e;b+=a(parseInt(new Date().getTime()/1000,10),8);b+=a(this.php_js.uniqidSeed,5);if(c){b+=(Math.random()*10).toFixed(8).toString()}return b}};ABCUMGROUP.General.prototype={};ABCUMGROUP.History=function(){this.url={};this.init=function(){$History.host=window.location.protocol+"//"+window.location.hostname;$History.locator=window.location.pathname;if(typeof window.history.pushState=="function"){$History.type="state"}else{if("onhashchange" in window){$History.type="hash"}else{$History.type="blank"}}$History.states()};this.load=function(a){$History.url.actual=$History.clean.actual(a);$History.url.display=$History.clean.display(a);$History.locator=$History.url.display;if($History.type=="state"){$History.set.state()}if($History.type=="hash"){$History.set.hash()}if($History.type=="blank"){$History.set.blank()}$History.extras()};this.extras=function(){if(typeof(_gaq)!=="undefined"){_gaq.push(["_trackPageview",$History.locator])}if(typeof(olark)!=="undefined"){olark("api.chat.updateVisitorStatus",{snippet:"current page "+$History.host+$History.locator,hidesDefault:true});olark("api.visitor.getDetails",function(a){if(a.isConversing){olark("api.chat.sendNotificationToOperator",{body:"Currently viewing: "+$History.host+$History.locator})}})}};this.states=function(){if($History.type=="state"){if(window.location.pathname){window.history.pushState({page:window.location.pathname},document.title,window.location.pathname)}window.onpopstate=function(a){if(a.state){$History.get.state(a.state.page)}}}if($History.type=="hash"){if(window.location.hash){$History.get.hash(window.location.hash)}window.onhashchange=function(a){$History.get.hash(window.location.hash)}}if($History.type=="blank"){setInterval(function(){if(window.location.hash){if(window.location.hash.replace(/^.*#/,"")!==$History.locator){$History.get.hash(window.location.hash)}}},300)}};this.set={};this.set.state=function(){$General.load($History.url.actual);window.history.pushState({page:$History.url.actual},document.title,$History.url.display)};this.set.hash=function(){window.location.hash=$History.url.actual};this.set.blank=function(){$General.load($History.url.actual);window.location.hash=$History.url.actual};this.get={};this.get.state=function(a){$History.locator=a;a=$History.clean.actual(a);$General.load(a)};this.get.hash=function(a){a=$History.clean.hash(a);$History.locator=a;a=$History.clean.actual(a);$General.load(a)};this.clean={};this.clean.hash=function(a){return a.replace(/^.*#/,"")};this.clean.actual=function(a){if(a.indexOf(":")!=-1){if(a.indexOf(":")==4){a=a.substring(7)}if(a.indexOf(":")==5){a=a.substring(8)}a=a.substring(a.indexOf("/"))}if(a.indexOf("#")!=-1){if(a.indexOf("#")!=0){a=a.substring(0,a.indexOf("#"))}if(a.indexOf("#")==0){a=a.replace("#","")}}if(!a.beginswith("/a/")){a="/a"+a}return a};this.clean.display=function(a){if(a.indexOf("/a/")!=-1){a=a.replace("/a/","/")}if(a.indexOf("-/")!=-1){remove=a.substring(a.indexOf("-/")-2);a=a.replace(remove,"")}return a}};ABCUMGROUP.History.prototype={};ABCUMGROUP.Editing=function(){this.editing=false;this.save=null;this.check=function(a){if(this.editing===true){$General.dialogChanges(a);return true}else{a.call();return false}}};ABCUMGROUP.Editing.prototype={};ABCUMGROUP.Loading=function(){this.loading=false;this.timer=null;this.show=function(){$("#OnlinePlatforms-loading").fadeIn(0).html("").append('<div id="OnlinePlatforms-loading-spinner"></div>');$("#OnlinePlatforms-loading-spinner").spinner()};this.hide=function(){$("#OnlinePlatforms-loading").fadeOut(0).html("")};this.automatic={};this.automatic.show=function(a){if(a=="small"){$("#OnlinePlatforms-loading-small").show(0)}if(a=="all"){$Loading.timer=setTimeout(function(){$General.dialogAccept("This page appears to be taking a little time to load. Do you want to cancel this page from loading?",function(){$Loading.abort()},{Cancel:true,})},5000)}};this.automatic.hide=function(a){if(a=="small"){$("#OnlinePlatforms-loading-small").fadeOut(100)}if(a=="all"){clearTimeout($Loading.timer);$.prompt.close()}};this.start=function(a){$("#"+a).fadeIn(0)};this.stop=function(a){$("#"+a).fadeOut(0)};this.check=function(a){if(this.loading===false){a.call()}};this.abort=function(){$.xhrPool.abortAll()}};ABCUMGROUP.Loading.prototype={};ABCUMGROUP.Strings=function(){String.prototype.urlencode=function(){return encodeURIComponent(this)};String.prototype.urldecode=function(){return decodeURIComponent(this)};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/,"")};String.prototype.baseurl=function(){var a=null;if(this.indexOf("http",0)==-1&&this.indexOf("https",0)==-1){return this}a=this.indexOf("/",8);return this.substring(a)};String.prototype.beginswith=function(a){return this.indexOf(a)==0};this.urlencode=function(a){return a.urlencode()};this.urldecode=function(a){return a.urldecode()};this.trim=function(a){return a.trim()};this.baseurl=function(b){var a=null;if(b.indexOf("http",0)==-1&&b.indexOf("https",0)==-1){return b}a=b.indexOf("/",8);return b.substring(a)}};ABCUMGROUP.Strings.prototype={};ABCUMGROUP.Cloner=function(){this.add=function(b){var a=$(b).closest(".Javascript-cloned");var c=a.clone();c.find("input").each(function(){$(this).val("")});c.find("textarea").each(function(){$(this).val("")});c.find(".Javascript-cloner-remove").remove();a.after(c)};this.del=function(a){$(a).closest(".Javascript-cloned").remove()}};ABCUMGROUP.Cloner.prototype={};ABCUMGROUP.Deleting=function(){this.deleting=false;this.div=null;this.error=function(){$(".button.delete").effect("shake",{times:3,distance:10,direction:"left"},130)};this.enable=function(a){$(document).ready(function(){$Deleting.deleting=true;$Deleting.div=a;$(a+" .deletebutton").show();$(a+" .buttons_plusminus").fadeOut(function(){$(a+" .buttons_delete").fadeIn()});$(a+" .selected:not(.nodelete)").addClass("selection_delete")})};this.cancel=function(a){$(document).ready(function(){$Deleting.div=null;$Deleting.deleting=false;$(a+" .selection_delete").removeClass("selection_delete");$(a+" .deletebutton").hide();$(a+" .buttons_delete").fadeOut(function(){$(a+" .buttons_plusminus").fadeIn()})})};this.process=function(c,b){var a={};$(c+" .selection_delete").each(function(){$(this).slideUp();objectid=$(this).attr("objectid");a[objectid]=objectid});$.post(b,a);$Deleting.cancel(c)};this.select=function(a){$(document).ready(function(){$(a+":not(.nodelete)").toggleClass("selection_delete")})}};ABCUMGROUP.Deleting.prototype={};ABCUMGROUP.Language=function(){this.enabled=false;this.Values=new Array();this.change=function(a){$Loading.show();$.ajax({url:"/languages/"+a+"/",dataType:"html",success:function(b){if(b=="OK"){if($History.locator){c=$History.locator}else{var c="";c=$History.clean(window.location.href);c=c.replace("/a/","/")}$General.page(c)}}})};this.get=function(a){return a}};ABCUMGROUP.Language.prototype={};ABCUMGROUP.Search=function(){this.display=false;this.value=null;this.init=function(){$("#Abcum-search").focus(function(){$Search.open()});$("#Abcum-search").blur(function(){if($(this).val().length===0){$Search.close()}});$("#Abcum-search").typeWatch({callback:function(a){$Search.process(a)},wait:1000,captureLength:0})};this.open=function(){$("#Abcum-website-search, #Abcum-desktop-search").animate({width:"400px"},1000,"swing");$("#Abcum-website-content, #Abcum-desktop-content").animate({right:"400px"},1000,"swing",function(){$(window).resize()})};this.close=function(){$("#Abcum-website-search, #Abcum-desktop-search").animate({width:"0px"},1000,"swing");$("#Abcum-website-content, #Abcum-desktop-content").animate({right:"0px"},1000,"swing",function(){$(window).resize()})};this.process=function(a){ac=location.href.indexOf("/ac/");am=location.href.indexOf("/am/");if(ac!==-1){$("#Abcum-search-content").section("/a/ac/search/list/0/-/text="+a.trim().urlencode())}if(am!==-1){$("#Abcum-search-content").section("/a/am/search/list/0/-/text="+a.trim().urlencode())}}};ABCUMGROUP.Search.prototype={};$(window).blur(function(){isCtrl=false;isCmd=false;isShift=false;isAlt=false});$(window).focus(function(){isCtrl=false;isCmd=false;isShift=false;isAlt=false});try{$(document).keyup(function(a){if(a.which==17){isCtrl=false}if(a.which==91||a.which==93||a.which==224){isCmd=false}if(a.which==16){isShift=false}if(a.which==18){isAlt=false}})}catch(err){}try{$(document).keydown(function(c){if(c.which==17){isCtrl=true}if(c.which==91||c.which==93||c.which==224){isCmd=true}if(c.which==16){isShift=true}if(c.which==18){isAlt=true}if(c.which==8){}if(c.which==38){if($Contacts.last!==null&&$("#column2 #contacts_"+$Contacts.last).prev().attr("objectid")!==undefined){var b=$("#column2 #contacts_"+$Contacts.last).prev().attr("objectid");var a=$("#column2 #contacts_"+$Contacts.last).prev().find("a").attr("function_click");$General.processFunction(a,b)}return false}if(c.which==40){if($Contacts.last!==null&&$("#column2 #contacts_"+$Contacts.last).next().attr("objectid")!==undefined){var b=$("#column2 #contacts_"+$Contacts.last).next().attr("objectid");var a=$("#column2 #contacts_"+$Contacts.last).next().find("a").attr("function_click");$General.processFunction(a,b)}return false}})}catch(err){}ABCUMGROUP.Site=function(){this.changeColour=function(b,a){$.facebox.close();$("#OnlinePlatforms-choosecolour-block-"+b).val(a);$("#OnlinePlatforms-fullscreen-preview")[0].changeFontColour(b,a)};this.changeImage=function(e,b,c,a){$.facebox.close();$("#OnlinePlatforms-input-block-"+e).val(b);b="/files/abcumcommerce/sessions/"+c+"/"+a+"/"+b;$("#OnlinePlatforms-fullscreen-preview")[0].changeImage(e,b)}};ABCUMGROUP.Site.prototype={};function __selection(e){if(e===null||e===undefined){e=false}var c=null;var a=null;var b=null;var f=null;var g=null;if($.browser.webkit==true){c=document.getElementById("IFRAME");a=c.contentDocument;if(e){b=a.getSelection().getRangeAt(0)}if(e){f=b.extractContents()}if(e){g=f.textContent}}if($.browser.mozilla==true){c=document.getElementById("IFRAME");a=c.contentDocument;if(e){b=c.contentWindow.getSelection().getRangeAt(0)}if(e){f=b.extractContents()}if(e){g=f.textContent}}if($.browser.ie==true){c=document.getElementById("IFRAME");a=c.contentWindow.document;if(e){b=a.selection.createRange()}if(e){f=b.htmlText}if(e){g=null}}return{iframe:c,object:a,selection:b,contents:f,text:g}}ABCUMGROUP.Templates=function(){this.url=null;this.type=null;this.setup=function(a){$Templates.type=a;if(a=="abcumedit"){$Templates.url="/a/ae/pages"}if(a=="abcummarketing"){$Templates.url="/a/am/mailshots"}$(document).ready(function(){document.execCommand("useCSS",0,false);document.execCommand("styleWithCSS",0,true);document.execCommand("insertBrOnReturn",false,true);document.execCommand("enableObjectResizing",false,true);$("[contenteditable]").bind("paste",function(){var c=$(this).attr("id");setTimeout(function(){$Templates.removeFormatPaste(c)},0)});$("a").die("click").click(function(c){c.preventDefault();return false});var j=[],h=-30;if(a=="abcumedit"){j=[[0,"Bold","bold","","e"],[1,"Italic","italic","","e"],[2,"Underline","underline","","e"],[3,"Strikethrough","strikethrough","","e"],[4,"Insert ordered list","insertorderedlist","","e"],[5,"Insert unordered list","insertunorderedlist","","e"],[6,"Left align","justifyleft","","e"],[7,"Center align","justifycenter","","e"],[8,"Right align","justifyright","","e"],[9,"Justify","justifyfull","","e"],[10,"Insert horizontal line","inserthorizontalrule","","e"],[11,"Change text colour","wizard-text-colour","","w"],[12,"Change text size","wizard-text-size","","w"],[15,"Change font","wizard-text-font","","w"],[16,"Remove formatting","formatting.clean","","t"],[100,"","","","s"],[17,"Insert a trackable link","wizard-text-link","","w"],[18,"Remove links from the selected text","unlink","","e"]]}if(a=="abcummarketing"){j=[[0,"Bold","bold","","e"],[1,"Italic","italic","","e"],[2,"Underline","underline","","e"],[3,"Strikethrough","strikethrough","","e"],[4,"Insert ordered list","insertorderedlist","","e"],[5,"Insert unordered list","insertunorderedlist","","e"],[6,"Left align","justifyleft","","e"],[7,"Center align","justifycenter","","e"],[8,"Right align","justifyright","","e"],[9,"Justify","justifyfull","","e"],[10,"Insert horizontal line","inserthorizontalrule","","e"],[11,"Change text colour","wizard-text-colour","","w"],[12,"Change text size","wizard-text-size","","w"],[15,"Change font","wizard-text-font","","w"],[16,"Remove formatting","formatting.clean","","t"],[100,"","","","s"],[17,"Insert a trackable link","wizard-text-link","","w"],[18,"Remove links from the selected text","unlink","","e"],[100,"","","","s"],[19,"Insert a Facebook Like button","inserthtml","[post_facebook]","e"],[20,"Insert a Twitter tweet button","inserthtml","[post_twitter]","e"],[22,"Insert a Google Buzz share button","inserthtml","[post_buzz]","e"],[21,"Insert a LinkedIn share button","inserthtml","[post_linkedin]","e"]]}for(i=0;i<j.length;i++){var m=j[i];var e=false;var k=m[0];var l=m[1];var b="0px "+k*h+"px;";var g=m[2];var f=m[3];if(m[4]=="e"){var n="document.execCommand('"+g+"', false, '"+f+"'); return false;"}if(m[4]=="t"){var n="$Templates."+g+"();"}if(m[4]=="w"){var n="window.parent.$.facebox({ ajax: '"+$Templates.url+"/"+g+"/' });"}if(m[0]<=3){titleorientation="titlese"}else{if(m[0]<=18){titleorientation="titledown"}else{titleorientation="titlesw"}}if(m[4]=="s"){$("#Template-buttonbar").append('<div class="Template-buttonbar-spacer"></div>')}else{$("#Template-buttonbar").append('<a href="#" class="Template-buttonbar-button" style="background-position:'+b+'" '+titleorientation+'="'+l+'" onclick="'+n+'"></a>')}}$(".Template-sections").sortable({cursor:"move",revert:true,cancel:".OnlinePlatforms-editable-text, .OnlinePlatforms-editable-image",handle:".Template-section-dragdrop",placeholder:"Tempate-section-gap",forcePlaceholderSize:true,opacity:0.6})})};this.formatting={};this.formatting.clean=function(){window.parent.$General.dialogAccept("This will remove all links and revert the formatting to the default style for the entire textbox. Would you like to continue?",function(){var c=window.getSelection().anchorNode;try{var a=$(c).closest(".OnlinePlatforms-editable-text").html().replace(/<style[^>]*>[^<]*<\/style>/gi,"").replace(/<script[^>]*>[^<]*<\/script>/gi,"").replace(/<(?!\s*\/?\s*br\b)[^>]*>/gi,"").replace(/^(?:<br\s*\/?>\s*)+/gi,"").replace(/[^\x00-\x7f]/gi,"");$(c).closest(".OnlinePlatforms-editable-text").html(a)}catch(b){}return false})};this.formatting.paste=function(e){var c=window.getSelection().anchorNode;try{var a=$(c).closest(".OnlinePlatforms-editable-text").html().replace(/<style[^>]*>[^<]*<\/style>/gi,"").replace(/<script[^>]*>[^<]*<\/script>/gi,"").replace(/<(?!\s*\/?\s*br\b)[^>]*>/gi,"").replace(/^(?:<br\s*\/?>\s*)+/gi,"").replace(/[^\x00-\x7f]/gi,"");$(c).closest(".OnlinePlatforms-editable-text").html(a)}catch(b){}};this.text={};this.text.colour=function(b){var a=__selection();a.object.execCommand("forecolor",false,b);$.facebox.close()};this.text.size=function(a){var b=__selection(true);var c=b.object.createElement("span");c.style.fontSize=a+"pt";c.appendChild(b.contents);b.selection.insertNode(c);$.facebox.close();$Editing.editing=true};this.text.font=function(a){var b=__selection();b.object.execCommand("fontname",false,a);$.facebox.close()};this.text.link=function(e,a){e=encodeURI(e);a=encodeURI(a);if(a==""||a=="http://"||a=="https://"){$General.growl("Notice","Please make sure the url for this link is correct. Make sure you have entered the entire url into the textbox.");return false}var b=__selection(true);b.object.execCommand("unlink",false,null);var c=b.object.createElement("a");c.href=a;c.title=e;c.appendChild(b.contents);b.selection.insertNode(c);$.facebox.close();$Editing.editing=true};this.text.removelink=function(){var a=__selection();a.object.execCommand("unlink",false,null);$Editing.editing=true};this.images={};this.images.select=function(b,a){$("#IFRAME").contents().find("#"+b).attr("src",a);$.facebox.close()};this.images.link=function(b,c,a){if(a=="http://"||a=="https://"){$General.growl("Notice","Please make sure the url for this link is correct. Make sure you have entered the entire url into the textbox.");return false}a=encodeURI(a);if(b=="abcumedit"){parent.$Pages.imagelink(parent.$Pages.last,c,a)}if(b=="abcummarketing"){parent.$Mailshots.imagelink(parent.$Mailshots.last,c,a)}$.facebox.close();$Editing.editing=true};this.variables={};this.variables.select=function(a){if(a=="qr_small"||a=="qr_medium"||a=="qr_large"){$("#DataFields-extra").show(0,function(){$("#DataFields-extra-normal").hide();$("#DataFields-extra-qr").show()})}else{if(a=="post_facebook"||a=="post_twitter"||a=="post_linkedin"||a=="post_buzz"){$("#DataFields-extra").hide()}else{$("#DataFields-extra").show(0,function(){$("#DataFields-extra-normal").show();$("#DataFields-extra-qr").hide()})}}};this.variables.insert=function(a,e){var b="";var b=b+"[";var b=b+a;if(e){var b=b+"|";var b=b+e}var b=b+"]";var c=__selection();if(c.object.execCommand("inserthtml",false,b)){$.facebox.close()}else{$General.growl("Notice","Please select the place in the mailshot text where you would like the variable to be placed.");$.facebox.close()}$Editing.editing=true};this.sections={};this.sections.select=function(a,b){$("#IFRAME").contents().find("#Template-sections").prepend('<div class="OnlinePlatforms-section">'+b+"</div>");if(a=="abcumedit"){parent.$Pages.saveedit(parent.$Pages.last)}if(a=="abcummarketing"){parent.$Mailshots.saveedit(parent.$Mailshots.last)}$.facebox.close()}};ABCUMGROUP.Templates.prototype={};ABCUMMARKETING.Contacts=function(){this.last=0;this.lastindex=null;this.lastdeleteindex=null;this.groupslast=0;this.create=function(){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/am/contacts/edit/0/"})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column2"){$Deleting.select("#contacts_"+a);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$General.click('Save_Button');";$("#column2 li.selected").removeClass("selected");$("#column2 #contacts_"+a).addClass("selected");$("#section").reload({page:"/am/contacts/view/"+a+"/"});$Contacts.last=a;$Contacts.lastindex=$("#column2 #contacts_"+a).index()})})};this.edit=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$Editing.save="$General.click('Save_Button');";$("#section").reload({page:"/am/contacts/edit/"+a+"/"});$Contacts.last=a})};this.save=function(a){};this.loadmore=function(a){$Loading.check(function(){lastObjectID=$("#column2 .contact-normal:last").attr("mysqlpull");if(a>lastObjectID){$Loading.loading=true;var b="";b=b+'<li class="contact_contact_more" id="loadmoreSpinner">';b=b+'<a href="#">';b=b+'<center><strong>&nbsp;<img src="/img/loaders/small.gif" style="vertical-align:middle;" />&nbsp;</strong></center>';b=b+"</a>";b=b+"</li>";$("#column2 .Abcum-list").append(b);$.post("/am/contacts/list/"+$Contacts.groupslast+"_"+lastObjectID+"/-/nocontainer=true",function(c){if(c!=""){$("#column2 .Abcum-list").append(c).initialise();$("#loadmoreSpinner").remove()}$Loading.loading=false})}})};this.unsubscribe=function(a){$.get("/am/contacts/email_unsubscribe/id="+a,function(){$Contacts.select(a)})};this.resubscribe=function(a){$.get("/am/contacts/email_resubscribe/id="+a,function(){$Contacts.select(a)})};this.remove=function(b){var a={};a[b]=b;$.post("/a/am/contacts/delete/",a,function(){$Contacts.groups.select("0")})};this.activity=function(a){$("#contacts-activity").load("/a/am/contacts/section-activity/"+a+"/")};this.groups={};this.groups.create=function(){$(document).ready(function(){$("#section").reload({page:"/am/groups/edit/0/"})})};this.groups.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#groups_"+a);return null}if($Deleting.deleting){return null}$("#column1 li.selected").removeClass("selected");$("#column1 #groups_"+a).addClass("selected");if(parseInt(a)==a&&a!="0"){$("#section").reload({page:"/a/am/groups/view/"+a+"/"})}else{$("#section").reload({page:"/a/am/contacts/default/"})}$("#column2").reload({page:"/am/contacts/list/"+a+"/"});a=a.split("_");$Contacts.groupslast=a[0]})};this.groups.edit=function(a){$(document).ready(function(){if($Contacts.deleting){$Contacts.groups.selectDelete(a);return null}$("#section").reload({page:"/a/am/groups/edit/"+a+"/"});$Contacts.groupslast=a})};this.groups.save=function(a){$(document).ready(function(){var b=$("#column1 #groups_"+a).find("#editor").val().trim();$("#load").load("/a/am/groups/save/"+a+"/");$("#column1 #groups_"+a).find("#tick").remove();$("#column1 #groups_"+a).find("#editor").fadeOut(function(){$("#column1 #groups_"+a).find(".added").remove();$("#column1 #groups_"+a).find("a").text(b);$("#column1 #groups_"+a).find("a").fadeIn()});$Contacts.groupslast=a})};this.groups.quickcreate=function(a,c,b){$(document).ready(function(){var e=prompt($Language.get("Choose a name for this group:"),b);a=a.urlencode();c=c.urlencode();e=e.urlencode();$("#load").load("/a/am/groups/quickcreate/0/-/quickcreatetype="+a+"&quickcreateid="+c+"&quickcreatename="+e);$General.growl($Language.get("Group"),$Language.get("The group was created successfully."))})};this.groups.add_rule=function(){var b=document.getElementById("templateGroupRule").cloneNode(true);b.id="";b.style.display="";var a=document.getElementById("smartgrouprule_position");a.parentNode.insertBefore(b,a)};this.groups.del_rule=function(a){var b=a.parentNode.parentNode;$(b).remove()};this.groups.change_rule=function(a){var c=a.value;if(c>=100&&c<200){$(a).parent().find(".operand").html($("#operand-input").html());$(a).parent().find(".rule2 option[value='1']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='2']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='3']").attr("selected","selected");$(a).parent().find(".rule2 option[value='4']").attr("disabled","disabled");$(a).parent().find(".placer").html($("#selector-mailshot").html())}else{if(c>=200&&c<300){$(a).parent().find(".operand").html($("#operand-input").html());$(a).parent().find(".rule2 option[value='1']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='2']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='3']").attr("selected","selected");$(a).parent().find(".rule2 option[value='4']").attr("disabled","disabled");$(a).parent().find(".placer").html($("#selector-print").html())}else{if(c>=300&&c<400){$(a).parent().find(".operand").html($("#operand-input").html());$(a).parent().find(".rule2 option[value='1']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='2']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='3']").attr("selected","selected");$(a).parent().find(".rule2 option[value='4']").attr("disabled","disabled");$(a).parent().find(".placer").html($("#selector-link").html())}else{if(c>=400&&c<500){$(a).parent().find(".operand").html($("#operand-input").html());$(a).parent().find(".rule2 option[value='1']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='2']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='3']").attr("selected","selected");$(a).parent().find(".rule2 option[value='4']").attr("disabled","disabled");$(a).parent().find(".placer").html($("#selector-message").html())}else{if(c>=1000&&c<1100){var b=$General.uniqid();$(a).parent().find(".operand").html($("#operand-map").html());$(a).parent().find(".rulesvalue").attr("id","rulesvalue-map"+b);$(a).parent().find(".radiusinputmi").attr("id","radiusinputmi-map"+b);$(a).parent().find(".radiusinputkm").attr("id","radiusinputkm-map"+b);$(".mapdiv").attr("id","map"+b);$(a).parent().find(".placer").html($("#selector-map").html());$("#map"+b).removeAttr("class");$(".mapdiv").removeAttr("id");$Contacts.maps.pinpoint("map"+b,GEO_LAT,GEO_LAT)}else{if(c>=10000){$(a).parent().find(".operand").html($("#operand-input").html());$(a).parent().find(".rule2 option[value='1']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='2']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='3']").attr("selected","selected");$(a).parent().find(".rule2 option[value='4']").attr("disabled","disabled");$(a).parent().find(".placer").html($("#selector-input").html())}else{if(c==30){$(a).parent().find(".operand").html($("#operand-time").html());$(a).parent().find(".rule2 option[value='1']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='2']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='3']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='4']").attr("disabled","disabled");$(a).parent().find(".rule2 option[value='6']").attr("selected","selected");$(a).parent().find(".placer").html($("#selector-time").html())}else{$(a).parent().find(".operand").html($("#operand-input").html());$(a).parent().find(".rule2 option[value='1']").removeAttr("disabled");$(a).parent().find(".rule2 option[value='2']").removeAttr("disabled");$(a).parent().find(".rule2 option[value='3']").removeAttr("disabled");$(a).parent().find(".rule2 option[value='4']").removeAttr("disabled");$(a).parent().find(".rule2 option[value='1']").attr("selected","selected");$(a).parent().find(".placer").html($("#selector-input").html())}}}}}}}};this.additions={};this.additions.archive=function(a){$.facebox.close();$.get("/a/am/contacts/delete-datafield/"+a+"/",function(){$Contacts.select($Contacts.last)})};this.maps={};this.googlemaps={};this.googlemapmarker=new Array();this.googlemapcircle=new Array();this.googlemaplocation=new Array();this.maps.show=function(h,g,c,a){try{var b={zoom:15,mapTypeId:google.maps.MapTypeId.ROADMAP,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}};$Contacts.googlemaps[h]=new google.maps.Map(document.getElementById(h),b);if(g&&c){$Contacts.maps.mark_location(h,g,c)}else{if(a){$Contacts.maps.mark_address(h,a)}}}catch(f){}};this.maps.mark_location=function(h,g,c){try{var b=new google.maps.LatLng(g,c);$Contacts.googlemaplocation[h]=b;$Contacts.googlemaps[h].setCenter($Contacts.googlemaplocation[h]);var a=new google.maps.Marker({map:$Contacts.googlemaps[h],position:$Contacts.googlemaplocation[h]})}catch(f){}};this.maps.mark_address=function(f,a){try{var b=new google.search.LocalSearch();b.setSearchCompleteCallback(null,function(){if(b.results[0]){var g=b.results[0].lat;var j=b.results[0].lng;var h=new google.maps.LatLng(g,j);$Contacts.googlemaplocation[f]=h;$Contacts.googlemaps[f].setCenter($Contacts.googlemaplocation[f]);var e=new google.maps.Marker({map:$Contacts.googlemaps[f],position:$Contacts.googlemaplocation[f]})}});b.execute(a)}catch(c){}};this.maps.resize=function(){try{if($Contacts.googlemaps){for(map in $Contacts.googlemaps){google.maps.event.trigger($Contacts.googlemaps[map],"resize");$Contacts.googlemaps[map].setZoom($Contacts.googlemaps[map].getZoom());$Contacts.googlemaps[map].setCenter($Contacts.googlemaplocation[map])}}}catch(a){}};this.maps.pinpoint=function(h,g,c){try{$("#radiusinputmi-"+h).unbind("change").bind("change",function(){$Contacts.maps.convert_mi_2_km(h);$Contacts.maps.marker(h)}).unbind("blur").bind("blur",function(){$Contacts.maps.convert_mi_2_km(h);$Contacts.maps.marker(h)}).unbind("keyup").bind("keyup",function(){$Contacts.maps.convert_mi_2_km(h);$Contacts.maps.marker(h)});$("#radiusinputkm-"+h).unbind("change").bind("change",function(){$Contacts.maps.convert_km_2_mi(h);$Contacts.maps.marker(h)}).unbind("blur").bind("blur",function(){$Contacts.maps.convert_km_2_mi(h);$Contacts.maps.marker(h)}).unbind("keyup").bind("keyup",function(){$Contacts.maps.convert_km_2_mi(h);$Contacts.maps.marker(h)});$Contacts.googlemapcircle[h]=null;var a={zoom:3,mapTypeId:google.maps.MapTypeId.ROADMAP,disableDoubleClickZoom:true,streetViewControl:false,mapTypeControl:true,mapTypeControlOptions:{style:google.maps.MapTypeControlStyle.DROPDOWN_MENU}};$Contacts.googlemaps[h]=new google.maps.Map(document.getElementById(h),a);var b=new google.maps.LatLng(g,c);$Contacts.googlemaplocation[h]=b;$Contacts.googlemaps[h].setCenter($Contacts.googlemaplocation[h]);$Contacts.googlemapmarker[h]=new google.maps.Marker({position:$Contacts.googlemaplocation[h],map:$Contacts.googlemaps[h],title:"Drag Me",draggable:true});$Contacts.maps.marker(h);google.maps.event.addListener($Contacts.googlemapmarker[h],"dragend",function(e){$Contacts.maps.marker(h)})}catch(f){}};this.maps.marker=function(b){try{$Contacts.googlemapmarker[b].setPosition($Contacts.googlemapmarker[b].position);$Contacts.googlemaps[b].panTo($Contacts.googlemapmarker[b].position);$Contacts.googlemaplocation[b]=$Contacts.googlemapmarker[b].position;$Contacts.maps.markerradius(b);$("#rulesvalue-"+b).val($Contacts.googlemaplocation[b].lat().toFixed(5)+","+$Contacts.googlemaplocation[b].lng().toFixed(5))}catch(a){}};this.maps.markerradius=function(c){try{var b=$("#radiusinputmi-"+c).val();if($Contacts.googlemapcircle[c]!=null){$Contacts.googlemapcircle[c].setMap(null)}if(b>0){b*=1609.344;$Contacts.googlemapcircle[c]=new google.maps.Circle({center:$Contacts.googlemapmarker[c].position,radius:b,strokeColor:"#0000FF",strokeOpacity:0.35,strokeWeight:2,fillColor:"#0000FF",fillOpacity:0.2,map:$Contacts.googlemaps[c]})}}catch(a){}};this.maps.convert_mi_2_km=function(b){var a=document.getElementById("radiusinputmi-"+b).value;if(!a){document.getElementById("radiusinputkm-"+b).value=null;return null}document.getElementById("radiusinputkm-"+b).value=$Contacts.maps.round_decimals(parseFloat(a)*(1/0.621371192),2)};this.maps.convert_km_2_mi=function(b){var a=document.getElementById("radiusinputkm-"+b).value;if(!a){document.getElementById("radiusinputmi-"+b).value=null;return null}document.getElementById("radiusinputmi-"+b).value=$Contacts.maps.round_decimals(parseFloat(a)*0.621371192,2)};this.maps.round_decimals=function(f,a){var e=f*Math.pow(10,a);var c=Math.round(e);var b=c/Math.pow(10,a);return $Contacts.maps.pad_with_zeros(b,a)};this.maps.pad_with_zeros=function(a,c){var f=a.toString();var g=f.indexOf(".");if(g==-1){decimal_part_length=0;f+=c>0?".":""}else{decimal_part_length=f.length-g-1}var e=c-decimal_part_length;if(e>0){for(var b=1;b<=e;b++){f+="0"}}return f};this.spreadsheet={};this.spreadsheet.importer={};this.spreadsheet.exporter={};this.spreadsheet.importer.start=function(){$.facebox.boxy("/a/am/contacts/spreadsheet-import/1/")};this.spreadsheet.importer.upload=function(){$Loading.show();$General.click("Continue_Button")};this.spreadsheet.exporter.start=function(a){$.facebox.boxy("/a/am/contacts/spreadsheet-export/"+a+"/")};this.multiple={};this.selectMultiple=function(a){$(document).ready(function(){if($Deleting.deleting){$Contacts.selectDeleteMultiple(a);return null}$("#section").reload({page:"/a/am/contacts/multiple/"});$Editing.save="$General.click('Save_Button');";$Editing.check(function(){if(isShift){var b=$("#column2 #contacts_"+a).index();if($Contacts.lastindex<b){$("#column2 li:lt("+(b+1)+"):gt("+($Contacts.lastindex)+")").addClass("selected")}else{if(b==0){$("#column2 li:lt("+($Contacts.lastindex)+"):gt("+(b)+")").addClass("selected");$("#column2 #contacts_"+a).addClass("selected")}else{$("#column2 li:lt("+($Contacts.lastindex)+"):gt("+(b-1)+")").addClass("selected")}}}else{if(isCmd){var b=$("#column2 #contacts_"+a).index();$("#column2 #contacts_"+a).addClass("selected")}}})})};this.selectDeleteMultiple=function(a){$(document).ready(function(){$General.growl("Deleting multiple contacts","Please select multiple contacts before pressing the delete button.")})};this.multiple.save=function(){$(document).ready(function(){$Editing.editing=false;var a=null;var b={};b.contacts={};b.fields={};b.title=$("#panel").find("#multiple-addition-title").val();b.company=$("#panel").find("#multiple-addition-company").val();b.department=$("#panel").find("#multiple-addition-department").val();b.jobtitle=$("#panel").find("#multiple-addition-jobtitle").val();$(".multiple-addition-custom").each(function(){a=$(this).attr("id").replace("multiple-addition-custom","");value=$(this).val();if(value!=""){b.fields[a]=value}});$("#column2 .selected").each(function(){b.contacts[$(this).attr("objectid")]=$(this).attr("objectid")});$.post("/a/am/contacts/multiple/",b,function(){$("#section").reload({page:"/a/am/contacts/multiple/"})})})};this.multiple.removeElements=function(a){$(document).ready(function(){var b={};b.contacts={};$("#column2 .selected").each(function(){b.contacts[$(this).attr("objectid")]=$(this).attr("objectid")});$.post("/a/am/contacts/delete-multiple/"+a+"/",b,function(){$General.growl($Language.get("Remove all "+a),$Language.get("All of the "+a+" have been removed from the selected contacts."))})})};this.multiple.addElements=function(a){$(document).ready(function(){var b={};b.contacts={};b.value=$("#multiple-addition-value").val();$("#column2 .selected").each(function(){b.contacts[$(this).attr("objectid")]=$(this).attr("objectid")});$.post("/a/am/contacts/multiple-"+a+"/",b,function(){$.facebox.close();$General.growl($Language.get("Add "+a.replace("s","")),$Language.get("The "+a.replace("s","")+" has been added to the selected contacts."))})})};this.details={};this.details.remove=function(a,c,b){$(a).remove();$.get("/a/am/contacts/delete-"+b+"/"+c+"/")};this.details.complete=function(a,c,b){$(a).find("input").attr("disabled","true");$.get("/a/am/contacts/complete-"+b+"/"+c+"/")};this.details.add_email=function(){var b=document.getElementById("templateEmail").cloneNode(true);b.id="";b.style.display="";var a=document.getElementById("email_position");a.parentNode.insertBefore(b,a)};this.details.del_email=function(a){var f=a.parentNode.parentNode;var c=f.getElementsByTagName("*");for(var b=0;b<c.length;b++){var e=c[b].name;if(e&&e.indexOf("email_del")!=-1){c[b].value=1}}f.style.display="none"};this.details.add_im=function(){var b=document.getElementById("templateIm").cloneNode(true);b.id="";b.style.display="";var a=document.getElementById("im_position");a.parentNode.insertBefore(b,a)};this.details.del_im=function(a){var f=a.parentNode.parentNode;var c=f.getElementsByTagName("*");for(var b=0;b<c.length;b++){var e=c[b].name;if(e&&e.indexOf("im_del")!=-1){c[b].value=1}}f.style.display="none"};this.details.add_webpage=function(){var b=document.getElementById("templateWebpage").cloneNode(true);b.id="";b.style.display="";var a=document.getElementById("webpage_position");a.parentNode.insertBefore(b,a)};this.details.del_webpage=function(a){var f=a.parentNode.parentNode;var c=f.getElementsByTagName("*");for(var b=0;b<c.length;b++){var e=c[b].name;if(e&&e.indexOf("webpage_del")!=-1){c[b].value=1}}f.style.display="none"};this.details.add_phone=function(){var b=document.getElementById("templatePhone").cloneNode(true);b.id="";b.style.display="";var a=document.getElementById("phone_position");a.parentNode.insertBefore(b,a)};this.details.del_phone=function(a){var f=a.parentNode.parentNode;var c=f.getElementsByTagName("*");for(var b=0;b<c.length;b++){var e=c[b].name;if(e&&e.indexOf("phone_del")!=-1){c[b].value=1}}f.style.display="none"};this.details.add_address=function(){var b=document.getElementById("templateAddress").cloneNode(true);b.style.display="";b.id="";var a=document.getElementById("address_position");a.parentNode.insertBefore(b,a)};this.details.del_address=function(a){var f=a.parentNode.parentNode;var c=f.getElementsByTagName("*");for(var b=0;b<c.length;b++){var e=c[b].name;if(e&&e.indexOf("address_del")!=-1){c[b].value=1}}f.style.display="none"}};ABCUMMARKETING.Contacts.prototype={};ABCUMMARKETING.Forms=function(){this.last=0;this.groupslast=0;this.deleting=false;this.create=function(){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/am/forms/edit/0/"})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#forms_"+a);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Forms.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #forms_"+a).addClass("selected");$("#section").reload({page:"/a/am/forms/view/"+a+"/"});$Forms.last=a})})};this.edit=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$Editing.save="$Forms.save('"+a+"');";$Editing.check(function(){$("#section").reload({page:"/a/am/forms/edit/"+a+"/"});$Forms.last=a})})};this.save=function(a){};this.elements={};this.elements.toggle=function(b,a){$(document).ready(function(){if(a=="on"){$(b).slideDown()}else{$(b).slideUp()}})};this.extras={};this.elements.click=function(b,a){$(document).ready(function(){if(a=="on"){$(b).slideDown()}else{$(b).slideUp()}})};this.elements.toggle=function(a){$(document).ready(function(){$(a).toggle()})}};ABCUMMARKETING.Forms.prototype={};ABCUMMARKETING.Mailshots=function(){this.last=0;this.groupslast=0;this.create=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/a/am/mailshots/new/"})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#mailshots_"+a);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Mailshots.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #mailshots_"+a).addClass("selected");$("#section").reload({page:"/a/am/mailshots/view/"+a+"/"});$Mailshots.last=a})})};this.edit=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Mailshots.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #mailshots_"+a).addClass("selected");$("#section").reload({page:"/a/am/mailshots/edit/"+a+"/"});$Mailshots.last=a})})};this.save=function(a){$(document).ready(function(){$Editing.editing=false;var e=0;var c={};c.text={};c.images={};c.sections={};$("#IFRAME").contents().find(".OnlinePlatforms-tagline").each(function(){c.text["contenttagline"]=$(this).html();e++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text").each(function(){c.text["content"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image").each(function(){c.images["contentimage"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-section").each(function(){c.sections[b]=$(this).html();e++;b++});c.subject=$("#ABCUMMARKETING-subject").val().trim();if(e<1){$Mailshots.select(a);return null}$.post("/a/am/mailshots/save/"+a+"/",c,function(){$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.select(a)})})})};this.saveedit=function(a){$(document).ready(function(){if(!a){a=$Mailshots.last}$Editing.editing=false;var e=0;var c={};c.text={};c.images={};c.sections={};$("#IFRAME").contents().find(".OnlinePlatforms-tagline").each(function(){c.text["contenttagline"]=$(this).html();e++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text").each(function(){c.text["content"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image").each(function(){c.images["contentimage"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-section").each(function(){c.sections[b]=$(this).html();e++;b++});c.subject=$("#ABCUMMARKETING-subject").val().trim();$.post("/a/am/mailshots/save/"+a+"/",c,function(){$Mailshots.edit(a)})})};this.send=function(b,a){$(document).ready(function(){var c={};c.sendtime=a;$.post("/a/am/mailshots/send/"+b+"/",c,function(e){$.facebox.close();$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.select(b)})})})};this.cancel=function(a){$(document).ready(function(){$.get("/a/am/mailshots/cancel/"+a+"/",function(b){$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.select(a)})})})};this.replicate=function(a){$(document).ready(function(){$.get("/a/am/mailshots/replicate/"+a+"/",function(b){$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.select(b)})})})};this.imagelink=function(c,b,a){$(document).ready(function(){var e={};e.image_id=b;e.image_href=a;$.post("/a/am/mailshots/wizard-images-link/"+c+"/",e,function(){})})};this.contacts={};this.contacts.select=function(a){$(document).ready(function(){var b={};$(".contact_checkbox:checked").each(function(){var c=$(this).attr("id");b[c]=c});$.post("/a/am/mailshots/section-recipients/"+a+"/",b,function(){$.facebox.close()})})};this.maps={};this.googlemaps={};this.googlemapsbounds={};this.maps.show=function(h,g,c){try{if(!g&&!c){g=39.909736;c=-4.570312}$Mailshots.googlemapsbounds[h]=[];var b=new google.maps.LatLng(g,c);var a={zoom:3,center:b,mapTypeId:google.maps.MapTypeId.TERRAIN};$Mailshots.googlemaps[h]=new google.maps.Map(document.getElementById(h),a)}catch(f){}};this.maps.mark=function(h,g,c){try{var b=new google.maps.LatLng(g,c);$Mailshots.googlemapsbounds[h][$Mailshots.googlemapsbounds[h].length]=b;var a=new google.maps.Marker({map:$Mailshots.googlemaps[h],position:b})}catch(f){}};this.maps.resize=function(){try{if($Mailshots.googlemaps){for(map in $Mailshots.googlemaps){google.maps.event.trigger($Mailshots.googlemaps[map],"resize");$Mailshots.googlemaps[map].setZoom($Mailshots.googlemaps[map].getZoom());$Mailshots.googlemaps[map].setCenter(new google.maps.LatLng(39.909736,-4.570312));var c=new google.maps.LatLngBounds();for(var a=0;a<$Mailshots.googlemapsbounds[map].length;a++){c.extend($Mailshots.googlemapsbounds[map][a])}$Mailshots.googlemaps[map].setCenter(c.getCenter());$Mailshots.googlemaps[map].fitBounds(c)}}}catch(b){}};this.graphs={};this.graphs.select=function(a){$(document).ready(function(){$("#list-graphs li.selected").removeClass("selected");$("#list-graphs #graphs_"+a).addClass("selected");$("#mailshot-graphs-content").load("/a/am/mailshots/graph/"+$Mailshots.last+"/-/type="+a)})};this.templates={};this.templates.select=function(a){$(document).ready(function(){$.get("/a/am/mailshots/create/"+a+"/",function(b){$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.edit(b)})})})}};ABCUMMARKETING.Mailshots.prototype={};ABCUMMARKETING.Messages=function(){this.last=0;this.groupslast=0;this.create=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$.get("/a/am/messages/create/",function(b){$("#column1").reload({page:"/a/am/messages/list/0/"},function(){$Messages.edit(b)})})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#messages_"+a);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Messages.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #messages_"+a).addClass("selected");$("#section").reload({page:"/a/am/messages/view/"+a+"/"});$Messages.last=a})})};this.edit=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$Editing.save="$Messages.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #messages_"+a).addClass("selected");$("#section").reload({page:"/a/am/messages/edit/"+a+"/"},function(){$Messages.check()});$Messages.last=a})};this.save=function(a){$(document).ready(function(){$Editing.editing=false;var b={};b.message=$("#AbcumGroup-message-editor-text_one").val().trim();$.post("/a/am/messages/save/"+a+"/",b,function(){$("#column1").reload({page:"/a/am/messages/list/0/"},function(){$Messages.select(a)})})})};this.send=function(b,a){$(document).ready(function(){var c={};c.sendtime=a;$.post("/a/am/messages/send/"+b+"/",c,function(e){$.facebox.close();$("#column1").reload({page:"/a/am/messages/list/0/"},function(){$Messages.select(b)})})})};this.replicate=function(a){$(document).ready(function(){$.get("/a/am/messages/replicate/"+a+"/",function(b){$("#column1").reload({page:"/a/am/messages/list/0/"},function(){$Messages.select(b)})})})};this.contacts={};this.contacts.select=function(a){$(document).ready(function(){var b={};$(".contact_checkbox:checked").each(function(){var c=$(this).attr("id");b[c]=c});$.post("/a/am/messages/section-recipients/"+a+"/",b,function(){$.facebox.close()})})};this.check=function(){$(document).ready(function(){var g=$("#AbcumGroup-message-editor-text_one").attr("maxlength");var f=$("#AbcumGroup-message-editor-text_one").val().length;var c=$("#AbcumGroup-message-editor-text_two").val().length;var a=f+c;var e=0;if(a<=160){e=1}if(a>160){e=2}if(a>153*2){e=3}if(a>153*3){e=4}if(a>153*4){e=5}var b="";if(e!=1){b="s"}$("#AbcumGroup-messages-charactercount").html(a+" characters - "+e+" message"+b);if(a>g){$("#AbcumGroup-message-editor-text_one").val($("#AbcumGroup-message-editor-text_one").val().substring(0,g))}})};this.insertVariable=function(a){var b=$("#AbcumGroup-message-editor-text_one").val();if(b.length>0){$("#AbcumGroup-message-editor-text_one").val(b+" "+a)}else{$("#AbcumGroup-message-editor-text_one").val(a)}$.facebox.close();$Editing.editing=true}};ABCUMMARKETING.Messages.prototype={};ABCUMMARKETING.Prints=function(){this.last=0;this.groupslast=0;this.pagenumber=1;this.selectedfield=null;this.create=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/a/am/prints/new/"})})};this.select=function(b,a){if(a===undefined||a===null){a=1}$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#prints_"+b);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Prints.save('"+b+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #prints_"+b).addClass("selected");$("#section").reload({page:"/a/am/prints/view/"+b+"/-/pagenumber="+a});$Prints.last=b})})};this.edit=function(b,a){if(a===undefined||a===null){a=1}$(document).ready(function(){if($Deleting.deleting){return null}$Editing.save="$Prints.save('"+b+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #prints_"+b).addClass("selected");$("#section").reload({page:"/a/am/prints/edit/"+b+"/-/pagenumber="+a});$Prints.last=b})};this.save=function(a){$(document).ready(function(){$Editing.editing=false;$Editing.editing=false;var e=0;var c={};c.text={};c.images={};$("#IFRAME").contents().find(".ABCUMEFFECT-tagline").each(function(){c.text["contenttagline"]=$(this).html();e++});var b=1;$("#IFRAME").contents().find(".ABCUMEFFECT-text").each(function(){c.text["content"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".ABCUMEFFECT-image").each(function(){c.images["contentimage"+b]=$(this).attr("src");e++;b++});c.subject=$("#mailshot-subject").val().trim();if(e<1){$Mailshots.select(a);return null}$.post("/a/am/mailshots/save/"+a+"/",c,function(){$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.select(a)})})})};this.send=function(b,a){$(document).ready(function(){var c={};c.sendtime=a;$.post("/a/am/prints/send/"+b+"/",c,function(e){$.facebox.close();$("#column1").reload({page:"/a/am/prints/list/0/"},function(){$Prints.select(b)})})})};this.replicate=function(a){$(document).ready(function(){$.get("/a/am/prints/replicate/"+a+"/",function(b){$("#column1").reload({page:"/a/am/prints/list/0/"},function(){$Prints.select(b)})})})};this.contacts={};this.contacts.select=function(a){$(document).ready(function(){var b={};$(".contact_checkbox:checked").each(function(){var c=$(this).attr("id");b[c]=c});$.post("/a/am/prints/section-recipients/"+a+"/",b,function(){$.facebox.close()})})};this.templates={};this.templates.select=function(a){$(document).ready(function(){$.get("/a/am/prints/create/"+a+"/",function(b){$("#column1").reload({page:"/a/am/prints/list/0/"},function(){$Prints.edit(b)})})})}};ABCUMMARKETING.Prints.prototype={};ABCUMMARKETING.Campaigns=function(){this.last=0;this.groupslast=0;this.create=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/a/am/campaigns/new/"})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#mailshots_"+a);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Campaigns.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #campaigns_"+a).addClass("selected");$("#section").reload({page:"/a/am/campaigns/view/"+a+"/"});$Campaigns.last=a})})};this.edit=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Campaigns.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #campaigns_"+a).addClass("selected");$("#section").reload({page:"/a/am/campaigns/edit/"+a+"/"});$Campaigns.last=a})})};this.save=function(a){$(document).ready(function(){$Editing.editing=false;var e=0;var c={};c.text={};c.images={};c.sections={};$("#IFRAME").contents().find(".OnlinePlatforms-tagline").each(function(){c.text["contenttagline"]=$(this).html();e++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text").each(function(){c.text["content"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image").each(function(){c.images["contentimage"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-section").each(function(){c.sections[b]=$(this).html();e++;b++});c.subject=$("#ABCUMMARKETING-subject").val().trim();if(e<1){$Mailshots.select(a);return null}$.post("/a/am/mailshots/save/"+a+"/",c,function(){$("#column1").reload({page:"/a/am/mailshots/list/0/"},function(){$Mailshots.select(a)})})})}};ABCUMMARKETING.Campaigns.prototype={};ABCUMCOMMERCE.Items=function(){this.last=0;this.sectionlast="section-details";this.categorieslast=0;this.categoriessectionlast="section-details";this.create=function(){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/ac/items/view/0/"},function(){$Items.selectsection("section-details","0")})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column2"){$Deleting.select("#items_"+a);return null}if($Deleting.deleting){return null}$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column2 li.selected").removeClass("selected");$("#column2 #items_"+a).addClass("selected");$("#section").reload({page:"/ac/items/view/"+a+"/"},function(){$Items.selectsection($Items.sectionlast,a);if($("#panel").width()<=900){$(".flex").animate({height:$(".flex").attr("toggleheight")+"px"},0,"swing");$("#panel").animate({top:$(".flex").attr("toggleheight")+"px"},0,"swing")}});$Items.last=a})})};this.selectsection=function(a,b){$(document).ready(function(){$Editing.check(function(){if(b){$Items.last=b}$("#panel").reload({page:"/ac/items/"+a+"/"+$Items.last+"/"});$Items.sectionlast=a})})};this.save=function(a){};this.loadmore=function(a){$Loading.check(function(){lastObjectID=$("#column2 li:last").attr("mysqlpull");if(a>lastObjectID){$Loading.loading=true;var b="";b=b+'<li class="contact_contact_more" id="loadmoreSpinner">';b=b+'<a href="#">';b=b+'<center><strong>&nbsp;<img src="/img/loaders/small.gif" style="vertical-align:middle;" />&nbsp;</strong></center>';b=b+"</a>";b=b+"</li>";$("#column2 .Abcum-list").append(b);$.post("/ac/items/list/"+$Items.categorieslast+"_"+lastObjectID+"/-/nocontainer=true",function(c){if(c!=""){$("#column2 .Abcum-list").append(c).initialise();$("#loadmoreSpinner").remove()}$Loading.loading=false})}})};this.categories={};this.categories.create=function(){$(document).ready(function(){$("#section").reload({page:"/ac/categories/view/0/"},function(){$("#column1 li.selected").removeClass("selected");$Items.categories.selectsection("section-details","0")})})};this.categories.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#categories_"+a);return null}if($Deleting.deleting){return null}$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #categories_"+a).addClass("selected");if(parseInt(a)==a&&a!="0"){$("#section").reload({page:"/a/ac/categories/view/"+a+"/"},function(){$Items.categories.selectsection($Items.categoriessectionlast,a)})}else{$("#section").reload({page:"/a/ac/items/default/"})}$("#column2").reload({page:"/ac/items/list/"+a+"/"});$Items.categorieslast=a})})};this.categories.selectsection=function(a,b){$(document).ready(function(){$Editing.check(function(){if(b){$Items.categorieslast=b}$("#panel").reload({page:"/ac/categories/"+a+"/"+$Items.categorieslast+"/"});$Items.categoriessectionlast=a})})};this.categories.save=function(a){$(document).ready(function(){var b=$("#column1 #categories_"+a).find("#editor").val().trim();$("#load").load("/a/ac/categories/save/"+a+"/");$("#column1 #categories_"+a).find("#tick").remove();$("#column1 #categories_"+a).find("#editor").fadeOut(function(){$("#column1 #categories_"+a).find(".added").remove();$("#column1 #categories_"+a).find("a").text(b);$("#column1 #categories_"+a).find("a").fadeIn()});$Items.categorieslast=a})};this.multiple={};this.selectMultiple=function(a){$(document).ready(function(){if($Deleting.deleting){$Items.selectDeleteMultiple(a);return null}$("#section").reload({page:"/a/ac/items/multiple/"});$Editing.save="$General.click('Save_Button');";$Editing.check(function(){var b=$("#column2 #items_"+a).index();if($Items.lastindex<b){$("#column2 li:lt("+(b+1)+"):gt("+($Items.lastindex)+")").addClass("selected")}else{if(b==0){$("#column2 li:lt("+($Items.lastindex)+"):gt("+(b)+")").addClass("selected");$("#column2 #items_"+a).addClass("selected")}else{$("#column2 li:lt("+($Items.lastindex)+"):gt("+(b-1)+")").addClass("selected")}}})})};this.multiple.save=function(){$(document).ready(function(){$Editing.editing=false;var a=null;var b={};b.items={};b.fields={};b.title=$("#panel").find("#multiple-addition-title").val();b.company=$("#panel").find("#multiple-addition-company").val();b.department=$("#panel").find("#multiple-addition-department").val();b.jobtitle=$("#panel").find("#multiple-addition-jobtitle").val();$(".multiple-addition-custom").each(function(){a=$(this).attr("id").replace("multiple-addition-custom","");value=$(this).val();if(value!=""){b.fields[a]=value}});$("#column2 .selected").each(function(){b.items[$(this).attr("objectid")]=$(this).attr("objectid")});$.post("/a/ac/items/multiple/",b,function(){$General.growl("Multiple items","The details have been changed for the selected items.");$("#section").reload({page:"/a/ac/items/multiple/"})})})};this.multiple.removeElements=function(a){$(document).ready(function(){var b={};b.items={};$("#column2 .selected").each(function(){b.items[$(this).attr("objectid")]=$(this).attr("objectid")});$.post("/a/ac/items/delete-multiple/"+a+"/",b,function(){$General.growl("Remove all "+a,"All of the "+a+" have been removed from the selected items.")})})};this.multiple.addElements=function(a){$(document).ready(function(){var b={};b.items={};b.value=$("#multiple-addition-value").val();$("#column2 .selected").each(function(){b.items[$(this).attr("objectid")]=$(this).attr("objectid")});$.post("/a/ac/items/multiple-"+a+"/",b,function(){$.facebox.close();$General.growl("Add "+a.replace("s",""),"The "+a.replace("s","")+" has been added to the selected items.")})})}};ABCUMCOMMERCE.Items.prototype={};ABCUMCOMMERCE.Users=function(){this.last=0;this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#users_"+a);return null}if($Deleting.deleting){return null}$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #users_"+a).addClass("selected");$("#section").reload({page:"/ac/users/view/"+a+"/"});$Users.last=a})})};this.loadmore=function(a){$Loading.check(function(){lastObjectID=$("#column1 .user:last").attr("mysqlpull");if(a>lastObjectID){$Loading.loading=true;var b="";b=b+'<li class="contact_contact_more" id="loadmoreSpinner">';b=b+'<a href="#">';b=b+'<center><strong>&nbsp;<img src="/img/loaders/small.gif" style="vertical-align:middle;" />&nbsp;</strong></center>';b=b+"</a>";b=b+"</li>";$("#column1 .Abcum-list").append(b);$.post("/ac/users/list/"+lastObjectID+"/",function(c){if(c!=""){$("#column1 .Abcum-list").append(c).initialise()}$("#loadmoreSpinner").remove();$Loading.loading=false})}})}};ABCUMCOMMERCE.Users.prototype={};ABCUMCOMMERCE.Orders=function(){this.last=0;this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#orders_"+a);return null}if($Deleting.deleting){return null}$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #orders_"+a).addClass("selected");$("#section").reload({page:"/ac/orders/view/"+a+"/"});$Orders.last=a})})};this.loadmore=function(a){$Loading.check(function(){lastObjectID=$("#column1 .order:last").attr("mysqlpull");if(a>lastObjectID){$Loading.loading=true;var b="";b=b+'<li class="contact_contact_more" id="loadmoreSpinner">';b=b+'<a href="#">';b=b+'<center><strong>&nbsp;<img src="/img/loaders/small.gif" style="vertical-align:middle;" />&nbsp;</strong></center>';b=b+"</a>";b=b+"</li>";$("#column1 .Abcum-list").append(b);$.post("/ac/orders/list/"+lastObjectID+"/",function(c){if(c!=""){$("#column1 .Abcum-list").append(c).initialise()}$("#loadmoreSpinner").remove();$Loading.loading=false})}})}};ABCUMCOMMERCE.Orders.prototype={};ABCUMPRINT.Prints=function(){this.select=function(a){$(document).ready(function(){$Editing.save="$General.click('Save_Button');";$Editing.check(function(){$("#column1 li.selected").removeClass("selected");$("#column1 #orders_"+a).addClass("selected");$("#section").reload({page:"/ap/prints/view/"+a+"/"});$Admin.orders.last=a})})};this.loadmore=function(b,a){$Loading.check(function(){lastObjectID=$("#column1 .normallist:last").attr("mysqlpull");if(b>lastObjectID){$Loading.loading=true;var c="";c=c+'<li class="contact_contact_more" id="loadmoreSpinner">';c=c+'<a href="#">';c=c+'<center><strong>&nbsp;<img src="/img/loaders/small.gif" style="vertical-align:middle;" />&nbsp;</strong></center>';c=c+"</a>";c=c+"</li>";$("#column1 .Abcum-list").append(c);$.post("/ap/prints/list/"+lastObjectID+"/",function(e){if(e!=""){$("#column1 .Abcum-list").append(e).initialise()}$("#loadmoreSpinner").remove();$Loading.loading=false})}})}};ABCUMPRINT.Prints.prototype={};ABCUMEDIT.Pages=function(){this.last=0;this.groupslast=0;this.create=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$("#section").reload({page:"/a/ae/pages/edit/0/"})})};this.select=function(a){$(document).ready(function(){if($Deleting.div=="#column1"){$Deleting.select("#pages_"+a);return null}if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Pages.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #pages_"+a).addClass("selected");$("#section").reload({page:"/a/ae/pages/view/"+a+"/"});$Pages.last=a})})};this.edit=function(a){$(document).ready(function(){if($Deleting.deleting){return null}$Editing.check(function(){$Editing.save="$Pages.save('"+a+"');";$("#column1 li.selected").removeClass("selected");$("#column1 #pages_"+a).addClass("selected");$("#section").reload({page:"/a/ae/pages/edit/"+a+"/"});$Pages.last=a})})};this.save=function(a){$(document).ready(function(){if(!a){a=$Pages.last}$Editing.editing=false;var e=0;var c={};c.text={};c.images={};c.sections={};var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text-body").each(function(){c.text["content"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text-header").each(function(){c.text["contentheader"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text-footer").each(function(){c.text["contentfooter"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image-body").each(function(){c.images["contentimage"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image-header").each(function(){c.images["contentimageheader"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image-footer").each(function(){c.images["contentimagefooter"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-section").each(function(){c.sections[b]=$(this).html();e++;b++});c.name=$("#ABCUMEDIT-name").val().trim();c.seo_title=$("#ABCUMEDIT-seo_title").val().trim();c.seo_description=$("#ABCUMEDIT-seo_description").val().trim();c.seo_keywords=$("#ABCUMEDIT-seo_keywords").val().trim();$.post("/a/ae/pages/save/"+a+"/",c,function(f){$("#column1").reload({page:"/a/ae/pages/list/0/"},function(){$Pages.select(f)})})})};this.saveedit=function(a){$(document).ready(function(){$Editing.editing=false;var e=0;var c={};c.text={};c.images={};c.sections={};var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text-body").each(function(){c.text["content"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text-header").each(function(){c.text["contentheader"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-text-footer").each(function(){c.text["contentfooter"+b]=$(this).html();e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image-body").each(function(){c.images["contentimage"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image-header").each(function(){c.images["contentimageheader"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-image-footer").each(function(){c.images["contentimagefooter"+b]=$(this).attr("src");e++;b++});var b=1;$("#IFRAME").contents().find(".OnlinePlatforms-section").each(function(){c.sections[b]=$(this).html();e++;b++});c.name=$("#ABCUMEDIT-name").val().trim();c.seo_title=$("#ABCUMEDIT-seo_title").val().trim();c.seo_description=$("#ABCUMEDIT-seo_description").val().trim();c.seo_keywords=$("#ABCUMEDIT-seo_keywords").val().trim();$.post("/a/ae/pages/save/"+a+"/",c,function(f){$Pages.edit(f)})})};this.imagelink=function(c,b,a){$(document).ready(function(){postdata={};postdata.image_id=b;postdata.image_href=a;$.post("/a/ae/pages/wizard-images-link/"+c+"/",postdata)})};this.templates={};this.templates.select=function(a){$(document).ready(function(){$.get("/a/ae/template/select/"+a+"/",function(b){$(".OnlinePlatforms-templates .selected").removeClass("selected");$("#template_"+a).addClass("selected")})})};this.menus={};this.menus.change=function(a,b){$(document).ready(function(){if(b==""){a.parent().find(".menu-other").show()}else{a.parent().find(".menu-other").hide()}})};this.menus.save=function(b,a){$(document).ready(function(){$.post(b,a)})}};ABCUMEDIT.Pages.prototype={};var forms_newContact={target:"#load",success:function(){$Editing.editing=false;$("#column2").reload({page:"/a/am/contacts/list/0/"},function(){$Contacts.select($("#load").html())})}};var forms_newContactGroup={target:"#load",success:function(){$Editing.editing=false;$("#list_groups").reload({page:"/a/am/groups/list/0/"},function(){$Contacts.groups.select($("#load").html())})}};var forms_contactsAdditions={target:"#load",success:function(){$.facebox.close();$Contacts.select($Contacts.last)}};var forms_showhideExtras={target:"#load",success:function(){$.facebox.close();$Contacts.select($Contacts.last)}};var forms_newForm={target:"#load",success:function(){$Editing.editing=false;$("#column1").reload({page:"/a/am/forms/list/0/"},function(){$Forms.select($("#load").html())})}};var forms_newMailshot={target:"#load",success:function(){$("#list").reload(null,function(){$Mailshots.select($("#load").html())});$.facebox.close()}};var forms_newMessageVariable={target:"#load",beforeSubmit:function(h,f,b){var g=f[0];var a=g.datafield.value;var c=g.defaulttext.value;var e="";var e=e+"[";var e=e+a;if(c){var e=e+"|";var e=e+c}var e=e+"]";$Messages.insertVariable(e)}};var forms_saveCategory={target:"#load",success:function(){$Editing.editing=false;$("#column1").reload({page:"/a/ac/categories/list/"},function(){$Items.categories.select($("#load").html())});$("#column2").reload({page:"/a/ac/items/list/"+$("#load").html()+"/"})}};var forms_saveItem={target:"#load",beforeSubmit:function(f,c,b){var e=c[0];if($("#title",e).length!=0){var a=$("#title",e).val();if(a){$("#items_"+$Items.last+" a .name").html(a)}else{$("#items_"+$Items.last+" a .name").html("<em>[No name]</em>")}}},success:function(){$Editing.editing=false;$("#column2").reload({page:"/a/ac/items/list/"+$Items.categorieslast+"/"},function(){$Items.select($("#load").html())})}};var forms_abcumcommerce_SavePDF={target:"#Ajax-content",success:function(){$("#Ajax-content").initialise()}};var adminMailshotsTemplate={target:"#panel",beforeSerialize:function(b,a){$("#textarea").val(document.getElementById("editor").env.document.getValue())},success:function(){$Editing.editing=false;$("#panel").initialise()}};var adminMailshotsTemplateSection={target:"#panel",beforeSerialize:function(b,a){$("#textarea").val(document.getElementById("editor").env.document.getValue())},success:function(){$Editing.editing=false;$("#panel").initialise()}};var ajaxUserForm={target:"#Ajax-content",beforeSubmit:function(e,b,a){var c=b[0]},success:function(){$("#Ajax-content").initialise()}};var continueBoxForm={target:"#facebox-content",beforeSubmit:function(c,b,a){$.facebox.clean()},success:function(){$.facebox.header($("#temp-header").html());$.facebox.footer($("#temp-footer").html());$("#facebox-content").initialise()}};var closeBoxForm={target:"#load",beforeSubmit:function(c,b,a){$.facebox.close()},success:function(){}};function forms(a){if(!a){a="body"}$(function(){$("#ajaxUserForm:not(.Javascript-form)",$(a)).ajaxForm(ajaxUserForm);$("#ajaxBoxForm:not(.Javascript-form)",$(a)).ajaxForm(closeBoxForm);$("#ajaxBoxContinueForm:not(.Javascript-form)",$(a)).ajaxForm(continueBoxForm);$(".Javascript-form-target:not(.Javascript-processed)").each(function(){var b="#"+$(this).attr("objectid");$(this).addClass("Javascript-processed").ajaxForm({target:b,success:function(){$Editing.editing=false;$(b).initialise()}})});$(".Javascript-form:not(.Javascript-processed)").each(function(){$(this).addClass("Javascript-processed").ajaxForm(window[$(this).attr("id")])})})}var isCtrl=false;var isCmd=false;var isShift=false;var isAlt=false;var speed=400;var speed_slow=1000;var toggleheight=null;function __live(){if(arguments.callee.done){return}arguments.callee.done=true;$(document).on("click","#Abcum-desktop-container, #Abcum-website-container",function(a){if(!$(event.target).closest(".Abcum-container-button").length){$("#Abcum-desktop-container").animate({left:"0px"},700,"swing");$("#Abcum-website-container").animate({left:"0px"},700,"swing")}});$(document).on("keydown keyup",".Javascript-editor",function(a){window.parent.$Editing.editing=true});$(document).on("keyup","textarea[maxlength]",function(c){var a=$(this).attr("maxlength");var b=$(this).val();$(this).val(b.slice(0,a))});$(document).on("click",".Javascript-confirm",function(c){c.preventDefault();var b=null;var a=null;if($(this).attr("confirmdialog")!=undefined){var f=$(this).attr("confirmdialog")}else{var f="Are you sure?"}if($(this).attr("function_confirm")!=undefined){if($(this).attr("function_confirm")!=undefined){b=$(this).attr("function_confirm")}if($(this).attr("function_cancel")!=undefined){a=$(this).attr("function_cancel")}}else{b="$General.load('"+$(this).attr("href")+"');"}$.prompt(f,{callback:function(g,e,h){if(g===true){new Function(b).call()}else{if(g===false){new Function(a).call()}else{return false}}},buttons:{Yes:true,No:false},focus:1});return false});$(document).on("click",".Javascript-disabled",function(a){a.preventDefault();return false});$(document).on("click",".Javascript-page:not(.Javascript-disabled)",function(a){a.preventDefault();$General.page($(this).attr("href"));return false});$(document).on("click",".Javascript-window:not(.Javascript-disabled)",function(a){a.preventDefault();if(DESKTOP==true){baseurl=new RegExp(location.origin);href=$(this).attr("href");if(baseurl.test(href)){$General.titanium("Titanium.Platform.openURL('"+href+"');")}else{if(href.beginswith("http://")||href.beginswith("https://")){$General.titanium("Titanium.Platform.openURL('"+href+"');")}else{$General.titanium("Titanium.Platform.openURL('"+location.origin+href+"');")}}}else{$General.window($(this).attr("href"))}return false});$(document).on("click",".Javascript-content:not(.Javascript-disabled)",function(a){a.preventDefault();$History.load($(this).attr("href"));return false});$(document).on("click","[target]:not(.Javascript-disabled)",function(a){a.preventDefault();$($(this).attr("target")).section($(this).attr("href"));return false});$(document).on("click","[onclick]:not(.Javascript-disabled)",function(a){a.preventDefault()});$(document).on("click","[button_click]:not(.Javascript-disabled)",function(a){a.preventDefault();document.getElementById($(this).attr("button_click")).click();return false});$(document).on("click","[function_click]:not(.Javascript-disabled)",function(b){b.preventDefault();if(isShift&&$(this).attr("shift_click")){var a=$(this).attr("shift_click");var c=($(this).attr("objectid")==undefined)?null:$(this).attr("objectid");$General.processFunction(a,c);return false}else{if(isCmd&&$(this).attr("command_click")){var a=$(this).attr("command_click");var c=($(this).attr("objectid")==undefined)?null:$(this).attr("objectid");$General.processFunction(a,c);return false}else{var a=$(this).attr("function_click");var c=($(this).attr("objectid")==undefined)?null:$(this).attr("objectid");$General.processFunction(a,c);return false}}});$(document).on("keyup","[contenteditable][iframe]",function(a){parent.$Editing.save=$(this).attr("saveFunc");parent.$Editing.editing=true});$(document).on("click",'a[href^=http]:not(.Javascript-disabled):not([class*="Javascript-"])',function(a){if(this.href.indexOf(location.hostname)==-1){a.preventDefault();if(DESKTOP==true){$General.titanium("Titanium.Platform.openURL('"+$(this).attr("href")+"');")}else{$General.window($(this).attr("href"))}return false}});$(document).on("click",'a[href*=/a/]:not([class*="Javascript-"]):not([target]):not([onclick]):not([button_click]):not([function_click])',function(a){a.preventDefault();$History.load($(this).attr("href"));return false})}function process(a){if(a==null||a==undefined){a="body"}$(":checkbox.iphone").each(function(){$(this).before('<input type="hidden" name="'+$(this).attr("name")+'" value="0" />').iphoneStyle({checkedLabel:"YES",uncheckedLabel:"NO"})});$(":input[mask]").each(function(){var c=null;var b=$(this).attr("mask");if(b=="letters"){c="[a-zA-Z]"}if(b=="letters-lowercase"){c="[a-z]"}if(b=="letters-uppercase"){c="[A-Z]"}if(b=="numbers"){c="[0-9]"}if(b=="decimal"){c="[0-9.]"}if(b=="letters+numbers"){c="[a-zA-Z0-9]"}if(b=="letters+numbers+whitespace"){c="[a-zA-Z0-9\\s]"}$(this).filterinput({regex:c})});$(":input[placeholder]").placeholder();$("textarea.autogrow").elastic();$("textarea.htmleditor").cleditor();$(".Javascript-video:not(.Javascript-disabled):not(.Javascript-processed)",$(a)).addClass("Javascript-processed").unbind("click").click(function(){$.facebox({ajax:"/a/admin/help/video/"+$(this).attr("objectid")+"/"});return false});$(".Javascript-wizard:not(.Javascript-disabled):not(.Javascript-processed)",$(a)).addClass("Javascript-processed").unbind("click").facebox();$(".Javascript-parent-wizard:not(.Javascript-disabled):not(.Javascript-processed)",$(a)).addClass("Javascript-processed").unbind("click").click(function(){parent.$.facebox({ajax:$(this).attr("href")});return false});$(".Javascript-sortable").sortable({axis:"y",containment:"window",handle:".sortable-handle",zIndex:500,update:function(){var b=$(this).sortable("serialize");$("#load").load($(this).attr("page")+b)}});$(".Javascript-nestedsortable").nestedSortable({disableNesting:"no-nest",forcePlaceholderSize:true,handle:"div",helper:"clone",items:"li",maxLevels:2,opacity:0.6,placeholder:"placeholder",revert:250,tabSize:25,tolerance:"pointer",toleranceElement:"> div"});$(".Javascript-orderable").tablesorter();$("[infinite]:not(.Javascript-processed)",$(a)).each(function(){$(this).addClass("Javascript-processed").scroll(function(){if(($(this).scrollTop()+$(this).height())>=$(this)[0].scrollHeight){loadFunc=$(this).attr("infinite");new Function(loadFunc).call()}})});$("#Javascript-orgchart").jOrgChart({chartElement:"#Javascript-orgchart-chart",dragAndDrop:true});$(".Javascript-cloner:not(.Javascript-cloned)",$(a)).each(function(){$(this).cloner({group:false})});$(".Javascript-cloner-group:not(.Javascript-cloned)",$(a)).each(function(){$(this).cloner({group:true})});$("input[watcher]:not(.Javascript-watched), textarea[watcher]:not(.Javascript-watched)").each(function(){var b=$(this).attr("watcher");$(this).addClass("Javascript-watched").typeWatch({callback:function(c){new Function(b).call()},wait:1000,captureLength:0})});$(".tipsy").remove();$("[title]").tipsy({html:true,gravity:$.fn.tipsy.autoNS,title:"title"});$("[titleleft]").tipsy({html:true,gravity:"e",title:"titleleft"});$("[titleright]").tipsy({html:true,gravity:"w",title:"titleright"});$("[titleup]").tipsy({html:true,gravity:"s",title:"titleup"});$("[titledown]").tipsy({html:true,gravity:"n",title:"titledown"});$("[titlene]").tipsy({html:true,gravity:"sw",title:"titlene"});$("[titlese]").tipsy({html:true,gravity:"nw",title:"titlese"});$("[titlesw]").tipsy({html:true,gravity:"ne",title:"titlesw"});$("[titlenw]").tipsy({html:true,gravity:"se",title:"titlenw"});$("#Javascript-fileupload").pluploadQueue({runtimes:"html5,html4",url:$("#Javascript-fileupload").attr("url"),max_file_size:"40mb",unique_names:false,multipart:true,multiple_queues:false,init:{UploadProgress:function(b,c){if(b.total.uploaded==b.files.length){if($("#Javascript-fileupload").attr("complete")){new Function($("#Javascript-fileupload").attr("complete")).call()}}},FileUploaded:function(b,c,e){if($("#Javascript-fileupload").attr("filecomplete")){new Function($("#Javascript-fileupload").attr("filecomplete").replace("###RESPONSE###",e.response)).call()}}}})}var formsdone=false;function __onresize(){$(".Abcum-mobile-tabbar-menu-menuitem").width(($("#Abcum-mobile-tabbar-menu").width()/$(".Abcum-mobile-tabbar-menu-menuitem").length)+"px");$Contacts.maps.resize();$Mailshots.maps.resize()}function __oncontextmenu(a){a.preventDefault()}function __onbeforeunload(a){if($Editing.editing===true){return"You have made changes which are not saved."}}function __ontouchmove(a){console.log(a);a.preventDefault()}function __ongesturestart(a){a.preventDefault()}function __onorientationchange(a){__onresize;if(window.orientation=="0"||window.orientation=="180"){}}if(window.addEventListener){window.addEventListener("resize",__onresize,false);window.addEventListener("orientationchange",__onorientationchange,false);window.addEventListener("beforeunload",__onbeforeunload,false);window.addEventListener("touchmove",__ontouchmove,false);window.addEventListener("gesturestart",__ongesturestart,false)}else{if(window.attachEvent){window.attachEvent("onresize",__onresize);window.attachEvent("onorientationchange",__onorientationchange);window.attachEvent("onbeforeunload",__onbeforeunload);window.attachEvent("ontouchmove",__ontouchmove);window.attachEvent("ongesturestart",__ongesturestart)}}$(document).ready(function(){if(arguments.callee.done){return}arguments.callee.done=true;$Admin=new ABCUMGROUP.Admin();General=new ABCUMGROUP.General();$General=new ABCUMGROUP.General();$History=new ABCUMGROUP.History();$Editing=new ABCUMGROUP.Editing();$Loading=new ABCUMGROUP.Loading();$Strings=new ABCUMGROUP.Strings();$Cloner=new ABCUMGROUP.Cloner();$Deleting=new ABCUMGROUP.Deleting();$Search=new ABCUMGROUP.Search();$Templates=new ABCUMGROUP.Templates();Language=new ABCUMGROUP.Language();$Language=new ABCUMGROUP.Language();$Site=new ABCUMGROUP.Site();$Forms=new ABCUMMARKETING.Forms();Contacts=new ABCUMMARKETING.Contacts();$Contacts=new ABCUMMARKETING.Contacts();$Mailshots=new ABCUMMARKETING.Mailshots();$Messages=new ABCUMMARKETING.Messages();$Prints=new ABCUMMARKETING.Prints();$Campaigns=new ABCUMMARKETING.Campaigns();$Items=new ABCUMCOMMERCE.Items();$Users=new ABCUMCOMMERCE.Users();$Orders=new ABCUMCOMMERCE.Orders();$Pages=new ABCUMEDIT.Pages();$ABCUMPRINT_Prints=new ABCUMPRINT.Prints();$("body").initialise();__live();__onresize();$History.init();$Search.init();$("body").ajaxStart(function(){$Loading.automatic.show("small");$Loading.automatic.show("all")});$("body").ajaxStop(function(){$Loading.automatic.hide("small");$Loading.automatic.hide("all")});$.xhrPool=[];$.xhrPool.abortAll=function(){$(this).each(function(a,b){b.abort()});$.xhrPool=[]};$.ajaxSetup({beforeSend:function(a){$.xhrPool.push(a)},success:function(c,e,b){var a=$.xhrPool.indexOf(b);if(a>-1){$.xhrPool.splice(a,1)}}});$("body").ajaxComplete(function(g,f,c){try{if(f.getResponseHeader("System-Javascript-Date")>FILEDATE){$General.refresh()}var b=window.location.toString();if(b.indexOf("login",0)!=-1){return null}if(b.indexOf("register",0)!=-1){return null}if(f.getResponseHeader("System-Session-Needed")&&!f.getResponseHeader("System-Session-Exists")){$(this).html("<center><br /><br /><br />Please wait...</center>");$General.page(c.url.replace("/a/","/"))}}catch(a){}})});
