/* javascript.js */
var specialvalue1="";var periodvalue1="";var periodvalue2="";var periodvalue3="";function onchangeSubmit(strVars,absoluteurl){if(document.searchMenuForm.searchbox.value==document.searchMenuForm.searchbox.defaultValue){}
lastPageNum='';setAction(strVars,absoluteurl);document.searchMenuForm.showMap.value='true';document.searchMenuForm.submit();}
function backtoresult(strVars,absoluteurl,actpage,lastsearchurlprm,lastkeywordprm){if(document.getElementById('searchbox'))
{if(document.searchMenuForm.searchbox.value==document.searchMenuForm.searchbox.defaultValue){}
document.searchMenuForm.searchbox.value='';lastPageNum=actpage;lastsearchurl=lastsearchurlprm;if(lastkeywordprm!='')
{document.searchMenuForm.searchbox.value=lastkeywordprm;}
setAction(strVars,absoluteurl);document.searchMenuForm.showMap.value='true';document.searchMenuForm.submit();}}
function correctPNG(){var arVersion=navigator.appVersion.split("MSIE")
var version=parseFloat(arVersion[1])
if((version>=5.5)&&(document.body.filters))
{for(var i=0;i<document.images.length;i++)
{var img=document.images[i]
var imgName=img.src.toUpperCase()
if(imgName.substring(imgName.length-3,imgName.length)=="PNG")
{var imgID=(img.id)?"id='"+img.id+"' ":""
var imgClass=(img.className)?"class='"+img.className+"' ":""
var imgTitle=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' "
var imgStyle="display:inline-block;"+img.style.cssText;if(img.align=="left")imgStyle="float:left;"+imgStyle
if(img.align=="right")imgStyle="float:right;"+imgStyle
if(img.parentElement.href)imgStyle="cursor:hand;"+imgStyle
var strNewHTML="<span "+imgID+imgClass+imgTitle
+" style=\""+"width:"+img.width+"px; height:"+img.height+"px;"+imgStyle+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+img.src+"\', sizingMethod='scale');\"></span>"
img.outerHTML=strNewHTML
i=i-1}}}}
function addDays(myDate,days){return new Date(myDate.getTime()+days*24*60*60*1000);}
function changeList2(box,secondbox){if(box=='fmonth'&&document.searchMenuForm.holidayperiod.value.substr(0,6)!=document.searchMenuForm.fmonth.value&&document.searchMenuForm.holidayperiod.value!='last-minutes'){document.searchMenuForm.holidayperiod.value='';}
if (box == 'duration' && document.searchMenuForm.holidayperiod.value != 'last-minutes') {document.searchMenuForm.holidayperiod.value = '';}
if(document.searchMenuForm.fmonth.value=='other'){document.searchMenuForm.holidayperiod.value='';document.searchMenuForm.fmonth.value='';}
if(document.searchMenuForm.fmonth.value!=''){specialtheme='';if(document.searchMenuForm.special.value!=''){specialtheme=document.searchMenuForm.special.value;}
if(document.searchMenuForm.holidayperiod.value!=''){holidayperiod=document.searchMenuForm.holidayperiod.value;}
if(document.searchMenuForm.fmonth.value.substr(4,1)==0){comparemonth=document.searchMenuForm.fmonth.value.substr(5,1);}else{comparemonth=document.searchMenuForm.fmonth.value.substr(4,2);}
if((comparemonth>3&&comparemonth<10)&&document.searchMenuForm.special.value=='wintersport'){document.searchMenuForm.special.value='';}
switch(specialtheme)
{case"wintersport":if(document.searchMenuForm.holidayperiod.value.substr(4,1)==0){comparemonth2=document.searchMenuForm.holidayperiod.value.substr(5,1);}else{comparemonth2=document.searchMenuForm.holidayperiod.value.substr(4,2);}
if(comparemonth!=comparemonth2){document.searchMenuForm.holidayperiod.value='';}
break
case"last-minutes":date=new Date();date=addDays(date,42);date=date.getMonth();if(comparemonth>date){document.searchMenuForm.holidayperiod.value='';}
break
default:}}
if(document.searchMenuForm.fmonth.value!=''&&document.searchMenuForm.duration.value!=''){KillClass(document.getElementById('periodDiv'),'searchFieldHidden');AddClass(document.getElementById('periodDiv'),'searchFieldDisplayed');list=month_array[document.searchMenuForm.fmonth.value][document.searchMenuForm.duration.value];emptyList(document.searchMenuForm.period);fillList2(document.searchMenuForm.period,list);}else{document.searchMenuForm.period.value='';KillClass(document.getElementById('periodDiv'),'searchFieldDisplayed');AddClass(document.getElementById('periodDiv'),'searchFieldHidden');}}
function changeList_specials(box,secondbox){if(document.searchMenuForm.fmonth.value!=''){KillClass(document.getElementById('periodDiv'),'searchFieldDisplayed');AddClass(document.getElementById('periodDiv'),'searchFieldHidden');list=month_array[document.searchMenuForm.fmonth.value][document.searchMenuForm.duration.value];emptyList(document.searchMenuForm.period);fillList2(document.searchMenuForm.period,list);}else{document.searchMenuForm.period.value='';KillClass(document.getElementById('periodDiv'),'searchFieldDisplayed');AddClass(document.getElementById('periodDiv'),'searchFieldHidden');}}
function fillList2(box,arr){for(i=0;i<arr.length;i++){option=new Option(period_name_array[arr[i]],arr[i]);box.options[box.length]=option;}
box.selectedIndex=0;}
function emptyList(box){while(box.options.length)box.options[0]=null;}
function fillList(box,arr){for(i=0;i<arr[0].length;i++){option=new Option(arr[0][i],arr[1][i]);box.options[box.length]=option;}
box.selectedIndex=0;}
function changeList(box){if(box.selectedIndex!=-1){var i=2;list=country_array[box.options[box.selectedIndex].value];emptyList(box.form.area);fillList(box.form.area,list);}
if(document.searchMenuForm.country.value==''||document.searchMenuForm.country.value=='all'){document.searchMenuForm.area.value='';KillClass(document.getElementById('areaDiv'),'searchFieldDisplayed');AddClass(document.getElementById('areaDiv'),'searchFieldHidden');}else{KillClass(document.getElementById('areaDiv'),'searchFieldHidden');AddClass(document.getElementById('areaDiv'),'searchFieldDisplayed');}}
function changeCheckBox(box,url){if(document.getElementById(box).value=='on'){document.forms['searchMenuForm'].elements[box].value='off';$('#img'.box).removeClass('on');}else{document.forms['searchMenuForm'].elements[box].value='on';$('#img'.box).addClass('on');}}
function toggleMapBackground(){if(document.getElementById('country')){if(document.getElementById('country').value==''||document.getElementById('country').value=='all'){document.getElementById('hpTopRight').className='hpTopRight_mapOn';if(document.getElementById('mapcontent')){document.getElementById('mapcontent').innerHTML=defaultEuropeData;}}else{document.getElementById('hpTopRight').className='hpTopRight_mapOff';}}else{document.getElementById('hpTopRight').className='hpTopRight_mapOn';if(document.getElementById('mapcontent')){document.getElementById('mapcontent').innerHTML=defaultEuropeData;}}}
function changeDate(waarde){if(waarde=="last-minutes"){date=new Date();month=date.getMonth()+1;year=date.getYear();if(month.toString().length<2){date=year.toString()+'0'+month.toString();}else{date=year.toString()+month.toString();}
document.searchMenuForm.fmonth.value=date;document.searchMenuForm.duration.value='1week';changeList2(date);}else{document.searchMenuForm.fmonth.value=waarde;document.searchMenuForm.duration.value='1week';changeList2(waarde);}}
function changeDate2(waarde,waarde2){if(document.searchMenuForm.fmonth.value.substr(4,1)==0){comparemonth=document.searchMenuForm.fmonth.value.substr(5,1);}else{comparemonth=document.searchMenuForm.fmonth.value.substr(4,2);}
switch(waarde)
{case"weekend-weg":document.searchMenuForm.duration.value='laweekend';break;case"wintersport":case"Winter Sports":case"Wintersport":if((comparemonth>3&&comparemonth<10)||document.searchMenuForm.fmonth.value==''){date=new Date();year=date.getFullYear();if(date.getMonth()>2&&date.getMonth()<9)
{year++;date=year.toString()+'01';}
else
{if(date.getMonth()>10){date=year.toString()+'01';}else{date=year.toString()+((date.getMonth()*1)+1);}}
document.searchMenuForm.fmonth.value=date;if(document.searchMenuForm.duration.value==''){document.searchMenuForm.duration.value='1week';}}
break;case"last-minutes":date=new Date();month=date.getMonth()+1;year=date.getYear();if(month.toString().length<2){date=year.toString()+'0'+month.toString();}else{date=year.toString()+month.toString();}
document.searchMenuForm.fmonth.value=date;if(document.searchMenuForm.duration.value==''){document.searchMenuForm.duration.value='1week';}
changeList2(date);break;case"holidayperiod":if(waarde2=='last-minutes'){date=new Date();month=date.getMonth()+1;year=date.getYear();if(month.toString().length<2){date=year.toString()+'0'+month.toString();}else{date=year.toString()+month.toString();}
document.searchMenuForm.fmonth.value=date;document.searchMenuForm.duration.value='1week';changeList2(date);}else{if(document.searchMenuForm.holidayperiod.value==''){document.searchMenuForm.holidayspecial.value='';}
if(document.searchMenuForm.special.value=='weekend-weg'){document.searchMenuForm.special.value='';}
document.searchMenuForm.fmonth.value=waarde2.substr(0,6);document.searchMenuForm.duration.value=waarde2.substr(8);changeList2(waarde2.substr(0,8));if(document.searchMenuForm.fmonth.value.substr(4,6)!='07'&&document.searchMenuForm.fmonth.value.substr(4,6)!='08'){document.searchMenuForm.period.value=waarde2;}else{document.searchMenuForm.period.value='';}}
break;default:}}
function IsNumeric(sText)
{var ValidChars="0123456789";var IsNumber=true;var Char;for(i=0;i<sText.length&&IsNumber==true;i++)
{Char=sText.charAt(i);if(ValidChars.indexOf(Char)==-1)
{IsNumber=false;}}
return IsNumber;}
function Right(str,n){if(n<=0)
return"";else if(n>String(str).length)
return str;else{var iLen=String(str).length;return String(str).substring(iLen,iLen-n);}}
function setAction(passthrough_variables,absoluteurl){str_house_type=document.searchMenuForm.str_house_type.value;str_park_type=document.searchMenuForm.str_park_type.value;var regio_action_value='';if(document.searchMenuForm.period.value=='other'){document.searchMenuForm.period.value='';document.searchMenuForm.holidayperiod.value='';}
if(document.searchMenuForm.country.value!='all'){var regEx=new RegExp('ë','gi');var action_value=eval("country_name_array_"+js_lcid+"[document.searchMenuForm.country.value]");action_value=action_value.replace(regEx,'e');action_value=escape(action_value);}else{action_value="";}
if(document.searchMenuForm.area.selectedIndex>0){var regio_text=document.searchMenuForm.area.options[document.searchMenuForm.area.selectedIndex].text;var regio_value=document.searchMenuForm.area.value;}else{var regio_text='';var regio_value='';}
var holidayperiod_value=document.searchMenuForm.holidayperiod.value;var special_value=document.searchMenuForm.special.value;if(str_park_type==special_value){str_house_type=str_park_type;special_value="";document.searchMenuForm.special.value="";document.searchMenuForm.str_house_type.value=str_house_type;document.searchMenuForm.str_Org_Page.value=str_house_type;}else if(special_value==''&&document.searchMenuForm.str_Org_Page.value!=str_house_type)
{str_house_type=document.searchMenuForm.str_Org_Page.value;special_value="";document.searchMenuForm.special.value="";document.searchMenuForm.str_house_type.value=str_house_type;}
if(document.searchMenuForm.holidayperiod.value=='last-minutes'){special_value=document.searchMenuForm.holidayperiod.value;}else if(special_value==''&&document.searchMenuForm.holidayperiod.value!=''){special_value=document.searchMenuForm.holidayperiod.options[document.searchMenuForm.holidayperiod.selectedIndex].text;}
var special_insert="";if(special_value!=""){if(special_value.indexOf(";")>0){special_insert=String(special_value).substring(special_value.length,special_value.indexOf(";")+1)+'/';}else{special_insert=special_value+'/';}}
if(regio_value!=""&&regio_text!=""){var regEx=new RegExp('/','gi');regio_action_value=regio_text.toLowerCase();regio_action_value=regio_action_value.replace(regEx,'|');document.searchMenuForm.area_region_id.value=regio_value;}else{document.searchMenuForm.area_region_id.value='';}
if(lastPageNum=='1'||lastPageNum=='0')
{lastPageNum='';}
var selectedperiod=document.searchMenuForm.holidayperiod.options[document.searchMenuForm.holidayperiod.selectedIndex].text
var tmphousetype;tmphousetype=str_house_type+lastPageNum+'.html';if((selectedperiod==periodvalue1&&periodvalue1!='')||(selectedperiod==periodvalue2&&periodvalue2!='')||(holidayperiod_value==periodvalue3&&periodvalue3!='')||(special_value==specialvalue1&&specialvalue1!='')){if(action_value==''&&regio_value==''){tmphousetype='';}}
if(regio_action_value!=''){if(action_value!=''){var temp_action=absoluteurl+'/'+special_insert+action_value+'/';}else{var temp_action=absoluteurl+'/'+special_insert;}
document.searchMenuForm.action=temp_action+escape(regio_action_value)+'/'+tmphousetype+passthrough_variables;}else if(action_value!=''){document.searchMenuForm.action=absoluteurl+'/'+special_insert+action_value+'/'+tmphousetype+passthrough_variables;}else if(special_insert!=''){document.searchMenuForm.action=absoluteurl+'/'+special_insert+tmphousetype+passthrough_variables;}else{document.searchMenuForm.action=absoluteurl+'/'+tmphousetype+passthrough_variables;}
if(lastsearchurl!='')
{document.searchMenuForm.action=absoluteurl+lastsearchurl;}
if(document.searchMenuForm.searchbox.value!=''){if(document.searchMenuForm.searchbox.value.substring(0,2)=="BN"||document.searchMenuForm.searchbox.value.substring(0,2)=="bn"){document.searchMenuForm.action=absoluteurl+'/'+document.searchMenuForm.searchbox.value.replace(/^\s+|\s+$/g,'')+'.html'+passthrough_variables;}
else{if(IsNumeric(document.searchMenuForm.searchbox.value.replace(/^\s+|\s+$/g,''))){document.searchMenuForm.action=absoluteurl+'/BN'+document.searchMenuForm.searchbox.value.replace(/^\s+|\s+$/g,'')+'.html'+passthrough_variables;}}}}
function highlightSearchButton(){var higlightCounter=1;if(higlightCounter>0){var timeoutSpan=100;for(i=0;i<=10;i=i+2){setTimeout("document.getElementById('searchLink').style.textDecoration='underline'",(i*timeoutSpan));setTimeout("document.getElementById('searchLink').style.textDecoration='none'",((i+1)*timeoutSpan));}}
higlightCounter=higlightCounter+1;}
function trimAll(sString)
{while(sString.substring(0,1)==' ')
{sString=sString.substring(1,sString.length);}
while(sString.substring(sString.length-1,sString.length)==' ')
{sString=sString.substring(0,sString.length-1);}
return sString;}
function AddClass(obj,cName){KillClass(obj,cName);return obj&&(obj.className+=(obj.className.length>0?' ':'')+cName);}
function KillClass(obj,cName){return obj&&(obj.className=obj.className.replace(new RegExp("^"+cName+"\\b\\s*|\\s*\\b"+cName+"\\b",'g'),''));}
function HasClass(obj,cName){return(!obj||!obj.className)?false:(new RegExp("\\b"+cName+"\\b")).test(obj.className)}
var currentOverlay;function showOverlay(overlay){currentOverlay=overlay;var bg=$('div#overlayBg');if(bg.length==0){bg=$$('div#overlayBg').css({position:'absolute',left:0,top:0,'background-color':'#FDFDEE',opacity:0.8,'z-index':200,display:'none'}).prependTo($('body')).click(hideOverlay)}
if($.browser.msie&&$.browser.version<=6&&!window["XMLHttpRequest"]){$('select').css('visibility','hidden');$('iframe:not(iframe#iframeOverlay)').each(function(i){var cont=this.contentWindow.document;$('select',cont).css('visibility','hidden');})}
var screenWidth=document.documentElement.scrollWidth;var screenHeight=document.documentElement.scrollHeight;bg.width(screenWidth).height(screenHeight).fadeIn(500,function(){overlay.fadeIn(500);});}
function hideOverlay(){var bg=$('div#overlayBg');var overlay=currentOverlay;overlay.fadeOut(500,function(){bg.fadeOut(500,function(){if($.browser.msie&&$.browser.version<=6&&!window["XMLHttpRequest"]){$('select').css('visibility','');$('iframe').each(function(i){var cont=this.contentWindow.document;$('select',cont).css('visibility','');})}});overlay.remove();});}
var iframeMakeTrans;function loadIframe(url,width,height,scrolling,makeTrans){if(!url){url='/pics/spacer.gif';}
if(!width||/^[0-9]+$/.test(width)===false)
width=570;if(!height||/^[0-9]+$/.test(height)===false)
height=720;var bodyObj=$('body');var screenWidth=bodyObj.width();if(screenWidth<width){OpenCenWindow(url,'',width,height)
return;}
iframeMakeTrans=makeTrans?1:0;var iframe=$('iframe#iframeOverlay');if(iframe.length==0){iframe=$$('iframe#iframeOverlay');iframe.attr({allowTransparency:true,frameBorder:0,name:'iframeOverlay'}).css({position:'absolute','z-index':250,display:'none',top:0,left:0}).load(iframeLoaded);$('body').prepend(iframe);}
if(scrolling){iframe.attr('scrolling','auto');}
else{iframe.attr('scrolling','no');}
iframe.attr('src',url).width(width).height(height)
centerObj(iframe);showOverlay(iframe);}
function iframeLoaded(){if($.browser.msie&&$.browser.version<=6&&!window["XMLHttpRequest"]){fixPNGInFrame();}
if(iframeMakeTrans){var cont=this.contentWindow.document;$('body',cont).css('background-color','transparent');}}
function hideIframe(){hideOverlay();}
function closeWindow(){if(top.location!=this.location){if(typeof(parent.hideOverlay)=='function'){parent.hideOverlay();}}
else{window.close();}}
function showInOverlay(id,width,height,standardLayout,hideClose){var div=$('div#divOverlay');if(div.length==0){div=$$('div#divOverlay')
div.css({position:'absolute','z-index':250,display:'none'})
$('body').prepend(div);}
div.html('');var obj=$('#'+id);var inner=obj.clone().attr('id',id+'-overlay').show();if(standardLayout){inner=wrapInStandardLayout(inner);if(!hideClose){inner.append($$('tr',$$('td',$$('a',closeText,{href:window.location,onclick:'hideOverlay();return false;'}),{colspan:3,style:'text-align:right'})));}}
div.append(inner);var dimensionsTest=false;if(div.height()==0){dimensionsTest=true;div.css({visibility:'hidden',display:'block'})
inner.css({visibility:'hidden'})}
if(!width||/^[0-9]+$/.test(width)===false)
width=div.width();if(!height||/^[0-9]+$/.test(height)===false)
height=div.height();if(dimensionsTest){div.css({visibility:'',display:'none'})
inner.css({visibility:''})}
div.width(width).height(height)
centerObj(div);showOverlay(div);}
function setTooltip(target,content,width,standardLayout){if(typeof target=='string'){target=$('#'+target);}
$(target).hover(function(eventObject){showTooltip(content,width,standardLayout,eventObject.target);},function(eventObject){hideTooltip();})}
function showTooltip(content,width,standardLayout,target){var div=$('div#tooltip');if(div.length==0){div=$$('div#tooltip')
div.css({position:'absolute','z-index':250})
$('body').prepend(div);}
div.html('');var obj=false;if(content.length<20){obj=$('#'+content);}
var inner=false;if(obj.length==1){inner=obj.clone().attr('id',content+'-overlay').show();}
else{inner=content;}
if(standardLayout){inner=wrapInStandardLayout(inner);}
div.append(inner).css({width:'auto',height:'auto'}).show();if(!width||/^[0-9]+$/.test(width)===false)
width=div.width();var height=div.height();var targetObj=$(target);var targetPos=targetObj.offset();var left=targetPos.left+targetObj.width()+5;var top=targetPos.top+targetObj.height()+5;var bodyObj=$('body');var screenWidth=bodyObj.width();var screenHeight=bodyObj.height();var scrollLeft=document.documentElement.scrollLeft;var scrollTop=document.documentElement.scrollTop;if((top+height)>(scrollTop+screenHeight)){top=targetPos.top-height-5;}
if((left+width)>(scrollLeft+screenWidth)){left=targetPos.left-width-5;}
div.css({width:width+'px',height:height+'px',top:top+'px',left:left+'px'})}
function hideTooltip(){$('div#tooltip').hide();}
function showSplash(msg,time,action){div=$$('div#splashMessage').html(msg);$('body').append(div);showInOverlay('splashMessage',0,0,1,1);setTimeout(action,time*1000);}
function fixPNGInFrame(){var cont=this.contentWindow.document;$('[src$=png]',cont).each(function(){this.style.filter='progid:DXImageTransform.Microsoft.AlphaImageLoader(src='+this.src+');';this.src='/pics/spacer.gif';})}
function wrapInStandardLayout(obj){return $$('table',$$('tr',$$('td',{style:'background:url(/layout/images/left_top_corner.gif) no-repeat;width:12px;height:12px;padding:0;'}),$$('td',{style:'background:url(/layout/images/middle_top_stretch.gif) repeat-x;padding:0;'}),$$('td',{style:'background:url(/layout/images/right_top_corner.gif) no-repeat;width:12px;padding:0;'})),$$('tr',$$('td',{style:'background:url(/layout/images/middle_left_stretch.gif) repeat-y;padding:0;'}),$$('td',obj,{style:'padding:0;'}),$$('td',{style:'background:url(/layout/images/middle_right_stretch.gif) repeat-y;padding:0;'}),{style:'background-color:#FFF7DD'}),$$('tr',$$('td',{style:'background:url(/layout/images/left_bottom_corner.gif) no-repeat;height:12px;padding:0;'}),$$('td',{style:'background:url(/layout/images/middle_bottom_stretch.gif) repeat-x;padding:0;'}),$$('td',{style:'background:url(/layout/images/right_bottom_corner.gif) no-repeat;padding:0;'})),{cellspacing:0,cellpadding:0,border:0})}
function centerObj(obj){var viewWidth=document.documentElement.clientWidth;var viewHeight=document.documentElement.clientHeight;var marginTop=viewHeight/2-obj.height()/2;if(marginTop<0)
marginTop=0;var marginLeft=viewWidth/2-obj.width()/2;if(marginLeft<0)
marginLeft=0;marginTop+=document.documentElement.scrollTop;marginLeft+=document.documentElement.scrollLeft;obj.css({'margin-top':marginTop+'px','margin-left':marginLeft+'px'});}
function fixFooter(){var footer=$('div.footer').css('display','none');var innerFooter=$('div',footer);var screenHeight=document.documentElement.scrollHeight;if(innerFooter.length==0){footer=$('div.footer');footer.remove().removeClass('footer').prependTo('body').wrap('<div class="footer"></div>').parent();footer=$('div.footer').css({position:'absolute','z-index':-5,width:'100%','text-align':'left'})
var adminFooter=$('div#adminFooter').css('margin-left',0)
$('div',footer).css({position:'absolute',bottom:0,width:'100%','text-align':'center',display:''}).prepend(adminFooter)
if($.browser.mozilla&&parseFloat($.browser.version)<=1.8){$('body *:not(script,noscript)').each(function(){var obj=$(this);var curZ=obj.css('z-index');if(curZ=='auto'){curZ=0;}
obj.css('z-index',parseInt(curZ)+10);});footer.css('z-index',1);}}
footer.css({height:(screenHeight+100)+'px',display:'block'});}
var windowObj;function OpenCenWindow(url,winname,width,height){var x=0.5*(window.screen.width-width);var y=0.5*(window.screen.height-height);if(typeof(windowObj)!='undefined'){windowObj.close();}
var posStr=", screenX="+x+", screenY="+y;if($.browser.msie){posStr=", left="+x+", top="+y;}
var pStr='resizable=yes, scrollbars=yes, status=no,width='+width+', height='+height+', alwaysRaised=1, addressbar=no, titlebar=no, toolbar=no, menubar=no, status=no';var windowObj=window.open(url,winname,pStr+posStr);windowObj.focus();return windowObj;}
function $$(tagName){var max=arguments.length-1,options={},obj=null,match=null;if(typeof arguments[max]=='object'&&!(arguments[max].html)){options=arguments[max--];}
if(match=/^([\w-]+)(#([\w-]+))?((\.[\w-]+)*)$/.exec(tagName)){var obj=$(document.createElement(match[1]));if(match[3])obj[0].id=match[3];if(match[4])obj[0].className=match[4].replace(/\./g,' ');for(var k in options){if(k=='hover'&&options[k]instanceof Array){obj.hover(options[k][0],options[k][1]);}else if($.isFunction(options[k])){obj.bind(k,options[k]);}else{obj.attr(k,options[k])}}
for(var i=1;i<=max;i++)obj.append(arguments[i]);}
return obj;};
/* header.js */
var jsTimer=new Array();var picMaxSize=20;var picMoveSpeed=10;var picSizes=new Array();var picXoriginal=new Array();var picYoriginal=new Array();var picWidthoriginal=new Array();var picHeightoriginal=new Array();picSizes[0]=0;picSizes[1]=0;picSizes[2]=0;picSizes[3]=0;picSizes[4]=0;picSizes[5]=0;picSizes[6]=0;picSizes[7]=0;picSizes[8]=0;picSizes[9]=0;picSizes[10]=0;picSizes[11]=0;picSizes[12]=0;picSizes[13]=0;picSizes[14]=0;var picDirections=new Array();picDirections[0]=3;picDirections[1]=3;picDirections[2]=3;picDirections[3]=3;picDirections[4]=3;picDirections[5]=3;picDirections[6]=3;picDirections[7]=3;picDirections[8]=3;picDirections[9]=3;picDirections[10]=3;picDirections[11]=3;picDirections[12]=3;picDirections[13]=3;picDirections[14]=3;function SaveOrigStartPos(picnum)
{var imgObj
if(imgObj=document.getElementById('houseimage'+picnum))
{var picCssClass=getCSSClass(imgObj)
picYoriginal[picnum]=parseInt(picCssClass.top.replace("px",""));picXoriginal[picnum]=parseInt(picCssClass.left.replace("px",""));picWidthoriginal[picnum]=parseInt(picCssClass.width.replace("px",""));picHeightoriginal[picnum]=parseInt(picCssClass.height.replace("px",""));}}
function StartGrowing(picnum)
{if(picDirections[picnum]==3)
{SaveOrigStartPos(picnum);picDirections[picnum]=0;}
if(picDirections[picnum]<1)
{jsTimer[picnum]=setTimeout("resizepic("+picnum+")",picMoveSpeed);}
if(picSizes[picnum]<picMaxSize)
{picDirections[picnum]=1;}}
function Startdecreasing(picnum)
{if(picDirections[picnum]<1)
{jsTimer[picnum]=setTimeout("resizepic("+picnum+")",picMoveSpeed);}
if(picSizes[picnum]>0)
{picDirections[picnum]=2;}
else
{if(picDirections[picnum]==1)
{picDirections[picnum]=0;}}}
function resizepic(picnum)
{var PictureObj=document.getElementById('houseimage'+picnum);if(picDirections[picnum]==1)
{if(PictureObj)
{picSizes[picnum]++;picSizes[picnum]++;}}
if(picDirections[picnum]==2)
{if(PictureObj)
{picSizes[picnum]--;picSizes[picnum]--;}}
if(picSizes[picnum]<1)
{picSizes[picnum]=0;picDirections[picnum]=0;}
if(picSizes[picnum]>picMaxSize-1)
{picSizes[picnum]=picMaxSize;picDirections[picnum]=0;}
if(PictureObj)
{PictureObj.style.left=(picXoriginal[picnum]-picSizes[picnum])+'px';PictureObj.style.top=(picYoriginal[picnum]-picSizes[picnum])+'px';PictureObj.style.width=(picWidthoriginal[picnum]+picSizes[picnum]*2)+'px';PictureObj.style.height=(picHeightoriginal[picnum]+picSizes[picnum]*2)+'px';}
if(picDirections[picnum]!=0)
{jsTimer[picnum]=setTimeout("resizepic("+picnum+")",picMoveSpeed);}}
function Blink()
{var obj;if(obj=document.getElementById("flagsContainer"))
{if(obj.style.display!='none')
{obj.style.display='none';}
else
{obj.style.display='block';}}}
function getCSSClass(obj)
{if(obj.currentStyle)
{return obj.currentStyle;}
else if(document.defaultView&&document.defaultView.getComputedStyle)
{return document.defaultView.getComputedStyle(obj,"");}}
function fixPopupPosition(popupname)
{if(document.getElementById(popupname))
{getWindowSize();document.getElementById(popupname).style.paddingLeft=(wWidth-440)/2+'px';}}
function correctPNG(showLayout)
{var arVersion=navigator.appVersion.split("MSIE");var version=parseFloat(arVersion[1]);if((version>=5.5)&&(document.body.filters))
{for(var i=0;i<document.images.length;i++)
{var img=document.images[i];var imgName=img.src.toUpperCase();if(imgName.substring(imgName.length-3,imgName.length)=="PNG")
{var imgID=(img.id)?"id='"+img.id+"' ":"";var imgClass=(img.className)?"class='"+img.className+"' ":"";var imgTitle=(img.title)?"title='"+img.title+"' ":"title='"+img.alt+"' ";var imgStyle="display:inline-block;"+img.style.cssText;if(img.align=="left")imgStyle="float:left;"+imgStyle;if(img.align=="right")imgStyle="float:right;"+imgStyle;if(img.parentElement.href)imgStyle="cursor:hand;"+imgStyle;var strNewHTML="<span "+imgID+imgClass+imgTitle
+" style=\""+"width:"+img.width+"px; height:"+img.height+"px;"+imgStyle+";"
+"filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
+"(src=\'"+img.src+"\', sizingMethod='scale');\"></span>"
img.outerHTML=strNewHTML;i=i-1;}}}
if(showLayout=="off")
{resizeResultPanel();resizeResultPanel();}
else
{if(document.getElementById('rightNavBar'))
{document.getElementById('rightNavBar').style.display='block';}}}
function ResizeTotalContentTo(newHeight)
{if(document.getElementById('totalContent'))
{document.getElementById('totalContent').style.height=newHeight;}}
function ResizeTotalContent(showLayout)
{if(showLayout!="off")
{if(document.getElementById('totalContent'))
{if(document.getElementById('rightNavBar'))
{document.getElementById('totalContent').style.height=document.getElementById('rightNavBar').offsetHeight+60;}
else
{document.getElementById('totalContent').style.height=document.getElementById('contentArea').offsetHeight+60;}}}}
var wWidth,wHeight;var db=1;function hideRightBar()
{getWindowSize();if(wWidth<1200)
{if(document.getElementById('rightHTML'))
{document.getElementById('rightHTML').style.display='none';}
if(document.getElementById('rightBackground'))
{document.getElementById('rightBackground').style.display='none';}
if(document.getElementById('periodContainer'))
{document.getElementById('periodContainer').style.display='none';}}}
function resizeResultPanel()
{var sizeString;var contentareasize;getWindowSize();if(document.getElementById('resultpanel'))
{if(wWidth<785)
{if(wWidth<670)
{document.getElementById('searchMenuItemImgBar').style.display='none';document.getElementById('searchBoxDiv').style.display='none';}
else
{document.getElementById('searchMenuItemImgBar').style.display='block';document.getElementById('searchBoxDiv').style.display='block';}
if(wWidth<520)
{wWidth=520;}
document.getElementById('rightNavBar').style.display='none';document.getElementById('contentArea').style.height='645px';sizeString=(wWidth-30)+'px';if(document.getElementById('contentArea'))
{document.getElementById('contentArea').style.overflow='hidden';document.getElementById('contentArea').style.height='auto';DivHeight=document.getElementById('contentArea').clientHeight;document.getElementById('contentArea').style.height=(DivHeight-20)+'px';}}
else
{document.getElementById('searchMenuItemImgBar').style.display='block';document.getElementById('searchBoxDiv').style.display='block';document.getElementById('rightNavBar').style.display='block';document.getElementById('contentArea').style.overflow='';if(document.getElementById('rightNavBar').offsetHeight>document.getElementById('resultpanel').offsetHeight)
{document.getElementById('contentArea').style.height=document.getElementById('rightNavBar').offsetHeight+60;}
else
{document.getElementById('contentArea').style.height=document.getElementById('resultpanel').offsetHeight+60;}
sizeString=(wWidth-330)+'px';if(document.getElementById('contentArea'))
{var agt=navigator.userAgent.toLowerCase();var is_ie=((agt.indexOf("msie")!=-1)&&(agt.indexOf("opera")==-1));if((document.getElementById('rightNavBar').offsetHeight<document.getElementById('resultpanel').offsetHeight)||is_ie)
{document.getElementById('contentArea').style.overflow='hidden';}}}
contentareasize=(wWidth-20)+'px';document.getElementById('resultpanel').style.width=sizeString;if(document.getElementById('contentArea'))
{document.getElementById('contentArea').style.width=contentareasize;}}
else
{if(document.getElementById('rightNavBar'))
{document.getElementById('rightNavBar').style.display="block";}
if(document.getElementById('searchMenuItemImgBar'))
{if(wWidth<662)
{document.getElementById('searchMenuItemImgBar').style.display='none';}
else
{document.getElementById('searchMenuItemImgBar').style.display='block';}}}
if(document.getElementById('searchMenuItemImgBar')&&document.getElementById('pageSearchButton')&&document.getElementById('searchMenuItemImgBar').style.display!="none")
{searchbuttonypos=55;searchbuttonypos=findyPos(document.getElementById('searchMenuItemImgBar'));document.getElementById('pageSearchButton').style.top=searchbuttonypos;imagebarxpos=findxPos(document.getElementById('searchMenuItemImgBar'));searchbuttonxpos=findxPos(document.getElementById('pageSearchButton'));imgbarwidth=document.getElementById('searchMenuItemImgBar').style.width;imgbarwidth=imgbarwidth.replace("px","");if((searchbuttonxpos-imagebarxpos)<(imgbarwidth-5))
{document.getElementById('searchMenuItemImgBar').style.width=250;}
else
{document.getElementById('searchMenuItemImgBar').style.width=181;}
searchbuttonypos=55;searchbuttonypos=findyPos(document.getElementById('searchMenuItemImgBar'));document.getElementById('pageSearchButton').style.top=searchbuttonypos;}
else
{if(document.getElementById('pageSearchButton'))
{document.getElementById('pageSearchButton').style.top="55px";if(wWidth<660&&!document.getElementById('resultpanel'))
{document.getElementById('pageSearchButton').style.top="81px";}}}
resizeSearchPanel();setPartnersize();}
function resizeSearchPanel()
{var sizeString;if(document.getElementById('searchMenu'))
{sizeString=(wWidth-40)+'px';document.getElementById('searchMenu').style.width=sizeString;}}
function getWindowSize(){wWidth=0;wHeight=0;if(typeof(window.innerWidth)=='number'){wWidth=window.innerWidth;wHeight=window.innerHeight;}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){wWidth=document.documentElement.clientWidth;wHeight=document.documentElement.clientHeight;}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){wWidth=document.body.clientWidth;wHeight=document.body.clientHeight;}
var ieVersion=getInternetExplorerVersion()
if(ieVersion>=7.0)
{wWidth+=1;}}
function findyPos(obj){var curtop=0;if(obj.offsetParent){curtop=obj.offsetTop
while(obj=obj.offsetParent){curtop+=obj.offsetTop}}
return curtop;}
function findxPos(obj){var curleft=0;if(obj.offsetParent){curleft=obj.offsetLeft
while(obj=obj.offsetParent){curleft+=obj.offsetLeft}}
return curleft;}
function getInternetExplorerVersion()
{var rv=-1;if(navigator.appName=='Microsoft Internet Explorer')
{var ua=navigator.userAgent;var re=new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");if(re.exec(ua)!=null)
rv=parseFloat(RegExp.$1);}
return rv;}
function confirmSubmit(confirmtext)
{var agree=confirm(confirmtext);if(agree)
return true;else
return false;}
function setLand(land){}
function changeSearchForm(){}
function NewWindow(mypage,myname,w,h,scroll){var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';win=window.open(mypage,myname,winprops)
if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
function NewWindowBar(mypage,myname,w,h,scroll){var winl=(screen.width-w)/2;var wint=(screen.height-h)/2;winprops='height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable,menubar=0,toolbar=1';win=window.open(mypage,myname,winprops)
if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
function NewWindowPic(mypage,myname,scroll){var winl=500;var wint=screen.height-150;var top=50;var left=50;winprops='height='+wint+',width='+winl+',top='+top+', left='+left+', scrollbars='+scroll+''
win=window.open(mypage,myname,winprops);if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
function NewWindowData(mypage,myname,scroll){var winl=500;var wint=screen.height-250;var top=50;var left=50;winprops='height='+wint+',width='+winl+',top='+top+', left='+left+', scrollbars='+scroll+''
win=window.open(mypage,myname,winprops);if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
function NewWindowVw(mypage,myname,scroll){var winl=500;var wint=300;var top=50;var left=50;winprops='height='+wint+',width='+winl+',top='+top+', left='+left+', scrollbars='+scroll+''
win=window.open(mypage,myname,winprops);if(parseInt(navigator.appVersion)>=4){win.window.focus();}}
function popup(theURL){var top=(screen.height-480)/2;var left=(screen.width-640)/2;afb=window.open(theURL,'Afbeelding','width=640, height=480, top='+top+', left='+left+', scrollbars=no, resizable');}
function popup2(theURL){afb=window.open(theURL,'Afbeelding','width=780, height=500,scrollbars=yes, resizable');}
function popup3(theURL){afb=window.open(theURL,'Afbeelding','width=886, height=591,scrollbars=no, resizable');}
function popupPrices(theURL2){window.open(theURL2,'Prijsspecificatie','width=400, height=360, top=100, left=100, fullscreen=no,resizable=yes,scrollbars=yes,toolbar=0');}
function popupPriceCount(theURL2){window.open(theURL2,'Prijsberekening','width=280, height=180, top=100, left=100, fullscreen=no,resizable=yes,scrollbars=no,toolbar=0');}
function popupPeriodCount(theURL2){window.open(theURL2,'Periode','width=400, height=250, top=100, left=100, fullscreen=no,resizable=yes,scrollbars=no,toolbar=0');}
function printbrochure(){if(window.print){window.print();}}
function verify(){var themessage='U dient de velden gemarkeerd met een \'*\' ingevuld te hebben!';if(document.form.achternaam.value==''||document.form.gebdatum.value==''||document.form.adres.value==''||document.form.postcode.value==''||document.form.woonplaats.value==''||document.form.telefoonnummer.value==''||document.form.email.value==''){themessage=document.form.errmessage.value;}
if(themessage=='U dient de velden gemarkeerd met een \'*\' ingevuld te hebben!'){document.form.submit();}
else{alert(themessage);return false;}}
function verify2(){var themessage='U dient de velden gemarkeerd met een \'*\' ingevuld te hebben!';if(document.form.formachternaam.value==''||document.form.formadres.value==''||document.form.formpostcode.value==''||document.form.formwoonplaats.value==''||document.form.formtelefoonnummer.value==''||document.form.formemail.value==''||document.form.formrekno.value==''){themessage='U dient de velden gemarkeerd met een \'*\' in te vullen!'}
if(themessage=='U dient de velden gemarkeerd met een \'*\' ingevuld te hebben!'){document.form.submit();}
else{alert(themessage);return false;}}
function verifyvoorw(){var themessage='U dient de voorwaarden geaccepteerd te hebben door het vakje aan te vinken voordat uw aanbieding verzonden kan worden!'
if(document.sendform.check.checked==true){document.sendform.submit;}
else{alert(themessage);return false;}}
function formcheck_NotEmpty(formname,elementname,elementdescription){if(eval('document.'+formname+'.'+elementname+'.value')==''){errorMessage=errorMessage+'\n   *  Het veld '+elementdescription+' mag niet leeg zijn.'}}
function formcheck_complete(formname){var errorMessage='';var submitcount=0;if(errorMessage==''){return submitOnce(formname);}
else{alert('Wij verzoeken u vriendelijk te letten op de volgende zaken:\n\n'+errorMessage);errorMessage='';return false;}}
function submitOnce(formname){if(submitcount==0)
{submitcount++;return true;}
else
{alert('Een ogenblik geduld a.u.b.');return false;}}
function doPrint(){if(window.print){window.print();}}
function transMenuInit(){if(TransMenu.isSupported()){TransMenu.initialize();}}
function validateKeyPress(e,validSet){if(window.event||!e.which)
key=e.keyCode;else if(e)
key=e.which;else
return true;keychar=String.fromCharCode(key);validSet+=String.fromCharCode(8);if(validSet.indexOf(keychar)<0)
return false;return true;}
function newImage(arg){if(document.images){rslt=new Image();rslt.src=arg;return rslt;}}
function changeImages(){if(document.images){for(var i=0;i<changeImages.arguments.length;i+=2){document[changeImages.arguments[i]].src=changeImages.arguments[i+1];}}}
var thumbnailsLoaded=false;var shuffleArrayPos=0;var shuffleArrayLength;var huisThumbnailsArray=new Array();var timeOutEnabled=true;function changeShuffleThumbnails(offsetVar){shuffleArrayLength=huisThumbnailsArray.length;if(offsetVar==1||offsetVar==-1){timeOutEnabled=false;if(offsetVar==1){if(shuffleArrayPos==huisThumbnailsArray.length-1){shuffleArrayPos=0;}
else{shuffleArrayPos=shuffleArrayPos+offsetVar;}}
if(offsetVar==-1){if(shuffleArrayPos==0){shuffleArrayPos=huisThumbnailsArray.length-1;}
else{shuffleArrayPos=shuffleArrayPos+offsetVar;}}}
else{if(timeOutEnabled){if(shuffleArrayPos<shuffleArrayLength-1){shuffleArrayPos=shuffleArrayPos+1;}
else{shuffleArrayPos=0;}}}
if((offsetVar==1||offsetVar==-1)||(offsetVar!==1&&offsetVar!==-1&&timeOutEnabled)){changeShufflePic('housethumbnail',huisThumbnailsArray[shuffleArrayPos][1]);document.getElementById('housethumbnaillink').href=huisThumbnailsArray[shuffleArrayPos][5];changeShufflePic('interthumbnail',huisThumbnailsArray[shuffleArrayPos][2]);document.getElementById('interthumbnaillink').href=huisThumbnailsArray[shuffleArrayPos][5];changeShufflePic('surrthumbnail',huisThumbnailsArray[shuffleArrayPos][3]);document.getElementById('surrthumbnaillink').href=huisThumbnailsArray[shuffleArrayPos][5];document.getElementById('shuffleLinkTD').innerHTML='<a style=\'font-size:10px;font-weight:100;\' href='+huisThumbnailsArray[shuffleArrayPos][5]+'>'+huisThumbnailsArray[shuffleArrayPos][4]+'</a>'}
if(offsetVar!==1&&offsetVar!==-1&&timeOutEnabled){restartShuffle=setTimeout('changeShuffleThumbnails()',8000);}}
function changeShufflePic(imgname,imgsrc){if(thumbnailsLoaded){if(document.all){document.images[imgname].style.filter='blendTrans(duration=0.5)';document.images[imgname].filters.blendTrans.Apply();}
document[imgname].src=imgsrc;if(document.all){document.images[imgname].filters.blendTrans.Play();}}}<!--
var requiredMajorVersion=7;var requiredMinorVersion=0;var requiredRevision=0;var jsVersion=1.0;var lastPageNum='1';var lastsearchurl='';<!--
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;jsVersion=1.1;function JSGetSwfVer(i){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;descArray=flashDescription.split(' ');tempArrayMajor=descArray[2].split('.');versionMajor=tempArrayMajor[0];versionMinor=tempArrayMajor[1];if(descArray[3]!=''){tempArrayMinor=descArray[3].split('r');}else{tempArrayMinor=descArray[4].split('r');}
versionRevision=tempArrayMinor[1]>0?tempArrayMinor[1]:0;flashVer=versionMajor+'.'+versionMinor+'.'+versionRevision;}else{flashVer=-1;}}
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{flashVer=-1;}
return flashVer;}
function DetectFlashVer(reqMajorVer,reqMinorVer,reqRevision)
{reqVer=parseFloat(reqMajorVer+'.'+reqRevision);for(i=25;i>0;i--){if(isIE&&isWin&&!isOpera){versionStr=VBGetSwfVer(i);}else{versionStr=JSGetSwfVer(i);}
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('.');}
versionMajor=versionArray[0];versionMinor=versionArray[1];versionRevision=versionArray[2];versionString=versionMajor+'.'+versionRevision;versionNum=parseFloat(versionString);if((versionMajor>reqMajorVer)&&(versionNum>=reqVer)){return true;}else{return((versionNum>=reqVer&&versionMinor>=reqMinorVer)?true:false);}}}
return(reqVer?false:0.0);}
