/*
* Forwart website frontend v1.0 for jQuery JavaScript Library v1.4.x
*
* Copyright (C) 2003-2011
* Peter Arts, Forwart
* http://www.forwart.nl
*
* Date: 2011-10-25
* Revision: 0001
*/
$(document).ready(function(){$.fn.placeholder();parseNewWinLinks();$(".txt ul").lsc();var b=$("form");b.length==1&&(b.find("textarea, input, select").focus(function(){$(this).addClass("focus")}).blur(function(){$(this).removeClass("focus")}),b.find("textarea").each(function(){var b=$(this).attr("data-placeholder");typeof b!="undefined"&&(txtPlaceholder($(this)),$(this).focus(function(){$(this).val()==b&&($(this).val(""),$(this).removeClass("placeholder"))}),$(this).blur(function(){txtPlaceholder($(this))}))}))});
function txtPlaceholder(b){var g=b.attr("data-placeholder");b.val()==""&&(b.val(g),b.addClass("placeholder"))}$.fn.extend({lsc:function(){var b=$(this).css("color"),g=$(this).find("li");if(g.length>0){var d=g.css("color");b&&d&&(g.each(function(){$(this).html(''+$(this).html()+"")}),g.css("color",b))}return $()}});function parseNewWinLinks(){$("a[rel*=blank],a[class*=blank]").click(function(b){b.preventDefault();nav_new($(this).attr("href"))})}
function log(b){window.console&&console.log&&console.log(b)}function nav(b){b=URLDecode(b);window.location.href=b}function nav_new(b){window.open(b)}function URLDecode(b){for(var g="",d=0;d0){var e=a.jsonDataParser?a.jsonDataParser:b.fn.lightbox.parseJsonData;a.imageArray=[];a.imageArray=e(a.jsonData)}var e='',c='
';a.displayHelp&&(c+='
'+a.strings.help+"");c+='

';
a.navbarOnTop?(b("body").append(''+c+e+"
"),b("#imageDataContainer").addClass("ontop")):b("body").append(''+e+c+"
");b("#lboverlay").click(function(){l()}).hide();b("#lightbox").click(function(){l()}).hide();b("#loadingLink").click(function(){l();return false});b("#bottomNavClose").click(function(){l();return false});b("#outerImageContainer").width(a.widthCurrent).height(a.heightCurrent);b("#imageDataContainer").width(a.widthCurrent);
a.imageClickClose||(b("#lightboxImage").click(function(){return false}),b("#hoverNav").click(function(){return false}))}function k(){return[b(document).width(),b(document).height(),b(window).width(),b(window).height()]}function o(){var a,b;if(self.pageYOffset)b=self.pageYOffset,a=self.pageXOffset;else if(document.documentElement&&document.documentElement.scrollTop)b=document.documentElement.scrollTop,a=document.documentElement.scrollLeft;else if(document.body)b=document.body.scrollTop,a=document.body.scrollLeft;
return[a,b]}function n(a){var b=new Date,f=null;do f=new Date;while(f-b1){for(i=0;ii;j--)a.imageArray[i][0]==a.imageArray[j][0]&&a.imageArray.splice(j,1);for(;a.imageArray[imageNum][0]!=e.href;)imageNum++}var f=o(),c=f[1]+c[3]/10,f=f[0];b("#lightbox").css({top:c+"px",left:f+"px"}).show();a.slideNavBar||b("#imageData").hide();h(imageNum)}function h(e){if(a.inprogress==false)a.inprogress=true,a.activeImage=e,b("#loading").show(),b("#lightboxImage").hide(),b("#hoverNav").hide(),b("#prevLink").hide(),b("#nextLink").hide(),a.slideNavBar&&(b("#imageDataContainer").hide(),b("#imageData").hide()),
q()}function q(){imgPreloader=new Image;imgPreloader.onload=function(){var e=imgPreloader.width,c=imgPreloader.height;if(a.fitToScreen){var f=k(),d=f[2]-2*a.borderSize,f=f[3]-200;imgPreloader.height>f?(e=parseInt(f/imgPreloader.height*imgPreloader.width),c=f):imgPreloader.width>d&&(c=parseInt(d/imgPreloader.width*imgPreloader.height),e=d)}b("#lightboxImage").attr("src",a.imageArray[a.activeImage][0]).width(e).height(c);r(e,c)};imgPreloader.src=a.imageArray[a.activeImage][0]}function l(){m();b("#lightbox").hide();
b("#lboverlay").fadeOut();b("select, object, embed").show()}function r(e,c){a.widthCurrent=b("#outerImageContainer").outerWidth();a.heightCurrent=b("#outerImageContainer").outerHeight();var f=Math.max(350,e+a.borderSize*2),d=c+a.borderSize*2;a.xScale=f/a.widthCurrent*100;a.yScale=d/a.heightCurrent*100;wDiff=a.widthCurrent-f;hDiff=a.heightCurrent-d;b("#imageDataContainer").animate({width:f},a.resizeSpeed,"linear");b("#outerImageContainer").animate({width:f},a.resizeSpeed,"linear",function(){b("#outerImageContainer").animate({height:d},
a.resizeSpeed,"linear",function(){b("#loading").hide();b("#lightboxImage").fadeIn("fast");b("#numberDisplay").html("");a.imageArray[a.activeImage][1]&&b("#caption").html(a.imageArray[a.activeImage][1]).show();if(a.imageArray.length>1){var c;c=a.strings.image+(a.activeImage+1)+a.strings.of+a.imageArray.length;if(!a.disableNavbarLinks){if(a.activeImage>0||a.loopImages)c=''+a.strings.prevLinkText+""+c;if(a.activeImage+1'+a.strings.nextLinkText+""}b("#numberDisplay").html(c).show()}a.slideNavBar?b("#imageData").slideDown(a.navBarSlideSpeed):b("#imageData").show();c=k();b("#lboverlay").height(c[1]);s();if(a.loopImages&&a.imageArray.length>1)preloadNextImage=new Image,preloadNextImage.src=a.imageArray[a.activeImage==a.imageArray.length-1?0:a.activeImage+1][0],preloadPrevImage=new Image,preloadPrevImage.src=a.imageArray[a.activeImage==
0?a.imageArray.length-1:a.activeImage-1][0];else{if(a.imageArray.length-1>a.activeImage)preloadNextImage=new Image,preloadNextImage.src=a.imageArray[a.activeImage+1][0];if(a.activeImage>0)preloadPrevImage=new Image,preloadPrevImage.src=a.imageArray[a.activeImage-1][0]}a.inprogress=false})});hDiff==0&&wDiff==0&&(jQuery.browser.msie?n(250):n(100));b("#prevLink").height(c);b("#nextLink").height(c)}function s(){a.imageArray.length>1&&(b("#hoverNav").show(),a.loopImages?(b("#prevLink,#prevLinkText").show().click(function(){h(a.activeImage==
0?a.imageArray.length-1:a.activeImage-1);return false}),b("#nextLink,#nextLinkText").show().click(function(){h(a.activeImage==a.imageArray.length-1?0:a.activeImage+1);return false})):(a.activeImage!=0&&b("#prevLink,#prevLinkText").show().click(function(){h(a.activeImage-1);return false}),a.activeImage!=a.imageArray.length-1&&b("#nextLink,#nextLinkText").show().click(function(){h(a.activeImage+1);return false})),b(document).bind("keydown",{opts:a},t))}function t(b){var c=b.data.opts,b=b.keyCode,d=
String.fromCharCode(b).toLowerCase();if(d=="x"||d=="o"||d=="c"||b==27)l();else if(d=="p"||b==37)c.loopImages?(m(),h(c.activeImage==0?c.imageArray.length-1:c.activeImage-1)):c.activeImage!=0&&(m(),h(c.activeImage-1));else if(d=="n"||b==39)a.loopImages?(m(),h(c.activeImage==c.imageArray.length-1?0:c.activeImage+1)):c.activeImage!=c.imageArray.length-1&&(m(),h(c.activeImage+1))}function m(){b(document).unbind("keydown")}var a=b.extend({},b.fn.lightbox.defaults,g);return this.each(function(){b(this).click(function(){d();
p(this);return false})})};b.fn.lightbox.parseJsonData=function(g){var d=[];b.each(g,function(){d.push([this.url,this.title])});return d};b.fn.lightbox.defaults={fileLoadingImage:"/template/img/loading.gif",fileBottomNavCloseImage:"/template/img/lightbox/btn-close.gif",overlayOpacity:0.8,borderSize:10,imageArray:[],activeImage:null,inprogress:false,resizeSpeed:350,widthCurrent:250,heightCurrent:250,xScale:1,yScale:1,displayTitle:true,navbarOnTop:false,slideNavBar:false,navBarSlideSpeed:350,displayHelp:false,
strings:{help:"",prevLinkTitle:"Vorige",nextLinkTitle:"Volgende",prevLinkText:"« Vorige",nextLinkText:"Volgende »",closeTitle:"sluiten",image:"Afbeelding ",of:" van "},fitToScreen:true,disableNavbarLinks:true,loopImages:false,imageClickClose:true,jsonData:null,jsonDataParser:null}})(jQuery);
(function($) {$.fn.placeholder = function() {if(typeof document.createElement("input").placeholder == 'undefined') {$('[placeholder]').focus(function() {var input = $(this);if (input.val() == input.attr('placeholder')) {input.val('');input.removeClass('placeholder');}}).blur(function() {var input = $(this);if (input.val() == '' || input.val() == input.attr('placeholder')) {input.addClass('placeholder');input.val(input.attr('placeholder'));}}).blur().parents('form').submit(function() {$(this).find('[placeholder]').each(function() {var input = $(this);if (input.val() == input.attr('placeholder')) {input.val('');}})});}}})(jQuery);