(function(aT,aw){var J=aT.document;var j=(function(){var bD=function(bI,bJ){return new bD.fn.init(bI,bJ,bC)},br=aT.jQuery,bf=aT.$,bC,bp=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,bm=/\S/,bk=/^\s+/,e=/\s+$/,bH=/\d/,bg=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bF=/^[\],:{}\s]*$/,bG=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,bu=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,bz=/(?:^|:|,)(?:\s*\[)+/g,by=/(webkit)[ \/]([\w.]+)/,bn=/(opera)(?:.*version)?[ \/]([\w.]+)/,bl=/(msie) ([\w.]+)/,bx=/(mozilla)(?:.*? rv:([\w.]+))?/,bv=navigator.userAgent,bA,bq,bi,bo=Object.prototype.toString,bj=Object.prototype.hasOwnProperty,bt=Array.prototype.push,bh=Array.prototype.slice,bs=String.prototype.trim,bw=Array.prototype.indexOf,bB={};bD.fn=bD.prototype={constructor:bD,init:function(bO,bL,bK){var bJ,bM,bI,bN;if(!bO){return this}if(bO.nodeType){this.context=this[0]=bO;this.length=1;return this}if(bO==="body"&&!bL&&J.body){this.context=J;this[0]=J.body;this.selector="body";this.length=1;return this}if(typeof bO==="string"){bJ=bp.exec(bO);if(bJ&&(bJ[1]||!bL)){if(bJ[1]){bL=bL instanceof bD?bL[0]:bL;bN=(bL?bL.ownerDocument||bL:J);bI=bg.exec(bO);if(bI){if(bD.isPlainObject(bL)){bO=[J.createElement(bI[1])];bD.fn.attr.call(bO,bL,true)}else{bO=[bN.createElement(bI[1])]}}else{bI=bD.buildFragment([bJ[1]],[bN]);bO=(bI.cacheable?bD.clone(bI.fragment):bI.fragment).childNodes}return bD.merge(this,bO)}else{bM=J.getElementById(bJ[2]);if(bM&&bM.parentNode){if(bM.id!==bJ[2]){return bK.find(bO)}this.length=1;this[0]=bM}this.context=J;this.selector=bO;return this}}else{if(!bL||bL.jquery){return(bL||bK).find(bO)}else{return this.constructor(bL).find(bO)}}}else{if(bD.isFunction(bO)){return bK.ready(bO)}}if(bO.selector!==aw){this.selector=bO.selector;this.context=bO.context}return bD.makeArray(bO,this)},selector:"",jquery:"1.5.2",length:0,size:function(){return this.length},toArray:function(){return bh.call(this,0)},get:function(bI){return bI==null?this.toArray():(bI<0?this[this.length+bI]:this[bI])},pushStack:function(bJ,bL,bI){var bK=this.constructor();if(bD.isArray(bJ)){bt.apply(bK,bJ)}else{bD.merge(bK,bJ)}bK.prevObject=this;bK.context=this.context;if(bL==="find"){bK.selector=this.selector+(this.selector?" ":"")+bI}else{if(bL){bK.selector=this.selector+"."+bL+"("+bI+")"}}return bK},each:function(bJ,bI){return bD.each(this,bJ,bI)},ready:function(bI){bD.bindReady();bq.done(bI);return this},eq:function(bI){return bI===-1?this.slice(bI):this.slice(bI,+bI+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(bh.apply(this,arguments),"slice",bh.call(arguments).join(","))},map:function(bI){return this.pushStack(bD.map(this,function(bK,bJ){return bI.call(bK,bJ,bK)}))},end:function(){return this.prevObject||this.constructor(null)},push:bt,sort:[].sort,splice:[].splice};bD.fn.init.prototype=bD.fn;bD.extend=bD.fn.extend=function(){var bR,bK,bI,bJ,bO,bP,bN=arguments[0]||{},bM=1,bL=arguments.length,bQ=false;if(typeof bN==="boolean"){bQ=bN;bN=arguments[1]||{};bM=2}if(typeof bN!=="object"&&!bD.isFunction(bN)){bN={}}if(bL===bM){bN=this;--bM}for(;bM<bL;bM++){if((bR=arguments[bM])!=null){for(bK in bR){bI=bN[bK];bJ=bR[bK];if(bN===bJ){continue}if(bQ&&bJ&&(bD.isPlainObject(bJ)||(bO=bD.isArray(bJ)))){if(bO){bO=false;bP=bI&&bD.isArray(bI)?bI:[]}else{bP=bI&&bD.isPlainObject(bI)?bI:{}}bN[bK]=bD.extend(bQ,bP,bJ)}else{if(bJ!==aw){bN[bK]=bJ}}}}}return bN};bD.extend({noConflict:function(bI){aT.$=bf;if(bI){aT.jQuery=br}return bD},isReady:false,readyWait:1,ready:function(bI){if(bI===true){bD.readyWait--}if(!bD.readyWait||(bI!==true&&!bD.isReady)){if(!J.body){return setTimeout(bD.ready,1)}bD.isReady=true;if(bI!==true&&--bD.readyWait>0){return}bq.resolveWith(J,[bD]);if(bD.fn.trigger){bD(J).trigger("ready").unbind("ready")}}},bindReady:function(){if(bq){return}bq=bD._Deferred();if(J.readyState==="complete"){return setTimeout(bD.ready,1)}if(J.addEventListener){J.addEventListener("DOMContentLoaded",bi,false);aT.addEventListener("load",bD.ready,false)}else{if(J.attachEvent){J.attachEvent("onreadystatechange",bi);aT.attachEvent("onload",bD.ready);var bI=false;try{bI=aT.frameElement==null}catch(bJ){}if(J.documentElement.doScroll&&bI){bE()}}}},isFunction:function(bI){return bD.type(bI)==="function"},isArray:Array.isArray||function(bI){return bD.type(bI)==="array"},isWindow:function(bI){return bI&&typeof bI==="object"&&"setInterval"in bI},isNaN:function(bI){return bI==null||!bH.test(bI)||isNaN(bI)},type:function(bI){return bI==null?String(bI):bB[bo.call(bI)]||"object"},isPlainObject:function(bJ){if(!bJ||bD.type(bJ)!=="object"||bJ.nodeType||bD.isWindow(bJ)){return false}if(bJ.constructor&&!bj.call(bJ,"constructor")&&!bj.call(bJ.constructor.prototype,"isPrototypeOf")){return false}var bI;for(bI in bJ){}return bI===aw||bj.call(bJ,bI)},isEmptyObject:function(bJ){for(var bI in bJ){return false}return true},error:function(bI){throw bI},parseJSON:function(bI){if(typeof bI!=="string"||!bI){return null}bI=bD.trim(bI);if(bF.test(bI.replace(bG,"@").replace(bu,"]").replace(bz,""))){return aT.JSON&&aT.JSON.parse?aT.JSON.parse(bI):(new Function("return "+bI))()}else{bD.error("Invalid JSON: "+bI)}},parseXML:function(bI,bJ,bK){if(aT.DOMParser){bK=new DOMParser();bJ=bK.parseFromString(bI,"text/xml")}else{bJ=new ActiveXObject("Microsoft.XMLDOM");bJ.async="false";bJ.loadXML(bI)}bK=bJ.documentElement;if(!bK||!bK.nodeName||bK.nodeName==="parsererror"){bD.error("Invalid XML: "+bI)}return bJ},noop:function(){},globalEval:function(bI){if(bI&&bm.test(bI)){var bK=J.head||J.getElementsByTagName("head")[0]||J.documentElement,bJ=J.createElement("script");if(bD.support.scriptEval()){bJ.appendChild(J.createTextNode(bI))}else{bJ.text=bI}bK.insertBefore(bJ,bK.firstChild);bK.removeChild(bJ)}},nodeName:function(bJ,bI){return bJ.nodeName&&bJ.nodeName.toUpperCase()===bI.toUpperCase()},each:function(bP,bL,bO){var bN,bI=0,bJ=bP.length,bM=bJ===aw||bD.isFunction(bP);if(bO){if(bM){for(bN in bP){if(bL.apply(bP[bN],bO)===false){break}}}else{for(;bI<bJ;){if(bL.apply(bP[bI++],bO)===false){break}}}}else{if(bM){for(bN in bP){if(bL.call(bP[bN],bN,bP[bN])===false){break}}}else{for(var bK=bP[0];bI<bJ&&bL.call(bK,bI,bK)!==false;bK=bP[++bI]){}}}return bP},trim:bs?function(bI){return bI==null?"":bs.call(bI)}:function(bI){return bI==null?"":bI.toString().replace(bk,"").replace(e,"")},makeArray:function(bL,bJ){var bI=bJ||[];if(bL!=null){var bK=bD.type(bL);if(bL.length==null||bK==="string"||bK==="function"||bK==="regexp"||bD.isWindow(bL)){bt.call(bI,bL)}else{bD.merge(bI,bL)}}return bI},inArray:function(bK,bL){if(bL.indexOf){return bL.indexOf(bK)}for(var bI=0,bJ=bL.length;bI<bJ;bI++){if(bL[bI]===bK){return bI}}return-1},merge:function(bJ,bM){var bI=bJ.length,bL=0;if(typeof bM.length==="number"){for(var bK=bM.length;bL<bK;bL++){bJ[bI++]=bM[bL]}}else{while(bM[bL]!==aw){bJ[bI++]=bM[bL++]}}bJ.length=bI;return bJ},grep:function(bI,bN,bO){var bJ=[],bM;bO=!!bO;for(var bK=0,bL=bI.length;bK<bL;bK++){bM=!!bN(bI[bK],bK);if(bO!==bM){bJ.push(bI[bK])}}return bJ},map:function(bI,bN,bO){var bJ=[],bM;for(var bK=0,bL=bI.length;bK<bL;bK++){bM=bN(bI[bK],bK,bO);if(bM!=null){bJ[bJ.length]=bM}}return bJ.concat.apply([],bJ)},guid:1,proxy:function(bI,bK,bJ){if(arguments.length===2){if(typeof bK==="string"){bJ=bI;bI=bJ[bK];bK=aw}else{if(bK&&!bD.isFunction(bK)){bJ=bK;bK=aw}}}if(!bK&&bI){bK=function(){return bI.apply(bJ||this,arguments)}}if(bI){bK.guid=bI.guid=bI.guid||bK.guid||bD.guid++}return bK},access:function(bI,bQ,bO,bK,bN,bP){var bJ=bI.length;if(typeof bQ==="object"){for(var bL in bQ){bD.access(bI,bL,bQ[bL],bK,bN,bO)}return bI}if(bO!==aw){bK=!bP&&bK&&bD.isFunction(bO);for(var bM=0;bM<bJ;bM++){bN(bI[bM],bQ,bK?bO.call(bI[bM],bM,bN(bI[bM],bQ)):bO,bP)}return bI}return bJ?bN(bI[0],bQ):aw},now:function(){return(new Date()).getTime()},uaMatch:function(bJ){bJ=bJ.toLowerCase();var bI=by.exec(bJ)||bn.exec(bJ)||bl.exec(bJ)||bJ.indexOf("compatible")<0&&bx.exec(bJ)||[];return{browser:bI[1]||"",version:bI[2]||"0"}},sub:function(){function bK(bL,bM){return new bK.fn.init(bL,bM)}bD.extend(true,bK,this);bK.superclass=this;bK.fn=bK.prototype=this();bK.fn.constructor=bK;bK.subclass=this.subclass;bK.fn.init=function bI(bL,bM){if(bM&&bM instanceof bD&&!(bM instanceof bK)){bM=bK(bM)}return bD.fn.init.call(this,bL,bM,bJ)};bK.fn.init.prototype=bK.fn;var bJ=bK(J);return bK},browser:{}});bD.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bJ,bI){bB["[object "+bI+"]"]=bI.toLowerCase()});bA=bD.uaMatch(bv);if(bA.browser){bD.browser[bA.browser]=true;bD.browser.version=bA.version}if(bD.browser.webkit){bD.browser.safari=true}if(bw){bD.inArray=function(bI,bJ){return bw.call(bJ,bI)}}if(bm.test("\xA0")){bk=/^[\s\xA0]+/;e=/[\s\xA0]+$/}bC=bD(J);if(J.addEventListener){bi=function(){J.removeEventListener("DOMContentLoaded",bi,false);bD.ready()}}else{if(J.attachEvent){bi=function(){if(J.readyState==="complete"){J.detachEvent("onreadystatechange",bi);bD.ready()}}}}function bE(){if(bD.isReady){return}try{J.documentElement.doScroll("left")}catch(bI){setTimeout(bE,1);return}bD.ready()}return bD})();var f="then done fail isResolved isRejected promise".split(" "),aJ=[].slice;j.extend({_Deferred:function(){var bf=[],bg,bi,e,bh={done:function(){if(!e){var bo=arguments,bj,bm,bl,bk,bn;if(bg){bn=bg;bg=0}for(bj=0,bm=bo.length;bj<bm;bj++){bl=bo[bj];bk=j.type(bl);if(bk==="array"){bh.done.apply(bh,bl)}else{if(bk==="function"){bf.push(bl)}}}if(bn){bh.resolveWith(bn[0],bn[1])}}return this},resolveWith:function(bk,bj){if(!e&&!bg&&!bi){bj=bj||[];bi=1;try{while(bf[0]){bf.shift().apply(bk,bj)}}finally{bg=[bk,bj];bi=0}}return this},resolve:function(){bh.resolveWith(this,arguments);return this},isResolved:function(){return!!(bi||bg)},cancel:function(){e=1;bf=[];return this}};return bh},Deferred:function(bf){var e=j._Deferred(),bh=j._Deferred(),bg;j.extend(e,{then:function(bj,bi){e.done(bj).fail(bi);return this},fail:bh.done,rejectWith:bh.resolveWith,reject:bh.resolve,isRejected:bh.isResolved,promise:function(bj){if(bj==null){if(bg){return bg}bg=bj={}}var bi=f.length;while(bi--){bj[f[bi]]=e[f[bi]]}return bj}});e.done(bh.cancel).fail(e.cancel);delete e.cancel;if(bf){bf.call(e,e)}return e},when:function(e){var bg=arguments,bh=0,bk=bg.length,bj=bk,bf=bk<=1&&e&&j.isFunction(e.promise)?e:j.Deferred();function bi(bl){return function(bm){bg[bl]=arguments.length>1?aJ.call(arguments,0):bm;if(!(--bj)){bf.resolveWith(bf,aJ.call(bg,0))}}}if(bk>1){for(;bh<bk;bh++){if(bg[bh]&&j.isFunction(bg[bh].promise)){bg[bh].promise().then(bi(bh),bf.reject)}else{--bj}}if(!bj){bf.resolveWith(bf,bg)}}else{if(bf!==e){bf.resolveWith(bf,bk?[e]:[])}}return bf.promise()}});(function(){j.support={};var e=J.createElement("div");e.style.display="none";e.innerHTML="   <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var bn=e.getElementsByTagName("*"),bl=e.getElementsByTagName("a")[0],bm=J.createElement("select"),bf=bm.appendChild(J.createElement("option")),bk=e.getElementsByTagName("input")[0];if(!bn||!bn.length||!bl){return}j.support={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/red/.test(bl.getAttribute("style")),hrefNormalized:bl.getAttribute("href")==="/a",opacity:/^0.55$/.test(bl.style.opacity),cssFloat:!!bl.style.cssFloat,checkOn:bk.value==="on",optSelected:bf.selected,deleteExpando:true,optDisabled:false,checkClone:false,noCloneEvent:true,noCloneChecked:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true,reliableMarginRight:true};bk.checked=true;j.support.noCloneChecked=bk.cloneNode(true).checked;bm.disabled=true;j.support.optDisabled=!bf.disabled;var bg=null;j.support.scriptEval=function(){if(bg===null){var bp=J.documentElement,bq=J.createElement("script"),bs="script"+j.now();try{bq.appendChild(J.createTextNode("window."+bs+"=1;"))}catch(br){}bp.insertBefore(bq,bp.firstChild);if(aT[bs]){bg=true;delete aT[bs]}else{bg=false}bp.removeChild(bq)}return bg};try{delete e.test}catch(bi){j.support.deleteExpando=false}if(!e.addEventListener&&e.attachEvent&&e.fireEvent){e.attachEvent("onclick",function bo(){j.support.noCloneEvent=false;e.detachEvent("onclick",bo)});e.cloneNode(true).fireEvent("onclick")}e=J.createElement("div");e.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var bh=J.createDocumentFragment();bh.appendChild(e.firstChild);j.support.checkClone=bh.cloneNode(true).cloneNode(true).lastChild.checked;j(function(){var bp=J.createElement("div"),bq=J.getElementsByTagName("body")[0];if(!bq){return}bp.style.width=bp.style.paddingLeft="1px";bq.appendChild(bp);j.boxModel=j.support.boxModel=bp.offsetWidth===2;if("zoom"in bp.style){bp.style.display="inline";bp.style.zoom=1;j.support.inlineBlockNeedsLayout=bp.offsetWidth===2;bp.style.display="";bp.innerHTML="<div style='width:4px;'></div>";j.support.shrinkWrapBlocks=bp.offsetWidth!==2}bp.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>";var br=bp.getElementsByTagName("td");j.support.reliableHiddenOffsets=br[0].offsetHeight===0;br[0].style.display="";br[1].style.display="none";j.support.reliableHiddenOffsets=j.support.reliableHiddenOffsets&&br[0].offsetHeight===0;bp.innerHTML="";if(J.defaultView&&J.defaultView.getComputedStyle){bp.style.width="1px";bp.style.marginRight="0";j.support.reliableMarginRight=(parseInt(J.defaultView.getComputedStyle(bp,null).marginRight,10)||0)===0}bq.removeChild(bp).style.display="none";bp=br=null});var bj=function(bq){var bp=J.createElement("div");bq="on"+bq;if(!bp.attachEvent){return true}var br=(bq in bp);if(!br){bp.setAttribute(bq,"return;");br=typeof bp[bq]==="function"}return br};j.support.submitBubbles=bj("submit");j.support.changeBubbles=bj("change");e=bn=bl=null})();var C=/^(?:\{.*\}|\[.*\])$/;j.extend({cache:{},uuid:0,expando:"jQuery"+(j.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?j.cache[e[j.expando]]:e[j.expando];return!!e&&!aa(e)},data:function(bh,bf,bj,bi){if(!j.acceptData(bh)){return}var bm=j.expando,bl=typeof bf==="string",bk,bn=bh.nodeType,e=bn?j.cache:bh,bg=bn?bh[j.expando]:bh[j.expando]&&j.expando;if((!bg||(bi&&bg&&!e[bg][bm]))&&bl&&bj===aw){return}if(!bg){if(bn){bh[j.expando]=bg=++j.uuid}else{bg=j.expando}}if(!e[bg]){e[bg]={};if(!bn){e[bg].toJSON=j.noop}}if(typeof bf==="object"||typeof bf==="function"){if(bi){e[bg][bm]=j.extend(e[bg][bm],bf)}else{e[bg]=j.extend(e[bg],bf)}}bk=e[bg];if(bi){if(!bk[bm]){bk[bm]={}}bk=bk[bm]}if(bj!==aw){bk[bf]=bj}if(bf==="events"&&!bk[bf]){return bk[bm]&&bk[bm].events}return bl?bk[bf]:bk},removeData:function(bi,bg,bj){if(!j.acceptData(bi)){return}var bl=j.expando,bm=bi.nodeType,bf=bm?j.cache:bi,bh=bm?bi[j.expando]:j.expando;if(!bf[bh]){return}if(bg){var bk=bj?bf[bh][bl]:bf[bh];if(bk){delete bk[bg];if(!aa(bk)){return}}}if(bj){delete bf[bh][bl];if(!aa(bf[bh])){return}}var e=bf[bh][bl];if(j.support.deleteExpando||bf!=aT){delete bf[bh]}else{bf[bh]=null}if(e){bf[bh]={};if(!bm){bf[bh].toJSON=j.noop}bf[bh][bl]=e}else{if(bm){if(j.support.deleteExpando){delete bi[j.expando]}else{if(bi.removeAttribute){bi.removeAttribute(j.expando)}else{bi[j.expando]=null}}}}},_data:function(e,bg,bf){return j.data(e,bg,bf,true)},acceptData:function(bf){if(bf.nodeName){var e=j.noData[bf.nodeName.toLowerCase()];if(e){return!(e===true||bf.getAttribute("classid")!==e)}}return true}});j.fn.extend({data:function(e,bg){var bf=null;if(typeof e==="undefined"){if(this.length){bf=j.data(this[0]);if(this[0].nodeType===1){var bi=this[0].attributes,bk;for(var bl=0,bj=bi.length;bl<bj;bl++){bk=bi[bl].name;if(bk.indexOf("data-")===0){bk=bk.substr(5);Z(this[0],bk,bf[bk])}}}}return bf}else{if(typeof e==="object"){return this.each(function(){j.data(this,e)})}}var bh=e.split(".");bh[1]=bh[1]?"."+bh[1]:"";if(bg===aw){bf=this.triggerHandler("getData"+bh[1]+"!",[bh[0]]);if(bf===aw&&this.length){bf=j.data(this[0],e);bf=Z(this[0],e,bf)}return bf===aw&&bh[1]?this.data(bh[0]):bf}else{return this.each(function(){var bn=j(this),bm=[bh[0],bg];bn.triggerHandler("setData"+bh[1]+"!",bm);j.data(this,e,bg);bn.triggerHandler("changeData"+bh[1]+"!",bm)})}},removeData:function(e){return this.each(function(){j.removeData(this,e)})}});function Z(bf,e,bg){if(bg===aw&&bf.nodeType===1){bg=bf.getAttribute("data-"+e);if(typeof bg==="string"){try{bg=bg==="true"?true:bg==="false"?false:bg==="null"?null:!j.isNaN(bg)?parseFloat(bg):C.test(bg)?j.parseJSON(bg):bg}catch(bh){}j.data(bf,e,bg)}else{bg=aw}}return bg}function aa(bf){for(var e in bf){if(e!=="toJSON"){return false}}return true}j.extend({queue:function(bf,e,bh){if(!bf){return}e=(e||"fx")+"queue";var bg=j._data(bf,e);if(!bh){return bg||[]}if(!bg||j.isArray(bh)){bg=j._data(bf,e,j.makeArray(bh))}else{bg.push(bh)}return bg},dequeue:function(bh,bg){bg=bg||"fx";var e=j.queue(bh,bg),bf=e.shift();if(bf==="inprogress"){bf=e.shift()}if(bf){if(bg==="fx"){e.unshift("inprogress")}bf.call(bh,function(){j.dequeue(bh,bg)})}if(!e.length){j.removeData(bh,bg+"queue",true)}}});j.fn.extend({queue:function(e,bf){if(typeof e!=="string"){bf=e;e="fx"}if(bf===aw){return j.queue(this[0],e)}return this.each(function(bh){var bg=j.queue(this,e,bf);if(e==="fx"&&bg[0]!=="inprogress"){j.dequeue(this,e)}})},dequeue:function(e){return this.each(function(){j.dequeue(this,e)})},delay:function(bf,e){bf=j.fx?j.fx.speeds[bf]||bf:bf;e=e||"fx";return this.queue(e,function(){var bg=this;setTimeout(function(){j.dequeue(bg,e)},bf)})},clearQueue:function(e){return this.queue(e||"fx",[])}});var a6=/[\n\t\r]/g,ae=/\s+/,bb=/\r/g,R=/^(?:href|src|style)$/,ah=/^(?:button|input)$/i,w=/^(?:button|input|object|select|textarea)$/i,z=/^a(?:rea)?$/i,a=/^(?:radio|checkbox)$/i;j.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};j.fn.extend({attr:function(e,bf){return j.access(this,e,bf,true,j.attr)},removeAttr:function(e,bf){return this.each(function(){j.attr(this,e,"");if(this.nodeType===1){this.removeAttribute(e)}})},addClass:function(bl){if(j.isFunction(bl)){return this.each(function(bo){var bn=j(this);bn.addClass(bl.call(this,bo,bn.attr("class")))})}if(bl&&typeof bl==="string"){var e=(bl||"").split(ae);for(var bh=0,bg=this.length;bh<bg;bh++){var bf=this[bh];if(bf.nodeType===1){if(!bf.className){bf.className=bl}else{var bi=" "+bf.className+" ",bk=bf.className;for(var bj=0,bm=e.length;bj<bm;bj++){if(bi.indexOf(" "+e[bj]+" ")<0){bk+=" "+e[bj]}}bf.className=j.trim(bk)}}}}return this},removeClass:function(bf){if(j.isFunction(bf)){return this.each(function(bn){var bm=j(this);bm.removeClass(bf.call(this,bn,bm.attr("class")))})}if((bf&&typeof bf==="string")||bf===aw){var bg=(bf||"").split(ae);for(var bk=0,bj=this.length;bk<bj;bk++){var e=this[bk];if(e.nodeType===1&&e.className){if(bf){var bl=(" "+e.className+" ").replace(a6," ");for(var bh=0,bi=bg.length;bh<bi;bh++){bl=bl.replace(" "+bg[bh]+" "," ")}e.className=j.trim(bl)}else{e.className=""}}}}return this},toggleClass:function(bh,bf){var bg=typeof bh,e=typeof bf==="boolean";if(j.isFunction(bh)){return this.each(function(bj){var bi=j(this);bi.toggleClass(bh.call(this,bj,bi.attr("class"),bf),bf)})}return this.each(function(){if(bg==="string"){var bi,bm=0,bl=j(this),bj=bf,bk=bh.split(ae);while((bi=bk[bm++])){bj=e?bj:!bl.hasClass(bi);bl[bj?"addClass":"removeClass"](bi)}}else{if(bg==="undefined"||bg==="boolean"){if(this.className){j._data(this,"__className__",this.className)}this.className=this.className||bh===false?"":j._data(this,"__className__")||""}}})},hasClass:function(e){var bh=" "+e+" ";for(var bg=0,bf=this.length;bg<bf;bg++){if((" "+this[bg].className+" ").replace(a6," ").indexOf(bh)>-1){return true}}return false},val:function(bm){if(!arguments.length){var bg=this[0];if(bg){if(j.nodeName(bg,"option")){var bf=bg.attributes.value;return!bf||bf.specified?bg.value:bg.text}if(j.nodeName(bg,"select")){var bk=bg.selectedIndex,bn=[],bo=bg.options,bj=bg.type==="select-one";if(bk<0){return null}for(var bh=bj?bk:0,bl=bj?bk+1:bo.length;bh<bl;bh++){var bi=bo[bh];if(bi.selected&&(j.support.optDisabled?!bi.disabled:bi.getAttribute("disabled")===null)&&(!bi.parentNode.disabled||!j.nodeName(bi.parentNode,"optgroup"))){bm=j(bi).val();if(bj){return bm}bn.push(bm)}}if(bj&&!bn.length&&bo.length){return j(bo[bk]).val()}return bn}if(a.test(bg.type)&&!j.support.checkOn){return bg.getAttribute("value")===null?"on":bg.value}return(bg.value||"").replace(bb,"")}return aw}var e=j.isFunction(bm);return this.each(function(br){var bq=j(this),bs=bm;if(this.nodeType!==1){return}if(e){bs=bm.call(this,br,bq.val())}if(bs==null){bs=""}else{if(typeof bs==="number"){bs+=""}else{if(j.isArray(bs)){bs=j.map(bs,function(bt){return bt==null?"":bt+""})}}}if(j.isArray(bs)&&a.test(this.type)){this.checked=j.inArray(bq.val(),bs)>=0}else{if(j.nodeName(this,"select")){var bp=j.makeArray(bs);j("option",this).each(function(){this.selected=j.inArray(j(this).val(),bp)>=0});if(!bp.length){this.selectedIndex=-1}}else{this.value=bs}}})}});j.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(bf,e,bk,bn){if(!bf||bf.nodeType===3||bf.nodeType===8||bf.nodeType===2){return aw}if(bn&&e in j.attrFn){return j(bf)[e](bk)}var bg=bf.nodeType!==1||!j.isXMLDoc(bf),bj=bk!==aw;e=bg&&j.props[e]||e;if(bf.nodeType===1){var bi=R.test(e);if(e==="selected"&&!j.support.optSelected){var bl=bf.parentNode;if(bl){bl.selectedIndex;if(bl.parentNode){bl.parentNode.selectedIndex}}}if((e in bf||bf[e]!==aw)&&bg&&!bi){if(bj){if(e==="type"&&ah.test(bf.nodeName)&&bf.parentNode){j.error("type property can't be changed")}if(bk===null){if(bf.nodeType===1){bf.removeAttribute(e)}}else{bf[e]=bk}}if(j.nodeName(bf,"form")&&bf.getAttributeNode(e)){return bf.getAttributeNode(e).nodeValue}if(e==="tabIndex"){var bm=bf.getAttributeNode("tabIndex");return bm&&bm.specified?bm.value:w.test(bf.nodeName)||z.test(bf.nodeName)&&bf.href?0:aw}return bf[e]}if(!j.support.style&&bg&&e==="style"){if(bj){bf.style.cssText=""+bk}return bf.style.cssText}if(bj){bf.setAttribute(e,""+bk)}if(!bf.attributes[e]&&(bf.hasAttribute&&!bf.hasAttribute(e))){return aw}var bh=!j.support.hrefNormalized&&bg&&bi?bf.getAttribute(e,2):bf.getAttribute(e);return bh===null?aw:bh}if(bj){bf[e]=bk}return bf[e]}});var a2=/\.(.*)$/,E=/^(?:textarea|input|select)$/i,U=/\./g,F=/ /g,aZ=/[^\w\s.|`]/g,be=function(e){return e.replace(aZ,"\\$&")};j.event={add:function(bf,bj,bq,bh){if(bf.nodeType===3||bf.nodeType===8){return}try{if(j.isWindow(bf)&&(bf!==aT&&!bf.frameElement)){bf=aT}}catch(bk){}if(bq===false){bq=a7}else{if(!bq){return}}var bs,bo;if(bq.handler){bs=bq;bq=bs.handler}if(!bq.guid){bq.guid=j.guid++}var bl=j._data(bf);if(!bl){return}var bp=bl.events,bi=bl.handle;if(!bp){bl.events=bp={}}if(!bi){bl.handle=bi=function(bt){return typeof j!=="undefined"&&j.event.triggered!==bt.type?j.event.handle.apply(bi.elem,arguments):aw}}bi.elem=bf;bj=bj.split(" ");var bn,bg=0,br;while((bn=bj[bg++])){bo=bs?j.extend({},bs):{handler:bq,data:bh};if(bn.indexOf(".")>-1){br=bn.split(".");bn=br.shift();bo.namespace=br.slice(0).sort().join(".")}else{br=[];bo.namespace=""}bo.type=bn;if(!bo.guid){bo.guid=bq.guid}var e=bp[bn],bm=j.event.special[bn]||{};if(!e){e=bp[bn]=[];if(!bm.setup||bm.setup.call(bf,bh,br,bi)===false){if(bf.addEventListener){bf.addEventListener(bn,bi,false)}else{if(bf.attachEvent){bf.attachEvent("on"+bn,bi)}}}}if(bm.add){bm.add.call(bf,bo);if(!bo.handler.guid){bo.handler.guid=bq.guid}}e.push(bo);j.event.global[bn]=true}bf=null},global:{},remove:function(br,bk,e,bi){if(br.nodeType===3||br.nodeType===8){return}if(e===false){e=a7}var bw,bh,bj,bo,bp=0,bf,bm,bl,bg,bn,bt,bu,bq=j.hasData(br)&&j._data(br),bv=bq&&bq.events;if(!bq||!bv){return}if(bk&&bk.type){e=bk.handler;bk=bk.type}if(!bk||typeof bk==="string"&&bk.charAt(0)==="."){bk=bk||"";for(bh in bv){j.event.remove(br,bh+bk)}return}bk=bk.split(" ");while((bh=bk[bp++])){bu=bh;bt=null;bf=bh.indexOf(".")<0;bm=[];if(!bf){bm=bh.split(".");bh=bm.shift();bl=new RegExp("(^|\\.)"+j.map(bm.slice(0).sort(),be).join("\\.(?:.*\\.)?")+"(\\.|$)")}bn=bv[bh];if(!bn){continue}if(!e){for(bo=0;bo<bn.length;bo++){bt=bn[bo];if(bf||bl.test(bt.namespace)){j.event.remove(br,bu,bt.handler,bo);bn.splice(bo--,1)}}continue}bg=j.event.special[bh]||{};for(bo=bi||0;bo<bn.length;bo++){bt=bn[bo];if(e.guid===bt.guid){if(bf||bl.test(bt.namespace)){if(bi==null){bn.splice(bo--,1)}if(bg.remove){bg.remove.call(br,bt)}}if(bi!=null){break}}}if(bn.length===0||bi!=null&&bn.length===1){if(!bg.teardown||bg.teardown.call(br,bm)===false){j.removeEvent(br,bh,bq.handle)}bw=null;delete bv[bh]}}if(j.isEmptyObject(bv)){var bs=bq.handle;if(bs){bs.elem=null}delete bq.events;delete bq.handle;if(j.isEmptyObject(bq)){j.removeData(br,aw,true)}}},trigger:function(bn,e,bp){var bi=bn.type||bn,br=arguments[3];if(!br){bn=typeof bn==="object"?bn[j.expando]?bn:j.extend(j.Event(bi),bn):j.Event(bi);if(bi.indexOf("!")>=0){bn.type=bi=bi.slice(0,-1);bn.exclusive=true}if(!bp){bn.stopPropagation();if(j.event.global[bi]){j.each(j.cache,function(){var bt=j.expando,bs=this[bt];if(bs&&bs.events&&bs.events[bi]){j.event.trigger(bn,e,bs.handle.elem)}})}}if(!bp||bp.nodeType===3||bp.nodeType===8){return aw}bn.result=aw;bn.target=bp;e=j.makeArray(e);e.unshift(bn)}bn.currentTarget=bp;var bf=j._data(bp,"handle");if(bf){bf.apply(bp,e)}var bk=bp.parentNode||bp.ownerDocument;try{if(!(bp&&bp.nodeName&&j.noData[bp.nodeName.toLowerCase()])){if(bp["on"+bi]&&bp["on"+bi].apply(bp,e)===false){bn.result=false;bn.preventDefault()}}}catch(bj){}if(!bn.isPropagationStopped()&&bk){j.event.trigger(bn,e,bk,true)}else{if(!bn.isDefaultPrevented()){var bo,bg=bn.target,bm=bi.replace(a2,""),bl=j.nodeName(bg,"a")&&bm==="click",bh=j.event.special[bm]||{};if((!bh._default||bh._default.call(bp,bn)===false)&&!bl&&!(bg&&bg.nodeName&&j.noData[bg.nodeName.toLowerCase()])){try{if(bg[bm]){bo=bg["on"+bm];if(bo){bg["on"+bm]=null}j.event.triggered=bn.type;bg[bm]()}}catch(bq){}if(bo){bg["on"+bm]=bo}j.event.triggered=aw}}}},handle:function(e){var bn,bg,bf,bp,bo,bj=[],bl=j.makeArray(arguments);e=bl[0]=j.event.fix(e||aT.event);e.currentTarget=this;bn=e.type.indexOf(".")<0&&!e.exclusive;if(!bn){bf=e.type.split(".");e.type=bf.shift();bj=bf.slice(0).sort();bp=new RegExp("(^|\\.)"+bj.join("\\.(?:.*\\.)?")+"(\\.|$)")}e.namespace=e.namespace||bj.join(".");bo=j._data(this,"events");bg=(bo||{})[e.type];if(bo&&bg){bg=bg.slice(0);for(var bi=0,bh=bg.length;bi<bh;bi++){var bm=bg[bi];if(bn||bp.test(bm.namespace)){e.handler=bm.handler;e.data=bm.data;e.handleObj=bm;var bk=bm.handler.apply(this,bl);if(bk!==aw){e.result=bk;if(bk===false){e.preventDefault();e.stopPropagation()}}if(e.isImmediatePropagationStopped()){break}}}}return e.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(bj){if(bj[j.expando]){return bj}var bh=bj;bj=j.Event(bh);for(var bi=this.props.length,bf;bi;){bf=this.props[--bi];bj[bf]=bh[bf]}if(!bj.target){bj.target=bj.srcElement||J}if(bj.target.nodeType===3){bj.target=bj.target.parentNode}if(!bj.relatedTarget&&bj.fromElement){bj.relatedTarget=bj.fromElement===bj.target?bj.toElement:bj.fromElement}if(bj.pageX==null&&bj.clientX!=null){var e=J.documentElement,bg=J.body;bj.pageX=bj.clientX+(e&&e.scrollLeft||bg&&bg.scrollLeft||0)-(e&&e.clientLeft||bg&&bg.clientLeft||0);bj.pageY=bj.clientY+(e&&e.scrollTop||bg&&bg.scrollTop||0)-(e&&e.clientTop||bg&&bg.clientTop||0)}if(bj.which==null&&(bj.charCode!=null||bj.keyCode!=null)){bj.which=bj.charCode!=null?bj.charCode:bj.keyCode}if(!bj.metaKey&&bj.ctrlKey){bj.metaKey=bj.ctrlKey}if(!bj.which&&bj.button!==aw){bj.which=(bj.button&1?1:(bj.button&2?3:(bj.button&4?2:0)))}return bj},guid:100000000,proxy:j.proxy,special:{ready:{setup:j.bindReady,teardown:j.noop},live:{add:function(e){j.event.add(this,a4(e.origType,e.selector),j.extend({},e,{handler:am,guid:e.handler.guid}))},remove:function(e){j.event.remove(this,a4(e.origType,e.selector),e)}},beforeunload:{setup:function(bf,e,bg){if(j.isWindow(this)){this.onbeforeunload=bg}},teardown:function(bf,e){if(this.onbeforeunload===e){this.onbeforeunload=null}}}}};j.removeEvent=J.removeEventListener?function(e,bg,bf){if(e.removeEventListener){e.removeEventListener(bg,bf,false)}}:function(e,bg,bf){if(e.detachEvent){e.detachEvent("on"+bg,bf)}};j.Event=function(e){if(!this.preventDefault){return new j.Event(e)}if(e&&e.type){this.originalEvent=e;this.type=e.type;this.isDefaultPrevented=(e.defaultPrevented||e.returnValue===false||e.getPreventDefault&&e.getPreventDefault())?aE:a7}else{this.type=e}this.timeStamp=j.now();this[j.expando]=true};function a7(){return false}function aE(){return true}j.Event.prototype={preventDefault:function(){this.isDefaultPrevented=aE;var e=this.originalEvent;if(!e){return}if(e.preventDefault){e.preventDefault()}else{e.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=aE;var e=this.originalEvent;if(!e){return}if(e.stopPropagation){e.stopPropagation()}e.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=aE;this.stopPropagation()},isDefaultPrevented:a7,isPropagationStopped:a7,isImmediatePropagationStopped:a7};var aQ=function(e){var bg=e.relatedTarget;try{if(bg&&bg!==J&&!bg.parentNode){return}while(bg&&bg!==this){bg=bg.parentNode}if(bg!==this){e.type=e.data;j.event.handle.apply(this,arguments)}}catch(bf){}},aY=function(e){e.type=e.data;j.event.handle.apply(this,arguments)};j.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(bf,e){j.event.special[bf]={setup:function(bg){j.event.add(this,e,bg&&bg.selector?aY:aQ,bf)},teardown:function(bg){j.event.remove(this,e,bg&&bg.selector?aY:aQ)}}});if(!j.support.submitBubbles){j.event.special.submit={setup:function(bf,e){if(this.nodeName&&this.nodeName.toLowerCase()!=="form"){j.event.add(this,"click.specialSubmit",function(bi){var bh=bi.target,bg=bh.type;if((bg==="submit"||bg==="image")&&j(bh).closest("form").length){n("submit",this,arguments)}});j.event.add(this,"keypress.specialSubmit",function(bi){var bh=bi.target,bg=bh.type;if((bg==="text"||bg==="password")&&j(bh).closest("form").length&&bi.keyCode===13){n("submit",this,arguments)}})}else{return false}},teardown:function(e){j.event.remove(this,".specialSubmit")}}}if(!j.support.changeBubbles){var a9,h=function(e){var bg=e.type,bf=e.value;if(bg==="radio"||bg==="checkbox"){bf=e.checked}else{if(bg==="select-multiple"){bf=e.selectedIndex>-1?j.map(e.options,function(bh){return bh.selected}).join("-"):""}else{if(e.nodeName.toLowerCase()==="select"){bf=e.selectedIndex}}}return bf},aR=function aR(bg){var e=bg.target,bf,bh;if(!E.test(e.nodeName)||e.readOnly){return}bf=j._data(e,"_change_data");bh=h(e);if(bg.type!=="focusout"||e.type!=="radio"){j._data(e,"_change_data",bh)}if(bf===aw||bh===bf){return}if(bf!=null||bh){bg.type="change";bg.liveFired=aw;j.event.trigger(bg,arguments[1],e)}};j.event.special.change={filters:{focusout:aR,beforedeactivate:aR,click:function(bf){var e=bf.target,bg=e.type;if(bg==="radio"||bg==="checkbox"||e.nodeName.toLowerCase()==="select"){aR.call(this,bf)}},keydown:function(bf){var e=bf.target,bg=e.type;if((bf.keyCode===13&&e.nodeName.toLowerCase()!=="textarea")||(bf.keyCode===32&&(bg==="checkbox"||bg==="radio"))||bg==="select-multiple"){aR.call(this,bf)}},beforeactivate:function(bf){var e=bf.target;j._data(e,"_change_data",h(e))}},setup:function(bf,e){if(this.type==="file"){return false}for(var bg in a9){j.event.add(this,bg+".specialChange",a9[bg])}return E.test(this.nodeName)},teardown:function(e){j.event.remove(this,".specialChange");return E.test(this.nodeName)}};a9=j.event.special.change.filters;a9.focus=a9.beforeactivate}function n(bf,bh,e){var bg=j.extend({},e[0]);bg.type=bf;bg.originalEvent={};bg.liveFired=aw;j.event.handle.call(bh,bg);if(bg.isDefaultPrevented()){e[0].preventDefault()}}if(J.addEventListener){j.each({focus:"focusin",blur:"focusout"},function(bh,e){var bf=0;j.event.special[e]={setup:function(){if(bf++===0){J.addEventListener(bh,bg,true)}},teardown:function(){if(--bf===0){J.removeEventListener(bh,bg,true)}}};function bg(bi){var bj=j.event.fix(bi);bj.type=e;bj.originalEvent={};j.event.trigger(bj,null,bj.target);if(bj.isDefaultPrevented()){bi.preventDefault()}}})}j.each(["bind","one"],function(bf,e){j.fn[e]=function(bm,bg,bl){if(typeof bm==="object"){for(var bj in bm){this[e](bj,bg,bm[bj],bl)}return this}if(j.isFunction(bg)||bg===false){bl=bg;bg=aw}var bk=e==="one"?j.proxy(bl,function(bn){j(this).unbind(bn,bk);return bl.apply(this,arguments)}):bl;if(bm==="unload"&&e!=="one"){this.one(bm,bg,bl)}else{for(var bi=0,bh=this.length;bi<bh;bi++){j.event.add(this[bi],bm,bk,bg)}}return this}});j.fn.extend({unbind:function(bg,bf){if(typeof bg==="object"&&!bg.preventDefault){for(var e in bg){this.unbind(e,bg[e])}}else{for(var bi=0,bh=this.length;bi<bh;bi++){j.event.remove(this[bi],bg,bf)}}return this},delegate:function(e,bf,bh,bg){return this.live(bf,bh,bg,e)},undelegate:function(bg,e,bf){if(arguments.length===0){return this.unbind("live")}else{return this.die(e,null,bf,bg)}},trigger:function(e,bf){return this.each(function(){j.event.trigger(e,bf,this)})},triggerHandler:function(bg,bf){if(this[0]){var e=j.Event(bg);e.preventDefault();e.stopPropagation();j.event.trigger(e,bf,this[0]);return e.result}},toggle:function(bf){var bg=arguments,e=1;while(e<bg.length){j.proxy(bf,bg[e++])}return this.click(j.proxy(bf,function(bh){var bi=(j._data(this,"lastToggle"+bf.guid)||0)%e;j._data(this,"lastToggle"+bf.guid,bi+1);bh.preventDefault();return bg[bi].apply(this,arguments)||false}))},hover:function(e,bf){return this.mouseenter(e).mouseleave(bf||e)}});var aB={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};j.each(["live","die"],function(bf,e){j.fn[e]=function(br,bo,bt,bk){var bs,bp=0,bq,bj,bh,bm=bk||this.selector,bi=bk?this:j(this.context);if(typeof br==="object"&&!br.preventDefault){for(var bg in br){bi[e](bg,bo,br[bg],bm)}return this}if(j.isFunction(bo)){bt=bo;bo=aw}br=(br||"").split(" ");while((bs=br[bp++])!=null){bq=a2.exec(bs);bj="";if(bq){bj=bq[0];bs=bs.replace(a2,"")}if(bs==="hover"){br.push("mouseenter"+bj,"mouseleave"+bj);continue}bh=bs;if(bs==="focus"||bs==="blur"){br.push(aB[bs]+bj);bs=bs+bj}else{bs=(aB[bs]||bs)+bj}if(e==="live"){for(var bn=0,bl=bi.length;bn<bl;bn++){j.event.add(bi[bn],"live."+a4(bs,bm),{data:bo,selector:bm,handler:bt,origType:bs,origHandler:bt,preType:bh})}}else{bi.unbind("live."+a4(bs,bm),bt)}}return this}});function am(bm){var bi,bv,bs,bf,br,bn,bj,bl,bk,bq,bh,bg,bp,bo=[],e=[],bt=j._data(this,"events");if(bm.liveFired===this||!bt||!bt.live||bm.target.disabled||bm.button&&bm.type==="click"){return}if(bm.namespace){bg=new RegExp("(^|\\.)"+bm.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}bm.liveFired=this;var bu=bt.live.slice(0);for(bj=0;bj<bu.length;bj++){br=bu[bj];if(br.origType.replace(a2,"")===bm.type){e.push(br.selector)}else{bu.splice(bj--,1)}}bf=j(bm.target).closest(e,bm.currentTarget);for(bl=0,bk=bf.length;bl<bk;bl++){bh=bf[bl];for(bj=0;bj<bu.length;bj++){br=bu[bj];if(bh.selector===br.selector&&(!bg||bg.test(br.namespace))&&!bh.elem.disabled){bn=bh.elem;bs=null;if(br.preType==="mouseenter"||br.preType==="mouseleave"){bm.type=br.preType;bs=j(bm.relatedTarget).closest(br.selector)[0]}if(!bs||bs!==bn){bo.push({elem:bn,handleObj:br,level:bh.level})}}}}for(bl=0,bk=bo.length;bl<bk;bl++){bf=bo[bl];if(bv&&bf.level>bv){break}bm.currentTarget=bf.elem;bm.data=bf.handleObj.data;bm.handleObj=bf.handleObj;bp=bf.handleObj.origHandler.apply(bf.elem,arguments);if(bp===false||bm.isPropagationStopped()){bv=bf.level;if(bp===false){bi=false}if(bm.isImmediatePropagationStopped()){break}}}return bi}function a4(bf,e){return(bf&&bf!=="*"?bf+".":"")+e.replace(U,"`").replace(F,"&")}j.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(bf,e){j.fn[e]=function(bh,bg){if(bg==null){bg=bh;bh=null}return arguments.length>0?this.bind(e,bh,bg):this.trigger(e)};if(j.attrFn){j.attrFn[e]=true}});(function(){var bl=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,bo=0,br=Object.prototype.toString,bi=false,bh=true,bp=/\\/g,bw=/\W/;[0,0].sort(function(){bh=false;return 0});var bf=function(bx,bE,bz,bB){bz=bz||[];bE=bE||J;var bF=bE;if(bE.nodeType!==1&&bE.nodeType!==9){return[]}if(!bx||typeof bx!=="string"){return bz}var by,bL,bJ,bH,bD,bG,bC,bI,bN=true,bM=bf.isXML(bE),bA=[],bK=bx;do{bl.exec("");by=bl.exec(bK);if(by){bK=by[3];bA.push(by[1]);if(by[2]){bH=by[3];break}}}while(by);if(bA.length>1&&bj.exec(bx)){if(bA.length===2&&bm.relative[bA[0]]){bL=bs(bA[0]+bA[1],bE)}else{bL=bm.relative[bA[0]]?[bE]:bf(bA.shift(),bE);while(bA.length){bx=bA.shift();if(bm.relative[bx]){bx+=bA.shift()}bL=bs(bx,bL)}}}else{if(!bB&&bA.length>1&&bE.nodeType===9&&!bM&&bm.match.ID.test(bA[0])&&!bm.match.ID.test(bA[bA.length-1])){bD=bf.find(bA.shift(),bE,bM);bE=bD.expr?bf.filter(bD.expr,bD.set)[0]:bD.set[0]}if(bE){bD=bB?{expr:bA.pop(),set:bn(bB)}:bf.find(bA.pop(),bA.length===1&&(bA[0]==="~"||bA[0]==="+")&&bE.parentNode?bE.parentNode:bE,bM);bL=bD.expr?bf.filter(bD.expr,bD.set):bD.set;if(bA.length>0){bJ=bn(bL)}else{bN=false}while(bA.length){bG=bA.pop();bC=bG;if(!bm.relative[bG]){bG=""}else{bC=bA.pop()}if(bC==null){bC=bE}bm.relative[bG](bJ,bC,bM)}}else{bJ=bA=[]}}if(!bJ){bJ=bL}if(!bJ){bf.error(bG||bx)}if(br.call(bJ)==="[object Array]"){if(!bN){bz.push.apply(bz,bJ)}else{if(bE&&bE.nodeType===1){for(bI=0;bJ[bI]!=null;bI++){if(bJ[bI]&&(bJ[bI]===true||bJ[bI].nodeType===1&&bf.contains(bE,bJ[bI]))){bz.push(bL[bI])}}}else{for(bI=0;bJ[bI]!=null;bI++){if(bJ[bI]&&bJ[bI].nodeType===1){bz.push(bL[bI])}}}}}else{bn(bJ,bz)}if(bH){bf(bH,bF,bz,bB);bf.uniqueSort(bz)}return bz};bf.uniqueSort=function(bx){if(bq){bi=bh;bx.sort(bq);if(bi){for(var by=1;by<bx.length;by++){if(bx[by]===bx[by-1]){bx.splice(by--,1)}}}}return bx};bf.matches=function(bx,by){return bf(bx,null,null,by)};bf.matchesSelector=function(bx,by){return bf(by,null,null,[bx]).length>0};bf.find=function(bC,bx,bD){var bB;if(!bC){return[]}for(var by=0,bF=bm.order.length;by<bF;by++){var bz,bA=bm.order[by];if((bz=bm.leftMatch[bA].exec(bC))){var bE=bz[1];bz.splice(1,1);if(bE.substr(bE.length-1)!=="\\"){bz[1]=(bz[1]||"").replace(bp,"");bB=bm.find[bA](bz,bx,bD);if(bB!=null){bC=bC.replace(bm.match[bA],"");break}}}}if(!bB){bB=typeof bx.getElementsByTagName!=="undefined"?bx.getElementsByTagName("*"):[]}return{set:bB,expr:bC}};bf.filter=function(bF,bx,bM,bB){var bH,bL,by=bF,bJ=[],bz=bx,bD=bx&&bx[0]&&bf.isXML(bx[0]);while(bF&&bx.length){for(var bE in bm.filter){if((bH=bm.leftMatch[bE].exec(bF))!=null&&bH[2]){var bA,bN,bG=bm.filter[bE],bK=bH[1];bL=false;bH.splice(1,1);if(bK.substr(bK.length-1)==="\\"){continue}if(bz===bJ){bJ=[]}if(bm.preFilter[bE]){bH=bm.preFilter[bE](bH,bz,bM,bJ,bB,bD);if(!bH){bL=bA=true}else{if(bH===true){continue}}}if(bH){for(var bC=0;(bN=bz[bC])!=null;bC++){if(bN){bA=bG(bN,bH,bC,bz);var bI=bB^!!bA;if(bM&&bA!=null){if(bI){bL=true}else{bz[bC]=false}}else{if(bI){bJ.push(bN);bL=true}}}}}if(bA!==aw){if(!bM){bz=bJ}bF=bF.replace(bm.match[bE],"");if(!bL){return[]}break}}}if(bF===by){if(bL==null){bf.error(bF)}else{break}}by=bF}return bz};bf.error=function(bx){throw"Syntax error, unrecognized expression: "+bx};var bm=bf.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(bx){return bx.getAttribute("href")},type:function(bx){return bx.getAttribute("type")}},relative:{"+":function(bC,bE){var by=typeof bE==="string",bB=by&&!bw.test(bE),bD=by&&!bB;if(bB){bE=bE.toLowerCase()}for(var bA=0,bz=bC.length,bx;bA<bz;bA++){if((bx=bC[bA])){while((bx=bx.previousSibling)&&bx.nodeType!==1){}bC[bA]=bD||bx&&bx.nodeName.toLowerCase()===bE?bx||false:bx===bE}}if(bD){bf.filter(bE,bC,true)}},">":function(bD,bz){var by,bB=typeof bz==="string",bx=0,bA=bD.length;if(bB&&!bw.test(bz)){bz=bz.toLowerCase();for(;bx<bA;bx++){by=bD[bx];if(by){var bC=by.parentNode;bD[bx]=bC.nodeName.toLowerCase()===bz?bC:false}}}else{for(;bx<bA;bx++){by=bD[bx];if(by){bD[bx]=bB?by.parentNode:by.parentNode===bz}}if(bB){bf.filter(bz,bD,true)}}},"":function(bx,bz,bA){var bB,bC=bo++,by=bt;if(typeof bz==="string"&&!bw.test(bz)){bz=bz.toLowerCase();bB=bz;by=bu}by("parentNode",bz,bC,bx,bB,bA)},"~":function(bx,bz,bA){var bB,bC=bo++,by=bt;if(typeof bz==="string"&&!bw.test(bz)){bz=bz.toLowerCase();bB=bz;by=bu}by("previousSibling",bz,bC,bx,bB,bA)}},find:{ID:function(bx,by,bA){if(typeof by.getElementById!=="undefined"&&!bA){var bz=by.getElementById(bx[1]);return bz&&bz.parentNode?[bz]:[]}},NAME:function(bz,bB){if(typeof bB.getElementsByName!=="undefined"){var bx=[],bC=bB.getElementsByName(bz[1]);for(var bA=0,by=bC.length;bA<by;bA++){if(bC[bA].getAttribute("name")===bz[1]){bx.push(bC[bA])}}return bx.length===0?null:bx}},TAG:function(bx,by){if(typeof by.getElementsByTagName!=="undefined"){return by.getElementsByTagName(bx[1])}}},preFilter:{CLASS:function(by,bC,bE,bB,bA,bD){by=" "+by[1].replace(bp,"")+" ";if(bD){return by}for(var bx=0,bz;(bz=bC[bx])!=null;bx++){if(bz){if(bA^(bz.className&&(" "+bz.className+" ").replace(/[\t\n\r]/g," ").indexOf(by)>=0)){if(!bE){bB.push(bz)}}else{if(bE){bC[bx]=false}}}}return false},ID:function(bx){return bx[1].replace(bp,"")},TAG:function(bx,by){return bx[1].replace(bp,"").toLowerCase()},CHILD:function(bx){if(bx[1]==="nth"){if(!bx[2]){bf.error(bx[0])}bx[2]=bx[2].replace(/^\+|\s*/g,"");var by=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(bx[2]==="even"&&"2n"||bx[2]==="odd"&&"2n+1"||!/\D/.test(bx[2])&&"0n+"+bx[2]||bx[2]);bx[2]=(by[1]+(by[2]||1))-0;bx[3]=by[3]-0}else{if(bx[2]){bf.error(bx[0])}}bx[0]=bo++;return bx},ATTR:function(bz,bB,bD,by,bx,bA){var bC=bz[1]=bz[1].replace(bp,"");if(!bA&&bm.attrMap[bC]){bz[1]=bm.attrMap[bC]}bz[4]=(bz[4]||bz[5]||"").replace(bp,"");if(bz[2]==="~="){bz[4]=" "+bz[4]+" "}return bz},PSEUDO:function(bz,bB,bx,bA,bC){if(bz[1]==="not"){if((bl.exec(bz[3])||"").length>1||/^\w/.test(bz[3])){bz[3]=bf(bz[3],null,null,bB)}else{var by=bf.filter(bz[3],bB,bx,true^bC);if(!bx){bA.push.apply(bA,by)}return false}}else{if(bm.match.POS.test(bz[0])||bm.match.CHILD.test(bz[0])){return true}}return bz},POS:function(bx){bx.unshift(true);return bx}},filters:{enabled:function(bx){return bx.disabled===false&&bx.type!=="hidden"},disabled:function(bx){return bx.disabled===true},checked:function(bx){return bx.checked===true},selected:function(bx){if(bx.parentNode){bx.parentNode.selectedIndex}return bx.selected===true},parent:function(bx){return!!bx.firstChild},empty:function(bx){return!bx.firstChild},has:function(bz,bx,by){return!!bf(by[3],bz).length},header:function(bx){return(/h\d/i).test(bx.nodeName)},text:function(bz){var bx=bz.getAttribute("type"),by=bz.type;return"text"===by&&(bx===by||bx===null)},radio:function(bx){return"radio"===bx.type},checkbox:function(bx){return"checkbox"===bx.type},file:function(bx){return"file"===bx.type},password:function(bx){return"password"===bx.type},submit:function(bx){return"submit"===bx.type},image:function(bx){return"image"===bx.type},reset:function(bx){return"reset"===bx.type},button:function(bx){return"button"===bx.type||bx.nodeName.toLowerCase()==="button"},input:function(bx){return(/input|select|textarea|button/i).test(bx.nodeName)}},setFilters:{first:function(bx,by){return by===0},last:function(bx,by,bz,bA){return by===bA.length-1},even:function(bx,by){return by%2===0},odd:function(bx,by){return by%2===1},lt:function(bz,bx,by){return bx<by[3]-0},gt:function(bz,bx,by){return bx>by[3]-0},nth:function(bz,bx,by){return by[3]-0===bx},eq:function(bz,bx,by){return by[3]-0===bx}},filter:{PSEUDO:function(bF,bC,bB,bD){var bx=bC[1],bE=bm.filters[bx];if(bE){return bE(bF,bB,bC,bD)}else{if(bx==="contains"){return(bF.textContent||bF.innerText||bf.getText([bF])||"").indexOf(bC[3])>=0}else{if(bx==="not"){var by=bC[3];for(var bA=0,bz=by.length;bA<bz;bA++){if(by[bA]===bF){return false}}return true}else{bf.error(bx)}}}},CHILD:function(bz,bA){var bD=bA[1],bx=bz;switch(bD){case"only":case"first":while((bx=bx.previousSibling)){if(bx.nodeType===1){return false}}if(bD==="first"){return true}bx=bz;case"last":while((bx=bx.nextSibling)){if(bx.nodeType===1){return false}}return true;case"nth":var by=bA[2],bG=bA[3];if(by===1&&bG===0){return true}var bC=bA[0],bF=bz.parentNode;if(bF&&(bF.sizcache!==bC||!bz.nodeIndex)){var bB=0;for(bx=bF.firstChild;bx;bx=bx.nextSibling){if(bx.nodeType===1){bx.nodeIndex=++bB}}bF.sizcache=bC}var bE=bz.nodeIndex-bG;if(by===0){return bE===0}else{return(bE%by===0&&bE/by>=0)}}},ID:function(bx,by){return bx.nodeType===1&&bx.getAttribute("id")===by},TAG:function(bx,by){return(by==="*"&&bx.nodeType===1)||bx.nodeName.toLowerCase()===by},CLASS:function(bx,by){return(" "+(bx.className||bx.getAttribute("class"))+" ").indexOf(by)>-1},ATTR:function(bz,bD){var bB=bD[1],by=bm.attrHandle[bB]?bm.attrHandle[bB](bz):bz[bB]!=null?bz[bB]:bz.getAttribute(bB),bA=by+"",bx=bD[2],bC=bD[4];return by==null?bx==="!=":bx==="="?bA===bC:bx==="*="?bA.indexOf(bC)>=0:bx==="~="?(" "+bA+" ").indexOf(bC)>=0:!bC?bA&&by!==false:bx==="!="?bA!==bC:bx==="^="?bA.indexOf(bC)===0:bx==="$="?bA.substr(bA.length-bC.length)===bC:bx==="|="?bA===bC||bA.substr(0,bC.length+1)===bC+"-":false},POS:function(bz,bB,bx,bC){var bA=bB[2],by=bm.setFilters[bA];if(by){return by(bz,bx,bB,bC)}}}};var bj=bm.match.POS,e=function(bx,by){return"\\"+(by-0+1)};for(var bg in bm.match){bm.match[bg]=new RegExp(bm.match[bg].source+(/(?![^\[]*\])(?![^\(]*\))/.source));bm.leftMatch[bg]=new RegExp(/(^(?:.|\r|\n)*?)/.source+bm.match[bg].source.replace(/\\(\d+)/g,e))}var bn=function(bx,by){bx=Array.prototype.slice.call(bx,0);if(by){by.push.apply(by,bx);return by}return bx};try{Array.prototype.slice.call(J.documentElement.childNodes,0)[0].nodeType}catch(bv){bn=function(by,bA){var bz=0,bB=bA||[];if(br.call(by)==="[object Array]"){Array.prototype.push.apply(bB,by)}else{if(typeof by.length==="number"){for(var bx=by.length;bz<bx;bz++){bB.push(by[bz])}}else{for(;by[bz];bz++){bB.push(by[bz])}}}return bB}}var bq,bk;if(J.documentElement.compareDocumentPosition){bq=function(bx,by){if(bx===by){bi=true;return 0}if(!bx.compareDocumentPosition||!by.compareDocumentPosition){return bx.compareDocumentPosition?-1:1}return bx.compareDocumentPosition(by)&4?-1:1}}else{bq=function(bF,bE){var bC,bx,by=[],bz=[],bB=bF.parentNode,bD=bE.parentNode,bG=bB;if(bF===bE){bi=true;return 0}else{if(bB===bD){return bk(bF,bE)}else{if(!bB){return-1}else{if(!bD){return 1}}}}while(bG){by.unshift(bG);bG=bG.parentNode}bG=bD;while(bG){bz.unshift(bG);bG=bG.parentNode}bC=by.length;bx=bz.length;for(var bA=0;bA<bC&&bA<bx;bA++){if(by[bA]!==bz[bA]){return bk(by[bA],bz[bA])}}return bA===bC?bk(bF,bz[bA],-1):bk(by[bA],bE,1)};bk=function(bx,by,bz){if(bx===by){return bz}var bA=bx.nextSibling;while(bA){if(bA===by){return-1}bA=bA.nextSibling}return 1}}bf.getText=function(bx){var by="",bz;for(var bA=0;bx[bA];bA++){bz=bx[bA];if(bz.nodeType===3||bz.nodeType===4){by+=bz.nodeValue}else{if(bz.nodeType!==8){by+=bf.getText(bz.childNodes)}}}return by};(function(){var bx=J.createElement("div"),bz="script"+(new Date()).getTime(),by=J.documentElement;bx.innerHTML="<a name='"+bz+"'/>";by.insertBefore(bx,by.firstChild);if(J.getElementById(bz)){bm.find.ID=function(bC,bD,bB){if(typeof bD.getElementById!=="undefined"&&!bB){var bA=bD.getElementById(bC[1]);return bA?bA.id===bC[1]||typeof bA.getAttributeNode!=="undefined"&&bA.getAttributeNode("id").nodeValue===bC[1]?[bA]:aw:[]}};bm.filter.ID=function(bA,bB){var bC=typeof bA.getAttributeNode!=="undefined"&&bA.getAttributeNode("id");return bA.nodeType===1&&bC&&bC.nodeValue===bB}}by.removeChild(bx);by=bx=null})();(function(){var bx=J.createElement("div");bx.appendChild(J.createComment(""));if(bx.getElementsByTagName("*").length>0){bm.find.TAG=function(bz,bC){var bB=bC.getElementsByTagName(bz[1]);if(bz[1]==="*"){var bA=[];for(var by=0;bB[by];by++){if(bB[by].nodeType===1){bA.push(bB[by])}}bB=bA}return bB}}bx.innerHTML="<a href='#'></a>";if(bx.firstChild&&typeof bx.firstChild.getAttribute!=="undefined"&&bx.firstChild.getAttribute("href")!=="#"){bm.attrHandle.href=function(by){return by.getAttribute("href",2)}}bx=null})();if(J.querySelectorAll){(function(){var bx=bf,by=J.createElement("div"),bA="__sizzle__";by.innerHTML="<p class='TEST'></p>";if(by.querySelectorAll&&by.querySelectorAll(".TEST").length===0){return}bf=function(bF,bJ,bN,bE){bJ=bJ||J;if(!bE&&!bf.isXML(bJ)){var bD=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(bF);if(bD&&(bJ.nodeType===1||bJ.nodeType===9)){if(bD[1]){return bn(bJ.getElementsByTagName(bF),bN)}else{if(bD[2]&&bm.find.CLASS&&bJ.getElementsByClassName){return bn(bJ.getElementsByClassName(bD[2]),bN)}}}if(bJ.nodeType===9){if(bF==="body"&&bJ.body){return bn([bJ.body],bN)}else{if(bD&&bD[3]){var bM=bJ.getElementById(bD[3]);if(bM&&bM.parentNode){if(bM.id===bD[3]){return bn([bM],bN)}}else{return bn([],bN)}}}try{return bn(bJ.querySelectorAll(bF),bN)}catch(bB){}}else{if(bJ.nodeType===1&&bJ.nodeName.toLowerCase()!=="object"){var bK=bJ,bL=bJ.getAttribute("id"),bI=bL||bA,bH=bJ.parentNode,bG=/^\s*[+~]/.test(bF);if(!bL){bJ.setAttribute("id",bI)}else{bI=bI.replace(/'/g,"\\$&")}if(bG&&bH){bJ=bJ.parentNode}try{if(!bG||bH){return bn(bJ.querySelectorAll("[id='"+bI+"'] "+bF),bN)}}catch(bC){}finally{if(!bL){bK.removeAttribute("id")}}}}}return bx(bF,bJ,bN,bE)};for(var bz in bx){bf[bz]=bx[bz]}by=null})()}(function(){var by=J.documentElement,bz=by.matchesSelector||by.mozMatchesSelector||by.webkitMatchesSelector||by.msMatchesSelector;if(bz){var bA=!bz.call(J.createElement("div"),"div"),bB=false;try{bz.call(J.documentElement,"[test!='']:sizzle")}catch(bx){bB=true}bf.matchesSelector=function(bE,bC){bC=bC.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bf.isXML(bE)){try{if(bB||!bm.match.PSEUDO.test(bC)&&!/!=/.test(bC)){var bF=bz.call(bE,bC);if(bF||!bA||bE.document&&bE.document.nodeType!==11){return bF}}}catch(bD){}}return bf(bC,null,null,[bE]).length>0}}})();(function(){var bx=J.createElement("div");bx.innerHTML="<div class='test e'></div><div class='test'></div>";if(!bx.getElementsByClassName||bx.getElementsByClassName("e").length===0){return}bx.lastChild.className="e";if(bx.getElementsByClassName("e").length===1){return}bm.order.splice(1,0,"CLASS");bm.find.CLASS=function(bz,bA,by){if(typeof bA.getElementsByClassName!=="undefined"&&!by){return bA.getElementsByClassName(bz[1])}};bx=null})();function bu(bx,bD,bC,bG,bE,bF){for(var bA=0,by=bG.length;bA<by;bA++){var bz=bG[bA];if(bz){var bB=false;bz=bz[bx];while(bz){if(bz.sizcache===bC){bB=bG[bz.sizset];break}if(bz.nodeType===1&&!bF){bz.sizcache=bC;bz.sizset=bA}if(bz.nodeName.toLowerCase()===bD){bB=bz;break}bz=bz[bx]}bG[bA]=bB}}}function bt(bx,bD,bC,bG,bE,bF){for(var bA=0,by=bG.length;bA<by;bA++){var bz=bG[bA];if(bz){var bB=false;bz=bz[bx];while(bz){if(bz.sizcache===bC){bB=bG[bz.sizset];break}if(bz.nodeType===1){if(!bF){bz.sizcache=bC;bz.sizset=bA}if(typeof bD!=="string"){if(bz===bD){bB=true;break}}else{if(bf.filter(bD,[bz]).length>0){bB=bz;break}}}bz=bz[bx]}bG[bA]=bB}}}if(J.documentElement.contains){bf.contains=function(bx,by){return bx!==by&&(bx.contains?bx.contains(by):true)}}else{if(J.documentElement.compareDocumentPosition){bf.contains=function(bx,by){return!!(bx.compareDocumentPosition(by)&16)}}else{bf.contains=function(){return false}}}bf.isXML=function(bx){var by=(bx?bx.ownerDocument||bx:0).documentElement;return by?by.nodeName!=="HTML":false};var bs=function(bC,bE){var bD,by=[],bB="",bz=bE.nodeType?[bE]:bE;while((bD=bm.match.PSEUDO.exec(bC))){bB+=bD[0];bC=bC.replace(bm.match.PSEUDO,"")}bC=bm.relative[bC]?bC+"*":bC;for(var bA=0,bx=bz.length;bA<bx;bA++){bf(bC,bz[bA],by)}return bf.filter(bB,by)};j.find=bf;j.expr=bf.selectors;j.expr[":"]=j.expr.filters;j.unique=bf.uniqueSort;j.text=bf.getText;j.isXMLDoc=bf.isXML;j.contains=bf.contains})();var A=/Until$/,c=/^(?:parents|prevUntil|prevAll)/,aj=/,/,V=/^.[^:#\[\.,]*$/,av=Array.prototype.slice,o=j.expr.match.POS,W={children:true,contents:true,next:true,prev:true};j.fn.extend({find:function(bf){var bh=this.pushStack("","find",bf),bk=0;for(var bi=0,bg=this.length;bi<bg;bi++){bk=bh.length;j.find(bf,this[bi],bh);if(bi>0){for(var e=bk;e<bh.length;e++){for(var bj=0;bj<bk;bj++){if(bh[bj]===bh[e]){bh.splice(e--,1);break}}}}}return bh},has:function(bf){var e=j(bf);return this.filter(function(){for(var bh=0,bg=e.length;bh<bg;bh++){if(j.contains(this,e[bh])){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&&j.filter(e,this).length>0},closest:function(bo,bf){var bl=[],bi,bg,bn=this[0];if(j.isArray(bo)){var bk,bh,bj={},e=1;if(bn&&bo.length){for(bi=0,bg=bo.length;bi<bg;bi++){bh=bo[bi];if(!bj[bh]){bj[bh]=j.expr.match.POS.test(bh)?j(bh,bf||this.context):bh}}while(bn&&bn.ownerDocument&&bn!==bf){for(bh in bj){bk=bj[bh];if(bk.jquery?bk.index(bn)>-1:j(bn).is(bk)){bl.push({selector:bh,elem:bn,level:e})}}bn=bn.parentNode;e++}}return bl}var bm=o.test(bo)?j(bo,bf||this.context):null;for(bi=0,bg=this.length;bi<bg;bi++){bn=this[bi];while(bn){if(bm?bm.index(bn)>-1:j.find.matchesSelector(bn,bo)){bl.push(bn);break}else{bn=bn.parentNode;if(!bn||!bn.ownerDocument||bn===bf){break}}}}bl=bl.length>1?j.unique(bl):bl;return this.pushStack(bl,"closest",bo)},index:function(e){if(!e||typeof e==="string"){return j.inArray(this[0],e?j(e):this.parent().children())}return j.inArray(e.jquery?e[0]:e,this)},add:function(e,bf){var bh=typeof e==="string"?j(e,bf):j.makeArray(e),bg=j.merge(this.get(),bh);return this.pushStack(aI(bh[0])||aI(bg[0])?bg:j.unique(bg))},andSelf:function(){return this.add(this.prevObject)}});function aI(e){return!e||!e.parentNode||e.parentNode.nodeType===11}j.each({parent:function(bf){var e=bf.parentNode;return e&&e.nodeType!==11?e:null},parents:function(e){return j.dir(e,"parentNode")},parentsUntil:function(e,bg,bf){return j.dir(e,"parentNode",bf)},next:function(e){return j.nth(e,2,"nextSibling")},prev:function(e){return j.nth(e,2,"previousSibling")},nextAll:function(e){return j.dir(e,"nextSibling")},prevAll:function(e){return j.dir(e,"previousSibling")},nextUntil:function(e,bg,bf){return j.dir(e,"nextSibling",bf)},prevUntil:function(e,bg,bf){return j.dir(e,"previousSibling",bf)},siblings:function(e){return j.sibling(e.parentNode.firstChild,e)},children:function(e){return j.sibling(e.firstChild)},contents:function(e){return j.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:j.makeArray(e.childNodes)}},function(e,bf){j.fn[e]=function(bj,bg){var bi=j.map(this,bf,bj),bh=av.call(arguments);if(!A.test(e)){bg=bj}if(bg&&typeof bg==="string"){bi=j.filter(bg,bi)}bi=this.length>1&&!W[e]?j.unique(bi):bi;if((this.length>1||aj.test(bg))&&c.test(e)){bi=bi.reverse()}return this.pushStack(bi,e,bh.join(","))}});j.extend({filter:function(bf,bg,e){if(e){bf=":not("+bf+")"}return bg.length===1?j.find.matchesSelector(bg[0],bf)?[bg[0]]:[]:j.find.matches(bf,bg)},dir:function(e,bi,bg){var bh=[],bf=e[bi];while(bf&&bf.nodeType!==9&&(bg===aw||bf.nodeType!==1||!j(bf).is(bg))){if(bf.nodeType===1){bh.push(bf)}bf=bf[bi]}return bh},nth:function(bg,bh,e,bf){bh=bh||1;var bi=0;for(;bg;bg=bg[e]){if(bg.nodeType===1&&++bi===bh){break}}return bg},sibling:function(bf,e){var bg=[];for(;bf;bf=bf.nextSibling){if(bf.nodeType===1&&bf!==e){bg.push(bf)}}return bg}});function aF(bh,bg,e){if(j.isFunction(bg)){return j.grep(bh,function(bj,bi){var bk=!!bg.call(bj,bi,bj);return bk===e})}else{if(bg.nodeType){return j.grep(bh,function(bj,bi){return(bj===bg)===e})}else{if(typeof bg==="string"){var bf=j.grep(bh,function(bi){return bi.nodeType===1});if(V.test(bg)){return j.filter(bg,bf,!e)}else{bg=j.filter(bg,bf)}}}}return j.grep(bh,function(bj,bi){return(j.inArray(bj,bg)>=0)===e})}var K=/ jQuery\d+="(?:\d+|null)"/g,aG=/^\s+/,L=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,an=/<([\w:]+)/,i=/<tbody/i,aO=/<|&#?\w+;/,at=/<(?:script|object|embed|option|style)/i,a3=/checked\s*(?:[^=]|=\s*.checked.)/i,T={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,"",""]};T.optgroup=T.option;T.tbody=T.tfoot=T.colgroup=T.caption=T.thead;T.th=T.td;if(!j.support.htmlSerialize){T._default=[1,"div<div>","</div>"]}j.fn.extend({text:function(e){if(j.isFunction(e)){return this.each(function(bg){var bf=j(this);bf.text(e.call(this,bg,bf.text()))})}if(typeof e!=="object"&&e!==aw){return this.empty().append((this[0]&&this[0].ownerDocument||J).createTextNode(e))}return j.text(this)},wrapAll:function(e){if(j.isFunction(e)){return this.each(function(bg){j(this).wrapAll(e.call(this,bg))})}if(this[0]){var bf=j(e,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){bf.insertBefore(this[0])}bf.map(function(){var bg=this;while(bg.firstChild&&bg.firstChild.nodeType===1){bg=bg.firstChild}return bg}).append(this)}return this},wrapInner:function(e){if(j.isFunction(e)){return this.each(function(bf){j(this).wrapInner(e.call(this,bf))})}return this.each(function(){var bf=j(this),bg=bf.contents();if(bg.length){bg.wrapAll(e)}else{bf.append(e)}})},wrap:function(e){return this.each(function(){j(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){if(!j.nodeName(this,"body")){j(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(bf){this.parentNode.insertBefore(bf,this)})}else{if(arguments.length){var e=j(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(bf){this.parentNode.insertBefore(bf,this.nextSibling)})}else{if(arguments.length){var e=this.pushStack(this,"after",arguments);e.push.apply(e,j(arguments[0]).toArray());return e}}},remove:function(e,bh){for(var bf=0,bg;(bg=this[bf])!=null;bf++){if(!e||j.filter(e,[bg]).length){if(!bh&&bg.nodeType===1){j.cleanData(bg.getElementsByTagName("*"));j.cleanData([bg])}if(bg.parentNode){bg.parentNode.removeChild(bg)}}}return this},empty:function(){for(var e=0,bf;(bf=this[e])!=null;e++){if(bf.nodeType===1){j.cleanData(bf.getElementsByTagName("*"))}while(bf.firstChild){bf.removeChild(bf.firstChild)}}return this},clone:function(bf,e){bf=bf==null?false:bf;e=e==null?bf:e;return this.map(function(){return j.clone(this,bf,e)})},html:function(bg){if(bg===aw){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(K,""):null}else{if(typeof bg==="string"&&!at.test(bg)&&(j.support.leadingWhitespace||!aG.test(bg))&&!T[(an.exec(bg)||["",""])[1].toLowerCase()]){bg=bg.replace(L,"<$1></$2>");try{for(var bf=0,e=this.length;bf<e;bf++){if(this[bf].nodeType===1){j.cleanData(this[bf].getElementsByTagName("*"));this[bf].innerHTML=bg}}}catch(bh){this.empty().append(bg)}}else{if(j.isFunction(bg)){this.each(function(bj){var bi=j(this);bi.html(bg.call(this,bj,bi.html()))})}else{this.empty().append(bg)}}}return this},replaceWith:function(e){if(this[0]&&this[0].parentNode){if(j.isFunction(e)){return this.each(function(bf){var bh=j(this),bg=bh.html();bh.replaceWith(e.call(this,bf,bg))})}if(typeof e!=="string"){e=j(e).detach()}return this.each(function(){var bg=this.nextSibling,bf=this.parentNode;j(this).remove();if(bg){j(bg).before(e)}else{j(bf).append(e)}})}else{return this.length?this.pushStack(j(j.isFunction(e)?e():e),"replaceWith",e):this}},detach:function(e){return this.remove(e,true)},domManip:function(bl,bp,bo){var bh,bi,bk,bn,bm=bl[0],bf=[];if(!j.support.checkClone&&arguments.length===3&&typeof bm==="string"&&a3.test(bm)){return this.each(function(){j(this).domManip(bl,bp,bo,true)})}if(j.isFunction(bm)){return this.each(function(br){var bq=j(this);bl[0]=bm.call(this,br,bp?bq.html():aw);bq.domManip(bl,bp,bo)})}if(this[0]){bn=bm&&bm.parentNode;if(j.support.parentNode&&bn&&bn.nodeType===11&&bn.childNodes.length===this.length){bh={fragment:bn}}else{bh=j.buildFragment(bl,this,bf)}bk=bh.fragment;if(bk.childNodes.length===1){bi=bk=bk.firstChild}else{bi=bk.firstChild}if(bi){bp=bp&&j.nodeName(bi,"tr");for(var bg=0,e=this.length,bj=e-1;bg<e;bg++){bo.call(bp?x(this[bg],bi):this[bg],bh.cacheable||(e>1&&bg<bj)?j.clone(bk,true,true):bk)}}if(bf.length){j.each(bf,b)}}return this}});function x(e,bf){return j.nodeName(e,"table")?(e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody"))):e}function aV(e,bl){if(bl.nodeType!==1||!j.hasData(e)){return}var bk=j.expando,bh=j.data(e),bi=j.data(bl,bh);if((bh=bh[bk])){var bm=bh.events;bi=bi[bk]=j.extend({},bh);if(bm){delete bi.handle;bi.events={};for(var bj in bm){for(var bg=0,bf=bm[bj].length;bg<bf;bg++){j.event.add(bl,bj+(bm[bj][bg].namespace?".":"")+bm[bj][bg].namespace,bm[bj][bg],bm[bj][bg].data)}}}}}function O(e,bg){if(bg.nodeType!==1){return}var bf=bg.nodeName.toLowerCase();bg.clearAttributes();bg.mergeAttributes(e);if(bf==="object"){bg.outerHTML=e.outerHTML}else{if(bf==="input"&&(e.type==="checkbox"||e.type==="radio")){if(e.checked){bg.defaultChecked=bg.checked=e.checked}if(bg.value!==e.value){bg.value=e.value}}else{if(bf==="option"){bg.selected=e.defaultSelected}else{if(bf==="input"||bf==="textarea"){bg.defaultValue=e.defaultValue}}}}bg.removeAttribute(j.expando)}j.buildFragment=function(bk,bi,bg){var bj,bf,bh,e=(bi&&bi[0]?bi[0].ownerDocument||bi[0]:J);if(bk.length===1&&typeof bk[0]==="string"&&bk[0].length<512&&e===J&&bk[0].charAt(0)==="<"&&!at.test(bk[0])&&(j.support.checkClone||!a3.test(bk[0]))){bf=true;bh=j.fragments[bk[0]];if(bh){if(bh!==1){bj=bh}}}if(!bj){bj=e.createDocumentFragment();j.clean(bk,e,bj,bg)}if(bf){j.fragments[bk[0]]=bh?bj:1}return{fragment:bj,cacheable:bf}};j.fragments={};j.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,bf){j.fn[e]=function(bh){var bk=[],bg=j(bh),bm=this.length===1&&this[0].parentNode;if(bm&&bm.nodeType===11&&bm.childNodes.length===1&&bg.length===1){bg[bf](this[0]);return this}else{for(var bl=0,bi=bg.length;bl<bi;bl++){var bj=(bl>0?this.clone(true):this).get();j(bg[bl])[bf](bj);bk=bk.concat(bj)}return this.pushStack(bk,e,bg.selector)}}});function P(e){if("getElementsByTagName"in e){return e.getElementsByTagName("*")}else{if("querySelectorAll"in e){return e.querySelectorAll("*")}else{return[]}}}j.extend({clone:function(bj,e,bh){var bk=bj.cloneNode(true),bf,bg,bi;if((!j.support.noCloneEvent||!j.support.noCloneChecked)&&(bj.nodeType===1||bj.nodeType===11)&&!j.isXMLDoc(bj)){O(bj,bk);bf=P(bj);bg=P(bk);for(bi=0;bf[bi];++bi){O(bf[bi],bg[bi])}}if(e){aV(bj,bk);if(bh){bf=P(bj);bg=P(bk);for(bi=0;bf[bi];++bi){aV(bf[bi],bg[bi])}}}return bk},clean:function(bo,bq,bj,e){bq=bq||J;if(typeof bq.createElement==="undefined"){bq=bq.ownerDocument||bq[0]&&bq[0].ownerDocument||J}var bk=[];for(var bi=0,br;(br=bo[bi])!=null;bi++){if(typeof br==="number"){br+=""}if(!br){continue}if(typeof br==="string"&&!aO.test(br)){br=bq.createTextNode(br)}else{if(typeof br==="string"){br=br.replace(L,"<$1></$2>");var bl=(an.exec(br)||["",""])[1].toLowerCase(),bp=T[bl]||T._default,bh=bp[0],bn=bq.createElement("div");bn.innerHTML=bp[1]+br+bp[2];while(bh--){bn=bn.lastChild}if(!j.support.tbody){var bm=i.test(br),bg=bl==="table"&&!bm?bn.firstChild&&bn.firstChild.childNodes:bp[1]==="<table>"&&!bm?bn.childNodes:[];for(var bf=bg.length-1;bf>=0;--bf){if(j.nodeName(bg[bf],"tbody")&&!bg[bf].childNodes.length){bg[bf].parentNode.removeChild(bg[bf])}}}if(!j.support.leadingWhitespace&&aG.test(br)){bn.insertBefore(bq.createTextNode(aG.exec(br)[0]),bn.firstChild)}br=bn.childNodes}}if(br.nodeType){bk.push(br)}else{bk=j.merge(bk,br)}}if(bj){for(bi=0;bk[bi];bi++){if(e&&j.nodeName(bk[bi],"script")&&(!bk[bi].type||bk[bi].type.toLowerCase()==="text/javascript")){e.push(bk[bi].parentNode?bk[bi].parentNode.removeChild(bk[bi]):bk[bi])}else{if(bk[bi].nodeType===1){bk.splice.apply(bk,[bi+1,0].concat(j.makeArray(bk[bi].getElementsByTagName("script"))))}bj.appendChild(bk[bi])}}}return bk},cleanData:function(bf){var bi,bg,e=j.cache,bn=j.expando,bl=j.event.special,bk=j.support.deleteExpando;for(var bj=0,bh;(bh=bf[bj])!=null;bj++){if(bh.nodeName&&j.noData[bh.nodeName.toLowerCase()]){continue}bg=bh[j.expando];if(bg){bi=e[bg]&&e[bg][bn];if(bi&&bi.events){for(var bm in bi.events){if(bl[bm]){j.event.remove(bh,bm)}else{j.removeEvent(bh,bm,bi.handle)}}if(bi.handle){bi.handle.elem=null}}if(bk){delete bh[j.expando]}else{if(bh.removeAttribute){bh.removeAttribute(j.expando)}}delete e[bg]}}}});function b(e,bf){if(bf.src){j.ajax({url:bf.src,async:false,dataType:"script"})}else{j.globalEval(bf.text||bf.textContent||bf.innerHTML||"")}if(bf.parentNode){bf.parentNode.removeChild(bf)}}var ad=/alpha\([^)]*\)/i,G=/opacity=([^)]*)/,k=/-([a-z])/ig,ab=/([A-Z]|^ms)/g,d=/^-?\d+(?:px)?$/i,aC=/^-?\d/,af={position:"absolute",visibility:"hidden",display:"block"},ax=["Left","Right"],ar=["Top","Bottom"],aK,a8,g,ba=function(e,bf){return bf.toUpperCase()};j.fn.css=function(e,bf){if(arguments.length===2&&bf===aw){return this}return j.access(this,e,bf,true,function(bh,bg,bi){return bi!==aw?j.style(bh,bg,bi):j.css(bh,bg)})};j.extend({cssHooks:{opacity:{get:function(bf,e){if(e){var bg=aK(bf,"opacity","opacity");return bg===""?"1":bg}else{return bf.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":j.support.cssFloat?"cssFloat":"styleFloat"},style:function(bg,bf,bl,bh){if(!bg||bg.nodeType===3||bg.nodeType===8||!bg.style){return}var bk,bi=j.camelCase(bf),e=bg.style,bm=j.cssHooks[bi];bf=j.cssProps[bi]||bi;if(bl!==aw){if(typeof bl==="number"&&isNaN(bl)||bl==null){return}if(typeof bl==="number"&&!j.cssNumber[bi]){bl+="px"}if(!bm||!("set"in bm)||(bl=bm.set(bg,bl))!==aw){try{e[bf]=bl}catch(bj){}}}else{if(bm&&"get"in bm&&(bk=bm.get(bg,false,bh))!==aw){return bk}return e[bf]}},css:function(bf,e,bh){var bj,bi=j.camelCase(e),bg=j.cssHooks[bi];e=j.cssProps[bi]||bi;if(bg&&"get"in bg&&(bj=bg.get(bf,true,bh))!==aw){return bj}else{if(aK){return aK(bf,e,bi)}}},swap:function(bf,e,bg){var bh={};for(var bi in e){bh[bi]=bf.style[bi];bf.style[bi]=e[bi]}bg.call(bf);for(bi in e){bf.style[bi]=bh[bi]}},camelCase:function(e){return e.replace(k,ba)}});j.curCSS=j.css;j.each(["height","width"],function(bf,e){j.cssHooks[e]={get:function(bi,bh,bg){var bj;if(bh){if(bi.offsetWidth!==0){bj=X(bi,e,bg)}else{j.swap(bi,af,function(){bj=X(bi,e,bg)})}if(bj<=0){bj=aK(bi,e,e);if(bj==="0px"&&g){bj=g(bi,e,e)}if(bj!=null){return bj===""||bj==="auto"?"0px":bj}}if(bj<0||bj==null){bj=bi.style[e];return bj===""||bj==="auto"?"0px":bj}return typeof bj==="string"?bj:bj+"px"}},set:function(bg,bh){if(d.test(bh)){bh=parseFloat(bh);if(bh>=0){return bh+"px"}}else{return bh}}}});if(!j.support.opacity){j.cssHooks.opacity={get:function(bf,e){return G.test((e&&bf.currentStyle?bf.currentStyle.filter:bf.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":e?"1":""},set:function(bf,bg){var e=bf.style;e.zoom=1;var bh=j.isNaN(bg)?"":"alpha(opacity="+bg*100+")",bi=e.filter||"";e.filter=ad.test(bi)?bi.replace(ad,bh):e.filter+" "+bh}}}j(function(){if(!j.support.reliableMarginRight){j.cssHooks.marginRight={get:function(bf,e){var bg;j.swap(bf,{display:"inline-block"},function(){if(e){bg=aK(bf,"margin-right","marginRight")}else{bg=bf.style.marginRight}});return bg}}}});if(J.defaultView&&J.defaultView.getComputedStyle){a8=function(bf,bg,bj){var bi,e,bh;bj=bj.replace(ab,"-$1").toLowerCase();if(!(e=bf.ownerDocument.defaultView)){return aw}if((bh=e.getComputedStyle(bf,null))){bi=bh.getPropertyValue(bj);if(bi===""&&!j.contains(bf.ownerDocument.documentElement,bf)){bi=j.style(bf,bj)}}return bi}}if(J.documentElement.currentStyle){g=function(e,bi){var bf,bh=e.currentStyle&&e.currentStyle[bi],bg=e.runtimeStyle&&e.runtimeStyle[bi],bj=e.style;if(!d.test(bh)&&aC.test(bh)){bf=bj.left;if(bg){e.runtimeStyle.left=e.currentStyle.left}bj.left=bi==="fontSize"?"1em":(bh||0);bh=bj.pixelLeft+"px";bj.left=bf;if(bg){e.runtimeStyle.left=bg}}return bh===""?"auto":bh}}aK=a8||g;function X(e,bi,bh){var bg=bi==="width"?ax:ar,bf=bi==="width"?e.offsetWidth:e.offsetHeight;if(bh==="border"){return bf}j.each(bg,function(){if(!bh){bf-=parseFloat(j.css(e,"padding"+this))||0}if(bh==="margin"){bf+=parseFloat(j.css(e,"margin"+this))||0}else{bf-=parseFloat(j.css(e,"border"+this+"Width"))||0}});return bf}if(j.expr&&j.expr.filters){j.expr.filters.hidden=function(bf){var e=bf.offsetWidth,bg=bf.offsetHeight;return(e===0&&bg===0)||(!j.support.reliableHiddenOffsets&&(bf.style.display||j.css(bf,"display"))==="none")};j.expr.filters.visible=function(e){return!j.expr.filters.hidden(e)}}var aU=/%20/g,ay=/\[\]$/,D=/\r?\n/g,ap=/#.*$/,s=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,u=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,r=/^(?:about|app|app\-storage|.+\-extension|file|widget):$/,bc=/^(?:GET|HEAD)$/,m=/^\/\//,N=/\?/,ao=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,B=/^(?:select|textarea)/i,au=/\s+/,y=/([?&])_=[^&]*/,I=/(^|\-)([a-z])/g,aS=function(e,bg,bf){return bg+bf.toUpperCase()},v=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ac=j.fn.load,aM={},aA={},t,aH;try{t=J.location.href}catch(M){t=J.createElement("a");t.href="";t=t.href}aH=v.exec(t.toLowerCase())||[];function aq(e){return function(bm,bg){if(typeof bm!=="string"){bg=bm;bm="*"}if(j.isFunction(bg)){var bl=bm.toLowerCase().split(au),bk=0,bf=bl.length,bj,bh,bi;for(;bk<bf;bk++){bj=bl[bk];bi=/^\+/.test(bj);if(bi){bj=bj.substr(1)||"*"}bh=e[bj]=e[bj]||[];bh[bi?"unshift":"push"](bg)}}}}function aD(bf,bo,bj,bn,bl,bh){bl=bl||bo.dataTypes[0];bh=bh||{};bh[bl]=true;var bk=bf[bl],bg=0,e=bk?bk.length:0,bi=(bf===aM),bm;for(;bg<e&&(bi||!bm);bg++){bm=bk[bg](bo,bj,bn);if(typeof bm==="string"){if(!bi||bh[bm]){bm=aw}else{bo.dataTypes.unshift(bm);bm=aD(bf,bo,bj,bn,bm,bh)}}}if((bi||!bm)&&!bh["*"]){bm=aD(bf,bo,bj,bn,"*",bh)}return bm}j.fn.extend({load:function(bh,bk,e){if(typeof bh!=="string"&&ac){return ac.apply(this,arguments)}else{if(!this.length){return this}}var bj=bh.indexOf(" ");if(bj>=0){var bf=bh.slice(bj,bh.length);bh=bh.slice(0,bj)}var bi="GET";if(bk){if(j.isFunction(bk)){e=bk;bk=aw}else{if(typeof bk==="object"){bk=j.param(bk,j.ajaxSettings.traditional);bi="POST"}}}var bg=this;j.ajax({url:bh,type:bi,dataType:"html",data:bk,complete:function(bm,bl,bn){bn=bm.responseText;if(bm.isResolved()){bm.done(function(bo){bn=bo});bg.html(bf?j("<div>").append(bn.replace(ao,"")).find(bf):bn)}if(e){bg.each(e,[bn,bl,bm])}}});return this},serialize:function(){return j.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?j.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||B.test(this.nodeName)||u.test(this.type))}).map(function(bg,e){var bf=j(this).val();return bf==null?null:j.isArray(bf)?j.map(bf,function(bi,bh){return{name:e.name,value:bi.replace(D,"\r\n")}}):{name:e.name,value:bf.replace(D,"\r\n")}}).get()}});j.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,bf){j.fn[bf]=function(bg){return this.bind(bf,bg)}});j.each(["get","post"],function(e,bf){j[bf]=function(bg,bi,bj,bh){if(j.isFunction(bi)){bh=bh||bj;bj=bi;bi=aw}return j.ajax({type:bf,url:bg,data:bi,success:bj,dataType:bh})}});j.extend({getScript:function(e,bf){return j.get(e,aw,bf,"script")},getJSON:function(bg,e,bf){return j.get(bg,e,bf,"json")},ajaxSetup:function(bf,bg){if(!bg){bg=bf;bf=j.extend(true,j.ajaxSettings,bg)}else{j.extend(true,bf,j.ajaxSettings,bg)}for(var e in{context:1,url:1}){if(e in bg){bf[e]=bg[e]}else{if(e in j.ajaxSettings){bf[e]=j.ajaxSettings[e]}}}return bf},ajaxSettings:{url:t,isLocal:r.test(aH[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":aT.String,"text html":true,"text json":j.parseJSON,"text xml":j.parseXML}},ajaxPrefilter:aq(aM),ajaxTransport:aq(aA),ajax:function(bm,bq){if(typeof bm==="object"){bq=bm;bm=aw}bq=bq||{};var bk=j.ajaxSetup({},bq),by=bk.context||bk,bz=by!==bk&&(by.nodeType||by instanceof j)?j(by):j.event,bw=j.Deferred(),bj=j._Deferred(),bu=bk.statusCode||{},bv,e={},bn,bg,bt,br,bf,bs=0,bp,bi,bh={readyState:0,setRequestHeader:function(bB,bC){if(!bs){e[bB.toLowerCase().replace(I,aS)]=bC}return this},getAllResponseHeaders:function(){return bs===2?bn:null},getResponseHeader:function(bC){var bB;if(bs===2){if(!bg){bg={};while((bB=s.exec(bn))){bg[bB[1].toLowerCase()]=bB[2]}}bB=bg[bC.toLowerCase()]}return bB===aw?null:bB},overrideMimeType:function(bB){if(!bs){bk.mimeType=bB}return this},abort:function(bB){bB=bB||"abort";if(bt){bt.abort(bB)}bx(0,bB);return this}};function bx(bF,bD,bG,bC){if(bs===2){return}bs=2;if(br){clearTimeout(br)}bt=aw;bn=bC||"";bh.readyState=bF?4:0;var bL,bK,bJ,bE=bG?ai(bk,bh,bG):aw,bB,bI;if(bF>=200&&bF<300||bF===304){if(bk.ifModified){if((bB=bh.getResponseHeader("Last-Modified"))){j.lastModified[bv]=bB}if((bI=bh.getResponseHeader("Etag"))){j.etag[bv]=bI}}if(bF===304){bD="notmodified";bL=true}else{try{bK=aN(bk,bE);bD="success";bL=true}catch(bH){bD="parsererror";bJ=bH}}}else{bJ=bD;if(!bD||bF){bD="error";if(bF<0){bF=0}}}bh.status=bF;bh.statusText=bD;if(bL){bw.resolveWith(by,[bK,bD,bh])}else{bw.rejectWith(by,[bh,bD,bJ])}bh.statusCode(bu);bu=aw;if(bp){bz.trigger("ajax"+(bL?"Success":"Error"),[bh,bk,bL?bK:bJ])}bj.resolveWith(by,[bh,bD]);if(bp){bz.trigger("ajaxComplete",[bh,bk]);if(!(--j.active)){j.event.trigger("ajaxStop")}}}bw.promise(bh);bh.success=bh.done;bh.error=bh.fail;bh.complete=bj.done;bh.statusCode=function(bC){if(bC){var bB;if(bs<2){for(bB in bC){bu[bB]=[bu[bB],bC[bB]]}}else{bB=bC[bh.status];bh.then(bB,bB)}}return this};bk.url=((bm||bk.url)+"").replace(ap,"").replace(m,aH[1]+"//");bk.dataTypes=j.trim(bk.dataType||"*").toLowerCase().split(au);if(bk.crossDomain==null){bf=v.exec(bk.url.toLowerCase());bk.crossDomain=!!(bf&&(bf[1]!=aH[1]||bf[2]!=aH[2]||(bf[3]||(bf[1]==="http:"?80:443))!=(aH[3]||(aH[1]==="http:"?80:443))))}if(bk.data&&bk.processData&&typeof bk.data!=="string"){bk.data=j.param(bk.data,bk.traditional)}aD(aM,bk,bq,bh);if(bs===2){return false}bp=bk.global;bk.type=bk.type.toUpperCase();bk.hasContent=!bc.test(bk.type);if(bp&&j.active++===0){j.event.trigger("ajaxStart")}if(!bk.hasContent){if(bk.data){bk.url+=(N.test(bk.url)?"&":"?")+bk.data}bv=bk.url;if(bk.cache===false){var bo=j.now(),bl=bk.url.replace(y,"$1_="+bo);bk.url=bl+((bl===bk.url)?(N.test(bk.url)?"&":"?")+"_="+bo:"")}}if(bk.data&&bk.hasContent&&bk.contentType!==false||bq.contentType){e["Content-Type"]=bk.contentType}if(bk.ifModified){bv=bv||bk.url;if(j.lastModified[bv]){e["If-Modified-Since"]=j.lastModified[bv]}if(j.etag[bv]){e["If-None-Match"]=j.etag[bv]}}e.Accept=bk.dataTypes[0]&&bk.accepts[bk.dataTypes[0]]?bk.accepts[bk.dataTypes[0]]+(bk.dataTypes[0]!=="*"?", */*; q=0.01":""):bk.accepts["*"];for(bi in bk.headers){bh.setRequestHeader(bi,bk.headers[bi])}if(bk.beforeSend&&(bk.beforeSend.call(by,bh,bk)===false||bs===2)){bh.abort();return false}for(bi in{success:1,error:1,complete:1}){bh[bi](bk[bi])}bt=aD(aA,bk,bq,bh);if(!bt){bx(-1,"No Transport")}else{bh.readyState=1;if(bp){bz.trigger("ajaxSend",[bh,bk])}if(bk.async&&bk.timeout>0){br=setTimeout(function(){bh.abort("timeout")},bk.timeout)}try{bs=1;bt.send(e,bx)}catch(bA){if(status<2){bx(-1,bA)}else{j.error(bA)}}}return bh},param:function(bh,e){var bi=[],bg=function(bj,bk){bk=j.isFunction(bk)?bk():bk;bi[bi.length]=encodeURIComponent(bj)+"="+encodeURIComponent(bk)};if(e===aw){e=j.ajaxSettings.traditional}if(j.isArray(bh)||(bh.jquery&&!j.isPlainObject(bh))){j.each(bh,function(){bg(this.name,this.value)})}else{for(var bf in bh){a1(bf,bh[bf],e,bg)}}return bi.join("&").replace(aU,"+")}});function a1(e,bg,bi,bf){if(j.isArray(bg)&&bg.length){j.each(bg,function(bk,bj){if(bi||ay.test(e)){bf(e,bj)}else{a1(e+"["+(typeof bj==="object"||j.isArray(bj)?bk:"")+"]",bj,bi,bf)}})}else{if(!bi&&bg!=null&&typeof bg==="object"){if(j.isArray(bg)||j.isEmptyObject(bg)){bf(e,"")}else{for(var bh in bg){a1(e+"["+bh+"]",bg[bh],bi,bf)}}}else{bf(e,bg)}}}j.extend({active:0,lastModified:{},etag:{}});function ai(bn,bm,bj){var bf=bn.contents,bl=bn.dataTypes,bg=bn.responseFields,bi,bk,bh,e;for(bk in bg){if(bk in bj){bm[bg[bk]]=bj[bk]}}while(bl[0]==="*"){bl.shift();if(bi===aw){bi=bn.mimeType||bm.getResponseHeader("content-type")}}if(bi){for(bk in bf){if(bf[bk]&&bf[bk].test(bi)){bl.unshift(bk);break}}}if(bl[0]in bj){bh=bl[0]}else{for(bk in bj){if(!bl[0]||bn.converters[bk+" "+bl[0]]){bh=bk;break}if(!e){e=bk}}bh=bh||e}if(bh){if(bh!==bl[0]){bl.unshift(bh)}return bj[bh]}}function aN(bl,br){if(bl.dataFilter){br=bl.dataFilter(br,bl.dataType)}var bh=bl.dataTypes,bk={},e,bi,bo=bh.length,bf,bg=bh[0],bp,bq,bj,bn,bm;for(e=1;e<bo;e++){if(e===1){for(bi in bl.converters){if(typeof bi==="string"){bk[bi.toLowerCase()]=bl.converters[bi]}}}bp=bg;bg=bh[e];if(bg==="*"){bg=bp}else{if(bp!=="*"&&bp!==bg){bq=bp+" "+bg;bj=bk[bq]||bk["* "+bg];if(!bj){bm=aw;for(bn in bk){bf=bn.split(" ");if(bf[0]===bp||bf[0]==="*"){bm=bk[bf[1]+" "+bg];if(bm){bn=bk[bn];if(bn===true){bj=bm}else{if(bm===true){bj=bn}}break}}}}if(!(bj||bm)){j.error("No conversion from "+bq.replace(" "," to "))}if(bj!==true){br=bj?bj(br):bm(bn(br))}}}}return br}var ag=j.now(),aX=/(\=)\?(&|$)|\?\?/i;j.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return j.expando+"_"+(ag++)}});j.ajaxPrefilter("json jsonp",function(bo,bk,bn){var bm=(typeof bo.data==="string");if(bo.dataTypes[0]==="jsonp"||bk.jsonpCallback||bk.jsonp!=null||bo.jsonp!==false&&(aX.test(bo.url)||bm&&aX.test(bo.data))){var bl,bg=bo.jsonpCallback=j.isFunction(bo.jsonpCallback)?bo.jsonpCallback():bo.jsonpCallback,bj=aT[bg],e=bo.url,bi=bo.data,bf="$1"+bg+"$2",bh=function(){aT[bg]=bj;if(bl&&j.isFunction(bj)){aT[bg](bl[0])}};if(bo.jsonp!==false){e=e.replace(aX,bf);if(bo.url===e){if(bm){bi=bi.replace(aX,bf)}if(bo.data===bi){e+=(/\?/.test(e)?"&":"?")+bo.jsonp+"="+bg}}}bo.url=e;bo.data=bi;aT[bg]=function(bp){bl=[bp]};bn.then(bh,bh);bo.converters["script json"]=function(){if(!bl){j.error(bg+" was not called")}return bl[0]};bo.dataTypes[0]="json";return"script"}});j.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){j.globalEval(e);return e}}});j.ajaxPrefilter("script",function(e){if(e.cache===aw){e.cache=false}if(e.crossDomain){e.type="GET";e.global=false}});j.ajaxTransport("script",function(bf){if(bf.crossDomain){var bg,e=J.head||J.getElementsByTagName("head")[0]||J.documentElement;return{send:function(bh,bi){bg=J.createElement("script");bg.async="async";if(bf.scriptCharset){bg.charset=bf.scriptCharset}bg.src=bf.url;bg.onload=bg.onreadystatechange=function(bk,bj){if(!bg.readyState||/loaded|complete/.test(bg.readyState)){bg.onload=bg.onreadystatechange=null;if(e&&bg.parentNode){e.removeChild(bg)}bg=aw;if(!bj){bi(200,"success")}}};e.insertBefore(bg,e.firstChild)},abort:function(){if(bg){bg.onload(0,1)}}}}});var q=j.now(),S,p;function al(){j(aT).unload(function(){for(var e in S){S[e](0,1)}})}function a0(){try{return new aT.XMLHttpRequest()}catch(e){}}function Q(){try{return new aT.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}j.ajaxSettings.xhr=aT.ActiveXObject?function(){return!this.isLocal&&a0()||Q()}:a0;p=j.ajaxSettings.xhr();j.support.ajax=!!p;j.support.cors=p&&("withCredentials"in p);p=aw;if(j.support.ajax){j.ajaxTransport(function(e){if(!e.crossDomain||j.support.cors){var bf;return{send:function(bj,bk){var bi=e.xhr(),bh,bg;if(e.username){bi.open(e.type,e.url,e.async,e.username,e.password)}else{bi.open(e.type,e.url,e.async)}if(e.xhrFields){for(bg in e.xhrFields){bi[bg]=e.xhrFields[bg]}}if(e.mimeType&&bi.overrideMimeType){bi.overrideMimeType(e.mimeType)}if(!e.crossDomain&&!bj["X-Requested-With"]){bj["X-Requested-With"]="XMLHttpRequest"}try{for(bg in bj){bi.setRequestHeader(bg,bj[bg])}}catch(bl){}bi.send((e.hasContent&&e.data)||null);bf=function(bn,bq){var br,bp,bo,bu,bt;try{if(bf&&(bq||bi.readyState===4)){bf=aw;if(bh){bi.onreadystatechange=j.noop;delete S[bh]}if(bq){if(bi.readyState!==4){bi.abort()}}else{br=bi.status;bo=bi.getAllResponseHeaders();bu={};bt=bi.responseXML;if(bt&&bt.documentElement){bu.xml=bt}bu.text=bi.responseText;try{bp=bi.statusText}catch(bm){bp=""}if(!br&&e.isLocal&&!e.crossDomain){br=bu.text?200:404}else{if(br===1223){br=204}}}}}catch(bs){if(!bq){bk(-1,bs)}}if(bu){bk(br,bp,bu,bo)}};if(!e.async||bi.readyState===4){bf()}else{if(!S){S={};al()}bh=q++;bi.onreadystatechange=S[bh]=bf}},abort:function(){if(bf){bf(0,1)}}}}})}var H={},Y=/^(?:toggle|show|hide)$/,az=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,bd,a5=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];j.fn.extend({show:function(bi,e,bk){var bh,bj;if(bi||bi===0){return this.animate(ak("show",3),bi,e,bk)}else{for(var bg=0,bf=this.length;bg<bf;bg++){bh=this[bg];bj=bh.style.display;if(!j._data(bh,"olddisplay")&&bj==="none"){bj=bh.style.display=""}if(bj===""&&j.css(bh,"display")==="none"){j._data(bh,"olddisplay",l(bh.nodeName))}}for(bg=0;bg<bf;bg++){bh=this[bg];bj=bh.style.display;if(bj===""||bj==="none"){bh.style.display=j._data(bh,"olddisplay")||""}}return this}},hide:function(bi,bf,e){if(bi||bi===0){return this.animate(ak("hide",3),bi,bf,e)}else{for(var bh=0,bg=this.length;bh<bg;bh++){var bj=j.css(this[bh],"display");if(bj!=="none"&&!j._data(this[bh],"olddisplay")){j._data(this[bh],"olddisplay",bj)}}for(bh=0;bh<bg;bh++){this[bh].style.display="none"}return this}},_toggle:j.fn.toggle,toggle:function(bg,bf,bh){var e=typeof bg==="boolean";if(j.isFunction(bg)&&j.isFunction(bf)){this._toggle.apply(this,arguments)}else{if(bg==null||e){this.each(function(){var bi=e?bg:j(this).is(":hidden");j(this)[bi?"show":"hide"]()})}else{this.animate(ak("toggle",3),bg,bf,bh)}}return this},fadeTo:function(e,bh,bg,bf){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:bh},e,bg,bf)},animate:function(bg,bi,bf,e){var bh=j.speed(bi,bf,e);if(j.isEmptyObject(bg)){return this.each(bh.complete)}return this[bh.queue===false?"each":"queue"](function(){var bk=j.extend({},bh),bo,bl=this.nodeType===1,bm=bl&&j(this).is(":hidden"),bp=this;for(bo in bg){var bj=j.camelCase(bo);if(bo!==bj){bg[bj]=bg[bo];delete bg[bo];bo=bj}if(bg[bo]==="hide"&&bm||bg[bo]==="show"&&!bm){return bk.complete.call(this)}if(bl&&(bo==="height"||bo==="width")){bk.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(j.css(this,"display")==="inline"&&j.css(this,"float")==="none"){if(!j.support.inlineBlockNeedsLayout){this.style.display="inline-block"}else{var bn=l(this.nodeName);if(bn==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}if(j.isArray(bg[bo])){(bk.specialEasing=bk.specialEasing||{})[bo]=bg[bo][1];bg[bo]=bg[bo][0]}}if(bk.overflow!=null){this.style.overflow="hidden"}bk.curAnim=j.extend({},bg);j.each(bg,function(bv,bs){var br=new j.fx(bp,bk,bv);if(Y.test(bs)){br[bs==="toggle"?bm?"show":"hide":bs](bg)}else{var bq=az.exec(bs),bt=br.cur();if(bq){var bu=parseFloat(bq[2]),bw=bq[3]||(j.cssNumber[bv]?"":"px");if(bw!=="px"){j.style(bp,bv,(bu||1)+bw);bt=((bu||1)/br.cur())*bt;j.style(bp,bv,bt+bw)}if(bq[1]){bu=((bq[1]==="-="?-1:1)*bu)+bt}br.custom(bt,bu,bw)}else{br.custom(bt,bs,"")}}});return true})},stop:function(e,bg){var bf=j.timers;if(e){this.queue([])}this.each(function(){for(var bh=bf.length-1;bh>=0;bh--){if(bf[bh].elem===this){if(bg){bf[bh](true)}bf.splice(bh,1)}}});if(!bg){this.dequeue()}return this}});function ak(e,bg){var bf={};j.each(a5.concat.apply([],a5.slice(0,bg)),function(){bf[this]=e});return bf}j.each({slideDown:ak("show",1),slideUp:ak("hide",1),slideToggle:ak("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,bf){j.fn[e]=function(bg,bi,bh){return this.animate(bf,bg,bi,bh)}});j.extend({speed:function(bg,bh,bf){var e=bg&&typeof bg==="object"?j.extend({},bg):{complete:bf||!bf&&bh||j.isFunction(bg)&&bg,duration:bg,easing:bf&&bh||bh&&!j.isFunction(bh)&&bh};e.duration=j.fx.off?0:typeof e.duration==="number"?e.duration:e.duration in j.fx.speeds?j.fx.speeds[e.duration]:j.fx.speeds._default;e.old=e.complete;e.complete=function(){if(e.queue!==false){j(this).dequeue()}if(j.isFunction(e.old)){e.old.call(this)}};return e},easing:{linear:function(bg,bh,e,bf){return e+bf*bg},swing:function(bg,bh,e,bf){return((-Math.cos(bg*Math.PI)/2)+0.5)*bf+e}},timers:[],fx:function(e,bg,bf){this.options=bg;this.elem=e;this.prop=bf;if(!bg.orig){bg.orig={}}}});j.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(j.fx.step[this.prop]||j.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,bf=j.css(this.elem,this.prop);return isNaN(e=parseFloat(bf))?!bf||bf==="auto"?0:bf:e},custom:function(bf,e,bj){var bg=this,bi=j.fx;this.startTime=j.now();this.start=bf;this.end=e;this.unit=bj||this.unit||(j.cssNumber[this.prop]?"":"px");this.now=this.start;this.pos=this.state=0;function bh(bk){return bg.step(bk)}bh.elem=this.elem;if(bh()&&j.timers.push(bh)&&!bd){bd=setInterval(bi.tick,bi.interval)}},show:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());j(this.elem).show()},hide:function(){this.options.orig[this.prop]=j.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(bh){var bm=j.now(),bi=true;if(bh||bm>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var bj in this.options.curAnim){if(this.options.curAnim[bj]!==true){bi=false}}if(bi){if(this.options.overflow!=null&&!j.support.shrinkWrapBlocks){var bg=this.elem,bn=this.options;j.each(["","X","Y"],function(bo,bp){bg.style["overflow"+bp]=bn.overflow[bo]})}if(this.options.hide){j(this.elem).hide()}if(this.options.hide||this.options.show){for(var e in this.options.curAnim){j.style(this.elem,e,this.options.orig[e])}}this.options.complete.call(this.elem)}return false}else{var bf=bm-this.startTime;this.state=bf/this.options.duration;var bk=this.options.specialEasing&&this.options.specialEasing[this.prop];var bl=this.options.easing||(j.easing.swing?"swing":"linear");this.pos=j.easing[bk||bl](this.state,bf,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};j.extend(j.fx,{tick:function(){var bf=j.timers;for(var e=0;e<bf.length;e++){if(!bf[e]()){bf.splice(e--,1)}}if(!bf.length){j.fx.stop()}},interval:13,stop:function(){clearInterval(bd);bd=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(e){j.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(j.expr&&j.expr.filters){j.expr.filters.animated=function(e){return j.grep(j.timers,function(bf){return e===bf.elem}).length}}function l(bf){if(!H[bf]){var bg=j("<"+bf+">").appendTo("body"),e=bg.css("display");bg.remove();if(e==="none"||e===""){e="block"}H[bf]=e}return H[bf]}var aL=/^t(?:able|d|h)$/i,aW=/^(?:body|html)$/i;if("getBoundingClientRect"in J.documentElement){j.fn.offset=function(bm){var bq=this[0],bf;if(bm){return this.each(function(bs){j.offset.setOffset(this,bm,bs)})}if(!bq||!bq.ownerDocument){return null}if(bq===bq.ownerDocument.body){return j.offset.bodyOffset(bq)}try{bf=bq.getBoundingClientRect()}catch(bj){}var bl=bq.ownerDocument,bo=bl.documentElement;if(!bf||!j.contains(bo,bq)){return bf?{top:bf.top,left:bf.left}:{top:0,left:0}}var bg=bl.body,bh=aP(bl),e=bo.clientTop||bg.clientTop||0,bi=bo.clientLeft||bg.clientLeft||0,bn=bh.pageYOffset||j.support.boxModel&&bo.scrollTop||bg.scrollTop,br=bh.pageXOffset||j.support.boxModel&&bo.scrollLeft||bg.scrollLeft,bk=bf.top+bn-e,bp=bf.left+br-bi;return{top:bk,left:bp}}}else{j.fn.offset=function(bp){var bj=this[0];if(bp){return this.each(function(bq){j.offset.setOffset(this,bp,bq)})}if(!bj||!bj.ownerDocument){return null}if(bj===bj.ownerDocument.body){return j.offset.bodyOffset(bj)}j.offset.initialize();var bm,bg=bj.offsetParent,bf=bj,bo=bj.ownerDocument,bh=bo.documentElement,bk=bo.body,bl=bo.defaultView,e=bl?bl.getComputedStyle(bj,null):bj.currentStyle,bn=bj.offsetTop,bi=bj.offsetLeft;while((bj=bj.parentNode)&&bj!==bk&&bj!==bh){if(j.offset.supportsFixedPosition&&e.position==="fixed"){break}bm=bl?bl.getComputedStyle(bj,null):bj.currentStyle;bn-=bj.scrollTop;bi-=bj.scrollLeft;if(bj===bg){bn+=bj.offsetTop;bi+=bj.offsetLeft;if(j.offset.doesNotAddBorder&&!(j.offset.doesAddBorderForTableAndCells&&aL.test(bj.nodeName))){bn+=parseFloat(bm.borderTopWidth)||0;bi+=parseFloat(bm.borderLeftWidth)||0}bf=bg;bg=bj.offsetParent}if(j.offset.subtractsBorderForOverflowNotVisible&&bm.overflow!=="visible"){bn+=parseFloat(bm.borderTopWidth)||0;bi+=parseFloat(bm.borderLeftWidth)||0}e=bm}if(e.position==="relative"||e.position==="static"){bn+=bk.offsetTop;bi+=bk.offsetLeft}if(j.offset.supportsFixedPosition&&e.position==="fixed"){bn+=Math.max(bh.scrollTop,bk.scrollTop);bi+=Math.max(bh.scrollLeft,bk.scrollLeft)}return{top:bn,left:bi}}}j.offset={initialize:function(){var bi=J.body,bj=J.createElement("div"),e,bg,bf,bh,bk=parseFloat(j.css(bi,"marginTop"))||0,bl="<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>";j.extend(bj.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});bj.innerHTML=bl;bi.insertBefore(bj,bi.firstChild);e=bj.firstChild;bg=e.firstChild;bh=e.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(bg.offsetTop!==5);this.doesAddBorderForTableAndCells=(bh.offsetTop===5);bg.style.position="fixed";bg.style.top="20px";this.supportsFixedPosition=(bg.offsetTop===20||bg.offsetTop===15);bg.style.position=bg.style.top="";e.style.overflow="hidden";e.style.position="relative";this.subtractsBorderForOverflowNotVisible=(bg.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(bi.offsetTop!==bk);bi.removeChild(bj);j.offset.initialize=j.noop},bodyOffset:function(bg){var bf=bg.offsetTop,e=bg.offsetLeft;j.offset.initialize();if(j.offset.doesNotIncludeMarginInBodyOffset){bf+=parseFloat(j.css(bg,"marginTop"))||0;e+=parseFloat(j.css(bg,"marginLeft"))||0}return{top:bf,left:e}},setOffset:function(bl,bh,bo){var bp=j.css(bl,"position");if(bp==="static"){bl.style.position="relative"}var bn=j(bl),bj=bn.offset(),bi=j.css(bl,"top"),bf=j.css(bl,"left"),bg=(bp==="absolute"||bp==="fixed")&&j.inArray("auto",[bi,bf])>-1,e={},bq={},bk,bm;if(bg){bq=bn.position()}bk=bg?bq.top:parseInt(bi,10)||0;bm=bg?bq.left:parseInt(bf,10)||0;if(j.isFunction(bh)){bh=bh.call(bl,bo,bj)}if(bh.top!=null){e.top=(bh.top-bj.top)+bk}if(bh.left!=null){e.left=(bh.left-bj.left)+bm}if("using"in bh){bh.using.call(bl,e)}else{bn.css(e)}}};j.fn.extend({position:function(){if(!this[0]){return null}var bg=this[0],bf=this.offsetParent(),bh=this.offset(),e=aW.test(bf[0].nodeName)?{top:0,left:0}:bf.offset();bh.top-=parseFloat(j.css(bg,"marginTop"))||0;bh.left-=parseFloat(j.css(bg,"marginLeft"))||0;e.top+=parseFloat(j.css(bf[0],"borderTopWidth"))||0;e.left+=parseFloat(j.css(bf[0],"borderLeftWidth"))||0;return{top:bh.top-e.top,left:bh.left-e.left}},offsetParent:function(){return this.map(function(){var e=this.offsetParent||J.body;while(e&&(!aW.test(e.nodeName)&&j.css(e,"position")==="static")){e=e.offsetParent}return e})}});j.each(["Left","Top"],function(e,bg){var bf="scroll"+bg;j.fn[bf]=function(bj){var bh=this[0],bi;if(!bh){return null}if(bj!==aw){return this.each(function(){bi=aP(this);if(bi){bi.scrollTo(!e?bj:j(bi).scrollLeft(),e?bj:j(bi).scrollTop())}else{this[bf]=bj}})}else{bi=aP(bh);return bi?("pageXOffset"in bi)?bi[e?"pageYOffset":"pageXOffset"]:j.support.boxModel&&bi.document.documentElement[bf]||bi.document.body[bf]:bh[bf]}}});function aP(e){return j.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:false}j.each(["Height","Width"],function(e,bg){var bf=bg.toLowerCase();j.fn["inner"+bg]=function(){return this[0]?parseFloat(j.css(this[0],bf,"padding")):null};j.fn["outer"+bg]=function(bh){return this[0]?parseFloat(j.css(this[0],bf,bh?"margin":"border")):null};j.fn[bf]=function(bh){var bi=this[0];if(!bi){return bh==null?null:this}if(j.isFunction(bh)){return this.each(function(bn){var bm=j(this);bm[bf](bh.call(this,bn,bm[bf]()))})}if(j.isWindow(bi)){var bj=bi.document.documentElement["client"+bg];return bi.document.compatMode==="CSS1Compat"&&bj||bi.document.body["client"+bg]||bj}else{if(bi.nodeType===9){return Math.max(bi.documentElement["client"+bg],bi.body["scroll"+bg],bi.documentElement["scroll"+bg],bi.body["offset"+bg],bi.documentElement["offset"+bg])}else{if(bh===aw){var bk=j.css(bi,bf),bl=parseFloat(bk);return j.isNaN(bl)?bk:bl}else{return this.css(bf,typeof bh==="string"?bh:bh+"px")}}}}});aT.jQuery=aT.$=j})(window);
(function(c,a){var b;c.rails=b={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]",formSubmitSelector:"form",formInputClickSelector:"form input[type=submit], form input[type=image], form button[type=submit], form button:not([type])",disableSelector:"input[data-disable-with], button[data-disable-with], textarea[data-disable-with]",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled",requiredInputSelector:"input[name][required]:not([disabled]),textarea[name][required]:not([disabled])",fileInputSelector:"input:file",CSRFProtection:function(e){var d=c('meta[name="csrf-token"]').attr("content");if(d){e.setRequestHeader("X-CSRF-Token",d)}},fire:function(g,d,f){var e=c.Event(d);g.trigger(e,f);return e.result!==false},confirm:function(d){return confirm(d)},ajax:function(d){return c.ajax(d)},handleRemote:function(h){var g,e,j,i=h.data("cross-domain")||null,d=h.data("type")||(c.ajaxSettings&&c.ajaxSettings.dataType);if(b.fire(h,"ajax:before")){if(h.is("form")){g=h.attr("method");e=h.attr("action");j=h.serializeArray();var f=h.data("ujs:submit-button");if(f){j.push(f);h.data("ujs:submit-button",null)}}else{g=h.data("method");e=h.attr("href");j=h.data("params")||null}b.ajax({url:e,type:g||"GET",data:j,dataType:d,crossDomain:i,beforeSend:function(l,k){if(k.dataType===a){l.setRequestHeader("accept","*/*;q=0.5, "+k.accepts.script)}return b.fire(h,"ajax:beforeSend",[l,k])},success:function(l,k,m){h.trigger("ajax:success",[l,k,m])},complete:function(l,k){h.trigger("ajax:complete",[l,k])},error:function(m,k,l){h.trigger("ajax:error",[m,k,l])}})}},handleMethod:function(j){var e=j.attr("href"),g=j.data("method"),h=c("meta[name=csrf-token]").attr("content"),f=c("meta[name=csrf-param]").attr("content"),i=c('<form method="post" action="'+e+'"></form>'),d='<input name="_method" value="'+g+'" type="hidden" />';if(f!==a&&h!==a){d+='<input name="'+f+'" value="'+h+'" type="hidden" />'}i.hide().append(d).appendTo("body");i.submit()},disableFormElements:function(d){d.find(b.disableSelector).each(function(){var e=c(this),f=e.is("button")?"html":"val";e.data("ujs:enable-with",e[f]());e[f](e.data("disable-with"));e.attr("disabled","disabled")})},enableFormElements:function(d){d.find(b.enableSelector).each(function(){var e=c(this),f=e.is("button")?"html":"val";if(e.data("ujs:enable-with")){e[f](e.data("ujs:enable-with"))}e.removeAttr("disabled")})},allowAction:function(d){var e=d.data("confirm"),f=false,g;if(!e){return true}if(b.fire(d,"confirm")){f=b.confirm(e);g=b.fire(d,"confirm:complete",[f])}return f&&g},blankInputs:function(f,h,d){var g=c(),i,e=h||"input,textarea";f.find(e).each(function(){i=c(this);if(d?i.val():!i.val()){g=g.add(i)}});return g.length?g:false},nonBlankInputs:function(e,d){return b.blankInputs(e,d,true)},stopEverything:function(d){c(d.target).trigger("ujs:everythingStopped");d.stopImmediatePropagation();return false},callFormSubmitBindings:function(d){var f=d.data("events"),e=true;if(f!==a&&f.submit!==a){c.each(f.submit,function(g,h){if(typeof h.handler==="function"){return e=h.handler(h.data)}})}return e}};if("ajaxPrefilter"in c){c.ajaxPrefilter(function(f,e,d){if(!f.crossDomain){b.CSRFProtection(d)}})}else{c(document).ajaxSend(function(d,e,f){if(!f.crossDomain){b.CSRFProtection(e)}})}c(b.linkClickSelector).live("click.rails",function(e){var d=c(this);if(!b.allowAction(d)){return b.stopEverything(e)}if(d.data("remote")!==a){b.handleRemote(d);return false}else{if(d.data("method")){b.handleMethod(d);return false}}});c(b.formSubmitSelector).live("submit.rails",function(f){var d=c(this),e=d.data("remote")!==a,h=b.blankInputs(d,b.requiredInputSelector),g=b.nonBlankInputs(d,b.fileInputSelector);if(!b.allowAction(d)){return b.stopEverything(f)}if(h&&b.fire(d,"ajax:aborted:required",[h])){return b.stopEverything(f)}if(e){if(g){return b.fire(d,"ajax:aborted:file",[g])}if(!c.support.submitBubbles&&b.callFormSubmitBindings(d)===false){return b.stopEverything(f)}b.handleRemote(d);return false}else{setTimeout(function(){b.disableFormElements(d)},13)}});c(b.formInputClickSelector).live("click.rails",function(f){var e=c(this);if(!b.allowAction(e)){return b.stopEverything(f)}var d=e.attr("name"),g=d?{name:d,value:e.val()}:null;e.closest("form").data("ujs:submit-button",g)});c(b.formSubmitSelector).live("ajax:beforeSend.rails",function(d){if(this==d.target){b.disableFormElements(c(this))}});c(b.formSubmitSelector).live("ajax:complete.rails",function(d){if(this==d.target){b.enableFormElements(c(this))}})})(jQuery);
/* DO NOT MODIFY. This file was copied Thu, 14 Jul 2011 23:07:24 GMT from
 * /Users/Jay/Dropbox/projects/DOONITED/doonited/app/assets/javascripts/modernizr-1.5.min.js
 */

/*!
 * Modernizr JavaScript library 1.5
 * http://www.modernizr.com/
 *
 * Copyright (c) 2009-2010 Faruk Ates - http://farukat.es/
 * Dual-licensed under the BSD and MIT licenses.
 * http://www.modernizr.com/license/
 *
 * Featuring major contributions by
 * Paul Irish  - http://paulirish.com
 */
 window.Modernizr=function(i,e,I){function C(a,b){for(var c in a)if(m[a[c]]!==I&&(!b||b(a[c],D)))return true}function r(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);return!!C([a,"Webkit"+c,"Moz"+c,"O"+c,"ms"+c,"Khtml"+c],b)}function P(){j[E]=function(a){for(var b=0,c=a.length;b<c;b++)J[a[b]]=!!(a[b]in n);return J}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" "));j[Q]=function(a){for(var b=0,c,h=a.length;b<h;b++){n.setAttribute("type",a[b]);if(c=n.type!==
 "text"){n.value=K;/tel|search/.test(n.type)||(c=/url|email/.test(n.type)?n.checkValidity&&n.checkValidity()===false:n.value!=K)}L[a[b]]=!!c}return L}("search tel url email datetime date month week time datetime-local number range color".split(" "))}var j={},s=e.documentElement,D=e.createElement("modernizr"),m=D.style,n=e.createElement("input"),E="input",Q=E+"types",K=":)",M=Object.prototype.toString,y=" -o- -moz- -ms- -webkit- -khtml- ".split(" "),d={},L={},J={},N=[],u=function(){var a={select:"input",
 change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},b={};return function(c,h){var t=arguments.length==1;if(t&&b[c])return b[c];h=h||document.createElement(a[c]||"div");c="on"+c;var g=c in h;if(!g&&h.setAttribute){h.setAttribute(c,"return;");g=typeof h[c]=="function"}h=null;return t?(b[c]=g):g}}(),F={}.hasOwnProperty,O;O=typeof F!=="undefined"&&typeof F.call!=="undefined"?function(a,b){return F.call(a,b)}:function(a,b){return b in a&&typeof a.constructor.prototype[b]==="undefined"};
 d.canvas=function(){return!!e.createElement("canvas").getContext};d.canvastext=function(){return!!(d.canvas()&&typeof e.createElement("canvas").getContext("2d").fillText=="function")};d.geolocation=function(){return!!navigator.geolocation};d.crosswindowmessaging=function(){return!!i.postMessage};d.websqldatabase=function(){var a=!!i.openDatabase;if(a)try{a=!!openDatabase("testdb","1.0","html5 test db",2E5)}catch(b){a=false}return a};d.indexedDB=function(){return!!i.indexedDB};d.hashchange=function(){return u("hashchange",
 i)&&(document.documentMode===I||document.documentMode>7)};d.historymanagement=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return u("drag")&&u("dragstart")&&u("dragenter")&&u("dragover")&&u("dragleave")&&u("dragend")&&u("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){m.cssText="background-color:rgba(150,255,150,.5)";return(""+m.backgroundColor).indexOf("rgba")!==-1};d.hsla=function(){m.cssText="background-color:hsla(120,40%,100%,.5)";return(""+
 m.backgroundColor).indexOf("rgba")!==-1};d.multiplebgs=function(){m.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(m.background)};d.backgroundsize=function(){return r("backgroundSize")};d.borderimage=function(){return r("borderImage")};d.borderradius=function(){return r("borderRadius","",function(a){return(""+a).indexOf("orderRadius")!==-1})};d.boxshadow=function(){return r("boxShadow")};d.opacity=function(){var a=y.join("opacity:.5;")+"";m.cssText=a;return(""+m.opacity).indexOf("0.5")!==
 -1};d.cssanimations=function(){return r("animationName")};d.csscolumns=function(){return r("columnCount")};d.cssgradients=function(){var a=("background-image:"+y.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+y.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);m.cssText=a;return(""+m.backgroundImage).indexOf("gradient")!==-1};d.cssreflections=function(){return r("boxReflect")};d.csstransforms=function(){return!!C(["transformProperty",
 "WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!C(["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"]);if(a){var b=document.createElement("style"),c=e.createElement("div");b.textContent="@media ("+y.join("transform-3d),(")+"modernizr){#modernizr{height:3px}}";e.getElementsByTagName("head")[0].appendChild(b);c.id="modernizr";s.appendChild(c);a=c.offsetHeight===3;b.parentNode.removeChild(b);c.parentNode.removeChild(c)}return a};
 d.csstransitions=function(){return r("transitionProperty")};d.fontface=function(){var a;if(/*@cc_on@if(@_jscript_version>=5)!@end@*/0)a=true;else{var b=e.createElement("style"),c=e.createElement("span"),h,t=false,g=e.body,o,w;b.textContent="@font-face{font-family:testfont;src:url('data:font/ttf;base64,AAEAAAAMAIAAAwBAT1MvMliohmwAAADMAAAAVmNtYXCp5qrBAAABJAAAANhjdnQgACICiAAAAfwAAAAEZ2FzcP//AAMAAAIAAAAACGdseWYv5OZoAAACCAAAANxoZWFk69bnvwAAAuQAAAA2aGhlYQUJAt8AAAMcAAAAJGhtdHgGDgC4AAADQAAAABRsb2NhAIQAwgAAA1QAAAAMbWF4cABVANgAAANgAAAAIG5hbWUgXduAAAADgAAABPVwb3N03NkzmgAACHgAAAA4AAECBAEsAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAACAAMDAAAAAAAAgAACbwAAAAoAAAAAAAAAAFBmRWQAAAAgqS8DM/8zAFwDMwDNAAAABQAAAAAAAAAAAAMAAAADAAAAHAABAAAAAABGAAMAAQAAAK4ABAAqAAAABgAEAAEAAgAuqQD//wAAAC6pAP///9ZXAwAAAAAAAAACAAAABgBoAAAAAAAvAAEAAAAAAAAAAAAAAAAAAAABAAIAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEACoAAAAGAAQAAQACAC6pAP//AAAALqkA////1lcDAAAAAAAAAAIAAAAiAogAAAAB//8AAgACACIAAAEyAqoAAwAHAC6xAQAvPLIHBADtMrEGBdw8sgMCAO0yALEDAC88sgUEAO0ysgcGAfw8sgECAO0yMxEhESczESMiARDuzMwCqv1WIgJmAAACAFUAAAIRAc0ADwAfAAATFRQWOwEyNj0BNCYrASIGARQGKwEiJj0BNDY7ATIWFX8aIvAiGhoi8CIaAZIoN/43KCg3/jcoAWD0JB4eJPQkHh7++EY2NkbVRjY2RgAAAAABAEH/+QCdAEEACQAANjQ2MzIWFAYjIkEeEA8fHw8QDxwWFhwWAAAAAQAAAAIAAIuYbWpfDzz1AAsEAAAAAADFn9IuAAAAAMWf0i797/8zA4gDMwAAAAgAAgAAAAAAAAABAAADM/8zAFwDx/3v/98DiAABAAAAAAAAAAAAAAAAAAAABQF2ACIAAAAAAVUAAAJmAFUA3QBBAAAAKgAqACoAWgBuAAEAAAAFAFAABwBUAAQAAgAAAAEAAQAAAEAALgADAAMAAAAQAMYAAQAAAAAAAACLAAAAAQAAAAAAAQAhAIsAAQAAAAAAAgAFAKwAAQAAAAAAAwBDALEAAQAAAAAABAAnAPQAAQAAAAAABQAKARsAAQAAAAAABgAmASUAAQAAAAAADgAaAUsAAwABBAkAAAEWAWUAAwABBAkAAQBCAnsAAwABBAkAAgAKAr0AAwABBAkAAwCGAscAAwABBAkABABOA00AAwABBAkABQAUA5sAAwABBAkABgBMA68AAwABBAkADgA0A/tDb3B5cmlnaHQgMjAwOSBieSBEYW5pZWwgSm9obnNvbi4gIFJlbGVhc2VkIHVuZGVyIHRoZSB0ZXJtcyBvZiB0aGUgT3BlbiBGb250IExpY2Vuc2UuIEtheWFoIExpIGdseXBocyBhcmUgcmVsZWFzZWQgdW5kZXIgdGhlIEdQTCB2ZXJzaW9uIDMuYmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhTGlnaHRiYWVjMmE5MmJmZmU1MDMyIC0gc3Vic2V0IG9mIEZvbnRGb3JnZSAyLjAgOiBKdXJhIExpZ2h0IDogMjMtMS0yMDA5YmFlYzJhOTJiZmZlNTAzMiAtIHN1YnNldCBvZiBKdXJhIExpZ2h0VmVyc2lvbiAyIGJhZWMyYTkyYmZmZTUwMzIgLSBzdWJzZXQgb2YgSnVyYUxpZ2h0aHR0cDovL3NjcmlwdHMuc2lsLm9yZy9PRkwAQwBvAHAAeQByAGkAZwBoAHQAIAAyADAAMAA5ACAAYgB5ACAARABhAG4AaQBlAGwAIABKAG8AaABuAHMAbwBuAC4AIAAgAFIAZQBsAGUAYQBzAGUAZAAgAHUAbgBkAGUAcgAgAHQAaABlACAAdABlAHIAbQBzACAAbwBmACAAdABoAGUAIABPAHAAZQBuACAARgBvAG4AdAAgAEwAaQBjAGUAbgBzAGUALgAgAEsAYQB5AGEAaAAgAEwAaQAgAGcAbAB5AHAAaABzACAAYQByAGUAIAByAGUAbABlAGEAcwBlAGQAIAB1AG4AZABlAHIAIAB0AGgAZQAgAEcAUABMACAAdgBlAHIAcwBpAG8AbgAgADMALgBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQBMAGkAZwBoAHQAYgBhAGUAYwAyAGEAOQAyAGIAZgBmAGUANQAwADMAMgAgAC0AIABzAHUAYgBzAGUAdAAgAG8AZgAgAEYAbwBuAHQARgBvAHIAZwBlACAAMgAuADAAIAA6ACAASgB1AHIAYQAgAEwAaQBnAGgAdAAgADoAIAAyADMALQAxAC0AMgAwADAAOQBiAGEAZQBjADIAYQA5ADIAYgBmAGYAZQA1ADAAMwAyACAALQAgAHMAdQBiAHMAZQB0ACAAbwBmACAASgB1AHIAYQAgAEwAaQBnAGgAdABWAGUAcgBzAGkAbwBuACAAMgAgAGIAYQBlAGMAMgBhADkAMgBiAGYAZgBlADUAMAAzADIAIAAtACAAcwB1AGIAcwBlAHQAIABvAGYAIABKAHUAcgBhAEwAaQBnAGgAdABoAHQAdABwADoALwAvAHMAYwByAGkAcAB0AHMALgBzAGkAbAAuAG8AcgBnAC8ATwBGAEwAAAAAAgAAAAAAAP+BADMAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAQACAQIAEQt6ZXJva2F5YWhsaQ==')}";
 e.getElementsByTagName("head")[0].appendChild(b);c.setAttribute("style","font:99px _,arial,helvetica;position:absolute;visibility:hidden");if(!g){g=s.appendChild(e.createElement("fontface"));t=true}c.innerHTML="........";c.id="fonttest";g.appendChild(c);h=c.offsetWidth*c.offsetHeight;c.style.font="99px testfont,_,arial,helvetica";a=h!==c.offsetWidth*c.offsetHeight;var v=function(){if(g.parentNode){a=j.fontface=h!==c.offsetWidth*c.offsetHeight;s.className=s.className.replace(/(no-)?fontface\b/,"")+
 (a?" ":" no-")+"fontface"}};setTimeout(v,75);setTimeout(v,150);addEventListener("load",function(){v();(w=true)&&o&&o(a);setTimeout(function(){t||(g=c);g.parentNode.removeChild(g);b.parentNode.removeChild(b)},50)},false)}j._fontfaceready=function(p){w||a?p(a):(o=p)};return a||h!==c.offsetWidth};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"');b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};
 d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localStorage=function(){return"localStorage"in i&&i.localStorage!==null};d.sessionStorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webworkers=function(){return!!i.Worker};
 d.applicationCache=function(){var a=i.applicationCache;return!!(a&&typeof a.status!="undefined"&&typeof a.update=="function"&&typeof a.swapCache=="function")};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect};d.smil=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg","animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(M.call(e.createElementNS("http://www.w3.org/2000/svg",
 "clipPath")))};for(var z in d)if(O(d,z))N.push(((j[z.toLowerCase()]=d[z]())?"":"no-")+z.toLowerCase());j[E]||P();j.addTest=function(a,b){a=a.toLowerCase();if(!j[a]){b=!!b();s.className+=" "+(b?"":"no-")+a;j[a]=b;return j}};m.cssText="";D=n=null;(function(){var a=e.createElement("div");a.innerHTML="<elem></elem>";return a.childNodes.length!==1})()&&function(a,b){function c(f,k){if(o[f])o[f].styleSheet.cssText+=k;else{var l=t[G],q=b[A]("style");q.media=f;l.insertBefore(q,l[G]);o[f]=q;c(f,k)}}function h(f,
 k){for(var l=new RegExp("\\b("+w+")\\b(?!.*[;}])","gi"),q=function(B){return".iepp_"+B},x=-1;++x<f.length;){k=f[x].media||k;h(f[x].imports,k);c(k,f[x].cssText.replace(l,q))}}for(var t=b.documentElement,g=b.createDocumentFragment(),o={},w="abbr|article|aside|audio|canvas|command|datalist|details|figure|figcaption|footer|header|hgroup|keygen|mark|meter|nav|output|progress|section|source|summary|time|video",v=w.split("|"),p=[],H=-1,G="firstChild",A="createElement";++H<v.length;){b[A](v[H]);g[A](v[H])}g=
 g.appendChild(b[A]("div"));a.attachEvent("onbeforeprint",function(){for(var f,k=b.getElementsByTagName("*"),l,q,x=new RegExp("^"+w+"$","i"),B=-1;++B<k.length;)if((f=k[B])&&(q=f.nodeName.match(x))){l=new RegExp("^\\s*<"+q+"(.*)\\/"+q+">\\s*$","i");g.innerHTML=f.outerHTML.replace(/\r|\n/g," ").replace(l,f.currentStyle.display=="block"?"<div$1/div>":"<span$1/span>");l=g.childNodes[0];l.className+=" iepp_"+q;l=p[p.length]=[f,l];f.parentNode.replaceChild(l[1],l[0])}h(b.styleSheets,"all")});a.attachEvent("onafterprint",
 function(){for(var f=-1,k;++f<p.length;)p[f][1].parentNode.replaceChild(p[f][0],p[f][1]);for(k in o)t[G].removeChild(o[k]);o={};p=[]})}(this,e);j._enableHTML5=true;j._version="1.5";s.className=s.className.replace(/\bno-js\b/,"")+" js";s.className+=" "+N.join(" ");return j}(this,this.document);
jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return-h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return-h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return-h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return-h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return-h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return-h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return-h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return-h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(l,g,k,j,h){var i=1.70158;var f=0;var e=j;if(g==0){return k}if((g/=h)==1){return k+j}if(!f){f=h*0.3}if(e<Math.abs(j)){e=j;var i=f/4}else{var i=f/(2*Math.PI)*Math.asin(j/e)}return-(e*Math.pow(2,10*(g-=1))*Math.sin((g*h-i)*(2*Math.PI)/f))+k},easeOutElastic:function(l,g,k,j,h){var i=1.70158;var f=0;var e=j;if(g==0){return k}if((g/=h)==1){return k+j}if(!f){f=h*0.3}if(e<Math.abs(j)){e=j;var i=f/4}else{var i=f/(2*Math.PI)*Math.asin(j/e)}return e*Math.pow(2,-10*g)*Math.sin((g*h-i)*(2*Math.PI)/f)+j+k},easeInOutElastic:function(l,g,k,j,h){var i=1.70158;var f=0;var e=j;if(g==0){return k}if((g/=h/2)==2){return k+j}if(!f){f=h*(0.3*1.5)}if(e<Math.abs(j)){e=j;var i=f/4}else{var i=f/(2*Math.PI)*Math.asin(j/e)}if(g<1){return-0.5*(e*Math.pow(2,10*(g-=1))*Math.sin((g*h-i)*(2*Math.PI)/f))+k}return e*Math.pow(2,-10*(g-=1))*Math.sin((g*h-i)*(2*Math.PI)/f)*0.5+j+k},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
/*!
 * 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(c,j){function k(a,b){var d=a.nodeName.toLowerCase();if("area"===d){b=a.parentNode;d=b.name;if(!a.href||!d||b.nodeName.toLowerCase()!=="map")return false;a=c("img[usemap=#"+d+"]")[0];return!!a&&l(a)}return(/input|select|textarea|button|object/.test(d)?!a.disabled:"a"==d?a.href||b:b)&&l(a)}function l(a){return!c(a).parents().andSelf().filter(function(){return c.curCSS(this,"visibility")==="hidden"||c.expr.filters.hidden(this)}).length}c.ui=c.ui||{};if(!c.ui.version){c.extend(c.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}});c.fn.extend({_focus:c.fn.focus,focus:function(a,b){return typeof a==="number"?this.each(function(){var d=this;setTimeout(function(){c(d).focus();
b&&b.call(d)},a)}):this._focus.apply(this,arguments)},scrollParent:function(){var a;a=c.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter(function(){return/(relative|absolute|fixed)/.test(c.curCSS(this,"position",1))&&/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0):this.parents().filter(function(){return/(auto|scroll)/.test(c.curCSS(this,"overflow",1)+c.curCSS(this,
"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!a.length?c(document):a},zIndex:function(a){if(a!==j)return this.css("zIndex",a);if(this.length){a=c(this[0]);for(var b;a.length&&a[0]!==document;){b=a.css("position");if(b==="absolute"||b==="relative"||b==="fixed"){b=parseInt(a.css("zIndex"),10);if(!isNaN(b)&&b!==0)return b}a=a.parent()}}return 0},disableSelection:function(){return this.bind((c.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",
function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});c.each(["Width","Height"],function(a,b){function d(f,g,m,n){c.each(e,function(){g-=parseFloat(c.curCSS(f,"padding"+this,true))||0;if(m)g-=parseFloat(c.curCSS(f,"border"+this+"Width",true))||0;if(n)g-=parseFloat(c.curCSS(f,"margin"+this,true))||0});return g}var e=b==="Width"?["Left","Right"]:["Top","Bottom"],h=b.toLowerCase(),i={innerWidth:c.fn.innerWidth,innerHeight:c.fn.innerHeight,outerWidth:c.fn.outerWidth,
outerHeight:c.fn.outerHeight};c.fn["inner"+b]=function(f){if(f===j)return i["inner"+b].call(this);return this.each(function(){c(this).css(h,d(this,f)+"px")})};c.fn["outer"+b]=function(f,g){if(typeof f!=="number")return i["outer"+b].call(this,f);return this.each(function(){c(this).css(h,d(this,f,true,g)+"px")})}});c.extend(c.expr[":"],{data:function(a,b,d){return!!c.data(a,d[3])},focusable:function(a){return k(a,!isNaN(c.attr(a,"tabindex")))},tabbable:function(a){var b=c.attr(a,"tabindex"),d=isNaN(b);
return(d||b>=0)&&k(a,!d)}});c(function(){var a=document.body,b=a.appendChild(b=document.createElement("div"));c.extend(b.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});c.support.minHeight=b.offsetHeight===100;c.support.selectstart="onselectstart"in b;a.removeChild(b).style.display="none"});c.extend(c.ui,{plugin:{add:function(a,b,d){a=c.ui[a].prototype;for(var e in d){a.plugins[e]=a.plugins[e]||[];a.plugins[e].push([b,d[e]])}},call:function(a,b,d){if((b=a.plugins[b])&&a.element[0].parentNode)for(var e=
0;e<b.length;e++)a.options[b[e][0]]&&b[e][1].apply(a.element,d)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(a,b){if(c(a).css("overflow")==="hidden")return false;b=b&&b==="left"?"scrollLeft":"scrollTop";var d=false;if(a[b]>0)return true;a[b]=1;d=a[b]>0;a[b]=0;return d},isOverAxis:function(a,b,d){return a>b&&a<b+d},isOver:function(a,b,d,e,h,i){return c.ui.isOverAxis(a,d,h)&&c.ui.isOverAxis(b,e,i)}})}})(jQuery);
;/*
 * jQuery UI Datepicker 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/Datepicker
 *
 * Depends:
 *	jquery.ui.core.js
 */
(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)/864E5)/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)/1E4);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*1E7,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())/864E5),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()*1E4+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);
;/*
 * jQuery UI Effects 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/Effects/
 */
jQuery.effects||function(f,j){function m(c){var a;if(c&&c.constructor==Array&&c.length==3)return c;if(a=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(c))return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)];if(a=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(c))return[parseFloat(a[1])*2.55,parseFloat(a[2])*2.55,parseFloat(a[3])*2.55];if(a=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(c))return[parseInt(a[1],
16),parseInt(a[2],16),parseInt(a[3],16)];if(a=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(c))return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)];if(/rgba\(0, 0, 0, 0\)/.exec(c))return n.transparent;return n[f.trim(c).toLowerCase()]}function s(c,a){var b;do{b=f.curCSS(c,a);if(b!=""&&b!="transparent"||f.nodeName(c,"body"))break;a="backgroundColor"}while(c=c.parentNode);return m(b)}function o(){var c=document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle,
a={},b,d;if(c&&c.length&&c[0]&&c[c[0]])for(var e=c.length;e--;){b=c[e];if(typeof c[b]=="string"){d=b.replace(/\-(\w)/g,function(g,h){return h.toUpperCase()});a[d]=c[b]}}else for(b in c)if(typeof c[b]==="string")a[b]=c[b];return a}function p(c){var a,b;for(a in c){b=c[a];if(b==null||f.isFunction(b)||a in t||/scrollbar/.test(a)||!/color/i.test(a)&&isNaN(parseFloat(b)))delete c[a]}return c}function u(c,a){var b={_:0},d;for(d in a)if(c[d]!=a[d])b[d]=a[d];return b}function k(c,a,b,d){if(typeof c=="object"){d=
a;b=null;a=c;c=a.effect}if(f.isFunction(a)){d=a;b=null;a={}}if(typeof a=="number"||f.fx.speeds[a]){d=b;b=a;a={}}if(f.isFunction(b)){d=b;b=null}a=a||{};b=b||a.duration;b=f.fx.off?0:typeof b=="number"?b:b in f.fx.speeds?f.fx.speeds[b]:f.fx.speeds._default;d=d||a.complete;return[c,a,b,d]}function l(c){if(!c||typeof c==="number"||f.fx.speeds[c])return true;if(typeof c==="string"&&!f.effects[c])return true;return false}f.effects={};f.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor",
"borderTopColor","borderColor","color","outlineColor"],function(c,a){f.fx.step[a]=function(b){if(!b.colorInit){b.start=s(b.elem,a);b.end=m(b.end);b.colorInit=true}b.elem.style[a]="rgb("+Math.max(Math.min(parseInt(b.pos*(b.end[0]-b.start[0])+b.start[0],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[1]-b.start[1])+b.start[1],10),255),0)+","+Math.max(Math.min(parseInt(b.pos*(b.end[2]-b.start[2])+b.start[2],10),255),0)+")"}});var n={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]},q=["add","remove","toggle"],t={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};f.effects.animateClass=function(c,a,b,
d){if(f.isFunction(b)){d=b;b=null}return this.queue(function(){var e=f(this),g=e.attr("style")||" ",h=p(o.call(this)),r,v=e.attr("class");f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});r=p(o.call(this));e.attr("class",v);e.animate(u(h,r),{queue:false,duration:a,easing:b,complete:function(){f.each(q,function(w,i){c[i]&&e[i+"Class"](c[i])});if(typeof e.attr("style")=="object"){e.attr("style").cssText="";e.attr("style").cssText=g}else e.attr("style",g);d&&d.apply(this,arguments);f.dequeue(this)}})})};
f.fn.extend({_addClass:f.fn.addClass,addClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{add:c},a,b,d]):this._addClass(c)},_removeClass:f.fn.removeClass,removeClass:function(c,a,b,d){return a?f.effects.animateClass.apply(this,[{remove:c},a,b,d]):this._removeClass(c)},_toggleClass:f.fn.toggleClass,toggleClass:function(c,a,b,d,e){return typeof a=="boolean"||a===j?b?f.effects.animateClass.apply(this,[a?{add:c}:{remove:c},b,d,e]):this._toggleClass(c,a):f.effects.animateClass.apply(this,
[{toggle:c},a,b,d])},switchClass:function(c,a,b,d,e){return f.effects.animateClass.apply(this,[{add:a,remove:c},b,d,e])}});f.extend(f.effects,{version:"1.8.14",save:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.data("ec.storage."+a[b],c[0].style[a[b]])},restore:function(c,a){for(var b=0;b<a.length;b++)a[b]!==null&&c.css(a[b],c.data("ec.storage."+a[b]))},setMode:function(c,a){if(a=="toggle")a=c.is(":hidden")?"show":"hide";return a},getBaseline:function(c,a){var b;switch(c[0]){case "top":b=
0;break;case "middle":b=0.5;break;case "bottom":b=1;break;default:b=c[0]/a.height}switch(c[1]){case "left":c=0;break;case "center":c=0.5;break;case "right":c=1;break;default:c=c[1]/a.width}return{x:c,y:b}},createWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent();var a={width:c.outerWidth(true),height:c.outerHeight(true),"float":c.css("float")},b=f("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0});
c.wrap(b);b=c.parent();if(c.css("position")=="static"){b.css({position:"relative"});c.css({position:"relative"})}else{f.extend(a,{position:c.css("position"),zIndex:c.css("z-index")});f.each(["top","left","bottom","right"],function(d,e){a[e]=c.css(e);if(isNaN(parseInt(a[e],10)))a[e]="auto"});c.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})}return b.css(a).show()},removeWrapper:function(c){if(c.parent().is(".ui-effects-wrapper"))return c.parent().replaceWith(c);return c},setTransition:function(c,
a,b,d){d=d||{};f.each(a,function(e,g){unit=c.cssUnit(g);if(unit[0]>0)d[g]=unit[0]*b+unit[1]});return d}});f.fn.extend({effect:function(c){var a=k.apply(this,arguments),b={options:a[1],duration:a[2],callback:a[3]};a=b.options.mode;var d=f.effects[c];if(f.fx.off||!d)return a?this[a](b.duration,b.callback):this.each(function(){b.callback&&b.callback.call(this)});return d.call(this,b)},_show:f.fn.show,show:function(c){if(l(c))return this._show.apply(this,arguments);else{var a=k.apply(this,arguments);
a[1].mode="show";return this.effect.apply(this,a)}},_hide:f.fn.hide,hide:function(c){if(l(c))return this._hide.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="hide";return this.effect.apply(this,a)}},__toggle:f.fn.toggle,toggle:function(c){if(l(c)||typeof c==="boolean"||f.isFunction(c))return this.__toggle.apply(this,arguments);else{var a=k.apply(this,arguments);a[1].mode="toggle";return this.effect.apply(this,a)}},cssUnit:function(c){var a=this.css(c),b=[];f.each(["em","px","%",
"pt"],function(d,e){if(a.indexOf(e)>0)b=[parseFloat(a),e]});return b}});f.easing.jswing=f.easing.swing;f.extend(f.easing,{def:"easeOutQuad",swing:function(c,a,b,d,e){return f.easing[f.easing.def](c,a,b,d,e)},easeInQuad:function(c,a,b,d,e){return d*(a/=e)*a+b},easeOutQuad:function(c,a,b,d,e){return-d*(a/=e)*(a-2)+b},easeInOutQuad:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a+b;return-d/2*(--a*(a-2)-1)+b},easeInCubic:function(c,a,b,d,e){return d*(a/=e)*a*a+b},easeOutCubic:function(c,a,b,d,e){return d*
((a=a/e-1)*a*a+1)+b},easeInOutCubic:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a+b;return d/2*((a-=2)*a*a+2)+b},easeInQuart:function(c,a,b,d,e){return d*(a/=e)*a*a*a+b},easeOutQuart:function(c,a,b,d,e){return-d*((a=a/e-1)*a*a*a-1)+b},easeInOutQuart:function(c,a,b,d,e){if((a/=e/2)<1)return d/2*a*a*a*a+b;return-d/2*((a-=2)*a*a*a-2)+b},easeInQuint:function(c,a,b,d,e){return d*(a/=e)*a*a*a*a+b},easeOutQuint:function(c,a,b,d,e){return d*((a=a/e-1)*a*a*a*a+1)+b},easeInOutQuint:function(c,a,b,d,e){if((a/=
e/2)<1)return d/2*a*a*a*a*a+b;return d/2*((a-=2)*a*a*a*a+2)+b},easeInSine:function(c,a,b,d,e){return-d*Math.cos(a/e*(Math.PI/2))+d+b},easeOutSine:function(c,a,b,d,e){return d*Math.sin(a/e*(Math.PI/2))+b},easeInOutSine:function(c,a,b,d,e){return-d/2*(Math.cos(Math.PI*a/e)-1)+b},easeInExpo:function(c,a,b,d,e){return a==0?b:d*Math.pow(2,10*(a/e-1))+b},easeOutExpo:function(c,a,b,d,e){return a==e?b+d:d*(-Math.pow(2,-10*a/e)+1)+b},easeInOutExpo:function(c,a,b,d,e){if(a==0)return b;if(a==e)return b+d;if((a/=
e/2)<1)return d/2*Math.pow(2,10*(a-1))+b;return d/2*(-Math.pow(2,-10*--a)+2)+b},easeInCirc:function(c,a,b,d,e){return-d*(Math.sqrt(1-(a/=e)*a)-1)+b},easeOutCirc:function(c,a,b,d,e){return d*Math.sqrt(1-(a=a/e-1)*a)+b},easeInOutCirc:function(c,a,b,d,e){if((a/=e/2)<1)return-d/2*(Math.sqrt(1-a*a)-1)+b;return d/2*(Math.sqrt(1-(a-=2)*a)+1)+b},easeInElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/
h);return-(h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g))+b},easeOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e)==1)return b+d;g||(g=e*0.3);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*a)*Math.sin((a*e-c)*2*Math.PI/g)+d+b},easeInOutElastic:function(c,a,b,d,e){c=1.70158;var g=0,h=d;if(a==0)return b;if((a/=e/2)==2)return b+d;g||(g=e*0.3*1.5);if(h<Math.abs(d)){h=d;c=g/4}else c=g/(2*Math.PI)*Math.asin(d/h);if(a<1)return-0.5*
h*Math.pow(2,10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)+b;return h*Math.pow(2,-10*(a-=1))*Math.sin((a*e-c)*2*Math.PI/g)*0.5+d+b},easeInBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*(a/=e)*a*((g+1)*a-g)+b},easeOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;return d*((a=a/e-1)*a*((g+1)*a+g)+1)+b},easeInOutBack:function(c,a,b,d,e,g){if(g==j)g=1.70158;if((a/=e/2)<1)return d/2*a*a*(((g*=1.525)+1)*a-g)+b;return d/2*((a-=2)*a*(((g*=1.525)+1)*a+g)+2)+b},easeInBounce:function(c,a,b,d,e){return d-f.easing.easeOutBounce(c,
e-a,0,d,e)+b},easeOutBounce:function(c,a,b,d,e){return(a/=e)<1/2.75?d*7.5625*a*a+b:a<2/2.75?d*(7.5625*(a-=1.5/2.75)*a+0.75)+b:a<2.5/2.75?d*(7.5625*(a-=2.25/2.75)*a+0.9375)+b:d*(7.5625*(a-=2.625/2.75)*a+0.984375)+b},easeInOutBounce:function(c,a,b,d,e){if(a<e/2)return f.easing.easeInBounce(c,a*2,0,d,e)*0.5+b;return f.easing.easeOutBounce(c,a*2-e,0,d,e)*0.5+d*0.5+b}})}(jQuery);
;/*
 * jQuery UI Effects Blind 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/Effects/Blind
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(b){b.effects.blind=function(c){return this.queue(function(){var a=b(this),g=["position","top","bottom","left","right"],f=b.effects.setMode(a,c.options.mode||"hide"),d=c.options.direction||"vertical";b.effects.save(a,g);a.show();var e=b.effects.createWrapper(a).css({overflow:"hidden"}),h=d=="vertical"?"height":"width";d=d=="vertical"?e.height():e.width();f=="show"&&e.css(h,0);var i={};i[h]=f=="show"?d:0;e.animate(i,c.duration,c.options.easing,function(){f=="hide"&&a.hide();b.effects.restore(a,
g);b.effects.removeWrapper(a);c.callback&&c.callback.apply(a[0],arguments);a.dequeue()})})}})(jQuery);
;/*
 * jQuery UI Effects Bounce 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/Effects/Bounce
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(e){e.effects.bounce=function(b){return this.queue(function(){var a=e(this),l=["position","top","bottom","left","right"],h=e.effects.setMode(a,b.options.mode||"effect"),d=b.options.direction||"up",c=b.options.distance||20,m=b.options.times||5,i=b.duration||250;/show|hide/.test(h)&&l.push("opacity");e.effects.save(a,l);a.show();e.effects.createWrapper(a);var f=d=="up"||d=="down"?"top":"left";d=d=="up"||d=="left"?"pos":"neg";c=b.options.distance||(f=="top"?a.outerHeight({margin:true})/3:a.outerWidth({margin:true})/
3);if(h=="show")a.css("opacity",0).css(f,d=="pos"?-c:c);if(h=="hide")c/=m*2;h!="hide"&&m--;if(h=="show"){var g={opacity:1};g[f]=(d=="pos"?"+=":"-=")+c;a.animate(g,i/2,b.options.easing);c/=2;m--}for(g=0;g<m;g++){var j={},k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing);c=h=="hide"?c*2:c/2}if(h=="hide"){g={opacity:0};g[f]=(d=="pos"?"-=":"+=")+c;a.animate(g,i/2,b.options.easing,function(){a.hide();e.effects.restore(a,l);e.effects.removeWrapper(a);
b.callback&&b.callback.apply(this,arguments)})}else{j={};k={};j[f]=(d=="pos"?"-=":"+=")+c;k[f]=(d=="pos"?"+=":"-=")+c;a.animate(j,i/2,b.options.easing).animate(k,i/2,b.options.easing,function(){e.effects.restore(a,l);e.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments)})}a.queue("fx",function(){a.dequeue()});a.dequeue()})}})(jQuery);
;/*
 * jQuery UI Effects Clip 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/Effects/Clip
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(b){b.effects.clip=function(e){return this.queue(function(){var a=b(this),i=["position","top","bottom","left","right","height","width"],f=b.effects.setMode(a,e.options.mode||"hide"),c=e.options.direction||"vertical";b.effects.save(a,i);a.show();var d=b.effects.createWrapper(a).css({overflow:"hidden"});d=a[0].tagName=="IMG"?d:a;var g={size:c=="vertical"?"height":"width",position:c=="vertical"?"top":"left"};c=c=="vertical"?d.height():d.width();if(f=="show"){d.css(g.size,0);d.css(g.position,
c/2)}var h={};h[g.size]=f=="show"?c:0;h[g.position]=f=="show"?0:c/2;d.animate(h,{queue:false,duration:e.duration,easing:e.options.easing,complete:function(){f=="hide"&&a.hide();b.effects.restore(a,i);b.effects.removeWrapper(a);e.callback&&e.callback.apply(a[0],arguments);a.dequeue()}})})}})(jQuery);
;/*
 * jQuery UI Effects Drop 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/Effects/Drop
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(c){c.effects.drop=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right","opacity"],e=c.effects.setMode(a,d.options.mode||"hide"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a);var f=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var g=d.options.distance||(f=="top"?a.outerHeight({margin:true})/2:a.outerWidth({margin:true})/2);if(e=="show")a.css("opacity",0).css(f,b=="pos"?-g:g);var i={opacity:e==
"show"?1:0};i[f]=(e=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+g;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){e=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
;/*
 * jQuery UI Effects Explode 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/Effects/Explode
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(j){j.effects.explode=function(a){return this.queue(function(){var c=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3,d=a.options.pieces?Math.round(Math.sqrt(a.options.pieces)):3;a.options.mode=a.options.mode=="toggle"?j(this).is(":visible")?"hide":"show":a.options.mode;var b=j(this).show().css("visibility","hidden"),g=b.offset();g.top-=parseInt(b.css("marginTop"),10)||0;g.left-=parseInt(b.css("marginLeft"),10)||0;for(var h=b.outerWidth(true),i=b.outerHeight(true),e=0;e<c;e++)for(var f=
0;f<d;f++)b.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-f*(h/d),top:-e*(i/c)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:h/d,height:i/c,left:g.left+f*(h/d)+(a.options.mode=="show"?(f-Math.floor(d/2))*(h/d):0),top:g.top+e*(i/c)+(a.options.mode=="show"?(e-Math.floor(c/2))*(i/c):0),opacity:a.options.mode=="show"?0:1}).animate({left:g.left+f*(h/d)+(a.options.mode=="show"?0:(f-Math.floor(d/2))*(h/d)),top:g.top+
e*(i/c)+(a.options.mode=="show"?0:(e-Math.floor(c/2))*(i/c)),opacity:a.options.mode=="show"?1:0},a.duration||500);setTimeout(function(){a.options.mode=="show"?b.css({visibility:"visible"}):b.css({visibility:"visible"}).hide();a.callback&&a.callback.apply(b[0]);b.dequeue();j("div.ui-effects-explode").remove()},a.duration||500)})}})(jQuery);
;/*
 * jQuery UI Effects Fade 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/Effects/Fade
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(b){b.effects.fade=function(a){return this.queue(function(){var c=b(this),d=b.effects.setMode(c,a.options.mode||"hide");c.animate({opacity:d},{queue:false,duration:a.duration,easing:a.options.easing,complete:function(){a.callback&&a.callback.apply(this,arguments);c.dequeue()}})})}})(jQuery);
;/*
 * jQuery UI Effects Fold 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/Effects/Fold
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(c){c.effects.fold=function(a){return this.queue(function(){var b=c(this),j=["position","top","bottom","left","right"],d=c.effects.setMode(b,a.options.mode||"hide"),g=a.options.size||15,h=!!a.options.horizFirst,k=a.duration?a.duration/2:c.fx.speeds._default/2;c.effects.save(b,j);b.show();var e=c.effects.createWrapper(b).css({overflow:"hidden"}),f=d=="show"!=h,l=f?["width","height"]:["height","width"];f=f?[e.width(),e.height()]:[e.height(),e.width()];var i=/([0-9]+)%/.exec(g);if(i)g=parseInt(i[1],
10)/100*f[d=="hide"?0:1];if(d=="show")e.css(h?{height:0,width:g}:{height:g,width:0});h={};i={};h[l[0]]=d=="show"?f[0]:g;i[l[1]]=d=="show"?f[1]:0;e.animate(h,k,a.options.easing).animate(i,k,a.options.easing,function(){d=="hide"&&b.hide();c.effects.restore(b,j);c.effects.removeWrapper(b);a.callback&&a.callback.apply(b[0],arguments);b.dequeue()})})}})(jQuery);
;/*
 * jQuery UI Effects Highlight 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/Effects/Highlight
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(b){b.effects.highlight=function(c){return this.queue(function(){var a=b(this),e=["backgroundImage","backgroundColor","opacity"],d=b.effects.setMode(a,c.options.mode||"show"),f={backgroundColor:a.css("backgroundColor")};if(d=="hide")f.opacity=0;b.effects.save(a,e);a.show().css({backgroundImage:"none",backgroundColor:c.options.color||"#ffff99"}).animate(f,{queue:false,duration:c.duration,easing:c.options.easing,complete:function(){d=="hide"&&a.hide();b.effects.restore(a,e);d=="show"&&!b.support.opacity&&
this.style.removeAttribute("filter");c.callback&&c.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
;/*
 * jQuery UI Effects Pulsate 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/Effects/Pulsate
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(d){d.effects.pulsate=function(a){return this.queue(function(){var b=d(this),c=d.effects.setMode(b,a.options.mode||"show");times=(a.options.times||5)*2-1;duration=a.duration?a.duration/2:d.fx.speeds._default/2;isVisible=b.is(":visible");animateTo=0;if(!isVisible){b.css("opacity",0).show();animateTo=1}if(c=="hide"&&isVisible||c=="show"&&!isVisible)times--;for(c=0;c<times;c++){b.animate({opacity:animateTo},duration,a.options.easing);animateTo=(animateTo+1)%2}b.animate({opacity:animateTo},duration,
a.options.easing,function(){animateTo==0&&b.hide();a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()}).dequeue()})}})(jQuery);
;/*
 * jQuery UI Effects Scale 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/Effects/Scale
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(c){c.effects.puff=function(b){return this.queue(function(){var a=c(this),e=c.effects.setMode(a,b.options.mode||"hide"),g=parseInt(b.options.percent,10)||150,h=g/100,i={height:a.height(),width:a.width()};c.extend(b.options,{fade:true,mode:e,percent:e=="hide"?g:100,from:e=="hide"?i:{height:i.height*h,width:i.width*h}});a.effect("scale",b.options,b.duration,b.callback);a.dequeue()})};c.effects.scale=function(b){return this.queue(function(){var a=c(this),e=c.extend(true,{},b.options),g=c.effects.setMode(a,
b.options.mode||"effect"),h=parseInt(b.options.percent,10)||(parseInt(b.options.percent,10)==0?0:g=="hide"?0:100),i=b.options.direction||"both",f=b.options.origin;if(g!="effect"){e.origin=f||["middle","center"];e.restore=true}f={height:a.height(),width:a.width()};a.from=b.options.from||(g=="show"?{height:0,width:0}:f);h={y:i!="horizontal"?h/100:1,x:i!="vertical"?h/100:1};a.to={height:f.height*h.y,width:f.width*h.x};if(b.options.fade){if(g=="show"){a.from.opacity=0;a.to.opacity=1}if(g=="hide"){a.from.opacity=
1;a.to.opacity=0}}e.from=a.from;e.to=a.to;e.mode=g;a.effect("size",e,b.duration,b.callback);a.dequeue()})};c.effects.size=function(b){return this.queue(function(){var a=c(this),e=["position","top","bottom","left","right","width","height","overflow","opacity"],g=["position","top","bottom","left","right","overflow","opacity"],h=["width","height","overflow"],i=["fontSize"],f=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],k=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],
p=c.effects.setMode(a,b.options.mode||"effect"),n=b.options.restore||false,m=b.options.scale||"both",l=b.options.origin,j={height:a.height(),width:a.width()};a.from=b.options.from||j;a.to=b.options.to||j;if(l){l=c.effects.getBaseline(l,j);a.from.top=(j.height-a.from.height)*l.y;a.from.left=(j.width-a.from.width)*l.x;a.to.top=(j.height-a.to.height)*l.y;a.to.left=(j.width-a.to.width)*l.x}var d={from:{y:a.from.height/j.height,x:a.from.width/j.width},to:{y:a.to.height/j.height,x:a.to.width/j.width}};
if(m=="box"||m=="both"){if(d.from.y!=d.to.y){e=e.concat(f);a.from=c.effects.setTransition(a,f,d.from.y,a.from);a.to=c.effects.setTransition(a,f,d.to.y,a.to)}if(d.from.x!=d.to.x){e=e.concat(k);a.from=c.effects.setTransition(a,k,d.from.x,a.from);a.to=c.effects.setTransition(a,k,d.to.x,a.to)}}if(m=="content"||m=="both")if(d.from.y!=d.to.y){e=e.concat(i);a.from=c.effects.setTransition(a,i,d.from.y,a.from);a.to=c.effects.setTransition(a,i,d.to.y,a.to)}c.effects.save(a,n?e:g);a.show();c.effects.createWrapper(a);
a.css("overflow","hidden").css(a.from);if(m=="content"||m=="both"){f=f.concat(["marginTop","marginBottom"]).concat(i);k=k.concat(["marginLeft","marginRight"]);h=e.concat(f).concat(k);a.find("*[width]").each(function(){child=c(this);n&&c.effects.save(child,h);var o={height:child.height(),width:child.width()};child.from={height:o.height*d.from.y,width:o.width*d.from.x};child.to={height:o.height*d.to.y,width:o.width*d.to.x};if(d.from.y!=d.to.y){child.from=c.effects.setTransition(child,f,d.from.y,child.from);
child.to=c.effects.setTransition(child,f,d.to.y,child.to)}if(d.from.x!=d.to.x){child.from=c.effects.setTransition(child,k,d.from.x,child.from);child.to=c.effects.setTransition(child,k,d.to.x,child.to)}child.css(child.from);child.animate(child.to,b.duration,b.options.easing,function(){n&&c.effects.restore(child,h)})})}a.animate(a.to,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){a.to.opacity===0&&a.css("opacity",a.from.opacity);p=="hide"&&a.hide();c.effects.restore(a,
n?e:g);c.effects.removeWrapper(a);b.callback&&b.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
;/*
 * jQuery UI Effects Shake 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/Effects/Shake
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(d){d.effects.shake=function(a){return this.queue(function(){var b=d(this),j=["position","top","bottom","left","right"];d.effects.setMode(b,a.options.mode||"effect");var c=a.options.direction||"left",e=a.options.distance||20,l=a.options.times||3,f=a.duration||a.options.duration||140;d.effects.save(b,j);b.show();d.effects.createWrapper(b);var g=c=="up"||c=="down"?"top":"left",h=c=="up"||c=="left"?"pos":"neg";c={};var i={},k={};c[g]=(h=="pos"?"-=":"+=")+e;i[g]=(h=="pos"?"+=":"-=")+e*2;k[g]=
(h=="pos"?"-=":"+=")+e*2;b.animate(c,f,a.options.easing);for(e=1;e<l;e++)b.animate(i,f,a.options.easing).animate(k,f,a.options.easing);b.animate(i,f,a.options.easing).animate(c,f/2,a.options.easing,function(){d.effects.restore(b,j);d.effects.removeWrapper(b);a.callback&&a.callback.apply(this,arguments)});b.queue("fx",function(){b.dequeue()});b.dequeue()})}})(jQuery);
;/*
 * jQuery UI Effects Slide 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/Effects/Slide
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(c){c.effects.slide=function(d){return this.queue(function(){var a=c(this),h=["position","top","bottom","left","right"],f=c.effects.setMode(a,d.options.mode||"show"),b=d.options.direction||"left";c.effects.save(a,h);a.show();c.effects.createWrapper(a).css({overflow:"hidden"});var g=b=="up"||b=="down"?"top":"left";b=b=="up"||b=="left"?"pos":"neg";var e=d.options.distance||(g=="top"?a.outerHeight({margin:true}):a.outerWidth({margin:true}));if(f=="show")a.css(g,b=="pos"?isNaN(e)?"-"+e:-e:e);
var i={};i[g]=(f=="show"?b=="pos"?"+=":"-=":b=="pos"?"-=":"+=")+e;a.animate(i,{queue:false,duration:d.duration,easing:d.options.easing,complete:function(){f=="hide"&&a.hide();c.effects.restore(a,h);c.effects.removeWrapper(a);d.callback&&d.callback.apply(this,arguments);a.dequeue()}})})}})(jQuery);
;/*
 * jQuery UI Effects Transfer 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/Effects/Transfer
 *
 * Depends:
 *	jquery.effects.core.js
 */
(function(e){e.effects.transfer=function(a){return this.queue(function(){var b=e(this),c=e(a.options.to),d=c.offset();c={top:d.top,left:d.left,height:c.innerHeight(),width:c.innerWidth()};d=b.offset();var f=e('<div class="ui-effects-transfer"></div>').appendTo(document.body).addClass(a.options.className).css({top:d.top,left:d.left,height:b.innerHeight(),width:b.innerWidth(),position:"absolute"}).animate(c,a.duration,a.options.easing,function(){f.remove();a.callback&&a.callback.apply(b[0],arguments);
b.dequeue()})})}})(jQuery);
;
(function(a){a.extend(a.fn,{livequery:function(d,c,g){var f=this,e;if(a.isFunction(d)){g=c,c=d,d=undefined}a.each(a.livequery.queries,function(h,i){if(f.selector==i.selector&&f.context==i.context&&d==i.type&&(!c||c.$lqguid==i.fn.$lqguid)&&(!g||g.$lqguid==i.fn2.$lqguid)){return(e=i)&&false}});e=e||new a.livequery(this.selector,this.context,d,c,g);e.stopped=false;e.run();return this},expire:function(f,e,d){var c=this;if(a.isFunction(f)){d=e,e=f,f=undefined}a.each(a.livequery.queries,function(g,h){if(c.selector==h.selector&&c.context==h.context&&(!f||f==h.type)&&(!e||e.$lqguid==h.fn.$lqguid)&&(!d||d.$lqguid==h.fn2.$lqguid)&&!this.stopped){a.livequery.stop(h.id)}});return this}});a.livequery=function(f,c,e,d,g){this.selector=f;this.context=c||document;this.type=e;this.fn=d;this.fn2=g;this.elements=[];this.stopped=false;this.id=a.livequery.queries.push(this)-1;d.$lqguid=d.$lqguid||a.livequery.guid++;if(g){g.$lqguid=g.$lqguid||a.livequery.guid++}return this};a.livequery.prototype={stop:function(){var c=this;if(this.type){this.elements.unbind(this.type,this.fn)}else{if(this.fn2){this.elements.each(function(d,e){c.fn2.apply(e)})}}this.elements=[];this.stopped=true},run:function(){if(this.stopped){return}var e=this;var f=this.elements,d=a(this.selector,this.context),c=d.not(f);this.elements=d;if(this.type){c.bind(this.type,this.fn);if(f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){a.event.remove(h,e.type,e.fn)}})}}else{c.each(function(){e.fn.apply(this)});if(this.fn2&&f.length>0){a.each(f,function(g,h){if(a.inArray(h,d)<0){e.fn2.apply(h)}})}}}};a.extend(a.livequery,{guid:0,queries:[],queue:[],running:false,timeout:null,checkQueue:function(){if(a.livequery.running&&a.livequery.queue.length){var c=a.livequery.queue.length;while(c--){a.livequery.queries[a.livequery.queue.shift()].run()}}},pause:function(){a.livequery.running=false},play:function(){a.livequery.running=true;a.livequery.run()},registerPlugin:function(){a.each(arguments,function(c,d){if(!a.fn[d]){return}var e=a.fn[d];a.fn[d]=function(){var f=e.apply(this,arguments);a.livequery.run();return f}})},run:function(c){if(c!=undefined){if(a.inArray(c,a.livequery.queue)<0){a.livequery.queue.push(c)}}else{a.each(a.livequery.queries,function(d){if(a.inArray(d,a.livequery.queue)<0){a.livequery.queue.push(d)}})}if(a.livequery.timeout){clearTimeout(a.livequery.timeout)}a.livequery.timeout=setTimeout(a.livequery.checkQueue,20)},stop:function(c){if(c!=undefined){a.livequery.queries[c].stop()}else{a.each(a.livequery.queries,function(d){a.livequery.queries[d].stop()})}}});a.livequery.registerPlugin("append","prepend","after","before","wrap","attr","removeAttr","addClass","removeClass","toggleClass","empty","remove");a(function(){a.livequery.play()});var b=a.prototype.init;a.prototype.init=function(e,d){var c=b.apply(this,arguments);if(e&&e.selector){c.context=e.context,c.selector=e.selector}if(typeof e=="string"){c.context=d||document,c.selector=e}return c};a.prototype.init.prototype=a.prototype})(jQuery);
window.log=function(){log.history=log.history||[];log.history.push(arguments);arguments.callee=arguments.callee.caller;if(this.console)console.log(Array.prototype.slice.call(arguments));};(function(b){function c(){}for(var d="assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","),a;a=d.pop();)b[a]=b[a]||c})(window.console=window.console||{});(function($){$.fn.countTo=function(options){options=$.extend({},$.fn.countTo.defaults,options||{});var loops=Math.ceil(options.speed/options.refreshInterval),increment=(options.to-options.from)/loops;return $(this).each(function(){var _this=this,loopCount=0,value=options.from,interval=setInterval(updateTimer,options.refreshInterval);function updateTimer(){value+=increment;loopCount++;$(_this).html(value.toFixed(options.decimals));if(typeof(options.onUpdate)=='function'){options.onUpdate.call(_this,value);}
if(loopCount>=loops){clearInterval(interval);value=options.to;if(typeof(options.onComplete)=='function'){options.onComplete.call(_this,value);}}}});};$.fn.countTo.defaults={from:0,to:100,speed:1000,refreshInterval:100,decimals:0,onUpdate:null,onComplete:null,};})(jQuery);
(function(){var feedback_widget,feedback_widget_options;jQuery(function(){$("textarea").elastic();$(".loves_btn .button_to").live("click",function(event){return $(this).parent().addClass("load");});$("#close").live("click",function(event){return $("#statusbar").fadeOut('slow');});$("#statusbar").delay(5000).fadeOut('slow');$(".question p").hide();return $(".question h2").click(function(event){return $(this).parent().find("p").slideToggle('fast');});});feedback_widget_options={};feedback_widget_options.display="overlay";feedback_widget_options.company="doonited";feedback_widget_options.placement="left";feedback_widget_options.color="#595959";feedback_widget_options.style="idea";feedback_widget=new GSFN.feedback_widget(feedback_widget_options);}).call(this);
(function(jQuery){jQuery.fn.extend({elastic:function(){var mimics=['paddingTop','paddingRight','paddingBottom','paddingLeft','fontSize','lineHeight','fontFamily','width','fontWeight','border-top-width','border-right-width','border-bottom-width','border-left-width','borderTopStyle','borderTopColor','borderRightStyle','borderRightColor','borderBottomStyle','borderBottomColor','borderLeftStyle','borderLeftColor'];return this.each(function(){if(this.type!=='textarea'){return false;}
var $textarea=jQuery(this),$twin=jQuery('<div />').css({'position':'absolute','display':'none','word-wrap':'break-word'}),lineHeight=parseInt($textarea.css('line-height'),10)||parseInt($textarea.css('font-size'),'10'),minheight=parseInt($textarea.css('height'),10)||lineHeight*3,maxheight=parseInt($textarea.css('max-height'),10)||Number.MAX_VALUE,goalheight=0;if(maxheight<0){maxheight=Number.MAX_VALUE;}
$twin.appendTo($textarea.parent());var i=mimics.length;while(i--){$twin.css(mimics[i].toString(),$textarea.css(mimics[i].toString()));}
function setTwinWidth(){curatedWidth=Math.floor(parseInt($textarea.width(),10));if($twin.width()!==curatedWidth){$twin.css({'width':curatedWidth+'px'});update(true);}}
function setHeightAndOverflow(height,overflow){var curratedHeight=Math.floor(parseInt(height,10));if($textarea.height()!==curratedHeight){$textarea.css({'height':curratedHeight+'px','overflow':overflow});$textarea.trigger('resize');}}
function update(forced){var textareaContent=$textarea.val().replace(/&/g,'&amp;').replace(/ {2}/g,'&nbsp;').replace(/<|>/g,'&gt;').replace(/\n/g,'<br />');var twinContent=$twin.html().replace(/<br>/ig,'<br />');if(forced||textareaContent+'&nbsp;'!==twinContent){$twin.html(textareaContent+'&nbsp;');if(Math.abs($twin.height()+lineHeight-$textarea.height())>3){var goalheight=$twin.height()+lineHeight;if(goalheight>=maxheight){setHeightAndOverflow(maxheight,'auto');}else if(goalheight<=minheight){setHeightAndOverflow(minheight,'hidden');}else{setHeightAndOverflow(goalheight,'hidden');}}}}
$textarea.css({'overflow':'hidden'});$textarea.bind('keyup change cut paste',function(){update();});$(window).bind('resize',setTwinWidth);$textarea.bind('resize',setTwinWidth);$textarea.bind('update',update);$textarea.bind('input paste',function(e){setTimeout(update,250);});update();});}});})(jQuery);
/*
Chosen, a Select Box Enhancer for jQuery and Protoype
by Patrick Filler for Harvest, http://getharvest.com

Available for use under the MIT License, http://en.wikipedia.org/wiki/MIT_License

Copyright (c) 2011 by Harvest
*/
(function(){var $,Chosen,SelectParser,get_side_border_padding,root;var __bind=function(fn,me){return function(){return fn.apply(me,arguments);};};root=typeof exports!=="undefined"&&exports!==null?exports:this;$=jQuery;$.fn.extend({chosen:function(data,options){return $(this).each(function(input_field){if(!($(this)).hasClass("chzn-done")){return new Chosen(this,data,options);}});}});Chosen=(function(){function Chosen(elmn){this.set_default_values();this.form_field=elmn;this.form_field_jq=$(this.form_field);this.is_multiple=this.form_field.multiple;this.default_text_default=this.form_field.multiple?"Select Some Options":"Select an Option";this.set_up_html();this.register_observers();this.form_field_jq.addClass("chzn-done");}Chosen.prototype.set_default_values=function(){this.click_test_action=__bind(function(evt){return this.test_active_click(evt);},this);this.active_field=false;this.mouse_on_container=false;this.results_showing=false;this.result_highlighted=null;this.result_single_selected=null;return this.choices=0;};Chosen.prototype.set_up_html=function(){var container_div,dd_top,dd_width,sf_width;this.container_id=this.form_field.id+"_chzn";this.f_width=this.form_field_jq.width();this.default_text=this.form_field_jq.attr("title")?this.form_field_jq.attr("title"):this.default_text_default;container_div=$("<div />",{id:this.container_id,"class":"chzn-container",style:"width: "+this.f_width+"px;"});if(this.is_multiple){container_div.html('<ul class="chzn-choices"><li class="search-field"><input type="text" value="'+this.default_text+'" class="default" style="width:25px;" /></li></ul><div class="chzn-drop" style="left:-9000px;"><ul class="chzn-results"></ul></div>');}else{container_div.html('<a href="javascript:void(0)" class="chzn-single"><span>'+this.default_text+'</span><div><b></b></div></a><div class="chzn-drop" style="left:-9000px;"><div class="chzn-search"><input type="text" /></div><ul class="chzn-results"></ul></div>');}this.form_field_jq.hide().after(container_div);this.container=$("#"+this.container_id);this.container.addClass("chzn-container-"+(this.is_multiple?"multi":"single"));this.dropdown=this.container.find("div.chzn-drop").first();dd_top=this.container.height();dd_width=this.f_width-get_side_border_padding(this.dropdown);this.dropdown.css({width:dd_width+"px",top:dd_top+"px"});this.search_field=this.container.find("input").first();this.search_results=this.container.find("ul.chzn-results").first();this.search_field_scale();this.search_no_results=this.container.find("li.no-results").first();if(this.is_multiple){this.search_choices=this.container.find("ul.chzn-choices").first();this.search_container=this.container.find("li.search-field").first();}else{this.search_container=this.container.find("div.chzn-search").first();this.selected_item=this.container.find(".chzn-single").first();sf_width=dd_width-get_side_border_padding(this.search_container)-get_side_border_padding(this.search_field);this.search_field.css({width:sf_width+"px"});}this.results_build();return this.set_tab_index();};Chosen.prototype.register_observers=function(){this.container.click(__bind(function(evt){return this.container_click(evt);},this));this.container.mouseenter(__bind(function(evt){return this.mouse_enter(evt);},this));this.container.mouseleave(__bind(function(evt){return this.mouse_leave(evt);},this));this.search_results.click(__bind(function(evt){return this.search_results_click(evt);},this));this.search_results.mouseover(__bind(function(evt){return this.search_results_mouseover(evt);},this));this.search_results.mouseout(__bind(function(evt){return this.search_results_mouseout(evt);},this));this.form_field_jq.bind("liszt:updated",__bind(function(evt){return this.results_update_field(evt);},this));this.search_field.blur(__bind(function(evt){return this.input_blur(evt);},this));this.search_field.keyup(__bind(function(evt){return this.keyup_checker(evt);},this));this.search_field.keydown(__bind(function(evt){return this.keydown_checker(evt);},this));if(this.is_multiple){this.search_choices.click(__bind(function(evt){return this.choices_click(evt);},this));return this.search_field.focus(__bind(function(evt){return this.input_focus(evt);},this));}else{return this.selected_item.focus(__bind(function(evt){return this.activate_field(evt);},this));}};Chosen.prototype.container_click=function(evt){if(evt&&evt.type==="click"){evt.stopPropagation();}if(!this.pending_destroy_click){if(!this.active_field){if(this.is_multiple){this.search_field.val("");}$(document).click(this.click_test_action);this.results_show();}else{if(!this.is_multiple&&evt&&($(evt.target)===this.selected_item||$(evt.target).parents("a.chzn-single").length)){evt.preventDefault();this.results_toggle();}}return this.activate_field();}else{return this.pending_destroy_click=false;}};Chosen.prototype.mouse_enter=function(){return this.mouse_on_container=true;};Chosen.prototype.mouse_leave=function(){return this.mouse_on_container=false;};Chosen.prototype.input_focus=function(evt){if(!this.active_field){return setTimeout((__bind(function(){return this.container_click();},this)),50);}};Chosen.prototype.input_blur=function(evt){if(!this.mouse_on_container){this.active_field=false;return setTimeout((__bind(function(){return this.blur_test();},this)),100);}};Chosen.prototype.blur_test=function(evt){if(!this.active_field&&this.container.hasClass("chzn-container-active")){return this.close_field();}};Chosen.prototype.close_field=function(){$(document).unbind("click",this.click_test_action);if(!this.is_multiple){this.selected_item.attr("tabindex",this.search_field.attr("tabindex"));this.search_field.attr("tabindex",-1);}this.active_field=false;this.results_hide();this.container.removeClass("chzn-container-active");this.winnow_results_clear();this.clear_backstroke();this.show_search_field_default();return this.search_field_scale();};Chosen.prototype.activate_field=function(){if(!this.is_multiple&&!this.active_field){this.search_field.attr("tabindex",this.selected_item.attr("tabindex"));this.selected_item.attr("tabindex",-1);}this.container.addClass("chzn-container-active");this.active_field=true;this.search_field.val(this.search_field.val());return this.search_field.focus();};Chosen.prototype.test_active_click=function(evt){if($(evt.target).parents("#"+this.container.id).length){return this.active_field=true;}else{return this.close_field();}};Chosen.prototype.results_build=function(){var content,data,startTime,_i,_len,_ref;startTime=new Date();this.parsing=true;this.results_data=SelectParser.select_to_array(this.form_field);if(this.is_multiple&&this.choices>0){this.search_choices.find("li.search-choice").remove();this.choices=0;}else{if(!this.is_multiple){this.selected_item.find("span").text(this.default_text);}}content="";_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++){data=_ref[_i];if(data.group){content+=this.result_add_group(data);}else{if(!data.empty){content+=this.result_add_option(data);if(data.selected&&this.is_multiple){this.choice_build(data);}else{if(data.selected&&!this.is_multiple){this.selected_item.find("span").text(data.text);}}}}}this.show_search_field_default();this.search_field_scale();this.search_results.html(content);return this.parsing=false;};Chosen.prototype.result_add_group=function(group){if(!group.disabled){group.dom_id=this.form_field.id+"chzn_g_"+group.array_index;return'<li id="'+group.dom_id+'" class="group-result">'+$("<div />").text(group.label).html()+"</li>";}else{return"";}};Chosen.prototype.result_add_option=function(option){var classes;if(!option.disabled){option.dom_id=this.form_field.id+"chzn_o_"+option.array_index;classes=option.selected&&this.is_multiple?[]:["active-result"];if(option.selected){classes.push("result-selected");}if(option.group_array_index!=null){classes.push("group-option");}return'<li id="'+option.dom_id+'" class="'+classes.join(" ")+'">'+$("<div />").text(option.text).html()+"</li>";}else{return"";}};Chosen.prototype.results_update_field=function(){this.result_clear_highlight();this.result_single_selected=null;return this.results_build();};Chosen.prototype.result_do_highlight=function(el){var high_bottom,high_top,maxHeight,visible_bottom,visible_top;if(el.length){this.result_clear_highlight();this.result_highlight=el;this.result_highlight.addClass("highlighted");maxHeight=parseInt(this.search_results.css("maxHeight"),10);visible_top=this.search_results.scrollTop();visible_bottom=maxHeight+visible_top;high_top=this.result_highlight.position().top+this.search_results.scrollTop();high_bottom=high_top+this.result_highlight.outerHeight();if(high_bottom>=visible_bottom){return this.search_results.scrollTop((high_bottom-maxHeight)>0?high_bottom-maxHeight:0);}else{if(high_top<visible_top){return this.search_results.scrollTop(high_top);}}}};Chosen.prototype.result_clear_highlight=function(){if(this.result_highlight){this.result_highlight.removeClass("highlighted");}return this.result_highlight=null;};Chosen.prototype.results_toggle=function(){if(this.results_showing){return this.results_hide();}else{return this.results_show();}};Chosen.prototype.results_show=function(){var dd_top;if(!this.is_multiple){this.selected_item.addClass("chzn-single-with-drop");if(this.result_single_selected){this.result_do_highlight(this.result_single_selected);}}dd_top=this.is_multiple?this.container.height():this.container.height()-1;this.dropdown.css({top:dd_top+"px",left:0});this.results_showing=true;this.search_field.focus();this.search_field.val(this.search_field.val());return this.winnow_results();};Chosen.prototype.results_hide=function(){if(!this.is_multiple){this.selected_item.removeClass("chzn-single-with-drop");}this.result_clear_highlight();this.dropdown.css({left:"-9000px"});return this.results_showing=false;};Chosen.prototype.set_tab_index=function(el){var ti;if(this.form_field_jq.attr("tabindex")){ti=this.form_field_jq.attr("tabindex");this.form_field_jq.attr("tabindex",-1);if(this.is_multiple){return this.search_field.attr("tabindex",ti);}else{this.selected_item.attr("tabindex",ti);return this.search_field.attr("tabindex",-1);}}};Chosen.prototype.show_search_field_default=function(){if(this.is_multiple&&this.choices<1&&!this.active_field){this.search_field.val(this.default_text);return this.search_field.addClass("default");}else{this.search_field.val("");return this.search_field.removeClass("default");}};Chosen.prototype.search_results_click=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target.length){this.result_highlight=target;return this.result_select();}};Chosen.prototype.search_results_mouseover=function(evt){var target;target=$(evt.target).hasClass("active-result")?$(evt.target):$(evt.target).parents(".active-result").first();if(target){return this.result_do_highlight(target);}};Chosen.prototype.search_results_mouseout=function(evt){if($(evt.target).hasClass("active-result"||$(evt.target).parents(".active-result").first())){return this.result_clear_highlight();}};Chosen.prototype.choices_click=function(evt){evt.preventDefault();if(this.active_field&&!($(evt.target).hasClass("search-choice"||$(evt.target).parents(".search-choice").first))&&!this.results_showing){return this.results_show();}};Chosen.prototype.choice_build=function(item){var choice_id,link;choice_id=this.form_field.id+"_chzn_c_"+item.array_index;this.choices+=1;this.search_container.before('<li class="search-choice" id="'+choice_id+'"><span>'+item.text+'</span><a href="javascript:void(0)" class="search-choice-close" rel="'+item.array_index+'"></a></li>');link=$("#"+choice_id).find("a").first();return link.click(__bind(function(evt){return this.choice_destroy_link_click(evt);},this));};Chosen.prototype.choice_destroy_link_click=function(evt){evt.preventDefault();this.pending_destroy_click=true;return this.choice_destroy($(evt.target));};Chosen.prototype.choice_destroy=function(link){this.choices-=1;this.show_search_field_default();if(this.is_multiple&&this.choices>0&&this.search_field.val().length<1){this.results_hide();}this.result_deselect(link.attr("rel"));return link.parents("li").first().remove();};Chosen.prototype.result_select=function(){var high,high_id,item,position;if(this.result_highlight){high=this.result_highlight;high_id=high.attr("id");this.result_clear_highlight();high.addClass("result-selected");if(this.is_multiple){this.result_deactivate(high);}else{this.result_single_selected=high;}position=high_id.substr(high_id.lastIndexOf("_")+1);item=this.results_data[position];item.selected=true;this.form_field.options[item.options_index].selected=true;if(this.is_multiple){this.choice_build(item);}else{this.selected_item.find("span").first().text(item.text);}this.results_hide();this.search_field.val("");this.form_field_jq.trigger("change");return this.search_field_scale();}};Chosen.prototype.result_activate=function(el){return el.addClass("active-result").show();};Chosen.prototype.result_deactivate=function(el){return el.removeClass("active-result").hide();};Chosen.prototype.result_deselect=function(pos){var result,result_data;result_data=this.results_data[pos];result_data.selected=false;this.form_field.options[result_data.options_index].selected=false;result=$("#"+this.form_field.id+"chzn_o_"+pos);result.removeClass("result-selected").addClass("active-result").show();this.result_clear_highlight();this.winnow_results();this.form_field_jq.trigger("change");return this.search_field_scale();};Chosen.prototype.results_search=function(evt){if(this.results_showing){return this.winnow_results();}else{return this.results_show();}};Chosen.prototype.winnow_results=function(){var found,option,part,parts,regex,result_id,results,searchText,startTime,startpos,text,zregex,_i,_j,_len,_len2,_ref;startTime=new Date();this.no_results_clear();results=0;searchText=this.search_field.val()===this.default_text?"":$.trim(this.search_field.val());regex=new RegExp("^"+searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i");zregex=new RegExp(searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),"i");_ref=this.results_data;for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];if(!option.disabled&&!option.empty){if(option.group){$("#"+option.dom_id).hide();}else{if(!(this.is_multiple&&option.selected)){found=false;result_id=option.dom_id;if(regex.test(option.text)){found=true;results+=1;}else{if(option.text.indexOf(" ")>=0||option.text.indexOf("[")===0){parts=option.text.replace(/\[|\]/g,"").split(" ");if(parts.length){for(_j=0,_len2=parts.length;_j<_len2;_j++){part=parts[_j];if(regex.test(part)){found=true;results+=1;}}}}}if(found){if(searchText.length){startpos=option.text.search(zregex);text=option.text.substr(0,startpos+searchText.length)+"</em>"+option.text.substr(startpos+searchText.length);text=text.substr(0,startpos)+"<em>"+text.substr(startpos);}else{text=option.text;}if($("#"+result_id).html!==text){$("#"+result_id).html(text);}this.result_activate($("#"+result_id));if(option.group_array_index!=null){$("#"+this.results_data[option.group_array_index].dom_id).show();}}else{if(this.result_highlight&&result_id===this.result_highlight.attr("id")){this.result_clear_highlight();}this.result_deactivate($("#"+result_id));}}}}}if(results<1&&searchText.length){return this.no_results(searchText);}else{return this.winnow_results_set_highlight();}};Chosen.prototype.winnow_results_clear=function(){var li,lis,_i,_len,_results;this.search_field.val("");lis=this.search_results.find("li");_results=[];for(_i=0,_len=lis.length;_i<_len;_i++){li=lis[_i];li=$(li);_results.push(li.hasClass("group-result")?li.show():!this.is_multiple||!li.hasClass("result-selected")?this.result_activate(li):void 0);}return _results;};Chosen.prototype.winnow_results_set_highlight=function(){var do_high;if(!this.result_highlight){do_high=this.search_results.find(".active-result").first();if(do_high){return this.result_do_highlight(do_high);}}};Chosen.prototype.no_results=function(terms){var no_results_html;no_results_html=$('<li class="no-results">No results match "<span></span>"</li>');no_results_html.find("span").first().text(terms);return this.search_results.append(no_results_html);};Chosen.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove();};Chosen.prototype.keydown_arrow=function(){var first_active,next_sib;if(!this.result_highlight){first_active=this.search_results.find("li.active-result").first();if(first_active){this.result_do_highlight($(first_active));}}else{if(this.results_showing){next_sib=this.result_highlight.nextAll("li.active-result").first();if(next_sib){this.result_do_highlight(next_sib);}}}if(!this.results_showing){return this.results_show();}};Chosen.prototype.keyup_arrow=function(){var prev_sibs;if(!this.results_showing&&!this.is_multiple){return this.results_show();}else{if(this.result_highlight){prev_sibs=this.result_highlight.prevAll("li.active-result");if(prev_sibs.length){return this.result_do_highlight(prev_sibs.first());}else{if(this.choices>0){this.results_hide();}return this.result_clear_highlight();}}}};Chosen.prototype.keydown_backstroke=function(){if(this.pending_backstroke){this.choice_destroy(this.pending_backstroke.find("a").first());return this.clear_backstroke();}else{this.pending_backstroke=this.search_container.siblings("li.search-choice").last();return this.pending_backstroke.addClass("search-choice-focus");}};Chosen.prototype.clear_backstroke=function(){if(this.pending_backstroke){this.pending_backstroke.removeClass("search-choice-focus");}return this.pending_backstroke=null;};Chosen.prototype.keyup_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keyCode;this.search_field_scale();switch(stroke){case 8:if(this.is_multiple&&this.backstroke_length<1&&this.choices>0){return this.keydown_backstroke();}else{if(!this.pending_backstroke){this.result_clear_highlight();return this.results_search();}}break;case 13:evt.preventDefault();if(this.results_showing){return this.result_select();}break;case 27:if(this.results_showing){return this.results_hide();}break;case 9:case 38:case 40:case 16:break;default:return this.results_search();}};Chosen.prototype.keydown_checker=function(evt){var stroke,_ref;stroke=(_ref=evt.which)!=null?_ref:evt.keyCode;this.search_field_scale();if(stroke!==8&&this.pending_backstroke){this.clear_backstroke();}switch(stroke){case 8:this.backstroke_length=this.search_field.val().length;break;case 9:this.mouse_on_container=false;break;case 13:evt.preventDefault();break;case 38:evt.preventDefault();this.keyup_arrow();break;case 40:this.keydown_arrow();break;}};Chosen.prototype.search_field_scale=function(){var dd_top,div,h,style,style_block,styles,w,_i,_len;if(this.is_multiple){h=0;w=0;style_block="position:absolute; left: -1000px; top: -1000px; display:none;";styles=["font-size","font-style","font-weight","font-family","line-height","text-transform","letter-spacing"];for(_i=0,_len=styles.length;_i<_len;_i++){style=styles[_i];style_block+=style+":"+this.search_field.css(style)+";";}div=$("<div />",{style:style_block});div.text(this.search_field.val());$("body").append(div);w=div.width()+25;div.remove();if(w>this.f_width-10){w=this.f_width-10;}this.search_field.css({width:w+"px"});dd_top=this.container.height();return this.dropdown.css({top:dd_top+"px"});}};return Chosen;})();get_side_border_padding=function(elmt){var side_border_padding;return side_border_padding=elmt.outerWidth()-elmt.width();};root.get_side_border_padding=get_side_border_padding;SelectParser=(function(){function SelectParser(){this.options_index=0;this.parsed=[];}SelectParser.prototype.add_node=function(child){if(child.nodeName==="OPTGROUP"){return this.add_group(child);}else{return this.add_option(child);}};SelectParser.prototype.add_group=function(group){var group_position,option,_i,_len,_ref,_results;group_position=this.parsed.length;this.parsed.push({array_index:group_position,group:true,label:group.label,children:0,disabled:group.disabled});_ref=group.childNodes;_results=[];for(_i=0,_len=_ref.length;_i<_len;_i++){option=_ref[_i];_results.push(this.add_option(option,group_position,group.disabled));}return _results;};SelectParser.prototype.add_option=function(option,group_position,group_disabled){if(option.nodeName==="OPTION"){if(option.text!==""){if(group_position!=null){this.parsed[group_position].children+=1;}this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:option.value,text:option.text,selected:option.selected,disabled:group_disabled===true?group_disabled:option.disabled,group_array_index:group_position});}else{this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:true});}return this.options_index+=1;}};return SelectParser;})();SelectParser.select_to_array=function(select){var child,parser,_i,_len,_ref;parser=new SelectParser();_ref=select.childNodes;for(_i=0,_len=_ref.length;_i<_len;_i++){child=_ref[_i];parser.add_node(child);}return parser.parsed;};root.SelectParser=SelectParser;}).call(this);
;(function(d){var k=d.scrollTo=function(a,i,e){d(window).scrollTo(a,i,e)};k.defaults={axis:'xy',duration:parseFloat(d.fn.jquery)>=1.3?0:1};k.window=function(a){return d(window)._scrollable()};d.fn._scrollable=function(){return this.map(function(){var a=this,i=!a.nodeName||d.inArray(a.nodeName.toLowerCase(),['iframe','#document','html','body'])!=-1;if(!i)return a;var e=(a.contentWindow||a).document||a.ownerDocument||a;return d.browser.safari||e.compatMode=='BackCompat'?e.body:e.documentElement})};d.fn.scrollTo=function(n,j,b){if(typeof j=='object'){b=j;j=0}if(typeof b=='function')b={onAfter:b};if(n=='max')n=9e9;b=d.extend({},k.defaults,b);j=j||b.speed||b.duration;b.queue=b.queue&&b.axis.length>1;if(b.queue)j/=2;b.offset=p(b.offset);b.over=p(b.over);return this._scrollable().each(function(){var q=this,r=d(q),f=n,s,g={},u=r.is('html,body');switch(typeof f){case'number':case'string':if(/^([+-]=)?\d+(\.\d+)?(px|%)?$/.test(f)){f=p(f);break}f=d(f,this);case'object':if(f.is||f.style)s=(f=d(f)).offset()}d.each(b.axis.split(''),function(a,i){var e=i=='x'?'Left':'Top',h=e.toLowerCase(),c='scroll'+e,l=q[c],m=k.max(q,i);if(s){g[c]=s[h]+(u?0:l-r.offset()[h]);if(b.margin){g[c]-=parseInt(f.css('margin'+e))||0;g[c]-=parseInt(f.css('border'+e+'Width'))||0}g[c]+=b.offset[h]||0;if(b.over[h])g[c]+=f[i=='x'?'width':'height']()*b.over[h]}else{var o=f[h];g[c]=o.slice&&o.slice(-1)=='%'?parseFloat(o)/100*m:o}if(/^\d+$/.test(g[c]))g[c]=g[c]<=0?0:Math.min(g[c],m);if(!a&&b.queue){if(l!=g[c])t(b.onAfterFirst);delete g[c]}});t(b.onAfter);function t(a){r.animate(g,j,b.easing,a&&function(){a.call(this,n,b)})}}).end()};k.max=function(a,i){var e=i=='x'?'Width':'Height',h='scroll'+e;if(!d(a).is('html,body'))return a[h]-d(a)[e.toLowerCase()]();var c='client'+e,l=a.ownerDocument.documentElement,m=a.ownerDocument.body;return Math.max(l[h],m[h])-Math.min(l[c],m[c])};function p(a){return typeof a=='object'?a:{top:a,left:a}}})(jQuery);
;(function($){$.fn.ajaxSubmit=function(options){if(!this.length){log('ajaxSubmit: skipping submit process - no element selected');return this;}
var method,action,url,$form=this;if(typeof options=='function'){options={success:options};}
method=this.attr('method');action=this.attr('action');url=(typeof action==='string')?$.trim(action):'';url=url||window.location.href||'';if(url){url=(url.match(/^([^#]+)/)||[])[1];}
options=$.extend(true,{url:url,success:$.ajaxSettings.success,type:method||'GET',iframeSrc:/^https/i.test(window.location.href||'')?'javascript:false':'about:blank'},options);var veto={};this.trigger('form-pre-serialize',[this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-pre-serialize trigger');return this;}
if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){log('ajaxSubmit: submit aborted via beforeSerialize callback');return this;}
var n,v,a=this.formToArray(options.semantic);if(options.data){options.extraData=options.data;for(n in options.data){if($.isArray(options.data[n])){for(var k in options.data[n]){a.push({name:n,value:options.data[n][k]});}}
else{v=options.data[n];v=$.isFunction(v)?v():v;a.push({name:n,value:v});}}}
if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){log('ajaxSubmit: submit aborted via beforeSubmit callback');return this;}
this.trigger('form-submit-validate',[a,this,options,veto]);if(veto.veto){log('ajaxSubmit: submit vetoed via form-submit-validate trigger');return this;}
var q=$.param(a);if(options.type.toUpperCase()=='GET'){options.url+=(options.url.indexOf('?')>=0?'&':'?')+q;options.data=null;}
else{options.data=q;}
var callbacks=[];if(options.resetForm){callbacks.push(function(){$form.resetForm();});}
if(options.clearForm){callbacks.push(function(){$form.clearForm();});}
if(!options.dataType&&options.target){var oldSuccess=options.success||function(){};callbacks.push(function(data){var fn=options.replaceTarget?'replaceWith':'html';$(options.target)[fn](data).each(oldSuccess,arguments);});}
else if(options.success){callbacks.push(options.success);}
options.success=function(data,status,xhr){var context=options.context||options;for(var i=0,max=callbacks.length;i<max;i++){callbacks[i].apply(context,[data,status,xhr||$form,$form]);}};var fileInputs=$('input:file',this).length>0;var mp='multipart/form-data';var multipart=($form.attr('enctype')==mp||$form.attr('encoding')==mp);if(options.iframe!==false&&(fileInputs||options.iframe||multipart)){if(options.closeKeepAlive){$.get(options.closeKeepAlive,function(){fileUpload(a);});}
else{fileUpload(a);}}
else{if($.browser.msie&&method=='get'){var ieMeth=$form[0].getAttribute('method');if(typeof ieMeth==='string')
options.type=ieMeth;}
$.ajax(options);}
this.trigger('form-submit-notify',[this,options]);return this;function fileUpload(a){var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle;var useProp=!!$.fn.prop;if(a){for(i=0;i<a.length;i++){el=$(form[a[i].name]);el[useProp?'prop':'attr']('disabled',false);}}
if($(':input[name=submit],:input[id=submit]',form).length){alert('Error: Form elements must not have name or id of "submit".');return;}
s=$.extend(true,{},$.ajaxSettings,options);s.context=s.context||s;id='jqFormIO'+(new Date().getTime());if(s.iframeTarget){$io=$(s.iframeTarget);n=$io.attr('name');if(n==null)
$io.attr('name',id);else
id=n;}
else{$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'" />');$io.css({position:'absolute',top:'-1000px',left:'-1000px'});}
io=$io[0];xhr={aborted:0,responseText:null,responseXML:null,status:0,statusText:'n/a',getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(status){var e=(status==='timeout'?'timeout':'aborted');log('aborting upload... '+e);this.aborted=1;$io.attr('src',s.iframeSrc);xhr.error=e;s.error&&s.error.call(s.context,xhr,e,status);g&&$.event.trigger("ajaxError",[xhr,s,e]);s.complete&&s.complete.call(s.context,xhr,e);}};g=s.global;if(g&&!$.active++){$.event.trigger("ajaxStart");}
if(g){$.event.trigger("ajaxSend",[xhr,s]);}
if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){if(s.global){$.active--;}
return;}
if(xhr.aborted){return;}
sub=form.clk;if(sub){n=sub.name;if(n&&!sub.disabled){s.extraData=s.extraData||{};s.extraData[n]=sub.value;if(sub.type=="image"){s.extraData[n+'.x']=form.clk_x;s.extraData[n+'.y']=form.clk_y;}}}
var CLIENT_TIMEOUT_ABORT=1;var SERVER_ABORT=2;function getDoc(frame){var doc=frame.contentWindow?frame.contentWindow.document:frame.contentDocument?frame.contentDocument:frame.document;return doc;}
function doSubmit(){var t=$form.attr('target'),a=$form.attr('action');form.setAttribute('target',id);if(!method){form.setAttribute('method','POST');}
if(a!=s.url){form.setAttribute('action',s.url);}
if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){$form.attr({encoding:'multipart/form-data',enctype:'multipart/form-data'});}
if(s.timeout){timeoutHandle=setTimeout(function(){timedOut=true;cb(CLIENT_TIMEOUT_ABORT);},s.timeout);}
function checkState(){try{var state=getDoc(io).readyState;log('state = '+state);if(state.toLowerCase()=='uninitialized')
setTimeout(checkState,50);}
catch(e){log('Server abort: ',e,' (',e.name,')');cb(SERVER_ABORT);timeoutHandle&&clearTimeout(timeoutHandle);timeoutHandle=undefined;}}
var extraInputs=[];try{if(s.extraData){for(var n in s.extraData){extraInputs.push($('<input type="hidden" name="'+n+'" />').attr('value',s.extraData[n]).appendTo(form)[0]);}}
if(!s.iframeTarget){$io.appendTo('body');io.attachEvent?io.attachEvent('onload',cb):io.addEventListener('load',cb,false);}
setTimeout(checkState,15);form.submit();}
finally{form.setAttribute('action',a);if(t){form.setAttribute('target',t);}else{$form.removeAttr('target');}
$(extraInputs).remove();}}
if(s.forceSync){doSubmit();}
else{setTimeout(doSubmit,10);}
var data,doc,domCheckCount=50,callbackProcessed;function cb(e){if(xhr.aborted||callbackProcessed){return;}
try{doc=getDoc(io);}
catch(ex){log('cannot access response document: ',ex);e=SERVER_ABORT;}
if(e===CLIENT_TIMEOUT_ABORT&&xhr){xhr.abort('timeout');return;}
else if(e==SERVER_ABORT&&xhr){xhr.abort('server abort');return;}
if(!doc||doc.location.href==s.iframeSrc){if(!timedOut)
return;}
io.detachEvent?io.detachEvent('onload',cb):io.removeEventListener('load',cb,false);var status='success',errMsg;try{if(timedOut){throw'timeout';}
var isXml=s.dataType=='xml'||doc.XMLDocument||$.isXMLDoc(doc);log('isXml='+isXml);if(!isXml&&window.opera&&(doc.body==null||doc.body.innerHTML=='')){if(--domCheckCount){log('requeing onLoad callback, DOM not available');setTimeout(cb,250);return;}}
var docRoot=doc.body?doc.body:doc.documentElement;xhr.responseText=docRoot?docRoot.innerHTML:null;xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc;if(isXml)
s.dataType='xml';xhr.getResponseHeader=function(header){var headers={'content-type':s.dataType};return headers[header];};if(docRoot){xhr.status=Number(docRoot.getAttribute('status'))||xhr.status;xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText;}
var dt=s.dataType||'';var scr=/(json|script|text)/.test(dt.toLowerCase());if(scr||s.textarea){var ta=doc.getElementsByTagName('textarea')[0];if(ta){xhr.responseText=ta.value;xhr.status=Number(ta.getAttribute('status'))||xhr.status;xhr.statusText=ta.getAttribute('statusText')||xhr.statusText;}
else if(scr){var pre=doc.getElementsByTagName('pre')[0];var b=doc.getElementsByTagName('body')[0];if(pre){xhr.responseText=pre.textContent?pre.textContent:pre.innerHTML;}
else if(b){xhr.responseText=b.innerHTML;}}}
else if(s.dataType=='xml'&&!xhr.responseXML&&xhr.responseText!=null){xhr.responseXML=toXml(xhr.responseText);}
try{data=httpData(xhr,s.dataType,s);}
catch(e){status='parsererror';xhr.error=errMsg=(e||status);}}
catch(e){log('error caught: ',e);status='error';xhr.error=errMsg=(e||status);}
if(xhr.aborted){log('upload aborted');status=null;}
if(xhr.status){status=(xhr.status>=200&&xhr.status<300||xhr.status===304)?'success':'error';}
if(status==='success'){s.success&&s.success.call(s.context,data,'success',xhr);g&&$.event.trigger("ajaxSuccess",[xhr,s]);}
else if(status){if(errMsg==undefined)
errMsg=xhr.statusText;s.error&&s.error.call(s.context,xhr,status,errMsg);g&&$.event.trigger("ajaxError",[xhr,s,errMsg]);}
g&&$.event.trigger("ajaxComplete",[xhr,s]);if(g&&!--$.active){$.event.trigger("ajaxStop");}
s.complete&&s.complete.call(s.context,xhr,status);callbackProcessed=true;if(s.timeout)
clearTimeout(timeoutHandle);setTimeout(function(){if(!s.iframeTarget)
$io.remove();xhr.responseXML=null;},100);}
var toXml=$.parseXML||function(s,doc){if(window.ActiveXObject){doc=new ActiveXObject('Microsoft.XMLDOM');doc.async='false';doc.loadXML(s);}
else{doc=(new DOMParser()).parseFromString(s,'text/xml');}
return(doc&&doc.documentElement&&doc.documentElement.nodeName!='parsererror')?doc:null;};var parseJSON=$.parseJSON||function(s){return window['eval']('('+s+')');};var httpData=function(xhr,type,s){var ct=xhr.getResponseHeader('content-type')||'',xml=type==='xml'||!type&&ct.indexOf('xml')>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.nodeName==='parsererror'){$.error&&$.error('parsererror');}
if(s&&s.dataFilter){data=s.dataFilter(data,type);}
if(typeof data==='string'){if(type==='json'||!type&&ct.indexOf('json')>=0){data=parseJSON(data);}else if(type==="script"||!type&&ct.indexOf("javascript")>=0){$.globalEval(data);}}
return data;};}};$.fn.ajaxForm=function(options){if(this.length===0){var o={s:this.selector,c:this.context};if(!$.isReady&&o.s){log('DOM not ready, queuing ajaxForm');$(function(){$(o.s,o.c).ajaxForm(options);});return this;}
log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)'));return this;}
return this.ajaxFormUnbind().bind('submit.form-plugin',function(e){if(!e.isDefaultPrevented()){e.preventDefault();$(this).ajaxSubmit(options);}}).bind('click.form-plugin',function(e){var target=e.target;var $el=$(target);if(!($el.is(":submit,input:image"))){var t=$el.closest(':submit');if(t.length==0){return;}
target=t[0];}
var form=this;form.clk=target;if(target.type=='image'){if(e.offsetX!=undefined){form.clk_x=e.offsetX;form.clk_y=e.offsetY;}else if(typeof $.fn.offset=='function'){var offset=$el.offset();form.clk_x=e.pageX-offset.left;form.clk_y=e.pageY-offset.top;}else{form.clk_x=e.pageX-target.offsetLeft;form.clk_y=e.pageY-target.offsetTop;}}
setTimeout(function(){form.clk=form.clk_x=form.clk_y=null;},100);});};$.fn.ajaxFormUnbind=function(){return this.unbind('submit.form-plugin click.form-plugin');};$.fn.formToArray=function(semantic){var a=[];if(this.length===0){return a;}
var form=this[0];var els=semantic?form.getElementsByTagName('*'):form.elements;if(!els){return a;}
var i,j,n,v,el,max,jmax;for(i=0,max=els.length;i<max;i++){el=els[i];n=el.name;if(!n){continue;}
if(semantic&&form.clk&&el.type=="image"){if(!el.disabled&&form.clk==el){a.push({name:n,value:$(el).val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}
continue;}
v=$.fieldValue(el,true);if(v&&v.constructor==Array){for(j=0,jmax=v.length;j<jmax;j++){a.push({name:n,value:v[j]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:n,value:v});}}
if(!semantic&&form.clk){var $input=$(form.clk),input=$input[0];n=input.name;if(n&&!input.disabled&&input.type=='image'){a.push({name:n,value:$input.val()});a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y});}}
return a;};$.fn.formSerialize=function(semantic){return $.param(this.formToArray(semantic));};$.fn.fieldSerialize=function(successful){var a=[];this.each(function(){var n=this.name;if(!n){return;}
var v=$.fieldValue(this,successful);if(v&&v.constructor==Array){for(var i=0,max=v.length;i<max;i++){a.push({name:n,value:v[i]});}}
else if(v!==null&&typeof v!='undefined'){a.push({name:this.name,value:v});}});return $.param(a);};$.fn.fieldValue=function(successful){for(var val=[],i=0,max=this.length;i<max;i++){var el=this[i];var v=$.fieldValue(el,successful);if(v===null||typeof v=='undefined'||(v.constructor==Array&&!v.length)){continue;}
v.constructor==Array?$.merge(val,v):val.push(v);}
return val;};$.fieldValue=function(el,successful){var n=el.name,t=el.type,tag=el.tagName.toLowerCase();if(successful===undefined){successful=true;}
if(successful&&(!n||el.disabled||t=='reset'||t=='button'||(t=='checkbox'||t=='radio')&&!el.checked||(t=='submit'||t=='image')&&el.form&&el.form.clk!=el||tag=='select'&&el.selectedIndex==-1)){return null;}
if(tag=='select'){var index=el.selectedIndex;if(index<0){return null;}
var a=[],ops=el.options;var one=(t=='select-one');var max=(one?index+1:ops.length);for(var i=(one?index:0);i<max;i++){var op=ops[i];if(op.selected){var v=op.value;if(!v){v=(op.attributes&&op.attributes['value']&&!(op.attributes['value'].specified))?op.text:op.value;}
if(one){return v;}
a.push(v);}}
return a;}
return $(el).val();};$.fn.clearForm=function(){return this.each(function(){$('input,select,textarea',this).clearFields();});};$.fn.clearFields=$.fn.clearInputs=function(){var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var t=this.type,tag=this.tagName.toLowerCase();if(re.test(t)||tag=='textarea'){this.value='';}
else if(t=='checkbox'||t=='radio'){this.checked=false;}
else if(tag=='select'){this.selectedIndex=-1;}});};$.fn.resetForm=function(){return this.each(function(){if(typeof this.reset=='function'||(typeof this.reset=='object'&&!this.reset.nodeType)){this.reset();}});};$.fn.enable=function(b){if(b===undefined){b=true;}
return this.each(function(){this.disabled=!b;});};$.fn.selected=function(select){if(select===undefined){select=true;}
return this.each(function(){var t=this.type;if(t=='checkbox'||t=='radio'){this.checked=select;}
else if(this.tagName.toLowerCase()=='option'){var $sel=$(this).parent('select');if(select&&$sel[0]&&$sel[0].type=='select-one'){$sel.find('option').selected(false);}
this.selected=select;}});};function log(){var msg='[jquery.form] '+Array.prototype.join.call(arguments,'');if(window.console&&window.console.log){window.console.log(msg);}
else if(window.opera&&window.opera.postError){window.opera.postError(msg);}};})(jQuery);
(function($){var remotipart;$.remotipart=remotipart={setup:function(form){form.append($('<input />',{'id':"remotipart_submitted",type:"hidden",name:"remotipart_submitted",value:true})).bind('ajax:beforeSend.remotipart',function(e,xhr,origSettings){var settings=$.extend({},origSettings);delete settings.beforeSend;delete settings.data;if(settings.dataType===undefined)settings.dataType='script';if($.rails.fire(form,'ajax:remotipartSubmit',[xhr,settings])){if(settings.dataType=='script'){settings.url=settings.url.split('?');if(settings.url[0].substr(-3)!='.js')settings.url[0]+='.js';settings.url=settings.url.join('?');}
form.data('remotipartSubmitted',settings.dataType);form.ajaxSubmit(settings);return false;}}).data('remotipartSubmitted',true);},teardown:function(form){form.unbind('ajax:beforeSend.remotipart').children('#remotipart_submitted').remove();delete form.data.remotipartSubmitted;}};$('form').live('ajax:aborted:file',function(){var form=$(this);if(form.data('remotipartSubmitted')===undefined)remotipart.setup(form);if(!$.support.submitBubbles&&'callFormSubmitBindings'in $.rails&&$.rails.callFormSubmitBindings(form)===false)return $.rails.stopEverything(e);$.rails.handleRemote(form);return false;});})(jQuery);
$(".paper_picture").live("click",function(){open_thumb($(this).data("big_url"));});function open_thumb(p_url){$(".picture_content #l_pic").html("<img src='"+p_url+"' class='big_pic'>");$(".close").fadeIn();$(".black_overlay").fadeIn(800);$(".picture_content").fadeIn();};
//fgnass.github.com/spin.js
(function(a,b,c){function n(a){var b={x:a.offsetLeft,y:a.offsetTop};while(a=a.offsetParent)b.x+=a.offsetLeft,b.y+=a.offsetTop;return b}function m(a,b){for(var d in b)a[d]===c&&(a[d]=b[d]);return a}function l(a,b){for(var c in b)a.style[k(a,c)||c]=b[c];return a}function k(a,b){var e=a.style,f,g;if(e[b]!==c)return b;b=b.charAt(0).toUpperCase()+b.slice(1);for(g=0;g<d.length;g++){f=d[g]+b;if(e[f]!==c)return f}}function j(a,b,c,f){var g=["opacity",b,~~(a*100),c,f].join("-"),h=.01+c/f*100,j=Math.max(1-(1-a)/b*(100-h),a),k,l;if(!e[g]){for(l=0;l<d.length;l++){k=d[l]&&"-"+d[l].toLowerCase()+"-"||"";try{i.insertRule("@"+k+"keyframes "+g+"{"+"0%{opacity:"+j+"}"+h+"%{opacity:"+a+"}"+(h+.01)+"%{opacity:1}"+(h+b)%100+"%{opacity:"+a+"}"+"100%{opacity:"+j+"}"+"}",0)}catch(m){}}e[g]=1}return g}function h(a,b,c){c&&!c.parentNode&&h(a,c),a.insertBefore(b,c||null);return a}function g(a,c){var d=b.createElement(a||"div"),e;for(e in c)d[e]=c[e];return d}var d=["webkit","Moz","ms","O"],e={},f;h(b.getElementsByTagName("head")[0],g("style"));var i=b.styleSheets[b.styleSheets.length-1],o=function(a){this.opts=m(a||{},{lines:12,length:7,width:5,radius:10,color:"#000",speed:1,trail:100,opacity:.25})},p=o.prototype={spin:function(a){var b=this,c=b.el=l(g(),{position:"relative"}),d,e;a&&(e=n(h(a,c,a.firstChild)),d=n(c),l(c,{left:(a.offsetWidth>>1)-d.x+e.x+"px",top:(a.offsetHeight>>1)-d.y+e.y+"px"})),b.lines(c,b.opts);if(!f){var i=b.opts,j=0,k=20/i.speed,m=(1-i.opacity)/(k*i.trail/100),o=k/i.lines;(function p(){j++;for(var a=i.lines;a;a--){var d=Math.max(1-(j+a*o)%k*m,i.opacity);b.opacity(c,i.lines-a,d,i)}b.timeout=b.el&&setTimeout(p,50)})()}return b},stop:function(){var a=this,b=a.el;clearTimeout(a.timeout),b&&b.parentNode&&b.parentNode.removeChild(b),a.el=c;return a}};p.lines=function(a,b){function e(a,d){return l(g(),{position:"absolute",width:b.length+b.width+"px",height:b.width+"px",background:a,boxShadow:d,transformOrigin:"left",transform:"rotate("+~~(360/b.lines*c)+"deg) translate("+b.radius+"px"+",0)",borderRadius:"100em"})}var c=0,d;for(;c<b.lines;c++)d=l(g(),{position:"absolute",top:1+~(b.width/2)+"px",transform:"translate3d(0,0,0)",opacity:b.opacity,animation:j(b.opacity,b.trail,c,b.lines)+" "+1/b.speed+"s linear infinite"}),b.shadow&&h(d,l(e("#000","0 0 4px #000"),{top:"2px"})),h(a,h(d,e(b.color,"0 0 1px rgba(0,0,0,.1)")));return a},p.opacity=function(a,b,c){a.childNodes[b].style.opacity=c},function(){var a=l(g("group"),{behavior:"url(#default#VML)"}),b;if(!k(a,"transform")&&a.adj){for(b=4;b--;)i.addRule(["group","roundrect","fill","stroke"][b],"behavior:url(#default#VML)");p.lines=function(a,b){function k(a,d,i){h(f,h(l(e(),{rotation:360/b.lines*a+"deg",left:~~d}),h(l(g("roundrect",{arcsize:1}),{width:c,height:b.width,left:b.radius,top:-b.width>>1,filter:i}),g("fill",{color:b.color,opacity:b.opacity}),g("stroke",{opacity:0}))))}function e(){return l(g("group",{coordsize:d+" "+d,coordorigin:-c+" "+ -c}),{width:d,height:d})}var c=b.length+b.width,d=2*c,f=e(),i=~(b.length+b.radius+b.width)+"px",j;if(b.shadow)for(j=1;j<=b.lines;j++)k(j,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(j=1;j<=b.lines;j++)k(j);return h(l(a,{margin:i+" 0 0 "+i}),f)},p.opacity=function(a,b,c,d){d=d.shadow&&d.lines||0,a.firstChild.childNodes[b+d].firstChild.firstChild.opacity=c}}else f=k(a,"animation")}(),a.Spinner=o})(window,document)

