PK qhYJF F ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/thefreetrips.com/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : //home/trave494/thefreetrips.com/affiliates.min.js |
if(typeof $HCW == "undefined"){ (function(aB,y){var W=aB.document;var aL=(function(){var aW=function(bn,bo){return new aW.fn.init(bn,bo)},a0=aB.hcwQuery,a4=aB.$,bb,bm=/^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,aV=/^.[^:#\[\.,]*$/,ba=/\S/,aY=/\s/,a6=/^\s+/,a2=/\s+$/,aS=/\W/,a5=/\d/,aZ=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,bc=/^[\],:{}\s]*$/,bk=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,be=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,a7=/(?:^|:|,)(?:\s*\[)+/g,aU=/(webkit)[ \/]([\w.]+)/,bg=/(opera)(?:.*version)?[ \/]([\w.]+)/,bf=/(msie) ([\w.]+)/,bh=/(mozilla)(?:.*? rv:([\w.]+))?/,bl=navigator.userAgent,bj,bi=false,a1=[],aP,a9=Object.prototype.toString,a3=Object.prototype.hasOwnProperty,aX=Array.prototype.push,a8=Array.prototype.slice,bd=String.prototype.trim,aQ=Array.prototype.indexOf,aT={};aW.fn=aW.prototype={init:function(bn,bq){var bp,br,bo,bs;if(!bn){return this}if(bn.nodeType){this.context=this[0]=bn;this.length=1;return this}if(bn==="body"&&!bq&&W.body){this.context=W;this[0]=W.body;this.selector="body";this.length=1;return this}if(typeof bn==="string"){bp=bm.exec(bn);if(bp&&(bp[1]||!bq)){if(bp[1]){bs=(bq?bq.ownerDocument||bq:W);bo=aZ.exec(bn);if(bo){if(aW.isPlainObject(bq)){bn=[W.createElement(bo[1])];aW.fn.attr.call(bn,bq,true)}else{bn=[bs.createElement(bo[1])]}}else{bo=aW.buildFragment([bp[1]],[bs]);bn=(bo.cacheable?bo.fragment.cloneNode(true):bo.fragment).childNodes}return aW.merge(this,bn)}else{br=W.getElementById(bp[2]);if(br&&br.parentNode){if(br.id!==bp[2]){return bb.find(bn)}this.length=1;this[0]=br}this.context=W;this.selector=bn;return this}}else{if(!bq&&!aS.test(bn)){this.selector=bn;this.context=W;bn=W.getElementsByTagName(bn);return aW.merge(this,bn)}else{if(!bq||bq.hcwQuery){return(bq||bb).find(bn)}else{return aW(bq).find(bn)}}}}else{if(aW.isFunction(bn)){return bb.ready(bn)}}if(bn.selector!==y){this.selector=bn.selector;this.context=bn.context}return aW.makeArray(bn,this)},selector:"",hcwQuery:"1.4.4",length:0,size:function(){return this.length},toArray:function(){return a8.call(this,0)},get:function(bn){return bn==null?this.toArray():(bn<0?this.slice(bn)[0]:this[bn])},pushStack:function(bo,bq,bn){var bp=aW();if(aW.isArray(bo)){aX.apply(bp,bo)}else{aW.merge(bp,bo)}bp.prevObject=this;bp.context=this.context;if(bq==="find"){bp.selector=this.selector+(this.selector?" ":"")+bn}else{if(bq){bp.selector=this.selector+"."+bq+"("+bn+")"}}return bp},each:function(bo,bn){return aW.each(this,bo,bn)},ready:function(bn){aW.bindReady();if(aW.isReady){bn.call(W,aW)}else{if(a1){a1.push(bn)}}return this},eq:function(bn){return bn===-1?this.slice(bn):this.slice(bn,+bn+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(a8.apply(this,arguments),"slice",a8.call(arguments).join(","))},map:function(bn){return this.pushStack(aW.map(this,function(bp,bo){return bn.call(bp,bo,bp)}))},end:function(){return this.prevObject||aW(null)},push:aX,sort:[].sort,splice:[].splice};aW.fn.init.prototype=aW.fn;aW.extend=aW.fn.extend=function(){var bw,bp,bn,bo,bt,bu,bs=arguments[0]||{},br=1,bq=arguments.length,bv=false;if(typeof bs==="boolean"){bv=bs;bs=arguments[1]||{};br=2}if(typeof bs!=="object"&&!aW.isFunction(bs)){bs={}}if(bq===br){bs=this;--br}for(;br<bq;br++){if((bw=arguments[br])!=null){for(bp in bw){bn=bs[bp];bo=bw[bp];if(bs===bo){continue}if(bv&&bo&&(aW.isPlainObject(bo)||(bt=aW.isArray(bo)))){if(bt){bt=false;bu=bn&&aW.isArray(bn)?bn:[]}else{bu=bn&&aW.isPlainObject(bn)?bn:{}}bs[bp]=aW.extend(bv,bu,bo)}else{if(bo!==y){bs[bp]=bo}}}}}return bs};aW.extend({noConflict:function(bn){aB.$=a4;if(bn){aB.hcwQuery=a0}return aW},isReady:false,readyWait:1,ready:function(bq){if(bq===true){aW.readyWait--}if(!aW.readyWait||(bq!==true&&!aW.isReady)){if(!W.body){return setTimeout(aW.ready,1)}aW.isReady=true;if(bq!==true&&--aW.readyWait>0){return}if(a1){var bp,bn=0,bo=a1;a1=null;while((bp=bo[bn++])){bp.call(W,aW)}if(aW.fn.trigger){aW(W).trigger("ready").unbind("ready")}}}},bindReady:function(){if(bi){return}bi=true;if(W.readyState==="complete"){return setTimeout(aW.ready,1)}if(W.addEventListener){W.addEventListener("DOMContentLoaded",aP,false);aB.addEventListener("load",aW.ready,false)}else{if(W.attachEvent){W.attachEvent("onreadystatechange",aP);aB.attachEvent("onload",aW.ready);var bn=false;try{bn=aB.frameElement==null}catch(bo){}if(W.documentElement.doScroll&&bn){aR()}}}},isFunction:function(bn){return aW.type(bn)==="function"},isArray:Array.isArray||function(bn){return aW.type(bn)==="array"},isWindow:function(bn){return bn&&typeof bn==="object"&&"setInterval" in bn},isNaN:function(bn){return bn==null||!a5.test(bn)||isNaN(bn)},type:function(bn){return bn==null?String(bn):aT[a9.call(bn)]||"object"},isPlainObject:function(bo){if(!bo||aW.type(bo)!=="object"||bo.nodeType||aW.isWindow(bo)){return false}if(bo.constructor&&!a3.call(bo,"constructor")&&!a3.call(bo.constructor.prototype,"isPrototypeOf")){return false}var bn;for(bn in bo){}return bn===y||a3.call(bo,bn)},isEmptyObject:function(bo){for(var bn in bo){return false}return true},error:function(bn){throw bn},parseJSON:function(bn){if(typeof bn!=="string"||!bn){return null}bn=aW.trim(bn);if(bc.test(bn.replace(bk,"@").replace(be,"]").replace(a7,""))){return aB.JSON&&aB.JSON.parse?aB.JSON.parse(bn):(new Function("return "+bn))()}else{aW.error("Invalid JSON: "+bn)}},noop:function(){},globalEval:function(bp){if(bp&&ba.test(bp)){var bo=W.getElementsByTagName("head")[0]||W.documentElement,bn=W.createElement("script");bn.type="text/javascript";if(aW.support.scriptEval){bn.appendChild(W.createTextNode(bp))}else{bn.text=bp}bo.insertBefore(bn,bo.firstChild);bo.removeChild(bn)}},nodeName:function(bo,bn){return bo.nodeName&&bo.nodeName.toUpperCase()===bn.toUpperCase()},each:function(bq,bu,bp){var bo,br=0,bs=bq.length,bn=bs===y||aW.isFunction(bq);if(bp){if(bn){for(bo in bq){if(bu.apply(bq[bo],bp)===false){break}}}else{for(;br<bs;){if(bu.apply(bq[br++],bp)===false){break}}}}else{if(bn){for(bo in bq){if(bu.call(bq[bo],bo,bq[bo])===false){break}}}else{for(var bt=bq[0];br<bs&&bu.call(bt,br,bt)!==false;bt=bq[++br]){}}}return bq},trim:bd?function(bn){return bn==null?"":bd.call(bn)}:function(bn){return bn==null?"":bn.toString().replace(a6,"").replace(a2,"")},makeArray:function(bq,bo){var bn=bo||[];if(bq!=null){var bp=aW.type(bq);if(bq.length==null||bp==="string"||bp==="function"||bp==="regexp"||aW.isWindow(bq)){aX.call(bn,bq)}else{aW.merge(bn,bq)}}return bn},inArray:function(bp,bq){if(bq.indexOf){return bq.indexOf(bp)}for(var bn=0,bo=bq.length;bn<bo;bn++){if(bq[bn]===bp){return bn}}return -1},merge:function(br,bp){var bq=br.length,bo=0;if(typeof bp.length==="number"){for(var bn=bp.length;bo<bn;bo++){br[bq++]=bp[bo]}}else{while(bp[bo]!==y){br[bq++]=bp[bo++]}}br.length=bq;return br},grep:function(bo,bt,bn){var bp=[],bs;bn=!!bn;for(var bq=0,br=bo.length;bq<br;bq++){bs=!!bt(bo[bq],bq);if(bn!==bs){bp.push(bo[bq])}}return bp},map:function(bo,bt,bn){var bp=[],bs;for(var bq=0,br=bo.length;bq<br;bq++){bs=bt(bo[bq],bq,bn);if(bs!=null){bp[bp.length]=bs}}return bp.concat.apply([],bp)},guid:1,proxy:function(bp,bo,bn){if(arguments.length===2){if(typeof bo==="string"){bn=bp;bp=bn[bo];bo=y}else{if(bo&&!aW.isFunction(bo)){bn=bo;bo=y}}}if(!bo&&bp){bo=function(){return bp.apply(bn||this,arguments)}}if(bp){bo.guid=bp.guid=bp.guid||bo.guid||aW.guid++}return bo},access:function(bn,bv,bt,bp,bs,bu){var bo=bn.length;if(typeof bv==="object"){for(var bq in bv){aW.access(bn,bq,bv[bq],bp,bs,bt)}return bn}if(bt!==y){bp=!bu&&bp&&aW.isFunction(bt);for(var br=0;br<bo;br++){bs(bn[br],bv,bp?bt.call(bn[br],br,bs(bn[br],bv)):bt,bu)}return bn}return bo?bs(bn[0],bv):y},now:function(){return(new Date()).getTime()},uaMatch:function(bo){bo=bo.toLowerCase();var bn=aU.exec(bo)||bg.exec(bo)||bf.exec(bo)||bo.indexOf("compatible")<0&&bh.exec(bo)||[];return{browser:bn[1]||"",version:bn[2]||"0"}},browser:{}});aW.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(bo,bn){aT["[object "+bn+"]"]=bn.toLowerCase()});bj=aW.uaMatch(bl);if(bj.browser){aW.browser[bj.browser]=true;aW.browser.version=bj.version}if(aW.browser.webkit){aW.browser.safari=true}if(aQ){aW.inArray=function(bn,bo){return aQ.call(bo,bn)}}if(!aY.test("\xA0")){a6=/^[\s\xA0]+/;a2=/[\s\xA0]+$/}bb=aW(W);if(W.addEventListener){aP=function(){W.removeEventListener("DOMContentLoaded",aP,false);aW.ready()}}else{if(W.attachEvent){aP=function(){if(W.readyState==="complete"){W.detachEvent("onreadystatechange",aP);aW.ready()}}}}function aR(){if(aW.isReady){return}try{W.documentElement.doScroll("left")}catch(bn){setTimeout(aR,1);return}aW.ready()}return(aB.hcwQuery=aB.$HCW=aW)})();(function(){aL.support={};var aW=W.documentElement,aV=W.createElement("script"),aP=W.createElement("div"),aQ="script"+aL.now();aP.style.display="none";aP.innerHTML=" <link/><table></table><a href='/a' style='color:red;float:left;opacity:.55;'>a</a><input type='checkbox'/>";var aZ=aP.getElementsByTagName("*"),aX=aP.getElementsByTagName("a")[0],aY=W.createElement("select"),aR=aY.appendChild(W.createElement("option"));if(!aZ||!aZ.length||!aX){return}aL.support={leadingWhitespace:aP.firstChild.nodeType===3,tbody:!aP.getElementsByTagName("tbody").length,htmlSerialize:!!aP.getElementsByTagName("link").length,style:/red/.test(aX.getAttribute("style")),hrefNormalized:aX.getAttribute("href")==="/a",opacity:/^0.55$/.test(aX.style.opacity),cssFloat:!!aX.style.cssFloat,checkOn:aP.getElementsByTagName("input")[0].value==="on",optSelected:aR.selected,deleteExpando:true,optDisabled:false,checkClone:false,scriptEval:false,noCloneEvent:true,boxModel:null,inlineBlockNeedsLayout:false,shrinkWrapBlocks:false,reliableHiddenOffsets:true};aY.disabled=true;aL.support.optDisabled=!aR.disabled;aV.type="text/javascript";try{aV.appendChild(W.createTextNode("window."+aQ+"=1;"))}catch(aT){}aW.insertBefore(aV,aW.firstChild);if(aB[aQ]){aL.support.scriptEval=true;delete aB[aQ]}try{delete aV.test}catch(aT){aL.support.deleteExpando=false}aW.removeChild(aV);if(aP.attachEvent&&aP.fireEvent){aP.attachEvent("onclick",function a0(){aL.support.noCloneEvent=false;aP.detachEvent("onclick",a0)});aP.cloneNode(true).fireEvent("onclick")}aP=W.createElement("div");aP.innerHTML="<input type='radio' name='radiotest' checked='checked'/>";var aS=W.createDocumentFragment();aS.appendChild(aP.firstChild);aL.support.checkClone=aS.cloneNode(true).cloneNode(true).lastChild.checked;aL(function(){var a2=W.createElement("div");a2.style.width=a2.style.paddingLeft="1px";W.body.appendChild(a2);aL.boxModel=aL.support.boxModel=a2.offsetWidth===2;if("zoom" in a2.style){a2.style.display="inline";a2.style.zoom=1;aL.support.inlineBlockNeedsLayout=a2.offsetWidth===2;a2.style.display="";a2.innerHTML="<div style='width:4px;'></div>";aL.support.shrinkWrapBlocks=a2.offsetWidth!==2}a2.innerHTML="<table><tr><td style='padding:0;display:none'></td><td>t</td></tr></table>";var a1=a2.getElementsByTagName("td");aL.support.reliableHiddenOffsets=a1[0].offsetHeight===0;a1[0].style.display="";a1[1].style.display="none";aL.support.reliableHiddenOffsets=aL.support.reliableHiddenOffsets&&a1[0].offsetHeight===0;a2.innerHTML="";W.body.removeChild(a2).style.display="none";a2=a1=null});var aU=function(a1){var a3=W.createElement("div");a1="on"+a1;var a2=(a1 in a3);if(!a2){a3.setAttribute(a1,"return;");a2=typeof a3[a1]==="function"}a3=null;return a2};aL.support.submitBubbles=aU("submit");aL.support.changeBubbles=aU("change");aW=aV=aP=aZ=aX=null})();var aI={},ah=/^(?:\{.*\}|\[.*\])$/;aL.extend({cache:{},uuid:0,expando:"hcwQuery"+aL.now(),noData:{embed:true,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:true},data:function(aR,aQ,aU){if(!aL.acceptData(aR)){return}aR=aR==aB?aI:aR;var aT=aR.nodeType,aV=aT?aR[aL.expando]:null,aP=aL.cache,aS;if(aT&&!aV&&typeof aQ==="string"&&aU===y){return}if(!aT){aP=aR}else{if(!aV){aR[aL.expando]=aV=++aL.uuid}}if(typeof aQ==="object"){if(aT){aP[aV]=aL.extend(aP[aV],aQ)}else{aL.extend(aP,aQ)}}else{if(aT&&!aP[aV]){aP[aV]={}}}aS=aT?aP[aV]:aP;if(aU!==y){aS[aQ]=aU}return typeof aQ==="string"?aS[aQ]:aS},removeData:function(aR,aQ){if(!aL.acceptData(aR)){return}aR=aR==aB?aI:aR;var aT=aR.nodeType,aV=aT?aR[aL.expando]:aR,aP=aL.cache,aS=aT?aP[aV]:aV;if(aQ){if(aS){delete aS[aQ];if(aT&&aL.isEmptyObject(aS)){aL.removeData(aR)}}}else{if(aT&&aL.support.deleteExpando){delete aR[aL.expando]}else{if(aR.removeAttribute){aR.removeAttribute(aL.expando)}else{if(aT){delete aP[aV]}else{for(var aU in aR){delete aR[aU]}}}}}},acceptData:function(aQ){if(aQ.nodeName){var aP=aL.noData[aQ.nodeName.toLowerCase()];if(aP){return !(aP===true||aQ.getAttribute("classid")!==aP)}}return true}});aL.fn.extend({data:function(aT,aV){var aU=null;if(typeof aT==="undefined"){if(this.length){var aP=this[0].attributes,aR;aU=aL.data(this[0]);for(var aS=0,aQ=aP.length;aS<aQ;aS++){aR=aP[aS].name;if(aR.indexOf("data-")===0){aR=aR.substr(5);av(this[0],aR,aU[aR])}}}return aU}else{if(typeof aT==="object"){return this.each(function(){aL.data(this,aT)})}}var aW=aT.split(".");aW[1]=aW[1]?"."+aW[1]:"";if(aV===y){aU=this.triggerHandler("getData"+aW[1]+"!",[aW[0]]);if(aU===y&&this.length){aU=aL.data(this[0],aT);aU=av(this[0],aT,aU)}return aU===y&&aW[1]?this.data(aW[0]):aU}else{return this.each(function(){var aY=aL(this),aX=[aW[0],aV];aY.triggerHandler("setData"+aW[1]+"!",aX);aL.data(this,aT,aV);aY.triggerHandler("changeData"+aW[1]+"!",aX)})}},removeData:function(aP){return this.each(function(){aL.removeData(this,aP)})}});function av(aQ,aP,aR){if(aR===y&&aQ.nodeType===1){aR=aQ.getAttribute("data-"+aP);if(typeof aR==="string"){try{aR=aR==="true"?true:aR==="false"?false:aR==="null"?null:!aL.isNaN(aR)?parseFloat(aR):ah.test(aR)?aL.parseJSON(aR):aR}catch(aS){}aL.data(aQ,aP,aR)}else{aR=y}}return aR}aL.extend({queue:function(aQ,aP,aS){if(!aQ){return}aP=(aP||"fx")+"queue";var aR=aL.data(aQ,aP);if(!aS){return aR||[]}if(!aR||aL.isArray(aS)){aR=aL.data(aQ,aP,aL.makeArray(aS))}else{aR.push(aS)}return aR},dequeue:function(aS,aR){aR=aR||"fx";var aP=aL.queue(aS,aR),aQ=aP.shift();if(aQ==="inprogress"){aQ=aP.shift()}if(aQ){if(aR==="fx"){aP.unshift("inprogress")}aQ.call(aS,function(){aL.dequeue(aS,aR)})}}});aL.fn.extend({queue:function(aP,aQ){if(typeof aP!=="string"){aQ=aP;aP="fx"}if(aQ===y){return aL.queue(this[0],aP)}return this.each(function(aS){var aR=aL.queue(this,aP,aQ);if(aP==="fx"&&aR[0]!=="inprogress"){aL.dequeue(this,aP)}})},dequeue:function(aP){return this.each(function(){aL.dequeue(this,aP)})},delay:function(aQ,aP){aQ=aL.fx?aL.fx.speeds[aQ]||aQ:aQ;aP=aP||"fx";return this.queue(aP,function(){var aR=this;setTimeout(function(){aL.dequeue(aR,aP)},aQ)})},clearQueue:function(aP){return this.queue(aP||"fx",[])}});var af=/[\n\t]/g,aF=/\s+/,aj=/\r/g,aE=/^(?:href|src|style)$/,b=/^(?:button|input)$/i,t=/^(?:button|input|object|select|textarea)$/i,f=/^a(?:rea)?$/i,G=/^(?:radio|checkbox)$/i;aL.props={"for":"htmlFor","class":"className",readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",colspan:"colSpan",tabindex:"tabIndex",usemap:"useMap",frameborder:"frameBorder"};aL.fn.extend({attr:function(aP,aQ){return aL.access(this,aP,aQ,true,aL.attr)},removeAttr:function(aP,aQ){return this.each(function(){aL.attr(this,aP,"");if(this.nodeType===1){this.removeAttribute(aP)}})},addClass:function(aW){if(aL.isFunction(aW)){return this.each(function(aZ){var aY=aL(this);aY.addClass(aW.call(this,aZ,aY.attr("class")))})}if(aW&&typeof aW==="string"){var aP=(aW||"").split(aF);for(var aS=0,aR=this.length;aS<aR;aS++){var aQ=this[aS];if(aQ.nodeType===1){if(!aQ.className){aQ.className=aW}else{var aT=" "+aQ.className+" ",aV=aQ.className;for(var aU=0,aX=aP.length;aU<aX;aU++){if(aT.indexOf(" "+aP[aU]+" ")<0){aV+=" "+aP[aU]}}aQ.className=aL.trim(aV)}}}}return this},removeClass:function(aU){if(aL.isFunction(aU)){return this.each(function(aY){var aX=aL(this);aX.removeClass(aU.call(this,aY,aX.attr("class")))})}if((aU&&typeof aU==="string")||aU===y){var aV=(aU||"").split(aF);for(var aR=0,aQ=this.length;aR<aQ;aR++){var aT=this[aR];if(aT.nodeType===1&&aT.className){if(aU){var aS=(" "+aT.className+" ").replace(af," ");for(var aW=0,aP=aV.length;aW<aP;aW++){aS=aS.replace(" "+aV[aW]+" "," ")}aT.className=aL.trim(aS)}else{aT.className=""}}}}return this},toggleClass:function(aS,aQ){var aR=typeof aS,aP=typeof aQ==="boolean";if(aL.isFunction(aS)){return this.each(function(aU){var aT=aL(this);aT.toggleClass(aS.call(this,aU,aT.attr("class"),aQ),aQ)})}return this.each(function(){if(aR==="string"){var aV,aU=0,aT=aL(this),aW=aQ,aX=aS.split(aF);while((aV=aX[aU++])){aW=aP?aW:!aT.hasClass(aV);aT[aW?"addClass":"removeClass"](aV)}}else{if(aR==="undefined"||aR==="boolean"){if(this.className){aL.data(this,"__className__",this.className)}this.className=this.className||aS===false?"":aL.data(this,"__className__")||""}}})},hasClass:function(aP){var aS=" "+aP+" ";for(var aR=0,aQ=this.length;aR<aQ;aR++){if((" "+this[aR].className+" ").replace(af," ").indexOf(aS)>-1){return true}}return false},val:function(aX){if(!arguments.length){var aR=this[0];if(aR){if(aL.nodeName(aR,"option")){var aQ=aR.attributes.value;return !aQ||aQ.specified?aR.value:aR.text}if(aL.nodeName(aR,"select")){var aV=aR.selectedIndex,aY=[],aZ=aR.options,aU=aR.type==="select-one";if(aV<0){return null}for(var aS=aU?aV:0,aW=aU?aV+1:aZ.length;aS<aW;aS++){var aT=aZ[aS];if(aT.selected&&(aL.support.optDisabled?!aT.disabled:aT.getAttribute("disabled")===null)&&(!aT.parentNode.disabled||!aL.nodeName(aT.parentNode,"optgroup"))){aX=aL(aT).val();if(aU){return aX}aY.push(aX)}}return aY}if(G.test(aR.type)&&!aL.support.checkOn){return aR.getAttribute("value")===null?"on":aR.value}return(aR.value||"").replace(aj,"")}return y}var aP=aL.isFunction(aX);return this.each(function(a2){var a1=aL(this),a3=aX;if(this.nodeType!==1){return}if(aP){a3=aX.call(this,a2,a1.val())}if(a3==null){a3=""}else{if(typeof a3==="number"){a3+=""}else{if(aL.isArray(a3)){a3=aL.map(a3,function(a4){return a4==null?"":a4+""})}}}if(aL.isArray(a3)&&G.test(this.type)){this.checked=aL.inArray(a1.val(),a3)>=0}else{if(aL.nodeName(this,"select")){var a0=aL.makeArray(a3);aL("option",this).each(function(){this.selected=aL.inArray(aL(this).val(),a0)>=0});if(!a0.length){this.selectedIndex=-1}}else{this.value=a3}}})}});aL.extend({attrFn:{val:true,css:true,html:true,text:true,data:true,width:true,height:true,offset:true},attr:function(aQ,aP,aV,aY){if(!aQ||aQ.nodeType===3||aQ.nodeType===8){return y}if(aY&&aP in aL.attrFn){return aL(aQ)[aP](aV)}var aR=aQ.nodeType!==1||!aL.isXMLDoc(aQ),aU=aV!==y;aP=aR&&aL.props[aP]||aP;var aT=aE.test(aP);if(aP==="selected"&&!aL.support.optSelected){var aW=aQ.parentNode;if(aW){aW.selectedIndex;if(aW.parentNode){aW.parentNode.selectedIndex}}}if((aP in aQ||aQ[aP]!==y)&&aR&&!aT){if(aU){if(aP==="type"&&b.test(aQ.nodeName)&&aQ.parentNode){aL.error("type property can't be changed")}if(aV===null){if(aQ.nodeType===1){aQ.removeAttribute(aP)}}else{aQ[aP]=aV}}if(aL.nodeName(aQ,"form")&&aQ.getAttributeNode(aP)){return aQ.getAttributeNode(aP).nodeValue}if(aP==="tabIndex"){var aX=aQ.getAttributeNode("tabIndex");return aX&&aX.specified?aX.value:t.test(aQ.nodeName)||f.test(aQ.nodeName)&&aQ.href?0:y}return aQ[aP]}if(!aL.support.style&&aR&&aP==="style"){if(aU){aQ.style.cssText=""+aV}return aQ.style.cssText}if(aU){aQ.setAttribute(aP,""+aV)}if(!aQ.attributes[aP]&&(aQ.hasAttribute&&!aQ.hasAttribute(aP))){return y}var aS=!aL.support.hrefNormalized&&aR&&aT?aQ.getAttribute(aP,2):aQ.getAttribute(aP);return aS===null?y:aS}});var aq=/\.(.*)$/,aD=/^(?:textarea|input|select)$/i,A=/\./g,O=/ /g,ab=/[^\w\s.|`]/g,v=function(aP){return aP.replace(ab,"\\$&")},u={focusin:0,focusout:0};aL.event={add:function(aT,aX,a3,aV){if(aT.nodeType===3||aT.nodeType===8){return}if(aL.isWindow(aT)&&(aT!==aB&&!aT.frameElement)){aT=aB}if(a3===false){a3=aG}else{if(!a3){return}}var aR,a1;if(a3.handler){aR=a3;a3=aR.handler}if(!a3.guid){a3.guid=aL.guid++}var aY=aL.data(aT);if(!aY){return}var aP=aT.nodeType?"events":"__events__",a2=aY[aP],aW=aY.handle;if(typeof a2==="function"){aW=a2.handle;a2=a2.events}else{if(!a2){if(!aT.nodeType){aY[aP]=aY=function(){}}aY.events=a2={}}}if(!aW){aY.handle=aW=function(){return typeof aL!=="undefined"&&!aL.event.triggered?aL.event.handle.apply(aW.elem,arguments):y}}aW.elem=aT;aX=aX.split(" ");var a0,aU=0,aQ;while((a0=aX[aU++])){a1=aR?aL.extend({},aR):{handler:a3,data:aV};if(a0.indexOf(".")>-1){aQ=a0.split(".");a0=aQ.shift();a1.namespace=aQ.slice(0).sort().join(".")}else{aQ=[];a1.namespace=""}a1.type=a0;if(!a1.guid){a1.guid=a3.guid}var aS=a2[a0],aZ=aL.event.special[a0]||{};if(!aS){aS=a2[a0]=[];if(!aZ.setup||aZ.setup.call(aT,aV,aQ,aW)===false){if(aT.addEventListener){aT.addEventListener(a0,aW,false)}else{if(aT.attachEvent){aT.attachEvent("on"+a0,aW)}}}}if(aZ.add){aZ.add.call(aT,a1);if(!a1.handler.guid){a1.handler.guid=a3.guid}}aS.push(a1);aL.event.global[a0]=true}aT=null},global:{},remove:function(a5,aZ,aR,aV){if(a5.nodeType===3||a5.nodeType===8){return}if(aR===false){aR=aG}var a8,aU,aW,a2,a3=0,aS,aX,a0,aT,aY,aP,a7,a1=a5.nodeType?"events":"__events__",a4=aL.data(a5),aQ=a4&&a4[a1];if(!a4||!aQ){return}if(typeof aQ==="function"){a4=aQ;aQ=aQ.events}if(aZ&&aZ.type){aR=aZ.handler;aZ=aZ.type}if(!aZ||typeof aZ==="string"&&aZ.charAt(0)==="."){aZ=aZ||"";for(aU in aQ){aL.event.remove(a5,aU+aZ)}return}aZ=aZ.split(" ");while((aU=aZ[a3++])){a7=aU;aP=null;aS=aU.indexOf(".")<0;aX=[];if(!aS){aX=aU.split(".");aU=aX.shift();a0=new RegExp("(^|\\.)"+aL.map(aX.slice(0).sort(),v).join("\\.(?:.*\\.)?")+"(\\.|$)")}aY=aQ[aU];if(!aY){continue}if(!aR){for(a2=0;a2<aY.length;a2++){aP=aY[a2];if(aS||a0.test(aP.namespace)){aL.event.remove(a5,a7,aP.handler,a2);aY.splice(a2--,1)}}continue}aT=aL.event.special[aU]||{};for(a2=aV||0;a2<aY.length;a2++){aP=aY[a2];if(aR.guid===aP.guid){if(aS||a0.test(aP.namespace)){if(aV==null){aY.splice(a2--,1)}if(aT.remove){aT.remove.call(a5,aP)}}if(aV!=null){break}}}if(aY.length===0||aV!=null&&aY.length===1){if(!aT.teardown||aT.teardown.call(a5,aX)===false){aL.removeEvent(a5,aU,a4.handle)}a8=null;delete aQ[aU]}}if(aL.isEmptyObject(aQ)){var a6=a4.handle;if(a6){a6.elem=null}delete a4.events;delete a4.handle;if(typeof a4==="function"){aL.removeData(a5,a1)}else{if(aL.isEmptyObject(a4)){aL.removeData(a5)}}}},trigger:function(aQ,aV,aS){var aZ=aQ.type||aQ,aU=arguments[3];if(!aU){aQ=typeof aQ==="object"?aQ[aL.expando]?aQ:aL.extend(aL.Event(aZ),aQ):aL.Event(aZ);if(aZ.indexOf("!")>=0){aQ.type=aZ=aZ.slice(0,-1);aQ.exclusive=true}if(!aS){aQ.stopPropagation();if(aL.event.global[aZ]){aL.each(aL.cache,function(){if(this.events&&this.events[aZ]){aL.event.trigger(aQ,aV,this.handle.elem)}})}}if(!aS||aS.nodeType===3||aS.nodeType===8){return y}aQ.result=y;aQ.target=aS;aV=aL.makeArray(aV);aV.unshift(aQ)}aQ.currentTarget=aS;var aW=aS.nodeType?aL.data(aS,"handle"):(aL.data(aS,"__events__")||{}).handle;if(aW){aW.apply(aS,aV)}var a1=aS.parentNode||aS.ownerDocument;try{if(!(aS&&aS.nodeName&&aL.noData[aS.nodeName.toLowerCase()])){if(aS["on"+aZ]&&aS["on"+aZ].apply(aS,aV)===false){aQ.result=false;aQ.preventDefault()}}}catch(a0){}if(!aQ.isPropagationStopped()&&a1){aL.event.trigger(aQ,aV,a1,true)}else{if(!aQ.isDefaultPrevented()){var aR,aX=aQ.target,aP=aZ.replace(aq,""),a2=aL.nodeName(aX,"a")&&aP==="click",aY=aL.event.special[aP]||{};if((!aY._default||aY._default.call(aS,aQ)===false)&&!a2&&!(aX&&aX.nodeName&&aL.noData[aX.nodeName.toLowerCase()])){try{if(aX[aP]){aR=aX["on"+aP];if(aR){aX["on"+aP]=null}aL.event.triggered=true;aX[aP]()}}catch(aT){}if(aR){aX["on"+aP]=aR}aL.event.triggered=false}}}},handle:function(aP){var aY,aR,aQ,a0,aZ,aU=[],aW=aL.makeArray(arguments);aP=aW[0]=aL.event.fix(aP||aB.event);aP.currentTarget=this;aY=aP.type.indexOf(".")<0&&!aP.exclusive;if(!aY){aQ=aP.type.split(".");aP.type=aQ.shift();aU=aQ.slice(0).sort();a0=new RegExp("(^|\\.)"+aU.join("\\.(?:.*\\.)?")+"(\\.|$)")}aP.namespace=aP.namespace||aU.join(".");aZ=aL.data(this,this.nodeType?"events":"__events__");if(typeof aZ==="function"){aZ=aZ.events}aR=(aZ||{})[aP.type];if(aZ&&aR){aR=aR.slice(0);for(var aT=0,aS=aR.length;aT<aS;aT++){var aX=aR[aT];if(aY||a0.test(aX.namespace)){aP.handler=aX.handler;aP.data=aX.data;aP.handleObj=aX;var aV=aX.handler.apply(this,aW);if(aV!==y){aP.result=aV;if(aV===false){aP.preventDefault();aP.stopPropagation()}}if(aP.isImmediatePropagationStopped()){break}}}}return aP.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(aS){if(aS[aL.expando]){return aS}var aQ=aS;aS=aL.Event(aQ);for(var aR=this.props.length,aU;aR;){aU=this.props[--aR];aS[aU]=aQ[aU]}if(!aS.target){aS.target=aS.srcElement||W}if(aS.target.nodeType===3){aS.target=aS.target.parentNode}if(!aS.relatedTarget&&aS.fromElement){aS.relatedTarget=aS.fromElement===aS.target?aS.toElement:aS.fromElement}if(aS.pageX==null&&aS.clientX!=null){var aT=W.documentElement,aP=W.body;aS.pageX=aS.clientX+(aT&&aT.scrollLeft||aP&&aP.scrollLeft||0)-(aT&&aT.clientLeft||aP&&aP.clientLeft||0);aS.pageY=aS.clientY+(aT&&aT.scrollTop||aP&&aP.scrollTop||0)-(aT&&aT.clientTop||aP&&aP.clientTop||0)}if(aS.which==null&&(aS.charCode!=null||aS.keyCode!=null)){aS.which=aS.charCode!=null?aS.charCode:aS.keyCode}if(!aS.metaKey&&aS.ctrlKey){aS.metaKey=aS.ctrlKey}if(!aS.which&&aS.button!==y){aS.which=(aS.button&1?1:(aS.button&2?3:(aS.button&4?2:0)))}return aS},guid:100000000,proxy:aL.proxy,special:{ready:{setup:aL.bindReady,teardown:aL.noop},live:{add:function(aP){aL.event.add(this,i(aP.origType,aP.selector),aL.extend({},aP,{handler:Q,guid:aP.handler.guid}))},remove:function(aP){aL.event.remove(this,i(aP.origType,aP.selector),aP)}},beforeunload:{setup:function(aR,aQ,aP){if(aL.isWindow(this)){this.onbeforeunload=aP}},teardown:function(aQ,aP){if(this.onbeforeunload===aP){this.onbeforeunload=null}}}}};aL.removeEvent=W.removeEventListener?function(aQ,aP,aR){if(aQ.removeEventListener){aQ.removeEventListener(aP,aR,false)}}:function(aQ,aP,aR){if(aQ.detachEvent){aQ.detachEvent("on"+aP,aR)}};aL.Event=function(aP){if(!this.preventDefault){return new aL.Event(aP)}if(aP&&aP.type){this.originalEvent=aP;this.type=aP.type}else{this.type=aP}this.timeStamp=aL.now();this[aL.expando]=true};function aG(){return false}function c(){return true}aL.Event.prototype={preventDefault:function(){this.isDefaultPrevented=c;var aP=this.originalEvent;if(!aP){return}if(aP.preventDefault){aP.preventDefault()}else{aP.returnValue=false}},stopPropagation:function(){this.isPropagationStopped=c;var aP=this.originalEvent;if(!aP){return}if(aP.stopPropagation){aP.stopPropagation()}aP.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=c;this.stopPropagation()},isDefaultPrevented:aG,isPropagationStopped:aG,isImmediatePropagationStopped:aG};var N=function(aQ){var aP=aQ.relatedTarget;try{while(aP&&aP!==this){aP=aP.parentNode}if(aP!==this){aQ.type=aQ.data;aL.event.handle.apply(this,arguments)}}catch(aR){}},al=function(aP){aP.type=aP.data;aL.event.handle.apply(this,arguments)};aL.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(aQ,aP){aL.event.special[aQ]={setup:function(aR){aL.event.add(this,aP,aR&&aR.selector?al:N,aQ)},teardown:function(aR){aL.event.remove(this,aP,aR&&aR.selector?al:N)}}});if(!aL.support.submitBubbles){aL.event.special.submit={setup:function(aQ,aP){if(this.nodeName.toLowerCase()!=="form"){aL.event.add(this,"click.specialSubmit",function(aT){var aS=aT.target,aR=aS.type;if((aR==="submit"||aR==="image")&&aL(aS).closest("form").length){aT.liveFired=y;return ao("submit",this,arguments)}});aL.event.add(this,"keypress.specialSubmit",function(aT){var aS=aT.target,aR=aS.type;if((aR==="text"||aR==="password")&&aL(aS).closest("form").length&&aT.keyCode===13){aT.liveFired=y;return ao("submit",this,arguments)}})}else{return false}},teardown:function(aP){aL.event.remove(this,".specialSubmit")}}}if(!aL.support.changeBubbles){var aH,e=function(aQ){var aP=aQ.type,aR=aQ.value;if(aP==="radio"||aP==="checkbox"){aR=aQ.checked}else{if(aP==="select-multiple"){aR=aQ.selectedIndex>-1?aL.map(aQ.options,function(aS){return aS.selected}).join("-"):""}else{if(aQ.nodeName.toLowerCase()==="select"){aR=aQ.selectedIndex}}}return aR},L=function L(aR){var aP=aR.target,aQ,aS;if(!aD.test(aP.nodeName)||aP.readOnly){return}aQ=aL.data(aP,"_change_data");aS=e(aP);if(aR.type!=="focusout"||aP.type!=="radio"){aL.data(aP,"_change_data",aS)}if(aQ===y||aS===aQ){return}if(aQ!=null||aS){aR.type="change";aR.liveFired=y;return aL.event.trigger(aR,arguments[1],aP)}};aL.event.special.change={filters:{focusout:L,beforedeactivate:L,click:function(aR){var aQ=aR.target,aP=aQ.type;if(aP==="radio"||aP==="checkbox"||aQ.nodeName.toLowerCase()==="select"){return L.call(this,aR)}},keydown:function(aR){var aQ=aR.target,aP=aQ.type;if((aR.keyCode===13&&aQ.nodeName.toLowerCase()!=="textarea")||(aR.keyCode===32&&(aP==="checkbox"||aP==="radio"))||aP==="select-multiple"){return L.call(this,aR)}},beforeactivate:function(aQ){var aP=aQ.target;aL.data(aP,"_change_data",e(aP))}},setup:function(aR,aQ){if(this.type==="file"){return false}for(var aP in aH){aL.event.add(this,aP+".specialChange",aH[aP])}return aD.test(this.nodeName)},teardown:function(aP){aL.event.remove(this,".specialChange");return aD.test(this.nodeName)}};aH=aL.event.special.change.filters;aH.focus=aH.beforeactivate}function ao(aQ,aR,aP){aP[0].type=aQ;return aL.event.handle.apply(aR,aP)}if(W.addEventListener){aL.each({focus:"focusin",blur:"focusout"},function(aR,aP){aL.event.special[aP]={setup:function(){if(u[aP]++===0){W.addEventListener(aR,aQ,true)}},teardown:function(){if(--u[aP]===0){W.removeEventListener(aR,aQ,true)}}};function aQ(aS){aS=aL.event.fix(aS);aS.type=aP;return aL.event.trigger(aS,null,aS.target)}})}aL.each(["bind","one"],function(aQ,aP){aL.fn[aP]=function(aW,aX,aV){if(typeof aW==="object"){for(var aT in aW){this[aP](aT,aX,aW[aT],aV)}return this}if(aL.isFunction(aX)||aX===false){aV=aX;aX=y}var aU=aP==="one"?aL.proxy(aV,function(aY){aL(this).unbind(aY,aU);return aV.apply(this,arguments)}):aV;if(aW==="unload"&&aP!=="one"){this.one(aW,aX,aV)}else{for(var aS=0,aR=this.length;aS<aR;aS++){aL.event.add(this[aS],aW,aU,aX)}}return this}});aL.fn.extend({unbind:function(aT,aS){if(typeof aT==="object"&&!aT.preventDefault){for(var aR in aT){this.unbind(aR,aT[aR])}}else{for(var aQ=0,aP=this.length;aQ<aP;aQ++){aL.event.remove(this[aQ],aT,aS)}}return this},delegate:function(aP,aQ,aS,aR){return this.live(aQ,aS,aR,aP)},undelegate:function(aP,aQ,aR){if(arguments.length===0){return this.unbind("live")}else{return this.die(aQ,null,aR,aP)}},trigger:function(aP,aQ){return this.each(function(){aL.event.trigger(aP,aQ,this)})},triggerHandler:function(aP,aR){if(this[0]){var aQ=aL.Event(aP);aQ.preventDefault();aQ.stopPropagation();aL.event.trigger(aQ,aR,this[0]);return aQ.result}},toggle:function(aR){var aP=arguments,aQ=1;while(aQ<aP.length){aL.proxy(aR,aP[aQ++])}return this.click(aL.proxy(aR,function(aS){var aT=(aL.data(this,"lastToggle"+aR.guid)||0)%aQ;aL.data(this,"lastToggle"+aR.guid,aT+1);aS.preventDefault();return aP[aT].apply(this,arguments)||false}))},hover:function(aP,aQ){return this.mouseenter(aP).mouseleave(aQ||aP)}});var ak={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};aL.each(["live","die"],function(aQ,aP){aL.fn[aP]=function(a0,aX,a2,aT){var a1,aY=0,aZ,aS,a4,aV=aT||this.selector,aR=aT?this:aL(this.context);if(typeof a0==="object"&&!a0.preventDefault){for(var a3 in a0){aR[aP](a3,aX,a0[a3],aV)}return this}if(aL.isFunction(aX)){a2=aX;aX=y}a0=(a0||"").split(" ");while((a1=a0[aY++])!=null){aZ=aq.exec(a1);aS="";if(aZ){aS=aZ[0];a1=a1.replace(aq,"")}if(a1==="hover"){a0.push("mouseenter"+aS,"mouseleave"+aS);continue}a4=a1;if(a1==="focus"||a1==="blur"){a0.push(ak[a1]+aS);a1=a1+aS}else{a1=(ak[a1]||a1)+aS}if(aP==="live"){for(var aW=0,aU=aR.length;aW<aU;aW++){aL.event.add(aR[aW],"live."+i(a1,aV),{data:aX,selector:aV,handler:a2,origType:a1,origHandler:a2,preType:a4})}}else{aR.unbind("live."+i(a1,aV),a2)}}return this}});function Q(a0){var aX,aS,a6,aU,aP,a2,aZ,a1,aY,a5,aW,aV,a4,a3=[],aT=[],aQ=aL.data(this,this.nodeType?"events":"__events__");if(typeof aQ==="function"){aQ=aQ.events}if(a0.liveFired===this||!aQ||!aQ.live||a0.button&&a0.type==="click"){return}if(a0.namespace){aV=new RegExp("(^|\\.)"+a0.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")}a0.liveFired=this;var aR=aQ.live.slice(0);for(aZ=0;aZ<aR.length;aZ++){aP=aR[aZ];if(aP.origType.replace(aq,"")===a0.type){aT.push(aP.selector)}else{aR.splice(aZ--,1)}}aU=aL(a0.target).closest(aT,a0.currentTarget);for(a1=0,aY=aU.length;a1<aY;a1++){aW=aU[a1];for(aZ=0;aZ<aR.length;aZ++){aP=aR[aZ];if(aW.selector===aP.selector&&(!aV||aV.test(aP.namespace))){a2=aW.elem;a6=null;if(aP.preType==="mouseenter"||aP.preType==="mouseleave"){a0.type=aP.preType;a6=aL(a0.relatedTarget).closest(aP.selector)[0]}if(!a6||a6!==a2){a3.push({elem:a2,handleObj:aP,level:aW.level})}}}}for(a1=0,aY=a3.length;a1<aY;a1++){aU=a3[a1];if(aS&&aU.level>aS){break}a0.currentTarget=aU.elem;a0.data=aU.handleObj.data;a0.handleObj=aU.handleObj;a4=aU.handleObj.origHandler.apply(aU.elem,arguments);if(a4===false||a0.isPropagationStopped()){aS=aU.level;if(a4===false){aX=false}if(a0.isImmediatePropagationStopped()){break}}}return aX}function i(aQ,aP){return(aQ&&aQ!=="*"?aQ+".":"")+aP.replace(A,"`").replace(O,"&")}aL.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(aQ,aP){aL.fn[aP]=function(aS,aR){if(aR==null){aR=aS;aS=null}return arguments.length>0?this.bind(aP,aS,aR):this.trigger(aP)};if(aL.attrFn){aL.attrFn[aP]=true}});if(aB.attachEvent&&!aB.addEventListener){aL(aB).bind("unload",function(){for(var aQ in aL.cache){if(aL.cache[aQ].handle){try{aL.event.remove(aL.cache[aQ].handle.elem)}catch(aP){}}}}); }(function(){var a4=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,aX=0,aS=Object.prototype.toString,a3=false,aW=true;[0,0].sort(function(){aW=false;return 0});var aQ=function(bb,a6,be,bf){be=be||[];a6=a6||W;var bh=a6;if(a6.nodeType!==1&&a6.nodeType!==9){return[]}if(!bb||typeof bb!=="string"){return be}var a8,bj,bm,a7,bi,bl,bk,bd,ba=true,a9=aQ.isXML(a6),bc=[],bg=bb;do{a4.exec("");a8=a4.exec(bg);if(a8){bg=a8[3];bc.push(a8[1]);if(a8[2]){a7=a8[3];break}}}while(a8);if(bc.length>1&&aY.exec(bb)){if(bc.length===2&&aT.relative[bc[0]]){bj=aV(bc[0]+bc[1],a6)}else{bj=aT.relative[bc[0]]?[a6]:aQ(bc.shift(),a6);while(bc.length){bb=bc.shift();if(aT.relative[bb]){bb+=bc.shift()}bj=aV(bb,bj)}}}else{if(!bf&&bc.length>1&&a6.nodeType===9&&!a9&&aT.match.ID.test(bc[0])&&!aT.match.ID.test(bc[bc.length-1])){bi=aQ.find(bc.shift(),a6,a9);a6=bi.expr?aQ.filter(bi.expr,bi.set)[0]:bi.set[0]}if(a6){bi=bf?{expr:bc.pop(),set:aP(bf)}:aQ.find(bc.pop(),bc.length===1&&(bc[0]==="~"||bc[0]==="+")&&a6.parentNode?a6.parentNode:a6,a9);bj=bi.expr?aQ.filter(bi.expr,bi.set):bi.set;if(bc.length>0){bm=aP(bj)}else{ba=false}while(bc.length){bl=bc.pop();bk=bl;if(!aT.relative[bl]){bl=""}else{bk=bc.pop()}if(bk==null){bk=a6}aT.relative[bl](bm,bk,a9)}}else{bm=bc=[]}}if(!bm){bm=bj}if(!bm){aQ.error(bl||bb)}if(aS.call(bm)==="[object Array]"){if(!ba){be.push.apply(be,bm)}else{if(a6&&a6.nodeType===1){for(bd=0;bm[bd]!=null;bd++){if(bm[bd]&&(bm[bd]===true||bm[bd].nodeType===1&&aQ.contains(a6,bm[bd]))){be.push(bj[bd])}}}else{for(bd=0;bm[bd]!=null;bd++){if(bm[bd]&&bm[bd].nodeType===1){be.push(bj[bd])}}}}}else{aP(bm,be)}if(a7){aQ(a7,bh,be,bf);aQ.uniqueSort(be)}return be};aQ.uniqueSort=function(a7){if(aR){a3=aW;a7.sort(aR);if(a3){for(var a6=1;a6<a7.length;a6++){if(a7[a6]===a7[a6-1]){a7.splice(a6--,1)}}}}return a7};aQ.matches=function(a6,a7){return aQ(a6,null,null,a7)};aQ.matchesSelector=function(a6,a7){return aQ(a7,null,null,[a6]).length>0};aQ.find=function(bd,a6,be){var bc;if(!bd){return[]}for(var a9=0,a8=aT.order.length;a9<a8;a9++){var ba,bb=aT.order[a9];if((ba=aT.leftMatch[bb].exec(bd))){var a7=ba[1];ba.splice(1,1);if(a7.substr(a7.length-1)!=="\\"){ba[1]=(ba[1]||"").replace(/\\/g,"");bc=aT.find[bb](ba,a6,be);if(bc!=null){bd=bd.replace(aT.match[bb],"");break}}}}if(!bc){bc=a6.getElementsByTagName("*")}return{set:bc,expr:bd}};aQ.filter=function(bh,bg,bk,ba){var bc,a6,a8=bh,bm=[],be=bg,bd=bg&&bg[0]&&aQ.isXML(bg[0]);while(bh&&bg.length){for(var bf in aT.filter){if((bc=aT.leftMatch[bf].exec(bh))!=null&&bc[2]){var bl,bj,a7=aT.filter[bf],a9=bc[1];a6=false;bc.splice(1,1);if(a9.substr(a9.length-1)==="\\"){continue}if(be===bm){bm=[]}if(aT.preFilter[bf]){bc=aT.preFilter[bf](bc,be,bk,bm,ba,bd);if(!bc){a6=bl=true}else{if(bc===true){continue}}}if(bc){for(var bb=0;(bj=be[bb])!=null;bb++){if(bj){bl=a7(bj,bc,bb,be);var bi=ba^!!bl;if(bk&&bl!=null){if(bi){a6=true}else{be[bb]=false}}else{if(bi){bm.push(bj);a6=true}}}}}if(bl!==y){if(!bk){be=bm}bh=bh.replace(aT.match[bf],"");if(!a6){return[]}break}}}if(bh===a8){if(a6==null){aQ.error(bh)}else{break}}a8=bh}return be};aQ.error=function(a6){throw"Syntax error, unrecognized expression: "+a6};var aT=aQ.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|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\((even|odd|[\dn+\-]*)\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a6){return a6.getAttribute("href")}},relative:{"+":function(bc,a7){var a9=typeof a7==="string",bb=a9&&!/\W/.test(a7),bd=a9&&!bb;if(bb){a7=a7.toLowerCase()}for(var a8=0,a6=bc.length,ba;a8<a6;a8++){if((ba=bc[a8])){while((ba=ba.previousSibling)&&ba.nodeType!==1){}bc[a8]=bd||ba&&ba.nodeName.toLowerCase()===a7?ba||false:ba===a7}}if(bd){aQ.filter(a7,bc,true)}},">":function(bc,a7){var bb,ba=typeof a7==="string",a8=0,a6=bc.length;if(ba&&!/\W/.test(a7)){a7=a7.toLowerCase();for(;a8<a6;a8++){bb=bc[a8];if(bb){var a9=bb.parentNode;bc[a8]=a9.nodeName.toLowerCase()===a7?a9:false}}}else{for(;a8<a6;a8++){bb=bc[a8];if(bb){bc[a8]=ba?bb.parentNode:bb.parentNode===a7}}if(ba){aQ.filter(a7,bc,true)}}},"":function(a9,a7,bb){var ba,a8=aX++,a6=a5;if(typeof a7==="string"&&!/\W/.test(a7)){a7=a7.toLowerCase();ba=a7;a6=a2}a6("parentNode",a7,a8,a9,ba,bb)},"~":function(a9,a7,bb){var ba,a8=aX++,a6=a5;if(typeof a7==="string"&&!/\W/.test(a7)){a7=a7.toLowerCase();ba=a7;a6=a2}a6("previousSibling",a7,a8,a9,ba,bb)}},find:{ID:function(a7,a8,a9){if(typeof a8.getElementById!=="undefined"&&!a9){var a6=a8.getElementById(a7[1]);return a6&&a6.parentNode?[a6]:[]}},NAME:function(a8,bb){if(typeof bb.getElementsByName!=="undefined"){var a7=[],ba=bb.getElementsByName(a8[1]);for(var a9=0,a6=ba.length;a9<a6;a9++){if(ba[a9].getAttribute("name")===a8[1]){a7.push(ba[a9])}}return a7.length===0?null:a7}},TAG:function(a6,a7){return a7.getElementsByTagName(a6[1])}},preFilter:{CLASS:function(a9,a7,a8,a6,bc,bd){a9=" "+a9[1].replace(/\\/g,"")+" ";if(bd){return a9}for(var ba=0,bb;(bb=a7[ba])!=null;ba++){if(bb){if(bc^(bb.className&&(" "+bb.className+" ").replace(/[\t\n]/g," ").indexOf(a9)>=0)){if(!a8){a6.push(bb)}}else{if(a8){a7[ba]=false}}}}return false},ID:function(a6){return a6[1].replace(/\\/g,"")},TAG:function(a7,a6){return a7[1].toLowerCase()},CHILD:function(a6){if(a6[1]==="nth"){var a7=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(a6[2]==="even"&&"2n"||a6[2]==="odd"&&"2n+1"||!/\D/.test(a6[2])&&"0n+"+a6[2]||a6[2]);a6[2]=(a7[1]+(a7[2]||1))-0;a6[3]=a7[3]-0}a6[0]=aX++;return a6},ATTR:function(ba,a7,a8,a6,bb,bc){var a9=ba[1].replace(/\\/g,"");if(!bc&&aT.attrMap[a9]){ba[1]=aT.attrMap[a9]}if(ba[2]==="~="){ba[4]=" "+ba[4]+" "}return ba},PSEUDO:function(ba,a7,a8,a6,bb){if(ba[1]==="not"){if((a4.exec(ba[3])||"").length>1||/^\w/.test(ba[3])){ba[3]=aQ(ba[3],null,null,a7)}else{var a9=aQ.filter(ba[3],a7,a8,true^bb);if(!a8){a6.push.apply(a6,a9)}return false}}else{if(aT.match.POS.test(ba[0])||aT.match.CHILD.test(ba[0])){return true}}return ba},POS:function(a6){a6.unshift(true);return a6}},filters:{enabled:function(a6){return a6.disabled===false&&a6.type!=="hidden"},disabled:function(a6){return a6.disabled===true},checked:function(a6){return a6.checked===true},selected:function(a6){a6.parentNode.selectedIndex;return a6.selected===true},parent:function(a6){return !!a6.firstChild},empty:function(a6){return !a6.firstChild},has:function(a8,a7,a6){return !!aQ(a6[3],a8).length},header:function(a6){return(/h\d/i).test(a6.nodeName)},text:function(a6){return"text"===a6.type},radio:function(a6){return"radio"===a6.type},checkbox:function(a6){return"checkbox"===a6.type},file:function(a6){return"file"===a6.type},password:function(a6){return"password"===a6.type},submit:function(a6){return"submit"===a6.type},image:function(a6){return"image"===a6.type},reset:function(a6){return"reset"===a6.type},button:function(a6){return"button"===a6.type||a6.nodeName.toLowerCase()==="button"},input:function(a6){return(/input|select|textarea|button/i).test(a6.nodeName)}},setFilters:{first:function(a7,a6){return a6===0},last:function(a8,a7,a6,a9){return a7===a9.length-1},even:function(a7,a6){return a6%2===0},odd:function(a7,a6){return a6%2===1},lt:function(a8,a7,a6){return a7<a6[3]-0},gt:function(a8,a7,a6){return a7>a6[3]-0},nth:function(a8,a7,a6){return a6[3]-0===a7},eq:function(a8,a7,a6){return a6[3]-0===a7}},filter:{PSEUDO:function(a8,bd,bc,be){var a6=bd[1],a7=aT.filters[a6];if(a7){return a7(a8,bc,bd,be)}else{if(a6==="contains"){return(a8.textContent||a8.innerText||aQ.getText([a8])||"").indexOf(bd[3])>=0}else{if(a6==="not"){var a9=bd[3];for(var bb=0,ba=a9.length;bb<ba;bb++){if(a9[bb]===a8){return false}}return true}else{aQ.error("Syntax error, unrecognized expression: "+a6)}}}},CHILD:function(a6,a9){var bc=a9[1],a7=a6;switch(bc){case"only":case"first":while((a7=a7.previousSibling)){if(a7.nodeType===1){return false}}if(bc==="first"){return true}a7=a6;case"last":while((a7=a7.nextSibling)){if(a7.nodeType===1){return false}}return true;case"nth":var a8=a9[2],bf=a9[3];if(a8===1&&bf===0){return true}var bb=a9[0],be=a6.parentNode;if(be&&(be.sizcache!==bb||!a6.nodeIndex)){var ba=0;for(a7=be.firstChild;a7;a7=a7.nextSibling){if(a7.nodeType===1){a7.nodeIndex=++ba}}be.sizcache=bb}var bd=a6.nodeIndex-bf;if(a8===0){return bd===0}else{return(bd%a8===0&&bd/a8>=0)}}},ID:function(a7,a6){return a7.nodeType===1&&a7.getAttribute("id")===a6},TAG:function(a7,a6){return(a6==="*"&&a7.nodeType===1)||a7.nodeName.toLowerCase()===a6},CLASS:function(a7,a6){return(" "+(a7.className||a7.getAttribute("class"))+" ").indexOf(a6)>-1},ATTR:function(bb,a9){var a8=a9[1],a6=aT.attrHandle[a8]?aT.attrHandle[a8](bb):bb[a8]!=null?bb[a8]:bb.getAttribute(a8),bc=a6+"",ba=a9[2],a7=a9[4];return a6==null?ba==="!=":ba==="="?bc===a7:ba==="*="?bc.indexOf(a7)>=0:ba==="~="?(" "+bc+" ").indexOf(a7)>=0:!a7?bc&&a6!==false:ba==="!="?bc!==a7:ba==="^="?bc.indexOf(a7)===0:ba==="$="?bc.substr(bc.length-a7.length)===a7:ba==="|="?bc===a7||bc.substr(0,a7.length+1)===a7+"-":false},POS:function(ba,a7,a8,bb){var a6=a7[2],a9=aT.setFilters[a6];if(a9){return a9(ba,a8,a7,bb)}}}};var aY=aT.match.POS,aU=function(a7,a6){return"\\"+(a6-0+1)};for(var a1 in aT.match){aT.match[a1]=new RegExp(aT.match[a1].source+(/(?![^\[]*\])(?![^\(]*\))/.source));aT.leftMatch[a1]=new RegExp(/(^(?:.|\r|\n)*?)/.source+aT.match[a1].source.replace(/\\(\d+)/g,aU))}var aP=function(a7,a6){a7=Array.prototype.slice.call(a7,0);if(a6){a6.push.apply(a6,a7);return a6}return a7};try{Array.prototype.slice.call(W.documentElement.childNodes,0)[0].nodeType}catch(aZ){aP=function(ba,a9){var a8=0,a7=a9||[];if(aS.call(ba)==="[object Array]"){Array.prototype.push.apply(a7,ba)}else{if(typeof ba.length==="number"){for(var a6=ba.length;a8<a6;a8++){a7.push(ba[a8])}}else{for(;ba[a8];a8++){a7.push(ba[a8])}}}return a7}}var aR,a0;if(W.documentElement.compareDocumentPosition){aR=function(a7,a6){if(a7===a6){a3=true;return 0}if(!a7.compareDocumentPosition||!a6.compareDocumentPosition){return a7.compareDocumentPosition?-1:1}return a7.compareDocumentPosition(a6)&4?-1:1}}else{aR=function(be,bd){var bb,a7,a8=[],a6=[],ba=be.parentNode,bc=bd.parentNode,bf=ba;if(be===bd){a3=true;return 0}else{if(ba===bc){return a0(be,bd)}else{if(!ba){return -1}else{if(!bc){return 1}}}}while(bf){a8.unshift(bf);bf=bf.parentNode}bf=bc;while(bf){a6.unshift(bf);bf=bf.parentNode}bb=a8.length;a7=a6.length;for(var a9=0;a9<bb&&a9<a7;a9++){if(a8[a9]!==a6[a9]){return a0(a8[a9],a6[a9])}}return a9===bb?a0(be,a6[a9],-1):a0(a8[a9],bd,1)};a0=function(a7,a6,a8){if(a7===a6){return a8}var a9=a7.nextSibling;while(a9){if(a9===a6){return -1}a9=a9.nextSibling}return 1}}aQ.getText=function(a6){var a7="",a9;for(var a8=0;a6[a8];a8++){a9=a6[a8];if(a9.nodeType===3||a9.nodeType===4){a7+=a9.nodeValue}else{if(a9.nodeType!==8){a7+=aQ.getText(a9.childNodes)}}}return a7};(function(){var a7=W.createElement("div"),a8="script"+(new Date()).getTime(),a6=W.documentElement;a7.innerHTML="<a name='"+a8+"'/>";a6.insertBefore(a7,a6.firstChild);if(W.getElementById(a8)){aT.find.ID=function(ba,bb,bc){if(typeof bb.getElementById!=="undefined"&&!bc){var a9=bb.getElementById(ba[1]);return a9?a9.id===ba[1]||typeof a9.getAttributeNode!=="undefined"&&a9.getAttributeNode("id").nodeValue===ba[1]?[a9]:y:[]}};aT.filter.ID=function(bb,a9){var ba=typeof bb.getAttributeNode!=="undefined"&&bb.getAttributeNode("id");return bb.nodeType===1&&ba&&ba.nodeValue===a9}}a6.removeChild(a7);a6=a7=null})();(function(){var a6=W.createElement("div");a6.appendChild(W.createComment(""));if(a6.getElementsByTagName("*").length>0){aT.find.TAG=function(a7,bb){var ba=bb.getElementsByTagName(a7[1]);if(a7[1]==="*"){var a9=[];for(var a8=0;ba[a8];a8++){if(ba[a8].nodeType===1){a9.push(ba[a8])}}ba=a9}return ba}}a6.innerHTML="<a href='#'></a>";if(a6.firstChild&&typeof a6.firstChild.getAttribute!=="undefined"&&a6.firstChild.getAttribute("href")!=="#"){aT.attrHandle.href=function(a7){return a7.getAttribute("href",2)}}a6=null})();if(W.querySelectorAll){(function(){var a6=aQ,a9=W.createElement("div"),a8="__sizzle__";a9.innerHTML="<p class='TEST'></p>";if(a9.querySelectorAll&&a9.querySelectorAll(".TEST").length===0){return}aQ=function(be,bd,ba,bc){bd=bd||W;be=be.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!bc&&!aQ.isXML(bd)){if(bd.nodeType===9){try{return aP(bd.querySelectorAll(be),ba)}catch(bg){}}else{if(bd.nodeType===1&&bd.nodeName.toLowerCase()!=="object"){var bb=bd.getAttribute("id"),bh=bb||a8;if(!bb){bd.setAttribute("id",bh)}try{return aP(bd.querySelectorAll("#"+bh+" "+be),ba)}catch(bf){}finally{if(!bb){bd.removeAttribute("id")}}}}}return a6(be,bd,ba,bc)};for(var a7 in a6){aQ[a7]=a6[a7]}a9=null})()}(function(){var a6=W.documentElement,a8=a6.matchesSelector||a6.mozMatchesSelector||a6.webkitMatchesSelector||a6.msMatchesSelector,a7=false;try{a8.call(W.documentElement,"[test!='']:sizzle")}catch(a9){a7=true}if(a8){aQ.matchesSelector=function(ba,bc){bc=bc.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!aQ.isXML(ba)){try{if(a7||!aT.match.PSEUDO.test(bc)&&!/!=/.test(bc)){return a8.call(ba,bc)}}catch(bb){}}return aQ(bc,null,null,[ba]).length>0}}})();(function(){var a6=W.createElement("div");a6.innerHTML="<div class='test e'></div><div class='test'></div>";if(!a6.getElementsByClassName||a6.getElementsByClassName("e").length===0){return}a6.lastChild.className="e";if(a6.getElementsByClassName("e").length===1){return}aT.order.splice(1,0,"CLASS");aT.find.CLASS=function(a7,a8,a9){if(typeof a8.getElementsByClassName!=="undefined"&&!a9){return a8.getElementsByClassName(a7[1])}};a6=null})();function a2(a7,bc,bb,bf,bd,be){for(var a9=0,a8=bf.length;a9<a8;a9++){var a6=bf[a9];if(a6){var ba=false;a6=a6[a7];while(a6){if(a6.sizcache===bb){ba=bf[a6.sizset];break}if(a6.nodeType===1&&!be){a6.sizcache=bb;a6.sizset=a9}if(a6.nodeName.toLowerCase()===bc){ba=a6;break}a6=a6[a7]}bf[a9]=ba}}}function a5(a7,bc,bb,bf,bd,be){for(var a9=0,a8=bf.length;a9<a8;a9++){var a6=bf[a9];if(a6){var ba=false;a6=a6[a7];while(a6){if(a6.sizcache===bb){ba=bf[a6.sizset];break}if(a6.nodeType===1){if(!be){a6.sizcache=bb;a6.sizset=a9}if(typeof bc!=="string"){if(a6===bc){ba=true;break}}else{if(aQ.filter(bc,[a6]).length>0){ba=a6;break}}}a6=a6[a7]}bf[a9]=ba}}}if(W.documentElement.contains){aQ.contains=function(a7,a6){return a7!==a6&&(a7.contains?a7.contains(a6):true)}}else{if(W.documentElement.compareDocumentPosition){aQ.contains=function(a7,a6){return !!(a7.compareDocumentPosition(a6)&16)}}else{aQ.contains=function(){return false}}}aQ.isXML=function(a6){var a7=(a6?a6.ownerDocument||a6:0).documentElement;return a7?a7.nodeName!=="HTML":false};var aV=function(a6,bd){var bb,a9=[],ba="",a8=bd.nodeType?[bd]:bd;while((bb=aT.match.PSEUDO.exec(a6))){ba+=bb[0];a6=a6.replace(aT.match.PSEUDO,"")}a6=aT.relative[a6]?a6+"*":a6;for(var bc=0,a7=a8.length;bc<a7;bc++){aQ(a6,a8[bc],a9)}return aQ.filter(ba,a9)};aL.find=aQ;aL.expr=aQ.selectors;aL.expr[":"]=aL.expr.filters;aL.unique=aQ.uniqueSort;aL.text=aQ.getText;aL.isXMLDoc=aQ.isXML;aL.contains=aQ.contains})();var K=/Until$/,T=/^(?:parents|prevUntil|prevAll)/,ay=/,/,aM=/^.[^:#\[\.,]*$/,C=Array.prototype.slice,w=aL.expr.match.POS;aL.fn.extend({find:function(aP){var aR=this.pushStack("","find",aP),aU=0;for(var aS=0,aQ=this.length;aS<aQ;aS++){aU=aR.length;aL.find(aP,this[aS],aR);if(aS>0){for(var aV=aU;aV<aR.length;aV++){for(var aT=0;aT<aU;aT++){if(aR[aT]===aR[aV]){aR.splice(aV--,1);break}}}}}return aR},has:function(aQ){var aP=aL(aQ);return this.filter(function(){for(var aS=0,aR=aP.length;aS<aR;aS++){if(aL.contains(this,aP[aS])){return true}}})},not:function(aP){return this.pushStack(aa(this,aP,false),"not",aP)},filter:function(aP){return this.pushStack(aa(this,aP,true),"filter",aP)},is:function(aP){return !!aP&&aL.filter(aP,this).length>0},closest:function(aZ,aQ){var aW=[],aT,aR,aY=this[0];if(aL.isArray(aZ)){var aV,aS,aU={},aP=1;if(aY&&aZ.length){for(aT=0,aR=aZ.length;aT<aR;aT++){aS=aZ[aT];if(!aU[aS]){aU[aS]=aL.expr.match.POS.test(aS)?aL(aS,aQ||this.context):aS}}while(aY&&aY.ownerDocument&&aY!==aQ){for(aS in aU){aV=aU[aS];if(aV.hcwQuery?aV.index(aY)>-1:aL(aY).is(aV)){aW.push({selector:aS,elem:aY,level:aP})}}aY=aY.parentNode;aP++}}return aW}var aX=w.test(aZ)?aL(aZ,aQ||this.context):null;for(aT=0,aR=this.length;aT<aR;aT++){aY=this[aT];while(aY){if(aX?aX.index(aY)>-1:aL.find.matchesSelector(aY,aZ)){aW.push(aY);break}else{aY=aY.parentNode;if(!aY||!aY.ownerDocument||aY===aQ){break}}}}aW=aW.length>1?aL.unique(aW):aW;return this.pushStack(aW,"closest",aZ)},index:function(aP){if(!aP||typeof aP==="string"){return aL.inArray(this[0],aP?aL(aP):this.parent().children())}return aL.inArray(aP.hcwQuery?aP[0]:aP,this)},add:function(aP,aQ){var aS=typeof aP==="string"?aL(aP,aQ||this.context):aL.makeArray(aP),aR=aL.merge(this.get(),aS);return this.pushStack(s(aS[0])||s(aR[0])?aR:aL.unique(aR))},andSelf:function(){return this.add(this.prevObject)}});function s(aP){return !aP||!aP.parentNode||aP.parentNode.nodeType===11}aL.each({parent:function(aQ){var aP=aQ.parentNode;return aP&&aP.nodeType!==11?aP:null},parents:function(aP){return aL.dir(aP,"parentNode")},parentsUntil:function(aQ,aP,aR){return aL.dir(aQ,"parentNode",aR)},next:function(aP){return aL.nth(aP,2,"nextSibling")},prev:function(aP){return aL.nth(aP,2,"previousSibling")},nextAll:function(aP){return aL.dir(aP,"nextSibling")},prevAll:function(aP){return aL.dir(aP,"previousSibling")},nextUntil:function(aQ,aP,aR){return aL.dir(aQ,"nextSibling",aR)},prevUntil:function(aQ,aP,aR){return aL.dir(aQ,"previousSibling",aR)},siblings:function(aP){return aL.sibling(aP.parentNode.firstChild,aP)},children:function(aP){return aL.sibling(aP.firstChild)},contents:function(aP){return aL.nodeName(aP,"iframe")?aP.contentDocument||aP.contentWindow.document:aL.makeArray(aP.childNodes)}},function(aP,aQ){aL.fn[aP]=function(aT,aR){var aS=aL.map(this,aQ,aT);if(!K.test(aP)){aR=aT}if(aR&&typeof aR==="string"){aS=aL.filter(aR,aS)}aS=this.length>1?aL.unique(aS):aS;if((this.length>1||ay.test(aR))&&T.test(aP)){aS=aS.reverse()}return this.pushStack(aS,aP,C.call(arguments).join(","))}});aL.extend({filter:function(aR,aP,aQ){if(aQ){aR=":not("+aR+")"}return aP.length===1?aL.find.matchesSelector(aP[0],aR)?[aP[0]]:[]:aL.find.matches(aR,aP)},dir:function(aR,aQ,aT){var aP=[],aS=aR[aQ];while(aS&&aS.nodeType!==9&&(aT===y||aS.nodeType!==1||!aL(aS).is(aT))){if(aS.nodeType===1){aP.push(aS)}aS=aS[aQ]}return aP},nth:function(aT,aP,aR,aS){aP=aP||1;var aQ=0;for(;aT;aT=aT[aR]){if(aT.nodeType===1&&++aQ===aP){break}}return aT},sibling:function(aR,aQ){var aP=[];for(;aR;aR=aR.nextSibling){if(aR.nodeType===1&&aR!==aQ){aP.push(aR)}}return aP}});function aa(aS,aR,aP){if(aL.isFunction(aR)){return aL.grep(aS,function(aU,aT){var aV=!!aR.call(aU,aT,aU);return aV===aP})}else{if(aR.nodeType){return aL.grep(aS,function(aU,aT){return(aU===aR)===aP})}else{if(typeof aR==="string"){var aQ=aL.grep(aS,function(aT){return aT.nodeType===1});if(aM.test(aR)){return aL.filter(aR,aQ,!aP)}else{aR=aL.filter(aR,aQ)}}}}return aL.grep(aS,function(aU,aT){return(aL.inArray(aU,aR)>=0)===aP})}var aA=/ hcwQuery\d+="(?:\d+|null)"/g,U=/^\s+/,F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,a=/<([\w:]+)/,o=/<tbody/i,I=/<|&#?\w+;/,B=/<(?:script|object|embed|option|style)/i,h=/checked\s*(?:[^=]|=\s*.checked.)/i,E=/\=([^="'>\s]+\/)>/g,X={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,"",""]};X.optgroup=X.option;X.tbody=X.tfoot=X.colgroup=X.caption=X.thead;X.th=X.td;if(!aL.support.htmlSerialize){X._default=[1,"div<div>","</div>"]}aL.fn.extend({text:function(aP){if(aL.isFunction(aP)){return this.each(function(aR){var aQ=aL(this);aQ.text(aP.call(this,aR,aQ.text()))})}if(typeof aP!=="object"&&aP!==y){return this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(aP))}return aL.text(this)},wrapAll:function(aP){if(aL.isFunction(aP)){return this.each(function(aR){aL(this).wrapAll(aP.call(this,aR))})}if(this[0]){var aQ=aL(aP,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){aQ.insertBefore(this[0])}aQ.map(function(){var aR=this;while(aR.firstChild&&aR.firstChild.nodeType===1){aR=aR.firstChild}return aR}).append(this)}return this},wrapInner:function(aP){if(aL.isFunction(aP)){return this.each(function(aQ){aL(this).wrapInner(aP.call(this,aQ))})}return this.each(function(){var aQ=aL(this),aR=aQ.contents();if(aR.length){aR.wrapAll(aP)}else{aQ.append(aP)}})},wrap:function(aP){return this.each(function(){aL(this).wrapAll(aP)})},unwrap:function(){return this.parent().each(function(){if(!aL.nodeName(this,"body")){aL(this).replaceWith(this.childNodes)}}).end()},append:function(){return this.domManip(arguments,true,function(aP){if(this.nodeType===1){this.appendChild(aP)}})},prepend:function(){return this.domManip(arguments,true,function(aP){if(this.nodeType===1){this.insertBefore(aP,this.firstChild)}})},before:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aQ){this.parentNode.insertBefore(aQ,this)})}else{if(arguments.length){var aP=aL(arguments[0]);aP.push.apply(aP,this.toArray());return this.pushStack(aP,"before",arguments)}}},after:function(){if(this[0]&&this[0].parentNode){return this.domManip(arguments,false,function(aQ){this.parentNode.insertBefore(aQ,this.nextSibling)})}else{if(arguments.length){var aP=this.pushStack(this,"after",arguments);aP.push.apply(aP,aL(arguments[0]).toArray());return aP}}},remove:function(aP,aS){for(var aQ=0,aR;(aR=this[aQ])!=null;aQ++){if(!aP||aL.filter(aP,[aR]).length){if(!aS&&aR.nodeType===1){aL.cleanData(aR.getElementsByTagName("*"));aL.cleanData([aR])}if(aR.parentNode){aR.parentNode.removeChild(aR)}}}return this},empty:function(){for(var aP=0,aQ;(aQ=this[aP])!=null;aP++){if(aQ.nodeType===1){aL.cleanData(aQ.getElementsByTagName("*"))}while(aQ.firstChild){aQ.removeChild(aQ.firstChild)}}return this},clone:function(aQ){var aP=this.map(function(){if(!aL.support.noCloneEvent&&!aL.isXMLDoc(this)){var aS=this.outerHTML,aR=this.ownerDocument;if(!aS){var aT=aR.createElement("div");aT.appendChild(this.cloneNode(true));aS=aT.innerHTML}return aL.clean([aS.replace(aA,"").replace(E,'="$1">').replace(U,"")],aR)[0]}else{return this.cloneNode(true)}});if(aQ===true){l(this,aP);l(this.find("*"),aP.find("*"))}return aP},html:function(aR){if(aR===y){return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(aA,""):null}else{if(typeof aR==="string"&&!B.test(aR)&&(aL.support.leadingWhitespace||!U.test(aR))&&!X[(a.exec(aR)||["",""])[1].toLowerCase()]){aR=aR.replace(F,"<$1></$2>");try{for(var aQ=0,aP=this.length;aQ<aP;aQ++){if(this[aQ].nodeType===1){aL.cleanData(this[aQ].getElementsByTagName("*"));this[aQ].innerHTML=aR}}}catch(aS){this.empty().append(aR)}}else{if(aL.isFunction(aR)){this.each(function(aU){var aT=aL(this);aT.html(aR.call(this,aU,aT.html()))})}else{this.empty().append(aR)}}}return this},replaceWith:function(aP){if(this[0]&&this[0].parentNode){if(aL.isFunction(aP)){return this.each(function(aS){var aR=aL(this),aQ=aR.html();aR.replaceWith(aP.call(this,aS,aQ))})}if(typeof aP!=="string"){aP=aL(aP).detach()}return this.each(function(){var aR=this.nextSibling,aQ=this.parentNode;aL(this).remove();if(aR){aL(aR).before(aP)}else{aL(aQ).append(aP)}})}else{return this.pushStack(aL(aL.isFunction(aP)?aP():aP),"replaceWith",aP)}},detach:function(aP){return this.remove(aP,true)},domManip:function(aV,aZ,aY){var aS,aT,aU,aX,aW=aV[0],aQ=[];if(!aL.support.checkClone&&arguments.length===3&&typeof aW==="string"&&h.test(aW)){return this.each(function(){aL(this).domManip(aV,aZ,aY,true)})}if(aL.isFunction(aW)){return this.each(function(a1){var a0=aL(this);aV[0]=aW.call(this,a1,aZ?a0.html():y);a0.domManip(aV,aZ,aY)})}if(this[0]){aX=aW&&aW.parentNode;if(aL.support.parentNode&&aX&&aX.nodeType===11&&aX.childNodes.length===this.length){aS={fragment:aX}}else{aS=aL.buildFragment(aV,this,aQ)}aU=aS.fragment;if(aU.childNodes.length===1){aT=aU=aU.firstChild}else{aT=aU.firstChild}if(aT){aZ=aZ&&aL.nodeName(aT,"tr");for(var aR=0,aP=this.length;aR<aP;aR++){aY.call(aZ?az(this[aR],aT):this[aR],aR>0||aS.cacheable||this.length>1?aU.cloneNode(true):aU)}}if(aQ.length){aL.each(aQ,aK)}}return this}});function az(aP,aQ){return aL.nodeName(aP,"table")?(aP.getElementsByTagName("tbody")[0]||aP.appendChild(aP.ownerDocument.createElement("tbody"))):aP}function l(aR,aP){var aQ=0;aP.each(function(){if(this.nodeName!==(aR[aQ]&&aR[aQ].nodeName)){return}var aW=aL.data(aR[aQ++]),aV=aL.data(this,aW),aS=aW&&aW.events;if(aS){delete aV.handle;aV.events={};for(var aU in aS){for(var aT in aS[aU]){aL.event.add(this,aU,aS[aU][aT],aS[aU][aT].data)}}}})}aL.buildFragment=function(aU,aS,aQ){var aT,aP,aR,aV=(aS&&aS[0]?aS[0].ownerDocument||aS[0]:W);if(aU.length===1&&typeof aU[0]==="string"&&aU[0].length<512&&aV===W&&!B.test(aU[0])&&(aL.support.checkClone||!h.test(aU[0]))){aP=true;aR=aL.fragments[aU[0]];if(aR){if(aR!==1){aT=aR}}}if(!aT){aT=aV.createDocumentFragment();aL.clean(aU,aV,aT,aQ)}if(aP){aL.fragments[aU[0]]=aR?aT:1}return{fragment:aT,cacheable:aP}};aL.fragments={};aL.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(aP,aQ){aL.fn[aP]=function(aR){var aU=[],aX=aL(aR),aW=this.length===1&&this[0].parentNode;if(aW&&aW.nodeType===11&&aW.childNodes.length===1&&aX.length===1){aX[aQ](this[0]);return this}else{for(var aV=0,aS=aX.length;aV<aS;aV++){var aT=(aV>0?this.clone(true):this).get();aL(aX[aV])[aQ](aT);aU=aU.concat(aT)}return this.pushStack(aU,aP,aX.selector)}}});aL.extend({clean:function(aR,aT,a0,aV){aT=aT||W;if(typeof aT.createElement==="undefined"){aT=aT.ownerDocument||aT[0]&&aT[0].ownerDocument||W}var a1=[];for(var aZ=0,aU;(aU=aR[aZ])!=null;aZ++){if(typeof aU==="number"){aU+=""}if(!aU){continue}if(typeof aU==="string"&&!I.test(aU)){aU=aT.createTextNode(aU)}else{if(typeof aU==="string"){aU=aU.replace(F,"<$1></$2>");var a2=(a.exec(aU)||["",""])[1].toLowerCase(),aS=X[a2]||X._default,aY=aS[0],aQ=aT.createElement("div");aQ.innerHTML=aS[1]+aU+aS[2];while(aY--){aQ=aQ.lastChild}if(!aL.support.tbody){var aP=o.test(aU),aX=a2==="table"&&!aP?aQ.firstChild&&aQ.firstChild.childNodes:aS[1]==="<table>"&&!aP?aQ.childNodes:[];for(var aW=aX.length-1;aW>=0;--aW){if(aL.nodeName(aX[aW],"tbody")&&!aX[aW].childNodes.length){aX[aW].parentNode.removeChild(aX[aW])}}}if(!aL.support.leadingWhitespace&&U.test(aU)){aQ.insertBefore(aT.createTextNode(U.exec(aU)[0]),aQ.firstChild)}aU=aQ.childNodes}}if(aU.nodeType){a1.push(aU)}else{a1=aL.merge(a1,aU)}}if(a0){for(aZ=0;a1[aZ];aZ++){if(aV&&aL.nodeName(a1[aZ],"script")&&(!a1[aZ].type||a1[aZ].type.toLowerCase()==="text/javascript")){aV.push(a1[aZ].parentNode?a1[aZ].parentNode.removeChild(a1[aZ]):a1[aZ])}else{if(a1[aZ].nodeType===1){a1.splice.apply(a1,[aZ+1,0].concat(aL.makeArray(a1[aZ].getElementsByTagName("script"))))}a0.appendChild(a1[aZ])}}}return a1},cleanData:function(aQ){var aT,aR,aP=aL.cache,aW=aL.event.special,aV=aL.support.deleteExpando;for(var aU=0,aS;(aS=aQ[aU])!=null;aU++){if(aS.nodeName&&aL.noData[aS.nodeName.toLowerCase()]){continue}aR=aS[aL.expando];if(aR){aT=aP[aR];if(aT&&aT.events){for(var aX in aT.events){if(aW[aX]){aL.event.remove(aS,aX)}else{aL.removeEvent(aS,aX,aT.handle)}}}if(aV){delete aS[aL.expando]}else{if(aS.removeAttribute){aS.removeAttribute(aL.expando)}}delete aP[aR]}}}});function aK(aP,aQ){if(aQ.src){aL.ajax({url:aQ.src,async:false,dataType:"script"})}else{aL.globalEval(aQ.text||aQ.textContent||aQ.innerHTML||"")}if(aQ.parentNode){aQ.parentNode.removeChild(aQ)}}var P=/alpha\([^)]*\)/i,V=/opacity=([^)]*)/,an=/-([a-z])/ig,q=/([A-Z])/g,aC=/^-?\d+(?:px)?$/i,aJ=/^-?\d/,ax={position:"absolute",visibility:"hidden",display:"block"},R=["Left","Right"],at=["Top","Bottom"],J,ad,am,g=function(aP,aQ){return aQ.toUpperCase()};aL.fn.css=function(aP,aQ){if(arguments.length===2&&aQ===y){return this}return aL.access(this,aP,aQ,true,function(aS,aR,aT){return aT!==y?aL.style(aS,aR,aT):aL.css(aS,aR)})};aL.extend({cssHooks:{opacity:{get:function(aR,aQ){if(aQ){var aP=J(aR,"opacity","opacity");return aP===""?"1":aP}else{return aR.style.opacity}}}},cssNumber:{zIndex:true,fontWeight:true,opacity:true,zoom:true,lineHeight:true},cssProps:{"float":aL.support.cssFloat?"cssFloat":"styleFloat"},style:function(aR,aQ,aW,aS){if(!aR||aR.nodeType===3||aR.nodeType===8||!aR.style){return}var aV,aT=aL.camelCase(aQ),aP=aR.style,aX=aL.cssHooks[aT];aQ=aL.cssProps[aT]||aT;if(aW!==y){if(typeof aW==="number"&&isNaN(aW)||aW==null){return}if(typeof aW==="number"&&!aL.cssNumber[aT]){aW+="px"}if(!aX||!("set" in aX)||(aW=aX.set(aR,aW))!==y){try{aP[aQ]=aW}catch(aU){}}}else{if(aX&&"get" in aX&&(aV=aX.get(aR,false,aS))!==y){return aV}return aP[aQ]}},css:function(aU,aT,aQ){var aS,aR=aL.camelCase(aT),aP=aL.cssHooks[aR];aT=aL.cssProps[aR]||aR;if(aP&&"get" in aP&&(aS=aP.get(aU,true,aQ))!==y){return aS}else{if(J){return J(aU,aT,aR)}}},swap:function(aS,aR,aT){var aP={};for(var aQ in aR){aP[aQ]=aS.style[aQ];aS.style[aQ]=aR[aQ]}aT.call(aS);for(aQ in aR){aS.style[aQ]=aP[aQ]}},camelCase:function(aP){return aP.replace(an,g)}});aL.curCSS=aL.css;aL.each(["height","width"],function(aQ,aP){aL.cssHooks[aP]={get:function(aT,aS,aR){var aU;if(aS){if(aT.offsetWidth!==0){aU=j(aT,aP,aR)}else{aL.swap(aT,ax,function(){aU=j(aT,aP,aR)})}if(aU<=0){aU=J(aT,aP,aP);if(aU==="0px"&&am){aU=am(aT,aP,aP)}if(aU!=null){return aU===""||aU==="auto"?"0px":aU}}if(aU<0||aU==null){aU=aT.style[aP];return aU===""||aU==="auto"?"0px":aU}return typeof aU==="string"?aU:aU+"px"}},set:function(aR,aS){if(aC.test(aS)){aS=parseFloat(aS);if(aS>=0){return aS+"px"}}else{return aS}}}});if(!aL.support.opacity){aL.cssHooks.opacity={get:function(aQ,aP){return V.test((aP&&aQ.currentStyle?aQ.currentStyle.filter:aQ.style.filter)||"")?(parseFloat(RegExp.$1)/100)+"":aP?"1":""},set:function(aS,aT){var aR=aS.style;aR.zoom=1;var aP=aL.isNaN(aT)?"":"alpha(opacity="+aT*100+")",aQ=aR.filter||"";aR.filter=P.test(aQ)?aQ.replace(P,aP):aR.filter+" "+aP}}}if(W.defaultView&&W.defaultView.getComputedStyle){ad=function(aU,aP,aS){var aR,aT,aQ;aS=aS.replace(q,"-$1").toLowerCase();if(!(aT=aU.ownerDocument.defaultView)){return y}if((aQ=aT.getComputedStyle(aU,null))){aR=aQ.getPropertyValue(aS);if(aR===""&&!aL.contains(aU.ownerDocument.documentElement,aU)){aR=aL.style(aU,aS)}}return aR}}if(W.documentElement.currentStyle){am=function(aT,aR){var aU,aP,aQ=aT.currentStyle&&aT.currentStyle[aR],aS=aT.style;if(!aC.test(aQ)&&aJ.test(aQ)){aU=aS.left;aP=aT.runtimeStyle.left;aT.runtimeStyle.left=aT.currentStyle.left;aS.left=aR==="fontSize"?"1em":(aQ||0);aQ=aS.pixelLeft+"px";aS.left=aU;aT.runtimeStyle.left=aP}return aQ===""?"auto":aQ}}J=ad||am;function j(aR,aQ,aP){var aT=aQ==="width"?R:at,aS=aQ==="width"?aR.offsetWidth:aR.offsetHeight;if(aP==="border"){return aS}aL.each(aT,function(){if(!aP){aS-=parseFloat(aL.css(aR,"padding"+this))||0}if(aP==="margin"){aS+=parseFloat(aL.css(aR,"margin"+this))||0}else{aS-=parseFloat(aL.css(aR,"border"+this+"Width"))||0}});return aS}if(aL.expr&&aL.expr.filters){aL.expr.filters.hidden=function(aR){var aQ=aR.offsetWidth,aP=aR.offsetHeight;return(aQ===0&&aP===0)||(!aL.support.reliableHiddenOffsets&&(aR.style.display||aL.css(aR,"display"))==="none")};aL.expr.filters.visible=function(aP){return !aL.expr.filters.hidden(aP)}}var Z=aL.now(),aw=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,k=/^(?:select|textarea)/i,ap=/^(?:color|date|datetime|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,ag=/^(?:GET|HEAD)$/,S=/\[\]$/,m=/\=\?(&|$)/,z=/\?/,aO=/([?&])_=[^&]*/,x=/^(\w+:)?\/\/([^\/?#]+)/,d=/%20/g,aN=/#.*$/,r=aL.fn.load;aL.fn.extend({load:function(aR,aU,aV){if(typeof aR!=="string"&&r){return r.apply(this,arguments)}else{if(!this.length){return this}}var aT=aR.indexOf(" ");if(aT>=0){var aP=aR.slice(aT,aR.length);aR=aR.slice(0,aT)}var aS="GET";if(aU){if(aL.isFunction(aU)){aV=aU;aU=null}else{if(typeof aU==="object"){aU=aL.param(aU,aL.ajaxSettings.traditional);aS="POST"}}}var aQ=this;aL.ajax({url:aR,type:aS,dataType:"html",data:aU,complete:function(aX,aW){if(aW==="success"||aW==="notmodified"){aQ.html(aP?aL("<div>").append(aX.responseText.replace(aw,"")).find(aP):aX.responseText)}if(aV){aQ.each(aV,[aX.responseText,aW,aX])}}});return this},serialize:function(){return aL.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?aL.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||k.test(this.nodeName)||ap.test(this.type))}).map(function(aP,aQ){var aR=aL(this).val();return aR==null?null:aL.isArray(aR)?aL.map(aR,function(aT,aS){return{name:aQ.name,value:aT}}):{name:aQ.name,value:aR}}).get()}});aL.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(aP,aQ){aL.fn[aQ]=function(aR){return this.bind(aQ,aR)}});aL.extend({get:function(aP,aR,aS,aQ){if(aL.isFunction(aR)){aQ=aQ||aS;aS=aR;aR=null}return aL.ajax({type:"GET",url:aP,data:aR,success:aS,dataType:aQ})},getScript:function(aP,aQ){return aL.get(aP,null,aQ,"script")},getJSON:function(aP,aQ,aR){return aL.get(aP,aQ,aR,"json")},post:function(aP,aR,aS,aQ){if(aL.isFunction(aR)){aQ=aQ||aS;aS=aR;aR={}}return aL.ajax({type:"POST",url:aP,data:aR,success:aS,dataType:aQ})},ajaxSetup:function(aP){aL.extend(aL.ajaxSettings,aP)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return new aB.XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},ajax:function(a6){var aZ=aL.extend(true,{},aL.ajaxSettings,a6),ba,a5,a9,aR=aZ.type.toUpperCase(),a2=ag.test(aR);aZ.url=aZ.url.replace(aN,"");aZ.context=a6&&a6.context!=null?a6.context:aZ;if(aZ.data&&aZ.processData&&typeof aZ.data!=="string"){aZ.data=aL.param(aZ.data,aZ.traditional)}if(aZ.dataType==="jsonp"){if(aR==="GET"){if(!m.test(aZ.url)){aZ.url+=(z.test(aZ.url)?"&":"?")+(aZ.jsonp||"callback")+"=?"}}else{if(!aZ.data||!m.test(aZ.data)){aZ.data=(aZ.data?aZ.data+"&":"")+(aZ.jsonp||"callback")+"=?"}}aZ.dataType="json"}if(aZ.dataType==="json"&&(aZ.data&&m.test(aZ.data)||m.test(aZ.url))){ba=aZ.jsonpCallback||("jsonp"+Z++);if(aZ.data){aZ.data=(aZ.data+"").replace(m,"="+ba+"$1")}aZ.url=aZ.url.replace(m,"="+ba+"$1");aZ.dataType="script";var a3=aB[ba];aB[ba]=function(bc){if(aL.isFunction(a3)){a3(bc)}else{aB[ba]=y;try{delete aB[ba]}catch(bb){}}a9=bc;aL.handleSuccess(aZ,aV,a5,a9);aL.handleComplete(aZ,aV,a5,a9);if(aS){aS.removeChild(a7)}}}if(aZ.dataType==="script"&&aZ.cache===null){aZ.cache=false}if(aZ.cache===false&&a2){var aP=aL.now();var a8=aZ.url.replace(aO,"$1_="+aP);aZ.url=a8+((a8===aZ.url)?(z.test(aZ.url)?"&":"?")+"_="+aP:"")}if(aZ.data&&a2){aZ.url+=(z.test(aZ.url)?"&":"?")+aZ.data}if(aZ.global&&aL.active++===0){aL.event.trigger("ajaxStart")}var a4=x.exec(aZ.url),aT=a4&&(a4[1]&&a4[1].toLowerCase()!==location.protocol||a4[2].toLowerCase()!==location.host);if(aZ.dataType==="script"&&aR==="GET"&&aT){var aS=W.getElementsByTagName("head")[0]||W.documentElement;var a7=W.createElement("script");if(aZ.scriptCharset){a7.charset=aZ.scriptCharset}a7.src=aZ.url;if(!ba){var a0=false;a7.onload=a7.onreadystatechange=function(){if(!a0&&(!this.readyState||this.readyState==="loaded"||this.readyState==="complete")){a0=true;aL.handleSuccess(aZ,aV,a5,a9);aL.handleComplete(aZ,aV,a5,a9);a7.onload=a7.onreadystatechange=null;if(aS&&a7.parentNode){aS.removeChild(a7)}}}}aS.insertBefore(a7,aS.firstChild);return y}var aX=false;var aV=aZ.xhr();if(!aV){return}if(aZ.username){aV.open(aR,aZ.url,aZ.async,aZ.username,aZ.password)}else{aV.open(aR,aZ.url,aZ.async)}try{if((aZ.data!=null&&!a2)||(a6&&a6.contentType)){aV.setRequestHeader("Content-Type",aZ.contentType)}if(aZ.ifModified){if(aL.lastModified[aZ.url]){aV.setRequestHeader("If-Modified-Since",aL.lastModified[aZ.url])}if(aL.etag[aZ.url]){aV.setRequestHeader("If-None-Match",aL.etag[aZ.url])}}if(!aT){aV.setRequestHeader("X-Requested-With","XMLHttpRequest")}aV.setRequestHeader("Accept",aZ.dataType&&aZ.accepts[aZ.dataType]?aZ.accepts[aZ.dataType]+", */*; q=0.01":aZ.accepts._default)}catch(aW){}if(aZ.beforeSend&&aZ.beforeSend.call(aZ.context,aV,aZ)===false){if(aZ.global&&aL.active--===1){aL.event.trigger("ajaxStop")}aV.abort();return false}if(aZ.global){aL.triggerGlobal(aZ,"ajaxSend",[aV,aZ])}var aY=aV.onreadystatechange=function(bb){if(!aV||aV.readyState===0||bb==="abort"){if(!aX){aL.handleComplete(aZ,aV,a5,a9)}aX=true;if(aV){aV.onreadystatechange=aL.noop}}else{if(!aX&&aV&&(aV.readyState===4||bb==="timeout")){aX=true;aV.onreadystatechange=aL.noop;a5=bb==="timeout"?"timeout":!aL.httpSuccess(aV)?"error":aZ.ifModified&&aL.httpNotModified(aV,aZ.url)?"notmodified":"success";var bc;if(a5==="success"){try{a9=aL.httpData(aV,aZ.dataType,aZ)}catch(bd){a5="parsererror";bc=bd}}if(a5==="success"||a5==="notmodified"){if(!ba){aL.handleSuccess(aZ,aV,a5,a9)}}else{aL.handleError(aZ,aV,a5,bc)}if(!ba){aL.handleComplete(aZ,aV,a5,a9)}if(bb==="timeout"){aV.abort()}if(aZ.async){aV=null}}}};try{var aQ=aV.abort;aV.abort=function(){if(aV){Function.prototype.call.call(aQ,aV)}aY("abort")}}catch(a1){}if(aZ.async&&aZ.timeout>0){setTimeout(function(){if(aV&&!aX){aY("timeout")}},aZ.timeout)}try{aV.send(a2||aZ.data==null?null:aZ.data)}catch(aU){aL.handleError(aZ,aV,null,aU);aL.handleComplete(aZ,aV,a5,a9)}if(!aZ.async){aY()}return aV},param:function(aP,aR){var aQ=[],aT=function(aU,aV){aV=aL.isFunction(aV)?aV():aV;aQ[aQ.length]=encodeURIComponent(aU)+"="+encodeURIComponent(aV)};if(aR===y){aR=aL.ajaxSettings.traditional}if(aL.isArray(aP)||aP.hcwQuery){aL.each(aP,function(){aT(this.name,this.value)})}else{for(var aS in aP){n(aS,aP[aS],aR,aT)}}return aQ.join("&").replace(d,"+")}});function n(aQ,aS,aP,aR){if(aL.isArray(aS)&&aS.length){aL.each(aS,function(aU,aT){if(aP||S.test(aQ)){aR(aQ,aT)}else{n(aQ+"["+(typeof aT==="object"||aL.isArray(aT)?aU:"")+"]",aT,aP,aR)}})}else{if(!aP&&aS!=null&&typeof aS==="object"){if(aL.isEmptyObject(aS)){aR(aQ,"")}else{aL.each(aS,function(aU,aT){n(aQ+"["+aU+"]",aT,aP,aR)})}}else{aR(aQ,aS)}}}aL.extend({active:0,lastModified:{},etag:{},handleError:function(aQ,aS,aP,aR){if(aQ.error){aQ.error.call(aQ.context,aS,aP,aR)}if(aQ.global){aL.triggerGlobal(aQ,"ajaxError",[aS,aQ,aR])}},handleSuccess:function(aQ,aS,aP,aR){if(aQ.success){aQ.success.call(aQ.context,aR,aP,aS)}if(aQ.global){aL.triggerGlobal(aQ,"ajaxSuccess",[aS,aQ])}},handleComplete:function(aQ,aR,aP){if(aQ.complete){aQ.complete.call(aQ.context,aR,aP)}if(aQ.global){aL.triggerGlobal(aQ,"ajaxComplete",[aR,aQ])}if(aQ.global&&aL.active--===1){aL.event.trigger("ajaxStop")}},triggerGlobal:function(aR,aQ,aP){(aR.context&&aR.context.url==null?aL(aR.context):aL.event).trigger(aQ,aP)},httpSuccess:function(aQ){try{return !aQ.status&&location.protocol==="file:"||aQ.status>=200&&aQ.status<300||aQ.status===304||aQ.status===1223}catch(aP){}return false},httpNotModified:function(aS,aP){var aR=aS.getResponseHeader("Last-Modified"),aQ=aS.getResponseHeader("Etag");if(aR){aL.lastModified[aP]=aR}if(aQ){aL.etag[aP]=aQ}return aS.status===304},httpData:function(aU,aS,aR){var aQ=aU.getResponseHeader("content-type")||"",aP=aS==="xml"||!aS&&aQ.indexOf("xml")>=0,aT=aP?aU.responseXML:aU.responseText;if(aP&&aT.documentElement.nodeName==="parsererror"){aL.error("parsererror")}if(aR&&aR.dataFilter){aT=aR.dataFilter(aT,aS)}if(typeof aT==="string"){if(aS==="json"||!aS&&aQ.indexOf("json")>=0){aT=aL.parseJSON(aT)}else{if(aS==="script"||!aS&&aQ.indexOf("javascript")>=0){aL.globalEval(aT)}}}return aT}});if(aB.ActiveXObject){aL.ajaxSettings.xhr=function(){if(aB.location.protocol!=="file:"){try{return new aB.XMLHttpRequest()}catch(aQ){}}try{return new aB.ActiveXObject("Microsoft.XMLHTTP")}catch(aP){}}}aL.support.ajax=!!aL.ajaxSettings.xhr();var D={},Y=/^(?:toggle|show|hide)$/,ai=/^([+\-]=)?([\d+.\-]+)(.*)$/,au,ac=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];aL.fn.extend({show:function(aS,aV,aU){var aR,aT;if(aS||aS===0){return this.animate(ar("show",3),aS,aV,aU)}else{for(var aQ=0,aP=this.length;aQ<aP;aQ++){aR=this[aQ];aT=aR.style.display;if(!aL.data(aR,"olddisplay")&&aT==="none"){aT=aR.style.display=""}if(aT===""&&aL.css(aR,"display")==="none"){aL.data(aR,"olddisplay",p(aR.nodeName))}}for(aQ=0;aQ<aP;aQ++){aR=this[aQ];aT=aR.style.display;if(aT===""||aT==="none"){aR.style.display=aL.data(aR,"olddisplay")||""}}return this}},hide:function(aR,aU,aT){if(aR||aR===0){return this.animate(ar("hide",3),aR,aU,aT)}else{for(var aQ=0,aP=this.length;aQ<aP;aQ++){var aS=aL.css(this[aQ],"display");if(aS!=="none"){aL.data(this[aQ],"olddisplay",aS)}}for(aQ=0;aQ<aP;aQ++){this[aQ].style.display="none"}return this}},_toggle:aL.fn.toggle,toggle:function(aR,aQ,aS){var aP=typeof aR==="boolean";if(aL.isFunction(aR)&&aL.isFunction(aQ)){this._toggle.apply(this,arguments)}else{if(aR==null||aP){this.each(function(){var aT=aP?aR:aL(this).is(":hidden");aL(this)[aT?"show":"hide"]()})}else{this.animate(ar("toggle",3),aR,aQ,aS)}}return this},fadeTo:function(aP,aS,aR,aQ){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:aS},aP,aR,aQ)},animate:function(aT,aQ,aS,aR){var aP=aL.speed(aQ,aS,aR);if(aL.isEmptyObject(aT)){return this.each(aP.complete)}return this[aP.queue===false?"each":"queue"](function(){var aW=aL.extend({},aP),a0,aX=this.nodeType===1,aY=aX&&aL(this).is(":hidden"),aU=this;for(a0 in aT){var aV=aL.camelCase(a0);if(a0!==aV){aT[aV]=aT[a0];delete aT[a0];a0=aV}if(aT[a0]==="hide"&&aY||aT[a0]==="show"&&!aY){return aW.complete.call(this)}if(aX&&(a0==="height"||a0==="width")){aW.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY];if(aL.css(this,"display")==="inline"&&aL.css(this,"float")==="none"){if(!aL.support.inlineBlockNeedsLayout){this.style.display="inline-block"}else{var aZ=p(this.nodeName);if(aZ==="inline"){this.style.display="inline-block"}else{this.style.display="inline";this.style.zoom=1}}}}if(aL.isArray(aT[a0])){(aW.specialEasing=aW.specialEasing||{})[a0]=aT[a0][1];aT[a0]=aT[a0][0]}}if(aW.overflow!=null){this.style.overflow="hidden"}aW.curAnim=aL.extend({},aT);aL.each(aT,function(a2,a6){var a5=new aL.fx(aU,aW,a2);if(Y.test(a6)){a5[a6==="toggle"?aY?"show":"hide":a6](aT)}else{var a4=ai.exec(a6),a7=a5.cur()||0;if(a4){var a1=parseFloat(a4[2]),a3=a4[3]||"px";if(a3!=="px"){aL.style(aU,a2,(a1||1)+a3);a7=((a1||1)/a5.cur())*a7;aL.style(aU,a2,a7+a3)}if(a4[1]){a1=((a4[1]==="-="?-1:1)*a1)+a7}a5.custom(a7,a1,a3)}else{a5.custom(a7,a6,"")}}});return true})},stop:function(aQ,aP){var aR=aL.timers;if(aQ){this.queue([])}this.each(function(){for(var aS=aR.length-1;aS>=0;aS--){if(aR[aS].elem===this){if(aP){aR[aS](true)}aR.splice(aS,1)}}});if(!aP){this.dequeue()}return this}});function ar(aQ,aP){var aR={};aL.each(ac.concat.apply([],ac.slice(0,aP)),function(){aR[this]=aQ});return aR}aL.each({slideDown:ar("show",1),slideUp:ar("hide",1),slideToggle:ar("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(aP,aQ){aL.fn[aP]=function(aR,aT,aS){return this.animate(aQ,aR,aT,aS)}});aL.extend({speed:function(aR,aS,aQ){var aP=aR&&typeof aR==="object"?aL.extend({},aR):{complete:aQ||!aQ&&aS||aL.isFunction(aR)&&aR,duration:aR,easing:aQ&&aS||aS&&!aL.isFunction(aS)&&aS};aP.duration=aL.fx.off?0:typeof aP.duration==="number"?aP.duration:aP.duration in aL.fx.speeds?aL.fx.speeds[aP.duration]:aL.fx.speeds._default;aP.old=aP.complete;aP.complete=function(){if(aP.queue!==false){aL(this).dequeue()}if(aL.isFunction(aP.old)){aP.old.call(this)}};return aP},easing:{linear:function(aR,aS,aP,aQ){return aP+aQ*aR},swing:function(aR,aS,aP,aQ){return((-Math.cos(aR*Math.PI)/2)+0.5)*aQ+aP}},timers:[],fx:function(aQ,aP,aR){this.options=aP;this.elem=aQ;this.prop=aR;if(!aP.orig){aP.orig={}}}});aL.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(aL.fx.step[this.prop]||aL.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 aP=parseFloat(aL.css(this.elem,this.prop));return aP&&aP>-10000?aP:0},custom:function(aU,aT,aS){var aP=this,aR=aL.fx;this.startTime=aL.now();this.start=aU;this.end=aT;this.unit=aS||this.unit||"px";this.now=this.start;this.pos=this.state=0;function aQ(aV){return aP.step(aV)}aQ.elem=this.elem;if(aQ()&&aL.timers.push(aQ)&&!au){au=setInterval(aR.tick,aR.interval)}},show:function(){this.options.orig[this.prop]=aL.style(this.elem,this.prop);this.options.show=true;this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur());aL(this.elem).show()},hide:function(){this.options.orig[this.prop]=aL.style(this.elem,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(aS){var aX=aL.now(),aT=true;if(aS||aX>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;for(var aU in this.options.curAnim){if(this.options.curAnim[aU]!==true){aT=false}}if(aT){if(this.options.overflow!=null&&!aL.support.shrinkWrapBlocks){var aR=this.elem,aY=this.options;aL.each(["","X","Y"],function(aZ,a0){aR.style["overflow"+a0]=aY.overflow[aZ]})}if(this.options.hide){aL(this.elem).hide()}if(this.options.hide||this.options.show){for(var aP in this.options.curAnim){aL.style(this.elem,aP,this.options.orig[aP])}}this.options.complete.call(this.elem)}return false}else{var aQ=aX-this.startTime;this.state=aQ/this.options.duration;var aV=this.options.specialEasing&&this.options.specialEasing[this.prop];var aW=this.options.easing||(aL.easing.swing?"swing":"linear");this.pos=aL.easing[aV||aW](this.state,aQ,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};aL.extend(aL.fx,{tick:function(){var aQ=aL.timers;for(var aP=0;aP<aQ.length;aP++){if(!aQ[aP]()){aQ.splice(aP--,1)}}if(!aQ.length){aL.fx.stop()}},interval:13,stop:function(){clearInterval(au);au=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(aP){aL.style(aP.elem,"opacity",aP.now)},_default:function(aP){if(aP.elem.style&&aP.elem.style[aP.prop]!=null){aP.elem.style[aP.prop]=(aP.prop==="width"||aP.prop==="height"?Math.max(0,aP.now):aP.now)+aP.unit}else{aP.elem[aP.prop]=aP.now}}}});if(aL.expr&&aL.expr.filters){aL.expr.filters.animated=function(aP){return aL.grep(aL.timers,function(aQ){return aP===aQ.elem}).length}}function p(aR){if(!D[aR]){var aP=aL("<"+aR+">").appendTo("body"),aQ=aP.css("display");aP.remove();if(aQ==="none"||aQ===""){aQ="block"}D[aR]=aQ}return D[aR]}var H=/^t(?:able|d|h)$/i,M=/^(?:body|html)$/i;if("getBoundingClientRect" in W.documentElement){aL.fn.offset=function(a2){var aS=this[0],aV;if(a2){return this.each(function(a3){aL.offset.setOffset(this,a2,a3)})}if(!aS||!aS.ownerDocument){return null}if(aS===aS.ownerDocument.body){return aL.offset.bodyOffset(aS)}try{aV=aS.getBoundingClientRect()}catch(aZ){}var a1=aS.ownerDocument,aQ=a1.documentElement;if(!aV||!aL.contains(aQ,aS)){return aV||{top:0,left:0}}var aW=a1.body,aX=ae(a1),aU=aQ.clientTop||aW.clientTop||0,aY=aQ.clientLeft||aW.clientLeft||0,aP=(aX.pageYOffset||aL.support.boxModel&&aQ.scrollTop||aW.scrollTop),aT=(aX.pageXOffset||aL.support.boxModel&&aQ.scrollLeft||aW.scrollLeft),a0=aV.top+aP-aU,aR=aV.left+aT-aY;return{top:a0,left:aR}}}else{aL.fn.offset=function(a0){var aU=this[0];if(a0){return this.each(function(a1){aL.offset.setOffset(this,a0,a1)})}if(!aU||!aU.ownerDocument){return null}if(aU===aU.ownerDocument.body){return aL.offset.bodyOffset(aU)}aL.offset.initialize();var aX,aR=aU.offsetParent,aQ=aU,aZ=aU.ownerDocument,aS=aZ.documentElement,aV=aZ.body,aW=aZ.defaultView,aP=aW?aW.getComputedStyle(aU,null):aU.currentStyle,aY=aU.offsetTop,aT=aU.offsetLeft;while((aU=aU.parentNode)&&aU!==aV&&aU!==aS){if(aL.offset.supportsFixedPosition&&aP.position==="fixed"){break}aX=aW?aW.getComputedStyle(aU,null):aU.currentStyle;aY-=aU.scrollTop;aT-=aU.scrollLeft;if(aU===aR){aY+=aU.offsetTop;aT+=aU.offsetLeft;if(aL.offset.doesNotAddBorder&&!(aL.offset.doesAddBorderForTableAndCells&&H.test(aU.nodeName))){aY+=parseFloat(aX.borderTopWidth)||0;aT+=parseFloat(aX.borderLeftWidth)||0}aQ=aR;aR=aU.offsetParent}if(aL.offset.subtractsBorderForOverflowNotVisible&&aX.overflow!=="visible"){aY+=parseFloat(aX.borderTopWidth)||0;aT+=parseFloat(aX.borderLeftWidth)||0}aP=aX}if(aP.position==="relative"||aP.position==="static"){aY+=aV.offsetTop;aT+=aV.offsetLeft}if(aL.offset.supportsFixedPosition&&aP.position==="fixed"){aY+=Math.max(aS.scrollTop,aV.scrollTop);aT+=Math.max(aS.scrollLeft,aV.scrollLeft)}return{top:aY,left:aT}}}aL.offset={initialize:function(){var aP=W.body,aQ=W.createElement("div"),aT,aV,aU,aW,aR=parseFloat(aL.css(aP,"marginTop"))||0,aS="<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>";aL.extend(aQ.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"});aQ.innerHTML=aS;aP.insertBefore(aQ,aP.firstChild);aT=aQ.firstChild;aV=aT.firstChild;aW=aT.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(aV.offsetTop!==5);this.doesAddBorderForTableAndCells=(aW.offsetTop===5);aV.style.position="fixed";aV.style.top="20px";this.supportsFixedPosition=(aV.offsetTop===20||aV.offsetTop===15);aV.style.position=aV.style.top="";aT.style.overflow="hidden";aT.style.position="relative";this.subtractsBorderForOverflowNotVisible=(aV.offsetTop===-5);this.doesNotIncludeMarginInBodyOffset=(aP.offsetTop!==aR);aP.removeChild(aQ);aP=aQ=aT=aV=aU=aW=null;aL.offset.initialize=aL.noop},bodyOffset:function(aP){var aR=aP.offsetTop,aQ=aP.offsetLeft;aL.offset.initialize();if(aL.offset.doesNotIncludeMarginInBodyOffset){aR+=parseFloat(aL.css(aP,"marginTop"))||0;aQ+=parseFloat(aL.css(aP,"marginLeft"))||0}return{top:aR,left:aQ}},setOffset:function(aS,a1,aV){var aW=aL.css(aS,"position");if(aW==="static"){aS.style.position="relative"}var aU=aL(aS),aQ=aU.offset(),aP=aL.css(aS,"top"),aZ=aL.css(aS,"left"),a0=(aW==="absolute"&&aL.inArray("auto",[aP,aZ])>-1),aY={},aX={},aR,aT;if(a0){aX=aU.position()}aR=a0?aX.top:parseInt(aP,10)||0;aT=a0?aX.left:parseInt(aZ,10)||0;if(aL.isFunction(a1)){a1=a1.call(aS,aV,aQ)}if(a1.top!=null){aY.top=(a1.top-aQ.top)+aR}if(a1.left!=null){aY.left=(a1.left-aQ.left)+aT}if("using" in a1){a1.using.call(aS,aY)}else{aU.css(aY)}}};aL.fn.extend({position:function(){if(!this[0]){return null}var aR=this[0],aQ=this.offsetParent(),aS=this.offset(),aP=M.test(aQ[0].nodeName)?{top:0,left:0}:aQ.offset();aS.top-=parseFloat(aL.css(aR,"marginTop"))||0;aS.left-=parseFloat(aL.css(aR,"marginLeft"))||0;aP.top+=parseFloat(aL.css(aQ[0],"borderTopWidth"))||0;aP.left+=parseFloat(aL.css(aQ[0],"borderLeftWidth"))||0;return{top:aS.top-aP.top,left:aS.left-aP.left}},offsetParent:function(){return this.map(function(){var aP=this.offsetParent||W.body;while(aP&&(!M.test(aP.nodeName)&&aL.css(aP,"position")==="static")){aP=aP.offsetParent}return aP})}});aL.each(["Left","Top"],function(aQ,aP){var aR="scroll"+aP;aL.fn[aR]=function(aU){var aS=this[0],aT;if(!aS){return null}if(aU!==y){return this.each(function(){aT=ae(this);if(aT){aT.scrollTo(!aQ?aU:aL(aT).scrollLeft(),aQ?aU:aL(aT).scrollTop())}else{this[aR]=aU}})}else{aT=ae(aS);return aT?("pageXOffset" in aT)?aT[aQ?"pageYOffset":"pageXOffset"]:aL.support.boxModel&&aT.document.documentElement[aR]||aT.document.body[aR]:aS[aR]}}});function ae(aP){return aL.isWindow(aP)?aP:aP.nodeType===9?aP.defaultView||aP.parentWindow:false}aL.each(["Height","Width"],function(aQ,aP){var aR=aP.toLowerCase();aL.fn["inner"+aP]=function(){return this[0]?parseFloat(aL.css(this[0],aR,"padding")):null};aL.fn["outer"+aP]=function(aS){return this[0]?parseFloat(aL.css(this[0],aR,aS?"margin":"border")):null};aL.fn[aR]=function(aT){var aU=this[0];if(!aU){return aT==null?null:this}if(aL.isFunction(aT)){return this.each(function(aX){var aW=aL(this);aW[aR](aT.call(this,aX,aW[aR]()))})}if(aL.isWindow(aU)){return aU.document.compatMode==="CSS1Compat"&&aU.document.documentElement["client"+aP]||aU.document.body["client"+aP]}else{if(aU.nodeType===9){return Math.max(aU.documentElement["client"+aP],aU.body["scroll"+aP],aU.documentElement["scroll"+aP],aU.body["offset"+aP],aU.documentElement["offset"+aP])}else{if(aT===y){var aV=aL.css(aU,aR),aS=parseFloat(aV);return aL.isNaN(aS)?aV:aS}else{return this.css(aR,typeof aT==="string"?aT:aT+"px")}}}}})})(window); (function(a,c){a.ui=a.ui||{};if(a.ui.version){return}a.extend(a.ui,{version:"1.8.11",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}});a.fn.extend({_focus:a.fn.focus,focus:function(d,e){return typeof d==="number"?this.each(function(){var f=this;setTimeout(function(){a(f).focus();if(e){e.call(f)}},d)}):this._focus.apply(this,arguments)},scrollParent:function(){var d;if((a.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){d=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(a.curCSS(this,"position",1))&&(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}else{d=this.parents().filter(function(){return(/(auto|scroll)/).test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!d.length?a(document):d},zIndex:function(g){if(g!==c){return this.css("zIndex",g)}if(this.length){var e=a(this[0]),d,f;while(e.length&&e[0]!==document){d=e.css("position");if(d==="absolute"||d==="relative"||d==="fixed"){f=parseInt(e.css("zIndex"),10);if(!isNaN(f)&&f!==0){return f}}e=e.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(d){d.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}});a.each(["Width","Height"],function(f,d){var e=d==="Width"?["Left","Right"]:["Top","Bottom"],g=d.toLowerCase(),j={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function h(l,k,i,m){a.each(e,function(){k-=parseFloat(a.curCSS(l,"padding"+this,true))||0;if(i){k-=parseFloat(a.curCSS(l,"border"+this+"Width",true))||0}if(m){k-=parseFloat(a.curCSS(l,"margin"+this,true))||0}});return k}a.fn["inner"+d]=function(i){if(i===c){return j["inner"+d].call(this)}return this.each(function(){a(this).css(g,h(this,i)+"px")})};a.fn["outer"+d]=function(i,k){if(typeof i!=="number"){return j["outer"+d].call(this,i)}return this.each(function(){a(this).css(g,h(this,i,true,k)+"px")})}});function b(d){return !a(d).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}a.extend(a.expr[":"],{data:function(f,e,d){return !!a.data(f,d[3])},focusable:function(f){var i=f.nodeName.toLowerCase(),d=a.attr(f,"tabindex");if("area"===i){var h=f.parentNode,g=h.name,e;if(!f.href||!g||h.nodeName.toLowerCase()!=="map"){return false}e=a("img[usemap=#"+g+"]")[0];return !!e&&b(e)}return(/input|select|textarea|button|object/.test(i)?!f.disabled:"a"==i?f.href||!isNaN(d):!isNaN(d))&&b(f)},tabbable:function(e){var d=a.attr(e,"tabindex");return(isNaN(d)||d>=0)&&a(e).is(":focusable")}});a(function(){var d=document.body,e=d.appendChild(e=document.createElement("div"));a.extend(e.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0});a.support.minHeight=e.offsetHeight===100;a.support.selectstart="onselectstart" in e;d.removeChild(e).style.display="none"});a.extend(a.ui,{plugin:{add:function(e,f,h){var g=a.ui[e].prototype;for(var d in h){g.plugins[d]=g.plugins[d]||[];g.plugins[d].push([f,h[d]])}},call:function(d,f,e){var h=d.plugins[f];if(!h||!d.element[0].parentNode){return}for(var g=0;g<h.length;g++){if(d.options[h[g][0]]){h[g][1].apply(d.element,e)}}}},contains:function(e,d){return document.compareDocumentPosition?e.compareDocumentPosition(d)&16:e!==d&&e.contains(d)},hasScroll:function(g,e){if(a(g).css("overflow")==="hidden"){return false}var d=(e&&e==="left")?"scrollLeft":"scrollTop",f=false;if(g[d]>0){return true}g[d]=1;f=(g[d]>0);g[d]=0;return f},isOverAxis:function(e,d,f){return(e>d)&&(e<(d+f))},isOver:function(i,e,h,g,d,f){return a.ui.isOverAxis(i,h,d)&&a.ui.isOverAxis(e,g,f)}})})(hcwQuery); (function(b,d){if(b.cleanData){var c=b.cleanData;b.cleanData=function(e){for(var f=0,g;(g=e[f])!=null;f++){b(g).triggerHandler("remove")}c(e)}}else{var a=b.fn.remove;b.fn.remove=function(e,f){return this.each(function(){if(!f){if(!e||b.filter(e,[this]).length){b("*",this).add([this]).each(function(){b(this).triggerHandler("remove")})}}return a.call(b(this),e,f)})}}b.widget=function(f,h,e){var g=f.split(".")[0],j;f=f.split(".")[1];j=g+"-"+f;if(!e){e=h;h=b.Widget}b.expr[":"][j]=function(k){return !!b.data(k,f)};b[g]=b[g]||{};b[g][f]=function(k,l){if(arguments.length){this._createWidget(k,l)}};var i=new h();i.options=b.extend(true,{},i.options);b[g][f].prototype=b.extend(true,i,{namespace:g,widgetName:f,widgetEventPrefix:b[g][f].prototype.widgetEventPrefix||f,widgetBaseClass:j},e);b.widget.bridge(f,b[g][f])};b.widget.bridge=function(f,e){b.fn[f]=function(i){var g=typeof i==="string",h=Array.prototype.slice.call(arguments,1),j=this;i=!g&&h.length?b.extend.apply(null,[true,i].concat(h)):i;if(g&&i.charAt(0)==="_"){return j}if(g){this.each(function(){var k=b.data(this,f),l=k&&b.isFunction(k[i])?k[i].apply(k,h):k;if(l!==k&&l!==d){j=l;return false}})}else{this.each(function(){var k=b.data(this,f);if(k){k.option(i||{})._init()}else{b.data(this,f,new e(i,this))}})}return j}};b.Widget=function(e,f){if(arguments.length){this._createWidget(e,f)}};b.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:false},_createWidget:function(f,g){b.data(g,this.widgetName,this);this.element=b(g);this.options=b.extend(true,{},this.options,this._getCreateOptions(),f);var e=this;this.element.bind("remove."+this.widgetName,function(){e.destroy()});this._create();this._trigger("create");this._init()},_getCreateOptions:function(){return b.metadata&&b.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName);this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled ui-state-disabled")},widget:function(){return this.element},option:function(f,g){var e=f;if(arguments.length===0){return b.extend({},this.options)}if(typeof f==="string"){if(g===d){return this.options[f]}e={};e[f]=g}this._setOptions(e);return this},_setOptions:function(f){var e=this;b.each(f,function(g,h){e._setOption(g,h)});return this},_setOption:function(e,f){this.options[e]=f;if(e==="disabled"){this.widget()[f?"addClass":"removeClass"](this.widgetBaseClass+"-disabled ui-state-disabled").attr("aria-disabled",f)}return this},enable:function(){return this._setOption("disabled",false)},disable:function(){return this._setOption("disabled",true)},_trigger:function(f,g,h){var k=this.options[f];g=b.Event(g);g.type=(f===this.widgetEventPrefix?f:this.widgetEventPrefix+f).toLowerCase();h=h||{};if(g.originalEvent){for(var e=b.event.props.length,j;e;){j=b.event.props[--e];g[j]=g.originalEvent[j]}}this.element.trigger(g,h);return !(b.isFunction(k)&&k.call(this.element[0],g,h)===false||g.isDefaultPrevented())}}})(hcwQuery);(function(f,g){f.ui=f.ui||{};var d=/left|center|right/,e=/top|center|bottom/,a="center",b=f.fn.position,c=f.fn.offset;f.fn.position=function(i){if(!i||!i.of){return b.apply(this,arguments)}i=f.extend({},i);var m=f(i.of),l=m[0],o=(i.collision||"flip").split(" "),n=i.offset?i.offset.split(" "):[0,0],k,h,j;if(l.nodeType===9){k=m.width();h=m.height();j={top:0,left:0}}else{if(l.setTimeout){k=m.width();h=m.height();j={top:m.scrollTop(),left:m.scrollLeft()}}else{if(l.preventDefault){i.at="left top";k=h=0;j={top:i.of.pageY,left:i.of.pageX}}else{k=m.outerWidth();h=m.outerHeight();j=m.offset()}}}f.each(["my","at"],function(){var p=(i[this]||"").split(" ");if(p.length===1){p=d.test(p[0])?p.concat([a]):e.test(p[0])?[a].concat(p):[a,a]}p[0]=d.test(p[0])?p[0]:a;p[1]=e.test(p[1])?p[1]:a;i[this]=p});if(o.length===1){o[1]=o[0]}n[0]=parseInt(n[0],10)||0;if(n.length===1){n[1]=n[0]}n[1]=parseInt(n[1],10)||0;if(i.at[0]==="right"){j.left+=k}else{if(i.at[0]===a){j.left+=k/2}}if(i.at[1]==="bottom"){j.top+=h}else{if(i.at[1]===a){j.top+=h/2}}j.left+=n[0];j.top+=n[1];return this.each(function(){var s=f(this),u=s.outerWidth(),r=s.outerHeight(),t=parseInt(f.curCSS(this,"marginLeft",true))||0,q=parseInt(f.curCSS(this,"marginTop",true))||0,w=u+t+(parseInt(f.curCSS(this,"marginRight",true))||0),x=r+q+(parseInt(f.curCSS(this,"marginBottom",true))||0),v=f.extend({},j),p;if(i.my[0]==="right"){v.left-=u}else{if(i.my[0]===a){v.left-=u/2}}if(i.my[1]==="bottom"){v.top-=r}else{if(i.my[1]===a){v.top-=r/2}}v.left=Math.round(v.left);v.top=Math.round(v.top);p={left:v.left-t,top:v.top-q};f.each(["left","top"],function(z,y){if(f.ui.position[o[z]]){f.ui.position[o[z]][y](v,{targetWidth:k,targetHeight:h,elemWidth:u,elemHeight:r,collisionPosition:p,collisionWidth:w,collisionHeight:x,offset:n,my:i.my,at:i.at})}});if(f.fn.bgiframe){s.bgiframe()}s.offset(f.extend(v,{using:i.using}))})};f.ui.position={fit:{left:function(h,i){var k=f(window),j=i.collisionPosition.left+i.collisionWidth-k.width()-k.scrollLeft();h.left=j>0?h.left-j:Math.max(h.left-i.collisionPosition.left,h.left)},top:function(h,i){var k=f(window),j=i.collisionPosition.top+i.collisionHeight-k.height()-k.scrollTop();h.top=j>0?h.top-j:Math.max(h.top-i.collisionPosition.top,h.top)}},flip:{left:function(i,k){if(k.at[0]===a){return}var m=f(window),l=k.collisionPosition.left+k.collisionWidth-m.width()-m.scrollLeft(),h=k.my[0]==="left"?-k.elemWidth:k.my[0]==="right"?k.elemWidth:0,j=k.at[0]==="left"?k.targetWidth:-k.targetWidth,n=-2*k.offset[0];i.left+=k.collisionPosition.left<0?h+j+n:l>0?h+j+n:0},top:function(i,k){if(k.at[1]===a){return}var m=f(window),l=k.collisionPosition.top+k.collisionHeight-m.height()-m.scrollTop(),h=k.my[1]==="top"?-k.elemHeight:k.my[1]==="bottom"?k.elemHeight:0,j=k.at[1]==="top"?k.targetHeight:-k.targetHeight,n=-2*k.offset[1];i.top+=k.collisionPosition.top<0?h+j+n:l>0?h+j+n:0}}};if(!f.offset.setOffset){f.offset.setOffset=function(l,i){if(/static/.test(f.curCSS(l,"position"))){l.style.position="relative"}var k=f(l),n=k.offset(),h=parseInt(f.curCSS(l,"top",true),10)||0,m=parseInt(f.curCSS(l,"left",true),10)||0,j={top:(i.top-n.top)+h,left:(i.left-n.left)+m};if("using" in i){i.using.call(l,j)}else{k.css(j)}};f.fn.offset=function(h){var i=this[0];if(!i||!i.ownerDocument){return null}if(h){return this.each(function(){f.offset.setOffset(this,h)})}return c.call(this)}}}(hcwQuery));(function(a,b){var c=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:false,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var d=this,f=this.element[0].ownerDocument,e;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(g){if(d.options.disabled||d.element.attr("readonly")){return}e=false;var h=a.ui.keyCode;switch(g.keyCode){case h.PAGE_UP:d._move("previousPage",g);break;case h.PAGE_DOWN:d._move("nextPage",g);break;case h.UP:d._move("previous",g);g.preventDefault();break;case h.DOWN:d._move("next",g);g.preventDefault();break;case h.ENTER:case h.NUMPAD_ENTER:if(d.menu.active){e=true;g.preventDefault()}case h.TAB:if(!d.menu.active){return}d.menu.select(g);break;case h.ESCAPE:d.element.val(d.term);d.close(g);break;default:clearTimeout(d.searching);d.searching=setTimeout(function(){if(d.term!=d.element.val()){d.selectedItem=null;d.search(null,g)}},d.options.delay);break}}).bind("keypress.autocomplete",function(g){if(e){e=false;g.preventDefault()}}).bind("focus.autocomplete",function(){if(d.options.disabled){return}d.selectedItem=null;d.previous=d.element.val()}).bind("blur.autocomplete",function(g){if(d.options.disabled){return}clearTimeout(d.searching);d.closing=setTimeout(function(){d.close(g);d._change(g)},150)});this._initSource();this.response=function(){return d._response.apply(d,arguments)};this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",f)[0]).mousedown(function(g){var h=d.menu.element[0];if(!a(g.target).closest(".ui-menu-item").length){setTimeout(function(){a(document).one("mousedown",function(i){if(i.target!==d.element[0]&&i.target!==h&&!a.ui.contains(h,i.target)){d.close()}})},1)}setTimeout(function(){clearTimeout(d.closing)},13)}).menu({focus:function(h,i){var g=i.item.data("item.autocomplete");if(false!==d._trigger("focus",h,{item:g})){if(/^key/.test(h.originalEvent.type)){d.element.val(g.value)}}},selected:function(i,j){var h=j.item.data("item.autocomplete"),g=d.previous;if(d.element[0]!==f.activeElement){d.element.focus();d.previous=g;setTimeout(function(){d.previous=g;d.selectedItem=h},1)}if(false!==d._trigger("select",i,{item:h})){d.element.val(h.value)}d.term=d.element.val();d.close(i);d.selectedItem=h},blur:function(g,h){if(d.menu.element.is(":visible")&&(d.element.val()!==d.term)){d.element.val(d.term)}}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu");if(a.fn.bgiframe){this.menu.element.bgiframe()}},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup");this.menu.element.remove();a.Widget.prototype.destroy.call(this)},_setOption:function(d,e){a.Widget.prototype._setOption.apply(this,arguments);if(d==="source"){this._initSource()}if(d==="appendTo"){this.menu.element.appendTo(a(e||"body",this.element[0].ownerDocument)[0])}if(d==="disabled"&&e&&this.xhr){this.xhr.abort()}},_initSource:function(){var d=this,f,e;if(a.isArray(this.options.source)){f=this.options.source;this.source=function(h,g){g(a.ui.autocomplete.filter(f,h.term))}}else{if(typeof this.options.source==="string"){e=this.options.source;this.source=function(h,g){if(d.xhr){d.xhr.abort()}d.xhr=a.ajax({url:e,data:h,dataType:"json",autocompleteRequest:++c,success:function(j,i){if(this.autocompleteRequest===c){g(j)}},error:function(){if(this.autocompleteRequest===c){g([])}}})}}else{this.source=this.options.source}}},search:function(e,d){e=e!=null?e:this.element.val();this.term=this.element.val();if(e.length<this.options.minLength){return this.close(d)}clearTimeout(this.closing);if(this._trigger("search",d)===false){return}return this._search(e)},_search:function(d){this.pending++;this.element.addClass("ui-autocomplete-loading");this.source({term:d},this.response)},_response:function(d){if(!this.options.disabled&&d&&d.length){d=this._normalize(d);this._suggest(d);this._trigger("open")}else{this.close()}this.pending--;if(!this.pending){this.element.removeClass("ui-autocomplete-loading")}},close:function(d){clearTimeout(this.closing);if(this.menu.element.is(":visible")){this.menu.element.hide();this.menu.deactivate();this._trigger("close",d)}},_change:function(d){if(this.previous!==this.element.val()){this._trigger("change",d,{item:this.selectedItem})}},_normalize:function(d){if(d.length&&d[0].label&&d[0].value){return d}return a.map(d,function(e){if(typeof e==="string"){return{label:e,value:e}}return a.extend({label:e.label||e.value,value:e.value||e.label},e)})},_suggest:function(d){var e=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(e,d);this.menu.deactivate();this.menu.refresh();e.show();this._resizeMenu();e.position(a.extend({of:this.element},this.options.position));if(this.options.autoFocus){this.menu.next(new a.Event("mouseover"))}},_resizeMenu:function(){var d=this.menu.element;d.outerWidth(Math.max(d.width("").outerWidth(),this.element.outerWidth()))},_renderMenu:function(f,e){var d=this;a.each(e,function(g,h){d._renderItem(f,h)})},_renderItem:function(d,e){return a("<li></li>").data("item.autocomplete",e).append(a("<a></a>").text(e.label)).appendTo(d)},_move:function(e,d){if(!this.menu.element.is(":visible")){this.search(null,d);return}if(this.menu.first()&&/^previous/.test(e)||this.menu.last()&&/^next/.test(e)){this.element.val(this.term);this.menu.deactivate();return}this.menu[e](d)},widget:function(){return this.menu.element}});a.extend(a.ui.autocomplete,{escapeRegex:function(d){return d.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(f,d){var e=new RegExp(a.ui.autocomplete.escapeRegex(d),"i");return a.grep(f,function(g){return e.test(g.label||g.value||g)})}})}(hcwQuery));(function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){if(!a(c.target).closest(".ui-menu-item a").length){return}c.preventDefault();b.select(c)});this.refresh()},refresh:function(){var c=this;var b=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");b.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(d){c.activate(d,a(this).parent())}).mouseleave(function(){c.deactivate()})},activate:function(e,d){this.deactivate();if(this.hasScroll()){var f=d.offset().top-this.element.offset().top,b=this.element.attr("scrollTop"),c=this.element.height();if(f<0){this.element.attr("scrollTop",b+f)}else{if(f>=c){this.element.attr("scrollTop",b+f-c+d.height())}}}this.active=d.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end();this._trigger("focus",e,{item:d})},deactivate:function(){if(!this.active){return}this.active.children("a").removeClass("ui-state-hover").removeAttr("id");this._trigger("blur");this.active=null},next:function(b){this.move("next",".ui-menu-item:first",b)},previous:function(b){this.move("prev",".ui-menu-item:last",b)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(e,d,c){if(!this.active){this.activate(c,this.element.children(d));return}var b=this.active[e+"All"](".ui-menu-item").eq(0);if(b.length){this.activate(c,b)}else{this.activate(c,this.element.children(d))}},nextPage:function(d){if(this.hasScroll()){if(!this.active||this.last()){this.activate(d,this.element.children(".ui-menu-item:first"));return}var e=this.active.offset().top,c=this.element.height(),b=this.element.children(".ui-menu-item").filter(function(){var f=a(this).offset().top-e-c+a(this).height();return f<10&&f>-10});if(!b.length){b=this.element.children(".ui-menu-item:last")}this.activate(d,b)}else{this.activate(d,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))}},previousPage:function(c){if(this.hasScroll()){if(!this.active||this.first()){this.activate(c,this.element.children(".ui-menu-item:last"));return}var d=this.active.offset().top,b=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var e=a(this).offset().top-d+b-a(this).height();return e<10&&e>-10});if(!result.length){result=this.element.children(".ui-menu-item:first")}this.activate(c,result)}else{this.activate(c,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))}},hasScroll:function(){return this.element.height()<this.element.attr("scrollHeight")},select:function(b){this._trigger("selected",b,{item:this.active})}})}(hcwQuery));(function($,undefined){$.extend($.ui,{datepicker:{version:"1.8.11"}});var PROP_NAME="datepicker";var dpuuid=new Date().getTime();function Datepicker(){this.debug=false;this._curInst=null;this._keyEvent=false;this._disabledInputs=[];this._datepickerShowing=false;this._inDialog=false;this._mainDivId="ui-datepicker-div";this._inlineClass="ui-datepicker-inline";this._appendClass="ui-datepicker-append";this._triggerClass="ui-datepicker-trigger";this._dialogClass="ui-datepicker-dialog";this._disableClass="ui-datepicker-disabled";this._unselectableClass="ui-datepicker-unselectable";this._currentClass="ui-datepicker-current-day";this._dayOverClass="ui-datepicker-days-cell-over";this.regional=[];this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:false,hideIfNoPrevNext:false,navigationAsDateFormat:false,gotoCurrent:false,changeMonth:false,changeYear:false,yearRange:"c-10:c+10",showOtherMonths:false,selectOtherMonths:false,showWeek:false,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:true,showButtonPanel:false,autoSize:false};$.extend(this._defaults,this.regional[""]);this.dpDiv=$('<div id="'+this._mainDivId+'" class="ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){this.uuid+=1;target.id="dp"+this.uuid}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([^A-Za-z0-9_-])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('<div class="'+this._inlineClass+' ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all"></div>'))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}this._attachments(input,inst);input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});this._autoSize(inst);$.data(target,PROP_NAME,inst)},_attachments:function(input,inst){var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(inst.append){inst.append.remove()}if(appendText){inst.append=$('<span class="'+this._appendClass+'">'+appendText+"</span>");input[isRTL?"before":"after"](inst.append)}input.unbind("focus",this._showDatepicker);if(inst.trigger){inst.trigger.remove()}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("<img/>").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('<button type="button"></button>').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("<img/>").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==input[0]){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(input[0])}return false})}},_autoSize:function(inst){if(this._get(inst,"autoSize")&&!inst.inline){var date=new Date(2009,12-1,20);var dateFormat=this._get(inst,"dateFormat");if(dateFormat.match(/[DM]/)){var findMax=function(names){var max=0;var maxI=0;for(var i=0;i<names.length;i++){if(names[i].length>max){max=names[i].length;maxI=i}}return maxI};date.setMonth(findMax(this._get(inst,(dateFormat.match(/MM/)?"monthNames":"monthNamesShort"))));date.setDate(findMax(this._get(inst,(dateFormat.match(/DD/)?"dayNames":"dayNamesShort")))+20-date.getDay())}inst.input.attr("size",this._formatDate(inst,date).length)}},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst),true);this._updateDatepicker(inst);this._updateAlternate(inst);inst.dpDiv.show()},_dialogDatepicker:function(input,date,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){this.uuid+=1;var id="dp"+this.uuid;this._dialogInput=$('<input type="text" id="'+id+'" style="position: absolute; top: -100px; width: 0px; z-index: -10;"/>');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});date=(date&&date.constructor==Date?this._formatDate(inst,date):date);this._dialogInput.val(date);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=document.documentElement.clientWidth;var browserHeight=document.documentElement.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",(this._pos[0]+20)+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i<this._disabledInputs.length;i++){if(this._disabledInputs[i]==target){return true}}return false},_getInst:function(target){try{return $.data(target,PROP_NAME)}catch(err){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(target,name,value){var inst=this._getInst(target);if(arguments.length==2&&typeof name=="string"){return(name=="defaults"?$.extend({},$.datepicker._defaults):(inst?(name=="all"?$.extend({},inst.settings):this._get(inst,name)):null))}var settings=name||{};if(typeof name=="string"){settings={};settings[name]=value}if(inst){if(this._curInst==inst){this._hideDatepicker()}var date=this._getDateDatepicker(target,true);var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");extendRemove(inst.settings,settings);if(minDate!==null&&settings.dateFormat!==undefined&&settings.minDate===undefined){inst.settings.minDate=this._formatDate(inst,minDate)}if(maxDate!==null&&settings.dateFormat!==undefined&&settings.maxDate===undefined){inst.settings.maxDate=this._formatDate(inst,maxDate)}this._attachments($(target),inst);this._autoSize(inst);this._setDateDatepicker(target,date);this._updateDatepicker(inst)}},_changeDatepicker:function(target,name,value){this._optionDatepicker(target,name,value)},_refreshDatepicker:function(target){var inst=this._getInst(target);if(inst){this._updateDatepicker(inst)}},_setDateDatepicker:function(target,date){var inst=this._getInst(target);if(inst){this._setDate(inst,date);this._updateDatepicker(inst);this._updateAlternate(inst)}},_getDateDatepicker:function(target,noDefault){var inst=this._getInst(target);if(inst&&!inst.inline){this._setDateFromField(inst,noDefault)}return(inst?this._getDate(inst):null)},_doKeyDown:function(event){var inst=$.datepicker._getInst(event.target);var handled=true;var isRTL=inst.dpDiv.is(".ui-datepicker-rtl");inst._keyEvent=true;if($.datepicker._datepickerShowing){switch(event.keyCode){case 9:$.datepicker._hideDatepicker();handled=false;break;case 13:var sel=$("td."+$.datepicker._dayOverClass+":not(."+$.datepicker._currentClass+")",inst.dpDiv);if(sel[0]){$.datepicker._selectDay(event.target,inst.selectedMonth,inst.selectedYear,sel[0])}else{$.datepicker._hideDatepicker()}return false;break;case 27:$.datepicker._hideDatepicker();break;case 33:$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M");break;case 34:$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M");break;case 35:if(event.ctrlKey||event.metaKey){$.datepicker._clearDate(event.target)}handled=event.ctrlKey||event.metaKey;break;case 36:if(event.ctrlKey||event.metaKey){$.datepicker._gotoToday(event.target)}handled=event.ctrlKey||event.metaKey;break;case 37:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?+1:-1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?-$.datepicker._get(inst,"stepBigMonths"):-$.datepicker._get(inst,"stepMonths")),"M")}break;case 38:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,-7,"D")}handled=event.ctrlKey||event.metaKey;break;case 39:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,(isRTL?-1:+1),"D")}handled=event.ctrlKey||event.metaKey;if(event.originalEvent.altKey){$.datepicker._adjustDate(event.target,(event.ctrlKey?+$.datepicker._get(inst,"stepBigMonths"):+$.datepicker._get(inst,"stepMonths")),"M")}break;case 40:if(event.ctrlKey||event.metaKey){$.datepicker._adjustDate(event.target,+7,"D")}handled=event.ctrlKey||event.metaKey;break;default:handled=false}}else{if(event.keyCode==36&&event.ctrlKey){$.datepicker._showDatepicker(this)}else{handled=false}}if(handled){event.preventDefault();event.stopPropagation()}},_doKeyPress:function(event){var inst=$.datepicker._getInst(event.target);if($.datepicker._get(inst,"constrainInput")){var chars=$.datepicker._possibleChars($.datepicker._get(inst,"dateFormat"));var chr=String.fromCharCode(event.charCode==undefined?event.keyCode:event.charCode);return event.ctrlKey||event.metaKey||(chr<" "||!chars||chars.indexOf(chr)>-1)}},_doKeyUp:function(event){var inst=$.datepicker._getInst(event.target);if(inst.input.val()!=inst.lastVal){try{var date=$.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),(inst.input?inst.input.val():null),$.datepicker._getFormatConfig(inst));if(date){$.datepicker._setDateFromField(inst);$.datepicker._updateAlternate(inst);$.datepicker._updateDatepicker(inst)}}catch(event){$.datepicker.log(event)}}return true},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);if($.datepicker._curInst&&$.datepicker._curInst!=inst){$.datepicker._curInst.dpDiv.stop(true,true)}var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));inst.lastVal=null;$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.dpDiv.empty();inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim");var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){var borders=$.datepicker._getBorders(inst.dpDiv);cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}};inst.dpDiv.zIndex($(input).zIndex()+1);if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim||"show"]((showAnim?duration:null),postProcess)}if(!showAnim||!duration){postProcess()}if(inst.input.is(":visible")&&!inst.input.is(":disabled")){inst.input.focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var self=this;var borders=$.datepicker._getBorders(inst.dpDiv);inst.dpDiv.empty().append(this._generateHTML(inst));var cover=inst.dpDiv.find("iframe.ui-datepicker-cover");if(!!cover.length){cover.css({left:-borders[0],top:-borders[1],width:inst.dpDiv.outerWidth(),height:inst.dpDiv.outerHeight()})}inst.dpDiv.find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst==$.datepicker._curInst&&$.datepicker._datepickerShowing&&inst.input&&inst.input.is(":visible")&&!inst.input.is(":disabled")&&inst.input[0]!=document.activeElement){inst.input.focus()}if(inst.yearshtml){var origyearshtml=inst.yearshtml;setTimeout(function(){if(origyearshtml===inst.yearshtml){inst.dpDiv.find("select.ui-datepicker-year:first").replaceWith(inst.yearshtml)}origyearshtml=inst.yearshtml=null},0)}},_getBorders:function(elem){var convert=function(value){return{thin:1,medium:2,thick:3}[value]||value};return[parseFloat(convert(elem.css("border-left-width"))),parseFloat(convert(elem.css("border-top-width")))]},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=document.documentElement.clientWidth+$(document).scrollLeft();var viewHeight=document.documentElement.clientHeight+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=Math.min(offset.left,(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0);offset.top-=Math.min(offset.top,(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(dpHeight+inputHeight):0);return offset},_findPos:function(obj){var inst=this._getInst(obj);var isRTL=this._get(inst,"isRTL");while(obj&&(obj.type=="hidden"||obj.nodeType!=1||$.expr.filters.hidden(obj))){obj=obj[isRTL?"previousSibling":"nextSibling"]}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(this._datepickerShowing){var showAnim=this._get(inst,"showAnim");var duration=this._get(inst,"duration");var postProcess=function(){$.datepicker._tidyDialog(inst);this._curInst=null};if($.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide"))]((showAnim?duration:null),postProcess)}if(!showAnim){postProcess()}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if($target[0].id!=$.datepicker._mainDivId&&$target.parents("#"+$.datepicker._mainDivId).length==0&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker()}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear){setTimeout(function(){inst.input.focus()},0)}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{this._hideDatepicker();this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input.focus()}this._lastInput=null}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);var dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getTime());checkDate.setDate(checkDate.getDate()+4-(checkDate.getDay()||7));var time=checkDate.getTime();checkDate.setMonth(0);checkDate.setDate(1);return Math.floor(Math.round((time-checkDate)/86400000)/7)+1},parseDate:function(format,value,settings){if(format==null||value==null){throw"Invalid arguments"}value=(typeof value=="object"?value.toString():value+"");if(value==""){return null}var shortYearCutoff=(settings?settings.shortYearCutoff:null)||this._defaults.shortYearCutoff;shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var year=-1;var month=-1;var day=-1;var doy=-1;var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var getNumber=function(match){var isDoubled=lookAhead(match);var size=(match=="@"?14:(match=="!"?20:(match=="y"&&isDoubled?4:(match=="o"?3:2))));var digits=new RegExp("^\\d{1,"+size+"}");var num=value.substring(iValue).match(digits);if(!num){throw"Missing number at position "+iValue}iValue+=num[0].length;return parseInt(num[0],10)};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);for(var i=0;i<names.length;i++){if(value.substr(iValue,names[i].length).toLowerCase()==names[i].toLowerCase()){iValue+=names[i].length;return i+1}}throw"Unknown name at position "+iValue};var checkLiteral=function(){if(value.charAt(iValue)!=format.charAt(iFormat)){throw"Unexpected literal at position "+iValue}iValue++};var iValue=0;for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{checkLiteral()}}else{switch(format.charAt(iFormat)){case"d":day=getNumber("d");break;case"D":getName("D",dayNamesShort,dayNames);break;case"o":doy=getNumber("o");break;case"m":month=getNumber("m");break;case"M":month=getName("M",monthNamesShort,monthNames);break;case"y":year=getNumber("y");break;case"@":var date=new Date(getNumber("@"));year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"!":var date=new Date((getNumber("!")-this._ticksTo1970)/10000);year=date.getFullYear();month=date.getMonth()+1;day=date.getDate();break;case"'":if(lookAhead("'")){checkLiteral()}else{literal=true}break;default:checkLiteral()}}}if(year==-1){year=new Date().getFullYear()}else{if(year<100){year+=new Date().getFullYear()-new Date().getFullYear()%100+(year<=shortYearCutoff?0:-100)}}if(doy>-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(((1970-1)*365+Math.floor(1970/4)-Math.floor(1970/100)+Math.floor(1970/400))*24*60*60*10000000),formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};var formatNumber=function(match,value,len){var num=""+value;if(lookAhead(match)){while(num.length<len){num="0"+num}}return num};var formatName=function(match,value,shortNames,longNames){return(lookAhead(match)?longNames[value]:shortNames[value])};var output="";var literal=false;if(date){for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{output+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":output+=formatNumber("d",date.getDate(),2);break;case"D":output+=formatName("D",date.getDay(),dayNamesShort,dayNames);break;case"o":output+=formatNumber("o",(date.getTime()-new Date(date.getFullYear(),0,0).getTime())/86400000,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"!":output+=date.getTime()*10000+this._ticksTo1970;break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;var lookAhead=function(match){var matches=(iFormat+1<format.length&&format.charAt(iFormat+1)==match);if(matches){iFormat++}return matches};for(var iFormat=0;iFormat<format.length;iFormat++){if(literal){if(format.charAt(iFormat)=="'"&&!lookAhead("'")){literal=false}else{chars+=format.charAt(iFormat)}}else{switch(format.charAt(iFormat)){case"d":case"m":case"y":case"@":chars+="0123456789";break;case"D":case"M":return null;case"'":if(lookAhead("'")){chars+="'"}else{literal=true}break;default:chars+=format.charAt(iFormat)}}}return chars},_get:function(inst,name){return inst.settings[name]!==undefined?inst.settings[name]:this._defaults[name]},_setDateFromField:function(inst,noDefault){if(inst.input.val()==inst.lastVal){return}var dateFormat=this._get(inst,"dateFormat");var dates=inst.lastVal=inst.input?inst.input.val():null;var date,defaultDate;date=defaultDate=this._getDefaultDate(inst);var settings=this._getFormatConfig(inst);try{date=this.parseDate(dateFormat,dates,settings)||defaultDate}catch(event){this.log(event);dates=(noDefault?"":dates)}inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();inst.currentDay=(dates?date.getDate():0);inst.currentMonth=(dates?date.getMonth():0);inst.currentYear=(dates?date.getFullYear():0);this._adjustInstDate(inst)},_getDefaultDate:function(inst){return this._restrictMinMax(inst,this._determineDate(inst,this._get(inst,"defaultDate"),new Date()))},_determineDate:function(inst,date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset){try{return $.datepicker.parseDate($.datepicker._get(inst,"dateFormat"),offset,$.datepicker._getFormatConfig(inst))}catch(e){}var date=(offset.toLowerCase().match(/^c/)?$.datepicker._getDate(inst):null)||new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,$.datepicker._getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};var newDate=(date==null||date===""?defaultDate:(typeof date=="string"?offsetString(date):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):new Date(date.getTime()))));newDate=(newDate&&newDate.toString()=="Invalid Date"?defaultDate:newDate);if(newDate){newDate.setHours(0);newDate.setMinutes(0);newDate.setSeconds(0);newDate.setMilliseconds(0)}return this._daylightSavingAdjust(newDate)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,noChange){var clear=!date;var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;var newDate=this._restrictMinMax(inst,this._determineDate(inst,date,new Date()));inst.selectedDay=inst.currentDay=newDate.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=newDate.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=newDate.getFullYear();if((origMonth!=inst.selectedMonth||origYear!=inst.selectedYear)&&!noChange){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-(numMonths[0]*numMonths[1])+1,maxDate.getDate()));maxDraw=(minDate&&maxDraw<minDate?minDate:maxDraw);while(this._daylightSavingAdjust(new Date(drawYear,drawMonth,1))>maxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?'<a class="ui-datepicker-prev ui-corner-all" onclick="DP_hcwQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', -"+stepMonths+", 'M');\" title=\""+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-prev ui-corner-all ui-state-disabled" title="'+prevText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"e":"w")+'">'+prevText+"</span></a>"));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?'<a class="ui-datepicker-next ui-corner-all" onclick="DP_hcwQuery_'+dpuuid+".datepicker._adjustDate('#"+inst.id+"', +"+stepMonths+", 'M');\" title=\""+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>":(hideIfNoPrevNext?"":'<a class="ui-datepicker-next ui-corner-all ui-state-disabled" title="'+nextText+'"><span class="ui-icon ui-icon-circle-triangle-'+(isRTL?"w":"e")+'">'+nextText+"</span></a>"));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'<button type="button" class="ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" onclick="DP_hcwQuery_'+dpuuid+'.datepicker._hideDatepicker();">'+this._get(inst,"closeText")+"</button>":"");var buttonPanel=(showButtonPanel)?'<div class="ui-datepicker-buttonpane ui-widget-content">'+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'<button type="button" class="ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" onclick="DP_hcwQuery_'+dpuuid+".datepicker._gotoToday('#"+inst.id+"');\">"+currentText+"</button>":"")+(isRTL?"":controls)+"</div>":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var showWeek=this._get(inst,"showWeek");var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var selectOtherMonths=this._get(inst,"selectOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row<numMonths[0];row++){var group="";for(var col=0;col<numMonths[1];col++){var selectedDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,inst.selectedDay));var cornerClass=" ui-corner-all";var calender="";if(isMultiMonth){calender+='<div class="ui-datepicker-group';if(numMonths[1]>1){switch(col){case 0:calender+=" ui-datepicker-group-first";cornerClass=" ui-corner-"+(isRTL?"right":"left");break;case numMonths[1]-1:calender+=" ui-datepicker-group-last";cornerClass=" ui-corner-"+(isRTL?"left":"right");break;default:calender+=" ui-datepicker-group-middle";cornerClass="";break}}calender+='">'}calender+='<div class="ui-datepicker-header ui-widget-header ui-helper-clearfix'+cornerClass+'">'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,row>0||col>0,monthNames,monthNamesShort)+'</div><table class="ui-datepicker-calendar"><thead><tr>';var thead=(showWeek?'<th class="ui-datepicker-week-col">'+this._get(inst,"weekHeader")+"</th>":"");for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="<th"+((dow+firstDay+6)%7>=5?' class="ui-datepicker-week-end"':"")+'><span title="'+dayNames[day]+'">'+dayNamesMin[day]+"</span></th>"}calender+=thead+"</tr></thead><tbody>";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow<numRows;dRow++){calender+="<tr>";var tbody=(!showWeek?"":'<td class="ui-datepicker-week-col">'+this._get(inst,"calculateWeek")(printDate)+"</td>");for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=(otherMonth&&!selectOtherMonths)||!daySettings[0]||(minDate&&printDate<minDate)||(maxDate&&printDate>maxDate);tbody+='<td class="'+((dow+firstDay+6)%7>=5?" ui-datepicker-week-end":"")+(otherMonth?" ui-datepicker-other-month":"")+((printDate.getTime()==selectedDate.getTime()&&drawMonth==inst.selectedMonth&&inst._keyEvent)||(defaultDate.getTime()==printDate.getTime()&&defaultDate.getTime()==selectedDate.getTime())?" "+this._dayOverClass:"")+(unselectable?" "+this._unselectableClass+" ui-state-disabled":"")+(otherMonth&&!showOtherMonths?"":" "+daySettings[1]+(printDate.getTime()==currentDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":' onclick="DP_hcwQuery_'+dpuuid+".datepicker._selectDay('#"+inst.id+"',"+printDate.getMonth()+","+printDate.getFullYear()+', this);return false;"')+">"+(otherMonth&&!showOtherMonths?" ":(unselectable?'<span class="ui-state-default">'+printDate.getDate()+"</span>":'<a class="ui-state-default'+(printDate.getTime()==today.getTime()?" ui-state-highlight":"")+(printDate.getTime()==currentDate.getTime()?" ui-state-active":"")+(otherMonth?" ui-priority-secondary":"")+'" href="#">'+printDate.getDate()+"</a>"))+"</td>";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+"</tr>"}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="</tbody></table>"+(isMultiMonth?"</div>"+((numMonths[0]>0&&col==numMonths[1]-1)?'<div class="ui-datepicker-row-break"></div>':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'<iframe src="javascript:false;" class="ui-datepicker-cover" frameborder="0"></iframe>':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,secondary,monthNames,monthNamesShort){var changeMonth=this._get(inst,"changeMonth");var changeYear=this._get(inst,"changeYear");var showMonthAfterYear=this._get(inst,"showMonthAfterYear");var html='<div class="ui-datepicker-title">';var monthHtml="";if(secondary||!changeMonth){monthHtml+='<span class="ui-datepicker-month">'+monthNames[drawMonth]+"</span>"}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='<select class="ui-datepicker-month" onchange="DP_hcwQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'M');\" onclick=\"DP_hcwQuery_"+dpuuid+".datepicker._clickMonthYear('#"+inst.id+"');\">";for(var month=0;month<12;month++){if((!inMinYear||month>=minDate.getMonth())&&(!inMaxYear||month<=maxDate.getMonth())){monthHtml+='<option value="'+month+'"'+(month==drawMonth?' selected="selected"':"")+">"+monthNamesShort[month]+"</option>"}}monthHtml+="</select>"}if(!showMonthAfterYear){html+=monthHtml+(secondary||!(changeMonth&&changeYear)?" ":"")}inst.yearshtml="";if(secondary||!changeYear){html+='<span class="ui-datepicker-year">'+drawYear+"</span>"}else{var years=this._get(inst,"yearRange").split(":");var thisYear=new Date().getFullYear();var determineYear=function(value){var year=(value.match(/c[+-].*/)?drawYear+parseInt(value.substring(1),10):(value.match(/[+-].*/)?thisYear+parseInt(value,10):parseInt(value,10)));return(isNaN(year)?thisYear:year)};var year=determineYear(years[0]);var endYear=Math.max(year,determineYear(years[1]||""));year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);inst.yearshtml+='<select class="ui-datepicker-year" onchange="DP_hcwQuery_'+dpuuid+".datepicker._selectMonthYear('#"+inst.id+"', this, 'Y');\" onclick=\"DP_hcwQuery_"+dpuuid+".datepicker._clickMonthYear('#"+inst.id+"');\">";for(;year<=endYear;year++){inst.yearshtml+='<option value="'+year+'"'+(year==drawYear?' selected="selected"':"")+">"+year+"</option>"}inst.yearshtml+="</select>";if(!$.browser.mozilla){html+=inst.yearshtml;inst.yearshtml=null}else{html+='<select class="ui-datepicker-year"><option value="'+drawYear+'" selected="selected">'+drawYear+"</option></select>"}}html+=this._get(inst,"yearSuffix");if(showMonthAfterYear){html+=(secondary||!(changeMonth&&changeYear)?" ":"")+monthHtml}html+="</div>";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._restrictMinMax(inst,this._daylightSavingAdjust(new Date(year,month,day)));inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_restrictMinMax:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");var newDate=(minDate&&date<minDate?minDate:date);newDate=(maxDate&&newDate>maxDate?maxDate:newDate);return newDate},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax){return this._determineDate(inst,this._get(inst,minMax+"Date"),null)},_getDaysInMonth:function(year,month){return 32-this._daylightSavingAdjust(new Date(year,month,32)).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[0]*numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var minDate=this._getMinMaxDate(inst,"min");var maxDate=this._getMinMaxDate(inst,"max");return((!minDate||date.getTime()>=minDate.getTime())&&(!maxDate||date.getTime()<=maxDate.getTime()))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!this.length){return this}if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate"||options=="widget")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.8.11";window["DP_hcwQuery_"+dpuuid]=$})(hcwQuery); LazyLoad=function(j){function p(c,a){var g=j.createElement(c),b;for(b in a)a.hasOwnProperty(b)&&g.setAttribute(b,a[b]);return g}function m(c){var a=k[c],b,e;if(a)b=a.callback,e=a.urls,e.shift(),h=0,e.length||(b&&b.call(a.context,a.obj),k[c]=null,n[c].length&&i(c))}function u(){if(!b){var c=navigator.userAgent;b={async:j.createElement("script").async===!0};(b.webkit=/AppleWebKit\//.test(c))||(b.ie=/MSIE/.test(c))||(b.opera=/Opera/.test(c))||(b.gecko=/Gecko\//.test(c))||(b.unknown=!0)}}function i(c, a,g,e,h){var i=function(){m(c)},o=c==="css",f,l,d,q;u();if(a)if(a=typeof a==="string"?[a]:a.concat(),o||b.async||b.gecko||b.opera)n[c].push({urls:a,callback:g,obj:e,context:h});else{f=0;for(l=a.length;f<l;++f)n[c].push({urls:[a[f]],callback:f===l-1?g:null,obj:e,context:h})}if(!k[c]&&(q=k[c]=n[c].shift())){r||(r=j.head||j.getElementsByTagName("head")[0]);a=q.urls;f=0;for(l=a.length;f<l;++f)g=a[f],o?d=b.gecko?p("style"):p("link",{href:g,rel:"stylesheet"}):(d=p("script",{src:g}),d.async=!1),d.className= "lazyload",d.setAttribute("charset","utf-8"),b.ie&&!o?d.onreadystatechange=function(){if(/loaded|complete/.test(d.readyState))d.onreadystatechange=null,i()}:o&&(b.gecko||b.webkit)?b.webkit?(q.urls[f]=d.href,s()):(d.innerHTML='@import "'+g+'";',m("css")):d.onload=d.onerror=i,r.appendChild(d)}}function s(){var c=k.css,a;if(c){for(a=t.length;--a>=0;)if(t[a].href===c.urls[0]){m("css");break}h+=1;c&&(h<200?setTimeout(s,50):m("css"))}}var b,r,k={},h=0,n={css:[],js:[]},t=j.styleSheets;return{css:function(c, a,b,e){i("css",c,a,b,e)},js:function(c,a,b,e){i("js",c,a,b,e)}}}(this.document); $HCW.extend({ keys: function(obj){ var a = []; $HCW.each(obj, function(k){ a.push(k) }); return a; } }); hcwQuery(function(a){a.datepicker.regional.de={closeText:"schließen",prevText:"zurück",nextText:"Vor",currentText:"heute",monthNames:["Januar","Februar","März","April","Mai","Juni","Juli","Augustt","September","Oktober","November","Dezember"],monthNamesShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],dayNames:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],dayNamesShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayNamesMin:["So","Mo","Di","Mi","Do","Fr","Sa"],weekHeader:"Wo",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.de)}); hcwQuery(function(a){a.datepicker.regional.nl={closeText:"Sluiten",prevText:"←",nextText:"→",currentText:"Vandaag",monthNames:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],monthNamesShort:["jan","feb","maa","apr","mei","jun","jul","aug","sep","okt","nov","dec"],dayNames:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],dayNamesShort:["zon","maa","din","woe","don","vri","zat"],dayNamesMin:["zo","ma","di","wo","do","vr","za"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.nl)}); hcwQuery(function(a){a.datepicker.regional.fr={closeText:"Fermer",prevText:"Précédent",nextText:"Suivant",currentText:"Aujourd'hui",monthNames:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],monthNamesShort:["Janv.","Févr.","Mars","Avril","Mai","Juin","Juil.","Août","Sept.","Oct.","Nov.","Déc."],dayNames:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"],dayNamesShort:["Dim.","Lun.","Mar.","Mer.","Jeu.","Ven.","Sam."],dayNamesMin:["D","L","M","M","J","V","S"],weekHeader:"Sem.",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.fr)}); hcwQuery(function(a){a.datepicker.regional.es={closeText:"Cerrar",prevText:"Ant",nextText:"Sig",currentText:"Hoy",monthNames:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],monthNamesShort:["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],dayNames:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],dayNamesShort:["Dom","Lun","Mar","Mié","Juv","Vie","Sáb"],dayNamesMin:["Do","Lu","Ma","Mi","Ju","Vi","Sá"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.es)}); hcwQuery(function(a){a.datepicker.regional.cz={closeText:"Zavřít",prevText:"Dříve",nextText:"Později",currentText:"Nyní",monthNames:["leden","únor","březen","duben","květen","červen","červenec","srpen","září","říjen","listopad","prosinec"],monthNamesShort:["led","úno","bře","dub","kvě","čer","čvc","srp","zář","říj","lis","pro"],dayNames:["neděle","pondělí","úterý","středa","čtvrtek","pátek","sobota"],dayNamesShort:["ne","po","út","st","čt","pá","so"],dayNamesMin:["ne","po","út","st","čt","pá","so"],weekHeader:"Týd",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.cz)}); hcwQuery(function(a){a.datepicker.regional.it={closeText:"Chiudi",prevText:"Prec",nextText:"Succ",currentText:"Oggi",monthNames:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],monthNamesShort:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],dayNames:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],dayNamesShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayNamesMin:["Do","Lu","Ma","Me","Gi","Ve","Sa"],weekHeader:"Sm",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.it)}); hcwQuery(function(a){a.datepicker.regional.pt={closeText:"Fechar",prevText:"Anterior",nextText:"Seguinte",currentText:"Hoje",monthNames:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],monthNamesShort:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"],dayNames:["Domingo","Segunda-feira","Terça-feira","Quarta-feira","Quinta-feira","Sexta-feira","Sábado"],dayNamesShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayNamesMin:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],weekHeader:"Sem",dateFormat:"dd/mm/yy",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.pt)}); hcwQuery(function(a){a.datepicker.regional.no={closeText:"Lukk",prevText:"«Forrige",nextText:"Neste»",currentText:"I dag",monthNames:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"],monthNamesShort:["jan","feb","mar","apr","mai","jun","jul","aug","sep","okt","nov","des"],dayNamesShort:["søn","man","tir","ons","tor","fre","lør"],dayNames:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"],dayNamesMin:["sø","ma","ti","on","to","fr","lø"],weekHeader:"Uke",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.no)}); hcwQuery(function(a){a.datepicker.regional.sv={closeText:"Stäng",prevText:"«Förra",nextText:"Nästa»",currentText:"Idag",monthNames:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNamesShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayNames:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"],dayNamesMin:["Sö","Må","Ti","On","To","Fr","Lö"],weekHeader:"Ve",dateFormat:"yy-mm-dd",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.sv)}); hcwQuery(function(a){a.datepicker.regional.da={closeText:"Luk",prevText:"Forrige",nextText:"Næste",currentText:"Idag",monthNames:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","Maj","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],dayNames:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"],dayNamesShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayNamesMin:["Sø","Ma","Ti","On","To","Fr","Lø"],weekHeader:"Uge",dateFormat:"dd-mm-yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.da)}); hcwQuery(function($){$.datepicker.regional.ro={closeText:"Închide",prevText:"« Luna precedentă",nextText:"Luna următoare »",currentText:"Azi",monthNames:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],monthNamesShort:["Ian","Feb","Mar","Apr","Mai","Iun","Iul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"],dayNamesShort:["Dum","Lun","Mar","Mie","Joi","Vin","Sâm"],dayNamesMin:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],weekHeader:"Săpt",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};$.datepicker.setDefaults($.datepicker.regional.ro)}); hcwQuery(function(a){a.datepicker.regional.ar={closeText:"إغلاق",prevText:"السابق",nextText:"التالي",currentText:"اليوم",monthNames:["كانون الثاني","شباط","آذار","نيسان","آذار","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesShort:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],dayNamesMin:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت"],weekHeader:"أسبوع",dateFormat:"dd/mm/yy",firstDay:6,isRTL:true,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ar)}); hcwQuery(function(a){a.datepicker.regional.ko={closeText:"닫기",prevText:"이전달",nextText:"다음달",currentText:"오늘",monthNames:["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)","7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"],monthNamesShort:["1월(JAN)","2월(FEB)","3월(MAR)","4월(APR)","5월(MAY)","6월(JUN)","7월(JUL)","8월(AUG)","9월(SEP)","10월(OCT)","11월(NOV)","12월(DEC)"],dayNames:["일","월","화","수","목","금","토"],dayNamesShort:["일","월","화","수","목","금","토"],dayNamesMin:["일","월","화","수","목","금","토"],weekHeader:"Wk",dateFormat:"yy-mm-dd",firstDay:0,isRTL:false,showMonthAfterYear:false,yearSuffix:"년"};a.datepicker.setDefaults(a.datepicker.regional.ko)}); hcwQuery(function(a){a.datepicker.regional.he={closeText:"סגור",prevText:"הקודם",nextText:"הבא",currentText:"היום",monthNames:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],monthNamesShort:["1","2","3","4","5","6","7","8","9","10","11","12"],dayNames:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת"],dayNamesShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayNamesMin:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],weekHeader:"Wk",dateFormat:"dd/mm/yy",firstDay:0,isRTL:true,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.he)}); hcwQuery(function(a){a.datepicker.regional.pl={closeText:"Zamknij",prevText:"Poprzedni",nextText:"Następny>",currentText:"Dziś",monthNames:["Styczeń","Luty","Marzec","Kwiecień","Maj","Czerwiec","Lipiec","Sierpień","Wrzesień","Październik","Listopad","Grudzień"],monthNamesShort:["Sty","Lu","Mar","Kw","Maj","Cze","Lip","Sie","Wrz","Pa","Lis","Gru"],dayNames:["Niedziela","Poniedziałek","Wtorek","Środa","Czwartek","Piątek","Sobota"],dayNamesShort:["Nie","Pn","Wt","Śr","Czw","Pt","So"],dayNamesMin:["N","Pn","Wt","Śr","Cz","Pt","So"],weekHeader:"Tydz",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.pl)}); hcwQuery(function(a){a.datepicker.regional.el={closeText:"Κλείσιμο",prevText:"Προηγούμενος",nextText:"Επόμενος",currentText:"Τρέχων Μήνας",monthNames:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],monthNamesShort:["Ιαν","Φεβ","Μαρ","Απρ","Μαι","Ιουν","Ιουλ","Αυγ","Σεπ","Οκτ","Νοε","Δεκ"],dayNames:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"],dayNamesShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayNamesMin:["Κυ","Δε","Τρ","Τε","Πε","Πα","Σα"],weekHeader:"Εβδ",dateFormat:"dd/mm/yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.el)}); hcwQuery(function(a){a.datepicker.regional.ru={closeText:"Закрыть",prevText:"<Пред",nextText:"След>",currentText:"Сегодня",monthNames:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],monthNamesShort:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"],dayNames:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"],dayNamesShort:["вск","пнд","втр","срд","чтв","птн","сбт"],dayNamesMin:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],weekHeader:"Нед",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.ru)}); hcwQuery(function(a){a.datepicker.regional.tr={closeText:"kapat",prevText:"geri",nextText:"ileri",currentText:"bugün",monthNames:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],monthNamesShort:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],dayNames:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"],dayNamesShort:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],dayNamesMin:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],weekHeader:"Hf",dateFormat:"dd.mm.yy",firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:""};a.datepicker.setDefaults(a.datepicker.regional.tr)}); hcwQuery(function(a){a.datepicker.regional.ja={closeText:"閉じる",prevText:"前",nextText:"次",currentText:"今日",monthNames:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],monthNamesShort:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayNames:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],dayNamesShort:["日","月","火","水","木","金","土"],dayNamesMin:["日","月","火","水","木","金","土"],weekHeader:"週",dateFormat:"yy/mm/dd",firstDay:0,isRTL:false,showMonthAfterYear:true,yearSuffix:"年"};a.datepicker.setDefaults(a.datepicker.regional.ja)}); hcwQuery(function(a){a.datepicker.regional.cs={closeText:"关闭",prevText:"上月",nextText:"下月",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy-mm-dd",firstDay:1,isRTL:false,showMonthAfterYear:true,yearSuffix:"年"};a.datepicker.setDefaults(a.datepicker.regional.cs)}); hcwQuery(function(a){a.datepicker.regional.cn={closeText:"關閉",prevText:"上月",nextText:"下月",currentText:"今天",monthNames:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthNamesShort:["一","二","三","四","五","六","七","八","九","十","十一","十二"],dayNames:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayNamesShort:["周日","周一","周二","周三","周四","周五","周六"],dayNamesMin:["日","一","二","三","四","五","六"],weekHeader:"周",dateFormat:"yy/mm/dd",firstDay:1,isRTL:false,showMonthAfterYear:true,yearSuffix:"年"};a.datepicker.setDefaults(a.datepicker.regional.cn)}); $HCW.popularCities = { 'de': { 'Amsterdam': 'Amsterdam', 'Hongkong': 'Hong_Kong', 'Rom': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'London': 'London'}, 'nl': { 'Amsterdam': 'Amsterdam', 'Hongkong': 'Hong_Kong', 'Rome': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londen': 'London'}, 'fr': { 'Amsterdam': 'Amsterdam', 'Hong Kong': 'Hong_Kong', 'Rome': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londres': 'London'}, 'es': { 'Ámsterdam': 'Amsterdam', 'Hong Kong': 'Hong_Kong', 'Rome': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londres': 'London'}, 'cz': { 'Amsterodam': 'Amsterdam', 'Hongkong': 'Hong_Kong', 'Rome': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londýn': 'London'}, 'it': { 'Amsterdam': 'Amsterdam', 'Hong Kong': 'Hong_Kong', 'Roma': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londra': 'London'}, 'pt': { 'Amesterdão': 'Amsterdam', 'Hong Kong': 'Hong_Kong', 'Roma': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londres': 'London'}, 'no': { 'Amsterdam': 'Amsterdam', 'Hong Kongøya': 'Hong_Kong', 'Roma': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'London': 'London'}, 'sv': { 'Amsterdam': 'Amsterdam', 'Hongkong': 'Hong_Kong', 'Rom': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'London': 'London'}, 'da': { 'Amsterdam': 'Amsterdam', 'Hongkong': 'Hong_Kong', 'Rom': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'London': 'London'}, 'ro': { 'Amsterdam': 'Amsterdam', 'Hong Kong': 'Hong_Kong', 'Roma': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londra': 'London'}, 'ar': { 'امستردام': 'Amsterdam', 'هونغ كونغ': 'Hong_Kong', 'روما': 'Rome', 'بانغكوك': 'Bangkok', 'لاس فيغاس': 'Las_Vegas', 'لندن': 'London'}, 'ko': { '암스테르담': 'Amsterdam', '홍콩': 'Hong_Kong', '로마': 'Rome', '방콕': 'Bangkok', '라스베이거스': 'Las_Vegas', '런던': 'London'}, 'he': { 'אמסטרדם': 'Amsterdam', 'הונג קונג': 'Hong_Kong', 'רומא': 'Rome', 'בנגקוק': 'Bangkok', 'לאס וגאס': 'Las_Vegas', 'לונדון': 'London'}, 'pl': { 'Amsterdam': 'Amsterdam', 'Hongkong': 'Hong_Kong', 'Rzym': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londyn': 'London'}, 'el': { 'Άμστερνταμ': 'Amsterdam', 'Χονγκ Κονγκ': 'Hong_Kong', 'Ρώμη': 'Rome', 'Μπανγκόκ': 'Bangkok', 'Λας Βέγκας': 'Las_Vegas', 'Λονδίνο': 'London'}, 'ru': { 'Амстердам': 'Amsterdam', 'Гонконг': 'Hong_Kong', 'Рим': 'Rome', 'Бангкок': 'Bangkok', 'Лас Вегас': 'Las_Vegas', 'Лондон': 'London'}, 'tr': { 'Amsterdam': 'Amsterdam', 'Hong Kong': 'Hong_Kong', 'Roma': 'Rome', 'Bangkok': 'Bangkok', 'Las Vegas': 'Las_Vegas', 'Londra': 'London'}, 'ja': { 'アムステルダム': 'Amsterdam', '香港': 'Hong_Kong', 'ローマ': 'Rome', 'バンコク': 'Bangkok', 'ラスベガス': 'Las_Vegas', 'ロンドン': 'London'}, 'cs': { '阿姆斯特丹': 'Amsterdam', '香港': 'Hong_Kong', '罗马': 'Rome', '曼谷': 'Bangkok', '拉斯维加斯': 'Las_Vegas', '伦敦': 'London'}, 'cn': { '阿姆斯特丹': 'Amsterdam', '香港': 'Hong_Kong', '羅馬': 'Rome', '曼谷': 'Bangkok', '拉斯維加斯': 'Las_Vegas', '倫敦': 'London'} } $HCW.helpText = { 'de': { 'cityName': 'Zielort', 'checkIn': 'Anreise', 'checkOut': 'Abreise', 'findHotelDeals': 'Hotelangebote finden', 'guests': 'Gäste', 'rooms': 'Zimmer', 'day': 'Tag', 'month': 'Monat', 'search': 'Suche', 'searchByHotelName': 'Nach Hotelnamen durchsuchen', 'browseByCountry': 'Nach Land durchsuchen'}, 'nl': { 'cityName': 'Bestemming', 'checkIn': 'Check-in', 'checkOut': 'Check-out', 'findHotelDeals': 'Zoek hoteldeals', 'guests': 'Gasten', 'rooms': 'Kamers', 'day': 'Dag', 'month': 'Maand', 'search': 'Zoek', 'searchByHotelName': 'Zoek op hotelnaam', 'browseByCountry': 'Bekijk per land'}, 'fr': { 'cityName': 'Destination', 'checkIn': "Date d'arrivée", 'checkOut': 'Date de départ', 'findHotelDeals': "Trouver des offres d'hôtels", 'guests': 'Personnes', 'rooms': 'Chambres', 'day': 'Jour', 'month': 'Mois', 'search': 'Recherche', 'searchByHotelName': "Rechercher par nom d'hôtel", 'browseByCountry': 'Rechercher par pays'}, 'es': { 'cityName': 'Destino', 'checkIn': 'Entrada', 'checkOut': 'Salida', 'findHotelDeals': "Encontrar ofertas de hotel", 'guests': 'Huéspedes', 'rooms': 'Habitaciones', 'day': 'Dia', 'month': 'Mes', 'search': 'Buscar', 'searchByHotelName': "Buscar por nombre de hotel", 'browseByCountry': 'Buscar por país'}, 'cz': { 'cityName': 'Cíl', 'checkIn': 'Datum-od', 'checkOut': 'Datum-do', 'findHotelDeals': "Hledání nabídek hotelů", 'guests': 'Hosté', 'rooms': 'Pokoje', 'day': 'Den', 'month': 'Měsíc', 'search': 'Hledat', 'searchByHotelName': "Hledat dle názvu hotelu", 'browseByCountry': 'Prohlížet dle státu'}, 'it': { 'cityName': 'Destinazione', 'checkIn': 'Check-in', 'checkOut': 'Check-out', 'findHotelDeals': "Trova offerte alberghiere", 'guests': 'Ospiti', 'rooms': 'Camere', 'day': 'Giorno', 'month': 'Mese', 'search': 'Cerca', 'searchByHotelName': "Cerca albergo per nome", 'browseByCountry': 'Sfoglia per paese'}, 'pt': { 'cityName': 'Destino', 'checkIn': 'Check-in', 'checkOut': 'Check-out', 'findHotelDeals': "Encontrar ofertas de hotéis", 'guests': 'Hóspedes', 'rooms': 'Quartos', 'day': 'Giorno', 'month': 'Mês', 'search': 'Pesquisar', 'searchByHotelName': "Pesquise por nome de hotel", 'browseByCountry': 'Pesquisar por país'}, 'no': { 'cityName': 'Reisemål', 'checkIn': 'Innsjekking', 'checkOut': 'Utsjekking', 'findHotelDeals': "Finn hotelltilbud", 'guests': 'Gjester', 'rooms': 'Rom', 'day': 'Dag', 'month': 'Måned', 'search': 'Søk', 'searchByHotelName': "Sorter etter hotellnavn", 'browseByCountry': 'Sorter etter land'}, 'sv': { 'cityName': 'Destination', 'checkIn': 'Incheckning', 'checkOut': 'Utcheckning', 'findHotelDeals': "Hitta hotellerbjudanden", 'guests': 'Gäster', 'rooms': 'Rum', 'day': 'Dag', 'month': 'Månad', 'search': 'Sök', 'searchByHotelName': "Sök på hotellnamn", 'browseByCountry': 'Sök på land'}, 'da': { 'cityName': 'Destination', 'checkIn': 'Check in', 'checkOut': 'Check out', 'findHotelDeals': "Find hoteltilbud", 'guests': 'Gæster', 'rooms': 'Værelser', 'day': 'Dag', 'month': 'Måned', 'search': 'Søg', 'searchByHotelName': "Søg ud fra hotelnavn", 'browseByCountry': 'Gennemse efter land'}, 'ro': { 'cityName': 'Destinaţie', 'checkIn': 'Sosire', 'checkOut': 'Plecare', 'findHotelDeals': "Găsiţi ofertele de hoteluri", 'guests': 'Oaspeţi', 'rooms': 'Camere', 'day': 'Zi', 'month': 'Luna', 'search': 'Căutare', 'searchByHotelName': "Căutare după nume hotel", 'browseByCountry': 'Căutare după ţară'}, 'ar': { 'cityName': 'الوجهة', 'checkIn': "تاريخ الوصول", 'checkOut': 'تاريخ المغادرة', 'findHotelDeals': "اعثر على عروض فنادق", 'guests': 'تاريخ المغادرة', 'rooms': 'تاريخ الوصول' , 'day': 'يوم', 'month': 'الشهر', 'search': 'ابحث', 'searchByHotelName': "بحث بإسم الفندق", 'browseByCountry': 'استعراض حسب الدول'}, 'ko': { 'cityName': '목적지', 'checkIn': '체크인', 'checkOut': '체크아웃' , 'findHotelDeals': "호텔 상품 검색", 'guests': '고객', 'rooms': '객실', 'day': '-일', 'month': '-월', 'search': '검색', 'searchByHotelName': "호텔 이름으로 검색", 'browseByCountry': '국가별 검색'}, 'he': { 'cityName': 'יעד', 'checkIn': 'תאריך כניסה', 'checkOut': 'תאריך יציאה' , 'findHotelDeals': "מלא דילים למלונות", 'guests': 'אורחים', 'rooms': 'חדרים', 'day': 'יום', 'month': 'חודש', 'search': 'חיפוש', 'searchByHotelName': "חפש לפי שם מלון", 'browseByCountry': 'חיפוש לפי מדינה'}, 'pl': { 'cityName': 'Cel podróży', 'checkIn': 'Zameldowanie', 'checkOut': 'Wymeldowanie', 'findHotelDeals': "Znajdź oferty hotelowe", 'guests': 'Goście', 'rooms': 'Pokoje', 'day': 'Dzień', 'month': 'Miesiąc', 'search': 'Szukaj', 'searchByHotelName': "Szukaj według nazwy", 'browseByCountry': 'Przeglądaj według państw'}, 'el': { 'cityName': 'Προορισμός', 'checkIn': 'Hμ/νία άφιξης', 'checkOut': 'Ημ/νία αναχώρησης', 'findHotelDeals': "Εύρεση προσφορών ξενοδοχείων", 'guests': 'Άτομα', 'rooms': 'Άτομα', 'day': 'Ημέρα', 'month': 'Μήνας', 'search': 'Αναζήτηση', 'searchByHotelName': "Αναζήτηση με όνομα ξενοδοχείου", 'browseByCountry': 'Αναζήτηση ανά χώρα'}, 'ru': { 'cityName': 'Направление', 'checkIn': 'Прибытие', 'checkOut': 'Отбытие', 'findHotelDeals': "Поиск отелей", 'guests': 'Гости', 'rooms': 'Номера', 'day': 'День', 'month': 'Месяц', 'search': 'Поиск', 'searchByHotelName': "Поиск по названию гостиницы", 'browseByCountry': 'Поиск по стране'}, 'tr': { 'cityName': 'Gidilecek yer', 'checkIn': 'Giriş', 'checkOut': 'Çıkış', 'findHotelDeals': "Otel Fırsatları Bul", 'guests': 'Misafirler', 'rooms': 'Odalar', 'day': 'Gün', 'month': 'Ay', 'search': 'Ara', 'searchByHotelName': "Otel ismine göre ara", 'browseByCountry': 'Ülkeye göre ara'}, 'ja': { 'cityName': '目的地', 'checkIn': 'チェックイン', 'checkOut': 'チェックアウト', 'findHotelDeals': "ホテルを検索", 'guests': '宿泊者数', 'rooms': '客室数', 'day': '日', 'month': '月', 'search': '検索', 'searchByHotelName': "ホテル名で検索", 'browseByCountry': '国別で検索'}, 'cs': { 'cityName': '目的地', 'checkIn': '登记入住', 'checkOut': '结帐离开' , 'findHotelDeals': "查找酒店优惠", 'guests': '人数', 'rooms': '房间数', 'day': '日', 'month': '月', 'search': '搜索', 'searchByHotelName': "按酒店名搜索", 'browseByCountry': '按国家浏览'}, 'cn': { 'cityName': '目的地', 'checkIn': '登記入住', 'checkOut': '結帳離開', 'findHotelDeals': "查找酒店優惠", 'guests': '人數', 'rooms': '房間數', 'day': '日', 'month': '月', 'search': '搜尋', 'searchByHotelName': "按酒店名搜尋", 'browseByCountry': '按國家瀏覽'} } $HCW.widgetOptions = {}; $HCW.commonUrlParams = {}; $HCW.responseList = {}; $HCW.selectedData = {}; $HCW.cache = {}; $HCW.daysInMonth = function(mnth, year){ var d = new Date(year, mnth, 0).getDate(); return d; } $HCW.setDayVals = function(hotel_day, dayhelptext, dayNames, month, year, hotel_dayVal){ var month; var dt = new Date(); var o = '<option value="-1">' + dayhelptext + '</option>'; for(var i=1;i<=$HCW.daysInMonth(parseInt(month), parseInt(year));i++){ dt.setFullYear(year, month-1, i); o += '<option value="' + i + '">' + dayNames[parseInt(dt.getDay())] + ' ' + i + '</option>'; } hotel_day.html(o); hotel_day.val(hotel_dayVal); } $HCW.checkInOutChanged = function(that, checkInChanged){ var monthChanged = $HCW(that).attr('class').indexOf('month') != -1; var theWidget = $HCW(that).parents('div.hcw_widget'); var theId = theWidget[0].id; var hotelCheckin_day = theWidget.find('select.hcw_hotelCheckin_day'); var hotelCheckin_dayVal = hotelCheckin_day.val(); var hotelCheckin_my = theWidget.find('select.hcw_hotelCheckin_month'); var hotelCheckin_myVal = hotelCheckin_my.val(); var hotelCheckin_my = theWidget.find('select.hcw_hotelCheckin_month'); var hotelCheckin_myVal = hotelCheckin_my.val(); var hotelCheckout_day = theWidget.find('select.hcw_hotelCheckout_day'); var hotelCheckout_dayVal = hotelCheckout_day.val(); var hotelCheckout_my = theWidget.find('select.hcw_hotelCheckout_month'); var hotelCheckout_myVal = hotelCheckout_my.val(); var checkin = hotelCheckin_myVal + '-' + hotelCheckin_dayVal; var checkout = hotelCheckout_myVal + '-' + hotelCheckout_dayVal; var scheckin = checkin.split('-'); var scheckout = checkout.split('-'); var haveGoodCheckin = (scheckin.length == 3) && scheckin[0] && scheckin[1] && scheckin[2]; var haveGoodCheckout = (scheckout.length == 3) && scheckout[0] && scheckout[1] && scheckout[2]; var checkinDate = new Date(); var checkoutDate = new Date(); var langCode = $HCW.widgetOptions[theId].languagecode.toLowerCase(); var dayNames; if(!langCode || (langCode == 'en')){ dayNames = $HCW.datepicker.regional[''].dayNamesShort; } else { dayNames = $HCW.datepicker.regional[langCode].dayNamesShort; } if(monthChanged && checkInChanged){ var smy = hotelCheckin_myVal.split('-'); if(smy.length > 0){ $HCW.setDayVals(hotelCheckin_day, $HCW.widgetOptions[theId].dayhelptext, dayNames, smy[1], smy[0], hotelCheckin_dayVal); } } if(monthChanged && !checkInChanged){ var smy = hotelCheckout_myVal.split('-'); if(smy.length > 0){ $HCW.setDayVals(hotelCheckout_day, $HCW.widgetOptions[theId].dayhelptext, dayNames, smy[1], smy[0], hotelCheckout_dayVal); } } if(checkInChanged && haveGoodCheckin){ checkinDate.setFullYear(scheckin[0], scheckin[1], scheckin[2]); if(haveGoodCheckout){ checkoutDate.setFullYear(scheckout[0], scheckout[1], scheckout[2]); } if(!haveGoodCheckout || (checkoutDate < checkinDate)){ // Change the checkout date if(hotelCheckin_dayVal < $HCW.daysInMonth(parseInt(scheckin[1]), parseInt(scheckin[0]))){ hotelCheckout_my.val(hotelCheckin_myVal); $HCW.setDayVals(hotelCheckout_day, $HCW.widgetOptions[theId].dayhelptext, dayNames, scheckin[1], scheckin[0], hotelCheckout_dayVal); hotelCheckout_day.val(parseInt(hotelCheckin_dayVal) + 1); } else { var idx = $HCW.inArray(hotelCheckin_myVal, $HCW.yearMonthList); hotelCheckout_my.val($HCW.yearMonthList[idx+1]); var syml = $HCW.yearMonthList[idx+1].split('-'); $HCW.setDayVals(hotelCheckout_day, $HCW.widgetOptions[theId].dayhelptext, dayNames, syml[1], syml[0], hotelCheckout_dayVal); hotelCheckout_day.val(1); } } theWidget.find('hcw_hiddenCheckin').val(checkin); theWidget.find('hcw_hiddenCheckout').datepicker("option", "minDate", new Date(scheckin[0], scheckin[1], parseInt(scheckin[2]) + 1)); } else if(!checkInChanged && haveGoodCheckout){ checkoutDate.setFullYear(scheckout[0], scheckout[1], scheckout[2]); if(haveGoodCheckin){ checkinDate.setFullYear(scheckin[0], scheckin[1], scheckin[2]); } if(!haveGoodCheckin || (checkinDate > checkoutDate)){ // Change the checkin date if(hotelCheckout_dayVal > 1){ hotelCheckin_my.val(hotelCheckout_myVal); $HCW.setDayVals(hotelCheckin_day, $HCW.widgetOptions[theId].dayhelptext, dayNames, scheckout[1], scheckout[0], hotelCheckin_dayVal); hotelCheckin_day.val(parseInt(hotelCheckout_dayVal) - 1); } else { var idx = $HCW.inArray(hotelCheckout_myVal, $HCW.yearMonthList); hotelCheckin_my.val($HCW.yearMonthList[idx-1]); var syml = $HCW.yearMonthList[idx-1].split('-'); $HCW.setDayVals(hotelCheckin_day, $HCW.widgetOptions[theId].dayhelptext, dayNames, syml[1], syml[0], hotelCheckin_dayVal); hotelCheckin_day.val($HCW.daysInMonth(parseInt(syml[1]), parseInt(syml[0]))); } } theWidget.find('hcw_hiddenCheckout').val(checkout); theWidget.find('hcw_hiddenCheckin').datepicker("option", "maxDate", checkout); } } $HCW.checkInChanged = function(){ $HCW.checkInOutChanged(this, true); } $HCW.checkOutChanged = function(){ $HCW.checkInOutChanged(this, false); } $HCW.max_widget_id = 0; $HCW.writePopularCities = function (openInNewWindow, expandThem, urlParams){ var o = '<div class="hcw_popularCitiesContainer" style="display: none;"><ul>'; var targetText = ''; var cup = $HCW.extend({}, urlParams); if(cup.affiliateParam){ cup.affiliateParam = '?' + cup.affiliateParam.substring(1); } else if(cup.brandParam){ cup.brandParam = '?' + cup.brandParam.substring(1); } else if(cup.labelParam){ cup.labelParam = '?' + cup.labelParam.substring(1); } else if(cup.countryCode){ cup.countryCode = '?' + cup.countryCode.substring(1); } else if(cup.languageCode){ cup.languageCode = '?' + cup.languageCode.substring(1); } if(openInNewWindow){ targetText = 'target="_top" '; } for(var _hcw_city in $HCW.widget_options.popularcities){ if(expandThem){ _hcw_link = cup.host + '/City/' + $HCW.widget_options.popularcities[_hcw_city] + '.htm' + cup.affiliateParam + cup.brandParam + cup.labelParam + cup.countryCode + cup.languageCode; } else { _hcw_link = $HCW.widget_options.popularcities[_hcw_city] + cup.affiliateParam + cup.brandParam + cup.labelParam + cup.countryCode + cup.languageCode; } o += '<li><a ' + targetText + 'href="' + _hcw_link + '">' + _hcw_city + '</a></li>'; } o += '</ul></div>'; return o; } $HCW.initOrWait = function(widgetId){ var ourWidgetId = widgetId; var ciSize; if($HCW.widgetOptions[widgetId].usepulldowndates){ ciSize = parseInt($HCW('#' + widgetId + ' select.hcw_hotelCheckin_day').css('height')); } else { ciSize = parseInt($HCW('#' + widgetId + ' input.hcw_hotelCheckin').css('width')); } $HCW('#' + ourWidgetId).css({'display': 'block'}); if(ciSize > 0){ $HCW.initWidget(ourWidgetId); } else { setTimeout(function(){ $HCW.initOrWait(ourWidgetId); }, 500); } } $HCW.writeCityOptions = function(_hcw_options){ var o; for(_hcw_c in _hcw_options){ o += '<option value="' + _hcw_options[_hcw_c] + '">' + _hcw_c + '</option>'; } return o; }; $HCW.writeOptions = function(maxNum){ var o; for(var _hcw_i=1;_hcw_i<=maxNum;_hcw_i++){ o += '<option value="' + _hcw_i + '">' + _hcw_i + '</option>'; } return o; }; $HCW.insertStyleSheet = function(cssUrl, langCode, num, theWidgetId, no_cache, duplicate_css){ var href = ''; if(duplicate_css && langCode){ href = 'http://widgets.hotelscombined.com/widgets/dynamicWidgetCss.php?cssUrl=' + escape(cssUrl) + '&languageCode=' + langCode; } else if(duplicate_css){ href = 'http://widgets.hotelscombined.com/widgets/dynamicWidgetCss.php?cssUrl=' + escape(cssUrl); } else if(num && langCode){ href = 'http://widgets.hotelscombined.com/widgets/dynamicWidgetCss.php?widget_num=' + num + '&cssUrl=' + escape(cssUrl) + '&languageCode=' + langCode; } else if(num){ href = 'http://widgets.hotelscombined.com/widgets/dynamicWidgetCss.php?widget_num=' + num + '&cssUrl=' + escape(cssUrl); } else { href = cssUrl; } if(no_cache){ href += '&no_cache=1'; } if(duplicate_css){ href += '&duplicate_css=1'; } LazyLoad.css(href, function (widgetId){ var ourWidgetId = widgetId; if(ourWidgetId){ $HCW.initOrWait(ourWidgetId); } }, theWidgetId); } $HCW.getStyle = function(x,styleProp){ if (x.currentStyle) var y = x.currentStyle[styleProp]; else if (window.getComputedStyle) var y = document.defaultView.getComputedStyle(x,null).getPropertyValue(styleProp); return y; } $HCW.buildCommonUrlParams = function(theId){ var o = {}; o.languageCode = ''; if($HCW.widgetOptions[theId].languagecode){ o.languageCode = "&languageCode=" + $HCW.widgetOptions[theId].languagecode; } else if($HCW.widgetOptions[theId].languagecodespecified){ o.languageCode = "&languageCode=EN"; } o.host = $HCW.widgetOptions[theId].customurl; if(!o.host){ o.host = 'http://www.hotelscombined.com'; } o.affiliateParam = ''; if($HCW.widgetOptions[theId].affiliateid){ o.affiliateParam = '&a_aid=' + $HCW.widgetOptions[theId].affiliateid; } else if($HCW.widgetOptions[theId].a_aid){ o.affiliateParam = '&a_aid=' + $HCW.widgetOptions[theId].a_aid; } o.brandParam = ''; if($HCW.widgetOptions[theId].brandid){ o.brandParam = '&brandId=' + $HCW.widgetOptions[theId].brandid; } o.labelParam = ''; if($HCW.widgetOptions[theId].label){ o.labelParam = '&label=' + $HCW.widgetOptions[theId].label; } o.countryCode = ''; if($HCW.widgetOptions[theId].countrycode){ o.countryCode = '&CountryCode=' + $HCW.widgetOptions[theId].countrycode; } return o; } $HCW.initWidget = function(topElId) { var theTopElId = topElId; var theTestSel; if($HCW.widgetOptions[topElId].usepulldowndates){ theTestSel = '#' + topElId + ' .hcw_hotelCheckin_day'; } else { theTestSel = '#' + topElId + ' .hcw_hotelCheckin'; } var foundIt = $HCW(theTestSel).css('height'); if(!foundIt){ setTimeout(function(){ $HCW.initWidget(theTopElId); }, 500); } else { setTimeout(function(){ var theTopEl = document.getElementById(theTopElId); var that = theTopEl; var theId = $HCW(theTopEl).attr('id'); var theLanguageCode = $HCW.widgetOptions[theId].languagecode; if(!theLanguageCode){ theLanguageCode = 'EN'; } else{ theLanguageCode = theLanguageCode.toUpperCase(); } var theCountryCode = $HCW.widgetOptions[theId].countrycode; var theVal = $HCW(theTopEl).find('.hcw_citySearch').val(); $HCW(theTopEl).find('.hcw_citySearch').autocomplete({ source: function( request, response ) { $HCW.ajax({ url: "http://www.hotelscombined.com/AutoComplete.ashx", // url: 'http://widgets.hotelscombined.com/widgets/find_cities_callback.php', dataType: 'jsonp', data: { query: request.term, languageCode: theLanguageCode, CountryCode: theCountryCode, limit: 10, format: 'jsonp' }, success: function( data ) { if(!data){ return; } $HCW.selectedData[theId].selectedCity = false; var found = {}; $HCW.responseList[theId] = $HCW.map( data, function( item ) { if(!found[item[0]]){ found[item[0]] = true; return { label: item[0], value: item[0], data: item[5], type: item[2] } } }); response( $HCW.responseList[theId]); } }); }, delay: 10, minLength: $HCW.widgetOptions[topElId].minautocompletelength, select: function( event, ui ) { $HCW.selectedData[theId].selectedCity = ui.item.data; $HCW.selectedData[theId].selectedType = ui.item.type; $HCW(event.target).autocomplete('close'); }, open: function() { $HCW( this ).removeClass( "ui-corner-all" ).addClass( "ui-corner-top" ); }, close: function() { } }).focus(function(){ if($HCW.trim($HCW(this).val()) == $HCW(this).data('defaultVal')){ $HCW(this).val(''); } }).val(theVal).data('defaultVal', theVal).blur(function(){ try{ $HCW(this).removeClass("ui-corner-top").addClass("ui-corner-all"); if($HCW.trim($HCW(this).val()) == ''){ $HCW(this).val($HCW(this).data('defaultVal')); } } catch(err){} }).keyup(function(ev){ if(ev.keyCode == 13){ $HCW(ev.target).blur(); } else { $HCW.selectedData[theId].selectedCity = false; } }); var tabHeight = false; if($HCW.widgetOptions[topElId].tabheight){ tabHeight = parseInt($HCW.widgetOptions[topElId].tabheight); } var tab2Height = tabHeight; if(!tab2Height){ tab2Height = parseInt($HCW(theTopEl).find('.hcw_tab2').css('height').replace('px','')); } if($HCW.widgetOptions[topElId].hastabs || (tab2Height > 0)){ $HCW(theTopEl).find('.hcw_dat1 .hcw_popularCitiesContainer').remove(); $HCW(theTopEl).find('.hcw_dat2 .hcw_popularCitiesContainer').show(); $HCW(theTopEl).find('.hcw_tab1').click(function(){ var theTabHeight; if(tabHeight){ theTabHeight = tabHeight + 'px'; } $HCW(this).parent().find('.hcw_dat1').show(); $HCW(this).parent().find('.hcw_dat2').hide(); $HCW(this).parent().find('.hcw_tab1').css({'background-position': '0 0'}); if(!theTabHeight){ theTabHeight = $HCW(this).parent().find('.hcw_tab2').css('height'); } $HCW(this).parent().find('.hcw_tab2').css({'background-position': '0 -' + theTabHeight}); }).click(); $HCW(theTopEl).find('.hcw_tab2').click(function(){ var theTabHeight; if(tabHeight){ theTabHeight = tabHeight + 'px'; } $HCW(this).parent().find('.hcw_dat2').show(); $HCW(this).parent().find('.hcw_dat1').hide(); if(!theTabHeight){ theTabHeight = $HCW(this).parent().find('.hcw_tab1').css('height'); } $HCW(this).parent().find('.hcw_tab1').css({'background-position': '0 -' + theTabHeight}); $HCW(this).parent().find('.hcw_tab2').css({'background-position': '0 0'}); }); } else { $HCW(theTopEl).find('.hcw_dat1 .hcw_popularCitiesContainer').show(); $HCW(theTopEl).find('.hcw_dat2 .hcw_popularCitiesContainer').remove(); } $HCW(theTopEl).find('button.hcw_searchButton').click(function(){ var instance; var checkin; var checkout; if($HCW.widgetOptions[theId].usepulldowndates){ var hotelCheckin_day = $HCW(that).find('select.hcw_hotelCheckin_day'); var hotelCheckin_dayVal = hotelCheckin_day.val(); var hotelCheckin_my = $HCW(that).find('select.hcw_hotelCheckin_month'); var hotelCheckin_myVal = hotelCheckin_my.val(); checkin = hotelCheckin_myVal + '-' + hotelCheckin_dayVal; var error = false; var havedates = true; if((checkin == '') || (hotelCheckin_myVal == -1) || (hotelCheckin_dayVal == -1)){ checkin = ''; error = true && $HCW.widgetOptions[theId].requiredates; havedates = false; if(error){ hotelCheckin_day.addClass('hcw_errorText'); hotelCheckin_my.addClass('hcw_errorText'); } } else { hotelCheckin_day.removeClass('hcw_errorText'); hotelCheckin_my.removeClass('hcw_errorText'); } var hotelCheckout_day = $HCW(that).find('select.hcw_hotelCheckout_day'); var hotelCheckout_dayVal = hotelCheckout_day.val(); var hotelCheckout_my = $HCW(that).find('select.hcw_hotelCheckout_month'); var hotelCheckout_myVal = hotelCheckout_my.val(); checkout = hotelCheckout_myVal + '-' + hotelCheckout_dayVal; if((checkout == '') || (hotelCheckout_myVal == -1) || (hotelCheckout_dayVal == -1)){ checkout = ''; error = true && $HCW.widgetOptions[theId].requiredates; havedates = false; if(error){ hotelCheckout_day.addClass('hcw_errorText'); hotelCheckout_my.addClass('hcw_errorText'); } } else { hotelCheckout_day.removeClass('hcw_errorText'); hotelCheckout_my.removeClass('hcw_errorText'); } } else { var hotelCheckin = $HCW(that).find('input.hcw_hotelCheckin'); checkin = hotelCheckin.val(); var error = false; var havedates = true; if((checkin == '') || (checkin == $HCW.widgetOptions[theId].checkinhelptext)){ checkin = ''; error = true && $HCW.widgetOptions[theId].requiredates; havedates = false; if(error){ hotelCheckin.addClass('hcw_errorText'); } } else { hotelCheckin.removeClass('hcw_errorText'); instance = hotelCheckin.data("datepicker"); var date = $HCW.datepicker.parseDate( instance.settings.dateFormat || $HCW.datepicker._defaults.dateFormat, checkin, instance.settings ); checkin = $HCW.datepicker.formatDate('yy-mm-dd', date); } var hotelCheckout = $HCW(that).find('input.hcw_hotelCheckout'); checkout = hotelCheckout.val(); if((checkout == '') || (checkout == $HCW.widgetOptions[theId].checkouthelptext)){ checkout = ''; error = true && $HCW.widgetOptions[theId].requiredates; havedates = false; if(error){ hotelCheckout.addClass('hcw_errorText'); } } else { hotelCheckout.removeClass('hcw_errorText'); instance = hotelCheckout.data("datepicker"); var date = $HCW.datepicker.parseDate( instance.settings.dateFormat || $HCW.datepicker._defaults.dateFormat, checkout, instance.settings ); checkout = $HCW.datepicker.formatDate('yy-mm-dd', date); } } var fileNameParam = false; var city = $HCW(that).find('input.hcw_citySearch').val(); var pullDownCity = $HCW(that).find('select.hcw_cityPulldown'); var selectedCity = $HCW.selectedData[theId].selectedCity; var selectedType = $HCW.selectedData[theId].selectedType; if(selectedCity){ city = false; fileNameParam = selectedCity; } else if(pullDownCity.length > 0){ city = false; fileNameParam = pullDownCity.val(); } else if($HCW.widgetOptions[theId].filename){ city = false; fileNameParam = $HCW.widgetOptions[theId].filename; } else if(!city || (city == $HCW.widgetOptions[theId].citynamehelptext)){ error = true; $HCW(that).find('input.hcw_citySearch').addClass('hcw_errorText'); } else { $HCW(that).find('input.hcw_citySearch').removeClass('hcw_errorText'); city = escape(city); } var searchSingleHotel = $HCW.widgetOptions[theId].searchsinglehotel; if(fileNameParam && (fileNameParam.indexOf(':') == -1) && !searchSingleHotel){ fileNameParam = 'city:' + fileNameParam; } var adults = "&Adults=" + $HCW(that).find('select.hcw_guests').val(); var rooms = "&Rooms=" + $HCW(that).find('select.hcw_rooms').val(); var o = $HCW.commonUrlParams[theId]; var defaultSort = ''; if($HCW.widgetOptions[theId].defaultsort){ defaultSort = '&sort=' + $HCW.widgetOptions[theId].defaultsort; } var redirection; var checkInOutStr = ''; if(havedates){ checkInOutStr = "&checkin=" + checkin + "&checkout=" + checkout; } if(fileNameParam && searchSingleHotel){ redirection = "/SearchedHotel.php?fileName=" + fileNameParam + checkInOutStr + o.affiliateParam + o.brandParam + o.labelParam + o.countryCode + adults + rooms + o.languageCode + defaultSort; } else if(fileNameParam && !searchSingleHotel && (selectedType == '5')){ redirection = "/SearchTermTypeRedirection.php?fileName=" + fileNameParam + checkInOutStr + o.affiliateParam + o.brandParam + o.labelParam + o.countryCode + adults + rooms + o.languageCode + defaultSort + '&sttype=5'; } else if(fileNameParam && !searchSingleHotel){ redirection = "/SearchResults.php?destination=" + fileNameParam + checkInOutStr + o.affiliateParam + o.brandParam + o.labelParam + o.countryCode + adults + rooms + o.languageCode + defaultSort; } else { redirection = "/Search.php?search=" + city + checkInOutStr + o.affiliateParam + o.brandParam + o.labelParam + o.countryCode + adults + rooms + o.languageCode + defaultSort; } var customData = ''; var redirection = o.host + redirection + customData; try{ if(!error){ if($HCW.widgetOptions[theId].searchopensnewwindow){ window.open(redirection).focus(); } else { window.location = redirection; } } } catch(err){ } return false; }); }, 500); } } $HCW.setOption = function(e){ $HCW(e.data.theOtherInput).datepicker("option", e.data.theOption, e.data.theDate).unbind('focus', $HCW.setOption); } $HCW.setOptionOnFocus = function(otherInput, option, date){ var theOtherInput = otherInput; var theOption = option; var theDate = date; $HCW(theOtherInput).focus({ theOtherInput: theOtherInput, theOption: theOption, theDate: theDate }, $HCW.setOption); } $HCW.scrollSticky = function(){ if(!$HCW.stickyid){ return; } var $padding = 10; if(true){ // $HCW(window).height() >= $HCW.stickyHeight) { if($HCW(document).height() - $HCW.footerHeight - $padding < $HCW(window).scrollTop() + $HCW.stickyHeight) { var $top = $HCW(document).height() - $HCW.stickyHeight - $HCW.footerHeight - $padding; $HCW('#'+$HCW.stickyid).attr('style', 'position:absolute; top:'+$top+'px;'); } else if($HCW(window).scrollTop() + $padding > $HCW.topOffset) { $HCW('#'+$HCW.stickyid).attr('style', 'position:fixed; top:'+$padding+'px;'); } else { $HCW('#'+$HCW.stickyid).attr('style', 'position:relative;'); } } } $HCW(window).scroll($HCW.scrollSticky); $HCW(document).ready(function(){ var setAll = false; while(!setAll){ $HCW('div.hcw_widget').each(function(){ //$HCW.initWidget( this.id); //$HCW(this).css({'display': 'block'}); }); setAll = true; } var curDate = new Date(); $HCW('div.hcw_widget').each(function(){ var theId = this.id; if($HCW.widgetOptions[theId].usepulldowndates){ var o = '<option value="-1">' + $HCW.widgetOptions[theId].dayhelptext + '</option>'; for(var i=1;i<32;i++){ o += '<option value="' + i + '">' + i + '</option>'; } $HCW(this).find("select.hcw_hotelCheckin_day, select.hcw_hotelCheckout_day").html(o); var theDate = new Date(); var langCode = $HCW.widgetOptions[theId].languagecode.toLowerCase(); var longYear = theDate.getFullYear() + ''; var shortYear = longYear.substr(2); var monthNames; var showMonthAfterYear; if(!langCode || (langCode == 'en')){ monthNames = $HCW.datepicker.regional['']['monthNames']; showMonthAfterYear = $HCW.datepicker.regional[''].showMonthAfterYear; } else { monthNames = $HCW.datepicker.regional[langCode].monthNames; showMonthAfterYear = $HCW.datepicker.regional[langCode].showMonthAfterYear; } var year; var tick = ''; if(langCode && $HCW.inArray(langCode, ['es', 'da', 'he'])){ year = longYear; } else if(langCode && HCW.inArray(langCode, ['ru', 'cs', 'cn'])){ year = shortYear; } else { year = shortYear; tick = "'"; } var startMonth = theDate.getMonth(); o = '<option value="-1">' + $HCW.widgetOptions[theId].monthhelptext + '</option>'; for(var i=0;i<13;i++){ var mnth = (i + startMonth) % 12; if((i+startMonth) == 12){ year = parseInt(year) + 1; year += ''; longYear = parseInt(longYear) + 1; longYear += ''; } var mnthName = monthNames[mnth]; mnth += 1; if(showMonthAfterYear){ o += '<option value="' + longYear + '-' + mnth + '">' + tick + year + ' ' + mnthName + '</option>'; } else { o += '<option value="' + longYear + '-' + mnth + '">' + mnthName + ' ' + tick + year + '</option>'; } if(!$HCW.yearMonthList){ $HCW.yearMonthList = []; } if($HCW.yearMonthList.length < 13){ $HCW.yearMonthList.push(year + '-' + mnth); } } $HCW(this).find("select.hcw_hotelCheckin_month, select.hcw_hotelCheckout_month").html(o); $HCW(this).find("select.hcw_hotelCheckin_month, select.hcw_hotelCheckin_day").change($HCW.checkInChanged); $HCW(this).find("select.hcw_hotelCheckout_month, select.hcw_hotelCheckout_day").change($HCW.checkOutChanged); } else { var hcwDates = $HCW(this).find("input.hcw_hotelCheckin, input.hcw_hotelCheckout").each(function(){ var theId = $HCW(this).parents('div.hcw_widget')[0].id; var theVal = $HCW(this).val(); var theOptions = { changeMonth: false, numberOfMonths: $HCW.widgetOptions[theId].numcalendarpanes, minDate: new Date(), onSelect: function( selectedDate ) { var isCheckin = $HCW( this ).hasClass('hcw_hotelCheckin'); var option = isCheckin ? "minDate" : "maxDate"; var instance = $HCW( this ).data( "datepicker" ); var date = $HCW.datepicker.parseDate( instance.settings.dateFormat || $HCW.datepicker._defaults.dateFormat, selectedDate, instance.settings ); if(isCheckin){ date.setDate(date.getDate() + 1); } else { date.setDate(date.getDate() - 1); } var otherInput = hcwDates.not(this).filter($HCW(this).parent().children()); $HCW.setOptionOnFocus(otherInput, option, date); } } if($HCW.widgetOptions[theId].datepickerdateformat){ theOptions.dateFormat = $HCW.widgetOptions[theId].datepickerdateformat; } if($HCW.widgetOptions[theId].datepickerfirstday){ theOptions.firstDay = $HCW.widgetOptions[theId].datepickerfirstday; } $HCW(this).datepicker($HCW.datepicker.regional[$HCW.widgetOptions[theId].languagecode]).datepicker('option', theOptions).val(theVal).data('defaultVal', theVal).blur(function(){ if($HCW(this).val() == ''){ $HCW(this).val($HCW(this).data('defaultVal')); } }); if($HCW.widgetOptions[theId].datepickeroptions){ $HCW(this).datepicker("option", $HCW.widgetOptions[theId].datepickeroptions); } }); } if($HCW.stickyid){ setTimeout(function(){ $HCW.topOffset = $HCW('#'+$HCW.stickyid).offset().top; $HCW.stickyHeight = $HCW('#'+$HCW.stickyid).height(); }, 200); } }); }); } $HCW.thishc_widget_id = false; $HCW.widget_options = { usepulldowndates: false, cssurl: 'http://www.hcsearchbox.com/SearchBox/SearchBox450x256.css', themecssurl: 'http://www.hcsearchbox.com/jquery-ui-1.8.10.custom.css', usedefaulttoptitle: false, usehelptextaslabels: false, useguestsroomshelptextaslabels: false, usedefaultbottomlinks: false, toptitle: '', bottomlinks: {}, affiliateid: false, brandid: false, defaultsort: false, label: false, customurl: false, filename: false, searchsinglehotel: false, languagecode: '', countrycode: '', maxguests: 9, maxrooms: 4, minautocompletelength: 3, numcalendarpanes: 1, linksopennewwindow: true, searchopensnewwindow: true, citynamehelptext: 'City Name', checkinhelptext: 'Check-in', checkouthelptext: 'Check-out', dayhelptext: 'Day', monthhelptext: 'Month', guestshelptext: 'Guests', roomshelptext: 'Rooms', searchbuttonvalue: 'Search', citiespulldown: false, datepickerdateformat: false, datepickerfirstday: false, requiredates: false, hastabs: false, tabheight: false, nocache: false, duplicatecss: false, languagecodespecified: false, popularcities: { 'Amsterdam': 'http://www.hotelscombined.com/City/Amsterdam.htm', 'Hong Kong': 'http://www.hotelscombined.com/City/Hong_Kong.htm', 'Rome': 'http://www.hotelscombined.com/City/Rome.htm', 'Bangkok': 'http://www.hotelscombined.com/City/Bangkok.htm', 'Las Vegas': 'http://www.hotelscombined.com/City/Las_Vegas.htm', 'London': 'http://www.hotelscombined.com/City/London.htm', 'Singapore': 'http://www.hotelscombined.com/City/Singapore.htm', 'Sydney': 'http://www.hotelscombined.com/City/Sydney.htm', 'Madrid': 'http://www.hotelscombined.com/City/Madrid.htm' } }; $HCW.expandPopularCities = false; if(typeof hcw_options == "undefined"){ if(typeof Hcw_options != "undefined"){ hcw_options = Hcw_options; } else if(typeof HCW_options != "undefined"){ hcw_options = HCW_options; } else if(typeof HCW_Options != "undefined"){ hcw_options = HCW_Options; } else if(typeof HCW_OPTIONS != "undefined"){ hcw_options = HCW_OPTIONS; } } $HCW.haveHcwOptions = typeof hcw_options != "undefined"; $HCW.gotthemecss = false; if($HCW.haveHcwOptions){ for(hcwM in hcw_options){ var lco = hcwM.toLowerCase(); if(lco == 'themecssurl'){ $HCW.gotthemecss = true; } $HCW.widget_options[lco] = hcw_options[hcwM]; hcw_options[lco] = hcw_options[hcwM]; } $HCW.lc = $HCW.widget_options['languagecode'].toLowerCase(); if($HCW.lc != ''){ $HCW.widget_options['languagecodespecified'] = true; } if($HCW.lc == 'en'){ $HCW.lc = ''; } if(!$HCW.gotthemecss && $HCW.widget_options['usepulldowndates']){ $HCW.widget_options['themecssurl'] = 'http://www.hcsearchbox.com/NewSearchBox/jquery-ui-1.8.13.custom.css'; } if($HCW.lc){ $HCW.expandPopularCities = true; if(!hcw_options['popularcities']){ $HCW.widget_options['popularcities'] = $HCW.popularCities[$HCW.lc]; } if(!hcw_options['citynamehelptext']){ $HCW.widget_options['citynamehelptext'] = $HCW.helpText[$HCW.lc].cityName; } if(!hcw_options['checkinhelptext']){ $HCW.widget_options['checkinhelptext'] = $HCW.helpText[$HCW.lc].checkIn; } if(!hcw_options['checkouthelptext']){ $HCW.widget_options['checkouthelptext'] = $HCW.helpText[$HCW.lc].checkOut; } if(!hcw_options['dayhelptext']){ $HCW.widget_options['dayhelptext'] = $HCW.helpText[$HCW.lc].day; } if(!hcw_options['monthhelptext']){ $HCW.widget_options['monthhelptext'] = $HCW.helpText[$HCW.lc].month; } if(!hcw_options['guestshelptext']){ $HCW.widget_options['guestshelptext'] = $HCW.helpText[$HCW.lc].guests; } if(!hcw_options['roomshelptext']){ $HCW.widget_options['roomshelptext'] = $HCW.helpText[$HCW.lc].rooms; } if(!hcw_options['searchbuttonvalue']){ $HCW.widget_options['searchbuttonvalue'] = $HCW.helpText[$HCW.lc].search; } if(($HCW.lc == 'cn') || ($HCW.lc == 'cs') || ($HCW.lc == 'ja') || ($HCW.lc == 'ko')){ $HCW.widget_options['minautocompletelength'] = 1; } } } if(!$HCW.haveHcwOptions || ($HCW.widget_options['cssurl'] == 'http://www.hcsearchbox.com/SearchBox/SearchBox450x256.css')){ if($HCW.widget_options['toptitle'] == ''){ $HCW.widget_options['usedefaulttoptitle'] = true; } $HCW.widget_options['usehelptextaslabels'] = true; if($HCW.keys($HCW.widget_options['bottomlinks']).length < 1){ $HCW.widget_options['usedefaultbottomlinks'] = true; } $HCW.widget_options['popularcities'] = {}; } if(!$HCW.max_widget_id){ $HCW.max_widget_id = 1; } else { $HCW.max_widget_id++; } $HCW.thishc_widget_id = "id-HC-Searchbox" + $HCW.max_widget_id; $HCW.widgetOptions[$HCW.thishc_widget_id] = $HCW.widget_options; $HCW.widgetOptions[$HCW.thishc_widget_id].numcalendarpanes = $HCW.widget_options.numcalendarpanes; $HCW.widgetOptions[$HCW.thishc_widget_id].languagecode = $HCW.lc; $HCW.selectedData[$HCW.thishc_widget_id] = {}; $HCW.commonUrlParams[$HCW.thishc_widget_id] = $HCW.buildCommonUrlParams($HCW.thishc_widget_id); if($HCW.haveHcwOptions && $HCW.widget_options.usedefaultbottomlinks){ $HCW.widget_options.bottomlinks = {}; $HCW.up = $HCW.commonUrlParams[$HCW.thishc_widget_id]; $HCW.parms = $HCW.up.affiliateParam + $HCW.up.brandParam + $HCW.up.labelParam + $HCW.up.countryCode + $HCW.up.languageCode; $HCW.parms = $HCW.parms ? '?' + $HCW.parms.substring(1) : ''; if($HCW.lc) { $HCW.widget_options.bottomlinks[$HCW.helpText[$HCW.lc].searchByHotelName] = $HCW.up.host + '/HotelNameSearch.aspx' + $HCW.parms; $HCW.widget_options.bottomlinks[$HCW.helpText[$HCW.lc].browseByCountry] = $HCW.up.host + '/BrowseByCountry.aspx' + $HCW.parms; } else { $HCW.widget_options.bottomlinks['Search by hotel name'] = $HCW.up.host + '/HotelNameSearch.aspx' + $HCW.parms; $HCW.widget_options.bottomlinks['Browse by country'] = $HCW.up.host + '/BrowseByCountry.aspx' + $HCW.parms; } } if($HCW.haveHcwOptions && $HCW.widget_options['usedefaulttoptitle']){ if($HCW.lc){ $HCW.widget_options['toptitle'] = $HCW.helpText[$HCW.lc].findHotelDeals; } else { $HCW.widget_options['toptitle'] = 'Find Hotel Deals'; } } if($HCW.widget_options.setsticky){ if($HCW.widget_options.stickyid){ $HCW.stickyid = $HCW.widget_options.stickyid; } else { $HCW.stickyid = $HCW.thishc_widget_id; } if($HCW.widget_options.stickyfooterheight){ $HCW.footerHeight = $HCW.widget_options.stickyfooterheight; } else { $HCW.footerHeight = 0; } } if($HCW.widget_options.usepulldowndates){ $HCW.o = '<div style="display: none;" class="hcw_widget" id="' + $HCW.thishc_widget_id + '"><b class="hcwb1h"></b></b><b class="hcwb2h"></b><b class="hcwb3h"></b><b class="hcwb4h"></b><div class="hcw_wrapperDiv"><div class="hcw_dealsSticker"></div><div class="hcw_topTitle">' + $HCW.widget_options['toptitle'] + '</div><div class="hcw_tab1"></div><div class="hcw_tab2"></div><div class="hcw_dat1"><div class="hcw_guests_graphic"></div><div class="hcw_rooms_graphic"></div><input class="hcw_hiddenCheckin" type="hidden" value="" style=""><div class="hcw_hotelCheckinGraphic"></div><label class="hcw_hotelCheckinLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.checkinhelptext + '</label><select class="hcw_hotelCheckin_day"><option selected="selected">' + $HCW.widget_options.dayhelptext + '</option></select><select class="hcw_hotelCheckin_month"><option selected="selected">' + $HCW.widget_options.monthhelptext + '</option></select><input class="hcw_hiddenCheckout" type="hidden" value="" style=""><div class="hcw_hotelCheckoutGraphic"></div><label class="hcw_hotelCheckoutLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.checkouthelptext + '</label><select class="hcw_hotelCheckout_day"><option selected="selected">' + $HCW.widget_options.dayhelptext + '</option></select><select class="hcw_hotelCheckout_month"><option selected="selected">' + $HCW.widget_options.monthhelptext + '</option></select><label class="hcw_guestsLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels || $HCW.widget_options.useguestsroomshelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.guestshelptext + '</label><span class="hcw_guests_wrap"><select class="hcw_guests">'; $HCW.o += $HCW.writeOptions($HCW.widget_options.maxguests); $HCW.o += '</select></span><label class="hcw_roomsLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels || $HCW.widget_options.useguestsroomshelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.roomshelptext + '</label><span class="hcw_rooms_wrap"><select class="hcw_rooms">'; $HCW.o += $HCW.writeOptions($HCW.widget_options.maxrooms); if($HCW.widget_options.citiespulldown){ $HCW.o += '</select></span><label class="hcw_citySearchLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.citynamehelptext + '</label><input type="hidden" class="hcw_citySearch" value="' + ($HCW.widget_options.usehelptextaslabels ? '' : $HCW.widget_options.citynamehelptext) + '"><select class="hcw_cityPulldown">'; $HCW.o += $HCW.writeCityOptions($HCW.widget_options.citiespulldown); $HCW.o += '</select><button type="button" class="hcw_searchButton" title="' + $HCW.widget_options.searchbuttonvalue + '">' + $HCW.widget_options.searchbuttonvalue + '</button>'; } else { $HCW.o += '</select></span><label class="hcw_citySearchLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.citynamehelptext + '</label><input type="text" class="hcw_citySearch" value="' + ($HCW.widget_options.usehelptextaslabels ? '' : $HCW.widget_options.citynamehelptext) + '"><button type="button" class="hcw_searchButton" title="' + $HCW.widget_options.searchbuttonvalue + '">' + $HCW.widget_options.searchbuttonvalue + '</button>'; } $HCW.o += $HCW.writePopularCities($HCW.widget_options.linksopennewwindow, $HCW.expandPopularCities, $HCW.commonUrlParams[$HCW.thishc_widget_id]); $HCW.o += '</div><div class="hcw_dat2">'; $HCW.o += $HCW.writePopularCities($HCW.widget_options.linksopennewwindow, $HCW.expandPopularCities, $HCW.commonUrlParams[$HCW.thishc_widget_id]); $HCW.o += '</div><div class="hcw_bottomLinks">'; for(var bl in $HCW.widget_options['bottomlinks']){ if($HCW.widget_options.linksopennewwindow){ $HCW.o += '<a target="_top" href="' + $HCW.widget_options['bottomlinks'][bl] + '">' + bl + '</a>'; } else { $HCW.o += '<a href="' + $HCW.widget_options['bottomlinks'][bl] + '">' + bl + '</a>'; } } $HCW.o += '</div></div><b class="hcwb4bh"></b></b><b class="hcwb3bh"></b><b class="hcwb2bh"></b><b class="hcwb1bh"></b></div>'; } else { $HCW.o = '<div style="display: none;" class="hcw_widget" id="' + $HCW.thishc_widget_id + '"><b class="hcwb1h"></b></b><b class="hcwb2h"></b><b class="hcwb3h"></b><b class="hcwb4h"></b><div class="hcw_wrapperDiv"><div class="hcw_dealsSticker"></div><div class="hcw_topTitle">' + $HCW.widget_options['toptitle'] + '</div><div class="hcw_tab1"></div><div class="hcw_tab2"></div><div class="hcw_dat1"><div class="hcw_guests_graphic"></div><div class="hcw_rooms_graphic"></div><label class="hcw_hotelCheckinLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.checkinhelptext + '</label><input type="text" class="hcw_hotelCheckin" value="' + ($HCW.widget_options.usehelptextaslabels ? '' : $HCW.widget_options.checkinhelptext) + '"><label class="hcw_hotelCheckoutLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.checkouthelptext + '</label><input type="text" class="hcw_hotelCheckout" value="' + ($HCW.widget_options.usehelptextaslabels ? '' : $HCW.widget_options.checkouthelptext) + '"><label class="hcw_guestsLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels || $HCW.widget_options.useguestsroomshelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.guestshelptext + '</label><span class="hcw_guests_wrap"><select class="hcw_guests">'; $HCW.o += $HCW.writeOptions($HCW.widget_options.maxguests); $HCW.o += '</select></span><label class="hcw_roomsLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels || $HCW.widget_options.useguestsroomshelptextaslabels ? 'block' : 'none') + ';">' + $HCW.widget_options.roomshelptext + '</label><span class="hcw_rooms_wrap"><select class="hcw_rooms">'; $HCW.o += $HCW.writeOptions($HCW.widget_options.maxrooms); if($HCW.widget_options.citiespulldown){ $HCW.o += '</select></span><label class="hcw_citySearchLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels && !$HCW.widget_options.filename ? 'block' : 'none') + ';">' + $HCW.widget_options.citynamehelptext + '</label><input type="hidden" class="hcw_citySearch" value="' + ($HCW.widget_options.usehelptextaslabels ? '' : $HCW.widget_options.citynamehelptext) + '"><select class="hcw_cityPulldown">'; $HCW.o += $HCW.writeCityOptions($HCW.widget_options.citiespulldown); $HCW.o += '</select><button type="button" class="hcw_searchButton" title="' + $HCW.widget_options.searchbuttonvalue + '">' + $HCW.widget_options.searchbuttonvalue + '</button>'; } else { $HCW.o += '</select></span><label class="hcw_citySearchLabel" style="display: ' + ($HCW.widget_options.usehelptextaslabels && !$HCW.widget_options.filename ? 'block' : 'none') + ';">' + $HCW.widget_options.citynamehelptext + '</label><input type="' + ($HCW.widget_options.filename ? 'hidden' : 'text') + '" class="hcw_citySearch" value="' + ($HCW.widget_options.usehelptextaslabels ? '' : $HCW.widget_options.citynamehelptext) + '"><button type="button" class="hcw_searchButton" title="' + $HCW.widget_options.searchbuttonvalue + '">' + $HCW.widget_options.searchbuttonvalue + '</button>'; } $HCW.o += $HCW.writePopularCities($HCW.widget_options.linksopennewwindow, $HCW.expandPopularCities, $HCW.commonUrlParams[$HCW.thishc_widget_id]); $HCW.o += '</div><div class="hcw_dat2">'; $HCW.o += $HCW.writePopularCities($HCW.widget_options.linksopennewwindow, $HCW.expandPopularCities, $HCW.commonUrlParams[$HCW.thishc_widget_id]); $HCW.o += '</div><div class="hcw_bottomLinks">'; for(var bl in $HCW.widget_options['bottomlinks']){ if($HCW.widget_options.linksopennewwindow){ $HCW.o += '<a target="_top" href="' + $HCW.widget_options['bottomlinks'][bl] + '">' + bl + '</a>'; } else { $HCW.o += '<a href="' + $HCW.widget_options['bottomlinks'][bl] + '">' + bl + '</a>'; } } $HCW.o += '</div></div><b class="hcwb4bh"></b></b><b class="hcwb3bh"></b><b class="hcwb2bh"></b><b class="hcwb1bh"></b></div>'; } document.write($HCW.o); if($HCW.widget_options.cssurl && (!$HCW.widget_options.duplicatecss || ($HCW.max_widget_id < 2))){ $HCW.insertStyleSheet($HCW.widget_options.cssurl, $HCW.widget_options.languagecode, $HCW.max_widget_id, $HCW.thishc_widget_id, $HCW.widget_options.nocache, $HCW.widget_options.duplicatecss); } else { $HCW.initOrWait($HCW.thishc_widget_id); } if($HCW.max_widget_id < 2){ $HCW.insertStyleSheet($HCW.widget_options.themecssurl); }