$(document).ready(function(){$(".gallery-pre").addClass("gallery-js");$("ul.gallery-js").galleria({history:false,clickNext:true,insert:"#gallery-image",onImage:function(d,b,a){if(d){d.css("display","none").fadeIn(1000);d.attr("title","Next image >>")}b.css("display","none").fadeIn(1000);b.siblings(".date").css("display","none").fadeIn(1000);b.siblings(".author").css("display","none").fadeIn(1000);b.siblings(".description").css("display","none").fadeIn(1000);var c=a.parents("li");$("ul.gallery-js li").children("img.selected").fadeTo(500,0.3);a.fadeTo("fast",1).addClass("selected")},onThumb:function(a){var c=a.parents("li");var b=c.is(".active")?"1":"0.3";a.css({display:"none",opacity:b}).fadeIn(1500);a.hover(function(){a.fadeTo("fast",1)},function(){c.not(".active").children("img").fadeTo("fast",0.3)})}})});(function(b){var a;a=b.fn.galleria=function(g){if(!a.hasCSS()){return false}b.historyInit(a.onPageLoad);var n={insert:".galleria_container",history:false,clickNext:true,onImage:function(p,o,i){},onThumb:function(i){},flashClass:"flash",flashWidth:"100%",flashHeight:"100%"};var l=b.extend(n,g);for(var f in l){b.galleria[f]=l[f]}var e=(b(l.insert).is(l.insert))?b(l.insert):jQuery(document.createElement("div")).insertBefore(this);var c=b(document.createElement("div")).addClass("galleriaheight_wrapper");var d=b(document.createElement("div")).addClass("galleria_wrapper").attr("id","galleriawrapper");var h=b(document.createElement("span")).addClass("caption");var m=b(document.createElement("span")).addClass("date");var k=b(document.createElement("span")).addClass("author");var j=b(document.createElement("p")).addClass("description");c.append(d).append(h);e.addClass("gallery-image").append(c);e.append(m);e.append(k);e.append(j);return this.each(function(){b(this).addClass("galleria");b(this).children("li").each(function(t){var r=b(this);var o=b.meta?b.extend({},l,r.data()):l;o.clickNext=b(this).is(":only-child")?false:o.clickNext;var x=b(this).find("a").is("a")?b(this).find("a"):false;var w=false;if(x){w=b(this).hasClass(l.flashClass)?x.attr("href"):false}var u=w?x:this;var v=b(u).children("img").css("display","none");var p=x&&!w?x.attr("href"):v.attr("src");var s=w?w:p;var y=x?x.attr("title"):v.attr("title");var q=new Image();if(o.history&&(window.location.hash&&window.location.hash.replace(/\#/,"")==s)){r.siblings(".active").removeClass("active");r.addClass("active")}b(q).load(function(){b(this).attr("alt",v.attr("alt"));var A=x&&!w?x.find("img").addClass("thumb noscale").css("display","none"):v.clone(true).addClass("thumb").css("display","none");if(x){x.replaceWith(A)}var z=w?w:p;A.attr("rel",z);A.attr("title",y);A.click(function(){b.galleria.activate(s)});A.hover(function(){b(this).addClass("hover")},function(){b(this).removeClass("hover")});r.hover(function(){r.addClass("hover")},function(){r.removeClass("hover")});r.prepend(A);A.css("display","block");o.onThumb(jQuery(A));window.status+=r.find(".date").text();if(r.hasClass("active")){b.galleria.activate(s);h.text(y);m.text(r.find(".date").text());k.text(r.find(".author").text());var i=document.getElementById("disclaimerafwijking").innerHTML;j.html(unescape(i));m.css("display","none").fadeIn(1000);k.css("display","none").fadeIn(1000);j.css("display","none").fadeIn(1000)}v.remove()}).error(function(){r.html('<span class="error" style="color:red">Error loading image: '+p+"</span>")}).attr("src",p)})})};a.nextSelector=function(c){return b(c).is(":last-child")?b(c).siblings(":first-child"):b(c).next()};a.previousSelector=function(c){return b(c).is(":first-child")?b(c).siblings(":last-child"):b(c).prev()};a.hasCSS=function(){b("body").append(b(document.createElement("div")).attr("id","css_test").css({width:"1px",height:"1px",display:"none"}));var c=(b("#css_test").width()!=1)?false:true;b("#css_test").remove();return c};a.onPageLoad=function(h){var e=b(".galleria_wrapper");var f=b('.galleria img[rel="'+h+'"]');if(h){if(b.galleria.history){window.location=window.location.href.replace(/\#.*/,"")+"#"+h}var c=f.parents("li");b("ul.gallery-js li").removeClass("active");c.addClass("active");var g=false;if(c[0]){g=b(c[0]).hasClass(b.galleria.flashClass)}if(g){a.loadFlash(h);b.galleria.onImage(null,e.siblings(".caption"),f)}else{var d=b(new Image()).attr("src",h).addClass("replaced");e.empty().append(d);b.galleria.onImage(d,e.siblings(".caption"),f);if(b.galleria.clickNext){d.css("cursor","pointer").click(function(){b.galleria.next()})}}e.siblings(".caption").html(unescape(f.attr("title")));e.siblings(".date").text(f.parent().find(".date").text());e.siblings(".author").text(f.parent().find(".author").text())}else{e.siblings().andSelf().empty();b(".galleria li.active").removeClass("active")}b.galleria.current=h};a.loadFlash=function(d){var c={movie:d,majorversion:"7",build:"0",wmode:"transparent",width:b.galleria.flashWidth,height:b.galleria.flashHeight,flashvars:""};UFO.create(c,"galleriawrapper",true)};b.extend({galleria:{current:"",onImage:function(){},activate:function(c){if(b.galleria.history){b.historyLoad(c)}else{a.onPageLoad(c)}},next:function(){var d=a.nextSelector(b('.galleria img[rel="'+b.galleria.current+'"]').parents("li"));var c=b(d).find("img").attr("rel");b.galleria.activate(c)},prev:function(){var d=a.previousSelector(b('.galleria img[rel="'+b.galleria.current+'"]').parents("li"));var c=b(d).find("img").attr("rel");b.galleria.activate(c)}}})})(jQuery);jQuery.extend({historyCurrentHash:undefined,historyCallback:undefined,historyInit:function(d){jQuery.historyCallback=d;var c=location.hash;jQuery.historyCurrentHash=c;if(jQuery.browser.msie){if(jQuery.historyCurrentHash==""){jQuery.historyCurrentHash="#"}$("body").prepend('<iframe id="jQuery_history" style="display: none;"></iframe>');var a=$("#jQuery_history")[0];var b=a.contentWindow.document;b.open();b.close();b.location.hash=c}else{if($.browser.safari){jQuery.historyBackStack=[];jQuery.historyBackStack.length=history.length;jQuery.historyForwardStack=[];jQuery.isFirst=true}}jQuery.historyCallback(c.replace(/^#/,""));setInterval(jQuery.historyCheck,100)},historyAddHistory:function(a){jQuery.historyBackStack.push(a);jQuery.historyForwardStack.length=0;this.isFirst=true},historyCheck:function(){if(jQuery.browser.msie){var a=$("#jQuery_history")[0];var d=a.contentDocument||a.contentWindow.document;var f=d.location.hash;if(f!=jQuery.historyCurrentHash){location.hash=f;jQuery.historyCurrentHash=f;jQuery.historyCallback(f.replace(/^#/,""))}}else{if($.browser.safari){if(!jQuery.dontCheck){var b=history.length-jQuery.historyBackStack.length;if(b){jQuery.isFirst=false;if(b<0){for(var c=0;c<Math.abs(b);c++){jQuery.historyForwardStack.unshift(jQuery.historyBackStack.pop())}}else{for(var c=0;c<b;c++){jQuery.historyBackStack.push(jQuery.historyForwardStack.shift())}}var e=jQuery.historyBackStack[jQuery.historyBackStack.length-1];if(e!=undefined){jQuery.historyCurrentHash=location.hash;jQuery.historyCallback(e)}}else{if(jQuery.historyBackStack[jQuery.historyBackStack.length-1]==undefined&&!jQuery.isFirst){if(document.URL.indexOf("#")>=0){jQuery.historyCallback(document.URL.split("#")[1])}else{var f=location.hash;jQuery.historyCallback("")}jQuery.isFirst=true}}}}else{var f=location.hash;if(f!=jQuery.historyCurrentHash){jQuery.historyCurrentHash=f;jQuery.historyCallback(f.replace(/^#/,""))}}}},historyLoad:function(d){var e;if(jQuery.browser.safari){e=d}else{e="#"+d;location.hash=e}jQuery.historyCurrentHash=e;if(jQuery.browser.msie){var a=$("#jQuery_history")[0];var c=a.contentWindow.document;c.open();c.close();c.location.hash=e;jQuery.historyCallback(d)}else{if(jQuery.browser.safari){jQuery.dontCheck=true;this.historyAddHistory(d);var b=function(){jQuery.dontCheck=false};window.setTimeout(b,200);jQuery.historyCallback(d);location.hash=e}else{jQuery.historyCallback(d)}}}});var UFO={req:["movie","width","height","majorversion","build"],opt:["play","loop","menu","quality","scale","salign","wmode","bgcolor","base","flashvars","devicefont","allowscriptaccess","seamlesstabbing"],optAtt:["id","name","align"],optExc:["swliveconnect"],ximovie:"ufo.swf",xiwidth:"215",xiheight:"138",ua:navigator.userAgent.toLowerCase(),pluginType:"",fv:[0,0],foList:[],create:function(b,c,a){if(!UFO.uaHas("w3cdom")||UFO.uaHas("ieMac")){return}UFO.getFlashVersion();UFO.foList[c]=UFO.updateFO(b);UFO.createCSS("#"+c,"visibility:hidden;");a?UFO.main(c):UFO.domLoad(c)},updateFO:function(a){if(typeof a.xi!="undefined"&&a.xi=="true"){if(typeof a.ximovie=="undefined"){a.ximovie=UFO.ximovie}if(typeof a.xiwidth=="undefined"){a.xiwidth=UFO.xiwidth}if(typeof a.xiheight=="undefined"){a.xiheight=UFO.xiheight}}a.mainCalled=false;return a},domLoad:function(b){var a=setInterval(function(){if((document.getElementsByTagName("body")[0]!=null||document.body!=null)&&document.getElementById(b)!=null){UFO.main(b);clearInterval(a)}},250);if(typeof document.addEventListener!="undefined"){document.addEventListener("DOMContentLoaded",function(){UFO.main(b);clearInterval(a)},null)}},main:function(b){var a=UFO.foList[b];if(a.mainCalled){return}UFO.foList[b].mainCalled=true;document.getElementById(b).style.visibility="hidden";if(UFO.hasRequired(b)){if(UFO.hasFlashVersion(parseInt(a.majorversion,10),parseInt(a.build,10))){if(typeof a.setcontainercss!="undefined"&&a.setcontainercss=="true"){UFO.setContainerCSS(b)}UFO.writeSWF(b)}else{if(a.xi=="true"&&UFO.hasFlashVersion(6,65)){UFO.createDialog(b)}}}document.getElementById(b).style.visibility="visible"},createCSS:function(a,e){var d=document.getElementsByTagName("head")[0];var c=UFO.createElement("style");if(!UFO.uaHas("ieWin")){c.appendChild(document.createTextNode(a+" {"+e+"}"))}c.setAttribute("type","text/css");c.setAttribute("media","screen");d.appendChild(c);if(UFO.uaHas("ieWin")&&document.styleSheets&&document.styleSheets.length>0){var b=document.styleSheets[document.styleSheets.length-1];if(typeof b.addRule=="object"){b.addRule(a,e)}}},setContainerCSS:function(d){var c=UFO.foList[d];var a=/%/.test(c.width)?"":"px";var b=/%/.test(c.height)?"":"px";UFO.createCSS("#"+d,"width:"+c.width+a+"; height:"+c.height+b+";");if(c.width=="100%"){UFO.createCSS("body","margin-left:0; margin-right:0; padding-left:0; padding-right:0;")}if(c.height=="100%"){UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","margin-top:0; margin-bottom:0; padding-top:0; padding-bottom:0; height:100%;")}},createElement:function(a){return(UFO.uaHas("xml")&&typeof document.createElementNS!="undefined")?document.createElementNS("http://www.w3.org/1999/xhtml",a):document.createElement(a)},createObjParam:function(b,d,c){var a=UFO.createElement("param");a.setAttribute("name",d);a.setAttribute("value",c);b.appendChild(a)},uaHas:function(e){var d=UFO.ua;switch(e){case"w3cdom":return(typeof document.getElementById!="undefined"&&typeof document.getElementsByTagName!="undefined"&&(typeof document.createElement!="undefined"||typeof document.createElementNS!="undefined"));case"xml":var a=document.getElementsByTagName("meta");var c=a.length;for(var b=0;b<c;b++){if(/content-type/i.test(a[b].getAttribute("http-equiv"))&&/xml/i.test(a[b].getAttribute("content"))){return true}}return false;case"ieMac":return/msie/.test(d)&&!/opera/.test(d)&&/mac/.test(d);case"ieWin":return/msie/.test(d)&&!/opera/.test(d)&&/win/.test(d);case"gecko":return/gecko/.test(d)&&!/applewebkit/.test(d);case"opera":return/opera/.test(d);case"safari":return/applewebkit/.test(d);default:return false}},getFlashVersion:function(){if(UFO.fv[0]!=0){return}if(navigator.plugins&&typeof navigator.plugins["Shockwave Flash"]=="object"){UFO.pluginType="npapi";var a=navigator.plugins["Shockwave Flash"].description;if(typeof a!="undefined"){a=a.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var b=parseInt(a.replace(/^(.*)\..*$/,"$1"),10);var f=/r/.test(a)?parseInt(a.replace(/^.*r(.*)$/,"$1"),10):0;UFO.fv=[b,f]}}else{if(window.ActiveXObject){UFO.pluginType="ax";try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(d){try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");UFO.fv=[6,0];c.AllowScriptAccess="always"}catch(d){if(UFO.fv[0]==6){return}}try{var c=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(d){}}if(typeof c=="object"){var a=c.GetVariable("$version");if(typeof a!="undefined"){a=a.replace(/^\S+\s+(.*)$/,"$1").split(",");UFO.fv=[parseInt(a[0],10),parseInt(a[2],10)]}}}}},hasRequired:function(c){var b=UFO.req.length;for(var a=0;a<b;a++){if(typeof UFO.foList[c][UFO.req[a]]=="undefined"){return false}}return true},hasFlashVersion:function(b,a){return(UFO.fv[0]>b||(UFO.fv[0]==b&&UFO.fv[1]>=a))?true:false},writeSWF:function(d){var g=UFO.foList[d];var j=document.getElementById(d);if(UFO.pluginType=="npapi"){if(UFO.uaHas("gecko")||UFO.uaHas("xml")){while(j.hasChildNodes()){j.removeChild(j.firstChild)}var k=UFO.createElement("object");k.setAttribute("type","application/x-shockwave-flash");k.setAttribute("data",g.movie);k.setAttribute("width",g.width);k.setAttribute("height",g.height);var f=UFO.optAtt.length;for(var h=0;h<f;h++){if(typeof g[UFO.optAtt[h]]!="undefined"){k.setAttribute(UFO.optAtt[h],g[UFO.optAtt[h]])}}var e=UFO.opt.concat(UFO.optExc);var f=e.length;for(var h=0;h<f;h++){if(typeof g[e[h]]!="undefined"){UFO.createObjParam(k,e[h],g[e[h]])}}j.appendChild(k)}else{var l="";var e=UFO.opt.concat(UFO.optAtt).concat(UFO.optExc);var f=e.length;for(var h=0;h<f;h++){if(typeof g[e[h]]!="undefined"){l+=" "+e[h]+'="'+g[e[h]]+'"'}}j.innerHTML='<embed type="application/x-shockwave-flash" src="'+g.movie+'" width="'+g.width+'" height="'+g.height+'" pluginspage="http://www.macromedia.com/go/getflashplayer"'+l+"></embed>"}}else{if(UFO.pluginType=="ax"){var c="";var f=UFO.optAtt.length;for(var h=0;h<f;h++){if(typeof g[UFO.optAtt[h]]!="undefined"){c+=" "+UFO.optAtt[h]+'="'+g[UFO.optAtt[h]]+'"'}}var a="";var f=UFO.opt.length;for(var h=0;h<f;h++){if(typeof g[UFO.opt[h]]!="undefined"){a+='<param name="'+UFO.opt[h]+'" value="'+g[UFO.opt[h]]+'" />'}}var b=window.location.protocol=="https:"?"https:":"http:";j.innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+c+' width="'+g.width+'" height="'+g.height+'" codebase="'+b+"//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+g.majorversion+",0,"+g.build+',0"><param name="movie" value="'+g.movie+'" />'+a+"</object>"}}},createDialog:function(a){var c=UFO.foList[a];UFO.createCSS("html","height:100%; overflow:hidden;");UFO.createCSS("body","height:100%; overflow:hidden;");UFO.createCSS("#xi-con","position:absolute; left:0; top:0; z-index:1000; width:100%; height:100%; background-color:#fff; filter:alpha(opacity:75); opacity:0.75;");UFO.createCSS("#xi-dia","position:absolute; left:50%; top:50%; margin-left: -"+Math.round(parseInt(c.xiwidth,10)/2)+"px; margin-top: -"+Math.round(parseInt(c.xiheight,10)/2)+"px; width:"+c.xiwidth+"px; height:"+c.xiheight+"px;");var i=document.getElementsByTagName("body")[0];var g=UFO.createElement("div");g.setAttribute("id","xi-con");var e=UFO.createElement("div");e.setAttribute("id","xi-dia");g.appendChild(e);i.appendChild(g);var j=window.location;if(UFO.uaHas("xml")&&UFO.uaHas("safari")){var h=document.getElementsByTagName("title")[0].firstChild.nodeValue=document.getElementsByTagName("title")[0].firstChild.nodeValue.slice(0,47)+" - Flash Player Installation"}else{var h=document.title=document.title.slice(0,47)+" - Flash Player Installation"}var b=UFO.pluginType=="ax"?"ActiveX":"PlugIn";var f=typeof c.xiurlcancel!="undefined"?"&xiUrlCancel="+c.xiurlcancel:"";var d=typeof c.xiurlfailed!="undefined"?"&xiUrlFailed="+c.xiurlfailed:"";UFO.foList["xi-dia"]={movie:c.ximovie,width:c.xiwidth,height:c.xiheight,majorversion:"6",build:"65",flashvars:"MMredirectURL="+j+"&MMplayerType="+b+"&MMdoctitle="+h+f+d};UFO.writeSWF("xi-dia")},expressInstallCallback:function(){var b=document.getElementsByTagName("body")[0];var a=document.getElementById("xi-con");b.removeChild(a);UFO.createCSS("body","height:auto; overflow:auto;");UFO.createCSS("html","height:auto; overflow:auto;")},cleanupIELeaks:function(){var b=document.getElementsByTagName("object");var d=b.length;for(var c=0;c<d;c++){b[c].style.display="none";for(var a in b[c]){if(typeof b[c][a]=="function"){b[c][a]=null}}}}};if(typeof window.attachEvent!="undefined"&&UFO.uaHas("ieWin")){window.attachEvent("onunload",UFO.cleanupIELeaks)};
