(function(a){var d=function(){var b=a(this),d=b.val(),c=b.attr("placeholder");if(d!==c)b.removeClass("watermarked");else b.addClass("watermarked")},c=function(){var b=a(this),d=b.val(),c=b.attr("placeholder");d===c&&a(this).val("").removeClass("watermarked")},e=function(){var b=a(this),d=b.val(),c=b.attr("placeholder");d===""&&b.val(c).addClass("watermarked")},b={init:function(){var b=false,f=a("<input type='text' placeholder='test'/>")[0];b=f.placeholder==="test";if(!b)return this.each(function(){var b=a(this),f=b.attr("placeholder"),g=b.val();g===""&&b.val(f).addClass("watermarked");b.bind("keyup",d);b.bind("focusin",c);b.bind("focusout",e)});return this},destroy:function(){},initialize:function(){}};a.fn.watermark=function(c){if(b[c])return c[c].apply(this,Array.prototype.slice(arguments,1));else if(typeof c==="object"||!c)return b.init.apply(this,arguments);else a.error("Method "+c+" does not exist on jQuery.watermark")}})(jQuery);(function(a,j,g){"$:nomunge";var b="hashchange",d=document,f,i=a.event.special,h=d.documentMode,e="on"+b in j&&(h===g||h>7);function c(a){a=a||location.href;return "#"+a.replace(/^[^#]*#?(.*)$/,"$1")}a.fn[b]=function(a){return a?this.bind(b,a):this.trigger(b)};a.fn[b].delay=50;i[b]=a.extend(i[b],{setup:function(){if(e)return false;a(f.start)},teardown:function(){if(e)return false;a(f.stop)}});f=function(){var h={},f,i=c(),l=function(a){return a},k=l,n=l;h.start=function(){f||m()};h.stop=function(){f&&clearTimeout(f);f=g};function m(){var e=c(),d=n(i);if(e!==i){k(i=e,d);a(j).trigger(b)}else if(d!==i)location.href=location.href.replace(/#.*/,"")+d;f=setTimeout(m,a.fn[b].delay)}a.browser.msie&&!e&&function(){var f,e;h.start=function(){if(!f){e=a.fn[b].src;e=e&&e+c();f=a('<iframe tabindex="-1" title="empty"/>').hide().one("load",function(){e||k(c());m()}).attr("src",e||"javascript:0").insertAfter("body")[0].contentWindow;d.onpropertychange=function(){try{if(event.propertyName==="title")f.document.title=d.title}catch(a){}}}};h.stop=l;n=function(){return c(f.location.href)};k=function(g,h){var c=f.document,e=a.fn[b].domain;if(g!==h){c.title=d.title;c.open();e&&c.write('<script>document.domain="'+e+('"</sc'+"ript>"));c.close();f.location.hash=g}}}();return h}()})(jQuery,this);var Stats=function(){var a=function(a,b){setTimeout(function(){var c="/kzn/Stats/Increment/"+a;$.post(c,b)},750)};return {track:a}}(),Sidebar=function(a){var b={cache:false},c=function(e,c,d){a.ajax(e,{type:"get",dataType:"html",cache:b.cache}).success(function(b){if(!c)c="#sideBar";a(document).ready(function(){a(c).append(b);a.isFunction(d)&&d()})})};return {loadElement:c,settings:b}}(jQuery),SocialMedia=function(){var g=function(){$(document).ready(function(){if(!$("#pu-root").length){$("body").append("<div id='pu-root'></div>");$("body").append("<div id='tw-root'></div>");$("body").append("<div id='fb-root'></div>");var a=$("<script src='"+location.protocol+('//apis.google.com/js/plusone.js\'>{"parsetags" : "explicit"}</sc'+"ript>"));$("#pu-root").append(a)}});$(".share").unbind("mouseenter");$(".share").unbind("mouseleave");$(".share").bind("mouseenter",function(){var a=$(this).height();$(this).children("img").animate({top:-a},0)});$(".share").bind("mouseleave",function(){$(this).children("img").animate({top:0},0)});$("img",".share").load(function(){var b=$(this).width(),a=$(this).height();$(this).parent().css({width:b,height:a/2})});$("img",".share").each(function(){if($(this).height()&&$(this).parent().css("height")=="0px"){var b=$(this).width(),a=$(this).height();$(this).parent().css({width:b,height:a/2})}})},a="http://zbr.to/?callback=?",b="/kzn/html/busy.html",c=function(e,c,g){var f=window.open(b,"sharer","location=0,status=1,scrollbars=1, width=626,height=436,resizable=1");if(g==true)var h=$.getJSON(a,{format:"JSON",longUrl:c}).success(function(a){d(f,e,a.shorturl,c)}).error(function(){d(f,e,c,c)});else d(f,e,c);function d(a,c,d){var b="http://www.facebook.com/sharer.php?u="+encodeURIComponent(d)+"&t="+encodeURIComponent(c);a.document.location=b;a.focus();return false}},e=function(f,c,h){var e=$(this).parent(),g=window.open(b,"sharer","location=0,status=1,scrollbars=1, width=550,height=370,resizable=1");if(h)var i=$.getJSON(a,{format:"JSON",longUrl:c}).success(function(a){d(g,f,a.shorturl,c,e)}).error(function(){d(g,f,c,c,e)});else d(g,f,c,c,e);function d(d,a,b,f,c){c.attr("data-url",b);c.attr("class","twitter-share-button");if(a&&a.length>140-(b.length+1))a=a.substring(0,140-(b.length+1)-3)+"...";var e="http://twitter.com/share/?text="+encodeURIComponent(a)+"&url="+b;d.document.location=e;d.focus();return false}},d=function(g,c,e,d,i){var h=window.open(b,"sharer","location=0,status=1,scrollbars=1, width=520,height=570,resizable=1");if(i)var j=$.getJSON(a,{format:"JSON",longUrl:c}).success(function(a){f(h,g,a.shorturl,c,d,e)}).error(function(){f(h,g,c,c,d,e)});else f(h,g,c,c,d,e);function f(d,c,f,g,a,b){if(c&&c.length>200)c=String.substring(c,197)+"...";if(b&&b.length>200)b=String.substring(b,197)+"...";if(a&&a.length>256)a=String.substring(a,253)+"...";var e="http://www.linkedin.com/shareArticle?mini=true&url="+encodeURIComponent(f)+"&title="+encodeURIComponent(c)+"&source="+encodeURIComponent(b)+"&summary="+encodeURIComponent(a);d.document.location=e;d.focus();return false}},f=function(f,c,d,h){var g=window.open(b,"sharer","location=0,status=1,scrollbars=1, width=520,height=400,resizable=1");if(h)var i=$.getJSON(a,{format:"JSON",longUrl:c}).success(function(a){e(g,f,a.shorturl,c,d)}).error(function(){e(g,f,c,c,d)});else e(g,f,c,c,d);function e(d,b,c,f,a){if(b&&b.length>200)b=String.substring(b,197)+"...";if(a&&a.length>256)a=String.substring(a,253)+"...";a=a+"[url="+c+"]"+c+"[/url]";var e="http://www.hyves-share.nl/button/tip/?tipcategoryid=12&title="+encodeURIComponent(b)+"&body="+encodeURIComponent(a);d.document.location=e;d.focus();return false}};return {init:g,Facebook:c,Twitter:e,LinkedIn:d,Hyves:f}}();(function(a){var d=a.browser.msie&&a.browser.version<7,e=a(document.body),c=a(c),b=false;a.fn.jqzoom=function(a){return this.each(function(){var b=this.nodeName.toLowerCase();b=="a"&&new jqzoom(this,a)})};jqzoom=function(b,r){var m=null;m=a(b).data("jqzoom");if(m)return m;var f=this,c=a.extend({},a.jqzoom.defaults,r||{});f.el=b;b.rel=a(b).attr("rel");b.zoom_active=false;b.zoom_disabled=false;b.largeimageloading=false;b.largeimageloaded=false;b.scale={};b.timer=null;b.mousepos={};b.mouseDown=false;a(b).css({"outline-style":"none","text-decoration":"none"});var h=a("img:eq(0)",b);b.title=a(b).attr("title");b.imagetitle=h.attr("title");var n=a.trim(b.title).length>0?b.title:b.imagetitle,e=new p(h),g=new u,j=new t,k=new o,l=new s;a(b).bind("click",function(a){a.preventDefault();return false});var q=["standard","drag","innerzoom","reverse"];if(a.inArray(a.trim(c.zoomType),q)<0)c.zoomType="standard";a.extend(f,{create:function(){if(a(".zoomPad",b).length==0){b.zoomPad=a("<div/>").addClass("zoomPad");h.wrap(b.zoomPad)}if(c.zoomType=="innerzoom"){c.zoomWidth=e.w;c.zoomHeight=e.h}a(".zoomPup",b).length==0&&g.append();a(".zoomWindow",b).length==0&&j.append();a(".zoomPreload",b).length==0&&l.append();(c.preloadImages||c.zoomType=="drag"||c.alwaysOn)&&f.load();f.init()},init:function(){if(c.zoomType=="drag"){a(".zoomPad",b).mousedown(function(){b.mouseDown=true});a(".zoomPad",b).mouseup(function(){b.mouseDown=false});document.body.ondragstart=function(){return false};a(".zoomPad",b).css({cursor:"default"});a(".zoomPup",b).css({cursor:"move"})}c.zoomType=="innerzoom"&&a(".zoomWrapper",b).css({cursor:"crosshair"});a(".zoomPad",b).bind("mouseenter mouseover",function(c){h.attr("title","");a(b).attr("title","");b.zoom_active=true;e.fetchdata();if(b.largeimageloaded)f.activate(c);else f.load()});a(".zoomPad",b).bind("mouseleave",function(){f.deactivate()});a(".zoomPad",b).bind("mousemove",function(d){if(d.pageX>e.pos.r||d.pageX<e.pos.l||d.pageY<e.pos.t||d.pageY>e.pos.b){g.setcenter();return false}b.zoom_active=true;b.largeimageloaded&&!a(".zoomWindow",b).is(":visible")&&f.activate(d);b.largeimageloaded&&(c.zoomType!="drag"||c.zoomType=="drag"&&b.mouseDown)&&g.setposition(d)});var j=[],i=0,d=[];d=a("a").filter(function(){var c=new RegExp("gallery[\\s]*:[\\s]*'"+a.trim(b.rel)+"'","i"),d=a(this).attr("rel");if(c.test(d))return this});if(d.length>0){var k=d.splice(0,1);d.push(k)}d.each(function(){if(c.preloadImages){var b=a.extend({},eval("("+a.trim(a(this).attr("rel"))+")"));j[i]=new Image;j[i].src=b.largeimage;i++}a(this).click(function(b){if(a(this).hasClass("zoomThumbActive"))return false;d.each(function(){a(this).removeClass("zoomThumbActive")});b.preventDefault();f.swapimage(this);return false})})},load:function(){if(b.largeimageloaded==false&&b.largeimageloading==false){var c=a(b).attr("href");b.largeimageloading=true;k.loadimage(c)}},activate:function(){clearTimeout(b.timer);g.show();j.show()},deactivate:function(){switch(c.zoomType){case "drag":break;default:h.attr("title",b.imagetitle);a(b).attr("title",b.title);if(c.alwaysOn)g.setcenter();else{j.hide();g.hide()}}b.zoom_active=false},swapimage:function(d){b.largeimageloading=false;b.largeimageloaded=false;var c={};c=a.extend({},eval("("+a.trim(a(d).attr("rel"))+")"));if(c.smallimage&&c.largeimage){var i=c.smallimage,e=c.largeimage;a(d).addClass("zoomThumbActive");a(b).attr("href",e);h.attr("src",i);g.hide();j.hide();f.load()}else{alert("ERROR :: Missing parameter for largeimage or smallimage.");throw"ERROR :: Missing parameter for largeimage or smallimage.";}return false}});if(h[0].complete){e.fetchdata();a(".zoomPad",b).length==0&&f.create()}function p(d){var c=this;this.node=d[0];this.findborder=function(){var b=0;b=d.css("border-top-width");btop="";var a=0;a=d.css("border-left-width");bleft="";if(b)for(i=0;i<3;i++){var e=[];e=b.substr(i,1);if(isNaN(e)==false)btop=btop+""+b.substr(i,1);else break}if(a)for(i=0;i<3;i++)if(!isNaN(a.substr(i,1)))bleft=bleft+a.substr(i,1);else break;c.btop=btop.length>0?eval(btop):0;c.bleft=bleft.length>0?eval(bleft):0};this.fetchdata=function(){c.findborder();c.w=d.width();c.h=d.height();c.ow=d.outerWidth();c.oh=d.outerHeight();c.pos=d.offset();c.pos.l=d.offset().left+c.bleft;c.pos.t=d.offset().top+c.btop;c.pos.r=c.w+c.pos.l;c.pos.b=c.h+c.pos.t;c.rightlimit=d.offset().left+c.ow;c.bottomlimit=d.offset().top+c.oh};this.node.onerror=function(){alert("Problems while loading image.");throw"Problems while loading image.";};this.node.onload=function(){c.fetchdata();a(".zoomPad",b).length==0&&f.create()};return c}function s(){var d=this;this.append=function(){this.node=a("<div/>").addClass("zoomPreload").css("visibility","hidden").html(c.preloadText);a(".zoomPad",b).append(this.node)};this.show=function(){this.node.top=(e.oh-this.node.height())/2;this.node.left=(e.ow-this.node.width())/2;this.node.css({top:this.node.top,left:this.node.left,position:"absolute",visibility:"visible"})};this.hide=function(){this.node.css("visibility","hidden")};return this}function u(){var d=this;this.node=a("<div/>").addClass("zoomPup");this.append=function(){a(".zoomPad",b).append(a(this.node).hide());if(c.zoomType=="reverse"){this.image=new Image;this.image.src=e.node.src;a(this.node).empty().append(this.image)}};this.setdimensions=function(){this.node.w=parseInt(c.zoomWidth/b.scale.x)>e.w?e.w:parseInt(c.zoomWidth/b.scale.x);this.node.h=parseInt(c.zoomHeight/b.scale.y)>e.h?e.h:parseInt(c.zoomHeight/b.scale.y);this.node.top=(e.oh-this.node.h-2)/2;this.node.left=(e.ow-this.node.w-2)/2;this.node.css({top:0,left:0,width:this.node.w+"px",height:this.node.h+"px",position:"absolute",display:"none",borderWidth:1+"px"});if(c.zoomType=="reverse"){this.image.src=e.node.src;a(this.node).css({opacity:1});a(this.image).css({position:"absolute",display:"block",left:-(this.node.left+1-e.bleft)+"px",top:-(this.node.top+1-e.btop)+"px"})}};this.setcenter=function(){this.node.top=(e.oh-this.node.h-2)/2;this.node.left=(e.ow-this.node.w-2)/2;this.node.css({top:this.node.top,left:this.node.left});c.zoomType=="reverse"&&a(this.image).css({position:"absolute",display:"block",left:-(this.node.left+1-e.bleft)+"px",top:-(this.node.top+1-e.btop)+"px"});k.setposition()};this.setposition=function(g){b.mousepos.x=g.pageX;b.mousepos.y=g.pageY;var d=0,f=0;function j(a){return b.mousepos.x-a.w/2<e.pos.l}function i(a){return b.mousepos.x+a.w/2>e.pos.r}function l(a){return b.mousepos.y-a.h/2<e.pos.t}function h(a){return b.mousepos.y+a.h/2>e.pos.b}d=b.mousepos.x+e.bleft-e.pos.l-(this.node.w+2)/2;f=b.mousepos.y+e.btop-e.pos.t-(this.node.h+2)/2;if(j(this.node))d=e.bleft-1;else if(i(this.node))d=e.w+e.bleft-this.node.w-1;if(l(this.node))f=e.btop-1;else if(h(this.node))f=e.h+e.btop-this.node.h-1;this.node.left=d;this.node.top=f;this.node.css({left:d+"px",top:f+"px"});if(c.zoomType=="reverse"){a.browser.msie&&a.browser.version>7&&a(this.node).empty().append(this.image);a(this.image).css({position:"absolute",display:"block",left:-(this.node.left+1-e.bleft)+"px",top:-(this.node.top+1-e.btop)+"px"})}k.setposition()};this.hide=function(){h.css({opacity:1});this.node.hide()};this.show=function(){c.zoomType!="innerzoom"&&(c.lens||c.zoomType=="drag")&&this.node.show();c.zoomType=="reverse"&&h.css({opacity:c.imageOpacity})};this.getoffset=function(){var a={};a.left=d.node.left;a.top=d.node.top;return a};return this}function t(){var f=this;this.node=a("<div class='zoomWindow'><div class='zoomWrapper'><div class='zoomWrapperTitle'></div><div class='zoomWrapperImage'></div></div></div>");this.ieframe=a('<iframe class="zoomIframe" src="javascript:\'\';" marginwidth="0" marginheight="0" align="bottom" scrolling="no" frameborder="0" ></iframe>');this.setposition=function(){this.node.leftpos=0;this.node.toppos=0;if(c.zoomType!="innerzoom")switch(c.position){case "left":this.node.leftpos=e.pos.l-e.bleft-Math.abs(c.xOffset)-c.zoomWidth>0?0-c.zoomWidth-Math.abs(c.xOffset):e.ow+Math.abs(c.xOffset);this.node.toppos=Math.abs(c.yOffset);break;case "top":this.node.leftpos=Math.abs(c.xOffset);this.node.toppos=e.pos.t-e.btop-Math.abs(c.yOffset)-c.zoomHeight>0?0-c.zoomHeight-Math.abs(c.yOffset):e.oh+Math.abs(c.yOffset);break;case "bottom":this.node.leftpos=Math.abs(c.xOffset);this.node.toppos=e.pos.t-e.btop+e.oh+Math.abs(c.yOffset)+c.zoomHeight<screen.height?e.oh+Math.abs(c.yOffset):0-c.zoomHeight-Math.abs(c.yOffset);break;default:this.node.leftpos=e.rightlimit+Math.abs(c.xOffset)+c.zoomWidth<screen.width?e.ow+Math.abs(c.xOffset):0-c.zoomWidth-Math.abs(c.xOffset);this.node.toppos=Math.abs(c.yOffset)}this.node.css({left:this.node.leftpos+"px",top:this.node.toppos+"px"});return this};this.append=function(){a(".zoomPad",b).append(this.node);this.node.css({position:"absolute",display:"none",zIndex:5001});if(c.zoomType=="innerzoom"){this.node.css({cursor:"default"});var d=e.bleft==0?1:e.bleft;a(".zoomWrapper",this.node).css({borderWidth:d+"px"})}a(".zoomWrapper",this.node).css({width:Math.round(c.zoomWidth)+"px",borderWidth:d+"px"});a(".zoomWrapperImage",this.node).css({width:"100%",height:Math.round(c.zoomHeight)+"px"});a(".zoomWrapperTitle",this.node).css({width:"100%",position:"absolute"});a(".zoomWrapperTitle",this.node).hide();c.title&&n.length>0&&a(".zoomWrapperTitle",this.node).html(n).show();f.setposition()};this.hide=function(){switch(c.hideEffect){case "fadeout":this.node.fadeOut(c.fadeoutSpeed,function(){});break;default:this.node.hide()}this.ieframe.hide()};this.show=function(){switch(c.showEffect){case "fadein":this.node.fadeIn();this.node.fadeIn(c.fadeinSpeed,function(){});break;default:this.node.show()}if(d&&c.zoomType!="innerzoom"){this.ieframe.width=this.node.width();this.ieframe.height=this.node.height();this.ieframe.left=this.node.leftpos;this.ieframe.top=this.node.toppos;this.ieframe.css({display:"block",position:"absolute",left:this.ieframe.left,top:this.ieframe.top,zIndex:99,width:this.ieframe.width+"px",height:this.ieframe.height+"px"});a(".zoomPad",b).append(this.ieframe);this.ieframe.show()}}}function o(){var d=this;this.node=new Image;this.loadimage=function(a){l.show();this.url=a;this.node.style.position="absolute";this.node.style.border="0px";this.node.style.display="none";this.node.style.left="-5000px";this.node.style.top="0px";document.body.appendChild(this.node);this.node.src=a};this.fetchdata=function(){var c=a(this.node),f={};this.node.style.display="block";d.w=c.width();d.h=c.height();d.pos=c.offset();d.pos.l=c.offset().left;d.pos.t=c.offset().top;d.pos.r=d.w+d.pos.l;d.pos.b=d.h+d.pos.t;f.x=d.w/e.w;f.y=d.h/e.h;b.scale=f;document.body.removeChild(this.node);a(".zoomWrapperImage",b).empty().append(this.node);g.setdimensions()};this.node.onerror=function(){alert("Problems while loading the big image.");throw"Problems while loading the big image.";};this.node.onload=function(){d.fetchdata();l.hide();b.largeimageloading=false;b.largeimageloaded=true;if(c.zoomType=="drag"||c.alwaysOn){g.show();j.show();g.setcenter()}};this.setposition=function(){var c=-b.scale.x*(g.getoffset().left-e.bleft+1),d=-b.scale.y*(g.getoffset().top-e.btop+1);a(this.node).css({left:c+"px",top:d+"px"})};return this}a(b).data("jqzoom",f)};a.jqzoom={defaults:{zoomType:"standard",zoomWidth:300,zoomHeight:300,xOffset:10,yOffset:0,position:"right",preloadImages:true,preloadText:"Loading zoom",title:true,lens:true,imageOpacity:.4,alwaysOn:false,showEffect:"show",hideEffect:"hide",fadeinSpeed:"slow",fadeoutSpeed:"2000"},disable:function(c){var b=a(c).data("jqzoom");b.disable();return false},enable:function(c){var b=a(c).data("jqzoom");b.enable();return false},disableAll:function(){b=true},enableAll:function(){b=false}}})(jQuery)
