
dhtmlx=function(obj){for(var a in obj)dhtmlx[a]=obj[a];return dhtmlx;};dhtmlx.extend_api=function(name,map,ext){var t=window[name];if(!t)return;window[name]=function(obj){if(obj&&typeof obj=="object"&&!obj.tagName){var that=t.apply(this,(map._init?map._init(obj):arguments));for(var a in dhtmlx)
if(map[a])this[map[a]](dhtmlx[a]);for(var a in obj){if(map[a])this[map[a]](obj[a]);else if(a.indexOf("on")==0){this.attachEvent(a,obj[a]);}}}else
var that=t.apply(this,arguments);if(map._patch)map._patch(this);return that||this;};window[name].prototype=t.prototype;if(ext)
dhtmlXHeir(window[name].prototype,ext);};dhtmlxAjax={get:function(url,callback){var t=new dtmlXMLLoaderObject(true);t.async=(arguments.length<3);t.waitCall=callback;t.loadXML(url)
return t;},post:function(url,post,callback){var t=new dtmlXMLLoaderObject(true);t.async=(arguments.length<4);t.waitCall=callback;t.loadXML(url,true,post)
return t;},getSync:function(url){return this.get(url,null,true)},postSync:function(url,post){return this.post(url,post,null,true);}}
function dtmlXMLLoaderObject(funcObject,dhtmlObject,async,rSeed){this.xmlDoc="";if(typeof(async)!="undefined")
this.async=async;else
this.async=true;this.onloadAction=funcObject||null;this.mainObject=dhtmlObject||null;this.waitCall=null;this.rSeed=rSeed||false;return this;};dtmlXMLLoaderObject.prototype.waitLoadFunction=function(dhtmlObject){var once=true;this.check=function(){if((dhtmlObject)&&(dhtmlObject.onloadAction!=null)){if((!dhtmlObject.xmlDoc.readyState)||(dhtmlObject.xmlDoc.readyState==4)){if(!once)
return;once=false;if(typeof dhtmlObject.onloadAction=="function")
dhtmlObject.onloadAction(dhtmlObject.mainObject,null,null,null,dhtmlObject);if(dhtmlObject.waitCall){dhtmlObject.waitCall.call(this,dhtmlObject);dhtmlObject.waitCall=null;}}}};return this.check;};dtmlXMLLoaderObject.prototype.getXMLTopNode=function(tagName,oldObj){if(this.xmlDoc.responseXML){var temp=this.xmlDoc.responseXML.getElementsByTagName(tagName);if(temp.length==0&&tagName.indexOf(":")!=-1)
var temp=this.xmlDoc.responseXML.getElementsByTagName((tagName.split(":"))[1]);var z=temp[0];}else
var z=this.xmlDoc.documentElement;if(z){this._retry=false;return z;}
if((_isIE)&&(!this._retry)){var xmlString=this.xmlDoc.responseText;var oldObj=this.xmlDoc;this._retry=true;this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=false;this.xmlDoc["loadXM"+"L"](xmlString);return this.getXMLTopNode(tagName,oldObj);}
dhtmlxError.throwError("LoadXML","Incorrect XML",[(oldObj||this.xmlDoc),this.mainObject]);return document.createElement("DIV");};dtmlXMLLoaderObject.prototype.loadXMLString=function(xmlString){{if(!_isIE){var parser=new DOMParser();this.xmlDoc=parser.parseFromString(xmlString,"text/xml");}else{this.xmlDoc=new ActiveXObject("Microsoft.XMLDOM");this.xmlDoc.async=this.async;this.xmlDoc.onreadystatechange=function(){};this.xmlDoc["loadXM"+"L"](xmlString);}}
if(this.onloadAction)
this.onloadAction(this.mainObject,null,null,null,this);if(this.waitCall){this.waitCall();this.waitCall=null;}}
dtmlXMLLoaderObject.prototype.loadXML=function(filePath,postMode,postVars,rpc){if(this.rSeed)
filePath+=((filePath.indexOf("?")!=-1)?"&":"?")+"a_dhx_rSeed="+(new Date()).valueOf();this.filePath=filePath;if((!_isIE)&&(window.XMLHttpRequest))
this.xmlDoc=new XMLHttpRequest();else{this.xmlDoc=new ActiveXObject("Microsoft.XMLHTTP");}
if(this.async)
this.xmlDoc.onreadystatechange=new this.waitLoadFunction(this);this.xmlDoc.open(postMode?"POST":"GET",filePath,this.async);if(rpc){this.xmlDoc.setRequestHeader("User-Agent","dhtmlxRPC v0.1 ("+navigator.userAgent+")");this.xmlDoc.setRequestHeader("Content-type","text/xml");}
else if(postMode)
this.xmlDoc.setRequestHeader('Content-type','application/x-www-form-urlencoded');this.xmlDoc.setRequestHeader("X-Requested-With","XMLHttpRequest");this.xmlDoc.send(null||postVars);if(!this.async)
(new this.waitLoadFunction(this))();};dtmlXMLLoaderObject.prototype.destructor=function(){this._filterXPath=null;this._getAllNamedChilds=null;this._retry=null;this.async=null;this.rSeed=null;this.filePath=null;this.onloadAction=null;this.mainObject=null;this.xmlDoc=null;this.doXPath=null;this.doXPathOpera=null;this.doXSLTransToObject=null;this.doXSLTransToString=null;this.loadXML=null;this.loadXMLString=null;this.doSerialization=null;this.xmlNodeToJSON=null;this.getXMLTopNode=null;this.setXSLParamValue=null;return null;}
dtmlXMLLoaderObject.prototype.xmlNodeToJSON=function(node){var t={};for(var i=0;i<node.attributes.length;i++)
t[node.attributes[i].name]=node.attributes[i].value;t["_tagvalue"]=node.firstChild?node.firstChild.nodeValue:"";for(var i=0;i<node.childNodes.length;i++){var name=node.childNodes[i].tagName;if(name){if(!t[name])t[name]=[];t[name].push(this.xmlNodeToJSON(node.childNodes[i]));}}
return t;}
function callerFunction(funcObject,dhtmlObject){this.handler=function(e){if(!e)
e=window.event;funcObject(e,dhtmlObject);return true;};return this.handler;};function getAbsoluteLeft(htmlObject){return getOffset(htmlObject).left;}
function getAbsoluteTop(htmlObject){return getOffset(htmlObject).top;}
function getOffsetSum(elem){var top=0,left=0;while(elem){top=top+parseInt(elem.offsetTop);left=left+parseInt(elem.offsetLeft);elem=elem.offsetParent;}
return{top:top,left:left};}
function getOffsetRect(elem){var box=elem.getBoundingClientRect();var body=document.body;var docElem=document.documentElement;var scrollTop=window.pageYOffset||docElem.scrollTop||body.scrollTop;var scrollLeft=window.pageXOffset||docElem.scrollLeft||body.scrollLeft;var clientTop=docElem.clientTop||body.clientTop||0;var clientLeft=docElem.clientLeft||body.clientLeft||0;var top=box.top+scrollTop-clientTop;var left=box.left+scrollLeft-clientLeft;return{top:Math.round(top),left:Math.round(left)};}
function getOffset(elem){if(elem.getBoundingClientRect){return getOffsetRect(elem);}else{return getOffsetSum(elem);}}
function convertStringToBoolean(inputString){if(typeof(inputString)=="string")
inputString=inputString.toLowerCase();switch(inputString){case"1":case"true":case"yes":case"y":case 1:case true:return true;break;default:return false;}}
function getUrlSymbol(str){if(str.indexOf("?")!=-1)
return"&"
else
return"?"}
function dhtmlDragAndDropObject(){if(window.dhtmlDragAndDrop)
return window.dhtmlDragAndDrop;this.lastLanding=0;this.dragNode=0;this.dragStartNode=0;this.dragStartObject=0;this.tempDOMU=null;this.tempDOMM=null;this.waitDrag=0;window.dhtmlDragAndDrop=this;return this;};dhtmlDragAndDropObject.prototype.removeDraggableItem=function(htmlNode){htmlNode.onmousedown=null;htmlNode.dragStarter=null;htmlNode.dragLanding=null;}
dhtmlDragAndDropObject.prototype.addDraggableItem=function(htmlNode,dhtmlObject){htmlNode.onmousedown=this.preCreateDragCopy;htmlNode.dragStarter=dhtmlObject;this.addDragLanding(htmlNode,dhtmlObject);}
dhtmlDragAndDropObject.prototype.addDragLanding=function(htmlNode,dhtmlObject){htmlNode.dragLanding=dhtmlObject;}
dhtmlDragAndDropObject.prototype.preCreateDragCopy=function(e){if((e||window.event)&&(e||event).button==2)
return;if(window.dhtmlDragAndDrop.waitDrag){window.dhtmlDragAndDrop.waitDrag=0;document.body.onmouseup=window.dhtmlDragAndDrop.tempDOMU;document.body.onmousemove=window.dhtmlDragAndDrop.tempDOMM;return false;}
if(window.dhtmlDragAndDrop.dragNode)
window.dhtmlDragAndDrop.stopDrag(e);window.dhtmlDragAndDrop.waitDrag=1;window.dhtmlDragAndDrop.tempDOMU=document.body.onmouseup;window.dhtmlDragAndDrop.tempDOMM=document.body.onmousemove;window.dhtmlDragAndDrop.dragStartNode=this;window.dhtmlDragAndDrop.dragStartObject=this.dragStarter;document.body.onmouseup=window.dhtmlDragAndDrop.preCreateDragCopy;document.body.onmousemove=window.dhtmlDragAndDrop.callDrag;window.dhtmlDragAndDrop.downtime=new Date().valueOf();if((e)&&(e.preventDefault)){e.preventDefault();return false;}
return false;};dhtmlDragAndDropObject.prototype.callDrag=function(e){if(!e)
e=window.event;dragger=window.dhtmlDragAndDrop;if((new Date()).valueOf()-dragger.downtime<100)return;if(!dragger.dragNode){if(dragger.waitDrag){dragger.dragNode=dragger.dragStartObject._createDragNode(dragger.dragStartNode,e);if(!dragger.dragNode)
return dragger.stopDrag();dragger.dragNode.onselectstart=function(){return false;}
dragger.gldragNode=dragger.dragNode;document.body.appendChild(dragger.dragNode);document.body.onmouseup=dragger.stopDrag;dragger.waitDrag=0;dragger.dragNode.pWindow=window;dragger.initFrameRoute();}
else return dragger.stopDrag(e,true);}
if(dragger.dragNode.parentNode!=window.document.body&&dragger.gldragNode){var grd=dragger.gldragNode;if(dragger.gldragNode.old)
grd=dragger.gldragNode.old;grd.parentNode.removeChild(grd);var oldBody=dragger.dragNode.pWindow;if(grd.pWindow&&grd.pWindow.dhtmlDragAndDrop.lastLanding)
grd.pWindow.dhtmlDragAndDrop.lastLanding.dragLanding._dragOut(grd.pWindow.dhtmlDragAndDrop.lastLanding);if(_isIE){var div=document.createElement("Div");div.innerHTML=dragger.dragNode.outerHTML;dragger.dragNode=div.childNodes[0];}else
dragger.dragNode=dragger.dragNode.cloneNode(true);dragger.dragNode.pWindow=window;dragger.gldragNode.old=dragger.dragNode;document.body.appendChild(dragger.dragNode);oldBody.dhtmlDragAndDrop.dragNode=dragger.dragNode;}
dragger.dragNode.style.left=e.clientX+15+(dragger.fx?dragger.fx*(-1):0)
+(document.body.scrollLeft||document.documentElement.scrollLeft)+"px";dragger.dragNode.style.top=e.clientY+3+(dragger.fy?dragger.fy*(-1):0)
+(document.body.scrollTop||document.documentElement.scrollTop)+"px";if(!e.srcElement)
var z=e.target;else
z=e.srcElement;dragger.checkLanding(z,e);}
dhtmlDragAndDropObject.prototype.calculateFramePosition=function(n){if(window.name){var el=parent.frames[window.name].frameElement.offsetParent;var fx=0;var fy=0;while(el){fx+=el.offsetLeft;fy+=el.offsetTop;el=el.offsetParent;}
if((parent.dhtmlDragAndDrop)){var ls=parent.dhtmlDragAndDrop.calculateFramePosition(1);fx+=ls.split('_')[0]*1;fy+=ls.split('_')[1]*1;}
if(n)
return fx+"_"+fy;else
this.fx=fx;this.fy=fy;}
return"0_0";}
dhtmlDragAndDropObject.prototype.checkLanding=function(htmlObject,e){if((htmlObject)&&(htmlObject.dragLanding)){if(this.lastLanding)
this.lastLanding.dragLanding._dragOut(this.lastLanding);this.lastLanding=htmlObject;this.lastLanding=this.lastLanding.dragLanding._dragIn(this.lastLanding,this.dragStartNode,e.clientX,e.clientY,e);this.lastLanding_scr=(_isIE?e.srcElement:e.target);}else{if((htmlObject)&&(htmlObject.tagName!="BODY"))
this.checkLanding(htmlObject.parentNode,e);else{if(this.lastLanding)
this.lastLanding.dragLanding._dragOut(this.lastLanding,e.clientX,e.clientY,e);this.lastLanding=0;if(this._onNotFound)
this._onNotFound();}}}
dhtmlDragAndDropObject.prototype.stopDrag=function(e,mode){dragger=window.dhtmlDragAndDrop;if(!mode){dragger.stopFrameRoute();var temp=dragger.lastLanding;dragger.lastLanding=null;if(temp)
temp.dragLanding._drag(dragger.dragStartNode,dragger.dragStartObject,temp,(_isIE?event.srcElement:e.target));}
dragger.lastLanding=null;if((dragger.dragNode)&&(dragger.dragNode.parentNode==document.body))
dragger.dragNode.parentNode.removeChild(dragger.dragNode);dragger.dragNode=0;dragger.gldragNode=0;dragger.fx=0;dragger.fy=0;dragger.dragStartNode=0;dragger.dragStartObject=0;document.body.onmouseup=dragger.tempDOMU;document.body.onmousemove=dragger.tempDOMM;dragger.tempDOMU=null;dragger.tempDOMM=null;dragger.waitDrag=0;}
dhtmlDragAndDropObject.prototype.stopFrameRoute=function(win){if(win)
window.dhtmlDragAndDrop.stopDrag(1,1);for(var i=0;i<window.frames.length;i++){try{if((window.frames[i]!=win)&&(window.frames[i].dhtmlDragAndDrop))
window.frames[i].dhtmlDragAndDrop.stopFrameRoute(window);}catch(e){}}
try{if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=win))
parent.dhtmlDragAndDrop.stopFrameRoute(window);}catch(e){}}
dhtmlDragAndDropObject.prototype.initFrameRoute=function(win,mode){if(win){window.dhtmlDragAndDrop.preCreateDragCopy();window.dhtmlDragAndDrop.dragStartNode=win.dhtmlDragAndDrop.dragStartNode;window.dhtmlDragAndDrop.dragStartObject=win.dhtmlDragAndDrop.dragStartObject;window.dhtmlDragAndDrop.dragNode=win.dhtmlDragAndDrop.dragNode;window.dhtmlDragAndDrop.gldragNode=win.dhtmlDragAndDrop.dragNode;window.document.body.onmouseup=window.dhtmlDragAndDrop.stopDrag;window.waitDrag=0;if(((!_isIE)&&(mode))&&((!_isFF)||(_FFrv<1.8)))
window.dhtmlDragAndDrop.calculateFramePosition();}
try{if((parent.dhtmlDragAndDrop)&&(parent!=window)&&(parent!=win))
parent.dhtmlDragAndDrop.initFrameRoute(window);}catch(e){}
for(var i=0;i<window.frames.length;i++){try{if((window.frames[i]!=win)&&(window.frames[i].dhtmlDragAndDrop))
window.frames[i].dhtmlDragAndDrop.initFrameRoute(window,((!win||mode)?1:0));}catch(e){}}}
var _isFF=false;var _isIE=false;var _isOpera=false;var _isKHTML=false;var _isMacOS=false;var _isChrome=false;if(navigator.userAgent.indexOf('Macintosh')!=-1)
_isMacOS=true;if(navigator.userAgent.toLowerCase().indexOf('chrome')>-1)
_isChrome=true;if((navigator.userAgent.indexOf('Safari')!=-1)||(navigator.userAgent.indexOf('Konqueror')!=-1)){var _KHTMLrv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Safari')+7,5));if(_KHTMLrv>525){_isFF=true;var _FFrv=1.9;}else
_isKHTML=true;}else if(navigator.userAgent.indexOf('Opera')!=-1){_isOpera=true;_OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf('Opera')+6,3));}
else if(navigator.appName.indexOf("Microsoft")!=-1){_isIE=true;if(navigator.appVersion.indexOf("MSIE 8.0")!=-1&&document.compatMode!="BackCompat")_isIE=8;if(navigator.appVersion.indexOf("MSIE 9.0")!=-1&&document.compatMode!="BackCompat")_isIE=8;if(navigator.appVersion.indexOf("MSIE 9.0")!=-1&&document.compatMode!="BackCompat")_isIE=8;}else{_isFF=true;var _FFrv=parseFloat(navigator.userAgent.split("rv:")[1])}
dtmlXMLLoaderObject.prototype.doXPath=function(xpathExp,docObj,namespace,result_type){if(_isKHTML||(!_isIE&&!window.XPathResult))
return this.doXPathOpera(xpathExp,docObj);if(_isIE){if(!docObj)
if(!this.xmlDoc.nodeName)
docObj=this.xmlDoc.responseXML
else
docObj=this.xmlDoc;if(!docObj)
dhtmlxError.throwError("LoadXML","Incorrect XML",[(docObj||this.xmlDoc),this.mainObject]);if(namespace!=null)
docObj.setProperty("SelectionNamespaces","xmlns:xsl='"+namespace+"'");if(result_type=='single'){return docObj.selectSingleNode(xpathExp);}
else{return docObj.selectNodes(xpathExp)||new Array(0);}}else{var nodeObj=docObj;if(!docObj){if(!this.xmlDoc.nodeName){docObj=this.xmlDoc.responseXML}
else{docObj=this.xmlDoc;}}
if(!docObj)
dhtmlxError.throwError("LoadXML","Incorrect XML",[(docObj||this.xmlDoc),this.mainObject]);if(docObj.nodeName.indexOf("document")!=-1){nodeObj=docObj;}
else{nodeObj=docObj;docObj=docObj.ownerDocument;}
var retType=XPathResult.ANY_TYPE;if(result_type=='single')
retType=XPathResult.FIRST_ORDERED_NODE_TYPE
var rowsCol=new Array();var col=docObj.evaluate(xpathExp,nodeObj,function(pref){return namespace},retType,null);if(retType==XPathResult.FIRST_ORDERED_NODE_TYPE){return col.singleNodeValue;}
var thisColMemb=col.iterateNext();while(thisColMemb){rowsCol[rowsCol.length]=thisColMemb;thisColMemb=col.iterateNext();}
return rowsCol;}}
function _dhtmlxError(type,name,params){if(!this.catches)
this.catches=new Array();return this;}
_dhtmlxError.prototype.catchError=function(type,func_name){this.catches[type]=func_name;}
_dhtmlxError.prototype.throwError=function(type,name,params){if(this.catches[type])
return this.catches[type](type,name,params);if(this.catches["ALL"])
return this.catches["ALL"](type,name,params);alert("Error type: "+arguments[0]+"\nDescription: "+arguments[1]);return null;}
window.dhtmlxError=new _dhtmlxError();dtmlXMLLoaderObject.prototype.doXPathOpera=function(xpathExp,docObj){var z=xpathExp.replace(/[\/]+/gi,"/").split('/');var obj=null;var i=1;if(!z.length)
return[];if(z[0]==".")
obj=[docObj];else if(z[0]==""){obj=(this.xmlDoc.responseXML||this.xmlDoc).getElementsByTagName(z[i].replace(/\[[^\]]*\]/g,""));i++;}else
return[];for(i;i<z.length;i++)obj=this._getAllNamedChilds(obj,z[i]);if(z[i-1].indexOf("[")!=-1)
obj=this._filterXPath(obj,z[i-1]);return obj;}
dtmlXMLLoaderObject.prototype._filterXPath=function(a,b){var c=new Array();var b=b.replace(/[^\[]*\[\@/g,"").replace(/[\[\]\@]*/g,"");for(var i=0;i<a.length;i++)
if(a[i].getAttribute(b))
c[c.length]=a[i];return c;}
dtmlXMLLoaderObject.prototype._getAllNamedChilds=function(a,b){var c=new Array();if(_isKHTML)
b=b.toUpperCase();for(var i=0;i<a.length;i++)for(var j=0;j<a[i].childNodes.length;j++){if(_isKHTML){if(a[i].childNodes[j].tagName&&a[i].childNodes[j].tagName.toUpperCase()==b)
c[c.length]=a[i].childNodes[j];}
else if(a[i].childNodes[j].tagName==b)
c[c.length]=a[i].childNodes[j];}
return c;}
function dhtmlXHeir(a,b){for(var c in b)
if(typeof(b[c])=="function")
a[c]=b[c];return a;}
function dhtmlxEvent(el,event,handler){if(el.addEventListener)
el.addEventListener(event,handler,false);else if(el.attachEvent)
el.attachEvent("on"+event,handler);}
dtmlXMLLoaderObject.prototype.xslDoc=null;dtmlXMLLoaderObject.prototype.setXSLParamValue=function(paramName,paramValue,xslDoc){if(!xslDoc)
xslDoc=this.xslDoc
if(xslDoc.responseXML)
xslDoc=xslDoc.responseXML;var item=this.doXPath("/xsl:stylesheet/xsl:variable[@name='"+paramName+"']",xslDoc,"http:/\/www.w3.org/1999/XSL/Transform","single");if(item!=null)
item.firstChild.nodeValue=paramValue}
dtmlXMLLoaderObject.prototype.doXSLTransToObject=function(xslDoc,xmlDoc){if(!xslDoc)
xslDoc=this.xslDoc;if(xslDoc.responseXML)
xslDoc=xslDoc.responseXML
if(!xmlDoc)
xmlDoc=this.xmlDoc;if(xmlDoc.responseXML)
xmlDoc=xmlDoc.responseXML
if(!_isIE){if(!this.XSLProcessor){this.XSLProcessor=new XSLTProcessor();this.XSLProcessor.importStylesheet(xslDoc);}
var result=this.XSLProcessor.transformToDocument(xmlDoc);}else{var result=new ActiveXObject("Msxml2.DOMDocument.3.0");try{xmlDoc.transformNodeToObject(xslDoc,result);}catch(e){result=xmlDoc.transformNode(xslDoc);}}
return result;}
dtmlXMLLoaderObject.prototype.doXSLTransToString=function(xslDoc,xmlDoc){var res=this.doXSLTransToObject(xslDoc,xmlDoc);if(typeof(res)=="string")
return res;return this.doSerialization(res);}
dtmlXMLLoaderObject.prototype.doSerialization=function(xmlDoc){if(!xmlDoc)
xmlDoc=this.xmlDoc;if(xmlDoc.responseXML)
xmlDoc=xmlDoc.responseXML
if(!_isIE){var xmlSerializer=new XMLSerializer();return xmlSerializer.serializeToString(xmlDoc);}else
return xmlDoc.xml;}
dhtmlxEventable=function(obj){obj.attachEvent=function(name,catcher,callObj){name='ev_'+name.toLowerCase();if(!this[name])
this[name]=new this.eventCatcher(callObj||this);return(name+':'+this[name].addEvent(catcher));}
obj.callEvent=function(name,arg0){name='ev_'+name.toLowerCase();if(this[name])
return this[name].apply(this,arg0);return true;}
obj.checkEvent=function(name){return(!!this['ev_'+name.toLowerCase()])}
obj.eventCatcher=function(obj){var dhx_catch=[];var z=function(){var res=true;for(var i=0;i<dhx_catch.length;i++){if(dhx_catch[i]!=null){var zr=dhx_catch[i].apply(obj,arguments);res=res&&zr;}}
return res;}
z.addEvent=function(ev){if(typeof(ev)!="function")
ev=eval(ev);if(ev)
return dhx_catch.push(ev)-1;return false;}
z.removeEvent=function(id){dhx_catch[id]=null;}
return z;}
obj.detachEvent=function(id){if(id!=false){var list=id.split(':');this[list[0]].removeEvent(list[1]);}}
obj.detachAllEvents=function(){for(var name in this){if(name.indexOf("ev_")==0)
delete this[name];}}}
function dhtmlXCalendarObject(inps,skin){this.i={};this.uid=function(){if(!this.uidd)this.uidd=new Date().getTime();return this.uidd++;}
var p=null;if(typeof(inps)=="string"){var t0=document.getElementById(inps);}else{var t0=inps;}
if(t0&&typeof(t0)=="object"&&t0.tagName&&String(t0.tagName).toLowerCase()!="input")p=t0;t0=null;if(typeof(inps)!="object"||!inps.length)inps=[inps];for(var q=0;q<inps.length;q++){if(typeof(inps[q])=="string")inps[q]=(document.getElementById(inps[q])||null);if(inps[q]!=null&&inps[q].tagName&&String(inps[q].tagName).toLowerCase()=="input"){this.i[this.uid()]=inps[q];}
inps[q]=null;}
this.skin=skin||"dhx_skyblue";this.setSkin=function(skin){this.skin=skin;this.base.className="dhtmlxcalendar_container dhtmlxcalendar_skin_"+this.skin;}
this.base=document.createElement("DIV");this.base.className="dhtmlxcalendar_container";this.base.style.display="none";if(p!=null){this._hasParent=true;p.appendChild(this.base);p=null;}else{document.body.appendChild(this.base);}
this.setParent=function(p){if(this._hasParent){if(typeof(p)=="object"){p.appendChild(this.base);}else if(typeof(p)=="string"){document.getElementById(p).appendChild(this.base);}}}
this.setSkin(this.skin);this.base.onclick=function(e){e=e||event;e.cancelBubble=true;}
this.loadUserLanguage=function(lang){if(!this.langData[lang])return;this.lang=lang;this.setWeekStartDay(this.langData[this.lang].weekstart);if(this.msCont){var e=0;for(var q=0;q<this.msCont.childNodes.length;q++){for(var w=0;w<this.msCont.childNodes[q].childNodes.length;w++){this.msCont.childNodes[q].childNodes[w].innerHTML=this.langData[this.lang].monthesSNames[e++];}}}}
this.contMonth=document.createElement("DIV");this.contMonth.className="dhtmlxcalendar_month_cont";this.contMonth.onselectstart=function(e){e=e||event;e.cancelBubble=true;e.returnValue=false;return false;}
this.base.appendChild(this.contMonth);var ul=document.createElement("UL");ul.className="dhtmlxcalendar_line";this.contMonth.appendChild(ul);var li=document.createElement("LI");li.className="dhtmlxcalendar_cell dhtmlxcalendar_month_hdr";li.innerHTML="<div class='dhtmlxcalendar_month_arrow dhtmlxcalendar_month_arrow_left' onmouseover='this.className=\"dhtmlxcalendar_month_arrow dhtmlxcalendar_month_arrow_left_hover\";' onmouseout='this.className=\"dhtmlxcalendar_month_arrow dhtmlxcalendar_month_arrow_left\";'></div>"+"<span class='dhtmlxcalendar_month_label_month'>Month</span><span class='dhtmlxcalendar_month_label_year'>Year</span>"+"<div class='dhtmlxcalendar_month_arrow dhtmlxcalendar_month_arrow_right' onmouseover='this.className=\"dhtmlxcalendar_month_arrow dhtmlxcalendar_month_arrow_right_hover\";' onmouseout='this.className=\"dhtmlxcalendar_month_arrow dhtmlxcalendar_month_arrow_right\";'></div>";ul.appendChild(li);var that=this;li.onclick=function(e){e=e||event;var t=(e.target||e.srcElement);if(t.className&&t.className.indexOf("dhtmlxcalendar_month_arrow")===0){that._hideSelector();var ind=(t.parentNode.firstChild==t?-1:1);that._drawMonth(new Date(that._activeMonth.getFullYear(),that._activeMonth.getMonth()+ind,1,0,0,0,0));that._doOnSelectorChange();return;}
if(t.className&&t.className=="dhtmlxcalendar_month_label_month"){e.cancelBubble=true;that._showSelector("month",31,21,"selector_month",true);return;}
if(t.className&&t.className=="dhtmlxcalendar_month_label_year"){e.cancelBubble=true;that._showSelector("year",42,21,"selector_year",true);return;}
that._hideSelector();}
this.contDays=document.createElement("DIV");this.contDays.className="dhtmlxcalendar_days_cont";this.base.appendChild(this.contDays);this.setWeekStartDay=function(ind){if(ind==0)ind=7;this._wStart=Math.min(Math.max((isNaN(ind)?1:ind),1),7);this._drawDaysOfWeek();}
this._drawDaysOfWeek=function(){if(this.contDays.childNodes.length==0){var ul=document.createElement("UL");ul.className="dhtmlxcalendar_line";this.contDays.appendChild(ul);}else{var ul=this.contDays.firstChild;}
var w=this._wStart;var k=this.langData[this.lang].daysSNames;k.push(String(this.langData[this.lang].daysSNames[0]).valueOf());for(var q=0;q<7;q++){if(ul.childNodes[q]==null){var li=document.createElement("LI");ul.appendChild(li);}else{var li=ul.childNodes[q];}
li.className="dhtmlxcalendar_cell"+(w>=6?" dhtmlxcalendar_day_weekday_cell":"")+(q==0?"_first":"");li.innerHTML=k[w];if(++w>7)w=1;}
if(this._activeMonth!=null)this._drawMonth(this._activeMonth);}
this._wStart=this.langData[this.lang].weekstart;this.setWeekStartDay(this._wStart);this.contDates=document.createElement("DIV");this.contDates.className="dhtmlxcalendar_dates_cont";this.base.appendChild(this.contDates);this.contDates.onclick=function(e){e=e||event;var t=(e.target||e.srcElement);if(t._date!=null&&!t._css_dis){var t1=that._activeDate.getHours();var t2=that._activeDate.getMinutes();if(that.checkEvent("onBeforeChange")){if(!that.callEvent("onBeforeChange",[new Date(t._date.getFullYear(),t._date.getMonth(),t._date.getDate(),t1,t2)]))return;}
if(that._activeDateCell!=null){that._activeDateCell._css_date=false;that._updateCellStyle(that._activeDateCell._q,that._activeDateCell._w);}
var refreshView=(that._hasParent&&that._activeDate.getFullYear()+"_"+that._activeDate.getMonth()!=t._date.getFullYear()+"_"+t._date.getMonth());that._activeDate=new Date(t._date.getFullYear(),t._date.getMonth(),t._date.getDate(),t1,t2);that._activeDateCell=t;that._activeDateCell._css_date=true;that._activeDateCell._css_hover=false;that._lastHover=null;that._updateCellStyle(that._activeDateCell._q,that._activeDateCell._w);if(refreshView)that._drawMonth(that._activeDate);if(that._activeInp&&that.i[that._activeInp]){that.i[that._activeInp].value=that._dateToStr(new Date(that._activeDate.getTime()));}
if(!that._hasParent)that._hide();that.callEvent("onClick",[new Date(that._activeDate.getTime())]);}}
this.contDates.onmouseover=function(e){e=e||event;var t=(e.target||e.srcElement);if(t._date!=null){t._css_hover=true;that._updateCellStyle(t._q,t._w);that._lastHover=t;}}
this.contDates.onmouseout=function(){that._clearDayHover();}
this._lastHover=null;this._clearDayHover=function(){if(!this._lastHover)return;this._lastHover._css_hover=false;this._updateCellStyle(this._lastHover._q,this._lastHover._w);this._lastHover=null;}
for(var q=0;q<6;q++){var ul=document.createElement("UL");ul.className="dhtmlxcalendar_line";this.contDates.appendChild(ul);for(var w=0;w<7;w++){var li=document.createElement("LI");li.className="dhtmlxcalendar_cell";ul.appendChild(li);}}
this.contTime=document.createElement("DIV");this.contTime.className="dhtmlxcalendar_time_cont";this.base.appendChild(this.contTime);this.showTime=function(){if(String(this.base.className).search("dhtmlxcalendar_time_hidden")>0)this.base.className=String(this.base.className).replace(/dhtmlxcalendar_time_hidden/gi,"");}
this.hideTime=function(){if(String(this.base.className).search("dhtmlxcalendar_time_hidden")<0)this.base.className+=" dhtmlxcalendar_time_hidden";}
var ul=document.createElement("UL");ul.className="dhtmlxcalendar_line";this.contTime.appendChild(ul);var li=document.createElement("LI");li.className="dhtmlxcalendar_cell dhtmlxcalendar_time_hdr";li.innerHTML="<div class='dhtmlxcalendar_time_label'></div><span class='dhtmlxcalendar_label_hours'></span><span class='dhtmlxcalendar_label_colon'>:</span><span class='dhtmlxcalendar_label_minutes'></span>";ul.appendChild(li);li.onclick=function(e){e=e||event;var t=(e.target||e.srcElement);if(t.className&&t.className=="dhtmlxcalendar_label_hours"){e.cancelBubble=true;that._showSelector("hours",3,115,"selector_hours",true);return;}
if(t.className&&t.className=="dhtmlxcalendar_label_minutes"){e.cancelBubble=true;that._showSelector("minutes",59,115,"selector_minutes",true);return;}
that._hideSelector();}
this._activeMonth=null;this._activeDate=new Date();this._activeDateCell=null;this.setDate=function(d){if(d==="")d=new Date();if(!(d instanceof Date))d=this._strToDate(d,false);var time=d.getTime();if(this._isOutOfRange(time))return;this._activeDate=new Date(time);this._drawMonth(this._activeDate);this._updateVisibleHours();this._updateVisibleMinutes();}
this.setDateVakantiehuis=function(d){if(d==="")d=new Date();if(!(d instanceof Date))d=this._strToDate(d,false);var time=d.getTime();this._activeDate=new Date(time);this._drawMonth(this._activeMonth);}
this.setActiveMonth=function(d){if(d==="")d=new Date();if(!(d instanceof Date))d=this._strToDate(d,false);var time=d.getTime();this._activeMonth=new Date(d.getFullYear(),d.getMonth(),1,0,0,0,0);this._drawMonth(new Date(time));}
this.getActiveMonth=function(formated){var t=new Date(this._activeMonth.getTime());if(formated)return this._dateToStr(t);return t;}
this.getDate=function(formated){var t=new Date(this._activeDate.getTime());if(formated)return this._dateToStr(t);return t;}
this._drawMonth=function(d){if(!(d instanceof Date))return;if(isNaN(d.getFullYear()))d=new Date(this._activeMonth.getFullYear(),this._activeMonth.getMonth(),1,0,0,0,0);this._activeMonth=new Date(d.getFullYear(),d.getMonth(),1,0,0,0,0);this._activeDateCell=null;var first=new Date(this._activeMonth.getTime());var d0=first.getDay();var e0=d0-this._wStart;if(e0<0)e0=e0+7;first.setDate(first.getDate()-e0);var mx=d.getMonth();var dx=new Date(this._activeDate.getFullYear(),this._activeDate.getMonth(),this._activeDate.getDate(),0,0,0,0).getTime();var i=0;var test=0;for(var q=0;q<6;q++){var ws=this._wStart;for(var w=0;w<7;w++){var d2=new Date(first.getFullYear(),first.getMonth(),first.getDate()+i++,0,0,0,0);this.contDates.childNodes[q].childNodes[w].innerHTML=d2.getDate();var day=d2.getDay();var time=d2.getTime();this.contDates.childNodes[q].childNodes[w]._date=new Date(time);this.contDates.childNodes[q].childNodes[w]._q=q;this.contDates.childNodes[q].childNodes[w]._w=w;this.contDates.childNodes[q].childNodes[w]._css_month=(d2.getMonth()==mx);this.contDates.childNodes[q].childNodes[w]._css_date=(time==dx);this.contDates.childNodes[q].childNodes[w]._css_weekend=(ws>=6);this.contDates.childNodes[q].childNodes[w]._css_sen=false;if(this._rangeSensitiveDays[time]==true)
{this.contDates.childNodes[q].childNodes[w]._css_sen=true;}
if(this._rangeEnabledDays[time]==true)
{this.contDates.childNodes[q].childNodes[w]._css_dis=false;}
else
{this.contDates.childNodes[q].childNodes[w]._css_dis=this._isOutOfRange(time);}
this.contDates.childNodes[q].childNodes[w]._css_holiday=(this._holidays[time]==true);this._updateCellStyle(q,w);if(time==dx)this._activeDateCell=this.contDates.childNodes[q].childNodes[w];if(++ws>7)ws=1;}}
this.contMonth.firstChild.firstChild.childNodes[1].innerHTML=this.langData[this.lang].monthesFNames[d.getMonth()];this.contMonth.firstChild.firstChild.childNodes[2].innerHTML=d.getFullYear();}
this._updateCellStyle=function(q,w){var r=this.contDates.childNodes[q].childNodes[w];var s="dhtmlxcalendar_cell dhtmlxcalendar_cell";s+=(r._css_month?"_month":"");s+=(r._css_date?"_date":"");s+=(r._css_weekend?"_weekend":"");s+=(r._css_holiday?"_holiday":"");if(r._css_dis)
{if(r._css_sen)
{s+="_sen";}
else
{s+="_dis";}}
s+=(r._css_hover&&!r._css_dis?"_hover":"");r.className=s;r=null;}
this._initSelector=function(type,css){if(!this._selCover){this._selCover=document.createElement("DIV");this._selCover.className="dhtmlxcalendar_selector_cover";this.base.appendChild(this._selCover);}
if(!this._sel){this._sel=document.createElement("DIV");this._sel.className="dhtmlxcalendar_selector_obj";this.base.appendChild(this._sel);this._sel.appendChild(document.createElement("TABLE"));this._sel.firstChild.className="dhtmlxcalendar_selector_table";this._sel.firstChild.cellSpacing=0;this._sel.firstChild.cellPadding=0;this._sel.firstChild.border=0;this._sel.firstChild.appendChild(document.createElement("TBODY"));this._sel.firstChild.firstChild.appendChild(document.createElement("TR"));this._sel.firstChild.firstChild.firstChild.appendChild(document.createElement("TD"));this._sel.firstChild.firstChild.firstChild.appendChild(document.createElement("TD"));this._sel.firstChild.firstChild.firstChild.appendChild(document.createElement("TD"));this._sel.firstChild.firstChild.firstChild.childNodes[0].className="dhtmlxcalendar_selector_cell_left";this._sel.firstChild.firstChild.firstChild.childNodes[1].className="dhtmlxcalendar_selector_cell_middle";this._sel.firstChild.firstChild.firstChild.childNodes[2].className="dhtmlxcalendar_selector_cell_right";this._sel.firstChild.firstChild.firstChild.childNodes[0].innerHTML="&nbsp;";this._sel.firstChild.firstChild.firstChild.childNodes[2].innerHTML="&nbsp;";this._sel.firstChild.firstChild.firstChild.childNodes[0].onmouseover=function(){this.className="dhtmlxcalendar_selector_cell_left dhtmlxcalendar_selector_cell_left_hover";}
this._sel.firstChild.firstChild.firstChild.childNodes[0].onmouseout=function(){this.className="dhtmlxcalendar_selector_cell_left";}
this._sel.firstChild.firstChild.firstChild.childNodes[2].onmouseover=function(){this.className="dhtmlxcalendar_selector_cell_right dhtmlxcalendar_selector_cell_right_hover";}
this._sel.firstChild.firstChild.firstChild.childNodes[2].onmouseout=function(){this.className="dhtmlxcalendar_selector_cell_right";}
this._sel.firstChild.firstChild.firstChild.childNodes[0].onclick=function(e){e=e||event;e.cancelBubble=true;that._scrollYears(-1);}
this._sel.firstChild.firstChild.firstChild.childNodes[2].onclick=function(e){e=e||event;e.cancelBubble=true;that._scrollYears(1);}
this._sel._ta={};this._selHover=null;this._sel.onmouseover=function(e){e=e||event;var t=(e.target||e.srcElement);if(t._cell===true){if(that._selHover!=t)that._clearSelHover();if(String(t.className).match(/^\s{0,}dhtmlxcalendar_selector_cell\s{0,}$/gi)!=null){t.className+=" dhtmlxcalendar_selector_cell_hover";that._selHover=t;}}}
this._sel.onmouseout=function(){that._clearSelHover();}
this._sel.appendChild(document.createElement("DIV"));this._sel.lastChild.className="dhtmlxcalendar_selector_obj_arrow";}
if(this._sel._ta[type]==true)return;if(type=="month"){this._msCells={};this.msCont=document.createElement("DIV");this.msCont.className="dhtmlxcalendar_area_"+css;this._sel.firstChild.firstChild.firstChild.childNodes[1].appendChild(this.msCont);var i=0;for(var q=0;q<4;q++){var ul=document.createElement("UL");ul.className="dhtmlxcalendar_selector_line";this.msCont.appendChild(ul);for(var w=0;w<3;w++){var li=document.createElement("LI");li.innerHTML=this.langData[this.lang].monthesSNames[i];li.className="dhtmlxcalendar_selector_cell";ul.appendChild(li);li._month=i;li._cell=true;this._msCells[i++]=li;}}
this.msCont.onclick=function(e){e=e||event;e.cancelBubble=true;var t=(e.target||e.srcElement);if(t._month!=null){that._hideSelector();that._updateActiveMonth();that._drawMonth(new Date(that._activeMonth.getFullYear(),t._month,1,0,0,0,0));that._doOnSelectorChange();}}}
if(type=="year"){this._ysCells={};this.ysCont=document.createElement("DIV");this.ysCont.className="dhtmlxcalendar_area_"+css;this._sel.firstChild.firstChild.firstChild.childNodes[1].appendChild(this.ysCont);for(var q=0;q<4;q++){var ul=document.createElement("UL");ul.className="dhtmlxcalendar_selector_line";this.ysCont.appendChild(ul);for(var w=0;w<3;w++){var li=document.createElement("LI");li.className="dhtmlxcalendar_selector_cell";li._cell=true;ul.appendChild(li);}}
this.ysCont.onclick=function(e){e=e||event;e.cancelBubble=true;var t=(e.target||e.srcElement);if(t._year!=null){that._hideSelector();that._drawMonth(new Date(t._year,that._activeMonth.getMonth(),1,0,0,0,0));that._doOnSelectorChange();}}}
if(type=="hours"){this._hsCells={};this.hsCont=document.createElement("DIV");this.hsCont.className="dhtmlxcalendar_area_"+css;this._sel.firstChild.firstChild.firstChild.childNodes[1].appendChild(this.hsCont);var i=0;for(var q=0;q<4;q++){var ul=document.createElement("UL");ul.className="dhtmlxcalendar_selector_line";this.hsCont.appendChild(ul);for(var w=0;w<6;w++){var li=document.createElement("LI");li.innerHTML=this._fixLength(i,2);li.className="dhtmlxcalendar_selector_cell";ul.appendChild(li);li._hours=i;li._cell=true;this._hsCells[i++]=li;}}
this.hsCont.onclick=function(e){e=e||event;e.cancelBubble=true;var t=(e.target||e.srcElement);if(t._hours!=null){that._hideSelector();that._activeDate.setHours(t._hours);that._updateActiveHours();that._updateVisibleHours();that._doOnSelectorChange();}}}
if(type=="minutes"){this._rsCells={};this.rsCont=document.createElement("DIV");this.rsCont.className="dhtmlxcalendar_area_"+css;this._sel.firstChild.firstChild.firstChild.childNodes[1].appendChild(this.rsCont);var i=0;for(var q=0;q<4;q++){var ul=document.createElement("UL");ul.className="dhtmlxcalendar_selector_line";this.rsCont.appendChild(ul);for(var w=0;w<3;w++){var li=document.createElement("LI");li.innerHTML=this._fixLength(i,2);li.className="dhtmlxcalendar_selector_cell";ul.appendChild(li);li._minutes=i;li._cell=true;this._rsCells[i]=li;i+=5;}}
this.rsCont.onclick=function(e){e=e||event;e.cancelBubble=true;var t=(e.target||e.srcElement);if(t._minutes!=null){that._hideSelector();that._activeDate.setMinutes(t._minutes);that._updateActiveMinutes();that._updateVisibleMinutes();that._doOnSelectorChange();}}}
this._sel._ta[type]=true;}
this._showSelector=function(type,x,y,css,autoHide){if(autoHide===true&&this._sel!=null&&this._isSelectorVisible()&&type==this._sel._t){this._hideSelector();return;}
if(!this._sel||!this._sel._ta[type])this._initSelector(type,css);this._selCover.style.display="";this._sel._t=type;this._sel.style.left=x+"px";this._sel.style.top=y+"px";this._sel.style.display="";this._sel.className="dhtmlxcalendar_selector_obj dhtmlxcalendar_"+css;this._doOnSelectorShow(type);}
this._doOnSelectorShow=function(type){if(type=="month")this._updateActiveMonth();if(type=="year")this._updateYearsList(this._activeMonth);if(type=="hours")this._updateActiveHours();if(type=="minutes")this._updateActiveMinutes();}
this._hideSelector=function(){if(!this._sel)return;this._sel.style.display="none";this._selCover.style.display="none";}
this._isSelectorVisible=function(){if(!this._sel)return false;return(this._sel.style.display!="none");}
this._doOnSelectorChange=function(state){this.callEvent("onChange",[new Date(this._activeMonth.getFullYear(),this._activeMonth.getMonth(),this._activeDate.getDate(),this._activeDate.getHours(),this._activeDate.getMinutes(),this._activeDate.getSeconds()),state]);}
this._clearSelHover=function(){if(!this._selHover)return;this._selHover.className=String(this._selHover.className.replace(/dhtmlxcalendar_selector_cell_hover/gi,""));this._selHover=null;}
this._updateActiveMonth=function(){if(typeof(this._msActive)!="undefined"&&typeof(this._msCells[this._msActive])!="undefined")this._msCells[this._msActive].className="dhtmlxcalendar_selector_cell";this._msActive=this._activeMonth.getMonth();this._msCells[this._msActive].className="dhtmlxcalendar_selector_cell dhtmlxcalendar_selector_cell_active";}
this._updateActiveYear=function(){var i=this._activeMonth.getFullYear();if(this._ysCells[i])this._ysCells[i].className="dhtmlxcalendar_selector_cell dhtmlxcalendar_selector_cell_active";}
this._updateYearsList=function(d){for(var a in this._ysCells){this._ysCells[a]=null;delete this._ysCells[a];}
var i=12*Math.floor(d.getFullYear()/12);for(var q=0;q<4;q++){for(var w=0;w<3;w++){this.ysCont.childNodes[q].childNodes[w].innerHTML=i;this.ysCont.childNodes[q].childNodes[w]._year=i;this.ysCont.childNodes[q].childNodes[w].className="dhtmlxcalendar_selector_cell";this._ysCells[i++]=this.ysCont.childNodes[q].childNodes[w];}}
this._updateActiveYear();}
this._scrollYears=function(i){var y=(i<0?this.ysCont.firstChild.firstChild._year:this.ysCont.lastChild.lastChild._year)+i;var d=new Date(y,this._activeMonth.getMonth(),1,0,0,0,0);this._updateYearsList(d);}
this._updateActiveHours=function(){if(typeof(this._hsActive)!="undefined"&&typeof(this._hsCells[this._hsActive])!="undefined")this._hsCells[this._hsActive].className="dhtmlxcalendar_selector_cell";this._hsActive=this._activeDate.getHours();this._hsCells[this._hsActive].className="dhtmlxcalendar_selector_cell dhtmlxcalendar_selector_cell_active";}
this._updateVisibleHours=function(){this.contTime.firstChild.firstChild.childNodes[1].innerHTML=this._fixLength(this._activeDate.getHours(),2);}
this._updateActiveMinutes=function(){if(typeof(this._rsActive)!="undefined"&&typeof(this._rsCells[this._rsActive])!="undefined")this._rsCells[this._rsActive].className="dhtmlxcalendar_selector_cell";this._rsActive=this._activeDate.getMinutes();if(typeof(this._rsCells[this._rsActive])!="undefined")this._rsCells[this._rsActive].className="dhtmlxcalendar_selector_cell dhtmlxcalendar_selector_cell_active";}
this._updateVisibleMinutes=function(){this.contTime.firstChild.firstChild.childNodes[3].innerHTML=this._fixLength(this._activeDate.getMinutes(),2);}
this._fixLength=function(t,r){while(String(t).length<r)t="0"+String(t);return t;}
this._dateFormat="";this._dateFormatRE=null;this.setDateFormat=function(format){this._dateFormat=format;this._dateFormatRE=new RegExp(String(this._dateFormat).replace(/%[a-zA-Z]+/g,function(t){var t2=t.replace(/%/,"");switch(t2){case"m":case"d":case"H":case"i":case"s":return"\\d{2}";case"Y":return"\\d{4}";}
return t;}));}
this.setDateFormat("%Y-%m-%d");this._strToDate=function(val,getSet,format){var i={Y:false,m:false,d:false,H:false,i:false,s:false};var a=String(val).match(/[0-9]{1,}/g);var b=(format||this._dateFormat).match(/%[a-zA-Z]/g);if(!a)return"Invalid Date";for(var q=0;q<b.length;q++){var r=b[q].replace(/%/g,"");if(typeof(i[r])!="undefined")i[r]=Number(a[q]);}
if(getSet)return i;for(var a in i)if(i[a]===false)i[a]=0;return new Date(i.Y,i.m-1,i.d,i.H,i.i,i.s,0);}
this._dateToStr=function(val,format){if(val instanceof Date){var z=function(t){return(String(t).length==1?"0"+String(t):t);}
var k=function(t){switch(t){case"%d":return z(val.getDate());case"%j":return val.getDate();case"%D":return that.langData[that.lang].daysSNames[val.getDay()];case"%l":return that.langData[that.lang].daysFNames[val.getDay()];case"%m":return z(val.getMonth()+1);case"%n":return date.getMonth()+1;case"%M":return that.langData[that.lang].monthesSNames[val.getMonth()];case"%F":return that.langData[that.lang].monthesFNames[val.getMonth()];case"%y":return z(val.getYear()%100);case"%Y":return val.getFullYear();case"%g":return(val.getHours()+11)%12+1;case"%h":return z((val.getHours()+11)%12+1);case"%G":return val.getHours();case"%H":return z(val.getHours());case"%i":return z(val.getMinutes());case"%s":return z(val.getSeconds());case"%a":return(val.getHours()>11?"pm":"am");case"%A":return(val.getHours()>11?"PM":"AM");case"%%":"%";default:return t;}}
var t=String(format||this._dateFormat).replace(/%[a-zA-Z]/g,k);}
return(t||String(val));}
this._updateDateStr=function(str){if(str==""){this.setDate(new Date());this.callEvent("onChange",[null,true]);return;}else{if(!this._dateFormatRE||!str.match(this._dateFormatRE))return;}
var r=this._strToDate(str,true);var newDate=new Date(this._activeMonth.getFullYear(),this._activeMonth.getMonth(),this._activeDate.getDate(),this._activeDate.getHours(),this._activeDate.getMinutes(),this._activeDate.getSeconds());if(r.Y!==false&&r.Y!=newDate.getFullYear())this._activeDate.setFullYear(r.Y);if(r.m!==false){r.m--;if(r.m!=newDate.getMonth())this._activeDate.setMonth(r.m);}
if(r.d!==false&&r.d!=newDate.getDate())this._activeDate.setDate(r.d);if(r.H!==false&&r.H!=newDate.getHours())this._activeDate.setHours(r.H);if(r.i!==false&&r.i!=newDate.getMinutes())this._activeDate.setMinutes(r.i);if(r.s!==false&&r.s!=newDate.getSeconds())this._activeDate.setSeconds(r.s);this._drawMonth(this._activeDate);this._updateVisibleMinutes();this._updateVisibleHours();if(this._sel&&this._isSelectorVisible())this._doOnSelectorShow(this._sel._t);this._doOnSelectorChange(true);}
this.setFormatedDate=function(format,str,a,return_only){var date=this._strToDate(str,false,format);if(return_only)return date;this.setDate(date);}
this.getFormatedDate=function(format,date){if(!(date&&date instanceof Date))date=new Date(this._activeDate);return this._dateToStr(date,format);}
this.show=function(id){if(!id&&this._hasParent){this._show();return;}
if(typeof(id)=="object"&&typeof(id._dhtmlxcalendar_uid)!="undefined"&&this.i[id._dhtmlxcalendar_uid]==id){this._show(id._dhtmlxcalendar_uid);return;}
if(typeof(id)=="undefined"){for(var a in this.i)if(!id)id=a;}
if(!id)return;this._show(id);}
this.hide=function(){if(this._isVisible())this._hide();}
this.isVisible=function(){return this._isVisible();}
this.draw=function(){this.show();}
this.close=function(){this.hide();}
this._activeInp=null;this.pos="bottom";this.setPosition=function(x,y){if(x=="right"||x=="bottom"){this.pos=x;return;}
if(!this._hasParent){if(typeof(x)!="undefined"&&!isNaN(x))this.base.style.left=x+"px";if(typeof(y)!="undefined"&&!isNaN(y))this.base.style.top=y+"px";}}
this._show=function(inpId,autoHide){if(autoHide===true&&this._activeInp==inpId&&this._isVisible()){this._hide();return;}
if(!inpId){this.base.style.left="0px";this.base.style.top="0px";}else{if(this.pos=="right"){this.base.style.left=this._getLeft(this.i[inpId])+this.i[inpId].offsetWidth-1+"px";this.base.style.top=this._getTop(this.i[inpId])+"px";}else{this.base.style.left=this._getLeft(this.i[inpId])+"px";this.base.style.top=this._getTop(this.i[inpId])+this.i[inpId].offsetHeight-1+"px";}
this._activeInp=inpId;}
this._hideSelector();this.base.style.display="";}
this._hide=function(){this._hideSelector();this.base.style.display="none";this._activeInp=null;}
this._isVisible=function(){return(this.base.style.display!="none");}
this._getLeft=function(obj){return this._posGetOffset(obj).left;}
this._getTop=function(obj){return this._posGetOffset(obj).top;}
this._posGetOffsetSum=function(elem){var top=0,left=0;while(elem){top=top+parseInt(elem.offsetTop);left=left+parseInt(elem.offsetLeft);elem=elem.offsetParent;}
return{top:top,left:left};}
this._posGetOffsetRect=function(elem){var box=elem.getBoundingClientRect();var body=document.body;var docElem=document.documentElement;var scrollTop=window.pageYOffset||docElem.scrollTop||body.scrollTop;var scrollLeft=window.pageXOffset||docElem.scrollLeft||body.scrollLeft;var clientTop=docElem.clientTop||body.clientTop||0;var clientLeft=docElem.clientLeft||body.clientLeft||0;var top=box.top+scrollTop-clientTop;var left=box.left+scrollLeft-clientLeft;return{top:Math.round(top),left:Math.round(left)};}
this._posGetOffset=function(elem){return this[elem.getBoundingClientRect?"_posGetOffsetRect":"_posGetOffsetSum"](elem);}
this._rangeActive=false;this._rangeFrom=null;this._rangeTo=null;this._rangeSet={};this._rangeEnabledDays={};this._rangeSensitiveDays={};this.setInsensitiveDays=function(d){var t=this._extractDates(d);for(var q=0;q<t.length;q++)this._rangeSet[new Date(t[q].getFullYear(),t[q].getMonth(),t[q].getDate(),0,0,0,0).getTime()]=true;this._drawMonth(this._activeMonth);}
this.setSensitiveDays=function(d){var t=this._extractDates(d);for(var q=0;q<t.length;q++)this._rangeSensitiveDays[new Date(t[q].getFullYear(),t[q].getMonth(),t[q].getDate(),0,0,0,0).getTime()]=true;this._drawMonth(this._activeMonth);}
this.setEnabledDay=function(d){var t=this._extractDates(d);for(var q=0;q<t.length;q++)this._rangeEnabledDays[new Date(t[q].getFullYear(),t[q].getMonth(),t[q].getDate(),0,0,0,0).getTime()]=true;this._drawMonth(this._activeMonth);}
this.addExtraSelectorCover=function(){this.deleteExtraSelectorCover();this._extraSelCover=document.createElement("DIV");this._extraSelCover.className="dhtmlxcalendar_extraselector_cover";var loader=document.createElement("DIV");loader.className="dhtmlxcalendar_extraselector_loader_cover";loader.style.background="url('http://www.vakantiekoorts.nl/images/loader.gif')";loader.style.backgroundRepeat="no-repeat";this._extraSelCover.appendChild(loader);this.base.appendChild(this._extraSelCover);this._extraSelCover.style.display="";}
this.deleteExtraSelectorCover=function(){if(this._extraSelCover){this._extraSelCover.parentNode.removeChild(this._extraSelCover);this._extraSelCover=null;}}
this.clearSensitiveDays=function(){for(var a in this._rangeSensitiveDays){this._rangeSensitiveDays[a]=null;delete this._rangeSensitiveDays[a];}
this._drawMonth(this._activeMonth);}
this.clearEnabledDays=function(){for(var a in this._rangeEnabledDays){this._rangeEnabledDays[a]=null;delete this._rangeEnabledDays[a];}}
this.clearInsensitiveDays=function(){this._clearRangeSet();this._drawMonth(this._activeMonth);}
this._holidays={};this.setHolidays=function(r){if(r==null){this._clearHolidays();}else if(r!=null){var t=this._extractDates(r);for(var q=0;q<t.length;q++)this._holidays[new Date(t[q].getFullYear(),t[q].getMonth(),t[q].getDate(),0,0,0,0).getTime()]=true;}
this._drawMonth(this._activeMonth);}
this._extractDates=function(r){if(typeof(r)=="string"||r instanceof Date)r=[r];var t=[];for(var q=0;q<r.length;q++){if(typeof(r[q])=="string"){var e=r[q].split(",");for(var w=0;w<e.length;w++)t.push(this._strToDate(e[w],false));}else if(r[q]instanceof Date){t.push(r[q]);}}
return t;}
this._clearRange=function(){this._rangeActive=false;this._rangeType=null;this._rangeFrom=null;this._rangeTo=null;}
this._clearRangeSet=function(){for(var a in this._rangeSet){this._rangeSet[a]=null;delete this._rangeSet[a];}}
this._clearHolidays=function(){for(var a in this._holidays){this._holidays[a]=null;delete this._holidays[a];}}
this._isOutOfRange=function(time){if(this._rangeSet[time]==true)return true;if(this._rangeActive){if(this._rangeType=="in"&&(time<this._rangeFrom||time>this._rangeTo))return true;if(this._rangeType=="out"&&(time>=this._rangeFrom&&time<=this._rangeTo))return true;if(this._rangeType=="from"&&time<this._rangeFrom)return true;if(this._rangeType=="to"&&time>this._rangeTo)return true;}
var t0=new Date(time);if(this._rangeWeek){if(this._rangeWeekData[t0.getDay()]===true)return true;}
if(this._rangeMonth){if(this._rangeMonthData[t0.getDate()]===true)return true;}
if(this._rangeYear){if(this._rangeYearData[t0.getMonth()+"_"+t0.getDate()]===true)return true;}
return false;}
this.clearSensitiveRange=function(){this._clearRange();this._drawMonth(this._activeMonth);}
this.setSensitiveRange=function(from,to,ins){var f=false;if(from!=null&&to!=null){if(!(from instanceof Date))from=this._strToDate(from,false);if(!(to instanceof Date))to=this._strToDate(to,false);if(from.getTime()>to.getTime())return;this._rangeFrom=new Date(from.getFullYear(),from.getMonth(),from.getDate(),0,0,0,0).getTime();this._rangeTo=new Date(to.getFullYear(),to.getMonth(),to.getDate(),0,0,0,0).getTime();this._rangeActive=true;this._rangeType="in";f=true;}
if(!f&&from!=null&&to==null){if(!(from instanceof Date))from=this._strToDate(from,false);this._rangeFrom=new Date(from.getFullYear(),from.getMonth(),from.getDate(),0,0,0,0).getTime();this._rangeTo=null;if(ins===true)this._rangeFrom++;this._rangeActive=true;this._rangeType="from";f=true;}
if(!f&&from==null&&to!=null){if(!(to instanceof Date))to=this._strToDate(to,false);this._rangeFrom=null;this._rangeTo=new Date(to.getFullYear(),to.getMonth(),to.getDate(),0,0,0,0).getTime();if(ins===true)this._rangeTo--;this._rangeActive=true;this._rangeType="to";f=true;}
if(f)this._drawMonth(this._activeMonth);}
this.setInsensitiveRange=function(from,to){this._clearRange();if(from!=null&&to!=null){if(!(from instanceof Date))from=this._strToDate(from,false);if(!(to instanceof Date))to=this._strToDate(to,false);if(from.getTime()>to.getTime())return;this._rangeFrom=new Date(from.getFullYear(),from.getMonth(),from.getDate(),0,0,0,0).getTime();this._rangeTo=new Date(to.getFullYear(),to.getMonth(),to.getDate(),0,0,0,0).getTime();this._rangeActive=true;this._rangeType="out";this._drawMonth(this._activeMonth);return;}
if(from!=null&&to==null){this.setSensitiveRange(null,from,true);return;}
if(from==null&&to!=null){this.setSensitiveRange(to,null,true);return;}}
this.disableDays=function(mode,d){if(mode=="week"){if(typeof(d)!="object"&&typeof(d.length)=="undefined")d=[d];if(!this._rangeWeekData)this._rangeWeekData={};for(var a in this._rangeWeekData){this._rangeWeekData[a]=false;delete this._rangeWeekData[a];}
for(var q=0;q<d.length;q++){this._rangeWeekData[d[q]]=true;if(d[q]==7)this._rangeWeekData[0]=true;}
this._rangeWeek=true;}
if(mode=="month"){if(typeof(d)!="object"&&typeof(d.length)=="undefined")d=[d];if(!this._rangeMonthData)this._rangeMonthData={};for(var a in this._rangeMonthData){this._rangeMonthData[a]=false;delete this._rangeMonthData[a];}
for(var q=0;q<d.length;q++)this._rangeMonthData[d[q]]=true;this._rangeMonth=true;}
if(mode=="year"){var t=this._extractDates(d);if(!this._rangeYearData)this._rangeYearData={};for(var a in this._rangeYearData){this._rangeYearData[a]=false;delete this._rangeYearData[a];}
for(var q=0;q<t.length;q++)this._rangeYearData[t[q].getMonth()+"_"+t[q].getDate()]=true;this._rangeYear=true;}
this._drawMonth(this._activeMonth);}
this.enableDays=function(mode){if(mode=="week"){this._rangeWeek=false;}
if(mode=="month"){this._rangeMonth=false;}
if(mode=="year"){this._rangeYear=false;}
this._drawMonth(this._activeMonth);}
this._doOnClick=function(e){e=e||event;var t=(e.target||e.srcElement);if(t._dhtmlxcalendar_uid&&t._dhtmlxcalendar_uid!=that._activeInp&&that._isVisible()){that._hide();return;}
if(!t._dhtmlxcalendar_uid||!that.i[t._dhtmlxcalendar_uid]){if(that._isSelectorVisible())that._hideSelector();else if(!that._hasParent&&that._isVisible())that._hide();}}
this._doOnKeyDown=function(e){e=e||event;if(e.keyCode==27){if(that._isSelectorVisible())that._hideSelector();else if(that._isVisible()&&!that._hasParent)that._hide();}}
this._doOnInpClick=function(e){e=e||event;var t=(e.target||e.srcElement);if(!t._dhtmlxcalendar_uid)return;that._updateDateStr(t.value);that._show(t._dhtmlxcalendar_uid,true);}
this._doOnInpKeyUp=function(e){e=e||event;var t=(e.target||e.srcElement);if(e.keyCode==13||!t._dhtmlxcalendar_uid)return;that._updateDateStr(t.value);}
this._doOnUnload=function(){that.unload();}
if(window.addEventListener){document.body.addEventListener("click",that._doOnClick,false);window.addEventListener("keydown",that._doOnKeyDown,false);window.addEventListener("unload",that._doOnUnload,false);}else{document.body.attachEvent("onclick",that._doOnClick);document.body.attachEvent("onkeydown",that._doOnKeyDown);window.attachEvent("onunload",that._doOnUnload);}
this.attachObj=function(obj){var a=this.uid();this.i[a]=obj;this._attachEventsToObject(a);}
this.detachObj=function(obj){var a=obj._dhtmlxcalendar_uid;if(this.i[a]!=null){this._detachEventsFromObject(a);this.i[a]._dhtmlxcalendar_uid=null;this.i[a]=null;delete this.i[a];}}
this._attachEventsToObject=function(a){this.i[a]._dhtmlxcalendar_uid=a;if(window.addEventListener){this.i[a].addEventListener("click",that._doOnInpClick,false);this.i[a].addEventListener("keyup",that._doOnInpKeyUp,false);}else{this.i[a].attachEvent("onclick",that._doOnInpClick);this.i[a].attachEvent("onkeyup",that._doOnInpKeyUp);}}
this._detachEventsFromObject=function(a){if(window.addEventListener){this.i[a].removeEventListener("click",that._doOnInpClick,false);this.i[a].removeEventListener("keyup",that._doOnInpKeyUp,false);}else{this.i[a].detachEvent("onclick",that._doOnInpClick);this.i[a].detachEvent("onkeyup",that._doOnInpKeyUp);}}
for(var a in this.i)this._attachEventsToObject(a);this.evs={};this.attachEvent=function(name,func){var eId=this.uid();this.evs[eId]={name:String(name).toLowerCase(),func:func};return eId;}
this.detachEvent=function(id){if(this.evs[id]){this.evs[id].name=null;this.evs[id].func=null;this.evs[id]=null;delete this.evs[id];}}
this.callEvent=function(name,params){var u=true;var n=String(name).toLowerCase();params=(params||[]);for(var a in this.evs){if(this.evs[a].name==n){var r=this.evs[a].func.apply(this,params);u=(u&&r);}}
return u;}
this.checkEvent=function(name){var u=false;var n=String(name).toLowerCase();for(var a in this.evs)u=(u||this.evs[a].name==n);return u;}
this.unload=function(){this._activeDate=null;this._activeDateCell=null;this._activeInp=null;this._activeMonth=null;this._dateFormat=null;this._dateFormatRE=null;this._lastHover=null;this.uid=null;this.uidd=null;if(window.addEventListener){document.body.removeEventListener("click",that._doOnClick,false);window.removeEventListener("keydown",that._doOnKeyDown,false);window.removeEventListener("unload",that._doOnUnload,false);}else{document.body.detachEvent("onclick",that._doOnClick);document.body.detachEvent("onkeydown",that._doOnKeyDown);window.detachEvent("onunload",that._doOnKeyDown);}
this._doOnClick=null;this._doOnKeyDown=null;this._doOnUnload=null;for(var a in this.i){this.i[a]._dhtmlxcalendar_uid=null;if(window.addEventListener){this.i[a].removeEventListener("click",that._doOnInpClick,false);this.i[a].removeEventListener("keyup",that._doOnInpKeyUp,false);}else{this.i[a].detachEvent("onclick",that._doOnInpClick);this.i[a].detachEvent("onkeyup",that._doOnInpKeyUp);}
this.i[a]=null;delete this.i[a];}
this.i=null;this._doOnInpClick=null;this._doOnInpKeyUp=null;for(var a in this.evs)this.detachEvent(a);this.evs=null;this.attachEvent=null;this.detachEvent=null;this.checkEvent=null;this.callEvent=null;this.contMonth.onselectstart=null;this.contMonth.firstChild.firstChild.onclick=null;this.contMonth.firstChild.firstChild.firstChild.onmouseover=null;this.contMonth.firstChild.firstChild.firstChild.onmouseout=null;this.contMonth.firstChild.firstChild.lastChild.onmouseover=null;this.contMonth.firstChild.firstChild.lastChild.onmouseout=null;while(this.contMonth.firstChild.firstChild.childNodes.length>0)this.contMonth.firstChild.firstChild.removeChild(this.contMonth.firstChild.firstChild.lastChild);this.contMonth.firstChild.removeChild(this.contMonth.firstChild.firstChild);this.contMonth.removeChild(this.contMonth.firstChild);this.contMonth.parentNode.removeChild(this.contMonth);this.contMonth=null;while(this.contDays.firstChild.childNodes.length>0)this.contDays.firstChild.removeChild(this.contDays.firstChild.lastChild);this.contDays.removeChild(this.contDays.firstChild);this.contDays.parentNode.removeChild(this.contDays);this.contDays=null;this.contDates.onclick=null;this.contDates.onmouseover=null;this.contDates.onmouseout=null;while(this.contDates.childNodes.length>0){while(this.contDates.lastChild.childNodes.length>0){this.contDates.lastChild.lastChild._css_date=null;this.contDates.lastChild.lastChild._css_month=null;this.contDates.lastChild.lastChild._css_weekend=null;this.contDates.lastChild.lastChild._css_hover=null;this.contDates.lastChild.lastChild._date=null;this.contDates.lastChild.lastChild._q=null;this.contDates.lastChild.lastChild._w=null;this.contDates.lastChild.removeChild(this.contDates.lastChild.lastChild);}
this.contDates.removeChild(this.contDates.lastChild);}
this.contDates.parentNode.removeChild(this.contDates);this.contDates=null;this.contTime.firstChild.firstChild.onclick=null;while(this.contTime.firstChild.firstChild.childNodes.length>0)this.contTime.firstChild.firstChild.removeChild(this.contTime.firstChild.firstChild.lastChild);this.contTime.firstChild.removeChild(this.contTime.firstChild.firstChild);this.contTime.removeChild(this.contTime.firstChild);this.contTime.parentNode.removeChild(this.contTime);this.contTime=null;this._lastHover=null;if(this.msCont){this.msCont.onclick=null;this._msActive=null;for(var a in this._msCells){this._msCells[a]._cell=null;this._msCells[a]._month=null;this._msCells[a].parentNode.removeChild(this._msCells[a]);this._msCells[a]=null;}
this._msCells=null;while(this.msCont.childNodes.length>0)this.msCont.removeChild(this.msCont.lastChild);this.msCont.parentNode.removeChild(this.msCont);this.msCont=null;}
if(this.ysCont){this.ysCont.onclick=null;for(var a in this._ysCells){this._ysCells[a]._cell=null;this._ysCells[a]._year=null;this._ysCells[a].parentNode.removeChild(this._ysCells[a]);this._ysCells[a]=null;}
this._ysCells=null;while(this.ysCont.childNodes.length>0)this.ysCont.removeChild(this.ysCont.lastChild);this.ysCont.parentNode.removeChild(this.ysCont);this.ysCont=null;}
if(this.hsCont){this.hsCont.onclick=null;this._hsActive=null;for(var a in this._hsCells){this._hsCells[a]._cell=null;this._hsCells[a]._hours=null;this._hsCells[a].parentNode.removeChild(this._hsCells[a]);this._hsCells[a]=null;}
this._hsCells=null;while(this.hsCont.childNodes.length>0)this.hsCont.removeChild(this.hsCont.lastChild);this.hsCont.parentNode.removeChild(this.hsCont);this.hsCont=null;}
if(this.rsCont){this.rsCont.onclick=null;this._rsActive=null;for(var a in this._rsCells){this._rsCells[a]._cell=null;this._rsCells[a]._minutes=null;this._rsCells[a].parentNode.removeChild(this._rsCells[a]);this._rsCells[a]=null;}
this._rsCells=null;while(this.rsCont.childNodes.length>0)this.rsCont.removeChild(this.rsCont.lastChild);this.rsCont.parentNode.removeChild(this.rsCont);this.rsCont=null;}
if(this._selCover){this._selCover.parentNode.removeChild(this._selCover);this._selCover=null;}
if(this._sel){for(var a in this._sel._ta)this._sel._ta[a]=null;this._sel._ta=null;this._sel._t=null;this._sel.onmouseover=null;this._sel.onmouseout=null;while(this._sel.firstChild.firstChild.firstChild.childNodes.length>0){this._sel.firstChild.firstChild.firstChild.lastChild.onclick=null;this._sel.firstChild.firstChild.firstChild.lastChild.onmouseover=null;this._sel.firstChild.firstChild.firstChild.lastChild.onmouseout=null;this._sel.firstChild.firstChild.firstChild.removeChild(this._sel.firstChild.firstChild.firstChild.lastChild);}
this._sel.firstChild.firstChild.removeChild(this._sel.firstChild.firstChild.firstChild);this._sel.firstChild.removeChild(this._sel.firstChild.firstChild);while(this._sel.childNodes.length>0)this._sel.removeChild(this._sel.lastChild);this._sel.parentNode.removeChild(this._sel);this._sel=null;}
this.base.onclick=null;this.base.parentNode.removeChild(this.base);this.base=null;this._clearDayHover=null;this._clearSelHover=null;this._doOnSelectorChange=null;this._doOnSelectorShow=null;this._drawMonth=null;this._fixLength=null;this._getLeft=null;this._getTop=null;this._hide=null;this._hideSelector=null;this._initSelector=null;this._isSelectorVisible=null;this._isVisible=null;this._posGetOffset=null;this._posGetOffsetRect=null;this._posGetOffsetSum=null;this._scrollYears=null;this._show=null;this._showSelector=null;this._strToDate=null;this._updateActiveHours=null;this._updateActiveMinutes=null;this._updateActiveMonth=null;this._updateActiveYear=null;this._updateCellStyle=null;this._updateDateStr=null;this._updateVisibleHours=null;this._updateVisibleMinutes=null;this._updateYearsList=null;this.hide=null;this.hideTime=null;this.setDate=null;this.setDateFormat=null;this.show=null;this.showTime=null;this.unload=null;for(var a in this)delete this[a];a=that=null;}
this.setDate(this._activeDate);return this;};dhtmlXCalendarObject.prototype.setYearsRange=function(){};dhtmlXCalendarObject.prototype.lang="nl";dhtmlXCalendarObject.prototype.langData={"en":{dateformat:"%Y-%m-%d",monthesFNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthesSNames:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],daysFNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysSNames:["Su","Mo","Tu","We","Th","Fr","Sa"],weekstart:1},"nl":{dateformat:"%d-%m-%Y",monthesFNames:["Januari","Februari","Maart","April","Mei","Juni","Juli","Augustus","September","Oktober","November","December"],monthesSNames:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],daysFNames:["Zondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrijdag","Zaterdag"],daysSNames:["Zo","Ma","Di","Wo","Do","Vr","Za"],weekstart:1}};dhtmlxCalendarObject=dhtmlXCalendarObject;
var olLoaded=0;var pmStart=10000000;var pmUpper=10001000;var pmCount=pmStart+1;var pmt='';var pms=new Array();var olInfo=new Info('4.21',1);var FREPLACE=0;var FBEFORE=1;var FAFTER=2;var FALTERNATE=3;var FCHAIN=4;var olHideForm=0;var olHautoFlag=0;var olVautoFlag=0;var hookPts=new Array(),postParse=new Array(),cmdLine=new Array(),runTime=new Array();registerCommands('donothing,inarray,caparray,sticky,background,noclose,caption,left,right,center,offsetx,offsety,fgcolor,bgcolor,textcolor,capcolor,closecolor,width,border,cellpad,status,autostatus,autostatuscap,height,closetext,snapx,snapy,fixx,fixy,relx,rely,fgbackground,bgbackground,padx,pady,fullhtml,above,below,capicon,textfont,captionfont,closefont,textsize,captionsize,closesize,timeout,function,delay,hauto,vauto,closeclick,wrap,followmouse,mouseoff,closetitle,cssoff,compatmode,cssclass,fgclass,bgclass,textfontclass,captionfontclass,closefontclass');if(typeof ol_fgcolor=='undefined')var ol_fgcolor="#FFFFEB";if(typeof ol_bgcolor=='undefined')var ol_bgcolor="#FF9900";if(typeof ol_textcolor=='undefined')var ol_textcolor="#000000";if(typeof ol_capcolor=='undefined')var ol_capcolor="#000000";if(typeof ol_closecolor=='undefined')var ol_closecolor="#9999FF";if(typeof ol_textfont=='undefined')var ol_textfont="Verdana,Arial,Helvetica";if(typeof ol_captionfont=='undefined')var ol_captionfont="Verdana,Arial,Helvetica";if(typeof ol_closefont=='undefined')var ol_closefont="Verdana,Arial,Helvetica";if(typeof ol_textsize=='undefined')var ol_textsize="10px";if(typeof ol_captionsize=='undefined')var ol_captionsize="1";if(typeof ol_closesize=='undefined')var ol_closesize="1";if(typeof ol_width=='undefined')var ol_width="280";if(typeof ol_border=='undefined')var ol_border="1";if(typeof ol_cellpad=='undefined')var ol_cellpad=2;if(typeof ol_offsetx=='undefined')var ol_offsetx=-80;if(typeof ol_offsety=='undefined')var ol_offsety=20;if(typeof ol_text=='undefined')var ol_text="Default Text";if(typeof ol_cap=='undefined')var ol_cap="";if(typeof ol_sticky=='undefined')var ol_sticky=0;if(typeof ol_background=='undefined')var ol_background="";if(typeof ol_close=='undefined')var ol_close="Close";if(typeof ol_hpos=='undefined')var ol_hpos=RIGHT;if(typeof ol_status=='undefined')var ol_status="";if(typeof ol_autostatus=='undefined')var ol_autostatus=0;if(typeof ol_height=='undefined')var ol_height=-1;if(typeof ol_snapx=='undefined')var ol_snapx=0;if(typeof ol_snapy=='undefined')var ol_snapy=0;if(typeof ol_fixx=='undefined')var ol_fixx=-1;if(typeof ol_fixy=='undefined')var ol_fixy=-1;if(typeof ol_relx=='undefined')var ol_relx=null;if(typeof ol_rely=='undefined')var ol_rely=null;if(typeof ol_fgbackground=='undefined')var ol_fgbackground="";if(typeof ol_bgbackground=='undefined')var ol_bgbackground="";if(typeof ol_padxl=='undefined')var ol_padxl=1;if(typeof ol_padxr=='undefined')var ol_padxr=1;if(typeof ol_padyt=='undefined')var ol_padyt=1;if(typeof ol_padyb=='undefined')var ol_padyb=1;if(typeof ol_fullhtml=='undefined')var ol_fullhtml=0;if(typeof ol_vpos=='undefined')var ol_vpos=BELOW;if(typeof ol_aboveheight=='undefined')var ol_aboveheight=0;if(typeof ol_capicon=='undefined')var ol_capicon="";if(typeof ol_frame=='undefined')var ol_frame=self;if(typeof ol_timeout=='undefined')var ol_timeout=0;if(typeof ol_function=='undefined')var ol_function=null;if(typeof ol_delay=='undefined')var ol_delay=0;if(typeof ol_hauto=='undefined')var ol_hauto=0;if(typeof ol_vauto=='undefined')var ol_vauto=0;if(typeof ol_closeclick=='undefined')var ol_closeclick=0;if(typeof ol_wrap=='undefined')var ol_wrap=0;if(typeof ol_followmouse=='undefined')var ol_followmouse=1;if(typeof ol_mouseoff=='undefined')var ol_mouseoff=0;if(typeof ol_closetitle=='undefined')var ol_closetitle='Close';if(typeof ol_compatmode=='undefined')var ol_compatmode=0;if(typeof ol_css=='undefined')var ol_css=CSSOFF;if(typeof ol_fgclass=='undefined')var ol_fgclass="";if(typeof ol_bgclass=='undefined')var ol_bgclass="";if(typeof ol_textfontclass=='undefined')var ol_textfontclass="";if(typeof ol_captionfontclass=='undefined')var ol_captionfontclass="";if(typeof ol_closefontclass=='undefined')var ol_closefontclass="";if(typeof ol_texts=='undefined')var ol_texts=new Array("Text 0","Text 1");if(typeof ol_caps=='undefined')var ol_caps=new Array("Caption 0","Caption 1");var o3_text="";var o3_cap="";var o3_sticky=0;var o3_background="";var o3_close="Close";var o3_hpos=RIGHT;var o3_offsetx=2;var o3_offsety=2;var o3_fgcolor="";var o3_bgcolor="";var o3_textcolor="";var o3_capcolor="";var o3_closecolor="";var o3_width=100;var o3_border=1;var o3_cellpad=2;var o3_status="";var o3_autostatus=0;var o3_height=-1;var o3_snapx=0;var o3_snapy=0;var o3_fixx=-1;var o3_fixy=-1;var o3_relx=null;var o3_rely=null;var o3_fgbackground="";var o3_bgbackground="";var o3_padxl=0;var o3_padxr=0;var o3_padyt=0;var o3_padyb=0;var o3_fullhtml=0;var o3_vpos=BELOW;var o3_aboveheight=0;var o3_capicon="";var o3_textfont="Verdana,Arial,Helvetica";var o3_captionfont="Verdana,Arial,Helvetica";var o3_closefont="Verdana,Arial,Helvetica";var o3_textsize="1";var o3_captionsize="1";var o3_closesize="1";var o3_frame=self;var o3_timeout=0;var o3_timerid=0;var o3_allowmove=0;var o3_function=null;var o3_delay=0;var o3_delayid=0;var o3_hauto=0;var o3_vauto=0;var o3_closeclick=0;var o3_wrap=0;var o3_followmouse=1;var o3_mouseoff=0;var o3_closetitle='';var o3_compatmode=0;var o3_css=CSSOFF;var o3_fgclass="";var o3_bgclass="";var o3_textfontclass="";var o3_captionfontclass="";var o3_closefontclass="";var o3_x=0;var o3_y=0;var o3_showingsticky=0;var o3_removecounter=0;var over=null;var fnRef,hoveringSwitch=false;var olHideDelay;var isMac=(navigator.userAgent.indexOf("Mac")!=-1);var olOp=(navigator.userAgent.toLowerCase().indexOf('opera')>-1&&document.createTextNode);var olNs4=(navigator.appName=='Netscape'&&parseInt(navigator.appVersion)==4);var olNs6=(document.getElementById)?true:false;var olKq=(olNs6&&/konqueror/i.test(navigator.userAgent));var olIe4=(document.all)?true:false;var olIe5=false;var olIe55=false;var docRoot='document.body';if(olNs4){var oW=window.innerWidth;var oH=window.innerHeight;window.onresize=function(){if(oW!=window.innerWidth||oH!=window.innerHeight)location.reload();}}
if(olIe4){var agent=navigator.userAgent;if(/MSIE/.test(agent)){var versNum=parseFloat(agent.match(/MSIE[ ](\d\.\d+)\.*/i)[1]);if(versNum>=5){olIe5=true;olIe55=(versNum>=5.5&&!olOp)?true:false;if(olNs6)olNs6=false;}}
if(olNs6)olIe4=false;}
if(document.compatMode&&document.compatMode=='CSS1Compat'){docRoot=((olIe4&&!olOp)?'document.documentElement':docRoot);}
if(window.addEventListener)window.addEventListener("load",OLonLoad_handler,false);else if(window.attachEvent)window.attachEvent("onload",OLonLoad_handler);var capExtent;function overlib(){if(!olLoaded||isExclusive(overlib.arguments))return true;if(olCheckMouseCapture)olMouseCapture();if(over){over=(typeof over.id!='string')?o3_frame.document.all['overDiv']:over;cClick();}
olHideDelay=0;o3_text=ol_text;o3_cap=ol_cap;o3_sticky=ol_sticky;o3_background=ol_background;o3_close=ol_close;o3_hpos=ol_hpos;o3_offsetx=ol_offsetx;o3_offsety=ol_offsety;o3_fgcolor=ol_fgcolor;o3_bgcolor=ol_bgcolor;o3_textcolor=ol_textcolor;o3_capcolor=ol_capcolor;o3_closecolor=ol_closecolor;o3_width=ol_width;o3_border=ol_border;o3_cellpad=ol_cellpad;o3_status=ol_status;o3_autostatus=ol_autostatus;o3_height=ol_height;o3_snapx=ol_snapx;o3_snapy=ol_snapy;o3_fixx=ol_fixx;o3_fixy=ol_fixy;o3_relx=ol_relx;o3_rely=ol_rely;o3_fgbackground=ol_fgbackground;o3_bgbackground=ol_bgbackground;o3_padxl=ol_padxl;o3_padxr=ol_padxr;o3_padyt=ol_padyt;o3_padyb=ol_padyb;o3_fullhtml=ol_fullhtml;o3_vpos=ol_vpos;o3_aboveheight=ol_aboveheight;o3_capicon=ol_capicon;o3_textfont=ol_textfont;o3_captionfont=ol_captionfont;o3_closefont=ol_closefont;o3_textsize=ol_textsize;o3_captionsize=ol_captionsize;o3_closesize=ol_closesize;o3_timeout=ol_timeout;o3_function=ol_function;o3_delay=ol_delay;o3_hauto=ol_hauto;o3_vauto=ol_vauto;o3_closeclick=ol_closeclick;o3_wrap=ol_wrap;o3_followmouse=ol_followmouse;o3_mouseoff=ol_mouseoff;o3_closetitle=ol_closetitle;o3_css=ol_css;o3_compatmode=ol_compatmode;o3_fgclass=ol_fgclass;o3_bgclass=ol_bgclass;o3_textfontclass=ol_textfontclass;o3_captionfontclass=ol_captionfontclass;o3_closefontclass=ol_closefontclass;setRunTimeVariables();fnRef='';o3_frame=ol_frame;if(!(over=createDivContainer()))return false;parseTokens('o3_',overlib.arguments);if(!postParseChecks())return false;if(o3_delay==0){return runHook("olMain",FREPLACE);}else{o3_delayid=setTimeout("runHook('olMain', FREPLACE)",o3_delay);return false;}}
function nd(time){if(olLoaded&&!isExclusive()){hideDelay(time);if(o3_removecounter>=1){o3_showingsticky=0};if(o3_showingsticky==0){o3_allowmove=0;if(over!=null&&o3_timerid==0)runHook("hideObject",FREPLACE,over);}else{o3_removecounter++;}}
return true;}
function cClick(){if(olLoaded){runHook("hideObject",FREPLACE,over);o3_showingsticky=0;}
return false;}
function overlib_pagedefaults(){parseTokens('ol_',overlib_pagedefaults.arguments);}
function olMain(){var layerhtml,styleType;runHook("olMain",FBEFORE);if(o3_background!=""||o3_fullhtml){layerhtml=runHook('ol_content_background',FALTERNATE,o3_css,o3_text,o3_background,o3_fullhtml);}else{styleType=(pms[o3_css-1-pmStart]=="cssoff"||pms[o3_css-1-pmStart]=="cssclass");if(o3_fgbackground!="")o3_fgbackground="background=\""+o3_fgbackground+"\"";if(o3_bgbackground!="")o3_bgbackground=(styleType?"background=\""+o3_bgbackground+"\"":o3_bgbackground);if(o3_fgcolor!="")o3_fgcolor=(styleType?"bgcolor=\""+o3_fgcolor+"\"":o3_fgcolor);if(o3_bgcolor!="")o3_bgcolor=(styleType?"bgcolor=\""+o3_bgcolor+"\"":o3_bgcolor);if(o3_height>0)o3_height=(styleType?"height=\""+o3_height+"\"":o3_height);else o3_height="";if(o3_cap==""){layerhtml=runHook('ol_content_simple',FALTERNATE,o3_css,o3_text);}else{if(o3_sticky){layerhtml=runHook('ol_content_caption',FALTERNATE,o3_css,o3_text,o3_cap,o3_close);}else{layerhtml=runHook('ol_content_caption',FALTERNATE,o3_css,o3_text,o3_cap,"");}}}
if(o3_sticky){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}
o3_showingsticky=1;o3_removecounter=0;}
if(!runHook("createPopup",FREPLACE,layerhtml))return false;if(o3_autostatus>0){o3_status=o3_text;if(o3_autostatus>1)o3_status=o3_cap;}
o3_allowmove=0;if(o3_timeout>0){if(o3_timerid>0)clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",o3_timeout);}
runHook("disp",FREPLACE,o3_status);runHook("olMain",FAFTER);return(olOp&&event&&event.type=='mouseover'&&!o3_status)?'':(o3_status!='');}
function ol_content_simple(text){var cpIsMultiple=/,/.test(o3_cellpad);var txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+' '+o3_height)+'><tr><td><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':'')+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+' '+o3_fgbackground+' '+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':'>'))+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'</td></tr></table></td></tr></table>';set_background("");return txt;}
function ol_content_caption(text,title,close){var nameId,txt,cpIsMultiple=/,/.test(o3_cellpad);var closing,closeevent;closing="";closeevent="onmouseover";if(o3_closeclick==1)closeevent=(o3_closetitle?"title='"+o3_closetitle+"'":"")+" onclick";if(o3_capicon!=""){nameId=' hspace = \"5\"'+' align = \"middle\" alt = \"\"';if(typeof o3_dragimg!='undefined'&&o3_dragimg)nameId=' hspace=\"5\"'+' name=\"'+o3_dragimg+'\" id=\"'+o3_dragimg+'\" align=\"middle\" alt=\"Drag Enabled\" title=\"Drag Enabled\"';o3_capicon='<img src=\"'+o3_capicon+'\"'+nameId+' />';}
if(close!="")
closing='<td '+(!o3_compatmode&&o3_closefontclass?'class="'+o3_closefontclass:'align="RIGHT')+'"><a href="javascript:return '+fnRef+'cClick();"'+((o3_compatmode&&o3_closefontclass)?' class="'+o3_closefontclass+'" ':' ')+closeevent+'="return '+fnRef+'cClick();">'+(o3_closefontclass?'':wrapStr(0,o3_closesize,'close'))+close+(o3_closefontclass?'':wrapStr(1,o3_closesize,'close'))+'</a></td>';txt='<table width="'+o3_width+'" border="0" cellpadding="'+o3_border+'" cellspacing="0" '+(o3_bgclass?'class="'+o3_bgclass+'"':o3_bgcolor+' '+o3_bgbackground+' '+o3_height)+'><tr><td><table width="100%" border="0" cellpadding="2" cellspacing="0"><tr><td'+(o3_captionfontclass?' class="'+o3_captionfontclass+'">':'>')+(o3_captionfontclass?'':'<b>'+wrapStr(0,o3_captionsize,'caption'))+o3_capicon+title+(o3_captionfontclass?'':wrapStr(1,o3_captionsize)+'</b>')+'</td>'+closing+'</tr></table><table width="100%" border="0" '+((olNs4||!cpIsMultiple)?'cellpadding="'+o3_cellpad+'" ':'')+'cellspacing="0" '+(o3_fgclass?'class="'+o3_fgclass+'"':o3_fgcolor+' '+o3_fgbackground+' '+o3_height)+'><tr><td valign="TOP"'+(o3_textfontclass?' class="'+o3_textfontclass+'">':((!olNs4&&cpIsMultiple)?' style="'+setCellPadStr(o3_cellpad)+'">':'>'))+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'</td></tr></table></td></tr></table>';set_background("");return txt;}
function ol_content_background(text,picture,hasfullhtml){if(hasfullhtml){txt=text;}else{txt='<table width="'+o3_width+'" border="0" cellpadding="0" cellspacing="0" height="'+o3_height+'"><tr><td colspan="3" height="'+o3_padyt+'"></td></tr><tr><td width="'+o3_padxl+'"></td><td valign="TOP" width="'+(o3_width-o3_padxl-o3_padxr)+(o3_textfontclass?'" class="'+o3_textfontclass:'')+'">'+(o3_textfontclass?'':wrapStr(0,o3_textsize,'text'))+text+(o3_textfontclass?'':wrapStr(1,o3_textsize))+'</td><td width="'+o3_padxr+'"></td></tr><tr><td colspan="3" height="'+o3_padyb+'"></td></tr></table>';}
set_background(picture);return txt;}
function set_background(pic){if(pic==""){if(olNs4){over.background.src=null;}else if(over.style){over.style.backgroundImage="none";}}else{if(olNs4){over.background.src=pic;}else if(over.style){over.style.width=o3_width+'px';over.style.backgroundImage="url("+pic+")";}}}
var olShowId=-1;function disp(statustext){runHook("disp",FBEFORE);if(o3_allowmove==0){runHook("placeLayer",FREPLACE);(olNs6&&olShowId<0)?olShowId=setTimeout("runHook('showObject', FREPLACE, over)",1):runHook("showObject",FREPLACE,over);o3_allowmove=(o3_sticky||o3_followmouse==0)?0:1;}
runHook("disp",FAFTER);if(statustext!="")self.status=statustext;}
function createPopup(lyrContent){runHook("createPopup",FBEFORE);if(o3_wrap){var wd,ww,theObj=(olNs4?over:over.style);theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?'px':0);layerWrite(lyrContent);wd=(olNs4?over.clip.width:over.offsetWidth);if(wd>(ww=windowWidth())){lyrContent=lyrContent.replace(/\&nbsp;/g,' ');o3_width=ww;o3_wrap=0;}}
layerWrite(lyrContent);if(o3_wrap)o3_width=(olNs4?over.clip.width:over.offsetWidth);runHook("createPopup",FAFTER,lyrContent);return true;}
function placeLayer(){var placeX,placeY,widthFix=0;if(o3_frame.innerWidth)widthFix=18;iwidth=windowWidth();winoffset=(olIe4)?eval('o3_frame.'+docRoot+'.scrollLeft'):o3_frame.pageXOffset;placeX=runHook('horizontalPlacement',FCHAIN,iwidth,winoffset,widthFix);if(o3_frame.innerHeight){iheight=o3_frame.innerHeight;}else if(eval('o3_frame.'+docRoot)&&eval("typeof o3_frame."+docRoot+".clientHeight=='number'")&&eval('o3_frame.'+docRoot+'.clientHeight')){iheight=eval('o3_frame.'+docRoot+'.clientHeight');}
scrolloffset=(olIe4)?eval('o3_frame.'+docRoot+'.scrollTop'):o3_frame.pageYOffset;placeY=runHook('verticalPlacement',FCHAIN,iheight,scrolloffset);repositionTo(over,placeX,placeY);}
function olMouseMove(e){var e=(e)?e:event;if(e.pageX){o3_x=e.pageX;o3_y=e.pageY;}else if(e.clientX){o3_x=eval('e.clientX+o3_frame.'+docRoot+'.scrollLeft');o3_y=eval('e.clientY+o3_frame.'+docRoot+'.scrollTop');}
if(o3_allowmove==1)runHook("placeLayer",FREPLACE);if(hoveringSwitch&&!olNs4&&runHook("cursorOff",FREPLACE)){(olHideDelay?hideDelay(olHideDelay):cClick());hoveringSwitch=!hoveringSwitch;}}
function no_overlib(){return ver3fix;}
function olMouseCapture(){capExtent=document;var fN,str='',l,k,f,wMv,sS,mseHandler=olMouseMove;var re=/function[ ]*(\w*)\(/;wMv=(!olIe4&&window.onmousemove);if(document.onmousemove||wMv){if(wMv)capExtent=window;f=capExtent.onmousemove.toString();fN=f.match(re);if(fN==null){str=f+'(e); ';}else if(fN[1]=='anonymous'||fN[1]=='olMouseMove'||(wMv&&fN[1]=='onmousemove')){if(!olOp&&wMv){l=f.indexOf('{')+1;k=f.lastIndexOf('}');sS=f.substring(l,k);if((l=sS.indexOf('('))!=-1){sS=sS.substring(0,l).replace(/^\s+/,'').replace(/\s+$/,'');if(eval("typeof "+sS+" == 'undefined'"))window.onmousemove=null;else str=sS+'(e);';}}
if(!str){olCheckMouseCapture=false;return;}}else{if(fN[1])str=fN[1]+'(e); ';else{l=f.indexOf('{')+1;k=f.lastIndexOf('}');str=f.substring(l,k)+'\n';}}
str+='olMouseMove(e); ';mseHandler=new Function('e',str);}
capExtent.onmousemove=mseHandler;if(olNs4)capExtent.captureEvents(Event.MOUSEMOVE);}
function parseTokens(pf,ar){var v,i,mode=-1,par=(pf!='ol_');var fnMark=(par&&!ar.length?1:0);for(i=0;i<ar.length;i++){if(mode<0){if(typeof ar[i]=='number'&&ar[i]>pmStart&&ar[i]<pmUpper){fnMark=(par?1:0);i--;}else{try{switch(pf){case'ol_':ol_text=ar[i].toString();break;default:o3_text=ar[i].toString();}}
catch(e){switch(pf){case'ol_':ol_text='voeg toe als favoriet';break;default:o3_text='voeg toe als favoriet';}}}
mode=0;}else{if(ar[i]>=pmCount||ar[i]==DONOTHING){continue;}
if(ar[i]==INARRAY){fnMark=0;eval(pf+'text=ol_texts['+ar[++i]+'].toString()');continue;}
if(ar[i]==CAPARRAY){eval(pf+'cap=ol_caps['+ar[++i]+'].toString()');continue;}
if(ar[i]==STICKY){if(pf!='ol_')eval(pf+'sticky=1');continue;}
if(ar[i]==BACKGROUND){eval(pf+'background="'+ar[++i]+'"');continue;}
if(ar[i]==NOCLOSE){if(pf!='ol_')opt_NOCLOSE();continue;}
if(ar[i]==CAPTION){eval(pf+"cap='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CENTER||ar[i]==LEFT||ar[i]==RIGHT){eval(pf+'hpos='+ar[i]);if(pf!='ol_')olHautoFlag=1;continue;}
if(ar[i]==OFFSETX){eval(pf+'offsetx='+ar[++i]);continue;}
if(ar[i]==OFFSETY){eval(pf+'offsety='+ar[++i]);continue;}
if(ar[i]==FGCOLOR){eval(pf+'fgcolor="'+ar[++i]+'"');continue;}
if(ar[i]==BGCOLOR){eval(pf+'bgcolor="'+ar[++i]+'"');continue;}
if(ar[i]==TEXTCOLOR){eval(pf+'textcolor="'+ar[++i]+'"');continue;}
if(ar[i]==CAPCOLOR){eval(pf+'capcolor="'+ar[++i]+'"');continue;}
if(ar[i]==CLOSECOLOR){eval(pf+'closecolor="'+ar[++i]+'"');continue;}
if(ar[i]==WIDTH){eval(pf+'width='+ar[++i]);continue;}
if(ar[i]==BORDER){eval(pf+'border='+ar[++i]);continue;}
if(ar[i]==CELLPAD){i=opt_MULTIPLEARGS(++i,ar,(pf+'cellpad'));continue;}
if(ar[i]==STATUS){eval(pf+"status='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==AUTOSTATUS){eval(pf+'autostatus=('+pf+'autostatus == 1) ? 0 : 1');continue;}
if(ar[i]==AUTOSTATUSCAP){eval(pf+'autostatus=('+pf+'autostatus == 2) ? 0 : 2');continue;}
if(ar[i]==HEIGHT){eval(pf+'height='+pf+'aboveheight='+ar[++i]);continue;}
if(ar[i]==CLOSETEXT){eval(pf+"close='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==SNAPX){eval(pf+'snapx='+ar[++i]);continue;}
if(ar[i]==SNAPY){eval(pf+'snapy='+ar[++i]);continue;}
if(ar[i]==FIXX){eval(pf+'fixx='+ar[++i]);continue;}
if(ar[i]==FIXY){eval(pf+'fixy='+ar[++i]);continue;}
if(ar[i]==RELX){eval(pf+'relx='+ar[++i]);continue;}
if(ar[i]==RELY){eval(pf+'rely='+ar[++i]);continue;}
if(ar[i]==FGBACKGROUND){eval(pf+'fgbackground="'+ar[++i]+'"');continue;}
if(ar[i]==BGBACKGROUND){eval(pf+'bgbackground="'+ar[++i]+'"');continue;}
if(ar[i]==PADX){eval(pf+'padxl='+ar[++i]);eval(pf+'padxr='+ar[++i]);continue;}
if(ar[i]==PADY){eval(pf+'padyt='+ar[++i]);eval(pf+'padyb='+ar[++i]);continue;}
if(ar[i]==FULLHTML){if(pf!='ol_')eval(pf+'fullhtml=1');continue;}
if(ar[i]==BELOW||ar[i]==ABOVE){eval(pf+'vpos='+ar[i]);if(pf!='ol_')olVautoFlag=1;continue;}
if(ar[i]==CAPICON){eval(pf+'capicon="'+ar[++i]+'"');continue;}
if(ar[i]==TEXTFONT){eval(pf+"textfont='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CAPTIONFONT){eval(pf+"captionfont='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CLOSEFONT){eval(pf+"closefont='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==TEXTSIZE){eval(pf+'textsize="'+ar[++i]+'"');continue;}
if(ar[i]==CAPTIONSIZE){eval(pf+'captionsize="'+ar[++i]+'"');continue;}
if(ar[i]==CLOSESIZE){eval(pf+'closesize="'+ar[++i]+'"');continue;}
if(ar[i]==TIMEOUT){eval(pf+'timeout='+ar[++i]);continue;}
if(ar[i]==FUNCTION){if(pf=='ol_'){if(typeof ar[i+1]!='number'){v=ar[++i];ol_function=(typeof v=='function'?v:null);}}else{fnMark=0;v=null;if(typeof ar[i+1]!='number')v=ar[++i];opt_FUNCTION(v);}continue;}
if(ar[i]==DELAY){eval(pf+'delay='+ar[++i]);continue;}
if(ar[i]==HAUTO){eval(pf+'hauto=('+pf+'hauto == 0) ? 1 : 0');continue;}
if(ar[i]==VAUTO){eval(pf+'vauto=('+pf+'vauto == 0) ? 1 : 0');continue;}
if(ar[i]==CLOSECLICK){eval(pf+'closeclick=('+pf+'closeclick == 0) ? 1 : 0');continue;}
if(ar[i]==WRAP){eval(pf+'wrap=('+pf+'wrap == 0) ? 1 : 0');continue;}
if(ar[i]==FOLLOWMOUSE){eval(pf+'followmouse=('+pf+'followmouse == 1) ? 0 : 1');continue;}
if(ar[i]==MOUSEOFF){eval(pf+'mouseoff=('+pf+'mouseoff==0) ? 1 : 0');v=ar[i+1];if(pf!='ol_'&&eval(pf+'mouseoff')&&typeof v=='number'&&(v<pmStart||v>pmUpper))olHideDelay=ar[++i];continue;}
if(ar[i]==CLOSETITLE){eval(pf+"closetitle='"+escSglQuote(ar[++i])+"'");continue;}
if(ar[i]==CSSOFF||ar[i]==CSSCLASS){eval(pf+'css='+ar[i]);continue;}
if(ar[i]==COMPATMODE){eval(pf+'compatmode=('+pf+'compatmode==0) ? 1 : 0');continue;}
if(ar[i]==FGCLASS){eval(pf+'fgclass="'+ar[++i]+'"');continue;}
if(ar[i]==BGCLASS){eval(pf+'bgclass="'+ar[++i]+'"');continue;}
if(ar[i]==TEXTFONTCLASS){eval(pf+'textfontclass="'+ar[++i]+'"');continue;}
if(ar[i]==CAPTIONFONTCLASS){eval(pf+'captionfontclass="'+ar[++i]+'"');continue;}
if(ar[i]==CLOSEFONTCLASS){eval(pf+'closefontclass="'+ar[++i]+'"');continue;}
i=parseCmdLine(pf,i,ar);}}
if(fnMark&&o3_function)o3_text=o3_function();if((pf=='o3_')&&o3_wrap){o3_width=0;var tReg=/<.*\n*>/ig;if(!tReg.test(o3_text))o3_text=o3_text.replace(/[ ]+/g,'&nbsp;');if(!tReg.test(o3_cap))o3_cap=o3_cap.replace(/[ ]+/g,'&nbsp;');}
if((pf=='o3_')&&o3_sticky){if(!o3_close&&(o3_frame!=ol_frame))o3_close=ol_close;if(o3_mouseoff&&(o3_frame==ol_frame))opt_NOCLOSE(' ');}}
function layerWrite(txt){txt+="\n";if(olNs4){var lyr=o3_frame.document.layers['overDiv'].document
lyr.write(txt)
lyr.close()}else if(typeof over.innerHTML!='undefined'){if(olIe5&&isMac)over.innerHTML='';over.innerHTML=txt;}else{range=o3_frame.document.createRange();range.setStartAfter(over);domfrag=range.createContextualFragment(txt);while(over.hasChildNodes()){over.removeChild(over.lastChild);}
over.appendChild(domfrag);}}
function showObject(obj){runHook("showObject",FBEFORE);var theObj=(olNs4?obj:obj.style);theObj.visibility='visible';runHook("showObject",FAFTER);}
function hideObject(obj){runHook("hideObject",FBEFORE);var theObj=(olNs4?obj:obj.style);if(olNs6&&olShowId>0){clearTimeout(olShowId);olShowId=0;}
theObj.visibility='hidden';theObj.top=theObj.left=((olIe4&&!olOp)?0:-10000)+(!olNs4?'px':0);if(o3_timerid>0)clearTimeout(o3_timerid);if(o3_delayid>0)clearTimeout(o3_delayid);o3_timerid=0;o3_delayid=0;self.status="";if(obj.onmouseout||obj.onmouseover){if(olNs4)obj.releaseEvents(Event.MOUSEOUT||Event.MOUSEOVER);obj.onmouseout=obj.onmouseover=null;}
runHook("hideObject",FAFTER);}
function repositionTo(obj,xL,yL){var theObj=(olNs4?obj:obj.style);theObj.left=xL+(!olNs4?'px':0);theObj.top=yL+(!olNs4?'px':0);}
function cursorOff(){var left=parseInt(over.style.left);var top=parseInt(over.style.top);var right=left+(over.offsetWidth>=parseInt(o3_width)?over.offsetWidth:parseInt(o3_width));var bottom=top+(over.offsetHeight>=o3_aboveheight?over.offsetHeight:o3_aboveheight);if(o3_x<left||o3_x>right||o3_y<top||o3_y>bottom)return true;return false;}
function opt_FUNCTION(callme){o3_text=(callme?(typeof callme=='string'?(/.+\(.*\)/.test(callme)?eval(callme):callme):callme()):(o3_function?o3_function():'No Function'));return 0;}
function opt_NOCLOSE(unused){if(!unused)o3_close="";if(olNs4){over.captureEvents(Event.MOUSEOUT||Event.MOUSEOVER);over.onmouseover=function(){if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}}
over.onmouseout=function(e){if(olHideDelay)hideDelay(olHideDelay);else cClick(e);}}else{over.onmouseover=function(){hoveringSwitch=true;if(o3_timerid>0){clearTimeout(o3_timerid);o3_timerid=0;}}}
return 0;}
function opt_MULTIPLEARGS(i,args,parameter){var k=i,re,pV,str='';for(k=i;k<args.length;k++){if(typeof args[k]=='number'&&args[k]>pmStart)break;str+=args[k]+',';}
if(str)str=str.substring(0,--str.length);k--;pV=(olNs4&&/cellpad/i.test(parameter))?str.split(',')[0]:str;eval(parameter+'="'+pV+'"');return k;}
function nbspCleanup(){if(o3_wrap){o3_text=o3_text.replace(/\&nbsp;/g,' ');o3_cap=o3_cap.replace(/\&nbsp;/g,' ');}}
function escSglQuote(str){return str.toString().replace(/'/g,"\\'");}
function OLonLoad_handler(e){var re=/\w+\(.*\)[;\s]+/g,olre=/overlib\(|nd\(|cClick\(/,fn,l,i;if(!olLoaded)olLoaded=1;if(window.removeEventListener&&e.eventPhase==3)window.removeEventListener("load",OLonLoad_handler,false);else if(window.detachEvent){window.detachEvent("onload",OLonLoad_handler);var fN=document.body.getAttribute('onload');if(fN){fN=fN.toString().match(re);if(fN&&fN.length){for(i=0;i<fN.length;i++){if(/anonymous/.test(fN[i]))continue;while((l=fN[i].search(/\)[;\s]+/))!=-1){fn=fN[i].substring(0,l+1);fN[i]=fN[i].substring(l+2);if(olre.test(fn))eval(fn);}}}}}}
function wrapStr(endWrap,fontSizeStr,whichString){var fontStr,fontColor,isClose=((whichString=='close')?1:0),hasDims=/[%\-a-z]+$/.test(fontSizeStr);fontSizeStr=(olNs4)?(!hasDims?fontSizeStr:'1'):fontSizeStr;if(endWrap)return(hasDims&&!olNs4)?(isClose?'</span>':'</div>'):'</font>';else{fontStr='o3_'+whichString+'font';fontColor='o3_'+((whichString=='caption')?'cap':whichString)+'color';return(hasDims&&!olNs4)?(isClose?'<span style="font-family: '+quoteMultiNameFonts(eval(fontStr))+'; color: '+eval(fontColor)+'; font-size: '+fontSizeStr+';">':'<div style="font-family: '+quoteMultiNameFonts(eval(fontStr))+'; color: '+eval(fontColor)+'; font-size: '+fontSizeStr+';">'):'<font face="'+eval(fontStr)+'" color="'+eval(fontColor)+'" size="'+(parseInt(fontSizeStr)>7?'7':fontSizeStr)+'">';}}
function quoteMultiNameFonts(theFont){var v,pM=theFont.split(',');for(var i=0;i<pM.length;i++){v=pM[i];v=v.replace(/^\s+/,'').replace(/\s+$/,'');if(/\s/.test(v)&&!/['"]/.test(v)){v="\'"+v+"\'";pM[i]=v;}}
return pM.join();}
function isExclusive(args){return false;}
function setCellPadStr(parameter){var Str='',j=0,ary=new Array(),top,bottom,left,right;Str+='padding: ';ary=parameter.replace(/\s+/g,'').split(',');switch(ary.length){case 2:top=bottom=ary[j];left=right=ary[++j];break;case 3:top=ary[j];left=right=ary[++j];bottom=ary[++j];break;case 4:top=ary[j];right=ary[++j];bottom=ary[++j];left=ary[++j];break;}
Str+=((ary.length==1)?ary[0]+'px;':top+'px '+right+'px '+bottom+'px '+left+'px;');return Str;}
function hideDelay(time){if(time&&!o3_delay){if(o3_timerid>0)clearTimeout(o3_timerid);o3_timerid=setTimeout("cClick()",(o3_timeout=time));}}
function horizontalPlacement(browserWidth,horizontalScrollAmount,widthFix){var placeX,iwidth=browserWidth,winoffset=horizontalScrollAmount;var parsedWidth=parseInt(o3_width);if(o3_fixx>-1||o3_relx!=null){placeX=(o3_relx!=null?(o3_relx<0?winoffset+o3_relx+iwidth-parsedWidth-widthFix:winoffset+o3_relx):o3_fixx);}else{if(o3_hauto==1){if((o3_x-winoffset)>(iwidth/2)){o3_hpos=LEFT;}else{o3_hpos=RIGHT;}}
if(o3_hpos==CENTER){placeX=o3_x+o3_offsetx-(parsedWidth/2);if(placeX<winoffset)placeX=winoffset;}
if(o3_hpos==RIGHT){placeX=o3_x+o3_offsetx;if((placeX+parsedWidth)>(winoffset+iwidth-widthFix)){placeX=iwidth+winoffset-parsedWidth-widthFix;if(placeX<0)placeX=0;}}
if(o3_hpos==LEFT){placeX=o3_x-o3_offsetx-parsedWidth;if(placeX<winoffset)placeX=winoffset;}
if(o3_snapx>1){var snapping=placeX%o3_snapx;if(o3_hpos==LEFT){placeX=placeX-(o3_snapx+snapping);}else{placeX=placeX+(o3_snapx-snapping);}
if(placeX<winoffset)placeX=winoffset;}}
return placeX;}
function verticalPlacement(browserHeight,verticalScrollAmount){var placeY,iheight=browserHeight,scrolloffset=verticalScrollAmount;var parsedHeight=(o3_aboveheight?parseInt(o3_aboveheight):(olNs4?over.clip.height:over.offsetHeight));if(o3_fixy>-1||o3_rely!=null){placeY=(o3_rely!=null?(o3_rely<0?scrolloffset+o3_rely+iheight-parsedHeight:scrolloffset+o3_rely):o3_fixy);}else{if(o3_vauto==1){if((o3_y-scrolloffset)>(iheight/2)&&o3_vpos==BELOW&&(o3_y+parsedHeight+o3_offsety-(scrolloffset+iheight)>0)){o3_vpos=ABOVE;}else if(o3_vpos==ABOVE&&(o3_y-(parsedHeight+o3_offsety)-scrolloffset<0)){o3_vpos=BELOW;}}
if(o3_vpos==ABOVE){if(o3_aboveheight==0)o3_aboveheight=parsedHeight;placeY=o3_y-(o3_aboveheight+o3_offsety);if(placeY<scrolloffset)placeY=scrolloffset;}else{placeY=o3_y+o3_offsety;}
if(o3_snapy>1){var snapping=placeY%o3_snapy;if(o3_aboveheight>0&&o3_vpos==ABOVE){placeY=placeY-(o3_snapy+snapping);}else{placeY=placeY+(o3_snapy-snapping);}
if(placeY<scrolloffset)placeY=scrolloffset;}}
return placeY;}
function checkPositionFlags(){if(olHautoFlag)olHautoFlag=o3_hauto=0;if(olVautoFlag)olVautoFlag=o3_vauto=0;return true;}
function windowWidth(){var w;if(o3_frame.innerWidth)w=o3_frame.innerWidth;else if(eval('o3_frame.'+docRoot)&&eval("typeof o3_frame."+docRoot+".clientWidth=='number'")&&eval('o3_frame.'+docRoot+'.clientWidth'))
w=eval('o3_frame.'+docRoot+'.clientWidth');return w;}
function createDivContainer(id,frm,zValue){id=(id||'overDiv'),frm=(frm||o3_frame),zValue=(zValue||9999);var objRef,divContainer=layerReference(id);if(divContainer==null){if(olNs4){divContainer=frm.document.layers[id]=new Layer(window.innerWidth,frm);objRef=divContainer;}else{var body=(olIe4?frm.document.all.tags('BODY')[0]:frm.document.getElementsByTagName("BODY")[0]);if(olIe4&&!document.getElementById){body.insertAdjacentHTML("beforeEnd",'<div id="'+id+'"></div>');divContainer=layerReference(id);}else{divContainer=frm.document.createElement("DIV");divContainer.id=id;body.appendChild(divContainer);}
objRef=divContainer.style;}
objRef.position='absolute';objRef.visibility='hidden';objRef.zIndex=zValue;if(olIe4&&!olOp)objRef.left=objRef.top='0px';else objRef.left=objRef.top=-10000+(!olNs4?'px':0);}
return divContainer;}
function layerReference(id){return(olNs4?o3_frame.document.layers[id]:(document.all?o3_frame.document.all[id]:o3_frame.document.getElementById(id)));}
function isFunction(fnRef){var rtn=true;if(typeof fnRef=='object'){for(var i=0;i<fnRef.length;i++){if(typeof fnRef[i]=='function')continue;rtn=false;break;}}else if(typeof fnRef!='function'){rtn=false;}
return rtn;}
function argToString(array,strtInd,argName){var jS=strtInd,aS='',ar=array;argName=(argName?argName:'ar');if(ar.length>jS){for(var k=jS;k<ar.length;k++)aS+=argName+'['+k+'], ';aS=aS.substring(0,aS.length-2);}
return aS;}
function reOrder(hookPt,fnRef,order){var newPt=new Array(),match,i,j;if(!order||typeof order=='undefined'||typeof order=='number')return hookPt;if(typeof order=='function'){if(typeof fnRef=='object'){newPt=newPt.concat(fnRef);}else{newPt[newPt.length++]=fnRef;}
for(i=0;i<hookPt.length;i++){match=false;if(typeof fnRef=='function'&&hookPt[i]==fnRef){continue;}else{for(j=0;j<fnRef.length;j++)if(hookPt[i]==fnRef[j]){match=true;break;}}
if(!match)newPt[newPt.length++]=hookPt[i];}
newPt[newPt.length++]=order;}else if(typeof order=='object'){if(typeof fnRef=='object'){newPt=newPt.concat(fnRef);}else{newPt[newPt.length++]=fnRef;}
for(j=0;j<hookPt.length;j++){match=false;if(typeof fnRef=='function'&&hookPt[j]==fnRef){continue;}else{for(i=0;i<fnRef.length;i++)if(hookPt[j]==fnRef[i]){match=true;break;}}
if(!match)newPt[newPt.length++]=hookPt[j];}
for(i=0;i<newPt.length;i++)hookPt[i]=newPt[i];newPt.length=0;for(j=0;j<hookPt.length;j++){match=false;for(i=0;i<order.length;i++){if(hookPt[j]==order[i]){match=true;break;}}
if(!match)newPt[newPt.length++]=hookPt[j];}
newPt=newPt.concat(order);}
hookPt=newPt;return hookPt;}
function setRunTimeVariables(){if(typeof runTime!='undefined'&&runTime.length){for(var k=0;k<runTime.length;k++){runTime[k]();}}}
function parseCmdLine(pf,i,args){if(typeof cmdLine!='undefined'&&cmdLine.length){for(var k=0;k<cmdLine.length;k++){var j=cmdLine[k](pf,i,args);if(j>-1){i=j;break;}}}
return i;}
function postParseChecks(pf,args){if(typeof postParse!='undefined'&&postParse.length){for(var k=0;k<postParse.length;k++){if(postParse[k](pf,args))continue;return false;}}
return true;}
function registerCommands(cmdStr){if(typeof cmdStr!='string')return;var pM=cmdStr.split(',');pms=pms.concat(pM);for(var i=0;i<pM.length;i++){eval(pM[i].toUpperCase()+'='+pmCount++);}}
function registerNoParameterCommands(cmdStr){if(!cmdStr&&typeof cmdStr!='string')return;pmt=(!pmt)?cmdStr:pmt+','+cmdStr;}
function registerHook(fnHookTo,fnRef,hookType,optPm){var hookPt,last=typeof optPm;if(fnHookTo=='plgIn'||fnHookTo=='postParse')return;if(typeof hookPts[fnHookTo]=='undefined')hookPts[fnHookTo]=new FunctionReference();hookPt=hookPts[fnHookTo];if(hookType!=null){if(hookType==FREPLACE){hookPt.ovload=fnRef;if(fnHookTo.indexOf('ol_content_')>-1)hookPt.alt[pms[CSSOFF-1-pmStart]]=fnRef;}else if(hookType==FBEFORE||hookType==FAFTER){var hookPt=(hookType==1?hookPt.before:hookPt.after);if(typeof fnRef=='object'){hookPt=hookPt.concat(fnRef);}else{hookPt[hookPt.length++]=fnRef;}
if(optPm)hookPt=reOrder(hookPt,fnRef,optPm);}else if(hookType==FALTERNATE){if(last=='number')hookPt.alt[pms[optPm-1-pmStart]]=fnRef;}else if(hookType==FCHAIN){hookPt=hookPt.chain;if(typeof fnRef=='object')hookPt=hookPt.concat(fnRef);else hookPt[hookPt.length++]=fnRef;}
return;}}
function registerRunTimeFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){runTime=runTime.concat(fn);}else{runTime[runTime.length++]=fn;}}}
function registerCmdLineFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){cmdLine=cmdLine.concat(fn);}else{cmdLine[cmdLine.length++]=fn;}}}
function registerPostParseFunction(fn){if(isFunction(fn)){if(typeof fn=='object'){postParse=postParse.concat(fn);}else{postParse[postParse.length++]=fn;}}}
function runHook(fnHookTo,hookType){var l=hookPts[fnHookTo],k,rtnVal=null,optPm,arS,ar=runHook.arguments;if(hookType==FREPLACE){arS=argToString(ar,2);if(typeof l=='undefined'||!(l=l.ovload))rtnVal=eval(fnHookTo+'('+arS+')');else rtnVal=eval('l('+arS+')');}else if(hookType==FBEFORE||hookType==FAFTER){if(typeof l!='undefined'){l=(hookType==1?l.before:l.after);if(l.length){arS=argToString(ar,2);for(var k=0;k<l.length;k++)eval('l[k]('+arS+')');}}}else if(hookType==FALTERNATE){optPm=ar[2];arS=argToString(ar,3);if(typeof l=='undefined'||(l=l.alt[pms[optPm-1-pmStart]])=='undefined'){rtnVal=eval(fnHookTo+'('+arS+')');}else{rtnVal=eval('l('+arS+')');}}else if(hookType==FCHAIN){arS=argToString(ar,2);l=l.chain;for(k=l.length;k>0;k--)if((rtnVal=eval('l[k-1]('+arS+')'))!=void(0))break;}
return rtnVal;}
function FunctionReference(){this.ovload=null;this.before=new Array();this.after=new Array();this.alt=new Array();this.chain=new Array();}
function Info(version,prerelease){this.version=version;this.prerelease=prerelease;this.simpleversion=Math.round(this.version*100);this.major=parseInt(this.simpleversion/100);this.minor=parseInt(this.simpleversion/10)-this.major*10;this.revision=parseInt(this.simpleversion)-this.major*100-this.minor*10;this.meets=meets;}
function meets(reqdVersion){return(!reqdVersion)?false:this.simpleversion>=Math.round(100*parseFloat(reqdVersion));}
registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSOFF);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSOFF);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSOFF);registerHook("ol_content_simple",ol_content_simple,FALTERNATE,CSSCLASS);registerHook("ol_content_caption",ol_content_caption,FALTERNATE,CSSCLASS);registerHook("ol_content_background",ol_content_background,FALTERNATE,CSSCLASS);registerPostParseFunction(checkPositionFlags);registerHook("hideObject",nbspCleanup,FAFTER);registerHook("horizontalPlacement",horizontalPlacement,FCHAIN);registerHook("verticalPlacement",verticalPlacement,FCHAIN);if(olNs4||(olIe5&&isMac)||olKq)olLoaded=1;registerNoParameterCommands('sticky,autostatus,autostatuscap,fullhtml,hauto,vauto,closeclick,wrap,followmouse,mouseoff,compatmode');var olCheckMouseCapture=true;if((olNs4||olNs6||olIe4)){olMouseCapture();}else{overlib=no_overlib;nd=no_overlib;ver3fix=true;}
var switchcontent_ajax_msg='<em>Loading Ajax content...</em>'
var switchcontent_ajax_bustcache=true
function switchcontent(className,filtertag){this.className=className
this.collapsePrev=false
this.persistType="none"
this.filter_content_tag=(typeof filtertag!="undefined")?filtertag.toLowerCase():""
this.ajaxheaders={}}
switchcontent.prototype.setStatus=function(openHTML,closeHTML){this.statusOpen=openHTML
this.statusClosed=closeHTML}
switchcontent.prototype.setColor=function(openColor,closeColor){this.colorOpen=openColor
this.colorClosed=closeColor}
switchcontent.prototype.setPersist=function(bool,days){if(bool==true){if(typeof days=="undefined")
this.persistType="session"
else{this.persistType="days"
this.persistDays=parseInt(days)}}
else
this.persistType="none"}
switchcontent.prototype.collapsePrevious=function(bool){this.collapsePrev=bool}
switchcontent.prototype.setContent=function(index,filepath){this.ajaxheaders["header"+index]=filepath}
switchcontent.prototype.sweepToggle=function(setting){if(typeof this.headers!="undefined"&&this.headers.length>0){for(var i=0;i<this.headers.length;i++){if(setting=="expand")
this.expandcontent(this.headers[i])
else if(setting=="contract")
this.contractcontent(this.headers[i])}}}
switchcontent.prototype.defaultExpanded=function(){var expandedindices=[]
for(var i=0;(!this.collapsePrev&&i<arguments.length)||(this.collapsePrev&&i==0);i++)
expandedindices[expandedindices.length]=arguments[i]
this.expandedindices=expandedindices.join(",")}
switchcontent.prototype.togglecolor=function(header,status){if(typeof this.colorOpen!="undefined")
header.style.color=status}
switchcontent.prototype.togglestatus=function(header,status){if(typeof this.statusOpen!="undefined")
header.firstChild.innerHTML=status}
switchcontent.prototype.contractcontent=function(header){var innercontent=document.getElementById(header.id.replace("-title",""))
innercontent.style.display="none"
this.togglestatus(header,this.statusClosed)
this.togglecolor(header,this.colorClosed)}
switchcontent.prototype.expandcontent=function(header){var innercontent=document.getElementById(header.id.replace("-title",""))
if(header.ajaxstatus=="waiting"){switchcontent.connect(header.ajaxfile,header)}
innercontent.style.display="block"
this.togglestatus(header,this.statusOpen)
this.togglecolor(header,this.colorOpen)}
switchcontent.prototype.toggledisplay=function(header){var innercontent=document.getElementById(header.id.replace("-title",""))
if(innercontent.style.display=="block")
this.contractcontent(header)
else{this.expandcontent(header)
if(this.collapsePrev&&typeof this.prevHeader!="undefined"&&this.prevHeader.id!=header.id)
this.contractcontent(this.prevHeader)}
if(this.collapsePrev)
this.prevHeader=header}
switchcontent.prototype.collectElementbyClass=function(classname){var classnameRE=new RegExp("(^|\\s+)"+classname+"($|\\s+)","i")
this.headers=[],this.innercontents=[]
if(this.filter_content_tag!="")
var allelements=document.getElementsByTagName(this.filter_content_tag)
else
var allelements=document.all?document.all:document.getElementsByTagName("*")
for(var i=0;i<allelements.length;i++){if(typeof allelements[i].className=="string"&&allelements[i].className.search(classnameRE)!=-1){if(document.getElementById(allelements[i].id+"-title")!=null){this.headers[this.headers.length]=document.getElementById(allelements[i].id+"-title")
this.innercontents[this.innercontents.length]=allelements[i]}}}}
switchcontent.prototype.init=function(){var instanceOf=this
this.collectElementbyClass(this.className)
if(this.headers.length==0)
return
if(this.persistType=="days"&&(parseInt(switchcontent.getCookie(this.className+"_dtrack"))!=this.persistDays))
switchcontent.setCookie(this.className+"_d","",-1)
var opencontents_ids=(this.persistType=="session"&&switchcontent.getCookie(this.className)!="")?','+switchcontent.getCookie(this.className)+',':(this.persistType=="days"&&switchcontent.getCookie(this.className+"_d")!="")?','+switchcontent.getCookie(this.className+"_d")+',':(this.expandedindices)?','+this.expandedindices+',':""
for(var i=0;i<this.headers.length;i++){if(typeof this.ajaxheaders["header"+i]!="undefined"){this.headers[i].ajaxstatus='waiting'
this.headers[i].ajaxfile=this.ajaxheaders["header"+i]}
if(typeof this.statusOpen!="undefined")
this.headers[i].innerHTML='<span class="status"></span>'+this.headers[i].innerHTML
if(opencontents_ids.indexOf(','+i+',')!=-1){this.expandcontent(this.headers[i])
if(this.collapsePrev)
this.prevHeader=this.headers[i]}
else
this.contractcontent(this.headers[i])
this.headers[i].onclick=function(){instanceOf.toggledisplay(this)}}
switchcontent.dotask(window,function(){instanceOf.rememberpluscleanup()},"unload")}
switchcontent.prototype.rememberpluscleanup=function(){var opencontents=new Array("none")
for(var i=0;i<this.innercontents.length;i++){if(this.persistType!="none"&&this.innercontents[i].style.display=="block"&&(!this.collapsePrev||(this.collapsePrev&&opencontents.length<2)))
opencontents[opencontents.length]=i
this.headers[i].onclick=null}
if(opencontents.length>1)
opencontents.shift()
if(typeof this.statusOpen!="undefined")
this.statusOpen=this.statusClosed=null
if(this.persistType=="session")
switchcontent.setCookie(this.className,opencontents.join(","))
else if(this.persistType=="days"&&typeof this.persistDays=="number"){switchcontent.setCookie(this.className+"_d",opencontents.join(","),this.persistDays)
switchcontent.setCookie(this.className+"_dtrack",this.persistDays,this.persistDays)}}
switchcontent.dotask=function(target,functionref,tasktype){var tasktype=(window.addEventListener)?tasktype:"on"+tasktype
if(target.addEventListener)
target.addEventListener(tasktype,functionref,false)
else if(target.attachEvent)
target.attachEvent(tasktype,functionref)}
switchcontent.connect=function(pageurl,header){var page_request=false
var bustcacheparameter=""
if(window.ActiveXObject){try{page_request=new ActiveXObject("Msxml2.XMLHTTP")}
catch(e){try{page_request=new ActiveXObject("Microsoft.XMLHTTP")}
catch(e){}}}
else if(window.XMLHttpRequest)
page_request=new XMLHttpRequest()
else
return false
page_request.onreadystatechange=function(){switchcontent.loadpage(page_request,header)}
if(switchcontent_ajax_bustcache)
bustcacheparameter=(pageurl.indexOf("?")!=-1)?"&"+new Date().getTime():"?"+new Date().getTime()
page_request.open('GET',pageurl+bustcacheparameter,true)
page_request.send(null)}
switchcontent.loadpage=function(page_request,header){var innercontent=document.getElementById(header.id.replace("-title",""))
innercontent.innerHTML=switchcontent_ajax_msg
if(page_request.readyState==4&&(page_request.status==200||window.location.href.indexOf("http")==-1)){innercontent.innerHTML=page_request.responseText
header.ajaxstatus="loaded"}}
switchcontent.getCookie=function(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return""}
switchcontent.setCookie=function(name,value,days){if(typeof days!="undefined"){var expireDate=new Date();var expstring=expireDate.setDate(expireDate.getDate()+days);document.cookie=name+"="+value+"; expires="+expireDate.toGMTString();}
else
document.cookie=name+"="+value;}
var enabletabpersistence=1
var tabcontentIDs=new Object()
function expandcontent(linkobj){var ulid=linkobj.parentNode.parentNode.id
var ullist=document.getElementById(ulid).getElementsByTagName("li")
for(var i=0;i<ullist.length;i++){ullist[i].className=""
if(typeof tabcontentIDs[ulid][i]!="undefined")
document.getElementById(tabcontentIDs[ulid][i]).style.display="none"}
linkobj.parentNode.className="selected"
document.getElementById(linkobj.getAttribute("rel")).style.display="block"
saveselectedtabcontentid(ulid,linkobj.getAttribute("rel"))}
function expandtab(tabcontentid,tabnumber){var thetab=document.getElementById(tabcontentid).getElementsByTagName("a")[tabnumber]
if(thetab.getAttribute("rel"))
expandcontent(thetab)}
function savetabcontentids(ulid,relattribute){if(typeof tabcontentIDs[ulid]=="undefined")
tabcontentIDs[ulid]=new Array()
tabcontentIDs[ulid][tabcontentIDs[ulid].length]=relattribute}
function saveselectedtabcontentid(ulid,selectedtabid){if(enabletabpersistence==1)
setCookie(ulid,selectedtabid)}
function getullistlinkbyId(ulid,tabcontentid){var ullist=document.getElementById(ulid).getElementsByTagName("li")
for(var i=0;i<ullist.length;i++){if(ullist[i].getElementsByTagName("a")[0].getAttribute("rel")==tabcontentid){return ullist[i].getElementsByTagName("a")[0]
break}}}
function initializetabcontent(){for(var i=0;i<arguments.length;i++){if(enabletabpersistence==0&&getCookie(arguments[i])!="")
setCookie(arguments[i],"")
var clickedontab=getCookie(arguments[i])
var ulobj=document.getElementById(arguments[i])
var ulist=ulobj.getElementsByTagName("li")
for(var x=0;x<ulist.length;x++){var ulistlink=ulist[x].getElementsByTagName("a")[0]
if(ulistlink.getAttribute("rel")){savetabcontentids(arguments[i],ulistlink.getAttribute("rel"))
ulistlink.onclick=function(){expandcontent(this)
return false}
if(ulist[x].className=="selected"&&clickedontab=="")
expandcontent(ulistlink)}}
if(clickedontab!=""){var culistlink=getullistlinkbyId(arguments[i],clickedontab)
if(typeof culistlink!="undefined")
expandcontent(culistlink)
else
expandcontent(ulist[0].getElementsByTagName("a")[0])}}}
function getCookie(Name){var re=new RegExp(Name+"=[^;]+","i");if(document.cookie.match(re))
return document.cookie.match(re)[0].split("=")[1]
return""}
function setCookie(name,value){document.cookie=name+"="+value}
var selectie;var verstuurd=0;function customErrorHandler(description,page,line)
{return true;}
window.onerror=customErrorHandler;function makeHttpRequest(url,callb,o,v)
{var objXML=false;if(window.XMLHttpRequest)
{objXML=new XMLHttpRequest();if(objXML.overrideMimeType)
{objXML.overrideMimeType("text/html");}}
else if(window.ActiveXObject)
{try
{objXML=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{try
{objXML=new ActiveXObject("Microsoft.XMLHTTP");}
catch(e){}}}
if(!objXML)
{return false;}
objXML.open("GET",url,true);objXML.onreadystatechange=function()
{if(objXML.readyState==4)
{if(objXML.status==200)
{eval(callb+"(objXML.responseText,o,v)");}
else
{return objXML.status;}}}
objXML.send(null);}
function zetWaardeEigenschap(o,id)
{try
{document.getElementById(o.getActualValue()).value='on';document.getElementById('extra_zoeken').style.display="inline";document.getElementById('layer_'+o.getActualValue()).style.display="inline";var directversturen=true;try
{if((document.forms.zoek.i_a_v.value!='on')||(document.forms.zoek.i_a_v_homepage.value=='off'))
{directversturen=false;}}
catch(e){}
if(directversturen)
{document.zoek.submit();disableAll();}}
catch(e){}}
function verwijderWaardeEigenschap(id)
{try
{document.forms.zoek(id).value='';document.getElementById('layer_'+id).style.display="none";si_eigenschappen.clearAll();si_eigenschappen.setComboText('- maak meerdere keuzes -');si_eigenschappen.addOption([['','- maak meerdere keuzes -']]);si_eigenschappen.selectOption(0,false,true);var directversturen=true;try
{if((document.forms.zoek.i_a_v.value!='on')||(document.forms.zoek.i_a_v_homepage.value=='off'))
{directversturen=false;}}
catch(e){}
if(directversturen)
{document.zoek.submit();disableAll();}}
catch(e){}}
function schrijfEigenschappen()
{if(document.getElementById('zoek')!=null)
{var layer=false;for(var i=0;i<document.zoek.elements.length;i++)
{if(document.zoek.elements[i].type=='hidden')
{if(document.zoek.elements[i].value=='on')
{try
{document.getElementById('layer_'+document.zoek.elements[i].id).style.display="inline";layer=true;}
catch(e){}}}}
if(layer)
{try
{document.getElementById('uitgebreider_zoeken').style.display="inline";document.getElementById('link_uitgebreider_zoeken').style.display="none";document.getElementById('extra_zoeken').style.display="inline";}
catch(e){}}}}
function laadLijst(o,id)
{try
{kalender.close();}
catch(e){}
var update=true;if((id=='i_pe')||(id=='i_m'))
{if((document.getElementById('i_ma').value=='')||(document.getElementById('i_ma').value==0))
{update=false;}}
if(id=='i_pl')
{if((document.getElementById('i_pr').value=='')||(document.getElementById('i_pr').value==0))
{update=false;}}
if(update)
{var val=o.getSelectedValue();o.clearAll();o.addOption([[val,'de lijst wordt geladen']]);o.selectOption(o.getIndexByValue(val));var parameters=getParameters(id);makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst='+id+'&'+parameters,'verwerkLijst',o,val);}}
function laadKalender(d)
{kalender.addExtraSelectorCover();kalender.clearSensitiveDays();kalender.clearEnabledDays();kalender.setInsensitiveRange('01-01-1001',null);var parameters=getParameters('i_kalender');var jaarmaand;if(d)
{jaarmaand=kalender.getFormatedDate("%Y%m",kalender.getActiveMonth());}
else
{jaarmaand=kalender.getFormatedDate("%Y%m",kalender.getActiveMonth());}
makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=i_a&i_ma='+jaarmaand+'&'+parameters,'verwerkKalender',kalender);}
function verwerkKalender(text,o)
{var xmlDoc=createXMLObject(text);for(var i=0;i<xmlDoc.getElementsByTagName("b").length;i++)
{o.setSensitiveDays(xmlDoc.getElementsByTagName("b")[i].childNodes[0].nodeValue);}
for(var i=0;i<xmlDoc.getElementsByTagName("d").length;i++)
{o.setEnabledDay(xmlDoc.getElementsByTagName("d")[i].childNodes[0].nodeValue);}
o.setHolidays(null);for(var i=0;i<xmlDoc.getElementsByTagName("p").length;i++)
{o.setHolidays(xmlDoc.getElementsByTagName("p")[i].childNodes[0].nodeValue);}
o.deleteExtraSelectorCover();o.show();}
function changeKalendersVakantiehuis(o,h,j,m)
{var jaar1;var maand1;var jaar2;var maand2;var jaar3;var maand3;var kalenderdate=new Date();kalenderdate.setFullYear(j,m-1,1);switch(o)
{case kalender1:jaar1=j;maand1=m;kalenderdate.setMonth(kalenderdate.getMonth()+1);jaar2=kalenderdate.getFullYear();maand2=kalenderdate.getMonth()+1;if(maand2<10){maand2='0'+maand2;}
kalenderdate.setMonth(kalenderdate.getMonth()+1);jaar3=kalenderdate.getFullYear();maand3=kalenderdate.getMonth()+1;if(maand3<10){maand3='0'+maand3;}
break;case kalender2:jaar2=j;maand2=m;kalenderdate.setMonth(kalenderdate.getMonth()-1);jaar1=kalenderdate.getFullYear();maand1=kalenderdate.getMonth()+1;if(maand1<10){maand1='0'+maand1;}
kalenderdate.setMonth(kalenderdate.getMonth()+2);jaar3=kalenderdate.getFullYear();maand3=kalenderdate.getMonth()+1;if(maand3<10){maand3='0'+maand3;}
break;case kalender3:jaar3=j;maand3=m;kalenderdate.setMonth(kalenderdate.getMonth()-1);jaar2=kalenderdate.getFullYear();maand2=kalenderdate.getMonth()+1;if(maand2<10){maand2='0'+maand2;}
kalenderdate.setMonth(kalenderdate.getMonth()-1);jaar1=kalenderdate.getFullYear();maand1=kalenderdate.getMonth()+1;if(maand1<10){maand1='0'+maand1;}
break;}
laadKalenderVakantiehuis(kalender1,h,jaar1,maand1);laadKalenderVakantiehuis(kalender2,h,jaar2,maand2);laadKalenderVakantiehuis(kalender3,h,jaar3,maand3);}
function laadKalenderVakantiehuis(o,h,j,m)
{o.show();o.addExtraSelectorCover();o.clearSensitiveDays();o.clearEnabledDays();o.setInsensitiveRange('01-01-1001',null);var parameters='i_h='+h+'&i_ma='+j+m+'&i_ve='+document.getElementById('i_periode').value;o.setActiveMonth('01-'+m+'-'+j);makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=i_a_vakantiehuis&'+parameters,'verwerkKalender',o);}
function laadKalendersVakantiehuis(h)
{laadKalenderVakantiehuis(kalender1,h,kalender1.getFormatedDate("%Y",kalender1.getActiveMonth()),kalender1.getFormatedDate("%m",kalender1.getActiveMonth()));laadKalenderVakantiehuis(kalender2,h,kalender2.getFormatedDate("%Y",kalender2.getActiveMonth()),kalender2.getFormatedDate("%m",kalender2.getActiveMonth()));laadKalenderVakantiehuis(kalender3,h,kalender3.getFormatedDate("%Y",kalender3.getActiveMonth()),kalender3.getFormatedDate("%m",kalender3.getActiveMonth()));}
function initKalender()
{var text='alle dagen';document.getElementById('kalender').value=text;document.getElementById('i_a').value='';}
function changeValuesKalender(date)
{document.getElementById('i_ma').value=kalender.getFormatedDate("%Y%m",date);document.getElementById('i_a').value=kalender.getFormatedDate("%Y-%m-%d",date);document.getElementById('kalender').value=kalender.getFormatedDate("%j",date)+' '+getMonthInText(kalender.getFormatedDate("%m",date))+' '+kalender.getFormatedDate("%Y",date);var text=getMonthInText(kalender.getFormatedDate("%m",date))+' '+kalender.getFormatedDate("%Y",date);si_ma.clearAll();si_ma.setComboText(text);si_ma.addOption([[document.getElementById('i_ma').value,text]]);si_ma.selectOption(0,false,true);try
{try
{var loader_image='loader.gif';if(document.getElementById('i_c').value==1)
{loader_image='loader_algemeen.gif';}}
catch(e){}
document.getElementById('diveigenschappen').innerHTML="<span style='padding-left:50px;'><img src='http://www.vakantiekoorts.nl/images/"+loader_image+"' /></span>";var parameters=getParameters('');makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=i_eigenschappen&'+parameters,'verwerkLijstEigenschappen');}
catch(e){}}
function changeValuesKalenderVakantiehuis(o,date)
{document.getElementById('i_ma').value=o.getFormatedDate("%Y%m",date);document.getElementById('i_a').value=o.getFormatedDate("%Y-%m-%d",date);var fulldate=o.getFormatedDate("%d-%m-%Y",date);switch(o)
{case kalender1:kalender2.setDateVakantiehuis(fulldate);kalender3.setDateVakantiehuis(fulldate);break;case kalender2:kalender1.setDateVakantiehuis(fulldate);kalender3.setDateVakantiehuis(fulldate);break;case kalender3:kalender1.setDateVakantiehuis(fulldate);kalender2.setDateVakantiehuis(fulldate);break;}
getDirectBoeken();}
function changeMonthsKalenders(h,m)
{var kalenderdate=new Date();var kalenderdate=kalender1.getActiveMonth();kalender1.addExtraSelectorCover();kalenderdate.setMonth(kalenderdate.getMonth()+m);var jaar=kalenderdate.getFullYear();var maand=kalenderdate.getMonth()+1
if(maand<10){maand='0'+maand;}
changeKalendersVakantiehuis(kalender1,h,jaar,maand);}
function getMonthInText(month)
{var text='';switch(month)
{case'01':text='januari';break;case'02':text='februari';break;case'03':text='maart';break;case'04':text='april';break;case'05':text='mei';break;case'06':text='juni';break;case'07':text='juli';break;case'08':text='augustus';break;case'09':text='september';break;case'10':text='oktober';break;case'11':text='november';break;case'12':text='december';break;}
return text;}
function createXMLObject(xmlstring)
{if(window.DOMParser)
{parser=new DOMParser();xmlDoc=parser.parseFromString(xmlstring,"text/xml");}
else
{xmlDoc=new ActiveXObject("Microsoft.XMLDOM");xmlDoc.async="false";xmlDoc.loadXML(xmlstring);}
return xmlDoc;}
function toggleElementByName(n,t)
{for(i=0;i<document.getElementsByName(n).length;i++)
{document.getElementsByName(n).item(i).style.display=t;}}
function submitDivLijst(id,val)
{document.getElementById(id).value=val;try
{try
{var loader_image='loader.gif';if(document.getElementById('i_c').value==1)
{loader_image='loader_algemeen.gif';}}
catch(e){}
document.getElementById('diveigenschappen').innerHTML="<span style='padding-left:50px;'><img src='http://www.vakantiekoorts.nl/images/"+loader_image+"' /></span>";var parameters=getParameters('');makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=i_eigenschappen&'+parameters,'verwerkLijstEigenschappen');}
catch(e){}}
function verwerkLijst(xmldoc,o,v)
{o.loadXMLString(xmldoc);o._setOptionAutoHeight(true,204);if(v)
{var index=o.getIndexByValue(v);o.selectOption(index,false,true);}
else
{o.selectOption(0,false,true);}}
function verwerkLijstEigenschappen(xmldoc)
{try
{document.getElementById('diveigenschappen').innerHTML=xmldoc;}
catch(e){}}
function zetWaarde(o,id)
{if(id=='i_ma')
{if(document.getElementById(id).value!=o.getActualValue())
{try
{if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{document.getElementById('i_pe').value='';document.getElementById('i_ve').value='';if(!portal)
{document.getElementById('i_m').value='';}
si_pe.clearAll();si_pe.setComboText('- alle perioden -');si_pe.addOption([['','- alle perioden -']]);si_pe.selectOption(0,false,true);si_ve.clearAll();si_ve.setComboText('- alle verblijfsduren -');si_ve.addOption([['','- alle verblijfsduren -']]);si_ve.selectOption(0,false,true);if(!portal)
{si_m.clearAll();si_m.setComboText('- alle prijzen -');si_m.addOption([['','- alle prijzen -']]);si_m.selectOption(0,false,true);}}
else
{document.getElementById('i_pe').value='';document.getElementById('i_ve').value='';if(!portal)
{document.getElementById('i_m').value='';}
si_pe.clearAll();si_pe.setComboText('kies eerst een maand');si_pe.addOption([['','kies eerst een maand']]);si_pe.selectOption(0,false,true);si_ve.clearAll();si_ve.setComboText('kies eerst een maand');si_ve.addOption([['','kies eerst een maand']]);si_ve.selectOption(0,false,true);if(!portal)
{si_m.clearAll();si_m.setComboText('kies eerst een maand');si_m.addOption([['','kies eerst een maand']]);si_m.selectOption(0,false,true);}}}
catch(e){}}}
if(id=='i_ve')
{try
{if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{document.getElementById('i_pe').value='';si_pe.clearAll();si_pe.setComboText('- alle perioden -');si_pe.addOption([['','- alle perioden -']]);si_pe.selectOption(0,false,true);}}
catch(e){}}
var oldvalue=document.getElementById(id).value;var newvalue=o.getActualValue();document.getElementById(id).value=o.getActualValue();if(id=='i_ma')
{if((oldvalue!=newvalue)&&(newvalue!=0)&&(newvalue!=''))
{if(newvalue!=kalender.getFormatedDate("%Y%m",kalender.getActiveMonth()))
{initKalender();kalender.setActiveMonth('01-'+newvalue.substring(4,6)+'-'+newvalue.substring(0,4));}}
else
{if((oldvalue!=0)&&(oldvalue!='')&&(newvalue==0))
{initKalender();}}}
if(id=='i_l')
{if(oldvalue!=newvalue)
{document.getElementById('i_pr').value='';si_pr.clearAll();si_pr.setComboText('- alle provincies -');si_pr.addOption([['','- alle provincies -']]);si_pr.selectOption(0,false,true);if(document.getElementById('zoekform'))
{setFlash(newvalue);}
try
{document.getElementById('i_pl').value='';si_pl.clearAll();si_pl.setComboText('kies eerst een provincie');si_pl.addOption([['','kies eerst een provincie']]);si_pl.selectOption(0,false,true);}
catch(e){}}}
if(id=='i_pr')
{try
{if(oldvalue!=newvalue)
{document.getElementById('i_pl').value='';si_pl.clearAll();si_pl.setComboText('- alle plaatsen -');si_pl.addOption([['','- alle plaatsen -']]);si_pl.selectOption(0,false,true);}
if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{}
else
{document.getElementById('i_pl').value='';document.getElementById('i_pl').value='';si_pl.clearAll();si_pl.setComboText('kies eerst een provincie');si_pl.addOption([['','kies eerst een provincie']]);si_pl.selectOption(0,false,true);}}
catch(e){}}
if(oldvalue!=newvalue)
{if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{try
{try
{var loader_image='loader.gif';if(document.getElementById('i_c').value==1)
{loader_image='loader_algemeen.gif';}}
catch(e){}
document.getElementById('diveigenschappen').innerHTML="<span style='padding-left:50px;'><img src='http://www.vakantiekoorts.nl/images/"+loader_image+"' /></span>";var parameters=getParameters('');makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=i_eigenschappen&'+parameters,'verwerkLijstEigenschappen');}
catch(e){}}}}
function zetWaarde_partners(o,id)
{if(id=='i_ma')
{if(document.getElementById(id).value!=o.getActualValue())
{try
{if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{document.getElementById('i_pe').value='';document.getElementById('i_ve').value='';si_pe.clearAll();si_pe.setComboText('- alle perioden -');si_pe.addOption([['','- alle perioden -']]);si_pe.selectOption(0,false,true);si_ve.clearAll();si_ve.setComboText('- alle verblijfsduren -');si_ve.addOption([['','- alle verblijfsduren -']]);si_ve.selectOption(0,false,true);}
else
{document.getElementById('i_pe').value='';document.getElementById('i_ve').value='';si_pe.clearAll();si_pe.setComboText('periode [kies eerst een maand]');si_pe.addOption([['','periode [kies eerst een maand]']]);si_pe.selectOption(0,false,true);si_ve.clearAll();si_ve.setComboText('verblijfsduur [kies eerst een maand]');si_ve.addOption([['','verblijfsduur [kies eerst een maand]']]);si_ve.selectOption(0,false,true);}}
catch(e){}}}
if(id=='i_ve')
{try
{if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{document.getElementById('i_pe').value='';si_pe.clearAll();si_pe.setComboText('- alle perioden -');si_pe.addOption([['','- alle perioden -']]);si_pe.selectOption(0,false,true);}}
catch(e){}}
var oldvalue=document.getElementById(id).value;var newvalue=o.getActualValue();document.getElementById(id).value=o.getActualValue();if(id=='i_ma')
{if((oldvalue!=newvalue)&&(newvalue!=0)&&(newvalue!=''))
{if(newvalue!=kalender.getFormatedDate("%Y%m",kalender.getActiveMonth()))
{initKalender();kalender.setActiveMonth('01-'+newvalue.substring(4,6)+'-'+newvalue.substring(0,4));}}
else
{if((oldvalue!=0)&&(oldvalue!='')&&(newvalue==0))
{initKalender();}}}
if(id=='i_l')
{if(oldvalue!=newvalue)
{document.getElementById('i_pr').value='';si_pr.clearAll();si_pr.setComboText('- alle provincies -');si_pr.addOption([['','- alle provincies -']]);si_pr.selectOption(0,false,true);if(document.getElementById('zoekform'))
{setFlash(newvalue);}
try
{document.getElementById('i_pl').value='';si_pl.clearAll();si_pl.setComboText('plaats [kies eerst een provincie]');si_pl.addOption([['','plaats [kies eerst een provincie]']]);si_pl.selectOption(0,false,true);}
catch(e){}}}
if(id=='i_pr')
{try
{if(oldvalue!=newvalue)
{document.getElementById('i_pl').value='';si_pl.clearAll();si_pl.setComboText('- alle plaatsen -');si_pl.addOption([['','- alle plaatsen -']]);si_pl.selectOption(0,false,true);}
if((o.getActualValue()!='')&&(o.getActualValue()!=0))
{}
else
{document.getElementById('i_pl').value='';document.getElementById('i_pl').value='';si_pl.clearAll();si_pl.setComboText('plaats [kies eerst een provincie]');si_pl.addOption([['','plaats [kies eerst een provincie]']]);si_pl.selectOption(0,false,true);}}
catch(e){}}
if(oldvalue!=newvalue)
{if((oldvalue==''&&newvalue==0)||(oldvalue==0&&newvalue==''))
{}
else
{var directversturen=true;try
{if((document.forms.zoek.i_a_v.value!='on')||(document.forms.zoek.i_a_v_homepage.value=='off'))
{directversturen=false;}}
catch(e){}
if(directversturen)
{document.zoek.submit();disableAll();}}}}
function urlencode(str)
{var histogram={},histogram_r={},code=0,tmp_arr=[];var ret=str.toString();var replacer=function(search,replace,str){var tmp_arr=[];tmp_arr=str.split(search);return tmp_arr.join(replace);};histogram['!']='%21';histogram['%20']='+';ret=encodeURIComponent(ret);for(search in histogram){replace=histogram[search];ret=replacer(search,replace,ret)}
return ret.replace(/(\%([a-z0-9]{2}))/g,function(full,m1,m2){return"%"+m2.toUpperCase();});return ret;}
function disableAll()
{document.zoek.disabled=true;}
function enableAll()
{for(var i=0;i<document.zoek.elements.length;i++)
{document.zoek.elements[i].disabled=false;}}
function getParameters(lijst_id)
{var parameters="";for(var i=0;i<document.zoek.elements.length;i++)
{var id="";var value="";switch(document.zoek.elements[i].type)
{case"hidden":id=document.zoek.elements[i].id;value=document.zoek.elements[i].value;break;case"select-one":id=document.zoek.elements[i].id;value=document.zoek.elements[i].value;break;case"checkbox":if(document.zoek.elements[i].checked)
{id=document.zoek.elements[i].id;value="on";}
break;}
if(id!=lijst_id)
{if((lijst_id=='i_kalender')&&(id=='i_ma'))
{id='';}
if((lijst_id=='i_kalender')&&(id=='i_a'))
{id='';}
if((lijst_id=='i_kalender')&&(id=='i_v'))
{id='';}
if(value==0)
{value='';}
if(id.length>0)
{if(value.length>0)
{if(parameters.length>0)
{parameters+="&";}
if(id=='i_pl')
{if(encodeURIComponent){value=encodeURIComponent(value);}else{value=Utf8.encode(value);}}
parameters+=id+"="+value;}}}}
return parameters;}
function selecteerFavoriet(huiscode,v,sp)
{var parkeer=document.getElementById(sp);var selectie=new Image();var huisnummers=getTheCookie('sel[h]');if(v)
{selectie.src='http://www.vakantiekoorts.nl/selectie.php?s=1&c_i_h='+huiscode;parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_off_new.gif\" title=\"verwijder uit uw huizenlijst\" onclick=\"selecteerFavoriet('"+huiscode+"',false,'"+sp+"');return false;\" />";}
else
{selectie.src='http://www.vakantiekoorts.nl/selectie.php?s=0&c_i_h='+huiscode;parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_new.gif\" title=\"voeg toe aan huizenlijst\" onclick=\"selecteerFavoriet('"+huiscode+"',true,'"+sp+"');return false;\" />";}
return true;}
function selecteerFavorietVoorSelectie(huiscode,v,sp)
{var parkeer=document.getElementById(sp);var selectie=new Image();var huisnummers=getTheCookie('sel[h]');if(v)
{selectie.src='http://www.vakantiekoorts.nl/selectie.php?s=1&c_i_h='+huiscode;parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_off_new.gif\" title=\"verwijder uit uw huizenlijst\" onclick=\"selecteerFavorietVoorSelectie('"+huiscode+"',false,'"+sp+"');return false;\" />";}
else
{try
{selectie.src='http://www.vakantiekoorts.nl/selectie.php?s=0&c_i_h='+huiscode;parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_new.gif\" title=\"voeg toe aan huizenlijst\" onclick=\"selecteerFavorietVoorSelectie('"+huiscode+"',true,'"+sp+"');return false;\" />";document.getElementById('vakantiehuis_'+huiscode).style.display='none';document.getElementById('lijn_'+huiscode).style.display='none';}
catch(e){}}
return true;}
function selecteerFavorietVoorVakantiehuis(huiscode,v,sp)
{var parkeer=document.getElementById(sp);var selectie=new Image();var huisnummers=getTheCookie('sel[h]');if(v)
{selectie.src='http://www.vakantiekoorts.nl/selectie.php?s=1&c_i_h='+huiscode;parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_off_new.gif\" title=\"verwijder uit uw huizenlijst\" onclick=\"selecteerFavorietVoorVakantiehuis('"+huiscode+"',false,'"+sp+"');return false;\" />";}
else
{selectie.src='http://www.vakantiekoorts.nl/selectie.php?s=0&c_i_h='+huiscode;parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_new.gif\" title=\"voeg toe aan huizenlijst\" onclick=\"selecteerFavorietVoorVakantiehuis('"+huiscode+"',true,'"+sp+"');return false;\" />";}
return true;}
function selecteerFavorietNew(huiscode,v,sp)
{var parkeer=document.getElementById(sp);var huisnummers=getTheCookie('sel[h]');if(v)
{parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_off_new.gif\" title=\"verwijder uit uw huizenlijst\" onclick=\"selecteerFavoriet('"+huiscode+"',false,'"+sp+"');return false;\" />";}
else
{parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_new.gif\" title=\"voeg toe aan huizenlijst\" onclick=\"selecteerFavoriet('"+huiscode+"',true,'"+sp+"');return false;\" />";}
return true;}
function selecteerFavorietVoorSelectieNew(huiscode,v,sp)
{var parkeer=document.getElementById(sp);var huisnummers=getTheCookie('sel[h]');if(v)
{parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_off_new.gif\" title=\"verwijder uit uw huizenlijst\" onclick=\"selecteerFavorietVoorSelectie('"+huiscode+"',false,'"+sp+"');return false;\" />";}
else
{try
{parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_new.gif\" title=\"voeg toe aan huizenlijst\" onclick=\"selecteerFavorietVoorSelectie('"+huiscode+"',true,'"+sp+"');return false;\" />";document.getElementById('vakantiehuis_'+huiscode).style.display='none';document.getElementById('lijn_'+huiscode).style.display='none';}
catch(e){}}
return true;}
function selecteerFavorietVoorVakantiehuisNew(huiscode,v,sp)
{var parkeer=document.getElementById(sp);var huisnummers=getTheCookie('sel[h]');if(v)
{parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_off_new.gif\" title=\"verwijder uit uw huizenlijst\" onclick=\"selecteerFavorietVoorVakantiehuis('"+huiscode+"',false,'"+sp+"');return false;\" />";}
else
{parkeer.innerHTML="<img style=\"cursor:pointer;\" src=\"http://www.vakantiekoorts.nl/images/icons_rightpane/favorite_new.gif\" title=\"voeg toe aan huizenlijst\" onclick=\"selecteerFavorietVoorVakantiehuis('"+huiscode+"',true,'"+sp+"');return false;\" />";}
return true;}
function controleerFavoriet()
{huisnummers=getTheCookie('sel[h]');if(huisnummers)
{var arrh=huisnummers.split('||');for(var i=0;i<arrh.length;i++)
{var objFavoriet=document.getElementById('spanparkeer'+arrh[i]);if(objFavoriet)
{selecteerFavorietNew(arrh[i],true,'spanparkeer'+arrh[i]);}}}}
function controleerFavorietVoorSelectie()
{huisnummers=getTheCookie('sel[h]');if(huisnummers)
{var arrh=huisnummers.split('||');for(var i=0;i<arrh.length;i++)
{var objFavoriet=document.getElementById('spanparkeer'+arrh[i]);if(objFavoriet)
{selecteerFavorietVoorSelectieNew(arrh[i],true,'spanparkeer'+arrh[i]);}}}}
function controleerFavorietVoorVakantiehuis()
{huisnummers=getTheCookie('sel[h]');if(huisnummers)
{var arrh=huisnummers.split('||');for(var i=0;i<arrh.length;i++)
{var objFavoriet=document.getElementById('spanparkeer'+arrh[i]);if(objFavoriet)
{selecteerFavorietVoorVakantiehuisNew(arrh[i],true,'spanparkeer'+arrh[i]);}}}}
function getTheCookie(name)
{var dc=document.cookie;var prefix=name+"=";var begin=dc.indexOf("; "+prefix);if(begin==-1)
{begin=dc.indexOf(prefix);if(begin!=0)return null;}
else
{begin+=2;}
var end=document.cookie.indexOf(";",begin);if(end==-1)
{end=dc.length;}
return unescape(dc.substring(begin+prefix.length,end));}
function setCookie(name,value,expires,path,domain,secure)
{var curCookie=name+"="+escape(value)+
((expires)?"; expires="+expires.toGMTString():"")+
((path)?"; path="+path:"")+
((domain)?"; domain="+domain:"")+
((secure)?"; secure":"");document.cookie=curCookie;}
var width;var height;function SwapImage(s)
{img=new Image();img.src=s;document.images['fotogroot'].src=s;GetWidthHeight(img);document.images['fotogroot'].width=width;document.images['fotogroot'].height=height;}
function GetWidthHeight(img)
{if(img.width>247)
{width=247;}
else
{if(img.width)
{width=img.width;}
else
{width=247;}}
if(img.height>150)
{height=150;}
else
{if(img.height)
{height=img.height;}
else
{height=150;}}}
var flashid;function setFlashPortal(v)
{var hulp="";switch(v)
{case'1':hulp='Belgie';break;case'2':hulp='Denemarken';break;case'3':hulp='Duitsland';break;case'4':hulp='Engeland';break;case'5':hulp='Frankrijk';break;case'6':hulp='Griekenland';break;case'7':hulp='Hongarije';break;case'8':hulp='Italie';break;case'9':hulp='Nederland';break;case'10':hulp='Noorwegen';break;case'11':hulp='Oostenrijk';break;case'12':hulp='Polen';break;case'13':hulp='Portugal';break;case'14':hulp='Slowakije';break;case'15':hulp='Spanje';break;case'16':hulp='Zweden';break;case'17':hulp='Tsjechie';break;case'18':hulp='Zwitserland';break;case'19':hulp='Kroatie';break;case'20':hulp='Turkije';break;case'21':hulp='Bulgarije';break;case'22':hulp='Finland';break;case'23':hulp='IJsland';break;case'24':hulp='Ierland';break;case'25':hulp='USA';break;case'26':hulp='Marokko';break;case'27':hulp='Luxemburg';break;}
if(hulp!=flashid)
{setFlash(v);}}
function setFlash(v)
{if(flashkaart!=null)
{var flashland='';switch(v)
{case'1':flashland='Belgie';break;case'2':flashland='Denemarken';break;case'3':flashland='Duitsland';break;case'4':flashland='Engeland';break;case'5':flashland='Frankrijk';break;case'6':flashland='Griekenland';break;case'7':flashland='Hongarije';break;case'8':flashland='Italie';break;case'9':flashland='Nederland';break;case'10':flashland='Noorwegen';break;case'11':flashland='Oostenrijk';break;case'12':flashland='Polen';break;case'13':flashland='Portugal';break;case'14':flashland='Slowakije';break;case'15':flashland='Spanje';break;case'16':flashland='Zweden';break;case'17':flashland='Tsjechie';break;case'18':flashland='Zwitserland';break;case'19':flashland='Kroatie';break;case'20':flashland='Turkije';break;case'21':flashland='Bulgarije';break;case'22':flashland='Finland';break;case'23':flashland='IJsland';break;case'24':flashland='Ierland';break;case'25':flashland='USA';break;case'26':flashland='Marokko';break;case'27':flashland='Luxemburg';break;}
if(flashland.length>0)
{flashid=flashland;flashkaart.innerHTML=AC_FL_RunContent2('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0','width','100%','height','100%','src',flashland,'quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','align','middle','play','true','loop','true','scale','showall','wmode','window','devicefont','false','id',flashland,'bgcolor','#ffffff','name',flashland,'menu','true','allowFullScreen','false','allowScriptAccess','sameDomain','movie','http://www.vakantiekoorts.nl/swf/'+flashland,'salign','','swliveconnect','true');}}}
function updateFlashProvincies(doc)
{getMovieName(flashid).callFlash(doc);vergroten();}
function getMovieName(movieName)
{if(navigator.appName.indexOf("Microsoft")!=-1)
{return document[movieName];}
else
{return document[movieName];}}
function vergrootGlas()
{var parameters=getParameters('i_pr');makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=flashprovincies&'+parameters,'updateFlashProvincies','','');}
function kiesGebied(landcode,regiocode,land,regio)
{si_pr.clearAll();si_pr.addOption(regiocode,'');si_pr.selectOption(0,false,true);laadLijst(si_pr,'i_pr');try{getMovieName(flashid).callFlashVergrootglas();}catch(err){}
verkleinen();}
function toonGebied(id)
{if(!portal)
{getMovieName(flashid).callFlashToongebied(id);}}
function toonLand(id)
{if(portal)
{document.getElementById('amerika_europa').callFlashToongebied(id);}}
function flashLanden()
{var cat;try
{cat=document.getElementById('i_c').value;}
catch(e){}
makeHttpRequest('http://www.vakantiekoorts.nl/menutoxml.php?lijst=flashlanden&i_c='+cat,'updateFlashLanden','','');}
function updateFlashLanden(doc)
{try
{document.getElementById('amerika_europa').callFlash(doc);}
catch(e){}}
function verkleinMovie()
{try{getMovieName(flashid).callFlashVergrootglas();}catch(err){}
verkleinen();}
function vergroten()
{if(action==0||action==1)
{action=1;var height=0;var width=0;height=flashkaart.height;width=flashkaart.width;flashkaart.className='flashkaartgroot';if(width<flashbigwidth||height<flashbigheight)
{stapwidth=flashstap;stapheight=flashstap;if(width<flashbigwidth)
{if((flashbigwidth-width)<flashstap)
{stapwidth=flashbigwidth-width;}
flashkaart.width=width+stapwidth;flashkaart.style.width=(width+stapwidth)+'px';}
if(height<flashbigheight)
{if((flashbigheight-height)<flashstap)
{stapheight=flashbigheight-height;}
flashkaart.height=height+stapheight;flashkaart.style.height=(height+stapheight)+'px';}
setTimeout("vergroten()",10);}
else
{if(portal)
{var flashsluiten=document.getElementById('flashsluiten');flashsluiten.style.left=getLeft(flashkaart)+flashkaart.width-96+'px';flashsluiten.style.top=getTop(flashkaart)+flashkaart.height+4+'px';flashsluiten.style.display='block';}
action=0;}}
else
{setTimeout("vergroten()",30);}}
var flashbigwidth=400;var flashbigheight=300;var flashsmallwidth=150;var flashsmallheight=150;var flashstap=50;var action=0;function verkleinen()
{if(portal)
{var flashsluiten=document.getElementById('flashsluiten');flashsluiten.style.display='none';}
if(action==0||action==2)
{action=2;var height=0;var width=0;height=flashkaart.height;width=flashkaart.width;if(height>flashsmallheight||width>flashsmallwidth)
{stapwidth=flashstap;stapheight=flashstap;if(width>flashsmallwidth)
{if((width-flashstap)<flashsmallwidth)
{stapwidth=width-flashsmallwidth;}
flashkaart.width=width-stapwidth;flashkaart.style.width=(width-stapwidth)+'px';}
if(height>flashsmallheight)
{if((height-flashstap)<flashsmallheight)
{stapheight=height-flashsmallheight;}
flashkaart.height=height-stapheight;flashkaart.style.height=(height-stapheight)+'px';}
setTimeout("verkleinen()",10);}
else
{action=0;flashkaart.className='flashkaart';}}
else
{setTimeout("verkleinen()",30);}}
var flashkaart;function positioningFlash()
{var flashtrans=document.getElementById('flashtrans');flashkaart=document.getElementById('flashkaart');flashkaart.style.top=getTop(flashtrans)+10+'px';flashkaart.style.left=getLeft(flashtrans)+8+'px';flashkaart.width=flashsmallwidth;flashkaart.height=flashsmallheight;flashkaart.style.width=flashsmallwidth+'px';flashkaart.style.height=flashsmallheight+'px';flashkaart.style.display='block';setFlash(document.getElementById('i_l').value);}
function getLeft(obj)
{var curleft=curtop=0;if(obj.offsetParent)
{do
{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);}
return curleft;}
function getTop(obj)
{var curleft=curtop=0;if(obj.offsetParent)
{do
{curleft+=obj.offsetLeft;curtop+=obj.offsetTop;}while(obj=obj.offsetParent);}
return curtop;}
function toggleLayer(id)
{if(document.getElementById(id).style.display=='block')
{document.getElementById(id).style.display='none';}
else
{document.getElementById(id).style.display='block';}}
function toggleImage(id)
{var e=document.getElementById(id).richting;if(e=='down')
{document.getElementById(id).src='http://www.vakantiekoorts.nl/images/red_arrow_up.gif';document.getElementById(id).richting='up';}
else
{document.getElementById(id).src='http://www.vakantiekoorts.nl/images/red_arrow_down.gif';document.getElementById(id).richting='down';}}
function verKleur(o,s)
{if(s)
{o.bgColor='#F0E6DB';o.style.textDecoration='underline';}
else
{o.bgColor='';o.style.textDecoration='none';}}
function setSortering(s)
{document.forms.zoek.i_sort.value=s;document.zoek.submit();}
function ScrollTo(id)
{obj=document.getElementById(id);window.scrollTo(getLeft(obj),getTop(obj));}
function verstuurFormulier()
{document.forms.zoek.submit();disableAll();}
function previewFotos(h)
{setTimeout("tb_open_new('http://www.vakantiekoorts.nl/preview/"+h+"/preview.html?KeepThis=true&TB_iframe=true&height=550&width=500','fotos voor huiscode: "+h+"')",200);}
function previewVideo(h)
{setTimeout("tb_open_new('http://www.vakantiekoorts.nl/preview/"+h+"/video.html?KeepThis=true&TB_iframe=true&height=550&width=637','video voor huiscode: "+h+"')",200);}
function DisableEnableLinks(id,xHow)
{objLinks=document.getElementById(id).getElementsByTagName("a");for(i=0;i<objLinks.length;i++)
{objLinks[i].disabled=xHow;if(objLinks[i].onclick&&xHow)
{objLinks[i].onclick=new Function("return false;"+objLinks[i].onclick.toString().getFuncBody());}
else if(xHow)
{objLinks[i].onclick=function(){return false;}}
else if(!xHow&&objLinks[i].onclick.toString().indexOf("function(){return false;}")!=-1)
{objLinks[i].onclick=null;}
else if(!xHow&&objLinks[i].onclick.toString().indexOf("return false;")!=-1)
{strClick=objLinks[i].onclick.toString().getFuncBody().replace("return false;","")
objLinks[i].onclick=new Function(strClick);}}}
String.prototype.getFuncBody=function()
{var str=this.toString();str=str.replace(/[^{]+{/,"");str=str.substring(0,str.length-1);str=str.replace(/\n/gi,"");if(!str.match(/\(.*\)/gi))str+=")";return str;}
function follow(id)
{var oLink=document.getElementById('link_'+id);window.location.href=oLink.href;}
function CheckEmailAdres(str)
{if(str.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/)!=-1)
{return true;}
else
{return false;}}
function CheckMail(veld)
{if(!CheckEmailAdres(veld))
{alert("Vult u aub een geldig e-mail adres in.");return false;}
return true;}
var Utf8={encode:function(string){string=string.replace(/\r\n/g,"\n");var utftext="";for(var n=0;n<string.length;n++){var c=string.charCodeAt(n);if(c<128){utftext+=String.fromCharCode(c);}
else if((c>127)&&(c<2048)){utftext+=String.fromCharCode((c>>6)|192);utftext+=String.fromCharCode((c&63)|128);}
else{utftext+=String.fromCharCode((c>>12)|224);utftext+=String.fromCharCode(((c>>6)&63)|128);utftext+=String.fromCharCode((c&63)|128);}}
return utftext;},decode:function(utftext){var string="";var i=0;var c=c1=c2=0;while(i<utftext.length){c=utftext.charCodeAt(i);if(c<128){string+=String.fromCharCode(c);i++;}
else if((c>191)&&(c<224)){c2=utftext.charCodeAt(i+1);string+=String.fromCharCode(((c&31)<<6)|(c2&63));i+=2;}
else{c2=utftext.charCodeAt(i+1);c3=utftext.charCodeAt(i+2);string+=String.fromCharCode(((c&15)<<12)|((c2&63)<<6)|(c3&63));i+=3;}}
return string;}}
function MM_preloadImages(){var d=document;if(d.images){if(!d.MM_p)d.MM_p=new Array();var i,j=d.MM_p.length,a=MM_preloadImages.arguments;for(i=0;i<a.length;i++)
if(a[i].indexOf("#")!=0){d.MM_p[j]=new Image;d.MM_p[j++].src=a[i];}}}
function MM_swapImgRestore(){var i,x,a=document.MM_sr;for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)x.src=x.oSrc;}
function MM_findObj(n,d){var p,i,x;if(!d)d=document;if((p=n.indexOf("?"))>0&&parent.frames.length){d=parent.frames[n.substring(p+1)].document;n=n.substring(0,p);}
if(!(x=d[n])&&d.all)x=d.all[n];for(i=0;!x&&i<d.forms.length;i++)x=d.forms[i][n];for(i=0;!x&&d.layers&&i<d.layers.length;i++)x=MM_findObj(n,d.layers[i].document);if(!x&&d.getElementById)x=d.getElementById(n);return x;}
function MM_swapImage(){var i,j=0,x,a=MM_swapImage.arguments;document.MM_sr=new Array;for(i=0;i<(a.length-2);i+=3)
if((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x;if(!x.oSrc)x.oSrc=x.src;x.src=a[i+2];}}
nereidFadeObjects=new Object();nereidFadeTimers=new Object();function nereidFade(object,destOp,rate,delta){if(!document.all)
return
if(object!="[object]"){setTimeout("nereidFade("+object+","+destOp+","+rate+","+delta+")",0);return;}
clearTimeout(nereidFadeTimers[object.sourceIndex]);diff=destOp-object.filters.alpha.opacity;direction=1;if(object.filters.alpha.opacity>destOp){direction=-1;}
delta=Math.min(direction*diff,delta);object.filters.alpha.opacity+=direction*delta;if(object.filters.alpha.opacity!=destOp){nereidFadeObjects[object.sourceIndex]=object;nereidFadeTimers[object.sourceIndex]=setTimeout("nereidFade(nereidFadeObjects["+object.sourceIndex+"],"+destOp+","+rate+","+delta+")",rate);}}
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(J(){7(1d.4d)L w=1d.4d;L E=1d.4d=J(a,b){K 1D E.2k.54(a,b)};7(1d.$)L D=1d.$;1d.$=E;L u=/^[^<]*(<(.|\\s)+>)[^>]*$|^#(\\w+)$/;L G=/^.[^:#\\[\\.]*$/;E.1g=E.2k={54:J(d,b){d=d||T;7(d.15){6[0]=d;6.M=1;K 6}N 7(1u d=="2h"){L c=u.2U(d);7(c&&(c[1]||!b)){7(c[1])d=E.4f([c[1]],b);N{L a=T.5S(c[3]);7(a)7(a.2m!=c[3])K E().2u(d);N{6[0]=a;6.M=1;K 6}N d=[]}}N K 1D E(b).2u(d)}N 7(E.1q(d))K 1D E(T)[E.1g.21?"21":"43"](d);K 6.6Q(d.1j==1I&&d||(d.4y||d.M&&d!=1d&&!d.15&&d[0]!=10&&d[0].15)&&E.2I(d)||[d])},4y:"1.2.4a",86:J(){K 6.M},M:0,23:J(a){K a==10?E.2I(6):6[a]},2H:J(b){L a=E(b);a.5c=6;K a},6Q:J(a){6.M=0;1I.2k.1k.1h(6,a);K 6},R:J(a,b){K E.R(6,a,b)},51:J(b){L a=-1;6.R(J(i){7(6==b)a=i});K a},1G:J(c,a,b){L d=c;7(c.1j==4k)7(a==10)K 6.M&&E[b||"1G"](6[0],c)||10;N{d={};d[c]=a}K 6.R(J(i){Q(c 1o d)E.1G(b?6.W:6,c,E.1m(6,d[c],b,i,c))})},1l:J(b,a){7((b==\'28\'||b==\'1S\')&&2J(a)<0)a=10;K 6.1G(b,a,"29")},1s:J(b){7(1u b!="3Z"&&b!=V)K 6.4H().3s((6[0]&&6[0].2t||T).5A(b));L a="";E.R(b||6,J(){E.R(6.3u,J(){7(6.15!=8)a+=6.15!=1?6.6T:E.1g.1s([6])})});K a},5v:J(b){7(6[0])E(b,6[0].2t).5N().3n(6[0]).2c(J(){L a=6;2a(a.1E)a=a.1E;K a}).3s(6);K 6},8w:J(a){K 6.R(J(){E(6).6J().5v(a)})},8p:J(a){K 6.R(J(){E(6).5v(a)})},3s:J(){K 6.3S(18,P,S,J(a){7(6.15==1)6.3j(a)})},6A:J(){K 6.3S(18,P,P,J(a){7(6.15==1)6.3n(a,6.1E)})},6x:J(){K 6.3S(18,S,S,J(a){6.1b.3n(a,6)})},5f:J(){K 6.3S(18,S,P,J(a){6.1b.3n(a,6.2D)})},3h:J(){K 6.5c||E([])},2u:J(b){L c=E.2c(6,J(a){K E.2u(b,a)});K 6.2H(/[^+>] [^+>]/.17(b)||b.1f("..")>-1?E.5e(c):c)},5N:J(e){L f=6.2c(J(){7(E.14.1c&&!E.3W(6)){L a=6.6h(P),56=T.3p("1y");56.3j(a);K E.4f([56.3d])[0]}N K 6.6h(P)});L d=f.2u("*").50().R(J(){7(6[F]!=10)6[F]=V});7(e===P)6.2u("*").50().R(J(i){7(6.15==3)K;L c=E.O(6,"36");Q(L a 1o c)Q(L b 1o c[a])E.16.1a(d[i],a,c[a][b],c[a][b].O)});K f},1B:J(b){K 6.2H(E.1q(b)&&E.3x(6,J(a,i){K b.1X(a,i)})||E.3b(b,6))},4S:J(b){7(b.1j==4k)7(G.17(b))K 6.2H(E.3b(b,6,P));N b=E.3b(b,6);L a=b.M&&b[b.M-1]!==10&&!b.15;K 6.1B(J(){K a?E.2W(6,b)<0:6!=b})},1a:J(a){K!a?6:6.2H(E.2P(6.23(),a.1j==4k?E(a).23():a.M!=10&&(!a.12||E.12(a,"3e"))?a:[a]))},3E:J(a){K a?E.3b(a,6).M>0:S},7s:J(a){K 6.3E("."+a)},5V:J(b){7(b==10){7(6.M){L c=6[0];7(E.12(c,"2q")){L e=c.3U,5P=[],11=c.11,2Y=c.U=="2q-2Y";7(e<0)K V;Q(L i=2Y?e:0,2f=2Y?e+1:11.M;i<2f;i++){L d=11[i];7(d.2x){b=E.14.1c&&!d.9K.1C.9B?d.1s:d.1C;7(2Y)K b;5P.1k(b)}}K 5P}N K(6[0].1C||"").1r(/\\r/g,"")}K 10}K 6.R(J(){7(6.15!=1)K;7(b.1j==1I&&/5D|5C/.17(6.U))6.3r=(E.2W(6.1C,b)>=0||E.2W(6.2X,b)>=0);N 7(E.12(6,"2q")){L a=b.1j==1I?b:[b];E("9b",6).R(J(){6.2x=(E.2W(6.1C,a)>=0||E.2W(6.1s,a)>=0)});7(!a.M)6.3U=-1}N 6.1C=b})},3o:J(a){K a==10?(6.M?6[0].3d:V):6.4H().3s(a)},6V:J(a){K 6.5f(a).1Q()},6U:J(i){K 6.2B(i,i+1)},2B:J(){K 6.2H(1I.2k.2B.1h(6,18))},2c:J(b){K 6.2H(E.2c(6,J(a,i){K b.1X(a,i,a)}))},50:J(){K 6.1a(6.5c)},O:J(d,b){L a=d.24(".");a[1]=a[1]?"."+a[1]:"";7(b==V){L c=6.5x("8S"+a[1]+"!",[a[0]]);7(c==10&&6.M)c=E.O(6[0],d);K c==V&&a[1]?6.O(a[0]):c}N K 6.1L("8N"+a[1]+"!",[a[0],b]).R(J(){E.O(6,d,b)})},38:J(a){K 6.R(J(){E.38(6,a)})},3S:J(g,f,h,d){L e=6.M>1,3k;K 6.R(J(){7(!3k){3k=E.4f(g,6.2t);7(h)3k.8E()}L b=6;7(f&&E.12(6,"1W")&&E.12(3k[0],"4B"))b=6.3X("1V")[0]||6.3j(6.2t.3p("1V"));L c=E([]);E.R(3k,J(){L a=e?E(6).5N(P)[0]:6;7(E.12(a,"1n")){c=c.1a(a)}N{7(a.15==1)c=c.1a(E("1n",a).1Q());d.1X(b,a)}});c.R(6K)})}};E.2k.54.2k=E.2k;J 6K(i,a){7(a.3V)E.3T({1e:a.3V,3l:S,1H:"1n"});N E.5o(a.1s||a.6H||a.3d||"");7(a.1b)a.1b.35(a)}E.1p=E.1g.1p=J(){L b=18[0]||{},i=1,M=18.M,4w=S,11;7(b.1j==8h){4w=b;b=18[1]||{};i=2}7(1u b!="3Z"&&1u b!="J")b={};7(M==1){b=6;i=0}Q(;i<M;i++)7((11=18[i])!=V)Q(L a 1o 11){7(b===11[a])6G;7(4w&&11[a]&&1u 11[a]=="3Z"&&b[a]&&!11[a].15)b[a]=E.1p(4w,b[a],11[a]);N 7(11[a]!=10)b[a]=11[a]}K b};L F="4d"+(1D 3Q()).3P(),6B=0,5j={};L H=/z-?51|8c-?89|1w|6v|85-?1S/i;E.1p({84:J(a){1d.$=D;7(a)1d.4d=w;K E},1q:J(a){K!!a&&1u a!="2h"&&!a.12&&a.1j!=1I&&/J/i.17(a+"")},3W:J(a){K a.1J&&!a.1i||a.26&&a.2t&&!a.2t.1i},5o:J(a){a=E.3g(a);7(a){L b=T.3X("6p")[0]||T.1J,1n=T.3p("1n");1n.U="1s/4q";7(E.14.1c)1n.1s=a;N 1n.3j(T.5A(a));b.3j(1n);b.35(1n)}},12:J(b,a){K b.12&&b.12.2F()==a.2F()},1T:{},O:J(c,d,b){c=c==1d?5j:c;L a=c[F];7(!a)a=c[F]=++6B;7(d&&!E.1T[a])E.1T[a]={};7(b!=10)E.1T[a][d]=b;K d?E.1T[a][d]:a},38:J(c,b){c=c==1d?5j:c;L a=c[F];7(b){7(E.1T[a]){2Q E.1T[a][b];b="";Q(b 1o E.1T[a])1P;7(!b)E.38(c)}}N{1U{2Q c[F]}1R(e){7(c.5a)c.5a(F)}2Q E.1T[a]}},R:J(c,a,b){7(b){7(c.M==10){Q(L d 1o c)7(a.1h(c[d],b)===S)1P}N Q(L i=0,M=c.M;i<M;i++)7(a.1h(c[i],b)===S)1P}N{7(c.M==10){Q(L d 1o c)7(a.1X(c[d],d,c[d])===S)1P}N Q(L i=0,M=c.M,1C=c[0];i<M&&a.1X(1C,i,1C)!==S;1C=c[++i]){}}K c},1m:J(b,a,c,i,d){7(E.1q(a))a=a.1X(b,i);K a&&a.1j==58&&c=="29"&&!H.17(d)?a+"2R":a},1t:{1a:J(c,b){E.R((b||"").24(/\\s+/),J(i,a){7(c.15==1&&!E.1t.3H(c.1t,a))c.1t+=(c.1t?" ":"")+a})},1Q:J(c,b){7(c.15==1)c.1t=b!=10?E.3x(c.1t.24(/\\s+/),J(a){K!E.1t.3H(b,a)}).6k(" "):""},3H:J(b,a){K E.2W(a,(b.1t||b).3G().24(/\\s+/))>-1}},6g:J(b,c,a){L e={};Q(L d 1o c){e[d]=b.W[d];b.W[d]=c[d]}a.1X(b);Q(L d 1o c)b.W[d]=e[d]},1l:J(d,e,c){7(e=="28"||e=="1S"){L b,40={3F:"55",53:"1Z",19:"46"},3t=e=="28"?["6a","69"]:["67","66"];J 4Z(){b=e=="28"?d.7S:d.7R;L a=0,2y=0;E.R(3t,J(){a+=2J(E.29(d,"4V"+6,P))||0;2y+=2J(E.29(d,"2y"+6+"3B",P))||0});b-=1Y.7P(a+2y)}7(E(d).3E(":4i"))4Z();N E.6g(d,40,4Z);K 1Y.2f(0,b)}K E.29(d,e,c)},29:J(e,k,j){L d;J 3w(b){7(!E.14.2b)K S;L a=T.4h.4R(b,V);K!a||a.4Q("3w")==""}7(k=="1w"&&E.14.1c){d=E.1G(e.W,"1w");K d==""?"1":d}7(E.14.2A&&k=="19"){L c=e.W.4P;e.W.4P="0 7A 7z";e.W.4P=c}7(k.1A(/4g/i))k=y;7(!j&&e.W&&e.W[k])d=e.W[k];N 7(T.4h&&T.4h.4R){7(k.1A(/4g/i))k="4g";k=k.1r(/([A-Z])/g,"-$1").2g();L h=T.4h.4R(e,V);7(h&&!3w(e))d=h.4Q(k);N{L f=[],2K=[];Q(L a=e;a&&3w(a);a=a.1b)2K.5i(a);Q(L i=0;i<2K.M;i++)7(3w(2K[i])){f[i]=2K[i].W.19;2K[i].W.19="46"}d=k=="19"&&f[2K.M-1]!=V?"2G":(h&&h.4Q(k))||"";Q(L i=0;i<f.M;i++)7(f[i]!=V)2K[i].W.19=f[i]}7(k=="1w"&&d=="")d="1"}N 7(e.4r){L g=k.1r(/\\-(\\w)/g,J(a,b){K b.2F()});d=e.4r[k]||e.4r[g];7(!/^\\d+(2R)?$/i.17(d)&&/^\\d/.17(d)){L l=e.W.25,3M=e.3M.25;e.3M.25=e.4r.25;e.W.25=d||0;d=e.W.ad+"2R";e.W.25=l;e.3M.25=3M}}K d},4f:J(l,h){L k=[];h=h||T;7(1u h.3p==\'10\')h=h.2t||h[0]&&h[0].2t||T;E.R(l,J(i,d){7(!d)K;7(d.1j==58)d=d.3G();7(1u d=="2h"){d=d.1r(/(<(\\w+)[^>]*?)\\/>/g,J(b,a,c){K c.1A(/^(ab|3Y|7o|a7|4K|7l|a2|3v|9Z|9X|9U)$/i)?b:a+"></"+c+">"});L f=E.3g(d).2g(),1y=h.3p("1y");L e=!f.1f("<9S")&&[1,"<2q 7h=\'7h\'>","</2q>"]||!f.1f("<9O")&&[1,"<7f>","</7f>"]||f.1A(/^<(9J|1V|9H|9D|9C)/)&&[1,"<1W>","</1W>"]||!f.1f("<4B")&&[2,"<1W><1V>","</1V></1W>"]||(!f.1f("<9A")||!f.1f("<9z"))&&[3,"<1W><1V><4B>","</4B></1V></1W>"]||!f.1f("<7o")&&[2,"<1W><1V></1V><74>","</74></1W>"]||E.14.1c&&[1,"1y<1y>","</1y>"]||[0,"",""];1y.3d=e[1]+d+e[2];2a(e[0]--)1y=1y.5E;7(E.14.1c){L g=!f.1f("<1W")&&f.1f("<1V")<0?1y.1E&&1y.1E.3u:e[1]=="<1W>"&&f.1f("<1V")<0?1y.3u:[];Q(L j=g.M-1;j>=0;--j)7(E.12(g[j],"1V")&&!g[j].3u.M)g[j].1b.35(g[j]);7(/^\\s/.17(d))1y.3n(h.5A(d.1A(/^\\s*/)[0]),1y.1E)}d=E.2I(1y.3u)}7(d.M===0&&(!E.12(d,"3e")&&!E.12(d,"2q")))K;7(d[0]==10||E.12(d,"3e")||d.11)k.1k(d);N k=E.2P(k,d)});K k},1G:J(d,e,c){7(!d||d.15==3||d.15==8)K 10;L f=E.3W(d)?{}:E.40;7(e=="2x"&&E.14.2b)d.1b.3U;7(f[e]){7(c!=10)d[f[e]]=c;K d[f[e]]}N 7(E.14.1c&&e=="W")K E.1G(d.W,"9w",c);N 7(c==10&&E.14.1c&&E.12(d,"3e")&&(e=="9t"||e=="9r"))K d.9p(e).6T;N 7(d.26){7(c!=10){7(e=="U"&&E.12(d,"4K")&&d.1b)6Z"U 9m 9l\'t 9j 9g";d.9d(e,""+c)}7(E.14.1c&&/6X|3V/.17(e)&&!E.3W(d))K d.4F(e,2);K d.4F(e)}N{7(e=="1w"&&E.14.1c){7(c!=10){d.6v=1;d.1B=(d.1B||"").1r(/6W\\([^)]*\\)/,"")+(2J(c).3G()=="9a"?"":"6W(1w="+c*70+")")}K d.1B&&d.1B.1f("1w=")>=0?(2J(d.1B.1A(/1w=([^)]*)/)[1])/70).3G():""}e=e.1r(/-([a-z])/98,J(a,b){K b.2F()});7(c!=10)d[e]=c;K d[e]}},3g:J(a){K(a||"").1r(/^\\s+|\\s+$/g,"")},2I:J(b){L a=[];7(b.1j!=1I)Q(L i=0,M=b.M;i<M;i++)a.1k(b[i]);N a=b.2B(0);K a},2W:J(b,a){Q(L i=0,M=a.M;i<M;i++)7(a[i]==b)K i;K-1},2P:J(a,b){7(E.14.1c){Q(L i=0;b[i];i++)7(b[i].15!=8)a.1k(b[i])}N Q(L i=0;b[i];i++)a.1k(b[i]);K a},5e:J(a){L c=[],2l={};1U{Q(L i=0,M=a.M;i<M;i++){L b=E.O(a[i]);7(!2l[b]){2l[b]=P;c.1k(a[i])}}}1R(e){c=a}K c},3x:J(c,a,d){L b=[];Q(L i=0,M=c.M;i<M;i++)7(!d&&a(c[i],i)||d&&!a(c[i],i))b.1k(c[i]);K b},2c:J(d,a){L c=[];Q(L i=0,M=d.M;i<M;i++){L b=a(d[i],i);7(b!==V&&b!=10){7(b.1j!=1I)b=[b];c=c.7d(b)}}K c}});L v=93.91.2g();E.14={5s:(v.1A(/.+(?:8Y|8X|8W|8U)[\\/: ]([\\d.]+)/)||[])[1],2b:/7g/.17(v),2A:/2A/.17(v),1c:/1c/.17(v)&&!/2A/.17(v),4b:/4b/.17(v)&&!/(8Q|7g)/.17(v)};L y=E.14.1c?"6R":"7i";E.1p({8M:!E.14.1c||T.6O=="7n",40:{"Q":"8J","8I":"1t","4g":y,7i:y,6R:y,3d:"3d",1t:"1t",1C:"1C",31:"31",3r:"3r",8G:"8F",2x:"2x",8D:"8C",3U:"3U",6M:"6M",26:"26",12:"12"}});E.R({6L:J(a){K a.1b},8B:J(a){K E.4A(a,"1b")},8A:J(a){K E.2T(a,2,"2D")},8z:J(a){K E.2T(a,2,"4z")},8y:J(a){K E.4A(a,"2D")},8x:J(a){K E.4A(a,"4z")},8v:J(a){K E.5p(a.1b.1E,a)},8u:J(a){K E.5p(a.1E)},6J:J(a){K E.12(a,"8t")?a.8s||a.8r.T:E.2I(a.3u)}},J(c,d){E.1g[c]=J(b){L a=E.2c(6,d);7(b&&1u b=="2h")a=E.3b(b,a);K 6.2H(E.5e(a))}});E.R({6I:"3s",8q:"6A",3n:"6x",8o:"5f",8n:"6V"},J(c,b){E.1g[c]=J(){L a=18;K 6.R(J(){Q(L i=0,M=a.M;i<M;i++)E(a[i])[b](6)})}});E.R({8m:J(a){E.1G(6,a,"");7(6.15==1)6.5a(a)},8l:J(a){E.1t.1a(6,a)},8k:J(a){E.1t.1Q(6,a)},8j:J(a){E.1t[E.1t.3H(6,a)?"1Q":"1a"](6,a)},1Q:J(a){7(!a||E.1B(a,[6]).r.M){E("*",6).1a(6).R(J(){E.16.1Q(6);E.38(6)});7(6.1b)6.1b.35(6)}},4H:J(){E(">*",6).1Q();2a(6.1E)6.35(6.1E)}},J(a,b){E.1g[a]=J(){K 6.R(b,18)}});E.R(["4x","3B"],J(i,c){L b=c.2g();E.1g[b]=J(a){K 6[0]==1d?E.14.2A&&T.1i["5n"+c]||E.14.2b&&1d["5m"+c]||T.6O=="7n"&&T.1J["5n"+c]||T.1i["5n"+c]:6[0]==T?1Y.2f(1Y.2f(T.1i["5l"+c],T.1J["5l"+c]),1Y.2f(T.1i["5k"+c],T.1J["5k"+c])):a==10?(6.M?E.1l(6[0],b):V):6.1l(b,a.1j==4k?a:a+"2R")}});L C=E.14.2b&&3R(E.14.5s)<8i?"(?:[\\\\w*4v-]|\\\\\\\\.)":"(?:[\\\\w\\8g-\\8f*4v-]|\\\\\\\\.)",6F=1D 4u("^>\\\\s*("+C+"+)"),6E=1D 4u("^("+C+"+)(#)("+C+"+)"),6D=1D 4u("^([#.]?)("+C+"*)");E.1p({6C:{"":J(a,i,m){K m[2]=="*"||E.12(a,m[2])},"#":J(a,i,m){K a.4F("2m")==m[2]},":":{8e:J(a,i,m){K i<m[3]-0},8d:J(a,i,m){K i>m[3]-0},2T:J(a,i,m){K m[3]-0==i},6U:J(a,i,m){K m[3]-0==i},3i:J(a,i){K i==0},3N:J(a,i,m,r){K i==r.M-1},6z:J(a,i){K i%2==0},6y:J(a,i){K i%2},"3i-4t":J(a){K a.1b.3X("*")[0]==a},"3N-4t":J(a){K E.2T(a.1b.5E,1,"4z")==a},"8b-4t":J(a){K!E.2T(a.1b.5E,2,"4z")},6L:J(a){K a.1E},4H:J(a){K!a.1E},8a:J(a,i,m){K(a.6H||a.88||E(a).1s()||"").1f(m[3])>=0},4i:J(a){K"1Z"!=a.U&&E.1l(a,"19")!="2G"&&E.1l(a,"53")!="1Z"},1Z:J(a){K"1Z"==a.U||E.1l(a,"19")=="2G"||E.1l(a,"53")=="1Z"},87:J(a){K!a.31},31:J(a){K a.31},3r:J(a){K a.3r},2x:J(a){K a.2x||E.1G(a,"2x")},1s:J(a){K"1s"==a.U},5D:J(a){K"5D"==a.U},5C:J(a){K"5C"==a.U},5h:J(a){K"5h"==a.U},3K:J(a){K"3K"==a.U},5g:J(a){K"5g"==a.U},6u:J(a){K"6u"==a.U},6t:J(a){K"6t"==a.U},2C:J(a){K"2C"==a.U||E.12(a,"2C")},4K:J(a){K/4K|2q|6s|2C/i.17(a.12)},3H:J(a,i,m){K E.2u(m[3],a).M},83:J(a){K/h\\d/i.17(a.12)},82:J(a){K E.3x(E.3J,J(b){K a==b.Y}).M}}},6q:[/^(\\[) *@?([\\w-]+) *([!*$^~=]*) *(\'?"?)(.*?)\\4 *\\]/,/^(:)([\\w-]+)\\("?\'?(.*?(\\(.*?\\))?[^(]*?)"?\'?\\)/,1D 4u("^([:.#]*)("+C+"+)")],3b:J(a,c,b){L d,2j=[];2a(a&&a!=d){d=a;L f=E.1B(a,c,b);a=f.t.1r(/^\\s*,\\s*/,"");2j=b?c=f.r:E.2P(2j,f.r)}K 2j},2u:J(t,p){7(1u t!="2h")K[t];7(p&&p.15!=1&&p.15!=9)K[];p=p||T;L d=[p],2l=[],3N,12;2a(t&&3N!=t){L r=[];3N=t;t=E.3g(t);L o=S;L g=6F;L m=g.2U(t);7(m){12=m[1].2F();Q(L i=0;d[i];i++)Q(L c=d[i].1E;c;c=c.2D)7(c.15==1&&(12=="*"||c.12.2F()==12))r.1k(c);d=r;t=t.1r(g,"");7(t.1f(" ")==0)6G;o=P}N{g=/^([>+~])\\s*(\\w*)/i;7((m=g.2U(t))!=V){r=[];L l={};12=m[2].2F();m=m[1];Q(L j=0,3f=d.M;j<3f;j++){L n=m=="~"||m=="+"?d[j].2D:d[j].1E;Q(;n;n=n.2D)7(n.15==1){L h=E.O(n);7(m=="~"&&l[h])1P;7(!12||n.12.2F()==12){7(m=="~")l[h]=P;r.1k(n)}7(m=="+")1P}}d=r;t=E.3g(t.1r(g,""));o=P}}7(t&&!o){7(!t.1f(",")){7(p==d[0])d.4p();2l=E.2P(2l,d);r=d=[p];t=" "+t.6o(1,t.M)}N{L k=6E;L m=k.2U(t);7(m){m=[0,m[2],m[3],m[1]]}N{k=6D;m=k.2U(t)}m[2]=m[2].1r(/\\\\/g,"");L f=d[d.M-1];7(m[1]=="#"&&f&&f.5S&&!E.3W(f)){L q=f.5S(m[2]);7((E.14.1c||E.14.2A)&&q&&1u q.2m=="2h"&&q.2m!=m[2])q=E(\'[@2m="\'+m[2]+\'"]\',f)[0];d=r=q&&(!m[3]||E.12(q,m[3]))?[q]:[]}N{Q(L i=0;d[i];i++){L a=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];7(a=="*"&&d[i].12.2g()=="3Z")a="3v";r=E.2P(r,d[i].3X(a))}7(m[1]==".")r=E.5d(r,m[2]);7(m[1]=="#"){L e=[];Q(L i=0;r[i];i++)7(r[i].4F("2m")==m[2]){e=[r[i]];1P}r=e}d=r}t=t.1r(k,"")}}7(t){L b=E.1B(t,r);d=r=b.r;t=E.3g(b.t)}}7(t)d=[];7(d&&p==d[0])d.4p();2l=E.2P(2l,d);K 2l},5d:J(r,m,a){m=" "+m+" ";L c=[];Q(L i=0;r[i];i++){L b=(" "+r[i].1t+" ").1f(m)>=0;7(!a&&b||a&&!b)c.1k(r[i])}K c},1B:J(t,r,h){L d;2a(t&&t!=d){d=t;L p=E.6q,m;Q(L i=0;p[i];i++){m=p[i].2U(t);7(m){t=t.81(m[0].M);m[2]=m[2].1r(/\\\\/g,"");1P}}7(!m)1P;7(m[1]==":"&&m[2]=="4S")r=G.17(m[3])?E.1B(m[3],r,P).r:E(r).4S(m[3]);N 7(m[1]==".")r=E.5d(r,m[2],h);N 7(m[1]=="["){L g=[],U=m[3];Q(L i=0,3f=r.M;i<3f;i++){L a=r[i],z=a[E.40[m[2]]||m[2]];7(z==V||/6X|3V|2x/.17(m[2]))z=E.1G(a,m[2])||\'\';7((U==""&&!!z||U=="="&&z==m[5]||U=="!="&&z!=m[5]||U=="^="&&z&&!z.1f(m[5])||U=="$="&&z.6o(z.M-m[5].M)==m[5]||(U=="*="||U=="~=")&&z.1f(m[5])>=0)^h)g.1k(a)}r=g}N 7(m[1]==":"&&m[2]=="2T-4t"){L e={},g=[],17=/(-?)(\\d*)n((?:\\+|-)?\\d*)/.2U(m[3]=="6z"&&"2n"||m[3]=="6y"&&"2n+1"||!/\\D/.17(m[3])&&"80+"+m[3]||m[3]),3i=(17[1]+(17[2]||1))-0,d=17[3]-0;Q(L i=0,3f=r.M;i<3f;i++){L j=r[i],1b=j.1b,2m=E.O(1b);7(!e[2m]){L c=1;Q(L n=1b.1E;n;n=n.2D)7(n.15==1)n.4o=c++;e[2m]=P}L b=S;7(3i==0){7(j.4o==d)b=P}N 7((j.4o-d)%3i==0&&(j.4o-d)/3i>=0)b=P;7(b^h)g.1k(j)}r=g}N{L f=E.6C[m[1]];7(1u f=="3Z")f=f[m[2]];7(1u f=="2h")f=6n("S||J(a,i){K "+f+";}");r=E.3x(r,J(a,i){K f(a,i,m,r)},h)}}K{r:r,t:t}},4A:J(b,c){L d=[];L a=b[c];2a(a&&a!=T){7(a.15==1)d.1k(a);a=a[c]}K d},2T:J(a,e,c,b){e=e||1;L d=0;Q(;a;a=a[c])7(a.15==1&&++d==e)1P;K a},5p:J(n,a){L r=[];Q(;n;n=n.2D){7(n.15==1&&(!a||n!=a))r.1k(n)}K r}});E.16={1a:J(f,i,g,e){7(f.15==3||f.15==8)K;7(E.14.1c&&f.5b!=10)f=1d;7(!g.2E)g.2E=6.2E++;7(e!=10){L h=g;g=J(){K h.1h(6,18)};g.O=e;g.2E=h.2E}L j=E.O(f,"36")||E.O(f,"36",{}),1z=E.O(f,"1z")||E.O(f,"1z",J(){L a;7(1u E=="10"||E.16.59)K a;a=E.16.1z.1h(18.3O.Y,18);K a});1z.Y=f;E.R(i.24(/\\s+/),J(c,b){L a=b.24(".");b=a[0];g.U=a[1];L d=j[b];7(!d){d=j[b]={};7(!E.16.2i[b]||E.16.2i[b].4n.1X(f)===S){7(f.3I)f.3I(b,1z,S);N 7(f.6m)f.6m("4m"+b,1z)}}d[g.2E]=g;E.16.27[b]=P});f=V},2E:1,27:{},1Q:J(e,h,f){7(e.15==3||e.15==8)K;L i=E.O(e,"36"),2e,51;7(i){7(h==10||(1u h=="2h"&&h.7Z(0)=="."))Q(L g 1o i)6.1Q(e,g+(h||""));N{7(h.U){f=h.2o;h=h.U}E.R(h.24(/\\s+/),J(b,a){L c=a.24(".");a=c[0];7(i[a]){7(f)2Q i[a][f.2E];N Q(f 1o i[a])7(!c[1]||i[a][f].U==c[1])2Q i[a][f];Q(2e 1o i[a])1P;7(!2e){7(!E.16.2i[a]||E.16.2i[a].4l.1X(e)===S){7(e.6j)e.6j(a,E.O(e,"1z"),S);N 7(e.6i)e.6i("4m"+a,E.O(e,"1z"))}2e=V;2Q i[a]}}})}Q(2e 1o i)1P;7(!2e){L d=E.O(e,"1z");7(d)d.Y=V;E.38(e,"36");E.38(e,"1z")}}},1L:J(g,c,d,f,h){c=E.2I(c||[]);7(g.1f("!")>=0){g=g.2B(0,-1);L a=P}7(!d){7(6.27[g])E("*").1a([1d,T]).1L(g,c)}N{7(d.15==3||d.15==8)K 10;L b,2e,1g=E.1q(d[g]||V),16=!c[0]||!c[0].32;7(16)c.5i(6.5t({U:g,2N:d}));c[0].U=g;7(a)c[0].6f=P;7(E.1q(E.O(d,"1z")))b=E.O(d,"1z").1h(d,c);7(!1g&&d["4m"+g]&&d["4m"+g].1h(d,c)===S)b=S;7(16)c.4p();7(h&&E.1q(h)){2e=h.1h(d,b==V?c:c.7d(b));7(2e!==10)b=2e}7(1g&&f!==S&&b!==S&&!(E.12(d,\'a\')&&g=="57")){6.59=P;1U{d[g]()}1R(e){}}6.59=S}K b},1z:J(c){L a;c=E.16.5t(c||1d.16||{});L b=c.U.24(".");c.U=b[0];L f=E.O(6,"36")&&E.O(6,"36")[c.U],42=1I.2k.2B.1X(18,1);42.5i(c);Q(L j 1o f){L d=f[j];42[0].2o=d;42[0].O=d.O;7(!b[1]&&!c.6f||d.U==b[1]){L e=d.1h(6,42);7(a!==S)a=e;7(e===S){c.32();c.41()}}}7(E.14.1c)c.2N=c.32=c.41=c.2o=c.O=V;K a},5t:J(c){L a=c;c=E.1p({},a);c.32=J(){7(a.32)a.32();a.7Y=S};c.41=J(){7(a.41)a.41();a.7X=P};7(!c.2N)c.2N=c.7W||T;7(c.2N.15==3)c.2N=a.2N.1b;7(!c.52&&c.5I)c.52=c.5I==c.2N?c.7V:c.5I;7(c.6d==V&&c.6c!=V){L b=T.1J,1i=T.1i;c.6d=c.6c+(b&&b.2w||1i&&1i.2w||0)-(b.6b||0);c.7U=c.7T+(b&&b.2p||1i&&1i.2p||0)-(b.68||0)}7(!c.3t&&((c.4I||c.4I===0)?c.4I:c.7b))c.3t=c.4I||c.7b;7(!c.7c&&c.65)c.7c=c.65;7(!c.3t&&c.2C)c.3t=(c.2C&1?1:(c.2C&2?3:(c.2C&4?2:0)));K c},2i:{21:{4n:J(){5F();K},4l:J(){K}},49:{4n:J(){7(E.14.1c)K S;E(6).2v("4Y",E.16.2i.49.2o);K P},4l:J(){7(E.14.1c)K S;E(6).3D("4Y",E.16.2i.49.2o);K P},2o:J(a){7(I(a,6))K P;18[0].U="49";K E.16.1z.1h(6,18)}},3C:{4n:J(){7(E.14.1c)K S;E(6).2v("4X",E.16.2i.3C.2o);K P},4l:J(){7(E.14.1c)K S;E(6).3D("4X",E.16.2i.3C.2o);K P},2o:J(a){7(I(a,6))K P;18[0].U="3C";K E.16.1z.1h(6,18)}}}};E.1g.1p({2v:J(c,a,b){K c=="4W"?6.2Y(c,a,b):6.R(J(){E.16.1a(6,c,b||a,b&&a)})},2Y:J(d,b,c){K 6.R(J(){E.16.1a(6,d,J(a){E(6).3D(a);K(c||b).1h(6,18)},c&&b)})},3D:J(a,b){K 6.R(J(){E.16.1Q(6,a,b)})},1L:J(c,a,b){K 6.R(J(){E.16.1L(c,a,6,P,b)})},5x:J(c,a,b){7(6[0])K E.16.1L(c,a,6[0],S,b);K 10},2z:J(){L b=18;K 6.57(J(a){6.5T=0==6.5T?1:0;a.32();K b[6.5T].1h(6,18)||S})},7Q:J(a,b){K 6.2v(\'49\',a).2v(\'3C\',b)},21:J(a){5F();7(E.2Z)a.1X(T,E);N E.3A.1k(J(){K a.1X(6,E)});K 6}});E.1p({2Z:S,3A:[],21:J(){7(!E.2Z){E.2Z=P;7(E.3A){E.R(E.3A,J(){6.1h(T)});E.3A=V}E(T).5x("21")}}});L x=S;J 5F(){7(x)K;x=P;7(T.3I&&!E.14.2A)T.3I("64",E.21,S);7(E.14.1c&&1d==3m)(J(){7(E.2Z)K;1U{T.1J.7O("25")}1R(39){3y(18.3O,0);K}E.21()})();7(E.14.2A)T.3I("64",J(){7(E.2Z)K;Q(L i=0;i<T.4U.M;i++)7(T.4U[i].31){3y(18.3O,0);K}E.21()},S);7(E.14.2b){L a;(J(){7(E.2Z)K;7(T.3c!="63"&&T.3c!="1x"){3y(18.3O,0);K}7(a===10)a=E("W, 7l[7N=7M]").M;7(T.4U.M!=a){3y(18.3O,0);K}E.21()})()}E.16.1a(1d,"43",E.21)}E.R(("7K,7J,43,7I,5l,4W,57,7H,"+"7G,7F,7E,4Y,4X,7D,2q,"+"5g,7L,7C,7B,39").24(","),J(i,b){E.1g[b]=J(a){K a?6.2v(b,a):6.1L(b)}});L I=J(a,c){L b=a.52;2a(b&&b!=c)1U{b=b.1b}1R(39){b=c}K b==c};E(1d).2v("4W",J(){E("*").1a(T).3D()});E.1g.1p({43:J(g,d,c){7(E.1q(g))K 6.2v("43",g);L e=g.1f(" ");7(e>=0){L i=g.2B(e,g.M);g=g.2B(0,e)}c=c||J(){};L f="4T";7(d)7(E.1q(d)){c=d;d=V}N{d=E.3v(d);f="62"}L h=6;E.3T({1e:g,U:f,1H:"3o",O:d,1x:J(a,b){7(b=="1O"||b=="61")h.3o(i?E("<1y/>").3s(a.4j.1r(/<1n(.|\\s)*?\\/1n>/g,"")).2u(i):a.4j);h.R(c,[a.4j,b,a])}});K 6},7y:J(){K E.3v(6.60())},60:J(){K 6.2c(J(){K E.12(6,"3e")?E.2I(6.7x):6}).1B(J(){K 6.2X&&!6.31&&(6.3r||/2q|6s/i.17(6.12)||/1s|1Z|3K/i.17(6.U))}).2c(J(i,c){L b=E(6).5V();K b==V?V:b.1j==1I?E.2c(b,J(a,i){K{2X:c.2X,1C:a}}):{2X:c.2X,1C:b}}).23()}});E.R("5Z,6e,5Y,6l,5X,6r".24(","),J(i,o){E.1g[o]=J(f){K 6.2v(o,f)}});L B=(1D 3Q).3P();E.1p({23:J(d,b,a,c){7(E.1q(b)){a=b;b=V}K E.3T({U:"4T",1e:d,O:b,1O:a,1H:c})},7w:J(b,a){K E.23(b,V,a,"1n")},7v:J(c,b,a){K E.23(c,b,a,"3a")},7u:J(d,b,a,c){7(E.1q(b)){a=b;b={}}K E.3T({U:"62",1e:d,O:b,1O:a,1H:c})},7t:J(a){E.1p(E.4O,a)},4O:{27:P,U:"4T",2O:0,5W:"4s/x-7r-3e-7q",5U:P,3l:P,O:V,6w:V,3K:V,4e:{3L:"4s/3L, 1s/3L",3o:"1s/3o",1n:"1s/4q, 4s/4q",3a:"4s/3a, 1s/4q",1s:"1s/ac",4N:"*/*"}},4M:{},3T:J(s){L f,2S=/=\\?(&|$)/g,1v,O;s=E.1p(P,s,E.1p(P,{},E.4O,s));7(s.O&&s.5U&&1u s.O!="2h")s.O=E.3v(s.O);7(s.1H=="4L"){7(s.U.2g()=="23"){7(!s.1e.1A(2S))s.1e+=(s.1e.1A(/\\?/)?"&":"?")+(s.4L||"7p")+"=?"}N 7(!s.O||!s.O.1A(2S))s.O=(s.O?s.O+"&":"")+(s.4L||"7p")+"=?";s.1H="3a"}7(s.1H=="3a"&&(s.O&&s.O.1A(2S)||s.1e.1A(2S))){f="4L"+B++;7(s.O)s.O=(s.O+"").1r(2S,"="+f+"$1");s.1e=s.1e.1r(2S,"="+f+"$1");s.1H="1n";1d[f]=J(a){O=a;1O();1x();1d[f]=10;1U{2Q 1d[f]}1R(e){}7(h)h.35(g)}}7(s.1H=="1n"&&s.1T==V)s.1T=S;7(s.1T===S&&s.U.2g()=="23"){L i=(1D 3Q()).3P();L j=s.1e.1r(/(\\?|&)4v=.*?(&|$)/,"$aa="+i+"$2");s.1e=j+((j==s.1e)?(s.1e.1A(/\\?/)?"&":"?")+"4v="+i:"")}7(s.O&&s.U.2g()=="23"){s.1e+=(s.1e.1A(/\\?/)?"&":"?")+s.O;s.O=V}7(s.27&&!E.5Q++)E.16.1L("5Z");7((!s.1e.1f("a6")||!s.1e.1f("//"))&&s.1H=="1n"&&s.U.2g()=="23"){L h=T.3X("6p")[0];L g=T.3p("1n");g.3V=s.1e;7(s.7m)g.a5=s.7m;7(!f){L l=S;g.a4=g.a3=J(){7(!l&&(!6.3c||6.3c=="63"||6.3c=="1x")){l=P;1O();1x();h.35(g)}}}h.3j(g);K 10}L m=S;L k=1d.7k?1D 7k("a1.a0"):1D 7j();k.9Y(s.U,s.1e,s.3l,s.6w,s.3K);1U{7(s.O)k.4J("9W-9V",s.5W);7(s.5q)k.4J("9T-5K-9R",E.4M[s.1e]||"9Q, 9P 9N 9M 5r:5r:5r 9L");k.4J("X-9I-9G","7j");k.4J("9F",s.1H&&s.4e[s.1H]?s.4e[s.1H]+", */*":s.4e.4N)}1R(e){}7(s.7a)s.7a(k);7(s.27)E.16.1L("6r",[k,s]);L c=J(a){7(!m&&k&&(k.3c==4||a=="2O")){m=P;7(d){79(d);d=V}1v=a=="2O"&&"2O"||!E.78(k)&&"39"||s.5q&&E.6S(k,s.1e)&&"61"||"1O";7(1v=="1O"){1U{O=E.77(k,s.1H)}1R(e){1v="5u"}}7(1v=="1O"){L b;1U{b=k.5w("75-5K")}1R(e){}7(s.5q&&b)E.4M[s.1e]=b;7(!f)1O()}N E.5y(s,k,1v);1x();7(s.3l)k=V}};7(s.3l){L d=5b(c,13);7(s.2O>0)3y(J(){7(k){k.9y();7(!m)c("2O")}},s.2O)}1U{k.9x(s.O)}1R(e){E.5y(s,k,V,e)}7(!s.3l)c();J 1O(){7(s.1O)s.1O(O,1v);7(s.27)E.16.1L("5X",[k,s])}J 1x(){7(s.1x)s.1x(k,1v);7(s.27)E.16.1L("5Y",[k,s]);7(s.27&&!--E.5Q)E.16.1L("6e")}K k},5y:J(s,a,b,e){7(s.39)s.39(a,b,e);7(s.27)E.16.1L("6l",[a,s,e])},5Q:0,78:J(r){1U{K!r.1v&&9v.9u=="5h:"||(r.1v>=73&&r.1v<9s)||r.1v==72||r.1v==9q||E.14.2b&&r.1v==10}1R(e){}K S},6S:J(a,c){1U{L b=a.5w("75-5K");K a.1v==72||b==E.4M[c]||E.14.2b&&a.1v==10}1R(e){}K S},77:J(r,b){L c=r.5w("9o-U");L d=b=="3L"||!b&&c&&c.1f("3L")>=0;L a=d?r.9n:r.4j;7(d&&a.1J.26=="5u")6Z"5u";7(b=="1n")E.5o(a);7(b=="3a")a=6n("("+a+")");K a},3v:J(a){L s=[];7(a.1j==1I||a.4y)E.R(a,J(){s.1k(3q(6.2X)+"="+3q(6.1C))});N Q(L j 1o a)7(a[j]&&a[j].1j==1I)E.R(a[j],J(){s.1k(3q(j)+"="+3q(6))});N s.1k(3q(j)+"="+3q(a[j]));K s.6k("&").1r(/%20/g,"+")}});E.1g.1p({1F:J(c,b){K c?6.2d({1S:"1F",28:"1F",1w:"1F"},c,b):6.1B(":1Z").R(J(){6.W.19=6.5B||"";7(E.1l(6,"19")=="2G"){L a=E("<"+6.26+" />").6I("1i");6.W.19=a.1l("19");7(6.W.19=="2G")6.W.19="46";a.1Q()}}).3h()},1K:J(b,a){K b?6.2d({1S:"1K",28:"1K",1w:"1K"},b,a):6.1B(":4i").R(J(){6.5B=6.5B||E.1l(6,"19");6.W.19="2G"}).3h()},6Y:E.1g.2z,2z:J(a,b){K E.1q(a)&&E.1q(b)?6.6Y(a,b):a?6.2d({1S:"2z",28:"2z",1w:"2z"},a,b):6.R(J(){E(6)[E(6).3E(":1Z")?"1F":"1K"]()})},9k:J(b,a){K 6.2d({1S:"1F"},b,a)},9i:J(b,a){K 6.2d({1S:"1K"},b,a)},9h:J(b,a){K 6.2d({1S:"2z"},b,a)},9f:J(b,a){K 6.2d({1w:"1F"},b,a)},9e:J(b,a){K 6.2d({1w:"1K"},b,a)},9c:J(c,a,b){K 6.2d({1w:a},c,b)},2d:J(l,k,j,h){L i=E.7e(k,j,h);K 6[i.33===S?"R":"33"](J(){7(6.15!=1)K S;L g=E.1p({},i);L f=E(6).3E(":1Z"),4G=6;Q(L p 1o l){7(l[p]=="1K"&&f||l[p]=="1F"&&!f)K E.1q(g.1x)&&g.1x.1h(6);7(p=="1S"||p=="28"){g.19=E.1l(6,"19");g.34=6.W.34}}7(g.34!=V)6.W.34="1Z";g.3z=E.1p({},l);E.R(l,J(c,a){L e=1D E.2s(4G,g,c);7(/2z|1F|1K/.17(a))e[a=="2z"?f?"1F":"1K":a](l);N{L b=a.3G().1A(/^([+-]=)?([\\d+-.]+)(.*)$/),22=e.2j(P)||0;7(b){L d=2J(b[2]),2L=b[3]||"2R";7(2L!="2R"){4G.W[c]=(d||1)+2L;22=((d||1)/e.2j(P))*22;4G.W[c]=22+2L}7(b[1])d=((b[1]=="-="?-1:1)*d)+22;e.45(22,d,2L)}N e.45(22,a,"")}});K P})},33:J(a,b){7(E.1q(a)||(a&&a.1j==1I)){b=a;a="2s"}7(!a||(1u a=="2h"&&!b))K A(6[0],a);K 6.R(J(){7(b.1j==1I)A(6,a,b);N{A(6,a).1k(b);7(A(6,a).M==1)b.1h(6)}})},99:J(b,c){L a=E.3J;7(b)6.33([]);6.R(J(){Q(L i=a.M-1;i>=0;i--)7(a[i].Y==6){7(c)a[i](P);a.71(i,1)}});7(!c)6.5z();K 6}});L A=J(b,c,a){7(!b)K 10;c=c||"2s";L q=E.O(b,c+"33");7(!q||a)q=E.O(b,c+"33",a?E.2I(a):[]);K q};E.1g.5z=J(a){a=a||"2s";K 6.R(J(){L q=A(6,a);q.4p();7(q.M)q[0].1h(6)})};E.1p({7e:J(b,a,c){L d=b&&b.1j==97?b:{1x:c||!c&&a||E.1q(b)&&b,2r:b,44:c&&a||a&&a.1j!=96&&a};d.2r=(d.2r&&d.2r.1j==58?d.2r:{95:94,9E:73}[d.2r])||92;d.5G=d.1x;d.1x=J(){7(d.33!==S)E(6).5z();7(E.1q(d.5G))d.5G.1h(6)};K d},44:{76:J(p,n,b,a){K b+a*p},5H:J(p,n,b,a){K((-1Y.90(p*1Y.8Z)/2)+0.5)*a+b}},3J:[],48:V,2s:J(b,c,a){6.11=c;6.Y=b;6.1m=a;7(!c.47)c.47={}}});E.2s.2k={4E:J(){7(6.11.30)6.11.30.1h(6.Y,[6.2M,6]);(E.2s.30[6.1m]||E.2s.30.4N)(6);7(6.1m=="1S"||6.1m=="28")6.Y.W.19="46"},2j:J(a){7(6.Y[6.1m]!=V&&6.Y.W[6.1m]==V)K 6.Y[6.1m];L r=2J(E.1l(6.Y,6.1m,a));K r&&r>-8V?r:2J(E.29(6.Y,6.1m))||0},45:J(c,b,d){6.5L=(1D 3Q()).3P();6.22=c;6.3h=b;6.2L=d||6.2L||"2R";6.2M=6.22;6.4D=6.4C=0;6.4E();L e=6;J t(a){K e.30(a)}t.Y=6.Y;E.3J.1k(t);7(E.48==V){E.48=5b(J(){L a=E.3J;Q(L i=0;i<a.M;i++)7(!a[i]())a.71(i--,1);7(!a.M){79(E.48);E.48=V}},13)}},1F:J(){6.11.47[6.1m]=E.1G(6.Y.W,6.1m);6.11.1F=P;6.45(0,6.2j());7(6.1m=="28"||6.1m=="1S")6.Y.W[6.1m]="8T";E(6.Y).1F()},1K:J(){6.11.47[6.1m]=E.1G(6.Y.W,6.1m);6.11.1K=P;6.45(6.2j(),0)},30:J(a){L t=(1D 3Q()).3P();7(a||t>6.11.2r+6.5L){6.2M=6.3h;6.4D=6.4C=1;6.4E();6.11.3z[6.1m]=P;L b=P;Q(L i 1o 6.11.3z)7(6.11.3z[i]!==P)b=S;7(b){7(6.11.19!=V){6.Y.W.34=6.11.34;6.Y.W.19=6.11.19;7(E.1l(6.Y,"19")=="2G")6.Y.W.19="46"}7(6.11.1K)6.Y.W.19="2G";7(6.11.1K||6.11.1F)Q(L p 1o 6.11.3z)E.1G(6.Y.W,p,6.11.47[p])}7(b&&E.1q(6.11.1x))6.11.1x.1h(6.Y);K S}N{L n=t-6.5L;6.4C=n/6.11.2r;6.4D=E.44[6.11.44||(E.44.5H?"5H":"76")](6.4C,n,0,1,6.11.2r);6.2M=6.22+((6.3h-6.22)*6.4D);6.4E()}K P}};E.2s.30={2w:J(a){a.Y.2w=a.2M},2p:J(a){a.Y.2p=a.2M},1w:J(a){E.1G(a.Y.W,"1w",a.2M)},4N:J(a){a.Y.W[a.1m]=a.2M+a.2L}};E.1g.5k=J(){L b=0,3m=0,Y=6[0],5J;7(Y)8R(E.14){L d=Y.1b,4c=Y,1M=Y.1M,1N=Y.2t,5M=2b&&3R(5s)<8P&&!/8O/i.17(v),37=E.1l(Y,"3F")=="37";7(Y.6P){L c=Y.6P();1a(c.25+1Y.2f(1N.1J.2w,1N.1i.2w),c.3m+1Y.2f(1N.1J.2p,1N.1i.2p));1a(-1N.1J.6b,-1N.1J.68)}N{1a(Y.5O,Y.5R);2a(1M){1a(1M.5O,1M.5R);7(4b&&!/^t(8L|d|h)$/i.17(1M.26)||2b&&!5M)2y(1M);7(!37&&E.1l(1M,"3F")=="37")37=P;4c=/^1i$/i.17(1M.26)?4c:1M;1M=1M.1M}2a(d&&d.26&&!/^1i|3o$/i.17(d.26)){7(!/^8K|1W.*$/i.17(E.1l(d,"19")))1a(-d.2w,-d.2p);7(4b&&E.1l(d,"34")!="4i")2y(d);d=d.1b}7((5M&&(37||E.1l(4c,"3F")=="55"))||(4b&&E.1l(4c,"3F")!="55"))1a(-1N.1i.5O,-1N.1i.5R);7(37)1a(1Y.2f(1N.1J.2w,1N.1i.2w),1Y.2f(1N.1J.2p,1N.1i.2p))}5J={3m:3m,25:b}}J 2y(a){1a(E.29(a,"a8",P),E.29(a,"a9",P))}J 1a(l,t){b+=3R(l)||0;3m+=3R(t)||0}K 5J};E.R(["4x","3B"],J(i,b){L c=b=="4x"?"67":"6a",3Y=b=="4x"?"66":"69";E.1g["5m"+b]=J(){K 6[b.2g()]()+2V(6,"4V"+c)+2V(6,"4V"+3Y)};E.1g["8H"+b]=J(a){K 6["5m"+b]()+2V(6,"2y"+c+"3B")+2V(6,"2y"+3Y+"3B")+(!!a?2V(6,"6N"+c)+2V(6,"6N"+3Y):0)}});J 2V(a,b){a=a.4y?a[0]:a;K a&&3R(E.29(a,b,P))||0}})();',62,634,'||||||this|if||||||||||||||||||||||||||||||||||||||function|return|var|length|else|data|true|for|each|false|document|type|null|style||elem||undefined|options|nodeName||browser|nodeType|event|test|arguments|display|add|parentNode|msie|window|url|indexOf|fn|apply|body|constructor|push|css|prop|script|in|extend|isFunction|replace|text|className|typeof|status|opacity|complete|div|handle|match|filter|value|new|firstChild|show|attr|dataType|Array|documentElement|hide|trigger|offsetParent|doc|success|break|remove|catch|height|cache|try|tbody|table|call|Math|hidden||ready|start|get|split|left|tagName|global|width|curCSS|while|safari|map|animate|ret|max|toLowerCase|string|special|cur|prototype|done|id||handler|scrollTop|select|duration|fx|ownerDocument|find|bind|scrollLeft|selected|border|toggle|opera|slice|button|nextSibling|guid|toUpperCase|none|pushStack|makeArray|parseFloat|stack|unit|now|target|timeout|merge|delete|px|jsre|nth|exec|num|inArray|name|one|isReady|step|disabled|preventDefault|queue|overflow|removeChild|events|fixed|removeData|error|json|multiFilter|readyState|innerHTML|form|rl|trim|end|first|appendChild|elems|async|top|insertBefore|html|createElement|encodeURIComponent|checked|append|which|childNodes|param|color|grep|setTimeout|curAnim|readyList|Width|mouseleave|unbind|is|position|toString|has|addEventListener|timers|password|xml|runtimeStyle|last|callee|getTime|Date|parseInt|domManip|ajax|selectedIndex|src|isXMLDoc|getElementsByTagName|br|object|props|stopPropagation|args|load|easing|custom|block|orig|timerId|mouseenter||mozilla|offsetChild|jQuery|accepts|clean|float|defaultView|visible|responseText|String|teardown|on|setup|nodeIndex|shift|javascript|currentStyle|application|child|RegExp|_|deep|Height|jquery|previousSibling|dir|tr|state|pos|update|getAttribute|self|empty|charCode|setRequestHeader|input|jsonp|lastModified|_default|ajaxSettings|outline|getPropertyValue|getComputedStyle|not|GET|styleSheets|padding|unload|mouseout|mouseover|getWH|andSelf|index|relatedTarget|visibility|init|absolute|container|click|Number|triggered|removeAttribute|setInterval|prevObject|classFilter|unique|after|submit|file|unshift|windowData|offset|scroll|inner|client|globalEval|sibling|ifModified|00|version|fix|parsererror|wrapAll|getResponseHeader|triggerHandler|handleError|dequeue|createTextNode|oldblock|checkbox|radio|lastChild|bindReady|old|swing|fromElement|results|Modified|startTime|safari2|clone|offsetLeft|values|active|offsetTop|getElementById|lastToggle|processData|val|contentType|ajaxSuccess|ajaxComplete|ajaxStart|serializeArray|notmodified|POST|loaded|DOMContentLoaded|ctrlKey|Bottom|Top|clientTop|Right|Left|clientLeft|clientX|pageX|ajaxStop|exclusive|swap|cloneNode|detachEvent|removeEventListener|join|ajaxError|attachEvent|eval|substr|head|parse|ajaxSend|textarea|reset|image|zoom|username|before|odd|even|prepend|uuid|expr|quickClass|quickID|quickChild|continue|textContent|appendTo|contents|evalScript|parent|defaultValue|margin|compatMode|getBoundingClientRect|setArray|styleFloat|httpNotModified|nodeValue|eq|replaceWith|alpha|href|_toggle|throw|100|splice|304|200|colgroup|Last|linear|httpData|httpSuccess|clearInterval|beforeSend|keyCode|metaKey|concat|speed|fieldset|webkit|multiple|cssFloat|XMLHttpRequest|ActiveXObject|link|scriptCharset|CSS1Compat|col|callback|urlencoded|www|hasClass|ajaxSetup|post|getJSON|getScript|elements|serialize|black|solid|keyup|keypress|change|mousemove|mouseup|mousedown|dblclick|resize|focus|blur|keydown|stylesheet|rel|doScroll|round|hover|offsetHeight|offsetWidth|clientY|pageY|toElement|srcElement|cancelBubble|returnValue|charAt|0n|substring|animated|header|noConflict|line|size|enabled|innerText|weight|contains|only|font|gt|lt|uFFFF|u0128|Boolean|417|toggleClass|removeClass|addClass|removeAttr|replaceAll|insertAfter|wrap|prependTo|contentWindow|contentDocument|iframe|children|siblings|wrapInner|prevAll|nextAll|prev|next|parents|maxLength|maxlength|reverse|readOnly|readonly|outer|class|htmlFor|inline|able|boxModel|setData|adobeair|522|compatible|with|getData|1px|ie|10000|ra|it|rv|PI|cos|userAgent|400|navigator|600|slow|Function|Object|ig|stop|NaN|option|fadeTo|setAttribute|fadeOut|fadeIn|changed|slideToggle|slideUp|be|slideDown|can|property|responseXML|content|getAttributeNode|1223|method|300|action|protocol|location|cssText|send|abort|th|td|specified|cap|colg|fast|Accept|With|tfoot|Requested|thead|attributes|GMT|1970|Jan|leg|01|Thu|Since|opt|If|embed|Type|Content|area|open|hr|XMLHTTP|Microsoft|meta|onreadystatechange|onload|charset|http|img|borderLeftWidth|borderTopWidth|1_|abbr|plain|pixelLeft'.split('|'),0,{}))
var tb_pathToImage="http://www.vakantiekoorts.nl/images/loadingAnimation.gif";function tb_open_new(jThickboxNewLink,title)
{tb_show(title,jThickboxNewLink,null);try{document.getElementById('flashkaart').style.visibility='hidden';}catch(err){}}
$(document).ready(function(){tb_init('a.thickbox, area.thickbox, input.thickbox');imgLoader=new Image();imgLoader.src=tb_pathToImage;});function tb_init(domChunk){$(domChunk).click(function(){var t=this.title||this.name||null;var a=this.href||this.alt;var g=this.rel||false;tb_show(t,a,g);this.blur();return false;});}
function tb_show(caption,url,imageGroup){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("<iframe id='TB_HideSelect'></iframe><div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}else{if(document.getElementById("TB_overlay")===null){$("body").append("<div id='TB_overlay'></div><div id='TB_window'></div>");$("#TB_overlay").click(tb_remove);}}
if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack");}else{$("#TB_overlay").addClass("TB_overlayBG");}
if(caption===null){caption="";}
$("body").append("<div id='TB_load'><img src='"+imgLoader.src+"' /></div>");$('#TB_load').show();var baseURL;if(url.indexOf("?")!==-1){baseURL=url.substr(0,url.indexOf("?"));}else{baseURL=url;}
var urlString=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var urlType=baseURL.toLowerCase().match(urlString);if(urlType=='.jpg'||urlType=='.jpeg'||urlType=='.png'||urlType=='.gif'||urlType=='.bmp'){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(imageGroup){TB_TempArray=$("a[@rel="+imageGroup+"]").get();for(TB_Counter=0;((TB_Counter<TB_TempArray.length)&&(TB_NextHTML===""));TB_Counter++){var urlTypeTemp=TB_TempArray[TB_Counter].href.toLowerCase().match(urlString);if(!(TB_TempArray[TB_Counter].href==url)){if(TB_FoundURL){TB_NextCaption=TB_TempArray[TB_Counter].title;TB_NextURL=TB_TempArray[TB_Counter].href;TB_NextHTML="<span id='TB_next'>&nbsp;&nbsp;<a href='#'>Next &gt;</a></span>";}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML="<span id='TB_prev'>&nbsp;&nbsp;<a href='#'>&lt; Prev</a></span>";}}else{TB_FoundURL=true;TB_imageCount="Image "+(TB_Counter+1)+" of "+(TB_TempArray.length);}}}
imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var pagesize=tb_getPageSize();var x=pagesize[0]-150;var y=pagesize[1]-150;var imageWidth=imgPreloader.width;var imageHeight=imgPreloader.height;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;}}else if(imageHeight>y){imageWidth=imageWidth*(y/imageHeight);imageHeight=y;if(imageWidth>x){imageHeight=imageHeight*(x/imageWidth);imageWidth=x;}}
TB_WIDTH=imageWidth+30;TB_HEIGHT=imageHeight+60;$("#TB_window").append("<a href='' id='TB_ImageOff' title='Close'><img id='TB_Image' src='"+url+"' width='"+imageWidth+"' height='"+imageHeight+"' alt='"+caption+"'/></a>"+"<div id='TB_caption'>"+caption+"<div id='TB_secondLine'>"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"</div></div><div id='TB_closeWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div>");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function goPrev(){if($(document).unbind("click",goPrev)){$(document).unbind("click",goPrev);}
$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_PrevCaption,TB_PrevURL,imageGroup);return false;}
$("#TB_prev").click(goPrev);}
if(!(TB_NextHTML==="")){function goNext(){$("#TB_window").remove();$("body").append("<div id='TB_window'></div>");tb_show(TB_NextCaption,TB_NextURL,imageGroup);return false;}
$("#TB_next").click(goNext);}
document.onkeydown=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}else if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";goNext();}}else if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";goPrev();}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"});};imgPreloader.src=url;}else{var queryString=url.replace(/^[^\?]+\??/,'');var params=tb_parseQuery(queryString);TB_WIDTH=(params['width']*1)+30||630;TB_HEIGHT=(params['height']*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(url.indexOf('TB_iframe')!=-1){urlNoQuery=url.split('TB_');$("#TB_iframeContent").remove();if(params['modal']!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton' title='Close'>close</a> or Esc Key</div></div><iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;' > </iframe>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<iframe frameborder='0' hspace='0' src='"+urlNoQuery[0]+"' id='TB_iframeContent' name='TB_iframeContent"+Math.round(Math.random()*1000)+"' onload='tb_showIframe()' style='width:"+(ajaxContentW+29)+"px;height:"+(ajaxContentH+17)+"px;'> </iframe>");}}else{if($("#TB_window").css("display")!="block"){if(params['modal']!="true"){$("#TB_window").append("<div id='TB_title'><div id='TB_ajaxWindowTitle'>"+caption+"</div><div id='TB_closeAjaxWindow'><a href='#' id='TB_closeWindowButton'>close</a> or Esc Key</div></div><div id='TB_ajaxContent' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px'></div>");}else{$("#TB_overlay").unbind();$("#TB_window").append("<div id='TB_ajaxContent' class='TB_modal' style='width:"+ajaxContentW+"px;height:"+ajaxContentH+"px;'></div>");}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(caption);}}
$("#TB_closeWindowButton").click(tb_remove);if(url.indexOf('TB_inline')!=-1){$("#TB_ajaxContent").append($('#'+params['inlineId']).children());$("#TB_window").unload(function(){$('#'+params['inlineId']).append($("#TB_ajaxContent").children());});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"});}else if(url.indexOf('TB_iframe')!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"});}}else{$("#TB_ajaxContent").load(url+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"});});}}
if(!params['modal']){document.onkeyup=function(e){if(e==null){keycode=event.keyCode;}else{keycode=e.which;}
if(keycode==27){tb_remove();}};}}catch(e){}}
function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"});}
function tb_remove(){try{document.getElementById('flashkaart').style.visibility='visible';}catch(err){}
$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").trigger("unload");$("#TB_overlay").trigger("unload");$("#TB_HideSelect").trigger("unload");$("#TB_window").unbind();$("#TB_overlay").unbind();$("#TB_HideSelect").unbind();$("#TB_window").remove();$("#TB_overlay").remove();$("#TB_HideSelect").remove();$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","");}
document.onkeydown="";document.onkeyup="";return false;}
function tb_position(){$("#TB_window").css({marginLeft:'-'+parseInt((TB_WIDTH/2),10)+'px',width:TB_WIDTH+'px'});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:'-'+parseInt((TB_HEIGHT/2),10)+'px'});}}
function tb_parseQuery(query){var Params={};if(!query){return Params;}
var Pairs=query.split(/[;&]/);for(var i=0;i<Pairs.length;i++){var KeyVal=Pairs[i].split('=');if(!KeyVal||KeyVal.length!=2){continue;}
var key=unescape(KeyVal[0]);var val=unescape(KeyVal[1]);val=val.replace(/\+/g,' ');Params[key]=val;}
return Params;}
function tb_getPageSize(){var de=document.documentElement;var w=window.innerWidth||self.innerWidth||(de&&de.clientWidth)||document.body.clientWidth;var h=window.innerHeight||self.innerHeight||(de&&de.clientHeight)||document.body.clientHeight;arrayPageSize=[w,h];return arrayPageSize;}
function tb_detectMacXFF(){var userAgent=navigator.userAgent.toLowerCase();if(userAgent.indexOf('mac')!=-1&&userAgent.indexOf('firefox')!=-1){return true;}}
function hasClass(obj){var result=false;if(obj.getAttributeNode("class")!=null){result=obj.getAttributeNode("class").value;}
return result;}
function stripe(id){var even=false;var evenColor=arguments[1]?arguments[1]:"#fff";var oddColor=arguments[2]?arguments[2]:"#FCF9E9";var table=document.getElementById(id);if(!table){return;}
var tbodies=table.getElementsByTagName("tbody");for(var h=0;h<tbodies.length;h++){var trs=tbodies[h].getElementsByTagName("tr");for(var i=0;i<trs.length;i++){if(!hasClass(trs[i])&&!trs[i].style.backgroundColor){var tds=trs[i].getElementsByTagName("td");for(var j=0;j<tds.length;j++){var mytd=tds[j];if(!hasClass(mytd)&&!mytd.style.backgroundColor){mytd.style.backgroundColor=even?evenColor:oddColor;}}}
even=!even;}}}
(function($){$(document).ready(function(){$('.cloud-zoom, .cloud-zoom-gallery').CloudZoom();});function format(str){for(var i=1;i<arguments.length;i++){str=str.replace('%'+(i-1),arguments[i]);}
return str;}
var width=0;var height=0;function CloudZoom(jWin,opts){var sImg=$('img',jWin);var img1;var img2;var zoomDiv=null;var $mouseTrap=null;var lens=null;var $tint=null;var softFocus=null;var $ie6Fix=null;var zoomImage;var controlTimer=0;var cw,ch;var destU=0;var destV=0;var currV=0;var currU=0;var filesLoaded=0;var mx,my;var ctx=this,zw;setTimeout(function(){if($mouseTrap===null){var w=jWin.width();jWin.parent().append(format('<div style="width:%0px;position:absolute;top:75%;left:%1px;text-align:center" class="cloud-zoom-loading" >Loading...</div>',w/3,(w/2)-(w/6))).find(':last').css('opacity',0.5);}},200);var ie6FixRemove=function(){if($ie6Fix!==null){$ie6Fix.remove();$ie6Fix=null;}};this.removeBits=function(){if(lens){lens.remove();lens=null;}
if($tint){$tint.remove();$tint=null;}
if(softFocus){softFocus.remove();softFocus=null;}
ie6FixRemove();$('.cloud-zoom-loading',jWin.parent()).remove();};this.destroy=function(){jWin.data('zoom',null);if($mouseTrap){$mouseTrap.unbind();$mouseTrap.remove();$mouseTrap=null;}
if(zoomDiv){zoomDiv.remove();zoomDiv=null;}
this.removeBits();};this.fadedOut=function(){if(zoomDiv){zoomDiv.remove();zoomDiv=null;}
this.removeBits();};this.controlLoop=function(){if(lens){var x=(mx-sImg.offset().left-(cw*0.5))>>0;var y=(my-sImg.offset().top-(ch*0.5))>>0;if(x<0){x=0;}
else if(x>(sImg.outerWidth()-cw)){x=(sImg.outerWidth()-cw);}
if(y<0){y=0;}
else if(y>(sImg.outerHeight()-ch)){y=(sImg.outerHeight()-ch);}
lens.css({left:x,top:y});lens.css('background-position',(-x)+'px '+(-y)+'px');destU=(((x)/sImg.outerWidth())*zoomImage.width)>>0;destV=(((y)/sImg.outerHeight())*zoomImage.height)>>0;currU+=(destU-currU)/opts.smoothMove;currV+=(destV-currV)/opts.smoothMove;zoomDiv.css('background-position',(-(currU>>0)+'px ')+(-(currV>>0)+'px'));}
controlTimer=setTimeout(function(){ctx.controlLoop();},30);};this.init2=function(img,id){filesLoaded++;if(id===1){zoomImage=img;}
if(filesLoaded===2){this.init();}};this.init=function(){$('.cloud-zoom-loading',jWin.parent()).remove();$mouseTrap=jWin.parent().append(format("<div class='mousetrap' style='background-image:url(\".\");z-index:999;position:absolute;width:%0px;height:%1px;left:%2px;top:%3px;\'></div>",sImg.outerWidth(),sImg.outerHeight(),0,0)).find(':last');$mouseTrap.bind('mousemove',this,function(event){mx=event.pageX;my=event.pageY;});$mouseTrap.bind('mouseleave',this,function(event){clearTimeout(controlTimer);if(lens){lens.fadeOut(299);}
if($tint){$tint.fadeOut(299);}
if(softFocus){softFocus.fadeOut(299);}
zoomDiv.fadeOut(300,function(){ctx.fadedOut();});return false;});$mouseTrap.bind('mouseenter',this,function(event){mx=event.pageX;my=event.pageY;zw=event.data;if(zoomDiv){zoomDiv.stop(true,false);zoomDiv.remove();}
var xPos=opts.adjustX,yPos=opts.adjustY;var siw=Math.round(sImg.outerWidth()/2);var sih=Math.round(sImg.outerHeight()/2);var w=opts.zoomWidth;var h=opts.zoomHeight;if(opts.zoomWidth=='auto'){w=zoomImage.width;h=zoomImage.height;if(w>500)
{var s=100-(w-500)/(w/100);h=((h/100)*s);w=500;}}
var appendTo=jWin.parent();switch(opts.position){case'top':yPos-=h;break;case'right':xPos+=siw*2;break;case'bottom':yPos+=sih*2;break;case'left':xPos-=w;break;case'inside':w=siw*2;h=sih*2;break;default:appendTo=$('#'+opts.position);if(!appendTo.length){appendTo=jWin;xPos+=siw*2;yPos+=sih*2;}else{w=appendTo.innerWidth();h=appendTo.innerHeight();}}
zoomDiv=appendTo.append(format('<div id="cloud-zoom-big" class="cloud-zoom-big" style="display:none;position:absolute;left:%0px;top:%1px;width:%2px;height:%3px;background-image:url(\'%4\');z-index:99;"></div>',xPos,yPos,w,h,zoomImage.src)).find(':last');if(sImg.attr('title')&&opts.showTitle){zoomDiv.append(format('<div class="cloud-zoom-title">%0</div>',sImg.attr('title'))).find(':last').css('opacity',opts.titleOpacity);}
if($.browser.msie&&$.browser.version<7){$ie6Fix=$('<iframe frameborder="0" src="#"></iframe>').css({position:"absolute",left:xPos,top:yPos,zIndex:99,width:w,height:h}).insertBefore(zoomDiv);}
zoomDiv.fadeIn(500);if(lens){lens.remove();lens=null;}
cw=(sImg.outerWidth()/zoomImage.width)*zoomDiv.width();ch=(sImg.outerHeight()/zoomImage.height)*zoomDiv.height();lens=jWin.append(format("<div class = 'cloud-zoom-lens' style='display:none;z-index:98;position:absolute;width:%0px;height:%1px;'></div>",cw,ch)).find(':last');$mouseTrap.css('cursor',lens.css('cursor'));var noTrans=false;if(opts.tint){lens.css('background','url("'+sImg.attr('src')+'")');$tint=jWin.append(format('<div style="display:none;position:absolute; left:0px; top:0px; width:%0px; height:%1px; background-color:%2;" />',sImg.outerWidth(),sImg.outerHeight(),opts.tint)).find(':last');$tint.css('opacity',opts.tintOpacity);noTrans=true;$tint.fadeIn(500);}
if(opts.softFocus){lens.css('background','url("'+sImg.attr('src')+'")');softFocus=jWin.append(format('<div style="position:absolute;display:none;top:2px; left:2px; width:%0px; height:%1px;" />',sImg.outerWidth()-2,sImg.outerHeight()-2,opts.tint)).find(':last');softFocus.css('background','url("'+sImg.attr('src')+'")');softFocus.css('opacity',0.5);noTrans=true;softFocus.fadeIn(500);}
if(!noTrans){lens.css('opacity',opts.lensOpacity);}
if(opts.position!=='inside'){lens.fadeIn(500);}
zw.controlLoop();return;});};img1=new Image();$(img1).load(function(){ctx.init2(this,0);});img1.src=sImg.attr('src');img2=new Image();$(img2).load(function(){ctx.init2(this,1);});img2.src=jWin.attr('href');}
$.fn.CloudZoom=function(options){try{document.execCommand("BackgroundImageCache",false,true);}catch(e){}
this.each(function(){var relOpts,opts;eval('var    a = {'+$(this).attr('rel')+'}');relOpts=a;if($(this).is('.cloud-zoom')){$(this).css({'position':'relative','display':'block'});$('img',$(this)).css({'display':'block'});if($(this).parent().attr('id')!='wrap'){$(this).wrap('<div id="wrap" style="top:0px;z-index:9999;position:relative;"></div>');}
opts=$.extend({},$.fn.CloudZoom.defaults,options);opts=$.extend({},opts,relOpts);$(this).data('zoom',new CloudZoom($(this),opts));}else if($(this).is('.cloud-zoom-gallery')){opts=$.extend({},relOpts,options);$(this).data('relOpts',opts);$(this).bind('click',$(this),function(event){width=event.data.data('relOpts').zoomWidth;height=event.data.data('relOpts').zoomHeight;var data=event.data.data('relOpts');$('#'+data.useZoom).data('zoom').destroy();$('#'+data.useZoom).attr('href',event.data.attr('href'));$('#'+data.useZoom+' img').attr('src',event.data.data('relOpts').smallImage);$('#'+event.data.data('relOpts').useZoom).CloudZoom();return false;});}});return this;};$.fn.CloudZoom.defaults={zoomWidth:'auto',zoomHeight:'auto',position:'right',tint:false,tintOpacity:0.5,lensOpacity:0.5,softFocus:false,smoothMove:3,showTitle:true,titleOpacity:0.5,adjustX:0,adjustY:0};})(jQuery);
