var iqRoot=window.location.host,keepAlive=false,previewTimeout,deBilt={init:function(){var n="fontSize",m="/pages/Zoekresultaten.aspx?args=",i="[class*=UsefulInfo]",y="[class*=UsefulInfo]:visible:not(:empty)",x=".scfForm .scfSectionContent > div",w=".scfValidationSummary",l="#main-nav",v="div#main-nav ul li a",u="div#main-nav ul li, .actions > li",t="mouseleave",b="hover",d="li",s="mouseover",r=".sorting",k="#fancy_title",h="#fancy_content",g="class",j="#tooltip",q="*:has(>.tooltip)",e="body",a=false,c="click",p="a[href*='~/media']:not(a[href*='?ext='])",f="width";$j(".ie-6 .selectfix select, .ie-7 .selectfix select, .ie-8 .selectfix select").focus(function(){$j(this).data("origWidth",$j(this).css(f)).css(f,"auto")}).blur(function(){$j(this).css(f,"100%")}),$j(p).bind(c,function(){window.open($j(this).attr("href"));return a}),$j(p).keydown(function(b){if(b.keyCode==13){window.open($j(this).attr("href"));return a}}),$j(e).removeClass("no-js").addClass("js");$j("label").click(function(){$j(this).attr("for")!=""&&$j("#"+$j(this).attr("for")).click().focus()});$j("div.tabs").tabs();var o=$j(".slideshow .slides"),z=$j(o).children().size();z>1&&$j(o).parent().after("<ul class='options'><li class='prev'><a href='#slideshow' title='Vorige'>Vorige</a></li><li class='next'><a href='#slideshow' title='Volgende'>Volgende</a></li></ul>");$j(o).after("<ul class='nav clear' />").cycle({fx:"fade",timeout:8e3,pause:true,next:".next a",prev:".prev a",speed:"slow",pager:".nav"});var A=-10,B=35;$j(q).hover(function(){var a=$j(this).children(".tooltip");$j(a).hide();var b=$j(a).html();$j(e).append('<span id="tooltip">'+b+"</span>")},function(){$j(j).remove()});$j(q).bind("mousemove",function(b){var c=$j(this).offset(),a=$j(j);$j(a).css({zIndex:"99999",top:b.pageY+B,left:b.pageX+A-$j(a).outerWidth()/2})});$j("dl.viewswitch.client ul li a").bind(c,function(){var c=$j(this).attr("rel"),d=$j(this).attr(g),b=$j(this).parent().attr(g);b!="disabled"&&b!="active"&&deBilt.switchView(c,d);return a});$j("ul.videoList span.image a").fancybox({overlayOpacity:.9,frameWidth:560,frameHeight:340,callbackOnClose:function(){$j(h).empty()}});$j("ul.photoList a, dd a.iframe, ul.photoAankeilerList a").fancybox({overlayOpacity:.9});$j(".scfRadioButtonListGeneralPanel a").fancybox({overlayOpacity:.9,callbackOnShow:function(){$j(k).hide()}});$j(".enquete-image a.iframe").fancybox({overlayOpacity:.9,callbackOnShow:function(){$j(k).hide()}});$j("a[href*=mailafriend]").fancybox({overlayOpacity:.9,frameWidth:520,frameHeight:480,disablePreload:true,hideOnContentClick:a});$j("a[href^='http://pulse.companywebcast.nl']").fancybox({overlayOpacity:.9,frameWidth:940,frameHeight:540,hideOnContentClick:a,callbackOnClose:function(){$j(h).empty()}});$j("a[href^='http://player.companywebcast.com']").fancybox({overlayOpacity:.9,frameWidth:940,frameHeight:540,hideOnContentClick:a,callbackOnClose:function(){$j(h).empty()}});$j("a.lisIndex").css({"float":"left"}).after('<a href="#" class="toggle-list icon icon_folder_closed">Inklappen/uitklappen</a>');$j("a.lisDocument").closest("tr").hide();$j(".toggle-list").live(c,function(){$j(this).toggleClass("icon_folder_closed").toggleClass("icon_folder_open");$j(this).closest("tbody").children("tr:has(.lisDocument)").toggle();return a});$j(r).bind(s,function(){$j(this).children(d).addClass(b);$j(this).children("li:first-child a").css({"border-top":"1px solid #DDD"})});$j(r).bind(t,function(){$j(this).children(d).removeClass(b)});$j("a.print").bind("click keydown",function(){print();return a});$j(u).bind(s,function(){$j(this).addClass(b)});$j(u).bind(t,function(){$j(this).removeClass(b)});$j(v).bind("focusin",function(){$j(this).parentsUntil(l).filter(d).addClass(b)});$j(v).bind("focusout",function(){$j(this).parentsUntil(l).filter(d).removeClass(b)});$j(".ie6Warning a.close").bind(c,function(){$j(".ie6Warning").slideUp(500);deBilt.createCookie("browserwarning",true,31)});$j(w).length>0&&$j(w).css("display")!="none"&&$j(".scfValidatorRequired").parent().addClass("error");$j(x).has(y).children("[class*=Label]").append('<br /><a href="#" class="help-toggle icon icon_help">Help</a>');$j(x).has(y).not(":empty").find(".scfCheckbox label").append('<br /><a href="#" class="help-toggle help-toggle-checkbox icon icon_help">Help</a>');$j(i).hide(),$j(".help-toggle").live(c,function(){var b=$j(this).parent().parent().parent().attr(g);if(b=="scfCheckboxBorder")$j(this).parent().parent().parent().find(i).slideToggle(250);else $j(this).parent().parent().find(i).slideToggle(250);return a}),$j("div#header-menu input[type='submit']").bind(c,function(){var b=$j("div#header-menu  input.search").val().replace(/^\s*|\s*$/,"").split(" ").join("%20");if(b!="")window.location=m+b;return a});$j("div#header-menu input").keydown(function(b){if(b.keyCode==13){b.preventDefault();var a=$j("div#header-menu input.search").val().replace(/^\s*|\s*$/,"");if(a!="")window.location=m+a.replace(" ","+")}});$j("a[href$='groter']").bind(c,function(){var b=parseInt($j(e).css(n));deBilt.changeFontSize(b+2);return a});$j("a[href$='normaal']").bind(c,function(){deBilt.changeFontSize(12);return a});$j("a[href$='kleiner']").bind(c,function(){var b=parseInt($j(e).css(n));deBilt.changeFontSize(b-2);return a});deBilt.imagePreview(-15,20)},imagePreview:function(c){var a=".imgpreview",b="a.preview";$j(b).mouseover(function(){var b="#preview",d=this;if(!keepAlive){keepAlive=true;d.t=d.title;$j(a).lenght>=2&&$j(a).remove();d.title="";var e=d.t!=""?"<br/>"+d.t:"";$j("body").append("<p id='preview' class='imgpreview'><img src='"+d.rel+"' alt='Image preview' />"+e+"</p>");$j(b).css("top",window.innerHeight/2-$j(b).height()/2+"px").css("left",window.innerWidth/2-$j(b).width()/2+c+"px").fadeIn("fast");$j(b).click(function(){this.title=this.t;$j(a).remove()});$j(b).hover(function(){previewTimeout!=undefined&&clearTimeout(previewTimeout);keepAlive=true},function(){this.title=this.t;$j(a).remove();keepAlive=false})}});$j(b).mouseout(function(){previewTimeout=setTimeout(function(){this.title=this.t;$j(a).remove();keepAlive=false;previewTimeout=undefined},1)})},switchView:function(d,b){var a=$j("#"+d);if($j(a).parent().hasClass("photoList"))$j(a).attr("class","articlesList photoList clear "+b);else $j(a).attr("class","articlesList clear "+b);var c=$j("dl.viewswitch ul li a[rel="+$j(a).attr("id")+"]").parent().parent();c.children("li").removeClass("active");c.children("li").children("a[class="+b+"]").parent().addClass("active");deBilt.createCookie(d,b,7)},setActiveStylesheet:function(b){for(var a,d,c=0;a=document.getElementsByTagName("link")[c];c++){if(a.getAttribute("rel").indexOf("style")!=-1&&a.getAttribute("title"))a.disabled=true;if(a.getAttribute("title")==b){a.disabled=false;deBilt.createCookie("style",b,7)}}},changeFontSize:function(a){$j("body").css({fontSize:a+"px"});deBilt.createCookie("fontsize",a,14)},createCookie:function(e,d,c){if(c){var a=new Date;a.setTime(a.getTime()+c*24*60*60*1e3);var b="; expires="+a.toGMTString()}else b="";document.cookie=e+"="+d+b+"; path=/"},readCookie:function(e){for(var c=e+"=",d=document.cookie.split(";"),b=0;b<d.length;b++){var a=d[b];while(a.charAt(0)==" ")a=a.substring(1,a.length);if(a.indexOf(c)==0)return a.substring(c.length,a.length)}return null}};$j(document).ready(function(){deBilt.init();var b=deBilt.readCookie("fontsize");b&&deBilt.changeFontSize(b);var a=deBilt.readCookie("style");a&&deBilt.setActiveStylesheet(a);$j(".articlesList").each(function(){var b=$j(this).attr("id"),a=deBilt.readCookie(b);a&&deBilt.switchView(b,a)})});$j.extend({getUrlVars:function(){for(var b=[],a,d=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),c=0;c<d.length;c++){a=d[c].split("=");b.push(a[0]);b[a[0]]=a[1]}return b}});
