shutterOnload=function(){shutterReloaded.init('sh');}
if(typeof shutterOnload=='function'){if('undefined'!=typeof jQuery)jQuery(document).ready(function(){shutterOnload();});else if(typeof window.onload!='function')window.onload=shutterOnload;else{oldonld=window.onload;window.onload=function(){if(oldonld){oldonld();};shutterOnload();}};}
shutterReloaded={I:function(a){return document.getElementById(a);},settings:function(){var t=this,s=shutterSettings;t.imageCount=s.imageCount||0;t.msgLoading=s.msgLoading||'L O A D I N G';t.msgClose=s.msgClose||'Click to Close';},init:function(a){var t=this,L,T,ext,i,m,setid,inset,shfile,shMenuPre,k,img;shutterLinks={},shutterSets={};if('object'!=typeof shutterSettings)shutterSettings={};for(i=0;i<document.links.length;i++){L=document.links[i];ext=(L.href.indexOf('?')==-1)?L.href.slice(-4).toLowerCase():L.href.substring(0,L.href.indexOf('?')).slice(-4).toLowerCase();if(ext!='.jpg'&&ext!='.png'&&ext!='.gif'&&ext!='jpeg')continue;if(a=='sh'&&L.className.toLowerCase().indexOf('shutter')==-1)continue;if(a=='lb'&&L.rel.toLowerCase().indexOf('lightbox')==-1)continue;if(L.className.toLowerCase().indexOf('shutterset')!=-1)
setid=L.className.replace(/\s/g,'_');else if(L.rel.toLowerCase().indexOf('lightbox[')!=-1)
setid=L.rel.replace(/\s/g,'_');else setid=0,inset=-1;if(setid){if(!shutterSets[setid])shutterSets[setid]=[];inset=shutterSets[setid].push(i);}
shfile=L.href.slice(L.href.lastIndexOf('/')+1);T=(L.title&&L.title!=shfile)?L.title:'';shutterLinks[i]={link:L.href,num:inset,set:setid,title:T}
L.onclick=new Function('shutterReloaded.make("'+i+'");return false;');}
t.settings();},make:function(ln,fs){var t=this,prev,next,prevlink='',nextlink='',previmg,nextimg,D,S,W,fsarg=-1,imgNum,NavBar;if(!t.Top){if(typeof window.pageYOffset!='undefined')t.Top=window.pageYOffset;else t.Top=(document.documentElement.scrollTop>0)?document.documentElement.scrollTop:document.body.scrollTop;}
if(typeof t.pgHeight=='undefined')
t.pgHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);if(fs)t.FS=(fs>0)?1:0;else t.FS=shutterSettings.FS||0;if(t.resizing)t.resizing=null;window.onresize=new Function('shutterReloaded.resize("'+ln+'");');document.documentElement.style.overflowX='hidden';if(!t.VP){t._viewPort();t.VP=true;}
if(!(S=t.I('shShutter'))){S=document.createElement('div');S.setAttribute('id','shShutter');document.getElementsByTagName('body')[0].appendChild(S);t.hideTags();}
if(!(D=t.I('shDisplay'))){D=document.createElement('div');D.setAttribute('id','shDisplay');D.style.top=t.Top+'px';document.getElementsByTagName('body')[0].appendChild(D);}
S.style.height=t.pgHeight+'px';var dv=t.textBtns?' | ':'';if(shutterLinks[ln].num>1){prev=shutterSets[shutterLinks[ln].set][shutterLinks[ln].num-2];prevlink='<a href="#" onclick="shutterReloaded.make('+prev+');return false">&lt;&lt;</a>'+dv;previmg=new Image();previmg.src=shutterLinks[prev].link;}else{prevlink='';}
if(shutterLinks[ln].num!=-1&&shutterLinks[ln].num<(shutterSets[shutterLinks[ln].set].length)){next=shutterSets[shutterLinks[ln].set][shutterLinks[ln].num];nextlink='<a href="#" onclick="shutterReloaded.make('+next+');return false">&gt;&gt;</a>'+dv;nextimg=new Image();nextimg.src=shutterLinks[next].link;}else{nextlink='';}
imgNum=((shutterLinks[ln].num>0)&&t.imageCount)?'<div id="shCount">&nbsp;(&nbsp;'+shutterLinks[ln].num+'&nbsp;/&nbsp;'+shutterSets[shutterLinks[ln].set].length+'&nbsp;)&nbsp;</div>':'';NavBar='<div id="shTitle"><div id="shPrev">'+prevlink+'</div><div id="shNext">'+nextlink+'</div><div id="shName">'+shutterLinks[ln].title+'</div>'+imgNum+'</div>';D.innerHTML='<div id="shWrap"><img src="" id="shTopImg" title="'+t.msgClose+'" onload="shutterReloaded.showImg();" onclick="shutterReloaded.hideShutter();" />'+NavBar+'</div>';document.getElementById('shTopImg').src=shutterLinks[ln].link;window.setTimeout(function(){shutterReloaded.loading();},2000);},loading:function(){var t=this,S,WB,W;if((W=t.I('shWrap'))&&W.style.visibility=='visible')return;if(!(S=t.I('shShutter')))return;if(t.I('shWaitBar'))return;WB=document.createElement('div');WB.setAttribute('id','shWaitBar');WB.style.top=t.Top+'px';WB.innerHTML=t.msgLoading;S.appendChild(WB);},hideShutter:function(){var t=this,D,S;if(D=t.I('shDisplay'))D.parentNode.removeChild(D);if(S=t.I('shShutter'))S.parentNode.removeChild(S);t.hideTags(true);window.scrollTo(0,t.Top);window.onresize=t.FS=t.Top=t.VP=null;document.documentElement.style.overflowX='';},resize:function(ln){var t=this;if(t.resizing)return;if(!t.I('shShutter'))return;var W=t.I('shWrap');if(W)W.style.visibility='hidden';window.setTimeout(function(){shutterReloaded.resizing=null},500);window.setTimeout(new Function('shutterReloaded.VP = null;shutterReloaded.make("'+ln+'");'),100);t.resizing=true;},_viewPort:function(){var t=this;var wiH=window.innerHeight?window.innerHeight:0;var dbH=document.body.clientHeight?document.body.clientHeight:0;var deH=document.documentElement?document.documentElement.clientHeight:0;if(wiH>0){t.wHeight=((wiH-dbH)>1&&(wiH-dbH)<30)?dbH:wiH;t.wHeight=((t.wHeight-deH)>1&&(t.wHeight-deH)<30)?deH:t.wHeight;}else t.wHeight=(deH>0)?deH:dbH;var deW=document.documentElement?document.documentElement.clientWidth:0;var dbW=window.innerWidth?window.innerWidth:document.body.clientWidth;t.wWidth=(deW>1)?deW:dbW;},showImg:function(){var t=this,S=t.I('shShutter'),D=t.I('shDisplay'),TI=t.I('shTopImg'),T=t.I('shTitle'),NB=t.I('shNavBar'),W,WB,wHeight,wWidth,shHeight,maxHeight,itop,mtop,resized=0;if(!S)return;if((W=t.I('shWrap'))&&W.style.visibility=='visible')return;if(WB=t.I('shWaitBar'))WB.parentNode.removeChild(WB);S.style.width=D.style.width='';T.style.width=(TI.width-4)+'px';shHeight=t.wHeight-7;if(t.FS){if(TI.width>(t.wWidth-10))
S.style.width=D.style.width=TI.width+10+'px';document.documentElement.style.overflowX='';}else{window.scrollTo(0,t.Top);if(TI.height>shHeight){TI.width=TI.width*(shHeight/TI.height);TI.height=shHeight;resized=1;}
if(TI.width>(t.wWidth-16)){TI.height=TI.height*((t.wWidth-16)/TI.width);TI.width=t.wWidth-16;resized=1;}
T.style.width=(TI.width-4)+'px';}
maxHeight=t.Top+TI.height+10;if(maxHeight>t.pgHeight)S.style.height=maxHeight+'px';window.scrollTo(0,t.Top);itop=(shHeight-TI.height)*0.45;mtop=(itop>3)?Math.floor(itop):3;D.style.top=t.Top+mtop+'px';W.style.visibility='visible';},hideTags:function(arg){var sel=document.getElementsByTagName('select');var obj=document.getElementsByTagName('object');var emb=document.getElementsByTagName('embed');var ifr=document.getElementsByTagName('iframe');var vis=(arg)?'visible':'hidden';for(i=0;i<sel.length;i++)sel[i].style.visibility=vis;for(i=0;i<obj.length;i++)obj[i].style.visibility=vis;for(i=0;i<emb.length;i++)emb[i].style.visibility=vis;for(i=0;i<ifr.length;i++)ifr[i].style.visibility=vis;}}
;var wpgb_cookie_exp=365;function wpgb_get_cookie(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!=-1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}
return"";}
function wpgb_set_cookie(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+";path="+"/"+
((expiredays==null)?"":";expires="+exdate.toGMTString());}
function wpgb_delete_cookie(c_name)
{var now=new Date();now.setTime(now.getTime()-1);document.cookie=c_name+="=; expires="+now.toGMTString();}
function wpgb_get_delta(ref){var visit_delta;var visit_last=wpgb_get_cookie("wpgb_visit_last-"+ref);if(visit_last==null||visit_last==""){visit_delta=-1;}
else{visit_last=new Date(visit_last);visit_delta=Math.round((new Date()-visit_last)/(1000*60));}
return visit_delta;}
function wpgb_get_closed(ref){var closed=wpgb_get_cookie("wpgb_closed-"+ref);if(closed==null||closed==""){return""}
else{return"true"}}
function wpgb_get_logged_in(){var logged_in=wpgb_get_cookie("wpgb_logged_in");if(logged_in==null||logged_in==""){return""}
else{return"true"}}
;jQuery(document).ready(function($){var ref="default";if(document.referrer){ref=document.referrer;m=ref.match(/^(http:\/\/[^\/]+)/i);if(m){ref=m[1].replace(".","_");}}
$.ajax({type:"GET",url:"index.php",data:"wpgb_public_action=query&visit_delta="+wpgb_get_delta(ref)+"&closed="+wpgb_get_closed(ref)+"&logged_in="+wpgb_get_logged_in()+"&referrer="+encodeURIComponent(document.referrer)+"&url="+encodeURIComponent(document.location)+"&title="+encodeURIComponent(document.title),success:function(resp){if(resp!=''){$("#greet_block").hide().html(resp).fadeIn("def");$("#greet_block_close").click(function(event){event.preventDefault();wpgb_set_cookie("wpgb_closed-"+ref,new Date(),wpgb_cookie_exp);wpgb_set_cookie("wpgb_closed-"+ref,new Date(),wpgb_cookie_exp);$("#greet_block").fadeOut("def");});$("#greet_search_link").click(function(){action=$(this).attr("action");if(action=="show"){$("#greet_search_results").slideDown();$(this).attr("action","hide");$("#greet_search_link_text_show").hide();$("#greet_search_link_text_hide").show();$("#greet_search_text_show").hide();$("#greet_search_text_hide").show();}
else if(action=="hide"){$("#greet_search_results").slideUp("fast");$(this).attr("action","show");$("#greet_search_link_text_show").show();$("#greet_search_link_text_hide").hide();$("#greet_search_text_show").show();$("#greet_search_text_hide").hide();}});}}});wpgb_set_cookie("wpgb_visit_last-"+ref,new Date(),wpgb_cookie_exp);});
;function convertEntities(b){var d,a;d=function(c){if(/&[^;]+;/.test(c)){var f=document.createElement("div");f.innerHTML=c;return!f.firstChild?c:f.firstChild.nodeValue}return c};if(typeof b==="string"){return d(b)}else{if(typeof b==="object"){for(a in b){if(typeof b[a]==="string"){b[a]=d(b[a])}}}}return b};
;(function(){var dep={"jQuery":"http://code.jquery.com/jquery-latest.min.js"};var init=function(){(function($){$.fn.idTabs=function(){var s={};for(var i=0;i<arguments.length;++i){var a=arguments[i];switch(a.constructor){case Object:$.extend(s,a);break;case Boolean:s.change=a;break;case Number:s.start=a;break;case Function:s.click=a;break;case String:if(a.charAt(0)=='.')s.selected=a;else if(a.charAt(0)=='!')s.event=a;else s.start=a;break;}}
if(typeof s['return']=="function")
s.change=s['return'];return this.each(function(){$.idTabs(this,s);});}
$.idTabs=function(tabs,options){var meta=($.metadata)?$(tabs).metadata():{};var s=$.extend({},$.idTabs.settings,meta,options);if(s.selected.charAt(0)=='.')s.selected=s.selected.substr(1);if(s.event.charAt(0)=='!')s.event=s.event.substr(1);if(s.start==null)s.start=-1;var showId=function(){if($(this).is('.'+s.selected))
return s.change;var id="#"+this.href.split('#')[1];var aList=[];var idList=[];$("a",tabs).each(function(){if(this.href.match(/#/)){aList.push(this);idList.push("#"+this.href.split('#')[1]);}});if(s.click&&!s.click.apply(this,[id,idList,tabs,s]))return s.change;for(i in aList)$(aList[i]).removeClass(s.selected);for(i in idList)$(idList[i]).hide();$(this).addClass(s.selected);$(id).show();return s.change;}
var list=$("a[href*='#']",tabs).unbind(s.event,showId).bind(s.event,showId);list.each(function(){$("#"+this.href.split('#')[1]).hide();});var test=false;if((test=list.filter('.'+s.selected)).length);else if(typeof s.start=="number"&&(test=list.eq(s.start)).length);else if(typeof s.start=="string"&&(test=list.filter("[href*='#"+s.start+"']")).length);if(test){test.removeClass(s.selected);test.trigger(s.event);}
return s;}
$.idTabs.settings={start:0,change:false,click:null,selected:".selected",event:"!click"};$.idTabs.version="2.2";$(function(){$(".idTabs").idTabs();});})(jQuery);}
var check=function(o,s){s=s.split('.');while(o&&s.length)o=o[s.shift()];return o;}
var head=document.getElementsByTagName("head")[0];var add=function(url){var s=document.createElement("script");s.type="text/javascript";s.src=url;head.appendChild(s);}
var s=document.getElementsByTagName('script');var src=s[s.length-1].src;var ok=true;for(d in dep){if(check(this,d))continue;ok=false;add(dep[d]);}if(ok)return init();add(src);})();
;jQuery(document).ready(function(a){a("#LoginWithAjax_Form").submit(function(b){b.preventDefault();if(a("#LoginWithAjax").length>0){a('<div class="LoginWithAjax_Loading" id="LoginWithAjax_Loading"></div>').prependTo("#LoginWithAjax")}else{a('<div class="LoginWithAjax_Loading" id="LoginWithAjax_Loading"></div>').prependTo("#login-with-ajax")}url=a("#LoginWithAjax_Form").attr("action");url+=(url.match(/\?/)!=null)?"&callback=?":"?callback=?";url+="&log="+a("#lwa_user_login").attr("value");url+="&pwd="+a("#lwa_user_pass").attr("value");url+="&login-with-ajax=login";a.getJSON(url,function(d,c){a("#LoginWithAjax_Loading").remove();if(d.result===true||d.result===false){if(d.result=="1"){if(a("#LoginWithAjax_Status").length>0){a("#LoginWithAjax_Status").attr("class","confirm").html("Erfolgreich eingeloggt...")}else{a('<span id="LoginWithAjax_Status" class="confirm">Login Successful, redirecting...</span>').prependTo("#login-with-ajax")}if(d.redirect==null){window.location.reload()}else{window.location=d.redirect}}else{if(a("#LoginWithAjax_Status").length>0){a("#LoginWithAjax_Status").attr("class","invalid").html(d.error)}else{a('<span id="LoginWithAjax_Status" class="invalid">'+d.error+"</span>").prependTo("#login-with-ajax")}a("#LoginWithAjax_Status").click(function(e){e.preventDefault();a("#LoginWithAjax_Remember").show("slow")})}}else{if(a("#LoginWithAjax_Status").length>0){a("#LoginWithAjax_Status").attr("class","invalid").html("An error has occured. Please try again."+c)}else{a('<span id="LoginWithAjax_Status" class="invalid">An error has occured. Please try again.</span>').prependTo("#login-with-ajax")}}})});a("#LoginWithAjax_Remember").submit(function(b){b.preventDefault();a('<div id="LoginWithAjax_Loading"></div>').prependTo("#LoginWithAjax");url=a("#LoginWithAjax_Remember").attr("action");url+=(url.match(/\?/)!=null)?"&callback=?":"?callback=?";url+="&user_login="+a("#lwa_user_remember").attr("value");url+="&login-with-ajax=remember";a.getJSON(url,function(d,c){a("#LoginWithAjax_Loading").remove();if(d.result===true||d.result===false){if(d.result=="1"){if(a("#LoginWithAjax_Status").length>0){a("#LoginWithAjax_Status").attr("class","confirm").html("We have sent you an email")}else{a('<span id="LoginWithAjax_Status" class="confirm">We have sent you an email</span>').prependTo("#login-with-ajax")}}else{if(a("#LoginWithAjax_Status").length>0){a("#LoginWithAjax_Status").attr("class","invalid").html(d.error)}else{a('<span id="LoginWithAjax_Status" class="invalid">'+d.error+"</span>").prependTo("#login-with-ajax")}}}else{if(a("#LoginWithAjax_Status").length>0){a("#LoginWithAjax_Status").attr("class","invalid").html("An error has occured. Please try again."+c)}else{a('<span id="LoginWithAjax_Status" class="invalid">An error has occured. Please try again.</span>').prependTo("#login-with-ajax")}}})});a("#LoginWithAjax_Remember").hide();a("#LoginWithAjax_Links_Remember").click(function(b){b.preventDefault();a("#LoginWithAjax_Remember").show("slow")});a("#LoginWithAjax_Links_Remember_Cancel").click(function(b){b.preventDefault();a("#LoginWithAjax_Remember").hide("slow")})});
;var rpPel=null;var Commentarea=null;function $s(){if(arguments.length==1)
return get$(arguments[0]);var elements=[];$c(arguments).each(function(el){elements.push(get$(el));});return elements;}
function get$(el){if(typeof el=='string')
el=document.getElementById(el);return el;}
function $c(array){var nArray=[];for(i=0;el=array[i];i++)nArray.push(el);return nArray;}
function commentarea(){var fi=$s(commentformid).getElementsByTagName('textarea');for(var i=0;i<fi.length;i++){if(fi[i].name=='comment'){return fi[i];}}
return null;}
function movecfm(event,Id,dp,author){var cfm=$s(commentformid);if(cfm==null){alert("ERROR:\nCan't find the 'commentformid' div.");return false;}
var reRootElement=$s("cancel_reply");if(reRootElement==null){alert("Error:\nNo anchor tag called 'cancel_reply'.");return false;}
var replyId=$s("comment_reply_ID");if(replyId==null){alert("Error:\nNo form field called 'comment_reply_ID'.");return false;}
var dpId=$s("comment_reply_dp");if(Commentarea==null)
Commentarea=commentarea();if(parseInt(Id)){if(cfm.style.display=="none"){alert("New Comment is submiting, please wait a moment");return false;}
if(event==null)
event=window.event;rpPel=event.srcElement?event.srcElement:event.target;rpPel=rpPel.parentNode.parentNode;var OId=$s("comment-"+Id);if(OId==null){OId=rpPel;}
replyId.value=Id;if(dpId)
dpId.value=dp;reRootElement.style.display="block";if($s("cfmguid")==null){var c=document.createElement("div");c.id="cfmguid";c.style.display="none";cfm.parentNode.insertBefore(c,cfm);}
cfm.parentNode.removeChild(cfm);OId.appendChild(cfm);if(Commentarea&&Commentarea.display!="none"){Commentarea.focus();if(atreply=='author')
Commentarea.value='@'+author+', ';else if(atreply=='authorlink')
Commentarea.value='<a href="#comment-'+Id+'">@'+author+'</a>, ';}
cfm.style.display="block";}else{replyId.value="0";if(dpId)
dpId.value="0";reRootElement.style.display="none";var c=$s("cfmguid");if(c){cfm.parentNode.removeChild(cfm);c.parentNode.insertBefore(cfm,c);}
if(parseInt(dp)&&Commentarea&&Commentarea.display!="none"){Commentarea.focus();}}
return true;}
