nextSlideTimerId = true; var nextSlideAmount = -139; function nextSlide(){ if(nextSlideTimerId){ setTimeout(function(){ dw_scrollObj.scrollBy('wn',nextSlideAmount,0,500,document.getElementById('buttonForward'),document.getElementById('buttonBackward')); },10); try { clearTimeout(nextSlideTimerId); nextSlideTimerId = setTimeout(nextSlide,4000); } catch(err){ } } } function showmenuitem(id){ thisdiv = (document.getElementById)? document.getElementById('main_'+id): document.all['main_'+id]; if(thisdiv){ thisdiv.ClassName='menuitemActive'; } } function hidemenuitem(id){ thisdiv = (document.getElementById)? document.getElementById('main_'+id): document.all['main_'+id]; if(thisdiv){ thisdiv.ClassName='menuitem'; } } function setCookie(name, value, expires, path, domain, secure) { var curCookie = name + "=" + escape(value) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); document.cookie = curCookie; } function fixDate(date) { var base = new Date(0); var skew = base.getTime(); if (skew > 0) date.setTime(date.getTime() - skew); } var pos=''; var adminHeight=''; function changeposadminmenu() { if(pos=='close'){ admindiv=getElement('adminmenu'); adminimg=getElement('adminmenuimg'); if(admindiv){ admindiv.style.width='100%'; admindiv.style.height=adminHeight+'px'; admindiv.style.overflow='visible'; if(adminimg){ adminimg.src='/images/goright.gif'; adminimg.title='Minimize menubar'; } pos='open'; } }else{ admindiv=getElement('adminmenu'); adminimg=getElement('adminmenuimg'); if(admindiv){ adminHeight=getElementHeight('adminmenu'); admindiv.style.width='21px'; admindiv.style.height='19px'; admindiv.style.overflow='hidden'; if(adminimg){ adminimg.src='/images/goleft.gif'; adminimg.title='Maximize menubar'; } pos='close'; } } } function getframedimensions() { if (self.innerWidth) { frameWidth = self.innerWidth; frameHeight = self.innerHeight; }else if (document.documentElement && document.documentElement.clientWidth) { frameWidth = document.documentElement.clientWidth; frameHeight = document.documentElement.clientHeight; }else if (document.body) { frameWidth = document.body.clientWidth; frameHeight = document.body.clientHeight; } var framedim = new Array(frameWidth,frameHeight); return framedim; } function repairwidth() { if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } thisfooter=getElementById('footer'); if(thisfooter){ thisfooter.style.width=myWidth+"px"; } } ThisSearchCache=new Array(); function search_highlight(id,status,extra){ ThisTd=document.getElementById('search_polaroid_'+id); if(ThisTd){ ThisTd.src='http://www.kerckewijck.nl/images/polaroid'+extra + status+'.gif'; } ThisTd1=document.getElementById('search_mid_'+id); if(ThisTd1){ ThisTd1.style.backgroundImage='url(http://www.kerckewijck.nl/images/search_result'+status+'.jpg)'; } ThisImg=document.getElementById('search_mid1_'+id); if(ThisImg){ ThisImg.src='http://www.kerckewijck.nl/images/search_result'+status+'.jpg'; } ThisTd=document.getElementById('search_prijs_'+id); if(ThisTd){ ThisTd.style.backgroundImage='url(http://www.kerckewijck.nl/images/search_result'+status+'.jpg)'; } ThisImg1=document.getElementById('search_prijs1_'+id); if(ThisImg1){ ThisImg1.src='http://www.kerckewijck.nl/images/search_result'+status+'.jpg'; } ThisTd=document.getElementById('search_status_'+id); if(ThisTd){ ThisTd.style.backgroundImage='url(http://www.kerckewijck.nl/images/search_result'+status+'.jpg)'; } ThisStatus=document.getElementById('search_statusimg_'+id); if(ThisStatus){ if(status!=""){ ThisSearchCache[id]=ThisStatus.src.replace(".jpg",""); } ThisStatus.src=ThisSearchCache[id]+status+'.jpg'; } } var TabCache=false; var FotoActivated=false; function tab_object(id){ if(TabCache==id){ return false; }else{ var ThisCache=document.getElementById(TabCache); if(ThisCache){ ThisCache.style.display='none'; } var ThisTab=document.getElementById('tab_'+TabCache); if(ThisTab){ ThisTab.className='tabs'; } var ThisTabLeftImg=document.getElementById('tab_'+TabCache+'_left'); if(ThisTabLeftImg){ ThisTabLeftImg.src='http://www.kerckewijck.nl/images/tab-down-left.jpg'; } var ThisTabRightImg=document.getElementById('tab_'+TabCache+'_right'); if(ThisTabRightImg){ ThisTabRightImg.src='http://www.kerckewijck.nl/images/tab-down-right.jpg'; } var ThisBlock=document.getElementById(id); if(ThisBlock){ ThisBlock.style.display='block'; if(id=="locatie"){ if(nonlocation){ thisGoogle=document.getElementById('googlemap'); thisNonlocation=document.getElementById('nonlocatie'); if(thisGoogle && thisNonlocation){ thisGoogle.innerHTML=thisNonlocation.innerHTML; } }else{ GoogleMaps(); } }else{ GUnload(); } if(id=="reageer"){ if(doreageer){ thisReageer=document.getElementById('nureageren'); thisDoreageer=document.getElementById('doreageer'); if(thisReageer && thisDoreageer){ thisReageer.innerHTML=thisDoreageer.innerHTML; } } } if(id=="foto" && !FotoActivated){ FotoActivated=true; var wn1do = new dw_scrollObj('wn1', 'lyr2',null); dw_scrollObj.GeckoTableBugFix('wn1'); } } var ThisTab=document.getElementById('tab_'+id); if(ThisTab){ ThisTab.className='tabsup'; } var ThisTabLeftImg=document.getElementById('tab_'+id+'_left'); if(ThisTabLeftImg){ ThisTabLeftImg.src='http://www.kerckewijck.nl/images/tab-up-left.jpg'; } var ThisTabRightImg=document.getElementById('tab_'+id+'_right'); if(ThisTabRightImg){ ThisTabRightImg.src='http://www.kerckewijck.nl/images/tab-up-right.jpg'; } TabCache=id; } } var Fotoid=false; function foto_overzicht(id){ if(FotoOverzicht[id]){ ThisFoto=document.getElementById('foto_overzicht'); thisSource=document.getElementById.src; if(ThisFoto){ if(document.all){ ThisFoto.style.filter="blendTrans(duration=2)" ThisFoto.style.filter="blendTrans(duration=crossFadeDuration)" ThisFoto.filters.blendTrans.Apply() } ThisFoto.style.backgroundImage='url('+FotoOverzicht[id]+')'; if(document.all){ ThisFoto.filters.blendTrans.Play() } } ThisText=document.getElementById('foto_tekst'); if(ThisText){ ThisText.innerText=TextOverzicht[id]; } Fotoid=id; } } function fotoOverzicht(direction){ if(direction=="prev"){ var id=Fotoid-1; if(id < 0){ id = FotoOverzicht.length-1; } }else{ var id=Fotoid+1; if(!FotoOverzicht[id]){ id=0; } } foto_overzicht(id); } var SlideShow = false; function Fotoslideshow(actie){ if(actie=='start'){ if(SlideShow){ SlideShow = false; document.getElementById('slideshowimg').src='http://www.kerckewijck.nl/images/play.gif'; clearTimeout(Timer); }else{ SlideShow = true; Timer = setTimeout("Fotoslideshow()",4000); fotoOverzicht('next'); document.getElementById('slideshowimg').src='http://www.kerckewijck.nl/images/pause.gif'; } }else{ fotoOverzicht('next'); Timer = setTimeout("Fotoslideshow()",4000); } } function showsearchdir(id,direction){ thisImg=document.getElementById('searchorder_'+id); if(thisImg){ if(direction=='asc'){ thisImg.src='http://www.kerckewijck.nl/images/search_asc.gif'; }else{ thisImg.src='http://www.kerckewijck.nl/images/search_desc.gif'; } } }