var tb_pathToImage="http://kirchhofschmiede.de/assets/images/loadingAnimation.gif";$(document).ready(function(){tb_init("a.thickbox, area.thickbox, input.thickbox");imgLoader=new Image();imgLoader.src=tb_pathToImage});function tb_init(A){$(A).click(function(){var C=this.title||this.name||null;var B=this.href||this.alt;var D=this.rel||false;tb_show(C,B,D);this.blur();return false})}function tb_show(J,A,B){try{if(typeof document.body.style.maxHeight==="undefined"){$("body","html").css({height:"100%",width:"100%"});$("html").css("overflow","hidden");if(document.getElementById("TB_HideSelect")===null){$("body").append("
");$("#TB_overlay").click(tb_remove)}}else{if(document.getElementById("TB_overlay")===null){$("body").append("");$("#TB_overlay").click(tb_remove)}}if(tb_detectMacXFF()){$("#TB_overlay").addClass("TB_overlayMacFFBGHack")}else{$("#TB_overlay").addClass("TB_overlayBG")}if(J===null){J=""}$("body").append("
");$("#TB_load").show();var G;if(A.indexOf("?")!==-1){G=A.substr(0,A.indexOf("?"))}else{G=A}var E=/\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/;var I=G.toLowerCase().match(E);if(I==".jpg"||I==".jpeg"||I==".png"||I==".gif"||I==".bmp"){TB_PrevCaption="";TB_PrevURL="";TB_PrevHTML="";TB_NextCaption="";TB_NextURL="";TB_NextHTML="";TB_imageCount="";TB_FoundURL=false;if(B){TB_TempArray=$("a[@rel="+B+"]").get();for(TB_Counter=0;((TB_Counter Nächstes >"}else{TB_PrevCaption=TB_TempArray[TB_Counter].title;TB_PrevURL=TB_TempArray[TB_Counter].href;TB_PrevHTML=" < Vorheriges"}}else{TB_FoundURL=true;if(TB_TempArray.length != 1) TB_imageCount="Bild "+(TB_Counter + 1)+" von "+(TB_TempArray.length)}}}imgPreloader=new Image();imgPreloader.onload=function(){imgPreloader.onload=null;var O=tb_getPageSize();var M=O[0]-150;var Q=O[1]-150;var P=imgPreloader.width;var L=imgPreloader.height;if(P>M){L=L*(M/P);P=M;if(L>Q){P=P*(Q/L);L=Q}}else{if(L>Q){P=P*(Q/L);L=Q;if(P>M){L=L*(M/P);P=M}}}TB_WIDTH=P+30;TB_HEIGHT=L+60;$("#TB_window").append("
"+J+"
"+TB_imageCount+TB_PrevHTML+TB_NextHTML+"
");$("#TB_closeWindowButton").click(tb_remove);if(!(TB_PrevHTML==="")){function K(){if($(document).unbind("click",K)){$(document).unbind("click",K)}$("#TB_window").remove();$("body").append("");tb_show(TB_PrevCaption,TB_PrevURL,B);return false}$("#TB_prev").click(K)}if(!(TB_NextHTML==="")){function N(){$("#TB_window").remove();$("body").append("");tb_show(TB_NextCaption,TB_NextURL,B);return false}$("#TB_next").click(N)}document.onkeydown=function(R){if(R==null){keycode=event.keyCode}else{keycode=R.which}if(keycode==27){tb_remove()}else{if(keycode==190){if(!(TB_NextHTML=="")){document.onkeydown="";N()}}else{if(keycode==188){if(!(TB_PrevHTML=="")){document.onkeydown="";K()}}}}};tb_position();$("#TB_load").remove();$("#TB_ImageOff").click(tb_remove);$("#TB_window").css({display:"block"})};imgPreloader.src=A}else{var H=A.replace(/^[^\?]+\??/,"");var D=tb_parseQuery(H);TB_WIDTH=(D["width"]*1)+30||630;TB_HEIGHT=(D["height"]*1)+40||440;ajaxContentW=TB_WIDTH-30;ajaxContentH=TB_HEIGHT-45;if(A.indexOf("TB_iframe")!=-1){urlNoQuery=A.split("TB_");$("#TB_iframeContent").remove();if(D["modal"]!="true"){$("#TB_window").append("")}else{$("#TB_overlay").unbind();$("#TB_window").append("")}}else{if($("#TB_window").css("display")!="block"){if(D["modal"]!="true"){$("#TB_window").append("")}else{$("#TB_overlay").unbind();$("#TB_window").append("")}}else{$("#TB_ajaxContent")[0].style.width=ajaxContentW+"px";$("#TB_ajaxContent")[0].style.height=ajaxContentH+"px";$("#TB_ajaxContent")[0].scrollTop=0;$("#TB_ajaxWindowTitle").html(J)}}$("#TB_closeWindowButton").click(tb_remove);if(A.indexOf("TB_inline")!=-1){$("#TB_ajaxContent").append($("#"+D["inlineId"]).children());$("#TB_window").unload(function(){$("#"+D["inlineId"]).append($("#TB_ajaxContent").children())});tb_position();$("#TB_load").remove();$("#TB_window").css({display:"block"})}else{if(A.indexOf("TB_iframe")!=-1){tb_position();if($.browser.safari){$("#TB_load").remove();$("#TB_window").css({display:"block"})}}else{$("#TB_ajaxContent").load(A+="&random="+(new Date().getTime()),function(){tb_position();$("#TB_load").remove();tb_init("#TB_ajaxContent a.thickbox");$("#TB_window").css({display:"block"})})}}}if(!D["modal"]){document.onkeyup=function(K){if(K==null){keycode=event.keyCode}else{keycode=K.which}if(keycode==27){tb_remove()}}}}catch(F){}}function tb_showIframe(){$("#TB_load").remove();$("#TB_window").css({display:"block"})}function tb_remove(){$("#TB_imageOff").unbind("click");$("#TB_closeWindowButton").unbind("click");$("#TB_window").fadeOut("fast",function(){$("#TB_window,#TB_overlay,#TB_HideSelect").trigger("unload").unbind().remove()});$("#TB_load").remove();if(typeof document.body.style.maxHeight=="undefined"){$("body","html").css({height:"auto",width:"auto"});$("html").css("overflow","")}document.onkeydown="";document.onkeyup="";return false}function tb_position(){$("#TB_window").css({marginLeft:"-"+parseInt((TB_WIDTH/2),10)+"px",width:TB_WIDTH+"px"});if(!(jQuery.browser.msie&&jQuery.browser.version<7)){$("#TB_window").css({marginTop:"-"+parseInt((TB_HEIGHT/2),10)+"px"})}}function tb_parseQuery(D){var G={};if(!D){return G}var A=D.split(/[;&]/);for(var C=0;C