function getElemRefs(a){var b=document.getElementById?document.getElementById(a):document.all?document.all[a]:document.layers?document.layers[a]:null;if(b)b.css=b.style?b.style:b;return b}function hideLayer(a){var b=getElemRefs(a);if(b&&b.css)b.css.visibility="hidden"}function showLayer(a){var b=getElemRefs(a);if(b&&b.css)b.css.visibility="visible"}function swapLayers(a){if(cur_lyr)hideLayer(cur_lyr);showLayer(a);cur_lyr=a}function resizeBGImage(a,b){c=a;d=b;if($(window).width()>a){var c=$(window).width();var d=Math.round($(window).width()*(b/a));if(d<$(window).height()){d=$(window).height();c=Math.round($(window).height()*(a/b))}$("#bg-image img").height(d);$("#bg-image img").width(c)}else if(b<$(window).height()){d=$(window).height();c=Math.round($(window).height()*(a/b));$("#bg-image img").height(d);$("#bg-image img").width(c)}}function slideSwitch(){var a=$("#bg-image img.active");if(a.length==0)a=$("#bg-image img.slide:last");var b=a.next().length?a.next():$("#bg-image img.slide:first");a.addClass("last-active");b.addClass("active").show();a.fadeOut(400,function(){a.removeClass("active last-active");setTimeout(slideSwitch,8e3)})}var bgWidth=1e3;var bgHeight=600;var slideInterval;$(document).ready(function(){resizeBGImage(bgWidth,bgHeight);$active=$("#bg-image img.slide:first");$active.one("load",function(){setTimeout(slideSwitch,6e3)}).each(function(){if(this.complete){$(this).load()}});$(window).resize(function(){resizeBGImage(bgWidth,bgHeight)})});$(document).ready(function(){$("a[rel=fancybox]").fancybox({transitionIn:"elastic",transitionOut:"elastic",titlePosition:"over",titleFormat:function(a,b,c,d){return'<span id="fancybox-title-over">Afbeelding '+(c+1)+" / "+b.length+(a.length?"   "+a:"")+"</span>"}})});$(document).ready(function(){$("a.group").fancybox({transitionIn:"elastic",transitionOut:"elastic",titlePosition:"over",titleFormat:function(a,b,c,d){return'<span id="fancybox-title-over">Afbeelding '+(c+1)+" / "+b.length+(a.length?"   "+a:"")+"</span>"}})});$(document).ready(function(){$(".mc-left a").fancybox({transitionIn:"elastic",transitionOut:"elastic",titlePosition:"over",titleFormat:function(a,b,c,d){return'<span id="fancybox-title-over">Afbeelding '+(c+1)+" / "+b.length+(a.length?"   "+a:"")+"</span>"}})});swapLayers("info");var origWidth,origHeight;if(document.layers){origWidth=window.innerWidth;origHeight=window.innerHeight;window.onresize=function(){if(window.innerWidth!=origWidth||window.innerHeight!=origHeight)history.go(0)}}var cur_lyr;

$(document).ready(function(){var a=0;$("#slideshow_1").css("overflow","hidden");$("ul#slides_1").cycle({fx:"fade",speed:1e3,timeout:5e3,pagerEvent:"mouseover",fastOnEvent:false,pauseOnPagerHover:true,prev:"#prev_1",next:"#next_1"});$("#slideshow_1").hover(function(){$("ul#prevnextnav_1").fadeIn()},function(){$("ul#prevnextnav_1").fadeOut()})})
