/*
 * jQuery JavaScript Library v1.6.2
 * http://jquery.com/
 *
 * Copyright 2011, John Resig
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 * Copyright 2011, The Dojo Foundation
 * Released under the MIT, BSD, and GPL Licenses.
 *
 * Date: Thu Jun 30 14:16:56 2011 -0400
 */
(function(bd,O){var av=bd.document,bv=bd.navigator,bm=bd.location;var b=(function(){var bG=function(b1,b2){return new bG.fn.init(b1,b2,bE)},bW=bd.jQuery,bI=bd.$,bE,b0=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bO=/\S/,bK=/^\s+/,bF=/\s+$/,bJ=/\d/,bB=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bP=/^[\],:{}\s]*$/,bY=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bR=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bL=/(?:^|:|,)(?:\s*\[)+/g,bz=/(webkit)[ \/]([\w.]+)/,bT=/(opera)(?:.*version)?[ \/]([\w.]+)/,bS=/(msie) ([\w.]+)/,bU=/(mozilla)(?:.*? rv:([\w.]+))?/,bC=/-([a-z])/ig,bV=function(b1,b2){return b2.toUpperCase()},bZ=bv.userAgent,bX,bD,e,bN=Object.prototype.toString,bH=Object.prototype.hasOwnProperty,bA=Array.prototype.push,bM=Array.prototype.slice,bQ=String.prototype.trim,bw=Array.prototype.indexOf,by={};bG.fn=bG.prototype={constructor:bG,init:function(b1,b5,b4){var b3,b6,b2,b7;if(!b1){return this}if(b1.nodeType){this.context=this[0]=b1;this.length=1;return this}if(b1==="body"&&!b5&&av.body){this.context=av;this[0]=av.body;this.selector=b1;this.length=1;return this}if(typeof b1==="string"){if(b1.charAt(0)==="<"&&b1.charAt(b1.length-1)===">"&&b1.length>=3){b3=[null,b1,null]}else{b3=b0.exec(b1)}if(b3&&(b3[1]||!b5)){if(b3[1]){b5=b5 instanceof bG?b5[0]:b5;b7=(b5?b5.ownerDocument||b5:av);b2=bB.exec(b1);if(b2){if(bG.isPlainObject(b5)){b1=[av.createElement(b2[1])];bG.fn.attr.call(b1,b5,true)}else{b1=[b7.createElement(b2[1])]}}else{b2=bG.buildFragment([b3[1]],[b7]);b1=(b2.cacheable?bG.clone(b2.fragment):b2.fragment).childNodes}return bG.merge(this,b1)}else{b6=av.getElementById(b3[2]);if(b6&&b6.parentNode){if(b6.id!==b3[2]){return b4.find(b1)}this.length=1;this[0]=b6}this.context=av;this.selector=b1;return this}}else{if(!b5||b5.jquery){return(b5||b4).find(b1)}else{return this.constructor(b5).find(b1)}}}else{if(bG.isFunction(b1)){return b4.ready(b1)}}if(b1.selector!==O){this.selector=b1.selector;this.context=b1.context}return bG.makeArray(b1,this)},selector:"",jquery:"1.6.2",length:0,size:function(){return this.length},toArray:function(){return bM.call(this,0)},get:function(b1){return b1==null?this.toArray():(b1<0?this[this.length+b1]:this[b1])},pushStack:function(b2,b4,b1){var b3=this.constructor();if(bG.isArray(b2)){bA.apply(b3,b2)}else{bG.merge(b3,b2)}b3.prevObject=this;b3.context=this.context;if(b4==="find"){b3.selector=this.selector+(this.selector?" ":"")+b1}else{if(b4){b3.selector=this.selector+"."+b4+"("+b1+")"}}return b3},each:function(b2,b1){return bG.each(this,b2,b1)},ready:function(b1){bG.bindReady();bD.done(b1);return this},eq:function(b1){return b1===-1?this.slice(b1):this.slice(b1,+b1+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bM.apply(this,arguments),"slice",bM.call(arguments).join(","))},map:function(b1){return this.pushStack(bG.map(this,function(b3,b2){return b1.call(b3,b2,b3)}))},end:function(){return this.prevObject||this.constructor(null)},push:bA,sort:[].sort,splice:[].splice};bG.fn.init.prototype=bG.fn;bG.extend=bG.fn.extend=function(){var ca,b3,b1,b2,b7,b8,b6=arguments[0]||{},b5=1,b4=arguments.length,b9=false;if(typeof b6==="boolean"){b9=b6;b6=arguments[1]||{};b5=2}if(typeof b6!=="object"&&!bG.isFunction(b6)){b6={}}if(b4===b5){b6=this;--b5}for(;b5<b4;b5++){if((ca=arguments[b5])!=null){for(b3 in ca){b1=b6[b3];b2=ca[b3];if(b6===b2){continue}if(b9&&b2&&(bG.isPlainObject(b2)||(b7=bG.isArray(b2)))){if(b7){b7=false;b8=b1&&bG.isArray(b1)?b1:[]}else{b8=b1&&bG.isPlainObject(b1)?b1:{}}b6[b3]=bG.extend(b9,b8,b2)}else{if(b2!==O){b6[b3]=b2}}}}}return b6};bG.extend({noConflict:function(b1){if(bd.$===bG){bd.$=bI}if(b1&&bd.jQuery===bG){bd.jQuery=bW}return bG},isReady:false,readyWait:1,holdReady:function(b1){if(b1){bG.readyWait++}else{bG.ready(true)}},ready:function(b1){if((b1===true&&!--bG.readyWait)||(b1!==true&&!bG.isReady)){if(!av.body){return setTimeout(bG.ready,1)}bG.isReady=true;if(b1!==true&&--bG.readyWait>0){return}bD.resolveWith(av,[bG]);if(bG.fn.trigger){bG(av).trigger("ready").unbind("ready")}}},bindReady:function(){if(bD){return}bD=bG._Deferred();if(av.readyState==="complete"){return setTimeout(bG.ready,1)}if(av.addEventListener){av.addEventListener("DOMContentLoaded",e,false);bd.addEventListener("load",bG.ready,false)}else{if(av.attachEvent){av.attachEvent("onreadystatechange",e);bd.attachEvent("onload",bG.ready);var b1=false;try{b1=bd.frameElement==null}catch(b2){}if(av.documentElement.doScroll&&b1){bx()}}}},isFunction:function(b1){return bG.type(b1)==="function"},isArray:Array.isArray||function(b1){return bG.type(b1)==="array"},isWindow:function(b1){return b1&&typeof b1==="object"&&"setInterval" in b1},isNaN:function(b1){return b1==null||!bJ.test(b1)||isNaN(b1)},type:function(b1){return b1==null?String(b1):by[bN.call(b1)]||"object"},isPlainObject:function(b2){if(!b2||bG.type(b2)!=="object"||b2.nodeType||bG.isWindow(b2)){return false}if(b2.constructor&&!bH.call(b2,"constructor")&&!bH.call(b2.constructor.prototype,"isPrototypeOf")){return false}var b1;for(b1 in b2){}return b1===O||bH.call(b2,b1)},isEmptyObject:function(b2){for(var b1 in b2){return false}return true},error:function(b1){throw b1},parseJSON:function(b1){if(typeof b1!=="string"||!b1){return null}b1=bG.trim(b1);if(bd.JSON&&bd.JSON.parse){return bd.JSON.parse(b1)}if(bP.test(b1.replace(bY,"@").replace(bR,"]").replace(bL,""))){return(new Function("return "+b1))()}bG.error("Invalid JSON: "+b1)},parseXML:function(b3,b1,b2){if(bd.DOMParser){b2=new DOMParser();b1=b2.parseFromString(b3,"text/xml")}else{b1=new ActiveXObject("Microsoft.XMLDOM");b1.async="false";b1.loadXML(b3)}b2=b1.documentElement;if(!b2||!b2.nodeName||b2.nodeName==="parsererror"){bG.error("Invalid XML: "+b3)}return b1},noop:function(){},globalEval:function(b1){if(b1&&bO.test(b1)){(bd.execScript||function(b2){bd["eval"].call(bd,b2)})(b1)}},camelCase:function(b1){return b1.replace(bC,bV)},nodeName:function(b2,b1){return b2.nodeName&&b2.nodeName.toUpperCase()===b1.toUpperCase()},each:function(b4,b7,b3){var b2,b5=0,b6=b4.length,b1=b6===O||bG.isFunction(b4);if(b3){if(b1){for(b2 in b4){if(b7.apply(b4[b2],b3)===false){break}}}else{for(;b5<b6;){if(b7.apply(b4[b5++],b3)===false){break}}}}else{if(b1){for(b2 in b4){if(b7.call(b4[b2],b2,b4[b2])===false){break}}}else{for(;b5<b6;){if(b7.call(b4[b5],b5,b4[b5++])===false){break}}}}return b4},trim:bQ?function(b1){return b1==null?"":bQ.call(b1)}:function(b1){return b1==null?"":b1.toString().replace(bK,"").replace(bF,"")},makeArray:function(b4,b2){var b1=b2||[];if(b4!=null){var b3=bG.type(b4);if(b4.length==null||b3==="string"||b3==="function"||b3==="regexp"||bG.isWindow(b4)){bA.call(b1,b4)}else{bG.merge(b1,b4)}}return b1},inArray:function(b3,b4){if(bw){return bw.call(b4,b3)}for(var b1=0,b2=b4.length;b1<b2;b1++){if(b4[b1]===b3){return b1}}return -1},merge:function(b5,b3){var b4=b5.length,b2=0;if(typeof b3.length==="number"){for(var b1=b3.length;b2<b1;b2++){b5[b4++]=b3[b2]}}else{while(b3[b2]!==O){b5[b4++]=b3[b2++]}}b5.length=b4;return b5},grep:function(b2,b7,b1){var b3=[],b6;b1=!!b1;for(var b4=0,b5=b2.length;b4<b5;b4++){b6=!!b7(b2[b4],b4);if(b1!==b6){b3.push(b2[b4])}}return b3},map:function(b1,b8,b9){var b6,b7,b5=[],b3=0,b2=b1.length,b4=b1 instanceof bG||b2!==O&&typeof b2==="number"&&((b2>0&&b1[0]&&b1[b2-1])||b2===0||bG.isArray(b1));if(b4){for(;b3<b2;b3++){b6=b8(b1[b3],b3,b9);if(b6!=null){b5[b5.length]=b6}}}else{for(b7 in b1){b6=b8(b1[b7],b7,b9);if(b6!=null){b5[b5.length]=b6}}}return b5.concat.apply([],b5)},guid:1,proxy:function(b5,b4){if(typeof b4==="string"){var b3=b5[b4];b4=b5;b5=b3}if(!bG.isFunction(b5)){return O}var b1=bM.call(arguments,2),b2=function(){return b5.apply(b4,b1.concat(bM.call(arguments)))};b2.guid=b5.guid=b5.guid||b2.guid||bG.guid++;return b2},access:function(b1,b9,b7,b3,b6,b8){var b2=b1.length;if(typeof b9==="object"){for(var b4 in b9){bG.access(b1,b4,b9[b4],b3,b6,b7)}return b1}if(b7!==O){b3=!b8&&b3&&bG.isFunction(b7);for(var b5=0;b5<b2;b5++){b6(b1[b5],b9,b3?b7.call(b1[b5],b5,b6(b1[b5],b9)):b7,b8)}return b1}return b2?b6(b1[0],b9):O},now:function(){return(new Date()).getTime()},uaMatch:function(b2){b2=b2.toLowerCase();var b1=bz.exec(b2)||bT.exec(b2)||bS.exec(b2)||b2.indexOf("compatible")<0&&bU.exec(b2)||[];return{browser:b1[1]||"",version:b1[2]||"0"}},sub:function(){function b1(b4,b5){return new b1.fn.init(b4,b5)}bG.extend(true,b1,this);b1.superclass=this;b1.fn=b1.prototype=this();b1.fn.constructor=b1;b1.sub=this.sub;b1.fn.init=function b3(b4,b5){if(b5&&b5 instanceof bG&&!(b5 instanceof b1)){b5=b1(b5)}return bG.fn.init.call(this,b4,b5,b2)};b1.fn.init.prototype=b1.fn;var b2=b1(av);return b1},browser:{}});bG.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(b2,b1){by["[object "+b1+"]"]=b1.toLowerCase()});bX=bG.uaMatch(bZ);if(bX.browser){bG.browser[bX.browser]=true;bG.browser.version=bX.version}if(bG.browser.webkit){bG.browser.safari=true}if(bO.test("\xA0")){bK=/^[\s\xA0]+/;bF=/[\s\xA0]+$/}bE=bG(av);if(av.addEventListener){e=function(){av.removeEventListener("DOMContentLoaded",e,false);bG.ready()}}else{if(av.attachEvent){e=function(){if(av.readyState==="complete"){av.detachEvent("onreadystatechange",e);bG.ready()}}}}function bx(){if(bG.isReady){return}try{av.documentElement.doScroll("left")}catch(b1){setTimeout(bx,1);return}bG.ready()}return bG})();var a="done fail isResolved isRejected promise then always pipe".split(" "),aJ=[].slice;b.extend({_Deferred:function(){var by=[],bz,bw,bx,e={done:function(){if(!bx){var bB=arguments,bC,bF,bE,bD,bA;if(bz){bA=bz;bz=0}for(bC=0,bF=bB.length;bC<bF;bC++){bE=bB[bC];bD=b.type(bE);if(bD==="array"){e.done.apply(e,bE)}else{if(bD==="function"){by.push(bE)}}}if(bA){e.resolveWith(bA[0],bA[1])}}return this},resolveWith:function(bB,bA){if(!bx&&!bz&&!bw){bA=bA||[];bw=1;try{while(by[0]){by.shift().apply(bB,bA)}}finally{bz=[bB,bA];bw=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return !!(bw||bz)},cancel:function(){bx=1;by=[];return this}};return e},Deferred:function(bw){var e=b._Deferred(),by=b._Deferred(),bx;b.extend(e,{then:function(bA,bz){e.done(bA).fail(bz);return this},always:function(){return e.done.apply(e,arguments).fail.apply(this,arguments)},fail:by.done,rejectWith:by.resolveWith,reject:by.resolve,isRejected:by.isResolved,pipe:function(bA,bz){return b.Deferred(function(bB){b.each({done:[bA,"resolve"],fail:[bz,"reject"]},function(bD,bG){var bC=bG[0],bF=bG[1],bE;if(b.isFunction(bC)){e[bD](function(){bE=bC.apply(this,arguments);if(bE&&b.isFunction(bE.promise)){bE.promise().then(bB.resolve,bB.reject)}else{bB[bF](bE)}})}else{e[bD](bB[bF])}})}).promise()},promise:function(bA){if(bA==null){if(bx){return bx}bx=bA={}}var bz=a.length;while(bz--){bA[a[bz]]=e[a[bz]]}return bA}});e.done(by.cancel).fail(e.cancel);delete e.cancel;if(bw){bw.call(e,e)}return e},when:function(bB){var bw=arguments,bx=0,bA=bw.length,bz=bA,e=bA<=1&&bB&&b.isFunction(bB.promise)?bB:b.Deferred();function by(bC){return function(bD){bw[bC]=arguments.length>1?aJ.call(arguments,0):bD;if(!(--bz)){e.resolveWith(e,aJ.call(bw,0))}}}if(bA>1){for(;bx<bA;bx++){if(bw[bx]&&b.isFunction(bw[bx].promise)){bw[bx].promise().then(by(bx),e.reject)}else{--bz}}if(!bz){e.resolveWith(e,bw)}}else{if(e!==bB){e.resolveWith(e,bA?[bB]:[])}}return e.promise()}});b.support=(function(){var bG=av.createElement("div"),bN=av.documentElement,bz,bO,bH,bx,bF,bA,bD,bw,bE,bI,bC,bM,bK,by,bB,bJ,bP;bG.setAttribute("className","t");bG.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>";bz=bG.getElementsByTagName("*");bO=bG.getElementsByTagName("a")[0];if(!bz||!bz.length||!bO){return{}}bH=av.createElement("select");bx=bH.appendChild(av.createElement("option"));bF=bG.getElementsByTagName("input")[0];bD={leadingWhitespace:(bG.firstChild.nodeType===3),tbody:!bG.getElementsByTagName("tbody").length,htmlSerialize:!!bG.getElementsByTagName("link").length,style:/top/.test(bO.getAttribute("style")),hrefNormalized:(bO.getAttribute("href")==="/a"),opacity:/^0.55$/.test(bO.style.opacity),cssFloat:!!bO.style.cssFloat,checkOn:(bF.value==="on"),optSelected:bx.selected,getSetAttribute:bG.className!=="t",submitBubbles:true,changeBubbles:true,focusinBubbles:false,deleteExpando:true,noCloneEvent:true,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableMarginRight:true};bF.checked=true;bD.noCloneChecked=bF.cloneNode(true).checked;bH.disabled=true;bD.optDisabled=!bx.disabled;try{delete bG.test}catch(bL){bD.deleteExpando=false}if(!bG.addEventListener&&bG.attachEvent&&bG.fireEvent){bG.attachEvent("onclick",function(){bD.noCloneEvent=false});bG.cloneNode(true).fireEvent("onclick")}bF=av.createElement("input");bF.value="t";bF.setAttribute("type","radio");bD.radioValue=bF.value==="t";bF.setAttribute("checked","checked");bG.appendChild(bF);bw=av.createDocumentFragment();bw.appendChild(bG.firstChild);bD.checkClone=bw.cloneNode(true).cloneNode(true).lastChild.checked;bG.innerHTML="";bG.style.width=bG.style.paddingLeft="1px";bE=av.getElementsByTagName("body")[0];bC=av.createElement(bE?"div":"body");bM={visibility:"hidden",width:0,height:0,border:0,margin:0};if(bE){b.extend(bM,{position:"absolute",left:-1000,top:-1000})}for(bJ in bM){bC.style[bJ]=bM[bJ]}bC.appendChild(bG);bI=bE||bN;bI.insertBefore(bC,bI.firstChild);bD.appendChecked=bF.checked;bD.boxModel=bG.offsetWidth===2;if("zoom" in bG.style){bG.style.display="inline";bG.style.zoom=1;bD.inlineBlockNeedsLayout=(bG.offsetWidth===2);bG.style.display="";bG.innerHTML="<div style='width:4px;'></div>";bD.shrinkWrapBlocks=(bG.offsetWidth!==2)}bG.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";bK=bG.getElementsByTagName("td");bP=(bK[0].offsetHeight===0);bK[0].style.display="";bK[1].style.display="none";bD.reliableHiddenOffsets=bP&&(bK[0].offsetHeight===0);bG.innerHTML="";if(av.defaultView&&av.defaultView.getComputedStyle){bA=av.createElement("div");bA.style.width="0";bA.style.marginRight="0";bG.appendChild(bA);bD.reliableMarginRight=(parseInt((av.defaultView.getComputedStyle(bA,null)||{marginRight:0}).marginRight,10)||0)===0}bC.innerHTML="";bI.removeChild(bC);if(bG.attachEvent){for(bJ in {submit:1,change:1,focusin:1}){bB="on"+bJ;bP=(bB in bG);if(!bP){bG.setAttribute(bB,"return;");bP=(typeof bG[bB]==="function")}bD[bJ+"Bubbles"]=bP}}bC=bw=bH=bx=bE=bA=bG=bF=null;return bD})();b.boxModel=b.support.boxModel;var aQ=/^(?:\{.*\}|\[.*\])$/,aA=/([a-z])([A-Z])/g;b.extend({cache:{},uuid:0,expando:"jQuery"+(b.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},hasData:function(e){e=e.nodeType?b.cache[e[b.expando]]:e[b.expando];return !!e&&!X(e)},data:function(by,bw,bA,bz){if(!b.acceptData(by)){return}var bD=b.expando,bC=typeof bw==="string",bB,bE=by.nodeType,e=bE?b.cache:by,bx=bE?by[b.expando]:by[b.expando]&&b.expando;if((!bx||(bz&&bx&&!e[bx][bD]))&&bC&&bA===O){return}if(!bx){if(bE){by[b.expando]=bx=++b.uuid}else{bx=b.expando}}if(!e[bx]){e[bx]={};if(!bE){e[bx].toJSON=b.noop}}if(typeof bw==="object"||typeof bw==="function"){if(bz){e[bx][bD]=b.extend(e[bx][bD],bw)}else{e[bx]=b.extend(e[bx],bw)}}bB=e[bx];if(bz){if(!bB[bD]){bB[bD]={}}bB=bB[bD]}if(bA!==O){bB[b.camelCase(bw)]=bA}if(bw==="events"&&!bB[bw]){return bB[bD]&&bB[bD].events}return bC?bB[b.camelCase(bw)]||bB[bw]:bB},removeData:function(bz,bx,bA){if(!b.acceptData(bz)){return}var bC=b.expando,bD=bz.nodeType,bw=bD?b.cache:bz,by=bD?bz[b.expando]:b.expando;if(!bw[by]){return}if(bx){var bB=bA?bw[by][bC]:bw[by];if(bB){delete bB[bx];if(!X(bB)){return}}}if(bA){delete bw[by][bC];if(!X(bw[by])){return}}var e=bw[by][bC];if(b.support.deleteExpando||bw!=bd){delete bw[by]}else{bw[by]=null}if(e){bw[by]={};if(!bD){bw[by].toJSON=b.noop}bw[by][bC]=e}else{if(bD){if(b.support.deleteExpando){delete bz[b.expando]}else{if(bz.removeAttribute){bz.removeAttribute(b.expando)}else{bz[b.expando]=null}}}}},_data:function(bw,e,bx){return b.data(bw,e,bx,true)},acceptData:function(bw){if(bw.nodeName){var e=b.noData[bw.nodeName.toLowerCase()];if(e){return !(e===true||bw.getAttribute("classid")!==e)}}return true}});b.fn.extend({data:function(bz,bB){var bA=null;if(typeof bz==="undefined"){if(this.length){bA=b.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,bx;for(var by=0,bw=e.length;by<bw;by++){bx=e[by].name;if(bx.indexOf("data-")===0){bx=b.camelCase(bx.substring(5));a6(this[0],bx,bA[bx])}}}}return bA}else{if(typeof bz==="object"){return this.each(function(){b.data(this,bz)})}}var bC=bz.split(".");bC[1]=bC[1]?"."+bC[1]:"";if(bB===O){bA=this.triggerHandler("getData"+bC[1]+"!",[bC[0]]);if(bA===O&&this.length){bA=b.data(this[0],bz);bA=a6(this[0],bz,bA)}return bA===O&&bC[1]?this.data(bC[0]):bA}else{return this.each(function(){var bE=b(this),bD=[bC[0],bB];bE.triggerHandler("setData"+bC[1]+"!",bD);b.data(this,bz,bB);bE.triggerHandler("changeData"+bC[1]+"!",bD)})}},removeData:function(e){return this.each(function(){b.removeData(this,e)})}});function a6(by,bx,bz){if(bz===O&&by.nodeType===1){var bw="data-"+bx.replace(aA,"$1-$2").toLowerCase();bz=by.getAttribute(bw);if(typeof bz==="string"){try{bz=bz==="true"?true:bz==="false"?false:bz==="null"?null:!b.isNaN(bz)?parseFloat(bz):aQ.test(bz)?b.parseJSON(bz):bz}catch(bA){}b.data(by,bx,bz)}else{bz=O}}return bz}function X(bw){for(var e in bw){if(e!=="toJSON"){return false}}return true}function bi(bz,by,bB){var bx=by+"defer",bw=by+"queue",e=by+"mark",bA=b.data(bz,bx,O,true);if(bA&&(bB==="queue"||!b.data(bz,bw,O,true))&&(bB==="mark"||!b.data(bz,e,O,true))){setTimeout(function(){if(!b.data(bz,bw,O,true)&&!b.data(bz,e,O,true)){b.removeData(bz,bx,true);bA.resolve()}},0)}}b.extend({_mark:function(bw,e){if(bw){e=(e||"fx")+"mark";b.data(bw,e,(b.data(bw,e,O,true)||0)+1,true)}},_unmark:function(bz,by,bw){if(bz!==true){bw=by;by=bz;bz=false}if(by){bw=bw||"fx";var e=bw+"mark",bx=bz?0:((b.data(by,e,O,true)||1)-1);if(bx){b.data(by,e,bx,true)}else{b.removeData(by,e,true);bi(by,bw,"mark")}}},queue:function(bw,e,by){if(bw){e=(e||"fx")+"queue";var bx=b.data(bw,e,O,true);if(by){if(!bx||b.isArray(by)){bx=b.data(bw,e,b.makeArray(by),true)}else{bx.push(by)}}return bx||[]}},dequeue:function(by,bx){bx=bx||"fx";var e=b.queue(by,bx),bw=e.shift(),bz;if(bw==="inprogress"){bw=e.shift()}if(bw){if(bx==="fx"){e.unshift("inprogress")}bw.call(by,function(){b.dequeue(by,bx)})}if(!e.length){b.removeData(by,bx+"queue",true);bi(by,bx,"queue")}}});b.fn.extend({queue:function(e,bw){if(typeof e!=="string"){bw=e;e="fx"}if(bw===O){return b.queue(this[0],e)}return this.each(function(){var bx=b.queue(this,e,bw);if(e==="fx"&&bx[0]!=="inprogress"){b.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){b.dequeue(this,e)})},delay:function(bw,e){bw=b.fx?b.fx.speeds[bw]||bw:bw;e=e||"fx";return this.queue(e,function(){var bx=this;setTimeout(function(){b.dequeue(bx,e)},bw)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(bE,bx){if(typeof bE!=="string"){bx=bE;bE=O}bE=bE||"fx";var e=b.Deferred(),bw=this,bz=bw.length,bC=1,bA=bE+"defer",bB=bE+"queue",bD=bE+"mark",by;function bF(){if(!(--bC)){e.resolveWith(bw,[bw])}}while(bz--){if((by=b.data(bw[bz],bA,O,true)||(b.data(bw[bz],bB,O,true)||b.data(bw[bz],bD,O,true))&&b.data(bw[bz],bA,b._Deferred(),true))){bC++;by.done(bF)}}bF();return e.promise()}});var aO=/[\n\t\r]/g,ag=/\s+/,aS=/\r/g,g=/^(?:button|input)$/i,H=/^(?:button|input|object|select|textarea)$/i,m=/^a(?:rea)?$/i,ao=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,a9=/\:|^on/,a4,aY;b.fn.extend({attr:function(e,bw){return b.access(this,e,bw,true,b.attr)},removeAttr:function(e){return this.each(function(){b.removeAttr(this,e)})},prop:function(e,bw){return b.access(this,e,bw,true,b.prop)},removeProp:function(e){e=b.propFix[e]||e;return this.each(function(){try{this[e]=O;delete this[e]}catch(bw){}})},addClass:function(bz){var bB,bx,bw,by,bA,bC,e;if(b.isFunction(bz)){return this.each(function(bD){b(this).addClass(bz.call(this,bD,this.className))})}if(bz&&typeof bz==="string"){bB=bz.split(ag);for(bx=0,bw=this.length;bx<bw;bx++){by=this[bx];if(by.nodeType===1){if(!by.className&&bB.length===1){by.className=bz}else{bA=" "+by.className+" ";for(bC=0,e=bB.length;bC<e;bC++){if(!~bA.indexOf(" "+bB[bC]+" ")){bA+=bB[bC]+" "}}by.className=b.trim(bA)}}}}return this},removeClass:function(bA){var bB,bx,bw,bz,by,bC,e;if(b.isFunction(bA)){return this.each(function(bD){b(this).removeClass(bA.call(this,bD,this.className))})}if((bA&&typeof bA==="string")||bA===O){bB=(bA||"").split(ag);for(bx=0,bw=this.length;bx<bw;bx++){bz=this[bx];if(bz.nodeType===1&&bz.className){if(bA){by=(" "+bz.className+" ").replace(aO," ");for(bC=0,e=bB.length;bC<e;bC++){by=by.replace(" "+bB[bC]+" "," ")}bz.className=b.trim(by)}else{bz.className=""}}}}return this},toggleClass:function(by,bw){var bx=typeof by,e=typeof bw==="boolean";if(b.isFunction(by)){return this.each(function(bz){b(this).toggleClass(by.call(this,bz,this.className,bw),bw)})}return this.each(function(){if(bx==="string"){var bB,bA=0,bz=b(this),bC=bw,bD=by.split(ag);while((bB=bD[bA++])){bC=e?bC:!bz.hasClass(bB);bz[bC?"addClass":"removeClass"](bB)}}else{if(bx==="undefined"||bx==="boolean"){if(this.className){b._data(this,"__className__",this.className)}this.className=this.className||by===false?"":b._data(this,"__className__")||""}}})},hasClass:function(e){var by=" "+e+" ";for(var bx=0,bw=this.length;bx<bw;bx++){if((" "+this[bx].className+" ").replace(aO," ").indexOf(by)>-1){return true}}return false},val:function(by){var e,bw,bx=this[0];if(!arguments.length){if(bx){e=b.valHooks[bx.nodeName.toLowerCase()]||b.valHooks[bx.type];if(e&&"get" in e&&(bw=e.get(bx,"value"))!==O){return bw}bw=bx.value;return typeof bw==="string"?bw.replace(aS,""):bw==null?"":bw}return O}var bz=b.isFunction(by);return this.each(function(bB){var bA=b(this),bC;if(this.nodeType!==1){return}if(bz){bC=by.call(this,bB,bA.val())}else{bC=by}if(bC==null){bC=""}else{if(typeof bC==="number"){bC+=""}else{if(b.isArray(bC)){bC=b.map(bC,function(bD){return bD==null?"":bD+""})}}}e=b.valHooks[this.nodeName.toLowerCase()]||b.valHooks[this.type];if(!e||!("set" in e)||e.set(this,bC,"value")===O){this.value=bC}})}});b.extend({valHooks:{option:{get:function(e){var bw=e.attributes.value;return !bw||bw.specified?e.value:e.text}},select:{get:function(e){var bB,bz=e.selectedIndex,bC=[],bD=e.options,by=e.type==="select-one";if(bz<0){return null}for(var bw=by?bz:0,bA=by?bz+1:bD.length;bw<bA;bw++){var bx=bD[bw];if(bx.selected&&(b.support.optDisabled?!bx.disabled:bx.getAttribute("disabled")===null)&&(!bx.parentNode.disabled||!b.nodeName(bx.parentNode,"optgroup"))){bB=b(bx).val();if(by){return bB}bC.push(bB)}}if(by&&!bC.length&&bD.length){return b(bD[bz]).val()}return bC},set:function(bw,bx){var e=b.makeArray(bx);b(bw).find("option").each(function(){this.selected=b.inArray(b(this).val(),e)>=0});if(!e.length){bw.selectedIndex=-1}return e}}},attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attrFix:{tabindex:"tabIndex"},attr:function(bB,by,bC,bA){var bw=bB.nodeType;if(!bB||bw===3||bw===8||bw===2){return O}if(bA&&by in b.attrFn){return b(bB)[by](bC)}if(!("getAttribute" in bB)){return b.prop(bB,by,bC)}var bx,e,bz=bw!==1||!b.isXMLDoc(bB);if(bz){by=b.attrFix[by]||by;e=b.attrHooks[by];if(!e){if(ao.test(by)){e=aY}else{if(a4&&by!=="className"&&(b.nodeName(bB,"form")||a9.test(by))){e=a4}}}}if(bC!==O){if(bC===null){b.removeAttr(bB,by);return O}else{if(e&&"set" in e&&bz&&(bx=e.set(bB,bC,by))!==O){return bx}else{bB.setAttribute(by,""+bC);return bC}}}else{if(e&&"get" in e&&bz&&(bx=e.get(bB,by))!==null){return bx}else{bx=bB.getAttribute(by);return bx===null?O:bx}}},removeAttr:function(bw,e){var bx;if(bw.nodeType===1){e=b.attrFix[e]||e;if(b.support.getSetAttribute){bw.removeAttribute(e)}else{b.attr(bw,e,"");bw.removeAttributeNode(bw.getAttributeNode(e))}if(ao.test(e)&&(bx=b.propFix[e]||e) in bw){bw[bx]=false}}},attrHooks:{type:{set:function(e,bw){if(g.test(e.nodeName)&&e.parentNode){b.error("type property can't be changed")}else{if(!b.support.radioValue&&bw==="radio"&&b.nodeName(e,"input")){var bx=e.value;e.setAttribute("type",bw);if(bx){e.value=bx}return bw}}}},tabIndex:{get:function(bw){var e=bw.getAttributeNode("tabIndex");return e&&e.specified?parseInt(e.value,10):H.test(bw.nodeName)||m.test(bw.nodeName)&&bw.href?0:O}},value:{get:function(bw,e){if(a4&&b.nodeName(bw,"button")){return a4.get(bw,e)}return e in bw?bw.value:null},set:function(bw,bx,e){if(a4&&b.nodeName(bw,"button")){return a4.set(bw,bx,e)}bw.value=bx}}},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(bA,by,bB){var bw=bA.nodeType;if(!bA||bw===3||bw===8||bw===2){return O}var bx,e,bz=bw!==1||!b.isXMLDoc(bA);if(bz){by=b.propFix[by]||by;e=b.propHooks[by]}if(bB!==O){if(e&&"set" in e&&(bx=e.set(bA,bB,by))!==O){return bx}else{return(bA[by]=bB)}}else{if(e&&"get" in e&&(bx=e.get(bA,by))!==O){return bx}else{return bA[by]}}},propHooks:{}});aY={get:function(bw,e){return b.prop(bw,e)?e.toLowerCase():O},set:function(bw,by,e){var bx;if(by===false){b.removeAttr(bw,e)}else{bx=b.propFix[e]||e;if(bx in bw){bw[bx]=true}bw.setAttribute(e,e.toLowerCase())}return e}};if(!b.support.getSetAttribute){b.attrFix=b.propFix;a4=b.attrHooks.name=b.attrHooks.title=b.valHooks.button={get:function(bx,bw){var e;e=bx.getAttributeNode(bw);return e&&e.nodeValue!==""?e.nodeValue:O},set:function(bx,by,bw){var e=bx.getAttributeNode(bw);if(e){e.nodeValue=by;return by}}};b.each(["width","height"],function(bw,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{set:function(bx,by){if(by===""){bx.setAttribute(e,"auto");return by}}})})}if(!b.support.hrefNormalized){b.each(["href","src","width","height"],function(bw,e){b.attrHooks[e]=b.extend(b.attrHooks[e],{get:function(by){var bx=by.getAttribute(e,2);return bx===null?O:bx}})})}if(!b.support.style){b.attrHooks.style={get:function(e){return e.style.cssText.toLowerCase()||O},set:function(e,bw){return(e.style.cssText=""+bw)}}}if(!b.support.optSelected){b.propHooks.selected=b.extend(b.propHooks.selected,{get:function(bw){var e=bw.parentNode;if(e){e.selectedIndex;if(e.parentNode){e.parentNode.selectedIndex}}}})}if(!b.support.checkOn){b.each(["radio","checkbox"],function(){b.valHooks[this]={get:function(e){return e.getAttribute("value")===null?"on":e.value}}})}b.each(["radio","checkbox"],function(){b.valHooks[this]=b.extend(b.valHooks[this],{set:function(e,bw){if(b.isArray(bw)){return(e.checked=b.inArray(b(e).val(),bw)>=0)}}})});var a0=/\.(.*)$/,bf=/^(?:textarea|input|select)$/i,R=/\./g,bj=/ /g,aG=/[^\w\s.|`]/g,K=function(e){return e.replace(aG,"\\$&")};b.event={add:function(by,bC,bH,bA){if(by.nodeType===3||by.nodeType===8){return}if(bH===false){bH=bl}else{if(!bH){return}}var bw,bG;if(bH.handler){bw=bH;bH=bw.handler}if(!bH.guid){bH.guid=b.guid++}var bD=b._data(by);if(!bD){return}var bI=bD.events,bB=bD.handle;if(!bI){bD.events=bI={}}if(!bB){bD.handle=bB=function(bJ){return typeof b!=="undefined"&&(!bJ||b.event.triggered!==bJ.type)?b.event.handle.apply(bB.elem,arguments):O}}bB.elem=by;bC=bC.split(" ");var bF,bz=0,e;while((bF=bC[bz++])){bG=bw?b.extend({},bw):{handler:bH,data:bA};if(bF.indexOf(".")>-1){e=bF.split(".");bF=e.shift();bG.namespace=e.slice(0).sort().join(".")}else{e=[];bG.namespace=""}bG.type=bF;if(!bG.guid){bG.guid=bH.guid}var bx=bI[bF],bE=b.event.special[bF]||{};if(!bx){bx=bI[bF]=[];if(!bE.setup||bE.setup.call(by,bA,e,bB)===false){if(by.addEventListener){by.addEventListener(bF,bB,false)}else{if(by.attachEvent){by.attachEvent("on"+bF,bB)}}}}if(bE.add){bE.add.call(by,bG);if(!bG.handler.guid){bG.handler.guid=bH.guid}}bx.push(bG);b.event.global[bF]=true}by=null},global:{},remove:function(bK,bF,bx,bB){if(bK.nodeType===3||bK.nodeType===8){return}if(bx===false){bx=bl}var bN,bA,bC,bH,bI=0,by,bD,bG,bz,bE,e,bM,bJ=b.hasData(bK)&&b._data(bK),bw=bJ&&bJ.events;if(!bJ||!bw){return}if(bF&&bF.type){bx=bF.handler;bF=bF.type}if(!bF||typeof bF==="string"&&bF.charAt(0)==="."){bF=bF||"";for(bA in bw){b.event.remove(bK,bA+bF)}return}bF=bF.split(" ");while((bA=bF[bI++])){bM=bA;e=null;by=bA.indexOf(".")<0;bD=[];if(!by){bD=bA.split(".");bA=bD.shift();bG=new RegExp("(^|\\.)"+b.map(bD.slice(0).sort(),K).join("\\.(?:.*\\.)?")+"(\\.|$)")}bE=bw[bA];if(!bE){continue}if(!bx){for(bH=0;bH<bE.length;bH++){e=bE[bH];if(by||bG.test(e.namespace)){b.event.remove(bK,bM,e.handler,bH);bE.splice(bH--,1)}}continue}bz=b.event.special[bA]||{};for(bH=bB||0;bH<bE.length;bH++){e=bE[bH];if(bx.guid===e.guid){if(by||bG.test(e.namespace)){if(bB==null){bE.splice(bH--,1)}if(bz.remove){bz.remove.call(bK,e)}}if(bB!=null){break}}}if(bE.length===0||bB!=null&&bE.length===1){if(!bz.teardown||bz.teardown.call(bK,bD)===false){b.removeEvent(bK,bA,bJ.handle)}bN=null;delete bw[bA]}}if(b.isEmptyObject(bw)){var bL=bJ.handle;if(bL){bL.elem=null}delete bJ.events;delete bJ.handle;if(b.isEmptyObject(bJ)){b.removeData(bK,O,true)}}},customEvent:{getData:true,setData:true,changeData:true},trigger:function(e,bC,bA,bH){var bF=e.type||e,bx=[],bw;if(bF.indexOf("!")>=0){bF=bF.slice(0,-1);bw=true}if(bF.indexOf(".")>=0){bx=bF.split(".");bF=bx.shift();bx.sort()}if((!bA||b.event.customEvent[bF])&&!b.event.global[bF]){return}e=typeof e==="object"?e[b.expando]?e:new b.Event(bF,e):new b.Event(bF);e.type=bF;e.exclusive=bw;e.namespace=bx.join(".");e.namespace_re=new RegExp("(^|\\.)"+bx.join("\\.(?:.*\\.)?")+"(\\.|$)");if(bH||!bA){e.preventDefault();e.stopPropagation()}if(!bA){b.each(b.cache,function(){var bJ=b.expando,bI=this[bJ];if(bI&&bI.events&&bI.events[bF]){b.event.trigger(e,bC,bI.handle.elem)}});return}if(bA.nodeType===3||bA.nodeType===8){return}e.result=O;e.target=bA;bC=bC!=null?b.makeArray(bC):[];bC.unshift(e);var bG=bA,by=bF.indexOf(":")<0?"on"+bF:"";do{var bD=b._data(bG,"handle");e.currentTarget=bG;if(bD){bD.apply(bG,bC)}if(by&&b.acceptData(bG)&&bG[by]&&bG[by].apply(bG,bC)===false){e.result=false;e.preventDefault()}bG=bG.parentNode||bG.ownerDocument||bG===e.target.ownerDocument&&bd}while(bG&&!e.isPropagationStopped());if(!e.isDefaultPrevented()){var bz,bE=b.event.special[bF]||{};if((!bE._default||bE._default.call(bA.ownerDocument,e)===false)&&!(bF==="click"&&b.nodeName(bA,"a"))&&b.acceptData(bA)){try{if(by&&bA[bF]){bz=bA[by];if(bz){bA[by]=null}b.event.triggered=bF;bA[bF]()}}catch(bB){}if(bz){bA[by]=bz}b.event.triggered=O}}return e.result},handle:function(bC){bC=b.event.fix(bC||bd.event);var bw=((b._data(this,"events")||{})[bC.type]||[]).slice(0),bB=!bC.exclusive&&!bC.namespace,bz=Array.prototype.slice.call(arguments,0);bz[0]=bC;bC.currentTarget=this;for(var by=0,e=bw.length;by<e;by++){var bA=bw[by];if(bB||bC.namespace_re.test(bA.namespace)){bC.handler=bA.handler;bC.data=bA.data;bC.handleObj=bA;var bx=bA.handler.apply(this,bz);if(bx!==O){bC.result=bx;if(bx===false){bC.preventDefault();bC.stopPropagation()}}if(bC.isImmediatePropagationStopped()){break}}}return bC.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(bz){if(bz[b.expando]){return bz}var bw=bz;bz=b.Event(bw);for(var bx=this.props.length,bB;bx;){bB=this.props[--bx];bz[bB]=bw[bB]}if(!bz.target){bz.target=bz.srcElement||av}if(bz.target.nodeType===3){bz.target=bz.target.parentNode}if(!bz.relatedTarget&&bz.fromElement){bz.relatedTarget=bz.fromElement===bz.target?bz.toElement:bz.fromElement}if(bz.pageX==null&&bz.clientX!=null){var by=bz.target.ownerDocument||av,bA=by.documentElement,e=by.body;bz.pageX=bz.clientX+(bA&&bA.scrollLeft||e&&e.scrollLeft||0)-(bA&&bA.clientLeft||e&&e.clientLeft||0);bz.pageY=bz.clientY+(bA&&bA.scrollTop||e&&e.scrollTop||0)-(bA&&bA.clientTop||e&&e.clientTop||0)}if(bz.which==null&&(bz.charCode!=null||bz.keyCode!=null)){bz.which=bz.charCode!=null?bz.charCode:bz.keyCode}if(!bz.metaKey&&bz.ctrlKey){bz.metaKey=bz.ctrlKey}if(!bz.which&&bz.button!==O){bz.which=(bz.button&1?1:(bz.button&2?3:(bz.button&4?2:0)))}return bz},guid:100000000,proxy:b.proxy,special:{ready:{setup:b.bindReady,teardown:b.noop},live:{add:function(e){b.event.add(this,r(e.origType,e.selector),b.extend({},e,{handler:am,guid:e.handler.guid}))},remove:function(e){b.event.remove(this,r(e.origType,e.selector),e)}},beforeunload:{setup:function(bx,bw,e){if(b.isWindow(this)){this.onbeforeunload=e}},teardown:function(bw,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}}};b.removeEvent=av.removeEventListener?function(bw,e,bx){if(bw.removeEventListener){bw.removeEventListener(e,bx,false)}}:function(bw,e,bx){if(bw.detachEvent){bw.detachEvent("on"+e,bx)}};b.Event=function(bw,e){if(!this.preventDefault){return new b.Event(bw,e)}if(bw&&bw.type){this.originalEvent=bw;this.type=bw.type;this.isDefaultPrevented=(bw.defaultPrevented||bw.returnValue===false||bw.getPreventDefault&&bw.getPreventDefault())?j:bl}else{this.type=bw}if(e){b.extend(this,e)}this.timeStamp=b.now();this[b.expando]=true};function bl(){return false}function j(){return true}b.Event.prototype={preventDefault:function(){this.isDefaultPrevented=j;var bw=this.originalEvent;if(!bw){return}if(bw.preventDefault){bw.preventDefault()}else{bw.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=j;var bw=this.originalEvent;if(!bw){return}if(bw.stopPropagation){bw.stopPropagation()}bw.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=j;this.stopPropagation()},isDefaultPrevented:bl,isPropagationStopped:bl,isImmediatePropagationStopped:bl};var af=function(bx){var by=bx.relatedTarget,e=false,bw=bx.type;bx.type=bx.data;if(by!==this){if(by){e=b.contains(this,by)}if(!e){b.event.handle.apply(this,arguments);bx.type=bw}}},aV=function(e){e.type=e.data;b.event.handle.apply(this,arguments)};b.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bw,e){b.event.special[bw]={setup:function(bx){b.event.add(this,e,bx&&bx.selector?aV:af,bw)},teardown:function(bx){b.event.remove(this,e,bx&&bx.selector?aV:af)}}});if(!b.support.submitBubbles){b.event.special.submit={setup:function(bw,e){if(!b.nodeName(this,"form")){b.event.add(this,"click.specialSubmit",function(bz){var by=bz.target,bx=by.type;if((bx==="submit"||bx==="image")&&b(by).closest("form").length){aX("submit",this,arguments)}});b.event.add(this,"keypress.specialSubmit",function(bz){var by=bz.target,bx=by.type;if((bx==="text"||bx==="password")&&b(by).closest("form").length&&bz.keyCode===13){aX("submit",this,arguments)}})}else{return false}},teardown:function(e){b.event.remove(this,".specialSubmit")}}}if(!b.support.changeBubbles){var bo,l=function(bw){var e=bw.type,bx=bw.value;if(e==="radio"||e==="checkbox"){bx=bw.checked}else{if(e==="select-multiple"){bx=bw.selectedIndex>-1?b.map(bw.options,function(by){return by.selected}).join("-"):""}else{if(b.nodeName(bw,"select")){bx=bw.selectedIndex}}}return bx},ad=function ad(by){var bw=by.target,bx,bz;if(!bf.test(bw.nodeName)||bw.readOnly){return}bx=b._data(bw,"_change_data");bz=l(bw);if(by.type!=="focusout"||bw.type!=="radio"){b._data(bw,"_change_data",bz)}if(bx===O||bz===bx){return}if(bx!=null||bz){by.type="change";by.liveFired=O;b.event.trigger(by,arguments[1],bw)}};b.event.special.change={filters:{focusout:ad,beforedeactivate:ad,click:function(by){var bx=by.target,bw=b.nodeName(bx,"input")?bx.type:"";if(bw==="radio"||bw==="checkbox"||b.nodeName(bx,"select")){ad.call(this,by)}},keydown:function(by){var bx=by.target,bw=b.nodeName(bx,"input")?bx.type:"";if((by.keyCode===13&&!b.nodeName(bx,"textarea"))||(by.keyCode===32&&(bw==="checkbox"||bw==="radio"))||bw==="select-multiple"){ad.call(this,by)}},beforeactivate:function(bx){var bw=bx.target;b._data(bw,"_change_data",l(bw))}},setup:function(bx,bw){if(this.type==="file"){return false}for(var e in bo){b.event.add(this,e+".specialChange",bo[e])}return bf.test(this.nodeName)},teardown:function(e){b.event.remove(this,".specialChange");return bf.test(this.nodeName)}};bo=b.event.special.change.filters;bo.focus=bo.beforeactivate}function aX(bw,by,e){var bx=b.extend({},e[0]);bx.type=bw;bx.originalEvent={};bx.liveFired=O;b.event.handle.call(by,bx);if(bx.isDefaultPrevented()){e[0].preventDefault()}}if(!b.support.focusinBubbles){b.each({focus:"focusin",blur:"focusout"},function(by,e){var bw=0;b.event.special[e]={setup:function(){if(bw++===0){av.addEventListener(by,bx,true)}},teardown:function(){if(--bw===0){av.removeEventListener(by,bx,true)}}};function bx(bz){var bA=b.event.fix(bz);bA.type=e;bA.originalEvent={};b.event.trigger(bA,null,bA.target);if(bA.isDefaultPrevented()){bz.preventDefault()}}})}b.each(["bind","one"],function(bw,e){b.fn[e]=function(bC,bD,bB){var bA;if(typeof bC==="object"){for(var bz in bC){this[e](bz,bD,bC[bz],bB)}return this}if(arguments.length===2||bD===false){bB=bD;bD=O}if(e==="one"){bA=function(bE){b(this).unbind(bE,bA);return bB.apply(this,arguments)};bA.guid=bB.guid||b.guid++}else{bA=bB}if(bC==="unload"&&e!=="one"){this.one(bC,bD,bB)}else{for(var by=0,bx=this.length;by<bx;by++){b.event.add(this[by],bC,bA,bD)}}return this}});b.fn.extend({unbind:function(bz,by){if(typeof bz==="object"&&!bz.preventDefault){for(var bx in bz){this.unbind(bx,bz[bx])}}else{for(var bw=0,e=this.length;bw<e;bw++){b.event.remove(this[bw],bz,by)}}return this},delegate:function(e,bw,by,bx){return this.live(bw,by,bx,e)},undelegate:function(e,bw,bx){if(arguments.length===0){return this.unbind("live")}else{return this.die(bw,null,bx,e)}},trigger:function(e,bw){return this.each(function(){b.event.trigger(e,bw,this)})},triggerHandler:function(e,bw){if(this[0]){return b.event.trigger(e,bw,this[0],true)}},toggle:function(by){var bw=arguments,e=by.guid||b.guid++,bx=0,bz=function(bA){var bB=(b.data(this,"lastToggle"+by.guid)||0)%bx;b.data(this,"lastToggle"+by.guid,bB+1);bA.preventDefault();return bw[bB].apply(this,arguments)||false};bz.guid=e;while(bx<bw.length){bw[bx++].guid=e}return this.click(bz)},hover:function(e,bw){return this.mouseenter(e).mouseleave(bw||e)}});var aT={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};b.each(["live","die"],function(bw,e){b.fn[e]=function(bG,bD,bI,bz){var bH,bE=0,bF,by,bK,bB=bz||this.selector,bx=bz?this:b(this.context);if(typeof bG==="object"&&!bG.preventDefault){for(var bJ in bG){bx[e](bJ,bD,bG[bJ],bB)}return this}if(e==="die"&&!bG&&bz&&bz.charAt(0)==="."){bx.unbind(bz);return this}if(bD===false||b.isFunction(bD)){bI=bD||bl;bD=O}bG=(bG||"").split(" ");while((bH=bG[bE++])!=null){bF=a0.exec(bH);by="";if(bF){by=bF[0];bH=bH.replace(a0,"")}if(bH==="hover"){bG.push("mouseenter"+by,"mouseleave"+by);continue}bK=bH;if(aT[bH]){bG.push(aT[bH]+by);bH=bH+by}else{bH=(aT[bH]||bH)+by}if(e==="live"){for(var bC=0,bA=bx.length;bC<bA;bC++){b.event.add(bx[bC],"live."+r(bH,bB),{data:bD,selector:bB,handler:bI,origType:bH,origHandler:bI,preType:bK})}}else{bx.unbind("live."+r(bH,bB),bI)}}return this}});function am(bG){var bD,by,bM,bA,e,bI,bF,bH,bE,bL,bC,bB,bK,bJ=[],bz=[],bw=b._data(this,"events");if(bG.liveFired===this||!bw||!bw.live||bG.target.disabled||bG.button&&bG.type==="click"){return}if(bG.namespace){bB=new RegExp("(^|\\.)"+bG.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}bG.liveFired=this;var bx=bw.live.slice(0);for(bF=0;bF<bx.length;bF++){e=bx[bF];if(e.origType.replace(a0,"")===bG.type){bz.push(e.selector)}else{bx.splice(bF--,1)}}bA=b(bG.target).closest(bz,bG.currentTarget);for(bH=0,bE=bA.length;bH<bE;bH++){bC=bA[bH];for(bF=0;bF<bx.length;bF++){e=bx[bF];if(bC.selector===e.selector&&(!bB||bB.test(e.namespace))&&!bC.elem.disabled){bI=bC.elem;bM=null;if(e.preType==="mouseenter"||e.preType==="mouseleave"){bG.type=e.preType;bM=b(bG.relatedTarget).closest(e.selector)[0];if(bM&&b.contains(bI,bM)){bM=bI}}if(!bM||bM!==bI){bJ.push({elem:bI,handleObj:e,level:bC.level})}}}}for(bH=0,bE=bJ.length;bH<bE;bH++){bA=bJ[bH];if(by&&bA.level>by){break}bG.currentTarget=bA.elem;bG.data=bA.handleObj.data;bG.handleObj=bA.handleObj;bK=bA.handleObj.origHandler.apply(bA.elem,arguments);if(bK===false||bG.isPropagationStopped()){by=bA.level;if(bK===false){bD=false}if(bG.isImmediatePropagationStopped()){break}}}return bD}function r(bw,e){return(bw&&bw!=="*"?bw+".":"")+e.replace(R,"`").replace(bj,"&")}b.each(("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error").split(" "),function(bw,e){b.fn[e]=function(by,bx){if(bx==null){bx=by;by=null}return arguments.length>0?this.bind(e,by,bx):this.trigger(e)};if(b.attrFn){b.attrFn[e]=true}});
/*
 * Sizzle CSS Selector Engine
 *  Copyright 2011, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var bG=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bH=0,bK=Object.prototype.toString,bB=false,bA=true,bI=/\\/g,bO=/\W/;[0,0].sort(function(){bA=false;return 0});var by=function(bT,e,bW,bX){bW=bW||[];e=e||av;var bZ=e;if(e.nodeType!==1&&e.nodeType!==9){return[]}if(!bT||typeof bT!=="string"){return bW}var bQ,b1,b4,bP,b0,b3,b2,bV,bS=true,bR=by.isXML(e),bU=[],bY=bT;do{bG.exec("");bQ=bG.exec(bY);if(bQ){bY=bQ[3];bU.push(bQ[1]);if(bQ[2]){bP=bQ[3];break}}}while(bQ);if(bU.length>1&&bC.exec(bT)){if(bU.length===2&&bD.relative[bU[0]]){b1=bL(bU[0]+bU[1],e)}else{b1=bD.relative[bU[0]]?[e]:by(bU.shift(),e);while(bU.length){bT=bU.shift();if(bD.relative[bT]){bT+=bU.shift()}b1=bL(bT,b1)}}}else{if(!bX&&bU.length>1&&e.nodeType===9&&!bR&&bD.match.ID.test(bU[0])&&!bD.match.ID.test(bU[bU.length-1])){b0=by.find(bU.shift(),e,bR);e=b0.expr?by.filter(b0.expr,b0.set)[0]:b0.set[0]}if(e){b0=bX?{expr:bU.pop(),set:bE(bX)}:by.find(bU.pop(),bU.length===1&&(bU[0]==="~"||bU[0]==="+")&&e.parentNode?e.parentNode:e,bR);b1=b0.expr?by.filter(b0.expr,b0.set):b0.set;if(bU.length>0){b4=bE(b1)}else{bS=false}while(bU.length){b3=bU.pop();b2=b3;if(!bD.relative[b3]){b3=""}else{b2=bU.pop()}if(b2==null){b2=e}bD.relative[b3](b4,b2,bR)}}else{b4=bU=[]}}if(!b4){b4=b1}if(!b4){by.error(b3||bT)}if(bK.call(b4)==="[object Array]"){if(!bS){bW.push.apply(bW,b4)}else{if(e&&e.nodeType===1){for(bV=0;b4[bV]!=null;bV++){if(b4[bV]&&(b4[bV]===true||b4[bV].nodeType===1&&by.contains(e,b4[bV]))){bW.push(b1[bV])}}}else{for(bV=0;b4[bV]!=null;bV++){if(b4[bV]&&b4[bV].nodeType===1){bW.push(b1[bV])}}}}}else{bE(b4,bW)}if(bP){by(bP,bZ,bW,bX);by.uniqueSort(bW)}return bW};by.uniqueSort=function(bP){if(bJ){bB=bA;bP.sort(bJ);if(bB){for(var e=1;e<bP.length;e++){if(bP[e]===bP[e-1]){bP.splice(e--,1)}}}}return bP};by.matches=function(e,bP){return by(e,null,null,bP)};by.matchesSelector=function(e,bP){return by(bP,null,null,[e]).length>0};by.find=function(bV,e,bW){var bU;if(!bV){return[]}for(var bR=0,bQ=bD.order.length;bR<bQ;bR++){var bS,bT=bD.order[bR];if((bS=bD.leftMatch[bT].exec(bV))){var bP=bS[1];bS.splice(1,1);if(bP.substr(bP.length-1)!=="\\"){bS[1]=(bS[1]||"").replace(bI,"");bU=bD.find[bT](bS,e,bW);if(bU!=null){bV=bV.replace(bD.match[bT],"");break}}}}if(!bU){bU=typeof e.getElementsByTagName!=="undefined"?e.getElementsByTagName("*"):[]}return{set:bU,expr:bV}};by.filter=function(bZ,bY,b2,bS){var bU,e,bQ=bZ,b4=[],bW=bY,bV=bY&&bY[0]&&by.isXML(bY[0]);while(bZ&&bY.length){for(var bX in bD.filter){if((bU=bD.leftMatch[bX].exec(bZ))!=null&&bU[2]){var b3,b1,bP=bD.filter[bX],bR=bU[1];e=false;bU.splice(1,1);if(bR.substr(bR.length-1)==="\\"){continue}if(bW===b4){b4=[]}if(bD.preFilter[bX]){bU=bD.preFilter[bX](bU,bW,b2,b4,bS,bV);if(!bU){e=b3=true}else{if(bU===true){continue}}}if(bU){for(var bT=0;(b1=bW[bT])!=null;bT++){if(b1){b3=bP(b1,bU,bT,bW);var b0=bS^!!b3;if(b2&&b3!=null){if(b0){e=true}else{bW[bT]=false}}else{if(b0){b4.push(b1);e=true}}}}}if(b3!==O){if(!b2){bW=b4}bZ=bZ.replace(bD.match[bX],"");if(!e){return[]}break}}}if(bZ===bQ){if(e==null){by.error(bZ)}else{break}}bQ=bZ}return bW};by.error=function(e){throw"Syntax error, unrecognized expression: "+e};var bD=by.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(bU,bP){var bR=typeof bP==="string",bT=bR&&!bO.test(bP),bV=bR&&!bT;if(bT){bP=bP.toLowerCase()}for(var bQ=0,e=bU.length,bS;bQ<e;bQ++){if((bS=bU[bQ])){while((bS=bS.previousSibling)&&bS.nodeType!==1){}bU[bQ]=bV||bS&&bS.nodeName.toLowerCase()===bP?bS||false:bS===bP}}if(bV){by.filter(bP,bU,true)}},">":function(bU,bP){var bT,bS=typeof bP==="string",bQ=0,e=bU.length;if(bS&&!bO.test(bP)){bP=bP.toLowerCase();for(;bQ<e;bQ++){bT=bU[bQ];if(bT){var bR=bT.parentNode;bU[bQ]=bR.nodeName.toLowerCase()===bP?bR:false}}}else{for(;bQ<e;bQ++){bT=bU[bQ];if(bT){bU[bQ]=bS?bT.parentNode:bT.parentNode===bP}}if(bS){by.filter(bP,bU,true)}}},"":function(bR,bP,bT){var bS,bQ=bH++,e=bM;if(typeof bP==="string"&&!bO.test(bP)){bP=bP.toLowerCase();bS=bP;e=bw}e("parentNode",bP,bQ,bR,bS,bT)},"~":function(bR,bP,bT){var bS,bQ=bH++,e=bM;if(typeof bP==="string"&&!bO.test(bP)){bP=bP.toLowerCase();bS=bP;e=bw}e("previousSibling",bP,bQ,bR,bS,bT)}},find:{ID:function(bP,bQ,bR){if(typeof bQ.getElementById!=="undefined"&&!bR){var e=bQ.getElementById(bP[1]);return e&&e.parentNode?[e]:[]}},NAME:function(bQ,bT){if(typeof bT.getElementsByName!=="undefined"){var bP=[],bS=bT.getElementsByName(bQ[1]);for(var bR=0,e=bS.length;bR<e;bR++){if(bS[bR].getAttribute("name")===bQ[1]){bP.push(bS[bR])}}return bP.length===0?null:bP}},TAG:function(e,bP){if(typeof bP.getElementsByTagName!=="undefined"){return bP.getElementsByTagName(e[1])}}},preFilter:{CLASS:function(bR,bP,bQ,e,bU,bV){bR=" "+bR[1].replace(bI,"")+" ";if(bV){return bR}for(var bS=0,bT;(bT=bP[bS])!=null;bS++){if(bT){if(bU^(bT.className&&(" "+bT.className+" ").replace(/[\t\n\r]/g," ").indexOf(bR)>=0)){if(!bQ){e.push(bT)}}else{if(bQ){bP[bS]=false}}}}return false},ID:function(e){return e[1].replace(bI,"")},TAG:function(bP,e){return bP[1].replace(bI,"").toLowerCase()},CHILD:function(e){if(e[1]==="nth"){if(!e[2]){by.error(e[0])}e[2]=e[2].replace(/^\+|\s*/g,"");var bP=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(e[2]==="even"&&"2n"||e[2]==="odd"&&"2n+1"||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=(bP[1]+(bP[2]||1))-0;e[3]=bP[3]-0}else{if(e[2]){by.error(e[0])}}e[0]=bH++;return e},ATTR:function(bS,bP,bQ,e,bT,bU){var bR=bS[1]=bS[1].replace(bI,"");if(!bU&&bD.attrMap[bR]){bS[1]=bD.attrMap[bR]}bS[4]=(bS[4]||bS[5]||"").replace(bI,"");if(bS[2]==="~="){bS[4]=" "+bS[4]+" "}return bS},PSEUDO:function(bS,bP,bQ,e,bT){if(bS[1]==="not"){if((bG.exec(bS[3])||"").length>1||/^\w/.test(bS[3])){bS[3]=by(bS[3],null,null,bP)}else{var bR=by.filter(bS[3],bP,bQ,true^bT);if(!bQ){e.push.apply(e,bR)}return false}}else{if(bD.match.POS.test(bS[0])||bD.match.CHILD.test(bS[0])){return true}}return bS},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(bQ,bP,e){return !!by(e[3],bQ).length},header:function(e){return(/h\d/i).test(e.nodeName)},text:function(bQ){var e=bQ.getAttribute("type"),bP=bQ.type;return bQ.nodeName.toLowerCase()==="input"&&"text"===bP&&(e===bP||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(bP){var e=bP.nodeName.toLowerCase();return(e==="input"||e==="button")&&"submit"===bP.type},image:function(e){return e.nodeName.toLowerCase()==="input"&&"image"===e.type},reset:function(bP){var e=bP.nodeName.toLowerCase();return(e==="input"||e==="button")&&"reset"===bP.type},button:function(bP){var e=bP.nodeName.toLowerCase();return e==="input"&&"button"===bP.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(bP,e){return e===0},last:function(bQ,bP,e,bR){return bP===bR.length-1},even:function(bP,e){return e%2===0},odd:function(bP,e){return e%2===1},lt:function(bQ,bP,e){return bP<e[3]-0},gt:function(bQ,bP,e){return bP>e[3]-0},nth:function(bQ,bP,e){return e[3]-0===bP},eq:function(bQ,bP,e){return e[3]-0===bP}},filter:{PSEUDO:function(bQ,bV,bU,bW){var e=bV[1],bP=bD.filters[e];if(bP){return bP(bQ,bU,bV,bW)}else{if(e==="contains"){return(bQ.textContent||bQ.innerText||by.getText([bQ])||"").indexOf(bV[3])>=0}else{if(e==="not"){var bR=bV[3];for(var bT=0,bS=bR.length;bT<bS;bT++){if(bR[bT]===bQ){return false}}return true}else{by.error(e)}}}},CHILD:function(e,bR){var bU=bR[1],bP=e;switch(bU){case"only":case"first":while((bP=bP.previousSibling)){if(bP.nodeType===1){return false}}if(bU==="first"){return true}bP=e;case"last":while((bP=bP.nextSibling)){if(bP.nodeType===1){return false}}return true;case"nth":var bQ=bR[2],bX=bR[3];if(bQ===1&&bX===0){return true}var bT=bR[0],bW=e.parentNode;if(bW&&(bW.sizcache!==bT||!e.nodeIndex)){var bS=0;for(bP=bW.firstChild;bP;bP=bP.nextSibling){if(bP.nodeType===1){bP.nodeIndex=++bS}}bW.sizcache=bT}var bV=e.nodeIndex-bX;if(bQ===0){return bV===0}else{return(bV%bQ===0&&bV/bQ>=0)}}},ID:function(bP,e){return bP.nodeType===1&&bP.getAttribute("id")===e},TAG:function(bP,e){return(e==="*"&&bP.nodeType===1)||bP.nodeName.toLowerCase()===e},CLASS:function(bP,e){return(" "+(bP.className||bP.getAttribute("class"))+" ").indexOf(e)>-1},ATTR:function(bT,bR){var bQ=bR[1],e=bD.attrHandle[bQ]?bD.attrHandle[bQ](bT):bT[bQ]!=null?bT[bQ]:bT.getAttribute(bQ),bU=e+"",bS=bR[2],bP=bR[4];return e==null?bS==="!=":bS==="="?bU===bP:bS==="*="?bU.indexOf(bP)>=0:bS==="~="?(" "+bU+" ").indexOf(bP)>=0:!bP?bU&&e!==false:bS==="!="?bU!==bP:bS==="^="?bU.indexOf(bP)===0:bS==="$="?bU.substr(bU.length-bP.length)===bP:bS==="|="?bU===bP||bU.substr(0,bP.length+1)===bP+"-":false},POS:function(bS,bP,bQ,bT){var e=bP[2],bR=bD.setFilters[e];if(bR){return bR(bS,bQ,bP,bT)}}}};var bC=bD.match.POS,bx=function(bP,e){return"\\"+(e-0+1)};for(var bz in bD.match){bD.match[bz]=new RegExp(bD.match[bz].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bD.leftMatch[bz]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bD.match[bz].source.replace(/\\(\d+)/g,bx))}var bE=function(bP,e){bP=Array.prototype.slice.call(bP,0);if(e){e.push.apply(e,bP);return e}return bP};try{Array.prototype.slice.call(av.documentElement.childNodes,0)[0].nodeType}catch(bN){bE=function(bS,bR){var bQ=0,bP=bR||[];if(bK.call(bS)==="[object Array]"){Array.prototype.push.apply(bP,bS)}else{if(typeof bS.length==="number"){for(var e=bS.length;bQ<e;bQ++){bP.push(bS[bQ])}}else{for(;bS[bQ];bQ++){bP.push(bS[bQ])}}}return bP}}var bJ,bF;if(av.documentElement.compareDocumentPosition){bJ=function(bP,e){if(bP===e){bB=true;return 0}if(!bP.compareDocumentPosition||!e.compareDocumentPosition){return bP.compareDocumentPosition?-1:1}return bP.compareDocumentPosition(e)&4?-1:1}}else{bJ=function(bW,bV){if(bW===bV){bB=true;return 0}else{if(bW.sourceIndex&&bV.sourceIndex){return bW.sourceIndex-bV.sourceIndex}}var bT,bP,bQ=[],e=[],bS=bW.parentNode,bU=bV.parentNode,bX=bS;if(bS===bU){return bF(bW,bV)}else{if(!bS){return -1}else{if(!bU){return 1}}}while(bX){bQ.unshift(bX);bX=bX.parentNode}bX=bU;while(bX){e.unshift(bX);bX=bX.parentNode}bT=bQ.length;bP=e.length;for(var bR=0;bR<bT&&bR<bP;bR++){if(bQ[bR]!==e[bR]){return bF(bQ[bR],e[bR])}}return bR===bT?bF(bW,e[bR],-1):bF(bQ[bR],bV,1)};bF=function(bP,e,bQ){if(bP===e){return bQ}var bR=bP.nextSibling;while(bR){if(bR===e){return -1}bR=bR.nextSibling}return 1}}by.getText=function(e){var bP="",bR;for(var bQ=0;e[bQ];bQ++){bR=e[bQ];if(bR.nodeType===3||bR.nodeType===4){bP+=bR.nodeValue}else{if(bR.nodeType!==8){bP+=by.getText(bR.childNodes)}}}return bP};(function(){var bP=av.createElement("div"),bQ="script"+(new Date()).getTime(),e=av.documentElement;bP.innerHTML="<a name='"+bQ+"'/>";e.insertBefore(bP,e.firstChild);if(av.getElementById(bQ)){bD.find.ID=function(bS,bT,bU){if(typeof bT.getElementById!=="undefined"&&!bU){var bR=bT.getElementById(bS[1]);return bR?bR.id===bS[1]||typeof bR.getAttributeNode!=="undefined"&&bR.getAttributeNode("id").nodeValue===bS[1]?[bR]:O:[]}};bD.filter.ID=function(bT,bR){var bS=typeof bT.getAttributeNode!=="undefined"&&bT.getAttributeNode("id");return bT.nodeType===1&&bS&&bS.nodeValue===bR}}e.removeChild(bP);e=bP=null})();(function(){var e=av.createElement("div");e.appendChild(av.createComment(""));if(e.getElementsByTagName("*").length>0){bD.find.TAG=function(bP,bT){var bS=bT.getElementsByTagName(bP[1]);if(bP[1]==="*"){var bR=[];for(var bQ=0;bS[bQ];bQ++){if(bS[bQ].nodeType===1){bR.push(bS[bQ])}}bS=bR}return bS}}e.innerHTML="<a href='#'></a>";if(e.firstChild&&typeof e.firstChild.getAttribute!=="undefined"&&e.firstChild.getAttribute("href")!=="#"){bD.attrHandle.href=function(bP){return bP.getAttribute("href",2)}}e=null})();if(av.querySelectorAll){(function(){var e=by,bR=av.createElement("div"),bQ="__sizzle__";bR.innerHTML="<p class='TEST'></p>";if(bR.querySelectorAll&&bR.querySelectorAll(".TEST").length===0){return}by=function(b2,bT,bX,b1){bT=bT||av;if(!b1&&!by.isXML(bT)){var b0=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b2);if(b0&&(bT.nodeType===1||bT.nodeType===9)){if(b0[1]){return bE(bT.getElementsByTagName(b2),bX)}else{if(b0[2]&&bD.find.CLASS&&bT.getElementsByClassName){return bE(bT.getElementsByClassName(b0[2]),bX)}}}if(bT.nodeType===9){if(b2==="body"&&bT.body){return bE([bT.body],bX)}else{if(b0&&b0[3]){var bW=bT.getElementById(b0[3]);if(bW&&bW.parentNode){if(bW.id===b0[3]){return bE([bW],bX)}}else{return bE([],bX)}}}try{return bE(bT.querySelectorAll(b2),bX)}catch(bY){}}else{if(bT.nodeType===1&&bT.nodeName.toLowerCase()!=="object"){var bU=bT,bV=bT.getAttribute("id"),bS=bV||bQ,b4=bT.parentNode,b3=/^\s*[+~]/.test(b2);if(!bV){bT.setAttribute("id",bS)}else{bS=bS.replace(/'/g,"\\$&")}if(b3&&b4){bT=bT.parentNode}try{if(!b3||b4){return bE(bT.querySelectorAll("[id='"+bS+"'] "+b2),bX)}}catch(bZ){}finally{if(!bV){bU.removeAttribute("id")}}}}}return e(b2,bT,bX,b1)};for(var bP in e){by[bP]=e[bP]}bR=null})()}(function(){var e=av.documentElement,bQ=e.matchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.msMatchesSelector;if(bQ){var bS=!bQ.call(av.createElement("div"),"div"),bP=false;try{bQ.call(av.documentElement,"[test!='']:sizzle")}catch(bR){bP=true}by.matchesSelector=function(bU,bW){bW=bW.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!by.isXML(bU)){try{if(bP||!bD.match.PSEUDO.test(bW)&&!/!=/.test(bW)){var bT=bQ.call(bU,bW);if(bT||!bS||bU.document&&bU.document.nodeType!==11){return bT}}}catch(bV){}}return by(bW,null,null,[bU]).length>0}}})();(function(){var e=av.createElement("div");e.innerHTML="<div class='test e'></div><div class='test'></div>";if(!e.getElementsByClassName||e.getElementsByClassName("e").length===0){return}e.lastChild.className="e";if(e.getElementsByClassName("e").length===1){return}bD.order.splice(1,0,"CLASS");bD.find.CLASS=function(bP,bQ,bR){if(typeof bQ.getElementsByClassName!=="undefined"&&!bR){return bQ.getElementsByClassName(bP[1])}};e=null})();function bw(bP,bU,bT,bX,bV,bW){for(var bR=0,bQ=bX.length;bR<bQ;bR++){var e=bX[bR];if(e){var bS=false;e=e[bP];while(e){if(e.sizcache===bT){bS=bX[e.sizset];break}if(e.nodeType===1&&!bW){e.sizcache=bT;e.sizset=bR}if(e.nodeName.toLowerCase()===bU){bS=e;break}e=e[bP]}bX[bR]=bS}}}function bM(bP,bU,bT,bX,bV,bW){for(var bR=0,bQ=bX.length;bR<bQ;bR++){var e=bX[bR];if(e){var bS=false;e=e[bP];while(e){if(e.sizcache===bT){bS=bX[e.sizset];break}if(e.nodeType===1){if(!bW){e.sizcache=bT;e.sizset=bR}if(typeof bU!=="string"){if(e===bU){bS=true;break}}else{if(by.filter(bU,[e]).length>0){bS=e;break}}}e=e[bP]}bX[bR]=bS}}}if(av.documentElement.contains){by.contains=function(bP,e){return bP!==e&&(bP.contains?bP.contains(e):true)}}else{if(av.documentElement.compareDocumentPosition){by.contains=function(bP,e){return !!(bP.compareDocumentPosition(e)&16)}}else{by.contains=function(){return false}}}by.isXML=function(e){var bP=(e?e.ownerDocument||e:0).documentElement;return bP?bP.nodeName!=="HTML":false};var bL=function(e,bV){var bT,bR=[],bS="",bQ=bV.nodeType?[bV]:bV;while((bT=bD.match.PSEUDO.exec(e))){bS+=bT[0];e=e.replace(bD.match.PSEUDO,"")}e=bD.relative[e]?e+"*":e;for(var bU=0,bP=bQ.length;bU<bP;bU++){by(e,bQ[bU],bR)}return by.filter(bS,bR)};b.find=by;b.expr=by.selectors;b.expr[":"]=b.expr.filters;b.unique=by.uniqueSort;b.text=by.getText;b.isXMLDoc=by.isXML;b.contains=by.contains})();var ac=/Until$/,aq=/^(?:parents|prevUntil|prevAll)/,bb=/,/,br=/^.[^:#\[\.,]*$/,T=Array.prototype.slice,L=b.expr.match.POS,ay={children:true,contents:true,next:true,prev:true};b.fn.extend({find:function(e){var bx=this,bz,bw;if(typeof e!=="string"){return b(e).filter(function(){for(bz=0,bw=bx.length;bz<bw;bz++){if(b.contains(bx[bz],this)){return true}}})}var by=this.pushStack("","find",e),bB,bC,bA;for(bz=0,bw=this.length;bz<bw;bz++){bB=by.length;b.find(e,this[bz],by);if(bz>0){for(bC=bB;bC<by.length;bC++){for(bA=0;bA<bB;bA++){if(by[bA]===by[bC]){by.splice(bC--,1);break}}}}}return by},has:function(bw){var e=b(bw);return this.filter(function(){for(var by=0,bx=e.length;by<bx;by++){if(b.contains(this,e[by])){return true}}})},not:function(e){return this.pushStack(aF(this,e,false),"not",e)},filter:function(e){return this.pushStack(aF(this,e,true),"filter",e)},is:function(e){return !!e&&(typeof e==="string"?b.filter(e,this).length>0:this.filter(e).length>0)},closest:function(bF,bw){var bC=[],bz,bx,bE=this[0];if(b.isArray(bF)){var bB,by,bA={},e=1;if(bE&&bF.length){for(bz=0,bx=bF.length;bz<bx;bz++){by=bF[bz];if(!bA[by]){bA[by]=L.test(by)?b(by,bw||this.context):by}}while(bE&&bE.ownerDocument&&bE!==bw){for(by in bA){bB=bA[by];if(bB.jquery?bB.index(bE)>-1:b(bE).is(bB)){bC.push({selector:by,elem:bE,level:e})}}bE=bE.parentNode;e++}}return bC}var bD=L.test(bF)||typeof bF!=="string"?b(bF,bw||this.context):0;for(bz=0,bx=this.length;bz<bx;bz++){bE=this[bz];while(bE){if(bD?bD.index(bE)>-1:b.find.matchesSelector(bE,bF)){bC.push(bE);break}else{bE=bE.parentNode;if(!bE||!bE.ownerDocument||bE===bw||bE.nodeType===11){break}}}}bC=bC.length>1?b.unique(bC):bC;return this.pushStack(bC,"closest",bF)},index:function(e){if(!e||typeof e==="string"){return b.inArray(this[0],e?b(e):this.parent().children())}return b.inArray(e.jquery?e[0]:e,this)},add:function(e,bw){var by=typeof e==="string"?b(e,bw):b.makeArray(e&&e.nodeType?[e]:e),bx=b.merge(this.get(),by);return this.pushStack(G(by[0])||G(bx[0])?bx:b.unique(bx))},andSelf:function(){return this.add(this.prevObject)}});function G(e){return !e||!e.parentNode||e.parentNode.nodeType===11}b.each({parent:function(bw){var e=bw.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return b.dir(e,"parentNode")},parentsUntil:function(bw,e,bx){return b.dir(bw,"parentNode",bx)},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(bw,e,bx){return b.dir(bw,"nextSibling",bx)},prevUntil:function(bw,e,bx){return b.dir(bw,"previousSibling",bx)},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,bw){b.fn[e]=function(bA,bx){var bz=b.map(this,bw,bA),by=T.call(arguments);if(!ac.test(e)){bx=bA}if(bx&&typeof bx==="string"){bz=b.filter(bx,bz)}bz=this.length>1&&!ay[e]?b.unique(bz):bz;if((this.length>1||bb.test(bx))&&aq.test(e)){bz=bz.reverse()}return this.pushStack(bz,e,by.join(","))}});b.extend({filter:function(bx,e,bw){if(bw){bx=":not("+bx+")"}return e.length===1?b.find.matchesSelector(e[0],bx)?[e[0]]:[]:b.find.matches(bx,e)},dir:function(bx,bw,bz){var e=[],by=bx[bw];while(by&&by.nodeType!==9&&(bz===O||by.nodeType!==1||!b(by).is(bz))){if(by.nodeType===1){e.push(by)}by=by[bw]}return e},nth:function(bz,e,bx,by){e=e||1;var bw=0;for(;bz;bz=bz[bx]){if(bz.nodeType===1&&++bw===e){break}}return bz},sibling:function(bx,bw){var e=[];for(;bx;bx=bx.nextSibling){if(bx.nodeType===1&&bx!==bw){e.push(bx)}}return e}});function aF(by,bx,e){bx=bx||0;if(b.isFunction(bx)){return b.grep(by,function(bA,bz){var bB=!!bx.call(bA,bz,bA);return bB===e})}else{if(bx.nodeType){return b.grep(by,function(bA,bz){return(bA===bx)===e})}else{if(typeof bx==="string"){var bw=b.grep(by,function(bz){return bz.nodeType===1});if(br.test(bx)){return b.filter(bx,bw,!e)}else{bx=b.filter(bx,bw)}}}}return b.grep(by,function(bA,bz){return(b.inArray(bA,bx)>=0)===e})}var ah=/ jQuery\d+="(?:\d+|null)"/g,ar=/^\s+/,W=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,d=/<([\w:]+)/,z=/<tbody/i,Z=/<|&#?\w+;/,S=/<(?:script|object|embed|option|style)/i,p=/checked\s*(?:[^=]|=\s*.checked.)/i,bn=/\/(java|ecma)script/i,aN=/^\s*<!(?:\[CDATA\[|\-\-)/,ax={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};ax.optgroup=ax.option;ax.tbody=ax.tfoot=ax.colgroup=ax.caption=ax.thead;ax.th=ax.td;if(!b.support.htmlSerialize){ax._default=[1,"div<div>","</div>"]}b.fn.extend({text:function(e){if(b.isFunction(e)){return this.each(function(bx){var bw=b(this);bw.text(e.call(this,bx,bw.text()))})}if(typeof e!=="object"&&e!==O){return this.empty().append((this[0]&&this[0].ownerDocument||av).createTextNode(e))}return b.text(this)},wrapAll:function(e){if(b.isFunction(e)){return this.each(function(bx){b(this).wrapAll(e.call(this,bx))})}if(this[0]){var bw=b(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bw.insertBefore(this[0])}bw.map(function(){var bx=this;while(bx.firstChild&&bx.firstChild.nodeType===1){bx=bx.firstChild}return bx}).append(this)}return this},wrapInner:function(e){if(b.isFunction(e)){return this.each(function(bw){b(this).wrapInner(e.call(this,bw))})}return this.each(function(){var bw=b(this),bx=bw.contents();if(bx.length){bx.wrapAll(e)}else{bw.append(e)}})},wrap:function(e){return this.each(function(){b(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){if(!b.nodeName(this,"body")){b(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.appendChild(e)}})},prepend:function(){return this.domManip(arguments,true,function(e){if(this.nodeType===1){this.insertBefore(e,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this)})}else{if(arguments.length){var e=b(arguments[0]);e.push.apply(e,this.toArray());return this.pushStack(e,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(bw){this.parentNode.insertBefore(bw,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,b(arguments[0]).toArray());return e}}},remove:function(e,by){for(var bw=0,bx;(bx=this[bw])!=null;bw++){if(!e||b.filter(e,[bx]).length){if(!by&&bx.nodeType===1){b.cleanData(bx.getElementsByTagName("*"));b.cleanData([bx])}if(bx.parentNode){bx.parentNode.removeChild(bx)}}}return this},empty:function(){for(var e=0,bw;(bw=this[e])!=null;e++){if(bw.nodeType===1){b.cleanData(bw.getElementsByTagName("*"))}while(bw.firstChild){bw.removeChild(bw.firstChild)}}return this},clone:function(bw,e){bw=bw==null?false:bw;e=e==null?bw:e;return this.map(function(){return b.clone(this,bw,e)})},html:function(by){if(by===O){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(ah,""):null}else{if(typeof by==="string"&&!S.test(by)&&(b.support.leadingWhitespace||!ar.test(by))&&!ax[(d.exec(by)||["",""])[1].toLowerCase()]){by=by.replace(W,"<$1></$2>");try{for(var bx=0,bw=this.length;bx<bw;bx++){if(this[bx].nodeType===1){b.cleanData(this[bx].getElementsByTagName("*"));this[bx].innerHTML=by}}}catch(bz){this.empty().append(by)}}else{if(b.isFunction(by)){this.each(function(bA){var e=b(this);e.html(by.call(this,bA,e.html()))})}else{this.empty().append(by)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(b.isFunction(e)){return this.each(function(by){var bx=b(this),bw=bx.html();bx.replaceWith(e.call(this,by,bw))})}if(typeof e!=="string"){e=b(e).detach()}return this.each(function(){var bx=this.nextSibling,bw=this.parentNode;b(this).remove();if(bx){b(bx).before(e)}else{b(bw).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(bC,bG,bF){var by,bz,bB,bE,bD=bC[0],bw=[];if(!b.support.checkClone&&arguments.length===3&&typeof bD==="string"&&p.test(bD)){return this.each(function(){b(this).domManip(bC,bG,bF,true)})}if(b.isFunction(bD)){return this.each(function(bI){var bH=b(this);bC[0]=bD.call(this,bI,bG?bH.html():O);bH.domManip(bC,bG,bF)})}if(this[0]){bE=bD&&bD.parentNode;if(b.support.parentNode&&bE&&bE.nodeType===11&&bE.childNodes.length===this.length){by={fragment:bE}}else{by=b.buildFragment(bC,this,bw)}bB=by.fragment;if(bB.childNodes.length===1){bz=bB=bB.firstChild}else{bz=bB.firstChild}if(bz){bG=bG&&b.nodeName(bz,"tr");for(var bx=0,e=this.length,bA=e-1;bx<e;bx++){bF.call(bG?bc(this[bx],bz):this[bx],by.cacheable||(e>1&&bx<bA)?b.clone(bB,true,true):bB)}}if(bw.length){b.each(bw,bq)}}return this}});function bc(e,bw){return b.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function w(e,bC){if(bC.nodeType!==1||!b.hasData(e)){return}var bB=b.expando,by=b.data(e),bz=b.data(bC,by);if((by=by[bB])){var bD=by.events;bz=bz[bB]=b.extend({},by);if(bD){delete bz.handle;bz.events={};for(var bA in bD){for(var bx=0,bw=bD[bA].length;bx<bw;bx++){b.event.add(bC,bA+(bD[bA][bx].namespace?".":"")+bD[bA][bx].namespace,bD[bA][bx],bD[bA][bx].data)}}}}}function ai(bw,e){var bx;if(e.nodeType!==1){return}if(e.clearAttributes){e.clearAttributes()}if(e.mergeAttributes){e.mergeAttributes(bw)}bx=e.nodeName.toLowerCase();if(bx==="object"){e.outerHTML=bw.outerHTML}else{if(bx==="input"&&(bw.type==="checkbox"||bw.type==="radio")){if(bw.checked){e.defaultChecked=e.checked=bw.checked}if(e.value!==bw.value){e.value=bw.value}}else{if(bx==="option"){e.selected=bw.defaultSelected}else{if(bx==="input"||bx==="textarea"){e.defaultValue=bw.defaultValue}}}}e.removeAttribute(b.expando)}b.buildFragment=function(bA,by,bw){var bz,e,bx,bB;if(by&&by[0]){bB=by[0].ownerDocument||by[0]}if(!bB.createDocumentFragment){bB=av}if(bA.length===1&&typeof bA[0]==="string"&&bA[0].length<512&&bB===av&&bA[0].charAt(0)==="<"&&!S.test(bA[0])&&(b.support.checkClone||!p.test(bA[0]))){e=true;bx=b.fragments[bA[0]];if(bx&&bx!==1){bz=bx}}if(!bz){bz=bB.createDocumentFragment();b.clean(bA,bB,bz,bw)}if(e){b.fragments[bA[0]]=bx?bz:1}return{fragment:bz,cacheable:e}};b.fragments={};b.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bw){b.fn[e]=function(bx){var bA=[],bD=b(bx),bC=this.length===1&&this[0].parentNode;if(bC&&bC.nodeType===11&&bC.childNodes.length===1&&bD.length===1){bD[bw](this[0]);return this}else{for(var bB=0,by=bD.length;bB<by;bB++){var bz=(bB>0?this.clone(true):this).get();b(bD[bB])[bw](bz);bA=bA.concat(bz)}return this.pushStack(bA,e,bD.selector)}}});function bg(e){if("getElementsByTagName" in e){return e.getElementsByTagName("*")}else{if("querySelectorAll" in e){return e.querySelectorAll("*")}else{return[]}}}function az(e){if(e.type==="checkbox"||e.type==="radio"){e.defaultChecked=e.checked}}function I(e){if(b.nodeName(e,"input")){az(e)}else{if("getElementsByTagName" in e){b.grep(e.getElementsByTagName("input"),az)}}}b.extend({clone:function(bz,bB,bx){var bA=bz.cloneNode(true),e,bw,by;if((!b.support.noCloneEvent||!b.support.noCloneChecked)&&(bz.nodeType===1||bz.nodeType===11)&&!b.isXMLDoc(bz)){ai(bz,bA);e=bg(bz);bw=bg(bA);for(by=0;e[by];++by){ai(e[by],bw[by])}}if(bB){w(bz,bA);if(bx){e=bg(bz);bw=bg(bA);for(by=0;e[by];++by){w(e[by],bw[by])}}}e=bw=null;return bA},clean:function(bx,bz,bI,bB){var bG;bz=bz||av;if(typeof bz.createElement==="undefined"){bz=bz.ownerDocument||bz[0]&&bz[0].ownerDocument||av}var bJ=[],bC;for(var bF=0,bA;(bA=bx[bF])!=null;bF++){if(typeof bA==="number"){bA+=""}if(!bA){continue}if(typeof bA==="string"){if(!Z.test(bA)){bA=bz.createTextNode(bA)}else{bA=bA.replace(W,"<$1></$2>");var bL=(d.exec(bA)||["",""])[1].toLowerCase(),by=ax[bL]||ax._default,bE=by[0],bw=bz.createElement("div");bw.innerHTML=by[1]+bA+by[2];while(bE--){bw=bw.lastChild}if(!b.support.tbody){var e=z.test(bA),bD=bL==="table"&&!e?bw.firstChild&&bw.firstChild.childNodes:by[1]==="<table>"&&!e?bw.childNodes:[];for(bC=bD.length-1;bC>=0;--bC){if(b.nodeName(bD[bC],"tbody")&&!bD[bC].childNodes.length){bD[bC].parentNode.removeChild(bD[bC])}}}if(!b.support.leadingWhitespace&&ar.test(bA)){bw.insertBefore(bz.createTextNode(ar.exec(bA)[0]),bw.firstChild)}bA=bw.childNodes}}var bH;if(!b.support.appendChecked){if(bA[0]&&typeof(bH=bA.length)==="number"){for(bC=0;bC<bH;bC++){I(bA[bC])}}else{I(bA)}}if(bA.nodeType){bJ.push(bA)}else{bJ=b.merge(bJ,bA)}}if(bI){bG=function(bM){return !bM.type||bn.test(bM.type)};for(bF=0;bJ[bF];bF++){if(bB&&b.nodeName(bJ[bF],"script")&&(!bJ[bF].type||bJ[bF].type.toLowerCase()==="text/javascript")){bB.push(bJ[bF].parentNode?bJ[bF].parentNode.removeChild(bJ[bF]):bJ[bF])}else{if(bJ[bF].nodeType===1){var bK=b.grep(bJ[bF].getElementsByTagName("script"),bG);bJ.splice.apply(bJ,[bF+1,0].concat(bK))}bI.appendChild(bJ[bF])}}}return bJ},cleanData:function(bw){var bz,bx,e=b.cache,bE=b.expando,bC=b.event.special,bB=b.support.deleteExpando;for(var bA=0,by;(by=bw[bA])!=null;bA++){if(by.nodeName&&b.noData[by.nodeName.toLowerCase()]){continue}bx=by[b.expando];if(bx){bz=e[bx]&&e[bx][bE];if(bz&&bz.events){for(var bD in bz.events){if(bC[bD]){b.event.remove(by,bD)}else{b.removeEvent(by,bD,bz.handle)}}if(bz.handle){bz.handle.elem=null}}if(bB){delete by[b.expando]}else{if(by.removeAttribute){by.removeAttribute(b.expando)}}delete e[bx]}}}});function bq(e,bw){if(bw.src){b.ajax({url:bw.src,async:false,dataType:"script"})}else{b.globalEval((bw.text||bw.textContent||bw.innerHTML||"").replace(aN,"/*$0*/"))}if(bw.parentNode){bw.parentNode.removeChild(bw)}}var al=/alpha\([^)]*\)/i,au=/opacity=([^)]*)/,D=/([A-Z]|^ms)/g,be=/^-?\d+(?:px)?$/i,bp=/^-?\d/,M=/^[+\-]=/,ak=/[^+\-\.\de]+/g,a8={position:"absolute",visibility:"hidden",display:"block"},an=["Left","Right"],a2=["Top","Bottom"],aa,aI,aW;b.fn.css=function(e,bw){if(arguments.length===2&&bw===O){return this}return b.access(this,e,bw,true,function(by,bx,bz){return bz!==O?b.style(by,bx,bz):b.css(by,bx)})};b.extend({cssHooks:{opacity:{get:function(bx,bw){if(bw){var e=aa(bx,"opacity","opacity");return e===""?"1":e}else{return bx.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(by,bx,bE,bz){if(!by||by.nodeType===3||by.nodeType===8||!by.style){return}var bC,bD,bA=b.camelCase(bx),bw=by.style,bF=b.cssHooks[bA];bx=b.cssProps[bA]||bA;if(bE!==O){bD=typeof bE;if(bD==="number"&&isNaN(bE)||bE==null){return}if(bD==="string"&&M.test(bE)){bE=+bE.replace(ak,"")+parseFloat(b.css(by,bx));bD="number"}if(bD==="number"&&!b.cssNumber[bA]){bE+="px"}if(!bF||!("set" in bF)||(bE=bF.set(by,bE))!==O){try{bw[bx]=bE}catch(bB){}}}else{if(bF&&"get" in bF&&(bC=bF.get(by,false,bz))!==O){return bC}return bw[bx]}},css:function(bz,by,bw){var bx,e;by=b.camelCase(by);e=b.cssHooks[by];by=b.cssProps[by]||by;if(by==="cssFloat"){by="float"}if(e&&"get" in e&&(bx=e.get(bz,true,bw))!==O){return bx}else{if(aa){return aa(bz,by)}}},swap:function(by,bx,bz){var e={};for(var bw in bx){e[bw]=by.style[bw];by.style[bw]=bx[bw]}bz.call(by);for(bw in bx){by.style[bw]=e[bw]}}});b.curCSS=b.css;b.each(["height","width"],function(bw,e){b.cssHooks[e]={get:function(bz,by,bx){var bA;if(by){if(bz.offsetWidth!==0){return q(bz,e,bx)}else{b.swap(bz,a8,function(){bA=q(bz,e,bx)})}return bA}},set:function(bx,by){if(be.test(by)){by=parseFloat(by);if(by>=0){return by+"px"}}else{return by}}}});if(!b.support.opacity){b.cssHooks.opacity={get:function(bw,e){return au.test((e&&bw.currentStyle?bw.currentStyle.filter:bw.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bz,bA){var by=bz.style,bw=bz.currentStyle;by.zoom=1;var e=b.isNaN(bA)?"":"alpha(opacity="+bA*100+")",bx=bw&&bw.filter||by.filter||"";by.filter=al.test(bx)?bx.replace(al,e):bx+" "+e}}}b(function(){if(!b.support.reliableMarginRight){b.cssHooks.marginRight={get:function(bx,bw){var e;b.swap(bx,{display:"inline-block"},function(){if(bw){e=aa(bx,"margin-right","marginRight")}else{e=bx.style.marginRight}});return e}}}});if(av.defaultView&&av.defaultView.getComputedStyle){aI=function(bz,bx){var bw,by,e;bx=bx.replace(D,"-$1").toLowerCase();if(!(by=bz.ownerDocument.defaultView)){return O}if((e=by.getComputedStyle(bz,null))){bw=e.getPropertyValue(bx);if(bw===""&&!b.contains(bz.ownerDocument.documentElement,bz)){bw=b.style(bz,bx)}}return bw}}if(av.documentElement.currentStyle){aW=function(bz,bx){var bA,bw=bz.currentStyle&&bz.currentStyle[bx],e=bz.runtimeStyle&&bz.runtimeStyle[bx],by=bz.style;if(!be.test(bw)&&bp.test(bw)){bA=by.left;if(e){bz.runtimeStyle.left=bz.currentStyle.left}by.left=bx==="fontSize"?"1em":(bw||0);bw=by.pixelLeft+"px";by.left=bA;if(e){bz.runtimeStyle.left=e}}return bw===""?"auto":bw}}aa=aI||aW;function q(bx,bw,e){var bz=bw==="width"?bx.offsetWidth:bx.offsetHeight,by=bw==="width"?an:a2;if(bz>0){if(e!=="border"){b.each(by,function(){if(!e){bz-=parseFloat(b.css(bx,"padding"+this))||0}if(e==="margin"){bz+=parseFloat(b.css(bx,e+this))||0}else{bz-=parseFloat(b.css(bx,"border"+this+"Width"))||0}})}return bz+"px"}bz=aa(bx,bw,bw);if(bz<0||bz==null){bz=bx.style[bw]||0}bz=parseFloat(bz)||0;if(e){b.each(by,function(){bz+=parseFloat(b.css(bx,"padding"+this))||0;if(e!=="padding"){bz+=parseFloat(b.css(bx,"border"+this+"Width"))||0}if(e==="margin"){bz+=parseFloat(b.css(bx,e+this))||0}})}return bz+"px"}if(b.expr&&b.expr.filters){b.expr.filters.hidden=function(bx){var bw=bx.offsetWidth,e=bx.offsetHeight;return(bw===0&&e===0)||(!b.support.reliableHiddenOffsets&&(bx.style.display||b.css(bx,"display"))==="none")};b.expr.filters.visible=function(e){return !b.expr.filters.hidden(e)}}var k=/%20/g,ap=/\[\]$/,bu=/\r?\n/g,bs=/#.*$/,aD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,aZ=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,aM=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,aP=/^(?:GET|HEAD)$/,c=/^\/\//,P=/\?/,a7=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,s=/^(?:select|textarea)/i,h=/\s+/,bt=/([?&])_=[^&]*/,N=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,E=b.fn.load,ab={},u={},aE,v;try{aE=bm.href}catch(aw){aE=av.createElement("a");aE.href="";aE=aE.href}v=N.exec(aE.toLowerCase())||[];function f(e){return function(bz,bB){if(typeof bz!=="string"){bB=bz;bz="*"}if(b.isFunction(bB)){var by=bz.toLowerCase().split(h),bx=0,bA=by.length,bw,bC,bD;for(;bx<bA;bx++){bw=by[bx];bD=/^\+/.test(bw);if(bD){bw=bw.substr(1)||"*"}bC=e[bw]=e[bw]||[];bC[bD?"unshift":"push"](bB)}}}}function aU(bw,bF,bA,bE,bC,by){bC=bC||bF.dataTypes[0];by=by||{};by[bC]=true;var bB=bw[bC],bx=0,e=bB?bB.length:0,bz=(bw===ab),bD;for(;bx<e&&(bz||!bD);bx++){bD=bB[bx](bF,bA,bE);if(typeof bD==="string"){if(!bz||by[bD]){bD=O}else{bF.dataTypes.unshift(bD);bD=aU(bw,bF,bA,bE,bD,by)}}}if((bz||!bD)&&!by["*"]){bD=aU(bw,bF,bA,bE,"*",by)}return bD}b.fn.extend({load:function(bx,bA,bB){if(typeof bx!=="string"&&E){return E.apply(this,arguments)}else{if(!this.length){return this}}var bz=bx.indexOf(" ");if(bz>=0){var e=bx.slice(bz,bx.length);bx=bx.slice(0,bz)}var by="GET";if(bA){if(b.isFunction(bA)){bB=bA;bA=O}else{if(typeof bA==="object"){bA=b.param(bA,b.ajaxSettings.traditional);by="POST"}}}var bw=this;b.ajax({url:bx,type:by,dataType:"html",data:bA,complete:function(bD,bC,bE){bE=bD.responseText;if(bD.isResolved()){bD.done(function(bF){bE=bF});bw.html(e?b("<div>").append(bE.replace(a7,"")).find(e):bE)}if(bB){bw.each(bB,[bE,bC,bD])}}});return this},serialize:function(){return b.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?b.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||s.test(this.nodeName)||aZ.test(this.type))}).map(function(e,bw){var bx=b(this).val();return bx==null?null:b.isArray(bx)?b.map(bx,function(bz,by){return{name:bw.name,value:bz.replace(bu,"\r\n")}}):{name:bw.name,value:bx.replace(bu,"\r\n")}}).get()}});b.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bw){b.fn[bw]=function(bx){return this.bind(bw,bx)}});b.each(["get","post"],function(e,bw){b[bw]=function(bx,bz,bA,by){if(b.isFunction(bz)){by=by||bA;bA=bz;bz=O}return b.ajax({type:bw,url:bx,data:bz,success:bA,dataType:by})}});b.extend({getScript:function(e,bw){return b.get(e,O,bw,"script")},getJSON:function(e,bw,bx){return b.get(e,bw,bx,"json")},ajaxSetup:function(bx,e){if(!e){e=bx;bx=b.extend(true,b.ajaxSettings,e)}else{b.extend(true,bx,b.ajaxSettings,e)}for(var bw in {context:1,url:1}){if(bw in e){bx[bw]=e[bw]}else{if(bw in b.ajaxSettings){bx[bw]=b.ajaxSettings[bw]}}}return bx},ajaxSettings:{url:aE,isLocal:aM.test(v[1]),global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":"*/*"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":bd.String,"text html":true,"text json":b.parseJSON,"text xml":b.parseXML}},ajaxPrefilter:f(ab),ajaxTransport:f(u),ajax:function(bA,by){if(typeof bA==="object"){by=bA;bA=O}by=by||{};var bE=b.ajaxSetup({},by),bT=bE.context||bE,bH=bT!==bE&&(bT.nodeType||bT instanceof b)?b(bT):b.event,bS=b.Deferred(),bO=b._Deferred(),bC=bE.statusCode||{},bD,bI={},bP={},bR,bz,bM,bF,bJ,bB=0,bx,bL,bK={readyState:0,setRequestHeader:function(bU,bV){if(!bB){var e=bU.toLowerCase();bU=bP[e]=bP[e]||bU;bI[bU]=bV}return this},getAllResponseHeaders:function(){return bB===2?bR:null},getResponseHeader:function(bU){var e;if(bB===2){if(!bz){bz={};while((e=aD.exec(bR))){bz[e[1].toLowerCase()]=e[2]}}e=bz[bU.toLowerCase()]}return e===O?null:e},overrideMimeType:function(e){if(!bB){bE.mimeType=e}return this},abort:function(e){e=e||"abort";if(bM){bM.abort(e)}bG(0,e);return this}};function bG(bZ,bX,b0,bW){if(bB===2){return}bB=2;if(bF){clearTimeout(bF)}bM=O;bR=bW||"";bK.readyState=bZ?4:0;var bU,b4,b3,bY=b0?bk(bE,bK,b0):O,bV,b2;if(bZ>=200&&bZ<300||bZ===304){if(bE.ifModified){if((bV=bK.getResponseHeader("Last-Modified"))){b.lastModified[bD]=bV}if((b2=bK.getResponseHeader("Etag"))){b.etag[bD]=b2}}if(bZ===304){bX="notmodified";bU=true}else{try{b4=J(bE,bY);bX="success";bU=true}catch(b1){bX="parsererror";b3=b1}}}else{b3=bX;if(!bX||bZ){bX="error";if(bZ<0){bZ=0}}}bK.status=bZ;bK.statusText=bX;if(bU){bS.resolveWith(bT,[b4,bX,bK])}else{bS.rejectWith(bT,[bK,bX,b3])}bK.statusCode(bC);bC=O;if(bx){bH.trigger("ajax"+(bU?"Success":"Error"),[bK,bE,bU?b4:b3])}bO.resolveWith(bT,[bK,bX]);if(bx){bH.trigger("ajaxComplete",[bK,bE]);if(!(--b.active)){b.event.trigger("ajaxStop")}}}bS.promise(bK);bK.success=bK.done;bK.error=bK.fail;bK.complete=bO.done;bK.statusCode=function(bU){if(bU){var e;if(bB<2){for(e in bU){bC[e]=[bC[e],bU[e]]}}else{e=bU[bK.status];bK.then(e,e)}}return this};bE.url=((bA||bE.url)+"").replace(bs,"").replace(c,v[1]+"//");bE.dataTypes=b.trim(bE.dataType||"*").toLowerCase().split(h);if(bE.crossDomain==null){bJ=N.exec(bE.url.toLowerCase());bE.crossDomain=!!(bJ&&(bJ[1]!=v[1]||bJ[2]!=v[2]||(bJ[3]||(bJ[1]==="http:"?80:443))!=(v[3]||(v[1]==="http:"?80:443))))}if(bE.data&&bE.processData&&typeof bE.data!=="string"){bE.data=b.param(bE.data,bE.traditional)}aU(ab,bE,by,bK);if(bB===2){return false}bx=bE.global;bE.type=bE.type.toUpperCase();bE.hasContent=!aP.test(bE.type);if(bx&&b.active++===0){b.event.trigger("ajaxStart")}if(!bE.hasContent){if(bE.data){bE.url+=(P.test(bE.url)?"&":"?")+bE.data}bD=bE.url;if(bE.cache===false){var bw=b.now(),bQ=bE.url.replace(bt,"$1_="+bw);bE.url=bQ+((bQ===bE.url)?(P.test(bE.url)?"&":"?")+"_="+bw:"")}}if(bE.data&&bE.hasContent&&bE.contentType!==false||by.contentType){bK.setRequestHeader("Content-Type",bE.contentType)}if(bE.ifModified){bD=bD||bE.url;if(b.lastModified[bD]){bK.setRequestHeader("If-Modified-Since",b.lastModified[bD])}if(b.etag[bD]){bK.setRequestHeader("If-None-Match",b.etag[bD])}}bK.setRequestHeader("Accept",bE.dataTypes[0]&&bE.accepts[bE.dataTypes[0]]?bE.accepts[bE.dataTypes[0]]+(bE.dataTypes[0]!=="*"?", */*; q=0.01":""):bE.accepts["*"]);for(bL in bE.headers){bK.setRequestHeader(bL,bE.headers[bL])}if(bE.beforeSend&&(bE.beforeSend.call(bT,bK,bE)===false||bB===2)){bK.abort();return false}for(bL in {success:1,error:1,complete:1}){bK[bL](bE[bL])}bM=aU(u,bE,by,bK);if(!bM){bG(-1,"No Transport")}else{bK.readyState=1;if(bx){bH.trigger("ajaxSend",[bK,bE])}if(bE.async&&bE.timeout>0){bF=setTimeout(function(){bK.abort("timeout")},bE.timeout)}try{bB=1;bM.send(bI,bG)}catch(bN){if(status<2){bG(-1,bN)}else{b.error(bN)}}}return bK},param:function(e,bx){var bw=[],bz=function(bA,bB){bB=b.isFunction(bB)?bB():bB;bw[bw.length]=encodeURIComponent(bA)+"="+encodeURIComponent(bB)};if(bx===O){bx=b.ajaxSettings.traditional}if(b.isArray(e)||(e.jquery&&!b.isPlainObject(e))){b.each(e,function(){bz(this.name,this.value)})}else{for(var by in e){y(by,e[by],bx,bz)}}return bw.join("&").replace(k,"+")}});function y(bx,bz,bw,by){if(b.isArray(bz)){b.each(bz,function(bB,bA){if(bw||ap.test(bx)){by(bx,bA)}else{y(bx+"["+(typeof bA==="object"||b.isArray(bA)?bB:"")+"]",bA,bw,by)}})}else{if(!bw&&bz!=null&&typeof bz==="object"){for(var e in bz){y(bx+"["+e+"]",bz[e],bw,by)}}else{by(bx,bz)}}}b.extend({active:0,lastModified:{},etag:{}});function bk(bE,bD,bA){var bw=bE.contents,bC=bE.dataTypes,bx=bE.responseFields,bz,bB,by,e;for(bB in bx){if(bB in bA){bD[bx[bB]]=bA[bB]}}while(bC[0]==="*"){bC.shift();if(bz===O){bz=bE.mimeType||bD.getResponseHeader("content-type")}}if(bz){for(bB in bw){if(bw[bB]&&bw[bB].test(bz)){bC.unshift(bB);break}}}if(bC[0] in bA){by=bC[0]}else{for(bB in bA){if(!bC[0]||bE.converters[bB+" "+bC[0]]){by=bB;break}if(!e){e=bB}}by=by||e}if(by){if(by!==bC[0]){bC.unshift(by)}return bA[by]}}function J(bI,bA){if(bI.dataFilter){bA=bI.dataFilter(bA,bI.dataType)}var bE=bI.dataTypes,bH={},bB,bF,bx=bE.length,bC,bD=bE[0],by,bz,bG,bw,e;for(bB=1;bB<bx;bB++){if(bB===1){for(bF in bI.converters){if(typeof bF==="string"){bH[bF.toLowerCase()]=bI.converters[bF]}}}by=bD;bD=bE[bB];if(bD==="*"){bD=by}else{if(by!=="*"&&by!==bD){bz=by+" "+bD;bG=bH[bz]||bH["* "+bD];if(!bG){e=O;for(bw in bH){bC=bw.split(" ");if(bC[0]===by||bC[0]==="*"){e=bH[bC[1]+" "+bD];if(e){bw=bH[bw];if(bw===true){bG=e}else{if(e===true){bG=bw}}break}}}}if(!(bG||e)){b.error("No conversion from "+bz.replace(" "," to "))}if(bG!==true){bA=bG?bG(bA):e(bw(bA))}}}}return bA}var aC=b.now(),x=/(\=)\?(&|$)|\?\?/i;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return b.expando+"_"+(aC++)}});b.ajaxPrefilter("json jsonp",function(bE,bB,bD){var by=bE.contentType==="application/x-www-form-urlencoded"&&(typeof bE.data==="string");if(bE.dataTypes[0]==="jsonp"||bE.jsonp!==false&&(x.test(bE.url)||by&&x.test(bE.data))){var bC,bx=bE.jsonpCallback=b.isFunction(bE.jsonpCallback)?bE.jsonpCallback():bE.jsonpCallback,bA=bd[bx],e=bE.url,bz=bE.data,bw="$1"+bx+"$2";if(bE.jsonp!==false){e=e.replace(x,bw);if(bE.url===e){if(by){bz=bz.replace(x,bw)}if(bE.data===bz){e+=(/\?/.test(e)?"&":"?")+bE.jsonp+"="+bx}}}bE.url=e;bE.data=bz;bd[bx]=function(bF){bC=[bF]};bD.always(function(){bd[bx]=bA;if(bC&&b.isFunction(bA)){bd[bx](bC[0])}});bE.converters["script json"]=function(){if(!bC){b.error(bx+" was not called")}return bC[0]};bE.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===O){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});b.ajaxTransport("script",function(bx){if(bx.crossDomain){var e,bw=av.head||av.getElementsByTagName("head")[0]||av.documentElement;return{send:function(by,bz){e=av.createElement("script");e.async="async";if(bx.scriptCharset){e.charset=bx.scriptCharset}e.src=bx.url;e.onload=e.onreadystatechange=function(bB,bA){if(bA||!e.readyState||/loaded|complete/.test(e.readyState)){e.onload=e.onreadystatechange=null;if(bw&&e.parentNode){bw.removeChild(e)}e=O;if(!bA){bz(200,"success")}}};bw.insertBefore(e,bw.firstChild)},abort:function(){if(e){e.onload(0,1)}}}}});var F=bd.ActiveXObject?function(){for(var e in Q){Q[e](0,1)}}:false,B=0,Q;function aL(){try{return new bd.XMLHttpRequest()}catch(bw){}}function aj(){try{return new bd.ActiveXObject("Microsoft.XMLHTTP")}catch(bw){}}b.ajaxSettings.xhr=bd.ActiveXObject?function(){return !this.isLocal&&aL()||aj()}:aL;(function(e){b.extend(b.support,{ajax:!!e,cors:!!e&&("withCredentials" in e)})})(b.ajaxSettings.xhr());if(b.support.ajax){b.ajaxTransport(function(e){if(!e.crossDomain||b.support.cors){var bw;return{send:function(bC,bx){var bB=e.xhr(),bA,bz;if(e.username){bB.open(e.type,e.url,e.async,e.username,e.password)}else{bB.open(e.type,e.url,e.async)}if(e.xhrFields){for(bz in e.xhrFields){bB[bz]=e.xhrFields[bz]}}if(e.mimeType&&bB.overrideMimeType){bB.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bC["X-Requested-With"]){bC["X-Requested-With"]="XMLHttpRequest"}try{for(bz in bC){bB.setRequestHeader(bz,bC[bz])}}catch(by){}bB.send((e.hasContent&&e.data)||null);bw=function(bL,bF){var bG,bE,bD,bJ,bI;try{if(bw&&(bF||bB.readyState===4)){bw=O;if(bA){bB.onreadystatechange=b.noop;if(F){delete Q[bA]}}if(bF){if(bB.readyState!==4){bB.abort()}}else{bG=bB.status;bD=bB.getAllResponseHeaders();bJ={};bI=bB.responseXML;if(bI&&bI.documentElement){bJ.xml=bI}bJ.text=bB.responseText;try{bE=bB.statusText}catch(bK){bE=""}if(!bG&&e.isLocal&&!e.crossDomain){bG=bJ.text?200:404}else{if(bG===1223){bG=204}}}}}catch(bH){if(!bF){bx(-1,bH)}}if(bJ){bx(bG,bE,bJ,bD)}};if(!e.async||bB.readyState===4){bw()}else{bA=++B;if(F){if(!Q){Q={};b(bd).unload(F)}Q[bA]=bw}bB.onreadystatechange=bw}},abort:function(){if(bw){bw(0,1)}}}}})}var U={},ba,o,aB=/^(?:toggle|show|hide)$/,aR=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,a3,aH=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],a5,V=bd.webkitRequestAnimationFrame||bd.mozRequestAnimationFrame||bd.oRequestAnimationFrame;b.fn.extend({show:function(by,bB,bA){var bx,bz;if(by||by===0){return this.animate(a1("show",3),by,bB,bA)}else{for(var bw=0,e=this.length;bw<e;bw++){bx=this[bw];if(bx.style){bz=bx.style.display;if(!b._data(bx,"olddisplay")&&bz==="none"){bz=bx.style.display=""}if(bz===""&&b.css(bx,"display")==="none"){b._data(bx,"olddisplay",A(bx.nodeName))}}}for(bw=0;bw<e;bw++){bx=this[bw];if(bx.style){bz=bx.style.display;if(bz===""||bz==="none"){bx.style.display=b._data(bx,"olddisplay")||""}}}return this}},hide:function(bx,bA,bz){if(bx||bx===0){return this.animate(a1("hide",3),bx,bA,bz)}else{for(var bw=0,e=this.length;bw<e;bw++){if(this[bw].style){var by=b.css(this[bw],"display");if(by!=="none"&&!b._data(this[bw],"olddisplay")){b._data(this[bw],"olddisplay",by)}}}for(bw=0;bw<e;bw++){if(this[bw].style){this[bw].style.display="none"}}return this}},_toggle:b.fn.toggle,toggle:function(bx,bw,by){var e=typeof bx==="boolean";if(b.isFunction(bx)&&b.isFunction(bw)){this._toggle.apply(this,arguments)}else{if(bx==null||e){this.each(function(){var bz=e?bx:b(this).is(":hidden");b(this)[bz?"show":"hide"]()})}else{this.animate(a1("toggle",3),bx,bw,by)}}return this},fadeTo:function(e,by,bx,bw){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:by},e,bx,bw)},animate:function(bz,bw,by,bx){var e=b.speed(bw,by,bx);if(b.isEmptyObject(bz)){return this.each(e.complete,[false])}bz=b.extend({},bz);return this[e.queue===false?"each":"queue"](function(){if(e.queue===false){b._mark(this)}var bD=b.extend({},e),bK=this.nodeType===1,bH=bK&&b(this).is(":hidden"),bA,bE,bC,bJ,bI,bG,bB,bF,bL;bD.animatedProperties={};for(bC in bz){bA=b.camelCase(bC);if(bC!==bA){bz[bA]=bz[bC];delete bz[bC]}bE=bz[bA];if(b.isArray(bE)){bD.animatedProperties[bA]=bE[1];bE=bz[bA]=bE[0]}else{bD.animatedProperties[bA]=bD.specialEasing&&bD.specialEasing[bA]||bD.easing||"swing"}if(bE==="hide"&&bH||bE==="show"&&!bH){return bD.complete.call(this)}if(bK&&(bA==="height"||bA==="width")){bD.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(b.css(this,"display")==="inline"&&b.css(this,"float")==="none"){if(!b.support.inlineBlockNeedsLayout){this.style.display="inline-block"}else{bJ=A(this.nodeName);if(bJ==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}}if(bD.overflow!=null){this.style.overflow="hidden"}for(bC in bz){bI=new b.fx(this,bD,bC);bE=bz[bC];if(aB.test(bE)){bI[bE==="toggle"?bH?"show":"hide":bE]()}else{bG=aR.exec(bE);bB=bI.cur();if(bG){bF=parseFloat(bG[2]);bL=bG[3]||(b.cssNumber[bC]?"":"px");if(bL!=="px"){b.style(this,bC,(bF||1)+bL);bB=((bF||1)/bI.cur())*bB;b.style(this,bC,bB+bL)}if(bG[1]){bF=((bG[1]==="-="?-1:1)*bF)+bB}bI.custom(bB,bF,bL)}else{bI.custom(bB,bE,"")}}}return true})},stop:function(bw,e){if(bw){this.queue([])}this.each(function(){var by=b.timers,bx=by.length;if(!e){b._unmark(true,this)}while(bx--){if(by[bx].elem===this){if(e){by[bx](true)}by.splice(bx,1)}}});if(!e){this.dequeue()}return this}});function bh(){setTimeout(at,0);return(a5=b.now())}function at(){a5=O}function a1(bw,e){var bx={};b.each(aH.concat.apply([],aH.slice(0,e)),function(){bx[this]=bw});return bx}b.each({slideDown:a1("show",1),slideUp:a1("hide",1),slideToggle:a1("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bw){b.fn[e]=function(bx,bz,by){return this.animate(bw,bx,bz,by)}});b.extend({speed:function(bx,by,bw){var e=bx&&typeof bx==="object"?b.extend({},bx):{complete:bw||!bw&&by||b.isFunction(bx)&&bx,duration:bx,easing:bw&&by||by&&!b.isFunction(by)&&by};e.duration=b.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in b.fx.speeds?b.fx.speeds[e.duration]:b.fx.speeds._default;e.old=e.complete;e.complete=function(bz){if(b.isFunction(e.old)){e.old.call(this)}if(e.queue!==false){b.dequeue(this)}else{if(bz!==false){b._unmark(this)}}};return e},easing:{linear:function(bx,by,e,bw){return e+bw*bx},swing:function(bx,by,e,bw){return((-Math.cos(bx*Math.PI)/2)+0.5)*bw+e}},timers:[],fx:function(bw,e,bx){this.options=e;this.elem=bw;this.prop=bx;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,bw=b.css(this.elem,this.prop);return isNaN(e=parseFloat(bw))?!bw||bw==="auto"?0:bw:e},custom:function(bB,bA,by){var e=this,bx=b.fx,bz;this.startTime=a5||bh();this.start=bB;this.end=bA;this.unit=by||this.unit||(b.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function bw(bC){return e.step(bC)}bw.elem=this.elem;if(bw()&&b.timers.push(bw)&&!a3){if(V){a3=true;bz=function(){if(a3){V(bz);bx.tick()}};V(bz)}else{a3=setInterval(bx.tick,bx.interval)}}},show:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());b(this.elem).show()},hide:function(){this.options.orig[this.prop]=b.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bz){var by=a5||bh(),e=true,bA=this.elem,bw=this.options,bx,bC;if(bz||by>=bw.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();bw.animatedProperties[this.prop]=true;for(bx in bw.animatedProperties){if(bw.animatedProperties[bx]!==true){e=false}}if(e){if(bw.overflow!=null&&!b.support.shrinkWrapBlocks){b.each(["","X","Y"],function(bD,bE){bA.style["overflow"+bE]=bw.overflow[bD]})}if(bw.hide){b(bA).hide()}if(bw.hide||bw.show){for(var bB in bw.animatedProperties){b.style(bA,bB,bw.orig[bB])}}bw.complete.call(bA)}return false}else{if(bw.duration==Infinity){this.now=by}else{bC=by-this.startTime;this.state=bC/bw.duration;this.pos=b.easing[bw.animatedProperties[this.prop]](this.state,bC,0,1,bw.duration);this.now=this.start+((this.end-this.start)*this.pos)}this.update()}return true}};b.extend(b.fx,{tick:function(){for(var bw=b.timers,e=0;e<bw.length;++e){if(!bw[e]()){bw.splice(e--,1)}}if(!bw.length){b.fx.stop()}},interval:13,stop:function(){clearInterval(a3);a3=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){b.style(e.elem,"opacity",e.now)},_default:function(e){if(e.elem.style&&e.elem.style[e.prop]!=null){e.elem.style[e.prop]=(e.prop==="width"||e.prop==="height"?Math.max(0,e.now):e.now)+e.unit}else{e.elem[e.prop]=e.now}}}});if(b.expr&&b.expr.filters){b.expr.filters.animated=function(e){return b.grep(b.timers,function(bw){return e===bw.elem}).length}}function A(by){if(!U[by]){var e=av.body,bw=b("<"+by+">").appendTo(e),bx=bw.css("display");bw.remove();if(bx==="none"||bx===""){if(!ba){ba=av.createElement("iframe");ba.frameBorder=ba.width=ba.height=0}e.appendChild(ba);if(!o||!ba.createElement){o=(ba.contentWindow||ba.contentDocument).document;o.write((av.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>");o.close()}bw=o.createElement(by);o.body.appendChild(bw);bx=b.css(bw,"display");e.removeChild(ba)}U[by]=bx}return U[by]}var Y=/^t(?:able|d|h)$/i,ae=/^(?:body|html)$/i;if("getBoundingClientRect" in av.documentElement){b.fn.offset=function(bJ){var bz=this[0],bC;if(bJ){return this.each(function(e){b.offset.setOffset(this,bJ,e)})}if(!bz||!bz.ownerDocument){return null}if(bz===bz.ownerDocument.body){return b.offset.bodyOffset(bz)}try{bC=bz.getBoundingClientRect()}catch(bG){}var bI=bz.ownerDocument,bx=bI.documentElement;if(!bC||!b.contains(bx,bz)){return bC?{top:bC.top,left:bC.left}:{top:0,left:0}}var bD=bI.body,bE=aK(bI),bB=bx.clientTop||bD.clientTop||0,bF=bx.clientLeft||bD.clientLeft||0,bw=bE.pageYOffset||b.support.boxModel&&bx.scrollTop||bD.scrollTop,bA=bE.pageXOffset||b.support.boxModel&&bx.scrollLeft||bD.scrollLeft,bH=bC.top+bw-bB,by=bC.left+bA-bF;return{top:bH,left:by}}}else{b.fn.offset=function(bG){var bA=this[0];if(bG){return this.each(function(bH){b.offset.setOffset(this,bG,bH)})}if(!bA||!bA.ownerDocument){return null}if(bA===bA.ownerDocument.body){return b.offset.bodyOffset(bA)}b.offset.initialize();var bD,bx=bA.offsetParent,bw=bA,bF=bA.ownerDocument,by=bF.documentElement,bB=bF.body,bC=bF.defaultView,e=bC?bC.getComputedStyle(bA,null):bA.currentStyle,bE=bA.offsetTop,bz=bA.offsetLeft;while((bA=bA.parentNode)&&bA!==bB&&bA!==by){if(b.offset.supportsFixedPosition&&e.position==="fixed"){break}bD=bC?bC.getComputedStyle(bA,null):bA.currentStyle;bE-=bA.scrollTop;bz-=bA.scrollLeft;if(bA===bx){bE+=bA.offsetTop;bz+=bA.offsetLeft;if(b.offset.doesNotAddBorder&&!(b.offset.doesAddBorderForTableAndCells&&Y.test(bA.nodeName))){bE+=parseFloat(bD.borderTopWidth)||0;bz+=parseFloat(bD.borderLeftWidth)||0}bw=bx;bx=bA.offsetParent}if(b.offset.subtractsBorderForOverflowNotVisible&&bD.overflow!=="visible"){bE+=parseFloat(bD.borderTopWidth)||0;bz+=parseFloat(bD.borderLeftWidth)||0}e=bD}if(e.position==="relative"||e.position==="static"){bE+=bB.offsetTop;bz+=bB.offsetLeft}if(b.offset.supportsFixedPosition&&e.position==="fixed"){bE+=Math.max(by.scrollTop,bB.scrollTop);bz+=Math.max(by.scrollLeft,bB.scrollLeft)}return{top:bE,left:bz}}}b.offset={initialize:function(){var e=av.body,bw=av.createElement("div"),bz,bB,bA,bC,bx=parseFloat(b.css(e,"marginTop"))||0,by="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";b.extend(bw.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});bw.innerHTML=by;e.insertBefore(bw,e.firstChild);bz=bw.firstChild;bB=bz.firstChild;bC=bz.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(bB.offsetTop!==5);this.doesAddBorderForTableAndCells=(bC.offsetTop===5);bB.style.position="fixed";bB.style.top="20px";this.supportsFixedPosition=(bB.offsetTop===20||bB.offsetTop===15);bB.style.position=bB.style.top="";bz.style.overflow="hidden";bz.style.position="relative";this.subtractsBorderForOverflowNotVisible=(bB.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(e.offsetTop!==bx);e.removeChild(bw);b.offset.initialize=b.noop},bodyOffset:function(e){var bx=e.offsetTop,bw=e.offsetLeft;b.offset.initialize();if(b.offset.doesNotIncludeMarginInBodyOffset){bx+=parseFloat(b.css(e,"marginTop"))||0;bw+=parseFloat(b.css(e,"marginLeft"))||0}return{top:bx,left:bw}},setOffset:function(by,bH,bB){var bC=b.css(by,"position");if(bC==="static"){by.style.position="relative"}var bA=b(by),bw=bA.offset(),e=b.css(by,"top"),bF=b.css(by,"left"),bG=(bC==="absolute"||bC==="fixed")&&b.inArray("auto",[e,bF])>-1,bE={},bD={},bx,bz;if(bG){bD=bA.position();bx=bD.top;bz=bD.left}else{bx=parseFloat(e)||0;bz=parseFloat(bF)||0}if(b.isFunction(bH)){bH=bH.call(by,bB,bw)}if(bH.top!=null){bE.top=(bH.top-bw.top)+bx}if(bH.left!=null){bE.left=(bH.left-bw.left)+bz}if("using" in bH){bH.using.call(by,bE)}else{bA.css(bE)}}};b.fn.extend({position:function(){if(!this[0]){return null}var bx=this[0],bw=this.offsetParent(),by=this.offset(),e=ae.test(bw[0].nodeName)?{top:0,left:0}:bw.offset();by.top-=parseFloat(b.css(bx,"marginTop"))||0;by.left-=parseFloat(b.css(bx,"marginLeft"))||0;e.top+=parseFloat(b.css(bw[0],"borderTopWidth"))||0;e.left+=parseFloat(b.css(bw[0],"borderLeftWidth"))||0;return{top:by.top-e.top,left:by.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||av.body;while(e&&(!ae.test(e.nodeName)&&b.css(e,"position")==="static")){e=e.offsetParent}return e})}});b.each(["Left","Top"],function(bw,e){var bx="scroll"+e;b.fn[bx]=function(bA){var by,bz;if(bA===O){by=this[0];if(!by){return null}bz=aK(by);return bz?("pageXOffset" in bz)?bz[bw?"pageYOffset":"pageXOffset"]:b.support.boxModel&&bz.document.documentElement[bx]||bz.document.body[bx]:by[bx]}return this.each(function(){bz=aK(this);if(bz){bz.scrollTo(!bw?bA:b(bz).scrollLeft(),bw?bA:b(bz).scrollTop())}else{this[bx]=bA}})}});function aK(e){return b.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}b.each(["Height","Width"],function(bw,e){var bx=e.toLowerCase();b.fn["inner"+e]=function(){var by=this[0];return by&&by.style?parseFloat(b.css(by,bx,"padding")):null};b.fn["outer"+e]=function(bz){var by=this[0];return by&&by.style?parseFloat(b.css(by,bx,bz?"margin":"border")):null};b.fn[bx]=function(bz){var bA=this[0];if(!bA){return bz==null?null:this}if(b.isFunction(bz)){return this.each(function(bE){var bD=b(this);bD[bx](bz.call(this,bE,bD[bx]()))})}if(b.isWindow(bA)){var bB=bA.document.documentElement["client"+e];return bA.document.compatMode==="CSS1Compat"&&bB||bA.document.body["client"+e]||bB}else{if(bA.nodeType===9){return Math.max(bA.documentElement["client"+e],bA.body["scroll"+e],bA.documentElement["scroll"+e],bA.body["offset"+e],bA.documentElement["offset"+e])}else{if(bz===O){var bC=b.css(bA,bx),by=parseFloat(bC);return b.isNaN(by)?bC:by}else{return this.css(bx,typeof bz==="string"?bz:bz+"px")}}}}});bd.jQuery=bd.$=b})(window);
/*
 * jQuery UI 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI
 */
(function(e,d){function b(f,c){var g=f.nodeName.toLowerCase();if("area"===g){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(g)?!f.disabled:"a"==g?f.href||c:c)&&a(f)}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.14",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!==d){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,h,q){e.each(k,function(){o-=parseFloat(e.curCSS(p,"padding"+this,true))||0;if(h){o-=parseFloat(e.curCSS(p,"border"+this+"Width",true))||0}if(q){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===d){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(c){return b(c,!isNaN(e.attr(c,"tabindex")))},tabbable:function(f){var c=e.attr(f,"tabindex"),g=isNaN(c);return(g||c>=0)&&b(f,!g)}});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);
/*
 * jQuery UI Widget 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Widget
 */
(function(a,e){if(a.cleanData){var d=a.cleanData;a.cleanData=function(b){for(var g=0,f;(f=b[g])!=null;g++){a(f).triggerHandler("remove")}d(b)}}else{var c=a.fn.remove;a.fn.remove=function(b,f){return this.each(function(){if(!f){if(!b||a.filter(b,[this]).length){a("*",this).add([this]).each(function(){a(this).triggerHandler("remove")})}}return c.call(a(this),b,f)})}}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(f){return !!a.data(f,b)};a[h]=a[h]||{};a[h][b]=function(f,l){arguments.length&&this._createWidget(f,l)};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,f){a.fn[b]=function(l){var k=typeof l==="string",j=Array.prototype.slice.call(arguments,1),g=this;l=!k&&j.length?a.extend.apply(null,[true,l].concat(j)):l;if(k&&l.charAt(0)==="_"){return g}k?this.each(function(){var m=a.data(this,b),h=m&&a.isFunction(m[l])?m[l].apply(m,j):m;if(h!==m&&h!==e){g=h;return false}}):this.each(function(){var h=a.data(this,b);h?h.option(l||{})._init():a.data(this,b,new f(l,this))});return g}};a.Widget=function(b,f){arguments.length&&this._createWidget(b,f)};a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(b,g){a.data(g,this.widgetName,this);this.element=a(g);this.options=a.extend(true,{},this.options,this._getCreateOptions(),b);var f=this;this.element.bind("remove."+this.widgetName,function(){f.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,g){var f=b;if(arguments.length===0){return a.extend({},this.options)}if(typeof b==="string"){if(g===e){return this.options[b]}f={};f[b]=g}this._setOptions(f);return this},_setOptions:function(b){var f=this;a.each(b,function(h,g){f._setOption(h,g)});return this},_setOption:function(b,f){this.options[b]=f;if(b==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(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);
/*
 * jQuery UI Mouse 1.8.14
 *
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
 * Dual licensed under the MIT or GPL Version 2 licenses.
 * http://jquery.org/license
 *
 * http://docs.jquery.com/UI/Mouse
 *
 * Depends:
 *	jquery.ui.widget.js
 */
(function(a){var c=false;a(document).mousedown(function(){c=false});a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(d){return b._mouseDown(d)}).bind("click."+this.widgetName,function(d){if(true===a.data(d.target,b.widgetName+".preventClickEvent")){a.removeData(d.target,b.widgetName+".preventClickEvent");d.stopImmediatePropagation();return false}});this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b);this._mouseDownEvent=b;var h=this,e=b.which==1,d=typeof this.options.cancel=="string"?a(b.target).closest(this.options.cancel).length:false;if(!e||d||!this._mouseCapture(b)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){h.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(f){return h._mouseMove(f)};this._mouseUpDelegate=function(f){return h._mouseUp(f)};a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);b.preventDefault();return c=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(f){f.ui=f.ui||{};var e=/left|center|right/,d=/top|center|bottom/,b=f.fn.position,a=f.fn.offset;f.fn.position=function(c){if(!c||!c.of){return b.apply(this,arguments)}c=f.extend({},c);var l=f(c.of),s=l[0],q=(c.collision||"flip").split(" "),r=c.offset?c.offset.split(" "):[0,0],p,m,o;if(s.nodeType===9){p=l.width();m=l.height();o={top:0,left:0}}else{if(s.setTimeout){p=l.width();m=l.height();o={top:l.scrollTop(),left:l.scrollLeft()}}else{if(s.preventDefault){c.at="left top";p=m=0;o={top:c.of.pageY,left:c.of.pageX}}else{p=l.outerWidth();m=l.outerHeight();o=l.offset()}}}f.each(["my","at"],function(){var g=(c[this]||"").split(" ");if(g.length===1){g=e.test(g[0])?g.concat(["center"]):d.test(g[0])?["center"].concat(g):["center","center"]}g[0]=e.test(g[0])?g[0]:"center";g[1]=d.test(g[1])?g[1]:"center";c[this]=g});if(q.length===1){q[1]=q[0]}r[0]=parseInt(r[0],10)||0;if(r.length===1){r[1]=r[0]}r[1]=parseInt(r[1],10)||0;if(c.at[0]==="right"){o.left+=p}else{if(c.at[0]==="center"){o.left+=p/2}}if(c.at[1]==="bottom"){o.top+=m}else{if(c.at[1]==="center"){o.top+=m/2}}o.left+=r[0];o.top+=r[1];return this.each(function(){var y=f(this),u=y.outerWidth(),k=y.outerHeight(),j=parseInt(f.curCSS(this,"marginLeft",true))||0,h=parseInt(f.curCSS(this,"marginTop",true))||0,A=u+j+(parseInt(f.curCSS(this,"marginRight",true))||0),z=k+h+(parseInt(f.curCSS(this,"marginBottom",true))||0),x=f.extend({},o),g;if(c.my[0]==="right"){x.left-=u}else{if(c.my[0]==="center"){x.left-=u/2}}if(c.my[1]==="bottom"){x.top-=k}else{if(c.my[1]==="center"){x.top-=k/2}}x.left=Math.round(x.left);x.top=Math.round(x.top);g={left:x.left-j,top:x.top-h};f.each(["left","top"],function(w,v){f.ui.position[q[w]]&&f.ui.position[q[w]][v](x,{targetWidth:p,targetHeight:m,elemWidth:u,elemHeight:k,collisionPosition:g,collisionWidth:A,collisionHeight:z,offset:r,my:c.my,at:c.at})});f.fn.bgiframe&&y.bgiframe();y.offset(f.extend(x,{using:c.using}))})};f.ui.position={fit:{left:function(c,g){var h=f(window);h=g.collisionPosition.left+g.collisionWidth-h.width()-h.scrollLeft();c.left=h>0?c.left-h:Math.max(c.left-g.collisionPosition.left,c.left)},top:function(c,g){var h=f(window);h=g.collisionPosition.top+g.collisionHeight-h.height()-h.scrollTop();c.top=h>0?c.top-h:Math.max(c.top-g.collisionPosition.top,c.top)}},flip:{left:function(c,j){if(j.at[0]!=="center"){var o=f(window);o=j.collisionPosition.left+j.collisionWidth-o.width()-o.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:o>0?l+m+k:0}},top:function(c,j){if(j.at[1]!=="center"){var o=f(window);o=j.collisionPosition.top+j.collisionHeight-o.height()-o.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:o>0?l+m+k:0}}}};if(!f.offset.setOffset){f.offset.setOffset=function(c,j){if(/static/.test(f.curCSS(c,"position"))){c.style.position="relative"}var o=f(c),l=o.offset(),m=parseInt(f.curCSS(c,"top",true),10)||0,k=parseInt(f.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):o.css(l)};f.fn.offset=function(c){var g=this[0];if(!g||!g.ownerDocument){return null}if(c){return this.each(function(){f.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(d){var c=this.options;if(this.helper||c.disabled||a(d.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(d);if(!this.handle){return false}a(c.iframeFix===true?"iframe":c.iframeFix).each(function(){a('<div class="ui-draggable-iframeFix" style="background: #fff;"></div>').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")});return true},_mouseStart:function(d){var c=this.options;this.helper=this._createHelper(d);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:d.pageX-this.offset.left,top:d.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this.position=this._generatePosition(d);this.originalPageX=d.pageX;this.originalPageY=d.pageY;c.cursorAt&&this._adjustOffsetFromHelper(c.cursorAt);c.containment&&this._setContainment();if(this._trigger("start",d)===false){this._clear();return false}this._cacheHelperProportions();a.ui.ddmanager&&!c.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,d);this.helper.addClass("ui-draggable-dragging");this._mouseDrag(d,true);a.ui.ddmanager&&a.ui.ddmanager.dragStart(this,d);return true},_mouseDrag:function(d,c){this.position=this._generatePosition(d);this.positionAbs=this._convertPositionTo("absolute");if(!c){c=this._uiHash();if(this._trigger("drag",d,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,d);return false},_mouseStop:function(e){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,e)}if(this.dropped){d=this.dropped;this.dropped=false}if((!this.element[0]||!this.element[0].parentNode)&&this.options.helper=="original"){return false}if(this.options.revert=="invalid"&&!d||this.options.revert=="valid"&&d||this.options.revert===true||a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d)){var f=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){f._trigger("stop",e)!==false&&f._clear()})}else{this._trigger("stop",e)!==false&&this._clear()}return false},_mouseUp:function(b){this.options.iframeFix===true&&a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)});a.ui.ddmanager&&a.ui.ddmanager.dragStop(this,b);return a.ui.mouse.prototype._mouseUp.call(this,b)},cancel:function(){this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear();return this},_getHandle:function(d){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==d.target){c=true}});return c},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d])):c.helper=="clone"?this.element.clone().removeAttr("id"):this.element;d.parents("body").length||d.appendTo(c.appendTo=="parent"?this.element[0].parentNode:c.appendTo);d[0]!=this.element[0]&&!/(fixed|absolute)/.test(d.css("position"))&&d.css("position","absolute");return d},_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 e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[e.containment=="document"?0:a(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e.containment=="document"?0:a(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,(e.containment=="document"?0:a(window).scrollLeft())+a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(e.containment=="document"?0:a(window).scrollTop())+(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)&&e.containment.constructor!=Array){e=a(e.containment);var d=e[0];if(d){e.offset();var f=a(d).css("overflow")!="hidden";this.containment=[(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0),(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0),(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom];this.relative_container=e}}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(e,d){if(!d){d=this.position}e=e=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*e+this.offset.parent.top*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*e),left:d.left+this.offset.relative.left*e+this.offset.parent.left*e-(a.browser.safari&&a.browser.version<526&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*e)}},_generatePosition:function(j){var d=this.options,p=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(p[0].tagName),o=j.pageX,k=j.pageY;if(this.originalPosition){var l;if(this.containment){if(this.relative_container){l=this.relative_container.offset();l=[this.containment[0]+l.left,this.containment[1]+l.top,this.containment[2]+l.left,this.containment[3]+l.top]}else{l=this.containment}if(j.pageX-this.offset.click.left<l[0]){o=l[0]+this.offset.click.left}if(j.pageY-this.offset.click.top<l[1]){k=l[1]+this.offset.click.top}if(j.pageX-this.offset.click.left>l[2]){o=l[2]+this.offset.click.left}if(j.pageY-this.offset.click.top>l[3]){k=l[3]+this.offset.click.top}}if(d.grid){k=d.grid[1]?this.originalPageY+Math.round((k-this.originalPageY)/d.grid[1])*d.grid[1]:this.originalPageY;k=l?!(k-this.offset.click.top<l[1]||k-this.offset.click.top>l[3])?k:!(k-this.offset.click.top<l[1])?k-d.grid[1]:k+d.grid[1]:k;o=d.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/d.grid[0])*d.grid[0]:this.originalPageX;o=l?!(o-this.offset.click.left<l[0]||o-this.offset.click.left>l[2])?o:!(o-this.offset.click.left<l[0])?o-d.grid[0]:o+d.grid[0]:o}}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():m?0:p.scrollTop()),left:o-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():m?0:p.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(e,d,f){f=f||this._uiHash();a.ui.plugin.call(this,e,[d,f]);if(e=="drag"){this.positionAbs=this._convertPositionTo("absolute")}return a.Widget.prototype._trigger.call(this,e,d,f)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}});a.extend(a.ui.draggable,{version:"1.8.14"});a.ui.plugin.add("draggable","connectToSortable",{start:function(g,d){var k=a(this).data("draggable"),h=k.options,j=a.extend({},d,{item:k.element});k.sortables=[];a(h.connectToSortable).each(function(){var b=a.data(this,"sortable");if(b&&!b.options.disabled){k.sortables.push({instance:b,shouldRevert:b.options.revert});b.refreshPositions();b._trigger("activate",g,j)}})},stop:function(e,d){var h=a(this).data("draggable"),g=a.extend({},d,{item:h.element});a.each(h.sortables,function(){if(this.instance.isOver){this.instance.isOver=0;h.cancelHelperRemoval=true;this.instance.cancelHelperRemoval=false;if(this.shouldRevert){this.instance.options.revert=true}this.instance._mouseStop(e);this.instance.options.helper=this.instance.options._helper;h.options.helper=="original"&&this.instance.currentItem.css({top:"auto",left:"auto"})}else{this.instance.cancelHelperRemoval=false;this.instance._trigger("deactivate",e,g)}})},drag:function(e,d){var h=a(this).data("draggable"),g=this;a.each(h.sortables,function(){this.instance.positionAbs=h.positionAbs;this.instance.helperProportions=h.helperProportions;this.instance.offset.click=h.offset.click;if(this.instance._intersectsWith(this.instance.containerCache)){if(!this.instance.isOver){this.instance.isOver=1;this.instance.currentItem=a(g).clone().removeAttr("id").appendTo(this.instance.element).data("sortable-item",true);this.instance.options._helper=this.instance.options.helper;this.instance.options.helper=function(){return d.helper[0]};e.target=this.instance.currentItem[0];this.instance._mouseCapture(e,true);this.instance._mouseStart(e,true,true);this.instance.offset.click.top=h.offset.click.top;this.instance.offset.click.left=h.offset.click.left;this.instance.offset.parent.left-=h.offset.parent.left-this.instance.offset.parent.left;this.instance.offset.parent.top-=h.offset.parent.top-this.instance.offset.parent.top;h._trigger("toSortable",e);h.dropped=this.instance.element;h.currentItem=h.element;this.instance.fromOutside=h}this.instance.currentItem&&this.instance._mouseDrag(e)}else{if(this.instance.isOver){this.instance.isOver=0;this.instance.cancelHelperRemoval=true;this.instance.options.revert=false;this.instance._trigger("out",e,this.instance._uiHash(this.instance));this.instance._mouseStop(e,true);this.instance.options.helper=this.instance.options._helper;this.instance.currentItem.remove();this.instance.placeholder&&this.instance.placeholder.remove();h._trigger("fromSortable",e);h.dropped=false}}})}});a.ui.plugin.add("draggable","cursor",{start:function(){var d=a("body"),c=a(this).data("draggable").options;if(d.css("cursor")){c._cursor=d.css("cursor")}d.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","opacity",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("opacity")){c._opacity=d.css("opacity")}d.css("opacity",c.opacity)},stop:function(d,c){d=a(this).data("draggable").options;d._opacity&&a(c.helper).css("opacity",d._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(e){var d=a(this).data("draggable"),h=d.options,g=false;if(d.scrollParent[0]!=document&&d.scrollParent[0].tagName!="HTML"){if(!h.axis||h.axis!="x"){if(d.overflowOffset.top+d.scrollParent[0].offsetHeight-e.pageY<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop+h.scrollSpeed}else{if(e.pageY-d.overflowOffset.top<h.scrollSensitivity){d.scrollParent[0].scrollTop=g=d.scrollParent[0].scrollTop-h.scrollSpeed}}}if(!h.axis||h.axis!="y"){if(d.overflowOffset.left+d.scrollParent[0].offsetWidth-e.pageX<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft+h.scrollSpeed}else{if(e.pageX-d.overflowOffset.left<h.scrollSensitivity){d.scrollParent[0].scrollLeft=g=d.scrollParent[0].scrollLeft-h.scrollSpeed}}}}else{if(!h.axis||h.axis!="x"){if(e.pageY-a(document).scrollTop()<h.scrollSensitivity){g=a(document).scrollTop(a(document).scrollTop()-h.scrollSpeed)}else{if(a(window).height()-(e.pageY-a(document).scrollTop())<h.scrollSensitivity){g=a(document).scrollTop(a(document).scrollTop()+h.scrollSpeed)}}}if(!h.axis||h.axis!="y"){if(e.pageX-a(document).scrollLeft()<h.scrollSensitivity){g=a(document).scrollLeft(a(document).scrollLeft()-h.scrollSpeed)}else{if(a(window).width()-(e.pageX-a(document).scrollLeft())<h.scrollSensitivity){g=a(document).scrollLeft(a(document).scrollLeft()+h.scrollSpeed)}}}}g!==false&&a.ui.ddmanager&&!h.dropBehaviour&&a.ui.ddmanager.prepareOffsets(d,e)}});a.ui.plugin.add("draggable","snap",{start:function(){var d=a(this).data("draggable"),c=d.options;d.snapElements=[];a(c.snap.constructor!=String?c.snap.items||":data(draggable)":c.snap).each(function(){var e=a(this),b=e.offset();this!=d.element[0]&&d.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:b.top,left:b.left})})},drag:function(M,L){for(var K=a(this).data("draggable"),I=K.options,J=I.snapTolerance,G=L.offset.left,H=G+K.helperProportions.width,z=L.offset.top,y=z+K.helperProportions.height,F=K.snapElements.length-1;F>=0;F--){var E=K.snapElements[F].left,B=E+K.snapElements[F].width,D=K.snapElements[F].top,A=D+K.snapElements[F].height;if(E-J<G&&G<B+J&&D-J<z&&z<A+J||E-J<G&&G<B+J&&D-J<y&&y<A+J||E-J<H&&H<B+J&&D-J<z&&z<A+J||E-J<H&&H<B+J&&D-J<y&&y<A+J){if(I.snapMode!="inner"){var x=Math.abs(D-y)<=J,w=Math.abs(A-z)<=J,v=Math.abs(E-H)<=J,u=Math.abs(B-G)<=J;if(x){L.position.top=K._convertPositionTo("relative",{top:D-K.helperProportions.height,left:0}).top-K.margins.top}if(w){L.position.top=K._convertPositionTo("relative",{top:A,left:0}).top-K.margins.top}if(v){L.position.left=K._convertPositionTo("relative",{top:0,left:E-K.helperProportions.width}).left-K.margins.left}if(u){L.position.left=K._convertPositionTo("relative",{top:0,left:B}).left-K.margins.left}}var d=x||w||v||u;if(I.snapMode!="outer"){x=Math.abs(D-z)<=J;w=Math.abs(A-y)<=J;v=Math.abs(E-G)<=J;u=Math.abs(B-H)<=J;if(x){L.position.top=K._convertPositionTo("relative",{top:D,left:0}).top-K.margins.top}if(w){L.position.top=K._convertPositionTo("relative",{top:A-K.helperProportions.height,left:0}).top-K.margins.top}if(v){L.position.left=K._convertPositionTo("relative",{top:0,left:E}).left-K.margins.left}if(u){L.position.left=K._convertPositionTo("relative",{top:0,left:B-K.helperProportions.width}).left-K.margins.left}}if(!K.snapElements[F].snapping&&(x||w||v||u||d)){K.options.snap.snap&&K.options.snap.snap.call(K.element,M,a.extend(K._uiHash(),{snapItem:K.snapElements[F].item}))}K.snapElements[F].snapping=x||w||v||u||d}else{K.snapElements[F].snapping&&K.options.snap.release&&K.options.snap.release.call(K.element,M,a.extend(K._uiHash(),{snapItem:K.snapElements[F].item}));K.snapElements[F].snapping=false}}}});a.ui.plugin.add("draggable","stack",{start:function(){var d=a(this).data("draggable").options;d=a.makeArray(a(d.stack)).sort(function(e,b){return(parseInt(a(e).css("zIndex"),10)||0)-(parseInt(a(b).css("zIndex"),10)||0)});if(d.length){var c=parseInt(d[0].style.zIndex)||0;a(d).each(function(b){this.style.zIndex=c+b});this[0].style.zIndex=c+d.length}}});a.ui.plugin.add("draggable","zIndex",{start:function(d,c){d=a(c.helper);c=a(this).data("draggable").options;if(d.css("zIndex")){c._zIndex=d.css("zIndex")}d.css("zIndex",c.zIndex)},stop:function(d,c){d=a(this).data("draggable").options;d._zIndex&&a(c.helper).css("zIndex",d._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 d=this.options,c=d.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[d.scope]=a.ui.ddmanager.droppables[d.scope]||[];a.ui.ddmanager.droppables[d.scope].push(this);d.addClasses&&this.element.addClass("ui-droppable")},destroy:function(){for(var d=a.ui.ddmanager.droppables[this.options.scope],c=0;c<d.length;c++){d[c]==this&&d.splice(c,1)}this.element.removeClass("ui-droppable ui-droppable-disabled").removeData("droppable").unbind(".droppable");return this},_setOption:function(d,c){if(d=="accept"){this.accept=a.isFunction(c)?c:function(b){return b.is(c)}}a.Widget.prototype._setOption.apply(this,arguments)},_activate:function(d){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass);c&&this._trigger("activate",d,this.ui(c))},_deactivate:function(d){var c=a.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass);c&&this._trigger("deactivate",d,this.ui(c))},_over:function(d){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.addClass(this.options.hoverClass);this._trigger("over",d,this.ui(c))}}},_out:function(d){var c=a.ui.ddmanager.current;if(!(!c||(c.currentItem||c.element)[0]==this.element[0])){if(this.accept.call(this.element[0],c.currentItem||c.element)){this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("out",d,this.ui(c))}}},_drop:function(f,d){var h=d||a.ui.ddmanager.current;if(!h||(h.currentItem||h.element)[0]==this.element[0]){return false}var g=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==h.options.scope&&b.accept.call(b.element[0],h.currentItem||h.element)&&a.ui.intersect(h,a.extend(b,{offset:b.element.offset()}),b.options.tolerance)){g=true;return false}});if(g){return false}if(this.accept.call(this.element[0],h.currentItem||h.element)){this.options.activeClass&&this.element.removeClass(this.options.activeClass);this.options.hoverClass&&this.element.removeClass(this.options.hoverClass);this._trigger("drop",f,this.ui(h));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.14"});a.ui.intersect=function(x,w,v){if(!w.offset){return false}var u=(x.positionAbs||x.position.absolute).left,r=u+x.helperProportions.width,s=(x.positionAbs||x.position.absolute).top,q=s+x.helperProportions.height,p=w.offset.left,m=p+w.proportions.width,o=w.offset.top,d=o+w.proportions.height;switch(v){case"fit":return p<=u&&r<=m&&o<=s&&q<=d;case"intersect":return p<u+x.helperProportions.width/2&&r-x.helperProportions.width/2<m&&o<s+x.helperProportions.height/2&&q-x.helperProportions.height/2<d;case"pointer":return a.ui.isOver((x.positionAbs||x.position.absolute).top+(x.clickOffset||x.offset.click).top,(x.positionAbs||x.position.absolute).left+(x.clickOffset||x.offset.click).left,o,p,w.proportions.height,w.proportions.width);case"touch":return(s>=o&&s<=d||q>=o&&q<=d||s<o&&q>d)&&(u>=p&&u<=m||r>=p&&r<=m||u<p&&r>m);default:return false}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(j,d){var p=a.ui.ddmanager.droppables[j.options.scope]||[],o=d?d.type:null,l=(j.currentItem||j.element).find(":data(droppable)").andSelf(),m=0;j:for(;m<p.length;m++){if(!(p[m].options.disabled||j&&!p[m].accept.call(p[m].element[0],j.currentItem||j.element))){for(var k=0;k<l.length;k++){if(l[k]==p[m].element[0]){p[m].proportions.height=0;continue j}}p[m].visible=p[m].element.css("display")!="none";if(p[m].visible){o=="mousedown"&&p[m]._activate.call(p[m],d);p[m].offset=p[m].element.offset();p[m].proportions={width:p[m].element[0].offsetWidth,height:p[m].element[0].offsetHeight}}}}},drop:function(e,d){var f=false;a.each(a.ui.ddmanager.droppables[e.options.scope]||[],function(){if(this.options){if(!this.options.disabled&&this.visible&&a.ui.intersect(e,this,this.options.tolerance)){f=f||this._drop.call(this,d)}if(!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)){this.isout=1;this.isover=0;this._deactivate.call(this,d)}}});return f},dragStart:function(d,c){d.element.parentsUntil("body").bind("scroll.droppable",function(){d.options.refreshPositions||a.ui.ddmanager.prepareOffsets(d,c)})},drag:function(d,c){d.options.refreshPositions&&a.ui.ddmanager.prepareOffsets(d,c);a.each(a.ui.ddmanager.droppables[d.options.scope]||[],function(){if(!(this.options.disabled||this.greedyChild||!this.visible)){var h=a.ui.intersect(d,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)}}}})},dragStop:function(d,c){d.element.parentsUntil("body").unbind("scroll.droppable");d.options.refreshPositions||a.ui.ddmanager.prepareOffsets(d,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 g in this.handles){if(this.handles[g].constructor==String){this.handles[g]=c(this.handles[g],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var f=c(this.handles[g],this.element),d=0;d=/sw|ne|nw|se|n|s/.test(g)?f.outerHeight():f.outerWidth();f=["padding",/ne|nw|n/.test(g)?"Top":/se|sw|s/.test(g)?"Bottom":/^e$/.test(g)?"Right":"Left"].join("");o.css(f,d);this._proportionallyResize()}c(this.handles[g])}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var d=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=d&&d[1]?d[1]:"se"}});if(h.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){if(!h.disabled){c(this).removeClass("ui-resizable-autohide");e._handles.show()}},function(){if(!h.disabled){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide()}}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.after(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement);return this},_mouseCapture:function(d){var e=false;for(var f in this.handles){if(c(this.handles[f])[0]==d.target){e=true}}return !this.options.disabled&&e},_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]);this._updateVirtualBoundaries(e.shiftKey);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},_updateVirtualBoundaries:function(e){var g=this.options,k,j,h;g={minWidth:b(g.minWidth)?g.minWidth:0,maxWidth:b(g.maxWidth)?g.maxWidth:Infinity,minHeight:b(g.minHeight)?g.minHeight:0,maxHeight:b(g.maxHeight)?g.maxHeight:Infinity};if(this._aspectRatio||e){e=g.minHeight*this.aspectRatio;j=g.minWidth/this.aspectRatio;k=g.maxHeight*this.aspectRatio;h=g.maxWidth/this.aspectRatio;if(e>g.minWidth){g.minWidth=e}if(j>g.minHeight){g.minHeight=j}if(k<g.maxWidth){g.maxWidth=k}if(h<g.maxHeight){g.maxHeight=h}}this._vBoundaries=g},_updateCache:function(d){this.offset=this.helper.offset();if(b(d.left)){this.position.left=d.left}if(b(d.top)){this.position.top=d.top}if(b(d.height)){this.size.height=d.height}if(b(d.width)){this.size.width=d.width}},_updateRatio:function(e){var f=this.position,h=this.size,g=this.axis;if(b(e.height)){e.width=e.height*this.aspectRatio}else{if(b(e.width)){e.height=e.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._vBoundaries,s=this.axis,r=b(u.width)&&v.maxWidth&&v.maxWidth<u.width,q=b(u.height)&&v.maxHeight&&v.maxHeight<u.height,p=b(u.width)&&v.minWidth&&v.minWidth>u.width,o=b(u.height)&&v.minHeight&&v.minHeight>u.height;if(p){u.width=v.minWidth}if(o){u.height=v.minHeight}if(r){u.width=v.maxWidth}if(q){u.height=v.maxHeight}var m=this.originalPosition.left+this.originalSize.width,k=this.position.top+this.size.height,e=/sw|nw|w/.test(s);s=/nw|ne|n/.test(s);if(p&&e){u.left=m-v.minWidth}if(r&&e){u.left=m-v.maxWidth}if(o&&s){u.top=k-v.minHeight}if(q&&s){u.top=k-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(f,d){f=parseInt(f,10)||0;d=parseInt(h[d],10)||0;return f+d})}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 d=this.options;this.elementOffset=this.element.offset();if(this._helper){this.helper=this.helper||c('<div style="overflow:hidden;"></div>');var e=c.browser.msie&&c.browser.version<7,f=e?1:0;e=e?2:-1;this.helper.addClass(this._helper).css({width:this.element.outerWidth()+e,height:this.element.outerHeight()+e,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++d.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(d,e){return{width:this.originalSize.width+e}},w:function(d,e){return{left:this.originalPosition.left+e,width:this.originalSize.width-e}},n:function(d,e,f){return{top:this.originalPosition.top+f,height:this.originalSize.height-f}},s:function(d,e,f){return{height:this.originalSize.height+f}},se:function(d,e,f){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[d,e,f]))},sw:function(d,e,f){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[d,e,f]))},ne:function(d,e,f){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[d,e,f]))},nw:function(d,e,f){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[d,e,f]))}},_propagate:function(d,e){c.ui.plugin.call(this,d,[e,this.ui()]);d!="resize"&&this._trigger(d,e,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}});c.extend(c.ui.resizable,{version:"1.8.14"});c.ui.plugin.add("resizable","alsoResize",{start:function(){var d=c(this).data("resizable").options,e=function(f){c(f).each(function(){var g=c(this);g.data("resizable-alsoresize",{width:parseInt(g.width(),10),height:parseInt(g.height(),10),left:parseInt(g.css("left"),10),top:parseInt(g.css("top"),10),position:g.css("position")})})};if(typeof d.alsoResize=="object"&&!d.alsoResize.parentNode){if(d.alsoResize.length){d.alsoResize=d.alsoResize[0];e(d.alsoResize)}else{c.each(d.alsoResize,function(f){e(f)})}}else{e(d.alsoResize)}},resize:function(e,j){var p=c(this).data("resizable");e=p.options;var o=p.originalSize,m=p.originalPosition,l={height:p.size.height-o.height||0,width:p.size.width-o.width||0,top:p.position.top-m.top||0,left:p.position.left-m.left||0},k=function(f,d){c(f).each(function(){var g=c(this),s=c(this).data("resizable-alsoresize"),u={},h=d&&d.length?d:g.parents(j.originalElement[0]).length?["width","height"]:["width","height","top","left"];c.each(h,function(r,q){if((r=(s[q]||0)+(l[q]||0))&&r>=0){u[q]=r||null}});if(c.browser.opera&&/relative/.test(g.css("position"))){p._revertToRelativePosition=true;g.css({position:"absolute",top:"auto",left:"auto"})}g.css(u)})};typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?c.each(e.alsoResize,function(f,d){k(f,d)}):k(e.alsoResize)},stop:function(){var d=c(this).data("resizable"),e=d.options,f=function(g){c(g).each(function(){var h=c(this);h.css({position:h.data("resizable-alsoresize").position})})};if(d._revertToRelativePosition){d._revertToRelativePosition=false;typeof e.alsoResize=="object"&&!e.alsoResize.nodeType?c.each(e.alsoResize,function(g){f(g)}):f(e.alsoResize)}c(this).removeData("resizable-alsoresize")}});c.ui.plugin.add("resizable","animate",{stop:function(e){var j=c(this).data("resizable"),p=j.options,o=j._proportionallyResizeElements,m=o.length&&/textarea/i.test(o[0].nodeName),l=m&&c.ui.hasScroll(o[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:p.animateDuration,easing:p.animateEasing,step:function(){var d={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)};o&&o.length&&c(o[0]).css({width:d.width,height:d.height});j._updateCache(d);j._propagate("resize",e)}})}});c.ui.plugin.add("resizable","containment",{start:function(){var e=c(this).data("resizable"),j=e.element,p=e.options.containment;if(j=p instanceof c?p.get(0):/parent/.test(p)?j.parent().get(0):p){e.containerElement=c(j);if(/document/.test(p)||p==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 o=c(j),m=[];c(["Top","Right","Left","Bottom"]).each(function(f,d){m[f]=a(o.css("padding"+d))});e.containerOffset=o.offset();e.containerPosition=o.position();e.containerSize={height:o.innerHeight()-m[3],width:o.innerWidth()-m[1]};p=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:p.left,top:p.top,width:k,height:l}}}},resize:function(e){var j=c(this).data("resizable"),p=j.options,o=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=o}if(m.left<(j._helper?o.left:0)){j.size.width+=j._helper?j.position.left-o.left:j.position.left-l.left;if(e){j.size.height=j.size.width/p.aspectRatio}j.position.left=p.helper?o.left:0}if(m.top<(j._helper?o.top:0)){j.size.height+=j._helper?j.position.top-o.top:j.position.top;if(e){j.size.width=j.size.height*p.aspectRatio}j.position.top=j._helper?o.top:0}j.offset.left=j.parentData.left+j.position.left;j.offset.top=j.parentData.top+j.position.top;p=Math.abs((j._helper?j.offset.left-l.left:j.offset.left-l.left)+j.sizeDiff.width);o=Math.abs((j._helper?j.offset.top-l.top:j.offset.top-o.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){p-=j.parentData.left}if(p+j.size.width>=j.parentData.width){j.size.width=j.parentData.width-p;if(e){j.size.height=j.size.width/j.aspectRatio}}if(o+j.size.height>=j.parentData.height){j.size.height=j.parentData.height-o;if(e){j.size.width=j.size.height*j.aspectRatio}}},stop:function(){var e=c(this).data("resizable"),j=e.options,q=e.containerOffset,p=e.containerPosition,o=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(o.css("position"))&&c(this).css({left:l.left-p.left-q.left,width:k,height:m});e._helper&&!j.animate&&/static/.test(o.css("position"))&&c(this).css({left:l.left-p.left-q.left,width:k,height:m})}});c.ui.plugin.add("resizable","ghost",{start:function(){var d=c(this).data("resizable"),e=d.options,f=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:f.height,width:f.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof e.ghost=="string"?e.ghost:"");d.ghost.appendTo(d.helper)},resize:function(){var d=c(this).data("resizable");d.ghost&&d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})},stop:function(){var d=c(this).data("resizable");d.ghost&&d.helper&&d.helper.get(0).removeChild(d.ghost.get(0))}});c.ui.plugin.add("resizable","grid",{resize:function(){var e=c(this).data("resizable"),j=e.options,p=e.size,o=e.originalSize,m=e.originalPosition,l=e.axis;j.grid=typeof j.grid=="number"?[j.grid,j.grid]:j.grid;var k=Math.round((p.width-o.width)/(j.grid[0]||1))*(j.grid[0]||1);j=Math.round((p.height-o.height)/(j.grid[1]||1))*(j.grid[1]||1);if(/^(se|s|e)$/.test(l)){e.size.width=o.width+k;e.size.height=o.height+j}else{if(/^(ne)$/.test(l)){e.size.width=o.width+k;e.size.height=o.height+j;e.position.top=m.top-j}else{if(/^(sw)$/.test(l)){e.size.width=o.width+k;e.size.height=o.height+j}else{e.size.width=o.width+k;e.size.height=o.height+j;e.position.top=m.top-j}e.position.left=m.left-k}}}});var a=function(d){return parseInt(d,10)||0},b=function(d){return !isNaN(parseInt(d,10))}})(jQuery);(function(a){a.widget("ui.selectable",a.ui.mouse,{options:{appendTo:"body",autoRefresh:true,distance:0,filter:"*",tolerance:"touch"},_create:function(){var d=this;this.element.addClass("ui-selectable");this.dragged=false;var b;this.refresh=function(){b=a(d.options.filter,d.element[0]);b.each(function(){var e=a(this),c=e.offset();a.data(this,"selectable-item",{element:this,$element:e,left:c.left,top:c.top,right:c.left+e.outerWidth(),bottom:c.top+e.outerHeight(),startselected:false,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.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 d=!g.metaKey||!c.$element.hasClass("ui-selected");c.$element.removeClass(d?"ui-unselecting":"ui-selected").addClass(d?"ui-selecting":"ui-unselecting");c.unselecting=!d;c.selecting=d;(c.selected=d)?b._trigger("selecting",g,{selecting:c.element}):b._trigger("unselecting",g,{unselecting:c.element});return false}})}},_mouseDrag:function(r){var p=this;this.dragged=true;if(!this.options.disabled){var q=this.options,e=this.opos[0],o=this.opos[1],m=r.pageX,l=r.pageY;if(e>m){var k=m;m=e;e=k}if(o>l){k=l;l=o;o=k}this.helper.css({left:e,top:o,width:m-e,height:l-o});this.selectees.each(function(){var b=a.data(this,"selectable-item");if(!(!b||b.element==p.element[0])){var c=false;if(q.tolerance=="touch"){c=!(b.left>m||b.right<e||b.top>l||b.bottom<o)}else{if(q.tolerance=="fit"){c=b.left>e&&b.right<m&&b.top>o&&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;p._trigger("selecting",r,{selecting:b.element})}}else{if(b.selecting){if(r.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}p._trigger("unselecting",r,{unselecting:b.element})}}if(b.selected){if(!r.metaKey&&!b.startselected){b.$element.removeClass("ui-selected");b.selected=false;b.$element.addClass("ui-unselecting");b.unselecting=true;p._trigger("unselecting",r,{unselecting:b.element})}}}}});return false}},_mouseStop:function(d){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",d,{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",d,{selected:c.element})});this._trigger("stop",d);this.helper.remove();return false}});a.extend(a.ui.selectable,{version:"1.8.14"})})(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(){var b=this.options;this.containerCache={};this.element.addClass("ui-sortable");this.refresh();this.floating=this.items.length?b.axis==="x"||/left|right/.test(this.items[0].item.css("float"))||/inline|table-cell/.test(this.items[0].item.css("display")):false;this.offset=this.element.offset();this._mouseInit()},destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").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(d,c){if(d==="disabled"){this.options[d]=c;this.widget()[c?"addClass":"removeClass"]("ui-sortable-disabled")}else{a.Widget.prototype._setOption.apply(this,arguments)}},_mouseCapture:function(g,d){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(g);var k=null,j=this;a(g.target).parents().each(function(){if(a.data(this,"sortable-item")==j){k=a(this);return false}});if(a.data(g.target,"sortable-item")==j){k=a(g.target)}if(!k){return false}if(this.options.handle&&!d){var h=false;a(this.options.handle,k).find("*").andSelf().each(function(){if(this==g.target){h=true}});if(!h){return false}}this.currentItem=k;this._removeCurrentsFromItems();return true},_mouseStart:function(f,d,h){d=this.options;var g=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(f);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:f.pageX-this.offset.left,top:f.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(f);this.originalPageX=f.pageX;this.originalPageY=f.pageY;d.cursorAt&&this._adjustOffsetFromHelper(d.cursorAt);this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};this.helper[0]!=this.currentItem[0]&&this.currentItem.hide();this._createPlaceholder();d.containment&&this._setContainment();if(d.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",d.cursor)}if(d.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",d.opacity)}if(d.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",d.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",f,this._uiHash());this._preserveHelperProportions||this._cacheHelperProportions();if(!h){for(h=this.containers.length-1;h>=0;h--){this.containers[h]._trigger("activate",f,g._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,f);this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(f);return true},_mouseDrag:function(g){this.position=this._generatePosition(g);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var d=this.options,k=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if(this.overflowOffset.top+this.scrollParent[0].offsetHeight-g.pageY<d.scrollSensitivity){this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop+d.scrollSpeed}else{if(g.pageY-this.overflowOffset.top<d.scrollSensitivity){this.scrollParent[0].scrollTop=k=this.scrollParent[0].scrollTop-d.scrollSpeed}}if(this.overflowOffset.left+this.scrollParent[0].offsetWidth-g.pageX<d.scrollSensitivity){this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft+d.scrollSpeed}else{if(g.pageX-this.overflowOffset.left<d.scrollSensitivity){this.scrollParent[0].scrollLeft=k=this.scrollParent[0].scrollLeft-d.scrollSpeed}}}else{if(g.pageY-a(document).scrollTop()<d.scrollSensitivity){k=a(document).scrollTop(a(document).scrollTop()-d.scrollSpeed)}else{if(a(window).height()-(g.pageY-a(document).scrollTop())<d.scrollSensitivity){k=a(document).scrollTop(a(document).scrollTop()+d.scrollSpeed)}}if(g.pageX-a(document).scrollLeft()<d.scrollSensitivity){k=a(document).scrollLeft(a(document).scrollLeft()-d.scrollSpeed)}else{if(a(window).width()-(g.pageX-a(document).scrollLeft())<d.scrollSensitivity){k=a(document).scrollLeft(a(document).scrollLeft()+d.scrollSpeed)}}}k!==false&&a.ui.ddmanager&&!d.dropBehaviour&&a.ui.ddmanager.prepareOffsets(this,g)}this.positionAbs=this._convertPositionTo("absolute");if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}for(d=this.items.length-1;d>=0;d--){k=this.items[d];var j=k.item[0],h=this._intersectsWithPointer(k);if(h){if(j!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=j&&!a.ui.contains(this.placeholder[0],j)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],j):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(k)){this._rearrange(g,k)}else{break}this._trigger("change",g,this._uiHash());break}}}this._contactContainers(g);a.ui.ddmanager&&a.ui.ddmanager.drag(this,g);this._trigger("sort",g,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(e,d){if(e){a.ui.ddmanager&&!this.options.dropBehaviour&&a.ui.ddmanager.drop(this,e);if(this.options.revert){var f=this;d=f.placeholder.offset();f.reverting=true;a(this.helper).animate({left:d.left-this.offset.parent.left-f.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:d.top-this.offset.parent.top-f.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){f._clear(e)})}else{this._clear(e,d)}return false}},cancel:function(){var d=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,d._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,d._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(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};a(d).each(function(){var b=(a(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[-=_](.+)/);if(b){f.push((e.key||b[1]+"[]")+"="+(e.key&&e.expression?b[1]:b[2]))}});!f.length&&e.key&&f.push(e.key+"=");return f.join("&")},toArray:function(e){var d=this._getItemsAsjQuery(e&&e.connected),f=[];e=e||{};d.each(function(){f.push(a(e.item||this).attr(e.attribute||"id")||"")});return f},_intersectsWith:function(x){var w=this.positionAbs.left,v=w+this.helperProportions.width,u=this.positionAbs.top,s=u+this.helperProportions.height,r=x.left,q=r+x.width,p=x.top,m=p+x.height,o=this.offset.click.top,d=this.offset.click.left;o=u+o>p&&u+o<m&&w+d>r&&w+d<q;return this.options.tolerance=="pointer"||this.options.forcePointerForContainers||this.options.tolerance!="pointer"&&this.helperProportions[this.floating?"width":"height"]>x[this.floating?"width":"height"]?o:r<w+this.helperProportions.width/2&&v-this.helperProportions.width/2<q&&p<u+this.helperProportions.height/2&&s-this.helperProportions.height/2<m},_intersectsWithPointer:function(e){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height);e=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);d=d&&e;e=this._getDragVerticalDirection();var f=this._getDragHorizontalDirection();if(!d){return false}return this.floating?f&&f=="right"||e=="down"?2:1:e&&(e=="down"?2:1)},_intersectsWithSides:function(f){var d=a.ui.isOverAxis(this.positionAbs.top+this.offset.click.top,f.top+f.height/2,f.height);f=a.ui.isOverAxis(this.positionAbs.left+this.offset.click.left,f.left+f.width/2,f.width);var h=this._getDragVerticalDirection(),g=this._getDragHorizontalDirection();return this.floating&&g?g=="right"&&f||g=="left"&&!f:h&&(h=="down"&&d||h=="up"&&!d)},_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(j){var d=[],p=[],o=this._connectWith();if(o&&j){for(j=o.length-1;j>=0;j--){for(var m=a(o[j]),l=m.length-1;l>=0;l--){var k=a.data(m[l],"sortable");if(k&&k!=this&&!k.options.disabled){p.push([a.isFunction(k.options.items)?k.options.items.call(k.element):a(k.options.items,k.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),k])}}}}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(j=p.length-1;j>=0;j--){p[j][0].each(function(){d.push(this)})}return a(d)},_removeCurrentsFromItems:function(){for(var e=this.currentItem.find(":data(sortable-item)"),d=0;d<this.items.length;d++){for(var f=0;f<e.length;f++){e[f]==this.items[d].item[0]&&this.items.splice(d,1)}}},_refreshItems:function(j){this.items=[];this.containers=[this];var d=this.items,q=[[a.isFunction(this.options.items)?this.options.items.call(this.element[0],j,{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 m=a(p[o]),l=m.length-1;l>=0;l--){var k=a.data(m[l],"sortable");if(k&&k!=this&&!k.options.disabled){q.push([a.isFunction(k.options.items)?k.options.items.call(k.element[0],j,{item:this.currentItem}):a(k.options.items,k.element),k]);this.containers.push(k)}}}}for(o=q.length-1;o>=0;o--){j=q[o][1];p=q[o][0];l=0;for(m=p.length;l<m;l++){k=a(p[l]);k.data("sortable-item",j);d.push({item:k,instance:j,width:0,height:0,left:0,top:0})}}},refreshPositions:function(f){if(this.offsetParent&&this.helper){this.offset.parent=this._getParentOffset()}for(var d=this.items.length-1;d>=0;d--){var h=this.items[d];if(!(h.instance!=this.currentContainer&&this.currentContainer&&h.item[0]!=this.currentItem[0])){var g=this.options.toleranceElement?a(this.options.toleranceElement,h.item):h.item;if(!f){h.width=g.outerWidth();h.height=g.outerHeight()}g=g.offset();h.left=g.left;h.top=g.top}}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(d=this.containers.length-1;d>=0;d--){g=this.containers[d].element.offset();this.containers[d].containerCache.left=g.left;this.containers[d].containerCache.top=g.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}return this},_createPlaceholder:function(f){var d=f||this,h=d.options;if(!h.placeholder||h.placeholder.constructor==String){var g=h.placeholder;h.placeholder={element:function(){var b=a(document.createElement(d.currentItem[0].nodeName)).addClass(g||d.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!g){b.style.visibility="hidden"}return b},update:function(c,b){if(!(g&&!h.forcePlaceholderSize)){b.height()||b.height(d.currentItem.innerHeight()-parseInt(d.currentItem.css("paddingTop")||0,10)-parseInt(d.currentItem.css("paddingBottom")||0,10));b.width()||b.width(d.currentItem.innerWidth()-parseInt(d.currentItem.css("paddingLeft")||0,10)-parseInt(d.currentItem.css("paddingRight")||0,10))}}}}d.placeholder=a(h.placeholder.element.call(d.element,d.currentItem));d.currentItem.after(d.placeholder);h.placeholder.update(d,d.placeholder)},_contactContainers:function(j){for(var d=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(!(d&&a.ui.contains(this.containers[o].element[0],d.element[0]))){d=this.containers[o];p=o}}else{if(this.containers[o].containerCache.over){this.containers[o]._trigger("out",j,this._uiHash(this));this.containers[o].containerCache.over=0}}}}if(d){if(this.containers.length===1){this.containers[p]._trigger("over",j,this._uiHash(this));this.containers[p].containerCache.over=1}else{if(this.currentContainer!=this.containers[p]){d=10000;o=null;for(var m=this.positionAbs[this.containers[p].floating?"left":"top"],l=this.items.length-1;l>=0;l--){if(a.ui.contains(this.containers[p].element[0],this.items[l].item[0])){var k=this.items[l][this.containers[p].floating?"left":"top"];if(Math.abs(k-m)<d){d=Math.abs(k-m);o=this.items[l]}}}if(o||this.options.dropOnEmpty){this.currentContainer=this.containers[p];o?this._rearrange(j,o,null,true):this._rearrange(j,null,this.containers[p].element,true);this._trigger("change",j,this._uiHash());this.containers[p]._trigger("change",j,this._uiHash(this));this.options.placeholder.update(this.currentContainer,this.placeholder);this.containers[p]._trigger("over",j,this._uiHash(this));this.containers[p].containerCache.over=1}}}}},_createHelper:function(d){var c=this.options;d=a.isFunction(c.helper)?a(c.helper.apply(this.element[0],[d,this.currentItem])):c.helper=="clone"?this.currentItem.clone():this.currentItem;d.parents("body").length||a(c.appendTo!="parent"?c.appendTo:this.currentItem[0].parentNode)[0].appendChild(d[0]);if(d[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(d[0].style.width==""||c.forceHelperSize){d.width(this.currentItem.width())}if(d[0].style.height==""||c.forceHelperSize){d.height(this.currentItem.height())}return d},_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 e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!/^(document|window|parent)$/.test(e.containment)){var d=a(e.containment)[0];e=a(e.containment).offset();var f=a(d).css("overflow")!="hidden";this.containment=[e.left+(parseInt(a(d).css("borderLeftWidth"),10)||0)+(parseInt(a(d).css("paddingLeft"),10)||0)-this.margins.left,e.top+(parseInt(a(d).css("borderTopWidth"),10)||0)+(parseInt(a(d).css("paddingTop"),10)||0)-this.margins.top,e.left+(f?Math.max(d.scrollWidth,d.offsetWidth):d.offsetWidth)-(parseInt(a(d).css("borderLeftWidth"),10)||0)-(parseInt(a(d).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,e.top+(f?Math.max(d.scrollHeight,d.offsetHeight):d.offsetHeight)-(parseInt(a(d).css("borderTopWidth"),10)||0)-(parseInt(a(d).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}},_convertPositionTo:function(f,d){if(!d){d=this.position}f=f=="absolute"?1:-1;var h=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=/(html|body)/i.test(h[0].tagName);return{top:d.top+this.offset.relative.top*f+this.offset.parent.top*f-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():g?0:h.scrollTop())*f),left:d.left+this.offset.relative.left*f+this.offset.parent.left*f-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:h.scrollLeft())*f)}},_generatePosition:function(h){var d=this.options,m=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(m[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var k=h.pageX,j=h.pageY;if(this.originalPosition){if(this.containment){if(h.pageX-this.offset.click.left<this.containment[0]){k=this.containment[0]+this.offset.click.left}if(h.pageY-this.offset.click.top<this.containment[1]){j=this.containment[1]+this.offset.click.top}if(h.pageX-this.offset.click.left>this.containment[2]){k=this.containment[2]+this.offset.click.left}if(h.pageY-this.offset.click.top>this.containment[3]){j=this.containment[3]+this.offset.click.top}}if(d.grid){j=this.originalPageY+Math.round((j-this.originalPageY)/d.grid[1])*d.grid[1];j=this.containment?!(j-this.offset.click.top<this.containment[1]||j-this.offset.click.top>this.containment[3])?j:!(j-this.offset.click.top<this.containment[1])?j-d.grid[1]:j+d.grid[1]:j;k=this.originalPageX+Math.round((k-this.originalPageX)/d.grid[0])*d.grid[0];k=this.containment?!(k-this.offset.click.left<this.containment[0]||k-this.offset.click.left>this.containment[2])?k:!(k-this.offset.click.left<this.containment[0])?k-d.grid[0]:k+d.grid[0]:k}}return{top:j-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():l?0:m.scrollTop()),left:k-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():l?0:m.scrollLeft())}},_rearrange:function(h,d,m,l){m?m[0].appendChild(this.placeholder[0]):d.item[0].parentNode.insertBefore(this.placeholder[0],this.direction=="down"?d.item[0]:d.item[0].nextSibling);this.counter=this.counter?++this.counter:1;var k=this,j=this.counter;window.setTimeout(function(){j==k.counter&&k.refreshPositions(!l)},0)},_clear:function(f,d){this.reverting=false;var h=[];!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem);this._noFinalSort=null;if(this.helper[0]==this.currentItem[0]){for(var g in this._storedCSS){if(this._storedCSS[g]=="auto"||this._storedCSS[g]=="static"){this._storedCSS[g]=""}}this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}this.fromOutside&&!d&&h.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])&&!d){h.push(function(b){this._trigger("update",b,this._uiHash())})}if(!a.ui.contains(this.element[0],this.currentItem[0])){d||h.push(function(b){this._trigger("remove",b,this._uiHash())});for(g=this.containers.length-1;g>=0;g--){if(a.ui.contains(this.containers[g].element[0],this.currentItem[0])&&!d){h.push(function(b){return function(c){b._trigger("receive",c,this._uiHash(this))}}.call(this,this.containers[g]));h.push(function(b){return function(c){b._trigger("update",c,this._uiHash(this))}}.call(this,this.containers[g]))}}}for(g=this.containers.length-1;g>=0;g--){d||h.push(function(b){return function(c){b._trigger("deactivate",c,this._uiHash(this))}}.call(this,this.containers[g]));if(this.containers[g].containerCache.over){h.push(function(b){return function(c){b._trigger("out",c,this._uiHash(this))}}.call(this,this.containers[g]));this.containers[g].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(!d){this._trigger("beforeStop",f,this._uiHash());for(g=0;g<h.length;g++){h[g].call(this,f)}this._trigger("stop",f,this._uiHash())}return false}d||this._trigger("beforeStop",f,this._uiHash());this.placeholder[0].parentNode.removeChild(this.placeholder[0]);this.helper[0]!=this.currentItem[0]&&this.helper.remove();this.helper=null;if(!d){for(g=0;g<h.length;g++){h[g].call(this,f)}this._trigger("stop",f,this._uiHash())}this.fromOutside=false;return true},_trigger:function(){a.Widget.prototype._trigger.apply(this,arguments)===false&&this.cancel()},_uiHash:function(d){var c=d||this;return{helper:c.helper,placeholder:c.placeholder||a([]),position:c.position,originalPosition:c.originalPosition,offset:c.positionAbs,item:c.currentItem,sender:d?d.element:null}}});a.extend(a.ui.sortable,{version:"1.8.14"})})(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 d=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(d.autoHeight||d.fillHeight){c.css("height","")}return a.Widget.prototype.destroy.call(this)},_setOption:function(d,c){a.Widget.prototype._setOption.apply(this,arguments);d=="active"&&this.activate(c);if(d=="icons"){this._destroyIcons();c&&this._createIcons()}if(d=="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 r=this.options;if(!r.disabled){if(k.target){k=a(k.currentTarget||c);c=k[0]===this.active[0];r.active=r.collapsible&&c?false:this.headers.index(k);if(!(this.running||!r.collapsible&&c)){var m=this.active;l=k.next();o=this.active.next();q={options:r,newHeader:c&&r.collapsible?a([]):k,oldHeader:this.active,newContent:c&&r.collapsible?a([]):l,oldContent:o};var p=this.headers.index(this.active[0])>this.headers.index(k[0]);this.active=c?a([]):k;this._toggle(l,o,q,c,p);m.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(r.icons.headerSelected).addClass(r.icons.header);if(!c){k.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").children(".ui-icon").removeClass(r.icons.header).addClass(r.icons.headerSelected);k.next().addClass("ui-accordion-content-active")}}}else{if(r.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").children(".ui-icon").removeClass(r.icons.headerSelected).addClass(r.icons.header);this.active.next().addClass("ui-accordion-content-active");var o=this.active.next(),q={options:r,newHeader:a([]),oldHeader:r.active,newContent:a([]),oldContent:o},l=this.active=a([]);this._toggle(l,o,q)}}}},_toggle:function(v,u,s,o,q){var p=this,r=p.options;p.toShow=v;p.toHide=u;p.data=s;var l=function(){if(p){return p._completed.apply(p,arguments)}};p._trigger("changestart",null,p.data);p.running=u.size()===0?v.size():u.size();if(r.animated){s={};s=r.collapsible&&o?{toShow:a([]),toHide:u,complete:l,down:q,autoHeight:r.autoHeight||r.fillSpace}:{toShow:v,toHide:u,complete:l,down:q,autoHeight:r.autoHeight||r.fillSpace};if(!r.proxied){r.proxied=r.animated}if(!r.proxiedDuration){r.proxiedDuration=r.duration}r.animated=a.isFunction(r.proxied)?r.proxied(s):r.proxied;r.duration=a.isFunction(r.proxiedDuration)?r.proxiedDuration(s):r.proxiedDuration;o=a.ui.accordion.animations;var m=r.duration,c=r.animated;if(c&&!o[c]&&!a.easing[c]){c="slide"}o[c]||(o[c]=function(b){this.slide(b,{easing:c,duration:m||700})});o[c](s)}else{if(r.collapsible&&o){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.14",animations:{slide:function(j,c){j=a.extend({easing:"swing",duration:300},j,c);if(j.toHide.size()){if(j.toShow.size()){var p=j.toShow.css("overflow"),k=0,m={},l={},o;c=j.toShow;o=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,d){l[d]="hide";b=(""+a.css(j.toShow[0],d)).match(/^([\d+-.]+)(.*)$/);m[d]={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,d){if(d.prop=="height"){k=d.end-d.start===0?0:(d.now-d.start)/(d.end-d.start)}j.toShow[0].style[d.prop]=k*m[d.prop].value+m[d.prop].unit},duration:j.duration,easing:j.easing,complete:function(){j.autoHeight||j.toShow.css("height","");j.toShow.css({width:o,overflow:p});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 d=this,c=this.element[0].ownerDocument,e;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(h){if(!(d.options.disabled||d.element.attr("readonly"))){e=false;var g=b.ui.keyCode;switch(h.keyCode){case g.PAGE_UP:d._move("previousPage",h);break;case g.PAGE_DOWN:d._move("nextPage",h);break;case g.UP:d._move("previous",h);h.preventDefault();break;case g.DOWN:d._move("next",h);h.preventDefault();break;case g.ENTER:case g.NUMPAD_ENTER:if(d.menu.active){e=true;h.preventDefault()}case g.TAB:if(!d.menu.active){return}d.menu.select(h);break;case g.ESCAPE:d.element.val(d.term);d.close(h);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,h)}},d.options.delay);break}}}).bind("keypress.autocomplete",function(f){if(e){e=false;f.preventDefault()}}).bind("focus.autocomplete",function(){if(!d.options.disabled){d.selectedItem=null;d.previous=d.element.val()}}).bind("blur.autocomplete",function(f){if(!d.options.disabled){clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(f);d._change(f)},150)}});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=b("<ul></ul>").addClass("ui-autocomplete").appendTo(b(this.options.appendTo||"body",c)[0]).mousedown(function(h){var g=d.menu.element[0];b(h.target).closest(".ui-menu-item").length||setTimeout(function(){b(document).one("mousedown",function(f){f.target!==d.element[0]&&f.target!==g&&!b.ui.contains(g,f.target)&&d.close()})},1);setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(h,g){g=g.item.data("item.autocomplete");false!==d._trigger("focus",h,{item:g})&&/^key/.test(h.originalEvent.type)&&d.element.val(g.value)},selected:function(l,k){var j=k.item.data("item.autocomplete"),g=d.previous;if(d.element[0]!==c.activeElement){d.element.focus();d.previous=g;setTimeout(function(){d.previous=g;d.selectedItem=j},1)}false!==d._trigger("select",l,{item:j})&&d.element.val(j.value);d.term=d.element.val();d.close(l);d.selectedItem=j},blur:function(){d.menu.element.is(":visible")&&d.element.val()!==d.term&&d.element.val(d.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");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(d,c){b.Widget.prototype._setOption.apply(this,arguments);d==="source"&&this._initSource();if(d==="appendTo"){this.menu.element.appendTo(b(c||"body",this.element[0].ownerDocument)[0])}d==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var d=this,c,e;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"){e=this.options.source;this.source=function(h,g){d.xhr&&d.xhr.abort();d.xhr=b.ajax({url:e,data:h,dataType:"json",autocompleteRequest:++a,success:function(f){this.autocompleteRequest===a&&g(f)},error:function(){this.autocompleteRequest===a&&g([])}})}}else{this.source=this.options.source}}},search:function(d,c){d=d!=null?d:this.element.val();this.term=this.element.val();if(d.length<this.options.minLength){return this.close(c)}clearTimeout(this.closing);if(this._trigger("search",c)!==false){return this._search(d)}},_search:function(c){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:c},this.response)},_response:function(c){if(!this.options.disabled&&c&&c.length){c=this._normalize(c);this._suggest(c);this._trigger("open")}else{this.close()}this.pending--;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(d){if(typeof d==="string"){return{label:d,value:d}}return b.extend({label:d.label||d.value,value:d.value||d.label},d)})},_suggest:function(d){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,d);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(d,c){var e=this;b.each(c,function(h,g){e._renderItem(d,g)})},_renderItem:function(d,c){return b("<li></li>").data("item.autocomplete",c).append(b("<a></a>").text(c.label)).appendTo(d)},_move:function(d,c){if(this.menu.element.is(":visible")){if(this.menu.first()&&/^previous/.test(d)||this.menu.last()&&/^next/.test(d)){this.element.val(this.term);this.menu.deactivate()}else{this.menu[d](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(d,c){var e=new RegExp(b.ui.autocomplete.escapeRegex(c),"i");return b.grep(d,function(f){return e.test(f.label||f.value||f)})}})})(jQuery);(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(a(c.target).closest(".ui-menu-item a").length){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(j,f){this.deactivate();if(this.hasScroll()){var d=f.offset().top-this.element.offset().top,h=this.element.scrollTop(),k=this.element.height();if(d<0){this.element.scrollTop(h+d)}else{d>=k&&this.element.scrollTop(h+d-k+f.height())}}this.active=f.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",j,{item:f})},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(f,d,c){if(this.active){f=this.active[f+"All"](".ui-menu-item").eq(0);f.length?this.activate(c,f):this.activate(c,this.element.children(d))}else{this.activate(c,this.element.children(d))}},nextPage:function(h){if(this.hasScroll()){if(!this.active||this.last()){this.activate(h,this.element.children(".ui-menu-item:first"))}else{var d=this.active.offset().top,c=this.element.height(),f=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d-c+a(this).height();return b<10&&b>-10});f.length||(f=this.element.children(".ui-menu-item:last"));this.activate(h,f)}}else{this.activate(h,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(f){if(this.hasScroll()){if(!this.active||this.first()){this.activate(f,this.element.children(".ui-menu-item:last"))}else{var d=this.active.offset().top,c=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-d+c-a(this).height();return b<10&&b>-10});result.length||(result=this.element.children(".ui-menu-item:first"));this.activate(f,result)}}else{this.activate(f,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})})(jQuery);(function(a){var m,f,e,o,c=function(){var b=a(this).find(":ui-button");setTimeout(function(){b.button("refresh")},1)},d=function(b){var j=b.name,h=b.form,g=a([]);if(j){g=h?a(h).find("[name='"+j+"']"):a("[name='"+j+"']",b.ownerDocument).filter(function(){return !this.form})}return g};a.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 b=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){a(this).addClass("ui-state-hover");this===m&&a(this).addClass("ui-state-active")}}).bind("mouseleave.button",function(){j.disabled||a(this).removeClass(g)}).bind("click.button",function(k){if(j.disabled){k.preventDefault();k.stopImmediatePropagation()}});this.element.bind("focus.button",function(){b.buttonElement.addClass("ui-state-focus")}).bind("blur.button",function(){b.buttonElement.removeClass("ui-state-focus")});if(h){this.element.bind("change.button",function(){o||b.refresh()});this.buttonElement.bind("mousedown.button",function(k){if(!j.disabled){o=false;f=k.pageX;e=k.pageY}}).bind("mouseup.button",function(k){if(!j.disabled){if(f!==k.pageX||e!==k.pageY){o=true}}})}if(this.type==="checkbox"){this.buttonElement.bind("click.button",function(){if(j.disabled||o){return false}a(this).toggleClass("ui-state-active");b.buttonElement.attr("aria-pressed",b.element[0].checked)})}else{if(this.type==="radio"){this.buttonElement.bind("click.button",function(){if(j.disabled||o){return false}a(this).addClass("ui-state-active");b.buttonElement.attr("aria-pressed",true);var k=b.element[0];d(k).not(k).map(function(){return a(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed",false)})}else{this.buttonElement.bind("mousedown.button",function(){if(j.disabled){return false}a(this).addClass("ui-state-active");m=this;a(document).one("mouseup",function(){m=null})}).bind("mouseup.button",function(){if(j.disabled){return false}a(this).removeClass("ui-state-active")}).bind("keydown.button",function(k){if(j.disabled){return false}if(k.keyCode==a.ui.keyCode.SPACE||k.keyCode==a.ui.keyCode.ENTER){a(this).addClass("ui-state-active")}}).bind("keyup.button",function(){a(this).removeClass("ui-state-active")});this.buttonElement.is("a")&&this.buttonElement.keyup(function(k){k.keyCode===a.ui.keyCode.SPACE&&a(this).click()})}}this._setOption("disabled",j.disabled);this._resetButton()},_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 b=this.element.parents().filter(":last"),g="label[for="+this.element.attr("id")+"]";this.buttonElement=b.find(g);if(!this.buttonElement.length){b=b.length?b.siblings():this.element.siblings();this.buttonElement=b.filter(g);if(!this.buttonElement.length){this.buttonElement=b.find(g)}}this.element.addClass("ui-helper-hidden-accessible");(b=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active");this.buttonElement.attr("aria-pressed",b)}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");a.Widget.prototype.destroy.call(this)},_setOption:function(b,g){a.Widget.prototype._setOption.apply(this,arguments);if(b==="disabled"){g?this.element.attr("disabled",true):this.element.removeAttr("disabled")}else{this._resetButton()}},refresh:function(){var b=this.element.is(":disabled");b!==this.options.disabled&&this._setOption("disabled",b);if(this.type==="radio"){d(this.element[0]).each(function(){a(this).is(":checked")?a(this).button("widget").addClass("ui-state-active").attr("aria-pressed",true):a(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 b=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=a("<span></span>").addClass("ui-button-text").html(this.options.label).appendTo(b.empty()).text(),h=this.options.icons,g=h.primary&&h.secondary,j=[];if(h.primary||h.secondary){if(this.options.text){j.push("ui-button-text-icon"+(g?"s":h.primary?"-primary":"-secondary"))}h.primary&&b.prepend("<span class='ui-button-icon-primary ui-icon "+h.primary+"'></span>");h.secondary&&b.append("<span class='ui-button-icon-secondary ui-icon "+h.secondary+"'></span>");if(!this.options.text){j.push(g?"ui-button-icons-only":"ui-button-icon-only");this.hasTitle||b.attr("title",k)}}else{j.push("ui-button-text-only")}b.addClass(j.join(" "))}}});a.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(b,g){b==="disabled"&&this.buttons.button("option",b,g);a.Widget.prototype._setOption.apply(this,arguments)},refresh:function(){var b=this.element.css("direction")==="ltr";this.buttons=this.element.find(this.options.items).filter(":ui-button").button("refresh").end().not(":ui-button").button().end().map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(b?"ui-corner-left":"ui-corner-right").end().filter(":last").addClass(b?"ui-corner-right":"ui-corner-left").end().end()},destroy:function(){this.element.removeClass("ui-buttonset");this.buttons.map(function(){return a(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy");a.Widget.prototype.destroy.call(this)}})})(jQuery);(function(f,b){var a={buttons:true,height:true,maxHeight:true,maxWidth:true,minHeight:true,minWidth:true,width:true},e={maxHeight:true,maxWidth:true,minHeight:true,minWidth:true},d=f.attrFn||{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true,click:true};f.widget("ui.dialog",{options:{autoOpen:true,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:{my:"center",at:"center",collision:"fit",using:function(g){var c=f(this).css(g).offset().top;c<0&&f(this).css("top",g.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,p=c.title||"&#160;",o=f.ui.dialog.getTitleId(j.element),l=(j.uiDialog=f("<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(g){if(c.closeOnEscape&&g.keyCode&&g.keyCode===f.ui.keyCode.ESCAPE){j.close(g);g.preventDefault()}}).attr({role:"dialog","aria-labelledby":o}).mousedown(function(g){j.moveToTop(false,g)});j.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(l);var m=(j.uiDialogTitlebar=f("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(l),k=f('<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(g){j.close(g);return false}).appendTo(m);(j.uiDialogTitlebarCloseText=f("<span></span>")).addClass("ui-icon ui-icon-closethick").text(c.closeText).appendTo(k);f("<span></span>").addClass("ui-dialog-title").attr("id",o).html(p).prependTo(m);if(f.isFunction(c.beforeclose)&&!f.isFunction(c.beforeClose)){c.beforeClose=c.beforeclose}m.find("*").add(m).disableSelection();c.draggable&&f.fn.draggable&&j._makeDraggable();c.resizable&&f.fn.resizable&&j._makeResizable();j._createButtons(c.buttons);j._isOpen=false;f.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(g){var c=this,j,h;if(false!==c._trigger("beforeClose",g)){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",g)})}else{c.uiDialog.hide();c._trigger("close",g)}f.ui.dialog.overlay.resize();if(c.options.modal){j=0;f(".ui-dialog").each(function(){if(this!==c.uiDialog[0]){h=f(this).css("z-index");isNaN(h)||(j=Math.max(j,h))}});f.ui.dialog.maxZ=j}return c}},isOpen:function(){return this._isOpen},moveToTop:function(g,c){var j=this,h=j.options;if(h.modal&&!g||!h.stack&&!h.modal){return j._trigger("focus",c)}if(h.zIndex>f.ui.dialog.maxZ){f.ui.dialog.maxZ=h.zIndex}if(j.overlay){f.ui.dialog.maxZ+=1;j.overlay.$el.css("z-index",f.ui.dialog.overlay.maxZ=f.ui.dialog.maxZ)}g={scrollTop:j.element.attr("scrollTop"),scrollLeft:j.element.attr("scrollLeft")};f.ui.dialog.maxZ+=1;j.uiDialog.css("z-index",f.ui.dialog.maxZ);j.element.attr(g);j._trigger("focus",c);return j},open:function(){if(!this._isOpen){var g=this,c=g.options,h=g.uiDialog;g.overlay=c.modal?new f.ui.dialog.overlay(g):null;g._size();g._position(c.position);h.show(c.show);g.moveToTop(true);c.modal&&h.bind("keypress.ui-dialog",function(l){if(l.keyCode===f.ui.keyCode.TAB){var j=f(":tabbable",this),k=j.filter(":first");j=j.filter(":last");if(l.target===j[0]&&!l.shiftKey){k.focus(1);return false}else{if(l.target===k[0]&&l.shiftKey){j.focus(1);return false}}}});f(g.element.find(":tabbable").get().concat(h.find(".ui-dialog-buttonpane :tabbable").get().concat(h.get()))).eq(0).focus();g._isOpen=true;g._trigger("open");return g}},_createButtons:function(h){var c=this,l=false,k=f("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),j=f("<div></div>").addClass("ui-dialog-buttonset").appendTo(k);c.uiDialog.find(".ui-dialog-buttonpane").remove();typeof h==="object"&&h!==null&&f.each(h,function(){return !(l=true)});if(l){f.each(h,function(o,m){m=f.isFunction(m)?{click:m,text:o}:m;var g=f('<button type="button"></button>').click(function(){m.click.apply(c.element[0],arguments)}).appendTo(j);f.each(m,function(q,p){if(q!=="click"){q in d?g[q](p):g.attr(q,p)}});f.fn.button&&g.button()});k.appendTo(c.uiDialog)}},_makeDraggable:function(){function h(g){return{position:g.position,offset:g.offset}}var c=this,l=c.options,k=f(document),j;c.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(m,g){j=l.height==="auto"?"auto":f(this).height();f(this).height(f(this).height()).addClass("ui-dialog-dragging");c._trigger("dragStart",m,h(g))},drag:function(m,g){c._trigger("drag",m,h(g))},stop:function(m,g){l.position=[g.position.left-k.scrollLeft(),g.position.top-k.scrollTop()];f(this).removeClass("ui-dialog-dragging").height(j);c._trigger("dragStop",m,h(g));f.ui.dialog.overlay.resize()}})},_makeResizable:function(h){function c(g){return{originalPosition:g.originalPosition,originalSize:g.originalSize,position:g.position,size:g.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(m,g){f(this).addClass("ui-dialog-resizing");l._trigger("resizeStart",m,c(g))},resize:function(m,g){l._trigger("resize",m,c(g))},stop:function(m,g){f(this).removeClass("ui-dialog-resizing");k.height=f(this).height();k.width=f(this).width();l._trigger("resizeStop",m,c(g));f.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(g){var c=[],j=[0,0],h;if(g){if(typeof g==="string"||typeof g==="object"&&"0" in g){c=g.split?g.split(" "):[g[0],g[1]];if(c.length===1){c[1]=c[0]}f.each(["left","top"],function(k,l){if(+c[k]===c[k]){j[k]=c[k];c[k]=l}});g={my:c.join(" "),at:c.join(" "),offset:j.join(" ")}}g=f.extend({},f.ui.dialog.prototype.options.position,g)}else{g=f.ui.dialog.prototype.options.position}(h=this.uiDialog.is(":visible"))||this.uiDialog.show();this.uiDialog.css({top:0,left:0}).position(f.extend({of:window},g));h||this.uiDialog.hide()},_setOptions:function(g){var c=this,j={},h=false;f.each(g,function(k,l){c._setOption(k,l);if(k in a){h=true}if(k in e){j[k]=l}});h&&this._size();this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option",j)},_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":f(".ui-dialog-title",l.uiDialogTitlebar).html(""+(c||"&#160;"));break}f.Widget.prototype._setOption.apply(l,arguments)},_size:function(){var g=this.options,c,j,h=this.uiDialog.is(":visible");this.element.show().css({width:"auto",minHeight:0,height:0});if(g.minWidth>g.width){g.width=g.minWidth}c=this.uiDialog.css({height:"auto",width:g.width}).height();j=Math.max(0,g.minHeight-c);if(g.height==="auto"){if(f.support.minHeight){this.element.css({minHeight:j,height:"auto"})}else{this.uiDialog.show();g=this.element.css("height","auto").height();h||this.uiDialog.hide();this.element.height(Math.max(g,j))}}else{this.element.height(Math.max(g.height-c,0))}this.uiDialog.is(":data(resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())}});f.extend(f.ui.dialog,{version:"1.8.14",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=f.ui.dialog.overlay.create(c)}});f.extend(f.ui.dialog.overlay,{instances:[],oldInstances:[],maxZ:0,events:f.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(c){return c+".dialog-overlay"}).join(" "),create:function(g){if(this.instances.length===0){setTimeout(function(){f.ui.dialog.overlay.instances.length&&f(document).bind(f.ui.dialog.overlay.events,function(h){if(f(h.target).zIndex()<f.ui.dialog.overlay.maxZ){return false}})},1);f(document).bind("keydown.dialog-overlay",function(h){if(g.options.closeOnEscape&&h.keyCode&&h.keyCode===f.ui.keyCode.ESCAPE){g.close(h);h.preventDefault()}});f(window).bind("resize.dialog-overlay",f.ui.dialog.overlay.resize)}var c=(this.oldInstances.pop()||f("<div></div>").addClass("ui-widget-overlay")).appendTo(document.body).css({width:this.width(),height:this.height()});f.fn.bgiframe&&c.bgiframe();this.instances.push(c);return c},destroy:function(g){var c=f.inArray(g,this.instances);c!=-1&&this.oldInstances.push(this.instances.splice(c,1)[0]);this.instances.length===0&&f([document,window]).unbind(".dialog-overlay");g.remove();var h=0;f.each(this.instances,function(){h=Math.max(h,this.css("z-index"))});this.maxZ=h},height:function(){var g,c;if(f.browser.msie&&f.browser.version<7){g=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);return g<c?f(window).height()+"px":g+"px"}else{return f(document).height()+"px"}},width:function(){var g,c;if(f.browser.msie){g=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);c=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);return g<c?f(window).width()+"px":g+"px"}else{return f(document).width()+"px"}},resize:function(){var c=f([]);f.each(f.ui.dialog.overlay.instances,function(){c=c.add(this)});c.css({width:0,height:0}).css({width:f.ui.dialog.overlay.width(),height:f.ui.dialog.overlay.height()})}});f.extend(f.ui.dialog.overlay.prototype,{destroy:function(){f.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 d=this,g=this.options,m=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),k=g.values&&g.values.length||1,l=[];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"+(g.disabled?" ui-slider-disabled ui-disabled":""));this.range=a([]);if(g.range){if(g.range===true){if(!g.values){g.values=[this._valueMin(),this._valueMin()]}if(g.values.length&&g.values.length!==2){g.values=[g.values[0],g.values[0]]}}this.range=a("<div></div>").appendTo(this.element).addClass("ui-slider-range ui-widget-header"+(g.range==="min"||g.range==="max"?" ui-slider-range-"+g.range:""))}for(var h=m.length;h<k;h+=1){l.push("<a class='ui-slider-handle ui-state-default ui-corner-all' href='#'></a>")}this.handles=m.add(a(l.join("")).appendTo(d.element));this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(b){b.preventDefault()}).hover(function(){g.disabled||a(this).addClass("ui-state-hover")},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(g.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(o){var e=true,c=a(this).data("index.ui-slider-handle"),f,j,b;if(!d.options.disabled){switch(o.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:e=false;if(!d._keySliding){d._keySliding=true;a(this).addClass("ui-state-active");f=d._start(o,c);if(f===false){return}}break}b=d.options.step;f=d.options.values&&d.options.values.length?(j=d.values(c)):(j=d.value());switch(o.keyCode){case a.ui.keyCode.HOME:j=d._valueMin();break;case a.ui.keyCode.END:j=d._valueMax();break;case a.ui.keyCode.PAGE_UP:j=d._trimAlignValue(f+(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.PAGE_DOWN:j=d._trimAlignValue(f-(d._valueMax()-d._valueMin())/5);break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(f===d._valueMax()){return}j=d._trimAlignValue(f+b);break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(f===d._valueMin()){return}j=d._trimAlignValue(f-b);break}d._slide(o,c,j);return e}}).keyup(function(c){var b=a(this).data("index.ui-slider-handle");if(d._keySliding){d._keySliding=false;d._stop(c,b);d._change(c,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(d){var h=this.options,p,m,o,k,l;if(h.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();p=this._normValueFromMouse({x:d.pageX,y:d.pageY});m=this._valueMax()-this._valueMin()+1;k=this;this.handles.each(function(c){var b=Math.abs(p-k.values(c));if(m>b){m=b;o=a(this);l=c}});if(h.range===true&&this.values(1)===h.min){l+=1;o=a(this.handles[l])}if(this._start(d,l)===false){return false}this._mouseSliding=true;k._handleIndex=l;o.addClass("ui-state-active").focus();h=o.offset();this._clickOffset=!a(d.target).parents().andSelf().is(".ui-slider-handle")?{left:0,top:0}:{left:d.pageX-h.left-o.width()/2,top:d.pageY-h.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)};this.handles.hasClass("ui-state-hover")||this._slide(d,l,p);return this._animateOff=true},_mouseStart:function(){return true},_mouseDrag:function(c){var d=this._normValueFromMouse({x:c.pageX,y:c.pageY});this._slide(c,this._handleIndex,d);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 d;if(this.orientation==="horizontal"){d=this.elementSize.width;c=c.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{d=this.elementSize.height;c=c.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}d=c/d;if(d>1){d=1}if(d<0){d=0}if(this.orientation==="vertical"){d=1-d}c=this._valueMax()-this._valueMin();return this._trimAlignValue(this._valueMin()+d*c)},_start:function(d,e){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}return this._trigger("start",d,f)},_slide:function(d,e,h){var g;if(this.options.values&&this.options.values.length){g=this.values(e?0:1);if(this.options.values.length===2&&this.options.range===true&&(e===0&&h>g||e===1&&h<g)){h=g}if(h!==this.values(e)){g=this.values();g[e]=h;d=this._trigger("slide",d,{handle:this.handles[e],value:h,values:g});this.values(e?0:1);d!==false&&this.values(e,h,true)}}else{if(h!==this.value()){d=this._trigger("slide",d,{handle:this.handles[e],value:h});d!==false&&this.value(h)}}},_stop:function(d,e){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}this._trigger("stop",d,f)},_change:function(d,e){if(!this._keySliding&&!this._mouseSliding){var f={handle:this.handles[e],value:this.value()};if(this.options.values&&this.options.values.length){f.value=this.values(e);f.values=this.values()}this._trigger("change",d,f)}},value:function(c){if(arguments.length){this.options.value=this._trimAlignValue(c);this._refreshValue();this._change(null,0)}else{return this._value()}},values:function(d,g){var k,h,j;if(arguments.length>1){this.options.values[d]=this._trimAlignValue(g);this._refreshValue();this._change(null,d)}else{if(arguments.length){if(a.isArray(arguments[0])){k=this.options.values;h=arguments[0];for(j=0;j<k.length;j+=1){k[j]=this._trimAlignValue(h[j]);this._change(null,j)}this._refreshValue()}else{return this.options.values&&this.options.values.length?this._values(d):this.value()}}else{return this._values()}}},_setOption:function(d,e){var h,g=0;if(a.isArray(this.options.values)){g=this.options.values.length}a.Widget.prototype._setOption.apply(this,arguments);switch(d){case"disabled":if(e){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(h=0;h<g;h+=1){this._change(null,h)}this._animateOff=false;break}},_value:function(){var c=this.options.value;return c=this._trimAlignValue(c)},_values:function(d){var e,f;if(arguments.length){e=this.options.values[d];return e=this._trimAlignValue(e)}else{e=this.options.values.slice();for(f=0;f<e.length;f+=1){e[f]=this._trimAlignValue(e[f])}return e}},_trimAlignValue:function(d){if(d<=this._valueMin()){return this._valueMin()}if(d>=this._valueMax()){return this._valueMax()}var e=this.options.step>0?this.options.step:1,f=(d-this._valueMin())%e;alignValue=d-f;if(Math.abs(f)*2>=e){alignValue+=f>0?e:-e}return parseFloat(alignValue.toFixed(5))},_valueMin:function(){return this.options.min},_valueMax:function(){return this.options.max},_refreshValue:function(){var u=this.options.range,v=this.options,s=this,q=!this._animateOff?v.animate:false,r,m={},p,h,d,o;if(this.options.values&&this.options.values.length){this.handles.each(function(b){r=(s.values(b)-s._valueMin())/(s._valueMax()-s._valueMin())*100;m[s.orientation==="horizontal"?"left":"bottom"]=r+"%";a(this).stop(1,1)[q?"animate":"css"](m,v.animate);if(s.options.range===true){if(s.orientation==="horizontal"){if(b===0){s.range.stop(1,1)[q?"animate":"css"]({left:r+"%"},v.animate)}if(b===1){s.range[q?"animate":"css"]({width:r-p+"%"},{queue:false,duration:v.animate})}}else{if(b===0){s.range.stop(1,1)[q?"animate":"css"]({bottom:r+"%"},v.animate)}if(b===1){s.range[q?"animate":"css"]({height:r-p+"%"},{queue:false,duration:v.animate})}}}p=r})}else{h=this.value();d=this._valueMin();o=this._valueMax();r=o!==d?(h-d)/(o-d)*100:0;m[s.orientation==="horizontal"?"left":"bottom"]=r+"%";this.handle.stop(1,1)[q?"animate":"css"](m,v.animate);if(u==="min"&&this.orientation==="horizontal"){this.range.stop(1,1)[q?"animate":"css"]({width:r+"%"},v.animate)}if(u==="max"&&this.orientation==="horizontal"){this.range[q?"animate":"css"]({width:100-r+"%"},{queue:false,duration:v.animate})}if(u==="min"&&this.orientation==="vertical"){this.range.stop(1,1)[q?"animate":"css"]({height:r+"%"},v.animate)}if(u==="max"&&this.orientation==="vertical"){this.range[q?"animate":"css"]({height:100-r+"%"},{queue:false,duration:v.animate})}}}});a.extend(a.ui.slider,{version:"1.8.14"})})(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(d,h){if(d=="selected"){this.options.collapsible&&h==this.options.selected||this.select(h)}else{this.options[d]=h;this._tabify()}},_tabId:function(d){return d.title&&d.title.replace(/\s/g,"_").replace(/[^\w\u00c0-\uFFFF-]/g,"")||this.options.idPrefix+e()},_sanitizeSelector:function(d){return d.replace(/:/g,"\\:")},_cookie:function(){var d=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+b());return g.cookie.apply(null,[d].concat(g.makeArray(arguments)))},_ui:function(d,h){return{tab:d,panel:h,index:this.anchors.index(d)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var d=g(this);d.html(d.data("label.tabs")).removeData("label.tabs")})},_tabify:function(z){function x(h,j){h.css("display","");!g.support.opacity&&j.opacity&&h[0].style.removeAttribute("filter")}var A=this,y=this.options,w=/^#.+/;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,o){var j=g(o).attr("href"),h=j.split("#")[0],m;if(h&&(h===location.toString().split("#")[0]||(m=g("base")[0])&&h===m.href)){j=o.hash;o.href=j}if(w.test(j)){A.panels=A.panels.add(A.element.find(A._sanitizeSelector(j)))}else{if(j&&j!=="#"){g.data(o,"href.tabs",j);g.data(o,"load.tabs",j.replace(/#.*$/,""));j=A._tabId(o);o.href="#"+j;o=A.element.find("#"+j);if(!o.length){o=g(y.panelTemplate).attr("id",j).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(A.panels[k-1]||A.list);o.data("destroy.tabs",true)}A.panels=A.panels.add(o)}else{y.disabled.push(k)}}});if(z){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(y.selected===f){location.hash&&this.anchors.each(function(h,j){if(j.hash==location.hash){y.selected=h;return false}});if(typeof y.selected!=="number"&&y.cookie){y.selected=parseInt(A._cookie(),10)}if(typeof y.selected!=="number"&&this.lis.filter(".ui-tabs-selected").length){y.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}y.selected=y.selected||(this.lis.length?0:-1)}else{if(y.selected===null){y.selected=-1}}y.selected=y.selected>=0&&this.anchors[y.selected]||y.selected<0?y.selected:0;y.disabled=g.unique(y.disabled.concat(g.map(this.lis.filter(".ui-state-disabled"),function(h){return A.lis.index(h)}))).sort();g.inArray(y.selected,y.disabled)!=-1&&y.disabled.splice(g.inArray(y.selected,y.disabled),1);this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(y.selected>=0&&this.anchors.length){A.element.find(A._sanitizeSelector(A.anchors[y.selected].hash)).removeClass("ui-tabs-hide");this.lis.eq(y.selected).addClass("ui-tabs-selected ui-state-active");A.element.queue("tabs",function(){A._trigger("show",null,A._ui(A.anchors[y.selected],A.element.find(A._sanitizeSelector(A.anchors[y.selected].hash))[0]))});this.load(y.selected)}g(window).bind("unload",function(){A.lis.add(A.anchors).unbind(".tabs");A.lis=A.anchors=A.panels=null})}else{y.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[y.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");y.cookie&&this._cookie(y.selected,y.cookie);z=0;for(var v;v=this.lis[z];z++){g(v)[g.inArray(z,y.disabled)!=-1&&!g(v).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}y.cache===false&&this.anchors.removeData("cache.tabs");this.lis.add(this.anchors).unbind(".tabs");if(y.event!=="mouseover"){var u=function(h,j){j.is(":not(.ui-state-disabled)")&&j.addClass("ui-state-"+h)},p=function(h,j){j.removeClass("ui-state-"+h)};this.lis.bind("mouseover.tabs",function(){u("hover",g(this))});this.lis.bind("mouseout.tabs",function(){p("hover",g(this))});this.anchors.bind("focus.tabs",function(){u("focus",g(this).closest("li"))});this.anchors.bind("blur.tabs",function(){p("focus",g(this).closest("li"))})}var q,l;if(y.fx){if(g.isArray(y.fx)){q=y.fx[0];l=y.fx[1]}else{q=l=y.fx}}var d=l?function(h,j){g(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.hide().removeClass("ui-tabs-hide").animate(l,l.duration||"normal",function(){x(j,l);A._trigger("show",null,A._ui(h,j[0]))})}:function(h,j){g(h).closest("li").addClass("ui-tabs-selected ui-state-active");j.removeClass("ui-tabs-hide");A._trigger("show",null,A._ui(h,j[0]))},B=q?function(h,j){j.animate(q,q.duration||"normal",function(){A.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");x(j,q);A.element.dequeue("tabs")})}:function(h,j){A.lis.removeClass("ui-tabs-selected ui-state-active");j.addClass("ui-tabs-hide");A.element.dequeue("tabs")};this.anchors.bind(y.event+".tabs",function(){var k=this,m=g(k).closest("li"),j=A.panels.filter(":not(.ui-tabs-hide)"),h=A.element.find(A._sanitizeSelector(k.hash));if(m.hasClass("ui-tabs-selected")&&!y.collapsible||m.hasClass("ui-state-disabled")||m.hasClass("ui-state-processing")||A.panels.filter(":animated").length||A._trigger("select",null,A._ui(this,h[0]))===false){this.blur();return false}y.selected=A.anchors.index(this);A.abort();if(y.collapsible){if(m.hasClass("ui-tabs-selected")){y.selected=-1;y.cookie&&A._cookie(y.selected,y.cookie);A.element.queue("tabs",function(){B(k,j)}).dequeue("tabs");this.blur();return false}else{if(!j.length){y.cookie&&A._cookie(y.selected,y.cookie);A.element.queue("tabs",function(){d(k,h)});A.load(A.anchors.index(this));this.blur();return false}}}y.cookie&&A._cookie(y.selected,y.cookie);if(h.length){j.length&&A.element.queue("tabs",function(){B(k,j)});A.element.queue("tabs",function(){d(k,h)});A.load(A.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(d){if(typeof d=="string"){d=this.anchors.index(this.anchors.filter("[href$="+d+"]"))}return d},destroy:function(){var d=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 j=g.data(this,"href.tabs");if(j){this.href=j}var h=g(this).unbind(".tabs");g.each(["href","load","cache"],function(l,k){h.removeData(k+".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")});d.cookie&&this._cookie(null,d.cookie);return this},add:function(d,o,k){if(k===f){k=this.anchors.length}var p=this,m=this.options;o=g(m.tabTemplate.replace(/#\{href\}/g,d).replace(/#\{label\}/g,o));d=!d.indexOf("#")?d.replace("#",""):this._tabId(g("a",o)[0]);o.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var l=p.element.find("#"+d);l.length||(l=g(m.panelTemplate).attr("id",d).data("destroy.tabs",true));l.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(k>=this.lis.length){o.appendTo(this.list);l.appendTo(this.list[0].parentNode)}else{o.insertBefore(this.lis[k]);l.insertBefore(this.panels[k])}m.disabled=g.map(m.disabled,function(h){return h>=k?++h:h});this._tabify();if(this.anchors.length==1){m.selected=0;o.addClass("ui-tabs-selected ui-state-active");l.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[k],this.panels[k]));return this},remove:function(d){d=this._getIndex(d);var j=this.options,h=this.lis.eq(d).remove(),k=this.panels.eq(d).remove();if(h.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(d+(d+1<this.anchors.length?1:-1))}j.disabled=g.map(g.grep(j.disabled,function(l){return l!=d}),function(l){return l>=d?--l:l});this._tabify();this._trigger("remove",null,this._ui(h.find("a")[0],k[0]));return this},enable:function(d){d=this._getIndex(d);var h=this.options;if(g.inArray(d,h.disabled)!=-1){this.lis.eq(d).removeClass("ui-state-disabled");h.disabled=g.grep(h.disabled,function(j){return j!=d});this._trigger("enable",null,this._ui(this.anchors[d],this.panels[d]));return this}},disable:function(d){d=this._getIndex(d);var h=this.options;if(d!=h.selected){this.lis.eq(d).addClass("ui-state-disabled");h.disabled.push(d);h.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[d],this.panels[d]))}return this},select:function(d){d=this._getIndex(d);if(d==-1){if(this.options.collapsible&&this.options.selected!=-1){d=this.options.selected}else{return this}}this.anchors.eq(d).trigger(this.options.event+".tabs");return this},load:function(d){d=this._getIndex(d);var o=this,k=this.options,p=this.anchors.eq(d)[0],m=g.data(p,"load.tabs");this.abort();if(!m||this.element.queue("tabs").length!==0&&g.data(p,"cache.tabs")){this.element.dequeue("tabs")}else{this.lis.eq(d).addClass("ui-state-processing");if(k.spinner){var l=g("span",p);l.data("label.tabs",l.html()).html(k.spinner)}this.xhr=g.ajax(g.extend({},k.ajaxOptions,{url:m,success:function(j,q){o.element.find(o._sanitizeSelector(p.hash)).html(j);o._cleanup();k.cache&&g.data(p,"cache.tabs",true);o._trigger("load",null,o._ui(o.anchors[d],o.panels[d]));try{k.ajaxOptions.success(j,q)}catch(h){}},error:function(j,q){o._cleanup();o._trigger("load",null,o._ui(o.anchors[d],o.panels[d]));try{k.ajaxOptions.error(j,q,d,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(d,h){this.anchors.eq(d).removeData("cache.tabs").data("load.tabs",h);return this},length:function(){return this.anchors.length}});g.extend(g.ui.tabs,{version:"1.8.14"});g.extend(g.ui.tabs.prototype,{rotation:null,rotate:function(d,l){var j=this,m=this.options,k=j._rotate||(j._rotate=function(h){clearTimeout(j.rotation);j.rotation=setTimeout(function(){var o=m.selected;j.select(++o<j.anchors.length?o:0)},d);h&&h.stopPropagation()});l=j._unrotate||(j._unrotate=!l?function(h){h.clientX&&j.rotate(null)}:function(){t=m.selected;k()});if(d){this.element.bind("tabsshow",k);this.anchors.bind(m.event+".tabs",l);k()}else{clearTimeout(j.rotation);this.element.unbind("tabsshow",k);this.anchors.unbind(m.event+".tabs",l);delete this._rotate;delete this._unrotate}return this}})})(jQuery);(function(d,C){function M(){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=N(d('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}function N(a){return a.bind("mouseout",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");b.length&&b.removeClass("ui-state-hover ui-datepicker-prev-hover ui-datepicker-next-hover")}).bind("mouseover",function(b){b=d(b.target).closest("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a");if(!(d.datepicker._isDisabledDatepicker(J.inline?a.parent()[0]:J.input[0])||!b.length)){b.parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");b.addClass("ui-state-hover");b.hasClass("ui-datepicker-prev")&&b.addClass("ui-datepicker-prev-hover");b.hasClass("ui-datepicker-next")&&b.addClass("ui-datepicker-next-hover")}})}function H(a,b){d.extend(a,b);for(var c in b){if(b[c]==null||b[c]==C){a[c]=b[c]}}return a}d.extend(d.ui,{datepicker:{version:"1.8.14"}});var A=(new Date).getTime(),J;d.extend(M.prototype,{markerClassName:"hasDatepicker",maxRows:4,log:function(){this.debug&&console.log.apply("",arguments)},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(a){H(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:N(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)}H(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=b.children("."+this._inlineClass);b.children().removeClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").removeAttr("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=b.children("."+this._inlineClass);b.children().addClass("ui-state-disabled");b.find("select.ui-datepicker-month, select.ui-datepicker-year").attr("disabled","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");H(e.settings,f);if(i!==null&&f.dateFormat!==C&&f.minDate===C){e.settings.minDate=this._formatDate(e,i)}if(g!==null&&f.dateFormat!==C&&f.maxDate===C){e.settings.maxDate=this._formatDate(e,g)}this._attachments(d(a),e);this._autoSize(e);this._setDate(e,h);this._updateAlternate(e);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==C?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);if(d.datepicker._curInst&&d.datepicker._curInst!=b){d.datepicker._datepickerShowing&&d.datepicker._triggerOnClose(d.datepicker._curInst);d.datepicker._curInst.dpDiv.stop(true,true)}var c=d.datepicker._get(b,"beforeShow");H(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(){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.datepicker._datepickerShowing=true;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){this.maxRows=4;var b=d.datepicker._getBorders(a.dpDiv);J=a;a.dpDiv.empty().append(this._generateHTML(a));var c=a.dpDiv.find("iframe.ui-datepicker-cover");c.length&&c.css({left:-b[0],top:-b[1],width:a.dpDiv.outerWidth(),height:a.dpDiv.outerHeight()});a.dpDiv.find("."+this._dayOverClass+" a").mouseover();b=this._getNumberOfMonths(a);c=b[1];a.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("");c>1&&a.dpDiv.addClass("ui-datepicker-multi-"+c).css("width",17*c+"em");a.dpDiv[(b[0]!=1||b[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 e=a.yearshtml;setTimeout(function(){e===a.yearshtml&&a.yearshtml&&a.dpDiv.find("select.ui-datepicker-year:first").replaceWith(a.yearshtml);e=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]},_triggerOnClose:function(a){var b=this._get(a,"onClose");if(b){b.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a])}},_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();d.datepicker._triggerOnClose(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=B+1<a.length&&a.charAt(B+1)==p)&&B++;return p},m=function(p){var D=o(p);p=new RegExp("^\\d{1,"+(p=="@"?14:p=="!"?20:p=="y"&&D?4:p=="o"?3:2)+"}");p=b.substring(q).match(p);if(!p){throw"Missing number at position "+q}q+=p[0].length;return parseInt(p[0],10)},n=function(p,D,K){p=d.map(o(p)?K:D,function(w,x){return[[x,w]]}).sort(function(w,x){return -(w[1].length-x[1].length)});var E=-1;d.each(p,function(w,x){w=x[1];if(b.substr(q,w.length).toLowerCase()==w.toLowerCase()){E=x[0];q+=w.length;return false}});if(E!=-1){return E+1}else{throw"Unknown name at position "+q}},s=function(){if(b.charAt(q)!=a.charAt(B)){throw"Unexpected literal at position "+q}q++},q=0,B=0;B<a.length;B++){if(k){if(a.charAt(B)=="'"&&!o("'")){k=false}else{s()}}else{switch(a.charAt(B)){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 v=new Date(m("@"));c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"!":v=new Date((m("!")-this._ticksTo1970)/10000);c=v.getFullYear();j=v.getMonth()+1;l=v.getDate();break;case"'":if(o("'")){s()}else{k=true}break;default:s()}}}if(q<b.length){throw"Extra/unparsed characters found in date: "+b.substring(q)}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)}v=this._daylightSavingAdjust(new Date(c,j-1,l));if(v.getFullYear()!=c||v.getMonth()+1!=j||v.getDate()!=l){throw"Invalid date"}return v},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,s){return i(o)?s[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",Math.round(((new Date(b.getFullYear(),b.getMonth(),b.getDate())).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]!==C?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_'+A+".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 s=this._get(a,"nextText");s=!h?s:this.formatDate(s,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_'+A+".datepicker._adjustDate('#"+a.id+"', +"+j+", 'M');\" title=\""+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>":f?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+s+'"><span class="ui-icon ui-icon-circle-triangle-'+(c?"w":"e")+'">'+s+"</span></a>";j=this._get(a,"currentText");s=this._get(a,"gotoCurrent")&&a.currentDay?u:b;j=!h?j:this.formatDate(j,s,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_'+A+'.datepicker._hideDatepicker();">'+this._get(a,"closeText")+"</button>":"";e=e?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(c?h:"")+(this._isInRange(a,s)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_jQuery_'+A+".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");s=this._get(a,"dayNames");this._get(a,"dayNamesShort");var q=this._get(a,"dayNamesMin"),B=this._get(a,"monthNames"),v=this._get(a,"monthNamesShort"),p=this._get(a,"beforeShowDay"),D=this._get(a,"showOtherMonths"),K=this._get(a,"selectOtherMonths");this._get(a,"calculateWeek");for(var E=this._getDefaultDate(a),w="",x=0;x<i[0];x++){var O="";this.maxRows=4;for(var G=0;G<i[1];G++){var P=this._daylightSavingAdjust(new Date(m,g,a.selectedDay)),t=" ui-corner-all",y="";if(l){y+='<div class="ui-datepicker-group';if(i[1]>1){switch(G){case 0:y+=" ui-datepicker-group-first";t=" ui-corner-"+(c?"right":"left");break;case i[1]-1:y+=" ui-datepicker-group-last";t=" ui-corner-"+(c?"left":"right");break;default:y+=" ui-datepicker-group-middle";t="";break}}y+='">'}y+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+t+'">'+(/all|left/.test(t)&&x==0?c?f:n:"")+(/all|right/.test(t)&&x==0?c?n:f:"")+this._generateMonthYearHeader(a,g,m,k,o,x>0||G>0,B,v)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var z=j?'<th class="ui-datepicker-week-col">'+this._get(a,"weekHeader")+"</th>":"";for(t=0;t<7;t++){var r=(t+h)%7;z+="<th"+((t+h+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+s[r]+'">'+q[r]+"</span></th>"}y+=z+"</tr></thead><tbody>";z=this._getDaysInMonth(m,g);if(m==a.selectedYear&&g==a.selectedMonth){a.selectedDay=Math.min(a.selectedDay,z)}t=(this._getFirstDayOfMonth(m,g)-h+7)%7;z=Math.ceil((t+z)/7);this.maxRows=z=l?this.maxRows>z?this.maxRows:z:z;r=this._daylightSavingAdjust(new Date(m,g,1-t));for(var Q=0;Q<z;Q++){y+="<tr>";var R=!j?"":'<td class="ui-datepicker-week-col">'+this._get(a,"calculateWeek")(r)+"</td>";for(t=0;t<7;t++){var I=p?p.apply(a.input?a.input[0]:null,[r]):[true,""],F=r.getMonth()!=g,L=F&&!K||!I[0]||k&&r<k||o&&r>o;R+='<td class="'+((t+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(r.getTime()==P.getTime()&&g==a.selectedMonth&&a._keyEvent||E.getTime()==r.getTime()&&E.getTime()==P.getTime()?" "+this._dayOverClass:"")+(L?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!D?"":" "+I[1]+(r.getTime()==u.getTime()?" "+this._currentClass:"")+(r.getTime()==b.getTime()?" ui-datepicker-today":""))+'"'+((!F||D)&&I[2]?' title="'+I[2]+'"':"")+(L?"":' onclick="DP_jQuery_'+A+".datepicker._selectDay('#"+a.id+"',"+r.getMonth()+","+r.getFullYear()+', this);return false;"')+">"+(F&&!D?"&#xa0;":L?'<span class="ui-state-default">'+r.getDate()+"</span>":'<a class="ui-state-default'+(r.getTime()==b.getTime()?" ui-state-highlight":"")+(r.getTime()==u.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+'" href="#">'+r.getDate()+"</a>")+"</td>";r.setDate(r.getDate()+1);r=this._daylightSavingAdjust(r)}y+=R+"</tr>"}g++;if(g>11){g=0;m++}y+="</tbody></table>"+(l?"</div>"+(i[0]>0&&G==i[1]-1?'<div class="ui-datepicker-row-break"></div>':""):"");O+=y}w+=O}w+=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 w},_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_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'M');\" onclick=\"DP_jQuery_"+A+".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 s=(new Date).getFullYear();i=function(q){q=q.match(/c[+-].*/)?c+parseInt(q.substring(1),10):q.match(/[+-].*/)?s+parseInt(q,10):parseInt(q,10);return isNaN(q)?s:q};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_'+A+".datepicker._selectMonthYear('#"+a.id+"', this, 'Y');\" onclick=\"DP_jQuery_"+A+".datepicker._clickMonthYear('#"+a.id+"');\">";b<=g;b++){a.yearshtml+='<option value="'+b+'"'+(b==c?' selected="selected"':"")+">"+b+"</option>"}a.yearshtml+="</select>";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 M;d.datepicker.initialized=false;d.datepicker.uuid=(new Date).getTime();d.datepicker.version="1.8.14";window["DP_jQuery_"+A]=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,d){if(b==="value"){this.options.value=d;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(),d=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(d.toFixed(0)+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.8.14"})})(jQuery);jQuery.effects||function(v,r){function e(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 d.transparent}return d[v.trim(j).toLowerCase()]}function y(k,j){var f;do{f=v.curCSS(k,j);if(f!=""&&f!="transparent"||v.nodeName(k,"body")){break}j="backgroundColor"}while(k=k.parentNode);return e(f)}function c(){var m=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,j={},f,l;if(m&&m.length&&m[0]&&m[m[0]]){for(var k=m.length;k--;){f=m[k];if(typeof m[f]=="string"){l=f.replace(/\-(\w)/g,function(p,o){return o.toUpperCase()});j[l]=m[f]}}}else{for(f in m){if(typeof m[f]==="string"){j[f]=m[f]}}}return j}function b(k){var j,f;for(j in k){f=k[j];if(f==null||v.isFunction(f)||j in x||/scrollbar/.test(j)||!/color/i.test(j)&&isNaN(parseFloat(f))){delete k[j]}}return k}function w(l,j){var f={_:0},k;for(k in j){if(l[k]!=j[k]){f[k]=j[k]}}return f}function h(l,j,f,k){if(typeof l=="object"){k=j;f=null;j=l;l=j.effect}if(v.isFunction(j)){k=j;f=null;j={}}if(typeof j=="number"||v.fx.speeds[j]){k=f;f=j;j={}}if(v.isFunction(f)){k=f;f=null}j=j||{};f=f||j.duration;f=v.fx.off?0:typeof f=="number"?f:f in v.fx.speeds?v.fx.speeds[f]:v.fx.speeds._default;k=k||j.complete;return[l,j,f,k]}function g(f){if(!f||typeof f==="number"||v.fx.speeds[f]){return true}if(typeof f==="string"&&!v.effects[f]){return true}return false}v.effects={};v.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","borderColor","color","outlineColor"],function(j,f){v.fx.step[f]=function(k){if(!k.colorInit){k.start=y(k.elem,f);k.end=e(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 d={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"],x={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};v.effects.animateClass=function(l,j,f,k){if(v.isFunction(f)){k=f;f=null}return this.queue(function(){var s=v(this),q=s.attr("style")||" ",o=b(c.call(this)),p,m=s.attr("class");v.each(a,function(u,z){l[z]&&s[z+"Class"](l[z])});p=b(c.call(this));s.attr("class",m);s.animate(w(o,p),{queue:false,duration:j,easing:f,complete:function(){v.each(a,function(u,z){l[z]&&s[z+"Class"](l[z])});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);v.dequeue(this)}})})};v.fn.extend({_addClass:v.fn.addClass,addClass:function(l,j,f,k){return j?v.effects.animateClass.apply(this,[{add:l},j,f,k]):this._addClass(l)},_removeClass:v.fn.removeClass,removeClass:function(l,j,f,k){return j?v.effects.animateClass.apply(this,[{remove:l},j,f,k]):this._removeClass(l)},_toggleClass:v.fn.toggleClass,toggleClass:function(m,j,f,l,k){return typeof j=="boolean"||j===r?f?v.effects.animateClass.apply(this,[j?{add:m}:{remove:m},f,l,k]):this._toggleClass(m,j):v.effects.animateClass.apply(this,[{toggle:m},j,f,l])},switchClass:function(m,j,f,l,k){return v.effects.animateClass.apply(this,[{add:j,remove:m},f,l,k])}});v.extend(v.effects,{version:"1.8.14",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=v("<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{v.extend(j,{position:k.css("position"),zIndex:k.css("z-index")});v.each(["top","left","bottom","right"],function(m,l){j[l]=k.css(l);if(isNaN(parseInt(j[l],10))){j[l]="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(l,j,f,k){k=k||{};v.each(j,function(o,m){unit=l.cssUnit(m);if(unit[0]>0){k[m]=unit[0]*f+unit[1]}});return k}});v.fn.extend({effect:function(l){var j=h.apply(this,arguments),f={options:j[1],duration:j[2],callback:j[3]};j=f.options.mode;var k=v.effects[l];if(v.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:v.fn.show,show:function(j){if(g(j)){return this._show.apply(this,arguments)}else{var f=h.apply(this,arguments);f[1].mode="show";return this.effect.apply(this,f)}},_hide:v.fn.hide,hide:function(j){if(g(j)){return this._hide.apply(this,arguments)}else{var f=h.apply(this,arguments);f[1].mode="hide";return this.effect.apply(this,f)}},__toggle:v.fn.toggle,toggle:function(j){if(g(j)||typeof j==="boolean"||v.isFunction(j)){return this.__toggle.apply(this,arguments)}else{var f=h.apply(this,arguments);f[1].mode="toggle";return this.effect.apply(this,f)}},cssUnit:function(k){var j=this.css(k),f=[];v.each(["em","px","%","pt"],function(m,l){if(j.indexOf(l)>0){f=[parseFloat(j),l]}});return f}});v.easing.jswing=v.easing.swing;v.extend(v.easing,{def:"easeOutQuad",swing:function(m,j,f,l,k){return v.easing[v.easing.def](m,j,f,l,k)},easeInQuad:function(m,j,f,l,k){return l*(j/=k)*j+f},easeOutQuad:function(m,j,f,l,k){return -l*(j/=k)*(j-2)+f},easeInOutQuad:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j+f}return -l/2*(--j*(j-2)-1)+f},easeInCubic:function(m,j,f,l,k){return l*(j/=k)*j*j+f},easeOutCubic:function(m,j,f,l,k){return l*((j=j/k-1)*j*j+1)+f},easeInOutCubic:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j+f}return l/2*((j-=2)*j*j+2)+f},easeInQuart:function(m,j,f,l,k){return l*(j/=k)*j*j*j+f},easeOutQuart:function(m,j,f,l,k){return -l*((j=j/k-1)*j*j*j-1)+f},easeInOutQuart:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j*j+f}return -l/2*((j-=2)*j*j*j-2)+f},easeInQuint:function(m,j,f,l,k){return l*(j/=k)*j*j*j*j+f},easeOutQuint:function(m,j,f,l,k){return l*((j=j/k-1)*j*j*j*j+1)+f},easeInOutQuint:function(m,j,f,l,k){if((j/=k/2)<1){return l/2*j*j*j*j*j+f}return l/2*((j-=2)*j*j*j*j+2)+f},easeInSine:function(m,j,f,l,k){return -l*Math.cos(j/k*(Math.PI/2))+l+f},easeOutSine:function(m,j,f,l,k){return l*Math.sin(j/k*(Math.PI/2))+f},easeInOutSine:function(m,j,f,l,k){return -l/2*(Math.cos(Math.PI*j/k)-1)+f},easeInExpo:function(m,j,f,l,k){return j==0?f:l*Math.pow(2,10*(j/k-1))+f},easeOutExpo:function(m,j,f,l,k){return j==k?f+l:l*(-Math.pow(2,-10*j/k)+1)+f},easeInOutExpo:function(m,j,f,l,k){if(j==0){return f}if(j==k){return f+l}if((j/=k/2)<1){return l/2*Math.pow(2,10*(j-1))+f}return l/2*(-Math.pow(2,-10*--j)+2)+f},easeInCirc:function(m,j,f,l,k){return -l*(Math.sqrt(1-(j/=k)*j)-1)+f},easeOutCirc:function(m,j,f,l,k){return l*Math.sqrt(1-(j=j/k-1)*j)+f},easeInOutCirc:function(m,j,f,l,k){if((j/=k/2)<1){return -l/2*(Math.sqrt(1-j*j)-1)+f}return l/2*(Math.sqrt(1-(j-=2)*j)+1)+f},easeInElastic:function(p,j,f,o,m){p=1.70158;var l=0,k=o;if(j==0){return f}if((j/=m)==1){return f+o}l||(l=m*0.3);if(k<Math.abs(o)){k=o;p=l/4}else{p=l/(2*Math.PI)*Math.asin(o/k)}return -(k*Math.pow(2,10*(j-=1))*Math.sin((j*m-p)*2*Math.PI/l))+f},easeOutElastic:function(p,j,f,o,m){p=1.70158;var l=0,k=o;if(j==0){return f}if((j/=m)==1){return f+o}l||(l=m*0.3);if(k<Math.abs(o)){k=o;p=l/4}else{p=l/(2*Math.PI)*Math.asin(o/k)}return k*Math.pow(2,-10*j)*Math.sin((j*m-p)*2*Math.PI/l)+o+f},easeInOutElastic:function(p,j,f,o,m){p=1.70158;var l=0,k=o;if(j==0){return f}if((j/=m/2)==2){return f+o}l||(l=m*0.3*1.5);if(k<Math.abs(o)){k=o;p=l/4}else{p=l/(2*Math.PI)*Math.asin(o/k)}if(j<1){return -0.5*k*Math.pow(2,10*(j-=1))*Math.sin((j*m-p)*2*Math.PI/l)+f}return k*Math.pow(2,-10*(j-=1))*Math.sin((j*m-p)*2*Math.PI/l)*0.5+o+f},easeInBack:function(o,j,f,m,l,k){if(k==r){k=1.70158}return m*(j/=l)*j*((k+1)*j-k)+f},easeOutBack:function(o,j,f,m,l,k){if(k==r){k=1.70158}return m*((j=j/l-1)*j*((k+1)*j+k)+1)+f},easeInOutBack:function(o,j,f,m,l,k){if(k==r){k=1.70158}if((j/=l/2)<1){return m/2*j*j*(((k*=1.525)+1)*j-k)+f}return m/2*((j-=2)*j*(((k*=1.525)+1)*j+k)+2)+f},easeInBounce:function(m,j,f,l,k){return l-v.easing.easeOutBounce(m,k-j,0,l,k)+f},easeOutBounce:function(m,j,f,l,k){return(j/=k)<1/2.75?l*7.5625*j*j+f:j<2/2.75?l*(7.5625*(j-=1.5/2.75)*j+0.75)+f:j<2.5/2.75?l*(7.5625*(j-=2.25/2.75)*j+0.9375)+f:l*(7.5625*(j-=2.625/2.75)*j+0.984375)+f},easeInOutBounce:function(m,j,f,l,k){if(j<k/2){return v.easing.easeInBounce(m,j*2,0,l,k)*0.5+f}return v.easing.easeOutBounce(m,j*2-k,0,l,k)*0.5+l*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"),p=b.options.direction||"vertical";a.effects.save(c,l);c.show();var o=a.effects.createWrapper(c).css({overflow:"hidden"}),k=p=="vertical"?"height":"width";p=p=="vertical"?o.height():o.width();m=="show"&&o.css(k,0);var j={};j[k]=m=="show"?p:0;o.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"],r=a.effects.setMode(x,c.options.mode||"effect"),v=c.options.direction||"up",w=c.options.distance||20,b=c.options.times||5,q=c.duration||250;/show|hide/.test(r)&&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(r=="show"){x.css("opacity",0).css(u,v=="pos"?-w:w)}if(r=="hide"){w/=b*2}r!="hide"&&b--;if(r=="show"){var s={opacity:1};s[u]=(v=="pos"?"+=":"-=")+w;x.animate(s,q/2,c.options.easing);w/=2;b--}for(s=0;s<b;s++){var p={},o={};p[u]=(v=="pos"?"-=":"+=")+w;o[u]=(v=="pos"?"+=":"-=")+w;x.animate(p,q/2,c.options.easing).animate(o,q/2,c.options.easing);w=r=="hide"?w*2:w/2}if(r=="hide"){s={opacity:0};s[u]=(v=="pos"?"-=":"+=")+w;x.animate(s,q/2,c.options.easing,function(){x.hide();a.effects.restore(x,e);a.effects.removeWrapper(x);c.callback&&c.callback.apply(this,arguments)})}else{p={};o={};p[u]=(v=="pos"?"-=":"+=")+w;o[u]=(v=="pos"?"+=":"-=")+w;x.animate(p,q/2,c.options.easing).animate(o,q/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"),p=b.options.direction||"vertical";a.effects.save(e,j);e.show();var o=a.effects.createWrapper(e).css({overflow:"hidden"});o=e[0].tagName=="IMG"?o:e;var l={size:p=="vertical"?"height":"width",position:p=="vertical"?"top":"left"};p=p=="vertical"?o.height():o.width();if(m=="show"){o.css(l.size,0);o.css(l.position,p/2)}var k={};k[l.size]=m=="show"?p:0;k[l.position]=m=="show"?0:p/2;o.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 d=a(this),k=["position","top","bottom","left","right","opacity"],o=a.effects.setMode(d,b.options.mode||"hide"),c=b.options.direction||"left";a.effects.save(d,k);d.show();a.effects.createWrapper(d);var m=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";var l=b.options.distance||(m=="top"?d.outerHeight({margin:true})/2:d.outerWidth({margin:true})/2);if(o=="show"){d.css("opacity",0).css(m,c=="pos"?-l:l)}var j={opacity:o=="show"?1:0};j[m]=(o=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+l;d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){o=="hide"&&d.hide();a.effects.restore(d,k);a.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments);d.dequeue()}})})}})(jQuery);(function(a){a.effects.explode=function(b){return this.queue(function(){var r=b.options.pieces?Math.round(Math.sqrt(b.options.pieces)):3,q=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),p=0;p<r;p++){for(var o=0;o<q;o++){j.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-o*(l/q),top:-p*(k/r)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:l/q,height:k/r,left:m.left+o*(l/q)+(b.options.mode=="show"?(o-Math.floor(q/2))*(l/q):0),top:m.top+p*(k/r)+(b.options.mode=="show"?(p-Math.floor(r/2))*(k/r):0),opacity:b.options.mode=="show"?0:1}).animate({left:m.left+o*(l/q)+(b.options.mode=="show"?0:(o-Math.floor(q/2))*(l/q)),top:m.top+p*(k/r)+(b.options.mode=="show"?0:(p-Math.floor(r/2))*(k/r)),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),o=["position","top","bottom","left","right"],v=a.effects.setMode(w,b.options.mode||"hide"),r=b.options.size||15,q=!!b.options.horizFirst,m=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(w,o);w.show();var u=a.effects.createWrapper(w).css({overflow:"hidden"}),s=v=="show"!=q,c=s?["width","height"]:["height","width"];s=s?[u.width(),u.height()]:[u.height(),u.width()];var p=/([0-9]+)%/.exec(r);if(p){r=parseInt(p[1],10)/100*s[v=="hide"?0:1]}if(v=="show"){u.css(q?{height:0,width:r}:{height:r,width:0})}q={};p={};q[c[0]]=v=="show"?s[0]:r;p[c[1]]=v=="show"?s[1]:0;u.animate(q,m,b.options.easing).animate(p,m,b.options.easing,function(){v=="hide"&&w.hide();a.effects.restore(w,o);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 d=a(this),e=a.effects.setMode(d,b.options.mode||"show");times=(b.options.times||5)*2-1;duration=b.duration?b.duration/2:a.fx.speeds._default/2;isVisible=d.is(":visible");animateTo=0;if(!isVisible){d.css("opacity",0).show();animateTo=1}if(e=="hide"&&isVisible||e=="show"&&!isVisible){times--}for(e=0;e<times;e++){d.animate({opacity:animateTo},duration,b.options.easing);animateTo=(animateTo+1)%2}d.animate({opacity:animateTo},duration,b.options.easing,function(){animateTo==0&&d.hide();b.callback&&b.callback.apply(this,arguments)});d.queue("fx",function(){d.dequeue()}).dequeue()})}})(jQuery);(function(a){a.effects.puff=function(c){return this.queue(function(){var b=a(this),k=a.effects.setMode(b,c.options.mode||"hide"),j=parseInt(c.options.percent,10)||150,f=j/100,d={height:b.height(),width:b.width()};a.extend(c.options,{fade:true,mode:k,percent:k=="hide"?j:100,from:k=="hide"?d:{height:d.height*f,width:d.width*f}});b.effect("scale",c.options,c.duration,c.callback);b.dequeue()})};a.effects.scale=function(c){return this.queue(function(){var b=a(this),m=a.extend(true,{},c.options),k=a.effects.setMode(b,c.options.mode||"effect"),j=parseInt(c.options.percent,10)||(parseInt(c.options.percent,10)==0?0:k=="hide"?0:100),d=c.options.direction||"both",l=c.options.origin;if(k!="effect"){m.origin=l||["middle","center"];m.restore=true}l={height:b.height(),width:b.width()};b.from=c.options.from||(k=="show"?{height:0,width:0}:l);j={y:d!="horizontal"?j/100:1,x:d!="vertical"?j/100:1};b.to={height:l.height*j.y,width:l.width*j.x};if(c.options.fade){if(k=="show"){b.from.opacity=0;b.to.opacity=1}if(k=="hide"){b.from.opacity=1;b.to.opacity=0}}m.from=b.from;m.to=b.to;m.mode=k;b.effect("size",m,c.duration,c.callback);b.dequeue()})};a.effects.size=function(c){return this.queue(function(){var B=a(this),z=["position","top","bottom","left","right","width","height","overflow","opacity"],x=["position","top","bottom","left","right","overflow","opacity"],w=["width","height","overflow"],v=["fontSize"],y=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],s=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],b=a.effects.setMode(B,c.options.mode||"effect"),o=c.options.restore||false,q=c.options.scale||"both",r=c.options.origin,u={height:B.height(),width:B.width()};B.from=c.options.from||u;B.to=c.options.to||u;if(r){r=a.effects.getBaseline(r,u);B.from.top=(u.height-B.from.height)*r.y;B.from.left=(u.width-B.from.width)*r.x;B.to.top=(u.height-B.to.height)*r.y;B.to.left=(u.width-B.to.width)*r.x}var A={from:{y:B.from.height/u.height,x:B.from.width/u.width},to:{y:B.to.height/u.height,x:B.to.width/u.width}};if(q=="box"||q=="both"){if(A.from.y!=A.to.y){z=z.concat(y);B.from=a.effects.setTransition(B,y,A.from.y,B.from);B.to=a.effects.setTransition(B,y,A.to.y,B.to)}if(A.from.x!=A.to.x){z=z.concat(s);B.from=a.effects.setTransition(B,s,A.from.x,B.from);B.to=a.effects.setTransition(B,s,A.to.x,B.to)}}if(q=="content"||q=="both"){if(A.from.y!=A.to.y){z=z.concat(v);B.from=a.effects.setTransition(B,v,A.from.y,B.from);B.to=a.effects.setTransition(B,v,A.to.y,B.to)}}a.effects.save(B,o?z:x);B.show();a.effects.createWrapper(B);B.css("overflow","hidden").css(B.from);if(q=="content"||q=="both"){y=y.concat(["marginTop","marginBottom"]).concat(v);s=s.concat(["marginLeft","marginRight"]);w=z.concat(y).concat(s);B.find("*[width]").each(function(){child=a(this);o&&a.effects.save(child,w);var d={height:child.height(),width:child.width()};child.from={height:d.height*A.from.y,width:d.width*A.from.x};child.to={height:d.height*A.to.y,width:d.width*A.to.x};if(A.from.y!=A.to.y){child.from=a.effects.setTransition(child,y,A.from.y,child.from);child.to=a.effects.setTransition(child,y,A.to.y,child.to)}if(A.from.x!=A.to.x){child.from=a.effects.setTransition(child,s,A.from.x,child.from);child.to=a.effects.setTransition(child,s,A.to.x,child.to)}child.css(child.from);child.animate(child.to,c.duration,c.options.easing,function(){o&&a.effects.restore(child,w)})})}B.animate(B.to,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){B.to.opacity===0&&B.css("opacity",B.from.opacity);b=="hide"&&B.hide();a.effects.restore(B,o?z:x);a.effects.removeWrapper(B);c.callback&&c.callback.apply(this,arguments);B.dequeue()}})})}})(jQuery);(function(a){a.effects.shake=function(b){return this.queue(function(){var w=a(this),o=["position","top","bottom","left","right"];a.effects.setMode(w,b.options.mode||"effect");var v=b.options.direction||"left",u=b.options.distance||20,d=b.options.times||3,s=b.duration||b.options.duration||140;a.effects.save(w,o);w.show();a.effects.createWrapper(w);var r=v=="up"||v=="down"?"top":"left",q=v=="up"||v=="left"?"pos":"neg";v={};var p={},m={};v[r]=(q=="pos"?"-=":"+=")+u;p[r]=(q=="pos"?"+=":"-=")+u*2;m[r]=(q=="pos"?"-=":"+=")+u*2;w.animate(v,s,b.options.easing);for(u=1;u<d;u++){w.animate(p,s,b.options.easing).animate(m,s,b.options.easing)}w.animate(p,s,b.options.easing).animate(v,s/2,b.options.easing,function(){a.effects.restore(w,o);a.effects.removeWrapper(w);b.callback&&b.callback.apply(this,arguments)});w.queue("fx",function(){w.dequeue()});w.dequeue()})}})(jQuery);(function(a){a.effects.slide=function(b){return this.queue(function(){var d=a(this),k=["position","top","bottom","left","right"],m=a.effects.setMode(d,b.options.mode||"show"),c=b.options.direction||"left";a.effects.save(d,k);d.show();a.effects.createWrapper(d).css({overflow:"hidden"});var l=c=="up"||c=="down"?"top":"left";c=c=="up"||c=="left"?"pos":"neg";var o=b.options.distance||(l=="top"?d.outerHeight({margin:true}):d.outerWidth({margin:true}));if(m=="show"){d.css(l,c=="pos"?isNaN(o)?"-"+o:-o:o)}var j={};j[l]=(m=="show"?c=="pos"?"+=":"-=":c=="pos"?"-=":"+=")+o;d.animate(j,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){m=="hide"&&d.hide();a.effects.restore(d,k);a.effects.removeWrapper(d);b.callback&&b.callback.apply(this,arguments);d.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.fn.extend({counter:function(b){b=a.extend({},{type:"char",count:"down",goal:140},b);var c=false;return this.each(function(){function k(e){if(typeof b.type==="string"){switch(b.type){case"char":if(b.count==="down"){h=" character(s) left";return b.goal-e}else{if(b.count==="up"){h=" characters ("+b.goal+" max)";return e}}break;case"word":if(b.count==="down"){h=" word(s) left";return b.goal-e}else{if(b.count==="up"){h=" words ("+b.goal+" max)";return e}}break;default:}}}var h,j=a(this);a('<div id="'+this.id+'_counter" class="fontGray"><span>'+k(a(j).val().length)+"</span>"+h+"</div>").insertAfter(j);var d=a("#"+this.id+"_counter span");j.bind("keyup click blur focus change paste",function(e){switch(b.type){case"char":e=a(j).val().length;break;case"word":e=j.val()===""?0:a.trim(j.val()).replace(/\s+/g," ").split(" ").length;break;default:}switch(b.count){case"up":if(k(e)>=b.goal&&b.type==="char"){a(this).val(a(this).val().substring(0,b.goal));c=true;break}if(k(e)===b.goal&&b.type==="word"){c=true;break}else{if(k(e)>b.goal&&b.type==="word"){a(this).val("");d.text("0");c=true;break}}break;case"down":if(k(e)<=0&&b.type==="char"){a(this).val(a(this).val().substring(0,b.goal));c=true;break}if(k(e)===0&&b.type==="word"){c=true}else{if(k(e)<0&&b.type==="word"){a(this).val("");c=true;break}}break;default:}j.keydown(function(f){if(c){this.focus();if(f.keyCode!==46&&f.keyCode!==8){if(a(this).val().length>b.goal&&b.type==="char"){a(this).val(a(this).val().substring(0,b.goal));return false}else{return f.keyCode!==32&&f.keyCode!==8&&b.type==="word"?true:false}}else{c=false;return true}}});d.text(k(e))})})}})})(jQuery);var wrapsize=new Array(9,11,13,18,95);function wrap_text(){for(i=0;i<document.getElementsByTagName("div").length;i++){div_id=document.getElementsByTagName("div")[i];for(n=0;n<wrapsize.length;n++){wrapclass="wrap"+wrapsize[n];if(div_id.className==wrapclass){if(div_id.getElementsByTagName("a")[0]!=null){div_value=div_id.getElementsByTagName("a")[0].innerHTML;if(div_value.length>wrapsize[n]){new_data=div_value.substr(0,wrapsize[n])+"...";div_id.getElementsByTagName("a")[0].innerHTML=new_data}}else{div_value=div_id.innerHTML;if(div_value.length>wrapsize[n]){new_data=div_value.substr(0,wrapsize[n])+"...";div_id.innerHTML=new_data}}}}}}if(typeof dd_domreadycheck=="undefined"){var dd_domreadycheck=false}var anylinkmenu={menusmap:{},preloadimages:[],effects:{delayhide:200,shadow:{enabled:true,opacity:0.2,depth:[2,2]},fade:{enabled:false,duration:500}},dimensions:{},getoffset:function(b,a){return(b.offsetParent)?b[a]+this.getoffset(b.offsetParent,a):b[a]},getoffsetof:function(a){a._offsets={left:this.getoffset(a,"offsetLeft"),top:this.getoffset(a,"offsetTop"),h:a.offsetHeight}},getdimensions:function(a){this.dimensions={anchorw:a.anchorobj.offsetWidth,anchorh:a.anchorobj.offsetHeight,docwidth:(window.innerWidth||this.standardbody.clientWidth)-20,docheight:(window.innerHeight||this.standardbody.clientHeight)-15,docscrollx:window.pageXOffset||this.standardbody.scrollLeft,docscrolly:window.pageYOffset||this.standardbody.scrollTop};if(!this.dimensions.dropmenuw){this.dimensions.dropmenuw=a.dropmenu.offsetWidth;this.dimensions.dropmenuh=a.dropmenu.offsetHeight}},isContained:function(a,b){var b=window.event||b;var d=b.relatedTarget||((b.type=="mouseover")?b.fromElement:b.toElement);while(d&&d!=a){try{d=d.parentNode}catch(b){d=a}}if(d==a){return true}else{return false}},setopacity:function(a,b){a.style.opacity=b;if(typeof a.style.opacity!="string"){a.style.MozOpacity=b;if(a.filters){a.style.filter="progid:DXImageTransform.Microsoft.alpha(opacity="+b*100+")"}}},showmenu:function(b){var c=anylinkmenu.menusmap[b];clearTimeout(c.hidetimer);this.getoffsetof(c.anchorobj);this.getdimensions(c);var a=c.anchorobj._offsets.left+(c.orientation=="lr"?this.dimensions.anchorw:0);var d=c.anchorobj._offsets.top+this.dimensions.anchorh-(c.orientation=="lr"?this.dimensions.anchorh:0);if(a+this.dimensions.dropmenuw+this.effects.shadow.depth[0]>this.dimensions.docscrollx+this.dimensions.docwidth){a=a-this.dimensions.dropmenuw+(c.orientation=="lr"?-this.dimensions.anchorw:this.dimensions.anchorw)}if(d+this.dimensions.dropmenuh>this.dimensions.docscrolly+this.dimensions.docheight){d=Math.max(d-this.dimensions.dropmenuh-(c.orientation=="lr"?-this.dimensions.anchorh:this.dimensions.anchorh),this.dimensions.docscrolly)}if(this.effects.fade.enabled){this.setopacity(c.dropmenu,0);if(this.effects.shadow.enabled){this.setopacity(c.shadow,0)}}c.dropmenu.setcss({left:a+"px",top:d+"px",visibility:"visible"});if(this.effects.shadow.enabled){c.shadow.setcss({left:a+anylinkmenu.effects.shadow.depth[0]+"px",top:d+anylinkmenu.effects.shadow.depth[1]+"px",visibility:"visible"})}if(this.effects.fade.enabled){clearInterval(c.animatetimer);c.curanimatedegree=0;c.starttime=new Date().getTime();c.animatetimer=setInterval(function(){anylinkmenu.revealmenu(b)},20)}},revealmenu:function(b){var c=anylinkmenu.menusmap[b];var a=new Date().getTime()-c.starttime;if(a<this.effects.fade.duration){this.setopacity(c.dropmenu,c.curanimatedegree);if(this.effects.shadow.enabled){this.setopacity(c.shadow,c.curanimatedegree*this.effects.shadow.opacity)}}else{clearInterval(c.animatetimer);this.setopacity(c.dropmenu,1);c.dropmenu.style.filter=""}c.curanimatedegree=(1-Math.cos((a/this.effects.fade.duration)*Math.PI))/2},setcss:function(a){for(prop in a){this.style[prop]=a[prop]}},setcssclass:function(b,a,c){var d=new RegExp("(^|\\s+)"+a+"($|\\s+)","ig");if(c=="check"){return d.test(b.className)}else{if(c=="remove"){b.className=b.className.replace(d,"")}else{if(c=="add"&&!d.test(b.className)){b.className+=" "+a}}}},hidemenu:function(a){var b=anylinkmenu.menusmap[a];clearInterval(b.animatetimer);b.dropmenu.setcss({visibility:"hidden",left:0,top:0});b.shadow.setcss({visibility:"hidden",left:0,top:0})},getElementsByClass:function(a){if(document.querySelectorAll){return document.querySelectorAll("."+a)}else{var e=new RegExp("(^|\\s+)"+a+"($|\\s+)","i");var d=[];var c=document.all?document.all:document.getElementsByTagName("*");for(var b=0;b<c.length;b++){if(typeof c[b].className=="string"&&c[b].className.search(e)!=-1){d[d.length]=c[b]}}return d}},addDiv:function(d,c,a){var b=document.createElement("div");if(d){b.id=d}b.className=c;if(a!=""&&typeof b.style.cssText=="string"){b.style.cssText=a}else{if(a!=""){b.setAttribute("style",a)}}document.body.appendChild(b);return b},getmenuHTML:function(c){var a=[];var d="";for(var b=0;b<c.items.length;b++){d+='<li><a href="'+c.items[b][1]+'" target="'+c.linktarget+'">'+c.items[b][0]+"</a></li>\n";if(c.items[b][2]=="efc"||b==c.items.length-1){a.push(d);d=""}}if(typeof c.cols=="undefined"){return"<ul>\n"+a.join("")+"\n</ul>"}else{d="";for(var b=0;b<a.length;b++){d+='<div class="'+c.cols.divclass+'" style="'+c.cols.inlinestyle+'">\n<ul>\n'+a[b]+"</ul>\n</div>\n"}return d}},addEvent:function(a,d,b){if(a.length>0){var c=a.shift();if(c.addEventListener){c.addEventListener(b,d,false)}else{if(c.attachEvent){c.attachEvent("on"+b,function(){return d.call(c,window.event)})}}this.addEvent(a,d,b)}},domready:function(a){if(dd_domreadycheck){a();return}if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);a();dd_domreadycheck=true},false)}else{if(document.attachEvent){if(document.documentElement.doScroll&&window==window.top){(function(){if(dd_domreadycheck){return}try{document.documentElement.doScroll("left")}catch(b){setTimeout(arguments.callee,0);return}a();dd_domreadycheck=true})()}}}anylinkmenu.addEvent([window],function(){if(!dd_domreadycheck){a();dd_domreadycheck=true}},"load")},addState:function(a,b){if(a.getAttribute("data-image")){var c=(a.tagName=="IMG")?a:a.getElementsByTagName("img")[0];if(c){c.src=(b=="add")?a.getAttribute("data-overimage"):a.getAttribute("data-image")}}else{anylinkmenu.setcssclass(a,"selectedanchor",b)}},addState:function(a,b){if(a.getAttribute("data-image")){var c=(a.tagName=="IMG")?a:a.getElementsByTagName("img")[0];if(c){c.src=(b=="add")?a.getAttribute("data-overimage"):a.getAttribute("data-image")}}else{anylinkmenu.setcssclass(a,"selectedanchor",b)}},setupmenu:function(a,d,g){this.standardbody=(document.compatMode=="CSS1Compat")?document.documentElement:document.body;var b=d.getAttribute("data-rel");dropmenuid=b.replace(/\[(\w+)\]/,"");var c=window[dropmenuid];var f=this.addDiv(null,c.divclass,c.inlinestyle);f.innerHTML=this.getmenuHTML(c);var e=this.menusmap[a+g]={id:a+g,anchorobj:d,dropmenu:f,revealtype:(b.length!=dropmenuid.length&&RegExp.$1=="click")?"click":"mouseover",orientation:d.getAttribute("rev")=="lr"?"lr":"ud",shadow:this.addDiv(null,"anylinkshadow",null)};e.anchorobj._internalID=a+g;e.anchorobj._isanchor=true;e.dropmenu._internalID=a+g;e.shadow._internalID=a+g;e.dropmenu.setcss=this.setcss;e.shadow.setcss=this.setcss;e.shadow.setcss({width:e.dropmenu.offsetWidth+"px",height:e.dropmenu.offsetHeight+"px"});this.setopacity(e.shadow,this.effects.shadow.opacity);this.addEvent([e.anchorobj,e.dropmenu,e.shadow],function(h){var j=anylinkmenu.menusmap[this._internalID];if(this._isanchor&&j.revealtype=="mouseover"&&!anylinkmenu.isContained(this,h)){anylinkmenu.showmenu(j.id);anylinkmenu.addState(this,"add")}else{if(typeof this._isanchor=="undefined"){clearTimeout(j.hidetimer)}}},"mouseover");this.addEvent([e.anchorobj,e.dropmenu,e.shadow],function(h){if(!anylinkmenu.isContained(this,h)){var j=anylinkmenu.menusmap[this._internalID];j.hidetimer=setTimeout(function(){anylinkmenu.addState(j.anchorobj,"remove");anylinkmenu.hidemenu(j.id)},anylinkmenu.effects.delayhide)}},"mouseout");this.addEvent([e.anchorobj,e.dropmenu],function(h){var j=anylinkmenu.menusmap[this._internalID];if(this._isanchor&&j.revealtype=="click"){if(j.dropmenu.style.visibility=="visible"){anylinkmenu.hidemenu(j.id)}else{anylinkmenu.addState(this,"add");anylinkmenu.showmenu(j.id)}if(h.preventDefault){h.preventDefault()}return false}else{j.hidetimer=setTimeout(function(){anylinkmenu.hidemenu(j.id)},anylinkmenu.effects.delayhide)}},"click")},init:function(a){this.domready(function(){anylinkmenu.trueinit(a)})},trueinit:function(a){var d=this.getElementsByClass(a);var b=this.preloadimages;for(var c=0;c<d.length;c++){if(d[c].getAttribute("data-image")){b[b.length]=new Image();b[b.length-1].src=d[c].getAttribute("data-image")}if(d[c].getAttribute("data-overimage")){b[b.length]=new Image();b[b.length-1].src=d[c].getAttribute("data-overimage")}this.setupmenu(a,d[c],c)}}};function load_all(){if(typeof(wrap_text)=="function"){wrap_text()}if(typeof(getfriends)=="function"){getfriends("","")}if(typeof(getmembers)=="function"){getmembers("","")}if(typeof(initialize)=="function"){initialize()}if(typeof(onload_function)=="function"){onload_function()}}var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(d){for(var a=0;a<d.length;a++){var b=d[a].string;var c=d[a].prop;this.versionSearchString=d[a].versionSearch||d[a].identity;if(b){if(b.indexOf(d[a].subString)!=-1){return d[a].identity}}else{if(c){return d[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari",versionSearch:"Version"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iPhone/iPod"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};BrowserDetect.init();if(typeof deconcept=="undefined"){var deconcept=new Object()}if(typeof deconcept.util=="undefined"){deconcept.util=new Object()}if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object()}deconcept.SWFObject=function(f,d,o,g,k,m,p,j,a,e){if(!document.getElementById){return}this.DETECT_KEY=e?e:"detectflash";this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();if(f){this.setAttribute("swf",f)}if(d){this.setAttribute("id",d)}if(o){this.setAttribute("width",o)}if(g){this.setAttribute("height",g)}if(k){this.setAttribute("version",new deconcept.PlayerVersion(k.toString().split(".")))}this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){deconcept.SWFObject.doPrepUnload=true}if(m){this.addParam("bgcolor",m)}var b=p?p:"high";this.addParam("quality",b);this.setAttribute("useExpressInstall",false);this.setAttribute("doExpressInstall",false);var l=(j)?j:window.location;this.setAttribute("xiRedirectUrl",l);this.setAttribute("redirectUrl","");if(a){this.setAttribute("redirectUrl",a)}};deconcept.SWFObject.prototype={useExpressInstall:function(a){this.xiSWFPath=!a?"expressinstall.swf":a;this.setAttribute("useExpressInstall",true)},setAttribute:function(a,b){this.attributes[a]=b},getAttribute:function(a){return this.attributes[a]},addParam:function(a,b){this.params[a]=b},getParams:function(){return this.params},addVariable:function(a,b){this.variables[a]=b},getVariable:function(a){return this.variables[a]},getVariables:function(){return this.variables},getVariablePairs:function(){var a=new Array();var b;var c=this.getVariables();for(b in c){a.push(b+"="+c[b])}return a},getSWFHTML:function(){var d="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");this.setAttribute("swf",this.xiSWFPath)}d='<embed type="application/x-shockwave-flash" src="'+this.getAttribute("swf")+'" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'"';d+=' id="'+this.getAttribute("id")+'" name="'+this.getAttribute("id")+'" ';var c=this.getParams();for(var a in c){d+=[a]+'="'+c[a]+'" '}var b=this.getVariablePairs().join("&");if(b.length>0){d+='flashvars="'+b+'"'}d+="/>"}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");this.setAttribute("swf",this.xiSWFPath)}d='<object id="'+this.getAttribute("id")+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute("width")+'" height="'+this.getAttribute("height")+'">';d+='<param name="movie" value="'+this.getAttribute("swf")+'" />';var c=this.getParams();for(var a in c){d+='<param name="'+a+'" value="'+c[a]+'" />'}var b=this.getVariablePairs().join("&");if(b.length>0){d+='<param name="flashvars" value="'+b+'" />'}d+="</object>"}return d},write:function(a){if(this.getAttribute("useExpressInstall")){var b=new deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(b)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title)}}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var c=(typeof a=="string")?document.getElementById(a):a;c.innerHTML=this.getSWFHTML();return true}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"))}}return false}};deconcept.SWFObjectUtil.getPlayerVersion=function(){var b=new deconcept.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var a=navigator.plugins["Shockwave Flash"];if(a&&a.description){b=new deconcept.PlayerVersion(a.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."))}}else{try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");b=new deconcept.PlayerVersion([6,0,21]);c.AllowScriptAccess="always"}catch(d){if(b.major==6){return b}}try{c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(c!=null){b=new deconcept.PlayerVersion(c.GetVariable("$version").split(" ")[1].split(","))}}return b};deconcept.PlayerVersion=function(a){this.major=a[0]!=null?parseInt(a[0]):0;this.minor=a[1]!=null?parseInt(a[1]):0;this.rev=a[2]!=null?parseInt(a[2]):0};deconcept.PlayerVersion.prototype.versionIsValid=function(a){if(this.major<a.major){return false}if(this.major>a.major){return true}if(this.minor<a.minor){return false}if(this.minor>a.minor){return true}if(this.rev<a.rev){return false}return true};deconcept.util={getRequestParameter:function(d){var c=document.location.search||document.location.hash;if(c){var b=c.substring(1).split("&");for(var a=0;a<b.length;a++){if(b[a].substring(0,b[a].indexOf("="))==d){return b[a].substring((b[a].indexOf("=")+1))}}}return""}};deconcept.SWFObjectUtil.cleanupSWFs=function(){var c=document.getElementsByTagName("OBJECT");for(var b=0;b<c.length;b++){c[b].style.display="none";for(var a in c[b]){if(typeof c[b][a]=="function"){c[b][a]=function(){}}}}};if(deconcept.SWFObject.doPrepUnload){deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",deconcept.SWFObjectUtil.cleanupSWFs)};window.attachEvent("onbeforeunload",deconcept.SWFObjectUtil.prepUnload)}if(Array.prototype.push==null){Array.prototype.push=function(a){this[this.length]=a;return this.length}}var getQueryParamValue=deconcept.util.getRequestParameter;var FlashObject=deconcept.SWFObject;var SWFObject=deconcept.SWFObject;Persist=(function(){var e="0.1.0",d,g,a,f,c,b;b=(function(){var q="Thu, 01-Jan-1970 00:00:01 GMT",j=1000*60*60*24,r=["expires","path","domain"],l=escape,k=unescape,p=document,m;var s=function(){var u=new Date();u.setTime(u.getTime());return u};var h=function(x,A){var w,v,z,y=[],u=(arguments.length>2)?arguments[2]:{};y.push(l(x)+"="+l(A));for(w=0;w<r.length;w++){v=r[w];if(z=u[v]){y.push(v+"="+z)}}if(u.secure){y.push("secure")}return y.join("; ")};var o=function(){var w="__EC_TEST__",u=new Date();u=u.toGMTString();this.set(w,u);this.enabled=(this.remove(w)==u);return this.enabled};m={set:function(y,B){var x=(arguments.length>2)?arguments[2]:{},w=s(),v,u={};if(x.expires){x.expires*=j;u.expires=new Date(w.getTime()+x.expires);u.expires=u.expires.toGMTString()}var A=["path","domain","secure"];for(i=0;i<A.length;i++){if(x[A[i]]){u[A[i]]=x[A[i]]}}var z=h(y,B,u);p.cookie=z;return B},has:function(v){v=l(v);var y=p.cookie,x=y.indexOf(v+"="),u=x+v.length+1,w=y.substring(0,v.length);return((!x&&v!=w)||x<0)?false:true},get:function(w){w=l(w);var z=p.cookie,y=z.indexOf(w+"="),u=y+w.length+1,x=z.substring(0,w.length),v;if((!y&&w!=x)||y<0){return null}v=z.indexOf(";",u);if(v<0){v=z.length}return k(z.substring(u,v))},remove:function(u){var w=m.get(u),v={expires:q};p.cookie=h(u,"",v);return w},keys:function(){var y=p.cookie,x=y.split("; "),u,w,v=[];for(u=0;u<x.length;u++){w=x[u].split("=");v.push(k(w[0]))}return v},all:function(){var y=p.cookie,x=y.split("; "),u,w,v=[];for(u=0;u<x.length;u++){w=x[u].split("=");v.push([k(w[0]),k(w[1])])}return v},version:"0.2.1",enabled:false};m.enabled=o.call(m);return m}());c=function(){};a=function(h){return"PS"+h.replace(/_/g,"__").replace(/ /g,"_s")};unesc=function(j,h){j=j.replace(/__/g,"_").replace(/_s/g," ").substr(4+h);return j};C={search_order:["gears","localstorage","whatwg_db","globalstorage","flash","ie","cookie"],name_re:/^[a-z][a-z0-9_ -]+$/i,methods:["init","get","set","remove","load","save"],sql:{version:"1",create:"CREATE TABLE IF NOT EXISTS persist_data (k TEXT UNIQUE NOT NULL PRIMARY KEY, v TEXT NOT NULL)",get:"SELECT v FROM persist_data WHERE k = ?",getAll:"SELECT k, v FROM persist_data",set:"INSERT INTO persist_data(k, v) VALUES (?, ?)",remove:"DELETE FROM persist_data WHERE k = ?",removeAll:"DELETE FROM persist_data"},flash:{div_id:"_persist_flash_wrap",id:"_persist_flash",path:"persist.swf",size:{w:1,h:1},args:{autostart:true}}};g={gears:{size:-1,test:function(){return(window.google&&window.google.gears)?true:false},methods:{transaction:function(j){var h=this.db;this.inTransaction=true;j.call(this,h)},init:function(){var h;h=this.db=google.gears.factory.create("beta.database");h.open(a(this.name));h.execute(C.sql.create)},get:function(h,k,j){var l,m=C.sql.get;if(!k){return}this.transaction(function(o){l=o.execute(m,[h]);if(l.isValidRow()){k.call(j||this,true,l.field(0))}else{k.call(j||this,false,null)}l.close()})},getAll:function(j,h){if(!j){return}var k,l=C.sql.getAll;this.transaction(function(m){k=m.execute(l);while(k.isValidRow()){key=k.field(0);j.call(h||this,key,k.field(1));k.next()}k.close()})},set:function(j,p,l,k){var h=C.sql.remove,o=C.sql.set,m;this.transaction(function(q){q.execute(h,[j]);q.execute(o,[j,p]);if(l){l.call(k||this,true,p)}})},remove:function(h,k,j){var m=C.sql.get,p=C.sql.remove,l,o;this.transaction(function(q){if(k){l=q.execute(m,[h]);if(l.isValidRow()){o=l.field(0);q.execute(p,[h]);k.call(j||this,true,o)}else{k.call(j||this,false,null)}l.close()}else{q.execute(p,[h])}})},removeAll:function(j,h){var k=C.sql.remove;this.transaction(function(l){l.execute(k);if(j){j.call(h||this)}})}}},whatwg_db:{size:200*1024,test:function(){var h="PersistJS Test",j="Persistent database test.";if(!window.openDatabase){return false}if(!window.openDatabase(h,C.sql.version,j,g.whatwg_db.size)){return false}return true},methods:{transaction:function(h){if(!this.db_created){var j=C.sql.create;this.db.transaction(function(k){k.executeSql(j,[],function(){this.db_created=true})},c)}this.db.transaction(h)},init:function(){var j,h;j=this.o.about||"Persistent storage for "+this.name;h=this.o.size||g.whatwg_db.size;this.db=openDatabase(this.name,C.sql.version,j,h)},get:function(h,k,j){var l=C.sql.get;if(!k){return}j=j||this;this.transaction(function(m){m.executeSql(l,[h],function(o,p){if(p.rows.length>0){k.call(j,true,p.rows.item(0)["v"])}else{k.call(j,false,null)}})})},set:function(j,o,l,k){var h=C.sql.remove,m=C.sql.set;this.transaction(function(p){p.executeSql(h,[j],function(){p.executeSql(m,[j,o],function(q,s){if(l){l.call(k||this,true,o)}})})});return o},remove:function(h,k,j){var l=C.sql.get;sql=C.sql.remove;this.transaction(function(m){if(k){m.executeSql(l,[h],function(o,p){if(p.rows.length>0){var q=p.rows.item(0)["v"];o.executeSql(sql,[h],function(s,u){k.call(j||this,true,q)})}else{k.call(j||this,false,null)}})}else{m.executeSql(sql,[h])}})}}},globalstorage:{size:5*1024*1024,test:function(){return window.globalStorage?true:false},methods:{key:function(h){return a(this.name)+a(h)},init:function(){this.store=globalStorage[this.o.domain]},get:function(h,k,j){h=this.key(h);if(k){k.call(j||this,true,this.store.getItem(h))}},getAll:function(k,j){namelen=this.name.length;len=this.store.length;for(var h=0;h<len;h++){key=unesc(this.store.key(h),namelen);k.call(j||this,key,this.store.getItem(this.store.key(h)))}},set:function(h,l,k,j){h=this.key(h);this.store.setItem(h,l);if(k){k.call(j||this,true,l)}},remove:function(h,k,j){var l;h=this.key(h);l=this.store[h];this.store.removeItem(h);if(k){k.call(j||this,(l!==null),l)}},removeAll:function(j,h){this.store.clear();if(j){j.call(h||this)}}}},localstorage:{size:-1,test:function(){return window.localStorage?true:false},methods:{key:function(h){return a(this.name)+a(h)},init:function(){this.store=localStorage},get:function(h,k,j){h=this.key(h);if(k){k.call(j||this,true,this.store.getItem(h))}},getAll:function(k,j){namelen=this.name.length;len=this.store.length;for(var h=0;h<len;h++){key=unesc(this.store.key(h),namelen);k.call(j||this,key,this.store.getItem(this.store.key(h)))}},set:function(h,l,k,j){h=this.key(h);this.store.setItem(h,l);if(k){k.call(j||this,true,l)}},remove:function(h,k,j){var l;h=this.key(h);l=this.store.getItem(h);this.store.removeItem(h);if(k){k.call(j||this,(l!==null),l)}},removeAll:function(j,h){this.store.clear();if(j){j.call(h||this)}}}},ie:{prefix:"_persist_data-",size:64*1024,test:function(){return window.ActiveXObject?true:false},make_userdata:function(j){var h=document.createElement("div");h.id=j;h.style.display="none";h.addBehavior("#default#userData");document.body.appendChild(h);return h},methods:{init:function(){var h=g.ie.prefix+a(this.name);this.el=g.ie.make_userdata(h);if(this.o.defer){this.load()}},get:function(h,k,j){var l;h=a(h);if(!this.o.defer){this.load()}l=this.el.getAttribute(h);if(k){k.call(j||this,l?true:false,l)}},set:function(h,l,k,j){h=a(h);this.el.setAttribute(h,l);if(!this.o.defer){this.save()}if(k){k.call(j||this,true,l)}},load:function(){this.el.load(a(this.name))},save:function(){this.el.save(a(this.name))}}},cookie:{delim:":",size:4000,test:function(){return d.Cookie.enabled?true:false},methods:{key:function(h){return this.name+g.cookie.delim+h},get:function(h,l,k,j){h=this.key(h);l=b.get(h);if(k){k.call(j||this,l!=null,l)}},set:function(h,l,k,j){h=this.key(h);b.set(h,l,this.o);if(k){k.call(j||this,true,l)}},remove:function(h,l,k,j){var l;h=this.key(h);l=b.remove(h);if(k){k.call(j||this,l!=null,l)}}}},flash:{test:function(){if(!window.SWFObject||!deconcept||!deconcept.SWFObjectUtil){return false}var h=deconcept.SWFObjectUtil.getPlayerVersion().major;return(h>=8)?true:false},methods:{init:function(){if(!g.flash.el){var l,j,k,h=C.flash;k=document.createElement("div");k.id=h.div_id;document.body.appendChild(k);l=new SWFObject(this.o.swf_path||h.path,h.id,h.size.w,h.size.h,"8");for(j in h.args){l.addVariable(j,h.args[j])}l.write(k);g.flash.el=document.getElementById(h.id)}this.el=g.flash.el},get:function(h,k,j){var l;h=a(h);l=this.el.get(this.name,h);if(k){k.call(j||this,l!==null,l)}},set:function(j,m,l,k){var h;j=a(j);h=this.el.set(this.name,j,m);if(l){l.call(k||this,true,m)}},remove:function(h,k,j){var l;h=a(h);l=this.el.remove(this.name,h);if(k){k.call(j||this,true,l)}}}}};var f=function(){var o,j,h,m,k=C.methods,p=C.search_order;for(o=0,j=k.length;o<j;o++){d.Store.prototype[k[o]]=c}d.type=null;d.size=-1;for(o=0,j=p.length;!d.type&&o<j;o++){h=g[p[o]];if(h.test()){d.type=p[o];d.size=h.size;for(m in h.methods){d.Store.prototype[m]=h.methods[m]}}}d._init=true};d={VERSION:e,type:null,size:0,add:function(h){g[h.id]=h;C.search_order=[h.id].concat(C.search_order);f()},remove:function(j){if(!C.search_order.indexOf){C.search_order.indexOf=function(l){for(var k=0;k<this.length;k++){if(this[k]==l){return k}}return -1}}var h=C.search_order.indexOf(j);if(h<0){return}C.search_order.splice(h,1);delete g[j];f()},Cookie:b,Store:function(h,j){if(!C.name_re.exec(h)){throw new Error("Invalid name")}if(!d.type){throw new Error("No suitable storage found")}j=j||{};this.name=h;j.domain=j.domain||location.hostname||"localhost.localdomain";this.o=j;j.expires=j.expires||365*2;j.path=j.path||"/";this.init()}};f();return d})();var suffix={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"};var months={0:"Jan",1:"Feb",2:"Mar",3:"Apr",4:"May",5:"Jun",6:"Jul",7:"Aug",8:"Sep",9:"Oct",10:"Nov",11:"Dec"};function rtrim(b,a){a=a||"\\s";return b.replace(new RegExp("["+a+"]+$","g"),"")}function ltrim(b,a){a=a||"\\s";return b.replace(new RegExp("^["+a+"]+","g"),"")}function trim(b,a){return ltrim(rtrim(b,a),a)}function windowBlurred(){if(windowBlur){windowBlur=false;if(originalTitle.length>0){window.document.title=originalTitle;originalTitle=""}}else{windowBlur=true}}function gotFocus(){windowBlur=true;windowBlurred()}function lostFocus(){windowBlur=false;windowBlurred()}function smartparse_emoticons(a){a=a.toString();a=a.replace(/:panda:/g,'<img src="'+http_root+'/images/emoticons/panda.gif">');a=a.replace(/:pirate:/g,'<img src="'+http_root+'/images/emoticons/pirate.gif">');a=a.replace(/:shark:/g,'<img src="'+http_root+'/images/emoticons/shark.gif">');a=a.replace(/:grin:/g,'<img src="'+http_root+'/images/emoticons/grin.gif">');a=a.replace(/:frus:/g,'<img src="'+http_root+'/images/emoticons/frustrated.gif">');a=a.replace(/:toocool:/g,'<img src="'+http_root+'/images/emoticons/too_cool.gif">');a=a.replace(/:zzz:/g,'<img src="'+http_root+'/images/emoticons/zzz.gif">');a=a.replace(/:xp:/g,'<img src="'+http_root+'/images/emoticons/xp.gif">');a=a.replace(/:unw:/g,'<img src="'+http_root+'/images/emoticons/unwell.gif">');a=a.replace(/:laugh:/g,'<img src="'+http_root+'/images/emoticons/laugh.gif">');a=a.replace(/:tongue:/g,'<img src="'+http_root+'/images/emoticons/tongue_out.gif">');a=a.replace(/:love:/g,'<img src="'+http_root+'/images/emoticons/love.gif">');a=a.replace(/:drool:/g,'<img src="'+http_root+'/images/emoticons/drool.gif">');a=a.replace(/:shy:/g,'<img src="'+http_root+'/images/emoticons/shy.gif">');a=a.replace(/:cry:/g,'<img src="'+http_root+'/images/emoticons/cry.gif">');a=a.replace(/:ceyes:/g,'<img src="'+http_root+'/images/emoticons/close_eyes.gif">');a=a.replace(/:wonder:/g,'<img src="'+http_root+'/images/emoticons/wonder.gif">');a=a.replace(/:surp:/g,'<img src="'+http_root+'/images/emoticons/surprise.gif">');a=a.replace(/:drunk:/g,'<img src="'+http_root+'/images/emoticons/drunk.gif">');a=a.replace(/:liar:/g,'<img src="'+http_root+'/images/emoticons/liar.gif">');a=a.replace(/:puke:/g,'<img src="'+http_root+'/images/emoticons/puke.gif">');a=a.replace(/:tdown:/g,'<img src="'+http_root+'/images/emoticons/thumbdown.gif">');a=a.replace(/:tup:/g,'<img src="'+http_root+'/images/emoticons/thumbup.gif">');a=a.replace(/:hulk:/g,'<img src="'+http_root+'/images/emoticons/hulk.gif">');a=a.replace(/:geek:/g,'<img src="'+http_root+'/images/emoticons/geek.gif">');a=a.replace(/:chicken:/g,'<img src="'+http_root+'/images/emoticons/chicken.gif">');a=a.replace(/:cow:/g,'<img src="'+http_root+'/images/emoticons/cow.gif">');a=a.replace(/:sad:/g,'<img src="'+http_root+'/images/emoticons/sad.gif">');a=a.replace(/:heartbroken:/g,'<img src="'+http_root+'/images/emoticons/heart_broken.gif">');a=a.replace(/:surprise:/g,'<img src="'+http_root+'/images/emoticons/surprise.gif">');a=a.replace(/:\)/g,'<img src="'+http_root+'/images/emoticons/laugh.gif">');a=a.replace(/:\(/g,'<img src="'+http_root+'/images/emoticons/sad.gif">');a=a.replace(/:p/g,'<img src="'+http_root+'/images/emoticons/tongue_out.gif">');a=a.replace(/:P/g,'<img src="'+http_root+'/images/emoticons/tongue_out.gif">');a=a.replace(/:o/g,'<img src="'+http_root+'/images/emoticons/surprise.gif">');a=a.replace(/:O/g,'<img src="'+http_root+'/images/emoticons/surprise.gif">');a=a.replace(/:s/g,'<img src="'+http_root+'/images/emoticons/drunk.gif">');a=a.replace(/:S/g,'<img src="'+http_root+'/images/emoticons/drunk.gif">');a=a.replace(/:d/g,'<img src="'+http_root+'/images/emoticons/grin.gif">');a=a.replace(/:D/g,'<img src="'+http_root+'/images/emoticons/grin.gif">');return a}function checkLength(b){var a=b.value.length;if(a>400){b.style.backgroundColor="pink";return false}b.style.backgroundColor="white";return true}function animateWindowTitle(a){if(windowBlur===true){if(window.document.title.substr(0,3)==="New"){window.document.title=originalTitle}else{window.document.title="New message from "+a}setTimeout("animateWindowTitle('"+a+"')",2000)}}function get_html_translation_table(j,f){var d={},h={},c=0,a="";var e={},b={};var k={},g={};e[0]="HTML_SPECIALCHARS";e[1]="HTML_ENTITIES";b[0]="ENT_NOQUOTES";b[2]="ENT_COMPAT";b[3]="ENT_QUOTES";k=!isNaN(j)?e[j]:j?j.toUpperCase():"HTML_SPECIALCHARS";g=!isNaN(f)?b[f]:f?f.toUpperCase():"ENT_COMPAT";if(k!=="HTML_SPECIALCHARS"&&k!=="HTML_ENTITIES"){throw new Error("Table: "+k+" not supported")}if(k==="HTML_ENTITIES"){d["160"]="&nbsp;";d["161"]="&iexcl;";d["162"]="&cent;";d["163"]="&pound;";d["164"]="&curren;";d["165"]="&yen;";d["166"]="&brvbar;";d["167"]="&sect;";d["168"]="&uml;";d["169"]="&copy;";d["170"]="&ordf;";d["171"]="&laquo;";d["172"]="&not;";d["173"]="&shy;";d["174"]="&reg;";d["175"]="&macr;";d["176"]="&deg;";d["177"]="&plusmn;";d["178"]="&sup2;";d["179"]="&sup3;";d["180"]="&acute;";d["181"]="&micro;";d["182"]="&para;";d["183"]="&middot;";d["184"]="&cedil;";d["185"]="&sup1;";d["186"]="&ordm;";d["187"]="&raquo;";d["188"]="&frac14;";d["189"]="&frac12;";d["190"]="&frac34;";d["191"]="&iquest;";d["192"]="&Agrave;";d["193"]="&Aacute;";d["194"]="&Acirc;";d["195"]="&Atilde;";d["196"]="&Auml;";d["197"]="&Aring;";d["198"]="&AElig;";d["199"]="&Ccedil;";d["200"]="&Egrave;";d["201"]="&Eacute;";d["202"]="&Ecirc;";d["203"]="&Euml;";d["204"]="&Igrave;";d["205"]="&Iacute;";d["206"]="&Icirc;";d["207"]="&Iuml;";d["208"]="&ETH;";d["209"]="&Ntilde;";d["210"]="&Ograve;";d["211"]="&Oacute;";d["212"]="&Ocirc;";d["213"]="&Otilde;";d["214"]="&Ouml;";d["215"]="&times;";d["216"]="&Oslash;";d["217"]="&Ugrave;";d["218"]="&Uacute;";d["219"]="&Ucirc;";d["220"]="&Uuml;";d["221"]="&Yacute;";d["222"]="&THORN;";d["223"]="&szlig;";d["224"]="&agrave;";d["225"]="&aacute;";d["226"]="&acirc;";d["227"]="&atilde;";d["228"]="&auml;";d["229"]="&aring;";d["230"]="&aelig;";d["231"]="&ccedil;";d["232"]="&egrave;";d["233"]="&eacute;";d["234"]="&ecirc;";d["235"]="&euml;";d["236"]="&igrave;";d["237"]="&iacute;";d["238"]="&icirc;";d["239"]="&iuml;";d["240"]="&eth;";d["241"]="&ntilde;";d["242"]="&ograve;";d["243"]="&oacute;";d["244"]="&ocirc;";d["245"]="&otilde;";d["246"]="&ouml;";d["247"]="&divide;";d["248"]="&oslash;";d["249"]="&ugrave;";d["250"]="&uacute;";d["251"]="&ucirc;";d["252"]="&uuml;";d["253"]="&yacute;";d["254"]="&thorn;";d["255"]="&yuml;"}if(g!=="ENT_NOQUOTES"){d["34"]="&quot;"}if(g==="ENT_QUOTES"){d["39"]="&#39;"}d["60"]="&lt;";d["62"]="&gt;";for(c in d){a=String.fromCharCode(c);h[a]=d[c]}return h}function browserCheck(){var b=BrowserDetect.browser;var a=BrowserDetect.version;if(b==="Chrome"){if(a>=3){return true}}if(b==="Safari"){if(a>=3){return true}}if(b==="Mozilla"){if(a>=1.9){return true}}if(b==="Firefox"){if(a>=3){return true}}if(b==="Explorer"){if(a>=8){return true}}if(b==="Opera"){if(a>=9.8){return true}}return false}function htmlspecialchars(c,f){var e={},d="",a="",b="";a=c.toString();if(false===(e=this.get_html_translation_table("HTML_SPECIALCHARS",f))){return false}e["'"]="&#039;";for(d in e){b=e[d];a=a.split(d).join(b)}return a}function getChatBuddies(a){if(a){getUpdate(http_root+"/talk/iuserlist.php",function(){store.getAll(function(b,c){if((b.substr(b.length-6,b.length))!="-state"){store.get(b+"-state",function(d,e){state=e});if(state!==null){ChatBar.newChatWindow(b,c,state)}}});t1=setTimeout("getChatBuddies(false)",chat_timeout)})}else{}}function openMainChat(a){if(!browserCheck()){return}if(a===undefined||a==="max"){document.getElementById("chatList").style.display="block";document.getElementById("chatMin").style.display="none";store.set("main-state","max")}else{document.getElementById("chatList").style.display="none";document.getElementById("chatMin").style.display="block";store.set("main-state","min")}}function restoreMainChatWindow(){store.get("main-state",function(a,b){if(b){openMainChat(b.toString())}})}function flipChatMenu(b){var a=document.getElementById(b);if(a.style.display==="none"){if(showingChatMenu===true){var a=document.getElementById(showingChatMenuID);a.style.display="none"}showingChatMenu=true;showingChatMenuID=b;a.style.display="block"}else{showingChatMenu=false;a.style.display="none"}}function formatChatMessage(k){var d="th";var a=new Date();var h=a.getDate().toString();var c=a.getHours();var f=months[a.getMonth()];var g=a.getFullYear().toString().substring(2);var j="am";if(suffix[h]){d=suffix[h]}if(h.length==1){h="0"+h}if(c>12){c-=12;j="pm"}var b=a.getMinutes();if(b<10){b="0"+b}var e=h+" "+f+" "+g+", "+c+":"+b+j;return'<div class="chatMessageName">'+myfirstlastname+':</div><div class="chatMessageTimestamp">'+e+'</div><br><div class="chatMessage">'+smartparse_emoticons(htmlspecialchars(k,""))+"</div>"}function getUpdate(strURL,fn){if(showingChatMenu===true){return}var self=this;var xmlHttpReq=false;if(window.XMLHttpRequest){self.xmlHttpReq=new XMLHttpRequest()}else{if(window.ActiveXObject){self.xmlHttpReq=new ActiveXObject("Microsoft.XMLHTTP")}}self.xmlHttpReq.open("GET",strURL,true);self.xmlHttpReq.onreadystatechange=function(){if(self.xmlHttpReq.readyState==4&&self.xmlHttpReq.status==200){var str=self.xmlHttpReq.responseText;eval("response = "+str);document.getElementById("userlisting").innerHTML=response.userlist;if(document.getElementById("onlinefriends")!=null&&document.getElementById("uonline")!=null){document.getElementById("onlinefriends").innerHTML=document.getElementById("uonline").title}database=response.database;fn.call(this);msgs=response.msgs;online=response.online;offline=response.offline;for(var userfrm in msgs){var msg=msgs[userfrm];msg=msg.replace(/\&lt\;br\&gt\;/g,"<br>");ChatBar.newContent(userfrm,msg)}ChatBar.updateOfflineStatus(response.online,response.offline);if(msgs!=null){chat_timeout=2000}setTimeout("getUpdate('"+http_root+"/talk/iuserlist.php', function() {})",chat_timeout)}};self.xmlHttpReq.send(null)}var outgoingBuffer=[];function sendMessage(b,a){if(outgoingBuffer[b]===undefined){outgoingBuffer[b]=a}else{outgoingBuffer[b]+="<br>"+escape(a)}}function _sendMessage(){for(var d in outgoingBuffer){if(outgoingBuffer.hasOwnProperty(d)){msg=outgoingBuffer[d];if(msg!==undefined&&msg.length>0){outgoingBuffer[d]=undefined;var c=http_root+"/talk/chatservice.php";var b=false;var a;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}a.open("GET",c+"?to="+escape(d)+"&msg="+msg,true);a.send(null)}}}setTimeout(_sendMessage,3000)}setTimeout(_sendMessage,3000);function setUserStatus(b){var a;var c=false;var d=http_root+"/talk/isetstatus.php";if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}a.open("GET",d+"?switchto="+escape(b),true);a.onreadystatechange=function(){if(a.readyState==4){var e=a.responseText}};a.send(null)}function sendPM(b,f,e){var a;var d=false;var g=http_root+"/process/process_messages.php";var c=f.value;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}a.open("POST",g,true);a.setRequestHeader("Content-Type","application/x-www-form-urlencoded");a.send("op=compose&subject="+escape("Chat message from "+database[b])+"&selectedfriends="+b+"&compose_message="+escape(c));f.value="";f.focus();e.innerHTML="PM successfully sent";setTimeout("ChatBar.setFooterMsg('"+b+"', '"+database[b]+" is offline.')",5000)}function BUB(b){var d=http_root+"/talk/ibubusr.php";var c=false;var a;if(window.XMLHttpRequest){a=new XMLHttpRequest()}else{if(window.ActiveXObject){a=new ActiveXObject("Microsoft.XMLHTTP")}}a.open("GET",d+"?blockee="+escape(b),true);a.onreadystatechange=function(){};a.send(null)}var online=[];var offline=[];var database=[];var originalTitle="";var windowBlur=false;var showingChatMenu=false;var http_root="http://www.koolred.com";if(
/*@cc_on!@*/
false){document.onfocusin=gotFocus;document.onfocusout=lostFocus}else{window.onfocus=gotFocus;window.onblur=lostFocus}function ChatWindow(a,b,d,c){this.newWindow=c;this.uid=a;this.buffer="";this.chatbox=0;this.width=285;this.next=null;this.height=420;this.state=d;this.emoticons=0;this.blink=false;this.previous=null;this.content=b;this.name=database[a];this.init=function(){chatbox='<div class="chatHeader"> 			<div class="chatName" onclick="ChatBar.resize(\''+this.uid+"')\">"+this.name+'</div>			<div style="position: absolute; top: 7px; margin-left: 225px">				<a style="cursor: pointer" onclick="ChatBar.popout(\''+this.uid+'\', event)">					<img src="'+http_root+'/images/icon_popout.gif">				</a>				<a style="cursor: pointer" onclick="ChatBar.resize(\''+this.uid+'\')">					<img src="'+http_root+'/images/icon_minimise.gif">				</a>				<a style="cursor: pointer" onclick="ChatBar.close(\''+this.uid+'\')">					<img src="'+http_root+'/images/icon_closewin.gif">				</a>			</div>		</div>		<div class="avatarHeader">			<a href="'+http_root+"/redsters/view_profile.php?red="+this.uid+'">				<img src="'+http_root+"/talk/igetavatar.php?userid="+this.uid+'">			</a>			<div class="dottedLine"></div>		</div>		<div class="conversation" id="conversation_'+this.uid+'">'+this.content+'</div>		<div class="chatFooter">			<textarea class="chatTextarea" name="text_'+this.uid+'" id="text_'+this.uid+'" onkeyup="if (event.keyCode==13 && this.value.length <= 400) { ChatBar.processChat(\''+this.uid+'\', event); } else { checkLength(this); }"></textarea>			<div class="emoticonBox" id="emoticonBox_'+this.uid+'" style="display:none">				<div id="display1_'+this.uid+'" style="display:none;">					<div class="arrow right">						<img src="'+http_root+'/images/arrow_right_chat.gif" align="left" onclick="ChatBar.flipEmoticonBoxRight(\''+this.uid+'\')">					</div>					<div class="holder">						<div class="icon"><a href="javascript:void(0)"  onclick="ChatBar.insertEmoticon(\' :tdown: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/thumbdown.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :tup: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/thumbup.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :geek: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/geek.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :grin: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/grin.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :laugh: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/laugh.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :tongue: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/tongue_out.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :love: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/love.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :drool: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/drool.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :drunk: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/drunk.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :shy: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/shy.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :pirate: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/pirate.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :shark: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/shark.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :hulk: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/hulk.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :cry: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/cry.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :toocool: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/too_cool.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :zzz: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/zzz.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :xp: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/xp.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :unw: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/unwell.gif" /></a></div>					</div>					<div class="clear"></div>				</div>				<div id="display2_'+this.uid+'" style="display: none;">					<div class="arrow left">						<img src="'+http_root+'/images/arrow_left_chat.gif" align="left" onclick="ChatBar.flipEmoticonBoxLeft(\''+this.uid+'\')">					</div>					<div class="holder">						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :sad: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/sad.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :heartbroken: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/heart_broken.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :ceyes: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/close_eyes.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :wonder: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/wonder.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :surp: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/surprise.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :liar: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/liar.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :puke: \',\''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/puke.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :chicken: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/chicken.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :cow: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/cow.gif" /></a></div>						<div class="icon"><a href="javascript:void(0)" onclick="ChatBar.insertEmoticon(\' :panda: \', \''+this.uid+'\')"><img src="'+http_root+'/images/emoticons/panda.gif" /></a></div>					</div>					<div class="clear"></div>				</div>			</div>		<a href="javascript:void(0)" onclick="ChatBar.flipEmoticonBox(\''+this.uid+'\')" class="emoticon"></a>		<div class="userOfflineMsg" id="userOfflineMsg_'+this.uid+'"></div>		</div>';var e=document.createElement("div");e.innerHTML=chatbox;e.id=this.uid;e.className="chatBox";var f=document.getElementById("container");e.style.right=(ChatBar.getWindowCount()*290)+"px";f.appendChild(e)};this.scroll=function(e){var f=document.getElementById("conversation_"+this.uid);if(f!==null){if(e===undefined){e=f.scrollHeight}f.scrollTop=e}};this.drawConversationWindow=function(){if(this.buffer.length>0){var f=document.getElementById("conversation_"+this.uid);if(f!==null){var e=this.buffer;f.innerHTML+=e;this.content+=e;this.buffer=""}this.scroll()}};this.highlightWindow=function(){if(this.blink){this.blink=false;if(this.state==="min"){var e=document.getElementById(this.uid);e.childNodes[0].style.backgroundColor="#ff9900";e=document.getElementById("maxwin_"+this.uid);e.src=http_root+"/images/icon_maxwin2.gif";e=document.getElementById("closewin_"+this.uid);e.src=http_root+"/images/icon_closewin2.gif"}if(windowBlur===true){if(soundManager.supported()){soundManager.play("notifySound",http_root+"/talk/sounds/notification.mp3")}if(originalTitle.length===0){originalTitle=window.document.title;animateWindowTitle(this.name)}}}};this.draw=function(){this.drawConversationWindow();this.highlightWindow()};this.minimize=function(){this.state="min";var e=document.getElementById(this.uid);this.serializedState=e.innerHTML;e.innerHTML='<div class="chatHeader"><div class="chatName" onclick="ChatBar.resize(\''+this.uid+"')\">"+this.name+'</div><div class="chatMinIcon">	<a href="javascript:void(0)" onclick="ChatBar.resize(\''+this.uid+'\')">		<img id="maxwin_'+this.uid+'" src="'+http_root+'/images/icon_maxwin.gif">	</a>	<a href="javascript:void(0)" onclick="ChatBar.close(\''+this.uid+'\')">		<img id="closewin_'+this.uid+'" src="'+http_root+'/images/icon_closewin.gif">	</a></div></div>';e.className="chatBoxMinimized";store.set(this.uid+"-state",this.state)};this.maximize=function(){this.state="max";this.blink=false;var e=document.getElementById(this.uid);e.innerHTML=this.serializedState;e.style.display="";e.className="chatBox";this.serializedState="";this.drawConversationWindow();store.set(this.uid+"-state",this.state);document.getElementById("text_"+this.uid).focus();this.scroll()};this.resize=function(){if(this.state=="min"){this.maximize()}else{this.minimize()}};this.processChat=function(f){if(offline[this.uid]!==undefined){return}if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}else{if(f.preventDefault){f.preventDefault()}}var g=document.getElementById("text_"+this.uid);var e=trim(g.value);if(e.length===0){return false}this.buffer+=formatChatMessage(e);sendMessage(this.uid,e);this.drawConversationWindow();this.scroll();store.set(a,this.content);g.value="";chat_timeout=5000;return false};this.resizeConversationWindow=function(e){var f=document.getElementById("conversation_"+this.uid);f.style.height=e+"px"};this.flipEmoticonBox=function(){var e;if(this.emoticons>0){this.emoticons=0;e=document.getElementById("emoticonBox_"+this.uid);e.style.display="none";e=document.getElementById("display1_"+this.uid);e.style.display="none";e=document.getElementById("display2_"+this.uid);e.style.display="none";this.resizeConversationWindow(250)}else{this.emoticons=1;e=document.getElementById("emoticonBox_"+this.uid);e.style.display="block";e=document.getElementById("display1_"+this.uid);e.style.display="block";this.resizeConversationWindow(176)}this.scroll()};this.flipEmoticonBoxLeft=function(){this.emoticons=1;obj=document.getElementById("display1_"+this.uid);obj.style.display="block";obj=document.getElementById("display2_"+this.uid);obj.style.display="none"};this.flipEmoticonBoxRight=function(){this.emoticons=2;obj=document.getElementById("display1_"+this.uid);obj.style.display="none";obj=document.getElementById("display2_"+this.uid);obj.style.display="block"};this.insertEmoticon=function(e){var g=0;var f=0;var j=document.getElementById("text_"+this.uid);if(document.selection){j.focus();var h=document.selection.createRange();h.text=e}else{if(j.selectionStart||j.selectionStart=="0"){g=j.selectionStart;f=j.selectionEnd;j.value=j.value.substring(0,g)+e+j.value.substring(f,j.value.length);j.setSelectionRange(g+e.length,g+e.length);j.focus()}else{j.value+=e}}this.flipEmoticonBox();return};this.init();if(this.state==="min"){this.minimize();if(this.newWindow===true&&this.content.length>0){this.blink=true}}else{document.getElementById("text_"+this.uid).focus();store.set(this.uid+"-state",this.state)}this.highlightWindow();this.scroll()}var ChatBar=(function(){return{winNum:0,last:null,first:null,maxWindows:3,chatWindows:[],poppedChatWindows:[],getWindowCount:function(){return this.winNum},setMaxWindows:function(){if(screen.width<1280){this.maxWindows=2}},registerChildWindow:function(b,a){this.poppedChatWindows[b]=a},newChatWindow:function(b,c,f){var e=false;if(f==="popped"){return}if(database[b]===undefined){return}if(this.poppedChatWindows[b]!==undefined){this.poppedChatWindows[b].focus()}else{if(this.chatWindows[b]===undefined){var d=this.first;var a=this.last;if(c===undefined){c=""}if(f===undefined){f="max"}else{if(f==="new"){e=true;f="min"}else{f=f.toString()}}if(this.winNum===this.maxWindows){this.first=this.chatWindows[d].next;this.close(d);this.chatWindows[this.first].previous=null}this.winNum+=1;this.chatWindows[b]=new ChatWindow(b,c,f,e);store.set(b,c);if(this.first===null){this.first=b;this.last=b;this.chatWindows[b].previous=null;this.chatWindows[b].next=null}else{this.last=b;this.chatWindows[b].previous=a;this.chatWindows[b].next=null;this.chatWindows[a].next=b}}else{if(c!==undefined){this.newContent(b,c)}}}chat_timeout=5000},newContent:function(a,b){b=smartparse_emoticons(b);if(this.poppedChatWindows[a]!==undefined){this.poppedChatWindows[a].newContent(b);return}else{if(this.chatWindows[a]===undefined){this.newChatWindow(a,b,"new");return}}if(this.chatWindows[a].state==="min"||windowBlur){this.chatWindows[a].blink=true}this.chatWindows[a].buffer+=b;this.chatWindows[a].draw();store.set(a,this.chatWindows[a].content);return},setFooterMsg:function(a,c){if(this.chatWindows[a]!==undefined){var b=document.getElementById("userOfflineMsg_"+a);if(b!==null){b.innerHTML=c}}},block:function(a,b){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}else{if(b.preventDefault){b.preventDefault();b.stopPropagation()}}return BUB(a)},popChatWindow:function(a,c,b){if(window.event){window.event.cancelBubble=true;window.event.returnValue=false}else{if(c.preventDefault){c.preventDefault();c.stopPropagation()}}if(b===undefined){b=""}if(this.poppedChatWindows[a]===undefined&&this.chatWindows[a]===undefined){if(BrowserDetect.browser==="Explorer"){this.poppedChatWindows[a]=window.open(http_root+"/talk/popup_ie.php?content="+b+"&uid="+a,a,"width=430, height=500, status=no, toolbar=no, location=no, menubar=no, directories=no, scrollbars=no, resizable=no")}else{this.poppedChatWindows[a]=window.open(http_root+"/talk/popup.php?content="+b+"&uid="+a,a,"width=430, height=500, status=no, toolbar=no, location=no, menubar=no, directories=no, scrollbars=no, resizable=no")}store.set(a+"-state","popped")}},processChat:function(a,b){this.chatWindows[a].processChat(b)},closePopped:function(a){store.remove(a);store.remove(a+"-state");delete this.poppedChatWindows[a]},popout:function(a,c){var b="";if(this.chatWindows[a]!==undefined){b=this.chatWindows[a].content;this.close(a)}this.popChatWindow(a,c,"")},close:function(c){if(this.poppedChatWindows[c]===undefined&&this.chatWindows[c]===undefined){return}var a=this.chatWindows[c].previous;var b=this.chatWindows[c].next;var e=document.getElementById("container");e.removeChild(document.getElementById(c));store.remove(c);store.remove(c+"-state");delete this.chatWindows[c];this.winNum-=1;if(this.winNum===0){this.last=null;this.first=null;chat_timeout=5000}else{if(this.winNum===1){var d=null;if(a===null){d=b}else{d=a}this.first=d;this.previous=d;this.chatWindows[d].previous=null;this.chatWindows[d].next=null}else{if(a===null){this.chatWindows[b].previous=null}else{if(b===null){this.chatWindows[a].next=null}else{this.chatWindows[a].next=b;this.chatWindows[b].previous=a}}}}while(b!==null){e=document.getElementById(b);e.style.right=(e.style.right.substr(0,3)-290)+"px";b=this.chatWindows[b].next}},flipEmoticonBox:function(a){this.chatWindows[a].flipEmoticonBox()},flipEmoticonBoxLeft:function(a){this.chatWindows[a].flipEmoticonBoxLeft()},flipEmoticonBoxRight:function(a){this.chatWindows[a].flipEmoticonBoxRight()},resize:function(a){this.chatWindows[a].resize()},insertEmoticon:function(a,b){this.chatWindows[b].insertEmoticon(a)},updateOfflineStatus:function(){var b;for(var a in this.chatWindows){if(this.chatWindows.hasOwnProperty(a)&&this.chatWindows[a].state==="max"){if(online.hasOwnProperty(a)){b=document.getElementById("userOfflineMsg_"+a);b.innerHTML=""}if(offline.hasOwnProperty(a)){b=document.getElementById("userOfflineMsg_"+a);b.innerHTML=this.chatWindows[a].name+" is offline. ";if(trim(document.getElementById("text_"+a).value)!=""){b.innerHTML+="Send as <a href=\"javascript:sendPM('"+a+"', document.getElementById('text_"+a+"'), document.getElementById('userOfflineMsg_"+a+"' ));\">PM</a>?"}}}}},closeMainChat:function(){document.getElementById("chatList").style.display="none";document.getElementById("chatMin").style.display="none";store.remove("main-state")},resizeMainChat:function(){var b=document.getElementById("chatList");var a=document.getElementById("chatMin");if(b.style.display==="none"){b.style.display="block";a.style.display="none";store.set("main-state","max")}else{b.style.display="none";a.style.display="block";store.set("main-state","min")}},changeStatus:function(){var a=document.getElementById("statusf");if(chatstatus=="active"){setUserStatus("inactive");a.innerHTML='<a href="javascript:ChatBar.changeStatus()" class="detailsStatus"><img src="'+http_root+'/images/icon_chat_inactive.gif" /><div class="online">Go online</div></a>';chatstatus="inactive"}else{setUserStatus("active");a.innerHTML='<a href="javascript:ChatBar.changeStatus()" class="detailsStatus"><img src="'+http_root+'/images/icon_chat_active.gif" /><div class="offline">Go offline</div></a>';chatstatus="active"}}}})();
/*
   SoundManager 2: Javascript Sound for the Web
   --------------------------------------------
   http://schillmania.com/projects/soundmanager2/

   Copyright (c) 2007, Scott Schiller. All rights reserved.
   Code provided under the BSD License:
   http://schillmania.com/projects/soundmanager2/license.txt

   V2.95b.20100101
*/
var soundManager=null;function SoundManager(q,o){this.flashVersion=8;this.debugMode=false;this.debugFlash=false;this.useConsole=true;this.consoleOnly=false;this.waitForWindowLoad=false;this.nullURL="null.mp3";this.allowPolling=true;this.useFastPolling=false;this.useMovieStar=false;this.bgColor="#ffffff";this.useHighPerformance=false;this.flashLoadTimeout=1000;this.wmode=null;this.allowFullScreen=true;this.allowScriptAccess="always";this.defaultOptions={autoLoad:false,stream:true,autoPlay:false,onid3:null,onload:null,whileloading:null,onplay:null,onpause:null,onresume:null,whileplaying:null,onstop:null,onfinish:null,onbeforefinish:null,onbeforefinishtime:5000,onbeforefinishcomplete:null,onjustbeforefinish:null,onjustbeforefinishtime:200,multiShot:true,multiShotEvents:false,position:null,pan:0,volume:100};this.flash9Options={isMovieStar:null,usePeakData:false,useWaveformData:false,useEQData:false,onbufferchange:null,ondataerror:null};this.movieStarOptions={onmetadata:null,useVideo:false,bufferTime:null};var p=null;var j=this;var k="soundManager";this.version=null;this.versionNumber="V2.95b.20100101";this.movieURL=null;this.url=null;this.altURL=null;this.swfLoaded=false;this.enabled=false;this.o=null;this.id=(o||"sm2movie");this.oMC=null;this.sounds={};this.soundIDs=[];this.muted=false;this.isFullScreen=false;this.isIE=(navigator.userAgent.match(/MSIE/i));this.isSafari=(navigator.userAgent.match(/safari/i));this.debugID="soundmanager-debug";this.debugURLParam=/([#?&])debug=1/i;this.specialWmodeCase=false;this._onready=[];this._debugOpen=true;this._didAppend=false;this._appendSuccess=false;this._didInit=false;this._disabled=false;this._windowLoaded=false;this._hasConsole=(typeof console!="undefined"&&typeof console.log!="undefined");this._debugLevels=["log","info","warn","error"];this._defaultFlashVersion=8;this._oRemoved=null;this._oRemovedHTML=null;var m=function(a){return document.getElementById(a)};this.filePatterns={flash8:/\.mp3(\?.*)?$/i,flash9:/\.mp3(\?.*)?$/i};this.netStreamTypes=["aac","flv","mov","mp4","m4v","f4v","m4a","mp4v","3gp","3g2"];this.netStreamPattern=new RegExp("\\.("+this.netStreamTypes.join("|")+")(\\?.*)?$","i");this.filePattern=null;this.features={buffering:false,peakData:false,waveformData:false,eqData:false,movieStar:false};this.sandbox={type:null,types:{remote:"remote (domain-based) rules",localWithFile:"local with file access (no internet access)",localWithNetwork:"local with network (internet access only, no local access)",localTrusted:"local, trusted (local+internet access)"},description:null,noRemote:null,noLocal:null};this._setVersionInfo=function(){if(j.flashVersion!=8&&j.flashVersion!=9){alert(j._str("badFV",j.flashVersion,j._defaultFlashVersion));j.flashVersion=j._defaultFlashVersion}j.version=j.versionNumber+(j.flashVersion==9?" (AS3/Flash 9)":" (AS2/Flash 8)");if(j.flashVersion>8){j.defaultOptions=j._mergeObjects(j.defaultOptions,j.flash9Options);j.features.buffering=true}if(j.flashVersion>8&&j.useMovieStar){j.defaultOptions=j._mergeObjects(j.defaultOptions,j.movieStarOptions);j.filePatterns.flash9=new RegExp("\\.(mp3|"+j.netStreamTypes.join("|")+")(\\?.*)?$","i");j.features.movieStar=true}else{j.useMovieStar=false;j.features.movieStar=false}j.filePattern=j.filePatterns[(j.flashVersion!=8?"flash9":"flash8")];j.movieURL=(j.flashVersion==8?"soundmanager2.swf":"soundmanager2_flash9.swf");j.features.peakData=j.features.waveformData=j.features.eqData=(j.flashVersion>8)};this._overHTTP=(document.location?document.location.protocol.match(/http/i):null);this._waitingforEI=false;this._initPending=false;this._tryInitOnFocus=(this.isSafari&&typeof document.hasFocus=="undefined");this._isFocused=(typeof document.hasFocus!="undefined"?document.hasFocus():null);this._okToDisable=!this._tryInitOnFocus;this.useAltURL=!this._overHTTP;var s="";this.strings={};var r="";this._str=function(){var d=Array.prototype.slice.call(arguments);var e=d.shift();var a=j.strings&&j.strings[e]?j.strings[e]:"";if(a&&d&&d.length){for(var b=0,c=d.length;b<c;b++){a=a.replace("%s",d[b])}}return a};this.supported=function(){return(j._didInit&&!j._disabled)};this.getMovie=function(a){return j.isIE?window[a]:(j.isSafari?m(a)||document[a]:m(a))};this.loadFromXML=function(b){try{j.o._loadFromXML(b)}catch(a){j._failSafely();return true}};this.createSound=function(c){var a="soundManager.createSound(): ";if(!j._didInit){throw j._complain(a+j._str("notReady"),arguments.callee.caller)}if(arguments.length==2){c={id:arguments[0],url:arguments[1]}}var b=j._mergeObjects(c);var d=b;if(d.id.toString().charAt(0).match(/^[0-9]$/)){}if(j._idCheck(d.id,true)){return j.sounds[d.id]}if(j.flashVersion>8&&j.useMovieStar){if(d.isMovieStar===null){d.isMovieStar=(d.url.match(j.netStreamPattern)?true:false)}if(d.isMovieStar){}if(d.isMovieStar&&(d.usePeakData||d.useWaveformData||d.useEQData)){d.usePeakData=false;d.useWaveformData=false;d.useEQData=false}}j.sounds[d.id]=new p(d);j.soundIDs[j.soundIDs.length]=d.id;if(j.flashVersion==8){j.o._createSound(d.id,d.onjustbeforefinishtime)}else{j.o._createSound(d.id,d.url,d.onjustbeforefinishtime,d.usePeakData,d.useWaveformData,d.useEQData,d.isMovieStar,(d.isMovieStar?d.useVideo:false),(d.isMovieStar?d.bufferTime:false))}if(d.autoLoad||d.autoPlay){if(j.sounds[d.id]){j.sounds[d.id].load(d)}}if(d.autoPlay){j.sounds[d.id].play()}return j.sounds[d.id]};this.createVideo=function(a){if(arguments.length==2){a={id:arguments[0],url:arguments[1]}}if(j.flashVersion>=9){a.isMovieStar=true;a.useVideo=true}else{return false}if(!j.useMovieStar){}return j.createSound(a)};this.destroySound=function(b,c){if(!j._idCheck(b)){return false}for(var a=0;a<j.soundIDs.length;a++){if(j.soundIDs[a]==b){j.soundIDs.splice(a,1);continue}}j.sounds[b].unload();if(!c){j.sounds[b].destruct()}delete j.sounds[b]};this.destroyVideo=this.destroySound;this.load=function(b,a){if(!j._idCheck(b)){return false}j.sounds[b].load(a)};this.unload=function(a){if(!j._idCheck(a)){return false}j.sounds[a].unload()};this.play=function(b,a){if(!j._didInit){throw j._complain(r+j._str("notReady"),arguments.callee.caller)}if(!j._idCheck(b)){if(typeof a!="Object"){a={url:a}}if(a&&a.url){a.id=b;j.createSound(a)}else{return false}}j.sounds[b].play(a)};this.start=this.play;this.setPosition=function(b,a){if(!j._idCheck(b)){return false}j.sounds[b].setPosition(a)};this.stop=function(a){if(!j._idCheck(a)){return false}j.sounds[a].stop()};this.stopAll=function(){for(var a in j.sounds){if(j.sounds[a] instanceof p){j.sounds[a].stop()}}};this.pause=function(a){if(!j._idCheck(a)){return false}j.sounds[a].pause()};this.pauseAll=function(){for(var a=j.soundIDs.length;a--;){j.sounds[j.soundIDs[a]].pause()}};this.resume=function(a){if(!j._idCheck(a)){return false}j.sounds[a].resume()};this.resumeAll=function(){for(var a=j.soundIDs.length;a--;){j.sounds[j.soundIDs[a]].resume()}};this.togglePause=function(a){if(!j._idCheck(a)){return false}j.sounds[a].togglePause()};this.setPan=function(b,a){if(!j._idCheck(b)){return false}j.sounds[b].setPan(a)};this.setVolume=function(a,b){if(!j._idCheck(a)){return false}j.sounds[a].setVolume(b)};this.mute=function(b){if(typeof b!="string"){b=null}if(!b){for(var a=j.soundIDs.length;a--;){j.sounds[j.soundIDs[a]].mute()}j.muted=true}else{if(!j._idCheck(b)){return false}j.sounds[b].mute()}};this.muteAll=function(){j.mute()};this.unmute=function(b){if(typeof b!="string"){b=null}if(!b){for(var a=j.soundIDs.length;a--;){j.sounds[j.soundIDs[a]].unmute()}j.muted=false}else{if(!j._idCheck(b)){return false}j.sounds[b].unmute()}};this.unmuteAll=function(){j.unmute()};this.toggleMute=function(a){if(!j._idCheck(a)){return false}j.sounds[a].toggleMute()};this.getMemoryUse=function(){if(j.flashVersion==8){return 0}if(j.o){return parseInt(j.o._getMemoryUse(),10)}};this.disable=function(a){if(typeof a=="undefined"){a=false}if(j._disabled){return false}j._disabled=true;for(var b=j.soundIDs.length;b--;){j._disableObject(j.sounds[j.soundIDs[b]])}j.initComplete(a)};this.canPlayURL=function(a){return(a?(a.match(j.filePattern)?true:false):null)};this.getSoundById=function(b,a){if(!b){throw new Error("SoundManager.getSoundById(): sID is null/undefined")}var c=j.sounds[b];if(!c&&!a){}return c};this.onready=function(a,b){if(a&&a instanceof Function){if(j._didInit){}if(!b){b=window}j._addOnReady(a,b);j._processOnReady();return true}else{throw j._str("needFunction")}};this.oninitmovie=function(){};this.onload=function(){soundManager._wD("soundManager.onload()",1)};this.onerror=function(){};this._idCheck=this.getSoundById;this._complain=function(h,f){var g="Error: ";if(!f){return new Error(g+h)}var d=new Error("");var c=null;if(d.stack){try{var b="@";var a=d.stack.split(b);c=a[4]}catch(e){c=d.stack}}if(typeof console!="undefined"&&typeof console.trace!="undefined"){console.trace()}var u=g+h+". \nCaller: "+f.toString()+(d.stack?" \nTop of stacktrace: "+c:(d.message?" \nMessage: "+d.message:""));return new Error(u)};var l=function(){return false};l._protected=true;this._disableObject=function(a){for(var b in a){if(typeof a[b]=="function"&&typeof a[b]._protected=="undefined"){a[b]=l}}b=null};this._failSafely=function(a){if(typeof a=="undefined"){a=false}if(!j._disabled||a){j.disable(a)}};this._normalizeMovieURL=function(b){var a=null;if(b){if(b.match(/\.swf(\?.*)?$/i)){a=b.substr(b.toLowerCase().lastIndexOf(".swf?")+4);if(a){return b}}else{if(b.lastIndexOf("/")!=b.length-1){b=b+"/"}}}return(b&&b.lastIndexOf("/")!=-1?b.substr(0,b.lastIndexOf("/")+1):"./")+j.movieURL};this._getDocument=function(){return(document.body?document.body:(document.documentElement?document.documentElement:document.getElementsByTagName("div")[0]))};this._getDocument._protected=true;this._setPolling=function(b,a){if(!j.o||!j.allowPolling){return false}j.o._setPolling(b,a)};this._createMovie=function(b,g){var d=null;var H=(g?g:j.url);var h=(j.altURL?j.altURL:H);if(j._didAppend&&j._appendSuccess){return false}j._didAppend=true;j._setVersionInfo();j.url=j._normalizeMovieURL(j._overHTTP?H:h);g=j.url;if(j.useHighPerformance&&j.useMovieStar&&j.defaultOptions.useVideo===true){d="soundManager note: disabling highPerformance, not applicable with movieStar mode+useVideo";j.useHighPerformance=false}j.wmode=(!j.wmode&&j.useHighPerformance&&!j.useMovieStar?"transparent":j.wmode);if(j.wmode!==null&&j.flashLoadTimeout!==0&&(!j.useHighPerformance||j.debugFlash)&&!j.isIE&&navigator.platform.match(/win32/i)){j.specialWmodeCase=true;j.wmode=null}if(j.flashVersion==8){j.allowFullScreen=false}var J={name:b,id:b,src:g,width:"100%",height:"100%",quality:"high",allowScriptAccess:j.allowScriptAccess,bgcolor:j.bgColor,pluginspage:"http://www.macromedia.com/go/getflashplayer",type:"application/x-shockwave-flash",wmode:j.wmode,allowfullscreen:(j.allowFullScreen?"true":"false")};if(j.debugFlash){J.FlashVars="debug=1"}if(!j.wmode){delete J.wmode}var x=null;var I=null;var E=null;var K=null;if(j.isIE){x=document.createElement("div");E='<object id="'+b+'" data="'+g+'" type="'+J.type+'" width="'+J.width+'" height="'+J.height+'"><param name="movie" value="'+g+'" /><param name="AllowScriptAccess" value="'+j.allowScriptAccess+'" /><param name="quality" value="'+J.quality+'" />'+(j.wmode?'<param name="wmode" value="'+j.wmode+'" /> ':"")+'<param name="bgcolor" value="'+j.bgColor+'" /><param name="allowFullScreen" value="'+J.allowFullScreen+'" />'+(j.debugFlash?'<param name="FlashVars" value="'+J.FlashVars+'" />':"")+"<!-- --></object>"}else{x=document.createElement("embed");for(I in J){if(J.hasOwnProperty(I)){x.setAttribute(I,J[I])}}}var a=null;var c=null;if(j.debugMode){a=document.createElement("div");a.id=j.debugID+"-toggle";c={position:"fixed",bottom:"0px",right:"0px",width:"1.2em",height:"1.2em",lineHeight:"1.2em",margin:"2px",textAlign:"center",border:"1px solid #999",cursor:"pointer",background:"#fff",color:"#333",zIndex:10001};a.appendChild(document.createTextNode("-"));a.onclick=j._toggleDebug;a.title="Toggle SM2 debug console";if(navigator.userAgent.match(/msie 6/i)){a.style.position="absolute";a.style.cursor="hand"}for(I in c){if(c.hasOwnProperty(I)){a.style[I]=c[I]}}}var D=j._getDocument();if(D){j.oMC=m("sm2-container")?m("sm2-container"):document.createElement("div");var f=(j.debugMode?" sm2-debug":"")+(j.debugFlash?" flash-debug":"");if(!j.oMC.id){j.oMC.id="sm2-container";j.oMC.className="movieContainer"+f;var e=null;K=null;if(j.useHighPerformance){e={position:"fixed",width:"8px",height:"8px",bottom:"0px",left:"0px",overflow:"hidden"}}else{e={position:"absolute",width:"8px",height:"8px",top:"-9999px",left:"-9999px"}}var F=null;if(!j.debugFlash){for(F in e){if(e.hasOwnProperty(F)){j.oMC.style[F]=e[F]}}}try{if(!j.isIE){j.oMC.appendChild(x)}D.appendChild(j.oMC);if(j.isIE){K=j.oMC.appendChild(document.createElement("div"));K.className="sm2-object-box";K.innerHTML=E}j._appendSuccess=true}catch(G){throw new Error(j._str("appXHTML"))}}else{if(j.debugMode||j.debugFlash){j.oMC.className+=f}j.oMC.appendChild(x);if(j.isIE){K=j.oMC.appendChild(document.createElement("div"));K.className="sm2-object-box";K.innerHTML=E}j._appendSuccess=true}D=null}if(d){}};this._writeDebug=function(c,a,b){};this._writeDebug._protected=true;this._wdCount=0;this._wdCount._protected=true;this._wD=this._writeDebug;this._debug=function(){for(var a=0,b=j.soundIDs.length;a<b;a++){j.sounds[j.soundIDs[a]]._debug()}};this._debugTS=function(a,d,c){if(typeof sm2Debugger!="undefined"){try{sm2Debugger.handleEvent(a,d,c)}catch(b){}}};this._debugTS._protected=true;this._mergeObjects=function(c,d){var f={};for(var b in c){if(c.hasOwnProperty(b)){f[b]=c[b]}}var a=(typeof d=="undefined"?j.defaultOptions:d);for(var e in a){if(a.hasOwnProperty(e)&&typeof f[e]=="undefined"){f[e]=a[e]}}return f};this.createMovie=function(a){if(a){j.url=a}j._initMovie()};this.go=this.createMovie;this._initMovie=function(){if(j.o){return false}j.o=j.getMovie(j.id);if(!j.o){if(!j.oRemoved){j._createMovie(j.id,j.url)}else{if(!j.isIE){j.oMC.appendChild(j.oRemoved)}else{j.oMC.innerHTML=j.oRemovedHTML}j.oRemoved=null;j._didAppend=true}j.o=j.getMovie(j.id)}if(j.o){if(j.flashLoadTimeout>0){}}if(typeof j.oninitmovie=="function"){setTimeout(j.oninitmovie,1)}};this.waitForExternalInterface=function(){if(j._waitingForEI){return false}j._waitingForEI=true;if(j._tryInitOnFocus&&!j._isFocused){return false}if(j.flashLoadTimeout>0){if(!j._didInit){var a=j.getMoviePercent()}setTimeout(function(){var b=j.getMoviePercent();if(!j._didInit){if(!j._overHTTP){if(!j.debugFlash){}}if(b===0){}j._debugTS("flashtojs",false,": Timed out"+(j._overHTTP)?" (Check flash security or flash blockers)":" (No plugin/missing SWF?)")}if(!j._didInit&&j._okToDisable){j._failSafely(true)}},j.flashLoadTimeout)}else{if(!j._didInit){}}};this.getMoviePercent=function(){return(j.o&&typeof j.o.PercentLoaded!="undefined"?j.o.PercentLoaded():null)};this.handleFocus=function(){if(j._isFocused||!j._tryInitOnFocus){return true}j._okToDisable=true;j._isFocused=true;if(j._tryInitOnFocus){window.removeEventListener("mousemove",j.handleFocus,false)}j._waitingForEI=false;setTimeout(j.waitForExternalInterface,500);if(window.removeEventListener){window.removeEventListener("focus",j.handleFocus,false)}else{if(window.detachEvent){window.detachEvent("onfocus",j.handleFocus)}}};this.initComplete=function(a){if(j._didInit){return false}j._didInit=true;if(j._disabled||a){j._processOnReady();j._debugTS("onload",false);j.onerror.apply(window);return false}else{j._debugTS("onload",true)}if(j.waitForWindowLoad&&!j._windowLoaded){if(window.addEventListener){window.addEventListener("load",j._initUserOnload,false)}else{if(window.attachEvent){window.attachEvent("onload",j._initUserOnload)}}return false}else{if(j.waitForWindowLoad&&j._windowLoaded){}j._initUserOnload()}};this._addOnReady=function(a,b){j._onready.push({method:a,scope:(b||null),fired:false})};this._processOnReady=function(){if(!j._didInit){return false}var b={success:(!j._disabled)};var c=[];for(var d=0,a=j._onready.length;d<a;d++){if(j._onready[d].fired!==true){c.push(j._onready[d])}}if(c.length){for(d=0,a=c.length;d<a;d++){if(c[d].scope){c[d].method.apply(c[d].scope,[b])}else{c[d].method(b)}c[d].fired=true}}};this._initUserOnload=function(){window.setTimeout(function(){j._processOnReady();j.onload.apply(window)})};this.init=function(){j._initMovie();if(j._didInit){return false}if(window.removeEventListener){window.removeEventListener("load",j.beginDelayedInit,false)}else{if(window.detachEvent){window.detachEvent("onload",j.beginDelayedInit)}}try{j.o._externalInterfaceTest(false);if(!j.allowPolling){}else{j._setPolling(true,j.useFastPolling?true:false)}if(!j.debugMode){j.o._disableDebug()}j.enabled=true;j._debugTS("jstoflash",true)}catch(a){j._debugTS("jstoflash",false);j._failSafely(true);j.initComplete();return false}j.initComplete()};this.beginDelayedInit=function(){j._windowLoaded=true;setTimeout(j.waitForExternalInterface,500);setTimeout(j.beginInit,20)};this.beginInit=function(){if(j._initPending){return false}j.createMovie();j._initMovie();j._initPending=true;return true};this.domContentLoaded=function(){if(document.removeEventListener){document.removeEventListener("DOMContentLoaded",j.domContentLoaded,false)}j.go()};this._externalInterfaceOK=function(b){if(j.swfLoaded){return false}var a=new Date().getTime();j._debugTS("swf",true);j._debugTS("flashtojs",true);j.swfLoaded=true;j._tryInitOnFocus=false;if(j.isIE){setTimeout(j.init,100)}else{j.init()}};this._setSandboxType=function(b){var a=j.sandbox;a.type=b;a.description=a.types[(typeof a.types[b]!="undefined"?b:"unknown")];if(a.type=="localWithFile"){a.noRemote=true;a.noLocal=false}else{if(a.type=="localWithNetwork"){a.noRemote=false;a.noLocal=true}else{if(a.type=="localTrusted"){a.noRemote=false;a.noLocal=false}}}};this.reboot=function(){if(j.soundIDs.length){}for(var b=j.soundIDs.length;b--;){j.sounds[j.soundIDs[b]].destruct()}try{if(j.isIE){j.oRemovedHTML=j.o.innerHTML}j.oRemoved=j.o.parentNode.removeChild(j.o)}catch(a){}j.oRemovedHTML=null;j.oRemoved=null;j.enabled=false;j._didInit=false;j._waitingForEI=false;j._initPending=false;j._didAppend=false;j._appendSuccess=false;j._disabled=false;j._waitingforEI=true;j.swfLoaded=false;j.soundIDs={};j.sounds=[];j.o=null;for(b=j._onready.length;b--;){j._onready[b].fired=false}window.setTimeout(soundManager.beginDelayedInit,20)};this.destruct=function(){j.disable(true)};p=function(b){var a=this;this.sID=b.id;this.url=b.url;this.options=j._mergeObjects(b);this.instanceOptions=this.options;this._iO=this.instanceOptions;this.pan=this.options.pan;this.volume=this.options.volume;this._lastURL=null;this._debug=function(){};this._debug();this.id3={};this.resetProperties=function(c){a.bytesLoaded=null;a.bytesTotal=null;a.position=null;a.duration=null;a.durationEstimate=null;a.loaded=false;a.playState=0;a.paused=false;a.readyState=0;a.muted=false;a.didBeforeFinish=false;a.didJustBeforeFinish=false;a.isBuffering=false;a.instanceOptions={};a.instanceCount=0;a.peakData={left:0,right:0};a.waveformData={left:[],right:[]};a.eqData=[];a.eqData.left=[];a.eqData.right=[]};a.resetProperties();this.load=function(d){if(typeof d!="undefined"){a._iO=j._mergeObjects(d);a.instanceOptions=a._iO}else{d=a.options;a._iO=d;a.instanceOptions=a._iO;if(a._lastURL&&a._lastURL!=a.url){a._iO.url=a.url;a.url=null}}if(typeof a._iO.url=="undefined"){a._iO.url=a.url}if(a._iO.url==a.url&&a.readyState!==0&&a.readyState!=2){return false}a.url=a._iO.url;a._lastURL=a._iO.url;a.loaded=false;a.readyState=1;a.playState=0;try{if(j.flashVersion==8){j.o._load(a.sID,a._iO.url,a._iO.stream,a._iO.autoPlay,(a._iO.whileloading?1:0))}else{j.o._load(a.sID,a._iO.url,a._iO.stream?true:false,a._iO.autoPlay?true:false);if(a._iO.isMovieStar&&a._iO.autoLoad&&!a._iO.autoPlay){a.pause()}}}catch(c){j._debugTS("onload",false);j.onerror();j.disable()}};this.unload=function(){if(a.readyState!==0){if(a.readyState!=2){a.setPosition(0,true)}j.o._unload(a.sID,j.nullURL);a.resetProperties()}};this.destruct=function(){j.o._destroySound(a.sID);j.destroySound(a.sID,true)};this.play=function(c){if(!c){c={}}a._iO=j._mergeObjects(c,a._iO);a._iO=j._mergeObjects(a._iO,a.options);a.instanceOptions=a._iO;if(a.playState==1){var d=a._iO.multiShot;if(!d){return false}else{}}if(!a.loaded){if(a.readyState===0){a._iO.autoPlay=true;a.load(a._iO)}else{if(a.readyState==2){return false}else{}}}else{}if(a.paused){a.resume()}else{a.playState=1;if(!a.instanceCount||j.flashVersion>8){a.instanceCount++}a.position=(typeof a._iO.position!="undefined"&&!isNaN(a._iO.position)?a._iO.position:0);if(a._iO.onplay){a._iO.onplay.apply(a)}a.setVolume(a._iO.volume,true);a.setPan(a._iO.pan,true);j.o._start(a.sID,a._iO.loop||1,(j.flashVersion==9?a.position:a.position/1000))}};this.start=this.play;this.stop=function(c){if(a.playState==1){a.playState=0;a.paused=false;if(a._iO.onstop){a._iO.onstop.apply(a)}j.o._stop(a.sID,c);a.instanceCount=0;a._iO={}}};this.setPosition=function(c,d){if(typeof c=="undefined"){c=0}var e=Math.min(a.duration,Math.max(c,0));a._iO.position=e;if(!d){}j.o._setPosition(a.sID,(j.flashVersion==9?a._iO.position:a._iO.position/1000),(a.paused||!a.playState))};this.pause=function(){if(a.paused||a.playState===0){return false}a.paused=true;j.o._pause(a.sID);if(a._iO.onpause){a._iO.onpause.apply(a)}};this.resume=function(){if(!a.paused||a.playState===0){return false}a.paused=false;j.o._pause(a.sID);if(a._iO.onresume){a._iO.onresume.apply(a)}};this.togglePause=function(){if(a.playState===0){a.play({position:(j.flashVersion==9?a.position:a.position/1000)});return false}if(a.paused){a.resume()}else{a.pause()}};this.setPan=function(c,d){if(typeof c=="undefined"){c=0}if(typeof d=="undefined"){d=false}j.o._setPan(a.sID,c);a._iO.pan=c;if(!d){a.pan=c}};this.setVolume=function(d,c){if(typeof d=="undefined"){d=100}if(typeof c=="undefined"){c=false}j.o._setVolume(a.sID,(j.muted&&!a.muted)||a.muted?0:d);a._iO.volume=d;if(!c){a.volume=d}};this.mute=function(){a.muted=true;j.o._setVolume(a.sID,0)};this.unmute=function(){a.muted=false;var c=typeof a._iO.volume!="undefined";j.o._setVolume(a.sID,c?a._iO.volume:a.options.volume)};this.toggleMute=function(){if(a.muted){a.unmute()}else{a.mute()}};this._whileloading=function(d,c,e){if(!a._iO.isMovieStar){a.bytesLoaded=d;a.bytesTotal=c;a.duration=Math.floor(e);a.durationEstimate=parseInt((a.bytesTotal/a.bytesLoaded)*a.duration,10);if(a.durationEstimate===undefined){a.durationEstimate=a.duration}if(a.readyState!=3&&a._iO.whileloading){a._iO.whileloading.apply(a)}}else{a.bytesLoaded=d;a.bytesTotal=c;a.duration=Math.floor(e);a.durationEstimate=a.duration;if(a.readyState!=3&&a._iO.whileloading){a._iO.whileloading.apply(a)}}};this._onid3=function(f,d){var e=[];for(var g=0,c=f.length;g<c;g++){e[f[g]]=d[g]}a.id3=j._mergeObjects(a.id3,e);if(a._iO.onid3){a._iO.onid3.apply(a)}};this._whileplaying=function(h,g,e,c,f){if(isNaN(h)||h===null){return false}if(a.playState===0&&h>0){h=0}a.position=h;if(j.flashVersion>8){if(a._iO.usePeakData&&typeof g!="undefined"&&g){a.peakData={left:g.leftPeak,right:g.rightPeak}}if(a._iO.useWaveformData&&typeof e!="undefined"&&e){a.waveformData={left:e.split(","),right:c.split(",")}}if(a._iO.useEQData){if(typeof f!="undefined"&&f.leftEQ){var d=f.leftEQ.split(",");a.eqData=d;a.eqData.left=d;if(typeof f.rightEQ!="undefined"&&f.rightEQ){a.eqData.right=f.rightEQ.split(",")}}}}if(a.playState==1){if(a.isBuffering){a._onbufferchange(0)}if(a._iO.whileplaying){a._iO.whileplaying.apply(a)}if(a.loaded&&a._iO.onbeforefinish&&a._iO.onbeforefinishtime&&!a.didBeforeFinish&&a.duration-a.position<=a._iO.onbeforefinishtime){a._onbeforefinish()}}};this._onload=function(c){c=(c==1?true:false);if(!c){if(j.sandbox.noRemote===true){}if(j.sandbox.noLocal===true){}}a.loaded=c;a.readyState=c?3:2;if(a._iO.onload){a._iO.onload.apply(a)}};this._onbeforefinish=function(){if(!a.didBeforeFinish){a.didBeforeFinish=true;if(a._iO.onbeforefinish){a._iO.onbeforefinish.apply(a)}}};this._onjustbeforefinish=function(c){if(!a.didJustBeforeFinish){a.didJustBeforeFinish=true;if(a._iO.onjustbeforefinish){a._iO.onjustbeforefinish.apply(a)}}};this._onfinish=function(){if(a._iO.onbeforefinishcomplete){a._iO.onbeforefinishcomplete.apply(a)}a.didBeforeFinish=false;a.didJustBeforeFinish=false;if(a.instanceCount){a.instanceCount--;if(!a.instanceCount){a.playState=0;a.paused=false;a.instanceCount=0;a.instanceOptions={}}if(!a.instanceCount||a._iO.multiShotEvents){if(a._iO.onfinish){a._iO.onfinish.apply(a)}}}else{if(a.useVideo){}}};this._onmetadata=function(c){if(!c.width&&!c.height){c.width=320;c.height=240}a.metadata=c;a.width=c.width;a.height=c.height;if(a._iO.onmetadata){a._iO.onmetadata.apply(a)}};this._onbufferchange=function(c){if(a.playState===0){return false}if(c==a.isBuffering){return false}a.isBuffering=(c==1?true:false);if(a._iO.onbufferchange){a._iO.onbufferchange.apply(a)}};this._ondataerror=function(c){if(a.playState>0){if(a._iO.ondataerror){a._iO.ondataerror.apply(a)}}else{}}};this._onfullscreenchange=function(b){j.isFullScreen=(b==1?true:false);if(!j.isFullScreen){try{window.focus()}catch(a){}}};if(window.addEventListener){window.addEventListener("focus",j.handleFocus,false);window.addEventListener("load",j.beginDelayedInit,false);window.addEventListener("unload",j.destruct,false);if(j._tryInitOnFocus){window.addEventListener("mousemove",j.handleFocus,false)}}else{if(window.attachEvent){window.attachEvent("onfocus",j.handleFocus);window.attachEvent("onload",j.beginDelayedInit);window.attachEvent("unload",j.destruct)}else{j._debugTS("onload",false);soundManager.onerror();soundManager.disable()}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",j.domContentLoaded,false)}}if(typeof SM2_DEFER=="undefined"||!SM2_DEFER){soundManager=new SoundManager()};
