/*
 * Weekendjeweg builder
 * Version 0.1
 */
/*
 * jQuery JavaScript Library v1.3.2
 * http://jquery.com/
 *
 * Copyright (c) 2009 John Resig
 * Dual licensed under the MIT and GPL licenses.
 * http://docs.jquery.com/License
 *
 * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009)
 * Revision: 6246
 */
(function(){var p=this,k,C=p.jQuery,t=p.$,s=p.jQuery=p.$=function(I,J){return new s.fn.init(I,J)},H=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,h=/^.[^:#\[\.,]*$/;s.fn=s.prototype={init:function(I,L){I=I||document;if(I.nodeType){this[0]=I;this.length=1;this.context=I;return this}if(typeof I==="string"){var K=H.exec(I);if(K&&(K[1]||!L)){if(K[1]){I=s.clean([K[1]],L)}else{var M=document.getElementById(K[3]);if(M&&M.id!=K[3]){return s().find(I)}var J=s(M||[]);J.context=document;J.selector=I;return J}}else{return s(L).find(I)}}else{if(s.isFunction(I)){return s(document).ready(I)}}if(I.selector&&I.context){this.selector=I.selector;this.context=I.context}return this.setArray(s.isArray(I)?I:s.makeArray(I))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(I){return I===k?Array.prototype.slice.call(this):this[I]},pushStack:function(J,L,I){var K=s(J);K.prevObject=this;K.context=this.context;if(L==="find"){K.selector=this.selector+(this.selector?" ":"")+I}else{if(L){K.selector=this.selector+"."+L+"("+I+")"}}return K},setArray:function(I){this.length=0;Array.prototype.push.apply(this,I);return this},each:function(J,I){return s.each(this,J,I)},index:function(I){return s.inArray(I&&I.jquery?I[0]:I,this)},attr:function(J,L,K){var I=J;if(typeof J==="string"){if(L===k){return this[0]&&s[K||"attr"](this[0],J)}else{I={};I[J]=L}}return this.each(function(M){for(J in I){s.attr(K?this.style:this,J,s.prop(this,I[J],K,M,J))}})},css:function(I,J){if((I=="width"||I=="height")&&parseFloat(J)<0){J=k}return this.attr(I,J,"curCSS")},text:function(J){if(typeof J!=="object"&&J!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(J))}var I="";s.each(J||this,function(){s.each(this.childNodes,function(){if(this.nodeType!=8){I+=this.nodeType!=1?this.nodeValue:s.fn.text([this])}})});return I},wrapAll:function(I){if(this[0]){var J=s(I,this[0].ownerDocument).clone();if(this[0].parentNode){J.insertBefore(this[0])}J.map(function(){var K=this;while(K.firstChild){K=K.firstChild}return K}).append(this)}return this},wrapInner:function(I){return this.each(function(){s(this).contents().wrapAll(I)})},wrap:function(I){return this.each(function(){s(this).wrapAll(I)})},append:function(){return this.domManip(arguments,true,function(I){if(this.nodeType==1){this.appendChild(I)}})},prepend:function(){return this.domManip(arguments,true,function(I){if(this.nodeType==1){this.insertBefore(I,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(I){this.parentNode.insertBefore(I,this)})},after:function(){return this.domManip(arguments,false,function(I){this.parentNode.insertBefore(I,this.nextSibling)})},end:function(){return this.prevObject||s([])},push:[].push,sort:[].sort,splice:[].splice,find:function(I){if(this.length===1){var J=this.pushStack([],"find",I);J.length=0;s.find(I,this[0],J);return J}else{return this.pushStack(s.unique(s.map(this,function(K){return s.find(I,K)})),"find",I)}},clone:function(K){var I=this.map(function(){if(!s.support.noCloneEvent&&!s.isXMLDoc(this)){var M=this.outerHTML;if(!M){var N=this.ownerDocument.createElement("div");N.appendChild(this.cloneNode(true));M=N.innerHTML}return s.clean([M.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(K===true){var L=this.find("*").andSelf(),J=0;I.find("*").andSelf().each(function(){if(this.nodeName!==L[J].nodeName){return}var M=s.data(L[J],"events");for(var O in M){for(var N in M[O]){s.event.add(this,O,M[O][N],M[O][N].data)}}J++})}return I},filter:function(I){return this.pushStack(s.isFunction(I)&&s.grep(this,function(K,J){return I.call(K,J)})||s.multiFilter(I,s.grep(this,function(J){return J.nodeType===1})),"filter",I)},closest:function(I){var K=s.expr.match.POS.test(I)?s(I):null,J=0;return this.map(function(){var L=this;while(L&&L.ownerDocument){if(K?K.index(L)>-1:s(L).is(I)){s.data(L,"closest",J);return L}L=L.parentNode;J++}})},not:function(I){if(typeof I==="string"){if(h.test(I)){return this.pushStack(s.multiFilter(I,this,true),"not",I)}else{I=s.multiFilter(I,this)}}var J=I.length&&I[I.length-1]!==k&&!I.nodeType;return this.filter(function(){return J?s.inArray(this,I)<0:this!=I})},add:function(I){return this.pushStack(s.unique(s.merge(this.get(),typeof I==="string"?s(I):s.makeArray(I))))},is:function(I){return !!I&&s.multiFilter(I,this).length>0},hasClass:function(I){return !!I&&this.is("."+I)},val:function(O){if(O===k){var I=this[0];if(I){if(s.nodeName(I,"option")){return(I.attributes.value||{}).specified?I.value:I.text}if(s.nodeName(I,"select")){var M=I.selectedIndex,P=[],Q=I.options,L=I.type=="select-one";if(M<0){return null}for(var J=L?M:0,N=L?M+1:Q.length;J<N;J++){var K=Q[J];if(K.selected){O=s(K).val();if(L){return O}P.push(O)}}return P}return(I.value||"").replace(/\r/g,"")}return k}if(typeof O==="number"){O+=""}return this.each(function(){if(this.nodeType!=1){return}if(s.isArray(O)&&/radio|checkbox/.test(this.type)){this.checked=(s.inArray(this.value,O)>=0||s.inArray(this.name,O)>=0)}else{if(s.nodeName(this,"select")){var R=s.makeArray(O);s("option",this).each(function(){this.selected=(s.inArray(this.value,R)>=0||s.inArray(this.text,R)>=0)});if(!R.length){this.selectedIndex=-1}}else{this.value=O}}})},html:function(I){return I===k?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(I)},replaceWith:function(I){return this.after(I).remove()},eq:function(I){return this.slice(I,+I+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(I){return this.pushStack(s.map(this,function(K,J){return I.call(K,J,K)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(N,Q,P){if(this[0]){var M=(this[0].ownerDocument||this[0]).createDocumentFragment(),J=s.clean(N,(this[0].ownerDocument||this[0]),M),L=M.firstChild;if(L){for(var K=0,I=this.length;K<I;K++){P.call(O(this[K],L),this.length>1||K>0?M.cloneNode(true):M)}}if(J){s.each(J,D)}}return this;function O(R,S){return Q&&s.nodeName(R,"table")&&s.nodeName(S,"tr")?(R.getElementsByTagName("tbody")[0]||R.appendChild(R.ownerDocument.createElement("tbody"))):R}}};s.fn.init.prototype=s.fn;function D(I,J){if(J.src){s.ajax({url:J.src,async:false,dataType:"script"})}else{s.globalEval(J.text||J.textContent||J.innerHTML||"")}if(J.parentNode){J.parentNode.removeChild(J)}}function g(){return +new Date}s.extend=s.fn.extend=function(){var N=arguments[0]||{},L=1,M=arguments.length,I=false,K;if(typeof N==="boolean"){I=N;N=arguments[1]||{};L=2}if(typeof N!=="object"&&!s.isFunction(N)){N={}}if(M==L){N=this;--L}for(;L<M;L++){if((K=arguments[L])!=null){for(var J in K){var O=N[J],P=K[J];if(N===P){continue}if(I&&P&&typeof P==="object"&&!P.nodeType){N[J]=s.extend(I,O||(P.length!=null?[]:{}),P)}else{if(P!==k){N[J]=P}}}}}return N};var b=/z-?index|font-?weight|opacity|zoom|line-?height/i,u=document.defaultView||{},w=Object.prototype.toString;s.extend({noConflict:function(I){p.$=t;if(I){p.jQuery=C}return s},isFunction:function(I){return w.call(I)==="[object Function]"},isArray:function(I){return w.call(I)==="[object Array]"},isXMLDoc:function(I){return I.nodeType===9&&I.documentElement.nodeName!=="HTML"||!!I.ownerDocument&&s.isXMLDoc(I.ownerDocument)},globalEval:function(K){if(K&&/\S/.test(K)){var J=document.getElementsByTagName("head")[0]||document.documentElement,I=document.createElement("script");I.type="text/javascript";if(s.support.scriptEval){I.appendChild(document.createTextNode(K))}else{I.text=K}J.insertBefore(I,J.firstChild);J.removeChild(I)}},nodeName:function(J,I){return J.nodeName&&J.nodeName.toUpperCase()==I.toUpperCase()},each:function(K,O,J){var I,L=0,M=K.length;if(J){if(M===k){for(I in K){if(O.apply(K[I],J)===false){break}}}else{for(;L<M;){if(O.apply(K[L++],J)===false){break}}}}else{if(M===k){for(I in K){if(O.call(K[I],I,K[I])===false){break}}}else{for(var N=K[0];L<M&&O.call(N,L,N)!==false;N=K[++L]){}}}return K},prop:function(L,M,K,J,I){if(s.isFunction(M)){M=M.call(L,J)}return typeof M==="number"&&K=="curCSS"&&!b.test(I)?M+"px":M},className:{add:function(I,J){s.each((J||"").split(/\s+/),function(K,L){if(I.nodeType==1&&!s.className.has(I.className,L)){I.className+=(I.className?" ":"")+L}})},remove:function(I,J){if(I.nodeType==1){I.className=J!==k?s.grep(I.className.split(/\s+/),function(K){return !s.className.has(J,K)}).join(" "):""}},has:function(J,I){return J&&s.inArray(I,(J.className||J).toString().split(/\s+/))>-1}},swap:function(L,K,M){var I={};for(var J in K){I[J]=L.style[J];L.style[J]=K[J]}M.call(L);for(var J in K){L.style[J]=I[J]}},css:function(L,J,N,I){if(J=="width"||J=="height"){var P,K={position:"absolute",visibility:"hidden",display:"block"},O=J=="width"?["Left","Right"]:["Top","Bottom"];function M(){P=J=="width"?L.offsetWidth:L.offsetHeight;if(I==="border"){return}s.each(O,function(){if(!I){P-=parseFloat(s.curCSS(L,"padding"+this,true))||0}if(I==="margin"){P+=parseFloat(s.curCSS(L,"margin"+this,true))||0}else{P-=parseFloat(s.curCSS(L,"border"+this+"Width",true))||0}})}if(L.offsetWidth!==0){M()}else{s.swap(L,K,M)}return Math.max(0,Math.round(P))}return s.curCSS(L,J,N)},curCSS:function(M,J,K){var P,I=M.style;if(J=="opacity"&&!s.support.opacity){P=s.attr(I,"opacity");return P==""?"1":P}if(J.match(/float/i)){J=A}if(!K&&I&&I[J]){P=I[J]}else{if(u.getComputedStyle){if(J.match(/float/i)){J="float"}J=J.replace(/([A-Z])/g,"-$1").toLowerCase();var Q=u.getComputedStyle(M,null);if(Q){P=Q.getPropertyValue(J)}if(J=="opacity"&&P==""){P="1"}}else{if(M.currentStyle){var N=J.replace(/\-(\w)/g,function(R,S){return S.toUpperCase()});P=M.currentStyle[J]||M.currentStyle[N];if(!/^\d+(px)?$/i.test(P)&&/^\d/.test(P)){var L=I.left,O=M.runtimeStyle.left;M.runtimeStyle.left=M.currentStyle.left;I.left=P||0;P=I.pixelLeft+"px";I.left=L;M.runtimeStyle.left=O}}}}return P},clean:function(J,O,M){O=O||document;if(typeof O.createElement==="undefined"){O=O.ownerDocument||O[0]&&O[0].ownerDocument||document}if(!M&&J.length===1&&typeof J[0]==="string"){var L=/^<(\w+)\s*\/?>$/.exec(J[0]);if(L){return[O.createElement(L[1])]}}var K=[],I=[],P=O.createElement("div");s.each(J,function(T,W){if(typeof W==="number"){W+=""}if(!W){return}if(typeof W==="string"){W=W.replace(/(<(\w+)[^>]*?)\/>/g,function(Y,Z,X){return X.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?Y:Z+"></"+X+">"});var S=W.replace(/^\s+/,"").substring(0,10).toLowerCase();var U=!S.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!S.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||S.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!S.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!S.indexOf("<td")||!S.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!S.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||!s.support.htmlSerialize&&[1,"div<div>","</div>"]||[0,"",""];P.innerHTML=U[1]+W+U[2];while(U[0]--){P=P.lastChild}if(!s.support.tbody){var V=/<tbody/i.test(W),R=!S.indexOf("<table")&&!V?P.firstChild&&P.firstChild.childNodes:U[1]=="<table>"&&!V?P.childNodes:[];for(var Q=R.length-1;Q>=0;--Q){if(s.nodeName(R[Q],"tbody")&&!R[Q].childNodes.length){R[Q].parentNode.removeChild(R[Q])}}}if(!s.support.leadingWhitespace&&/^\s/.test(W)){P.insertBefore(O.createTextNode(W.match(/^\s*/)[0]),P.firstChild)}W=s.makeArray(P.childNodes)}if(W.nodeType){K.push(W)}else{K=s.merge(K,W)}});if(M){for(var N=0;K[N];N++){if(s.nodeName(K[N],"script")&&(!K[N].type||K[N].type.toLowerCase()==="text/javascript")){I.push(K[N].parentNode?K[N].parentNode.removeChild(K[N]):K[N])}else{if(K[N].nodeType===1){K.splice.apply(K,[N+1,0].concat(s.makeArray(K[N].getElementsByTagName("script"))))}M.appendChild(K[N])}}return I}return K},attr:function(N,K,O){if(!N||N.nodeType==3||N.nodeType==8){return k}var L=!s.isXMLDoc(N),P=O!==k;K=L&&s.props[K]||K;if(N.tagName){var J=/href|src|style/.test(K);if(K=="selected"&&N.parentNode){N.parentNode.selectedIndex}if(K in N&&L&&!J){if(P){if(K=="type"&&s.nodeName(N,"input")&&N.parentNode){throw"type property can't be changed"}N[K]=O}if(s.nodeName(N,"form")&&N.getAttributeNode(K)){return N.getAttributeNode(K).nodeValue}if(K=="tabIndex"){var M=N.getAttributeNode("tabIndex");return M&&M.specified?M.value:N.nodeName.match(/(button|input|object|select|textarea)/i)?0:N.nodeName.match(/^(a|area)$/i)&&N.href?0:k}return N[K]}if(!s.support.style&&L&&K=="style"){return s.attr(N.style,"cssText",O)}if(P){N.setAttribute(K,""+O)}var I=!s.support.hrefNormalized&&L&&J?N.getAttribute(K,2):N.getAttribute(K);return I===null?k:I}if(!s.support.opacity&&K=="opacity"){if(P){N.zoom=1;N.filter=(N.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(O)+""=="NaN"?"":"alpha(opacity="+O*100+")")}return N.filter&&N.filter.indexOf("opacity=")>=0?(parseFloat(N.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}K=K.replace(/-([a-z])/ig,function(Q,R){return R.toUpperCase()});if(P){N[K]=O}return N[K]},trim:function(I){return(I||"").replace(/^\s+|\s+$/g,"")},makeArray:function(K){var I=[];if(K!=null){var J=K.length;if(J==null||typeof K==="string"||s.isFunction(K)||K.setInterval){I[0]=K}else{while(J){I[--J]=K[J]}}}return I},inArray:function(K,L){for(var I=0,J=L.length;I<J;I++){if(L[I]===K){return I}}return -1},merge:function(L,I){var J=0,K,M=L.length;if(!s.support.getAll){while((K=I[J++])!=null){if(K.nodeType!=8){L[M++]=K}}}else{while((K=I[J++])!=null){L[M++]=K}}return L},unique:function(O){var J=[],I={};try{for(var K=0,L=O.length;K<L;K++){var N=s.data(O[K]);if(!I[N]){I[N]=true;J.push(O[K])}}}catch(M){J=O}return J},grep:function(J,N,I){var K=[];for(var L=0,M=J.length;L<M;L++){if(!I!=!N(J[L],L)){K.push(J[L])}}return K},map:function(I,N){var J=[];for(var K=0,L=I.length;K<L;K++){var M=N(I[K],K);if(M!=null){J[J.length]=M}}return J.concat.apply([],J)}});var G=navigator.userAgent.toLowerCase();s.browser={version:(G.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[0,"0"])[1],safari:/webkit/.test(G),opera:/opera/.test(G),msie:/msie/.test(G)&&!/opera/.test(G),mozilla:/mozilla/.test(G)&&!/(compatible|webkit)/.test(G)};s.each({parent:function(I){return I.parentNode},parents:function(I){return s.dir(I,"parentNode")},next:function(I){return s.nth(I,2,"nextSibling")},prev:function(I){return s.nth(I,2,"previousSibling")},nextAll:function(I){return s.dir(I,"nextSibling")},prevAll:function(I){return s.dir(I,"previousSibling")},siblings:function(I){return s.sibling(I.parentNode.firstChild,I)},children:function(I){return s.sibling(I.firstChild)},contents:function(I){return s.nodeName(I,"iframe")?I.contentDocument||I.contentWindow.document:s.makeArray(I.childNodes)}},function(I,J){s.fn[I]=function(K){var L=s.map(this,J);if(K&&typeof K=="string"){L=s.multiFilter(K,L)}return this.pushStack(s.unique(L),I,K)}});s.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(I,J){s.fn[I]=function(K){var N=[],P=s(K);for(var O=0,L=P.length;O<L;O++){var M=(O>0?this.clone(true):this).get();s.fn[J].apply(s(P[O]),M);N=N.concat(M)}return this.pushStack(N,I,K)}});s.each({removeAttr:function(I){s.attr(this,I,"");if(this.nodeType==1){this.removeAttribute(I)}},addClass:function(I){s.className.add(this,I)},removeClass:function(I){s.className.remove(this,I)},toggleClass:function(J,I){if(typeof I!=="boolean"){I=!s.className.has(this,J)}s.className[I?"add":"remove"](this,J)},remove:function(I){if(!I||s.filter(I,[this]).length){s("*",this).add([this]).each(function(){s.event.remove(this);s.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){s(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(I,J){s.fn[I]=function(){return this.each(J,arguments)}});function n(I,J){return I[0]&&parseInt(s.curCSS(I[0],J,true),10)||0}var l="jQuery"+g(),z=0,E={};s.extend({cache:{},data:function(J,I,K){J=J==p?E:J;var L=J[l];if(!L){L=J[l]=++z}if(I&&!s.cache[L]){s.cache[L]={}}if(K!==k){s.cache[L][I]=K}return I?s.cache[L][I]:L},removeData:function(J,I){J=J==p?E:J;var L=J[l];if(I){if(s.cache[L]){delete s.cache[L][I];I="";for(I in s.cache[L]){break}if(!I){s.removeData(J)}}}else{try{delete J[l]}catch(K){if(J.removeAttribute){J.removeAttribute(l)}}delete s.cache[L]}},queue:function(J,I,L){if(J){I=(I||"fx")+"queue";var K=s.data(J,I);if(!K||s.isArray(L)){K=s.data(J,I,s.makeArray(L))}else{if(L){K.push(L)}}}return K},dequeue:function(L,K){var I=s.queue(L,K),J=I.shift();if(!K||K==="fx"){J=I[0]}if(J!==k){J.call(L)}}});s.fn.extend({data:function(I,K){var L=I.split(".");L[1]=L[1]?"."+L[1]:"";if(K===k){var J=this.triggerHandler("getData"+L[1]+"!",[L[0]]);if(J===k&&this.length){J=s.data(this[0],I)}return J===k&&L[1]?this.data(L[0]):J}else{return this.trigger("setData"+L[1]+"!",[L[0],K]).each(function(){s.data(this,I,K)})}},removeData:function(I){return this.each(function(){s.removeData(this,I)})},queue:function(I,J){if(typeof I!=="string"){J=I;I="fx"}if(J===k){return s.queue(this[0],I)}return this.each(function(){var K=s.queue(this,I,J);if(I=="fx"&&K.length==1){K[0].call(this)}})},dequeue:function(I){return this.each(function(){s.dequeue(this,I)})}});
/*
 * Sizzle CSS Selector Engine - v0.9.3
 *  Copyright 2009, The Dojo Foundation
 *  Released under the MIT, BSD, and GPL Licenses.
 *  More information: http://sizzlejs.com/
 */
(function(){var V=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,P=0,L=Object.prototype.toString;var J=function(ac,Y,af,ag){af=af||[];Y=Y||document;if(Y.nodeType!==1&&Y.nodeType!==9){return[]}if(!ac||typeof ac!=="string"){return af}var ad=[],aa,aj,am,X,ah,Z,ab=true;V.lastIndex=0;while((aa=V.exec(ac))!==null){ad.push(aa[1]);if(aa[2]){Z=RegExp.rightContext;break}}if(ad.length>1&&Q.exec(ac)){if(ad.length===2&&M.relative[ad[0]]){aj=N(ad[0]+ad[1],Y)}else{aj=M.relative[ad[0]]?[Y]:J(ad.shift(),Y);while(ad.length){ac=ad.shift();if(M.relative[ac]){ac+=ad.shift()}aj=N(ac,aj)}}}else{var ai=ag?{expr:ad.pop(),set:I(ag)}:J.find(ad.pop(),ad.length===1&&Y.parentNode?Y.parentNode:Y,U(Y));aj=J.filter(ai.expr,ai.set);if(ad.length>0){am=I(aj)}else{ab=false}while(ad.length){var al=ad.pop(),ak=al;if(!M.relative[al]){al=""}else{ak=ad.pop()}if(ak==null){ak=Y}M.relative[al](am,ak,U(Y))}}if(!am){am=aj}if(!am){throw"Syntax error, unrecognized expression: "+(al||ac)}if(L.call(am)==="[object Array]"){if(!ab){af.push.apply(af,am)}else{if(Y.nodeType===1){for(var ae=0;am[ae]!=null;ae++){if(am[ae]&&(am[ae]===true||am[ae].nodeType===1&&O(Y,am[ae]))){af.push(aj[ae])}}}else{for(var ae=0;am[ae]!=null;ae++){if(am[ae]&&am[ae].nodeType===1){af.push(aj[ae])}}}}}else{I(am,af)}if(Z){J(Z,Y,af,ag);if(K){hasDuplicate=false;af.sort(K);if(hasDuplicate){for(var ae=1;ae<af.length;ae++){if(af[ae]===af[ae-1]){af.splice(ae--,1)}}}}}return af};J.matches=function(X,Y){return J(X,null,null,Y)};J.find=function(ae,X,af){var ad,ab;if(!ae){return[]}for(var aa=0,Z=M.order.length;aa<Z;aa++){var ac=M.order[aa],ab;if((ab=M.match[ac].exec(ae))){var Y=RegExp.leftContext;if(Y.substr(Y.length-1)!=="\\"){ab[1]=(ab[1]||"").replace(/\\/g,"");ad=M.find[ac](ab,X,af);if(ad!=null){ae=ae.replace(M.match[ac],"");break}}}}if(!ad){ad=X.getElementsByTagName("*")}return{set:ad,expr:ae}};J.filter=function(ah,ag,ak,aa){var Z=ah,am=[],ae=ag,ac,X,ad=ag&&ag[0]&&U(ag[0]);while(ah&&ag.length){for(var af in M.filter){if((ac=M.match[af].exec(ah))!=null){var Y=M.filter[af],al,aj;X=false;if(ae==am){am=[]}if(M.preFilter[af]){ac=M.preFilter[af](ac,ae,ak,am,aa,ad);if(!ac){X=al=true}else{if(ac===true){continue}}}if(ac){for(var ab=0;(aj=ae[ab])!=null;ab++){if(aj){al=Y(aj,ac,ab,ae);var ai=aa^!!al;if(ak&&al!=null){if(ai){X=true}else{ae[ab]=false}}else{if(ai){am.push(aj);X=true}}}}}if(al!==k){if(!ak){ae=am}ah=ah.replace(M.match[af],"");if(!X){return[]}break}}}if(ah==Z){if(X==null){throw"Syntax error, unrecognized expression: "+ah}else{break}}Z=ah}return ae};var M=J.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(X){return X.getAttribute("href")}},relative:{"+":function(ae,X,ad){var ab=typeof X==="string",af=ab&&!/\W/.test(X),ac=ab&&!af;if(af&&!ad){X=X.toUpperCase()}for(var aa=0,Z=ae.length,Y;aa<Z;aa++){if((Y=ae[aa])){while((Y=Y.previousSibling)&&Y.nodeType!==1){}ae[aa]=ac||Y&&Y.nodeName===X?Y||false:Y===X}}if(ac){J.filter(X,ae,true)}},">":function(ad,Y,ae){var ab=typeof Y==="string";if(ab&&!/\W/.test(Y)){Y=ae?Y:Y.toUpperCase();for(var Z=0,X=ad.length;Z<X;Z++){var ac=ad[Z];if(ac){var aa=ac.parentNode;ad[Z]=aa.nodeName===Y?aa:false}}}else{for(var Z=0,X=ad.length;Z<X;Z++){var ac=ad[Z];if(ac){ad[Z]=ab?ac.parentNode:ac.parentNode===Y}}if(ab){J.filter(Y,ad,true)}}},"":function(aa,Y,ac){var Z=P++,X=W;if(!Y.match(/\W/)){var ab=Y=ac?Y:Y.toUpperCase();X=T}X("parentNode",Y,Z,aa,ab,ac)},"~":function(aa,Y,ac){var Z=P++,X=W;if(typeof Y==="string"&&!Y.match(/\W/)){var ab=Y=ac?Y:Y.toUpperCase();X=T}X("previousSibling",Y,Z,aa,ab,ac)}},find:{ID:function(Y,Z,aa){if(typeof Z.getElementById!=="undefined"&&!aa){var X=Z.getElementById(Y[1]);return X?[X]:[]}},NAME:function(Z,ac,ad){if(typeof ac.getElementsByName!=="undefined"){var Y=[],ab=ac.getElementsByName(Z[1]);for(var aa=0,X=ab.length;aa<X;aa++){if(ab[aa].getAttribute("name")===Z[1]){Y.push(ab[aa])}}return Y.length===0?null:Y}},TAG:function(X,Y){return Y.getElementsByTagName(X[1])}},preFilter:{CLASS:function(aa,Y,Z,X,ad,ae){aa=" "+aa[1].replace(/\\/g,"")+" ";if(ae){return aa}for(var ab=0,ac;(ac=Y[ab])!=null;ab++){if(ac){if(ad^(ac.className&&(" "+ac.className+" ").indexOf(aa)>=0)){if(!Z){X.push(ac)}}else{if(Z){Y[ab]=false}}}}return false},ID:function(X){return X[1].replace(/\\/g,"")},TAG:function(Y,X){for(var Z=0;X[Z]===false;Z++){}return X[Z]&&U(X[Z])?Y[1]:Y[1].toUpperCase()},CHILD:function(X){if(X[1]=="nth"){var Y=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(X[2]=="even"&&"2n"||X[2]=="odd"&&"2n+1"||!/\D/.test(X[2])&&"0n+"+X[2]||X[2]);X[2]=(Y[1]+(Y[2]||1))-0;X[3]=Y[3]-0}X[0]=P++;return X},ATTR:function(ab,Y,Z,X,ac,ad){var aa=ab[1].replace(/\\/g,"");if(!ad&&M.attrMap[aa]){ab[1]=M.attrMap[aa]}if(ab[2]==="~="){ab[4]=" "+ab[4]+" "}return ab},PSEUDO:function(ab,Y,Z,X,ac){if(ab[1]==="not"){if(ab[3].match(V).length>1||/^\w/.test(ab[3])){ab[3]=J(ab[3],null,null,Y)}else{var aa=J.filter(ab[3],Y,Z,true^ac);if(!Z){X.push.apply(X,aa)}return false}}else{if(M.match.POS.test(ab[0])||M.match.CHILD.test(ab[0])){return true}}return ab},POS:function(X){X.unshift(true);return X}},filters:{enabled:function(X){return X.disabled===false&&X.type!=="hidden"},disabled:function(X){return X.disabled===true},checked:function(X){return X.checked===true},selected:function(X){X.parentNode.selectedIndex;return X.selected===true},parent:function(X){return !!X.firstChild},empty:function(X){return !X.firstChild},has:function(Z,Y,X){return !!J(X[3],Z).length},header:function(X){return/h\d/i.test(X.nodeName)},text:function(X){return"text"===X.type},radio:function(X){return"radio"===X.type},checkbox:function(X){return"checkbox"===X.type},file:function(X){return"file"===X.type},password:function(X){return"password"===X.type},submit:function(X){return"submit"===X.type},image:function(X){return"image"===X.type},reset:function(X){return"reset"===X.type},button:function(X){return"button"===X.type||X.nodeName.toUpperCase()==="BUTTON"},input:function(X){return/input|select|textarea|button/i.test(X.nodeName)}},setFilters:{first:function(Y,X){return X===0},last:function(Z,Y,X,aa){return Y===aa.length-1},even:function(Y,X){return X%2===0},odd:function(Y,X){return X%2===1},lt:function(Z,Y,X){return Y<X[3]-0},gt:function(Z,Y,X){return Y>X[3]-0},nth:function(Z,Y,X){return X[3]-0==Y},eq:function(Z,Y,X){return X[3]-0==Y}},filter:{PSEUDO:function(ad,Z,aa,ae){var Y=Z[1],ab=M.filters[Y];if(ab){return ab(ad,aa,Z,ae)}else{if(Y==="contains"){return(ad.textContent||ad.innerText||"").indexOf(Z[3])>=0}else{if(Y==="not"){var ac=Z[3];for(var aa=0,X=ac.length;aa<X;aa++){if(ac[aa]===ad){return false}}return true}}}},CHILD:function(X,aa){var ad=aa[1],Y=X;switch(ad){case"only":case"first":while(Y=Y.previousSibling){if(Y.nodeType===1){return false}}if(ad=="first"){return true}Y=X;case"last":while(Y=Y.nextSibling){if(Y.nodeType===1){return false}}return true;case"nth":var Z=aa[2],ag=aa[3];if(Z==1&&ag==0){return true}var ac=aa[0],af=X.parentNode;if(af&&(af.sizcache!==ac||!X.nodeIndex)){var ab=0;for(Y=af.firstChild;Y;Y=Y.nextSibling){if(Y.nodeType===1){Y.nodeIndex=++ab}}af.sizcache=ac}var ae=X.nodeIndex-ag;if(Z==0){return ae==0}else{return(ae%Z==0&&ae/Z>=0)}}},ID:function(Y,X){return Y.nodeType===1&&Y.getAttribute("id")===X},TAG:function(Y,X){return(X==="*"&&Y.nodeType===1)||Y.nodeName===X},CLASS:function(Y,X){return(" "+(Y.className||Y.getAttribute("class"))+" ").indexOf(X)>-1},ATTR:function(ac,aa){var Z=aa[1],X=M.attrHandle[Z]?M.attrHandle[Z](ac):ac[Z]!=null?ac[Z]:ac.getAttribute(Z),ad=X+"",ab=aa[2],Y=aa[4];return X==null?ab==="!=":ab==="="?ad===Y:ab==="*="?ad.indexOf(Y)>=0:ab==="~="?(" "+ad+" ").indexOf(Y)>=0:!Y?ad&&X!==false:ab==="!="?ad!=Y:ab==="^="?ad.indexOf(Y)===0:ab==="$="?ad.substr(ad.length-Y.length)===Y:ab==="|="?ad===Y||ad.substr(0,Y.length+1)===Y+"-":false},POS:function(ab,Y,Z,ac){var X=Y[2],aa=M.setFilters[X];if(aa){return aa(ab,Z,Y,ac)}}}};var Q=M.match.POS;for(var S in M.match){M.match[S]=RegExp(M.match[S].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var I=function(Y,X){Y=Array.prototype.slice.call(Y);if(X){X.push.apply(X,Y);return X}return Y};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(R){I=function(ab,aa){var Y=aa||[];if(L.call(ab)==="[object Array]"){Array.prototype.push.apply(Y,ab)}else{if(typeof ab.length==="number"){for(var Z=0,X=ab.length;Z<X;Z++){Y.push(ab[Z])}}else{for(var Z=0;ab[Z];Z++){Y.push(ab[Z])}}}return Y}}var K;if(document.documentElement.compareDocumentPosition){K=function(Y,X){var Z=Y.compareDocumentPosition(X)&4?-1:Y===X?0:1;if(Z===0){hasDuplicate=true}return Z}}else{if("sourceIndex" in document.documentElement){K=function(Y,X){var Z=Y.sourceIndex-X.sourceIndex;if(Z===0){hasDuplicate=true}return Z}}else{if(document.createRange){K=function(aa,Y){var Z=aa.ownerDocument.createRange(),X=Y.ownerDocument.createRange();Z.selectNode(aa);Z.collapse(true);X.selectNode(Y);X.collapse(true);var ab=Z.compareBoundaryPoints(Range.START_TO_END,X);if(ab===0){hasDuplicate=true}return ab}}}}(function(){var Y=document.createElement("form"),Z="script"+(new Date).getTime();Y.innerHTML="<input name='"+Z+"'/>";var X=document.documentElement;X.insertBefore(Y,X.firstChild);if(!!document.getElementById(Z)){M.find.ID=function(ab,ac,ad){if(typeof ac.getElementById!=="undefined"&&!ad){var aa=ac.getElementById(ab[1]);return aa?aa.id===ab[1]||typeof aa.getAttributeNode!=="undefined"&&aa.getAttributeNode("id").nodeValue===ab[1]?[aa]:k:[]}};M.filter.ID=function(ac,aa){var ab=typeof ac.getAttributeNode!=="undefined"&&ac.getAttributeNode("id");return ac.nodeType===1&&ab&&ab.nodeValue===aa}}X.removeChild(Y)})();(function(){var X=document.createElement("div");X.appendChild(document.createComment(""));if(X.getElementsByTagName("*").length>0){M.find.TAG=function(Y,ac){var ab=ac.getElementsByTagName(Y[1]);if(Y[1]==="*"){var aa=[];for(var Z=0;ab[Z];Z++){if(ab[Z].nodeType===1){aa.push(ab[Z])}}ab=aa}return ab}}X.innerHTML="<a href='#'></a>";if(X.firstChild&&typeof X.firstChild.getAttribute!=="undefined"&&X.firstChild.getAttribute("href")!=="#"){M.attrHandle.href=function(Y){return Y.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var X=J,Y=document.createElement("div");Y.innerHTML="<p class='TEST'></p>";if(Y.querySelectorAll&&Y.querySelectorAll(".TEST").length===0){return}J=function(ac,ab,Z,aa){ab=ab||document;if(!aa&&ab.nodeType===9&&!U(ab)){try{return I(ab.querySelectorAll(ac),Z)}catch(ad){}}return X(ac,ab,Z,aa)};J.find=X.find;J.filter=X.filter;J.selectors=X.selectors;J.matches=X.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var X=document.createElement("div");X.innerHTML="<div class='test e'></div><div class='test'></div>";if(X.getElementsByClassName("e").length===0){return}X.lastChild.className="e";if(X.getElementsByClassName("e").length===1){return}M.order.splice(1,0,"CLASS");M.find.CLASS=function(Y,Z,aa){if(typeof Z.getElementsByClassName!=="undefined"&&!aa){return Z.getElementsByClassName(Y[1])}}})()}function T(Y,ad,ac,ah,ae,ag){var af=Y=="previousSibling"&&!ag;for(var aa=0,Z=ah.length;aa<Z;aa++){var X=ah[aa];if(X){if(af&&X.nodeType===1){X.sizcache=ac;X.sizset=aa}X=X[Y];var ab=false;while(X){if(X.sizcache===ac){ab=ah[X.sizset];break}if(X.nodeType===1&&!ag){X.sizcache=ac;X.sizset=aa}if(X.nodeName===ad){ab=X;break}X=X[Y]}ah[aa]=ab}}}function W(Y,ad,ac,ah,ae,ag){var af=Y=="previousSibling"&&!ag;for(var aa=0,Z=ah.length;aa<Z;aa++){var X=ah[aa];if(X){if(af&&X.nodeType===1){X.sizcache=ac;X.sizset=aa}X=X[Y];var ab=false;while(X){if(X.sizcache===ac){ab=ah[X.sizset];break}if(X.nodeType===1){if(!ag){X.sizcache=ac;X.sizset=aa}if(typeof ad!=="string"){if(X===ad){ab=true;break}}else{if(J.filter(ad,[X]).length>0){ab=X;break}}}X=X[Y]}ah[aa]=ab}}}var O=document.compareDocumentPosition?function(Y,X){return Y.compareDocumentPosition(X)&16}:function(Y,X){return Y!==X&&(Y.contains?Y.contains(X):true)};var U=function(X){return X.nodeType===9&&X.documentElement.nodeName!=="HTML"||!!X.ownerDocument&&U(X.ownerDocument)};var N=function(X,ae){var aa=[],ab="",ac,Z=ae.nodeType?[ae]:ae;while((ac=M.match.PSEUDO.exec(X))){ab+=ac[0];X=X.replace(M.match.PSEUDO,"")}X=M.relative[X]?X+"*":X;for(var ad=0,Y=Z.length;ad<Y;ad++){J(X,Z[ad],aa)}return J.filter(ab,aa)};s.find=J;s.filter=J.filter;s.expr=J.selectors;s.expr[":"]=s.expr.filters;J.selectors.filters.hidden=function(X){return X.offsetWidth===0||X.offsetHeight===0};J.selectors.filters.visible=function(X){return X.offsetWidth>0||X.offsetHeight>0};J.selectors.filters.animated=function(X){return s.grep(s.timers,function(Y){return X===Y.elem}).length};s.multiFilter=function(Z,X,Y){if(Y){Z=":not("+Z+")"}return J.matches(Z,X)};s.dir=function(Z,Y){var X=[],aa=Z[Y];while(aa&&aa!=document){if(aa.nodeType==1){X.push(aa)}aa=aa[Y]}return X};s.nth=function(ab,X,Z,aa){X=X||1;var Y=0;for(;ab;ab=ab[Z]){if(ab.nodeType==1&&++Y==X){break}}return ab};s.sibling=function(Z,Y){var X=[];for(;Z;Z=Z.nextSibling){if(Z.nodeType==1&&Z!=Y){X.push(Z)}}return X};return;p.Sizzle=J})();s.event={add:function(M,J,L,O){if(M.nodeType==3||M.nodeType==8){return}if(M.setInterval&&M!=p){M=p}if(!L.guid){L.guid=this.guid++}if(O!==k){var K=L;L=this.proxy(K);L.data=O}var I=s.data(M,"events")||s.data(M,"events",{}),N=s.data(M,"handle")||s.data(M,"handle",function(){return typeof s!=="undefined"&&!s.event.triggered?s.event.handle.apply(arguments.callee.elem,arguments):k});N.elem=M;s.each(J.split(/\s+/),function(Q,R){var S=R.split(".");R=S.shift();L.type=S.slice().sort().join(".");var P=I[R];if(s.event.specialAll[R]){s.event.specialAll[R].setup.call(M,O,S)}if(!P){P=I[R]={};if(!s.event.special[R]||s.event.special[R].setup.call(M,O,S)===false){if(M.addEventListener){M.addEventListener(R,N,false)}else{if(M.attachEvent){M.attachEvent("on"+R,N)}}}}P[L.guid]=L;s.event.global[R]=true});M=null},guid:1,global:{},remove:function(O,L,N){if(O.nodeType==3||O.nodeType==8){return}var K=s.data(O,"events"),J,I;if(K){if(L===k||(typeof L==="string"&&L.charAt(0)==".")){for(var M in K){this.remove(O,M+(L||""))}}else{if(L.type){N=L.handler;L=L.type}s.each(L.split(/\s+/),function(Q,S){var U=S.split(".");S=U.shift();var R=RegExp("(^|\\.)"+U.slice().sort().join(".*\\.")+"(\\.|$)");if(K[S]){if(N){delete K[S][N.guid]}else{for(var T in K[S]){if(R.test(K[S][T].type)){delete K[S][T]}}}if(s.event.specialAll[S]){s.event.specialAll[S].teardown.call(O,U)}for(J in K[S]){break}if(!J){if(!s.event.special[S]||s.event.special[S].teardown.call(O,U)===false){if(O.removeEventListener){O.removeEventListener(S,s.data(O,"handle"),false)}else{if(O.detachEvent){O.detachEvent("on"+S,s.data(O,"handle"))}}}J=null;delete K[S]}}})}for(J in K){break}if(!J){var P=s.data(O,"handle");if(P){P.elem=null}s.removeData(O,"events");s.removeData(O,"handle")}}},trigger:function(M,O,L,I){var K=M.type||M;if(!I){M=typeof M==="object"?M[l]?M:s.extend(s.Event(K),M):s.Event(K);if(K.indexOf("!")>=0){M.type=K=K.slice(0,-1);M.exclusive=true}if(!L){M.stopPropagation();if(this.global[K]){s.each(s.cache,function(){if(this.events&&this.events[K]){s.event.trigger(M,O,this.handle.elem)}})}}if(!L||L.nodeType==3||L.nodeType==8){return k}M.result=k;M.target=L;O=s.makeArray(O);O.unshift(M)}M.currentTarget=L;var N=s.data(L,"handle");if(N){N.apply(L,O)}if((!L[K]||(s.nodeName(L,"a")&&K=="click"))&&L["on"+K]&&L["on"+K].apply(L,O)===false){M.result=false}if(!I&&L[K]&&!M.isDefaultPrevented()&&!(s.nodeName(L,"a")&&K=="click")){this.triggered=true;try{L[K]()}catch(P){}}this.triggered=false;if(!M.isPropagationStopped()){var J=L.parentNode||L.ownerDocument;if(J){s.event.trigger(M,O,J,true)}}},handle:function(O){var N,I;O=arguments[0]=s.event.fix(O||p.event);O.currentTarget=this;var P=O.type.split(".");O.type=P.shift();N=!P.length&&!O.exclusive;var M=RegExp("(^|\\.)"+P.slice().sort().join(".*\\.")+"(\\.|$)");I=(s.data(this,"events")||{})[O.type];for(var K in I){var L=I[K];if(N||M.test(L.type)){O.handler=L;O.data=L.data;var J=L.apply(this,arguments);if(J!==k){O.result=J;if(J===false){O.preventDefault();O.stopPropagation()}}if(O.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(L){if(L[l]){return L}var J=L;L=s.Event(J);for(var K=this.props.length,N;K;){N=this.props[--K];L[N]=J[N]}if(!L.target){L.target=L.srcElement||document}if(L.target.nodeType==3){L.target=L.target.parentNode}if(!L.relatedTarget&&L.fromElement){L.relatedTarget=L.fromElement==L.target?L.toElement:L.fromElement}if(L.pageX==null&&L.clientX!=null){var M=document.documentElement,I=document.body;L.pageX=L.clientX+(M&&M.scrollLeft||I&&I.scrollLeft||0)-(M.clientLeft||0);L.pageY=L.clientY+(M&&M.scrollTop||I&&I.scrollTop||0)-(M.clientTop||0)}if(!L.which&&((L.charCode||L.charCode===0)?L.charCode:L.keyCode)){L.which=L.charCode||L.keyCode}if(!L.metaKey&&L.ctrlKey){L.metaKey=L.ctrlKey}if(!L.which&&L.button){L.which=(L.button&1?1:(L.button&2?3:(L.button&4?2:0)))}return L},proxy:function(J,I){I=I||function(){return J.apply(this,arguments)};I.guid=J.guid=J.guid||I.guid||this.guid++;return I},special:{ready:{setup:F,teardown:function(){}}},specialAll:{live:{setup:function(I,J){s.event.add(this,J[0],e)},teardown:function(K){if(K.length){var I=0,J=RegExp("(^|\\.)"+K[0]+"(\\.|$)");s.each((s.data(this,"events").live||{}),function(){if(J.test(this.type)){I++}});if(I<1){s.event.remove(this,K[0],e)}}}}}};s.Event=function(I){if(!this.preventDefault){return new s.Event(I)}if(I&&I.type){this.originalEvent=I;this.type=I.type}else{this.type=I}this.timeStamp=g();this[l]=true};function o(){return false}function y(){return true}s.Event.prototype={preventDefault:function(){this.isDefaultPrevented=y;var I=this.originalEvent;if(!I){return}if(I.preventDefault){I.preventDefault()}I.returnValue=false},stopPropagation:function(){this.isPropagationStopped=y;var I=this.originalEvent;if(!I){return}if(I.stopPropagation){I.stopPropagation()}I.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=y;this.stopPropagation()},isDefaultPrevented:o,isPropagationStopped:o,isImmediatePropagationStopped:o};var a=function(J){var I=J.relatedTarget;while(I&&I!=this){try{I=I.parentNode}catch(K){I=this}}if(I!=this){J.type=J.data;s.event.handle.apply(this,arguments)}};s.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(J,I){s.event.special[I]={setup:function(){s.event.add(this,J,a,I)},teardown:function(){s.event.remove(this,J,a)}}});s.fn.extend({bind:function(J,K,I){return J=="unload"?this.one(J,K,I):this.each(function(){s.event.add(this,J,I||K,I&&K)})},one:function(K,L,J){var I=s.event.proxy(J||L,function(M){s(this).unbind(M,I);return(J||L).apply(this,arguments)});return this.each(function(){s.event.add(this,K,I,J&&L)})},unbind:function(J,I){return this.each(function(){s.event.remove(this,J,I)})},trigger:function(I,J){return this.each(function(){s.event.trigger(I,J,this)})},triggerHandler:function(I,K){if(this[0]){var J=s.Event(I);J.preventDefault();J.stopPropagation();s.event.trigger(J,K,this[0]);return J.result}},toggle:function(K){var I=arguments,J=1;while(J<I.length){s.event.proxy(K,I[J++])}return this.click(s.event.proxy(K,function(L){this.lastToggle=(this.lastToggle||0)%J;L.preventDefault();return I[this.lastToggle++].apply(this,arguments)||false}))},hover:function(I,J){return this.mouseenter(I).mouseleave(J)},ready:function(I){F();if(s.isReady){I.call(document,s)}else{s.readyList.push(I)}return this},live:function(K,J){var I=s.event.proxy(J);I.guid+=this.selector+K;s(document).bind(m(K,this.selector),this.selector,I);return this},die:function(J,I){s(document).unbind(m(J,this.selector),I?{guid:I.guid+this.selector+J}:null);return this}});function e(L){var I=RegExp("(^|\\.)"+L.type+"(\\.|$)"),K=true,J=[];s.each(s.data(this,"events").live||[],function(M,N){if(I.test(N.type)){var O=s(L.target).closest(N.data)[0];if(O){J.push({elem:O,fn:N})}}});J.sort(function(N,M){return s.data(N.elem,"closest")-s.data(M.elem,"closest")});s.each(J,function(){if(this.fn.call(this.elem,L,this.fn.data)===false){return(K=false)}});return K}function m(J,I){return["live",J,I.replace(/\./g,"`").replace(/ /g,"|")].join(".")}s.extend({isReady:false,readyList:[],ready:function(){if(!s.isReady){s.isReady=true;if(s.readyList){s.each(s.readyList,function(){this.call(document,s)});s.readyList=null}s(document).triggerHandler("ready")}}});var B=false;function F(){if(B){return}B=true;if(document.addEventListener){document.addEventListener("DOMContentLoaded",function(){document.removeEventListener("DOMContentLoaded",arguments.callee,false);s.ready()},false)}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);s.ready()}});if(document.documentElement.doScroll&&p==p.top){(function(){if(s.isReady){return}try{document.documentElement.doScroll("left")}catch(I){setTimeout(arguments.callee,0);return}s.ready()})()}}}s.event.add(p,"load",s.ready)}s.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(J,I){s.fn[I]=function(K){return K?this.bind(I,K):this.trigger(I)}});s(p).bind("unload",function(){for(var I in s.cache){if(I!=1&&s.cache[I].handle){s.event.remove(s.cache[I].handle.elem)}}});(function(){s.support={};var J=document.documentElement,K=document.createElement("script"),O=document.createElement("div"),N="script"+(new Date).getTime();O.style.display="none";O.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 L=O.getElementsByTagName("*"),I=O.getElementsByTagName("a")[0];if(!L||!L.length||!I){return}s.support={leadingWhitespace:O.firstChild.nodeType==3,tbody:!O.getElementsByTagName("tbody").length,objectAll:!!O.getElementsByTagName("object")[0].getElementsByTagName("*").length,htmlSerialize:!!O.getElementsByTagName("link").length,style:/red/.test(I.getAttribute("style")),hrefNormalized:I.getAttribute("href")==="/a",opacity:I.style.opacity==="0.5",cssFloat:!!I.style.cssFloat,scriptEval:false,noCloneEvent:true,boxModel:null};K.type="text/javascript";try{K.appendChild(document.createTextNode("window."+N+"=1;"))}catch(M){}J.insertBefore(K,J.firstChild);if(p[N]){s.support.scriptEval=true;delete p[N]}J.removeChild(K);if(O.attachEvent&&O.fireEvent){O.attachEvent("onclick",function(){s.support.noCloneEvent=false;O.detachEvent("onclick",arguments.callee)});O.cloneNode(true).fireEvent("onclick")}s(function(){var P=document.createElement("div");P.style.width=P.style.paddingLeft="1px";document.body.appendChild(P);s.boxModel=s.support.boxModel=P.offsetWidth===2;document.body.removeChild(P).style.display="none"})})();var A=s.support.cssFloat?"cssFloat":"styleFloat";s.props={"for":"htmlFor","class":"className","float":A,cssFloat:A,styleFloat:A,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",tabindex:"tabIndex"};s.fn.extend({_load:s.fn.load,load:function(K,N,O){if(typeof K!=="string"){return this._load(K)}var M=K.indexOf(" ");if(M>=0){var I=K.slice(M,K.length);K=K.slice(0,M)}var L="GET";if(N){if(s.isFunction(N)){O=N;N=null}else{if(typeof N==="object"){N=s.param(N);L="POST"}}}var J=this;s.ajax({url:K,type:L,dataType:"html",data:N,complete:function(Q,P){if(P=="success"||P=="notmodified"){J.html(I?s("<div/>").append(Q.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(I):Q.responseText)}if(O){J.each(O,[Q.responseText,P,Q])}}});return this},serialize:function(){return s.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?s.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(I,J){var K=s(this).val();return K==null?null:s.isArray(K)?s.map(K,function(M,L){return{name:J.name,value:M}}):{name:J.name,value:K}}).get()}});s.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(I,J){s.fn[J]=function(K){return this.bind(J,K)}});var v=g();s.extend({get:function(I,K,L,J){if(s.isFunction(K)){L=K;K=null}return s.ajax({type:"GET",url:I,data:K,success:L,dataType:J})},getScript:function(I,J){return s.get(I,null,J,"script")},getJSON:function(I,J,K){return s.get(I,J,K,"json")},post:function(I,K,L,J){if(s.isFunction(K)){L=K;K={}}return s.ajax({type:"POST",url:I,data:K,success:L,dataType:J})},ajaxSetup:function(I){s.extend(s.ajaxSettings,I)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return p.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(Q){Q=s.extend(true,Q,s.extend(true,{},s.ajaxSettings,Q));var aa,J=/=\?(&|$)/g,V,Z,K=Q.type.toUpperCase();if(Q.data&&Q.processData&&typeof Q.data!=="string"){Q.data=s.param(Q.data)}if(Q.dataType=="jsonp"){if(K=="GET"){if(!Q.url.match(J)){Q.url+=(Q.url.match(/\?/)?"&":"?")+(Q.jsonp||"callback")+"=?"}}else{if(!Q.data||!Q.data.match(J)){Q.data=(Q.data?Q.data+"&":"")+(Q.jsonp||"callback")+"=?"}}Q.dataType="json"}if(Q.dataType=="json"&&(Q.data&&Q.data.match(J)||Q.url.match(J))){aa="jsonp"+v++;if(Q.data){Q.data=(Q.data+"").replace(J,"="+aa+"$1")}Q.url=Q.url.replace(J,"="+aa+"$1");Q.dataType="script";p[aa]=function(ab){Z=ab;M();P();p[aa]=k;try{delete p[aa]}catch(ac){}if(L){L.removeChild(X)}}}if(Q.dataType=="script"&&Q.cache==null){Q.cache=false}if(Q.cache===false&&K=="GET"){var I=g();var Y=Q.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+I+"$2");Q.url=Y+((Y==Q.url)?(Q.url.match(/\?/)?"&":"?")+"_="+I:"")}if(Q.data&&K=="GET"){Q.url+=(Q.url.match(/\?/)?"&":"?")+Q.data;Q.data=null}if(Q.global&&!s.active++){s.event.trigger("ajaxStart")}var U=/^(\w+:)?\/\/([^\/?#]+)/.exec(Q.url);if(Q.dataType=="script"&&K=="GET"&&U&&(U[1]&&U[1]!=location.protocol||U[2]!=location.host)){var L=document.getElementsByTagName("head")[0];var X=document.createElement("script");X.src=Q.url;if(Q.scriptCharset){X.charset=Q.scriptCharset}if(!aa){var S=false;X.onload=X.onreadystatechange=function(){if(!S&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){S=true;M();P();X.onload=X.onreadystatechange=null;L.removeChild(X)}}}L.appendChild(X);return k}var O=false;var N=Q.xhr();if(Q.username){N.open(K,Q.url,Q.async,Q.username,Q.password)}else{N.open(K,Q.url,Q.async)}try{if(Q.data){N.setRequestHeader("Content-Type",Q.contentType)}if(Q.ifModified){N.setRequestHeader("If-Modified-Since",s.lastModified[Q.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}N.setRequestHeader("X-Requested-With","XMLHttpRequest");N.setRequestHeader("Accept",Q.dataType&&Q.accepts[Q.dataType]?Q.accepts[Q.dataType]+", */*":Q.accepts._default)}catch(W){}if(Q.beforeSend&&Q.beforeSend(N,Q)===false){if(Q.global&&!--s.active){s.event.trigger("ajaxStop")}N.abort();return false}if(Q.global){s.event.trigger("ajaxSend",[N,Q])}var R=function(ab){if(N.readyState==0){if(T){clearInterval(T);T=null;if(Q.global&&!--s.active){s.event.trigger("ajaxStop")}}}else{if(!O&&N&&(N.readyState==4||ab=="timeout")){O=true;if(T){clearInterval(T);T=null}V=ab=="timeout"?"timeout":!s.httpSuccess(N)?"error":Q.ifModified&&s.httpNotModified(N,Q.url)?"notmodified":"success";if(V=="success"){try{Z=s.httpData(N,Q.dataType,Q)}catch(ad){V="parsererror"}}if(V=="success"){var ac;try{ac=N.getResponseHeader("Last-Modified")}catch(ad){}if(Q.ifModified&&ac){s.lastModified[Q.url]=ac}if(!aa){M()}}else{s.handleError(Q,N,V)}P();if(ab){N.abort()}if(Q.async){N=null}}}};if(Q.async){var T=setInterval(R,13);if(Q.timeout>0){setTimeout(function(){if(N&&!O){R("timeout")}},Q.timeout)}}try{N.send(Q.data)}catch(W){s.handleError(Q,N,null,W)}if(!Q.async){R()}function M(){if(Q.success){Q.success(Z,V)}if(Q.global){s.event.trigger("ajaxSuccess",[N,Q])}}function P(){if(Q.complete){Q.complete(N,V)}if(Q.global){s.event.trigger("ajaxComplete",[N,Q])}if(Q.global&&!--s.active){s.event.trigger("ajaxStop")}}return N},handleError:function(J,L,I,K){if(J.error){J.error(L,I,K)}if(J.global){s.event.trigger("ajaxError",[L,J,K])}},active:0,httpSuccess:function(J){try{return !J.status&&location.protocol=="file:"||(J.status>=200&&J.status<300)||J.status==304||J.status==1223}catch(I){}return false},httpNotModified:function(K,I){try{var L=K.getResponseHeader("Last-Modified");return K.status==304||L==s.lastModified[I]}catch(J){}return false},httpData:function(N,L,K){var J=N.getResponseHeader("content-type"),I=L=="xml"||!L&&J&&J.indexOf("xml")>=0,M=I?N.responseXML:N.responseText;if(I&&M.documentElement.tagName=="parsererror"){throw"parsererror"}if(K&&K.dataFilter){M=K.dataFilter(M,L)}if(typeof M==="string"){if(L=="script"){s.globalEval(M)}if(L=="json"){M=p["eval"]("("+M+")")}}return M},param:function(I){var K=[];function L(M,N){K[K.length]=encodeURIComponent(M)+"="+encodeURIComponent(N)}if(s.isArray(I)||I.jquery){s.each(I,function(){L(this.name,this.value)})}else{for(var J in I){if(s.isArray(I[J])){s.each(I[J],function(){L(J,this)})}else{L(J,s.isFunction(I[J])?I[J]():I[J])}}}return K.join("&").replace(/%20/g,"+")}});var q={},r,f=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function x(J,I){var K={};s.each(f.concat.apply([],f.slice(0,I)),function(){K[this]=J});return K}s.fn.extend({show:function(N,P){if(N){return this.animate(x("show",3),N,P)}else{for(var L=0,J=this.length;L<J;L++){var I=s.data(this[L],"olddisplay");this[L].style.display=I||"";if(s.css(this[L],"display")==="none"){var K=this[L].tagName,O;if(q[K]){O=q[K]}else{var M=s("<"+K+" />").appendTo("body");O=M.css("display");if(O==="none"){O="block"}M.remove();q[K]=O}s.data(this[L],"olddisplay",O)}}for(var L=0,J=this.length;L<J;L++){this[L].style.display=s.data(this[L],"olddisplay")||""}return this}},hide:function(L,M){if(L){return this.animate(x("hide",3),L,M)}else{for(var K=0,J=this.length;K<J;K++){var I=s.data(this[K],"olddisplay");if(!I&&I!=="none"){s.data(this[K],"olddisplay",s.css(this[K],"display"))}}for(var K=0,J=this.length;K<J;K++){this[K].style.display="none"}return this}},_toggle:s.fn.toggle,toggle:function(K,J){var I=typeof K==="boolean";return s.isFunction(K)&&s.isFunction(J)?this._toggle.apply(this,arguments):K==null||I?this.each(function(){var L=I?K:s(this).is(":hidden");s(this)[L?"show":"hide"]()}):this.animate(x("toggle",3),K,J)},fadeTo:function(I,K,J){return this.animate({opacity:K},I,J)},animate:function(M,J,L,K){var I=s.speed(J,L,K);return this[I.queue===false?"each":"queue"](function(){var O=s.extend({},I),Q,P=this.nodeType==1&&s(this).is(":hidden"),N=this;for(Q in M){if(M[Q]=="hide"&&P||M[Q]=="show"&&!P){return O.complete.call(this)}if((Q=="height"||Q=="width")&&this.style){O.display=s.css(this,"display");O.overflow=this.style.overflow}}if(O.overflow!=null){this.style.overflow="hidden"}O.curAnim=s.extend({},M);s.each(M,function(S,W){var V=new s.fx(N,O,S);if(/toggle|show|hide/.test(W)){V[W=="toggle"?P?"show":"hide":W](M)}else{var U=W.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),X=V.cur(true)||0;if(U){var R=parseFloat(U[2]),T=U[3]||"px";if(T!="px"){N.style[S]=(R||1)+T;X=((R||1)/V.cur(true))*X;N.style[S]=X+T}if(U[1]){R=((U[1]=="-="?-1:1)*R)+X}V.custom(X,R,T)}else{V.custom(X,W,"")}}});return true})},stop:function(J,I){var K=s.timers;if(J){this.queue([])}this.each(function(){for(var L=K.length-1;L>=0;L--){if(K[L].elem==this){if(I){K[L](true)}K.splice(L,1)}}});if(!I){this.dequeue()}return this}});s.each({slideDown:x("show",1),slideUp:x("hide",1),slideToggle:x("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(I,J){s.fn[I]=function(K,L){return this.animate(J,K,L)}});s.extend({speed:function(K,L,J){var I=typeof K==="object"?K:{complete:J||!J&&L||s.isFunction(K)&&K,duration:K,easing:J&&L||L&&!s.isFunction(L)&&L};I.duration=s.fx.off?0:typeof I.duration==="number"?I.duration:s.fx.speeds[I.duration]||s.fx.speeds._default;I.old=I.complete;I.complete=function(){if(I.queue!==false){s(this).dequeue()}if(s.isFunction(I.old)){I.old.call(this)}};return I},easing:{linear:function(K,L,I,J){return I+J*K},swing:function(K,L,I,J){return((-Math.cos(K*Math.PI)/2)+0.5)*J+I}},timers:[],fx:function(J,I,K){this.options=I;this.elem=J;this.prop=K;if(!I.orig){I.orig={}}}});s.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(s.fx.step[this.prop]||s.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(J){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var I=parseFloat(s.css(this.elem,this.prop,J));return I&&I>-10000?I:parseFloat(s.curCSS(this.elem,this.prop))||0},custom:function(M,L,K){this.startTime=g();this.start=M;this.end=L;this.unit=K||this.unit||"px";this.now=this.start;this.pos=this.state=0;var I=this;function J(N){return I.step(N)}J.elem=this.elem;if(J()&&s.timers.push(J)&&!r){r=setInterval(function(){var O=s.timers;for(var N=0;N<O.length;N++){if(!O[N]()){O.splice(N--,1)}}if(!O.length){clearInterval(r);r=k}},13)}},show:function(){this.options.orig[this.prop]=s.attr(this.elem.style,this.prop);this.options.show=true;this.custom(this.prop=="width"||this.prop=="height"?1:0,this.cur());s(this.elem).show()},hide:function(){this.options.orig[this.prop]=s.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0)},step:function(L){var K=g();if(L||K>=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var I=true;for(var J in this.options.curAnim){if(this.options.curAnim[J]!==true){I=false}}if(I){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(s.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){s(this.elem).hide()}if(this.options.hide||this.options.show){for(var M in this.options.curAnim){s.attr(this.elem.style,M,this.options.orig[M])}}this.options.complete.call(this.elem)}return false}else{var N=K-this.startTime;this.state=N/this.options.duration;this.pos=s.easing[this.options.easing||(s.easing.swing?"swing":"linear")](this.state,N,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};s.extend(s.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(I){s.attr(I.elem.style,"opacity",I.now)},_default:function(I){if(I.elem.style&&I.elem.style[I.prop]!=null){I.elem.style[I.prop]=I.now+I.unit}else{I.elem[I.prop]=I.now}}}});if(document.documentElement.getBoundingClientRect){s.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return s.offset.bodyOffset(this[0])}var K=this[0].getBoundingClientRect(),N=this[0].ownerDocument,J=N.body,I=N.documentElement,P=I.clientTop||J.clientTop||0,O=I.clientLeft||J.clientLeft||0,M=K.top+(self.pageYOffset||s.boxModel&&I.scrollTop||J.scrollTop)-P,L=K.left+(self.pageXOffset||s.boxModel&&I.scrollLeft||J.scrollLeft)-O;return{top:M,left:L}}}else{s.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return s.offset.bodyOffset(this[0])}s.offset.initialized||s.offset.initialize();var N=this[0],K=N.offsetParent,J=N,S=N.ownerDocument,Q,L=S.documentElement,O=S.body,P=S.defaultView,I=P.getComputedStyle(N,null),R=N.offsetTop,M=N.offsetLeft;while((N=N.parentNode)&&N!==O&&N!==L){Q=P.getComputedStyle(N,null);R-=N.scrollTop,M-=N.scrollLeft;if(N===K){R+=N.offsetTop,M+=N.offsetLeft;if(s.offset.doesNotAddBorder&&!(s.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(N.tagName))){R+=parseInt(Q.borderTopWidth,10)||0,M+=parseInt(Q.borderLeftWidth,10)||0}J=K,K=N.offsetParent}if(s.offset.subtractsBorderForOverflowNotVisible&&Q.overflow!=="visible"){R+=parseInt(Q.borderTopWidth,10)||0,M+=parseInt(Q.borderLeftWidth,10)||0}I=Q}if(I.position==="relative"||I.position==="static"){R+=O.offsetTop,M+=O.offsetLeft}if(I.position==="fixed"){R+=Math.max(L.scrollTop,O.scrollTop),M+=Math.max(L.scrollLeft,O.scrollLeft)}return{top:R,left:M}}}s.offset={initialize:function(){if(this.initialized){return}var P=document.body,J=document.createElement("div"),L,K,R,M,Q,I,N=P.style.marginTop,O='<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>';Q={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(I in Q){J.style[I]=Q[I]}J.innerHTML=O;P.insertBefore(J,P.firstChild);L=J.firstChild,K=L.firstChild,M=L.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(K.offsetTop!==5);this.doesAddBorderForTableAndCells=(M.offsetTop===5);L.style.overflow="hidden",L.style.position="relative";this.subtractsBorderForOverflowNotVisible=(K.offsetTop===-5);P.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(P.offsetTop===0);P.style.marginTop=N;P.removeChild(J);this.initialized=true},bodyOffset:function(I){s.offset.initialized||s.offset.initialize();var K=I.offsetTop,J=I.offsetLeft;if(s.offset.doesNotIncludeMarginInBodyOffset){K+=parseInt(s.curCSS(I,"marginTop",true),10)||0,J+=parseInt(s.curCSS(I,"marginLeft",true),10)||0}return{top:K,left:J}}};s.fn.extend({position:function(){var M=0,L=0,J;if(this[0]){var K=this.offsetParent(),N=this.offset(),I=/^body|html$/i.test(K[0].tagName)?{top:0,left:0}:K.offset();N.top-=n(this,"marginTop");N.left-=n(this,"marginLeft");I.top+=n(K,"borderTopWidth");I.left+=n(K,"borderLeftWidth");J={top:N.top-I.top,left:N.left-I.left}}return J},offsetParent:function(){var I=this[0].offsetParent||document.body;while(I&&(!/^body|html$/i.test(I.tagName)&&s.css(I,"position")=="static")){I=I.offsetParent}return s(I)}});s.each(["Left","Top"],function(J,I){var K="scroll"+I;s.fn[K]=function(L){if(!this[0]){return null}return L!==k?this.each(function(){this==p||this==document?p.scrollTo(!J?L:s(p).scrollLeft(),J?L:s(p).scrollTop()):this[K]=L}):this[0]==p||this[0]==document?self[J?"pageYOffset":"pageXOffset"]||s.boxModel&&document.documentElement[K]||document.body[K]:this[0][K]}});s.each(["Height","Width"],function(M,K){var I=M?"Left":"Top",L=M?"Right":"Bottom",J=K.toLowerCase();s.fn["inner"+K]=function(){return this[0]?s.css(this[0],J,false,"padding"):null};s.fn["outer"+K]=function(O){return this[0]?s.css(this[0],J,false,O?"margin":"border"):null};var N=K.toLowerCase();s.fn[N]=function(O){return this[0]==p?document.compatMode=="CSS1Compat"&&document.documentElement["client"+K]||document.body["client"+K]:this[0]==document?Math.max(document.documentElement["client"+K],document.body["scroll"+K],document.documentElement["scroll"+K],document.body["offset"+K],document.documentElement["offset"+K]):O===k?(this.length?s.css(this[0],N):null):this.css(N,typeof O==="string"?O:O+"px")}})})();intDetailPhotoCounter=-1;intDetailPhotoTimeout=7000;$(document).ready(function(){$(".pricerow .rowsubtitleextrainfo").click(function(a){objExtraInfo=$(this).parent().find(".extrainfo");if(objExtraInfo.css("display")=="none"){objExtraInfo.slideDown(200);$(".plusminus",this).attr("class","plusminus minus")}else{$(".plusminus",this).attr("class","plusminus plus");objExtraInfo.slideUp(200)}a.stopPropagation()});if($(".photogroups .photogroup").length>0){$(".photogroups .photogroup>.title").each(function(a){$("DIV.photogroupbuttons").append('<a class="photogroupbutton">'+$(this).html()+"</a>")});$(".photogroups").each(function(a){objPhoto=$(".photogroup:first-child .photo:first",this);strImage=$("a.largephotohidden",objPhoto).attr("href");strTitle=$(".title",objPhoto).html();$("img",objPhoto).attr("class","selected");$(this).parent().find(".largephoto .photo").html('<img src="'+strImage+'" alt="" /><div class="title">'+strTitle+"</div>")});$(".photogroupbuttons .photogroupbutton").click(function(){intIndex=$(this).prevAll().length;detailActivatePhotogroup(intIndex)});if($(".photogroupbuttons .photogroupbutton").length==4){$(".photogroupbuttons .photogroupbutton:last-child").attr("class","photogroupbutton lastbutton")}else{$(".photogroupbuttons .photogroupbutton:last-child").after('<div class="endseparator"><!----></div>')}$(".photogroupbuttons .photogroupbutton:first-child").attr("class","photogroupbutton firstbutton");$(".photogroup .photo").click(function(){if($("img",this).attr("class")=="selected"){return}$(".photogroup .photo .selected").removeAttr("class");strTitle=$(".title",this).html();strImage=$("a.largephotohidden",this).attr("href");$("img",this).attr("class","selected");objLarge=$(this).parent().parent().prevAll(".largephoto");$(".title",objLarge).slideUp(100,function(){$("img",objLarge).fadeOut(200,function(){$(this).attr("src",strImage);if(strTitle!=""){$(".title",objLarge).html(strTitle).slideDown(400)}}).fadeIn(100)})});$(".photogroup").mouseover(function(){if(intDetailPhotoCounter>0){clearTimeout(intDetailPhotoCounter);intDetailPhotoCounter=-1}}).mouseout(function(){if(intDetailPhotoCounter==-1){intDetailPhotoCounter=setTimeout("detailPhotoNext()",intDetailPhotoTimeout)}})}$("A[href=#themes]").click(function(a){intTop=$("A[name=themes]").offset().top;if(intTop>0){$("html").animate({scrollTop:intTop},200);a.preventDefault()}});$(".block.menu div > ul > li > a").click(function(){$(".block.menu div > ul > li > a").removeClass("selected");$(this).addClass("selected")});detailActivatePhotogroup(0);intDetailPhotoCounter=setTimeout("detailPhotoNext()",intDetailPhotoTimeout)});function detailActivatePhotogroup(a){$(".photogroupbuttons .photogroupbutton:not(eq("+a+"))").removeClass("selected");$(".photogroupbuttons .photogroupbutton:eq("+a+")").addClass("selected");$(".photogroups .photogroup:not(eq("+a+"))").hide();$(".photogroups .photogroup:eq("+a+")").show();if(intDetailPhotoCounter>0){clearTimeout(intDetailPhotoCounter);intDetailPhotoCounter=setTimeout("detailPhotoNext()",intDetailPhotoTimeout)}}function detailPhotoNext(){objSelected=$(".photogroup .photo .selected");objPhotoGroup=objSelected.parent().parent();blnDisableTimer=false;if(objPhotoGroup.css("display")=="none"){objPhotoGroup=objPhotoGroup.parent().find(".photogroup:visible");objNext=objPhotoGroup.find(".photo:eq(0)")}else{objNext=objSelected.parent().next();if($(".photo",objPhotoGroup).length<=1){intDetailPhotoCounter=-1;return}if(objNext.length==0){blnDisableTimer=true;intIndex=objPhotoGroup.prevAll().length;intIndex++;if($(".photogroups .photogroup:eq("+intIndex+")").length==0){intIndex=0}detailActivatePhotogroup(intIndex);objPhotoGroup=$(".photogroups .photogroup:eq("+intIndex+")");objNext=objPhotoGroup.find(".photo:eq(0)")}}objSelected.removeAttr("class");strTitle=$(".title",objNext).html();strImage=$("a.largephotohidden",objNext).attr("href");$("img",objNext).attr("class","selected");objLarge=$(objNext).parent().parent().prevAll(".largephoto");$(".title",objLarge).slideUp(100,function(){$("img",objLarge).fadeOut(200,function(){$(this).attr("src",strImage);if(strTitle!=""){$(".title",objLarge).html(strTitle).slideDown(400)}}).fadeIn(100)});if(!blnDisableTimer){intDetailPhotoCounter=setTimeout("detailPhotoNext()",intDetailPhotoTimeout)}}function openGoogleMap(a){alert("Function (openGoogleMap) should not be used anymore")}var strDetailUrl;function dtGetPegasusAllocation(b,a){strDetailUrl=a;ajaxLoadRequest(b,dtShowAllocation)}function dtShowAllocation(g){if(g){var a=g.split(";");var e;var b=new Array();var f=new Array();for(e=0;e<a.length;e++){f=a[e].split(":");b[f[0]]=f[1]}if(b.available!=0){if(b.pricechanged!=0){document.getElementById("subloadingmessagechanged").innerHTML="<b>Let op!</b><br/>De door u gezochte aanbieding is niet meer beschikbaar. U heeft de mogelijkheid om uw verblijf te reserveren voor<br/>de n&uacute; getoonde prijs";document.getElementById("subloadingmessagechecking").style.color="#CCCCCC";setTimeout("dtShowChangedPrice('"+b.price+"','"+b.breakfastincluded+"')",5000)}else{dtShowPriceDetails()}}else{document.getElementById("subloadingmessagechecking").innerHTML="De door u gezochte aanbieding is voor deze periode helaas niet meer beschikbaar. Door op onderstaande link te klikken kunt terug gaan naar de hotelpagina en daar een andere datum kiezen. Of u kunt contact opnemen met ons servicecentre.<br/><div align='center'><a href='"+strDetailUrl+"'>[Terug naar hotelpagina]</a></div>"}}}function dtShowChangedPrice(e,g){document.getElementById("price").innerHTML="&euro; "+e;var b=document.getElementById("condition").innerHTML;var f,a;if(g==1){f="excl";a="incl"}else{f="incl";a="excl"}document.getElementById("condition").innerHTML=b.replace(f,a);dtShowPriceDetails()}function dtShowPriceDetails(){document.getElementById("loadingmessage").style.display="none";document.getElementById("divdetail").style.display=""}function getGaLinkerUrl(b,a){if(a==undefined){if(typeof _gaq!="undefined"&&typeof _gaq=="object"){a=_gaq}else{window.open(b,"bookwindow","width=1010, height=700, location=no, status=yes, resizable=yes, menubar=no, directories=no, scrollbars=yes")}}else{if(typeof a!=undefined&&typeof a=="object"){}}a.push(function(){var g=_gat._getTrackerByName("");var f=g._getLinkerUrl(b);if(typeof g!=undefined){var f=g._getLinkerUrl(b)}else{var f="&"}var e=f.substr(b.length);var h=b+escape(e);window.open(h,"bookwindow","width=1010,height=700,location=no,status=yes,resizable=yes,menubar=no,directories=no,scrollbars=yes")});return true}function initializeMap(h,k,f){var e=new google.maps.LatLng(k,f);var b={zoom:11,minZoom:2,panControl:true,zoomControl:true,scaleControl:false,center:e,mapTypeId:google.maps.MapTypeId.ROADMAP,scrollwheel:false};var g=new google.maps.Map(document.getElementById("map_canvas"),b);var a=new google.maps.Marker({position:e,map:g,title:h});google.maps.event.addListener(a,"click",function(){infowindow.open(g,a)})}$(document).ready(function(){$(".elemlink").click(function(a){if(typeof($(this).attr("onclick"))=="function"){a.stopPropagation();return false}objLink=$("a",this);if(objLink.length>0){strLink=objLink.attr("href");blnInternalLink=(strLink.substring(0,1)=="#");strTarget=objLink.attr("target");if((typeof(strTarget)=="undefined")||(strTarget=="")){strTarget="_self"}if((strTarget=="_self")&&blnInternalLink){if(strLink!="#"){if($("A[name="+strLink.substring(1)+"]").length>0){intTop=$("A[name="+strLink.substring(1)+"]").offset().top}else{intTop=$(strLink).offset().top}}else{intTop=0}$("html").animate({scrollTop:intTop},200)}else{switch(strTarget){case"_self":self.location.href=strLink;break;case"_top":top.location.href=strLink;break;case"_parent":parent.location.href=strLink;break;case"_new":case"_blank":window.open(strLink,"_new");break;default:if(typeof(top.frames[strTarget])!="undefined"){top.frames[strTarget].location.href=strLink}else{document.location.href=strLink}break}}a.stopPropagation()}}).not(".nolinkunderline").mouseover(function(a){$("a:first",this).css("text-decoration","underline")}).mouseout(function(a){$("a:first",this).css("text-decoration","")});$(".elemlink a").click(function(a){a.preventDefault()})});var objListingsRotating=new Object();$(document).ready(function(){$(".listing.rotating").each(function(intIndex){objRotatingItems=$(".itemcontainer .item",this);if(objRotatingItems.length>1){objListing=new Object();objListing.intListingsRotatingImagesHeight=$(".image IMG",this).eq(0).attr("height");objListing.intListingsRotatingItemHeight=parseInt($(".item",this).outerHeight());objListing.intListingsRotatingItemCount=$(".item",this).length;objListing.intListingsRotatingCurItem=0;objListing.intIndex=intIndex;$(this).data("index",intIndex);$(this).mouseover(function(e){objListing=objListingsRotating["listing"+$(this).data("index")];objListing.blnListingsRotatingMouse=true}).mouseout(function(e){objListing=objListingsRotating["listing"+$(this).data("index")];objListing.blnListingsRotatingMouse=false});$(".item",this).mouseover(function(e){objListing=objListingsRotating["listing"+$(this).parents(".listing.rotating").data("index")];intItemIndex=$(this).prevAll().length;objListing.intListingsRotatingCurItem=intItemIndex;objListingEl=$(".listing.rotating:eq("+objListing.intIndex+")");$(".item",objListingEl).attr("class","item elemlink");$(".item",objListingEl).eq(intItemIndex).attr("class","item selected elemlink");$(".imagecontainer",objListingEl).css("top",(-objListing.intListingsRotatingImagesHeight*intItemIndex)+"px");$(".arrow",objListingEl).css("top",(objListing.intListingsRotatingItemHeight*intItemIndex)+"px")});eval("objFunc = function() { proceedListingsRotatingImage("+objListing.intIndex+"); }");objListingsRotating["listing"+intIndex]=objListing;setInterval(objFunc,5000)}})});function proceedListingsRotatingImage(a){objListing=objListingsRotating["listing"+a];if(objListing.blnListingsRotatingMouse){return}objListing.intListingsRotatingCurItem++;if(objListing.intListingsRotatingCurItem>=objListing.intListingsRotatingItemCount){objListing.intListingsRotatingCurItem=0}intItemIndex=objListing.intListingsRotatingCurItem;objListingEl=$(".listing.rotating:eq("+objListing.intIndex+")");$(".item",objListingEl).attr("class","item elemlink");$(".item",objListingEl).eq(intItemIndex).attr("class","item selected elemlink");$(".imagecontainer",objListingEl).css("top",(-objListing.intListingsRotatingImagesHeight*intItemIndex)+"px");$(".arrow",objListingEl).css("top",(objListing.intListingsRotatingItemHeight*intItemIndex)+"px")}function getWidthOfChildren(b){var a=0;$(b).children().each(function(){a+=$(this).outerWidth(true)});return a}function makeChildrenUnselectable(a){alert("function makeChildrenUnselectable should no longer be here, please email to info@weekendjeweg.nl");$(a).children().each(function(){this.onselectstart=function(){return false};$(this).attr("unselectable","on").css("-moz-user-select","none")})}function openCalendarNew(a){popupShow(false,a,false,400)}function checkCalenderNewMouse(){if(!blnMouseOverPopup){closeCalendarNew()}}function closeCalendarNew(){popupHide()}function openWindow(f,b,e){alert("function openWindow should no longer be here, please email to info@weekendjeweg.nl");var a=b+e;window.open(f,a,"height="+b+",width="+e+",location=no,menubar=no,status=no,toolbar=no,resizable=yes");return true}function trackPageview(b,a){if(a==undefined){if(typeof _gaq!="undefined"&&typeof _gaq=="object"){a=_gaq}else{return false}}else{if(typeof a!=undefined&&typeof a=="object"){}else{return false}}if(b.charAt(0)=="/"){a.push(["_trackPageview",b])}else{var e=document.location.pathname+document.location.search;if(e.split("#").length>1){e=e.split("#").join("?")}if(e.split("?").length>1){e+="&"+b}else{e+="?"+b}a.push(["_trackPageview",e])}return true}function trackEvent(f,g,e,a,b){if(b==undefined){if(typeof _gaq!="undefined"&&typeof _gaq=="object"){b=_gaq}else{return false}}else{if(typeof b!=undefined&&typeof b=="object"){}else{return false}}b.push(["_trackEvent",f,g,e,a]);return true}function setCookie(e,g,b,h,f,a){h="/";document.cookie=e+"="+escape(g)+((b)?"; expires="+b.toGMTString():"")+((h)?"; path="+h:"")+((f)?"; domain="+f:"")+((a)?"; secure":"");return true}function getCookie(b){var a=document.cookie;if(!a){return}var e=b+"=";var g=a.indexOf("; "+e);if(g==-1){g=a.indexOf(e);if(g!=0){return null}}else{g+=2}var f=a.indexOf(";",g);if(f==-1){f=a.length}return unescape(a.substring(g+e.length,f))}function deleteCookie(a,e,b){e="/";if(getCookie(a)){document.cookie=a+"="+((e)?"; path="+e:"")+((b)?"; domain="+b:"")+"; expires=Thu, 01-Jan-70 00:00:01 GMT"}}function fancy_alert(e,b,a){alert("function fancy_alert should no longer be here, please email to info@weekendjeweg.nl")}function urlToJs(a){alert("function urlToJs should no longer be here, please email to info@weekendjeweg.nl");return a.replace("&amp;","&")}var ajaxIframeObject;function ajaxRequest(e){alert("function ajaxRequest should no longer be here, please email to info@weekendjeweg.nl");if(!document.createElement){return true}if(!ajaxIframeObject&&document.createElement){try{var a=document.createElement("iframe");a.setAttribute("id","ajaxFrame");a.style.border="0px";a.style.width="800px";a.style.height="400px";ajaxIframeObject=document.body.appendChild(a);if(document.frames){ajaxIframeObject=document.frames.ajaxFrame}}catch(b){iframeHTML='<iframe id="ajaxFrame" style="';iframeHTML+="border:0px;";iframeHTML+="width: 0px;";iframeHTML+="height: 0px;";iframeHTML+='"></iframe>';document.body.innerHTML+=iframeHTML;ajaxIframeObject=new Object();ajaxIframeObject.document=new Object();ajaxIframeObject.document.location=new Object();ajaxIframeObject.document.location.iframe=document.getElementById("ajaxFrame");ajaxIframeObject.document.location.replace=function(f){this.iframe.src=f}}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!ajaxIframeObject.contentDocument){setTimeout("ajaxRequest('"+e+"')",10);return false}if(ajaxIframeObject.contentDocument){IFrameDoc=ajaxIframeObject.contentDocument}else{if(ajaxIframeObject.contentWindow){IFrameDoc=ajaxIframeObject.contentWindow.document}else{if(ajaxIframeObject.document){IFrameDoc=ajaxIframeObject.document}else{return true}}}if(IFrameDoc.location.replace){IFrameDoc.location.href=e}else{IFrameDoc.location.href=e}}function autoFitWindow(){alert("function autoFitWindow should no longer be here, please email to info@weekendjeweg.nl");if(self.scrollWidth){intWidth=self.scrollWidth;intHeight=self.scrollHeight}else{if(document.documentElement&&document.documentElement.scrollWidth){intWidth=document.documentElement.scrollWidth;intHeight=document.documentElement.scrollHeight}else{if(document.body){intWidth=document.body.scrollWidth;intHeight=document.body.scrollHeight}}}if(window.offsetHeight){intWidth+=window.offsetWidth-window.clientWidth;intHeight+=window.offsetHeight-window.clientHeight}else{if(window.document&&window.document.offsetHeight){intWidth+=window.document.offsetWidth-window.document.clientWidth;intHeight+=window.document.offsetHeight-window.document.clientHeight}else{if(window.document.documentElement&&window.document.documentElement.offsetHeight){intWidth+=window.document.documentElement.offsetWidth-window.document.documentElement.clientWidth;intHeight+=window.document.documentElement.offsetHeight-window.document.documentElement.clientHeight}}}window.resizeTo(intWidth+6,intHeight+106)}var TB_Ajax_IFrame_Count=0;var TB_Ajax_Request_Stack=new Array();function TB_Ajax_Request(){this.intRequestId=TB_Ajax_Request_Stack.length;this.objRequest=false;this.objIFrame=false;this.blnIFrame=false;this.blnLoaded=false;this.objCallback=false;this.arrCallbackArgs=new Array();this.strData="";this.get=TB_Ajax_Request_Get;this.create=TB_Ajax_Request_Create;this.useIFrame=TB_Ajax_Request_UseIFrame;this.checkState=TB_Ajax_Request_CheckState;this.setCallback=TB_Ajax_Request_SetCallback;this.doCallback=TB_Ajax_Request_DoCallback;this.IFrameLoaded=TB_Ajax_Request_IFrameLoaded;TB_Ajax_Request_Stack[this.intRequestId]=this}function TB_Ajax_Request_UseIFrame(){this.blnIFrame=true}function TB_Ajax_Request_SetCallback(b){this.objCallback=b;for(var a=1;a<arguments.length;a++){this.arrCallbackArgs[this.arrCallbackArgs.length]=arguments[a]}}function TB_Ajax_Request_DoCallback(){strCallback="this.objCallback(this.strData";for(var i=0;i<this.arrCallbackArgs.length;i++){strCallback+=",this.arrCallbackArgs["+i+"]"}strCallback+=")";eval(strCallback)}function TB_Ajax_Request_IFrameLoaded(){alert("function TB_Ajax_Request_IFrameLoaded should no longer be here, please email to info@weekendjeweg.nl");this.blnLoaded=true;if(this.objIFrame.document){this.strData=this.objIFrame.document.getElementsByTagName("body")[0].innerHTML}else{strData=this.objIFrame.contentDocument.getElementsByTagName("body")[0].innerHTML}this.doCallback()}function TB_Ajax_Request_CheckState(){if(this.objRequest.readyState!=4){return}this.blnLoaded=true;this.strData=this.objRequest.responseText;delete this.objRequest;this.doCallback()}function TB_Ajax_Request_Get(a){a+=(a.indexOf("?")!=-1?"&":"?")+"TB_AJAX_REQUEST_ID="+this.intRequestId;if(this.blnIFrame==true){a+="&TB_AJAX_REQUEST_IFRAME=1";if(this.objIFrame.document){this.objIFrame.document.location.href=a}else{this.objIFrame.src=a}}else{this.objRequest.onreadystatechange=new Function("TB_Ajax_Request_Stack["+this.intRequestId+"].checkState();");this.objRequest.open("GET",a);this.objRequest.send(a.substr(a.indexOf("?")+1))}}function TB_Ajax_Request_Create(){if(this.blnIFrame==false){try{this.objRequest=new XMLHttpRequest()}catch(b){try{this.objRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(b){try{this.objRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(b){this.useIFrame();this.create()}}}}else{if(!document.createElement){return false}try{this.objIFrame=document.createElement("iframe");this.objIFrame.setAttribute("id","TB_AJAX_IFRAME_OBJECT_"+TB_Ajax_IFrame_Count);this.objIFrame.style.border="0px";this.objIFrame.style.height="0px";this.objIFrame.style.width="0px";this.objIFrame=document.body.appendChild(this.objIFrame);if(document.frames){this.objIFrame=document.frames["TB_AJAX_IFRAME_OBJECT_"+TB_Ajax_IFrame_Count]}var a=0;while(a<1000){a++}TB_Ajax_IFrame_Count++}catch(b){document.body.innerHTML+='<iframe id="TB_AJAX_IFRAME_OBJECT_'+TB_Ajax_IFrame_Count+'" style="border:0px;width:0px;height:0px;"></iframe>';this.objIFrame=new Object();this.objIFrame.document=new Object();this.objIFrame.document.location=new Object();this.objIFrame.document.location.replace=function(e){this.iframe.src=e};if(document.getElementById){this.objIFrame.document.location.iframe=document.getElementById("TB_AJAX_IFRAME_OBJECT_"+TB_Ajax_IFrame_Count)}else{if(document.all){this.objIFrame.document.location.iframe=document.all["TB_AJAX_IFRAME_OBJECT_"+TB_Ajax_IFrame_Count]}else{if(document.layers){this.objIFrame.document.location.iframe=document.layers["TB_AJAX_IFRAME_OBJECT_"+TB_Ajax_IFrame_Count]}}}TB_Ajax_IFrame_Count++}}}function ajaxLoadIFrame(e,b){var a=new TB_Ajax_Request();a.useIFrame();a.create();if(b){a.setCallback(b)}a.get(e)}function ajaxLoadRequest(e,b){var a=new TB_Ajax_Request();a.create();if(b){a.setCallback(b)}a.get(e)}function clickFirstChildLink(a){alert("function clickFirstChildLink should no longer be here, please email to info@weekendjeweg.nl");if(typeof($)=="function"){objLink=$(a).find("A");strLink=objLink.attr("href");strTarget=objLink.attr("target");if(typeof(strTarget)=="undefined"){strTarget="_self"}switch(strTarget){case"_self":self.location.href=strLink;break;case"_top":top.location.href=strLink;break;case"_parent":parent.location.href=strLink;break;case"_new":case"_blank":window.open(strLink,"_new");break;default:if(typeof(top.frames[strTarget])!="undefined"){top.frames[strTarget].location.href=strLink}else{document.location.href=strLink}break}}return false}function getUrlVars(){var g=[],l,f,k=(window.location.href.indexOf("?")+1),e=(window.location.href.indexOf("#")+1);if(e>0){var h=window.location.href.slice(k,e).split("&")}else{var h=window.location.href.slice(k).split("&")}var a=window.location.href.slice(e).split("&");for(var b=0;b<h.length;b++){l=h[b].split("=");g.push(l[0]);g[l[0]]=l[1]}if(e>0){for(var b=0;b<a.length;b++){f=a[b].split("=");g.push(f[0]);g[f[0]]=f[1]}}return g}var intTimedElementTimeLeft=5;var blnTimedElementShown=false;var intMenuItemLeaveTimer=-1;var blnMouseOverPopup=false;$(document).ready(function(){$("#menu li ul").each(function(){$(this).mouseleave(function(){$(this).hide();if(intMenuItemLeaveTimer!=-1){clearTimeout(intMenuItemLeaveTimer);intMenuItemLeaveTimer=-1}}).parent().mouseover(function(){$("#menu li ul").hide();$("UL",this).show();if(intMenuItemLeaveTimer!=-1){clearTimeout(intMenuItemLeaveTimer);intMenuItemLeaveTimer=-1}}).mouseout(function(){intMenuItemLeaveTimer=setTimeout(function(){intMenuItemLeaveTimer=-1;$("#menu li ul").hide()},500)})});$("#menu li ul .timedelemlink").each(function(){$("A",this).click(function(a){a.preventDefault()});$(this).click(function(){$("body").append('<div class="popupoverlay" style="height: '+$(document).height()+'px;"></div><div class="popupwindow"><div class="popupwindowclosebutton timedlinkcancel"><!----></div>'+$(".timedelemlinkcontent",this).html()+"</div>");intTimedElementTimeLeft=parseInt($(".popupwindow .timedlinkcounter").html());$(".popupoverlay").fadeTo(0,0).show().fadeTo(200,0.8,function(){blnTimedElementShown=true;intScreenWidth=$(document).width();intY=$(document).scrollTop()+160;$(".popupwindow").css("left",(intScreenWidth/2)-($(".popupwindow").outerWidth()/2)).css("top",intY).fadeTo(0,0).show().fadeTo(200,1);if(typeof(blnIsIE6)!="undefined"&&blnIsIE6){$("body").append('<iframe class="popupwindowframe" style="height: 100px;"></iframe>');$(".popupwindowframe").css("left",$(".popupwindow").css("left")).css("top",$(".popupwindow").css("top")).css("height",$(".popupwindow").outerHeight()).show()}$(".popupwindow").hover(function(){blnMouseOverPopup=true},function(){blnMouseOverPopup=false});$("body").bind("click",timedPopupCheckMouse);$(".popupwindow .timedlinkcancel").click(function(a){a.preventDefault();hideTimedPopupWindow()});setTimeout("updateTimedElementCounter()",1000)})})})});function timedPopupCheckMouse(){if(!blnMouseOverPopup){hideTimedPopupWindow()}}function hideTimedPopupWindow(){$(".popupwindow").fadeTo(200,0.1,function(){$(this).hide();$(".popupoverlay").fadeTo(200,0,function(){$("body").unbind("click",timedPopupCheckMouse);$(".popupoverlay").remove();$(".popupwindow").remove();if(typeof(blnIsIE6)!="undefined"&&blnIsIE6){$(".popupwindowframe").remove()}blnTimedElementShown=false})})}function updateTimedElementCounter(){if(blnTimedElementShown==false){return}intTimedElementTimeLeft--;if(intTimedElementTimeLeft>0){$(".popupwindow .timedlinkcounter").html(intTimedElementTimeLeft);setTimeout("updateTimedElementCounter()",1000)}else{objLink=$(".popupwindow").find("A");if(objLink.length>0){strLink=objLink.attr("href");strTarget=objLink.attr("target");if(typeof(strTarget)=="undefined"){strTarget="_self"}switch(strTarget){case"_self":self.location.href=strLink;break;case"_top":top.location.href=strLink;break;case"_parent":parent.location.href=strLink;break;case"_new":case"_blank":window.open(strLink,"_new");break;default:if(typeof(top.frames[strTarget])!="undefined"){top.frames[strTarget].location.href=strLink}else{document.location.href=strLink}break}}}}var blnMouseOverPopup=false;function popupShowTimedPopup(a,b){if(!b){b=5000}popupShow(a,false,b)}function popupShow(e,g,f,b,a){if(e!==false){e=e}else{if(g!==false){e='<iframe id="iframepopup" src="'+g+'" scrolling="no" frameborder="0"></iframe>'}else{e="No content"}}$("body").append('<div class="popupoverlay" style="height: '+$(document).height()+'px;"></div><div class="popupwindow">'+(a==undefined||a!=true?'<div class="popupwindowclosebutton"><!----></div>':"")+""+e+"</div>");$(".popupoverlay").fadeTo(0,0).show().fadeTo(200,0.8,function(){intScreenWidth=$(document).width();intY=$(document).scrollTop()+160;$(".popupwindow").css("left",(intScreenWidth/2)-($(".popupwindow").outerWidth()/2)).css("top",intY).fadeTo(0,0).show().fadeTo(200,1);if(typeof(blnIsIE6)!="undefined"&&blnIsIE6){$("body").append('<iframe class="popupwindowframe" style="height: 100px;"></iframe>');$(".popupwindowframe").css("left",$(".popupwindow").css("left")).css("top",$(".popupwindow").css("top")).css("height",$(".popupwindow").outerHeight()).show()}$(".popupwindow").hover(function(){blnMouseOverPopup=true},function(){blnMouseOverPopup=false});if(a==undefined||a!=true){$("body").bind("click",popupCheckMouse);$(".popupwindow .popupwindowclosebutton").click(popupHide)}if(f!=undefined&&f!==false){setTimeout("popupHide()",f)}if(g!==false){document.getElementById("iframepopup").height=((b!=undefined)?b:popupSizeIframeHeight("iframepopup"))}})}function popupSizeIframeHeight(b){var a=document.getElementById(b).contentWindow.document.body.scrollHeight;return a}function popupCheckMouse(){if(!blnMouseOverPopup){popupHide()}}function popupHide(){if($(".popupwindow").length<1){return}$(".popupwindow").fadeTo(200,0.1,function(){$(this).hide();$(".popupoverlay").fadeTo(200,0,function(){$("body").unbind("click",popupCheckMouse);$(".popupoverlay").remove();$(".popupwindow").remove();if(typeof(blnIsIE6)!="undefined"&&blnIsIE6){$(".popupwindowframe").remove()}})})}function tooltipShow(a){if($(".tooltip").length<1){$("body").append('<div class="tooltip">'+a+"</div>");$("body").bind("mousemove",tooltipMouseMove)}else{$(".tooltip").html(a)}}function tooltipMouseMove(a){$(".tooltip").css("top",a.pageY+13).css("left",a.pageX+13)}function tooltipHide(){$("body").unbind("mousemove",tooltipMouseMove);$(".tooltip").remove()}var defaultWord="Bijv. Amsterdam, Veluwe of wellness...",defaultWord2="Bijv. plaats of hotelnaam",qweery_name="bookit",qweery_client="MHw2fDM2",trq="word";$(document).ready(function(){if(typeof blnQweeryEnabled=="undefined"){blnQweeryEnabled=false}$(".search .tabs span").click(function(l){strClickedTab=$(this).attr("class");$(".search .tabs li").each(function(){strBaseClass=$(this).attr("class");strBaseClass=strBaseClass.replace(" selected","").replace(" notselected","");$(this).attr("class",strBaseClass+($(this).find("."+strClickedTab).length>0?" selected":" notselected"))});strSelectTab=strClickedTab.replace("link","");$(".search .panel").hide();$(".search ."+strSelectTab).show();k();l.preventDefault();l.stopPropagation()});$(".quicksearch .advancedlink A").click(function(l){if($(".quicksearch .spacer").css("display")=="block"){$(".quicksearch .spacer").hide();$(".quicksearch .advancedsearch").addClass("advancedsearch_show");intFieldsHeight=$(".quicksearch .searchmodule .left").height();intCounterHeight=$(".quicksearch .searchmodule .right .countercontent").height();$(".quicksearch .right .countercontent:not(.no_animate)").animate({top:intFieldsHeight-intCounterHeight},{duration:400,queue:false});$(".quicksearch .advancedlink .generalarrow").attr("class","generalarrow arrowup")}else{$(".quicksearch .spacer").show();$(".quicksearch .advancedsearch").removeClass("advancedsearch_show");$(".quicksearch .right .countercontent:not(.no_animate)").css("top",11);$(".quicksearch .advancedlink .generalarrow").attr("class","generalarrow arrowdown")}l.preventDefault();l.stopPropagation()});$(".quicksearch .arrival img").click(function(){if(typeof(popupShowTimedPopup)=="function"){popupShowTimedPopup("<h1>Selecteer eerst &eacute;&eacute;n of meerdere opties</h1>",3000)}});if($(".quicksearch .searchsummary").length>0){$(".quicksearch .searchmodule").hide();$(".quicksearch .changebutton").click(function(l){if($(".quicksearch .searchmodule").css("display")=="none"){$(".quicksearch .searchsummary").hide();$(".quicksearch .searchmodule").show()}else{$(".quicksearch .searchmodule").hide();$(".quicksearch .searchsummary").show()}})}if($("#word")){$("#word").focus(function(){if(blnQweeryEnabled==true){if($(this).val()==defaultWord){$(this).val("")}}else{if($(this).val()==defaultWord2){$(this).val("")}}$(this).css("color","#000000");$("#qweeryloading").hide()}).blur(function(){b(this)}).keypress(function(){$("#qweeryloading").show()});b($("#word"))}function b(l){if(blnQweeryEnabled==true){if($(l).val()==""){$(l).val(defaultWord);$(l).css("color","#999")}else{if($(l).val()!=defaultWord){$(l).css("color","#000000")}}}else{if($(l).val()==""){$(l).val(defaultWord2);$(l).css("color","#999")}else{if($(l).val()!=defaultWord2){$(l).css("color","#000000")}}}}function h(l){var l=(l)?l:((event)?event:null);var m=(l.target)?l.target:((l.srcElement)?l.srcElement:null);if((l.keyCode==13)&&(m.type=="text")){return false}}function a(){if(typeof getTypeResult!="undefined"&&$("#word").val()!=defaultWord&&$("#word").val()!=""){getTypeResult(1)}}function e(){if(typeof closeTypeResult!="undefined"){closeTypeResult()}}function f(){document.getElementById("word").onkeydown="";document.getElementById("word").onblur="";document.getElementById("word").onkeypress=h;document.getElementById("zkbtn").onclick=a}var g=true;function k(){if(typeof(blnQweeryEnabled)!="undefined"&&blnQweeryEnabled==true){f();if($(".panel.word").css("display")=="none"){if(typeof closeTypeResult!="undefined"){closeTypeResult()}if(g==false){window.location.hash=""}}else{a();if(window.location.hash!=="searchword"&&window.location.hash!=="#searchword"){trackEvent("tab","zoekopwoord")}window.location.hash="searchword"}}else{}}if(window.location.hash=="#searchword"||window.location.hash=="searchword"){$("span.wordlink").click()}else{$("span.quicksearchlink").click()}k();g=false});function showSearchModule(){$(".quicksearch .searchsummary").hide();$(".quicksearch .searchmodule").show()}function checkSavedHotels(){var e=getCookie("savedHotels");if(!e){var b=new Array()}else{var b=e.split(",")}for(i=0;i<b.length;i++){var a=b[i];objSpan=document.getElementById("save_"+a);if(objSpan){objSpan.innerHTML="Hotel bewaard"}}}function saveHotel(a){var h=getCookie("savedHotels");if(!h){var f=new Array()}else{var f=h.split(",")}var g=false;for(i=0;i<f.length;i++){if(f[i]==a){g=true}}if(g==false){f[f.length]=a}else{popupShowTimedPopup("<h1>Het hotel is reeds opgeslagen.</h1>")}h=f.join(",");var b=new Date();b.setFullYear(2038,11,31);setCookie("savedHotels",h,b);var e=getCookie("savedHotels");if(e&&e.length>0){if(g==false){popupShowTimedPopup("<h1>Het hotel is opgeslagen in uw bewaarde hotels.</h1>")}objSpan=document.getElementById("save_"+a);if(objSpan){objSpan.innerHTML="Hotel bewaard"}}else{popupShowTimedPopup("<h1>Uw browser accepteert geen cookies. Hotels kunnen niet bewaard worden</h1>")}}function deleteHotel(a){var g=getCookie("savedHotels");if(!g){var e=new Array()}else{var e=g.split(",")}var f=false;arrUpdatedHotels=new Array();for(i=0;i<e.length;i++){if(e[i]==a){f=true}else{arrUpdatedHotels[arrUpdatedHotels.length]=e[i]}}if(f==true){var b=new Date();b.setFullYear(2038,11,31);setCookie("savedHotels",arrUpdatedHotels.join(","),b)}var h=document.location.href;document.location.href=h}$(document).ready(function(){setplusminus()});function setplusminus(){$(".pricerow .rowsubtitleextrainfo").unbind("click").click(function(a){objExtraInfo=$(".extrainfo",$(this).parent());if(objExtraInfo.css("display")=="none"){objExtraInfo.slideDown(200);$(".plusminus",this).attr("class","plusminus minus")}else{$(".plusminus",this).attr("class","plusminus plus");objExtraInfo.slideUp(200)}a.stopPropagation()})}var alternativeID=0;var dosIterator=0;function setLoader(){var a=new Array("Een ogenblik..<b>.</b>","<b>Een</b> ogenblik...","Een <b>og</b>enblik...","Een og<b>en</b>blik...","Een ogen<b>blik</b>...");$("#progressBar").html(a[(dosIterator%5)]);dosIterator++}function str_repeat(a,b){return new Array(b+1).join(a)}function resetLoader(){$("#progressBar").html("Een ogenblik..<b>.</b>");dosIterator=0}function loadHistory(){$.historyInit(pageload);if(ajaxLoaded===false){if(arrResult==""){setTimeout("reset()",timeout_mid);return}else{setTimeout("filterize()",timeout_mid);print_r("filterizerer","w00t");return}}}function init(){loadHistory();$("#filter_title h1").text("Verfijn uw zoekopdracht");$("a").filter(".sortoption_items").click(function(a){blnSetHistory=true;showAlert("#TB_inline?height=50&width=450&inlineId=loader_div",$(this));setTimeout("sortBy('"+a.target.title+"', '"+a.target.title+"_img', false);",timeout_fast);bClick=true;return false}).end()}function handleRequest(l){var k=[];var f=[];var e=[];var b=[];var a=[];var g=[];k=document.location.href.split("?");if(k.length>1){f=k[1].split("#");if(f[0].split("&").length>1){b=f[0].split("&")}else{b=f}for(var h in b){e=b[h].split("=");realParams[e[0]]=e[1];arrRequest[e[0]]=e[1]}}$.each(l.split("&"),function(m,n){a=n.split("_");if(a[0]=="sort"){n="srt="+getOrdername(a[1])}g=n.split("=");if(g[0]){arrRequest[g[0]]=g[1]}if(g[1]){noload=0}});print_r("requests!",arrRequest)}function getRequest(a){if(requestsLoaded==false){return""}if(arrRequest[a]){return arrRequest[a]}return""}function pageload(b){bBackbutton=false;if(bClick==true){bClick=false;if(blnStopPageLoad==true){return}}else{bBackbutton=true}if(getCookie("form_posted")=="1"){setCookie("form_posted",0);return}if((pageLoaded==true||bBackbutton==true)){handleRequest(b);loadMain(getOrdername(getRequest("srt")),getRequest("rev"));var a=getRequest("options");arrActive=[];print_r("options",a);if(a!=null){$.each(a.split(","),function(f,g){var e=g.split("_");if(!arrActive[e[0]]){arrActive[e[0]]=[]}arrActive[e[0]][e[1]]=true})}}if(bBackbutton==true&&ajaxLoaded==true){}}function setHistory(a){if(blnSetHistory==false){return}blnStopPageLoad=true;blnSetHistory=false;if(a&&initnourl!=true){a=a.replace(/^.*#/,"");$.historyLoad(a)}print_r("set history 2",a);initnourl=false}function loadMain(a,b){if(a!=undefined&&a!=""){if(b==undefined){currentOrderType="desc"}print_r("test",a);sortBy(a,a+"_img",null,true)}}function showAlert(b,a,e){if(noalert==1){return false}if(e==undefined){e=false}if(a){a.addClass("clicked")}if(total_result_count>=5&&blnPopupStay==false){setCookie("form_posted",0)}e=false}function removeAlert(){setTimeout("resetLoader()",1);$("a").filter(".pages").css("cursor","hand");$("#body").css("cursor","")}function showSpacer(b){if(showAlternative==false){return}if($(b).find(".areaseparator").length>0){return}$(b).prepend(spacer_html);var a=$(".areaseparator").height()+20;$(b).children().each(function(e,f){if($(f).css("position")=="absolute"){$(f).css("top",(parseInt($(f).css("top"),0)+a))}});setLoader()}function getOrdername(a){switch(a){case"Plaats":ordername="city";break;case"Hotelnaam":ordername="name";break;case"Prijs":ordername="price";break;case"Sterren":ordername="stars";break;case"Beoordeling":ordername="score";break;case"Afstand":ordername="distance";break;case"city":ordername="Plaats";break;case"name":ordername="Hotelnaam";break;case"price":ordername="Prijs";break;case"stars":ordername="Sterren";break;case"score":ordername="Beoordeling";break;case"distance":ordername="Afstand";break;default:ordername=a;break}return ordername}function hilitepage(a){$(".headercontent .pages").removeClass("active_page");$(".page_span").removeClass("hilite");$(a).removeClass("clicked");$(a).addClass("active_page");$(a).parent().addClass("hilite");$(a).blur()}function paginator(o,k,f,m,n,p){if(p==undefined){p=null}if((ajaxLoaded==false&&o<=1)||p==true){setTimeout("paginator('"+o+"', '"+k+"', '"+f+"', '"+m+"', '"+n+"')",400);return}p=null;if(blnSetHistory==false&&bBackbutton==false){return}var a=15;var q=false;if(q==true){a=250}var r=parseInt(o);if(r<1){r=1}var l="";var h=false;if(arrIndexer&&arrIndexer.length==0){h=true}var g=[];var e=0;alternativeID=0;for(iCounter=0,iMax=$(arrJson).length;iCounter<iMax;iCounter++){var b=$(arrJson).get(iCounter).id;if(h==true){g[e]=b;e++;if($(arrJson).get(iCounter).distance>0&&alternativeID==0){alternativeID=b}}else{if(arrIndexer&&arrIndexer[b]&&arrIndexer[b]==true){g[e]=b;e++;if($(arrJson).get(iCounter).distance>0&&alternativeID==0){alternativeID=b}}}}arrRealShowHotels=[];for(iCounter=(a*(r-1)),iMax=(a*r);iCounter<iMax;iCounter++){var b=g[iCounter];if(g.length<=iCounter){break}if(b){arrRealShowHotels.push(b)}}getHotelData(arrRealShowHotels);fillResult(o,k,f,m,n,true);setTimeout('repager("'+intShowHotelCounter+'", "'+o+'"); hilitepage("'+k+'");',1);noalert=0}function fillResult(l,f,e,h,k,m){if(m==undefined){m=null}if(hotelDataLoaded==false||m==true){setTimeout("fillResult('"+l+"', '"+f+"', '"+e+"', '"+h+"', '"+k+"')",timeout_slow);return}setLoader();hotelDataLoaded=false;var g="";var o=[];$.each($(arrRealShowHotels),function(p,q){o.push(q);g+=arrHotels[q]});if(map_mode==true){console.log($(arrRealShowHotels).length);showHotels(o)}$(".result .panel .content_hotels").html(g);setplusminus();if(blnPopupStay!=true){removeAlert()}var b=base_url;if(b.split("?").length>1){b+="&"}else{b+="?"}var n="";arrActiveOptions=[];if(arrActive){$(arrActive).each(function(p,r){for(var q in arrActive[p]){if(arrActive[p][q]){arrActiveOptions.push(p+"_"+q)}}})}if(blnSetHistory==false&&bBackbutton==true){bBackbutton=false;return}else{if(arrActiveOptions!=undefined){n="srt="+ordername+"&rev="+(currentOrderType=="asc"?0:1)+"&pg="+l+"&options="+arrActiveOptions.join(",");b+=n}else{n="srt="+ordername+"&rev="+(currentOrderType=="asc"?0:1)+"&pg="+l;b+=n}if(!k){var a=b.split("?");if(a.length>0){document.location.href="#"+a[1]}else{document.location.href="#"+a[0]}}print_r("set history",n);setHistory(n)}if(alternativeID>0){showSpacer("#h_"+alternativeID)}if(h!=true){GA_call(base_url,ordername,(currentOrderType=="asc"?0:1),l)}}function sortBy(b,f,a,e){if(ajaxLoaded==false){setTimeout("sortBy('"+b+"', '"+f+"', '"+a+"', '"+e+"')",timeout_slow);return}setLoader();if(currentOrder!=b){if(b=="Beoordeling"){currentOrderType="desc"}else{currentOrderType="asc"}}else{currentOrderType=currentOrderType=="asc"?"desc":"asc"}$(".sortoption_items div").removeClass(imageOrderDown);$(".sortoption_items div").removeClass(imageOrderUp);$(".sortoption_items div").addClass("arrow_none");$("#"+f).removeClass("arrow_none");if(currentOrderType=="desc"){$("#"+f).addClass(imageOrderUp)}else{$("#"+f).addClass(imageOrderUp);$("#"+f).addClass(imageOrderDown)}$("#"+f).show();$("#"+f).parent().blur();$(".sortoptions span a").removeClass("clicked");$(".sortoptions span a").removeClass("hilite");$("#"+f).parent().addClass("hilite");currentOrder=b;ordername=getOrdername(currentOrder);if((realParams&&realParams.srt!=ordername||noload==0)){arrJson=$(arrJson).sort(ordername,currentOrderType)}if(!e){paginator(0,".page_1",null,null,a,true)}showAlternative=false}function repager(h,n){if(noload==0){if(n<1){n=1}$("div.paginator").html("");var m=15;if(map_mode==true){m=250}var a=Math.ceil(h/m);var f=2;var b="";if(a>1){if(n>1){var e=parseInt(n)-1;$("div.paginator").append('<span class="link">&laquo; <a rel="nofollow" class="page_'+e+' pages" href="'+base_url+"?pg="+e+'" title="'+e+'">Vorige</a>&nbsp;</span>')}else{$("div.paginator").append('<span class="link disabled">&laquo; Vorige&nbsp;</span>')}$("div.paginator").append('<span class="link"><a rel="nofollow" class="page_1 pages" href="'+base_url+'?pg=1" title="1">1 - '+m+"</a>&nbsp;</span>");var k=parseInt(n)-Math.ceil(f/2);var l=parseInt(n)+Math.ceil(f/2);if(n<f){l=f+1;k=1}if(n>(a-f)){k=a-f-1;l=a+1}if(k>2){$("div.paginator").append('<span class="link">...&nbsp;&nbsp;</span>')}for(i=1;i<=a;i++){if(i==1||i==a){continue}if(a>f+1){if(i>=k&&i<=l){$("div.paginator").append('<span class="link"><a rel="nofollow" class="page_'+i+' pages" href="'+base_url+"?pg="+i+'" title="'+i+'">'+((i*m)-(m-1))+"-"+(h<(i*m)?h:(i*m))+"</a>&nbsp;</span>")}}else{$("div.paginator").append('<span class="page_span"><a rel="nofollow" class="page_'+i+' pages" href="'+base_url+"?pg="+i+'" title="'+i+'">'+((i*m)-(m-1))+"-"+(h<(i*m)?h:(i*m))+"</a>&nbsp;</span>")}}}if(l<a-1){$("div.paginator").append('<span class="link">...&nbsp;&nbsp;</span>')}$("div.paginator").append('<span class="link"><a rel="nofollow" class="page_'+a+' pages" href="'+base_url+"?pg="+a+'" title="'+a+'">'+((a*m)-(m-1))+"-"+(h<(a*m)?h:(a*m))+"</a>&nbsp;</span>");if(n<a){var g=parseInt(n)+1;$("div.paginator").append('<span class="link"><a rel="nofollow" class="page_'+g+' pages" href="'+base_url+"?pg="+g+'" title="'+g+'">Volgende</a>&nbsp;&raquo;</span>')}else{$("div.paginator").append('<span class="link disabled">Volgende&nbsp;&raquo;</span>')}}noload=0;$("div.paginator").append('<div style="clear: both;"></div>');$("a").filter(".pages").unbind("click").click(function(o){blnSetHistory=true;$(this).css("cursor","wait");$("#body").css("cursor","wait");setTimeout("paginator('"+o.target.title+"', '.page_"+o.target.title+"', null, null, null, true);",1);$("html, body").animate({scrollTop:0},300);bClick=true;return false}).end()}function filterize(b){setLoader();print_r("filterize start",$(b).attr("optionid"));$(b).children().blur();$(b).toggleClass("active");var e=$(b).attr("filterid");var a=$(b).attr("optionid");if(e!=undefined){if(!arrActive[e]){arrActive[e]=[]}arrActive[e][a]=!arrActive[e][a];checkActiveCat();print_r("active state",arrActive[e][a])}filter();print_r("filterize end","1")}function more_links(a){$(a+"_more_link span").hide();if($(a+"_more ul li").length>0){$(a+"_more_link span").show()}print_r("more_links start",a);$(a+"_more ul li").unbind("click").click(function(b){return false});$(a+".filter_item ul li").each(function(b,e){if(!$(e).hasClass("clickedobject")){$(e).unbind("click").click(function(f){if(!$(e).hasClass("no_link")){if(noinit=="1"){arrActiveOptions=[];GA_call(base_url,"",0,1,true);return false}blnSetHistory=true;intActiveCat=$(e).attr("filterid");filterize($(e));bClick=true}return false});$(e).addClass("clickedobject")}});$(a+"_more.filter_item_more ul li").unbind("click").click(function(b){if(noinit=="1"){arrActiveOptions=[];activateOption($(this).attr("filterid")+"_"+$(this).attr("optionid"));GA_call(base_url,"",0,1,true);return false}blnSetHistory=true;refine_more_collapse($(this).parent().parent());intActiveCat=$(this).attr("filterid");$(a+".filter_item ul").append($(this));filterize($(this));bClick=true;return false});print_r("more_links end",a)}function checkActive(a,b){if(arrActive[a]==undefined||b==undefined){return false}if(arrActive[a][b]&&arrActive[a][b]==true){return true}return false}function checkActiveCat(){if(arrActive[intActiveCat]==undefined){intActiveCat=false;return}var b=true;for(var a in arrActive[intActiveCat]){if(arrActive[intActiveCat][a]==true){b=false}}if(b){intActiveCat=false}}function checkShow(a,b){if(arrData[a]==undefined){return true}if(arrData[a][b]==undefined||arrData[a][b]==""){return true}if(arrData[a][b]==0){return false}if(arrStayOpen[a]==true&&intActiveCat!=a&&arrData[a][b]<1){return false}return true}function getStats(a,b){if(!arrData[a]){arrData[a]=[]}if(!arrData[a][b.id]){return 0}if(arrData[a][b.id]>0){return arrData[a][b.id]}if(b!=undefined){return b.stats}return 0}function reorganize(e){setLoader();print_r("reorganize start","1");showAlert("#TB_inline?height=50&width=450&inlineId=loader_div",null);arrActiveOptions=[];var b=false;if(e!=undefined){var a=$("div#"+e+".filter_item")}else{var a=$("div.filter_item")}dots="";$.each(a,function(g,k){var h=$("#"+$(k).attr("id")+" span.filter_id").text();if(noinit=="1"||noload=="1"){html="";html2="";var f=0;$.each(arrFilter[h],function(n,l){if(checkShow(h,l.id)){var q=parseInt(getStats(h,l));if(q>0){var p=false;if(arrStayOpen[h]==true&&q==0){p=true}else{var o='<li class="refineoption" filterid="'+h+'" optionid="'+l.id+'">';o+='<a href="javascript://">';o+=l.name+dots;o+='<span id="value_'+h+"_"+l.id+'">&nbsp;'+(q>0?"<span>("+q+")</span>":"<span>(0)</span>")+"</span></a>";o+="</li>"}if(f<=5&&p==false){}else{if(o!=undefined&&o!=""){html2+=o}else{f--}}f++}}});$("#"+$(k).attr("id")+"_more").hide();if(html2!=""){$("#"+$(k).attr("id")+"_more ul").html(html2);$("#"+$(k).attr("id")+"_more").show()}else{$("#"+$(k).attr("id")+"_more ul").html("")}more_links("#"+$(k).attr("id"))}else{html="";html2="";var f=0;if(arrFilter[h]&&(intActiveCat!=h||intActiveCat==false||arrStayOpen[h]==false)){$("#"+$(k).attr("id")+"_more").hide();$.each(arrFilter[h],function(n,l){if(checkShow(h,l.id)){var r=parseInt(getStats(h,l));var o=checkActive(h,l.id);if(r>0||arrStayOpen[h]){if(o){if(r==0&&arrStayOpen[h]){deactivateOption(h+"_"+l.id)}else{activateOption(h+"_"+l.id)}}var q=false;if(arrStayOpen[h]==true&&r==0){q=true}else{var p='<li class="'+(o!=""?"active":"")+' refineoption" filterid="'+h+'" optionid="'+l.id+'">';p+='<a href="javascript://">';p+=l.name+dots;p+='<span id="value_'+h+"_"+l.id+'">&nbsp;'+(r>0?"<span>("+r+")</span>":"<span>(0)</span>")+"</span></a>";p+="</li>"}if((f<=5||o!="")&&q==false){html+=p}else{if(p!=undefined){html2+=p}else{f--}}f++}}});$("#"+$(k).attr("id")+" ul").html(html);if(html2!=""){$("#"+$(k).attr("id")+"_more ul").html(html2);$("#"+$(k).attr("id")+"_more").show()}else{$("#"+$(k).attr("id")+"_more ul").html("")}}else{$.each(arrFilter[h],function(n,l){if(checkShow(h,l.id)){var p=parseInt(getStats(h,l));var o=checkActive(h,l.id);if(p>0||arrStayOpen[h]){if(o){activateOption(h+"_"+l.id)}}}})}more_links("#"+$(k).attr("id")+"")}});print_r("reorganize end","1")}function activateOption(b){var a=handleID(b)}function deactivateOption(b){var a=handleID(b);arrActive[a.cat][a.id]=null;return}function activateParent(a){if(arrFilter[intActiveCat]&&arrFilter[intActiveCat][a]&&arrFilter[intActiveCat][a]["parent_id"]&&arrFilter[intActiveCat][a]["parent_id"]>0){$(intActiveCat+".filter_item ul li").each(function(b,e){if($(e).attr("optionid")==a){activateParent(arrFilter[intActiveCat][a]["parent_id"]);filterize($(e));return}})}}function filter(){print_r("filter start","1");var g=[];var l=0;var a=true;var h=0;var m=0;arrMatch=[];$.each(arrFilter,function(o,p){$.each(p,function(q,n){if(!arrMatch[n.cat_id]){arrMatch[n.cat_id]=[];g.push(n.cat_id)}if(checkActive(n.cat_id,n.id)){arrMatch[n.cat_id].push(n.id)}})});var b=[];var f=0;arrData=[];arrNewResult=[];$.each(arrJson,function(o,p){m=0;b=[];$.each(g,function(q,n){if(arrMatch[n]){f=0;intCategoryCheckIterator=0;$.each(arrMatch[n],function(s,r){if(arrResult[p.id][n]){if($.inArray(r,arrResult[p.id][n])!=-1){f++}}intCategoryCheckIterator++});if(arrAndOr[n]==true&&f>0&&f==intCategoryCheckIterator){m++}else{if(arrAndOr[n]==false&&f>0){m++}else{if(intCategoryCheckIterator==0){m++}}}}});if(m==g.length){arrIndexer[p.id]=true;a=false;arrNewResult.push(arrResult[p.id]);h++}else{arrIndexer[p.id]=false}});intShowHotelCounter=0;$.each(arrNewResult,function(o,p){$.each(g,function(q,n){if(arrMatch[n]){if(p){if(p[n]){$.each(p[n],function(s,r){if(r){if(!arrData[n]){arrData[n]=[]}if(!arrData[n][r]){arrData[n][r]=0}arrData[n][r]++}})}}}});intShowHotelCounter++});var k=true;var e=$(".filter_item ul li");$.each(e,function(q,r){var o=$(this).attr("filterid");k=true;if(arrData[o]){if(arrData[o][$(r).attr("optionid")]>0){$("span#value_"+o+"_"+$(r).attr("optionid")+"").parent().show();$(r).show();k=false}else{if(arrStayOpen[o]==true){k=false}}}if(k==true){var p=$("span#value_"+o+"_"+$(r).attr("optionid")+"");p.html("<b>(0)</b>");p.parent().hide();$(r).hide()}});if(a==true){arrIndexer=[]}setTimeout("reset()",timeout_fast);print_r("filter end","1")}function reset(){setLoader();print_r("reset start",1);if(bBackbutton==true){setTimeout("reorganize()",timeout_slow)}else{if(arrResult==undefined||arrResult==""){}else{setTimeout("reorganize()",timeout_slow)}}var a=getRequest("pg");print_r("request_page",a);if(a>0){paginator((parseInt(a)),".page_"+parseInt(a),true,null,null,true)}else{paginator(0,".page_1",true,null,initnourl,true)}requestsLoaded=false;print_r("reset end",1)}function loadResults(e,f){setLoader();var b="/ajaxresult.php?rewrittenrequest="+e;if(f){b+="&"+f}var a=document.getElementById("resultContainer");if(a){ajaxRequest(b)}return false}function getHotelData(a){if(!a){$.get("/result_cache.php?args[]="+base_url+"&"+query_string,null,function(e,f){if(f=="success"){ajaxLoaded=true}},"json");return}var b=[];$.each($(a),function(e,f){if(!arrHotels[f]){b.push(f)}});if(b.length==0){hotelDataLoaded=true;return}$.get("/result_cache.php?args[]="+base_url+"&"+query_string+"&hotel_ids="+b.join(","),null,function(e,f){if(f=="success"){$($(e)).each(function(h,g){arrHotels[g.id]=g.html});hotelDataLoaded=true}},"json")}function showPriceclass(a){if($("#"+a).is(":hidden")){$("#"+a).show();$("#img"+a).attr("src",imageCollapse);$("#img"+a).parent().attr("title","Meer informatie sluiten")}else{$("#"+a).hide();$("#img"+a).attr("src",imageExpand);$("#img"+a).parent().attr("title","Meer informatie tonen")}}function microtime(b){var a=new Date().getTime()/1000;var e=parseInt(a,10);return(b)?a:(Math.round((a-e)*1000)/1000)+" "+e}function print_r(f,b){if(!debug){return false}var a=microtime(true);if(micro_time==null){micro_time=a}if($.browser.msie){var e=dump(b,1000);setTimeout("$('#debugWindow').append('"+(a-micro_time)+" - <b>"+f+"</b>: "+e+"<br /><br />')",100)}else{console.log(f+" : "+dump(b,1000))}micro_time=a}function dump(a,k){var h="";if(!k){k=0}var g="";for(var b=0;b<k+1;b++){g+="    "}if(typeof(a)=="object"){for(var e in a){var f=a[e];if(typeof(f)=="object"){h+=g+"'"+e+"' ...\n";h+=dump(f,k+1)}else{h+=g+"'"+e+"' => \""+f+'"\n'}}}else{h="===>"+a+"<===("+typeof(a)+")"}return h}function submitValue(a){window.location.href=a}function GA_call(g,f,h,l,e){var a=g;if(noinit!="0"){if(g.split("?").length>1){var m=g.split("?");a=m[0];print_r("ga 2",a)}if(a.split("options/").length>1){var m=a.split("options/");a=m[0]+m[1];print_r("ga 3",a)}}print_r("ga 4",a);var k="";if(arrActiveOptions.length>0){var b=[];$.each(arrActiveOptions,function(p,q){var o=handleID(q);if(!b[o.cat]){b[o.cat]=false}if(b[o.cat]!=true){print_r("whosd",o.cat);switch(parseInt(o.cat)){case 0:if(noinit=="0"){k+="region/"}break;case 1:if(noinit=="0"){k+="city/"}break;case 2:if(noinit=="0"){k+="facility/"}break;case 3:if(noinit=="0"){k+="feature/"}break;case 4:if(noinit=="0"){k+="stars/"}break}b[o.cat]=true}k+=getLink(o.cat,o.id)+"/"})}if(noinit=="0"){if(k!=""){a+="filters/"+k}}if(f!=""||h>0||l>0){a+="?";if(f!=""){a+="&srt="+f}if(h>0){a+="&rev="+h}if(l>0){a+="&pg="+l}if(query_string!=""){a+="&"+query_string}}else{if(query_string!=""){a+="?"+query_string}}if(noinit=="1"&&e!=undefined){document.location.href=a;return}trackPageview(a)}function handleID(e){if(e!=undefined){var a=e.split("_");var b=[];b.id=a[1];b.cat=a[0];return b}}function getLink(a,e){var b="";if(a!=undefined&&e!=undefined){$.each(arrFilter[a],function(f,g){if(g.id==e){b=g.url;return}})}return b}(function(a){a.fn.sort=function(f,e){if(typeof(f)==="undefined"){return a(this)}if(f==""){return a(this)}if(typeof(f)==="string"){var g=a(this).get().sort(function(k,h){if(typeof(a(k).attr(f))==="number"){return a(k).attr(f)>a(h).attr(f)?1:-1}else{return a(k).attr(f).toLowerCase()>a(h).attr(f).toLowerCase()?1:-1}});if(b(e)){return a(g.reverse())}else{return a(g)}}setLoader();if(typeof(f)==="object"){if((f).length){var g=a(this).get().sort(function(l,h){var m=0;var k=1;while(m<f.length){var n=a(l).attr(f[m]).toLowerCase();var o=a(h).attr(f[m]).toLowerCase();if(n>o){k=1;break}if(o>n){k=-1;break}m++}return k});if(b(e)){return a(g.reverse())}else{return a(g)}}else{var g=a(this).get().sort(function(k,h){var m=0;for(var l in f){var n=a(k).attr(l).toLowerCase();var o=a(h).attr(l).toLowerCase();if(n>o){return(b(f[l]))?-1:1}if(o>n){return(b(f[l]))?1:-1}}});return a(g)}}};function b(e){setLoader();if(typeof e=="boolean"){return e}else{if(e.toLowerCase()=="desc"){return true}else{return false}}}})(jQuery);jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(f){jQuery.historyCallback=f;var e=location.hash;jQuery.historyCurrentHash=e;if((jQuery.browser.msie)&&(jQuery.browser.version<8)){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#"}$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var a=$("#jQuery_history")[0];var b=a.contentWindow.document;b.open();b.close();b.location.hash=e}else{if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.isFirst=true}}jQuery.historyCallback(e.replace(/^#/,""));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(a){jQuery.historyBackStack.push(a);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var a=$("#jQuery_history")[0];var f=a.contentDocument||a.contentWindow.document;var h=f.location.hash;if(h!=jQuery.historyCurrentHash){location.hash=h;jQuery.historyCurrentHash=h;jQuery.historyCallback(h.replace(/^#/,""))}}else{if($.browser.safari){if(!jQuery.dontCheck){var b=history.length-jQuery.historyBackStack.length;if(b){jQuery.isFirst=false;if(b<0){for(var e=0;e<Math.abs(b);e++){jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop())}}else{for(var e=0;e<b;e++){jQuery.historyBackStack.push(jQuery.historyForwardStack.shift())}}var g=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(g!=undefined){jQuery.historyCurrentHash=location.hash;jQuery.historyCallback(g)}}else{if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf("#")>=0){jQuery.historyCallback(document.URL.split("#")[1])}else{var h=location.hash;jQuery.historyCallback("")}jQuery.isFirst=true}}}}else{var h=location.hash;if(h!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=h;jQuery.historyCallback(h.replace(/^#/,""))}}}},historyLoad:function(f){var g;if(jQuery.browser.safari){g=f}else{g="#"+f;location.hash=g}jQuery.historyCurrentHash=g;if((jQuery.browser.msie)&&(jQuery.browser.version<8)){var a=$("#jQuery_history")[0];var e=a.contentWindow.document;e.open();e.close();e.location.hash=g;jQuery.historyCallback(f)}else{if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(f);var b=function(){jQuery.dontCheck=false};window.setTimeout(b,200);jQuery.historyCallback(f);location.hash=g}else{jQuery.historyCallback(f)}}}});(function(b){jQuery.browser.mobile=/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od|ad)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(b.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);$(document).ready(function(){refine_more_link_click_event()});function refine_more_collapse(a){$(".generalarrow",a.parent().parent()).attr("class","generalarrow arrowdown");$(".text",a.parent().parent()).text(" meer");a.parent().slideUp(200);refine_more_link_click_event();$("html, body").animate({scrollTop:0},300)}function refine_more_link_click_event(){$(".refinemorelink").unbind("click").click(function(){objContent=$(this).prev();if(objContent.css("display")=="none"){$(".generalarrow",this).attr("class","generalarrow arrowup");$(".text",this).text(" minder");objContent.slideDown(200)}else{$(".generalarrow",this).attr("class","generalarrow arrowdown");$(".text",this).text(" meer");objContent.slideUp(200)}})}$(document).ready(function(){var a=0;$("INPUT.restoreinputvalue").each(function(){$(this).data("originalvalue",$(this).val())}).focus(function(){if($(this).val()==$(this).data("originalvalue")){$(this).val("");$(this).css("color","#4F4F4F")}}).blur(function(){if($(this).val()==""){$(this).val($(this).data("originalvalue"));$(this).css("color","#828282")}})});var objSmallBlocksRotating=new Object();$(document).ready(function(){$(".smallblock.rotating").each(function(intIndex){objRotatingItems=$(".itemcontainer .item",this);$(".viewport",this).css("height",objRotatingItems.outerHeight()).css("width",objRotatingItems.outerWidth());$(".itemcontainer",this).css("width",getWidthOfChildren(".smallblock.rotating .itemcontainer"));if(objRotatingItems.length<=1){$(".arrow",this).css("display","none");$(".pagingcontainer",this).css("display","none")}else{objBlock=new Object();objBlock.intRotatingBlocksItemCount=objRotatingItems.length;objBlock.intRotatingBlocksItemWidth=objRotatingItems.outerWidth();objBlock.intRotatingBlocksCurItem=0;objBlock.intCurrentIteration=0;objBlock.blnRotatingBlocksMouse=false;objBlock.intIndex=intIndex;objBlock.intIntervalTimer=-1;$(this).data("index",intIndex);strHTML='<div class="prev"><!----></div>';for(i=0;i<objBlock.intRotatingBlocksItemCount;i++){strHTML+='<div class="page'+(i==0?" selected":"")+'">'+(i+1)+"</div>"}strHTML+='<div class="next"><!----></div>';$(".paging",this).html(strHTML);$(".paging .page",this).click(function(){intItemIndex=$(this).prevAll(".page").length;objBlock=objSmallBlocksRotating["block"+$(this).parents(".smallblock.rotating").data("index")];if(intItemIndex!=objBlock.intRotatingBlocksCurItem){objBlock.intRotatingBlocksCurItem=intItemIndex;updateSmallBlockRotating(objBlock.intIndex)}});$(".paging .prev",this).click(function(){objBlock=objSmallBlocksRotating["block"+$(this).parents(".smallblock.rotating").data("index")];objBlock.intRotatingBlocksCurItem-=1;if(objBlock.intRotatingBlocksCurItem<0){objBlock.intRotatingBlocksCurItem+=objBlock.intRotatingBlocksItemCount}updateSmallBlockRotating(objBlock.intIndex)});$(".paging .next",this).click(function(){objBlock=objSmallBlocksRotating["block"+$(this).parents(".smallblock.rotating").data("index")];objBlock.intRotatingBlocksCurItem+=1;if(objBlock.intRotatingBlocksCurItem>=objBlock.intRotatingBlocksItemCount){objBlock.intRotatingBlocksCurItem=0}updateSmallBlockRotating(objBlock.intIndex)});$(".paging",this).children().each(function(){this.onselectstart=function(){return false};$(this).attr("unselectable","on").css("-moz-user-select","none")});$(this).mouseover(function(){objBlock=objSmallBlocksRotating["block"+$(this).data("index")];objBlock.blnRotatingBlocksMouse=true}).mouseout(function(){objBlock=objSmallBlocksRotating["block"+$(this).data("index")];objBlock.blnRotatingBlocksMouse=false});$(".arrow",this).show();$(".pagingcontainer",this).show();$(".paging",this).css("width",getWidthOfChildren(".smallblock.rotating:eq("+intIndex+") .paging"));objPos=$(".paging .page",this).eq(objBlock.intRotatingBlocksCurItem).position();$(".arrow div",this).css("left",objPos.left+1);eval("objFunc = function() { proceedSmallBlockRotating("+objBlock.intIndex+"); }");objSmallBlocksRotating["block"+intIndex]=objBlock;objBlock.intIntervalTimer=setInterval(objFunc,5000)}})});function proceedSmallBlockRotating(a){objBlock=objSmallBlocksRotating["block"+a];if(objBlock.blnRotatingBlocksMouse){return}objBlock.intRotatingBlocksCurItem++;if(objBlock.intRotatingBlocksCurItem>=objBlock.intRotatingBlocksItemCount){objBlock.intCurrentIteration++;if(objBlock.intCurrentIteration==2){clearInterval(objBlock.intIntervalTimer);objBlock.intIntervalTimer=-1}objBlock.intRotatingBlocksCurItem=0}updateSmallBlockRotating(a)}function updateSmallBlockRotating(a){objBlock=objSmallBlocksRotating["block"+a];objBlockEl=$(".smallblock.rotating:eq("+a+")");objPos=$(".paging .page",objBlockEl).eq(objBlock.intRotatingBlocksCurItem).position();$(".arrow div",objBlockEl).animate({left:objPos.left+1},{duration:400,queue:false});$(".paging .page",objBlockEl).attr("class","page");$(".paging .page",objBlockEl).eq(objBlock.intRotatingBlocksCurItem).attr("class","page selected");$(".itemcontainer",objBlockEl).animate({left:(-objBlock.intRotatingBlocksCurItem*objBlock.intRotatingBlocksItemWidth)},{duration:400,queue:false})}document.qsArrDates=new Array();document.qsArrDisabled=new Array();$(document).ready(function(){});function qsLoadDates(b){var a=document.wordsearch.dayvalue.value;var e=a.split(";");var g=document.wordsearch.df;while(g.options.length>0){g.options[0]=null}for(var f=0;f<(e.length-1);f++){var h=e[f].split(":");if(h[0]==b.options[b.selectedIndex].value){var m=h[1].split(",");for(j=0;j<m.length;j++){var l=m[j].indexOf("(");var k=m[j].substring(0,l);m[j]=m[j].replace(/^\s+/,"");g.options[g.options.length]=new Option(m[j],k)}}}}function qsUpdateDays(a,b,e){while(b.options.length>0){b.options[0]=null}if(e[a.options[a.selectedIndex].value]){arrValues=e[a.options[a.selectedIndex].value].split(",");for(i=0;i<arrValues.length;i++){arrValue=arrValues[i].split(" ");b.options[b.options.length]=new Option(arrValues[i],arrValue[0])}}}function qsUpdateDateSimple(a,b){document.forms[0].mf.value=a;qsChangeMonth(document.forms[0].name,document.forms[0].mf);document.forms[0].df.value=b;return true}function qsUpdateDate(a,b){var f="";var e="";if(a.selectedIndex>0){e=a.options[a.selectedIndex].value}if(a.selectedIndex>0){f=b.options[b.selectedIndex].value}document.forms.dateselect.elements.mf.value=e;document.forms.dateselect.elements.df.value=f}function qsChangeMonth(f,b){var g=document.forms[f];if(!g){return}var a=g.elements.df;if(!a){return}var e=b.options[b.selectedIndex].value;qsUpdateDays(b,a,document.qsArrDates)}function qsUpdateField(e,f,b){objForm=document.forms[e];if(!objForm){return}objField=objForm.elements[f];if(!objField){return}intSet=0;intValue=objField.options[objField.selectedIndex].value;if(!intValue){intValue=0}objField.selectedIndex=0;while(objField.options.length>0){objField.options[0]=null}var a=false;for(i=0;i<b.length-1;i+=2){if(f=="df"&&b[i]>""){a=true}objField.options[objField.options.length]=new Option(b[i+1],b[i]);if(b[i]==intValue){intSet=objField.options.length-1}}objField.selectedIndex=intSet;arrFields=objForm.elements;for(i=0;i<arrFields.length;i++){arrFields[i].disabled=false}document.body.style.cursor="auto"}function qsToggleSubmit(e,b){var a=document.getElementById("SearchButton");if(!a){return}if(b){a.style.display="";a.className="button buttondisabled";a.innerHTML='<a href="#"><span>Zoeken</span></a>'}else{a.style.display="none"}}function qsSetFacilities(a){var l=a.form;var e=l.elements.facility;var k=a.name.split("_");var h=k[1];if(e.value>""){arrValues=e.value.split(",")}else{arrValues=new Array()}var g=false;var b=-1;for(var f=0;f<arrValues.length;f++){if(arrValues[f]==h){g=true;if(a.checked==false){b=f}}}if(g==false&&a.checked==true){arrValues[arrValues.length]=h}else{if(g==true&&a.checked==false){arrNewValues=new Array();for(f=0;f<arrValues.length;f++){if(f!=b){arrNewValues[arrNewValues.length]=arrValues[f]}}arrValues=arrNewValues}}e.value=arrValues.join(",");if(e.value.substr(0,1)==","){e.value=e.substr(1)}l.submit()}function qsUpdateData(b,a,e){strUrl="";objForm=document.forms[b];arrFields=objForm.elements;strFields="";for(i=0;i<arrFields.length;i++){strVal="";switch(arrFields[i].type){case"select":case"select-one":strVal=arrFields[i].options[arrFields[i].selectedIndex].value;break;case"hidden":strVal=arrFields[i].value;break}arrFields[i].disabled=true;if(strVal>""){strUrl+=(strUrl>""?"&":"ajaxsrch.php?")+arrFields[i].name+"="+strVal}}strUrl+="&qsflds="+a+"&qsfrm="+b+"&qsupd="+e+"&qssrv=1";document.body.style.cursor="wait";ajaxLoadIFrame(strUrl)}function qsInitForm(a){window.onload=function(){alaxLoadIFrame(a)}}function qsSubmitForm(k){var a=k.elements;var h="";var b=0;var g=false;var f=false;for(i=0;i<a.length;i++){strVal="";strVar="";blnStore=false;switch(a[i].type){case"select":case"select-one":if(a[i].disabled==false){if(a[i].options.length>0){strVal=a[i].options[a[i].selectedIndex].value;strVar=a[i].name;blnStore=(strVal>""&&(strVar=="mf"||strVar=="df"||strVar=="period"));if(strVar=="df"&&strVal!=""){g=true}else{if(strVar=="period"&&strVal!=""){f=true}}}}else{blnStore=false}break;case"hidden":strVal=a[i].value;strVar=a[i].name;blnStore=(strVar!="rewrite"&&strVal>""&&strVar!="ext"&&strVar!="showsubmit");break;case"checkbox":strVar="facility[]";strVal=a[i].name.substr(3);blnStore=a[i].checked;break}if(blnStore==true){h+=(b==0?"?":"&")+strVar+"="+strVal;b++}}if(g&&!f){}h="/hotels/"+a.rewrite.value+"/"+h;var e=new RegExp("//*/","i");if(e.exec(h)){h=h.replace(e.exec(h),"/")}if(k.iswidget&&k.iswidget.value){window.open(h)}else{document.location.href=h;$("#SearchButton").addClass("button buttondisabled")}setCookie("form_posted","1");return false}function qsUpdateExplanation(a){objExplanation=document.getElementById("qsExplanation");if(objExplanation){objExplanation.innerHTML=a}}function qsDisableSearch(){qsFieldperiod.style.visibility="hidden"}function qsEnableSearch(){for(var a=0;a<document.qsArrDisabled.length;a++){if(document.qsArrDisabled[a]){document.qsArrDisabled[a].disabled=false}}document.qsArrDisabled=new Array()}function qsUpdateForm(h,a){var l=document.forms[h];var e=l.elements;var k="/ajaxsrch.php";var b=false;var g=false;if(document.qsArrDisabled.length>0){return false}document.qsArrDisabled=new Array();for(f=0;f<e.length;f++){strVal="";strVar="";blnStore=false;if(e[f].name=="iswidget"){var g=true}switch(e[f].type){case"select":case"select-one":if(e[f].disabled){blnStore=false}else{document.qsArrDisabled[document.qsArrDisabled.length]=e[f];if(e[f].options.length>0){strVal=e[f].options[e[f].selectedIndex].value;blnStore=true;if(!b){b=(strVal.toString().length>0)}strVar=e[f].name}}break;case"hidden":document.qsArrDisabled[document.qsArrDisabled.length]=e[f];strVal=e[f].value;strVar=e[f].name;blnStore=true;break;case"checkbox":strVar="facility[]";strVal=e[f].name.substr(3);blnStore=e[f].checked;if(!b){b=e[f].checked}document.qsArrDisabled[document.qsArrDisabled.length]=e[f];break}if(blnStore==true){k+=(f==0?"?":"&")+strVar+"="+strVal}}if(b){k+="&showsubmit=1"}if(g){k+="&iframe=widget"}k+="&flds="+escape(a);for(var f=0;f<document.qsArrDisabled.length;f++){document.qsArrDisabled[f].disabled=true}ajaxLoadIFrame(k);qsToggleSubmit(h,b)}function qsTouricoPage(b,a){var e=/\s/g;if(a.charAt(0)=="@"){url=b+"world/search/";window.location.href=url}}function qsOnloadFunction(e){var f=document.forms.quicksearch;var a=f.elements;for(i=0;i<a.length;i++){strVal="";strKey="";var b=0;if(a[i].selectedIndex<1){b=0}else{b=a[i].selectedIndex}switch(a[i].name){case"country":case"region":case"city":case"hotel":if(a[i].options[b]){strVal=a[i].options[b].value}else{strVal=""}break;case"facility":case"feature":case"stars":case"price":if(a[i].options[b]){strVal=a[i].options[b].value}else{strVal=""}break}if(strVal!=""){qsUpdateForm("quicksearch",arrAttrib[a[i].name],e)}}}var suggestions=new Array();var arrResult="";var outp;var oldins;var posi=-1;var words=new Array();var input;var key;var xPos;var yPos;var lock=false;var searchUrl;function qsdisableSearchWord(){setTimeout("qsactualDisableSearch()",60)}function qsEnableSearchWord(b){document.forms.wordsearch.elements.word.disabled=false;document.forms.wordsearch.elements.mf.disabled=false;document.forms.wordsearch.elements.df.disabled=false;var a=document.getElementById("SearchWordButton");if(!a){return}a.className="button";a.innerHTML="<a  href='#' onClick='qsSubmitSearch(\""+b+"\");return false;'><span>Zoek</span></a>";lock=false}function qsactualDisableSearch(){var a=document.getElementById("SearchWordButton");if(!a){return}a.className="button buttondisabled";a.innerHTML='<a href="#"><span>Zoek</span></a>';document.forms.wordsearch.elements.word.disabled=true;document.forms.wordsearch.elements.mf.disabled=true;document.forms.wordsearch.elements.df.disabled=true}function getSearchWordUrl(e,f,a,b){if(a!=""&&b!=""){url="zoek/?found="+e+"&word="+f+"&mf="+a+"&df="+b}else{url="zoek/?found="+e+"&word="+f}return url}function qsSubmitSearch(g,a){if(!lock){lock=true;var h=escape(document.forms.wordsearch.elements.word.value);var f=document.forms.wordsearch.elements.found.value;var b=document.forms.wordsearch.elements.mf.value;var e=document.forms.wordsearch.elements.df.value;if(h==""||h==null||h==a){alert("Geen resultaten gevonden voor uw zoekopdracht");document.forms.wordsearch.elements.word.focus();lock=false;return false}else{qsactualDisableSearch();setCookie("form_posted","1");url=g+getSearchWordUrl(f,h,b,e);document.location.href=url;setTimeout("qsEnableSearchWord('"+g+"')",10000);return false}}}function qsCheckValue(b,h){var k=escape(document.forms.wordsearch.elements.word.value);var g=document.forms.wordsearch.elements.found.value;var a=null;var f=null;if(window.event){keynum=b.keyCode}else{if(b.which){keynum=b.which}}if(keynum==13){qsdisableSearchWord();url=h+getSearchWordUrl(g,k,a,f);window.status=url;document.location.href=url;return false}}function qsAutoCompleteList(f,h){var l=document.forms.wordsearch.elements.word.value.toLowerCase();var a=l.length;var k=f;k+="&word="+l;if(arrResult.length==0&&l.length>0&&l.length<=4){ajaxLoadRequest(k,qsAjaxdata)}else{if(arrResult.length>0&&l.length>0){suggestions=new Array();var b=arrResult.split(",");if(b[0]=="file"){document.wordsearch.found.value=1}else{document.wordsearch.found.value=0}var e=0;for(var g=1;g<b.length;g++){if(b[g].substring(0,a)==l&&e<10){suggestions[e]=b[g];e++}}searchUrl=h;if(suggestions.length>0){outp=document.getElementById("output");qsLookAt();qsSetVisible("visible");document.onkeydown=qsKeyHandler;document.onkeyup=qsKeyHandler}else{if(suggestions.length==0&&(l.length==4||l.length==5)){k+="&word="+l+"&found=1";ajaxLoadRequest(k,qsAjaxdata)}else{qsSetVisible("hidden")}}}else{arrResult="";qsClearOutput();qsSetVisible("hidden")}}}function qsAjaxdata(f){arrResult=f.toLowerCase();var h=document.wordsearch.word.value.toLowerCase();var a=h.length;if(f.length>0){suggestions=new Array();var b=arrResult.split(",");if(b[0]=="file"){document.wordsearch.found.value=1}else{document.wordsearch.found.value=0}var e=0;for(var g=1;g<b.length;g++){if(b[g].substring(0,a)==h&&e<15){suggestions[e]=b[g];e++}}if(suggestions.length>0){outp=document.getElementById("output");qsLookAt();qsSetVisible("visible");document.onkeydown=qsKeyHandler;document.onkeyup=qsKeyHandler}}}function qsSetVisible(f){var a=document.getElementById("shadow");var e=document.getElementsByName("word")[0];a.style.position="absolute";a.style.top=((qsFindPosY(e))-1)+"px";var b=0;a.style.left=(qsFindPosX(e)-b)+"px";a.style.visibility=f}function qsFindPosX(a){var b=0;if(a.offsetParent){while(1){b+=a.offsetLeft;if(!a.offsetParent){break}a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function oldqsFindPosX(a){var b=0;if(a.offsetParent){while(a.offsetParent){b+=a.offsetLeft;a=a.offsetParent}}else{if(a.x){b+=a.x}}return b}function qsFindPosY(b){var a=0;if(b.offsetParent){a+=b.offsetHeight;while(b.offsetParent){a+=b.offsetTop;b=b.offsetParent}}else{if(b.y){a+=b.y;a+=b.height}}return a}function qsLookAt(){var a=document.getElementsByName("word")[0].value.toLowerCase();if(oldins==a){return}else{if(posi>-1){}else{if(a.length>0){words=qsGetWord(a);if(words.length>0){qsClearOutput();for(var b=0;b<words.length;++b){qsAddWord(initCaptial(words[b]))}qsSetVisible("visible");input=document.getElementsByName("word")[0].value}else{qsSetVisible("hidden");posi=-1}}else{qsSetVisible("hidden");posi=-1}}}oldins=a}function qsAddWord(f){var a=document.createElement("span");a.innerHTML=qsHighlight(f,document.wordsearch.word.value.toLowerCase(),"","");var b=document.createElement("div");var e=document.createElement("span");b.appendChild(a);e.className="look2";b.appendChild(e);b.onmouseover=mouseHandler;b.onmouseout=mouseHandlerOut;b.onclick=mouseClick;outp.appendChild(b)}function qsClearOutput(){if(outp){while(outp.hasChildNodes()){noten=outp.firstChild;outp.removeChild(noten)}posi=-1;suggestions=new Array();oldins=""}}function qsGetWord(h){h=h.toLowerCase();var g=new Array();var e=document.getElementsByName("word")[0].value;for(var f=0;f<suggestions.length;++f){var b=-1;var a=1;while(a==1&&++b<h.length){if(suggestions[f].charAt(b)!=h.charAt(b)){a=0}}if(a==1){g[g.length]=suggestions[f]}}return g}function qsSetColor(a,b,e){if(outp&&a>=0){outp.childNodes[a].style.background=b;outp.childNodes[a].style.color=e;outp.childNodes[a].firstChild.firstChild.style.background=b;outp.childNodes[a].firstChild.firstChild.style.color=e}if(a>0){qsResetColor(a-1)}if((a+1)<words.length){qsResetColor(a+1)}}function qsResetColor(a){if(outp){outp.childNodes[a].style.background="#dedede";outp.childNodes[a].style.color="black";outp.childNodes[a].firstChild.firstChild.style.background="#dedede";outp.childNodes[a].firstChild.firstChild.style.color="black"}}function qsKeygetter(a){if(!a&&window.event){a=window.event}if(a){key=a.keyCode}else{key=a.which}}var WhetherKesupforDownKey=0;var WhetherKesupforUpkey=0;function KeepDown(){var a=document.getElementsByName("word")[0].value;if(WhetherKesupforDownkey!=1){if(words.length>0&&posi<words.length-1){if(posi<words.length-1){posi++;if(posi>=0){qsSetColor(posi,"#dedede","black")}else{input=initCaptial(a.value)}qsSetColor(posi,"#0a2d64","#dedede");if(document.all){document.getElementsByName("word")[0].value=outp.childNodes[posi].innerText}else{document.getElementsByName("word")[0].value=outp.childNodes[posi].textContent}}}}return}function KeepUp(){var a=document.getElementsByName("word")[0].value;if(WhetherKesupforUpkey!=1){if(words.length>0&&posi>0){if(posi>0){posi--;if(posi<words.length-1){qsSetColor(posi+1,"#ffffff","black")}else{input=initCaptial(a.value)}qsSetColor(posi,"#0a2d63","white");if(document.all){document.getElementsByName("word")[0].value=outp.childNodes[posi].innerText}else{document.getElementsByName("word")[0].value=outp.childNodes[posi].textContent}}}}return}function initCaptial(a){return(a.substring(0,1).toUpperCase()+a.substring(1,a.length))}var keyname;function qsKeyHandler(e){var b=document.getElementsByName("word")[0].value;var a=null;var g=null;var f=document.forms.wordsearch.elements.found.value;if(!e&&window.event){e=window.event}if(e){key=e.keyCode}else{key=e.which}if(e){keyname=e.type}if(document.getElementById("shadow").style.visibility=="visible"){if(key==27){b.value=input;qsSetVisible("hidden");posi=-1;oldins=input;return false}else{if(key==13){if(words.length>0&&posi<words.length){if(posi>=0){qsSetColor(posi,"#ffffff","black")}else{input=b.value}qsSetColor(posi,"#0a2d63","white");qsSetVisible("hidden");qsdisableSearchWord();var h=escape(b);url=searchUrl+getSearchWordUrl(f,h,a,g);window.status=url;document.location.href=url;return false}}else{if(key==40){if(keyname=="keydown"){WhetherKesupforDownkey=0;KeepDown()}else{if(document.all){document.getElementsByName("word")[0].value=outp.childNodes[posi].innerText}else{document.getElementsByName("word")[0].value=outp.childNodes[posi].textContent}WhetherKesupforDownkey=1}}else{if(key==38){if(keyname=="keydown"){WhetherKesupforUpkey=0;KeepUp()}else{if(document.all){document.getElementsByName("word")[0].value=outp.childNodes[posi].innerText}else{document.getElementsByName("word")[0].value=outp.childNodes[posi].textContent}WhetherKesupforUpkey=1}}else{if(key==8){posi=-1;oldins=""}}}}}}}var mouseHandler=function(){for(var a=0;a<words.length;++a){qsSetColor(a,"#ffffff","black")}if(document.all){document.getElementsByName("word")[0].value=this.innerText}else{document.getElementsByName("word")[0].value=this.textContent}this.firstChild.firstChild.style.color="#ffffff";this.firstChild.firstChild.style.backgroundColor="#0a2d63";this.firstChild.style.backgroundColor="#0a2d63";this.style.color="#ffffff"};var mouseHandlerOut=function(){this.firstChild.style.backgroundColor="transparent";this.style.color="black";this.firstChild.firstChild.style.color="black"};var mouseClick=function(){if(document.all){document.getElementsByName("word")[0].value=this.innerText}else{document.getElementsByName("word")[0].value=this.textContent}qsSetVisible("hidden");posi=-1;oldins=this.innerText};function qsHighlight(k,b,l,a){if((!l)||(!a)){l="<b>";a="</b>"}var g="";var f=-1;var e=b.toLowerCase();var h=k.toLowerCase();while(k.length>0){f=h.indexOf(e,f+1);if(f<0){g+=k;k=""}else{if(k.lastIndexOf(">",f)>=k.lastIndexOf("<",f)){if(h.lastIndexOf("/script>",f)>=h.lastIndexOf("<script",f)){if(f==0){return g+=k.substring(0,f)+l+k.substr(f,b.length)+a+k.substr(f+b.length)}k=k.substr(f+b.length);h=k.toLowerCase();f=-1}}}}return g}function expandSearch(a){var b,e;if(document.getElementById){b=document.getElementById(a)}else{if(document.all){b=document.all[a]}else{if(document.layers){b=document.layers[a]}}}e=b.style;if(e.display==""&&b.offsetWidth!=undefined&&b.offsetHeight!=undefined){e.display=(b.offsetWidth!=0&&b.offsetHeight!=0)?"block":"none"}e.display=(e.display==""||e.display=="block")?"none":"block"}var blnRsSubmit=false;var arrSelectItems=new Array();function goNext(a,e){if(a.value.length<2){return}value=a.value.replace(/^0+/,"");if(arrSelectItems[document.getElementById(e).name]&&arrSelectItems[document.getElementById(e).name]==""){return false}if(arrSelectItems[document.getElementById(e).name]==value){return false}if(parseInt(value)==""||!parseInt(value)){return false}var b=document.getElementById(e);if(b&&b.focus){b.focus();arrSelectItems[a.name]=value}}function rsCheckSubmit(b,a){if(blnRsSubmit==true){return false}if(b=="Bevestig"){if(a&&a=="1"){setTimeout("show_bevestig();",50);return false}else{setTimeout("show_loading();",50)}}else{setTimeout("show_loading();",2000)}blnRsSubmit=true;setTimeout("rsResetSubmit()",60000);return true}function show_loading(){popupShow("<div id='progressBar'></div>",false,60000,400,true);setLoader()}function submitFormByJS(a){if(a){$("#reservation_form_submit").attr("name","");$("#reservation_form_submit").attr("value","")}else{setTimeout("trackPageview('popup_pegasus=submit');",30);$("#confirmationPopup").remove();setTimeout("show_loading();",50);$("#reservation_form_submit").attr("name","next");$("#reservation_form_submit").attr("value","Bevestig")}document.reservation.submit()}function show_bevestig(){trackPageview("popup_pegasus=show");var a='<p style="font-size: 16px; text-align: center;">Zodra u deze reservering bevestigt, is deze definitief<br />en bent u verplicht te betalen.<br /><br /></p>';a+='<input style="margin-right: 10px;" class="button" type="button" name="next" value="Bevestig" onclick="blnRsSubmit = false; if(rsCheckSubmit(\'Bevestig\')) { submitFormByJS(); }" />';a+='<input style="" class="button" type="submit" name="prev" value="Annuleer" onclick="submitFormByJS(true)" /></p>';a+='<div style="clear: both; float: left;"></div>';popupShow("<div id='progressBar'>"+a+"</div>",false,600000,400,true)}var dosIterator=0;function setLoader(){var a=new Array("<h2><b>Een</b> ogenblik...</h2>","<h2>Een <b>og</b>enblik...</h2>","<h2>Een og<b>en</b>blik...</h2>","<h2>Een ogen<b>blik</b>...</h2>","<h2>Een ogenblik<b>...</b></h2>");$("#progressBar").html(a[(dosIterator%5)]);dosIterator++;setTimeout("setLoader()",500)}function rsCloseWindow(){if(window.opener){window.opener.focus()}window.close()}function rsResetSubmit(){blnRsSubmit=false}function rsChkPayment(h){if(!document.getElementById("payment_form")){return}var l=document.getElementById("payment_directebanking");var f=document.getElementById("payment_directebanking_label");var w=document.getElementById("payment_mistercash");var u=document.getElementById("payment_mistercash_label");var n=document.getElementById("payment_ei");var k=document.getElementById("payment_ei_label");var e=document.getElementById("payment_ideal");var a=document.getElementById("payment_ideal_label");var g=document.getElementById("payment_cc");var b=document.getElementById("payment_cc_label");var t=false;var q=false;var x=false;var y=false;var o=false;if(h=="1"){q=true;t=true;x=true}else{if(h=="6"){o=true;y=true;t=true}else{if(h=="18"){o=true;t=true}else{if(h=="4"){o=true;t=true}else{if(h=="14"){o=true;t=true}else{t=true}}}}}if(q){if(n){n.style.display=""}if(k){k.style.display=""}}else{if(n){n.style.display="none"}if(k){k.style.display="none"}}if(t){if(g){g.style.display=""}if(b){b.style.display=""}}else{if(g){g.style.display="none"}if(b){b.style.display="none"}}if(x){if(e){e.style.display=""}if(a){a.style.display=""}}else{if(e){e.style.display="none"}if(a){a.style.display="none"}}if(y){if(w){w.style.display=""}if(u){u.style.display=""}}else{if(w){w.style.display="none"}if(u){u.style.display="none"}}if(o){if(l){l.style.display=""}if(f){f.style.display=""}}else{if(l){l.style.display="none"}if(f){f.style.display="none"}}var m=false;var s=false;var p=false;var v=document.forms.reservation.elements.payment;if(v){for(var r=0;r<v.length;r++){if(v[r].style.display=="none"&&v[r].checked==true){m=true}if(v[r].checked==true){p=v[r].value}}if(m==true){for(var r=0;r<v.length;r++){if(v[r].style.display!=="none"){v[r].checked=true;p=v[r].value;break}}}if(p=="1"){s=true}}if(s==true){rs.showElement("creditcard")}else{rs.hideElement("creditcard")}return true}function rsChkPax(e){objForm=document.forms.reservation;rsChkInt(objForm.elements.rooms);rsChkInt(objForm.elements.adults);rsChkInt(objForm.elements.infants);if(!objForm.elements.rooms){intRooms=Number(objForm.elements.adults.value);intPersons=intRooms}else{if(objForm.elements.rooms.value.length>0){intRooms=Number(objForm.elements.rooms.value)}else{intRooms=0}if(objForm.elements.adults.value.length>0){intPersons=Number(objForm.elements.adults.value)}else{intPersons=0}if(objForm.elements.infants.value.length>0){intPersons+=Number(objForm.elements.infants.value)}}var b=intPersons-(intRooms*2);if(e>0){if(b>0){document.getElementById("themediv").style.display=""}else{document.getElementById("themediv").style.display="none"}rs.setRooms(intRooms);rs.setPersons(intPersons)}else{var a=objForm.elements.maxpersons.value;if(intPersons>(intRooms*a)){alert("U kunt maximaal "+a+" personen per kamer reserveren");document.getElementById("infants").value=0}else{rs.setRooms(intRooms);rs.setPersons(intPersons)}}}function rsChkChildAge(a){rsChkInt(a)}function rsChkInt(a){if(!a){return}if(parseInt(a.value)==a.value){return}if(parseInt(a.value)){a.value=parseInt(a.value)}else{a.value=""}}function rsOverview(f,b,a,l,e,g,n,h,m,k){this.setRooms=rsSetRooms;this.setPersons=rsSetPersons;this.setDateFrom=rsSetDateFrom;this.setDateTill=rsSetDateTill;this.addElement=rsAddElement;this.delElement=rsDelElement;this.showElement=rsShowElement;this.hideElement=rsHideElement;this.calculate=rsCalculate;this.draw=rsDraw;this.dateFormat=rsDateFormat;this.blnAutoCalc=false;this.strTotalPrice="0,-";this.intPersons=0;this.intRooms=0;this.intDays=0;this.dateFrom=new Date();this.dateTill=new Date();this.arrElements=new Array();this.strHotel=f;this.blnNoHotel=m?true:false;this.strProductName=k;this.strRoomType=a;this.strPriceclass=b;this.arrDays=h.split(",");this.setRooms(l);this.setPersons(e);this.setDateFrom(g);this.setDateTill(n)}function rsDraw(){var b='<div class="block text">  <div class="panel">    <h1>Prijsoverzicht</h1>    <div class="content">      <h2>'+this.strHotel+'</h2>      <div class="roomtype">'+this.strRoomType+'</div>      <div class="priceclass">'+this.strPriceclass+'</div>      <table class="grid">        <tr>          <th>Aankomst</th>          <td>'+this.arrDays[this.dateFrom.getDay()]+" "+this.dateFormat(this.dateFrom)+"          </td>        </tr>";if(this.dateTill!=false){b+="        <tr>          <th>Vertrek</th>          <td>"+this.arrDays[this.dateTill.getDay()]+" "+this.dateFormat(this.dateTill)+"          </td>        </tr>        <tr>          <th>Aantal nachten</th>          <td>"+(this.intDays-1)+"</td>        </tr>        <tr>"}if(this.blnNoHotel==false){b+="          <th>Aantal kamers</th>          <td>"+(this.intRooms)+"</td>        </tr>        <tr>"}else{b+="       <th>Aantal  "+(this.strProductName)+"</th>          <td>"+(this.intPersons)+"</td>        </tr>        <tr>"}b+="          <th>Aantal personen</th>          <td>"+(this.intPersons)+"</td>        </tr>";b+='<tr><td colspan="2"><hr></td></tr>';for(var a=0;a<this.arrElements.length;a++){if(!this.arrElements[a]["visible"]){continue}b+='        <tr>          <th class="label">'+this.arrElements[a]["label"]+'          </th>          <td class="value">&euro; '+this.arrElements[a]["display"]+"          </td>        </tr>"}b+='<tr><td colspan="2"><hr></td></tr>';b+="   <tr>          <th>Totaalbedrag</th>          <td>&euro; "+String(this.strTotalPrice)+"</td>        </tr>      </table>    </div>  </div</div>";if(!document.getElementById("overview")){document.open();document.write('<div id="overview"></div>');document.close()}document.getElementById("overview").innerHTML=b}function rsCalculate(){if(this.dateTill){var a=Math.round((this.dateTill.getTime()-this.dateFrom.getTime())/(1000*60*60*24))+1}else{var a=1}var g=false;var b=-1;var f=-1;if(this.intDays==a){g=true}this.intDays=a;var k=0;for(var e=0;e<this.arrElements.length;e++){if(!this.arrElements[e]["visible"]){continue}var h=parseFloat(this.arrElements[e]["price"]);if(this.arrElements[e]["units"]){if(this.arrElements[e]["units"].indexOf("nights")!=-1){h=parseFloat(h)*(parseInt(this.intDays)-1)}if(this.arrElements[e]["units"].indexOf("days")!=-1){h=parseFloat(h)*parseInt(this.intDays)}if(this.arrElements[e]["units"].indexOf("rooms")!=-1){h=parseFloat(h)*parseInt(this.intRooms)}if(this.arrElements[e]["units"].indexOf("persons")!=-1){h=parseFloat(h)*parseInt(this.intPersons)}}k+=h;strPrice=String(h.toFixed(2)).split(".");if(!strPrice[1]||strPrice[1]=="00"){strPrice[1]="00"}strPrice=strPrice.join(",");if(this.arrElements[e]["display"]!=strPrice){g=true;this.arrElements[e]["display"]=strPrice}}if(f>-1){decVoucher=this.arrElements[f]["price"]}if(f>-1&&this.arrElements[f]["price"]>k){decVoucher=k;strPrice1=String(decVoucher.toFixed(2)).split(".");if(!strPrice1[1]||strPrice1[1]=="00"){strPrice1[1]="00"}strPrice1=strPrice1.join(",")}else{if(b>-1){this.arrElements[b]["price"]=this.arrElements[f]["price"];strPrice1=String(decVoucher.toFixed(2)).split(".");if(!strPrice1[1]||strPrice1[1]=="00"){strPrice1[1]="00"}strPrice1=strPrice1.join(",")}}strPrice=String(k.toFixed(2)).split(".");if(!strPrice[1]||strPrice[1]=="00"){strPrice[1]="-"}this.strTotalPrice=strPrice.join(",");this.draw()}function rsDateFormat(f){var g="00"+f.getDate();var e="00"+(f.getMonth()+1);var b="0000"+f.getFullYear();var a=g.substring(g.length-2)+"/"+e.substring(e.length-2)+"/"+b.substring(b.length-4);return a}function rsSetRooms(a){this.intRooms=a;if(this.blnAutoCalc==true){this.calculate()}}function rsSetPersons(a){this.intPersons=a;if(this.blnAutoCalc==true){this.calculate()}}function rsSetDateFrom(a){arrDate=a.split("-");this.dateFrom=new Date(arrDate[0],arrDate[1]-1,arrDate[2]);if(this.blnAutoCalc==true){this.calculate()}}function rsSetDateTill(a){arrDate=a.split("-");if(arrDate.length!=3){this.dateTill=false;return}this.dateTill=new Date(arrDate[0],arrDate[1]-1,arrDate[2]);if(this.blnAutoCalc==true){this.calculate()}if(document.getElementById("datetill")){document.getElementById("datetill").innerHTML=this.arrDays[this.dateTill.getDay()]+" "+this.dateFormat(this.dateTill);intNights=Math.ceil((this.dateTill.getTime()-this.dateFrom.getTime())/(1000*60*60*24));if(document.getElementById("datenights")){document.getElementById("datenights").innerHTML=intNights}}}function rsShowElement(b,e){for(var a=0;a<this.arrElements.length;a++){if(this.arrElements[a]["id"]&&this.arrElements[a]["id"]==b){if(typeof e!="undefined"){this.arrElements[a]["price"]=e;this.arrElements[a]["display"]=e}this.arrElements[a]["visible"]=true;break}}if(this.blnAutoCalc==true){this.calculate()}}function rsHideElement(b){for(var a=0;a<this.arrElements.length;a++){if(this.arrElements[a]["id"]&&this.arrElements[a]["id"]==b){this.arrElements[a]["visible"]=false;break}}if(this.blnAutoCalc==true){this.calculate()}}function rsAddElement(g,f,h,e,b){var a=this.arrElements.length;this.arrElements[a]=new Array();this.arrElements[a]["id"]=g;this.arrElements[a]["label"]=f;this.arrElements[a]["price"]=h;this.arrElements[a]["units"]=e;this.arrElements[a]["display"]=h;this.arrElements[a]["visible"]=b;if(this.blnAutoCalc==true){this.calculate()}}function rsDelElement(b){for(var a=0;a<this.arrElements.length;a++){if(this.arrElements[a]["id"]&&this.arrElements[a]["id"]==b){this.arrElements.splice(a,1);break}}if(this.blnAutoCalc==true){this.calculate()}}function rsTheme(e,b,a){this.addPrice=rsThemeAddPrice;this.addField=rsThemeAddField;this.addRow=rsThemeAddRow;this.calculate=rsThemeCalculate;this.extrabed=rsAddExtraBed;this.objOverview=e;this.arrPrices=new Array();this.arrFields=new Array();this.arrFields[0]=new Array();this.intRow=-1;this.intThemeId=b;this.objOverview.addElement("theme_"+this.intThemeId,a,0,"",false)}function rsThemeAddRow(){this.intRow++}function rsThemeAddField(e,a,b){if(!this.arrFields[this.intRow]){this.arrFields[this.intRow]=new Array()}intField=this.arrFields[this.intRow].length;this.arrFields[this.intRow][intField]=new Array();this.arrFields[this.intRow][intField]["type"]=e;this.arrFields[this.intRow][intField]["ids"]=a.split(",")}function rsThemeAddPrice(e,b,a){intPrice=this.arrPrices.length;this.arrPrices[intPrice]=new Array();this.arrPrices[intPrice]["price"]=e;this.arrPrices[intPrice]["from"]=b;this.arrPrices[intPrice]["element"]=a}function rsThemeCalculate(){var m=0;var f=false;var e=new Array();for(var a=0;a<=this.intRow;a++){var g=1;for(var h=0;h<this.arrFields[a].length;h++){var k=0;if(a==0){e[h]=0}for(var b=0;b<this.arrFields[a][h]["ids"].length;b++){objFld=document.getElementById(this.arrFields[a][h]["ids"][b]);if(!objFld){continue}switch(this.arrFields[a][h]["type"]){case"checkbox":if(objFld.checked){k+=1}break;case"select":k+=parseInt(objFld.options[objFld.selectedIndex].value);break;default:k+=parseInt(objFld.value);break}}e[h]=+k;g=k*g}if(g>0){f=true}decPrice=0;if(this.arrPrices[a]!=undefined){if(this.intRow>=1){decPrice=this.arrPrices[a]["price"]}else{for(var l=0;l<this.arrPrices.length;l++){if(this.arrPrices[l]["from"]<=e[this.arrPrices[l]["element"]]){decPrice=this.arrPrices[l]["price"]}}}}m+=decPrice*g}if(f==true){this.objOverview.showElement("theme_"+this.intThemeId,m)}else{this.objOverview.hideElement("theme_"+this.intThemeId)}}function rsAddExtraBed(){var objForm=document.forms.reservation;var intRooms=objForm.elements.rooms.value;var intAdults=objForm.elements.adults.value;var intChild=objForm.elements.infants.value;var intNights=objForm.elements.nights.value;var intPersons=Number(intAdults)+Number(intChild);var intExtraBeds=intPersons-(intRooms*2);var intAge=arrAgeGroup[arrAgeGroup.length-1]["max"];var arrAge=Array();var intPrice=0;var intExtraBedsChk=intPersons-(intRooms*2);if(intChild!=0){for(var intCnt=0;intCnt<intChild;intCnt++){var ObjAge=eval("document.reservation.age"+intCnt);if(ObjAge!=undefined){arrAge[intCnt]=ObjAge.value}}arrAge.sort(function(a,b){return a-b});for(var intCnt=0;intCnt<intChild;intCnt++){var intAgeValue=arrAge[intCnt];if(intAgeValue==""){continue}for(intAgeCount=0;intAgeCount<arrAgeGroup.length;intAgeCount++){if((intAgeValue>=arrAgeGroup[intAgeCount]["min"]&&intAgeValue<=arrAgeGroup[intAgeCount]["max"])&&intExtraBedsChk>0){var intAgePrice=0;intAgePrice=arrExtraBedPrice[arrAgeGroup[intAgeCount]["min"]];intExtraBedsChk=intExtraBedsChk-1;intPrice+=Number(intAgePrice)*Number(intNights)}}}}if(intAdults>(intRooms*2)){for(var intCnt=(intRooms*2);intCnt<intAdults;intCnt++){intPrice+=Number(arrExtraBedPrice[arrAgeGroup[arrAgeGroup.length-1]["min"]])*Number(intNights)}}if(intExtraBeds>0){this.objOverview.showElement("theme_"+this.intThemeId,intPrice);document.getElementById("themediv").style.display=""}else{this.objOverview.hideElement("theme_"+this.intThemeId);document.getElementById("themediv").style.display="none"}}function rsChildAges(a){this.intChildren=0;this.strLabel=a;this.arrAges=new Array();this.arrObjects=new Array();this.themeid=arguments[arguments.length-1];this.check=rsCheck;for(i=1;i<(arguments.length-1);i++){this.arrAges[this.arrAges.length]=arguments[i]}}function rsCheck(g){var f="";var a=parseInt(g.value);var e="theme_"+this.themeid+".extrabed()";if(isNaN(a)){a=0}if(document.getElementById("infants").value<=0||a!=this.intChildren){var f=""}else{f=document.getElementById("childages").innerHTML}if(a!=this.intChildren){for(b=0;b<this.intChildren;b++){objFld=document.forms.reservation.elements["age"+b];if(objFld){this.arrAges[b]=objFld.value}}for(var b=0;b<a;b++){if(b==0){f+='<table class="grid">'}intAge="";if(this.arrAges.length>b){intAge=this.arrAges[b]}else{intAge=""}f+="<tr>                             <th>Leeftijd "+(b+1)+'e kind</th>                           <td>                             <input type="text" name="age'+b+'" value="'+intAge+'"                             onkeyup="'+e+';rsChkInt(this)" size="2" maxlength="2" />                             &nbsp;jaar                          </td>                         </tr>';if(b==a-1){f+="</table>"}}objHtml=document.getElementById("childages");if(objHtml){objHtml.innerHTML=f}this.intChildren=a}if(f.length>0){document.getElementById("childinfo").style.display=""}else{if(document.getElementById("infants").value<=0){document.getElementById("childinfo").style.display="none"}}}function setCode(a){document.getElementById("removecode").value=a;document.reservation.submit()}(function(a){a.fn.stickyPanel=function(e){var e=a.extend({},a.fn.stickyPanel.defaults,e);var b=this.each(function(){a(window).bind("scroll.stickyPanel",{selected:a(this),options:e},a.fn.stickyPanel.Scroll)});return b};a.fn.stickyPanel.Scroll=function(h){var g=h.data.selected;var m=h.data.options;if(a(document).scrollTop()>g.offset().top){var l=0;if(m.topPadding!="undefined"){l=l+m.topPadding}g.data("PanelsTop",g.offset().top-l);if(m.afterDetachCSSClass!=""){g.addClass(m.afterDetachCSSClass)}if(m.savePanelSpace==true){var f=g.outerWidth(true);var b=g.outerHeight(true);var e=g.css("float");var k=Math.ceil(Math.random()*9999);g.data("PanelSpaceID","stickyPanelSpace"+k);g.before("<div id='"+g.data("PanelSpaceID")+"' style='width:"+f+"px;height:"+b+"px;float:"+e+";'></div>")}g.css({top:l,position:"fixed"})}if(a(document).scrollTop()<=g.data("PanelsTop")){if(m.savePanelSpace==true){a("#"+g.data("PanelSpaceID")).remove()}g.css({top:"auto",position:"static"});if(m.afterDetachCSSClass!=""){g.removeClass(m.afterDetachCSSClass)}}};a.fn.stickyPanel.defaults={topPadding:0,afterDetachCSSClass:"",savePanelSpace:false}})(jQuery);(function(m,n,p){var k="object",g=true;function q(s,r){var e=(s[0]||0)-(r[0]||0);return e>0||(!e&&s.length>0&&q(s.slice(1),r.slice(1)))}function h(s){if(typeof s!=k){return s}var e=[],t="";for(var r in s){if(typeof s[r]==k){t=h(s[r])}else{t=[r,(g)?encodeURI(s[r]):s[r]].join("=")}e.push(t)}return e.join("&")}function l(s){var e=[];for(var r in s){if(s[r]){e.push([r,'="',s[r],'"'].join(""))}}return e.join(" ")}function f(s){var e=[];for(var r in s){e.push(['<param name="',r,'" value="',h(s[r]),'" />'].join(""))}return e.join("")}try{var b=p.description||(function(){return(new p("ShockwaveFlash.ShockwaveFlash")).GetVariable("$version")}())}catch(o){b="Unavailable"}var a=b.match(/\d+/g)||[0];m[n]={available:a[0]>0,activeX:p&&!p.name,version:{original:b,array:a,string:a.join("."),major:parseInt(a[0],10)||0,minor:parseInt(a[1],10)||0,release:parseInt(a[2],10)||0},hasVersion:function(e){var r=(/string|number/.test(typeof e))?e.toString().split("."):(/object/.test(typeof e))?[e.major,e.minor]:e||[0,0];return q(a,r)},encodeParams:true,expressInstall:"expressInstall.swf",expressInstallIsActive:false,create:function(s){var e=this;if(!s.swf||e.expressInstallIsActive||(!e.available&&!s.hasVersionFail)){return false}if(!e.hasVersion(s.hasVersion||1)){e.expressInstallIsActive=true;if(typeof s.hasVersionFail=="function"){if(!s.hasVersionFail.apply(s)){return false}}s={swf:s.expressInstall||e.expressInstall,height:137,width:214,flashvars:{MMredirectURL:location.href,MMplayerType:(e.activeX)?"ActiveX":"PlugIn",MMdoctitle:document.title.slice(0,47)+" - Flash Player Installation"}}}attrs={data:s.swf,type:"application/x-shockwave-flash",id:s.id||"flash_"+Math.floor(Math.random()*999999999),width:s.width||320,height:s.height||180,style:s.style||""};g=typeof s.useEncode!=="undefined"?s.useEncode:e.encodeParams;s.movie=s.swf;s.wmode=s.wmode||"opaque";delete s.fallback;delete s.hasVersion;delete s.hasVersionFail;delete s.height;delete s.id;delete s.swf;delete s.useEncode;delete s.width;var r=document.createElement("div");r.innerHTML=["<object ",l(attrs),">",f(s),"</object>"].join("");return r.firstChild}};m.fn[n]=function(e){var r=this.find(k).andSelf().filter(k);if(/string|object/.test(typeof e)){this.each(function(){var t=m(this),s;e=(typeof e==k)?e:{swf:e};e.fallback=this;s=m[n].create(e);if(s){t.children().remove();t.html(s)}})}if(typeof e=="function"){r.each(function(){var s=this,t="jsInteractionTimeoutMs";s[t]=s[t]||0;if(s[t]<660){if(s.clientWidth||s.clientHeight){e.call(s)}else{setTimeout(function(){m(s)[n](e)},s[t]+66)}}})}return r}}(jQuery,"flash",navigator.plugins["Shockwave Flash"]||window.ActiveXObject));var ma_mode="IV";function ma_mk(f,e){f=""+f;while(f.length<e){f="0"+f}return f}function ma_track(){cookies=document.cookie.split(";");var f="";var e="";var b=0;var a=0;snd=0;ident=0;urlp="";params=document.location.href.split("?");if(params[1]){pset=params[1].split("&");for(i=0;i<pset.length;i++){kv=pset[i].split("=");if(kv[0]=="m_i"){urlp=urlp+"I="+kv[1]+"&";document.cookie="m_dir=1;path=/;";snd=1;ident=1;a=1;break}}}for(c=0;c<cookies.length;c++){trcookie=cookies[c].split("=");if(trcookie.length>1){trcookie[0]=trcookie[0].replace(" ","");trcookie[1]=trcookie[1].replace(" ","");if(trcookie[0]=="m_trk"){f=trcookie[1];ident=1;if(ma_mode=="I"){snd=1}urlp=urlp+"PC="+escape(f)+"&"}if(trcookie[0]=="m_ses"){e=trcookie[1]}if(trcookie[0]=="m_cnt"){b=trcookie[1];b=(Number(b)+1)}if(trcookie[0]=="m_dir"){a=1}}}urlp=urlp+"D="+escape(a)+"&";if(e==""){d=new Date();e=ma_mk(d.getFullYear(),4)+ma_mk(d.getMonth(),2)+ma_mk(d.getDate(),2)+ma_mk(d.getHours(),2)+ma_mk(d.getMinutes(),2)+ma_mk(d.getSeconds(),2);document.cookie="m_ses="+e+";path=/;"}document.cookie="m_cnt="+b+";path=/;";urlp=urlp+"TC="+escape(e)+"&CN="+b+"&";for(i=0;i<arguments.length;i++){if(ma_mode=="V"||(ident==1&&ma_mode=="IV")){snd=1}urlp+="P"+(i)+"="+escape(arguments[i])+"&"}urlp+="R="+(""+Math.random()).substring(3);if(ma_mode=="A"){snd=1}if(snd==1){document.write("<script src='https://bookit.emsecure.net/optiext/webtracker.dll?A=T&"+urlp+"'><\/script>")}};
