var VT={};(function(){var o=this,h,D=o.jQuery,u=o.$,t=o.jQuery=o.$=function(J,K){return new t.fn.init(J,K)},I=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,g=/^.[^:#\[\.,]*$/;t.fn=t.prototype={init:function(J,M){J=J||document;if(J.nodeType){this[0]=J;this.length=1;this.context=J;return this}if(typeof J==="string"){var L=I.exec(J);
if(L&&(L[1]||!M)){if(L[1]){J=t.clean([L[1]],M)}else{var N=document.getElementById(L[3]);if(N&&N.id!=L[3]){return t().find(J)}var K=t(N||[]);K.context=document;K.selector=J;return K}}else{return t(M).find(J)}}else{if(t.isFunction(J)){return t(document).ready(J)}}if(J.selector&&J.context){this.selector=J.selector;
this.context=J.context}return this.setArray(t.isArray(J)?J:t.makeArray(J))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(J){return J===h?Array.prototype.slice.call(this):this[J]},pushStack:function(K,M,J){var L=t(K);L.prevObject=this;L.context=this.context;if(M==="find"){L.selector=this.selector+(this.selector?" ":"")+J
}else{if(M){L.selector=this.selector+"."+M+"("+J+")"}}return L},setArray:function(J){this.length=0;Array.prototype.push.apply(this,J);return this},each:function(K,J){return t.each(this,K,J)},index:function(J){return t.inArray(J&&J.jquery?J[0]:J,this)},attr:function(K,M,L){var J=K;if(typeof K==="string"){if(M===h){return this[0]&&t[L||"attr"](this[0],K)
}else{J={};J[K]=M}}return this.each(function(N){for(K in J){t.attr(L?this.style:this,K,t.prop(this,J[K],L,N,K))}})},css:function(J,K){if((J=="width"||J=="height")&&parseFloat(K)<0){K=h}return this.attr(J,K,"curCSS")},text:function(K){if(typeof K!=="object"&&K!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(K))
}var J="";t.each(K||this,function(){t.each(this.childNodes,function(){if(this.nodeType!=8){J+=this.nodeType!=1?this.nodeValue:t.fn.text([this])}})});return J},wrapAll:function(J){if(this[0]){var K=t(J,this[0].ownerDocument).clone();if(this[0].parentNode){K.insertBefore(this[0])}K.map(function(){var L=this;
while(L.firstChild){L=L.firstChild}return L}).append(this)}return this},wrapInner:function(J){return this.each(function(){t(this).contents().wrapAll(J)})},wrap:function(J){return this.each(function(){t(this).wrapAll(J)})},append:function(){return this.domManip(arguments,true,function(J){if(this.nodeType==1){this.appendChild(J)
}})},prepend:function(){return this.domManip(arguments,true,function(J){if(this.nodeType==1){this.insertBefore(J,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(J){this.parentNode.insertBefore(J,this)})},after:function(){return this.domManip(arguments,false,function(J){this.parentNode.insertBefore(J,this.nextSibling)
})},end:function(){return this.prevObject||t([])},push:[].push,sort:[].sort,splice:[].splice,find:function(J){if(this.length===1){var K=this.pushStack([],"find",J);K.length=0;t.find(J,this[0],K);return K}else{return this.pushStack(t.unique(t.map(this,function(L){return t.find(J,L)})),"find",J)}},clone:function(L){var J=this.map(function(){if(!t.support.noCloneEvent&&!t.isXMLDoc(this)){var N=this.outerHTML;
if(!N){var O=this.ownerDocument.createElement("div");O.appendChild(this.cloneNode(true));N=O.innerHTML}return t.clean([N.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(L===true){var M=this.find("*").andSelf(),K=0;J.find("*").andSelf().each(function(){if(this.nodeName!==M[K].nodeName){return
}var N=t.data(M[K],"events");for(var P in N){for(var O in N[P]){t.event.add(this,P,N[P][O],N[P][O].data)}}K++})}return J},filter:function(J){return this.pushStack(t.isFunction(J)&&t.grep(this,function(L,K){return J.call(L,K)})||t.multiFilter(J,t.grep(this,function(K){return K.nodeType===1})),"filter",J)
},closest:function(J){var L=t.expr.match.POS.test(J)?t(J):null,K=0;return this.map(function(){var M=this;while(M&&M.ownerDocument){if(L?L.index(M)>-1:t(M).is(J)){t.data(M,"closest",K);return M}M=M.parentNode;K++}})},not:function(J){if(typeof J==="string"){if(g.test(J)){return this.pushStack(t.multiFilter(J,this,true),"not",J)
}else{J=t.multiFilter(J,this)}}var K=J.length&&J[J.length-1]!==h&&!J.nodeType;return this.filter(function(){return K?t.inArray(this,J)<0:this!=J})},add:function(J){return this.pushStack(t.unique(t.merge(this.get(),typeof J==="string"?t(J):t.makeArray(J))))},is:function(J){return !!J&&t.multiFilter(J,this).length>0
},hasClass:function(J){return !!J&&this.is("."+J)},val:function(P){if(P===h){var J=this[0];if(J){if(t.nodeName(J,"option")){return(J.attributes.value||{}).specified?J.value:J.text}if(t.nodeName(J,"select")){var N=J.selectedIndex,Q=[],R=J.options,M=J.type=="select-one";if(N<0){return null}for(var K=M?N:0,O=M?N+1:R.length;
K<O;K++){var L=R[K];if(L.selected){P=t(L).val();if(M){return P}Q.push(P)}}return Q}return(J.value||"").replace(/\r/g,"")}return h}if(typeof P==="number"){P+=""}return this.each(function(){if(this.nodeType!=1){return}if(t.isArray(P)&&/radio|checkbox/.test(this.type)){this.checked=(t.inArray(this.value,P)>=0||t.inArray(this.name,P)>=0)
}else{if(t.nodeName(this,"select")){var S=t.makeArray(P);t("option",this).each(function(){this.selected=(t.inArray(this.value,S)>=0||t.inArray(this.text,S)>=0)});if(!S.length){this.selectedIndex=-1}}else{this.value=P}}})},html:function(J){return J===h?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(J)
},replaceWith:function(J){return this.after(J).remove()},eq:function(J){return this.slice(J,+J+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(J){return this.pushStack(t.map(this,function(L,K){return J.call(L,K,L)
}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(O,R,Q){if(this[0]){var N=(this[0].ownerDocument||this[0]).createDocumentFragment(),K=t.clean(O,(this[0].ownerDocument||this[0]),N),M=N.firstChild;if(M){for(var L=0,J=this.length;L<J;L++){Q.call(P(this[L],M),this.length>1||L>0?N.cloneNode(true):N)
}}if(K){t.each(K,E)}}return this;function P(S,T){return R&&t.nodeName(S,"table")&&t.nodeName(T,"tr")?(S.getElementsByTagName("tbody")[0]||S.appendChild(S.ownerDocument.createElement("tbody"))):S}}};t.fn.init.prototype=t.fn;function E(J,K){if(K.src){t.ajax({url:K.src,async:false,dataType:"script"})}else{t.globalEval(K.text||K.textContent||K.innerHTML||"")
}if(K.parentNode){K.parentNode.removeChild(K)}}function f(){return +new Date}t.extend=t.fn.extend=function(){var O=arguments[0]||{},M=1,N=arguments.length,J=false,L;if(typeof O==="boolean"){J=O;O=arguments[1]||{};M=2}if(typeof O!=="object"&&!t.isFunction(O)){O={}}if(N==M){O=this;--M}for(;M<N;M++){if((L=arguments[M])!=null){for(var K in L){var P=O[K],Q=L[K];
if(O===Q){continue}if(J&&Q&&typeof Q==="object"&&!Q.nodeType){O[K]=t.extend(J,P||(Q.length!=null?[]:{}),Q)}else{if(Q!==h){O[K]=Q}}}}}return O};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,v=document.defaultView||{},x=Object.prototype.toString;t.extend({noConflict:function(J){o.$=u;if(J){o.jQuery=D
}return t},isFunction:function(J){return x.call(J)==="[object Function]"},isArray:function(J){return x.call(J)==="[object Array]"},isXMLDoc:function(J){return J.nodeType===9&&J.documentElement.nodeName!=="HTML"||!!J.ownerDocument&&t.isXMLDoc(J.ownerDocument)},globalEval:function(L){if(L&&/\S/.test(L)){var K=document.getElementsByTagName("head")[0]||document.documentElement,J=document.createElement("script");
J.type="text/javascript";if(t.support.scriptEval){J.appendChild(document.createTextNode(L))}else{J.text=L}K.insertBefore(J,K.firstChild);K.removeChild(J)}},nodeName:function(K,J){return K.nodeName&&K.nodeName.toUpperCase()==J.toUpperCase()},each:function(L,P,K){var J,M=0,N=L.length;if(K){if(N===h){for(J in L){if(P.apply(L[J],K)===false){break
}}}else{for(;M<N;){if(P.apply(L[M++],K)===false){break}}}}else{if(N===h){for(J in L){if(P.call(L[J],J,L[J])===false){break}}}else{for(var O=L[0];M<N&&P.call(O,M,O)!==false;O=L[++M]){}}}return L},prop:function(M,N,L,K,J){if(t.isFunction(N)){N=N.call(M,K)}return typeof N==="number"&&L=="curCSS"&&!b.test(J)?N+"px":N
},className:{add:function(J,K){t.each((K||"").split(/\s+/),function(L,M){if(J.nodeType==1&&!t.className.has(J.className,M)){J.className+=(J.className?" ":"")+M}})},remove:function(J,K){if(J.nodeType==1){J.className=K!==h?t.grep(J.className.split(/\s+/),function(L){return !t.className.has(K,L)}).join(" "):""
}},has:function(K,J){return K&&t.inArray(J,(K.className||K).toString().split(/\s+/))>-1}},swap:function(M,L,N){var J={};for(var K in L){J[K]=M.style[K];M.style[K]=L[K]}N.call(M);for(var K in L){M.style[K]=J[K]}},css:function(M,K,O,J){if(K=="width"||K=="height"){var Q,L={position:"absolute",visibility:"hidden",display:"block"},P=K=="width"?["Left","Right"]:["Top","Bottom"];
function N(){Q=K=="width"?M.offsetWidth:M.offsetHeight;if(J==="border"){return}t.each(P,function(){if(!J){Q-=parseFloat(t.curCSS(M,"padding"+this,true))||0}if(J==="margin"){Q+=parseFloat(t.curCSS(M,"margin"+this,true))||0}else{Q-=parseFloat(t.curCSS(M,"border"+this+"Width",true))||0}})}if(M.offsetWidth!==0){N()
}else{t.swap(M,L,N)}return Math.max(0,Math.round(Q))}return t.curCSS(M,K,O)},curCSS:function(N,K,L){var Q,J=N.style;if(K=="opacity"&&!t.support.opacity){Q=t.attr(J,"opacity");return Q==""?"1":Q}if(K.match(/float/i)){K=B}if(!L&&J&&J[K]){Q=J[K]}else{if(v.getComputedStyle){if(K.match(/float/i)){K="float"
}K=K.replace(/([A-Z])/g,"-$1").toLowerCase();var R=v.getComputedStyle(N,null);if(R){Q=R.getPropertyValue(K)}if(K=="opacity"&&Q==""){Q="1"}}else{if(N.currentStyle){var O=K.replace(/\-(\w)/g,function(S,T){return T.toUpperCase()});Q=N.currentStyle[K]||N.currentStyle[O];if(!/^\d+(px)?$/i.test(Q)&&/^\d/.test(Q)){var M=J.left,P=N.runtimeStyle.left;
N.runtimeStyle.left=N.currentStyle.left;J.left=Q||0;Q=J.pixelLeft+"px";J.left=M;N.runtimeStyle.left=P}}}}return Q},clean:function(K,P,N){P=P||document;if(typeof P.createElement==="undefined"){P=P.ownerDocument||P[0]&&P[0].ownerDocument||document}if(!N&&K.length===1&&typeof K[0]==="string"){var M=/^<(\w+)\s*\/?>$/.exec(K[0]);
if(M){return[P.createElement(M[1])]}}var L=[],J=[],Q=P.createElement("div");t.each(K,function(U,X){if(typeof X==="number"){X+=""}if(!X){return}if(typeof X==="string"){X=X.replace(/(<(\w+)[^>]*?)\/>/g,function(Z,aa,Y){return Y.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?Z:aa+"></"+Y+">"
});var T=X.replace(/^\s+/,"").substring(0,10).toLowerCase();var V=!T.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!T.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||T.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!T.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!T.indexOf("<td")||!T.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!T.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!t.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];
Q.innerHTML=V[1]+X+V[2];while(V[0]--){Q=Q.lastChild}if(!t.support.tbody){var W=/<tbody/i.test(X),S=!T.indexOf("<table")&&!W?Q.firstChild&&Q.firstChild.childNodes:V[1]=="<table>"&&!W?Q.childNodes:[];for(var R=S.length-1;R>=0;--R){if(t.nodeName(S[R],"tbody")&&!S[R].childNodes.length){S[R].parentNode.removeChild(S[R])
}}}if(!t.support.leadingWhitespace&&/^\s/.test(X)){Q.insertBefore(P.createTextNode(X.match(/^\s*/)[0]),Q.firstChild)}X=t.makeArray(Q.childNodes)}if(X.nodeType){L.push(X)}else{L=t.merge(L,X)}});if(N){for(var O=0;L[O];O++){if(t.nodeName(L[O],"script")&&(!L[O].type||L[O].type.toLowerCase()==="text/javascript")){J.push(L[O].parentNode?L[O].parentNode.removeChild(L[O]):L[O])
}else{if(L[O].nodeType===1){L.splice.apply(L,[O+1,0].concat(t.makeArray(L[O].getElementsByTagName("script"))))}N.appendChild(L[O])}}return J}return L},attr:function(O,L,P){if(!O||O.nodeType==3||O.nodeType==8){return h}var M=!t.isXMLDoc(O),Q=P!==h;L=M&&t.props[L]||L;if(O.tagName){var K=/href|src|style/.test(L);
if(L=="selected"&&O.parentNode){O.parentNode.selectedIndex}if(L in O&&M&&!K){if(Q){if(L=="type"&&t.nodeName(O,"input")&&O.parentNode){throw"type property can't be changed"}O[L]=P}if(t.nodeName(O,"form")&&O.getAttributeNode(L)){return O.getAttributeNode(L).nodeValue}if(L=="tabIndex"){var N=O.getAttributeNode("tabIndex");
return N&&N.specified?N.value:O.nodeName.match(/(button|input|object|select|textarea)/i)?0:O.nodeName.match(/^(a|area)$/i)&&O.href?0:h}return O[L]}if(!t.support.style&&M&&L=="style"){return t.attr(O.style,"cssText",P)}if(Q){O.setAttribute(L,""+P)}var J=!t.support.hrefNormalized&&M&&K?O.getAttribute(L,2):O.getAttribute(L);
return J===null?h:J}if(!t.support.opacity&&L=="opacity"){if(Q){O.zoom=1;O.filter=(O.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(P)+""=="NaN"?"":"alpha(opacity="+P*100+")")}return O.filter&&O.filter.indexOf("opacity=")>=0?(parseFloat(O.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}L=L.replace(/-([a-z])/ig,function(R,S){return S.toUpperCase()
});if(Q){O[L]=P}return O[L]},trim:function(J){return(J||"").replace(/^\s+|\s+$/g,"")},makeArray:function(L){var J=[];if(L!=null){var K=L.length;if(K==null||typeof L==="string"||t.isFunction(L)||L.setInterval){J[0]=L}else{while(K){J[--K]=L[K]}}}return J},inArray:function(L,M){for(var J=0,K=M.length;J<K;
J++){if(M[J]===L){return J}}return -1},merge:function(M,J){var K=0,L,N=M.length;if(!t.support.getAll){while((L=J[K++])!=null){if(L.nodeType!=8){M[N++]=L}}}else{while((L=J[K++])!=null){M[N++]=L}}return M},unique:function(P){var K=[],J={};try{for(var L=0,M=P.length;L<M;L++){var O=t.data(P[L]);if(!J[O]){J[O]=true;
K.push(P[L])}}}catch(N){K=P}return K},grep:function(K,O,J){var L=[];for(var M=0,N=K.length;M<N;M++){if(!J!=!O(K[M],M)){L.push(K[M])}}return L},map:function(J,O){var K=[];for(var L=0,M=J.length;L<M;L++){var N=O(J[L],L);if(N!=null){K[K.length]=N}}return K.concat.apply([],K)}});var H=navigator.userAgent.toLowerCase();
t.browser={version:(H.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(H),opera:/opera/.test(H),msie:/msie/.test(H)&&!/opera/.test(H),mozilla:/mozilla/.test(H)&&!/(compatible|webkit)/.test(H)};t.each({parent:function(J){return J.parentNode},parents:function(J){return t.dir(J,"parentNode")
},next:function(J){return t.nth(J,2,"nextSibling")},prev:function(J){return t.nth(J,2,"previousSibling")},nextAll:function(J){return t.dir(J,"nextSibling")},prevAll:function(J){return t.dir(J,"previousSibling")},siblings:function(J){return t.sibling(J.parentNode.firstChild,J)},children:function(J){return t.sibling(J.firstChild)
},contents:function(J){return t.nodeName(J,"iframe")?J.contentDocument||J.contentWindow.document:t.makeArray(J.childNodes)}},function(J,K){t.fn[J]=function(L){var M=t.map(this,K);if(L&&typeof L=="string"){M=t.multiFilter(L,M)}return this.pushStack(t.unique(M),J,L)}});t.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(J,K){t.fn[J]=function(L){var O=[],Q=t(L);
for(var P=0,M=Q.length;P<M;P++){var N=(P>0?this.clone(true):this).get();t.fn[K].apply(t(Q[P]),N);O=O.concat(N)}return this.pushStack(O,J,L)}});t.each({removeAttr:function(J){t.attr(this,J,"");if(this.nodeType==1){this.removeAttribute(J)}},addClass:function(J){t.className.add(this,J)},removeClass:function(J){t.className.remove(this,J)
},toggleClass:function(K,J){if(typeof J!=="boolean"){J=!t.className.has(this,K)}t.className[J?"add":"remove"](this,K)},remove:function(J){if(!J||t.filter(J,[this]).length){t("*",this).add([this]).each(function(){t.event.remove(this);t.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)
}}},empty:function(){t(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(J,K){t.fn[J]=function(){return this.each(K,arguments)}});function m(J,K){return J[0]&&parseInt(t.curCSS(J[0],K,true),10)||0}var k="jQuery"+f(),A=0,F={};t.extend({cache:{},data:function(K,J,L){K=K==o?F:K;
var M=K[k];if(!M){M=K[k]=++A}if(J&&!t.cache[M]){t.cache[M]={}}if(L!==h){t.cache[M][J]=L}return J?t.cache[M][J]:M},removeData:function(K,J){K=K==o?F:K;var M=K[k];if(J){if(t.cache[M]){delete t.cache[M][J];J="";for(J in t.cache[M]){break}if(!J){t.removeData(K)}}}else{try{delete K[k]}catch(L){if(K.removeAttribute){K.removeAttribute(k)
}}delete t.cache[M]}},queue:function(K,J,M){if(K){J=(J||"fx")+"queue";var L=t.data(K,J);if(!L||t.isArray(M)){L=t.data(K,J,t.makeArray(M))}else{if(M){L.push(M)}}}return L},dequeue:function(M,L){var J=t.queue(M,L),K=J.shift();if(!L||L==="fx"){K=J[0]}if(K!==h){K.call(M)}}});t.fn.extend({data:function(J,L){var M=J.split(".");
M[1]=M[1]?"."+M[1]:"";if(L===h){var K=this.triggerHandler("getData"+M[1]+"!",[M[0]]);if(K===h&&this.length){K=t.data(this[0],J)}return K===h&&M[1]?this.data(M[0]):K}else{return this.trigger("setData"+M[1]+"!",[M[0],L]).each(function(){t.data(this,J,L)})}},removeData:function(J){return this.each(function(){t.removeData(this,J)
})},queue:function(J,K){if(typeof J!=="string"){K=J;J="fx"}if(K===h){return t.queue(this[0],J)}return this.each(function(){var L=t.queue(this,J,K);if(J=="fx"&&L.length==1){L[0].call(this)}})},dequeue:function(J){return this.each(function(){t.dequeue(this,J)})}});(function(){var W=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,Q=0,M=Object.prototype.toString;
var K=function(ad,Z,ag,ah){ag=ag||[];Z=Z||document;if(Z.nodeType!==1&&Z.nodeType!==9){return[]}if(!ad||typeof ad!=="string"){return ag}var ae=[],ab,ak,an,Y,ai,aa,ac=true;W.lastIndex=0;while((ab=W.exec(ad))!==null){ae.push(ab[1]);if(ab[2]){aa=RegExp.rightContext;break}}if(ae.length>1&&R.exec(ad)){if(ae.length===2&&N.relative[ae[0]]){ak=O(ae[0]+ae[1],Z)
}else{ak=N.relative[ae[0]]?[Z]:K(ae.shift(),Z);while(ae.length){ad=ae.shift();if(N.relative[ad]){ad+=ae.shift()}ak=O(ad,ak)}}}else{var aj=ah?{expr:ae.pop(),set:J(ah)}:K.find(ae.pop(),ae.length===1&&Z.parentNode?Z.parentNode:Z,V(Z));ak=K.filter(aj.expr,aj.set);if(ae.length>0){an=J(ak)}else{ac=false}while(ae.length){var am=ae.pop(),al=am;
if(!N.relative[am]){am=""}else{al=ae.pop()}if(al==null){al=Z}N.relative[am](an,al,V(Z))}}if(!an){an=ak}if(!an){throw"Syntax error, unrecognized expression: "+(am||ad)}if(M.call(an)==="[object Array]"){if(!ac){ag.push.apply(ag,an)}else{if(Z.nodeType===1){for(var af=0;an[af]!=null;af++){if(an[af]&&(an[af]===true||an[af].nodeType===1&&P(Z,an[af]))){ag.push(ak[af])
}}}else{for(var af=0;an[af]!=null;af++){if(an[af]&&an[af].nodeType===1){ag.push(ak[af])}}}}}else{J(an,ag)}if(aa){K(aa,Z,ag,ah);if(L){hasDuplicate=false;ag.sort(L);if(hasDuplicate){for(var af=1;af<ag.length;af++){if(ag[af]===ag[af-1]){ag.splice(af--,1)}}}}}return ag};K.matches=function(Y,Z){return K(Y,null,null,Z)
};K.find=function(af,Y,ag){var ae,ac;if(!af){return[]}for(var ab=0,aa=N.order.length;ab<aa;ab++){var ad=N.order[ab],ac;if((ac=N.match[ad].exec(af))){var Z=RegExp.leftContext;if(Z.substr(Z.length-1)!=="\\"){ac[1]=(ac[1]||"").replace(/\\/g,"");ae=N.find[ad](ac,Y,ag);if(ae!=null){af=af.replace(N.match[ad],"");
break}}}}if(!ae){ae=Y.getElementsByTagName("*")}return{set:ae,expr:af}};K.filter=function(ai,ah,al,ab){var aa=ai,an=[],af=ah,ad,Y,ae=ah&&ah[0]&&V(ah[0]);while(ai&&ah.length){for(var ag in N.filter){if((ad=N.match[ag].exec(ai))!=null){var Z=N.filter[ag],am,ak;Y=false;if(af==an){an=[]}if(N.preFilter[ag]){ad=N.preFilter[ag](ad,af,al,an,ab,ae);
if(!ad){Y=am=true}else{if(ad===true){continue}}}if(ad){for(var ac=0;(ak=af[ac])!=null;ac++){if(ak){am=Z(ak,ad,ac,af);var aj=ab^!!am;if(al&&am!=null){if(aj){Y=true}else{af[ac]=false}}else{if(aj){an.push(ak);Y=true}}}}}if(am!==h){if(!al){af=an}ai=ai.replace(N.match[ag],"");if(!Y){return[]}break}}}if(ai==aa){if(Y==null){throw"Syntax error, unrecognized expression: "+ai
}else{break}}aa=ai}return af};var N=K.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\(\)]*)+)\2\))?/},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(Y){return Y.getAttribute("href")
}},relative:{"+":function(af,Y,ae){var ac=typeof Y==="string",ag=ac&&!/\W/.test(Y),ad=ac&&!ag;if(ag&&!ae){Y=Y.toUpperCase()}for(var ab=0,aa=af.length,Z;ab<aa;ab++){if((Z=af[ab])){while((Z=Z.previousSibling)&&Z.nodeType!==1){}af[ab]=ad||Z&&Z.nodeName===Y?Z||false:Z===Y}}if(ad){K.filter(Y,af,true)}},">":function(ae,Z,af){var ac=typeof Z==="string";
if(ac&&!/\W/.test(Z)){Z=af?Z:Z.toUpperCase();for(var aa=0,Y=ae.length;aa<Y;aa++){var ad=ae[aa];if(ad){var ab=ad.parentNode;ae[aa]=ab.nodeName===Z?ab:false}}}else{for(var aa=0,Y=ae.length;aa<Y;aa++){var ad=ae[aa];if(ad){ae[aa]=ac?ad.parentNode:ad.parentNode===Z}}if(ac){K.filter(Z,ae,true)}}},"":function(ab,Z,ad){var aa=Q++,Y=X;
if(!Z.match(/\W/)){var ac=Z=ad?Z:Z.toUpperCase();Y=U}Y("parentNode",Z,aa,ab,ac,ad)},"~":function(ab,Z,ad){var aa=Q++,Y=X;if(typeof Z==="string"&&!Z.match(/\W/)){var ac=Z=ad?Z:Z.toUpperCase();Y=U}Y("previousSibling",Z,aa,ab,ac,ad)}},find:{ID:function(Z,aa,ab){if(typeof aa.getElementById!=="undefined"&&!ab){var Y=aa.getElementById(Z[1]);
return Y?[Y]:[]}},NAME:function(aa,ad,ae){if(typeof ad.getElementsByName!=="undefined"){var Z=[],ac=ad.getElementsByName(aa[1]);for(var ab=0,Y=ac.length;ab<Y;ab++){if(ac[ab].getAttribute("name")===aa[1]){Z.push(ac[ab])}}return Z.length===0?null:Z}},TAG:function(Y,Z){return Z.getElementsByTagName(Y[1])
}},preFilter:{CLASS:function(ab,Z,aa,Y,ae,af){ab=" "+ab[1].replace(/\\/g,"")+" ";if(af){return ab}for(var ac=0,ad;(ad=Z[ac])!=null;ac++){if(ad){if(ae^(ad.className&&(" "+ad.className+" ").indexOf(ab)>=0)){if(!aa){Y.push(ad)}}else{if(aa){Z[ac]=false}}}}return false},ID:function(Y){return Y[1].replace(/\\/g,"")
},TAG:function(Z,Y){for(var aa=0;Y[aa]===false;aa++){}return Y[aa]&&V(Y[aa])?Z[1]:Z[1].toUpperCase()},CHILD:function(Y){if(Y[1]=="nth"){var Z=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(Y[2]=="even"&&"2n"||Y[2]=="odd"&&"2n+1"||!/\D/.test(Y[2])&&"0n+"+Y[2]||Y[2]);Y[2]=(Z[1]+(Z[2]||1))-0;Y[3]=Z[3]-0}Y[0]=Q++;return Y
},ATTR:function(ac,Z,aa,Y,ad,ae){var ab=ac[1].replace(/\\/g,"");if(!ae&&N.attrMap[ab]){ac[1]=N.attrMap[ab]}if(ac[2]==="~="){ac[4]=" "+ac[4]+" "}return ac},PSEUDO:function(ac,Z,aa,Y,ad){if(ac[1]==="not"){if(ac[3].match(W).length>1||/^\w/.test(ac[3])){ac[3]=K(ac[3],null,null,Z)}else{var ab=K.filter(ac[3],Z,aa,true^ad);
if(!aa){Y.push.apply(Y,ab)}return false}}else{if(N.match.POS.test(ac[0])||N.match.CHILD.test(ac[0])){return true}}return ac},POS:function(Y){Y.unshift(true);return Y}},filters:{enabled:function(Y){return Y.disabled===false&&Y.type!=="hidden"},disabled:function(Y){return Y.disabled===true},checked:function(Y){return Y.checked===true
},selected:function(Y){Y.parentNode.selectedIndex;return Y.selected===true},parent:function(Y){return !!Y.firstChild},empty:function(Y){return !Y.firstChild},has:function(aa,Z,Y){return !!K(Y[3],aa).length},header:function(Y){return/h\d/i.test(Y.nodeName)},text:function(Y){return"text"===Y.type},radio:function(Y){return"radio"===Y.type
},checkbox:function(Y){return"checkbox"===Y.type},file:function(Y){return"file"===Y.type},password:function(Y){return"password"===Y.type},submit:function(Y){return"submit"===Y.type},image:function(Y){return"image"===Y.type},reset:function(Y){return"reset"===Y.type},button:function(Y){return"button"===Y.type||Y.nodeName.toUpperCase()==="BUTTON"
},input:function(Y){return/input|select|textarea|button/i.test(Y.nodeName)}},setFilters:{first:function(Z,Y){return Y===0},last:function(aa,Z,Y,ab){return Z===ab.length-1},even:function(Z,Y){return Y%2===0},odd:function(Z,Y){return Y%2===1},lt:function(aa,Z,Y){return Z<Y[3]-0},gt:function(aa,Z,Y){return Z>Y[3]-0
},nth:function(aa,Z,Y){return Y[3]-0==Z},eq:function(aa,Z,Y){return Y[3]-0==Z}},filter:{PSEUDO:function(ae,aa,ab,af){var Z=aa[1],ac=N.filters[Z];if(ac){return ac(ae,ab,aa,af)}else{if(Z==="contains"){return(ae.textContent||ae.innerText||"").indexOf(aa[3])>=0}else{if(Z==="not"){var ad=aa[3];for(var ab=0,Y=ad.length;
ab<Y;ab++){if(ad[ab]===ae){return false}}return true}}}},CHILD:function(Y,ab){var ae=ab[1],Z=Y;switch(ae){case"only":case"first":while(Z=Z.previousSibling){if(Z.nodeType===1){return false}}if(ae=="first"){return true}Z=Y;case"last":while(Z=Z.nextSibling){if(Z.nodeType===1){return false}}return true;case"nth":var aa=ab[2],ah=ab[3];
if(aa==1&&ah==0){return true}var ad=ab[0],ag=Y.parentNode;if(ag&&(ag.sizcache!==ad||!Y.nodeIndex)){var ac=0;for(Z=ag.firstChild;Z;Z=Z.nextSibling){if(Z.nodeType===1){Z.nodeIndex=++ac}}ag.sizcache=ad}var af=Y.nodeIndex-ah;if(aa==0){return af==0}else{return(af%aa==0&&af/aa>=0)}}},ID:function(Z,Y){return Z.nodeType===1&&Z.getAttribute("id")===Y
},TAG:function(Z,Y){return(Y==="*"&&Z.nodeType===1)||Z.nodeName===Y},CLASS:function(Z,Y){return(" "+(Z.className||Z.getAttribute("class"))+" ").indexOf(Y)>-1},ATTR:function(ad,ab){var aa=ab[1],Y=N.attrHandle[aa]?N.attrHandle[aa](ad):ad[aa]!=null?ad[aa]:ad.getAttribute(aa),ae=Y+"",ac=ab[2],Z=ab[4];return Y==null?ac==="!=":ac==="="?ae===Z:ac==="*="?ae.indexOf(Z)>=0:ac==="~="?(" "+ae+" ").indexOf(Z)>=0:!Z?ae&&Y!==false:ac==="!="?ae!=Z:ac==="^="?ae.indexOf(Z)===0:ac==="$="?ae.substr(ae.length-Z.length)===Z:ac==="|="?ae===Z||ae.substr(0,Z.length+1)===Z+"-":false
},POS:function(ac,Z,aa,ad){var Y=Z[2],ab=N.setFilters[Y];if(ab){return ab(ac,aa,Z,ad)}}}};var R=N.match.POS;for(var T in N.match){N.match[T]=RegExp(N.match[T].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var J=function(Z,Y){Z=Array.prototype.slice.call(Z);if(Y){Y.push.apply(Y,Z);return Y}return Z};try{Array.prototype.slice.call(document.documentElement.childNodes)
}catch(S){J=function(ac,ab){var Z=ab||[];if(M.call(ac)==="[object Array]"){Array.prototype.push.apply(Z,ac)}else{if(typeof ac.length==="number"){for(var aa=0,Y=ac.length;aa<Y;aa++){Z.push(ac[aa])}}else{for(var aa=0;ac[aa];aa++){Z.push(ac[aa])}}}return Z}}var L;if(document.documentElement.compareDocumentPosition){L=function(Z,Y){var aa=Z.compareDocumentPosition(Y)&4?-1:Z===Y?0:1;
if(aa===0){hasDuplicate=true}return aa}}else{if("sourceIndex" in document.documentElement){L=function(Z,Y){var aa=Z.sourceIndex-Y.sourceIndex;if(aa===0){hasDuplicate=true}return aa}}else{if(document.createRange){L=function(ab,Z){var aa=ab.ownerDocument.createRange(),Y=Z.ownerDocument.createRange();aa.selectNode(ab);
aa.collapse(true);Y.selectNode(Z);Y.collapse(true);var ac=aa.compareBoundaryPoints(Range.START_TO_END,Y);if(ac===0){hasDuplicate=true}return ac}}}}(function(){var Z=document.createElement("form"),aa="script"+(new Date).getTime();Z.innerHTML="<input name='"+aa+"'/>";var Y=document.documentElement;Y.insertBefore(Z,Y.firstChild);
if(!!document.getElementById(aa)){N.find.ID=function(ac,ad,ae){if(typeof ad.getElementById!=="undefined"&&!ae){var ab=ad.getElementById(ac[1]);return ab?ab.id===ac[1]||typeof ab.getAttributeNode!=="undefined"&&ab.getAttributeNode("id").nodeValue===ac[1]?[ab]:h:[]}};N.filter.ID=function(ad,ab){var ac=typeof ad.getAttributeNode!=="undefined"&&ad.getAttributeNode("id");
return ad.nodeType===1&&ac&&ac.nodeValue===ab}}Y.removeChild(Z)})();(function(){var Y=document.createElement("div");Y.appendChild(document.createComment(""));if(Y.getElementsByTagName("*").length>0){N.find.TAG=function(Z,ad){var ac=ad.getElementsByTagName(Z[1]);if(Z[1]==="*"){var ab=[];for(var aa=0;ac[aa];
aa++){if(ac[aa].nodeType===1){ab.push(ac[aa])}}ac=ab}return ac}}Y.innerHTML="<a href='#'></a>";if(Y.firstChild&&typeof Y.firstChild.getAttribute!=="undefined"&&Y.firstChild.getAttribute("href")!=="#"){N.attrHandle.href=function(Z){return Z.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var Y=K,Z=document.createElement("div");
Z.innerHTML="<p class='TEST'></p>";if(Z.querySelectorAll&&Z.querySelectorAll(".TEST").length===0){return}K=function(ad,ac,aa,ab){ac=ac||document;if(!ab&&ac.nodeType===9&&!V(ac)){try{return J(ac.querySelectorAll(ad),aa)}catch(ae){}}return Y(ad,ac,aa,ab)};K.find=Y.find;K.filter=Y.filter;K.selectors=Y.selectors;
K.matches=Y.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var Y=document.createElement("div");Y.innerHTML="<div class='test e'></div><div class='test'></div>";if(Y.getElementsByClassName("e").length===0){return}Y.lastChild.className="e";if(Y.getElementsByClassName("e").length===1){return
}N.order.splice(1,0,"CLASS");N.find.CLASS=function(Z,aa,ab){if(typeof aa.getElementsByClassName!=="undefined"&&!ab){return aa.getElementsByClassName(Z[1])}}})()}function U(Z,ae,ad,ai,af,ah){var ag=Z=="previousSibling"&&!ah;for(var ab=0,aa=ai.length;ab<aa;ab++){var Y=ai[ab];if(Y){if(ag&&Y.nodeType===1){Y.sizcache=ad;
Y.sizset=ab}Y=Y[Z];var ac=false;while(Y){if(Y.sizcache===ad){ac=ai[Y.sizset];break}if(Y.nodeType===1&&!ah){Y.sizcache=ad;Y.sizset=ab}if(Y.nodeName===ae){ac=Y;break}Y=Y[Z]}ai[ab]=ac}}}function X(Z,ae,ad,ai,af,ah){var ag=Z=="previousSibling"&&!ah;for(var ab=0,aa=ai.length;ab<aa;ab++){var Y=ai[ab];if(Y){if(ag&&Y.nodeType===1){Y.sizcache=ad;
Y.sizset=ab}Y=Y[Z];var ac=false;while(Y){if(Y.sizcache===ad){ac=ai[Y.sizset];break}if(Y.nodeType===1){if(!ah){Y.sizcache=ad;Y.sizset=ab}if(typeof ae!=="string"){if(Y===ae){ac=true;break}}else{if(K.filter(ae,[Y]).length>0){ac=Y;break}}}Y=Y[Z]}ai[ab]=ac}}}var P=document.compareDocumentPosition?function(Z,Y){return Z.compareDocumentPosition(Y)&16
}:function(Z,Y){return Z!==Y&&(Z.contains?Z.contains(Y):true)};var V=function(Y){return Y.nodeType===9&&Y.documentElement.nodeName!=="HTML"||!!Y.ownerDocument&&V(Y.ownerDocument)};var O=function(Y,af){var ab=[],ac="",ad,aa=af.nodeType?[af]:af;while((ad=N.match.PSEUDO.exec(Y))){ac+=ad[0];Y=Y.replace(N.match.PSEUDO,"")
}Y=N.relative[Y]?Y+"*":Y;for(var ae=0,Z=aa.length;ae<Z;ae++){K(Y,aa[ae],ab)}return K.filter(ac,ab)};t.find=K;t.filter=K.filter;t.expr=K.selectors;t.expr[":"]=t.expr.filters;K.selectors.filters.hidden=function(Y){return Y.offsetWidth===0||Y.offsetHeight===0};K.selectors.filters.visible=function(Y){return Y.offsetWidth>0||Y.offsetHeight>0
};K.selectors.filters.animated=function(Y){return t.grep(t.timers,function(Z){return Y===Z.elem}).length};t.multiFilter=function(aa,Y,Z){if(Z){aa=":not("+aa+")"}return K.matches(aa,Y)};t.dir=function(aa,Z){var Y=[],ab=aa[Z];while(ab&&ab!=document){if(ab.nodeType==1){Y.push(ab)}ab=ab[Z]}return Y};t.nth=function(ac,Y,aa,ab){Y=Y||1;
var Z=0;for(;ac;ac=ac[aa]){if(ac.nodeType==1&&++Z==Y){break}}return ac};t.sibling=function(aa,Z){var Y=[];for(;aa;aa=aa.nextSibling){if(aa.nodeType==1&&aa!=Z){Y.push(aa)}}return Y};return;o.Sizzle=K})();t.event={add:function(N,K,M,P){if(N.nodeType==3||N.nodeType==8){return}if(N.setInterval&&N!=o){N=o
}if(!M.guid){M.guid=this.guid++}if(P!==h){var L=M;M=this.proxy(L);M.data=P}var J=t.data(N,"events")||t.data(N,"events",{}),O=t.data(N,"handle")||t.data(N,"handle",function(){return typeof t!=="undefined"&&!t.event.triggered?t.event.handle.apply(arguments.callee.elem,arguments):h});O.elem=N;t.each(K.split(/\s+/),function(R,S){var T=S.split(".");
S=T.shift();M.type=T.slice().sort().join(".");var Q=J[S];if(t.event.specialAll[S]){t.event.specialAll[S].setup.call(N,P,T)}if(!Q){Q=J[S]={};if(!t.event.special[S]||t.event.special[S].setup.call(N,P,T)===false){if(N.addEventListener){N.addEventListener(S,O,false)}else{if(N.attachEvent){N.attachEvent("on"+S,O)
}}}}Q[M.guid]=M;t.event.global[S]=true});N=null},guid:1,global:{},remove:function(P,M,O){if(P.nodeType==3||P.nodeType==8){return}var L=t.data(P,"events"),K,J;if(L){if(M===h||(typeof M==="string"&&M.charAt(0)==".")){for(var N in L){this.remove(P,N+(M||""))}}else{if(M.type){O=M.handler;M=M.type}t.each(M.split(/\s+/),function(R,T){var V=T.split(".");
T=V.shift();var S=RegExp("(^|\\.)"+V.slice().sort().join(".*\\.")+"(\\.|$)");if(L[T]){if(O){delete L[T][O.guid]}else{for(var U in L[T]){if(S.test(L[T][U].type)){delete L[T][U]}}}if(t.event.specialAll[T]){t.event.specialAll[T].teardown.call(P,V)}for(K in L[T]){break}if(!K){if(!t.event.special[T]||t.event.special[T].teardown.call(P,V)===false){if(P.removeEventListener){P.removeEventListener(T,t.data(P,"handle"),false)
}else{if(P.detachEvent){P.detachEvent("on"+T,t.data(P,"handle"))}}}K=null;delete L[T]}}})}for(K in L){break}if(!K){var Q=t.data(P,"handle");if(Q){Q.elem=null}t.removeData(P,"events");t.removeData(P,"handle")}}},trigger:function(N,P,M,J){var L=N.type||N;if(!J){N=typeof N==="object"?N[k]?N:t.extend(t.Event(L),N):t.Event(L);
if(L.indexOf("!")>=0){N.type=L=L.slice(0,-1);N.exclusive=true}if(!M){N.stopPropagation();if(this.global[L]){t.each(t.cache,function(){if(this.events&&this.events[L]){t.event.trigger(N,P,this.handle.elem)}})}}if(!M||M.nodeType==3||M.nodeType==8){return h}N.result=h;N.target=M;P=t.makeArray(P);P.unshift(N)
}N.currentTarget=M;var O=t.data(M,"handle");if(O){O.apply(M,P)}if((!M[L]||(t.nodeName(M,"a")&&L=="click"))&&M["on"+L]&&M["on"+L].apply(M,P)===false){N.result=false}if(!J&&M[L]&&!N.isDefaultPrevented()&&!(t.nodeName(M,"a")&&L=="click")){this.triggered=true;try{M[L]()}catch(Q){}}this.triggered=false;if(!N.isPropagationStopped()){var K=M.parentNode||M.ownerDocument;
if(K){t.event.trigger(N,P,K,true)}}},handle:function(P){var O,J;P=arguments[0]=t.event.fix(P||o.event);P.currentTarget=this;var Q=P.type.split(".");P.type=Q.shift();O=!Q.length&&!P.exclusive;var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");J=(t.data(this,"events")||{})[P.type];for(var L in J){var M=J[L];
if(O||N.test(M.type)){P.handler=M;P.data=M.data;var K=M.apply(this,arguments);if(K!==h){P.result=K;if(K===false){P.preventDefault();P.stopPropagation()}}if(P.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(M){if(M[k]){return M
}var K=M;M=t.Event(K);for(var L=this.props.length,O;L;){O=this.props[--L];M[O]=K[O]}if(!M.target){M.target=M.srcElement||document}if(M.target.nodeType==3){M.target=M.target.parentNode}if(!M.relatedTarget&&M.fromElement){M.relatedTarget=M.fromElement==M.target?M.toElement:M.fromElement}if(M.pageX==null&&M.clientX!=null){var N=document.documentElement,J=document.body;
M.pageX=M.clientX+(N&&N.scrollLeft||J&&J.scrollLeft||0)-(N.clientLeft||0);M.pageY=M.clientY+(N&&N.scrollTop||J&&J.scrollTop||0)-(N.clientTop||0)}if(!M.which&&((M.charCode||M.charCode===0)?M.charCode:M.keyCode)){M.which=M.charCode||M.keyCode}if(!M.metaKey&&M.ctrlKey){M.metaKey=M.ctrlKey}if(!M.which&&M.button){M.which=(M.button&1?1:(M.button&2?3:(M.button&4?2:0)))
}return M},proxy:function(K,J){J=J||function(){return K.apply(this,arguments)};J.guid=K.guid=K.guid||J.guid||this.guid++;return J},special:{ready:{setup:G,teardown:function(){}}},specialAll:{live:{setup:function(J,K){t.event.add(this,K[0],c)},teardown:function(L){if(L.length){var J=0,K=RegExp("(^|\\.)"+L[0]+"(\\.|$)");
t.each((t.data(this,"events").live||{}),function(){if(K.test(this.type)){J++}});if(J<1){t.event.remove(this,L[0],c)}}}}}};t.Event=function(J){if(!this.preventDefault){return new t.Event(J)}if(J&&J.type){this.originalEvent=J;this.type=J.type}else{this.type=J}this.timeStamp=f();this[k]=true};function n(){return false
}function z(){return true}t.Event.prototype={preventDefault:function(){this.isDefaultPrevented=z;var J=this.originalEvent;if(!J){return}if(J.preventDefault){J.preventDefault()}J.returnValue=false},stopPropagation:function(){this.isPropagationStopped=z;var J=this.originalEvent;if(!J){return}if(J.stopPropagation){J.stopPropagation()
}J.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=z;this.stopPropagation()},isDefaultPrevented:n,isPropagationStopped:n,isImmediatePropagationStopped:n};var a=function(K){var J=K.relatedTarget;while(J&&J!=this){try{J=J.parentNode}catch(L){J=this}}if(J!=this){K.type=K.data;
t.event.handle.apply(this,arguments)}};t.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(K,J){t.event.special[J]={setup:function(){t.event.add(this,K,a,J)},teardown:function(){t.event.remove(this,K,a)}}});t.fn.extend({bind:function(K,L,J){return K=="unload"?this.one(K,L,J):this.each(function(){t.event.add(this,K,J||L,J&&L)
})},one:function(L,M,K){var J=t.event.proxy(K||M,function(N){t(this).unbind(N,J);return(K||M).apply(this,arguments)});return this.each(function(){t.event.add(this,L,J,K&&M)})},unbind:function(K,J){return this.each(function(){t.event.remove(this,K,J)})},trigger:function(J,K){return this.each(function(){t.event.trigger(J,K,this)
})},triggerHandler:function(J,L){if(this[0]){var K=t.Event(J);K.preventDefault();K.stopPropagation();t.event.trigger(K,L,this[0]);return K.result}},toggle:function(L){var J=arguments,K=1;while(K<J.length){t.event.proxy(L,J[K++])}return this.click(t.event.proxy(L,function(M){this.lastToggle=(this.lastToggle||0)%K;
M.preventDefault();return J[this.lastToggle++].apply(this,arguments)||false}))},hover:function(J,K){return this.mouseenter(J).mouseleave(K)},ready:function(J){G();if(t.isReady){J.call(document,t)}else{t.readyList.push(J)}return this},live:function(L,K){var J=t.event.proxy(K);J.guid+=this.selector+L;t(document).bind(l(L,this.selector),this.selector,J);
return this},die:function(K,J){t(document).unbind(l(K,this.selector),J?{guid:J.guid+this.selector+K}:null);return this}});function c(M){var J=RegExp("(^|\\.)"+M.type+"(\\.|$)"),L=true,K=[];t.each(t.data(this,"events").live||[],function(N,O){if(J.test(O.type)){var P=t(M.target).closest(O.data)[0];if(P){K.push({elem:P,fn:O})
}}});K.sort(function(O,N){return t.data(O.elem,"closest")-t.data(N.elem,"closest")});t.each(K,function(){if(this.fn.call(this.elem,M,this.fn.data)===false){return(L=false)}});return L}function l(K,J){return["live",K,J.replace(/\./g,"`").replace(/ /g,"|")].join(".")}t.extend({isReady:false,readyList:[],ready:function(){if(!t.isReady){t.isReady=true;
if(t.readyList){t.each(t.readyList,function(){this.call(document,t)});t.readyList=null}t(document).triggerHandler("ready")}}});var C=false;function G(){if(C){return}C=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);
t.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);t.ready()}});if(document.documentElement.doScroll&&o==o.top){(function(){if(t.isReady){return}try{document.documentElement.doScroll("left")
}catch(J){setTimeout(arguments.callee,0);return}t.ready()})()}}}t.event.add(o,"load",t.ready)}t.each(("blur,focus,load,resize,scroll,unload,click,dblclick,mousedown,mouseup,mousemove,mouseover,mouseout,mouseenter,mouseleave,change,select,submit,keydown,keypress,keyup,error").split(","),function(K,J){t.fn[J]=function(L){return L?this.bind(J,L):this.trigger(J)
}});t(o).bind("unload",function(){for(var J in t.cache){if(J!=1&&t.cache[J].handle){t.event.remove(t.cache[J].handle.elem)}}});(function(){t.support={};var K=document.documentElement,L=document.createElement("script"),P=document.createElement("div"),O="script"+(new Date).getTime();P.style.display="none";
P.innerHTML='   <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';var M=P.getElementsByTagName("*"),J=P.getElementsByTagName("a")[0];if(!M||!M.length||!J){return}t.support={leadingWhitespace:P.firstChild.nodeType==3,tbody:!P.getElementsByTagName("tbody").length,objectAll:!!P.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!P.getElementsByTagName("link").length,style:/red/.test(J.getAttribute("style")),hrefNormalized:J.getAttribute("href")==="/a",opacity:J.style.opacity==="0.5",cssFloat:!!J.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};
L.type="text/javascript";try{L.appendChild(document.createTextNode("window."+O+"=1;"))}catch(N){}K.insertBefore(L,K.firstChild);if(o[O]){t.support.scriptEval=true;delete o[O]}K.removeChild(L);if(P.attachEvent&&P.fireEvent){P.attachEvent("onclick",function(){t.support.noCloneEvent=false;P.detachEvent("onclick",arguments.callee)
});P.cloneNode(true).fireEvent("onclick")}t(function(){var Q=document.createElement("div");Q.style.width=Q.style.paddingLeft="1px";document.body.appendChild(Q);t.boxModel=t.support.boxModel=Q.offsetWidth===2;document.body.removeChild(Q).style.display="none"})})();var B=t.support.cssFloat?"cssFloat":"styleFloat";
t.props={"for":"htmlFor","class":"className","float":B,cssFloat:B,styleFloat:B,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};t.fn.extend({_load:t.fn.load,load:function(L,O,P){if(typeof L!=="string"){return this._load(L)}var N=L.indexOf(" ");
if(N>=0){var J=L.slice(N,L.length);L=L.slice(0,N)}var M="GET";if(O){if(t.isFunction(O)){P=O;O=null}else{if(typeof O==="object"){O=t.param(O);M="POST"}}}var K=this;t.ajax({url:L,type:M,dataType:"html",data:O,complete:function(R,Q){if(Q=="success"||Q=="notmodified"){K.html(J?t("<div/>").append(R.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(J):R.responseText)
}if(P){K.each(P,[R.responseText,Q,R])}}});return this},serialize:function(){return t.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?t.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))
}).map(function(J,K){var L=t(this).val();return L==null?null:t.isArray(L)?t.map(L,function(N,M){return{name:K.name,value:N}}):{name:K.name,value:L}}).get()}});t.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(J,K){t.fn[K]=function(L){return this.bind(K,L)}});
var w=f();t.extend({get:function(J,L,M,K){if(t.isFunction(L)){M=L;L=null}return t.ajax({type:"GET",url:J,data:L,success:M,dataType:K})},getScript:function(J,K){return t.get(J,null,K,"script")},getJSON:function(J,K,L){return t.get(J,K,L,"json")},post:function(J,L,M,K){if(t.isFunction(L)){M=L;L={}}return t.ajax({type:"POST",url:J,data:L,success:M,dataType:K})
},ajaxSetup:function(J){t.extend(t.ajaxSettings,J)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return o.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(R){R=t.extend(true,R,t.extend(true,{},t.ajaxSettings,R));
var ab,K=/=\?(&|$)/g,W,aa,L=R.type.toUpperCase();if(R.data&&R.processData&&typeof R.data!=="string"){R.data=t.param(R.data)}if(R.dataType=="jsonp"){if(L=="GET"){if(!R.url.match(K)){R.url+=(R.url.match(/\?/)?"&":"?")+(R.jsonp||"callback")+"=?"}}else{if(!R.data||!R.data.match(K)){R.data=(R.data?R.data+"&":"")+(R.jsonp||"callback")+"=?"
}}R.dataType="json"}if(R.dataType=="json"&&(R.data&&R.data.match(K)||R.url.match(K))){ab="jsonp"+w++;if(R.data){R.data=(R.data+"").replace(K,"="+ab+"$1")}R.url=R.url.replace(K,"="+ab+"$1");R.dataType="script";o[ab]=function(ac){aa=ac;N();Q();o[ab]=h;try{delete o[ab]}catch(ad){}if(M){M.removeChild(Y)}}
}if(R.dataType=="script"&&R.cache==null){R.cache=false}if(R.cache===false&&L=="GET"){var J=f();var Z=R.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+J+"$2");R.url=Z+((Z==R.url)?(R.url.match(/\?/)?"&":"?")+"_="+J:"")}if(R.data&&L=="GET"){R.url+=(R.url.match(/\?/)?"&":"?")+R.data;R.data=null}if(R.global&&!t.active++){t.event.trigger("ajaxStart")
}var V=/^(\w+:)?\/\/([^\/?#]+)/.exec(R.url);if(R.dataType=="script"&&L=="GET"&&V&&(V[1]&&V[1]!=location.protocol||V[2]!=location.host)){var M=document.getElementsByTagName("head")[0];var Y=document.createElement("script");Y.src=R.url;if(R.scriptCharset){Y.charset=R.scriptCharset}if(!ab){var T=false;Y.onload=Y.onreadystatechange=function(){if(!T&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){T=true;
N();Q();Y.onload=Y.onreadystatechange=null;M.removeChild(Y)}}}M.appendChild(Y);return h}var P=false;var O=R.xhr();if(R.username){O.open(L,R.url,R.async,R.username,R.password)}else{O.open(L,R.url,R.async)}try{if(R.data){O.setRequestHeader("Content-Type",R.contentType)}if(R.ifModified){O.setRequestHeader("If-Modified-Since",t.lastModified[R.url]||"Thu, 01 Jan 1970 00:00:00 GMT")
}O.setRequestHeader("X-Requested-With","XMLHttpRequest");O.setRequestHeader("Accept",R.dataType&&R.accepts[R.dataType]?R.accepts[R.dataType]+", */*":R.accepts._default)}catch(X){}if(R.beforeSend&&R.beforeSend(O,R)===false){if(R.global&&!--t.active){t.event.trigger("ajaxStop")}O.abort();return false}if(R.global){t.event.trigger("ajaxSend",[O,R])
}var S=function(ac){if(O.readyState==0){if(U){clearInterval(U);U=null;if(R.global&&!--t.active){t.event.trigger("ajaxStop")}}}else{if(!P&&O&&(O.readyState==4||ac=="timeout")){P=true;if(U){clearInterval(U);U=null}W=ac=="timeout"?"timeout":!t.httpSuccess(O)?"error":R.ifModified&&t.httpNotModified(O,R.url)?"notmodified":"success";
if(W=="success"){try{aa=t.httpData(O,R.dataType,R)}catch(ae){W="parsererror"}}if(W=="success"){var ad;try{ad=O.getResponseHeader("Last-Modified")}catch(ae){}if(R.ifModified&&ad){t.lastModified[R.url]=ad}if(!ab){N()}}else{t.handleError(R,O,W)}Q();if(ac){O.abort()}if(R.async){O=null}}}};if(R.async){var U=setInterval(S,13);
if(R.timeout>0){setTimeout(function(){if(O&&!P){S("timeout")}},R.timeout)}}try{O.send(R.data)}catch(X){t.handleError(R,O,null,X)}if(!R.async){S()}function N(){if(R.success){R.success(aa,W)}if(R.global){t.event.trigger("ajaxSuccess",[O,R])}}function Q(){if(R.complete){R.complete(O,W)}if(R.global){t.event.trigger("ajaxComplete",[O,R])
}if(R.global&&!--t.active){t.event.trigger("ajaxStop")}}return O},handleError:function(K,M,J,L){if(K.error){K.error(M,J,L)}if(K.global){t.event.trigger("ajaxError",[M,K,L])}},active:0,httpSuccess:function(K){try{return !K.status&&location.protocol=="file:"||(K.status>=200&&K.status<300)||K.status==304||K.status==1223
}catch(J){}return false},httpNotModified:function(L,J){try{var M=L.getResponseHeader("Last-Modified");return L.status==304||M==t.lastModified[J]}catch(K){}return false},httpData:function(O,M,L){var K=O.getResponseHeader("content-type"),J=M=="xml"||!M&&K&&K.indexOf("xml")>=0,N=J?O.responseXML:O.responseText;
if(J&&N.documentElement.tagName=="parsererror"){throw"parsererror"}if(L&&L.dataFilter){N=L.dataFilter(N,M)}if(typeof N==="string"){if(M=="script"){t.globalEval(N)}if(M=="json"){N=o["eval"]("("+N+")")}}return N},param:function(J){var L=[];function M(N,O){L[L.length]=encodeURIComponent(N)+"="+encodeURIComponent(O)
}if(t.isArray(J)||J.jquery){t.each(J,function(){M(this.name,this.value)})}else{for(var K in J){if(t.isArray(J[K])){t.each(J[K],function(){M(K,this)})}else{M(K,t.isFunction(J[K])?J[K]():J[K])}}}return L.join("&").replace(/%20/g,"+")}});var q={},r,e=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];
function y(K,J){var L={};t.each(e.concat.apply([],e.slice(0,J)),function(){L[this]=K});return L}t.fn.extend({show:function(O,Q){if(O){return this.animate(y("show",3),O,Q)}else{for(var M=0,K=this.length;M<K;M++){var J=t.data(this[M],"olddisplay");this[M].style.display=J||"";if(t.css(this[M],"display")==="none"){var L=this[M].tagName,P;
if(q[L]){P=q[L]}else{var N=t("<"+L+" />").appendTo("body");P=N.css("display");if(P==="none"){P="block"}N.remove();q[L]=P}t.data(this[M],"olddisplay",P)}}for(var M=0,K=this.length;M<K;M++){this[M].style.display=t.data(this[M],"olddisplay")||""}return this}},hide:function(M,N){if(M){return this.animate(y("hide",3),M,N)
}else{for(var L=0,K=this.length;L<K;L++){var J=t.data(this[L],"olddisplay");if(!J&&J!=="none"){t.data(this[L],"olddisplay",t.css(this[L],"display"))}}for(var L=0,K=this.length;L<K;L++){this[L].style.display="none"}return this}},_toggle:t.fn.toggle,toggle:function(L,K){var J=typeof L==="boolean";return t.isFunction(L)&&t.isFunction(K)?this._toggle.apply(this,arguments):L==null||J?this.each(function(){var M=J?L:t(this).is(":hidden");
t(this)[M?"show":"hide"]()}):this.animate(y("toggle",3),L,K)},fadeTo:function(J,L,K){return this.animate({opacity:L},J,K)},animate:function(N,K,M,L){var J=t.speed(K,M,L);return this[J.queue===false?"each":"queue"](function(){var P=t.extend({},J),R,Q=this.nodeType==1&&t(this).is(":hidden"),O=this;for(R in N){if(N[R]=="hide"&&Q||N[R]=="show"&&!Q){return P.complete.call(this)
}if((R=="height"||R=="width")&&this.style){P.display=t.css(this,"display");P.overflow=this.style.overflow}}if(P.overflow!=null){this.style.overflow="hidden"}P.curAnim=t.extend({},N);t.each(N,function(T,X){var W=new t.fx(O,P,T);if(/toggle|show|hide/.test(X)){W[X=="toggle"?Q?"show":"hide":X](N)}else{var V=X.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),Y=W.cur(true)||0;
if(V){var S=parseFloat(V[2]),U=V[3]||"px";if(U!="px"){O.style[T]=(S||1)+U;Y=((S||1)/W.cur(true))*Y;O.style[T]=Y+U}if(V[1]){S=((V[1]=="-="?-1:1)*S)+Y}W.custom(Y,S,U)}else{W.custom(Y,X,"")}}});return true})},stop:function(K,J){var L=t.timers;if(K){this.queue([])}this.each(function(){for(var M=L.length-1;
M>=0;M--){if(L[M].elem==this){if(J){L[M](true)}L.splice(M,1)}}});if(!J){this.dequeue()}return this}});t.each({slideDown:y("show",1),slideUp:y("hide",1),slideToggle:y("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(J,K){t.fn[J]=function(L,M){return this.animate(K,L,M)}});t.extend({speed:function(L,M,K){var J=typeof L==="object"?L:{complete:K||!K&&M||t.isFunction(L)&&L,duration:L,easing:K&&M||M&&!t.isFunction(M)&&M};
J.duration=t.fx.off?0:typeof J.duration==="number"?J.duration:t.fx.speeds[J.duration]||t.fx.speeds._default;J.old=J.complete;J.complete=function(){if(J.queue!==false){t(this).dequeue()}if(t.isFunction(J.old)){J.old.call(this)}};return J},easing:{linear:function(L,M,J,K){return J+K*L},swing:function(L,M,J,K){return((-Math.cos(L*Math.PI)/2)+0.5)*K+J
}},timers:[],fx:function(K,J,L){this.options=J;this.elem=K;this.prop=L;if(!J.orig){J.orig={}}}});t.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(t.fx.step[this.prop]||t.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"
}},cur:function(K){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var J=parseFloat(t.css(this.elem,this.prop,K));return J&&J>-10000?J:parseFloat(t.curCSS(this.elem,this.prop))||0},custom:function(N,M,L){this.startTime=f();this.start=N;
this.end=M;this.unit=L||this.unit||"px";this.now=this.start;this.pos=this.state=0;var J=this;function K(O){return J.step(O)}K.elem=this.elem;if(K()&&t.timers.push(K)&&!r){r=setInterval(function(){var P=t.timers;for(var O=0;O<P.length;O++){if(!P[O]()){P.splice(O--,1)}}if(!P.length){clearInterval(r);r=h
}},13)}},show:function(){this.options.orig[this.prop]=t.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());t(this.elem).show()},hide:function(){this.options.orig[this.prop]=t.attr(this.elem.style,this.prop);this.options.hide=true;
this.custom(this.cur(),0)},step:function(M){var L=f();if(M||L>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var J=true;for(var K in this.options.curAnim){if(this.options.curAnim[K]!==true){J=false}}if(J){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;
this.elem.style.display=this.options.display;if(t.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){t(this.elem).hide()}if(this.options.hide||this.options.show){for(var N in this.options.curAnim){t.attr(this.elem.style,N,this.options.orig[N])}}this.options.complete.call(this.elem)
}return false}else{var O=L-this.startTime;this.state=O/this.options.duration;this.pos=t.easing[this.options.easing||(t.easing.swing?"swing":"linear")](this.state,O,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};t.extend(t.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(J){t.attr(J.elem.style,"opacity",J.now)
},_default:function(J){if(J.elem.style&&J.elem.style[J.prop]!=null){J.elem.style[J.prop]=J.now+J.unit}else{J.elem[J.prop]=J.now}}}});if(document.documentElement.getBoundingClientRect){t.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return t.offset.bodyOffset(this[0])
}var L=this[0].getBoundingClientRect(),O=this[0].ownerDocument,K=O.body,J=O.documentElement,Q=J.clientTop||K.clientTop||0,P=J.clientLeft||K.clientLeft||0,N=L.top+(self.pageYOffset||t.boxModel&&J.scrollTop||K.scrollTop)-Q,M=L.left+(self.pageXOffset||t.boxModel&&J.scrollLeft||K.scrollLeft)-P;return{top:N,left:M}
}}else{t.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return t.offset.bodyOffset(this[0])}t.offset.initialized||t.offset.initialize();var O=this[0],L=O.offsetParent,K=O,T=O.ownerDocument,R,M=T.documentElement,P=T.body,Q=T.defaultView,J=Q.getComputedStyle(O,null),S=O.offsetTop,N=O.offsetLeft;
while((O=O.parentNode)&&O!==P&&O!==M){R=Q.getComputedStyle(O,null);S-=O.scrollTop,N-=O.scrollLeft;if(O===L){S+=O.offsetTop,N+=O.offsetLeft;if(t.offset.doesNotAddBorder&&!(t.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(O.tagName))){S+=parseInt(R.borderTopWidth,10)||0,N+=parseInt(R.borderLeftWidth,10)||0
}K=L,L=O.offsetParent}if(t.offset.subtractsBorderForOverflowNotVisible&&R.overflow!=="visible"){S+=parseInt(R.borderTopWidth,10)||0,N+=parseInt(R.borderLeftWidth,10)||0}J=R}if(J.position==="relative"||J.position==="static"){S+=P.offsetTop,N+=P.offsetLeft}if(J.position==="fixed"){S+=Math.max(M.scrollTop,P.scrollTop),N+=Math.max(M.scrollLeft,P.scrollLeft)
}return{top:S,left:N}}}t.offset={initialize:function(){if(this.initialized){return}var Q=document.body,K=document.createElement("div"),M,L,S,N,R,J,O=Q.style.marginTop,P='<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>';
R={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(J in R){K.style[J]=R[J]}K.innerHTML=P;Q.insertBefore(K,Q.firstChild);M=K.firstChild,L=M.firstChild,N=M.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(L.offsetTop!==5);this.doesAddBorderForTableAndCells=(N.offsetTop===5);
M.style.overflow="hidden",M.style.position="relative";this.subtractsBorderForOverflowNotVisible=(L.offsetTop===-5);Q.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(Q.offsetTop===0);Q.style.marginTop=O;Q.removeChild(K);this.initialized=true},bodyOffset:function(J){t.offset.initialized||t.offset.initialize();
var L=J.offsetTop,K=J.offsetLeft;if(t.offset.doesNotIncludeMarginInBodyOffset){L+=parseInt(t.curCSS(J,"marginTop",true),10)||0,K+=parseInt(t.curCSS(J,"marginLeft",true),10)||0}return{top:L,left:K}}};t.fn.extend({position:function(){var N=0,M=0,K;if(this[0]){var L=this.offsetParent(),O=this.offset(),J=/^body|html$/i.test(L[0].tagName)?{top:0,left:0}:L.offset();
O.top-=m(this,"marginTop");O.left-=m(this,"marginLeft");J.top+=m(L,"borderTopWidth");J.left+=m(L,"borderLeftWidth");K={top:O.top-J.top,left:O.left-J.left}}return K},offsetParent:function(){var J=this[0].offsetParent||document.body;while(J&&(!/^body|html$/i.test(J.tagName)&&t.css(J,"position")=="static")){J=J.offsetParent
}return t(J)}});t.each(["Left","Top"],function(K,J){var L="scroll"+J;t.fn[L]=function(M){if(!this[0]){return null}return M!==h?this.each(function(){this==o||this==document?o.scrollTo(!K?M:t(o).scrollLeft(),K?M:t(o).scrollTop()):this[L]=M}):this[0]==o||this[0]==document?self[K?"pageYOffset":"pageXOffset"]||t.boxModel&&document.documentElement[L]||document.body[L]:this[0][L]
}});t.each(["Height","Width"],function(N,L){var J=N?"Left":"Top",M=N?"Right":"Bottom",K=L.toLowerCase();t.fn["inner"+L]=function(){return this[0]?t.css(this[0],K,false,"padding"):null};t.fn["outer"+L]=function(P){return this[0]?t.css(this[0],K,false,P?"margin":"border"):null};var O=L.toLowerCase();t.fn[O]=function(P){return this[0]==o?document.compatMode=="CSS1Compat"&&document.documentElement["client"+L]||document.body["client"+L]:this[0]==document?Math.max(document.documentElement["client"+L],document.body["scroll"+L],document.documentElement["scroll"+L],document.body["offset"+L],document.documentElement["offset"+L]):P===h?(this.length?t.css(this[0],O):null):this.css(O,typeof P==="string"?P:P+"px")
}})})();(function(a){a("html").addClass("stylish-select");Array.prototype.indexOf=function(c,e){for(var b=(e||0);b<this.length;b++){if(this[b]==c){return b}}};a.fn.extend({getSetSSValue:function(b){if(b){a(this).val(b).change();return this}else{return a(this).find(":selected").val()}},resetSS:function(){var b=a(this).data("ssOpts");
$this=a(this);$this.next().remove();$this.unbind().sSelect(b)}});a.fn.sSelect=function(b){return this.each(function(){var l={defaultText:"Please select",animationSpeed:0,ddMaxHeight:""};var o=a.extend(l,b),f=a(this),m=a('<div class="selectedTxt"></div>'),w=a('<div class="newListSelected" tabindex="0"></div>'),E=a('<ul class="newList"></ul>'),y=-1,e=-1,q=[],B=false,A=false,C;
a(this).data("ssOpts",b);w.insertAfter(f);m.prependTo(w);E.appendTo(w);f.hide();if(f.children("optgroup").length==0){f.children().each(function(G){var H=a(this).text();var F=a(this).val();q.push(H.charAt(0).toLowerCase());if(a(this).attr("selected")==true){o.defaultText=H;e=G}E.append(a('<li><a href="JavaScript:void(0);">'+H+"</a></li>").data("key",F))
});C=E.children().children()}else{f.children("optgroup").each(function(){var F=a(this).attr("label"),H=a('<li class="newListOptionTitle">'+F+"</li>");H.appendTo(E);var G=a("<ul></ul>");G.appendTo(H);a(this).children().each(function(){++y;var J=a(this).text();var I=a(this).val();q.push(J.charAt(0).toLowerCase());
if(a(this).attr("selected")==true){o.defaultText=J;e=y}G.append(a('<li><a href="JavaScript:void(0);">'+J+"</a></li>").data("key",I))})});C=E.find("ul li a")}var t=E.height(),r=w.height(),D=C.length;if(e!=-1){k(e,true)}else{m.text(o.defaultText)}function u(){var G=w.offset().top,F=jQuery(window).height(),H=jQuery(window).scrollTop();
if(t>parseInt(o.ddMaxHeight)){t=parseInt(o.ddMaxHeight)}G=G-H;if(G+t>=F){E.css({top:"-"+t+"px",height:t});f.onTop=true}else{E.css({top:r+"px",height:t});f.onTop=false}}u();a(window).resize(function(){u()});a(window).scroll(function(){u()});function x(){w.css("position","relative")}function c(){w.css("position","static")
}m.click(function(F){F.stopPropagation();a(".newList").not(a(this).next()).hide().parent().removeClass("newListSelFocus");E.toggle();C.eq(e).focus()});C.click(function(G){var F=a(G.target);e=C.index(F);A=true;k(e);E.hide()});C.hover(function(G){var F=a(G.target);F.addClass("newListHover")},function(G){var F=a(G.target);
F.removeClass("newListHover")});function k(F,I){C.removeClass("hiLite").eq(F).addClass("hiLite");var H=C.eq(F).text();var G=C.eq(F).parent().data("key");if(I==true){f.val(G);m.text(H);return false}f.val(G);f.change();m.text(H)}f.change(function(F){$targetInput=a(F.target);if(A==true){A=false;return false
}$currentOpt=$targetInput.find(":selected");e=$targetInput.find("option").index($currentOpt);k(e,true)});function v(F){F.onkeydown=function(I){var H;if(I==null){H=event.keyCode}else{H=I.which}A=true;switch(H){case 40:case 39:z();return false;break;case 38:case 37:n();return false;break;case 33:case 36:h();
return false;break;case 34:case 35:g();return false;break;case 13:case 27:E.hide();return false;break}keyPressed=String.fromCharCode(H).toLowerCase();var G=q.indexOf(keyPressed);if(typeof G!="undefined"){++e;e=q.indexOf(keyPressed,e);if(e==-1||e==null||B!=keyPressed){e=q.indexOf(keyPressed)}k(e);B=keyPressed;
return false}}}function z(){if(e<(D-1)){++e;k(e)}}function n(){if(e>0){--e;k(e)}}function h(){e=0;k(e)}function g(){e=D-1;k(e)}w.click(function(){v(this)});w.focus(function(){a(this).addClass("newListSelFocus");v(this)});w.blur(function(){a(this).removeClass("newListSelFocus")});a("body").click(function(){w.removeClass("newListSelFocus");
E.hide()});m.hover(function(G){var F=a(G.target);F.parent().addClass("newListSelHover")},function(G){var F=a(G.target);F.parent().removeClass("newListSelHover")});E.css("left","0").hide()})}})(jQuery);(function(g){g.fn.qtip=function(F,y){var C,x,E,w,B,A,z,D;if(typeof F=="string"){if(typeof g(this).data("qtip")!=="object"){g.fn.qtip.log.error.call(self,1,g.fn.qtip.constants.NO_TOOLTIP_PRESENT,false)
}if(F=="api"){return g(this).data("qtip").interfaces[g(this).data("qtip").current]}else{if(F=="interfaces"){return g(this).data("qtip").interfaces}}}else{if(!F){F={}}if(typeof F.content!=="object"||(F.content.jquery&&F.content.length>0)){F.content={text:F.content}}if(typeof F.content.title!=="object"){F.content.title={text:F.content.title}
}if(typeof F.position!=="object"){F.position={corner:F.position}}if(typeof F.position.corner!=="object"){F.position.corner={target:F.position.corner,tooltip:F.position.corner}}if(typeof F.show!=="object"){F.show={when:F.show}}if(typeof F.show.when!=="object"){F.show.when={event:F.show.when}}if(typeof F.show.effect!=="object"){F.show.effect={type:F.show.effect}
}if(typeof F.hide!=="object"){F.hide={when:F.hide}}if(typeof F.hide.when!=="object"){F.hide.when={event:F.hide.when}}if(typeof F.hide.effect!=="object"){F.hide.effect={type:F.hide.effect}}if(typeof F.style!=="object"){F.style={name:F.style}}F.style=c(F.style);w=g.extend(true,{},g.fn.qtip.defaults,F);
w.style=a.call({options:w},w.style);w.user=g.extend(true,{},F)}return g(this).each(function(){if(typeof F=="string"){A=F.toLowerCase();E=g(this).qtip("interfaces");if(typeof E=="object"){if(y===true&&A=="destroy"){while(E.length>0){E[E.length-1].destroy()}}else{if(y!==true){E=[g(this).qtip("api")]}for(C=0;
C<E.length;C++){if(A=="destroy"){E[C].destroy()}else{if(E[C].status.rendered===true){if(A=="show"){E[C].show()}else{if(A=="hide"){E[C].hide()}else{if(A=="focus"){E[C].focus()}else{if(A=="disable"){E[C].disable(true)}else{if(A=="enable"){E[C].disable(false)}}}}}}}}}}}else{z=g.extend(true,{},w);z.hide.effect.length=w.hide.effect.length;
z.show.effect.length=w.show.effect.length;if(z.position.container===false){z.position.container=g(document.body)}if(z.position.target===false){z.position.target=g(this)}if(z.show.when.target===false){z.show.when.target=g(this)}if(z.hide.when.target===false){z.hide.when.target=g(this)}x=g.fn.qtip.interfaces.length;
for(C=0;C<x;C++){if(typeof g.fn.qtip.interfaces[C]=="undefined"){x=C;break}}B=new e(g(this),z,x);g.fn.qtip.interfaces[x]=B;if(typeof g(this).data("qtip")=="object"){if(typeof g(this).attr("qtip")==="undefined"){g(this).data("qtip").current=g(this).data("qtip").interfaces.length}g(this).data("qtip").interfaces.push(B)
}else{g(this).data("qtip",{current:0,interfaces:[B]})}if(z.content.prerender===false&&z.show.when.event!==false&&z.show.ready!==true){z.show.when.target.bind(z.show.when.event+".qtip-"+x+"-create",{qtip:x},function(G){D=g.fn.qtip.interfaces[G.data.qtip];D.options.show.when.target.unbind(D.options.show.when.event+".qtip-"+G.data.qtip+"-create");
D.cache.mouse={x:G.pageX,y:G.pageY};t.call(D);D.options.show.when.target.trigger(D.options.show.when.event)})}else{B.cache.mouse={x:z.show.when.target.offset().left,y:z.show.when.target.offset().top};t.call(B)}}})};function e(y,x,z){var w=this;w.id=z;w.options=x;w.status={animated:false,rendered:false,disabled:false,focused:false};
w.elements={target:y.addClass(w.options.style.classes.target),tooltip:null,wrapper:null,content:null,contentWrapper:null,title:null,button:null,tip:null,bgiframe:null};w.cache={mouse:{},position:{},toggle:0};w.timers={};g.extend(w,w.options.api,{show:function(C){var B,D;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"show")
}if(w.elements.tooltip.css("display")!=="none"){return w}w.elements.tooltip.stop(true,false);B=w.beforeShow.call(w,C);if(B===false){return w}function A(){if(w.options.position.type!=="static"){w.focus()}w.onShow.call(w,C);if(g.browser.msie){w.elements.tooltip.get(0).style.removeAttribute("filter")}}w.cache.toggle=1;
if(w.options.position.type!=="static"){w.updatePosition(C,(w.options.show.effect.length>0))}if(typeof w.options.show.solo=="object"){D=g(w.options.show.solo)}else{if(w.options.show.solo===true){D=g("div.qtip").not(w.elements.tooltip)}}if(D){D.each(function(){if(g(this).qtip("api").status.rendered===true){g(this).qtip("api").hide()
}})}if(typeof w.options.show.effect.type=="function"){w.options.show.effect.type.call(w.elements.tooltip,w.options.show.effect.length);w.elements.tooltip.queue(function(){A();g(this).dequeue()})}else{switch(w.options.show.effect.type.toLowerCase()){case"fade":w.elements.tooltip.fadeIn(w.options.show.effect.length,A);
break;case"slide":w.elements.tooltip.slideDown(w.options.show.effect.length,function(){A();if(w.options.position.type!=="static"){w.updatePosition(C,true)}});break;case"grow":w.elements.tooltip.show(w.options.show.effect.length,A);break;default:w.elements.tooltip.show(null,A);break}w.elements.tooltip.addClass(w.options.style.classes.active)
}return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_SHOWN,"show")},hide:function(C){var B;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"hide")}else{if(w.elements.tooltip.css("display")==="none"){return w}}clearTimeout(w.timers.show);w.elements.tooltip.stop(true,false);
B=w.beforeHide.call(w,C);if(B===false){return w}function A(){w.onHide.call(w,C)}w.cache.toggle=0;if(typeof w.options.hide.effect.type=="function"){w.options.hide.effect.type.call(w.elements.tooltip,w.options.hide.effect.length);w.elements.tooltip.queue(function(){A();g(this).dequeue()})}else{switch(w.options.hide.effect.type.toLowerCase()){case"fade":w.elements.tooltip.fadeOut(w.options.hide.effect.length,A);
break;case"slide":w.elements.tooltip.slideUp(w.options.hide.effect.length,A);break;case"grow":w.elements.tooltip.hide(w.options.hide.effect.length,A);break;default:w.elements.tooltip.hide(null,A);break}w.elements.tooltip.removeClass(w.options.style.classes.active)}return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_HIDDEN,"hide")
},updatePosition:function(A,B){var G,K,P,N,L,I,C,M,F,H,O,E,J,D;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updatePosition")}else{if(w.options.position.type=="static"){return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.CANNOT_POSITION_STATIC,"updatePosition")
}}K={position:{left:0,top:0},dimensions:{height:0,width:0},corner:w.options.position.corner.target};P={position:w.getPosition(),dimensions:w.getDimensions(),corner:w.options.position.corner.tooltip};if(w.options.position.target!=="mouse"){if(w.options.position.target.get(0).nodeName.toLowerCase()=="area"){N=w.options.position.target.attr("coords").split(",");
for(G=0;G<N.length;G++){N[G]=parseInt(N[G])}L=w.options.position.target.parent("map").attr("name");I=g('img[usemap="#'+L+'"]:first').offset();K.position={left:Math.floor(I.left+N[0]),top:Math.floor(I.top+N[1])};switch(w.options.position.target.attr("shape").toLowerCase()){case"rect":K.dimensions={width:Math.ceil(Math.abs(N[2]-N[0])),height:Math.ceil(Math.abs(N[3]-N[1]))};
break;case"circle":K.dimensions={width:N[2]+1,height:N[2]+1};break;case"poly":K.dimensions={width:N[0],height:N[1]};for(G=0;G<N.length;G++){if(G%2==0){if(N[G]>K.dimensions.width){K.dimensions.width=N[G]}if(N[G]<N[0]){K.position.left=Math.floor(I.left+N[G])}}else{if(N[G]>K.dimensions.height){K.dimensions.height=N[G]
}if(N[G]<N[1]){K.position.top=Math.floor(I.top+N[G])}}}K.dimensions.width=K.dimensions.width-(K.position.left-I.left);K.dimensions.height=K.dimensions.height-(K.position.top-I.top);break;default:return g.fn.qtip.log.error.call(w,4,g.fn.qtip.constants.INVALID_AREA_SHAPE,"updatePosition");break}K.dimensions.width-=2;
K.dimensions.height-=2}else{if(w.options.position.target.add(document.body).length===1){K.position={left:g(document).scrollLeft(),top:g(document).scrollTop()};K.dimensions={height:g(window).height(),width:g(window).width()}}else{if(typeof w.options.position.target.attr("qtip")!=="undefined"){K.position=w.options.position.target.qtip("api").cache.position
}else{K.position=w.options.position.target.offset()}K.dimensions={height:w.options.position.target.outerHeight(),width:w.options.position.target.outerWidth()}}}C=g.extend({},K.position);if(K.corner.search(/right/i)!==-1){C.left+=K.dimensions.width}if(K.corner.search(/bottom/i)!==-1){C.top+=K.dimensions.height
}if(K.corner.search(/((top|bottom)Middle)|center/)!==-1){C.left+=(K.dimensions.width/2)}if(K.corner.search(/((left|right)Middle)|center/)!==-1){C.top+=(K.dimensions.height/2)}}else{K.position=C={left:w.cache.mouse.x,top:w.cache.mouse.y};K.dimensions={height:1,width:1}}if(P.corner.search(/right/i)!==-1){C.left-=P.dimensions.width
}if(P.corner.search(/bottom/i)!==-1){C.top-=P.dimensions.height}if(P.corner.search(/((top|bottom)Middle)|center/)!==-1){C.left-=(P.dimensions.width/2)}if(P.corner.search(/((left|right)Middle)|center/)!==-1){C.top-=(P.dimensions.height/2)}M=(g.browser.msie)?1:0;F=(g.browser.msie&&parseInt(g.browser.version.charAt(0))===6)?1:0;
if(w.options.style.border.radius>0){if(P.corner.search(/Left/)!==-1){C.left-=w.options.style.border.radius}else{if(P.corner.search(/Right/)!==-1){C.left+=w.options.style.border.radius}}if(P.corner.search(/Top/)!==-1){C.top-=w.options.style.border.radius}else{if(P.corner.search(/Bottom/)!==-1){C.top+=w.options.style.border.radius
}}}if(M){if(P.corner.search(/top/)!==-1){C.top-=M}else{if(P.corner.search(/bottom/)!==-1){C.top+=M}}if(P.corner.search(/left/)!==-1){C.left-=M}else{if(P.corner.search(/right/)!==-1){C.left+=M}}if(P.corner.search(/leftMiddle|rightMiddle/)!==-1){C.top-=1}}if(w.options.position.adjust.screen===true){C=r.call(w,C,K,P)
}if(w.options.position.target==="mouse"&&w.options.position.adjust.mouse===true){if(w.options.position.adjust.screen===true&&w.elements.tip){O=w.elements.tip.attr("rel")}else{O=w.options.position.corner.tooltip}C.left+=(O.search(/right/i)!==-1)?-6:6;C.top+=(O.search(/bottom/i)!==-1)?-6:6}if(!w.elements.bgiframe&&g.browser.msie&&parseInt(g.browser.version.charAt(0))==6){g("select, object").each(function(){E=g(this).offset();
E.bottom=E.top+g(this).height();E.right=E.left+g(this).width();if(C.top+P.dimensions.height>=E.top&&C.left+P.dimensions.width>=E.left){m.call(w)}})}C.left+=w.options.position.adjust.x;C.top+=w.options.position.adjust.y;J=w.getPosition();if(C.left!=J.left||C.top!=J.top){D=w.beforePositionUpdate.call(w,A);
if(D===false){return w}w.cache.position=C;if(B===true){w.status.animated=true;w.elements.tooltip.animate(C,200,"swing",function(){w.status.animated=false})}else{w.elements.tooltip.css(C)}w.onPositionUpdate.call(w,A);if(typeof A!=="undefined"&&A.type&&A.type!=="mousemove"){g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_POSITION_UPDATED,"updatePosition")
}}return w},updateWidth:function(A){var B;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateWidth")}else{if(A&&typeof A!=="number"){return g.fn.qtip.log.error.call(w,2,"newWidth must be of type number","updateWidth")}}B=w.elements.contentWrapper.siblings().add(w.elements.tip).add(w.elements.button);
if(!A){if(typeof w.options.style.width.value=="number"){A=w.options.style.width.value}else{w.elements.tooltip.css({width:"auto"});B.hide();if(g.browser.msie){w.elements.wrapper.add(w.elements.contentWrapper.children()).css({zoom:"normal"})}A=w.getDimensions().width+1;if(!w.options.style.width.value){if(A>w.options.style.width.max){A=w.options.style.width.max
}if(A<w.options.style.width.min){A=w.options.style.width.min}}}}if(A%2!==0){A-=1}w.elements.tooltip.width(A);B.show();if(w.options.style.border.radius){w.elements.tooltip.find(".qtip-betweenCorners").each(function(C){g(this).width(A-(w.options.style.border.radius*2))})}if(g.browser.msie){w.elements.wrapper.add(w.elements.contentWrapper.children()).css({zoom:"1"});
w.elements.wrapper.width(A);if(w.elements.bgiframe){w.elements.bgiframe.width(A).height(w.getDimensions.height)}}return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_WIDTH_UPDATED,"updateWidth")},updateStyle:function(A){var D,E,B,C,F;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateStyle")
}else{if(typeof A!=="string"||!g.fn.qtip.styles[A]){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.STYLE_NOT_DEFINED,"updateStyle")}}w.options.style=a.call(w,g.fn.qtip.styles[A],w.options.user.style);w.elements.content.css(u(w.options.style));if(w.options.content.title.text!==false){w.elements.title.css(u(w.options.style.title,true))
}w.elements.contentWrapper.css({borderColor:w.options.style.border.color});if(w.options.style.tip.corner!==false){if(g("<canvas>").get(0).getContext){D=w.elements.tooltip.find(".qtip-tip canvas:first");B=D.get(0).getContext("2d");B.clearRect(0,0,300,300);C=D.parent("div[rel]:first").attr("rel");F=b(C,w.options.style.tip.size.width,w.options.style.tip.size.height);
k.call(w,D,F,w.options.style.tip.color||w.options.style.border.color)}else{if(g.browser.msie){D=w.elements.tooltip.find('.qtip-tip [nodeName="shape"]');D.attr("fillcolor",w.options.style.tip.color||w.options.style.border.color)}}}if(w.options.style.border.radius>0){w.elements.tooltip.find(".qtip-betweenCorners").css({backgroundColor:w.options.style.border.color});
if(g("<canvas>").get(0).getContext){E=h(w.options.style.border.radius);w.elements.tooltip.find(".qtip-wrapper canvas").each(function(){B=g(this).get(0).getContext("2d");B.clearRect(0,0,300,300);C=g(this).parent("div[rel]:first").attr("rel");v.call(w,g(this),E[C],w.options.style.border.radius,w.options.style.border.color)
})}else{if(g.browser.msie){w.elements.tooltip.find('.qtip-wrapper [nodeName="arc"]').each(function(){g(this).attr("fillcolor",w.options.style.border.color)})}}}return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_STYLE_UPDATED,"updateStyle")},updateContent:function(E,C){var D,B,A;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateContent")
}else{if(!E){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateContent")}}D=w.beforeContentUpdate.call(w,E);if(typeof D=="string"){E=D}else{if(D===false){return}}if(g.browser.msie){w.elements.contentWrapper.children().css({zoom:"normal"})}if(w.options.content.clone&&E.jquery&&E.length>0){E.clone(true).appendTo(w.elements.content).show()
}else{w.elements.content.html(E)}B=w.elements.content.find("img[complete=false]");if(B.length>0){A=0;B.each(function(G){g('<img src="'+g(this).attr("src")+'" />').load(function(){if(++A==B.length){F()}})})}else{F()}function F(){w.updateWidth();if(C!==false){if(w.options.position.type!=="static"){w.updatePosition(w.elements.tooltip.is(":visible"),true)
}if(w.options.style.tip.corner!==false){q.call(w)}}}w.onContentUpdate.call(w);return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_CONTENT_UPDATED,"loadContent")},loadContent:function(A,D,E){var C;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"loadContent")
}C=w.beforeContentLoad.call(w);if(C===false){return w}if(E=="post"){g.post(A,D,B)}else{g.get(A,D,B)}function B(F){w.onContentLoad.call(w);g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_CONTENT_LOADED,"loadContent");w.updateContent(F)}return w},updateTitle:function(A){if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"updateTitle")
}else{if(!A){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.NO_CONTENT_PROVIDED,"updateTitle")}}returned=w.beforeTitleUpdate.call(w);if(returned===false){return w}if(w.elements.button){w.elements.button=w.elements.button.clone(true)}w.elements.title.html(A);if(w.elements.button){w.elements.title.prepend(w.elements.button)
}w.onTitleUpdate.call(w);return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_TITLE_UPDATED,"updateTitle")},focus:function(E){var C,B,A,D;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"focus")}else{if(w.options.position.type=="static"){return g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.CANNOT_FOCUS_STATIC,"focus")
}}C=parseInt(w.elements.tooltip.css("z-index"));B=8001+g("div.qtip[qtip]").length-1;if(!w.status.focused&&C!==B){D=w.beforeFocus.call(w,E);if(D===false){return w}g("div.qtip[qtip]").not(w.elements.tooltip).each(function(){if(g(this).qtip("api").status.rendered===true){A=parseInt(g(this).css("z-index"));
if(typeof A=="number"&&A>-1){g(this).css({zIndex:parseInt(g(this).css("z-index"))-1})}g(this).qtip("api").status.focused=false}});w.elements.tooltip.css({zIndex:B});w.status.focused=true;w.onFocus.call(w,E);g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_FOCUSED,"focus")}return w},disable:function(A){if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"disable")
}if(A){if(!w.status.disabled){w.status.disabled=true;g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_DISABLED,"disable")}else{g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.TOOLTIP_ALREADY_DISABLED,"disable")}}else{if(w.status.disabled){w.status.disabled=false;g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_ENABLED,"disable")
}else{g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.TOOLTIP_ALREADY_ENABLED,"disable")}}return w},destroy:function(){var A,B,C;B=w.beforeDestroy.call(w);if(B===false){return w}if(w.status.rendered){w.options.show.when.target.unbind("mousemove.qtip",w.updatePosition);w.options.show.when.target.unbind("mouseout.qtip",w.hide);
w.options.show.when.target.unbind(w.options.show.when.event+".qtip");w.options.hide.when.target.unbind(w.options.hide.when.event+".qtip");w.elements.tooltip.unbind(w.options.hide.when.event+".qtip");w.elements.tooltip.unbind("mouseover.qtip",w.focus);w.elements.tooltip.remove()}else{w.options.show.when.target.unbind(w.options.show.when.event+".qtip-create")
}if(typeof w.elements.target.data("qtip")=="object"){C=w.elements.target.data("qtip").interfaces;if(typeof C=="object"&&C.length>0){for(A=0;A<C.length-1;A++){if(C[A].id==w.id){C.splice(A,1)}}}}delete g.fn.qtip.interfaces[w.id];if(typeof C=="object"&&C.length>0){w.elements.target.data("qtip").current=C.length-1
}else{w.elements.target.removeData("qtip")}w.onDestroy.call(w);g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_DESTROYED,"destroy");return w.elements.target},getPosition:function(){var A,B;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getPosition")
}A=(w.elements.tooltip.css("display")!=="none")?false:true;if(A){w.elements.tooltip.css({visiblity:"hidden"}).show()}B=w.elements.tooltip.offset();if(A){w.elements.tooltip.css({visiblity:"visible"}).hide()}return B},getDimensions:function(){var A,B;if(!w.status.rendered){return g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.TOOLTIP_NOT_RENDERED,"getDimensions")
}A=(!w.elements.tooltip.is(":visible"))?true:false;if(A){w.elements.tooltip.css({visiblity:"hidden"}).show()}B={height:w.elements.tooltip.outerHeight(),width:w.elements.tooltip.outerWidth()};if(A){w.elements.tooltip.css({visiblity:"visible"}).hide()}return B}})}function t(){var w,A,y,x,z,C,B;w=this;w.beforeRender.call(w);
w.status.rendered=true;w.elements.tooltip='<div qtip="'+w.id+'" class="qtip '+(w.options.style.classes.tooltip||w.options.style)+'"style="display:none; -moz-border-radius:0; -webkit-border-radius:0; border-radius:0;position:'+w.options.position.type+';">  <div class="qtip-wrapper" style="position:relative; overflow:hidden;">    <div class="qtip-contentWrapper" style="overflow:hidden;">       <div class="qtip-content '+w.options.style.classes.content+'"></div></div></div></div>';
w.elements.tooltip=g(w.elements.tooltip);w.elements.tooltip.appendTo(w.options.position.container);w.elements.tooltip.data("qtip",{current:0,interfaces:[w]});w.elements.wrapper=w.elements.tooltip.children("div:first");w.elements.contentWrapper=w.elements.wrapper.children("div:first").css({background:w.options.style.background});
w.elements.content=w.elements.contentWrapper.children("div:first").css(u(w.options.style));if(g.browser.msie){w.elements.wrapper.add(w.elements.content).css({zoom:1})}if(w.options.hide.when.event=="unfocus"){w.elements.tooltip.attr("unfocus",true)}if(typeof w.options.style.width.value=="number"){w.updateWidth()
}if(g("<canvas>").get(0).getContext||g.browser.msie){if(w.options.style.border.radius>0){o.call(w)}else{w.elements.contentWrapper.css({border:w.options.style.border.width+"px solid "+w.options.style.border.color})}if(w.options.style.tip.corner!==false){f.call(w)}}else{w.elements.contentWrapper.css({border:w.options.style.border.width+"px solid "+w.options.style.border.color});
w.options.style.border.radius=0;w.options.style.tip.corner=false;g.fn.qtip.log.error.call(w,2,g.fn.qtip.constants.CANVAS_VML_NOT_SUPPORTED,"render")}if((typeof w.options.content.text=="string"&&w.options.content.text.length>0)||(w.options.content.text.jquery&&w.options.content.text.length>0)){y=w.options.content.text
}else{if(typeof w.elements.target.attr("title")=="string"&&w.elements.target.attr("title").length>0){y=w.elements.target.attr("title").replace("\\n","<br />");w.elements.target.attr("title","")}else{if(typeof w.elements.target.attr("alt")=="string"&&w.elements.target.attr("alt").length>0){y=w.elements.target.attr("alt").replace("\\n","<br />");
w.elements.target.attr("alt","")}else{y=" ";g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.NO_VALID_CONTENT,"render")}}}if(w.options.content.title.text!==false){l.call(w)}w.updateContent(y);n.call(w);if(w.options.show.ready===true){w.show()}if(w.options.content.url!==false){x=w.options.content.url;
z=w.options.content.data;C=w.options.content.method||"get";w.loadContent(x,z,C)}w.onRender.call(w);g.fn.qtip.log.error.call(w,1,g.fn.qtip.constants.EVENT_RENDERED,"render")}function o(){var J,D,x,F,B,I,y,K,H,C,A,G,E,w,z;J=this;J.elements.wrapper.find(".qtip-borderBottom, .qtip-borderTop").remove();x=J.options.style.border.width;
F=J.options.style.border.radius;B=J.options.style.border.color||J.options.style.tip.color;I=h(F);y={};for(D in I){y[D]='<div rel="'+D+'" style="'+((D.search(/Left/)!==-1)?"left":"right")+":0; position:absolute; height:"+F+"px; width:"+F+'px; overflow:hidden; line-height:0.1px; font-size:1px">';if(g("<canvas>").get(0).getContext){y[D]+='<canvas height="'+F+'" width="'+F+'" style="vertical-align: top"></canvas>'
}else{if(g.browser.msie){K=F*2+3;y[D]+='<v:arc stroked="false" fillcolor="'+B+'" startangle="'+I[D][0]+'" endangle="'+I[D][1]+'" style="width:'+K+"px; height:"+K+"px; margin-top:"+((D.search(/bottom/)!==-1)?-2:-1)+"px; margin-left:"+((D.search(/Right/)!==-1)?I[D][2]-3.5:-1)+'px; vertical-align:top; display:inline-block; behavior:url(#default#VML)"></v:arc>'
}}y[D]+="</div>"}H=J.getDimensions().width-(Math.max(x,F)*2);C='<div class="qtip-betweenCorners" style="height:'+F+"px; width:"+H+"px; overflow:hidden; background-color:"+B+'; line-height:0.1px; font-size:1px;">';A='<div class="qtip-borderTop" dir="ltr" style="height:'+F+"px; margin-left:"+F+'px; line-height:0.1px; font-size:1px; padding:0;">'+y.topLeft+y.topRight+C;
J.elements.wrapper.prepend(A);G='<div class="qtip-borderBottom" dir="ltr" style="height:'+F+"px; margin-left:"+F+'px; line-height:0.1px; font-size:1px; padding:0;">'+y.bottomLeft+y.bottomRight+C;J.elements.wrapper.append(G);if(g("<canvas>").get(0).getContext){J.elements.wrapper.find("canvas").each(function(){E=I[g(this).parent("[rel]:first").attr("rel")];
v.call(J,g(this),E,F,B)})}else{if(g.browser.msie){J.elements.tooltip.append('<v:image style="behavior:url(#default#VML);"></v:image>')}}w=Math.max(F,(F+(x-F)));z=Math.max(x-F,0);J.elements.contentWrapper.css({border:"0px solid "+B,borderWidth:z+"px "+w+"px"})}function v(y,A,w,x){var z=y.get(0).getContext("2d");
z.fillStyle=x;z.beginPath();z.arc(A[0],A[1],w,0,Math.PI*2,false);z.fill()}function f(z){var x,w,B,y,A;x=this;if(x.elements.tip!==null){x.elements.tip.remove()}w=x.options.style.tip.color||x.options.style.border.color;if(x.options.style.tip.corner===false){return}else{if(!z){z=x.options.style.tip.corner
}}B=b(z,x.options.style.tip.size.width,x.options.style.tip.size.height);x.elements.tip='<div class="'+x.options.style.classes.tip+'" dir="ltr" rel="'+z+'" style="position:absolute; height:'+x.options.style.tip.size.height+"px; width:"+x.options.style.tip.size.width+'px; margin:0 auto; line-height:0.1px; font-size:1px;">';
if(g("<canvas>").get(0).getContext){x.elements.tip+='<canvas height="'+x.options.style.tip.size.height+'" width="'+x.options.style.tip.size.width+'"></canvas>'}else{if(g.browser.msie){y=x.options.style.tip.size.width+","+x.options.style.tip.size.height;A="m"+B[0][0]+","+B[0][1];A+=" l"+B[1][0]+","+B[1][1];
A+=" "+B[2][0]+","+B[2][1];A+=" xe";x.elements.tip+='<v:shape fillcolor="'+w+'" stroked="false" filled="true" path="'+A+'" coordsize="'+y+'" style="width:'+x.options.style.tip.size.width+"px; height:"+x.options.style.tip.size.height+"px; line-height:0.1px; display:inline-block; behavior:url(#default#VML); vertical-align:"+((z.search(/top/)!==-1)?"bottom":"top")+'"></v:shape>';
x.elements.tip+='<v:image style="behavior:url(#default#VML);"></v:image>';x.elements.contentWrapper.css("position","relative")}}x.elements.tooltip.prepend(x.elements.tip+"</div>");x.elements.tip=x.elements.tooltip.find("."+x.options.style.classes.tip).eq(0);if(g("<canvas>").get(0).getContext){k.call(x,x.elements.tip.find("canvas:first"),B,w)
}if(z.search(/top/)!==-1&&g.browser.msie&&parseInt(g.browser.version.charAt(0))===6){x.elements.tip.css({marginTop:-4})}q.call(x,z)}function k(x,z,w){var y=x.get(0).getContext("2d");y.fillStyle=w;y.beginPath();y.moveTo(z[0][0],z[0][1]);y.lineTo(z[1][0],z[1][1]);y.lineTo(z[2][0],z[2][1]);y.fill()}function q(y){var x,A,w,B,z;
x=this;if(x.options.style.tip.corner===false||!x.elements.tip){return}if(!y){y=x.elements.tip.attr("rel")}A=positionAdjust=(g.browser.msie)?1:0;x.elements.tip.css(y.match(/left|right|top|bottom/)[0],0);if(y.search(/top|bottom/)!==-1){if(g.browser.msie){if(parseInt(g.browser.version.charAt(0))===6){positionAdjust=(y.search(/top/)!==-1)?-3:1
}else{positionAdjust=(y.search(/top/)!==-1)?1:2}}if(y.search(/Middle/)!==-1){x.elements.tip.css({left:"50%",marginLeft:-(x.options.style.tip.size.width/2)})}else{if(y.search(/Left/)!==-1){x.elements.tip.css({left:x.options.style.border.radius-A})}else{if(y.search(/Right/)!==-1){x.elements.tip.css({right:x.options.style.border.radius+A})
}}}if(y.search(/top/)!==-1){x.elements.tip.css({top:-positionAdjust})}else{x.elements.tip.css({bottom:positionAdjust})}}else{if(y.search(/left|right/)!==-1){if(g.browser.msie){positionAdjust=(parseInt(g.browser.version.charAt(0))===6)?1:((y.search(/left/)!==-1)?1:2)}if(y.search(/Middle/)!==-1){x.elements.tip.css({top:"50%",marginTop:-(x.options.style.tip.size.height/2)})
}else{if(y.search(/Top/)!==-1){x.elements.tip.css({top:x.options.style.border.radius-A})}else{if(y.search(/Bottom/)!==-1){x.elements.tip.css({bottom:x.options.style.border.radius+A})}}}if(y.search(/left/)!==-1){x.elements.tip.css({left:-positionAdjust})}else{x.elements.tip.css({right:positionAdjust})
}}}w="padding-"+y.match(/left|right|top|bottom/)[0];B=x.options.style.tip.size[(w.search(/left|right/)!==-1)?"width":"height"];x.elements.tooltip.css("padding",0);x.elements.tooltip.css(w,B);if(g.browser.msie&&parseInt(g.browser.version.charAt(0))==6){z=parseInt(x.elements.tip.css("margin-top"))||0;z+=parseInt(x.elements.content.css("margin-top"))||0;
x.elements.tip.css({marginTop:z})}}function l(){var w=this;if(w.elements.title!==null){w.elements.title.remove()}w.elements.title=g('<div class="'+w.options.style.classes.title+'">').css(u(w.options.style.title,true)).css({zoom:(g.browser.msie)?1:0}).prependTo(w.elements.contentWrapper);if(w.options.content.title.text){w.updateTitle.call(w,w.options.content.title.text)
}if(w.options.content.title.button!==false&&typeof w.options.content.title.button=="string"){w.elements.button=g('<a class="'+w.options.style.classes.button+'" style="float:right; position: relative"></a>').css(u(w.options.style.button,true)).html(w.options.content.title.button).prependTo(w.elements.title).click(function(x){if(!w.status.disabled){w.hide(x)
}})}}function n(){var x,z,y,w;x=this;z=x.options.show.when.target;y=x.options.hide.when.target;if(x.options.hide.fixed){y=y.add(x.elements.tooltip)}if(x.options.hide.when.event=="inactive"){w=["click","dblclick","mousedown","mouseup","mousemove","mouseout","mouseenter","mouseleave","mouseover"];function C(D){if(x.status.disabled===true){return
}clearTimeout(x.timers.inactive);x.timers.inactive=setTimeout(function(){g(w).each(function(){y.unbind(this+".qtip-inactive");x.elements.content.unbind(this+".qtip-inactive")});x.hide(D)},x.options.hide.delay)}}else{if(x.options.hide.fixed===true){x.elements.tooltip.bind("mouseover.qtip",function(){if(x.status.disabled===true){return
}clearTimeout(x.timers.hide)})}}function B(D){if(x.status.disabled===true){return}if(x.options.hide.when.event=="inactive"){g(w).each(function(){y.bind(this+".qtip-inactive",C);x.elements.content.bind(this+".qtip-inactive",C)});C()}clearTimeout(x.timers.show);clearTimeout(x.timers.hide);x.timers.show=setTimeout(function(){x.show(D)
},x.options.show.delay)}function A(D){if(x.status.disabled===true){return}if(x.options.hide.fixed===true&&x.options.hide.when.event.search(/mouse(out|leave)/i)!==-1&&g(D.relatedTarget).parents("div.qtip[qtip]").length>0){D.stopPropagation();D.preventDefault();clearTimeout(x.timers.hide);return false}clearTimeout(x.timers.show);
clearTimeout(x.timers.hide);x.elements.tooltip.stop(true,true);x.timers.hide=setTimeout(function(){x.hide(D)},x.options.hide.delay)}if((x.options.show.when.target.add(x.options.hide.when.target).length===1&&x.options.show.when.event==x.options.hide.when.event&&x.options.hide.when.event!=="inactive")||x.options.hide.when.event=="unfocus"){x.cache.toggle=0;
z.bind(x.options.show.when.event+".qtip",function(D){if(x.cache.toggle==0){B(D)}else{A(D)}})}else{z.bind(x.options.show.when.event+".qtip",B);if(x.options.hide.when.event!=="inactive"){y.bind(x.options.hide.when.event+".qtip",A)}}if(x.options.position.type.search(/(fixed|absolute)/)!==-1){x.elements.tooltip.bind("mouseover.qtip",x.focus)
}if(x.options.position.target==="mouse"&&x.options.position.type!=="static"){z.bind("mousemove.qtip",function(D){x.cache.mouse={x:D.pageX,y:D.pageY};if(x.status.disabled===false&&x.options.position.adjust.mouse===true&&x.options.position.type!=="static"&&x.elements.tooltip.css("display")!=="none"){x.updatePosition(D)
}})}}function r(y,z,E){var D,w,B,C,x,A;D=this;if(E.corner=="center"){return z.position}w=g.extend({},y);C={x:false,y:false};x={left:(w.left<g.fn.qtip.cache.screen.scroll.left),right:(w.left+E.dimensions.width+2>=g.fn.qtip.cache.screen.width+g.fn.qtip.cache.screen.scroll.left),top:(w.top<g.fn.qtip.cache.screen.scroll.top),bottom:(w.top+E.dimensions.height+2>=g.fn.qtip.cache.screen.height+g.fn.qtip.cache.screen.scroll.top)};
B={left:(x.left&&(E.corner.search(/right/i)!=-1||(E.corner.search(/right/i)==-1&&!x.right))),right:(x.right&&(E.corner.search(/left/i)!=-1||(E.corner.search(/left/i)==-1&&!x.left))),top:(x.top&&E.corner.search(/top/i)==-1),bottom:(x.bottom&&E.corner.search(/bottom/i)==-1)};if(B.left){if(D.options.position.target!=="mouse"){w.left=z.position.left+z.dimensions.width
}else{w.left=D.cache.mouse.x}C.x="Left"}else{if(B.right){if(D.options.position.target!=="mouse"){w.left=z.position.left-E.dimensions.width}else{w.left=D.cache.mouse.x-E.dimensions.width}C.x="Right"}}if(B.top){if(D.options.position.target!=="mouse"){w.top=z.position.top+z.dimensions.height}else{w.top=D.cache.mouse.y
}C.y="top"}else{if(B.bottom){if(D.options.position.target!=="mouse"){w.top=z.position.top-E.dimensions.height}else{w.top=D.cache.mouse.y-E.dimensions.height}C.y="bottom"}}if(w.left<0){w.left=y.left;C.x=false}if(w.top<0){w.top=y.top;C.y=false}if(D.options.style.tip.corner!==false){w.corner=new String(E.corner);
if(C.x!==false){w.corner=w.corner.replace(/Left|Right|Middle/,C.x)}if(C.y!==false){w.corner=w.corner.replace(/top|bottom/,C.y)}if(w.corner!==D.elements.tip.attr("rel")){f.call(D,w.corner)}}return w}function u(y,x){var z,w;z=g.extend(true,{},y);for(w in z){if(x===true&&w.search(/(tip|classes)/i)!==-1){delete z[w]
}else{if(!x&&w.search(/(width|border|tip|title|classes|user)/i)!==-1){delete z[w]}}}return z}function c(w){if(typeof w.tip!=="object"){w.tip={corner:w.tip}}if(typeof w.tip.size!=="object"){w.tip.size={width:w.tip.size,height:w.tip.size}}if(typeof w.border!=="object"){w.border={width:w.border}}if(typeof w.width!=="object"){w.width={value:w.width}
}if(typeof w.width.max=="string"){w.width.max=parseInt(w.width.max.replace(/([0-9]+)/i,"$1"))}if(typeof w.width.min=="string"){w.width.min=parseInt(w.width.min.replace(/([0-9]+)/i,"$1"))}if(typeof w.tip.size.x=="number"){w.tip.size.width=w.tip.size.x;delete w.tip.size.x}if(typeof w.tip.size.y=="number"){w.tip.size.height=w.tip.size.y;
delete w.tip.size.y}return w}function a(){var w,x,y,B,z,A;w=this;y=[true,{}];for(x=0;x<arguments.length;x++){y.push(arguments[x])}B=[g.extend.apply(g,y)];while(typeof B[0].name=="string"){B.unshift(c(g.fn.qtip.styles[B[0].name]))}B.unshift(true,{classes:{tooltip:"qtip-"+(arguments[0].name||"defaults")}},g.fn.qtip.styles.defaults);
z=g.extend.apply(g,B);A=(g.browser.msie)?1:0;z.tip.size.width+=A;z.tip.size.height+=A;if(z.tip.size.width%2>0){z.tip.size.width+=1}if(z.tip.size.height%2>0){z.tip.size.height+=1}if(z.tip.corner===true){z.tip.corner=(w.options.position.corner.tooltip==="center")?false:w.options.position.corner.tooltip
}return z}function b(z,y,x){var w={bottomRight:[[0,0],[y,x],[y,0]],bottomLeft:[[0,0],[y,0],[0,x]],topRight:[[0,x],[y,0],[y,x]],topLeft:[[0,0],[0,x],[y,x]],topMiddle:[[0,x],[y/2,0],[y,x]],bottomMiddle:[[0,0],[y,0],[y/2,x]],rightMiddle:[[0,0],[y,x/2],[0,x]],leftMiddle:[[y,0],[y,x],[0,x/2]]};w.leftTop=w.bottomRight;
w.rightTop=w.bottomLeft;w.leftBottom=w.topRight;w.rightBottom=w.topLeft;return w[z]}function h(w){var x;if(g("<canvas>").get(0).getContext){x={topLeft:[w,w],topRight:[0,w],bottomLeft:[w,0],bottomRight:[0,0]}}else{if(g.browser.msie){x={topLeft:[-90,90,0],topRight:[-90,90,-w],bottomLeft:[90,270,0],bottomRight:[90,270,-w]}
}}return x}function m(){var w,x,y;w=this;y=w.getDimensions();x='<iframe class="qtip-bgiframe" frameborder="0" tabindex="-1" src="javascript:false" style="display:block; position:absolute; z-index:-1; filter:alpha(opacity=\'0\'); border: 1px solid red; height:'+y.height+"px; width:"+y.width+'px" />';w.elements.bgiframe=w.elements.wrapper.prepend(x).children(".qtip-bgiframe:first")
}g(document).ready(function(){g.fn.qtip.cache={screen:{scroll:{left:g(window).scrollLeft(),top:g(window).scrollTop()},width:g(window).width(),height:g(window).height()}};var w;g(window).bind("resize scroll",function(x){clearTimeout(w);w=setTimeout(function(){if(x.type==="scroll"){g.fn.qtip.cache.screen.scroll={left:g(window).scrollLeft(),top:g(window).scrollTop()}
}else{g.fn.qtip.cache.screen.width=g(window).width();g.fn.qtip.cache.screen.height=g(window).height()}for(i=0;i<g.fn.qtip.interfaces.length;i++){var y=g.fn.qtip.interfaces[i];if(y&&y.status){if(y.status.rendered===true&&(y.options.position.type!=="static"||y.options.position.adjust.scroll&&x.type==="scroll"||y.options.position.adjust.resize&&x.type==="resize")){y.updatePosition(x,true)
}}}},100)});g(document).bind("mousedown.qtip",function(x){if(g(x.target).parents("div.qtip").length===0){g(".qtip[unfocus]").each(function(){var y=g(this).qtip("api");if(g(this).is(":visible")&&!y.status.disabled&&g(x.target).add(y.elements.target).length>1){y.hide(x)}})}})});g.fn.qtip.interfaces=[];
g.fn.qtip.log={error:function(){return this}};g.fn.qtip.constants={};g.fn.qtip.defaults={content:{prerender:false,text:false,url:false,data:null,title:{text:false,button:false}},position:{target:false,corner:{target:"bottomRight",tooltip:"topLeft"},adjust:{x:0,y:0,mouse:true,screen:false,scroll:true,resize:true},type:"absolute",container:false},show:{when:{target:false,event:"mouseover"},effect:{type:"fade",length:100},delay:140,solo:false,ready:false},hide:{when:{target:false,event:"mouseout"},effect:{type:"fade",length:100},delay:0,fixed:false},api:{beforeRender:function(){},onRender:function(){},beforePositionUpdate:function(){},onPositionUpdate:function(){},beforeShow:function(){},onShow:function(){},beforeHide:function(){},onHide:function(){},beforeContentUpdate:function(){},onContentUpdate:function(){},beforeContentLoad:function(){},onContentLoad:function(){},beforeTitleUpdate:function(){},onTitleUpdate:function(){},beforeDestroy:function(){},onDestroy:function(){},beforeFocus:function(){},onFocus:function(){}}};
g.fn.qtip.styles={defaults:{background:"white",color:"#111",overflow:"hidden",width:{min:0,max:250},border:{width:1,radius:0,color:"#d3d3d3"},tip:{corner:false,color:false,size:{width:13,height:13},opacity:1},title:{background:"#075F96",fontWeight:"bold",padding:"7px 12px",color:"#ffffff"},button:{cursor:"pointer"},classes:{target:"",tip:"qtip-tip",title:"qtip-title",button:"qtip-button",content:"qtip-content",active:"qtip-active"}},cream:{border:{width:3,radius:0,color:"#F9E98E"},title:{background:"#F0DE7D",color:"#A27D35"},background:"#FBF7AA",color:"#A27D35",classes:{tooltip:"qtip-cream"}},light:{border:{width:3,radius:0,color:"#E2E2E2"},title:{background:"#f1f1f1",color:"#454545"},background:"white",color:"#454545",classes:{tooltip:"qtip-light"}},dark:{border:{width:3,radius:0,color:"#303030"},title:{background:"#404040",color:"#f3f3f3"},background:"#505050",color:"#f3f3f3",classes:{tooltip:"qtip-dark"}},red:{border:{width:3,radius:0,color:"#CE6F6F"},title:{background:"#f28279",color:"#9C2F2F"},background:"#F79992",color:"#9C2F2F",classes:{tooltip:"qtip-red"}},green:{border:{width:3,radius:0,color:"#A9DB66"},title:{background:"#b9db8c",color:"#58792E"},background:"#CDE6AC",color:"#58792E",classes:{tooltip:"qtip-green"}},blue:{border:{width:3,radius:0,color:"#ADD9ED"},title:{background:"#D0E9F5",color:"#5E99BD"},background:"#E5F6FE",color:"#4D9FBF",classes:{tooltip:"qtip-blue"}}}
})(jQuery);(function(a){a.fn.hint=function(b){if(!b){b="glob_blurClass"}return this.each(function(){var h=a(this),f=h.attr("title"),e=a(this.form),g=a(window);function c(){if(h.val()===f&&h.hasClass(b)){h.val("").removeClass(b)}}if(f){h.blur(function(){if(this.value===""){h.val(f).addClass(b)}}).focus(c).blur();
e.submit(c);g.unload(c)}})}})(jQuery);var $B=document.body&&$(document.body),$W=$(window),$D=$(document);$D.ready(function(){$B=$(document.body)});jQuery.fn.supersleight=function(a){a=jQuery.extend({imgs:true,backgrounds:true,shim:"x.gif",apply_positioning:true},a);return this.each(function(){if(jQuery.browser.msie&&parseInt(jQuery.browser.version,10)<7&&parseInt(jQuery.browser.version,10)>4){jQuery(this).find("*").andSelf().each(function(e,g){var b=jQuery(g);
if(a.backgrounds&&b.css("background-image").match(/\.png/i)!==null){var c=b.css("background-image");var k=c.substring(5,c.length-2);var h=(b.css("background-repeat")=="no-repeat"?"crop":"scale");var f={filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+k+"', sizingMethod='"+h+"')","background-image":"url("+a.shim+")"};
b.css(f)}if(a.imgs&&b.is("img[src$=png]")){var f={width:b.width()+"px",height:b.height()+"px",filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+b.attr("src")+"', sizingMethod='scale')"};b.css(f).attr("src",a.shim)}if(a.apply_positioning&&b.is("a, input")&&(b.css("position")===""||b.css("position")=="static")){b.css("position","relative")
}})}})};VT.Util={};var loadingImg=$('<img src="http://cache.virtualtourist.com/vt2/loadingIcon.gif" class="loadIcon"/>');var loadingHtml=$('<div class="glob_loader"></div>');loadingHtml.append(loadingImg);loadingHtml.append('<span class="msg">Loading</span>');VT.Util.PortraitSize={Full:0,Thumbnail:1,Icon:2};
VT.Util.logCommerceClick=function(a){$.getJSON("/l/",{q:a,redirect:false},function(b){})};VT.Util.loadImg=function(f,e,a,g){var c=new Image();c.src=f;e&&$(c).addClass(e);a=a&&$(a);var b=function(){if(c.complete){a&&a.empty().append(c);g&&g(c)}else{setTimeout(b,100)}};if(c.complete){a&&a.empty().append(c);
g&&g(c)}else{a&&a.append(loadingHtml)}b()};VT.Util.getMemberPictureURL=function(c,e,f,g,b){var a="http://cache.virtualtourist.com/"+b+"/"+f;if(e!=null&&e.length>0&&c!=null&&c.length>0){a+="-"+e+"-"+c}a+="."+g;return a};VT.Util.getMemberIdFromCookie=function(){var c=0;try{var b=(VT.Cookie.get("VT")||"").split("|");
c=parseInt(b[0].split(".")[0],16)}catch(a){console.log("error:"+a)}return c};VT.Util.getLoggingUrl=function(c,e){var b="";if(!c){c={}}c.u=e;for(var a in c){b+=a+"="+(Url.encode(c[a]))+"&"}return"http://www.virtualtourist.com/l/?q="+Base64.encode(b)+"&ref="+Url.encode(document.location.href)};VT.Util.delayedJsLoader=(function(){var a={};
var b=function(e){a[e]={hasLoaded:false,isLoading:false}};var c=function(f,e){return a[f][e]};this.callWhenLoaded=function(f,k){if(a[k]==null){b(k)}if((a[k].hasLoaded)){if(f){f()}}else{if(a[k].isLoading==false){a[k].isLoading=true;var e=function(){a[k].hasLoaded=true};var h=$('<div class="jsDelayedScript"></div>');
$B.append(h);h.writeCapture().html('<script  language="JavaScript" type="text/javascript" src="'+k+'"><\/script>',{writeOnGetElementById:true,done:e})}if(a[k].hasLoaded){if(f){f()}}else{var g=function(){this.callWhenLoaded(f,k)};setTimeout(g,700)}}};return this})();var Base64={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(c){var a="";
var m,k,g,l,h,f,e;var b=0;c=Base64._utf8_encode(c);while(b<c.length){m=c.charCodeAt(b++);k=c.charCodeAt(b++);g=c.charCodeAt(b++);l=m>>2;h=((m&3)<<4)|(k>>4);f=((k&15)<<2)|(g>>6);e=g&63;if(isNaN(k)){f=e=64}else{if(isNaN(g)){e=64}}a=a+this._keyStr.charAt(l)+this._keyStr.charAt(h)+this._keyStr.charAt(f)+this._keyStr.charAt(e)
}return a},decode:function(c){var a="";var m,k,g;var l,h,f,e;var b=0;c=c.replace(/[^A-Za-z0-9\+\/\=]/g,"");while(b<c.length){l=this._keyStr.indexOf(c.charAt(b++));h=this._keyStr.indexOf(c.charAt(b++));f=this._keyStr.indexOf(c.charAt(b++));e=this._keyStr.indexOf(c.charAt(b++));m=(l<<2)|(h>>4);k=((h&15)<<4)|(f>>2);
g=((f&3)<<6)|e;a=a+String.fromCharCode(m);if(f!=64){a=a+String.fromCharCode(k)}if(e!=64){a=a+String.fromCharCode(g)}}a=Base64._utf8_decode(a);return a},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");var a="";for(var f=0;f<b.length;f++){var e=b.charCodeAt(f);if(e<128){a+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){a+=String.fromCharCode((e>>6)|192);
a+=String.fromCharCode((e&63)|128)}else{a+=String.fromCharCode((e>>12)|224);a+=String.fromCharCode(((e>>6)&63)|128);a+=String.fromCharCode((e&63)|128)}}}return a},_utf8_decode:function(a){var b="";var e=0;var f=c1=c2=0;while(e<a.length){f=a.charCodeAt(e);if(f<128){b+=String.fromCharCode(f);e++}else{if((f>191)&&(f<224)){c2=a.charCodeAt(e+1);
b+=String.fromCharCode(((f&31)<<6)|(c2&63));e+=2}else{c2=a.charCodeAt(e+1);c3=a.charCodeAt(e+2);b+=String.fromCharCode(((f&15)<<12)|((c2&63)<<6)|(c3&63));e+=3}}}return b}};var Url={encode:function(a){return escape(this._utf8_encode(a))},decode:function(a){return this._utf8_decode(unescape(a))},_utf8_encode:function(b){b=b.replace(/\r\n/g,"\n");
var a="";for(var f=0;f<b.length;f++){var e=b.charCodeAt(f);if(e<128){a+=String.fromCharCode(e)}else{if((e>127)&&(e<2048)){a+=String.fromCharCode((e>>6)|192);a+=String.fromCharCode((e&63)|128)}else{a+=String.fromCharCode((e>>12)|224);a+=String.fromCharCode(((e>>6)&63)|128);a+=String.fromCharCode((e&63)|128)
}}}return a},_utf8_decode:function(a){var b="";var e=0;var f=c1=c2=0;while(e<a.length){f=a.charCodeAt(e);if(f<128){b+=String.fromCharCode(f);e++}else{if((f>191)&&(f<224)){c2=a.charCodeAt(e+1);b+=String.fromCharCode(((f&31)<<6)|(c2&63));e+=2}else{c2=a.charCodeAt(e+1);c3=a.charCodeAt(e+2);b+=String.fromCharCode(((f&15)<<12)|((c2&63)<<6)|(c3&63));
e+=3}}}return b}};VT.Dom={};VT.Dom.isArray=function(a){return Object.prototype.toString.call(a)==="[object Array]"};VT.Dom.getZIndex=function(a){return VT.Dom.getComputedStyle(a,"zIndex")};VT.Dom.getComputedStyle=function(a,b){var e;if(document.defaultView&&document.defaultView.getComputedStyle){var c=document.defaultView.getComputedStyle(a,"");
if(c){e=c[b]}return a.style[b]||e}else{if(document.documentElement.currentStyle){e=a.currentStyle?a.currentStyle[b]:null;return(a.style[b]||e)}else{return a.style[b]}}};VT.Dom.hideElementsByTag=function(a,f){function c(g,l){if(!VT.Dom.isArray(g)){g=[g]}for(var k=l;k;k=k.parentNode){for(var h=0;h<g.length;
h++){if(k==g[h]){return true}}}return false}var e=document.getElementsByTagName(a);for(var b=0;b<e.length;b++){if(!c(f,e[b])&&VT.Dom.getComputedStyle(e[b],"visibility")!="hidden"){e[b].style.visibility="hidden";e[b].bleeder=true}}};VT.Dom.showElementsByTag=function(a){var c=document.getElementsByTagName(a);
for(var b=0;b<c.length;b++){if(c[b].bleeder){VT.Dom.show(c[b])}}};VT.Dom.showBleeders=function(a){VT.Dom.showElementsByTag("select");VT.Dom.showElementsByTag("embed");VT.Dom.showElementsByTag("object");VT.Dom.showElementsByTag("iframe")};VT.Dom.hideBleeders=function(a){VT.Dom.hideElementsByTag("select",a);
VT.Dom.hideElementsByTag("embed",a);VT.Dom.hideElementsByTag("object",a);VT.Dom.hideElementsByTag("iframe",a)};VT.Dom.getX=function(a){if(document.layers){return a.left}return a.offsetLeft+(a.offsetParent?VT.Dom.getX(a.offsetParent):0)};VT.Dom.getY=function(a){if(document.layers){return a.top}return a.offsetTop+(a.offsetParent?VT.Dom.getY(a.offsetParent):0)
};VT.Dom.getH=function(a){if(document.layers){return a.clip.height}return a.offsetHeight};VT.Dom.show=function(a){a.style.visibility="visible"};VT.Dom.getDimensions=function(){var l,k,f,b,a,c,g=window,h=document.body,e=document.documentElement;if(g.innerHeight&&g.scrollMaxY){l=h.scrollWidth;k=g.innerHeight+g.scrollMaxY
}else{if(h.scrollHeight>h.offsetHeight){l=h.scrollWidth;k=h.scrollHeight}else{l=h.offsetWidth;k=h.offsetHeight}}if(self.innerHeight){f=self.innerWidth;b=self.innerHeight}else{if(e&&e.clientHeight){f=e.clientWidth;b=e.clientHeight}else{if(h){f=e.clientWidth;b=h.clientHeight}}}a=k<b?b:k;c=l<f?f:l;return{page:{width:c,height:a},viewport:{width:f,height:b}}
};var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"An unknown browser";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"an unknown version";this.OS=this.searchString(this.dataOS)||"an unknown OS"},searchString:function(e){for(var a=0;
a<e.length;a++){var b=e[a].string;var c=e[a].prop;this.versionSearchString=e[a].versionSearch||e[a].identity;if(b){if(b.indexOf(e[a].subString)!=-1){return e[a].identity}}else{if(c){return e[a].identity}}}},searchVersion:function(b){var a=b.indexOf(this.versionSearchString);if(a==-1){return}return parseFloat(b.substring(a+this.versionSearchString.length+1))
},dataBrowser:[{string:navigator.vendor,subString:"Camino",identity:"Camino"},{string:navigator.userAgent,subString:"Chrome",identity:"Chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"OmniWeb"},{string:navigator.vendor,subString:"Apple",identity:"Safari"},{prop:window.opera,identity:"Opera"},{string:navigator.vendor,subString:"iCab",identity:"iCab"},{string:navigator.vendor,subString:"KDE",identity:"Konqueror"},{string:navigator.userAgent,subString:"Firefox",identity:"Firefox"},{string:navigator.userAgent,subString:"Netscape",identity:"Netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"Mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"Netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"Windows"},{string:navigator.platform,subString:"Mac",identity:"Mac"},{string:navigator.platform,subString:"Linux",identity:"Linux"}]};
BrowserDetect.init();window.ie7=BrowserDetect.browser==="Explorer"&&BrowserDetect.version>=7&&BrowserDetect.version<8;window.safari=BrowserDetect.browser==="Safari";VT.Effects={};VT.Effects.GreyOut=function(h){var g=this;var c;var f=[];var e=(typeof h=="number")?h:$(h).css("zIndex")-1;var b=(typeof h=="object")?h:null;
function k(){for(var l=0;l<f.length;l++){f&&f[l]()}}this.remove=function(){c.onclick=null;if(c.parentNode){c.parentNode.removeChild(c)}VT.Dom.showBleeders()};this.addClickListener=function(l){f[f.length]=l};this.fitToWindow=function(){var l=VT.Dom.getDimensions();c.style.width=(l.viewport.width>l.page.width?l.viewport.width:l.page.width)+"px";
c.style.height=(l.viewport.height>l.page.height?l.viewport.height:l.page.height)+"px"};function a(){VT.Dom.hideBleeders(b);c=document.body.appendChild(document.createElement("div"));c.className="greyOut";c.style.zIndex=e;c.onclick=k;g.fitToWindow();var l=window.onresize;window.onresize=l?function(){g.fitToWindow();
return l()}:g.fitToWindow}a();return this};VT.Cookie=(function(){var b=null;var a=function(c){return c||document.location.href.replace(/http:\/\/[^\.\/]+(\.[^\/]+)\/.*/,"$1")};this.set=function(f,h,e,g,k){var c=e&&new Date(new Date().getTime()+(86400000*e));document.cookie=f+"="+h+(c?"; expires="+c.toUTCString():"")+"; path="+(k||"/")+"; domain="+a(g);
if(b){b[f]=h}};this.del=function(c,e,f){this.set(c,"",-1,e,f)};this.get=function(e){if(!document.cookie){return null}if(!b){b=new Object();var g=document.cookie.split(/; ?/);for(var f=0;f<g.length;f++){var h=g[f].indexOf("=");b[g[f].substr(0,h)]=decodeURIComponent(g[f].substr(h+1))}}return b[e]};return this
})();MONTHS=new Array("January","February","March","April","May","June","July","August","September","October","November","December");function openPartnerWindow(c,a,e,b){return window.open(c,b,"screenX="+a+",screenY="+e+",left="+a+",top="+e+",width="+(screen.width>1000?800:(screen.width>800?640:520))+",height="+(screen.width>1000?600:(screen.width>800?460:400))+",toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1")
}function getObject(a){if(document.all){return document.all[a]}else{if(document.getElementById){return document.getElementById(a)}else{return document[a]}}}function showObject(a){if(a.style){a.style.visibility="visible"}else{a.visibility="show"}}function hideObject(a){if(a.style){a.style.visibility="hidden"
}else{a.visibility="hide"}}function getX(a){if(document.layers){return a.left}return a.offsetLeft+(a.offsetParent?getX(a.offsetParent):0)}function getY(a){if(document.layers){return a.top}return a.offsetTop+(a.offsetParent?getY(a.offsetParent):0)}function getW(a){if(document.layers){return a.clip.width
}return a.offsetWidth}function getH(a){if(document.layers){return a.clip.height}return a.offsetHeight}function isInside(a,g,f,k,e,h,c){var b=getX(a);var m=getY(a);return((g-(k?k:0)>=b)&&(f-(e?e:0)>=m)&&(g-(h?h:0)<b+getW(a))&&(f-(c?c:0)<m+getH(a)))}function moveObject(b,a,c){if(document.layers){b.moveToAbsolute(a,c)
}else{if(b.style.left&&(!b.style.pixelLeft)){b.style.left=a+"px";b.style.top=c+"px"}else{b.style.pixelLeft=a;b.style.pixelTop=c}}}function writeObject(a,b){if(document.layers){a.document.open("text/html");a.document.write(b);a.document.close()}else{a.innerHTML=b}}function trackMouseClick(a){if(document.layers){document.captureEvents(Event.MOUSEDOWN)
}document.onmousedown=a}function trackMouseClickByObjectName(a){if(document.layers){document.captureEvents(Event.MOUSEDOWN)}document.onmousedown=new Function(a+".close();")}function untrackMouseClick(){if(document.layers){document.releaseEvents(Event.MOUSEDOWN)}document.onmousedown=null}function getEventX(a){return(document.all?event.clientX+document.body.scrollLeft:a.pageX)
}function getEventY(a){return(document.all?event.clientY+document.body.scrollTop:a.pageY)}function updateGuests(b){for(i=0;i<b.form.elements.length;i++){var a=b.form.elements[i];if((a!=b)&&((a.name=="HGuests")||(a.name.substr(0,8)=="HGuests."))){a.selectedIndex=b.selectedIndex}}}function placeAd(e,c){var a=getObject(e);
var b=getObject(c);moveObject(b,getX(a),getY(a));showObject(b)}function distributeRadioValue(k){var h=k.form;var m=k.name;var b=k.value;for(c=0;c<document.forms.length;c++){var g=document.forms[c];if((g!=h)&&g.elements[m]){var a=g.elements[m].length;if(!a){g.elements[m].value=b}else{for(var c=0;c<a;c++){if(g.elements[m][c].value==b){g.elements[m][c].checked=true
}}}}}}function disableOptions(){document.f.outDate.disabled=true;document.f.outTime.disabled=true}function enableOptions(){document.f.outDate.disabled=false;document.f.outTime.disabled=false}function getAirportCode(e,c){var f="?target="+e;if(c!=null){f=f.concat("&search=true")}var b="http://www.onetime.com/airpcode_usa.html"+f;
var a="scrollbars=yes,width=480,height=400,resizable=yes";window.open(b,"aircodes",a)}function verify(a){if(a.from.value&&a.to.value){return true}alert("Please provide city names or airport codes\nfor your flight search.");return false}function destroyFormValue(c){var a="";for(i=0;i<document.forms.length;
i++){var b=document.forms[i];if(b.elements[c]){b.elements[c].value=a}}}function destroyTidFid(){destroyFormValue("tid");destroyFormValue("fid")}function btnChange(a){if(a==1){document.getElementById("OTModF").style.display="";document.getElementById("OTModH").style.display="none";document.getElementById("OTF").className="current";
document.getElementById("OTH").className=""}else{document.getElementById("OTModF").style.display="none";document.getElementById("OTModH").style.display="";document.getElementById("OTF").className="";document.getElementById("OTH").className="current"}}function otRadioCheck(a){a.checked=false}HCAL_LAYER="HCAL";
HCAL_OPEN=null;HCAL_FIELD=null;HCAL_DATE=new Date();HCAL_STARTDATE=new Date();function h_open(b){h_open_pos(b,getW(b),0)}function h_open_pos(b,c,h){var f=getObject(HCAL_LAYER);var g=(HCAL_OPEN==null);if(HCAL_FIELD&&(b==HCAL_FIELD)){return false}if(!g){hideObject(HCAL_OPEN)}HCAL_OPEN=f;HCAL_FIELD=b;var e;
if(b.name=="inDate"){e=new Date();e.setDate(e.getDate()+14);HCAL_STARTDATE=new Date()}else{e=new Date(HCAL_DATE.getFullYear(),HCAL_DATE.getMonth(),HCAL_DATE.getDate());e.setDate(e.getDate()+1);HCAL_STARTDATE=e}h_renderMonth(e.getMonth()+1,e.getFullYear());moveObject(f,getX(b)+c,getY(b)+h);showObject(f);
if(g){trackMouseClick(h_checkClose)}}function h_checkClose(b){if(HCAL_OPEN==null){return}var a=getEventX(b);var c=getEventY(b);if(!(isInside(HCAL_FIELD,a,c,0,0,4,0)||isInside(HCAL_OPEN,a,c))){h_close()}}function h_setDate(c,a,b){if(HCAL_OPEN==null){return}HCAL_FIELD.value=(a<10?"0":"")+a+"/"+(b<10?"0":"")+b+"/"+c;
if(HCAL_FIELD.name=="inDate"){HCAL_DATE=new Date(c,a-1,b)}h_close()}function h_close(){hideObject(HCAL_OPEN);if(HCAL_OPEN!=null){untrackMouseClick()}HCAL_OPEN=null;HCAL_FIELD=null}function h_renderMonth(h,l){if(HCAL_OPEN==null){return}var q=HCAL_STARTDATE.getFullYear();var e=HCAL_STARTDATE.getMonth()+1;
var o=HCAL_STARTDATE.getDate();var k=new Date(l,h-1,1);var m=(h==2?28+((l%4==0)&&((l%100!=0)||(l%400==0))?1:0):30+(h<8?1-((h-1)%2):(h-1)%2));var f='<table border=0 cellpadding=1 cellspacing=0 bgcolor="#305799"><tr><td><table border=0 cellpadding=3 cellspacing=1 width=150><tr bgcolor="#305799"><td align=center><a rel="nofollow" href="javascript:void(0)" onclick="h_renderMonth('+(h>1?h-1:12)+","+(h>1?l:l-1)+');" style="color: white; font-weight: bold; text-decoration: none;">&laquo;</a></td><td colspan=5 align=center><font size=1 face="arial,helvetica" color=white><b>'+MONTHS[h-1].toUpperCase()+" "+l+'</b></font></td><td align=center><a href="javascript:void(0)" onclick="h_renderMonth('+(h<12?h+1:1)+","+(h<12?l:l+1)+');" style="color: white; font-weight: bold; text-decoration: none;">&raquo;</a></td></tr><tr bgcolor="#e1e1e1"><td align=center><font size=1 face="arial,helvetica">S</font></td><td align=center><font size=1 face="arial,helvetica">M</font></td><td align=center><font size=1 face="arial,helvetica">T</font></td><td align=center><font size=1 face="arial,helvetica">W</font></td><td align=center><font size=1 face="arial,helvetica">T</font></td><td align=center><font size=1 face="arial,helvetica">F</font></td><td align=center><font size=1 face="arial,helvetica">S</font></td></tr>';
var b=k.getDay()+1;var g=1,c,n;for(c=1;c<=m;c++){if(g==1){f+="<tr bgcolor=white>"}if((c==1)&&(b>1)){f+="<td colspan="+(b-1)+' bgcolor="#e1e1e1"><font size=1>&nbsp;</font></td>';g=b}n=((l>q)||((l==q)&&((h>e)||((h==e)&&(c>=o)))));f+='<td align=center><font face="arial,helvetica" size=1'+(n?'><a href="javascript:void(0)" onclick="h_setDate('+l+","+h+","+c+')"><b>':" color=gray>")+c+(n?"</b></a>":"")+"</font></td>";
if((c==m)&&(g<7)){f+="<td colspan="+(7-g)+' bgcolor="#e1e1e1"><font size=1>&nbsp;</font></td>';g=7}g++;if(g>7){g=1;f+="</tr>"}}f+="</table></td></tr></table>";writeObject(HCAL_OPEN,f)}function OTH_d(e,g){if(!e.value){alert("Please add a valid "+g+".");return false}var c,b;if((c=e.value.match(/^(1[0-2]|0?[1-9])\/(3[01]|[12][0-9]|0?[1-9])\/((20)?[0-9]{2})$/))||(b=e.value.match(/^(3[01]|[12][0-9]|0?[1-9])\.\s*(1[0-2]|0?[1-9])\.\s*((20)?[0-9]{2})$/))){var e,a,f;
if(c){e=Number(c[2]);a=Number(c[1]);f=Number(c[3])}else{e=Number(b[1]);a=Number(b[2]);f=Number(b[3])}f=(f<2000?f+2000:f);if(e>(a==2?28+((f%4==0)&&((f%100!=0)||(f%400==0))?1:0):30+(a<8?1-((a-1)%2):(a-1)%2))){alert("The "+g+" does not seem to be a valid date.");return false}e.value=(a<10?"0":"")+a+"/"+(e<10?"0":"")+e+"/"+f
}else{alert("The "+g+' does not seem to be a valid date.\nPlease provide a date in either the format\n"mm/dd/yyyy" or "dd. mm. yyyy".');return false}return true}function OTH_t(c){if(c.city&&(!c.city.value)){alert("Please provide a city name\nfor your hotel search.");return false}if(!OTH_d(c.inDate,"Check-In Date")){return false
}if(!OTH_d(c.outDate,"Check-Out Date")){return false}var b=c.inDate.value.match(/^(1[0-2]|0[1-9])\/(3[01]|[12][0-9]|0[1-9])\/(20[0-9]{2})$/);var a=c.outDate.value.match(/^(1[0-2]|0[1-9])\/(3[01]|[12][0-9]|0[1-9])\/(20[0-9]{2})$/);if((a[3]<b[3])||((a[3]==b[3])&&((a[1]<b[1])||((a[1]==b[1])&&(a[2]<=b[2]))))){alert("The Check-Out Date must be AFTER the Check-In Date.\nPlease correct and try again.");
return false}return true}FCAL_LAYER="FCAL";FCAL_OPEN=null;FCAL_FIELD=null;FCAL_DATE=new Date();FCAL_STARTDATE=new Date();function f_open(b){f_open_pos(b,getW(b),0)}function f_open_pos(b,c,h){var f=getObject(FCAL_LAYER);var g=(FCAL_OPEN==null);if(FCAL_FIELD&&(b==FCAL_FIELD)){return false}if(!g){hideObject(FCAL_OPEN)
}FCAL_OPEN=f;FCAL_FIELD=b;var e;if(b.name=="departureDate"){e=new Date();e.setDate(e.getDate()+14);FCAL_STARTDATE=new Date()}else{e=new Date(FCAL_DATE.getFullYear(),FCAL_DATE.getMonth(),FCAL_DATE.getDate());e.setDate(e.getDate()+1);FCAL_STARTDATE=e}f_renderMonth(e.getMonth()+1,e.getFullYear());moveObject(f,getX(b)+c,getY(b)+h);
showObject(f);if(g){trackMouseClick(f_checkClose)}}function f_checkClose(b){if(FCAL_OPEN==null){return}var a=getEventX(b);var c=getEventY(b);if(!(isInside(FCAL_FIELD,a,c,0,0,4,0)||isInside(FCAL_OPEN,a,c))){f_close()}}function f_setDate(c,a,b){if(FCAL_OPEN==null){return}FCAL_FIELD.value=(a<10?"0":"")+a+"/"+(b<10?"0":"")+b+"/"+c;
if(FCAL_FIELD.name=="departureDate"){FCAL_DATE=new Date(c,a-1,b-1)}f_close()}function f_close(){hideObject(FCAL_OPEN);if(FCAL_OPEN!=null){untrackMouseClick()}FCAL_OPEN=null;FCAL_FIELD=null}function f_renderMonth(h,l){if(FCAL_OPEN==null){return}var q=FCAL_STARTDATE.getFullYear();var e=FCAL_STARTDATE.getMonth()+1;
var o=FCAL_STARTDATE.getDate();var k=new Date(l,h-1,1);var m=(h==2?28+((l%4==0)&&((l%100!=0)||(l%400==0))?1:0):30+(h<8?1-((h-1)%2):(h-1)%2));var f='<table border=0 cellpadding=1 cellspacing=0 bgcolor="#305799"><tr><td><table border=0 cellpadding=3 cellspacing=1 width=150><tr bgcolor="#305799"><td align=center><a rel="nofollow" href="javascript:void(0)" onclick="f_renderMonth('+(h>1?h-1:12)+","+(h>1?l:l-1)+')" style="color: white; font-weight: bold; text-decoration: none;">&laquo;</a></td><td colspan=5 align=center><font size=1 face="arial,helvetica" color=white><b>'+MONTHS[h-1].toUpperCase()+" "+l+'</b></font></td><td align=center><a rel="nofollow" href="javascript:void(0)" onclick="f_renderMonth('+(h<12?h+1:1)+","+(h<12?l:l+1)+')" style="color: white; font-weight: bold; text-decoration: none;">&raquo;</a></td></tr><tr bgcolor="#e1e1e1"><td align=center><font size=1 face="arial,helvetica">S</font></td><td align=center><font size=1 face="arial,helvetica">M</font></td><td align=center><font size=1 face="arial,helvetica">T</font></td><td align=center><font size=1 face="arial,helvetica">W</font></td><td align=center><font size=1 face="arial,helvetica">T</font></td><td align=center><font size=1 face="arial,helvetica">F</font></td><td align=center><font size=1 face="arial,helvetica">S</font></td></tr>';
var b=k.getDay()+1;var g=1,c,n;for(c=1;c<=m;c++){if(g==1){f+="<tr bgcolor=white>"}if((c==1)&&(b>1)){f+="<td colspan="+(b-1)+' bgcolor="#e1e1e1"><font size=1>&nbsp;</font></td>';g=b}n=((l>q)||((l==q)&&((h>e)||((h==e)&&(c>=o)))));f+='<td align=center><font face="arial,helvetica" size=1'+(n?'><a rel="nofollow" href="javascript:void(0)" onclick="f_setDate('+l+","+h+","+c+')"><b>':" color=gray>")+c+(n?"</b></a>":"")+"</font></td>";
if((c==m)&&(g<7)){f+="<td colspan="+(7-g)+' bgcolor="#e1e1e1"><font size=1>&nbsp;</font></td>';g=7}g++;if(g>7){g=1;f+="</tr>"}}f+="</table></td></tr></table>";writeObject(FCAL_OPEN,f)}function OTF_d(e,g){if(!e.value){alert("Please add a valid "+g+".");return false}var c,b;if((c=e.value.match(/^(1[0-2]|0?[1-9])\/(3[01]|[12][0-9]|0?[1-9])\/((20)?[0-9]{2})$/))||(b=e.value.match(/^(3[01]|[12][0-9]|0?[1-9])\.\s*(1[0-2]|0?[1-9])\.\s*((20)?[0-9]{2})$/))){var e,a,f;
if(c){e=Number(c[2]);a=Number(c[1]);f=Number(c[3])}else{e=Number(b[1]);a=Number(b[2]);f=Number(b[3])}f=(f<2000?f+2000:f);if(e>(a==2?28+((f%4==0)&&((f%100!=0)||(f%400==0))?1:0):30+(a<8?1-((a-1)%2):(a-1)%2))){alert("The "+g+" does not seem to be a valid date.");return false}e.value=(a<10?"0":"")+a+"/"+(e<10?"0":"")+e+"/"+f
}else{alert("The "+g+' does not seem to be a valid date.\nPlease provide a date in either the format\n"mm/dd/yyyy" or "dd. mm. yyyy".');return false}return true}function OTF_t(c){if((c.from&&(!c.from.value))||(c.to&&(!c.to.value))){alert("Please provide city names or airport codes\nfor your flight search.");
return false}if(!OTF_d(c.departureDate,"Departure Date")){return false}if(!OTF_d(c.returnDate,"Return Date")){return false}var b=c.departureDate.value.match(/^(1[0-2]|0[1-9])\/(3[01]|[12][0-9]|0[1-9])\/(20[0-9]{2})$/);var a=c.returnDate.value.match(/^(1[0-2]|0[1-9])\/(3[01]|[12][0-9]|0[1-9])\/(20[0-9]{2})$/);
if((a[3]<b[3])||((a[3]==b[3])&&((a[1]<b[1])||((a[1]==b[1])&&(a[2]<b[2]))))){alert("The Return Date must be ON OR AFTER the Departure Date.\nPlease correct and try again.");return false}return true}var baseURL=document.location.href.replace(/(http:\/\/[^\/]+\/).*/,"$1");var VT_DYNA_PATH=baseURL.substring(0,baseURL.indexOf("//")+2)+"members"+baseURL.substring(baseURL.indexOf("."));
function _win(k,f,a,u,o,b,r,g){try{var u=window.open(a,f,"resizable=1,scrollbars=1"+(u?",width="+u:"")+(o?",height="+o:"")+(b?","+b:""));u.focus();return u}catch(q){var v=""}return null}function checkConsole(){try{var f=new Date();var q=null;var a=null;try{q=(VT.Cookie.get("VT")||"").split("|");a=q[0].split(".")[0]
}catch(l){}if(a){var h=q[0];for(var k=1;(k<q.length)||(k<=6);k++){h+="|"+(k==6?f.getTime():q[k])}VT.Cookie.set("VT",h,(Number(q[7])?300:0),".virtualtourist.com");if(f-(Number(q[6])||0)>1800000){var m=VT.Cookie.get("VTC_"+a);var b=(m?Number(m.split("|")[0]):1<<7);if(((1<<7)&b)>0){showConsole(false)}}window.setTimeout("checkConsole();",600000)
}}catch(l){var o="";for(var g in l){o+=g+"="+l[g]+"\n"}alert("CHECK: there was an error,please mail feedback@virtualtourist.com with this message.\n\n"+o)}}function showConsole(a){var b=_win("VT Notice Console","VTConsole",VT_DYNA_PATH+"m/cn/",350,450,null,"console",(a?null:'VT Notice Console was blocked by a popup blocker.\n\nIf you want your console to open automatically when you login, please disable your pop up blocker.\n\nIf you want to open the Notice Console manually, click the "notices console" link at the top of this page. You do NOT need to disable pop ups to use the Notices Console.\n\nTo control your Notices Console, simply adjust Preferences found in your console.'));
if(b==null){setTimeout("consoleBlinkOn()",100)}}function showConsoleClick(a){var b=_win("VT Notice Console","VTConsole",VT_DYNA_PATH+"m/cn/",350,450,null,"console",(a?null:'VT Notice Console was blocked by a popup blocker.\n\nIf you want your console to open automatically when you login, please disable your pop up blocker.\n\nIf you want to open the Notice Console manually, click the "notices console" link at the top of this page. You do NOT need to disable pop ups to use the Notices Console.\n\nTo control your Notices Console, simply adjust Preferences found in your console.'));
if(b==null){var c=getObject("nconsole");if(c==null){return}c.href=VT_DYNA_PATH+"m/cn/";c.target="_blank"}}function consoleBlinkOn(){if(blinktimes++>10){blinktimes=0;return}var a=getObject("nconsole");if(a==null){return}a.className="blinkOn";setTimeout("consoleBlinkOff()",100)}function consoleBlinkOff(){var a=getObject("nconsole");
if(a==null){return}a.className="blinkOff";setTimeout("consoleBlinkOn()",200)}function pc(a){_win("Post Card","PCARD_WIN",VT_DYNA_PATH+"vt/ps/"+a+"/0/",640,600,null,"pc")}var picwindow=null;function wopic(k,a,f){var m=(screen.width>=800?screen.width:800)-40;var c=(screen.height>=600?screen.height:600)-80;
var b=0;var l=0;if(a+150>m){a=m;b=1}else{if(a<=350){a=500;b=Math.round((m-a)/2)}else{a=a+150;b=Math.round((m-a)/2)}}if(f+250>c){f=c;l=1}else{f=f+250;l=Math.round((c-f)/2)}try{if(picwindow!=null&&!picwindow.closed){picwindow.location=VT_DYNA_PATH+k;picwindow.resizeTo(a,f)}else{picwindow=_win("picture window","PIC_WIN",VT_DYNA_PATH+k,a,f,null,"wopic-"+k)
}picwindow.moveTo(b,l);picwindow.focus()}catch(g){}}function pic(b,a,c){wopic("m/p/m/"+b+"/",a,c)}function cnpic(b,a,c){wopic("m/p/c/"+b+"/",a,c)}function mpic(c,a,b){wopic("m/p/p/"+c+"/",a,b)}function wo(a){_win("text window","COPY_WIN",a,550,500,null,"wo-"+a)}function mapwin(a){_win("map window","EXP_CITY",VT_DYNA_PATH+"l/"+a,800,530,"toolbar=1,status=1","mapwin-"+a)
}function vtmapwin(a){_win("map window","EXP_CITY",a,800,700,"toolbar=1,status=1","mapwin-"+a)}function comment(a,b){_win("comments window","COMMENT_WIN",VT_DYNA_PATH+"m/cm/"+a+"/"+b+"/",500,400,"dependent=1","cmt-"+a+"-"+b)}function comment(b,c,a){_win("comments window","COMMENT_WIN",VT_DYNA_PATH+"m/cm/"+b+"/"+c+"/?"+a,500,400,"dependent=1","cmt-"+b+"-"+c)
}function tellfriend(a,c,b){_win("message window","TF_WIN",VT_DYNA_PATH+"vt/tf/1/"+a+"/"+c+"/"+b+"/",530,540,"status=1","tf-"+a+"-"+c+"-"+b)}function addtocustomtravelguide(b,a){_win("Custom Travel Guide window","ADD_WIN",VT_DYNA_PATH+"ptg/pa/0/1/"+b+"/"+a+"/?-vt-9",500,400,null,"ctg-"+b+"-"+a)}function vote(c,a,e,b){_win("vote","VOTE_WIN",VT_DYNA_PATH+"m/tv/"+c+"/"+e+"/"+a+"/"+b+"/",240,200,"dependent=1","vote-"+c+"-"+e)
}function adjustRating(b,c,a){_win("Adjust Rating window","RWIN",VT_DYNA_PATH+"staff/ry/"+b+"/"+c+"/"+a+"/",500,500,null,null,null)}function deleteTip(a){if(true==confirm("Delete this tip?")){_win("delete tip window","DELETE_WIN",VT_DYNA_PATH+"vt/y/3/"+a+"/0/",550,500,null,"delete-"+a)}}function removePicFromRotation(a){if(true==confirm("Remove this picture from rotation?")){_win("remove  from rotation window","REMOVE_WIN",VT_DYNA_PATH+"vt/y/9/"+a+"/0/",550,500,null,"remove-"+a)
}}var _t="tim",_w="www",_h="http://",_o="on",_e="e",_c="com",_dot=".";function othotellink(b,a,f,e){var c=_h+_w+_dot+_o+_e+_t+_e+_dot+_c+"/hotels?"+(a?"nhid="+a+"&":"")+(f?"location="+f+"&":"")+"sid="+b+(e?"&kwid="+e:"");window.status=c;_win("ot hotel window","OT_HOTEL_WIN",c,800,600,"toolbar=1,status=1,menubar=1,directories=1,location=1","")
}function otflightlink(a,f,e,c){var b=_h+_w+_dot+_o+_e+_t+_e+_dot+_c+"/flights?"+(f?"to="+f+"&":"")+(e?"tid="+e+"&":"")+"sid="+a+(c?"&kwid="+c:"");window.status=b;_win("ot flight window","OT_FLIGHT_WIN",b,800,600,"toolbar=1,status=1,menubar=1,directories=1,location=1","")}function checkEmail(a,b){if(a.match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/)){if(b!=null&&b!=""){urchinTracker(b)
}return true}alert("Please provide a valid email address");return false}var blinktimes=0;function opSrvA(){num=Math.random();try{srvA=VT.Cookie.get("srvA");if(srvA==null||srvA==""){if(num>=0.9){swin=window.open("http://members.virtualtourist.com/vt/sy/9/","SYWIN","width=550,height=525,dependent=yes,scrollbars=yes").focus()
}VT.Cookie.set("srvA","op",30,"virtualtourist.com")}}catch(a){}}var cm8pr_plugin=null;function toggleLayer(c,h,g){var f=c||window.event;if(f&&f.stopPropagation){f.stopPropagation()}else{f.cancelBubble=true}var b;for(var a=0;a<h.length;a++){b=document.getElementById(h[a]);b.style.display=g}}var overlay;
var originalX;var originalY;function showBuildLayer(b,a){var c=document.getElementById("callOutBox");var e=document.getElementById("callOutLayer");var f=document.getElementById("buildResearchLayer");c.style.cursor="default";if(f.isOpen==true||f.isOpen=="true"){return}if(typeof f.isOpen=="undefined"){originalX=VT.Dom.getX(c);
originalY=VT.Dom.getY(c)}overlay=VT.Dom.addScreenOverlay(f,"buildResearchOverlay");overlay.id="overlayLayer";overlay.style.zIndex=800;f.style.zIndex=1000000;c.style.zIndex=1000000;e.style.zIndex=1000000;e.style.position="absolute";e.style.top=originalY+VT.Dom.getH(c)-1+"px";e.style.left=originalX-75+"px";
c.style.position="absolute";c.style.top=originalY+"px";c.style.left=originalX+"px";toggleLayer(b,new Array("overlayLayer","closeLayer","callOutLayer"),"block");c.style.borderBottom="none";VT.Dom.hideBleeders();f.isOpen=true}function hideBuildLayer(a){var c=document.getElementById("buildResearchLayer");
var b=document.getElementById("callOutBox");c.isOpen=false;overlay.style.visibility="hidden";toggleLayer(a,new Array("overlayLayer","closeLayer","callOutLayer"),"none");b.style.borderBottom="1px solid #8faf01";b.style.cursor="hand";b.style.cursor="pointer";VT.Dom.showBleeders()}function selectTab(a,b){document.getElementById(a).className="select";
document.getElementById(b).className="deselect"}function showTab(k,b){var g=document.getElementById(k);var h=document.getElementById(b);g.style.display="block";h.style.display="none";if(g.innerHTML==""){var e=document.getElementById("mid").value;var c=document.getElementById("mname").value;var a=document.getElementById("lid");
var f=0;if(a!=null){f=a.value}if(k=="shareInterests"){AjaxServlet.getSharedInterestsTabHtml(e,c,sharedInterestsCallback)}else{if(k=="wishlistTravel"){AjaxServlet.getWishlistTabHtml(e,f,c,wishlistCallback)}}}}function changeWishlistLocation(c,b,a){AjaxServlet.getWishlistTabHtml(b,c,a,wishlistCallback)
}function sharedInterestsCallback(a){if(a){document.getElementById("shareInterests").innerHTML=a}}function wishlistCallback(a){if(a){document.getElementById("wishlistTravel").innerHTML=a}}function showHide(a){(document.getElementById(a).style.display=="none")?document.getElementById(a).style.display="block":document.getElementById(a).style.display="none"
}function showHideInline(a){(document.getElementById(a).style.display=="none")?document.getElementById(a).style.display="inline":document.getElementById(a).style.display="none"}function toggleShowHideText(a){(a.innerHTML=="...more")?a.innerHTML="...less":a.innerHTML="...more"}function getLoggingUrl(b){var a=/^\//;
if(a.test(logginUrl)){b=logginUrl.substr(1)}window.location="http://members.virtualtourist.com/"+b;return false}var ns=(navigator.appName.indexOf("Netscape")!=-1);var d=document;function floatDiv(f,e,c){var b=d.getElementById?d.getElementById(f):d.all?d.all[f]:d.layers[f];if(b){var a=document.layers?"":"px";
window[f+"_obj"]=b;if(d.layers){b.style=b}b.cx=b.sx=e;b.cy=b.sy=c;b.sP=function(g,h){this.style.left=g+a;this.style.top=h+a};b.style.display="block";b.floatIt=function(){var h,g;h=(this.sx>=0)?0:ns?innerWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;
g=ns?pageYOffset:document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;if(this.sy<0){g+=ns?innerHeight:document.documentElement&&document.documentElement.clientHeight?document.documentElement.clientHeight:document.body.clientHeight}this.cx+=(h+this.sx-this.cx)/8;
this.cy+=(g+this.sy-this.cy)/8;this.sP(this.cx,this.cy);setTimeout(this.id+"_obj.floatIt()",40)}}else{b={floatIt:function(){}}}return b}function posTop(){var b=0,c=document.documentElement,a=document.body;if(self.pageYOffset){b=self.pageYOffset}else{if(c&&c.scrollTop){b=c.scrollTop}else{if(a){b=a.scrollTop
}}}return b}function moveObjTo(b,a,e){var c=b.style;c.left=a;c.top=e}function picPage(a){window.location=VT_DYNA_PATH+"m/p/m/"+a+"/";return false}function buildLocalIframe(a,c,h,g,f){var e=document.createElement("iframe");e.setAttribute("scrolling","no");e.setAttribute("frameBorder","0");if(id){e.id=g
}e.className=f;$(c).append(e);var l=e.contentDocument;if(l==undefined||l==null){l=e.contentWindow.document}l.open();l.write(a);l.close();if(h){var b=window.onload?window.onload:function(){};function k(){height=Math.max(l.body.scrollHeight,Math.max(l.body.clientHeight,l.documentElement.clientHeight));
e.height=height;e.style.height=height+"px";return b()}window.onload=k}}$D.ready(function(){if($B.hasClass("legacySignUp")){var a=$("input[name='sow']").val();$("#cu").html(parseInt(a,16))}});VT.CheckRatesBlockedBox=(function(){var m;var k;var l;var c;var a;var g;var q;var o;var f=[];var b=function(){g.text("You have checked "+f.length+" of "+l.length+" sites.")
};var n=function(r){if($.inArray(r,f)<0){f[f.length]=r}};var e=function(){var r=$('<div class="checkRatesBox glob_modalContainer" id="chckRts_ieModal">	<div class="header">Your pop-up blocker is on<span class="close">X</span></div>	<div class="taContent">		<img src="http://cache.virtualtourist.com/p/virtualtourist.gif" class="vtLogo" alt="Virtual Tourist Logo" width="141" height="66" />		<p class="inst">Click each "Check Rates" button to view the sites you selected.</p>		<p class="amtChecked"></p>		<ul>		</ul>	</div></div>');
var t=function(){r.stop();r.hide();if(k){k.remove()}};r.find(".close").click(t);a=r.find("ul");g=r.find(".amtChecked");$B.append(r);r.css({position:"absolute",left:10,top:$W.scrollTop()+10});k=new VT.Effects.GreyOut(r.get())};function h(t,v,r){var u=this;c=t;o=v;q=r;f=[];this.fire=function(x){f=[];l=x;
if(!m){m=e()}var w=function(y){return($.inArray(y,f)>-1)};l.each(function(z,B){var y=$(B);var D=y.val();if(y.attr("opened")==1){n(D)}var C=w(D)?" disabled":"";var A=$('<li class="crLink"><div class="checkRates btn'+C+'"></div>'+y.parent().text()+"</li>");A.click(function(){var E=o(B);z=f.length;q(E,z,B);
n(D);w(D)&&A.addClass("disable");b();return false});a.append(A);z++});b()};return this}return h})();(function(){var b={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};var k=false;var f;function c(n){var o=$(n.target.form);var r=o.find("select[name=inMonth]").attr("selectedIndex");
var v=o.find("select[name=inDay]").attr("selectedIndex");var y=o.find("select[name=inMonth]");var x=o.find("select[name=inDay]");var q=o.find("select[name=inDay] option").size();var w=o.find("select[name=inMonth] option").size();var u=o.find("select[name=outMonth]");var t=o.find("select[name=outDay]");
if(e(o)){if(v>=q-1){if(r<w-1){t.attr("selectedIndex",0);u.attr("selectedIndex",r+1)}}else{t.attr("selectedIndex",v+1);u.attr("selectedIndex",r)}}}function m(n){return n>9?""+n:"0"+n}function l(n){var q=$(n.target.form);var o=q.find(".selInp input[name=inDate]");var t=q.find(".selInp input[name=outDate]");
var r=Date.fromString(o.val());var w=Date.fromString(t.val());var y=q.find(".selInp input[name=inDay]");var v=q.find(".selInp input[name=inMonth]");var u=q.find(".selInp input[name=outDay]");var x=q.find(".selInp input[name=outMonth]");y.val(r.getDate());v.val(Date.abbrMonthNames[r.getMonth()]+" "+r.getFullYear());
u.val(w.getDate());x.val(Date.abbrMonthNames[w.getMonth()]+" "+w.getFullYear());if(r.getTime()>=w.getTime()){w.setTime(r.getTime()+86400000);t.val(""+m(w.getMonth()+1)+"/"+m(w.getDate())+"/"+w.getFullYear());u.val(w.getDate());x.val(Date.abbrMonthNames[w.getMonth()]+" "+w.getFullYear())}o.dpSetSelected(o.val());
t.dpSetSelected(t.val())}function e(u){var r,o,v,n;r=u.find("select[name=inMonth]").val();if(r){o=Number(u.find("select[name=inDay]").val());v=u.find("select[name=outMonth]").val();n=Number(u.find("select[name=outDay]").val())}else{r=u.find("input[name=inMonth]").val();o=Number(u.find("input[name=inDay]").val());
v=u.find("input[name=outMonth]").val();n=Number(u.find("input[name=outDay]").val())}var q=h(r);var t=h(v);return q.year>t.year||(q.year==t.year&&b[q.month]>b[t.month])||(q.year==t.year&&b[q.month]==b[t.month]&&o>=n)}function h(q){var o=q.split(" ");var n=o.length>1?parseInt(o[1]):-1;return{month:o[0],year:n}
}function a(n){try{g(n.target)}catch(o){}return false}function g(y){var B=$(y.form);var v=B.find("div.pb3 [type=checkbox]:checked");if(v.length===0){B.find(".errbox").text("Please select at least one vendor from the list.");return false}var w,D,C,x,z;z=B.find("select[name=adults]").val();w=B.find("select[name=inMonth]").val();
if(w){D=B.find("select[name=inDay]").val();C=B.find("select[name=outMonth]").val();x=B.find("select[name=outDay]").val()}else{w=B.find("input[name=inMonth]").val();D=B.find("input[name=inDay]").val();C=B.find("input[name=outMonth]").val();x=B.find("input[name=outDay]").val()}var o=new Date();if(b[w]<=o.getMonth()&&D<=o.getDate()){B.find(".errbox").text("Please choose dates in the future.");
return false}if(e(B)){B.find(".errbox").text("Please choose a check-out date that is at least one day later than your check-in date.");return false}var n="&inMonth="+w+"&inDay="+D+"&outMonth="+C+"&outDay="+x+"&adults="+z;var F=false;var A=function(N){var M="http://www.tripadvisor.com";var H={provider:"taCheckRates"};
var L=["pageType"];var K=B.find("input[name='d']").val();if(K){H.taHotelId=K}else{L[L.length]="taHotelId"}for(var J=0;J<L.length;J++){var G=r(N,L[J]);if(G){H[L[J]]=G}}var I=VT.Util.getLoggingUrl(H,M+$(N).val()+n);return I};var E=function(G,L,N){var M=VT.Dom.getDimensions();var P=800;var K=600;var J=(screen.width?screen.width:1024);
var I=(J-P-150);if(I<0){I=0}var H=I+((L*50));var O=(L*50);var Q=_win("cr"+$(N).attr("name"),"cr"+$(N).attr("name"),G,P,K,"location=1,toolbar=1,screenX="+H+",screenY="+O+",left="+H+",top="+O);if(Q!==null){$(N).attr("opened","1")}return Q};var r=function(K,H){var G=$(K);var I=G.parents(".checkRatesBox");
if(I){var J=I.data(H);if(J){return J}}};v.each(function(I,J){var H=A(J);if(k&&($(J).attr("opened")==="1"||F)){return}var G=E(H,I,J);if(G==null){k=true}F=true;I++});var t=B.find("div.pb3 [type=checkbox]:checked:[opened=1]");if(t.length<v.length){if(!f){f=new VT.CheckRatesBlockedBox(B,A,E)}f.fire(v);var q=$(y).parents(".checkRatesBox");
if(q){var u=q.data("chRtsBoxClose");if(u){u()}}}else{t.each(function(G,H){$(H).removeAttr("opened")});B.find(".msgbox").empty();B.find(".errbox").empty()}return true}$D.ready(function(){$(".hotelSpecAB .commerce .chRtSubmit .checkRates").live("click",a);$("#inDate").live("change",l);$("#outDate").live("change",l);
$(".checkRatesImbed .submitbtn").live("click",a);$(".checkRatesImbed .inMonth").live("change",c);$(".checkRatesImbed .inDay").live("change",c)})})();VT.CheckRatesBoxV2=(function(){var c={position:"left",useOverlay:true,overlayClose:true};var a=[];function b(l,k,e,h){var m=this;this.opts=$.extend({},c,h);
this.setPosition=function(n,o){$(m.box).css({position:"absolute",left:n,top:o})};this.positionBox=function(o,n){o=$(o);n=n||m.opts.position;var r,q;var t=o&&o.offset();switch(n){case"left":q=t.left-m.box.outerWidth();r=t.top;break;case"right":q=t.left+o.width();r=t.top;break;case"top":q=t.left+(o.width()/2)-(m.box.outerWidth()/2);
r=t.top-m.box.outerHeight();break;case"bottom":q=t.left+(o.width()/2)-(m.box.outerWidth()/2);r=t.top+o.height();break;case"center":q=Math.round(($W.width()-m.box.width())/2);r=Math.round(($W.height()-m.box.height())/2+posTop())}m.setPosition(q,r)};this.open=function(n){m.hovering=false;if(!m.box){f(n.target)
}g(n.target);if(m.opts.useOverlay){m.overlay=new VT.Effects.GreyOut(m.box.get());m.opts.overlayClose&&m.overlay.addClickListener(m.close)}};this.close=function(){m.box.hide();m.overlay&&m.overlay.remove()};var g=function(n){$.each(a,function(){m!=this&&this.close()});m.positionBox(n);m.box.show()};this.openHover=function(n){if(!m.box){f(n.target)
}m.mouseOverBoxOrButton=true;if(m.box.css("display")=="none"){m.hovering=true;g(n.target);m.box.bind("click",m.keepOpen);m.box.bind("mouseout",m.closeHover);m.box.bind("mouseover",function(){m.mouseOverBoxOrButton=true})}};this.keepOpen=function(n){m.hovering=false};this.closeHover=function(n){m.mouseOverBoxOrButton=false;
window.setTimeout(m.closeHoverNow,250)};this.closeHoverNow=function(){if(m.hovering&&(!m.mouseOverBoxOrButton)){m.box.hide()}};function f(n){m.box=$('<div class="checkRatesBox">	<span class="close">close</span>	<div class="taContent" style="padding:10px;"></div></div>			');m.box.hide();$B.append(m.box);
var q=m.box.children(".close");q.click(m.close);var o=m.box.children(".taContent");var r=VT.HTML_UPDATER.baseUrl("taCheckRates")+"&taHotelId="+l+"&pageType="+k;o.append(loadingHtml);o.load(r,null,function(){m.positionBox(n)});m.box.data("chRtsBoxClose",m.close);m.box.data("pageType",k);m.box.data("taHotelId",l);
a[a.length]=m}$(e).bind("mouseover",this.openHover).bind("mouseout",this.closeHover).bind("click",this.open);return this}return b})();VT.HotelsLayer={open:function(c){var e="http://cache.virtualtourist.com/";var b=document.createElement("div");b.id="hotelsLayer";var f=c.numHotels;var a=(f?f+" ":"")+c.locationName+" Hotels";
b.innerHTML='	<div class="innerBox clearfix">		<h3>Visiting '+c.locationName+'?</h3>		<p class="slogan">Get real reviews from VirtualTourist locals and travelers!</p>		<a class="close" onclick="urchinTracker(\'/nopg/hotels/CloseHotelsLayer\');document.getElementById(\'hotelsLayer\').style.display=\'none\';" urchinTracker(\'/nopg/hotels/CloseHotelsLayer\'); href="javascript:void(0);">			<img border="0" src="'+e+'i/X-Close.gif" alt="close"/>		</a>		<div class="body">			<img class="hotelEmblem" src="'+e+'i/hotel.gif"/>			<div class="callToAction">				<p>Read reviews on</p>				<a onclick="urchinTracker(\'/nopg/hotels/LinkHotelsLayer\');" href="'+c.path+'">'+a+'</a>				<a onclick="urchinTracker(\'/nopg/hotels/ButtonHotelsLayer\');" href="'+c.path+'" class="go">					<img border="0" src="'+e+'i/go_button_orange.gif" alt="go"/>				</a>			</div>			<div class="spacer"></div>		</div>		<div class="vtmark">			<img src="'+e+'d/vtLayerLogo.gif"/>		</div>		<div class="spacer"></div>	</div>';
document.body.appendChild(b);urchinTracker("/nopg/hotels/HotelsLayer")}};VT.PopUnder={infoMap:null,fired:false,getPopUnderDimensions:function(){var n=VT.Dom.getDimensions().viewport;var c=790;var h=650;var l=1;var e=1;if(window.ie7){l=250;e=100}if(window.webkit){l=85;e=100}var m=(window.screenLeft||window.screenX);
var k=(window.screenTop||window.screenY);if(typeof(m)=="undefined"){m=0;k=0;var g=m+window.screen.availWidth-l;var f=k+window.screen.availHeight-e}else{var g=m+n.width-l;var f=k+n.height-e}if(window.ie7){f=f-95;g=g+13}else{if(window.safari){f=f-16}else{g=5000;f=5000}}var b=m+(n.width-c)/2;var a=k+(n.height-h)/2;
return{initX:g,initY:f,finalX:b,finalY:a,initW:l,initH:e,finalW:c,finalH:h,nX:m,nY:k}},open:function(){this.setPopUnderPerformedCookie();var c=this.getPopUnderUrl();try{if(!this.fired&&c){this.fired=true;var k=VT.PopUnder.getPopUnderDimensions();var b=this.checkForSmoothOpen();var g=b?"init":"final";
var e={x:"x",y:"y",w:"w",h:"h"};for(var h in e){e[h]=k[g+h.toUpperCase()]}var a=window.open("http://"+document.domain+"/assets/blank.html","CommercePopunder","toolbar=1,location=1,directories=0,status=1,menubar=1,resizable=1,copyhistory=1,scrollbars=1,width="+e.w+",height="+e.h+",left="+e.x+",top="+e.y);
if(a){try{a.blur();window.focus();a.opener=self;if(b){a.moveTo(k.finalX,k.finalY);a.resizeTo(k.finalW,k.finalH)}}catch(f){}a.location.href=c}}}catch(f){}this.fired=true},checkForSmoothOpen:function(){var b=BrowserDetect.OS==="Mac"&&BrowserDetect.browser==="Firefox"&&BrowserDetect.version>=3;var c=BrowserDetect.browser==="Camino";
var a=!(b||c);return a},addTriggers:function(e){this.infoMap=e;var f=window.onbeforeunload||function(){};window.onbeforeunload=function(){VT.PopUnder.open();return f()};var c=document.getElementsByTagName("a");for(var b=0;b<c.length;b++){(function(){var g=c[b].onclick||function(){};c[b].onclick=function(){VT.PopUnder.open();
return g.apply(c[b])}})()}var a=document.getElementsByTagName("form");for(var b=0;b<a.length;b++){(function(){var g=a[b].onsubmit||function(){};a[b].onsubmit=function(){VT.PopUnder.open();return g.apply(a[b])}})()}},getPopUnderUrl:function(){var a;if(this.infoMap&&this.infoMap.url){a=this.infoMap.url
}return a},setPopUnderPerformedCookie:function(){var a="."+document.domain.match(/\w+\.\w+$/);VT.Cookie.set("CommercePopunder","performed",1,a)}};$D.ready(function(){var b=function(){var k=VT.Cookie.get("CommercePopunder");var g=VT.Cookie.get("VT");var h=(k!=="performed")&&!g;return h};var f=function(){var h=$B.hasClass("activity");
var g=location.href.indexOf("/hotels/")!==-1;var k=$B.hasClass("homepage");return !(g||h||k)};var e=false;var a=function(){if(!e){e=true;var k=(VT.PopUnderInfo&&VT.PopUnderInfo.awLayer);var g=(VT.PopUnderInfo&&VT.PopUnderInfo.hotelsLayer)||VT.HotelsLayerInfo;if(k){new VT.TAAirWatch(VT.PopUnderInfo.userIP,VT.PopUnderInfo.locationName)
}else{if(g){var h=VT.PopUnderInfo||VT.HotelsLayerInfo;VT.HotelsLayer.open(h)}}VT.PopUnder.addTriggers(VT.PopUnderInfo)}};var c=function(){var n=BrowserDetect.OS,l=BrowserDetect.browser;var m=n==="Linux"&&l==="Firefox";var g=n==="Windows"&&l==="Safari";var k=n==="Windows"&&l==="Opera";var o=l==="Chrome";
var h=m||g||k||o;return !h};if(f()&&b()&&c()){a()}});VT.ASDF=(function(){var a=this;function c(e){if(e>=97&&e<=122){return e-61}if(e>=65&&e<=90){return e-55}if(e>=48&&e<=71){return e-48}return -1}function b(g){var l={"":["&","=","p","6","?","H","%","B",".com","k","9",".html","n","M","r","www.","h","b","t","a","0","/","d","O","j","http://","_","L","i","f","1","e","-","2",".","N","m","A","l","4","R","C","y","S","o","+","7","I","3","c","5","u",0,"T","v","s","w","8","P",0,"g",0],q:[0,"__3F__",0,"Photos",0," target=_blank>https://",".edu","*","Y",">",0,0,0,0,0,0,"`","__2D__","X","<","slot",0,"ShowUrl","Owners",0,"[","q",0,"MemberProfile",0,"ShowUserReviews",'"',"Hotel",0,0,"Expedia","Vacation","Discount",0,"UserReview","Thumbnail",0,"__2F__","Inspiration","V","Map",":","@",0,"F","help",0,0,"Rental",0,"Picture",0,0,0,"hotels",0,"ftp://"],x:[0,0,"J",0,0,"Z",0,0,0,";",0,"Text",0,"(","x","GenericAds","U",0,"careers",0,0,0,"D",0,"members","Search",0,0,0,"Post",0,0,0,"Q",0,"$",0,"K",0,"W",0,"Reviews",0,",","__2E__",0,0,0,0,0,0,0,"{","}",0,"Cheap",")",0,0,0,"#",".org"],z:[0,"Hotels",0,0,"Icon",0,0,0,0,".net",0,0,"z",0,0,"pages",0,"geo",0,0,0,"cnt","~",0,0,"]","|",0,"tripadvisor","Images","BookingBuddy",0,"Commerce",0,0,"partnerKey",0,"area",0,"Deals","from","\\",0,"urlKey",0,"'",0,"WeatherUnderground",0,"MemberSign","Maps",0,"matchID","Packages","E","Amenities","Travel",".htm",0,"!","^","G"]};
var f="";for(var e=0;e<g.length;e++){var m=g.charAt(e);var h=m;if(l[m]&&e+1<g.length){e++;h+=g.charAt(e)}else{m=""}var k=c(g.charCodeAt(e));if(k<0||typeof l[m][k]=="String"){f+=h}else{f+=l[m][k]}}return f}a.asdf=function(e){window.location=b(e)};a.asdfPopup=function(k,f,h,e){if(!f){f="win"}if(!h){h=800
}if(!e){e=600}var g=b(k);var l=g.indexOf("?")>-1;_win(f,f,g+(l?"&":"?")+"ref="+Url.encode(document.location.href),h,e,"location=1,toolbar=1,screenX=0,screenY=0,left=0,top=0")};a.asdfGoTo=function(h,g){var f=b(h);var e=null;while((e=/<\%\=(\w*)\%>*/.exec(f))!=null){f=f.replace(e[0],g[e[1]])}if(g.extra){f+=g.extra
}window.location=f};asdfst=function(e){return b(e)};return a})();$D.ready(function(){$("#quickSearch_dropDown").sSelect()});(function(a){a.fn.extend({autocomplete:function(b,c){var f=typeof b=="string";var e=typeof b=="function";c=a.extend({},a.Autocompleter.defaults,{url:f?b:null,data:f?null:b,dataSource:e?b:null,delay:f?a.Autocompleter.defaults.delay:10,max:c&&!c.scroll?10:150},c);
c.highlight=c.highlight||function(g){return g};c.formatMatch=c.formatMatch||c.formatItem;return this.each(function(){new a.Autocompleter(this,c)})},result:function(b){return this.bind("result",b)},search:function(b){return this.trigger("search",[b])},flushCache:function(){return this.trigger("flushCache")
},setOptions:function(b){return this.trigger("setOptions",[b])},unautocomplete:function(){return this.trigger("unautocomplete")}});a.Autocompleter=function(o,h){var c={UP:38,DOWN:40,DEL:46,TAB:9,RETURN:13,ESC:27,COMMA:188,PAGEUP:33,PAGEDOWN:34,BACKSPACE:8};var b=a(o).attr("autocomplete","off").addClass(h.inputClass);
var m;var u="";var q=a.Autocompleter.Cache(h);var f=0;var z;var C={mouseDownOnSelect:false};var w=a.Autocompleter.Select(h,o,e,C);var B;a.browser.opera&&a(o.form).bind("submit.autocomplete",function(){if(B){B=false;return false}});b.bind((a.browser.opera?"keypress":"keydown")+".autocomplete",function(D){z=D.keyCode;
switch(D.keyCode){case c.UP:D.preventDefault();if(w.visible()){w.prev()}else{y(0,true)}break;case c.DOWN:D.preventDefault();if(w.visible()){w.next()}else{y(0,true)}break;case c.PAGEUP:D.preventDefault();if(w.visible()){w.pageUp()}else{y(0,true)}break;case c.PAGEDOWN:D.preventDefault();if(w.visible()){w.pageDown()
}else{y(0,true)}break;case h.multiple&&a.trim(h.multipleSeparator)==","&&c.COMMA:case c.TAB:case c.RETURN:if(e()){D.preventDefault();B=true;return false}break;case c.ESC:w.hide();break;default:clearTimeout(m);m=setTimeout(y,h.delay);break}}).focus(function(){f++}).blur(function(){f=0;if(!C.mouseDownOnSelect){x()
}}).click(function(){if(f++>1&&!w.visible()){y(0,true)}}).bind("search",function(){var D=(arguments.length>1)?arguments[1]:null;function E(I,H){var F;if(H&&H.length){for(var G=0;G<H.length;G++){if(H[G].result.toLowerCase()==I.toLowerCase()){F=H[G];break}}}if(typeof D=="function"){D(F)}else{b.trigger("result",F&&[F.data,F.value])
}}a.each(k(b.val()),function(F,G){g(G,E,E)})}).bind("flushCache",function(){q.flush()}).bind("setOptions",function(){a.extend(h,arguments[1]);if("data" in arguments[1]){q.populate()}}).bind("unautocomplete",function(){w.unbind();b.unbind();a(o.form).unbind(".autocomplete")});function e(){var E=w.selected();
if(!E){return false}var D=E.result;u=D;if(h.multiple){var F=k(b.val());if(F.length>1){D=F.slice(0,F.length-1).join(h.multipleSeparator)+h.multipleSeparator+D}D+=h.multipleSeparator}b.val(D);A();b.trigger("result",[E.data,E.value]);return true}function y(F,E){if(z==c.DEL){w.hide();return}var D=b.val();
if(!E&&D==u){return}u=D;D=l(D);if(D.length>=h.minChars){b.addClass(h.loadingClass);if(!h.matchCase){D=D.toLowerCase()}g(D,n,A)}else{r();w.hide()}}function k(E){if(!E){return[""]}var F=E.split(h.multipleSeparator);var D=[];a.each(F,function(G,H){if(a.trim(H)){D[G]=a.trim(H)}});return D}function l(D){if(!h.multiple){return D
}var E=k(D);return E[E.length-1]}function v(D,E){if(h.autoFill&&(l(b.val()).toLowerCase()==D.toLowerCase())&&z!=c.BACKSPACE){b.val(b.val()+E.substring(l(u).length));a.Autocompleter.Selection(o,u.length,u.length+E.length)}}function x(){clearTimeout(m);m=setTimeout(A,200)}function A(){var D=w.visible();
w.hide();clearTimeout(m);r();if(h.mustMatch){b.search(function(E){if(!E){if(h.multiple){var F=k(b.val()).slice(0,-1);b.val(F.join(h.multipleSeparator)+(F.length?h.multipleSeparator:""))}else{b.val("")}}})}if(D){a.Autocompleter.Selection(o,o.value.length,o.value.length)}}function n(E,D){if(D&&D.length&&f){r();
w.display(D,E);v(E,D[0].value);w.show()}else{A()}}function g(E,G,D){if(!h.matchCase){E=E.toLowerCase()}var F=q.load(E);if(F&&F.length){G(E,F)}else{if(h.dataSource){var F=h.dataSource(E,h,G)}else{if((typeof h.url=="string")&&(h.url.length>0)){var H={timestamp:+new Date()};a.each(h.extraParams,function(I,J){H[I]=typeof J=="function"?J():J
});a.ajax({mode:"abort",port:"autocomplete"+o.name,dataType:h.dataType,url:h.url,data:a.extend({q:l(E),limit:h.max},H),success:function(J){var I=h.parse&&h.parse(J)||t(J);q.add(E,I);G(E,I)}})}else{w.emptyList();D(E)}}}}function t(G){var D=[];var F=G.split("\n");for(var E=0;E<F.length;E++){var H=a.trim(F[E]);
if(H){H=H.split("|");D[D.length]={data:H,value:H[0],result:h.formatResult&&h.formatResult(H,H[0])||H[0]}}}return D}function r(){b.removeClass(h.loadingClass)}};a.Autocompleter.defaults={inputClass:"ac_input",resultsClass:"ac_results",loadingClass:"ac_loading",minChars:1,delay:400,matchCase:false,matchSubset:true,matchContains:false,cacheLength:10,max:100,mustMatch:false,extraParams:{},selectFirst:true,formatItem:function(b){return(b?b[0]:"default airport")
},formatMatch:null,autoFill:false,width:0,multiple:false,multipleSeparator:", ",highlight:function(c,b){return c.replace(new RegExp("(?![^&;]+;)(?!<[^<>]*)("+b.replace(/([\^\$\(\)\[\]\{\}\*\.\+\?\|\\])/gi,"\\$1")+")(?![^<>]*>)(?![^&;]+;)","gi"),"<strong>$1</strong>")},scroll:true,scrollHeight:180};a.Autocompleter.Cache=function(c){var g={};
var e=0;function k(n,m){if(!c.matchCase){n=n.toLowerCase()}var l=n.indexOf(m);if(l==-1){return false}return l==0||c.matchContains}function h(m,l){if(e>c.cacheLength){b()}if(!g[m]){e++}g[m]=l}function f(){if(!c.data){return false}var m={},l=0;if(!c.url){c.cacheLength=1}m[""]=[];for(var o=0,n=c.data.length;
o<n;o++){var t=c.data[o];t=(typeof t=="string")?[t]:t;var r=c.formatMatch(t,o+1,c.data.length);if(r===false){continue}var q=r.charAt(0).toLowerCase();if(!m[q]){m[q]=[]}var u={value:r,data:t,result:c.formatResult&&c.formatResult(t)||r};m[q].push(u);if(l++<c.max){m[""].push(u)}}a.each(m,function(v,w){c.cacheLength++;
h(v,w)})}setTimeout(f,25);function b(){g={};e=0}return{flush:b,add:h,populate:f,load:function(o){if(!c.cacheLength||!e){return null}if(!c.url&&c.matchContains){var n=[];for(var l in g){if(l.length>0){var r=g[l];a.each(r,function(t,q){if(k(q.value,o)){n.push(q)}})}}return n}else{if(g[o]){return g[o]}else{if(c.matchSubset){for(var m=o.length-1;
m>=c.minChars;m--){var r=g[o.substr(0,m)];if(r){var n=[];a.each(r,function(t,q){if(k(q.value,o)){n[n.length]=q}});return n}}}}}return null}}};a.Autocompleter.Select=function(f,m,o,u){var l={ACTIVE:"ac_over"};var n,g=-1,w,q="",x=true,c,t;function r(){if(!x){return}c=a("<div/>").hide().addClass(f.resultsClass).css("position","absolute").appendTo(document.body);
t=a("<ul/>").appendTo(c).mouseover(function(y){if(v(y).nodeName&&v(y).nodeName.toUpperCase()=="LI"){g=a("li",t).removeClass(l.ACTIVE).index(v(y));a(v(y)).addClass(l.ACTIVE)}}).click(function(y){a(v(y)).addClass(l.ACTIVE);o();m.focus();return false}).mousedown(function(){u.mouseDownOnSelect=true}).mouseup(function(){u.mouseDownOnSelect=false
});if(f.width>0){c.css("width",f.width)}x=false}function v(z){var y=z.target;while(y&&y.tagName!="LI"){y=y.parentNode}if(!y){return[]}return y}function k(y){n.slice(g,g+1).removeClass(l.ACTIVE);h(y);var A=n.slice(g,g+1).addClass(l.ACTIVE);if(f.scroll){var z=0;n.slice(0,g).each(function(){z+=this.offsetHeight
});if((z+A[0].offsetHeight-t.scrollTop())>t[0].clientHeight){t.scrollTop(z+A[0].offsetHeight-t.innerHeight())}else{if(z<t.scrollTop()){t.scrollTop(z)}}}}function h(y){g+=y;if(g<0){g=n.size()-1}else{if(g>=n.size()){g=0}}}function b(y){return f.max&&f.max<y?f.max:y}function e(){t.empty();var z=b(w.length);
for(var A=0;A<z;A++){if(!w[A]){continue}var B=f.formatItem(w[A].data,A+1,z,w[A].value,q);if(B===false){continue}var y=a("<li/>").html(f.highlight(B,q)).addClass(A%2==0?"ac_even":"ac_odd").appendTo(t)[0];a.data(y,"ac_data",w[A])}n=t.find("li");if(f.selectFirst){n.slice(0,1).addClass(l.ACTIVE);g=0}if(a.fn.bgiframe){t.bgiframe()
}}return{display:function(z,y){r();w=z;q=y;e()},next:function(){k(1)},prev:function(){k(-1)},pageUp:function(){if(g!=0&&g-8<0){k(-g)}else{k(-8)}},pageDown:function(){if(g!=n.size()-1&&g+8>n.size()){k(n.size()-1-g)}else{k(8)}},hide:function(){c&&c.hide();n&&n.removeClass(l.ACTIVE);g=-1},visible:function(){return c&&c.is(":visible")
},current:function(){return this.visible()&&(n.filter("."+l.ACTIVE)[0]||f.selectFirst&&n[0])},show:function(){var A=a(m).offset();c.css({width:typeof f.width=="string"||f.width>0?f.width:a(m).width(),top:A.top+m.offsetHeight,left:A.left}).show();if(f.scroll){t.scrollTop(0);t.css({maxHeight:f.scrollHeight,overflow:"auto"});
if(a.browser.msie&&typeof document.body.style.maxHeight==="undefined"){var y=0;n.each(function(){y+=this.offsetHeight});var z=y>f.scrollHeight;t.css("height",z?f.scrollHeight:y);if(!z){n.width(t.width()-parseInt(n.css("padding-left"))-parseInt(n.css("padding-right")))}}}},selected:function(){var y=n&&n.filter("."+l.ACTIVE).removeClass(l.ACTIVE);
return y&&y.length&&a.data(y[0],"ac_data")},emptyList:function(){t&&t.empty()},unbind:function(){c&&c.remove()}}};a.Autocompleter.Selection=function(e,f,c){if(e.createTextRange){var b=e.createTextRange();b.collapse(true);b.moveStart("character",f);b.moveEnd("character",c);b.select()}else{if(e.setSelectionRange){e.setSelectionRange(f,c)
}else{if(e.selectionStart){e.selectionStart=f;e.selectionEnd=c}}}e.focus()}})(jQuery);VT.DSW_TRAVEL_GUIDES=function(){this.dsw="#destinationSearch ";this.acField="#destSearch_input";this.notice="#dswResults > p";this.searchResults="#dswResultsList";this.searchVisible=["#dswSearchForm"];this.searchLoading=[".loading"];
this.resultsVisible=["#dswResults"];this.searchButton="#destSearch_Submit";this.tryAgain=".restartSearch"};VT.DSW_HOTEL_BOOK_TRAVEL=function(){this.dsw=".destinationSearch ";this.acField="#destSearch_input";this.notice="#dswResults > p";this.searchResults="#dswResultsList";this.searchVisible=["#dswSearchForm"];
this.searchLoading=[".loading"];this.resultsVisible=["#dswResults"];this.searchButton="#destSearch_Submit";this.tryAgain=".restartSearch"};VT.DSW_HOMPAGE=function(){this.dsw="#hpDestinationSearch ";this.acField="#destSearch_input";this.notice="#dswResults > p";this.searchResults="#dswResultsList";this.searchVisible=["#dswSearchForm"];
this.searchLoading=[".loading"];this.resultsVisible=["#dswResults"];this.searchButton="#destSearch_Submit";this.tryAgain=".restartSearch"};VT.DSW=function(b){var a=this;this.baseURL=null;this.destinationSelectedURL="main/index/";this.autocompleteURL="dsw/autocomplete";this.searchURL="dsw/search";this.promptText="Enter Your Destination.";
if(b==null){this.selector=new VT.DSW_TRAVEL_GUIDES()}else{this.selector=b}this.initialize=function(){if(a.baseURL==null){a.setBaseURL(document.location.href.replace(/(http:\/\/[^\/]+\/).*/,"$1"))}a.destinationSelectedURL=a.getAbsoluteURL(a.destinationSelectedURL);a.searchURL=a.getAbsoluteURL(a.searchURL);
a.autocompleteURL=a.getAbsoluteURL(a.autocompleteURL);if(a.selector.dsw.charAt(a.selector.dsw.length-1)!=" "){a.selector.dsw=a.selector.dsw+" "}var c=a.selector;for(var h in c){if(h=="dsw"){continue}if($.isArray(c[h])){for(var f in c[h]){c[h][f]=c.dsw+c[h][f]}}else{c[h]=c.dsw+c[h]}}try{$(a.selector.acField).autocomplete(a.autocompleteURL,{highlight:a.highlight,cacheLength:10,matchSubset:false}).result(a.acResultCallback).one("click",function(k){$(a.selector.acField)[0].value=""
})}catch(g){alert(g)}$(a.selector.searchButton).bind("click",a.doSearch);$(a.selector.tryAgain).bind("click",a.tryAgain);a.promptText=$(a.selector.acField)[0].value};this.setBaseURL=function(c){if(c.charAt(c.length-1)!="/"){a.baseURL=c+"/"}else{a.baseURL=c}};this.getAbsoluteURL=function(c){if(c.charAt(0)=="/"||c.charAt(4)==":"){return c
}return a.baseURL+c};this.acResultCallback=function(c,g,f){var h={};h.data={name:g[0],id:g[1]};$(a.selector.searchButton).unbind("click");a.locationSelectedCallback(h)};this.locationSelectedCallback=function(c){document.location.href=a.destinationSelectedURL+c.data.id};this.setProgressVisibility=function(f){for(var e in a.selector.searchLoading){try{$(a.selector.searchLoading[e]).each(function(g){this.style.display=f
})}catch(c){}}};this.setResultsVisibility=function(f){for(var e in a.selector.resultsVisible){try{$(a.selector.resultsVisible[e]).each(function(g){this.style.display=f})}catch(c){}}};this.setSearchFormVisibility=function(f){for(var e in a.selector.searchVisible){try{$(a.selector.searchVisible[e]).each(function(g){this.style.display=f
})}catch(c){}}};this.searchCallback=function(e,g,f){a.setProgressVisibility("none");a.setResultsVisibility("block");a.setSearchFormVisibility("none");var c=$(a.selector.notice).get(0);if(f.status==200){c.innerHTML="Did you mean?";$(a.selector.searchResults+" a").each(function(h){jQuery(this).bind("click",{id:this.id,name:this.firstChild.data},a.locationSelectedCallback)
})}else{c.innerHTML="Search failed with status "+f.status;$(a.selector.searchResults).emtpy()}};this.doSearch=function(){var c=$(a.selector.acField)[0].value;if(c==""||c==a.promptText){return false}try{$(".ac_results")[0].style.display="none"}catch(f){}a.setProgressVisibility("block");$(a.selector.searchResults).load(a.searchURL,{query:c},a.searchCallback);
return false};this.tryAgain=function(){a.setProgressVisibility("none");a.setResultsVisibility("none");a.setSearchFormVisibility("block");$(a.selector.searchButton).unbind("click",a.doSearch).bind("click",a.doSearch);return false};this.highlight=function(e,c){return'<span class="autocompleterQueried">'+e.substr(0,c.length)+"</span>"+e.substr(c.length)
}};VT.Box=VT.Box||{};VT.Box.confirm=function(g,f,a,e){var c;var b=$('<div class="confirmBox">	<div class="header">Confirm</div>	<p class="message">'+f+'</p>	<div class="buttons">		<div class="no">No</div>		<div class="yes">Yes</div>	</div></div>');$(g).qtip({content:{clone:false,text:b},show:{when:"click",solo:true},position:{target:$B,corner:"center"},style:{width:300},hide:{when:{target:b.find(".no").add(b.find(".yes")),event:"click"}},api:{beforeShow:function(){c=new VT.Effects.GreyOut(5999);
var h=this;c.addClickListener(function(){h.hide()})},onHide:function(k){var h=k&&$(k.target).hasClass("yes");if(h){a&&a()}else{e&&e()}c.remove()}}})};VT.Box=VT.Box||{};VT.Box.fullPicView=function(e){e=$(e);var g=e.attr("href");var f=$("<span></span>").append(e.children()).addClass(e.attr("class")).css("cursor","pointer");
e.replaceWith(f);var b;var c=$('<div class="picBox">    <div class="pic"></div>    <div class="close">Close</div></div>');var a=c.find(".pic");f.qtip({content:{clone:false,text:c},show:{when:"click",solo:true},position:{target:$B,corner:"center"},hide:{when:{target:c.find(".close"),event:"click"}},api:{beforeShow:function(){b=new VT.Effects.GreyOut(5999);
var h=this;b.addClickListener(function(){h.hide()});VT.Util.loadImg(g,null,a,function(){h.updateWidth().updatePosition()})},onHide:function(){b.remove()}}})};$D.ready(function(){if($(document.body).hasClass("dashboard")){var a=$("#feedsPullDown");var b=$("#feedsMaxCount");$("#tipsPullDown").sSelect();
$("#destPullDown").sSelect();a.sSelect();VT.Box.confirm(".welcomeBox .close","Do you want to permanently remove this message?",function(){var c=function(e,f){$("#secondaryContent div.statBox").addClass("cta");$(".welcomeBox").fadeOut(function(){$(this).remove()})};$.get("/dashboard/closeWelcomeBox?cachebuster="+Math.random(),c)
});VT.Box.fullPicView($("#mainContent .memberHeader .viewProPhoto"));VT.Dash.loadNotices=function(){var e=a.val();var c=b.val();var f=function(g,h){if(h=="success"){$("#activityStreamNotices").html(g)}};$.get("/dashboard/updateNotices?noticeType="+e+"&max="+c+"&cachebuster="+Math.random(),f)};VT.Dash.viewMore=function(){var c=parseInt(b.val())+50;
$("#feedsViewMore").add("#feedsFetching").toggle();b.val(c);VT.Dash.loadNotices()};VT.Dash.markAllAsRead=function(){var e=$("#feedsMarkAsReadUrls").val().split(",");var c=function(g,h){e.pop();var f=e.length==0;if(f){$("#activityStreamNotices li.unread").removeClass("unread");VT.HTML_UPDATER.updateHeader()
}};$.each(e,function(g,f){$.get(f+"?cachebuster="+Math.random(),c)})};$(".statBox .rank .glob_tooltip").qtip({content:{text:"<h4>What's VT Rank?</h4><p>Your <b>VT Rank</b> shows where you rank as a travel writer within the VT Community. Your rank is based solely on the ratings that your tips receive and how helpful your travel forum responses are deemed by fellow members. The lower your rank, the better you're doing - the best ranked member is #1.</p><p>If you want to improve your VT Rank, the best way to do it is to write top quality tips, and share helpful answers to questions in the Travel Forums.</p><p>While VT Rank is subjective - based on other members opinions of you - it's also a fun way to see how you're progressing. Rank is calculated each week and updates on Monday.</p><div class=\"starInfo\"><h5>What about the Stars?</h5><ul><li>Gold Star = Top 1,000 Members</li><li>Silver Star = Top 5,000 Members</li><li>Bronze Star = Top 10,000 Members</li></ul></div>"},position:{corner:{target:"bottomMiddle",tooltip:"topMiddle"}},hide:{fixed:true},style:{tip:{corner:"topMiddle",size:{y:6,x:14}}}});
$(".statBox .rookieRank .glob_tooltip").qtip({content:{text:"<h4>What's a Rookie Rank?</h4><p>The term 'Rookie' refers to a sports player who is in his or her first year. So, a VT Rookie Rank is given to members who joined the site less than a year ago. It is based on ratings for your Reviews as well as your travel forum replies.</p><p>If you're new, you can have both an overall VT Rank and a Rookie Rank. To get a rookie rank, simply start adding tips from any of your travels. Calculations are made every week on Monday. Check back to see your progress towards #1!</p>"},position:{corner:{target:"bottomMiddle",tooltip:"topMiddle"}},hide:{fixed:true},style:{tip:{corner:"topMiddle",size:{y:6,x:14}}}})
}});VT.Dash={};VT.Dash.loadNotices=function(){};VT.Dash.viewMore=function(){};VT.Dash.markAllAsRead=function(){};Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.abbrDayNames=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];
Date.abbrMonthNames=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];Date.firstDayOfWeek=1;Date.format="dd/mm/yyyy";Date.fullYearStart="20";(function(){function b(c,e){if(!Date.prototype[c]){Date.prototype[c]=e}}b("isLeapYear",function(){var c=this.getFullYear();return(c%4==0&&c%100!=0)||c%400==0
});b("isWeekend",function(){return this.getDay()==0||this.getDay()==6});b("isWeekDay",function(){return !this.isWeekend()});b("getDaysInMonth",function(){return[31,(this.isLeapYear()?29:28),31,30,31,30,31,31,30,31,30,31][this.getMonth()]});b("getDayName",function(c){return c?Date.abbrDayNames[this.getDay()]:Date.dayNames[this.getDay()]
});b("getMonthName",function(c){return c?Date.abbrMonthNames[this.getMonth()]:Date.monthNames[this.getMonth()]});b("getDayOfYear",function(){var c=new Date("1/1/"+this.getFullYear());return Math.floor((this.getTime()-c.getTime())/86400000)});b("getWeekOfYear",function(){return Math.ceil(this.getDayOfYear()/7)
});b("setDayOfYear",function(c){this.setMonth(0);this.setDate(c);return this});b("addYears",function(c){this.setFullYear(this.getFullYear()+c);return this});b("addMonths",function(e){var c=this.getDate();this.setMonth(this.getMonth()+e);if(c>this.getDate()){this.addDays(-this.getDate())}return this});
b("addDays",function(c){this.setDate(this.getDate()+c);return this});b("addHours",function(c){this.setHours(this.getHours()+c);return this});b("addMinutes",function(c){this.setMinutes(this.getMinutes()+c);return this});b("addSeconds",function(c){this.setSeconds(this.getSeconds()+c);return this});b("zeroTime",function(){this.setMilliseconds(0);
this.setSeconds(0);this.setMinutes(0);this.setHours(0);return this});b("asString",function(e){var c=e||Date.format;return c.split("yyyy").join(this.getFullYear()).split("yy").join((this.getFullYear()+"").substring(2)).split("mmmm").join(this.getMonthName(false)).split("mmm").join(this.getMonthName(true)).split("mm").join(a(this.getMonth()+1)).split("dd").join(a(this.getDate()))
});Date.fromString=function(o){var k=Date.format;var n=new Date("01/01/1977");var l=0;var c=k.indexOf("mmmm");if(c>-1){for(var g=0;g<Date.monthNames.length;g++){var e=o.substr(c,Date.monthNames[g].length);if(Date.monthNames[g]==e){l=Date.monthNames[g].length-4;break}}n.setMonth(g)}else{c=k.indexOf("mmm");
if(c>-1){var e=o.substr(c,3);for(var g=0;g<Date.abbrMonthNames.length;g++){if(Date.abbrMonthNames[g]==e){break}}n.setMonth(g)}else{n.setMonth(Number(o.substr(k.indexOf("mm"),2))-1)}}var m=k.indexOf("yyyy");if(m>-1){if(c<m){m+=l}n.setFullYear(Number(o.substr(m,4)))}else{if(c<m){m+=l}n.setFullYear(Number(Date.fullYearStart+o.substr(k.indexOf("yy"),2)))
}var h=k.indexOf("dd");if(c<h){h+=l}n.setDate(Number(o.substr(h,2)));if(isNaN(n.getTime())){return false}return n};var a=function(c){var e="0"+c;return e.substring(e.length-2)}})();(function(a){a.fn.bgIframe=a.fn.bgiframe=function(c){if(a.browser.msie&&/6.0/.test(navigator.userAgent)){c=a.extend({top:"auto",left:"auto",width:"auto",height:"auto",opacity:true,src:"javascript:false;"},c||{});
var e=function(f){return f&&f.constructor==Number?f+"px":f},b='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+c.src+'"style="display:block;position:absolute;z-index:-1;'+(c.opacity!==false?"filter:Alpha(Opacity='0');":"")+"top:"+(c.top=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+'px')":e(c.top))+";left:"+(c.left=="auto"?"expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+'px')":e(c.left))+";width:"+(c.width=="auto"?"expression(this.parentNode.offsetWidth+'px')":e(c.width))+";height:"+(c.height=="auto"?"expression(this.parentNode.offsetHeight+'px')":e(c.height))+';"/>';
return this.each(function(){if(a("> iframe.bgiframe",this).length==0){this.insertBefore(document.createElement(b),this.firstChild)}})}return this}})(jQuery);(function(e){e.fn.extend({renderCalendar:function(v){var E=function(r){return document.createElement(r)};v=e.extend({},e.fn.datePicker.defaults,v);
if(v.showHeader!=e.dpConst.SHOW_HEADER_NONE){var q=e(E("tr"));for(var z=Date.firstDayOfWeek;z<Date.firstDayOfWeek+7;z++){var k=z%7;var y=Date.dayNames[k];q.append(jQuery(E("th")).attr({scope:"col",abbr:y,title:y,"class":(k==0||k==6?"weekend":"weekday")}).html(v.showHeader==e.dpConst.SHOW_HEADER_SHORT?y.substr(0,1):y))
}}var f=e(E("table")).attr({cellspacing:0,className:"jCalendar"}).append((v.showHeader!=e.dpConst.SHOW_HEADER_NONE?e(E("thead")).append(q):E("thead")));var g=e(E("tbody"));var B=(new Date()).zeroTime();var D=v.month==undefined?B.getMonth():v.month;var t=v.year||B.getFullYear();var n=new Date(t,D,1);var m=Date.firstDayOfWeek-n.getDay()+1;
if(m>1){m-=7}var u=Math.ceil(((-1*m+1)+n.getDaysInMonth())/7);n.addDays(m-1);var C=function(){if(v.hoverClass){e(this).addClass(v.hoverClass)}};var h=function(){if(v.hoverClass){e(this).removeClass(v.hoverClass)}};var o=0;while(o++<u){var x=jQuery(E("tr"));for(var z=0;z<7;z++){var l=n.getMonth()==D;var A=e(E("td")).text(n.getDate()+"").attr("className",(l?"current-month ":"other-month ")+(n.isWeekend()?"weekend ":"weekday ")+(l&&n.getTime()==B.getTime()?"today ":"")).hover(C,h);
if(v.renderCallback){v.renderCallback(A,n,D,t)}x.append(A);n.addDays(1)}g.append(x)}f.append(g);return this.each(function(){e(this).empty().append(f)})},datePicker:function(f){if(!e.event._dpCache){e.event._dpCache=[]}f=e.extend({},e.fn.datePicker.defaults,f);return this.each(function(){var h=e(this);
var l=true;if(!this._dpId){this._dpId=e.event.guid++;e.event._dpCache[this._dpId]=new a(this);l=false}if(f.inline){f.createButton=false;f.displayClose=false;f.closeOnSelect=false;h.empty()}var g=e.event._dpCache[this._dpId];g.init(f);if(!l&&f.createButton){g.button=e('<a href="#" class="dp-choose-date" title="'+e.dpText.TEXT_CHOOSE_DATE+'">'+e.dpText.TEXT_CHOOSE_DATE+"</a>").bind("click",function(){h.dpDisplay(this);
this.blur();return false});h.after(g.button)}if(!l&&h.is(":text")){h.bind("dateSelected",function(n,m,o){this.value=m.asString()}).bind("change",function(){if(this.value!=""){var m=Date.fromString(this.value);if(m){g.setSelected(m,true,true)}}});if(f.clickInput){h.bind("click",function(){h.dpDisplay()
})}var k=Date.fromString(this.value);if(this.value!=""&&k){g.setSelected(k,true,true)}}h.addClass("dp-applied")})},dpSetDisabled:function(f){return b.call(this,"setDisabled",f)},dpSetStartDate:function(f){return b.call(this,"setStartDate",f)},dpSetEndDate:function(f){return b.call(this,"setEndDate",f)
},dpGetSelected:function(){var f=c(this[0]);if(f){return f.getSelected()}return null},dpSetSelected:function(h,g,f){if(g==undefined){g=true}if(f==undefined){f=true}return b.call(this,"setSelected",Date.fromString(h),g,f,true)},dpSetDisplayedMonth:function(f,g){return b.call(this,"setDisplayedMonth",Number(f),Number(g),true)
},dpDisplay:function(f){return b.call(this,"display",f)},dpSetRenderCallback:function(f){return b.call(this,"setRenderCallback",f)},dpSetPosition:function(f,g){return b.call(this,"setPosition",f,g)},dpSetOffset:function(f,g){return b.call(this,"setOffset",f,g)},dpClose:function(){return b.call(this,"_closeCalendar",false,this[0])
},_dpDestroy:function(){}});var b=function(k,h,g,m,l){return this.each(function(){var f=c(this);if(f){f[k](h,g,m,l)}})};function a(f){this.ele=f;this.displayedMonth=null;this.displayedYear=null;this.startDate=null;this.endDate=null;this.showYearNavigation=null;this.closeOnSelect=null;this.displayClose=null;
this.selectMultiple=null;this.verticalPosition=null;this.horizontalPosition=null;this.verticalOffset=null;this.horizontalOffset=null;this.button=null;this.renderCallback=[];this.selectedDates={};this.inline=null;this.context="#dp-popup"}e.extend(a.prototype,{init:function(f){this.setStartDate(f.startDate);
this.setEndDate(f.endDate);this.setDisplayedMonth(Number(f.month),Number(f.year));this.setRenderCallback(f.renderCallback);this.showYearNavigation=f.showYearNavigation;this.closeOnSelect=f.closeOnSelect;this.displayClose=f.displayClose;this.selectMultiple=f.selectMultiple;this.verticalPosition=f.verticalPosition;
this.horizontalPosition=f.horizontalPosition;this.hoverClass=f.hoverClass;this.setOffset(f.verticalOffset,f.horizontalOffset);this.inline=f.inline;if(this.inline){this.context=this.ele;this.display()}},setStartDate:function(f){if(f){this.startDate=Date.fromString(f)}if(!this.startDate){this.startDate=(new Date()).zeroTime()
}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)},setEndDate:function(f){if(f){this.endDate=Date.fromString(f)}if(!this.endDate){this.endDate=(new Date("12/31/2999"))}if(this.endDate.getTime()<this.startDate.getTime()){this.endDate=this.startDate}this.setDisplayedMonth(this.displayedMonth,this.displayedYear)
},setPosition:function(f,g){this.verticalPosition=f;this.horizontalPosition=g},setOffset:function(f,g){this.verticalOffset=parseInt(f)||0;this.horizontalOffset=parseInt(g)||0},setDisabled:function(f){$e=e(this.ele);$e[f?"addClass":"removeClass"]("dp-disabled");if(this.button){$but=e(this.button);$but[f?"addClass":"removeClass"]("dp-disabled");
$but.attr("title",f?"":e.dpText.TEXT_CHOOSE_DATE)}if($e.is(":text")){$e.attr("disabled",f?"disabled":"")}},setDisplayedMonth:function(f,q,l){if(this.startDate==undefined||this.endDate==undefined){return}var k=new Date(this.startDate.getTime());k.setDate(1);var o=new Date(this.endDate.getTime());o.setDate(1);
var h;if((!f&&!q)||(isNaN(f)&&isNaN(q))){h=new Date().zeroTime();h.setDate(1)}else{if(isNaN(f)){h=new Date(q,this.displayedMonth,1)}else{if(isNaN(q)){h=new Date(this.displayedYear,f,1)}else{h=new Date(q,f,1)}}}if(h.getTime()<k.getTime()){h=k}else{if(h.getTime()>o.getTime()){h=o}}var g=this.displayedMonth;
var n=this.displayedYear;this.displayedMonth=h.getMonth();this.displayedYear=h.getFullYear();if(l&&(this.displayedMonth!=g||this.displayedYear!=n)){this._rerenderCalendar();e(this.ele).trigger("dpMonthChanged",[this.displayedMonth,this.displayedYear])}},setSelected:function(n,f,g,k){if(f==this.isSelected(n)){return
}if(this.selectMultiple==false){this.selectedDates={};e("td.selected",this.context).removeClass("selected")}if(g&&this.displayedMonth!=n.getMonth()){this.setDisplayedMonth(n.getMonth(),n.getFullYear(),true)}this.selectedDates[n.toString()]=f;var l="td.";l+=n.getMonth()==this.displayedMonth?"current-month":"other-month";
l+=':contains("'+n.getDate()+'")';var m;e(l,this.ele).each(function(){if(e(this).text()==n.getDate()){m=e(this);m[f?"addClass":"removeClass"]("selected")}});if(k){var h=this.isSelected(n);$e=e(this.ele);$e.trigger("dateSelected",[n,m,h]);$e.trigger("change")}},isSelected:function(f){return this.selectedDates[f.toString()]
},getSelected:function(){var f=[];for(s in this.selectedDates){if(this.selectedDates[s]==true){f.push(Date.parse(s))}}return f},display:function(f){if(e(this.ele).is(".dp-disabled")){return}f=f||this.ele;var o=this;var k=e(f);var n=k.offset();var q;var r;var h;var l;if(o.inline){q=e(this.ele);r={id:"calendar-"+this.ele._dpId,className:"dp-popup dp-popup-inline"};
l={}}else{q=e("body");r={id:"dp-popup",className:"dp-popup"};l={top:n.top+o.verticalOffset,left:n.left+o.horizontalOffset};var m=function(v){var t=v.target;var u=e("#dp-popup")[0];while(true){if(t==u){return true}else{if(t==document){o._closeCalendar();return false}else{t=e(t).parent()[0]}}}};this._checkMouse=m;
this._closeCalendar(true)}q.append(e("<div></div>").attr(r).css(l).append(e("<h2></h2>"),e('<div class="dp-nav-prev"></div>').append(e('<a class="dp-nav-prev-year" href="#" title="'+e.dpText.TEXT_PREV_YEAR+'">&lt;&lt;</a>').bind("click",function(){return o._displayNewMonth.call(o,this,0,-1)}),e('<a class="dp-nav-prev-month" href="#" title="'+e.dpText.TEXT_PREV_MONTH+'">&lt;</a>').bind("click",function(){return o._displayNewMonth.call(o,this,-1,0)
})),e('<div class="dp-nav-next"></div>').append(e('<a class="dp-nav-next-year" href="#" title="'+e.dpText.TEXT_NEXT_YEAR+'">&gt;&gt;</a>').bind("click",function(){return o._displayNewMonth.call(o,this,0,1)}),e('<a class="dp-nav-next-month" href="#" title="'+e.dpText.TEXT_NEXT_MONTH+'">&gt;</a>').bind("click",function(){return o._displayNewMonth.call(o,this,1,0)
})),e("<div></div>").attr("className","dp-calendar")).bgIframe());var g=this.inline?e(".dp-popup",this.context):e("#dp-popup");if(this.showYearNavigation==false){e(".dp-nav-prev-year, .dp-nav-next-year",o.context).css("display","none")}if(this.displayClose){g.append(e('<a href="#" id="dp-close">'+e.dpText.TEXT_CLOSE+"</a>").bind("click",function(){o._closeCalendar();
return false}))}o._renderCalendar();e(this.ele).trigger("dpDisplayed",g);if(!o.inline){if(this.verticalPosition==e.dpConst.POS_BOTTOM){g.css("top",n.top+k.height()-g.height()+o.verticalOffset)}if(this.horizontalPosition==e.dpConst.POS_RIGHT){g.css("left",n.left+k.width()-g.width()+o.horizontalOffset)
}e(document).bind("mousedown",this._checkMouse)}},setRenderCallback:function(f){if(f==null){return}if(f&&typeof(f)=="function"){f=[f]}this.renderCallback=this.renderCallback.concat(f)},cellRender:function(m,f,k,h){var n=this.dpController;var l=new Date(f.getTime());m.bind("click",function(){var o=e(this);
if(!o.is(".disabled")){n.setSelected(l,!o.is(".selected")||!n.selectMultiple,false,true);if(n.closeOnSelect){n._closeCalendar()}}});if(n.isSelected(l)){m.addClass("selected")}for(var g=0;g<n.renderCallback.length;g++){n.renderCallback[g].apply(this,arguments)}},_displayNewMonth:function(g,f,h){if(!e(g).is(".disabled")){this.setDisplayedMonth(this.displayedMonth+f,this.displayedYear+h,true)
}g.blur();return false},_rerenderCalendar:function(){this._clearCalendar();this._renderCalendar()},_renderCalendar:function(){e("h2",this.context).html(Date.monthNames[this.displayedMonth]+" "+this.displayedYear);e(".dp-calendar",this.context).renderCalendar({month:this.displayedMonth,year:this.displayedYear,renderCallback:this.cellRender,dpController:this,hoverClass:this.hoverClass});
if(this.displayedYear==this.startDate.getFullYear()&&this.displayedMonth==this.startDate.getMonth()){e(".dp-nav-prev-year",this.context).addClass("disabled");e(".dp-nav-prev-month",this.context).addClass("disabled");e(".dp-calendar td.other-month",this.context).each(function(){var k=e(this);if(Number(k.text())>20){k.addClass("disabled")
}});var h=this.startDate.getDate();e(".dp-calendar td.current-month",this.context).each(function(){var k=e(this);if(Number(k.text())<h){k.addClass("disabled")}})}else{e(".dp-nav-prev-year",this.context).removeClass("disabled");e(".dp-nav-prev-month",this.context).removeClass("disabled");var h=this.startDate.getDate();
if(h>20){var g=new Date(this.startDate.getTime());g.addMonths(1);if(this.displayedYear==g.getFullYear()&&this.displayedMonth==g.getMonth()){e("dp-calendar td.other-month",this.context).each(function(){var k=e(this);if(Number(k.text())<h){k.addClass("disabled")}})}}}if(this.displayedYear==this.endDate.getFullYear()&&this.displayedMonth==this.endDate.getMonth()){e(".dp-nav-next-year",this.context).addClass("disabled");
e(".dp-nav-next-month",this.context).addClass("disabled");e(".dp-calendar td.other-month",this.context).each(function(){var k=e(this);if(Number(k.text())<14){k.addClass("disabled")}});var h=this.endDate.getDate();e(".dp-calendar td.current-month",this.context).each(function(){var k=e(this);if(Number(k.text())>h){k.addClass("disabled")
}})}else{e(".dp-nav-next-year",this.context).removeClass("disabled");e(".dp-nav-next-month",this.context).removeClass("disabled");var h=this.endDate.getDate();if(h<13){var f=new Date(this.endDate.getTime());f.addMonths(-1);if(this.displayedYear==f.getFullYear()&&this.displayedMonth==f.getMonth()){e(".dp-calendar td.other-month",this.context).each(function(){var k=e(this);
if(Number(k.text())>h){k.addClass("disabled")}})}}}},_closeCalendar:function(f,g){if(!g||g==this.ele){e(document).unbind("mousedown",this._checkMouse);this._clearCalendar();e("#dp-popup a").unbind();e("#dp-popup").empty().remove();if(!f){e(this.ele).trigger("dpClosed",[this.getSelected()])}}},_clearCalendar:function(){e(".dp-calendar td",this.context).unbind();
e(".dp-calendar",this.context).empty()}});e.dpConst={SHOW_HEADER_NONE:0,SHOW_HEADER_SHORT:1,SHOW_HEADER_LONG:2,POS_TOP:0,POS_BOTTOM:1,POS_LEFT:0,POS_RIGHT:1};e.dpText={TEXT_PREV_YEAR:"Previous year",TEXT_PREV_MONTH:"Previous month",TEXT_NEXT_YEAR:"Next year",TEXT_NEXT_MONTH:"Next month",TEXT_CLOSE:"Close",TEXT_CHOOSE_DATE:"Choose date"};
e.dpVersion="$Id: jquery.datePicker.js 15 2008-12-17 04:40:18Z kelvin.luck $";e.fn.datePicker.defaults={month:undefined,year:undefined,showHeader:e.dpConst.SHOW_HEADER_SHORT,startDate:undefined,endDate:undefined,inline:false,renderCallback:null,createButton:true,showYearNavigation:true,closeOnSelect:true,displayClose:false,selectMultiple:false,clickInput:false,verticalPosition:e.dpConst.POS_TOP,horizontalPosition:e.dpConst.POS_LEFT,verticalOffset:0,horizontalOffset:0,hoverClass:"dp-hover"};
function c(f){if(f._dpId){return e.event._dpCache[f._dpId]}return false}if(e.fn.bgIframe==undefined){e.fn.bgIframe=function(){return this}}e(window).bind("unload",function(){var g=e.event._dpCache||[];for(var f in g){e(g[f].ele)._dpDestroy()}})})(jQuery);(function(b){var e={};var a=0;b.galleriffic={version:"2.0.1",normalizeHash:function(f){return f.replace(/^.*#/,"").replace(/\?.*$/,"")
},getImage:function(f){if(!f){return undefined}f=b.galleriffic.normalizeHash(f);return e[f]},gotoImage:function(g){var h=b.galleriffic.getImage(g);if(!h){return false}var f=h.gallery;f.gotoImage(h);return true},removeImageByHash:function(h,g){var k=b.galleriffic.getImage(h);if(!k){return false}var f=k.gallery;
if(g&&g!=f){return false}return f.removeImageByIndex(k.index)}};var c={delay:3000,numThumbs:20,preloadAhead:40,enableTopPager:false,enableBottomPager:true,maxPagesToShow:7,imageContainerSel:"",captionContainerSel:"",controlsContainerSel:"",loadingContainerSel:"",renderSSControls:true,renderNavControls:true,playLinkText:"Play",pauseLinkText:"Pause",prevLinkText:"Previous",nextLinkText:"Next",nextPageLinkText:"Next &rsaquo;",prevPageLinkText:"&lsaquo; Prev",enableHistory:false,enableKeyboardNavigation:true,autoStart:false,syncTransitions:false,defaultTransitionDuration:1000,onSlideChange:undefined,onTransitionOut:undefined,onTransitionIn:undefined,onPageTransitionOut:undefined,onPageTransitionIn:undefined,onImageAdded:undefined,onImageRemoved:undefined};
b.fn.galleriffic=function(h){b.extend(this,{version:b.galleriffic.version,isSlideshowRunning:false,slideshowTimeout:undefined,clickHandler:function(o,m){this.pause();if(!this.enableHistory){var n=b.galleriffic.normalizeHash(b(m).attr("href"));b.galleriffic.gotoImage(n);o.preventDefault()}},appendImage:function(m){this.addImage(m,false,false);
return this},insertImage:function(n,m){this.addImage(n,false,true,m);return this},addImage:function(n,u,y,v){var w=(typeof n==="string")?b(n):n;var o=w.find("a.thumb");var q=o.attr("href");var x=o.attr("title");var t=w.find(".caption").remove();var r=o.attr("name");a++;if(!r||e[""+r]){r=a}if(!y){v=this.data.length
}var m={title:x,slideUrl:q,caption:t,hash:r,gallery:this,index:v};if(y){this.data.splice(v,0,m);this.updateIndices(v)}else{this.data.push(m)}var z=this;if(!u){this.updateThumbs(function(){var A=z.find("ul.thumbs");if(y){A.children(":eq("+v+")").before(w)}else{A.append(w)}if(z.onImageAdded){z.onImageAdded(m,w)
}})}e[""+r]=m;o.attr("rel","history").attr("href","#"+r).removeAttr("name").click(function(A){z.clickHandler(A,this)});return this},removeImageByIndex:function(m){if(m<0||m>=this.data.length){return false}var n=this.data[m];if(!n){return false}this.removeImage(n);return true},removeImageByHash:function(m){return b.galleriffic.removeImageByHash(m,this)
},removeImage:function(n){var m=n.index;this.data.splice(m,1);delete e[""+n.hash];this.updateThumbs(function(){var o=f.find("ul.thumbs").children(":eq("+m+")").remove();if(f.onImageRemoved){f.onImageRemoved(n,o)}});this.updateIndices(m);return this},updateIndices:function(m){for(i=m;i<this.data.length;
i++){this.data[i].index=i}return this},initializeThumbs:function(){this.data=[];var m=this;this.find("ul.thumbs > li").each(function(n){m.addImage(b(this),true,false)});return this},isPreloadComplete:false,preloadInit:function(){if(this.preloadAhead==0){return this}this.preloadStartIndex=this.currentImage.index;
var m=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,m)},preloadRelocate:function(m){this.preloadStartIndex=m;return this},preloadRecursive:function(t,o){if(t!=this.preloadStartIndex){var m=this.getNextIndex(this.preloadStartIndex);return this.preloadRecursive(this.preloadStartIndex,m)
}var n=this;var q=o-t;if(q<0){q=this.data.length-1-t+o}if(this.preloadAhead>=0&&q>this.preloadAhead){setTimeout(function(){n.preloadRecursive(t,o)},500);return this}var u=this.data[o];if(!u){return this}if(u.image){return this.preloadNext(t,o)}var r=new Image();r.onload=function(){u.image=this;n.preloadNext(t,o)
};r.alt=u.title;r.src=u.slideUrl;return this},preloadNext:function(q,o){var m=this.getNextIndex(o);if(m==q){this.isPreloadComplete=true}else{var n=this;setTimeout(function(){n.preloadRecursive(q,m)},100)}return this},getNextIndex:function(n){var m=n+1;if(m>=this.data.length){m=0}return m},getPrevIndex:function(m){var n=m-1;
if(n<0){n=this.data.length-1}return n},pause:function(){this.isSlideshowRunning=false;if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout);this.slideshowTimeout=undefined}if(this.$controlsContainer){this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("play").attr("title",this.playLinkText).attr("href","#play").html(this.playLinkText)
}return this},play:function(){this.isSlideshowRunning=true;if(this.$controlsContainer){this.$controlsContainer.find("div.ss-controls a").removeClass().addClass("pause").attr("title",this.pauseLinkText).attr("href","#pause").html(this.pauseLinkText)}if(!this.slideshowTimeout){var m=this;this.slideshowTimeout=setTimeout(function(){m.ssAdvance()
},this.delay)}return this},toggleSlideshow:function(){if(this.isSlideshowRunning){this.pause()}else{this.play()}return this},ssAdvance:function(){if(this.isSlideshowRunning){this.next(true)}return this},next:function(m,n){this.gotoIndex(this.getNextIndex(this.currentImage.index),m,n);return this},previous:function(m,n){this.gotoIndex(this.getPrevIndex(this.currentImage.index),m,n);
return this},nextPage:function(n,t){var q=this.getCurrentPage();var o=this.getNumPages()-1;if(q<o){var r=q*this.numThumbs;var m=r+this.numThumbs;this.gotoIndex(m,n,t)}return this},previousPage:function(m,r){var o=this.getCurrentPage();if(o>0){var q=o*this.numThumbs;var n=q-this.numThumbs;this.gotoIndex(n,m,r)
}return this},gotoIndex:function(n,m,o){if(!m){this.pause()}if(n<0){n=0}else{if(n>=this.data.length){n=this.data.length-1}}var q=this.data[n];if(!o&&this.enableHistory){b.historyLoad(String(q.hash))}else{this.gotoImage(q)}return this},gotoImage:function(n){var m=n.index;if(this.onSlideChange){this.onSlideChange(this.currentImage.index,m)
}this.currentImage=n;this.preloadRelocate(m);this.refresh();return this},getDefaultTransitionDuration:function(m){if(m){return this.defaultTransitionDuration}return this.defaultTransitionDuration/2},refresh:function(){var m=this.currentImage;if(!m){return this}var r=m.index;if(this.$controlsContainer){this.$controlsContainer.find("div.nav-controls a.prev").attr("href","#"+this.data[this.getPrevIndex(r)].hash).end().find("div.nav-controls a.next").attr("href","#"+this.data[this.getNextIndex(r)].hash)
}var v=this.$imageContainer.find("span.current").addClass("previous").removeClass("current");var u=0;if(this.$captionContainer){u=this.$captionContainer.find("span.current").addClass("previous").removeClass("current")}var q=this.syncTransitions&&m.image;var n=true;var w=this;var t=function(){n=false;
v.remove();if(u){u.remove()}if(!q){if(m.image&&m.hash==w.data[w.currentImage.index].hash){w.buildImage(m,q)}else{if(w.$loadingContainer){w.$loadingContainer.show()}}}};if(v.length==0){t()}else{if(this.onTransitionOut){this.onTransitionOut(v,u,q,t)}else{v.fadeTo(this.getDefaultTransitionDuration(q),0,t);
if(u){u.fadeTo(this.getDefaultTransitionDuration(q),0)}}}if(q){this.buildImage(m,q)}if(!m.image){var o=new Image();o.onload=function(){m.image=this;if(!n&&m.hash==w.data[w.currentImage.index].hash){w.buildImage(m,q)}};o.alt=m.title;o.src=m.slideUrl}this.relocatePreload=true;return this.syncThumbs()},buildImage:function(t,q){var o=this;
var m=this.getNextIndex(t.index);var n=this.$imageContainer.append('<span class="image-wrapper current"><a class="advance-link" rel="history" href="#'+this.data[m].hash+'" title="'+t.title+'"></a></span>').find("span.current").css("opacity","0");n.find("a").append(t.image).click(function(u){o.clickHandler(u,this)
});var r=0;if(this.$captionContainer){r=this.$captionContainer.append('<span class="image-caption current"></span>').find("span.current").css("opacity","0").append(t.caption)}if(this.$loadingContainer){this.$loadingContainer.hide()}if(this.onTransitionIn){this.onTransitionIn(n,r,q)}else{n.fadeTo(this.getDefaultTransitionDuration(q),1);
if(r){r.fadeTo(this.getDefaultTransitionDuration(q),1)}}if(this.isSlideshowRunning){if(this.slideshowTimeout){clearTimeout(this.slideshowTimeout)}this.slideshowTimeout=setTimeout(function(){o.ssAdvance()},this.delay)}return this},getCurrentPage:function(){return Math.floor(this.currentImage.index/this.numThumbs)
},syncThumbs:function(){var n=this.getCurrentPage();if(n!=this.displayedPage){this.updateThumbs()}var m=this.find("ul.thumbs").children();m.filter(".selected").removeClass("selected");m.eq(this.currentImage.index).addClass("selected");return this},updateThumbs:function(m){var n=this;var o=function(){if(m){m()
}n.rebuildThumbs();if(n.onPageTransitionIn){n.onPageTransitionIn()}else{n.show()}};if(this.onPageTransitionOut){this.onPageTransitionOut(o)}else{this.hide();o()}return this},rebuildThumbs:function(){var o=this.data.length>this.numThumbs;if(this.enableTopPager){var m=this.find("div.top");if(m.length==0){m=this.prepend('<div class="top pagination"></div>').find("div.top")
}else{m.empty()}if(o){this.buildPager(m)}}if(this.enableBottomPager){var r=this.find("div.bottom");if(r.length==0){r=this.append('<div class="bottom pagination"></div>').find("div.bottom")}else{r.empty()}if(o){this.buildPager(r)}}var t=this.getCurrentPage();var u=t*this.numThumbs;var n=u+this.numThumbs-1;
if(n>=this.data.length){n=this.data.length-1}var q=this.find("ul.thumbs");q.find("li").each(function(v){var w=b(this);if(v>=u&&v<=n){w.show()}else{w.hide()}});this.displayedPage=t;q.removeClass("noscript");return this},getNumPages:function(){return Math.ceil(this.data.length/this.numThumbs)},buildPager:function(o){var y=this;
var n=this.getNumPages();var r=this.getCurrentPage();var w=r*this.numThumbs;var m=this.maxPagesToShow-1;var t=r-Math.floor((this.maxPagesToShow-1)/2)+1;if(t>0){var x=n-t;if(x<m){t=t-(m-x)}}if(t<0){t=0}if(r>0){var q=w-this.numThumbs;o.append('<a rel="history" href="#'+this.data[q].hash+'" title="'+this.prevPageLinkText+'">'+this.prevPageLinkText+"</a>")
}if(t>0){this.buildPageLink(o,0,n);if(t>1){o.append('<span class="ellipsis">&hellip;</span>')}m--}while(m>0){this.buildPageLink(o,t,n);m--;t++}if(t<n){var v=n-1;if(t<v){o.append('<span class="ellipsis">&hellip;</span>')}this.buildPageLink(o,v,n)}var u=w+this.numThumbs;if(u<this.data.length){o.append('<a rel="history" href="#'+this.data[u].hash+'" title="'+this.nextPageLinkText+'">'+this.nextPageLinkText+"</a>")
}o.find("a").click(function(z){y.clickHandler(z,this)});return this},buildPageLink:function(o,t,q){var n=t+1;var r=this.getCurrentPage();if(t==r){o.append('<span class="current">'+n+"</span>")}else{if(t<q){var m=t*this.numThumbs;o.append('<a rel="history" href="#'+this.data[m].hash+'" title="'+n+'">'+n+"</a>")
}}return this}});b.extend(this,c,h);if(this.enableHistory&&!b.historyInit){this.enableHistory=false}if(this.imageContainerSel){this.$imageContainer=b(this.imageContainerSel)}if(this.captionContainerSel){this.$captionContainer=b(this.captionContainerSel)}if(this.loadingContainerSel){this.$loadingContainer=b(this.loadingContainerSel)
}this.initializeThumbs();if(this.maxPagesToShow<3){this.maxPagesToShow=3}this.displayedPage=-1;this.currentImage=this.data[0];var f=this;if(this.$loadingContainer){this.$loadingContainer.hide()}if(this.controlsContainerSel){this.$controlsContainer=b(this.controlsContainerSel).empty();if(this.renderSSControls){if(this.autoStart){this.$controlsContainer.append('<div class="ss-controls"><a href="#pause" class="pause" title="'+this.pauseLinkText+'">'+this.pauseLinkText+"</a></div>")
}else{this.$controlsContainer.append('<div class="ss-controls"><a href="#play" class="play" title="'+this.playLinkText+'">'+this.playLinkText+"</a></div>")}this.$controlsContainer.find("div.ss-controls a").click(function(m){f.toggleSlideshow();m.preventDefault();return false})}if(this.renderNavControls){this.$controlsContainer.append('<div class="nav-controls"><a class="prev" rel="history" title="'+this.prevLinkText+'">'+this.prevLinkText+'</a><a class="next" rel="history" title="'+this.nextLinkText+'">'+this.nextLinkText+"</a></div>").find("div.nav-controls a").click(function(m){f.clickHandler(m,this)
})}}var g=!this.enableHistory||!location.hash;if(this.enableHistory&&location.hash){var k=b.galleriffic.normalizeHash(location.hash);var l=e[k];if(!l){g=true}}if(g){this.gotoIndex(0,false,true)}if(this.enableKeyboardNavigation){b(document).keydown(function(n){var m=n.charCode?n.charCode:n.keyCode?n.keyCode:0;
switch(m){case 32:f.next();n.preventDefault();break;case 33:f.previousPage();n.preventDefault();break;case 34:f.nextPage();n.preventDefault();break;case 35:f.gotoIndex(f.data.length-1);n.preventDefault();break;case 36:f.gotoIndex(0);n.preventDefault();break;case 37:f.previous();n.preventDefault();break;
case 39:f.next();n.preventDefault();break}})}if(this.autoStart){this.play()}setTimeout(function(){f.preloadInit()},1000);return this}})(jQuery);$D.ready(function(){if($B.hasClass("homepage")){$("div.navigation").css({width:"300px","float":"left"});$("div.content").css("display","block");var a=0.4;$("#thumbs ul.thumbs li").not("#thumbs ul.thumbs li ul li").css("opacity",a).hover(function(){$(this).not(".selected").fadeTo("fast",1)
},function(){$(this).not(".selected").fadeTo("fast",a)});$(".bigButtons li").click(function(){window.location=$(this).find("a").attr("href");return false});var b=new VT.DSW(new VT.DSW_HOMPAGE());b.locationSelectedCallback=function(e){var f=document.location.href.replace(/(http:\/\/[^\/]+\/).*/,"$1");
var c=f+"ajax/getOverviewURL/"+e.data.id;$.get(c,function(g){document.location.href=g})};b.initialize();$("#thumbs").galleriffic({delay:4000,enableTopPager:true,enableBottomPager:true,imageContainerSel:"#slideshow",controlsContainerSel:"#controls",captionContainerSel:"#caption",loadingContainerSel:"#loading",renderSSControls:true,renderNavControls:true,playLinkText:"Play Slideshow",pauseLinkText:"Pause Slideshow",prevLinkText:"",nextLinkText:"",nextPageLinkText:"",prevPageLinkText:"",enableKeyboardNavigation:false,autoStart:true,onSlideChange:function(e,c){this.find("ul.thumbs").children().eq(e).fadeTo("fast",a).end().eq(c).fadeTo("fast",1)
}});Date.firstDayOfWeek=0;$(function(){$("#secondaryContent .meetings .meetingsCal").datePicker({showHeaderHeader:$.dpConst.SHOW_HEADER_NONE,inline:true,hoverClass:false})});$("input:text").hint()}});(function(a){a.fn.expander=function(e){var g=a.extend({},a.fn.expander.defaults,e);var c;return this.each(function(){var u=a(this);
var l=a.meta?a.extend({},g,u.data()):g;var w,A,n;var t=u.html();var x=t.slice(0,l.slicePoint).replace(/\w+$/,"");A=x.match(/<\w[^>]*>/g);if(A){x=t.slice(0,l.slicePoint+A.join("").length).replace(/\w+$/,"")}if(x.lastIndexOf("<")>x.lastIndexOf(">")){x=x.slice(0,x.lastIndexOf("<"))}var m=t.slice(x.length);
if(!a("span.details",this).length){if(m.replace(/\s+$/,"").split(" ").length<l.widow){return}if(m.indexOf("</")>-1){n=m.match(/<(\/)?[^>]*>/g);for(var r=0;r<n.length;r++){if(n[r].indexOf("</")>-1){var z,v=false;for(var q=0;q<r;q++){z=n[q].slice(0,n[q].indexOf(" ")).replace(/(\w)$/,"$1>");if(z==h(n[r])){v=true
}}if(!v){x=x+n[r];var k=false;for(var C=A.length-1;C>=0;C--){if(A[C].slice(0,A[C].indexOf(" ")).replace(/(\w)$/,"$1>")==h(n[r])&&k==false){w=w?A[C]+w:A[C];k=true}}}}}m=w&&w+m||m}u.html([x,'<span class="read-more">',l.expandPrefix,'<a href="#">',l.expandText,"</a>","</span>",'<span class="details">',m,"</span>"].join(""))
}var y=a("span.details",this),B=a("span.read-more",this);y.hide();B.find("a").click(function(){B.hide();if(l.expandEffect==="show"&&!l.expandSpeed){l.beforeExpand(u);y.show();l.afterExpand(u);f(l,y)}else{l.beforeExpand(u);y[l.expandEffect](l.expandSpeed,function(){y.css({zoom:""});l.afterExpand(u);f(l,y)
})}return false});if(l.userCollapse){u.find("span.details").append('<span class="re-collapse">'+l.userCollapsePrefix+'<a href="#">'+l.userCollapseText+"</a></span>");u.find("span.re-collapse a").click(function(){clearTimeout(c);var o=a(this).parents("span.details");b(o);l.onCollapse(u,true);return false
})}});function b(k){k.hide().prev("span.read-more").show()}function f(l,k){if(l.collapseTimer){c=setTimeout(function(){b(k);l.onCollapse(k.parent(),false)},l.collapseTimer)}}function h(k){return k.replace(/\//,"")}};a.fn.expander.defaults={slicePoint:100,widow:4,expandText:"read more",expandPrefix:"&hellip; ",collapseTimer:0,expandEffect:"fadeIn",expandSpeed:"",userCollapse:true,userCollapseText:"[collapse expanded text]",userCollapsePrefix:" ",beforeExpand:function(b){},afterExpand:function(b){},onCollapse:function(c,b){}}
})(jQuery);(function(J,a){var m=a.document;function F(Q){var ae=m.createElement("div");m.body.insertBefore(ae,null);J.replaceWith(ae,'<script type="text/javascript">'+Q+"<\/script>")}J=J||(function(Q){return{ajax:Q.ajax,$:function(ae){return Q(ae)[0]},replaceWith:function(ae,ai){var ah=Q(ae)[0];var ag=ah.nextSibling,af=ah.parentNode;
Q(ah).remove();if(ag){Q(ag).before(ai)}else{Q(af).append(ai)}},onLoad:function(ae){Q(ae)},copyAttrs:function(ak,ag){var ai=Q(ag),af=ak.attributes;for(var ah=0,ae=af.length;ah<ae;ah++){if(af[ah]&&af[ah].value){try{ai.attr(af[ah].name,af[ah].value)}catch(aj){}}}}}})(a.jQuery);J.copyAttrs=J.copyAttrs||function(){};
J.onLoad=J.onLoad||function(){throw"error: autoAsync cannot be used without jQuery or defining writeCaptureSupport.onLoad"};function V(ag,af){for(var ae=0,Q=ag.length;ae<Q;ae++){if(af(ag[ae])===false){return}}}function A(Q){return Object.prototype.toString.call(Q)==="[object Function]"}function u(Q){return Object.prototype.toString.call(Q)==="[object String]"
}function z(af,ae,Q){return Array.prototype.slice.call(af,ae||0,Q||af&&af.length)}function I(ag,af){var Q=false;V(ag,ae);function ae(ah){return !(Q=af(ah))}return Q}function R(Q){this._queue=[];this._children=[];this._parent=Q;if(Q){Q._addChild(this)}}R.prototype={_addChild:function(Q){this._children.push(Q)
},push:function(Q){this._queue.push(Q);this._bubble("_doRun")},pause:function(){this._bubble("_doPause")},resume:function(){this._bubble("_doResume")},_bubble:function(ae){var Q=this;while(!Q[ae]){Q=Q._parent}return Q[ae]()},_next:function(){if(I(this._children,Q)){return true}function Q(af){return af._next()
}var ae=this._queue.shift();if(ae){ae()}return !!ae}};function l(Q){if(Q){return new R(Q)}R.call(this);this.paused=0}l.prototype=(function(){function Q(){}Q.prototype=R.prototype;return new Q()})();l.prototype._doRun=function(){if(!this.running){this.running=true;try{while(this.paused<1&&this._next()){}}finally{this.running=false
}}};l.prototype._doPause=function(){this.paused++};l.prototype._doResume=function(){this.paused--;this._doRun()};function S(){}S.prototype={_html:"",open:function(){this._opened=true;if(this._delegate){this._delegate.open()}},write:function(Q){if(this._closed){return}this._written=true;if(this._delegate){this._delegate.write(Q)
}else{this._html+=Q}},writeln:function(Q){this.write(Q+"\n")},close:function(){this._closed=true;if(this._delegate){this._delegate.close()}},copyTo:function(Q){this._delegate=Q;Q.foobar=true;if(this._opened){Q.open()}if(this._written){Q.write(this._html)}if(this._closed){Q.close()}}};var f=(function(){var Q={f:m.getElementById};
try{Q.f.call(m,"abc");return true}catch(ae){return false}})();function N(Q){V(Q,function(ae){var af=m.getElementById(ae.id);if(!af){o("<proxyGetElementById - finish>","no element in writen markup with id "+ae.id);return}V(ae.el.childNodes,function(ag){af.appendChild(ag)});if(af.contentWindow){a.setTimeout(function(){ae.el.contentWindow.document.copyTo(af.contentWindow.document)
},1)}J.copyAttrs(ae.el,af)})}function x(ae,Q){if(Q&&Q[ae]===false){return false}return Q&&Q[ae]||t[ae]}function C(ae,an){var aj=[],ai=x("proxyGetElementById",an),al=x("writeOnGetElementById",an),Q={write:m.write,writeln:m.writeln,finish:function(){},out:""};ae.state=Q;m.write=am;m.writeln=af;if(ai||al){Q.getEl=m.getElementById;
m.getElementById=ag;if(al){findEl=ak}else{findEl=ah;Q.finish=function(){N(aj)}}}function am(ao){Q.out+=ao}function af(ao){Q.out+=ao+"\n"}function ah(ap){var ao=m.createElement("div");aj.push({id:ap,el:ao});ao.contentWindow={document:new S()};return ao}function ak(aq){var ao=J.$(ae.target);var ap=m.createElement("div");
ao.parentNode.insertBefore(ap,ao);J.replaceWith(ap,Q.out);Q.out="";return f?Q.getEl.call(m,aq):Q.getEl(aq)}function ag(ap){var ao=f?Q.getEl.call(m,ap):Q.getEl(ap);return ao||findEl(ap)}return Q}function aa(Q){m.write=Q.write;m.writeln=Q.writeln;if(Q.getEl){m.getElementById=Q.getEl}return Q.out}function T(Q){return Q&&Q.replace(/^\s*<!(\[CDATA\[|--)/,"").replace(/(\]\]|--)>\s*$/,"")
}function b(){}function e(ae,Q){console.error("Error",Q,"executing code:",ae)}var o=A(a.console&&console.error)?e:b;function X(af,ae,Q){var ag=C(ae,Q);try{F(T(af))}catch(ah){o(af,ah)}finally{aa(ag)}return ag}function U(ae){var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(ae);return Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)
}function Y(Q){return new RegExp(Q+"=(?:([\"'])([\\s\\S]*?)\\1|([^\\s>]+))","i")}function n(Q){var ae=Y(Q);return function(af){var ag=ae.exec(af)||[];return ag[2]||ag[3]}}var w=/(<script[\s\S]*?>)([\s\S]*?)<\/script>/ig,r=Y("src"),ac=n("src"),v=n("type"),ad=n("language"),H="__document_write_ajax_callbacks__",G="__document_write_ajax_div-",h="window['"+H+"']['%d']();",q=a[H]={},B='<script type="text/javascript">'+h+"<\/script>",M=0;
function c(){return(++M).toString()}function L(ae,af){var Q;if(A(ae)){Q=ae;ae=null}ae=ae||{};Q=Q||ae&&ae.done;ae.done=af?function(){af(Q)}:Q;return ae}var E=new l();var D=[];var g=window._debugWriteCapture?function(){}:function(Q,af,ae){D.push({type:Q,src:af,data:ae})};var P=window._debugWriteCapture?function(){}:function(){D.push(arguments)
};function ab(Q){var ae=c();q[ae]=function(){Q();delete q[ae]};return ae}function O(Q){return B.replace(/%d/,ab(Q))}function W(ah,al,af,aj){var ai=af&&new l(af)||E;al=L(al);var ag=x("done",al);var Q="";var ae=x("fixUrls",al);if(!A(ae)){ae=function(am){return am}}if(A(ag)){Q=O(function(){ai.push(ag)})
}return ah.replace(w,ak)+Q;function ak(ao,aA,an){var at=ac(aA),ar=v(aA)||"",aG=ad(aA)||"",aF=(!ar&&!aG)||ar.toLowerCase().indexOf("javascript")!==-1||aG.toLowerCase().indexOf("javascript")!==-1;g("replace",at,ao);if(!aF){return ao}var aB=ab(av),au=G+aB,az,aq={target:"#"+au,parent:aj};function av(){ai.push(az)
}if(at){at=ae(at);aA=aA.replace(r,"");if(U(at)){az=aE}else{if(x("asyncAll",al)){az=aD()}else{az=ay}}}else{az=aC}function aC(){am(an)}function ay(){J.ajax({url:at,type:"GET",dataType:"text",async:false,success:function(aH){am(aH)},cache:true})}function ap(aJ,aH,aI){o("<XHR for "+at+">",aI);ai.resume()
}function aw(){return O(function(){ai.resume()})}function aD(){var aJ,aI;function aH(aL,aK){if(!aJ){aI=aL;return}try{am(aL,aw())}catch(aM){o(aL,aM)}}J.ajax({url:at,type:"GET",dataType:"text",async:true,success:aH,error:ap,cache:true});return function(){aJ=true;if(aI){am(aI)}else{ai.pause()}}}function aE(aH){var aJ=C(aq,al);
ai.pause();g("pause",at);J.ajax({url:at,type:"GET",dataType:"script",success:aI,error:ap,cache:true});function aI(aM,aL,aK){g("out",at,aJ.out);ax(aa(aJ),O(aJ.finish)+aw());g("resume",at)}}function am(aI,aH){var aJ=X(aI,aq,al);aH=O(aJ.finish)+(aH||"");ax(aJ.out,aH)}function ax(aI,aH){J.replaceWith(aq.target,W(aI,null,ai,aq)+(aH||""))
}return'<div style="display: none" id="'+au+'"></div>'+aA+h.replace(/%d/,aB)+"<\/script>"}}function K(ae,af){var Q=E;V(ae,function(ag){Q.push(ah);function ah(){ag.action(W(ag.html,ag.options,Q),ag)}});if(af){Q.push(af)}}function Z(Q){var ae=Q;while(ae&&ae.nodeType===1){Q=ae;ae=ae.lastChild;while(ae&&ae.nodeType!==1){ae=ae.previousSibling
}}return Q}function k(Q){var af=m.write,ai=m.writeln,ae,ag=[];m.writeln=function(aj){m.write(aj+"\n")};var ah;m.write=function(ak){var aj=Z(m.body);if(aj!==ae){ae=aj;ag.push(ah={el:aj,out:[]})}ah.out.push(ak)};J.onLoad(function(){var am,ap,ak,ao,an;Q=L(Q);an=Q.done;Q.done=function(){m.write=af;m.writeln=ai;
if(an){an()}};for(var al=0,aj=ag.length;al<aj;al++){am=ag[al].el;ap=m.createElement("div");am.parentNode.insertBefore(ap,am.nextSibling);ak=ag[al].out.join("");ao=aj-al===1?W(ak,Q):W(ak);J.replaceWith(ap,ao)}})}var y="writeCapture";var t=a[y]={_original:a[y],fixUrls:function(Q){return Q.replace(/&amp;/g,"&")
},noConflict:function(){a[y]=this._original;return this},debug:D,proxyGetElementById:false,_forTest:{Q:l,GLOBAL_Q:E,$:J,matchAttr:n,slice:z,capture:C,uncapture:aa,captureWrite:X},replaceWith:function(Q,af,ae){J.replaceWith(Q,W(af,ae))},html:function(Q,ag,ae){var af=J.$(Q);af.innerHTML="<span/>";J.replaceWith(af.firstChild,W(ag,ae))
},load:function(Q,af,ae){J.ajax({url:af,dataType:"text",type:"GET",success:function(ag){t.html(Q,ag,ae)},cache:true})},autoAsync:k,sanitize:W,sanitizeSerial:K}})(this.writeCaptureSupport,this);(function(h,e,r){var c={html:k};h.each(["append","prepend","after","before","wrap","wrapAll","replaceWith","wrapInner"],function(){c[this]=l(this)
});function a(v){return Object.prototype.toString.call(v)=="[object String]"}function u(z,y,x,w){if(arguments.length==0){return t.call(this)}var v=c[z];if(z=="load"){return o.call(this,y,x,w)}if(!v){m(z)}return b.call(this,y,x,v)}h.fn.writeCapture=u;var n="__writeCaptureJsProxied-fghebd__";function t(){if(this[n]){return this
}var w=this;function v(){var y=this,x=false;this[n]=true;h.each(c,function(A){var z=w[A];if(!z){return}y[A]=function(D,C,B){if(!x&&a(D)){try{x=true;return u.call(y,A,D,C,B)}finally{x=false}}return z.apply(y,arguments)}});this.pushStack=function(){return t.call(w.pushStack.apply(y,arguments))};this.endCapture=function(){return w
}}v.prototype=w;return new v()}function b(y,x,z){var v,w=this;if(x&&x.done){v=x.done;delete x.done}else{if(h.isFunction(x)){v=x;x=null}}e.sanitizeSerial(h.map(this,function(A){return{html:y,options:x,action:function(B){z.call(A,B)}}}),v&&function(){v.call(w)}||v);return this}function k(v){h(this).html(v)
}function l(v){return function(w){h(this)[v](w)}}function o(y,x,A){var w=this,v,z=y.indexOf(" ");if(z>=0){v=y.slice(z,y.length);y=y.slice(0,z)}if(h.isFunction(A)){x=x||{};x.done=A}return h.ajax({url:y,type:x&&x.type||"GET",dataType:"html",data:x&&x.params,complete:g(w,x,v),cache:true})}function g(w,x,v){return function(z,y){if(y=="success"||y=="notmodified"){var A=q(z.responseText,v);
b.call(w,A,x,k)}}}var f=/jquery-writeCapture-script-placeholder-(\d+)-wc/g;function q(x,w){if(!w||!x){return x}var y=0,v={};return h("<div/>").append(x.replace(/<script(.|\s)*?\/script>/g,function(z){v[y]=z;return"jquery-writeCapture-script-placeholder-"+(y++)+"-wc"})).find(w).html().replace(f,function(z,A){return v[A]
})}function m(v){throw"invalid method parameter "+v}h.writeCapture=e})(jQuery,writeCapture.noConflict());VT.HOTEL_GEO={vtLocationId:null,vtLocationLevel:5,vtLocationName:null,normalizedVtLocationName:null,pageType:null,sort:null,order:null,pageIndex:1,gMapLayer:null,gMapCenter:null,gMapIsNew:true,gMapQtip:null,busyNoOp:false,initHotelGeo:function(f,c,h,b,e,g,a){VT.HOTEL_GEO.vtLocationId=f;
VT.HOTEL_GEO.pageType=e;VT.HOTEL_GEO.sort=g;VT.HOTEL_GEO.order=a;VT.HOTEL_GEO.hotelFetchTimer=null;VT.HOTEL_GEO.vtLocationLevel=c;VT.HOTEL_GEO.vtLocationName=h;VT.HOTEL_GEO.normalizedVtLocationName=b},initGMap:function(a){VT.HOTEL_GEO.gMapCenter={latitude:a.latitude,longitude:a.longitude}},fetchHotelsCallback:function(){VT.HOTEL_GEO.hotelFetchTimer=null;
$("div.checkRates").each(function(a,c){var b=$(c).attr("class").split(" ")[2].split("_")[2];new VT.CheckRatesBoxV2(b,VT.HOTEL_GEO.pageType,".crBtn_ta_"+b)});$(".ncTips").remove();VT.HOTEL_GEO.disableZeros();VT.HOTEL_GEO.sortClickHandler();VT.HOTEL_GEO.pageClickHandler();VT.Util.delayedJsLoader.callWhenLoaded(function(){VT.HOTEL_GEO.reloadStaticMap()
},VT.HOTEL_GEO.getGmapJsUrl());VT.HOTEL_GEO.busyNoOp=false;urchinTracker("/nopg/hotels/filter/"+window.location.pathname)},getGmapJsUrl:function(){return $("#hotelGeo_gmap").attr("dm")},fetchHotelsDelayed:function(a){if(VT.HOTEL_GEO.hotelFetchTimer){window.clearTimeout(VT.HOTEL_GEO.hotelFetchTimer)}VT.HOTEL_GEO.hotelFetchTimer=window.setTimeout(function(){VT.HOTEL_GEO.fetchHotels(a)
},1000)},fetchHotels:function(h){window.scroll(0,0);$("#hotelListItems").html(loadingHtml);var f="";$(".hotelSorts .sortStars input:checked").each(function(k,l){if(f.length>0){f+=","}f+=$(l).attr("value")});var c="";$(".hotelSorts .sortPrice input:checked").each(function(k,l){if(c.length>0){c+=","}c+=$(l).attr("value")
});var g="";$(".hotelSorts .sortType input:checked").each(function(k,l){if(g.length>0){g+=","}g+=$(l).attr("value")});var b="";$(".vtVal input:checked").each(function(k,l){if(b.length>0){g+=","}b+=$(l).attr("value")});if(h){if(h.sort){VT.HOTEL_GEO.sort=h.sort}if(h.order){VT.HOTEL_GEO.order=h.order}}var a={sort:VT.HOTEL_GEO.sort,order:VT.HOTEL_GEO.order,hotelClass:f,hotelPrice:c,hotelType:g,pageIndex:h&&h.pageIndex?h.pageIndex:1,onlyVtValue:b};
var e=$("#hotelSearch_input").val();e=$.trim(e);VT.HTML_UPDATER.updateComponent(["hotelListCount","hotelListItems","0class","1class","2class","3class","4class","5class","0price","1price","2price","3price","4price","5price","0type","1type","2type","3type","4type"],"w3/fetchHotels/"+VT.HOTEL_GEO.vtLocationLevel+"/"+VT.HOTEL_GEO.vtLocationId,a,VT.HOTEL_GEO.fetchHotelsCallback)
},resetCheckBoxes:function(b){for(var a=0;a<b.length;a++){$(b[a]+"[value=0]").attr("checked",true);$(b[a]+"[value!=0]").attr("checked",false)}},checkBoxClickHandler:function(a){$(a).each(function(b,c){$(c).click(function(){VT.HOTEL_GEO.busyNoOp=true;var g=a+"[value=0]";var f=a+"[value!=0]";if($(c).attr("value")==0){$(f).attr("checked",false)
}else{$(g).attr("checked",false)}var e=false;$(a).each(function(h,k){if($(k).attr("checked")){e=true}});if(!e){$(g).attr("checked",true)}VT.HOTEL_GEO.fetchHotelsDelayed()})})},pageClickHandler:function(){$("#hotelListItems .pagination ul li a").each(function(a,c){var b=$(c);b.click(function(){VT.HOTEL_GEO.fetchHotels({pageIndex:this.hash.substr(1)});
return false})})},disableZeros:function(){var a=function(c,b){c.parent().find("input").each(function(e,g){if(!b){$(g).attr("disabled","disabled")}else{$(g).removeAttr("disabled")}})};$(".hotelList .hotelSorts div fieldset .checkSet .facetCount, .hotelList .vtVal .checkSet .facetCount").each(function(b,g){var c=$(g);
var f=c.parent();if(c.text()=="(0)"){f.addClass("disabled");a(f,false)}else{f.removeClass("disabled");a(f,true)}})},sortClickHandler:function(){var c=/^.*TG-(([^-]+)(-([^-]+))?)-([0-9]+)\.html$/;var b=$(".hotelList .sorts ul");var a=b.find("li a");a.each(function(k,n){var l=$(n);var m=l.attr("href");
if(m==null||m.length==0){m=VT.ASDF.asdfst(l.attr("hl"))}if(m){var h=m.replace(c,"$2");var f=m.replace(c,"$4");if(h!="C"&&h==VT.HOTEL_GEO.sort){f=(VT.HOTEL_GEO.order=="Asc"?"Desc":"Asc")}var o={sort:h};var g=f&&f.length>0;if(g){o.order=f}l.unbind("click");l.click(function(){a.each(function(q,e){var r=$(e);
r.removeClass("current");r.find("span").remove()});l.addClass("current");if(g){l.append($('<span class="'+f.toLowerCase()+'"></span>'))}VT.HOTEL_GEO.fetchHotels(o);return false})}})},getCoords:function(){var a=[];$("#hotelListItems .listItemContainer .hotelInfo").each(function(h,k){try{var g=$(k);var o=g.find(".hotelName");
var f=VT.ASDF.asdfst(g.attr("ll"));if(f!="0.0,0.0"&&f!="null,null"){var n=GLatLng.fromUrlValue(f);var b=new GMarker(n,G_DEFAULT_ICON);GEvent.addListener(b,"mouseover",function(){b.openInfoWindowHtml(o.clone().get(0))});a.push(b)}}catch(k){}});return a},gMapQtipOpts:function(){var a=$("#hotelGeo_gmap img");
a.qtip({content:{title:{text:VT.HOTEL_GEO.vtLocationName,button:"Close"},text:"<p>Loading map...</p>"},position:{target:$(document.body),corner:"center"},show:{when:"click",solo:true,delay:0},hide:false,style:{classes:{content:"hotelGeo_gmap_content"},width:500,height:500,padding:"0"},api:{beforeShow:function(){if(VT.HOTEL_GEO.busyNoOp==true){return false
}$("#qtip-blanket").show();VT.Dom.hideBleeders(this)},beforeHide:function(){$("#qtip-blanket").hide();VT.Dom.showBleeders()},onRender:function(){},onShow:function(){var b=this;var c=function(){VT.HOTEL_GEO.renderDynamicGMap(b,".hotelGeo_gmap_content")};VT.Util.delayedJsLoader.callWhenLoaded(c,VT.HOTEL_GEO.getGmapJsUrl())
}}});return a},renderDynamicGMap:function(b,a){if(typeof(GMap2)=="undefined"){console.log("google maps not loaded");return}VT.HOTEL_GEO.gMapQtip=b;if(VT.HOTEL_GEO.gMapIsNew){var f=$(a).get(0);if(GBrowserIsCompatible()){var h=new GMap2(f);var c=new GLatLngBounds();h.addControl(new GLargeMapControl());
h.addControl(new GMenuMapTypeControl());var g=VT.HOTEL_GEO.getCoords();for(var e=0;e<g.length;e++){h.addOverlay(g[e]);c.extend(g[e].getLatLng())}h.setCenter(c.getCenter(),h.getBoundsZoomLevel(c))}}VT.HOTEL_GEO.gMapIsNew=false},reloadStaticMap:function(){if(typeof(GMap2)=="undefined"){console.log("google maps not loaded");
return}var k=$("#hotelGeo_gmap img");var g=k.attr("src");var a=/^.*size=([^&]*).*$/;var c="size="+g.replace(a,"$1");var f=VT.HOTEL_GEO.getCoords();var l="";for(p in f){try{l+="&markers=color:red|"+f[p].getLatLng().toUrlValue()}catch(h){}}var b="/ajax/gmapsign/?"+c+l;if(VT.HOTEL_GEO.gMapQtip){VT.HOTEL_GEO.gMapQtip.disable(true);
VT.HOTEL_GEO.gMapQtip.destroy()}VT.HOTEL_GEO.gMapIsNew=true;VT.Util.loadImg(b,null,k.parent(),function(){VT.HOTEL_GEO.gMapLayer=VT.HOTEL_GEO.gMapQtipOpts()})},createMemberInfoToolTip:function(a,c,b){var g="rightMiddle";var f="leftMiddle";var e="leftMiddle";if(b){g="leftMiddle";f="rightMiddle";e="rightMiddle"
}$(".mOverlay_"+c).qtip({content:{text:"<p>Loading member info...</p>",url:"/ajax/fetchMemberPortraitOverlay/",data:{memberId:a,locationId:VT.HOTEL_GEO.vtLocationId,locationName:VT.HOTEL_GEO.vtLocationName}},position:{corner:{target:g,tooltip:f}},hide:{fixed:true},style:{width:{min:340,max:400},padding:"0",tip:{corner:e,size:{y:14,x:6}}}})
},createTipPhotoQtip:function(e,c,b,a,g){var f="";$.each(g,function(h,k){f+="<li><a class='thumb' href='"+VT.Util.getMemberPictureURL(VT.HOTEL_GEO.normalizedVtLocationName,b,k[0],k[1],VT.Util.PortraitSize.Full)+"'><img src='"+VT.Util.getMemberPictureURL(VT.HOTEL_GEO.normalizedVtLocationName,b,k[0],k[1],VT.Util.PortraitSize.Thumbnail)+"' alt='"+c+" Photo' /></a><div class='caption'>"+k[2]+"</div></li>"
});$("#tipPhotoGallery_"+a).qtip({content:{title:{text:"Photos of "+c+" by "+e,button:"Close"},text:'<div class="gslideshow" id="slideshow_'+a+'"></div><div class="gcaption" id="caption_'+a+'"></div><div class="gthumbs" id="thumbs_'+a+'"><ul class="thumbs noscript clearfix">'+f+"</ul></div>"},position:{target:$(document.body),corner:"topMiddle"},show:{when:"click",solo:true},hide:false,style:{width:700,classes:{content:"popupGallery"}},api:{beforeShow:function(){$("#qtip-blanket").show()
},beforeHide:function(){$("#qtip-blanket").hide()},onRender:function(){VT.HOTEL_GEO.createTipPhotoGallery(a)},onShow:function(){$.getJSON("/ajax/w3/hotelGeo/clickHotelTipPictures/"+VT.HOTEL_GEO.vtLocationLevel+"/"+VT.HOTEL_GEO.vtLocationId+"/",{tipId:a},function(h){})}}})},createTipPhotoGallery:function(a){$("#thumbs_"+a).galleriffic({delay:4000,numThumbs:8,preloadAhead:-1,enableTopPager:false,enableBottomPager:false,imageContainerSel:"#slideshow_"+a,controlsContainerSel:"#controls_"+a,captionContainerSel:"#caption_"+a,loadingContainerSel:"",renderSSControls:false,renderNavControls:false,playLinkText:"",pauseLinkText:"",prevLinkText:"",nextLinkText:"",nextPageLinkText:"",prevPageLinkText:"",enableHistory:false,autoStart:false})
},submitFormHandler:function(){$(".hotelSearch form").submit(function(){VT.HOTEL_GEO.fetchHotels();return false});$("#hotelSearch_Submit").click(function(){VT.HOTEL_GEO.fetchHotels();return false})}};$D.ready(function(){if($B.hasClass("hotelGeo")){$(function(){var c=document.getElementById("tipcount");
var b=0;if(c){b=c.value}for(var a=0;a<=b;a++){(function(){var e=a;$("#ratingWidget"+e+" .stars_container").stars({oneVoteOnly:true,captionEl:$("#ratingWidget"+e+" .stars-cap"),callback:function(h,f,g){$("#ratingWidget"+e+" .confirm").html(g="Saved. Thanks for your feedback!").stop().css("opacity",1).fadeIn(30);
vote($("#ratingWidget"+e+" .tipId").val(),$("#ratingWidget"+e+" .stars_container").data("stars").options.value,0,0)}})})()}});$(".memberReviews .memberInfo .numReviews").qtip({content:{text:"<p>This is the number of reviews this member has posted.</p>"},position:{corner:{target:"rightMiddle",tooltip:"leftMiddle"}},hide:{fixed:true},style:{padding:"0",tip:{corner:"leftMiddle",size:{y:14,x:6}}}});
$(".hotelList .heading").supersleight({shim:"x.gif"});$("input:text").hint();VT.HOTEL_GEO.resetCheckBoxes([".hotelSorts .sortStars input",".hotelSorts .sortPrice input",".hotelSorts .sortType input",".vtVal input"]);VT.HOTEL_GEO.gMapLayer=VT.HOTEL_GEO.gMapQtipOpts();VT.HOTEL_GEO.checkBoxClickHandler(".hotelSorts .sortStars input");
VT.HOTEL_GEO.checkBoxClickHandler(".hotelSorts .sortPrice input");VT.HOTEL_GEO.checkBoxClickHandler(".hotelSorts .sortType input");VT.HOTEL_GEO.checkBoxClickHandler(".vtVal input");VT.HOTEL_GEO.disableZeros();$(".ncTips .review").expander({slicePoint:387,expandText:"more [+]",expandPrefix:"...",expandEffect:"fadeIn",userCollapse:true,userCollapseText:"less [-]"});
$('<div id="qtip-blanket">').css({position:"absolute",top:$(document).scrollTop(),left:0,height:$(document).height(),width:"100%",opacity:0.5,backgroundColor:"#eeeeee",zIndex:5000}).appendTo(document.body).hide()}});jQuery.ui||(function(c){var l=c.fn.remove,e=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);
c.ui={version:"1.7.3",plugin:{add:function(n,o,r){var q=c.ui[n].prototype;for(var m in r){q.plugins[m]=q.plugins[m]||[];q.plugins[m].push([o,r[m]])}},call:function(m,o,n){var r=m.plugins[o];if(!r||!m.element[0].parentNode){return}for(var q=0;q<r.length;q++){if(m.options[r[q][0]]){r[q][1].apply(m.element,n)
}}}},contains:function(n,m){return document.compareDocumentPosition?n.compareDocumentPosition(m)&16:n!==m&&n.contains(m)},hasScroll:function(q,n){if(c(q).css("overflow")=="hidden"){return false}var m=(n&&n=="left")?"scrollLeft":"scrollTop",o=false;if(q[m]>0){return true}q[m]=1;o=(q[m]>0);q[m]=0;return o
},isOverAxis:function(n,m,o){return(n>m)&&(n<(m+o))},isOver:function(t,n,r,q,m,o){return c.ui.isOverAxis(t,r,m)&&c.ui.isOverAxis(n,q,o)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,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}};
if(e){var g=c.attr,f=c.fn.removeAttr,k="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(n,m,o){var q=o!==undefined;return(m=="role"?(q?g.call(this,n,m,"wairole:"+o):(g.apply(this,arguments)||"").replace(b,"")):(a.test(m)?(q?n.setAttributeNS(k,m.replace(a,"aaa:"),o):g.call(this,n,m.replace(a,"aaa:"))):g.apply(this,arguments)))
};c.fn.removeAttr=function(m){return(a.test(m)?this.each(function(){this.removeAttributeNS(k,m.replace(a,""))}):f.call(this,m))}}c.fn.extend({remove:function(m,n){return this.each(function(){if(!n){if(!m||c.filter(m,[this]).length){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")
})}}return l.call(c(this),m,n)})},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var m;
if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){m=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))
}).eq(0)}else{m=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!m.length?c(document):m}});c.extend(c.expr[":"],{data:function(o,n,m){return !!c.data(o,m[3])
},focusable:function(n){var o=n.nodeName.toLowerCase(),m=c.attr(n,"tabindex");return(/input|select|textarea|button|object/.test(o)?!n.disabled:"a"==o||"area"==o?n.href||!isNaN(m):!isNaN(m))&&!c(n)["area"==o?"parents":"closest"](":hidden").length},tabbable:function(n){var m=c.attr(n,"tabindex");return(isNaN(m)||m>=0)&&c(n).is(":focusable")
}});function h(q,r,t,o){function n(v){var u=c[q][r][v]||[];return(typeof u=="string"?u.split(/,?\s+/):u)}var m=n("getter");if(o.length==1&&typeof o[0]=="string"){m=m.concat(n("getterSetter"))}return(c.inArray(t,m)!=-1)}c.widget=function(n,m){var o=n.split(".")[0];n=n.split(".")[1];c.fn[n]=function(u){var r=(typeof u=="string"),t=Array.prototype.slice.call(arguments,1);
if(r&&u.substring(0,1)=="_"){return this}if(r&&h(o,n,u,t)){var q=c.data(this[0],n);return(q?q[u].apply(q,t):undefined)}return this.each(function(){var v=c.data(this,n);(!v&&!r&&c.data(this,n,new c[o][n](this,u))._init());(v&&r&&c.isFunction(v[u])&&v[u].apply(v,t))})};c[o]=c[o]||{};c[o][n]=function(t,r){var q=this;
this.namespace=o;this.widgetName=n;this.widgetEventPrefix=c[o][n].eventPrefix||n;this.widgetBaseClass=o+"-"+n;this.options=c.extend({},c.widget.defaults,c[o][n].defaults,c.metadata&&c.metadata.get(t)[n],r);this.element=c(t).bind("setData."+n,function(v,u,w){if(v.target==t){return q._setData(u,w)}}).bind("getData."+n,function(v,u){if(v.target==t){return q._getData(u)
}}).bind("remove",function(){return q.destroy()})};c[o][n].prototype=c.extend({},c.widget.prototype,m);c[o][n].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")
},option:function(o,q){var n=o,m=this;if(typeof o=="string"){if(q===undefined){return this._getData(o)}n={};n[o]=q}c.each(n,function(r,t){m._setData(r,t)})},_getData:function(m){return this.options[m]},_setData:function(m,n){this.options[m]=n;if(m=="disabled"){this.element[n?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",n)
}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(o,q,r){var u=this.options[o],m=(o==this.widgetEventPrefix?o:this.widgetEventPrefix+o);q=c.Event(q);q.type=m;if(q.originalEvent){for(var n=c.event.props.length,t;n;){t=c.event.props[--n];
q[t]=q.originalEvent[t]}}this.element.trigger(q,r);return !(c.isFunction(u)&&u.call(this.element[0],q,r)===false||q.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var m=this;this.element.bind("mousedown."+this.widgetName,function(n){return m._mouseDown(n)
}).bind("click."+this.widgetName,function(n){if(m._preventClickEvent){m._preventClickEvent=false;n.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);
(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(o){o.originalEvent=o.originalEvent||{};if(o.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(o));this._mouseDownEvent=o;var n=this,q=(o.which==1),m=(typeof this.options.cancel=="string"?c(o.target).parents().add(o.target).filter(this.options.cancel).length:false);
if(!q||m||!this._mouseCapture(o)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(o)&&this._mouseDelayMet(o)){this._mouseStarted=(this._mouseStart(o)!==false);if(!this._mouseStarted){o.preventDefault();
return true}}this._mouseMoveDelegate=function(r){return n._mouseMove(r)};this._mouseUpDelegate=function(r){return n._mouseUp(r)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||o.preventDefault());o.originalEvent.mouseHandled=true;
return true},_mouseMove:function(m){if(c.browser.msie&&!m.button){return this._mouseUp(m)}if(this._mouseStarted){this._mouseDrag(m);return m.preventDefault()}if(this._mouseDistanceMet(m)&&this._mouseDelayMet(m)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,m)!==false);(this._mouseStarted?this._mouseDrag(m):this._mouseUp(m))
}return !this._mouseStarted},_mouseUp:function(m){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(m.target==this._mouseDownEvent.target);this._mouseStop(m)
}return false},_mouseDistanceMet:function(m){return(Math.max(Math.abs(this._mouseDownEvent.pageX-m.pageX),Math.abs(this._mouseDownEvent.pageY-m.pageY))>=this.options.distance)},_mouseDelayMet:function(m){return this.mouseDelayMet},_mouseStart:function(m){},_mouseDrag:function(m){},_mouseStop:function(m){},_mouseCapture:function(m){return true
}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);(function(a){a.widget("ui.stars",{_init:function(){var b=this,f=this.options,g=0;f.isSelect=f.inputType=="select";this.$form=a(this.element).closest("form");this.$selec=f.isSelect?a("select",this.element):null;this.$rboxs=f.isSelect?a("option",this.$selec):a(":radio",this.element);
this.$stars=this.$rboxs.map(function(l){var m={value:this.value,title:(f.isSelect?this.text:this.title)||this.value,isDefault:(f.isSelect&&this.defaultSelected)||this.defaultChecked};if(l==0){f.split=typeof f.split!="number"?0:f.split;f.val2id=[];f.id2val=[];f.id2title=[];f.name=f.isSelect?b.$selec.get(0).name:this.name;
f.disabled=f.disabled||(f.isSelect?a(b.$selec).attr("disabled"):a(this).attr("disabled"))}if(m.value==f.cancelValue){f.cancelTitle=m.title;return null}f.val2id[m.value]=g;f.id2val[g]=m.value;f.id2title[g]=m.title;if(m.isDefault){f.checked=g;f.value=f.defaultValue=m.value;f.title=m.title}var k=a("<div/>").addClass(f.starClass);
var n=a("<a/>").attr("title",f.showTitles?m.title:"").text(m.value);if(f.split){var h=(g%f.split);var o=Math.floor(f.starWidth/f.split);k.width(o);n.css("margin-left","-"+(h*o)+"px")}g++;return k.append(n).get(0)});f.items=g;f.isSelect?this.$selec.remove():this.$rboxs.remove();this.$cancel=a("<div/>").addClass(f.cancelClass).append(a("<a/>").attr("title",f.showTitles?f.cancelTitle:"").text(f.cancelValue));
f.cancelShow&=!f.disabled&&!f.oneVoteOnly;f.cancelShow&&this.element.append(this.$cancel);this.element.append(this.$stars);if(f.checked===undefined){f.checked=-1;f.value=f.defaultValue=f.cancelValue;f.title=""}this.$value=a('<input type="hidden" name="'+f.name+'" value="'+f.value+'" />');this.element.append(this.$value);
this.$stars.bind("click.stars",function(k){if(!f.forceSelect&&f.disabled){return false}var h=b.$stars.index(this);f.checked=h;f.value=f.id2val[h];f.title=f.id2title[h];b.$value.attr({disabled:f.disabled?"disabled":"",value:f.value});c(h,false);b._disableCancel();!f.forceSelect&&b.callback(k,"star")}).bind("mouseover.stars",function(){if(f.disabled){return false
}var h=b.$stars.index(this);c(h,true)}).bind("mouseout.stars",function(){if(f.disabled){return false}c(b.options.checked,false)});this.$cancel.bind("click.stars",function(h){if(!f.forceSelect&&(f.disabled||f.value==f.cancelValue)){return false}f.checked=-1;f.value=f.cancelValue;f.title="";b.$value.val(f.value).attr({disabled:"disabled"});
e();b._disableCancel();!f.forceSelect&&b.callback(h,"cancel")}).bind("mouseover.stars",function(){if(b._disableCancel()){return false}b.$cancel.addClass(f.cancelHoverClass);e();b._showCap(f.cancelTitle)}).bind("mouseout.stars",function(){if(b._disableCancel()){return false}b.$cancel.removeClass(f.cancelHoverClass);
b.$stars.triggerHandler("mouseout.stars")});this.$form.bind("reset.stars",function(){!f.disabled&&b.select(f.defaultValue)});a(window).unload(function(){b.$cancel.unbind(".stars");b.$stars.unbind(".stars");b.$form.unbind(".stars");b.$selec=b.$rboxs=b.$stars=b.$value=b.$cancel=b.$form=null});function c(h,l){if(h!=-1){var m=l?f.starHoverClass:f.starOnClass;
var k=l?f.starOnClass:f.starHoverClass;b.$stars.eq(h).prevAll("."+f.starClass).andSelf().removeClass(k).addClass(m);b.$stars.eq(h).nextAll("."+f.starClass).removeClass(f.starHoverClass+" "+f.starOnClass);b._showCap(f.id2title[h])}else{e()}}function e(){b.$stars.removeClass(f.starOnClass+" "+f.starHoverClass);
b._showCap("")}this.select(f.value);f.disabled&&this.disable()},_disableCancel:function(){var c=this.options,b=c.disabled||c.oneVoteOnly||(c.value==c.cancelValue);if(b){this.$cancel.removeClass(c.cancelHoverClass).addClass(c.cancelDisabledClass)}else{this.$cancel.removeClass(c.cancelDisabledClass)}this.$cancel.css("opacity",b?0.5:1);
return b},_disableAll:function(){var b=this.options;this._disableCancel();if(b.disabled){this.$stars.filter("div").addClass(b.starDisabledClass)}else{this.$stars.filter("div").removeClass(b.starDisabledClass)}},_showCap:function(b){var c=this.options;if(c.captionEl){c.captionEl.text(b)}},value:function(){return this.options.value
},select:function(f){var c=this.options,b=(f==c.cancelValue)?this.$cancel:this.$stars.eq(c.val2id[f]);c.forceSelect=true;b.triggerHandler("click.stars");c.forceSelect=false},selectID:function(f){var c=this.options,b=(f==-1)?this.$cancel:this.$stars.eq(f);c.forceSelect=true;b.triggerHandler("click.stars");
c.forceSelect=false},enable:function(){this.options.disabled=false;this._disableAll()},disable:function(){this.options.disabled=true;this._disableAll()},destroy:function(){this.options.isSelect?this.$selec.appendTo(this.element):this.$rboxs.appendTo(this.element);this.$form.unbind(".stars");this.$cancel.unbind(".stars").remove();
this.$stars.unbind(".stars").remove();this.$value.remove();this.element.unbind(".stars").removeData("stars")},callback:function(c,b){var f=this.options;f.callback&&f.callback(this,b,f.value,c);f.oneVoteOnly&&!f.disabled&&this.disable()}});a.extend(a.ui.stars,{version:"2.1.1",getter:"value",defaults:{inputType:"radio",split:0,disabled:false,cancelTitle:"Cancel Rating",cancelValue:0,cancelShow:true,oneVoteOnly:false,showTitles:false,captionEl:null,callback:null,starWidth:16,cancelClass:"ui-stars-cancel",starClass:"ui-stars-star",starOnClass:"ui-stars-star-on",starHoverClass:"ui-stars-star-hover",starDisabledClass:"ui-stars-star-disabled",cancelHoverClass:"ui-stars-cancel-hover",cancelDisabledClass:"ui-stars-cancel-disabled"}})
})(jQuery);VT.HOTEL_SPEC={taHotelId:null,pageType:null,imgClassName:null,gallery:null,selectedPhotoIndex:0,memberPhotoGalleryTitle:null,hotelName:null,normalizedHotelName:null,hotelId:null,latitude:null,longitude:null,offset:0,max:8,locationId:0,locationName:null,normalizedLocationName:null,locationLevel:0,fetchPopularHotels:function(){VT.HTML_UPDATER.updateComponent(["popularHotels"],"w3/fetchPopularHotels",{locationId:this.locationId,limit:3},VT.HOTEL_SPEC.createPopularHotelsCheckRates)
},createPopularHotelsCheckRates:function(){$("#popularHotels .cta div").each(function(a,c){var b=$(c).attr("class").split(" ")[2].split("_")[2];new VT.CheckRatesBoxV2(b,VT.HOTEL_SPEC.pageType,".crBtn_ta_"+b)})},fetchTaReviews:function(e,c,a,b){if(a===1){VT.HOTEL_SPEC.taHotelId=e;VT.HOTEL_SPEC.imgClassName="crBtn_taReview_"+VT.HOTEL_SPEC.taHotelId;
VT.HTML_UPDATER.updateComponent(["reviewSummary","firstReview","otherReviews"],"w3/fetchTaUserReviews",{tripAdvisorId:e,maxReviews:c,showCheckRates:b,imgClassName:VT.HOTEL_SPEC.imgClassName},VT.HOTEL_SPEC.modifyTaReviews)}else{VT.HOTEL_SPEC.rmRtOverviewBg()}},rmRtOverviewBg:function(){$(".rtOverview .carat").css("background","none");
$(".rtOverview .icontent").css("background","none");VT.HOTEL_SPEC.rmRtOverviewLoading()},rmRtOverviewLoading:function(){$(".rtOverview div.loading").fadeOut("slow").removeAttr("style")},modifyTaReviews:function(){if($("#reviewSummary").html().length===0&&$("#firstReview").html().length===0){VT.HOTEL_SPEC.rmRtOverviewBg()
}else{VT.HOTEL_SPEC.rmRtOverviewLoading()}$(".newReview p").expander({slicePoint:410,expandText:"more [+]",expandPrefix:"...",expandEffect:"fadeIn",userCollapse:true,userCollapseText:"less [-]"});$(".taReviews .reviewContainer p").expander({slicePoint:478,expandText:"more [+]",expandPrefix:"...",expandEffect:"fadeIn",userCollapse:true,userCollapseText:"less [-]"});
new VT.CheckRatesBoxV2(VT.HOTEL_SPEC.taHotelId,VT.HOTEL_SPEC.pageType,"."+VT.HOTEL_SPEC.imgClassName)},createMemberInfoToolTip:function(a,c,b){var g="rightMiddle";var f="leftMiddle";var e="leftMiddle";if(b){g="leftMiddle";f="rightMiddle";e="rightMiddle"}$(".mOverlay_"+c).qtip({content:{text:"<p>Loading member info...</p>",url:"/ajax/fetchMemberPortraitOverlay/",data:{memberId:a,locationId:VT.HOTEL_SPEC.locationId,locationName:VT.HOTEL_SPEC.locationName}},position:{corner:{target:g,tooltip:f}},hide:{fixed:true},style:{width:{min:340,max:400},padding:"0",tip:{corner:e,size:{y:14,x:6}}}})
},createTipPhotoQtip:function(c,b,a,f){var e="";if(c==null||c.length==0){c=VT.HOTEL_SPEC.hotelName}$.each(f,function(g,h){e+="<li><a class='thumb' href='"+VT.Util.getMemberPictureURL(VT.HOTEL_SPEC.normalizedLocationName,VT.HOTEL_SPEC.normalizedHotelName,h[0],h[1],VT.Util.PortraitSize.Full)+"'><img src='"+VT.Util.getMemberPictureURL(VT.HOTEL_SPEC.normalizedLocationName,VT.HOTEL_SPEC.normalizedHotelName,h[0],h[1],VT.Util.PortraitSize.Thumbnail)+"' alt='"+VT.HOTEL_SPEC.hotelName+" Photo' /></a><div class='caption'>"+h[2]+"</div></li>"
});$("#tipPhotoGallery_"+a).qtip({content:{title:{text:"Photos of "+c+" by "+b,button:"Close"},text:'<div class="gslideshow" id="slideshow_'+a+'"></div><div class="gcaption" id="caption_'+a+'"></div><div class="gthumbs" id="thumbs_'+a+'"><ul class="thumbs noscript clearfix">'+e+"</ul></div>"},position:{target:$(document.body),corner:"topMiddle"},show:{when:"click",solo:true},hide:false,style:{width:700,classes:{content:"popupGallery"}},api:{beforeShow:function(){$("#qtip-blanket").show();
VT.Dom.hideBleeders(this)},beforeHide:function(){$("#qtip-blanket").hide();VT.Dom.showBleeders()},onRender:function(){VT.HOTEL_SPEC.createTipPhotoGallery(a)},onShow:function(){$.getJSON("/ajax/w3/hotelSpecific/clickHotelTipPictures/"+VT.HOTEL_SPEC.locationLevel+"/"+VT.HOTEL_SPEC.locationId+"/",{tipId:a},function(g){})
}}})},createTipPhotoGallery:function(a){$("#thumbs_"+a).galleriffic({delay:4000,numThumbs:8,preloadAhead:-1,enableTopPager:false,enableBottomPager:false,imageContainerSel:"#slideshow_"+a,controlsContainerSel:"#controls_"+a,captionContainerSel:"#caption_"+a,loadingContainerSel:"",renderSSControls:false,renderNavControls:false,playLinkText:"",pauseLinkText:"",prevLinkText:"",nextLinkText:"",nextPageLinkText:"",prevPageLinkText:"",enableHistory:false,autoStart:false})
},createMemberPhotoGallery:function(){this.gallery=$("#thumbs").galleriffic({delay:4000,numThumbs:8,preloadAhead:-1,enableTopPager:false,enableBottomPager:false,imageContainerSel:"#slideshow",controlsContainerSel:"#controls",captionContainerSel:"#caption",loadingContainerSel:"",renderSSControls:true,renderNavControls:false,playLinkText:"",pauseLinkText:"",prevLinkText:"",nextLinkText:"",nextPageLinkText:"",prevPageLinkText:"",enableHistory:false,autoStart:false,onImageAdded:function(b,a){a.fadeIn(1000)
}})},initHotelSpec:function(c,q,e,n,l,a,h,m,o,b,k,f,g){this.memberPhotoGalleryTitle=c;this.hotelId=n;this.hotelName=q;this.normalizedHotelName=e;this.latitude=l;this.longitude=a;this.offset=h;this.max=m;this.locationId=o;this.locationName=b;this.normalizedLocationName=k;this.locationLevel=f;this.pageType=g
},loadPhotos:function(){$.getJSON("/ajax/w3/hotelSpecific/fetchMemberHotelPictures/"+this.locationLevel+"/"+this.locationId+"/",{hotelId:this.hotelId,offset:this.offset,max:this.max},function(e){var b=$("#thumbs li").length;var a=0;$.each(e.pics,function(f,g){VT.HOTEL_SPEC.gallery.appendImage(g.pic,0);
if(b>a){VT.HOTEL_SPEC.gallery.removeImageByIndex(0);a++}});for(;a<b;a++){VT.HOTEL_SPEC.gallery.removeImageByIndex(0)}VT.HOTEL_SPEC.gallery.gotoIndex(VT.HOTEL_SPEC.selectedPhotoIndex);var c=VT.HOTEL_SPEC.offset+VT.HOTEL_SPEC.max;if(c>e.count){c=e.count;$("#thumbCtrl .next").css("display","none")}else{$("#thumbCtrl .next").css("display","block")
}if(VT.HOTEL_SPEC.offset==0){$("#thumbCtrl .prev").css("display","none")}else{$("#thumbCtrl .prev").css("display","block")}$("#photoRange").html((VT.HOTEL_SPEC.offset+1)+" - "+(c)+" of "+(e.count))})},renderDynamicGmap:function(c){var e=15;var g=new GLatLng(parseFloat(VT.HOTEL_SPEC.latitude),parseFloat(VT.HOTEL_SPEC.longitude));
var b=$(".hotelSpc_gmap_content").get(0);var f=new GMap2(b);if(GBrowserIsCompatible()){f.addControl(new GLargeMapControl());f.addControl(new GMenuMapTypeControl());var a=new GMarker(g,G_DEFAULT_ICON);f.addOverlay(a);f.setCenter(g,e)}c.onShow=function(){}},getGmapJsUrl:function(){return $("#hotelSpc_gmap").attr("dm")
}};$D.ready(function(){if($B.hasClass("hotelSpec")){$(".commerce .guests").sSelect();Date.format="mm/dd/yyyy";$(".selInp input[name=inDate]").datePicker({clickInput:true,createButton:false,verticalOffset:30,showYearNavigation:false});$(".selInp input[name=outDate]").datePicker({clickInput:true,createButton:false,verticalOffset:30,showYearNavigation:false});
$(function(){var c=document.getElementById("tipcount").value;for(var b=0;b<=c;b++){(function(){var e=b;$("#ratingWidget"+e+" .stars_container").stars({oneVoteOnly:true,captionEl:$("#ratingWidget"+e+" .stars-cap"),callback:function(h,f,g){$("#ratingWidget"+e+" .confirm").html(g="Saved. Thanks for your feedback!").stop().css("opacity",1).fadeIn(30);
vote($("#ratingWidget"+e+" .tipId").val(),$("#ratingWidget"+e+" .stars_container").data("stars").options.value,0,0)}})})()}});var a=$(".hotelCommerce .hotelPhotos");if(!a.length){a=$(".thePlace .iContent .hotelPhotos .clearfix")}a.children("div").each(function(b,c){$(c).click(function(){VT.HOTEL_SPEC.selectedPhotoIndex=b
})});[];a.qtip({content:{title:{text:VT.HOTEL_SPEC.memberPhotoGalleryTitle,button:"Close"},text:'<div class="gslideshow" id="slideshow"></div><div class="gcaption" id="caption"></div><div class="gthumbs" id="thumbs"><ul class="thumbs noscript clearfix"><li></li></ul></div><div id="thumbCtrl"><a rel="history" class="prev" href="#">Previous</a><a rel="history" class="next" href="#">Next</a></div><p id="photoRange"></p>'},position:{target:$(document.body),corner:"topMiddle"},show:{when:"click",solo:true},hide:false,style:{width:700,classes:{content:"popupGallery"}},api:{beforeShow:function(){$("#qtip-blanket").show();
VT.Dom.hideBleeders(this)},beforeHide:function(){$("#qtip-blanket").hide();VT.Dom.showBleeders()},onRender:function(){VT.HOTEL_SPEC.createMemberPhotoGallery();$("#thumbCtrl .next").click(function(){VT.HOTEL_SPEC.offset=VT.HOTEL_SPEC.offset+VT.HOTEL_SPEC.max;VT.HOTEL_SPEC.selectedPhotoIndex=0;VT.HOTEL_SPEC.loadPhotos()
});$("#thumbCtrl .prev").click(function(){VT.HOTEL_SPEC.offset=VT.HOTEL_SPEC.offset-VT.HOTEL_SPEC.max;VT.HOTEL_SPEC.selectedPhotoIndex=0;VT.HOTEL_SPEC.loadPhotos()})},onShow:function(){VT.HOTEL_SPEC.offset=0;VT.HOTEL_SPEC.loadPhotos()}}});$(".memberReviews .memberInfo .numReviews").qtip({content:{text:"<p>This is the number of reviews this member has posted.</p>"},position:{corner:{target:"rightMiddle",tooltip:"leftMiddle"}},hide:{fixed:true},style:{padding:"0",tip:{corner:"leftMiddle",size:{y:14,x:6}}}});
$("input:text").hint();$("textarea").hint();$("#hotelSpc_gmap img").qtip({content:{title:{text:VT.HOTEL_SPEC.hotelName,button:"Close"},text:"<p>Loading map...</p>"},position:{target:$(document.body),corner:"center"},show:{when:"click",solo:true},hide:false,style:{classes:{content:"hotelSpc_gmap_content"},width:500,height:500,padding:"0"},api:{beforeShow:function(){$("#qtip-blanket").show();
VT.Dom.hideBleeders(this)},beforeHide:function(){$("#qtip-blanket").hide();VT.Dom.showBleeders()},onRender:function(){},onShow:function(){var b=this;var c=function(){VT.HOTEL_SPEC.renderDynamicGmap(b)};VT.Util.delayedJsLoader.callWhenLoaded(c,VT.HOTEL_SPEC.getGmapJsUrl())}}});$(".thePeopleContent").expander({slicePoint:170,expandText:"more [+]",expandPrefix:"...",expandEffect:"fadeIn",userCollapse:true,userCollapseText:"less [-]"});
$(".thePeople .blurb").expander({slicePoint:170,expandText:"more [+]",expandPrefix:"...",expandEffect:"fadeIn",userCollapse:true,userCollapseText:"less [-]"});$('<div id="qtip-blanket">').css({position:"absolute",top:$(document).scrollTop(),left:0,height:$(document).height(),width:"100%",opacity:0.5,backgroundColor:"#eeeeee",zIndex:5000}).appendTo(document.body).hide()
}});VT.HTML_UPDATER={updateComponent:function(c,g,f,a){var b=VT.HTML_UPDATER.baseUrl(g);b+="&update="+c.join(",");jQuery.each(f,function(h,k){b+="&"+h+"="+k});var e=function(h){jQuery.each(h,function(l,k){$("#"+l).fadeIn("slow").html(k)});a&&a()};$.getJSON(b,e)},baseUrl:function(b){if(VT.HTML_UPDATER.baseURL==null){VT.HTML_UPDATER.baseURL=document.location.href.replace(/(http:\/\/[^\/]+\/).*/,"$1")
}var a=VT.HTML_UPDATER.baseURL+"ajax/"+b+"/?cacheBuster="+Math.random();return a},modifyNotices:function(){if($("#headerNotices div.rollOver").length==0){$("#headerNotices").removeClass("notices")}else{$("#headerNotices").addClass("notices")}if($("#headerNewEmail div.rollOver").length==0){$("#headerNewEmail").removeClass("newEmail")
}else{$("#headerNewEmail").addClass("newEmail")}if($("#headerFriendsOnline div.rollOver").length==0){$("#headerFriendsOnline").removeClass("friendsOnline")}else{$("#headerFriendsOnline").addClass("friendsOnline")}},updateHeader:function(){VT.HTML_UPDATER.updateComponent(["headerNotices","headerNewEmail","headerFriendsOnline"],"updateHeader",{},VT.HTML_UPDATER.modifyNotices);
VT.HTML_UPDATER.pingOnlineIcon()},pingOnlineIcon:function(){var a=VT.Util.getMemberIdFromCookie();var b="http://i.virtualtourist.com/online.gif?"+a+"&cacheBuster="+new Date().getTime();try{VT.Util.loadImg(b,null,null,null)}catch(c){}}};$D.ready(function(){VT.HTML_UPDATER.modifyNotices();setInterval(VT.HTML_UPDATER.updateHeader,180000)
});(function(a){a.fn.vTicker=function(b){var c={speed:700,pause:4000,showItems:2,animation:"",mousePause:true};var b=a.extend(c,b);moveUp=function(f,e){f=f.children("ul");first=f.children("li:first").clone(true);f.animate({top:"-="+e+"px"},b.speed,function(){a(this).children("li:first").remove();a(this).css("top","0px")
});if(b.animation=="fade"){f.children("li:first").fadeOut(b.speed);f.children("li:last").hide().fadeIn(b.speed)}first.appendTo(f)};return this.each(function(){obj=a(this);maxHeight=0;obj.css({overflow:"hidden",position:"relative"}).children("ul").css({position:"absolute",margin:0,padding:0}).children("li").css({margin:0,padding:0});
obj.children("ul").children("li").each(function(){if(a(this).height()>maxHeight){maxHeight=a(this).height()}});obj.children("ul").children("li").each(function(){a(this).height(maxHeight)});obj.height(maxHeight*b.showItems);interval=setInterval("moveUp(obj, maxHeight)",b.pause);if(b.mousePause){obj.bind("mouseenter",function(){clearInterval(interval)
}).bind("mouseleave",function(){interval=setInterval("moveUp(obj, maxHeight)",b.pause)})}})}})(jQuery);(function(a){a.fn.kwicks=function(b){var c={isVertical:false,sticky:false,defaultKwick:0,event:"mouseover",spacing:0,duration:500};var f=a.extend(c,b);var g=(f.isVertical?"height":"width");var e=(f.isVertical?"top":"left");
return this.each(function(){container=a(this);var l=container.children("li");var k=l.eq(0).css(g).replace(/px/,"");if(!f.max){f.max=(k*l.size())-(f.min*(l.size()-1))}else{f.min=((k*l.size())-f.max)/(l.size()-1)}if(f.isVertical){container.css({width:l.eq(0).css("width"),height:(k*l.size())+(f.spacing*(l.size()-1))+"px"})
}else{container.css({width:(k*l.size())+(f.spacing*(l.size()-1))+"px",height:l.eq(0).css("height")})}var h=[];for(i=0;i<l.size();i++){h[i]=[];for(j=1;j<l.size()-1;j++){if(i==j){h[i][j]=f.isVertical?j*f.min+(j*f.spacing):j*f.min+(j*f.spacing)}else{h[i][j]=(j<=i?(j*f.min):(j-1)*f.min+f.max)+(j*f.spacing)
}}}l.each(function(m){var n=a(this);if(m===0){n.css(e,"0px")}else{if(m==l.size()-1){n.css(f.isVertical?"bottom":"right","0px")}else{if(f.sticky){n.css(e,h[f.defaultKwick][m])}else{n.css(e,(m*k)+(m*f.spacing))}}}if(f.sticky){if(f.defaultKwick==m){n.css(g,f.max+"px");n.addClass("active")}else{n.css(g,f.min+"px")
}}n.css({margin:0,position:"absolute"});n.bind(f.event,function(){var r=[];var u=[];l.stop().removeClass("active");for(j=0;j<l.size();j++){r[j]=l.eq(j).css(g).replace(/px/,"");u[j]=l.eq(j).css(e).replace(/px/,"")}var q={};q[g]=f.max;var t=f.max-r[m];var o=r[m]/t;n.addClass("active").animate(q,{step:function(w){var v=t!=0?w/t-o:1;
l.each(function(x){if(x!=m){l.eq(x).css(g,r[x]-((r[x]-f.min)*v)+"px")}if(x>0&&x<l.size()-1){l.eq(x).css(e,u[x]-((u[x]-h[m][x])*v)+"px")}})},duration:f.duration,easing:f.easing})})});if(!f.sticky){container.bind("mouseleave",function(){var n=[];var o=[];l.removeClass("active").stop();for(i=0;i<l.size();
i++){n[i]=l.eq(i).css(g).replace(/px/,"");o[i]=l.eq(i).css(e).replace(/px/,"")}var m={};m[g]=k;var q=k-n[0];l.eq(0).animate(m,{step:function(t){var r=q!=0?(t-n[0])/q:1;for(i=1;i<l.size();i++){l.eq(i).css(g,n[i]-((n[i]-k)*r)+"px");if(i<l.size()-1){l.eq(i).css(e,o[i]-((o[i]-((i*k)+(i*f.spacing)))*r)+"px")
}}},duration:f.duration,easing:f.easing})})}})}})(jQuery);$D.ready(function(){if($B.hasClass("activity")){$(".communityActivity .feeds").kwicks({min:68,spacing:12,isVertical:true,sticky:true,event:"mouseover",duration:200})}$(".ticker").vTicker({showItems:1,pause:2000})});VT.TAAirWatch=(function(){function a(z,l){var t=this;
var r;var x=l;var w;var v;function q(){t.awLayer=$(document.getElementById("airwatchLayer"));t.awLayer.css("display","block");$(document.getElementById("email_SIGNUP")).value="";$(document.getElementById("confirmEmail")).value="";$("#fromAirport").autocomplete(c).result(f);$("#toAirport").autocomplete(c).result(m)
}function c(D,C,E){var o=new Array();var B="http://tripadvisor.com/TypeAheadJson?action=AIRPORT&callback=?&query="+D;if(D!=null&&D!=""){$.getJSON(B,function(G){if(G!=null&&G.length>0){for(var F=0;F<G.length;F++){if(G[F]!=null&&G[F].name!=null&&G[F].name!=""&&G[F].value!=null&&G[F].value!=""){var H=new Array();
H[0]=G[F].name;H[1]=G[F].value;o[o.length]={data:H,value:H[0],result:C.formatResult&&C.formatResult(H,H[0])||H[0]}}}E(D,o)}else{var H=new Array();H[0]="Your location not found.";H[1]="";o[0]={data:H,value:H[0],result:H[0]};E(D,o)}})}return o}function f(o,C,B){if(C!=null){var D=h("airportFromHidden");
D.value=C[1]}}function m(o,C,B){if(C!=null){var D=h("airportToHidden");D.value=C[1]}}function e(D,B){var o="http://tripadvisor.com/QueryJson?action=nearestAirport&callback=?&ip="+escape(D);var C;var E=new Array();$.getJSON(o,function(H){var F=(H?H.value:"");var G="http://tripadvisor.com/TypeAheadJson?action=AIRPORT&callback=?&query="+escape(F);
$.getJSON(G,function(K){if(K&&K.length>0){var J=h("fromAirport");var I=h("airportFromHidden");J.value=K[0].name;I.value=F;w=K[0].name}g()});G="http://tripadvisor.com/TypeAheadJson?action=AIRPORT&callback=?&query="+escape(B);$.getJSON(G,function(K){if(K&&K.length>0){var J=h("toAirport");var I=h("airportToHidden");
J.value=K[0].name;I.value=K[0].value}})});return true}function y(o){var B="";if(o!=null&&o!=""&&x!=null&&x!=""){B="Cheap Flights from "+o+" to "+x+". We'll email you when the fares drop. "}else{if((o==null&&x==null)||(o==""&&x=="")){B="Cheap Flights to your favorite destination. We'll email you when the fares drop."
}else{if(o!=null&&o!=""){B="Cheap Flights from "+w+" to your favorite destination. We'll email you when the fares drop. "}else{if(x!=null&&x!=""){B="Cheap Flights from your city to "+x+". We'll email you when the fares drop."}}}}var C=h("awSlogan");C.innerHTML=B}function g(){var B;if(w!=null&&w!=""){var o=w.indexOf(",");
if(o>-1){B=w.slice(0,o)}}w=B;y(B)}function h(o){return document.getElementById(o)}function n(o){var C=u();var G=A();if(C&&G){var H=h("airportFromHidden").value;var F=h("airportToHidden").value;var B=VT.HTML_UPDATER.baseUrl("w3/taAirWatch")+"&emailAddress="+escape(v)+"&originAirport="+H+"&destinationAirport="+F+"&ipAddress="+z;
var I='<a href="javascript:void(0);" onclick="$(\'#airwatchLayer\').hide();"><img border="0" alt="close" src="http://cache.virtualtourist.com/vt2/close_button_orange.gif"/></a>';var E="Just tell us the routes you want to watch.  We'll e-mail you when fares drop";var D="<span style='font-size:14pt;color:#D77003'>Thanks for your interest.</span><br><br> However, you have already signed up for an Air Watch alert. Check for an email from TripAdvisor to update or add more alerts.";
$.post(B,function(J){if(J){if(J.indexOf("ACCEPTED")>-1){D="<span style='font-size:14pt;color:#D77003'>Thanks for signing up for an Air Watch alert.</span><br><br> You will receive an email from TripAdvisor when your fare drops by $25.00."}if(J=="BAD EMAIL"){k("Please provide a valid email address.");
return false}if(J=="INVALID"){k("Please provide required information.");return false}if(J=="BAD AIRPORT"){k("Please select both your origination and destination airports.");return false}$(document.getElementById("awSlogan")).html(E);$(document.getElementById("alertparams")).css("font-size","12px");$(document.getElementById("alertparams")).css("padding","70px");
$(document.getElementById("alertparams")).html(D);$(".wrpBtn .popupSubmit").unbind("click");$(document.getElementById("closeLayer")).css("display","block");$(".wrpBtn .popupSubmit").css("display","none")}})}return false}function b(C){var o="@";var B=".";var F=C.indexOf(o);var D=C.length;var E=C.indexOf(B);
if(C.indexOf(o)==-1){k("Please provide a valid email address.");return false}if(C.indexOf(o)==-1||C.indexOf(o)==0||C.indexOf(o)==D){k("Please provide a valid email address.");return false}if(C.indexOf(B)==-1||C.indexOf(B)==0||C.indexOf(B)==D){k("Please provide a valid email address.");return false}if(C.indexOf(o,(F+1))!=-1){k("Please provide a valid email address.");
return false}if(C.substring(F-1,F)==B||C.substring(F+1,F+2)==B){k("Please provide a valid email address.");return false}if(C.indexOf(B,(F+2))==-1){k("Please provide a valid email address.");return false}if(C.indexOf(" ")!=-1){k("Please provide a valid email address.");return false}return true}function u(){var B=document.getElementById("email_SIGNUP");
var o=document.getElementById("confirmEmail");if(B&&((B.value==null)||(B.value==""))){k("Please Enter your Email Address");B.focus();return false}if(B&&o&&B.value!=o.value){k("Your Confirmation Email Address doesn't match");o.value="";B.focus();return false}if(B&&b(B.value)==false){B.value="";o.value="";
B.focus();return false}v=B.value;return true}function A(){var o=document.getElementById("fromAirport");var B=document.getElementById("toAirport");if(o.value==null||o.value==""){k("Please select both your origination and destination airports. ");o.focus();return false}if(B.value==null||B.value==""){k("Please select both your origination and destination airports. ");
B.focus();return false}if(o.value==B.value){k("Please make sure that your origination and destination airports are different.");return false}return true}function k(o){if(o==""){return}var B=$("#errors");B.css("display","block");B.html(o)}$D.ready(function(){$("#airwatchLayer .popupSubmit").click(n)});
q();e(z,l);return this}return a})();(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";
c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var o=this,q=this.options,m=q.title||this.originalTitle||"&nbsp;",f=c.ui.dialog.getTitleId(this.element),n=(this.uiDialog=c("<div/>")).appendTo(document.body).hide().addClass(a+q.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:q.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(r){(q.closeOnEscape&&r.keyCode&&r.keyCode==c.ui.keyCode.ESCAPE&&o.close(r))
}).attr({role:"dialog","aria-labelledby":f}).mousedown(function(r){o.moveToTop(false,r)}),h=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(n),g=(this.uiDialogTitlebar=c("<div></div>")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(n),l=c('<a href="#"/>').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){l.addClass("ui-state-hover")
},function(){l.removeClass("ui-state-hover")}).focus(function(){l.addClass("ui-state-focus")}).blur(function(){l.removeClass("ui-state-focus")}).mousedown(function(r){r.stopPropagation()}).click(function(r){o.close(r);return false}).appendTo(g),k=(this.uiDialogTitlebarCloseText=c("<span/>")).addClass("ui-icon ui-icon-closethick").text(q.closeText).appendTo(l),e=c("<span/>").addClass("ui-dialog-title").attr("id",f).html(m).prependTo(g);
g.find("*").add(g).disableSelection();(q.draggable&&c.fn.draggable&&this._makeDraggable());(q.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(q.buttons);this._isOpen=false;(q.bgiframe&&c.fn.bgiframe&&n.bgiframe());(q.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());
this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(g){var e=this;if(false===e._trigger("beforeclose",g)){return
}(e.overlay&&e.overlay.destroy());e.uiDialog.unbind("keypress.ui-dialog");(e.options.hide?e.uiDialog.hide(e.options.hide,function(){e._trigger("close",g)}):e.uiDialog.hide()&&e._trigger("close",g));c.ui.dialog.overlay.resize();e._isOpen=false;if(e.options.modal){var f=0;c(".ui-dialog").each(function(){if(this!=e.uiDialog[0]){f=Math.max(f,c(this).css("z-index"))
}});c.ui.dialog.maxZ=f}},isOpen:function(){return this._isOpen},moveToTop:function(g,f){if((this.options.modal&&!g)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",f)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));
var e={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(e);this._trigger("focus",f)},open:function(){if(this._isOpen){return}var f=this.options,e=this.uiDialog;this.overlay=f.modal?new c.ui.dialog.overlay(this):null;
(e.next().length&&e.appendTo("body"));this._size();this._position(f.position);e.show(f.show);this.moveToTop(true);(f.modal&&e.bind("keypress.ui-dialog",function(k){if(k.keyCode!=c.ui.keyCode.TAB){return}var h=c(":tabbable",this),l=h.filter(":first")[0],g=h.filter(":last")[0];if(k.target==g&&!k.shiftKey){setTimeout(function(){l.focus()
},1)}else{if(k.target==l&&k.shiftKey){setTimeout(function(){g.focus()},1)}}}));c([]).add(e.find(".ui-dialog-content :tabbable:first")).add(e.find(".ui-dialog-buttonpane :tabbable:first")).add(e).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(h){var g=this,e=false,f=c("<div></div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");
this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof h=="object"&&h!==null&&c.each(h,function(){return !(e=true)}));if(e){c.each(h,function(k,l){c('<button type="button"></button>').addClass("ui-state-default ui-corner-all").text(k).click(function(){l.apply(g.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")
},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(f)});f.appendTo(this.uiDialog)}},_makeDraggable:function(){var e=this,g=this.options,f;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){f=g.height;
c(this).height(c(this).height()).addClass("ui-dialog-dragging");(g.dragStart&&g.dragStart.apply(e.element[0],arguments))},drag:function(){(g.drag&&g.drag.apply(e.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(f);(g.dragStop&&g.dragStop.apply(e.element[0],arguments));
c.ui.dialog.overlay.resize()}})},_makeResizable:function(h){h=(h===undefined?this.options.resizable:h);var e=this,g=this.options,f=typeof h=="string"?h:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:g.maxWidth,maxHeight:g.maxHeight,minWidth:g.minWidth,minHeight:g.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");
(g.resizeStart&&g.resizeStart.apply(e.element[0],arguments))},resize:function(){(g.resize&&g.resize.apply(e.element[0],arguments))},handles:f,stop:function(){c(this).removeClass("ui-dialog-resizing");g.height=c(this).height();g.width=c(this).width();(g.resizeStop&&g.resizeStop.apply(e.element[0],arguments));
c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(l){var f=c(window),g=c(document),h=g.scrollTop(),e=g.scrollLeft(),k=h;if(c.inArray(l,["center","top","right","bottom","left"])>=0){l=[l=="right"||l=="left"?l:"center",l=="top"||l=="bottom"?l:"middle"]
}if(l.constructor!=Array){l=["center","middle"]}if(l[0].constructor==Number){e+=l[0]}else{switch(l[0]){case"left":e+=0;break;case"right":e+=f.width()-this.uiDialog.outerWidth();break;default:case"center":e+=(f.width()-this.uiDialog.outerWidth())/2}}if(l[1].constructor==Number){h+=l[1]}else{switch(l[1]){case"top":h+=0;
break;case"bottom":h+=f.height()-this.uiDialog.outerHeight();break;default:case"middle":h+=(f.height()-this.uiDialog.outerHeight())/2}}h=Math.max(h,k);this.uiDialog.css({top:h,left:e})},_setData:function(f,g){(b[f]&&this.uiDialog.data(b[f],g));switch(f){case"buttons":this._createButtons(g);break;case"closeText":this.uiDialogTitlebarCloseText.text(g);
break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+g);break;case"draggable":(g?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(g);break;case"position":this._position(g);break;case"resizable":var e=this.uiDialog,h=this.uiDialog.is(":data(resizable)");
(h&&!g&&e.resizable("destroy"));(h&&typeof g=="string"&&e.resizable("option","handles",g));(h||this._makeResizable(g));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(g||"&nbsp;");break;case"width":this.uiDialog.width(g);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var f=this.options;
this.element.css({height:0,minHeight:0,width:"auto"});var e=this.uiDialog.css({height:"auto",width:f.width}).height();this.element.css({minHeight:Math.max(f.minHeight-e,0),height:f.height=="auto"?"auto":Math.max(f.height-e,0)})}});c.extend(c.ui.dialog,{version:"1.7.3",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(e){return"ui-dialog-title-"+(e.attr("id")||++this.uuid)
},overlay:function(e){this.$el=c.ui.dialog.overlay.create(e)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(e){return e+".dialog-overlay"}).join(" "),create:function(f){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(g){var h=c(g.target).parents(".ui-dialog").css("zIndex")||0;
return(h>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(g){(f.options.closeOnEscape&&g.keyCode&&g.keyCode==c.ui.keyCode.ESCAPE&&f.close(g))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var e=c("<div></div>").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});
(f.options.bgiframe&&c.fn.bgiframe&&e.bgiframe());this.instances.push(e);return e},destroy:function(e){this.instances.splice(c.inArray(this.instances,e),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}e.remove();var f=0;c.each(this.instances,function(){f=Math.max(f,this.css("z-index"))
});this.maxZ=f},height:function(){if(c.browser.msie&&c.browser.version<7){var f=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var e=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(f<e){return c(window).height()+"px"}else{return f+"px"}}else{return c(document).height()+"px"
}},width:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth);var f=Math.max(document.documentElement.offsetWidth,document.body.offsetWidth);if(e<f){return c(window).width()+"px"}else{return e+"px"}}else{return c(document).width()+"px"
}},resize:function(){var e=c([]);c.each(c.ui.dialog.overlay.instances,function(){e=e.add(this)});e.css({width:0,height:0}).css({width:c.ui.dialog.overlay.width(),height:c.ui.dialog.overlay.height()})}});c.extend(c.ui.dialog.overlay.prototype,{destroy:function(){c.ui.dialog.overlay.destroy(this.$el)}})
})(jQuery);(function(){var a="VTT";var b=VT.Cookie.get(a);if(b){var c=1/48;VT.Cookie.set(a,b,c)}})();VT.Header={};VT.Header.startlist=function(e){if(document.all&&document.getElementById){if(typeof e=="string"){e=document.getElementById(e)}if(!e){return}for(var h=0;h<e.childNodes.length;h++){var c=e.childNodes[h];
if(c.nodeName=="LI"&&!c.className.match(/(\s|^)noRoll(\s|$)/)){c.onmouseover=function(){this.className+=" over"};c.onmouseout=function(){this.className=this.className.replace(/\s?over/,"")};var m=c.childNodes;for(var f=0;f<m.length;f++){var l=m[f];if(l.nodeName=="UL"){var a=l.childNodes;for(var g=0;g<a.length;
g++){var b=a[g];if(b.nodeName=="LI"){b.onmouseover=function(){this.className+=" hover"};b.onmouseout=function(){this.className=this.className.replace(/\s?hover/,"")}}}}}}}}};(function(){var a=window.onload||function(){};var b=function(){var h=document.getElementsByTagName("div");for(var g=0;g<h.length;
g++){var m=h[g];if(m.className.match(/(\s|^)autocompleterChoices(\s|$)/)){var f=m.childNodes;for(var c=0;c<f.length;c++){var l=f[c];if(l.nodeName=="UL"){VT.Header.startlist(l)}}}if(m.className.match(/(\s|^)notices_container(\s|$)/)){var f=m.childNodes;for(var c=0;c<f.length;c++){var l=f[c];if(l.nodeName=="UL"){VT.Header.startlist(l)
}}}}var k=document.getElementsByTagName("UL");for(var g=0;g<k.length;g++){var e=k[g];if(e.className.match(/(\s|^)subNav(\s|$)/)){VT.Header.startlist(e)}}VT.Header.startlist("memberMenu");return a()};if(jQuery.browser.msie&&jQuery.browser.version<7){window.onload=b}})();VT.AdDefer=(function(){var h=[];
this.showAds=function(k,l){if(!h.length){$W.bind("load",g)}h.push(function(){e(k,l)})};var g=function(){$D.ready(function(){var k=(new Date()).getTime();setTimeout(function(){while(h.length){(h.pop())()}},260)})};var b;var c=function(k){b=$('<ul class="dartInfo"><li><h2>The following '+k.length+" ad calls were made:</h2></li></ul>");
$B.append(b)};var a=function(l,r,k,u,n,o){var t=$("<li><h3>"+r.placement+'</h3><dl class="clearfix"></dl></li>');var m=t.find("dl");b.append(t);var q=$.extend({},l,r,{ord:k,dartDomain:u,dartBaseUrl:n,url:o});$.each(q,function(v,w){m.append("<dt>"+v+":</dt><dd>"+w+"</dd>")})};var f=function(k){var l;try{l=k.iframe.contents().find("body")
}catch(m){}if(l){if(!l.hasClass("taEmpty")){k.placeHolder.children(".hiddenAd").removeClass("hiddenAd");if(l.hasClass("taHouse")){k.ad.css({background:"none"})}k.elsToShow&&$(k.elsToShow).show()}}else{setTimeout(function(){f(k)},1000)}};var e=function(l,n){var k=Math.floor(Math.random()*100000000);var q="http://ad.doubleclick.net/adj/";
var m="ta.vt.com.s";var o=window.location.hash==="#showDart";o&&c(n);$.each($(n),function(v,t){var u=q+m+"/"+l.zone+";pagetype="+l.dartPageType+";u=%7C%7C"+l.dartPageType+";pos="+t.placement+";tile="+t.tile+";sz="+t.size+";ord="+k;o&&a(l,t,k,m,q,u);t.placeHolder=$("#adPlaceHolder_"+t.tile);if(t.placeHolder){var r="http://"+document.location.host+"/adp/vtAdProxy#"+u;
t.ad=$('<div class="'+t.placement.toLowerCase()+' hiddenAd">	<div class="adServer">		<iframe frameborder="0" bordercolor="#000000" vspace="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" src="'+r+'"></iframe>	<div></div>').appendTo(t.placeHolder);t.iframe=t.ad.find(".adServer > iframe").bind("load",function(){f(t)
})}})};return this})();
