
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 dhtmlXComboFromSelect(parent,size){if(typeof(parent)=="string")
parent=document.getElementById(parent);size=size||parent.getAttribute("width")||(window.getComputedStyle?window.getComputedStyle(parent,null)["width"]:(parent.currentStyle?parent.currentStyle["width"]:0));if((!size)||(size=="auto"))
size=parent.offsetWidth||100;var z=document.createElement("SPAN");parent.parentNode.insertBefore(z,parent);parent.style.display='none';var s_type=parent.getAttribute('opt_type');var w=new dhtmlXCombo(z,parent.name,size,s_type,parent.tabIndex);var x=new Array();var sel=0;for(var i=0;i<parent.options.length;i++){if(parent.options[i].selected)sel=i;var label=parent.options[i].innerHTML;var val=parent.options[i].getAttribute("value");if((typeof(val)=="undefined")||(val===null))val=label;x[i]={value:val,text:label,img_src:parent.options[i].getAttribute("img_src")};}
if(x.length)
w.addOption(x);parent.parentNode.removeChild(parent);w.selectOption(sel,null,true);if(parent.onchange)
w.attachEvent("onChange",parent.onchange);if(parent.style.direction=="rtl"&&w.setRTL)
w.setRTL(true);return w;}
var dhtmlXCombo_optionTypes=[];function dhtmlXCombo(parent,name,width,optionType,tabIndex){if(typeof(parent)=="string")
parent=document.getElementById(parent);this.dhx_Event();dhtmlxEventable(this);this.optionType=(optionType!=window.undefined&&dhtmlXCombo_optionTypes[optionType])?optionType:'default';this._optionObject=dhtmlXCombo_optionTypes[this.optionType];this._disabled=false;if(!window.dhx_glbSelectAr){window.dhx_glbSelectAr=new Array();window.dhx_openedSelect=null;window.dhx_SelectId=1;dhtmlxEvent(document.body,"click",this.closeAll);dhtmlxEvent(document.body,"keydown",function(e){try{if((e||event).keyCode==9)window.dhx_glbSelectAr[0].closeAll();}catch(e){}return true;});}
if(parent.tagName=="SELECT")
return dhtmlXComboFromSelect(parent);else
this._createSelf(parent,name,width,tabIndex);dhx_glbSelectAr.push(this);}
dhtmlXCombo.prototype.setSize=function(new_size){this.DOMlist.style.width=new_size+"px";if(this.DOMlistF)this.DOMlistF.style.width=new_size+"px";this.DOMelem.style.width=new_size+"px";this.DOMelem_input.style.width=Math.max(0,(new_size-19))+'px';}
dhtmlXCombo.prototype.enableFilteringMode=function(mode,url,cache,autosubload){this._filter=convertStringToBoolean(mode);if(url){this._xml=url;this._autoxml=convertStringToBoolean(autosubload);}
if(convertStringToBoolean(cache))this._xmlCache=[];}
dhtmlXCombo.prototype.setFilteringParam=function(name,value){if(!this._prs)this._prs=[];this._prs.push([name,value]);}
dhtmlXCombo.prototype.disable=function(mode){var z=convertStringToBoolean(mode);if(this._disabled==z)return;this.DOMelem_input.disabled=z;this._disabled=z;}
dhtmlXCombo.prototype.readonly=function(mode,autosearch){this.DOMelem_input.readOnly=mode?true:false;if(autosearch===false||mode===false){this.DOMelem.onkeyup=function(ev){}}else{var that=this;this.DOMelem.onkeyup=function(ev){ev=ev||window.event;if(ev.keyCode!=9)ev.cancelBubble=true;if((ev.keyCode>=48&&ev.keyCode<=57)||(ev.keyCode>=65&&ev.keyCode<=90)){for(var i=0;i<that.optionsArr.length;i++){var text=that.optionsArr[i].text;if(text.toString().toUpperCase().indexOf(String.fromCharCode(ev.keyCode))==0){that.selectOption(i);break;}}
ev.cancelBubble=true;}}}}
dhtmlXCombo.prototype.getOption=function(value)
{for(var i=0;i<this.optionsArr.length;i++)
if(this.optionsArr[i].value==value)
return this.optionsArr[i];return null;}
dhtmlXCombo.prototype.getOptionByLabel=function(value)
{for(var i=0;i<this.optionsArr.length;i++)
if(this.optionsArr[i].text==value||this.optionsArr[i]._ctext==value)
return this.optionsArr[i];return null;}
dhtmlXCombo.prototype.getOptionByIndex=function(ind){return this.optionsArr[ind];}
dhtmlXCombo.prototype.clearAll=function(all)
{if(all)this.setComboText("");this.optionsArr=new Array();this.redrawOptions();if(all)this._confirmSelection();}
dhtmlXCombo.prototype.deleteOption=function(value)
{var ind=this.getIndexByValue(value);if(ind<0)return;if(this.optionsArr[ind]==this._selOption)this._selOption=null;this.optionsArr.splice(ind,1);this.redrawOptions();}
dhtmlXCombo.prototype.render=function(mode){this._skiprender=(!convertStringToBoolean(mode));this.redrawOptions();}
dhtmlXCombo.prototype.updateOption=function(oldvalue,avalue,atext,acss)
{var dOpt=this.getOption(oldvalue);if(typeof(avalue)!="object")avalue={text:atext,value:avalue,css:acss};dOpt.setValue(avalue);this.redrawOptions();}
dhtmlXCombo.prototype.addOption=function(options)
{if(!arguments[0].length||typeof(arguments[0])!="object")
args=[arguments];else
args=options;this.render(false);for(var i=0;i<args.length;i++){var attr=args[i];if(attr.length){attr.value=attr[0]||"";attr.text=attr[1]||"";attr.css=attr[2]||"";}
this._addOption(attr);}
this.render(true);}
dhtmlXCombo.prototype._addOption=function(attr)
{dOpt=new this._optionObject();this.optionsArr.push(dOpt);dOpt.setValue.apply(dOpt,[attr]);this.redrawOptions();}
dhtmlXCombo.prototype.getIndexByValue=function(val){for(var i=0;i<this.optionsArr.length;i++)
if(this.optionsArr[i].value==val)return i;return-1;}
dhtmlXCombo.prototype.getSelectedValue=function(){return(this._selOption?this._selOption.value:null);}
dhtmlXCombo.prototype.getComboText=function(){return this.DOMelem_input.value;}
dhtmlXCombo.prototype.setComboText=function(text){this.DOMelem_input.value=text;}
dhtmlXCombo.prototype.setComboValue=function(text){this.setComboText(text);for(var i=0;i<this.optionsArr.length;i++)
if(this.optionsArr[i].data()[0]==text)
return this.selectOption(i,null,true);this.DOMelem_hidden_input.value=text;}
dhtmlXCombo.prototype.getActualValue=function(){return this.DOMelem_hidden_input.value;}
dhtmlXCombo.prototype.getSelectedText=function(){return(this._selOption?this._selOption.text:"");}
dhtmlXCombo.prototype.getSelectedIndex=function(){for(var i=0;i<this.optionsArr.length;i++)
if(this.optionsArr[i]==this._selOption)return i;return-1;}
dhtmlXCombo.prototype.setName=function(name){this.DOMelem_hidden_input.name=name;this.DOMelem_hidden_input2=name.replace(/(\]?)$/,"_new_value$1");this.name=name;}
dhtmlXCombo.prototype.show=function(mode){if(convertStringToBoolean(mode))
this.DOMelem.style.display="";else
this.DOMelem.style.display="none";}
dhtmlXCombo.prototype.destructor=function()
{this.DOMParent.removeChild(this.DOMelem);this.DOMlist.parentNode.removeChild(this.DOMlist);var s=dhx_glbSelectAr;this.DOMParent=this.DOMlist=this.DOMelem=0;this.DOMlist.combo=this.DOMelem.combo=0;for(var i=0;i<s.length;i++)
{if(s[i]==this)
{s[i]=null;s.splice(i,1);return;}}}
dhtmlXCombo.prototype._createSelf=function(selParent,name,width,tab)
{if(width.toString().indexOf("%")!=-1){var self=this;var resWidht=parseInt(width)/100;window.setInterval(function(){if(!selParent.parentNode)return;var ts=selParent.parentNode.offsetWidth*resWidht-2;if(ts<0)return;if(ts==self._lastTs)return;self.setSize(self._lastTs=ts);},500);var width=parseInt(selParent.offsetWidth);}
var width=parseInt(width||100);this.ListPosition="Bottom";this.DOMParent=selParent;this._inID=null;this.name=name;this._selOption=null;this.optionsArr=Array();var opt=new this._optionObject();opt.DrawHeader(this,name,width,tab);this.DOMlist=document.createElement("DIV");this.DOMlist.className='dhx_combo_list '+(dhtmlx.skin?dhtmlx.skin+"_list":"");this.DOMlist.style.width=width-(_isIE?0:0)+"px";if(_isOpera||_isKHTML)
this.DOMlist.style.overflow="auto";this.DOMlist.style.display="none";document.body.insertBefore(this.DOMlist,document.body.firstChild);if(_isIE){this.DOMlistF=document.createElement("IFRAME");this.DOMlistF.style.border="0px";this.DOMlistF.className='dhx_combo_list';this.DOMlistF.style.width=width-(_isIE?0:0)+"px";this.DOMlistF.style.display="none";this.DOMlistF.src="javascript:false;";document.body.insertBefore(this.DOMlistF,document.body.firstChild);}
this.DOMlist.combo=this.DOMelem.combo=this;this.DOMelem_input.onkeydown=this._onKey;this.DOMelem_input.onkeypress=this._onKeyF;this.DOMelem_input.onblur=this._onBlur;this.DOMelem.onclick=this._toggleSelect;this.DOMlist.onclick=this._selectOption;this.DOMlist.onmousedown=function(){this._skipBlur=true;}
this.DOMlist.onkeydown=function(e){this.combo.DOMelem_input.focus();(e||event).cancelBubble=true;this.combo.DOMelem_input.onkeydown(e)}
this.DOMlist.onmouseover=this._listOver;}
dhtmlXCombo.prototype._listOver=function(e)
{e=e||event;e.cancelBubble=true;var node=(_isIE?event.srcElement:e.target);var that=this.combo;if(node.parentNode==that.DOMlist){if(that._selOption)that._selOption.deselect();if(that._tempSel)that._tempSel.deselect();var i=0;for(i;i<that.DOMlist.childNodes.length;i++){if(that.DOMlist.childNodes[i]==node)break;}
var z=that.optionsArr[i];that._tempSel=z;that._tempSel.select();if((that._autoxml)&&((i+1)==that._lastLength)){that._fetchOptions(i+1,that._lasttext||"");}}}
dhtmlXCombo.prototype._positList=function()
{var pos=this.getPosition(this.DOMelem);if(this.ListPosition=='Bottom'){this.DOMlist.style.top=pos[1]+this.DOMelem.offsetHeight-1+"px";this.DOMlist.style.left=pos[0]+"px";}
else if(this.ListPosition=='Top'){this.DOMlist.style.top=pos[1]-this.DOMlist.offsetHeight+"px";this.DOMlist.style.left=pos[0]+"px";}
else{this.DOMlist.style.top=pos[1]+"px";this.DOMlist.style.left=pos[0]+this.DOMelem.offsetWidth+"px";}}
dhtmlXCombo.prototype.getPosition=function(oNode,pNode){if(_isChrome){if(!pNode)
var pNode=document.body
var oCurrentNode=oNode;var iLeft=0;var iTop=0;while((oCurrentNode)&&(oCurrentNode!=pNode)){iLeft+=oCurrentNode.offsetLeft-oCurrentNode.scrollLeft;iTop+=oCurrentNode.offsetTop-oCurrentNode.scrollTop;oCurrentNode=oCurrentNode.offsetParent;}
if(pNode==document.body){if(_isIE&&_isIE<8){if(document.documentElement.scrollTop)
iTop+=document.documentElement.scrollTop;if(document.documentElement.scrollLeft)
iLeft+=document.documentElement.scrollLeft;}
else
if(!_isFF){iLeft+=document.body.offsetLeft;iTop+=document.body.offsetTop;}}
return new Array(iLeft,iTop);}
var pos=getOffset(oNode);return[pos.left,pos.top];}
dhtmlXCombo.prototype._correctSelection=function(){if(this.getComboText()!="")
for(var i=0;i<this.optionsArr.length;i++)
if(!this.optionsArr[i].isHidden()){return this.selectOption(i,true,false);}
this.unSelectOption();}
dhtmlXCombo.prototype.selectNext=function(step){var z=this.getSelectedIndex()+step;while(this.optionsArr[z]){if(!this.optionsArr[z].isHidden())
return this.selectOption(z,false,false);z+=step;}}
dhtmlXCombo.prototype._onKeyF=function(e){var that=this.parentNode.combo;var ev=e||event;ev.cancelBubble=true;if(ev.keyCode=="13"||ev.keyCode=="9"){that._confirmSelection();that.closeAll();}else
if(ev.keyCode=="27"){that._resetSelection();that.closeAll();}else that._activeMode=true;if(ev.keyCode=="13"||ev.keyCode=="27"){that.callEvent("onKeyPressed",[ev.keyCode])
return false;}
return true;}
dhtmlXCombo.prototype._onKey=function(e){var that=this.parentNode.combo;(e||event).cancelBubble=true;var ev=(e||event).keyCode;if(ev>15&&ev<19)return true;if(ev==27)return;if((that.DOMlist.style.display!="block")&&(ev!="13")&&(ev!="9")&&((!that._filter)||(that._filterAny)))
that.DOMelem.onclick(e||event);if((ev!="13")&&(ev!="9")){window.setTimeout(function(){that._onKeyB(ev);},1);if(ev=="40"||ev=="38")
return false;}
else if(ev==9){that.closeAll();(e||event).cancelBubble=false;}}
dhtmlXCombo.prototype._onKeyB=function(ev)
{if(ev=="40"){var z=this.selectNext(1);}else if(ev=="38"){this.selectNext(-1);}else{this.callEvent("onKeyPressed",[ev])
if(this._filter)return this.filterSelf((ev==8)||(ev==46));for(var i=0;i<this.optionsArr.length;i++)
if(this.optionsArr[i].data()[1]==this.DOMelem_input.value){this.selectOption(i,false,false);return false;}
this.unSelectOption();}
return true;}
dhtmlXCombo.prototype._onBlur=function()
{var self=this.parentNode._self;window.setTimeout(function(){if(self.DOMlist._skipBlur)return!(self.DOMlist._skipBlur=false);self._confirmSelection();self.callEvent("onBlur",[]);},100)}
dhtmlXCombo.prototype.redrawOptions=function(){if(this._skiprender)return;for(var i=this.DOMlist.childNodes.length-1;i>=0;i--)
this.DOMlist.removeChild(this.DOMlist.childNodes[i]);for(var i=0;i<this.optionsArr.length;i++)
this.DOMlist.appendChild(this.optionsArr[i].render());}
dhtmlXCombo.prototype.loadXML=function(url,afterCall){this._load=true;this.callEvent("onXLS",[]);if((this._xmlCache)&&(this._xmlCache[url])){this._fillFromXML(this,null,null,null,this._xmlCache[url]);if(afterCall)afterCall();}
else{var xml=(new dtmlXMLLoaderObject(this._fillFromXML,this,true,true));if(afterCall)xml.waitCall=afterCall;if(this._prs)
for(var i=0;i<this._prs.length;i++)
url+=[getUrlSymbol(url),escape(this._prs[i][0]),"=",escape(this._prs[i][1])].join("");xml._cPath=url;xml.loadXML(url);}}
dhtmlXCombo.prototype.loadXMLString=function(astring){var xml=(new dtmlXMLLoaderObject(this._fillFromXML,this,true,true));xml.loadXMLString(astring);}
dhtmlXCombo.prototype._fillFromXML=function(obj,b,c,d,xml){if(obj._xmlCache)obj._xmlCache[xml._cPath]=xml;var toptag=xml.getXMLTopNode("complete");if(toptag.tagName!="complete")return;var top=xml.doXPath("//complete");var options=xml.doXPath("//option");var add=false;obj.render(false);if((!top[0])||(!top[0].getAttribute("add"))){obj.clearAll();obj._lastLength=options.length;if(obj._xml){if((!options)||(!options.length))
obj.closeAll();else{if(obj._activeMode){obj._positList();obj.DOMlist.style.display="block";if(_isIE)obj._IEFix(true);}}}}else{obj._lastLength+=options.length||Infinity;add=true;}
for(var i=0;i<options.length;i++){var attr=new Object();attr.text=options[i].firstChild?options[i].firstChild.nodeValue:"";for(var j=0;j<options[i].attributes.length;j++){var a=options[i].attributes[j];if(a)
attr[a.nodeName]=a.nodeValue;}
obj._addOption(attr);}
obj.render(add!=true||(!!options.length));if((obj._load)&&(obj._load!==true))
obj.loadXML(obj._load);else{obj._load=false;if((!obj._lkmode)&&(obj._filter))
obj._correctSelection();}
var selected=xml.doXPath("//option[@selected]");if(selected.length)
obj.selectOption(obj.getIndexByValue(selected[0].getAttribute("value")),false,true);obj.callEvent("onXLE",[]);}
dhtmlXCombo.prototype.unSelectOption=function(){if(this._selOption)this._selOption.deselect();if(this._tempSel)this._tempSel.deselect();this._tempSel=this._selOption=null;}
dhtmlXCombo.prototype.confirmValue=function(){this._confirmSelection();}
dhtmlXCombo.prototype._confirmSelection=function(data,status){if(arguments.length==0){var z=this.getOptionByLabel(this.DOMelem_input.value);data=z?z.value:this.DOMelem_input.value;status=(z==null);if(data==this.getActualValue())return;}
this.DOMelem_hidden_input.value=data;this.DOMelem_hidden_input2.value=(status?"true":"false");this.callEvent("onChange",[]);this._activeMode=false;}
dhtmlXCombo.prototype._resetSelection=function(data,status){var z=this.getOption(this.DOMelem_hidden_input.value);this.setComboValue(z?z.data()[0]:this.DOMelem_hidden_input.value)
this.setComboText(z?z.data()[1]:this.DOMelem_hidden_input.value)}
dhtmlXCombo.prototype.selectOption=function(ind,filter,conf){if(arguments.length<3)conf=true;this.unSelectOption();var z=this.optionsArr[ind];if(!z)return;this._selOption=z;this._selOption.select();var corr=this._selOption.content.offsetTop+this._selOption.content.offsetHeight-this.DOMlist.scrollTop-this.DOMlist.offsetHeight;if(corr>0)this.DOMlist.scrollTop+=corr;corr=this.DOMlist.scrollTop-this._selOption.content.offsetTop;if(corr>0)this.DOMlist.scrollTop-=corr;var data=this._selOption.data();if(conf){this.setComboText(data[1]);this._confirmSelection(data[0],false);if((this._autoxml)&&((ind+1)==this._lastLength))
this._fetchOptions(ind+1,this._lasttext||"");}
if(filter){var text=this.getComboText();if(text!=data[1]){this.setComboText(data[1]);dhtmlXRange(this.DOMelem_input,text.length+1,data[1].length);}}
else
this.setComboText(data[1]);this._selOption.RedrawHeader(this);this.callEvent("onSelectionChange",[]);}
dhtmlXCombo.prototype._selectOption=function(e)
{(e||event).cancelBubble=true;var node=(_isIE?event.srcElement:e.target);var that=this.combo;while(!node._self){node=node.parentNode;if(!node)
return;}
var i=0;for(i;i<that.DOMlist.childNodes.length;i++){if(that.DOMlist.childNodes[i]==node)break;}
that.selectOption(i,false,true);that.closeAll();that.callEvent("onBlur",[])
that._activeMode=false;}
dhtmlXCombo.prototype.openSelect=function(){if(this._disabled)return;this.closeAll();this._positList();this.DOMlist.style.display="block";this.callEvent("onOpen",[]);if(this._tempSel)this._tempSel.deselect();if(this._selOption)this._selOption.select();if(this._selOption){var corr=this._selOption.content.offsetTop+this._selOption.content.offsetHeight-this.DOMlist.scrollTop-this.DOMlist.offsetHeight;if(corr>0)this.DOMlist.scrollTop+=corr;corr=this.DOMlist.scrollTop-this._selOption.content.offsetTop;if(corr>0)this.DOMlist.scrollTop-=corr;}
if(_isIE)this._IEFix(true);try
{this.DOMelem_input.focus();}
catch(err){}
if(this._filter)this.filterSelf();}
dhtmlXCombo.prototype._toggleSelect=function(e)
{var that=this.combo;if(that.DOMlist.style.display=="block"){that.closeAll();}else{that.openSelect();}
(e||event).cancelBubble=true;}
dhtmlXCombo.prototype._fetchOptions=function(ind,text){if(text==""){this.closeAll();return this.clearAll();}
var url=this._xml+((this._xml.indexOf("?")!=-1)?"&":"?")+"pos="+ind+"&mask="+encodeURIComponent(text);this._lasttext=text;if(this._load)this._load=url;else{if(!this.callEvent("onDynXLS",[text,ind]))return;this.loadXML(url);}}
dhtmlXCombo.prototype.filterSelf=function(mode)
{var text=this.getComboText();if(this._xml){this._lkmode=mode;this._fetchOptions(0,text);}
try{var filter=new RegExp("^"+text,"i");}catch(e){var filter=new RegExp("^"+text.replace(/([\[\]\{\}\(\)\+\*\\])/g,"\\$1"));}
this.filterAny=false;for(var i=0;i<this.optionsArr.length;i++){var z=filter.test(this.optionsArr[i].text);this.filterAny|=z;this.optionsArr[i].hide(!z);}
if(!this.filterAny){this.closeAll();this._activeMode=true;}
else{if(this.DOMlist.style.display!="block")
this.openSelect();if(_isIE)this._IEFix(true);}
if(!mode)
this._correctSelection();else this.unSelectOption();}
dhtmlXCombo.prototype._IEFix=function(mode){this.DOMlistF.style.display=(mode?"block":"none");this.DOMlistF.style.top=this.DOMlist.style.top;this.DOMlistF.style.left=this.DOMlist.style.left;}
dhtmlXCombo.prototype.closeAll=function()
{if(window.dhx_glbSelectAr)
for(var i=0;i<dhx_glbSelectAr.length;i++){if(dhx_glbSelectAr[i].DOMlist.style.display=="block"){dhx_glbSelectAr[i].DOMlist.style.display="none";if(_isIE)dhx_glbSelectAr[i]._IEFix(false);}
dhx_glbSelectAr[i]._activeMode=false;}}
function dhtmlXRange(InputId,Start,End)
{var Input=typeof(InputId)=='object'?InputId:document.getElementById(InputId);try{Input.focus();}catch(e){};var Length=Input.value.length;Start--;if(Start<0||Start>End||Start>Length)
Start=0;if(End>Length)
End=Length;if(Start==End)return;if(Input.setSelectionRange){Input.setSelectionRange(Start,End);}else if(Input.createTextRange){var range=Input.createTextRange();range.moveStart('character',Start);range.moveEnd('character',End-Length);try{range.select();}
catch(e){}}}
dhtmlXCombo_defaultOption=function(){this.init();}
dhtmlXCombo_defaultOption.prototype.init=function(){this.value=null;this.text="";this.selected=false;this.css="";}
dhtmlXCombo_defaultOption.prototype.select=function(){if(this.content){this.content.className="dhx_selected_option"+(dhtmlx.skin?" combo_"+dhtmlx.skin+"_sel":"");}}
dhtmlXCombo_defaultOption.prototype.hide=function(mode){this.render().style.display=mode?"none":"";}
dhtmlXCombo_defaultOption.prototype.isHidden=function(){return(this.render().style.display=="none");}
dhtmlXCombo_defaultOption.prototype.deselect=function(){if(this.content)this.render();this.content.className="";}
dhtmlXCombo_defaultOption.prototype.setValue=function(attr){this.value=attr.value||"";this.text=attr.text||"";this.css=attr.css||"";this.content=null;}
dhtmlXCombo_defaultOption.prototype.render=function(){if(!this.content){this.content=document.createElement("DIV");this.content._self=this;this.content.style.cssText='width:100%; overflow:hidden;'+this.css;if(_isOpera||_isKHTML)this.content.style.padding="2px 0px 2px 0px";this.content.innerHTML=this.text;this._ctext=_isIE?this.content.innerText:this.content.textContent;}
return this.content;}
dhtmlXCombo_defaultOption.prototype.data=function(){if(this.content)
return[this.value,this._ctext?this._ctext:this.text];}
dhtmlXCombo_defaultOption.prototype.DrawHeader=function(self,name,width,tab)
{var z=document.createElement("DIV");z.style.width=width+"px";z.className='dhx_combo_box '+(dhtmlx.skin||"");z._self=self;self.DOMelem=z;this._DrawHeaderInput(self,name,width,tab);this._DrawHeaderButton(self,name,width);self.DOMParent.appendChild(self.DOMelem);}
dhtmlXCombo_defaultOption.prototype._DrawHeaderInput=function(self,name,width,tab)
{var z=document.createElement('input');z.setAttribute("autocomplete","off");z.type='text';z.className='dhx_combo_input';if(tab)z.tabIndex=tab;z.style.width=width-19-(document.compatMode=="BackCompat"?0:3)+'px';self.DOMelem.appendChild(z);self.DOMelem_input=z;z=document.createElement('input');z.type='hidden';z.name=name;self.DOMelem.appendChild(z);self.DOMelem_hidden_input=z;z=document.createElement('input');z.type='hidden';z.name=(name||"").replace(/(\]?)$/,"_new_value$1");z.value="true";self.DOMelem.appendChild(z);self.DOMelem_hidden_input2=z;}
dhtmlXCombo_defaultOption.prototype._DrawHeaderButton=function(self,name,width)
{var z=document.createElement('img');z.className='dhx_combo_img';if(dhtmlx.image_path)dhx_globalImgPath=dhtmlx.image_path;z.src=(window.dhx_globalImgPath?dhx_globalImgPath:"")+'combo_select'+(dhtmlx.skin?"_"+dhtmlx.skin:"")+'.gif';self.DOMelem.appendChild(z);self.DOMelem_button=z;}
dhtmlXCombo_defaultOption.prototype.RedrawHeader=function(self)
{}
dhtmlXCombo_optionTypes['default']=dhtmlXCombo_defaultOption;dhtmlXCombo.prototype.dhx_Event=function()
{this.dhx_SeverCatcherPath="";this.attachEvent=function(original,catcher,CallObj)
{CallObj=CallObj||this;original='ev_'+original;if((!this[original])||(!this[original].addEvent)){var z=new this.eventCatcher(CallObj);z.addEvent(this[original]);this[original]=z;}
return(original+':'+this[original].addEvent(catcher));}
this.callEvent=function(name,arg0){if(this["ev_"+name])return this["ev_"+name].apply(this,arg0);return true;}
this.checkEvent=function(name){if(this["ev_"+name])return true;return false;}
this.eventCatcher=function(obj)
{var dhx_catch=new Array();var m_obj=obj;var func_server=function(catcher,rpc)
{catcher=catcher.split(":");var postVar="";var postVar2="";var target=catcher[1];if(catcher[1]=="rpc"){postVar='<?xml version="1.0"?><methodCall><methodName>'+catcher[2]+'</methodName><params>';postVar2="</params></methodCall>";target=rpc;}
var z=function(){}
return z;}
var z=function()
{if(dhx_catch)
var res=true;for(var i=0;i<dhx_catch.length;i++){if(dhx_catch[i]!=null){var zr=dhx_catch[i].apply(m_obj,arguments);res=res&&zr;}}
return res;}
z.addEvent=function(ev)
{if(typeof(ev)!="function")
if(ev&&ev.indexOf&&ev.indexOf("server:")==0)
ev=new func_server(ev,m_obj.rpcServer);else
ev=eval(ev);if(ev)
return dhx_catch.push(ev)-1;return false;}
z.removeEvent=function(id)
{dhx_catch[id]=null;}
return z;}
this.detachEvent=function(id)
{if(id!=false){var list=id.split(':');this[list[0]].removeEvent(list[1]);}}};(function(){dhtmlx.extend_api("dhtmlXCombo",{_init:function(obj){if(obj.image_path)
dhx_globalImgPath=obj.image_path;return[obj.parent,obj.name,(obj.width||"100%"),obj.type,obj.index];},filter:"filter_command",auto_height:"enableOptionAutoHeight",auto_position:"enableOptionAutoPositioning",auto_width:"enableOptionAutoWidth",xml:"loadXML",readonly:"readonly",items:"addOption"},{filter_command:function(data){if(typeof data=="string")
this.enableFilteringMode(true,data);else
this.enableFilteringMode(data);}});})();
dhtmlXCombo.prototype.enableOptionAutoPositioning=function(fl){if(!this.ListAutoPosit)this.ListAutoPosit=1;this.attachEvent("onOpen",function(){this._setOptionAutoPositioning(fl);})
this.attachEvent("onXLE",function(){this._setOptionAutoPositioning(fl);})};dhtmlXCombo.prototype._setOptionAutoPositioning=function(fl){if((typeof(fl)!="undefined")&&(!convertStringToBoolean(fl))){this.ListPosition="Bottom";this.ListAutoPosit=0;return true};var pos=this.getPosition(this.DOMelem);var bottom=this._getClientHeight()-pos[1]-this.DOMelem.offsetHeight;var height=(this.autoHeight)?(this.DOMlist.scrollHeight):parseInt(this.DOMlist.offsetHeight);if((bottom<height)&&(pos[1]>height)){this.ListPosition="Top";}else this.ListPosition="Bottom";this._positList();};dhtmlXCombo.prototype._getClientHeight=function(){return((document.compatMode=='CSS1Compat')&&(!window.opera))?document.documentElement.clientHeight:document.body.clientHeight;};dhtmlXCombo.prototype.setOptionWidth=function(width){if(arguments.length>0){this.DOMlist.style.width=width+"px";if(this.DOMlistF)this.DOMlistF.style.width=width+"px";}};dhtmlXCombo.prototype.setOptionHeight=function(height){if(arguments.length>0){if(_isIE)this.DOMlist.style.height=this.DOMlistF.style.height=height+"px";else
this.DOMlist.style.height=height+"px";if(this.DOMlistF)this.DOMlistF.style.height=this.DOMlist.style.height;this._positList();}};dhtmlXCombo.prototype.enableOptionAutoWidth=function(fl){if(!this._listWidthConf)this._listWidthConf=parseInt(this.DOMlist.style.width);if(arguments.length==0){var fl=1;};if(convertStringToBoolean(fl)){this.autoOptionWidth=1;this.awOnOpen=this.attachEvent("onOpen",function(){this._setOptionAutoWidth()});this.awOnXLE=this.attachEvent("onXLE",function(){this._setOptionAutoWidth()});}else{if(typeof(this.awOnOpen)!="undefined"){this.autoOptionWidth=0;this.detachEvent(this.awOnOpen);this.detachEvent(this.awOnXLE);this.setOptionWidth(this._listWidthConf);}}};dhtmlXCombo.prototype._setOptionAutoWidth=function(){var isScroll=!this.ahOnOpen&&this.DOMlist.scrollHeight>this.DOMlist.offsetHeight;this.setOptionWidth(1);var x=this.DOMlist.offsetWidth;for(var i=0;i<this.optionsArr.length;i++){var optWidth=(_isFF)?(this.DOMlist.childNodes[i].scrollWidth-2):this.DOMlist.childNodes[i].scrollWidth;if(optWidth>x){x=this.DOMlist.childNodes[i].scrollWidth;}};x+=isScroll?18:0;this.setOptionWidth(x);};dhtmlXCombo.prototype.enableOptionAutoHeight=function(fl,maxHeight){if(!this._listHeightConf)this._listHeightConf=(this.DOMlist.style.height=="")?100:parseInt(this.DOMlist.style.height);if(arguments.length==0)var fl=1;this.autoHeight=convertStringToBoolean(fl);if(this.autoHeight){this.ahOnOpen=this.attachEvent("onOpen",function(){this._setOptionAutoHeight(fl,maxHeight);if(_isIE)this._setOptionAutoHeight(fl,maxHeight);})
if(!this.awOnOpen)this.ahOnXLE=this.attachEvent("onXLE",function(){var that=this;window.setTimeout(function(){that.callEvent("onOpen",[]);},1);})}else{if(typeof(this.ahOnOpen)!="undefined"){this.detachEvent(this.ahOnOpen);this.detachEvent(this.ahOnXLE);this.setOptionHeight(this._listHeightConf);}}};dhtmlXCombo.prototype._setOptionAutoHeight=function(fl,maxHeight){if(convertStringToBoolean(fl)){this.setOptionHeight(1);var height=0;if(this.optionsArr.length>0){if(this.DOMlist.scrollHeight>this.DOMlist.offsetHeight){height=this.DOMlist.scrollHeight+2;}else height=this.DOMlist.offsetHeight;if((arguments.length>1)&&(maxHeight)){var maxHeight=parseInt(maxHeight);height=(height>maxHeight)?maxHeight:height;};this.setOptionHeight(height)}else this.DOMlist.style.display="none";}};
dhtmlXCombo_imageOption=function(){this.init();};dhtmlXCombo_imageOption.prototype=new dhtmlXCombo_defaultOption;dhtmlXCombo_imageOption.prototype.setValue=function(attr){this.value=attr.value||"";this.text=attr.text||"";this.css=attr.css||"";this.img_src=attr.img_src||this.getDefImage();};dhtmlXCombo_imageOption.prototype.render=function(){if(!this.content){this.content=document.createElement("DIV");this.content._self=this;this.content.style.cssText='width:100%;overflow:hidden;'+this.css;var html='';if(this.img_src!='')html+='<img style="float:left;" src="'+this.img_src+'" />';html+='<div style="float:left">'+this.text+'</div>';this.content.innerHTML=html;};return this.content;};dhtmlXCombo_imageOption.prototype.data=function(){return[this.value,this.text,this.img_src];};dhtmlXCombo_imageOption.prototype.DrawHeader=function(self,name,width)
{var z=document.createElement("DIV");z.style.width=width+"px";z.className='dhx_combo_box';z._self=self;self.DOMelem=z;this._DrawHeaderImage(self,name,width);this._DrawHeaderInput(self,name,width-19);this._DrawHeaderButton(self,name,width);self.DOMParent.appendChild(self.DOMelem);};dhtmlXCombo_imageOption.prototype._DrawHeaderImage=function(self,name,width)
{var z=document.createElement('img');z.className='dhx_combo_option_img';z.style.visibility='hidden';self.DOMelem.appendChild(z);self.DOMelem_image=z;};dhtmlXCombo_imageOption.prototype.RedrawHeader=function(self)
{self.DOMelem_image.style.visibility='visible';self.DOMelem_image.src=this.img_src;};dhtmlXCombo_imageOption.prototype.getDefImage=function(self){return"";};dhtmlXCombo.prototype.setDefaultImage=function(url){dhtmlXCombo_imageOption.prototype.getDefImage=function(){return url;}};dhtmlXCombo_optionTypes['image']=dhtmlXCombo_imageOption;dhtmlXCombo_checkboxOption=function(){this.init();};dhtmlXCombo_checkboxOption.prototype=new dhtmlXCombo_defaultOption;dhtmlXCombo_checkboxOption.prototype.setValue=function(attr){this.value=attr.value||"";this.text=attr.text||"";this.css=attr.css||"";this.checked=attr.checked||0;};dhtmlXCombo_checkboxOption.prototype.render=function(){if(!this.content){this.content=document.createElement("DIV");this.content._self=this;this.content.style.cssText='width:100%;overflow:hidden;'+this.css;var html='';if(this.checked)html+='<input style="float:left;" type="checkbox" checked />';else html+='<input style="float:left;" type="checkbox" />';html+='<div style="float:left">'+this.text+'</div>';this.content.innerHTML=html;this.content.firstChild.onclick=function(e){this.parentNode.parentNode.combo.DOMelem_input.focus();(e||event).cancelBubble=true;if(!this.parentNode.parentNode.combo.callEvent("onCheck",[this.parentNode._self.value,this.checked])){this.checked=!this.checked;return false;}}};return this.content;};dhtmlXCombo_checkboxOption.prototype.data=function(){return[this.value,this.text,this.render().firstChild.checked];};dhtmlXCombo_checkboxOption.prototype.DrawHeader=function(self,name,width)
{self.DOMelem=document.createElement("DIV");self.DOMelem.style.width=width+"px";self.DOMelem.className='dhx_combo_box';self.DOMelem._self=self;this._DrawHeaderCheckbox(self,name,width);this._DrawHeaderInput(self,name,width-19);this._DrawHeaderButton(self,name,width);self.DOMParent.appendChild(self.DOMelem);};dhtmlXCombo_checkboxOption.prototype._DrawHeaderCheckbox=function(self,name,width)
{var z=document.createElement('input');z.type='checkbox';z.className='dhx_combo_option_img';z.style.visibility='hidden';z.onclick=function(e){var index=self.getIndexByValue(self.getActualValue());if(index!=-1)self.setChecked(index,z.checked);(e||event).cancelBubble=true;};self.DOMelem.appendChild(z);self.DOMelem_checkbox=z;};dhtmlXCombo_checkboxOption.prototype.RedrawHeader=function(self)
{self.DOMelem_checkbox.style.visibility='';self.DOMelem_checkbox.checked=this.content.firstChild.checked;};dhtmlXCombo_optionTypes['checkbox']=dhtmlXCombo_checkboxOption;dhtmlXCombo.prototype.getChecked=function(){var res=[];for(var i=0;i<this.optionsArr.length;i++)if(this.optionsArr[i].data()[2])
res.push(this.optionsArr[i].value)
return res;};dhtmlXCombo.prototype.setChecked=function(index,mode){this.optionsArr[index].content.firstChild.checked=(!(mode===false));};dhtmlXCombo.prototype.setCheckedByValue=function(value,mode){return this.setChecked(this.getIndexByValue(value),mode);};
dhtmlXCombo.prototype.attachChildCombo=function(_chcombo,xml){if(!this._child_combos){this._child_combos=[];}
this._has_childen=1;this._child_combos[this._child_combos.length]=_chcombo;_chcombo.show(0);var that=this;var _arg_length=arguments.length;this.attachEvent("onChange",function(){for(var i=0;i<that._child_combos.length;i++){if(that._child_combos[i]==_chcombo){_chcombo.show(1);_chcombo.callEvent("onMasterChange",[that.getActualValue(),that]);}}
if(that.getActualValue()==""){that.showSubCombo(that,0);return;}
if(_chcombo._xml){if(_arg_length==1)xml=_chcombo._xml;_chcombo._xml=that.deleteParentVariable(xml);_chcombo._xml+=((_chcombo._xml.indexOf("?")!=-1)?"&":"?")+"parent="+that.getActualValue();}
else{if(xml){_chcombo.clearAll(true);_chcombo.loadXML(xml+((xml.indexOf("?")!=-1)?"&":"?")+"parent="+that.getActualValue());}}})}
dhtmlXCombo.prototype.setAutoSubCombo=function(xml,name){if(arguments.length==1)name="subcombo";if(!this._parentCombo){var z=new dhtmlXCombo(this.DOMParent,name,this.DOMelem.style.width)
z._parentCombo=this;}
else{var z=new dhtmlXCombo(this._parentCombo.DOMParent,name,this._parentCombo.DOMelem.style.width)
z._parentCombo=this._parentCombo;}
if(this._filter)z._filter=1;if(this._xml){if(arguments.length>0)
z._xml=xml;else
z._xml=this._xml;xml=z._xml;z._autoxml=this._autoxml;if(this._xmlCache)z._xmlCache=[];}
this.attachChildCombo(z,xml)
return z;}
dhtmlXCombo.prototype.detachChildCombo=function(_chcombo){for(var i=0;i<this._child_combos.length;i++){this._child_combos[i]==_chcombo;this._child_combos.splice(i,1);}
_chcombo.show(1);}
dhtmlXCombo.prototype.showSubCombo=function(combo,state){if(combo._child_combos){for(var i=0;i<combo._child_combos.length;i++){combo._child_combos[i].show(state);combo.showSubCombo(combo._child_combos[i],0);}}}
dhtmlXCombo.prototype.deleteParentVariable=function(str){str=str.replace(/parent\=[^&]*/g,"").replace(/\?\&/,"?");return str;}
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 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;}}
var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)?true:false;var isWin=(navigator.appVersion.toLowerCase().indexOf("win")!=-1)?true:false;var isOpera=(navigator.userAgent.indexOf("Opera")!=-1)?true:false;function ControlVersion()
{var version;var axo;var e;try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");version=axo.GetVariable("$version");}catch(e){}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");version="WIN 6,0,21,0";axo.AllowScriptAccess="always";version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version=axo.GetVariable("$version");}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.3");version="WIN 3,0,18,0";}catch(e){}}
if(!version)
{try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");version="WIN 2,0,0,11";}catch(e){version=-1;}}
return version;}
function GetSwfVer(){var flashVer=-1;if(navigator.plugins!=null&&navigator.plugins.length>0){if(navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]){var swVer2=navigator.plugins["Shockwave Flash 2.0"]?" 2.0":"";var flashDescription=navigator.plugins["Shockwave Flash"+swVer2].description;var descArray=flashDescription.split(" ");var tempArrayMajor=descArray[2].split(".");var versionMajor=tempArrayMajor[0];var versionMinor=tempArrayMajor[1];var versionRevision=descArray[3];if(versionRevision==""){versionRevision=descArray[4];}
if(versionRevision[0]=="d"){versionRevision=versionRevision.substring(1);}else if(versionRevision[0]=="r"){versionRevision=versionRevision.substring(1);if(versionRevision.indexOf("d")>0){versionRevision=versionRevision.substring(0,versionRevision.indexOf("d"));}}
var flashVer=versionMajor+"."+versionMinor+"."+versionRevision;}}
else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.6")!=-1)flashVer=4;else if(navigator.userAgent.toLowerCase().indexOf("webtv/2.5")!=-1)flashVer=3;else if(navigator.userAgent.toLowerCase().indexOf("webtv")!=-1)flashVer=2;else if(isIE&&isWin&&!isOpera){flashVer=ControlVersion();}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{versionStr=GetSwfVer();if(versionStr==-1){return false;}else if(versionStr!=0){if(isIE&&isWin&&!isOpera){tempArray=versionStr.split(" ");tempString=tempArray[1];versionArray=tempString.split(",");}else{versionArray=versionStr.split(".");}
var versionMajor=versionArray[0];var versionMinor=versionArray[1];var versionRevision=versionArray[2];if(versionMajor>parseFloat(reqMajorVer)){return true;}else if(versionMajor==parseFloat(reqMajorVer)){if(versionMinor>parseFloat(reqMinorVer))
return true;else if(versionMinor==parseFloat(reqMinorVer)){if(versionRevision>=parseFloat(reqRevision))
return true;}}
return false;}}
function AC_AddExtension(src,ext)
{if(src.indexOf('?')!=-1)
return src.replace(/\?/,ext+'?');else
return src+ext;}
function AC_Generateobj(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
document.write(str);}
function AC_Generateobj2(objAttrs,params,embedAttrs)
{var str='';if(isIE&&isWin&&!isOpera)
{str+='<object ';for(var i in objAttrs)
{str+=i+'="'+objAttrs[i]+'" ';}
str+='>';for(var i in params)
{str+='<param name="'+i+'" value="'+params[i]+'" /> ';}
str+='</object>';}
else
{str+='<embed ';for(var i in embedAttrs)
{str+=i+'="'+embedAttrs[i]+'" ';}
str+='> </embed>';}
return str;}
function AC_FL_RunContent(){var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_FL_RunContent2()
{var ret=AC_GetArgs
(arguments,".swf","movie","clsid:d27cdb6e-ae6d-11cf-96b8-444553540000","application/x-shockwave-flash");return AC_Generateobj2(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_SW_RunContent(){var ret=AC_GetArgs
(arguments,".dcr","src","clsid:166B1BCA-3F9C-11CF-8075-444553540000",null);AC_Generateobj(ret.objAttrs,ret.params,ret.embedAttrs);}
function AC_GetArgs(args,ext,srcParamName,classid,mimeType){var ret=new Object();ret.embedAttrs=new Object();ret.params=new Object();ret.objAttrs=new Object();for(var i=0;i<args.length;i=i+2){var currArg=args[i].toLowerCase();switch(currArg){case"classid":break;case"pluginspage":ret.embedAttrs[args[i]]=args[i+1];break;case"src":case"movie":args[i+1]=AC_AddExtension(args[i+1],ext);ret.embedAttrs["src"]=args[i+1];ret.params[srcParamName]=args[i+1];break;case"onafterupdate":case"onbeforeupdate":case"onblur":case"oncellchange":case"onclick":case"ondblClick":case"ondrag":case"ondragend":case"ondragenter":case"ondragleave":case"ondragover":case"ondrop":case"onfinish":case"onfocus":case"onhelp":case"onmousedown":case"onmouseup":case"onmouseover":case"onmousemove":case"onmouseout":case"onkeypress":case"onkeydown":case"onkeyup":case"onload":case"onlosecapture":case"onpropertychange":case"onreadystatechange":case"onrowsdelete":case"onrowenter":case"onrowexit":case"onrowsinserted":case"onstart":case"onscroll":case"onbeforeeditfocus":case"onactivate":case"onbeforedeactivate":case"ondeactivate":case"type":case"codebase":case"id":ret.objAttrs[args[i]]=args[i+1];break;case"swliveconnect":ret.embedAttrs["swLiveConnect"]=args[i+1];break;case"width":case"height":case"align":case"vspace":case"hspace":case"class":case"title":case"accesskey":case"name":case"tabindex":ret.embedAttrs[args[i]]=ret.objAttrs[args[i]]=args[i+1];break;default:ret.embedAttrs[args[i]]=ret.params[args[i]]=args[i+1];}}
ret.objAttrs["classid"]=classid;if(mimeType)ret.embedAttrs["type"]=mimeType;return ret;}
(function($){$.fn.s3Slider=function(vars){var element=this;var timeOut=(vars.timeOut!=undefined)?vars.timeOut:8000;var current=null;var timeOutFn=null;var faderStat=true;var mOver=false;var items=$("#"+element[0].id+"Content ."+element[0].id+"Image");var itemsSpan=$("#"+element[0].id+"Content ."+element[0].id+"Image span");items.each(function(i){$(items[i]).mouseover(function(){mOver=true;});$(items[i]).mouseout(function(){mOver=false;fadeElement(true);});});var fadeElement=function(isMouseOut){var thisTimeOut=(isMouseOut)?(2000):timeOut;thisTimeOut=(faderStat)?10:thisTimeOut;if(items.length>0){timeOutFn=setTimeout(makeSlider,thisTimeOut);}}
var makeSlider=function(){current=(current!=null)?current:items[(items.length-1)];var currNo=jQuery.inArray(current,items)+1
currNo=(currNo==items.length)?0:(currNo-1);var newMargin=$(element).width()*currNo;if(faderStat==true){if(!mOver){$(items[currNo]).fadeIn(667,function(){});if($(itemsSpan[currNo]).css('bottom')==0){$(itemsSpan[currNo]).slideUp(500,function(){faderStat=false;current=items[currNo];if(!mOver){fadeElement(false);}});}else{$(itemsSpan[currNo]).slideDown(500,function(){faderStat=false;current=items[currNo];if(!mOver){fadeElement(false);}});}}
if(currNo==0)
{try
{document.getElementById("lastminute_teller_"+(items.length-1)).className='';document.getElementById("lastminute_teller_1").className='current';}
catch(e){}}
else
{try
{document.getElementById("lastminute_teller_"+currNo).className='';document.getElementById("lastminute_teller_"+(currNo+1)).className='current';}
catch(e){}}}else{if(!mOver){if($(itemsSpan[currNo]).css('bottom')==0){$(items[currNo]).fadeOut(667,function(){faderStat=true;current=items[(currNo+1)];if(!mOver){fadeElement(false);}});$(itemsSpan[currNo]).slideDown(500,function(){});}else{$(items[currNo]).fadeOut(667,function(){faderStat=true;current=items[(currNo+1)];if(!mOver){fadeElement(false);}});$(itemsSpan[currNo]).slideUp(500,function(){});}}}}
makeSlider();};})(jQuery);
