function _getXmlHttp(){/*@cc_on@if(@_jscript_version>=5)var a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(i in a)try{return new ActiveXObject(a[i])}catch(c){}@end@*/try{return new XMLHttpRequest}catch(b){return null}}function CachedResponse(a){this.readyState=ReadyState.Complete;this.status=HttpStatus.OK;this.responseText=a}ReadyState={Uninitialized:0,Loading:1,Loaded:2,Interactive:3,Complete:4};HttpStatus={OK:200,NotFound:404};function Request_from_cache(d,b){var a=this._cache[d];if(a!=null){var c=new CachedResponse(a);b(c);return true}else return false}function Request_cached_get(a,b){if(!this.FromCache(a,b)){var c=this;this.Get(a,function(d){if(d.readyState==ReadyState.Complete&&d.status==HttpStatus.OK)c._cache[a]=d.responseText;b(d)},"GET")}}function Request_get(d,b,a){if(!this._get)return;if(a==null)a="GET";this._get.readyState!=ReadyState.Uninitialized&&this._get.abort();this._get.open(a,d,true);if(b!=null){var c=this._get;this._get.onreadystatechange=function(){b(c)}}this._get.send(null)}function Request_get_no_cache(a,b,c){var e=-1<a.indexOf("?")?"&":"?",d=a+e+"__="+encodeURIComponent((new Date).toString());return this.Get(d,b,c)}function Request(){this.Get=Request_get;this.GetNoCache=Request_get_no_cache;this.CachedGet=Request_cached_get;this.FromCache=Request_from_cache;this.Use=function(){return this._get!=null};this.Cancel=function(){this._get&&this._get.abort()};this._cache={};this._get=_getXmlHttp();if(this._get==null)if(typeof NotSupported=="function")NotSupported();else return}var streepjes=false,AllesGoed=true;function DetectNS(){var a=navigator.userAgent.toLowerCase(),c=parseInt(navigator.appVersion),d=parseFloat(navigator.appVersion),b=a.indexOf("mozilla")!=-1&&a.indexOf("spoofer")==-1&&a.indexOf("compatible")==-1&&a.indexOf("opera")==-1&&a.indexOf("webtv")==-1;if(b)return true}function GetCurrentDate(){var d=new Date,c,a,b,e;c=d.getDate().toString();a=d.getMonth()+1;a=a.toString();b=DetectNS()?(d.getYear()+1900).toString():d.getFullYear().toString();if(c.length==1)c="0"+c;if(a.length==1)a="0"+a;if(b.length==2)b="20"+b;e=b+a+c;return e}function GetMaxDays(b,a){MaxDays=0;switch(b){case 1:MaxDays=31;break;case 2:if(a%4==0&&(a%100!=0||a%400==0))MaxDays=29;else MaxDays=28;break;case 3:MaxDays=31;break;case 4:MaxDays=30;break;case 5:MaxDays=31;break;case 6:MaxDays=30;break;case 7:MaxDays=31;break;case 8:MaxDays=31;break;case 9:MaxDays=30;break;case 10:MaxDays=31;break;case 11:MaxDays=30;break;case 12:MaxDays=31}return MaxDays}function IsNumeric(a){var b=true;for(q=0;q<a.length;q++)if(a.charCodeAt(q)<48||a.charCodeAt(q)>57){b=false;break}return b}function CheckOpLetters(a){var c=true,b=true;for(i=0;i<a.length;i++){if(!(a.charAt(i)>=0&&a.charAt(i)<=9||a.charAt(i)=="-")){c=false;b=false;break}if(!c)break}return b?true:false}function TelStreepjes(b){var a=0,c;for(i=0;i<b.length;i++)if(b.charAt(i)=="-")a++;return a==2||a==0?true:false}function VoorAchter(a){return a.charAt(0)=="-"||a.charAt(a.length)-1=="-"?false:true}function CheckTussen(a){var e,f,d,b,c;b=a.indexOf("-");e=a.substr(b+1,a.length);c=e.indexOf("-");f=e.substr(c+1,a.length);d=f.length;return(b==1||b==2)&&(c==1||c==2)&&(d==2||d==4)?true:false}function ControleerLengte(a){return a.length<6||a.length>=11||a.length==7||a.length==9?false:true}function TransformDate(a,c){AllesGoed=true;var b=a.value;if(b=="")AllesGoed=false;else if(!ControleerLengte(b)&&AllesGoed)AllesGoed=false;else if(!CheckOpLetters(b)&&AllesGoed)AllesGoed=false;else if(!VoorAchter(b)&&AllesGoed)AllesGoed=false;else if(!TelStreepjes(b)&&AllesGoed)AllesGoed=false;else{pos=b.indexOf("-");if(pos>=0){streepjes=true;if(!CheckTussen(b)&&AllesGoed)AllesGoed=false}}if(AllesGoed){a.value=ControleerInvoer(b,c);day=parseInt(a.value.substring(0,2),10);month=parseInt(a.value.substring(3,5),10);year=parseInt(a.value.substring(6,10),10);if(day<1||day>31){a.value="Ongeldig";return false}switch(month){case 1:case 3:case 5:case 7:case 8:case 10:case 12:if(day>31){a.value="Ongeldig";return false}break;case 4:case 6:case 9:case 11:if(day>30){a.value="Ongeldig";return false}break;case 2:if(year%4!=0&&(year%100==0||year%400!=0)){if(day>28){a.value="Ongeldig";return false}}else if(day>29){a.value="Ongeldig";return false}break;default:a.value="Ongeldig";return false}if(year<1900){a.value="Ongeldig";return false}return true}else{a.value="Ongeldig";return false}}function ms(a){var d;if(a.charAt(2)=="-"){b=a.substr(0,6);c=a.substr(6,7);b=b+"20";a=b+c}else{var b,c;a="0"+a;b=a.substr(0,3);c=a.substr(3,6);b=b+"0";a=b+c;d=a.length;if(d==8){b=a.substr(0,6);c=a.substr(6,7);b=b+"20";a=b+c}}return a}function zssp(a){var b,c,d;b=a.charAt(0);c=a.charAt(1);d=a.substr(2,5);b="0"+b+"-";c="0"+c+"-";a=b+c+d;return a}function zs(b){var a,c;a=b.substr(0,2);if(aantalkar==6)c=b.substr(2,6);if(aantalkar==8)c=b.substr(2,7);a=a+"-";b=a+c;a=b.substr(0,5);if(aantalkar==6){c=b.substr(5,6);a=a+"-20"}else if(aantalkar==8){c=b.substr(5,8);a=a+"-"}b=a+c;return b}function ControleerInvoer(a,c){var b=true;aantalkar=a.length;if(streepjes&&b)switch(aantalkar){case 6:a=ms(a);break;case 8:a=ms(a)}else if(b)switch(aantalkar){case 6:if(a.substr(2,5)>=2002)a=zssp(a);else a=zs(a);break;case 8:a=zs(a)}b=true;streepjes=false;if(c==1){Nu=GetCurrentDate();NuJaar=parseInt(Nu.substr(0,4),10);xJaar=parseInt(a.substr(6,4),10);if(xJaar>NuJaar){RestJaar=a.substr(8,2);temp=a.substr(0,6);a=temp+"19"+RestJaar}}return a}function CheckProperDate(b,h){var a=true,e,c,d,f,g;if(b=="dd-mm-jjjj"||b==""||b.length!=10)a=false;f=b.indexOf("-");if(a)if(f!=2)a=false;else{e=b.substring(0,f);if(!IsNumeric(e))a=false;else{RestDate=b.substring(f+1,b.length);g=RestDate.indexOf("-");if(g!=2)a=false;else{c=RestDate.substring(0,g);d=RestDate.substring(g+1,RestDate.length);if(parseInt(c,10)<0||parseInt(c,10)>12||!IsNumeric(c)||!IsNumeric(d)||d.length!=4)a=false;else{MaxDays=parseInt(GetMaxDays(parseInt(c,10),parseInt(d,10)),10);if(parseInt(e,10)<1||parseInt(e,10)>MaxDays)a=false;else{GivenDate=parseInt(d+c+e,10);Currentdate=parseInt(GetCurrentDate(),10);switch(h){case 0:if(GivenDate<=Currentdate)a=false;break;case 1:if(GivenDate>=Currentdate)a=false}}}}}}return a}function ResetSavedVisitedNumber(){var b=Master_BasePath+"AccoCookies.aspx?Action=Numbers",a=new Request;a.GetNoCache(b,ResetSavedVisitedNumberResult)}function ResetSavedVisitedNumberResult(a){if(a.readyState!=ReadyState.Complete)return;if(a.status==HttpStatus.OK&&a.responseText!=""){var b=a.responseText.split(";");document.getElementById(MijnSuntip_SavedVak).innerHTML=document.getElementById(MijnSuntip_SavedVakText).value+" ("+b[0]+")";document.getElementById(MijnSuntip_VisitedVak).innerHTML=document.getElementById(MijnSuntip_VisitedVakText).value+" ("+b[1]+")"}}function SetLightboxSize(){var f=document.getElementById("TravelersDiv"),g=document.getElementById("newsletterDiv"),b=document.getElementById("footerDiv"),d=document.getElementById("DestinationMoreInfoDiv"),e=document.getElementById("accoMailDiv"),c=document.getElementById("infoPopupDiv");if(f==null||b==null)return;var a=0;while(b!=null){a+=b.offsetTop;b=b.offsetParent}f.style.height=a+40+"px";g.style.height=a+40+"px";if(d!=null)d.style.height=a+40+"px";if(e!=null)e.style.height=a+40+"px";if(c!=null)c.style.height=a+40+"px"}var setChildrenBack=false,oldChildrenValue=-1,childrenBackElement;function OpenTravelersWithIndexes(c,a,b){if(a==0)try{setChildrenZero()}catch(e){}else{document.getElementById("CtrlTravelcompany").style.display="";var d=document.body.scrollTop||document.documentElement.scrollTop;document.getElementById("CtrlTravelcompany").style.top=d+50+"px";document.getElementById("popupBackgroundTravelcompany").style.display="";if(oldChildrenValue==-1)oldChildrenValue=document.getElementById("ddlChild").selectedIndex;setChildrenBack=true;childrenBackElement=document.getElementById(b);document.getElementById("ddlAdults").selectedIndex=c;document.getElementById("ddlChild").selectedIndex=a;GetBirthdates(document.getElementById("ddlChild"),0)}}function OpenTravelers(){document.getElementById("CtrlTravelcompany").style.display="";document.getElementById("popupBackgroundTravelcompany").style.display=""}function CloseTravelers(){document.getElementById("CtrlTravelcompany").style.display="none";document.getElementById("popupBackgroundTravelcompany").style.display="none";if(setChildrenBack)childrenBackElement.selectedIndex=oldChildrenValue;setChildrenBack=false}function SelectValueInDropdown(b,c){var a=document.getElementById(b);for(i=0;i<a.length;i++)if(a.options[i].value==c){a.selectedIndex=i;return}}function scrollToCenterOfElementId(c){var b=findPosOfElement(document.getElementById(c));if(b!=-1){b+=document.getElementById(c).clientHeight/2;var a;if(typeof window.innerHeight!="undefined")a=window.innerHeight;else if(typeof document.documentElement!="undefined"&&typeof document.documentElement.clientHeight!="undefined"&&document.documentElement.clientHeight!=0)a=document.documentElement.clientHeight;else a=document.getElementsByTagName("body")[0].clientHeight;b-=a/2;window.scroll(0,b)}}function findPosOfElement(a){var b=-1;if(a.offsetParent){do b+=a.offsetTop;while(a=a.offsetParent);return b}}function OpenAirports(){document.getElementById("popupBackgroundAirports").style.display="";document.getElementById("CtrlAirports").style.display="";var a=document.body.scrollTop||document.documentElement.scrollTop;document.getElementById("CtrlAirports").style.top=a+50+"px"}function CloseAirports(){document.getElementById("popupBackgroundAirports").style.display="none";document.getElementById("CtrlAirports").style.display="none"}var airportSaveHiddenFieldID,airportAllHiddenFieldID,airportMax,airportSelected=0;function OnAirportChecked(c){if(c.checked){if(document.getElementById(airportSaveHiddenFieldID).value.indexOf("|"+c.id+"|")==-1){airportSelected++;document.getElementById(airportSaveHiddenFieldID).value+=c.id+"|"}if(airportSelected>=airportMax){var b=document.getElementById(airportAllHiddenFieldID).value.split("|");for(i=0;i<b.length;i++){var a=b[i];if(a.length>0)if(document.getElementById(airportSaveHiddenFieldID).value.indexOf(a)==-1)document.getElementById(a).disabled=true}}}else{if(airportSelected>=airportMax){var b=document.getElementById(airportAllHiddenFieldID).value.split("|");for(i=0;i<b.length;i++){var a=b[i];if(a.length>0)document.getElementById(a).disabled=false}}airportSelected--;document.getElementById(airportSaveHiddenFieldID).value=document.getElementById(airportSaveHiddenFieldID).value.replace(c.id+"|","")}}function SelectPhotoTop(a,c){var b=4;for(i=1;i<b+1;i++)try{document.getElementById("photoTop"+i).style.border=""}catch(d){}document.getElementById("photoTopBig").src=a.src;a.style.border=c}var vs_scrollOffset=0,vs_itemWidth=180,vs_totalItems=-1,vs_visibleItems=-1,previous=false,next=true;function viewedSavedScrollNext(){if(next){vs_scrollOffset+=vs_itemWidth;$("#divViewedSavedScroll").animate({scrollLeft:vs_scrollOffset});viewedSavedDecideButtonStates();viewedSavedDecideLoadNewItem()}}function viewedSavedScrollPrevious(){if(previous){vs_scrollOffset-=vs_itemWidth;$("#divViewedSavedScroll").animate({scrollLeft:vs_scrollOffset});viewedSavedDecideButtonStates();viewedSavedDecideLoadNewItem()}}function viewedSavedDecideButtonStates(){if(vs_visibleItems==-1||vs_totalItems==-1){vs_totalItems=document.getElementById("trViewedSaved").getElementsByTagName("table").length/2;vs_visibleItems=Math.round(document.getElementById("divViewedSavedScroll").style.width.replace("px","")/vs_itemWidth)}if(vs_scrollOffset==0){document.getElementById("imgViewedSavedPrevious").className="semi-transparent";previous=false}else{document.getElementById("imgViewedSavedPrevious").className="";previous=true}if(vs_scrollOffset==(vs_totalItems-vs_visibleItems)*vs_itemWidth){document.getElementById("imgViewedSavedNext").className="semi-transparent";next=false}else{document.getElementById("imgViewedSavedNext").className="";next=true}}function viewedSavedDecideLoadNewItem(){if(vs_scrollOffset>0){var c=(vs_scrollOffset/vs_itemWidth+vs_visibleItems-1)*2,b=document.getElementById("trViewedSaved").getElementsByTagName("table");if(b.item(c).style.display!="none"){var a=b.item(c).id;if(a!="viewedSavedLinks"&&a!="viewedSavedLinks2"){a=a.replace("tableViewedSavedLoading","");setTimeout("viewedSavedLoadNewItem('"+a+"')",200)}}}}function viewedSavedLoadNewItem(a){Suntip_nl.Service.ViewedSavedAccommodationsCarousel_Service.GetAccoInfo(a,ReuqestViewedSaveCompleteCallback,ReuqestViewedSaveCompleteErrorCallback)}function ReuqestViewedSaveCompleteCallback(d){var a=JSON.parse(d);document.getElementById("aViewedSavedAcco"+a.AccoID).innerHTML=a.AccoType+" "+a.AccoName;document.getElementById("aViewedSavedPlace"+a.AccoID).title=a.PlaceName;document.getElementById("aViewedSavedPlace"+a.AccoID).href=a.PlaceUrl;document.getElementById("aViewedSavedCountry"+a.AccoID).title=a.CountryName;document.getElementById("aViewedSavedCountry"+a.AccoID).href=a.CountryUrl;document.getElementById("aViewedSavedAcco"+a.AccoID).href=a.AccoUrl;document.getElementById("imgViewedSaved"+a.AccoID).src=a.ImageUrl;document.getElementById("tdViewedSavedClassification"+a.AccoID).innerHTML=a.ClassificationHtml;var c=a.PlaceName;if(c.length>12)c=c.substring(0,10)+"..";document.getElementById("aViewedSavedPlace"+a.AccoID).innerHTML=c;var b=a.CountryName;if(b.length>12)b=b.substring(0,10)+"..";document.getElementById("aViewedSavedCountry"+a.AccoID).innerHTML=b;document.getElementById("tableViewedSavedLoading"+a.AccoID).style.display="none";document.getElementById("tableViewedSaved"+a.AccoID).style.display=""}function ReuqestViewedSaveCompleteErrorCallback(){}function AddViewedSavedValue(c,b){var a=parseInt(document.getElementById(b).innerHTML.replace("(","").replace(")",""));a+=c;document.getElementById(b).innerHTML="("+a+")"}function PriceMatrixHover(b,c){for(var f=document.getElementById("tablePriceMatrix"),d=0;d<f.rows.length;d++)for(var g=f.rows[d],e=0;e<g.cells.length;e++){var a=g.cells[e];try{if(parseInt(a.getAttribute("colnr"))==parseInt(b)&&parseInt(a.getAttribute("rownr"))==parseInt(c)){a.style.backgroundImage="url('"+Master_BasePath+"Style/Images/price-hook-selected.png')";a.style.backgroundPosition="0px center"}else if(parseInt(a.getAttribute("rownr"))<parseInt(c)&&parseInt(a.getAttribute("colnr"))==parseInt(b)){a.style.backgroundImage="url('"+Master_BasePath+"Style/Images/price-hook-selected.png')";a.style.backgroundPosition="45px center"}else if(parseInt(a.getAttribute("colnr"))<parseInt(b)&&parseInt(a.getAttribute("rownr"))==parseInt(c)){a.style.backgroundImage="url('"+Master_BasePath+"Style/Images/price-hook-selected.png')";a.style.backgroundPosition="90px center"}}catch(h){alert(h.Message)}}}function PriceMatrixHoverOut(){for(var d=document.getElementById("tablePriceMatrix"),b=0;b<d.rows.length;b++)for(var e=d.rows[b],c=0;c<e.cells.length;c++){var a=e.cells[c];try{if(a.getAttribute("rownr")!=null&&a.getAttribute("colnr")!=null)a.style.backgroundImage=""}catch(f){alert(f.Message)}}}var airportTabPriceHtml1="",airportTabPriceHtml2="",airportTabPriceHtml3="",airportTabPriceTotal1="",airportTabPriceTotal2="",airportTabPriceTotal3="",currentId=1;function ReceiptAvailabilityTab(e,d,c,b,a){currentId=a;document.getElementById("Tab_Airport1").style.display="none";document.getElementById("Tab_Airport2").style.display="none";document.getElementById("Tab_Airport3").style.display="none";document.getElementById("img_Loading_Tab_Airport1").src=Master_BasePath+"Style/Images/loader-airport-price-inactive.gif";try{document.getElementById("img_Loading_Tab_Airport2").src=Master_BasePath+"Style/Images/loader-airport-price-inactive.gif"}catch(f){}try{document.getElementById("img_Loading_Tab_Airport3").src=Master_BasePath+"Style/Images/loader-airport-price-inactive.gif"}catch(f){}document.getElementById("Tab_Airport1Tab").className="Tab_Airport_Inactive";try{document.getElementById("Tab_Airport2Tab").className="Tab_Airport_Inactive"}catch(f){}try{document.getElementById("Tab_Airport3Tab").className="Tab_Airport_Inactive"}catch(f){}document.getElementById(c).style.display="";document.getElementById(d).src=Master_BasePath+"Style/Images/loader-airport-price.gif";document.getElementById(e).className="Tab_Airport";document.getElementById("aAvailability_Next_Enabled").href=Master_BasePath+"Boeken/StartBooksteps.aspx?id="+a;if(document.getElementById(b).innerHTML=="niet beschikbaar"||document.getElementById(b).style.display=="none"){document.getElementById("tdAvailability_Next_Disabled").style.display="";document.getElementById("tdAvailability_Next_Enabled").style.display="none"}else{document.getElementById("tdAvailability_Next_Disabled").style.display="none";document.getElementById("tdAvailability_Next_Enabled").style.display=""}if(a==1)ReceiptAvailabilityPriceInfo(airportTabPriceHtml1,airportTabPriceTotal1,1);else if(a==2)ReceiptAvailabilityPriceInfo(airportTabPriceHtml2,airportTabPriceTotal2,2);else ReceiptAvailabilityPriceInfo(airportTabPriceHtml3,airportTabPriceTotal3,3)}function ReceiptAvailabilityPriceInfo(a,b,c){if(currentId==c)if(a==""){document.getElementById("trReceiptPriceInfo").style.display="none";document.getElementById("trReceiptUncertain").style.display="none"}else if(a=="uncertain"){document.getElementById("trReceiptPriceInfo").style.display="none";document.getElementById("trReceiptUncertain").style.display=""}else{document.getElementById("trReceiptPriceInfo").style.display="";document.getElementById("trReceiptUncertain").style.display="none";document.getElementById("tdPriceInfo_Availability").innerHTML=a;document.getElementById("h2TotalPrice_Availability").innerHTML="&euro; "+b}}var firstBelMijTerug=true;function setTab_Communication(a,b){if(a=="Tab_BelmijterugTab"&&firstBelMijTerug){firstBelMijTerug=false;document.getElementById("frameFreeCall").src=Master_BasePath+"Plugins/FreeCall.aspx"}document.getElementById("Tab_Belons").style.display="none";document.getElementById("Tab_Belmijterug").style.display="none";document.getElementById("Tab_Chat").style.display="none";document.getElementById("Tab_Email").style.display="none";document.getElementById(b).style.display="";document.getElementById("Tab_BelonsTab").className="Tab_Belons_Inactive";document.getElementById("Tab_BelmijterugTab").className="Tab_Belmijterug_Inactive";document.getElementById("Tab_ChatTab").className="Tab_Chat_Inactive";document.getElementById("Tab_EmailTab").className="Tab_Email_Inactive";document.getElementById(a).className="Tab"+a.replace("Tab","").replace("Tab","")}function onMovieMusicChange(a,b){var d=a.selectedIndex,c=a.options[d].value;if(c!="-1")document.getElementById("frameHolidayMovieGadget").src=Master_BasePath+"vakantiefilm-gadget.aspx?mid="+b+"&mu="+c;else document.getElementById("frameHolidayMovieGadget").src=Master_BasePath+"vakantiefilm-gadget.aspx?mid="+b}function onHolidayMovieDidReplay(){document.getElementById("imgMoviePause").style.display="";document.getElementById("imgMoviePlay").style.display="none"}function onHolidayMovieDidEnd(){document.getElementById("imgMoviePause").style.display="none";document.getElementById("imgMoviePlay").style.display=""}var Drag={obj:null,init:function(a,b,g,e,h,f,i,j,c,d){a.onmousedown=Drag.start;a.hmode=i?false:true;a.vmode=j?false:true;a.root=b&&b!=null?b:a;if(a.hmode&&isNaN(parseInt(a.root.style.left)))a.root.style.left="0px";if(a.vmode&&isNaN(parseInt(a.root.style.top)))a.root.style.top="0px";if(!a.hmode&&isNaN(parseInt(a.root.style.right)))a.root.style.right="0px";if(!a.vmode&&isNaN(parseInt(a.root.style.bottom)))a.root.style.bottom="0px";a.minX=typeof g!="undefined"?g:null;a.minY=typeof h!="undefined"?h:null;a.maxX=typeof e!="undefined"?e:null;a.maxY=typeof f!="undefined"?f:null;a.xMapper=c?c:null;a.yMapper=d?d:null;a.root.onDragStart=new Function;a.root.onDragEnd=new Function;a.root.onDrag=new Function},start:function(b){var a=Drag.obj=this;b=Drag.fixE(b);var d=parseInt(a.vmode?a.root.style.top:a.root.style.bottom),c=parseInt(a.hmode?a.root.style.left:a.root.style.right);a.root.onDragStart(c,d);a.lastMouseX=b.clientX;a.lastMouseY=b.clientY;if(a.hmode){if(a.minX!=null)a.minMouseX=b.clientX-c+a.minX;if(a.maxX!=null)a.maxMouseX=a.minMouseX+a.maxX-a.minX}else{if(a.minX!=null)a.maxMouseX=-a.minX+b.clientX+c;if(a.maxX!=null)a.minMouseX=-a.maxX+b.clientX+c}if(a.vmode){if(a.minY!=null)a.minMouseY=b.clientY-d+a.minY;if(a.maxY!=null)a.maxMouseY=a.minMouseY+a.maxY-a.minY}else{if(a.minY!=null)a.maxMouseY=-a.minY+b.clientY+d;if(a.maxY!=null)a.minMouseY=-a.maxY+b.clientY+d}document.onmousemove=Drag.drag;document.onmouseup=Drag.end;return false},drag:function(f){f=Drag.fixE(f);var a=Drag.obj,c=f.clientY,b=f.clientX,h=parseInt(a.vmode?a.root.style.top:a.root.style.bottom),g=parseInt(a.hmode?a.root.style.left:a.root.style.right),d,e;if(a.minX!=null)b=a.hmode?Math.max(b,a.minMouseX):Math.min(b,a.maxMouseX);if(a.maxX!=null)b=a.hmode?Math.min(b,a.maxMouseX):Math.max(b,a.minMouseX);if(a.minY!=null)c=a.vmode?Math.max(c,a.minMouseY):Math.min(c,a.maxMouseY);if(a.maxY!=null)c=a.vmode?Math.min(c,a.maxMouseY):Math.max(c,a.minMouseY);d=g+(b-a.lastMouseX)*(a.hmode?1:-1);e=h+(c-a.lastMouseY)*(a.vmode?1:-1);if(a.xMapper)d=a.xMapper(h);else if(a.yMapper)e=a.yMapper(g);Drag.obj.root.style[a.hmode?"left":"right"]=d+"px";Drag.obj.root.style[a.vmode?"top":"bottom"]=e+"px";Drag.obj.lastMouseX=b;Drag.obj.lastMouseY=c;Drag.obj.root.onDrag(d,e);return false},end:function(){document.onmousemove=null;document.onmouseup=null;Drag.obj.root.onDragEnd(parseInt(Drag.obj.root.style[Drag.obj.hmode?"left":"right"]),parseInt(Drag.obj.root.style[Drag.obj.vmode?"top":"bottom"]));Drag.obj=null},fixE:function(a){if(typeof a=="undefined")a=window.event;if(typeof a.layerX=="undefined")a.layerX=a.offsetX;if(typeof a.layerY=="undefined")a.layerY=a.offsetY;return a}},dragMonth1,dragMonth2,dragYear1,dragYear2,dragMax1,dragMax2;function setupReceiptMatrixDrag(){dragYear1=parseInt(document.getElementById("hiddenReceiptMatrixParamYear1").value);dragYear2=parseInt(document.getElementById("hiddenReceiptMatrixParamYear2").value);dragMonth1=parseInt(document.getElementById("hiddenReceiptMatrixParamMonth1").value)-1;dragMonth2=parseInt(document.getElementById("hiddenReceiptMatrixParamMonth2").value)-1;dragMax1=parseInt(document.getElementById("hiddenReceiptMatrixParamMax1").value);dragMax2=parseInt(document.getElementById("hiddenReceiptMatrixParamMax2").value);var b=parseInt(document.getElementById("hiddenReceiptMatrixParamCurrentDay").value),a=document.getElementById("divReceipt_Matrix_Drag");Drag.init(a,null,0,248,0,0);a.onDragStart=function(){document.getElementById("divReceipt_Matrix_Drag_Indicator").style.display=""};a.onDragEnd=function(a){document.getElementById("divReceipt_Matrix_Drag_Indicator").style.display="none";ReceiptMatrixDragShowWeek(Math.ceil(a/4))};a.onDrag=function(a){ReceiptMatrixDragUpdateDate(Math.ceil(a/4))};document.getElementById("divReceipt_Matrix_Drag").style.left=b*4+"px";document.getElementById("divReceipt_Matrix_Drag").style.display="";ReceiptMatrixDragUpdateDate(b)}function ReceiptMatrixDragShowWeek(a){var b=dragMonth1,c=dragYear1;if(a>dragMax1){b=dragMonth2;c=dragYear2;a=a-dragMax1;if(a>dragMax2)a=dragMax2}if(a==0)a=1;var d=new Date(c,b,a,0,0,0,0);DragWeek(d.format("yyyyMMdd"))}function ReceiptMatrixDragUpdateDate(a){var d=dragMonth1,e=dragYear1;if(a>dragMax1){d=dragMonth2;e=dragYear2;a=a-dragMax1;if(a>dragMax2)a=dragMax2}if(a==0)a=1;var b=new Date(e,d,a,0,0,0,0);while(b.getDay()!=1)b.setDate(b.getDate()-1);var c=new Date(e,d,a,0,0,0,0);c.setDate(b.getDate()+6);document.getElementById("divReceipt_Matrix_Drag_Indicator").innerHTML="Ma "+b.getDate()+"-"+b.format("MMM")+" - Zo "+c.getDate()+"-"+c.format("MMM")}var roomSelectionAmountRooms,roomSelectionCurrentPos,roomSelectionUnitIDs,roomSelectionDropDowns;function RoomSelectionChanged(f,a,i,c,g){if(roomSelectionAmountRooms==null){roomSelectionAmountRooms=[];roomSelectionUnitIDs=["","","","","","","",""];roomSelectionDropDowns=[];roomSelectionCurrentPos=1}if(f.value=="0"){document.getElementById("trUnit"+a).className="Item";document.getElementById("trUnitNotes"+a).className="Item"}else{document.getElementById("trUnit"+a).className="Item Selected";document.getElementById("trUnitNotes"+a).className="Item Selected"}roomSelectionDropDowns[a]=f;var e=roomSelectionAmountRooms[a];roomSelectionAmountRooms[a]=parseInt(f.value);if(e==null)e=0;var h=roomSelectionAmountRooms[a]-e;if(h>=0){for(var d=0;d<h;d++)if(roomSelectionCurrentPos<9){document.getElementById("AssignRoomType"+roomSelectionCurrentPos).innerHTML=i;if(c==g)if(c==1)document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).innerHTML="1 persoon";else document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).innerHTML=c+" personen";else document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).innerHTML=c+" tot "+g+" personen";document.getElementById("AssignRoomMinOcc"+roomSelectionCurrentPos).value=c;document.getElementById("AssignRoomMaxOcc"+roomSelectionCurrentPos).value=g;document.getElementById("AssignRoomType"+roomSelectionCurrentPos).style.display="";document.getElementById("AssignRoomRemoveButton"+roomSelectionCurrentPos).style.display="";document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).style.display="";for(var b=1;b<9;b++){document.getElementById("AssignRoomRow"+roomSelectionCurrentPos+"_"+b).style.display="";document.getElementById("AssignRoomRadio"+roomSelectionCurrentPos+"_"+b).checked=false}document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos).style.display="";document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos+"_Ok").style.display="none";document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos+"_NotOk").style.display="";document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos+"_NotOk2").style.display="none";roomSelectionUnitIDs[roomSelectionCurrentPos-1]=a;roomSelectionCurrentPos++}}else for(var d=0;d<0-h;d++)for(var b=roomSelectionCurrentPos-2;b>=0;b--)if(roomSelectionUnitIDs[b]==a){RoomSelectionRemove(b+1);break}if(roomSelectionCurrentPos>1)document.getElementById("trRoomAssign").style.display="";else document.getElementById("trRoomAssign").style.display="none"}function RoomSelectionRestore(h){roomSelectionAmountRooms=[];roomSelectionUnitIDs=["","","","","","","",""];roomSelectionDropDowns=[];roomSelectionCurrentPos=1;for(var c=h.split(";"),b=0;b<c.length;b++)if(c[b]!=""){var a=c[b].split(",")[0];roomSelectionUnitIDs[roomSelectionCurrentPos-1]=a;if(roomSelectionAmountRooms[a]==null)roomSelectionAmountRooms[a]=0;roomSelectionAmountRooms[a]++;roomSelectionDropDowns[a]=document.getElementById(document.getElementById("RoomSelectionDropDownID"+a).value);document.getElementById("AssignRoomType"+roomSelectionCurrentPos).innerHTML=document.getElementById("RoomSelectionType"+a).value;var e=parseInt(document.getElementById("RoomSelectionMinOcc"+a).value),f=parseInt(document.getElementById("RoomSelectionMaxOcc"+a).value);if(e==f)if(e==1)document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).innerHTML="1 persoon";else document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).innerHTML=e+" personen";else document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).innerHTML=e+" tot "+f+" personen";document.getElementById("AssignRoomMinOcc"+roomSelectionCurrentPos).value=e;document.getElementById("AssignRoomMaxOcc"+roomSelectionCurrentPos).value=f;document.getElementById("AssignRoomType"+roomSelectionCurrentPos).style.display="";document.getElementById("AssignRoomRemoveButton"+roomSelectionCurrentPos).style.display="";document.getElementById("AssignRoomOcc"+roomSelectionCurrentPos).style.display="";for(var d=1;d<9;d++)document.getElementById("AssignRoomRow"+roomSelectionCurrentPos+"_"+d).style.display="";for(var g=c[b].split(","),d=0;d<g.length;d++)if(d!=0){paxID=g[d];document.getElementById("AssignRoomRadio"+roomSelectionCurrentPos+"_"+paxID).checked=true}document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos).style.display="";document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos+"_Ok").style.display="none";document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos+"_NotOk").style.display="";document.getElementById("AssignRoomStatus"+roomSelectionCurrentPos+"_NotOk2").style.display="none";roomSelectionCurrentPos++}for(var b=0;b<c.length;b++)if(c[b]!=""){var a=c[b].split(",")[0];roomSelectionDropDowns[a].value=""+roomSelectionAmountRooms[a];document.getElementById("trUnit"+a).className="Item Selected";document.getElementById("trUnitNotes"+a).className="Item Selected"}if(roomSelectionCurrentPos>1)document.getElementById("trRoomAssign").style.display="";else document.getElementById("trRoomAssign").style.display="none";RoomSelectionPaxSelectionChanged()}function RoomSelectionManualRemove(c){var a=roomSelectionUnitIDs[c-1],b=roomSelectionDropDowns[a];roomSelectionAmountRooms[a]=roomSelectionAmountRooms[a]-1;b.selectedIndex=b.selectedIndex-1;if(b.value=="0"){document.getElementById("trUnit"+a).className="Item";document.getElementById("trUnitNotes"+a).className="Item"}else{document.getElementById("trUnit"+a).className="Item Selected";document.getElementById("trUnitNotes"+a).className="Item Selected"}RoomSelectionRemove(c);if(roomSelectionCurrentPos>1)document.getElementById("trRoomAssign").style.display="";else document.getElementById("trRoomAssign").style.display="none"}function RoomSelectionRemove(c){if(c<roomSelectionCurrentPos-1)for(var a=c;a<roomSelectionCurrentPos-1;a++){roomSelectionUnitIDs[a-1]=roomSelectionUnitIDs[a];document.getElementById("AssignRoomType"+a).innerHTML=document.getElementById("AssignRoomType"+(a+1)).innerHTML;document.getElementById("AssignRoomOcc"+a).innerHTML=document.getElementById("AssignRoomOcc"+(a+1)).innerHTML;document.getElementById("AssignRoomMinOcc"+a).value=document.getElementById("AssignRoomMinOcc"+(a+1)).value;document.getElementById("AssignRoomMaxOcc"+a).value=document.getElementById("AssignRoomMaxOcc"+(a+1)).value;document.getElementById("AssignRoomStatus"+a+"_Ok").style.display=document.getElementById("AssignRoomStatus"+(a+1)+"_Ok").style.display;document.getElementById("AssignRoomStatus"+a+"_NotOk").style.display=document.getElementById("AssignRoomStatus"+(a+1)+"_NotOk").style.display;document.getElementById("AssignRoomStatus"+a+"_NotOk2").style.display=document.getElementById("AssignRoomStatus"+(a+1)+"_NotOk2").style.display;for(var b=1;b<9;b++)document.getElementById("AssignRoomRadio"+a+"_"+b).checked=document.getElementById("AssignRoomRadio"+(a+1)+"_"+b).checked}document.getElementById("AssignRoomType"+(roomSelectionCurrentPos-1)).style.display="none";document.getElementById("AssignRoomRemoveButton"+(roomSelectionCurrentPos-1)).style.display="none";document.getElementById("AssignRoomOcc"+(roomSelectionCurrentPos-1)).style.display="none";for(var b=1;b<9;b++)document.getElementById("AssignRoomRow"+(roomSelectionCurrentPos-1)+"_"+b).style.display="none";document.getElementById("AssignRoomStatus"+(roomSelectionCurrentPos-1)).style.display="none";roomSelectionCurrentPos--}function RoomSelectionPaxSelectionChanged(){for(var a=1;a<roomSelectionCurrentPos;a++){for(var b=0,c=1;c<9;c++)if(document.getElementById("AssignRoomRadio"+a+"_"+c).checked)b++;var e=parseInt(document.getElementById("AssignRoomMinOcc"+a).value),d=parseInt(document.getElementById("AssignRoomMaxOcc"+a).value);if(b>=e&&b<=d){document.getElementById("AssignRoomStatus"+a+"_Ok").style.display="";document.getElementById("AssignRoomStatus"+a+"_NotOk").style.display="none";document.getElementById("AssignRoomStatus"+a+"_NotOk2").style.display="none"}else if(b>d){document.getElementById("AssignRoomStatus"+a+"_Ok").style.display="none";document.getElementById("AssignRoomStatus"+a+"_NotOk").style.display="none";document.getElementById("AssignRoomStatus"+a+"_NotOk2").style.display=""}else{document.getElementById("AssignRoomStatus"+a+"_Ok").style.display="none";document.getElementById("AssignRoomStatus"+a+"_NotOk").style.display="";document.getElementById("AssignRoomStatus"+a+"_NotOk2").style.display="none"}}}function RoomSelectionSave(f){var c=document.getElementById(f);c.value="";for(var b=1;b<roomSelectionCurrentPos;b++)if(document.getElementById("AssignRoomStatus"+b+"_Ok").style.display=="none"){alert("Niet alle kamers hebben genoeg personen toegewezen. Zorg aub dat alle kamers genoeg personen toegewezen hebben gekregen");return}else{for(var e=roomSelectionUnitIDs[b-1],a=1;a<9;a++)if(document.getElementById("trAssignRow"+a).style.display!="none")if(document.getElementById("AssignRoomRadio"+b+"_"+a).checked)e+=","+a;c.value+=e+";"}for(var a=1;a<9;a++)if(document.getElementById("trAssignRow"+a).style.display!="none"){for(var d=false,b=1;b<roomSelectionCurrentPos;b++)if(document.getElementById("AssignRoomRadio"+b+"_"+a).checked)d=true;if(!d){alert("Niet alle personen zijn toegewezen aan een kamer. Zorg aub dat ieder persoon aan een kamer is toegewezen");return}}PostMultiRoomSave()}var faqOpenedQuestionId="";function FaqOpenQuestion(a){FaqCloseQuestion();document.getElementById(a).style.display="";faqOpenedQuestionId=a}function FaqCloseQuestion(){if(faqOpenedQuestionId!="")document.getElementById(faqOpenedQuestionId).style.display="none"}function CheckTravelersDates(){var a=true,f=document.getElementById("ddlAdults"),g=document.getElementById("ddlChild"),i=parseInt(f.options[f.selectedIndex].text,10),h=parseInt(g.options[g.selectedIndex].text,10);num2=0;if(i+h+num2>8){a=false;alert("Het is helaas niet mogelijk om in een boeking\r\n meer dan 8 personen te boeken.\r\n U kunt eventueel meerdere boekingen maken\r\n of telefonisch contact met ons op nemen.")}for(var d=1;d<h+1;d++){var b=document.getElementById("txtChild"+d);if(b.value==""||b.value=="Ongeldig"){b.value="Ongeldig";a=false}}for(var e=1;e<num2+1;e++){var c=document.getElementById("txtBaby"+e);if(c.value==""||c.value=="Ongeldig"){c.value="Ongeldig";a=false}}a&&CloseTravelers();return a}function OpenNewsletter(){CenterNewsbriefElement();var a=document.getElementById("newsletterDiv");a.style.visibility="visible"}function CloseNewsletter(){var a=document.getElementById("newsletterDiv");a.style.visibility="hidden"}function GetBirthdates(a,e){var c=parseInt(a.options[a.selectedIndex].text,10),d=e==0?"Child":"Baby";for(i=1;i<a.options.length;i++){var b=document.getElementById(d+i.toString());b.style.display="none";b.value=""}for(i=1;i<=c;i++){var b=document.getElementById(d+i.toString());b.style.display=""}if(c>0)document.getElementById("TravelCompany_Info").style.display="";else document.getElementById("TravelCompany_Info").style.display="none"}var searchTimeout;function SearchAccommodation(a){clearTimeout(searchTimeout);searchTimeout=setTimeout("SearchAccommodationAfterTimeout('"+a+"')",500)}function SearchAccommodationAfterTimeout(a){var d=document.getElementById("searchRes"),e=document.getElementById("searchResText");a=Trim(a);if(a.length<3){d.style.visibility="hidden";return}var c=Master_BasePath+"SearchResult.aspx?val="+a,b=new Request;b.GetNoCache(c,SearchAccommodationResult)}function SearchAccommodationResult(a){if(a.readyState!=ReadyState.Complete)return;if(a.status==HttpStatus.OK&&a.responseText!=""){var b=document.getElementById("searchResText");if(b==null)return;b.innerHTML=a.responseText;document.getElementById("searchRes").style.visibility="visible"}}function Trim(a){return a.replace(/^\s+|\s+$/g,"")}function EmailValidation(a){apos=a.indexOf("@");dotpos=a.lastIndexOf(".");lastpos=a.length-1;return apos<1||dotpos-apos<2||lastpos-dotpos>3||lastpos-dotpos<2?false:true}function CheckNewsletterFooter(){var c=true,b=document.getElementById("newsletter_emailadresFooter"),a=document.getElementById("newsletter_emailadresFooter");if(b==null||b.value==null||b.value==""||b.value=="voornaam")return false;if(a==null||a.value==null||a.value==""||a.value=="emailadres"||!EmailValidation(a.value)){alert("Geef een geldig e-mail adress");return false}return c}function CheckNewsletter(){var d=true,b=document.getElementById("newsletter_voornaam"),a=document.getElementById("newsletter_emailadres"),c=document.getElementById("NewsCtrl");if(b==null||b.value==null||b.value==""||b.value=="voornaam"){c.innerHTML="Geef een geldige voornaam";return false}if(a==null||a.value==null||a.value==""||a.value=="emailadres"||!EmailValidation(a.value)){c.innerHTML="Geef een geldig e-mail adres";return false}return d}function CheckNewsletter2(){var d=true,b=document.getElementById("newsletter_voornaam2"),a=document.getElementById("newsletter_emailadres2"),c=document.getElementById("NewsItem");if(b==null||b.value==null||b.value==""||b.value=="voornaam"){c.innerHTML="Geef een geldige voornaam";return false}if(a==null||a.value==null||a.value==""||a.value=="emailadres"||!EmailValidation(a.value)){c.innerHTML="Geef een geldig e-mail adres";return false}d&&CloseNewsletter();return d}var mar_plaing=true,mar_timer,mar_nextTime=5e3;function mar_DisplayControl(){var f=document.getElementById("mar_numbers");f.innerHTML="";var b=1,c=5;if(mar_maxEl>5)if(mar_currentImg<=3){b=1;c=5}else if(mar_currentImg>=mar_maxEl-2){b=mar_maxEl-4;c=mar_maxEl}else{b=mar_currentImg-2;c=mar_currentImg+2}else{b=1;c=mar_maxEl}for(var h="",a=b;a<=c;a++){var e=document.createElement("li"),d=document.createElement("a");d.setAttribute("href","javascript:mar_SetImg("+a+");");a==mar_currentImg&&d.setAttribute("id","activeLi");var g=document.createTextNode(""+a);d.appendChild(g);e.appendChild(d);f.appendChild(e)}document.getElementById("activeLi").className="active";document.getElementById("displayedImageDiv").src=document.getElementById("displayedImage").src;changeOpac(0,"displayedImage");document.getElementById("displayedImage").src=mar_imageUrl[mar_currentImg-1];document.getElementById("displayedImage").alt=mar_imageAlt[mar_currentImg-1];for(a=0;a<=100;a+=5)setTimeout("changeOpac("+a+",'displayedImage')",a*5);document.getElementById("mar_imageLink").href=mar_imageLink[mar_currentImg-1];if(mar_plaing)document.getElementById("mar_playpauseBtn").src=Master_BasePath+"Style/Images/Pause.gif";else document.getElementById("mar_playpauseBtn").src=Master_BasePath+"Style/Images/Play.gif"}function changeOpac(a,c){var b=document.getElementById(c).style;b.opacity=a/100;b.MozOpacity=a/100;b.KhtmlOpacity=a/100;b.filter="alpha(opacity="+a+")"}function mar_PlayPause(){if(mar_plaing)mar_Pause();else mar_Play()}function mar_Pause(){clearTimeout(mar_timer);mar_plaing=false;mar_DisplayControl()}function mar_Play(){mar_plaing=true;mar_DisplayControl();mar_timer=setTimeout("mar_PlayNextPicture();",mar_nextTime)}function mar_NextPict(){mar_plaing&&mar_Pause();mar_currentImg+=1;if(mar_currentImg>mar_maxEl)mar_currentImg=1;mar_DisplayControl()}function mar_PrevPict(){mar_plaing&&mar_Pause();mar_currentImg-=1;if(mar_currentImg<1)mar_currentImg=mar_maxEl;mar_DisplayControl()}function mar_PlayNextPicture(){mar_currentImg+=1;if(mar_currentImg>mar_maxEl)mar_currentImg=1;mar_DisplayControl();mar_timer=setTimeout("mar_PlayNextPicture();",mar_nextTime)}function mar_SetImg(a){mar_plaing&&mar_Pause();mar_currentImg=a;mar_DisplayControl()}function mar_StartDisplay(){mar_DisplayControl();mar_Play()}function OpenMijnBoeking(){window.open("https://www.mijnreisoverzicht.nl/login.php?anvr=47317","_blank","height=600, width=600, directories=no, location=no, menubar=no, resizable=yes, scrollbars=yes, status=no, toolbar=no")}function CloseSearchRes(){var a=document.getElementById("searchRes");a.style.visibility="hidden"}function iecompattest(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}function CenterTravelersElement(){var d=document.getElementById("TravelersPopup");if(d==null)return;var c=0,b=0,a=0,e=d.offsetHeight;if(window.pageYOffset){a=window.pageYOffset;b=window.innerHeight}else{a=iecompattest().scrollTop;b=iecompattest().clientHeight}if(e>=b)c=a;else c=(b-e)/2+a;d.style.top=c+"px"}function CenterNewsbriefElement(){var d=document.getElementById("newsletterPopup");if(d==null)return;var c=0,b=0,a=0,e=d.offsetHeight;if(window.pageYOffset){a=window.pageYOffset;b=window.innerHeight}else{a=iecompattest().scrollTop;b=iecompattest().clientHeight}if(144>=b)c=a;else c=(b-144)/2+a;d.style.top=c+"px"}function OpenAccoMail(){CenterAccoMailElement();var a=document.getElementById("accoMailDiv");a.style.visibility="visible"}function CloseAccoMail(){document.getElementById("popupBackground").style.display="none";var a=document.getElementById("accoMailDiv");a.style.visibility="hidden"}function CenterAccoMailElement(){var d=document.getElementById("accoMailPopup");if(d==null)return;var c=0,b=0,a=0,e=d.offsetHeight;if(window.pageYOffset){a=window.pageYOffset;b=window.innerHeight}else{a=iecompattest().scrollTop;b=iecompattest().clientHeight}if(500>=b)c=a;else c=(b-500)/2+a;d.style.top=c+"px"}function ClearNewsletterName(a){if(a.value=="voornaam")a.value=""}function FillNewsletterName(a){if(a.value=="")a.value="voornaam"}function ClearNewsletterAddres(a){if(a.value=="emailadres")a.value=""}function FillNewsletterAddres(a){if(a.value=="")a.value="emailadres"}var searchTimeout404;function SearchAccommodation404(a){clearTimeout(searchTimeout404);searchTimeout404=setTimeout("SearchAccommodation404AfterTimeout('"+a+"')",500)}function SearchAccommodation404AfterTimeout(a){var d=document.getElementById("searchRes404"),e=document.getElementById("searchResText404");a=Trim(a);if(a.length<3){d.style.visibility="hidden";return}var c=Master_BasePath+"SearchResult.aspx?val="+a,b=new Request;b.GetNoCache(c,SearchAccommodation404Result)}function SearchAccommodation404Result(a){if(a.readyState!=ReadyState.Complete)return;if(a.status==HttpStatus.OK&&a.responseText!=""){var b=document.getElementById("searchResText404");if(b==null)return;b.innerHTML=a.responseText;document.getElementById("searchRes404").style.visibility="visible"}}function CloseSearchRes404(){var a=document.getElementById("searchRes404");a.style.visibility="hidden"}function ShowPopupInfo(a){CenterPopupInfoElement();var b=document.getElementById("infoPopoupText");b.innerHTML=a;var c=document.getElementById("infoPopupDiv");c.style.visibility="visible";setTimeout("HidePopupInfo()",3e3)}function HidePopupInfo(){var b=document.getElementById("infoPopupDiv");b.style.visibility="hidden";var a=document.getElementById("infoPopoupText");a.innerHTML=""}function CenterPopupInfoElement(){var d=document.getElementById("infoPopup");if(d==null)return;var c=0,b=0,a=0,e=d.offsetHeight;if(window.pageYOffset){a=window.pageYOffset;b=window.innerHeight}else{a=iecompattest().scrollTop;b=iecompattest().clientHeight}if(e>=b)c=a;else c=(b-e)/2+a;d.style.top=c+"px"}function printAcco(){window.open(Master_BasePath+"AccommodationPrint.aspx")}function toggleDisplay(a,b){if(document.getElementById(a).style.display==""){document.getElementById(a).style.display="none";document.getElementById(b).style.display=""}else{document.getElementById(a).style.display="";document.getElementById(b).style.display="none"}}function checkTrav(p){items=p.id.split("_");var b="";for(i=0;i<items.length-1;i++)b+=items[i]+"_";if(b=="")return;var e=parseInt(items[5].replace("ctl",""),10),o=document.getElementById("TravImg"+e),a=document.getElementsByTagName("input"),g=false,k=false,f=false,j=false,c=false,d="",l="";if(document.getElementById(b+"txtMiddelname"))l=document.getElementById(b+"txtMiddelname").value;var m="";for(i=0;i<a.length;i++)if(a[i].id.indexOf(b)==0&&a[i].id.indexOf("txtMiddelname")<0){if(a[i].id.indexOf("rlTravGender")>0&&a[i].checked&&!g)g=true;if(a[i].id.indexOf("txtGivenNames")>0&&a[i].value!=""&&!k){k=true;d=a[i].value}if(a[i].id.indexOf("txtLastName")>0&&a[i].value!=""&&!f){f=true;m=a[i].value}if(a[i].id.indexOf("txtBirthDay")>0&&a[i].value!=""&&!j)j=true;c=g&&k&&f&&j;if(c)break}o.className=c?"Show":"NoShow";var h=document.getElementById("ctl00_ctl00_cphMainContent_cphBody_ddlTraveller");if(h&&c){var n=e+1;d+=l!=""?" "+l:"";d+=" "+m;h.options[e+1].text="Reiziger "+n.toString()+": "+d;h.options[e+1].value="Reiziger "+n.toString()+","+b}}function checkValue(b,c){var a=document.getElementById(c);if(a)a.className=b&&b.value!=""?"Show":"NoShow"}function checkPhone(b,c){var a=document.getElementById(c);if(a)a.className=b&&b.value!=""?"Show":"NoShow"}function checkMail(b,c){var a=document.getElementById(c);if(a)a.className=EmailValidation(b.value)?"Show":"NoShow"}function EmailValidation(a){apos=a.indexOf("@");dotpos=a.lastIndexOf(".");lastpos=a.length-1;return apos<1||dotpos-apos<2||lastpos-dotpos>3||lastpos-dotpos<2?false:true}function setHomeStayer(c){var a=document.getElementById("Homestayer"),b=document.getElementById(c.id+"_1");a.style.display=b.checked?"":"none"}function OpenVoorwaarden(g,c){var a,b,e,f;a=400;b=600;e=(screen.width-b)/2;f=(screen.height-a)/2;var d="Conditions/Conditions.aspx?ID="+g;if(typeof c!="undefined")d+="&Date="+c;theWin=window.open(d,"voorwaarden","scrollbars=yes,resizable=yes,height="+a+",width="+b+",left="+e+",top="+f);theWin.focus()}function resize(a){if(!closeFrame){if(navigator.appName.indexOf("Explorer")==-1){if(document.getElementById(a).src!=""){document.getElementById(a).style.height=document.getElementById(a).contentDocument.body.scrollHeight+5+"px";document.getElementById(a).style.borderWidth="2px";location.href="#extras"}}else if(document.all[a].src!=""){document.all[a].style.height=document.all[a].Document.body.scrollHeight;+5+"px";document.all[a].style.borderWidth="2px";location.href="#extras"}}else closeFrame=false}function SetPayment(a){if(a=="")document.forms[0].rbPayment[0].checked=true;else for(t=0;t<document.forms[0].rbPayment.length;t++)if(document.forms[0].rbPayment[t].value==a)document.forms[0].rbPayment[t].checked=true}var tipwidth="155px",tipbgcolor="lightyellow",disappeardelay=500,vertical_offset="-55px",horizontal_offset="25px",ie4=document.all,ns6=document.getElementById&&!document.all;(ie4||ns6)&&document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+';" class="ToolTip"></div>');function getposOffset(c,d){var b=d=="left"?c.offsetLeft:c.offsetTop,a=c.offsetParent;while(a!=null){b=d=="left"?b+a.offsetLeft:b+a.offsetTop;a=a.offsetParent}return b}function showhide(a,b,e,c,d){if(ie4||ns6)dropmenuobj.style.left=dropmenuobj.style.top=-500;if(d!="")dropmenuobj.widthobj=dropmenuobj.style;if(b.type=="click"&&a.visibility==c||b.type=="mouseover")a.visibility=e;else if(b.type=="click")a.visibility=c}function iecompattest(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}function clearbrowseredge(d,c){var a=c=="rightedge"?parseInt(horizontal_offset)*-1:parseInt(vertical_offset)*-1;if(c=="rightedge"){var b=ie4&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(b-dropmenuobj.x<dropmenuobj.contentmeasure)a=dropmenuobj.contentmeasure-d.offsetWidth}else{var b=ie4&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(b-dropmenuobj.y<dropmenuobj.contentmeasure)a=dropmenuobj.contentmeasure+d.offsetHeight}return a}function fixedtooltip(c,a,b,d){if(window.event)event.cancelBubble=true;else b.stopPropagation&&b.stopPropagation();clearhidetip();dropmenuobj=document.getElementById?document.getElementById("fixedtipdiv"):fixedtipdiv;dropmenuobj.innerHTML=c;if(ie4||ns6){showhide(dropmenuobj.style,b,"visible","hidden",d);dropmenuobj.x=getposOffset(a,"left")+40;dropmenuobj.y=getposOffset(a,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(a,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(a,"bottomedge")+a.offsetHeight+"px"}}function hidetip(){if(typeof dropmenuobj!="undefined")if(ie4||ns6)dropmenuobj.style.visibility="hidden"}function delayhidetip(){if(ie4||ns6)delayhide=setTimeout("hidetip()",disappeardelay)}function clearhidetip(){typeof delayhide!="undefined"&&clearTimeout(delayhide)}function escapeHTML(e){var a=document.createElement("div"),d=document.createTextNode(e);a.appendChild(d);var b=a.innerHTML,c=b.replace(/\"/g,"");return c}function OpenPriceGuarantee(a){try{if(a!="Thankyou"){document.getElementById("pg-form").style.display="";document.getElementById("pg-thank-you").style.display="none";globalPageTracker.push(["_trackEvent","Prijsgarantie","Openen",a])}}catch(c){}var b=document.getElementById("PriceGuaranteeDiv");b.style.visibility="visible";scroll(0,0)}function ClosePriceGuarantee(){var a=document.getElementById("PriceGuaranteeDiv");a.style.visibility="hidden"}var carouselInitialized_A=false,imgCurrentIndex_A=1,carouselIndex_A=1,photoTotalItems_A=0;function initCarousel_A(){if(carouselInitialized_A==false){jQuery("#mycarousel").jcarousel({scroll:1,initCallback:mycarousel_initCallback_A});carouselInitialized_A=true}}function mycarousel_initCallback_A(a){photoTotalItems_A=$("#mycarousel li").length;showBigimg();jQuery("#mycarousel-next").bind("click",function(){nextPhoto_A(a);return false});jQuery("#mycarousel-prev").bind("click",function(){prevPhoto_A(a);return false});jQuery("#mycarousel-next-bottom").bind("click",function(){nextPhoto_A(a);return false});jQuery("#mycarousel-prev-bottom").bind("click",function(){prevPhoto_A(a);return false});jQuery("#mycarousel-next2").bind("click",function(){nextCarousel_A(a);return false});jQuery("#mycarousel-prev2").bind("click",function(){prevCarousel_A(a);return false});jQuery(".jcarousel-item").bind("click",function(){var b=jQuery(this).attr("jcarouselindex");showPhoto_A(b,a);return false})}function prevCarousel_A(a){carouselIndex_A--;if(carouselIndex_A==0){a.scroll(photoTotalItems_A);carouselIndex_A=photoTotalItems_A-2}else a.prev()}function nextCarousel_A(a){carouselIndex_A++;if(carouselIndex_A>photoTotalItems_A-2){a.scroll(1);carouselIndex_A=1}else a.next()}function prevPhoto_A(a){if(imgCurrentIndex_A>1){a.prev();carouselIndex_A--}showPhoto_A(parseInt(imgCurrentIndex_A)-1,a)}function nextPhoto_A(a){showPhoto_A(parseInt(imgCurrentIndex_A)+1,a)}function showPhoto_A(a,b){if(a>=1&&a<=photoTotalItems_A){if(a>=imgCurrentIndex_A){b.next();carouselIndex_A++}else if(a>=imgCurrentIndex_A){carouselIndex_A=a;b.scroll(a)}if(carouselIndex_A>photoTotalItems_A-2)carouselIndex_A=photoTotalItems_A-2}else if(a==0){a=photoTotalItems_A;carouselIndex_A=photoTotalItems_A-2;b.scroll(photoTotalItems_A)}else{a=1;carouselIndex_A=1;b.scroll(a)}imgCurrentIndex_A=a;showBigimg()}function setNextPrevButtonState_A(){if(imgCurrentIndex>1){$(".jcarousel-prev").removeClass("jcarousel-prev-disabled");$(".jcarousel-prev").removeClass("jcarousel-prev-disabled-horizontal")}else{$(".jcarousel-prev").addClass("jcarousel-prev-disabled");$(".jcarousel-prev").addClass("jcarousel-prev-disabled-horizontal")}if(imgCurrentIndex>=photoTotalItems){$(".jcarousel-next").addClass("jcarousel-next-disabled");$(".jcarousel-next").addClass("jcarousel-next-disabled-horizontal")}else{$(".jcarousel-next").removeClass("jcarousel-next-disabled");$(".jcarousel-next").removeClass("jcarousel-next-disabled-horizontal")}}function Tab(n){var o=document.getElementById("ctl00_cphBody_hChosen"),p=document.getElementById("ctl00_cphBody_hTab"),i=document.getElementById("TabAccoInfo"),c=document.getElementById("TabAccoInfoMenu"),e=document.getElementById("TabDestination"),b=document.getElementById("TabDestinationMenu"),l=document.getElementById("TabPhotos"),g=document.getElementById("TabPhotosMenu"),k=document.getElementById("TabWeather"),f=document.getElementById("TabWeatherMenu"),j=document.getElementById("TabOpinions"),d=document.getElementById("TabOpinionsMenu"),m=document.getElementById("TabPrices"),h=document.getElementById("TabPricesMenu");i.className="sntNoShow";c.className="";e.className="sntNoShow";b.className="";l.className="sntNoShow";g.className="";k.className="sntNoShow";f.className="";j.className="sntNoShow";d.className="";m.className="sntNoShow";h.className="";var a=0;switch(n){case"TabAccoInfo":i.className="sntShow";c.className="active";a=0;break;case"TabDestination":e.className="sntShow";b.className="active";a=1;break;case"TabPhotos":l.className="sntShow";g.className="active";initCarousel_A();a=2;break;case"TabWeather":k.className="sntShow";f.className="active";a=3;break;case"TabOpinions":j.className="sntShow";d.className="active";a=4;break;case"TabPrices":m.className="sntShow";h.className="active";a=5;break;default:return}o.value=n;p.value=a}function SelectPrice(i,l,m,o,n,k,g,j,b){if(b!="Price_Min"){var c=document.getElementById(b);if(c==null)return false;if(c.className=="niet-beschikbaar")return;var e=document.getElementById("OldLinkStyleClassName"),d=document.getElementById("OldLinkId"),f=document.getElementById("ClickedPriceLink");f.value=b;if(d.value!=""){var h=document.getElementById(d.value);h.className=e.value}e.value=c.className;d.value=b;c.className="selected"}document.getElementById("priceRemark").style.display="none";document.getElementById("prijsoverzicht").style.display="";document.getElementById("wait").style.display="";document.getElementById("prices_list").style.display="none";document.getElementById("btnBook").style.display="none";document.getElementById("btnPriceGaruantuee").style.display="none";var a=Master_BasePath+"GetReceipt.aspx";a+="?acco="+i;a+="&price="+l;a+="&date="+m;a+="&dur="+o;a+="&unit="+n;a+="&board="+k;a+="&tourop="+g;a+="&depart="+j;a+="&linkid="+b;var p=new Request;p.GetNoCache(a,SelectPriceResult)}function SelectPriceResult(a){if(a.readyState!=ReadyState.Complete)return;if(a.status==HttpStatus.OK&&a.responseText!="")eval(a.responseText);else alert("error\n"+a.responseText)}function Book(g,f,h,d,e,c,i,b){var a=Master_BasePath+"Boeken/Start.aspx";a+="?Action=book&fill=true";a+="&to="+g;a+="&pc="+f;a+="&tr="+h;a+="&dt="+d;a+="&du="+e;a+="&dp="+c;a+="&ut="+i;a+="&bo="+b;location.href=a}function AddAccoToSavedAccos(b,a){var d=Master_BasePath+"AccoCookies.aspx?Action=Save&Type="+b+"&AccoID="+a,c=new Request;c.GetNoCache(d,AddAccoToSavedAccosResult)}function AddAccoToSavedAccosResult(a){if(a.readyState!=ReadyState.Complete)return;if(a.status==HttpStatus.OK&&a.responseText!="")if(a.responseText=="ERROR")alert("Error");else ResetSavedVisitedNumber()}function ShowRoomDescription(d){var c=document.getElementById("roomDescOverlayMain"),a=document.getElementById(d),b=document.getElementById("roomDescOverlay");if(a==null||a==null||b==null)return;CenterRoomElement();b.innerHTML=a.innerHTML;c.style.visibility="visible"}function HideRoomDescription(){var b=document.getElementById("roomDescOverlayMain"),a=document.getElementById("roomDescOverlay");if(b==null)return;if(a!=null)a.innerHTML="";b.style.visibility="hidden"}function CenterRoomElement(){var d=document.getElementById("roomDescOverlay");if(d==null)return;var c=0,b=0,a=0,e=d.offsetHeight;if(window.pageYOffset){a=window.pageYOffset;b=window.innerHeight}else{a=iecompattest().scrollTop;b=iecompattest().clientHeight}if(e>=b)c=a;else c=(b-e)/2+a;d.style.top=c+"px"}function DisablePrice(){var a=document.getElementById("ClickedPriceLink");if(a!=null&&a.value!=""){var b=document.getElementById(a.value);if(b!=null){b.className="niet-beschikbaar";b.onClick="return false";var c=document.getElementById("OldLinkId");if(c!=null)c.value="";return false}}}function CheckMailFields(){var a=true;if(document.getElementById("accoMail_emailAdres").value==""||document.getElementById("accoMail_emailAdres").value=="E-mail adres"){document.getElementById("val_accoMail_emailAdres").style.display="";a=false}else document.getElementById("val_accoMail_emailAdres").style.display="none";if(!checkEmail("accoMail_emailAdres")){document.getElementById("reg_accoMail_emailAdres").style.display="";a=false}else document.getElementById("reg_accoMail_emailAdres").style.display="none";if(document.getElementById("accoMail_userName").value==""||document.getElementById("accoMail_userName").value=="Uw naam"){document.getElementById("val_accoMail_userName").style.display="";a=false}else document.getElementById("val_accoMail_userName").style.display="none";if(document.getElementById("accoMail_userEmailAdres").value==""||document.getElementById("accoMail_userEmailAdres").value=="Uw e-mail adres"){document.getElementById("val_accoMail_userEmailAdres").style.display="";a=false}else document.getElementById("val_accoMail_userEmailAdres").style.display="none";if(!checkEmail("accoMail_userEmailAdres")){document.getElementById("reg_accoMail_userEmailAdres").style.display="";a=false}else document.getElementById("reg_accoMail_userEmailAdres").style.display="none";return a}function checkEmail(b){var a=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;return!a.test(document.getElementById(b).value)?false:true}function DeleteAccoFromSavedAccos(b,a){var d=Master_BasePath+"AccoCookies.aspx?Action=Delete&Type="+b+"&AccoID="+a,c=new Request;c.GetNoCache(d,DeleteAccoFromSavedAccosResult);location.reload(true)}function DeleteAccoFromSavedAccosResult(a){if(a.readyState!=ReadyState.Complete)return;if(a.status==HttpStatus.OK&&a.responseText!="")if(a.responseText=="ERROR")alert("Error");else ResetSavedVisitedNumber()}var JSON;if(!JSON)JSON={};(function(){"use strict";function c(a){return a<10?"0"+a:a}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+c(this.getUTCMonth()+1)+"-"+c(this.getUTCDate())+"T"+c(this.getUTCHours())+":"+c(this.getUTCMinutes())+":"+c(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(){return this.valueOf()}}var h=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,f=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,a,d,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},b;function g(a){f.lastIndex=0;return f.test(a)?'"'+a.replace(f,function(a){var b=i[a];return typeof b==="string"?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function e(m,n){var h,j,i,k,l=a,f,c=n[m];if(c&&typeof c==="object"&&typeof c.toJSON==="function")c=c.toJSON(m);if(typeof b==="function")c=b.call(n,m,c);switch(typeof c){case"string":return g(c);case"number":return isFinite(c)?String(c):"null";case"boolean":case"null":return String(c);if(!c)return"null";a+=d;f=[];if(Object.prototype.toString.apply(c)==="[object Array]"){k=c.length;for(h=0;h<k;h+=1)f[h]=e(h,c)||"null";i=f.length===0?"[]":a?"[\n"+a+f.join(",\n"+a)+"\n"+l+"]":"["+f.join(",")+"]";a=l;return i}if(b&&typeof b==="object"){k=b.length;for(h=0;h<k;h+=1)if(typeof b[h]==="string"){j=b[h];i=e(j,c);i&&f.push(g(j)+(a?": ":":")+i)}}else for(j in c)if(Object.prototype.hasOwnProperty.call(c,j)){i=e(j,c);i&&f.push(g(j)+(a?": ":":")+i)}i=f.length===0?"{}":a?"{\n"+a+f.join(",\n"+a)+"\n"+l+"}":"{"+f.join(",")+"}";a=l;return i}}if(typeof JSON.stringify!=="function")JSON.stringify=function(h,c,f){var g;a="";d="";if(typeof f==="number")for(g=0;g<f;g+=1)d+=" ";else if(typeof f==="string")d=f;b=c;if(c&&typeof c!=="function"&&(typeof c!=="object"||typeof c.length!=="number"))throw new Error("JSON.stringify");return e("",{"":h})};if(typeof JSON.parse!=="function")JSON.parse=function(a,c){var b;function d(f,g){var b,e,a=f[g];if(a&&typeof a==="object")for(b in a)if(Object.prototype.hasOwnProperty.call(a,b)){e=d(a,b);if(e!==undefined)a[b]=e;else delete a[b]}return c.call(f,g,a)}a=String(a);h.lastIndex=0;if(h.test(a))a=a.replace(h,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)});if(/^[\],:{}\s]*$/.test(a.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){b=eval("("+a+")");return typeof c==="function"?d({"":b},""):b}throw new SyntaxError("JSON.parse");}})()
