function writeIE(){if(is.ie4comp!=-1&&is.ns!=1){document.write('<link rel="stylesheet" type="text/css" href="'+viewFolder+'css/ie.css" />');}}function init(){$("body").removeClass("no-js");onScroll(updateTopButton);}function openApplicationLink(b,a){if(b==null||b==""){return false;}if(a!="self"){window.open(b,a);}else{window.location.href=b;}}function setCookie(a,d,c){var b=new Date();b.setDate(b.getDate()+c);document.cookie=a+"="+escape(d)+((c==null)?"":";expires="+b.toGMTString()+";path=/");}function setCookie_dommel(b,e,d,a){var c=new Date();if(e==false){d=7;}c.setDate(c.getDate()+d);document.cookie=b+"="+escape(a)+((d==null)?"":";expires="+c.toGMTString()+";path=/");}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length;}return unescape(document.cookie.substring(c_start,c_end));}}return"";}var internal_link=false;function showEnquetePopup(b){var a=getCookie("show_enquete_"+b);if(internal_link==true){return false;}else{if(a!=null&&a=="true"){return false;}else{return true;}}}function internalLinks(){var b=getElt("page");if(b){if(!document.getElementsByTagName){return;}var a=document.getElementsByTagName("a");for(var c=0;c<a.length;c++){if(a[c].className!="blank"&&a[c].className!="popupblank"&&a[c].className!="popup_blank"&&a[c].className!="extern"&&a[c].className!="print"){a[c].onclick=function(){internal_link=true;};}}}}function fixBottoms(){$("div.kolom_holder").find("div.tweekoloms:last").css("border-bottom-style","none");$("div.kolom_holder").find("ul.index").find("li:last").addClass("lastli");}var rotateAction=null;function initRotator(){var a=$("div#rotator").find("img:first").css("height");$("div#rotator").css("height",a);$("div#rotator ul li").css({opacity:0});$("div#rotator ul li:first").css({opacity:1});}function theRotator(){$("div#rotator").append('<div id="rotator_stop"><a href="'+document.URL+'">Stop animatie</a></div>');if($("div#rotator ul li").length>1){rotateAction=setInterval("rotate()",6000);}$("#rotator_stop a").bind("click",function(){if(rotateAction!=null){clearInterval(rotateAction);rotateAction=null;$("#rotator_stop a").text("Start animatie");}else{rotateAction=setInterval("rotate()",6000);$("#rotator_stop a").text("Stop animatie");}return false;});}function rotate(){var a=($("div#rotator ul li.show")?$("div#rotator ul li.show"):$("div#rotator ul li:first"));var b=((a.next().length)?((a.next().hasClass("show"))?$("div#rotator ul li:first"):a.next()):$("div#rotator ul li:first"));b.css({opacity:0}).addClass("show").animate({opacity:1},1000);a.animate({opacity:0},1000).removeClass("show");}
