/*
	Plugin: fullscreenImage
	Autor: Björn M. Wibben (hi (at] wibben [punkt) de)
	URL: http://www.wibben.de/
	Version: 0.1
*/
(function(a){a.fn.fullscreenImage=function(){a(this).hide();$theImage=a(this).children("img:first");function b(){var f=a(window).height();var d=a(window).width();var e=f/d;if(e<=0.75){var c=d;$theImage.width(c);$theImage.height((d/4)*3);}else{if(e>0.75){$theImage.height(f);c=(f/3)*4;$theImage.width(c);}}}b();a(window).bind("resize.bgimage",function(){b();});a(this).show();};})(jQuery);
/*
	Plugin: yasp
	Autor: Björn M. Wibben (hi (at] wibben [punkt) de)
	URL: http://www.wibben.de/e-mail-schutz-mit-jquery-update-v11
	Version: 1.2
*/
(function(a){a.fn.yasp=function(b){var c=a.extend({},a.fn.yasp.defaults,b);a(this).each(function(){var g=a(this).attr("class");var d=a(this).attr("rel");var i=d||a(this).text();var f=a(this).html();var e=i.replace(/\s\(\w*\)\s/,"@");var h=e.replace(/\s\[\w*\]\s/g,".");!f||f===i?f=h:null;if(c.linktext!==null&&!d){a(this).replaceWith('<a class="'+g+'" href="mai'+"lto:"+h+'">'+c.linktext+"</a>");}else{a(this).replaceWith('<a class="'+g+'" href="mai'+"lto:"+h+'">'+f+"</a>");}});};a.fn.yasp.defaults={linktext:null};})(jQuery);
/* Scripting by Björn M. Wibben */
$(document).ready(function(){$("body").attr("id","js");var c;var e=$(".cntme");e.hide();$.getJSON("maximg.json",function(g){c=g.imgAnz;var f=g.mailText;if(f!==undefined&&f!==""){e.yasp({linktext:f});}else{e.yasp();}e.show();d(b(1,c));});var a;function b(f,g){return Math.floor(Math.random()*(g+1-f))+f;}function d(f){a=new Image();$("#hg").empty();$(a).load(function(){$(this).hide();$("#hg").append(this).fullscreenImage();$(this).fadeIn(500);}).attr("src","img/blurredworld_"+f+".jpg");}$("#logo").css("cursor","pointer").click(function(){$(a).fadeOut(500,function(){d(b(1,c));});});});
