//############################################################################
//                   SCHWARZBURGER.COM©   IMAGE ANIMATIONS 1.3                
//############################################################################
var ea=(navigator.appVersion.indexOf("MSIE 6")!=-1||navigator.appVersion.indexOf("MSIE 7")!=-1)?true:false,eb=navigator.appVersion.indexOf("MSIE")!=-1?true:false,ec=navigator.appName=="Opera"?true:false,fa=20,fb=18,fc=50+fb,fd;function ed(I,l){var i=I.style;for(var o in l)i[o]=l[o];return I}function zL(oc,num){this.bL=document.getElementById("container");var bF=document.getElementById("footer");this.bW=this.bL.offsetWidth+4;this.bH=this.bL.offsetHeight-bF.offsetHeight-2;this.fa=fa;this.fb=fb;this.oc=oc;this.num=parseInt(num);this.pics=eval(pics);this.fe=0;this.ff=0;this.aBG=document.createElement("div");ed(this.aBG,{position:"absolute",top:0+"px",left:0+"px",width:this.bW+"px",height:this.bH+"px"});this.aBG.className="zoomBg";this.aZL=document.createElement("div");this.aZL.id="zoomLayer";this.ef=function(){this.aZL.style.display="block";if(this.oc<10){this.oc++;this.aZL.style.opacity=this.oc/10;this.aZL.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)"}else{clearInterval(this.fe)}};this.ee=function(){var l=document.getElementById(this.aZL.id);if(l&&this.oc>0){this.oc--;l.style.opacity=this.oc/10;l.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)"}else{if(l)l.parentNode.removeChild(l);clearInterval(this.ff);if(this.mode=="fON")nextPic("fIN",this.num)}};this.eg=function(mode){this.mode=mode;switch(mode){case "fadeIn":var cm=this.incl(this.ef);this.fe=setInterval(cm,40);break;case "fadeOut":var curBg=document.getElementById("zBG");if(curBg)curBg.parentNode.removeChild(curBg);var curBg=document.getElementById("zFBG");if(!curBg){var curZL=document.getElementById(this.aZL.id),aBG=document.createElement("div");aBG.className="zoomBg";ed(aBG,{position:"absolute",zIndex:-1,top:0+"px",left:0+"px",width:this.bW+"px",height:this.bH+"px"});curZL.appendChild(aBG)}var cm=this.incl(this.ee);this.ff=setInterval(cm,40);break;case "fON":var curBg=document.getElementById("zFBG");if(curBg)curBg.parentNode.removeChild(curBg);var bL=document.getElementById("container"),curBg=document.getElementById("zBG");if(!curBg){var aBG=document.createElement("div");aBG.className="zoomBg";aBG.id="zBG";ed(aBG,{position:"absolute",zIndex:500,top:0+"px",left:0+"px",width:this.bW+"px",height:this.bH+"px"});bL.appendChild(aBG)}var cm=this.incl(this.ee);this.ff=setInterval(cm,40);break;case "fIN":var cm=this.incl(this.ef);this.fe=setInterval(cm,40);break}};this.incl=function(thisMeth){var thisObj=this;return(function(){return(thisMeth.apply(thisObj,arguments))})}}function setUpZL(k,Z,V){var wiHe=eb?document.documentElement.clientHeight:window.innerHeight;var q=this;q.oc=k;fd=q.num=parseInt(Z);q.mode=V;q.curObj=q.pics[q.num];if(q.pics.length>1)q.p_t=(q.num+1)+"/"+q.pics.length+" "+q.curObj.f_t;ed(q.aZL,{position:"absolute",zIndex:1000,top:1+"px",left:1+"px",width:q.bW+"px",height:q.bH+"px"});q.bL.appendChild(q.aZL);q.aZL.style.display="none";var I=document.getElementById("zBG");if(I)I.parentNode.removeChild(I);if(q.mode=="fIN"){var I=document.getElementById("zFBG");if(I)I.parentNode.removeChild(I);q.aBG.id="zBG";ed(q.aBG,{zIndex:500});q.bL.appendChild(q.aBG)}else{q.aBG.id="zFBG";ed(q.aBG,{zIndex:-1});q.aZL.appendChild(q.aBG)}var curHe=(q.bH>=wiHe)?wiHe:q.bH;var X=document.createElement("img");ed(X,{marginTop:(curHe-q.curObj.f_h-22)/2+"px",marginLeft:(q.bW-q.curObj.f_w)/2+"px",width:q.curObj.f_w+"px",height:q.curObj.f_h+"px"});X.className="zoomPicture";q.aZL.im=X;q.aZL.im.src=q.curObj.f_n;q.aZL.appendChild(X);var i=document.createElement("div");i.className="zoomCaption";ed(i,{height:q.fb+"px",marginLeft:(q.bW-q.curObj.f_w)/2+"px",width:q.curObj.f_w+"px"});q.aZL.capSec=i;var o=document.createElement("div");ed(o,{top:0+"px",width:q.curObj.f_w-q.fa-10+"px",height:q.fb+"px"});o.className="capTSec";q.aZL.capSec.capTS=o;i.appendChild(o);var O=document.createElement("p"),x=document.createTextNode(q.curObj.f_t);ed(O,{margin:0+"px",paddingTop:2+"px",paddingLeft:20+"px"});O.appendChild(x);i.capTS.appendChild(O);var v=document.createElement("div");v.className="reSBut";ed(v,{top:0+"px",width:q.fa+"px",height:q.fb+"px",marginTop:-q.fb+"px",marginLeft:(q.curObj.f_w-q.fa)+"px"});v.onclick=function(){closeZoom()};v.id="zoomClose";i.appendChild(v);q.aZL.appendChild(i);q.aZL.capSec.rS=v;if(ea){q.aZL.im.style.filter="alpha(opacity="+100+",finishopacity=0,style=0)";q.aZL.capSec.style.filter="alpha(opacity="+100+",finishopacity=0,style=0)"}if(q.pics.length>1){var l="#999999",C=document.createElement("div");C.className="zNavBut";ed(C,{top:0+"px",width:q.fa+"px",height:q.fb+"px",marginTop:-q.fb-8+"px",marginLeft:(q.curObj.f_w-3*q.fa)+"px"});if(ea)ed(C,{marginTop:-q.fb+1+"px",filter:"alpha(opacity="+100+",finishopacity=0,style=0)"});var z=document.createElement("p");if(q.num==q.pics.length-1){ed(z,{color:l});C.style.cursor="default"}var S=document.createTextNode(">>");z.appendChild(S);C.appendChild(z);if(q.num<q.pics.length-1){var W=q.num+1;C.onclick=function(){nextPic("fON",W,pics[W].f_n,pics[W].f_w,pics[W].f_h,pics[W].f_t)};C.style.cursor="pointer"}var c=document.createElement("div");c.className="zNavBut";ed(c,{top:0+"px",width:q.fa+"px",height:q.fb+"px",marginTop:-q.fb-11+"px",marginLeft:(q.curObj.f_w-(4*q.fa+4))+"px"});if(ea)ed(c,{marginTop:-q.fb+"px",filter:"alpha(opacity="+100+",finishopacity=0,style=0)"});var w=document.createElement("p");if(q.num==0){ed(w,{color:l});c.style.cursor="default"}var K=document.createTextNode("<<");w.appendChild(K);c.appendChild(w);if(q.num>0){var s=q.num-1;c.onclick=function(){nextPic("fON",s,pics[s].f_n,pics[s].f_w,pics[s].f_h,pics[s].f_t)};c.style.cursor="pointer"}i.appendChild(C);i.appendChild(c)}}function displayZoom(i,I){setUpZL.prototype=new zL;var l=new setUpZL(0,I,i);l.eg(i)}function closeZoom(){var i=new zL(10);i.eg("fadeOut")}function nextPic(i,I){if(i=="fON")var l=new zL(10,I);if(i=="fIN"){setUpZL.prototype=new zL;var l=new setUpZL(0,I,i)}l.eg(i)}var ek=0,el=0,fh,fi,fj,fk,fl,cP,cPPo=0,mIP=0,bBV=0,sSS=0;function sSE(num,sP){var fm;this.bL=document.getElementById("slideShow");this.bW=this.bL.offsetWidth;this.bH=this.bL.offsetHeight;this.bT=this.bL.offsetTop;ed(this.bL,{overflow:"hidden"});this.num=parseInt(num);this.oc=0;this.sv=20;this.fe=0;this.fn=0;this.sP=sP;this.pics=eval(pics);if(!document.getElementById("picL")){this.picL=document.createElement("div");this.picL.id="picL"+this.num;this.picL.className="slideShowPic";this.picL.num=this.num;ed(this.picL,{position:"absolute",zIndex:1,top:0+"px",left:0+"px",width:this.bW+"px",height:this.bH+"px",opacity:0,filter:"alpha(opacity=100,finishopacity=0,style=0)"});if(eb)this.picL.style.display="none";var im=document.createElement("img");im.src=this.pics[this.num].f_n;ed(im,{marginTop:((this.bH-this.pics[this.num].f_h)/2)+"px",marginLeft:((this.bW-this.pics[this.num].f_w)/2)+"px"});this.picL.appendChild(im);this.bL.appendChild(this.picL);this.daL=document.createElement("div");this.daL.id="sSDb";ed(this.daL,{position:"relative",zIndex:50,left:0+"px",width:this.bW+"px",height:20+"px",marginTop:(this.bH)+"px"});if(ea)ed(this.daL,{top:(this.bH-20)+"px",marginTop:0+"px"});this.bL.appendChild(this.daL);var daBg=document.createElement("div");daBg.className="sSDb";ed(daBg,{position:"absolute",zIndex:1,top:0+"px",left:0+"px",width:this.bW+"px",height:20+"px",opacity:.5,filter:"alpha(opacity=50,finishopacity=0,style=0)"});this.daL.appendChild(daBg);var daBd=document.createElement("div");ed(daBd,{position:"absolute",zIndex:2,top:0+"px",left:0+"px",width:this.bW+"px",height:20+"px"});this.daL.appendChild(daBd);var capTS=document.createElement("div");ed(capTS,{top:0+"px",width:this.bW-100+"px",height:20+"px"});capTS.id="capTS";var capP=document.createElement("p"),capT=document.createTextNode((this.num+1)+"/"+this.pics.length+" "+this.pics[this.num].f_t);ed(capP,{margin:0+"px",paddingTop:0+"px",paddingLeft:20+"px",fontWeight:"bold",color:"#FFFFFF"});capP.appendChild(capT);capTS.appendChild(capP);daBd.appendChild(capTS);if(this.sP==1){var dPsB=document.createElement("div");dPsB.id="dPsB";dPsB.className="sSBut";ed(dPsB,{marginTop:-15+"px",marginLeft:this.bW-60+"px",width:9+"px",height:10+"px",backgroundImage:"url(assets/images/graphics/pause-squ-bl.gif)",cursor:"pointer"});if(ea)ed(dPsB,{backgroundRepeat:"no-repeat"});dPsB.onclick=function(){fy()};daBd.appendChild(dPsB);var dPlB=document.createElement("div");dPlB.id="dPlB";dPlB.className="sSBut";ed(dPlB,{marginTop:-15+"px",marginLeft:this.bW-60+"px",width:10+"px",height:10+"px",backgroundImage:"url(assets/images/graphics/play-squ-bl.gif)",cursor:"pointer",display:"none"});if(ea)ed(dPlB,{backgroundRepeat:"no-repeat"});dPlB.onclick=function(){fz()};daBd.appendChild(dPlB)}if(!ea){var dCl=document.createElement("div"),marT=(this.sP==1)?-10:-15;ed(dCl,{marginTop:marT+"px",marginLeft:this.bW-20+"px",width:10+"px",height:10+"px",backgroundImage:"url(assets/images/graphics/close-squ-bl.gif)",cursor:"pointer"});dCl.className="sSBut";dCl.onclick=function(){fx("sO")};daBd.appendChild(dCl);this.picL.onmouseover=function(){fx("sI")}}}this.eh=function(){if(this.oc<10){if(eb)this.picL.style.display="block";this.oc++;this.picL.style.opacity=this.oc/10;this.picL.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)"}else{clearInterval(this.fe);sSS=0;this.num>=1?fm=this.num-1:fm=this.pics.length-1;(this.num+1)<this.pics.length?el=this.num+1:el=0;var lastL=document.getElementById("picL"+(fm));if(lastL)lastL.parentNode.removeChild(lastL);var T=document.getElementById("capTS");if(T){T.removeChild(T.firstChild);var capP=document.createElement("p"),capT=document.createTextNode((this.num+1)+"/"+this.pics.length+" "+this.pics[this.num].f_t);ed(capP,{margin:0+"px",paddingTop:0+"px",paddingLeft:20+"px",fontWeight:"bold",color:"#FFFFFF"});capP.appendChild(capT);T.appendChild(capP)}this.pLo=document.createElement("div");ed(this.pLo,{visibility:"hidden"});var lIm=document.createElement("img");lIm.src=this.pics[el].f_n;this.pLo.appendChild(lIm);this.bL.appendChild(this.pLo);if(this.sP==1)fh=setTimeout("slideShow()",3000)}};this.ei=function(){if(ek==0)ek=1;var d=document.getElementById("sSDb"),bH=document.getElementById("slideShow").offsetHeight,dH=d.offsetHeight,dT=d.offsetTop;if(dT>(bH-dH)){this.sv--;d.style.marginTop=bH+this.sv+"px"}else{clearInterval(this.fn);this.sv=0}};this.ej=function(){if(ek==1)ek=2;var d=document.getElementById("sSDb"),bH=document.getElementById("slideShow").offsetHeight,dT=d.offsetTop-0;if(dT<bH){this.sv++;d.style.marginTop=dT+this.sv+"px"}else{clearInterval(this.fn);this.sv=20;setTimeout(function(){ek=0},1000)}};this.eg=function(mode){switch(mode){case "fI":var cm=this.incl(this.eh);sSS=1;this.fe=setInterval(cm,60);break;case "sI":var cm=this.incl(this.ei);this.sv=20;this.fn=setInterval(cm,20);break;case "sO":var cm=this.incl(this.ej);this.sv=0;this.fn=setInterval(cm,30);break;case "pS":clearTimeout(fh);var T=document.getElementById("dPsB");ed(T,{display:"none"});var T=document.getElementById("dPlB");ed(T,{display:"block"});break;case "pL":fh=setTimeout("slideShow()",3000);var T=document.getElementById("dPlB");ed(T,{display:"none"});var T=document.getElementById("dPsB");ed(T,{display:"block"});break}};this.incl=function(thisMeth){var thisObj=this;return(function(){return(thisMeth.apply(thisObj,arguments))})};function fx(mode){if(mode=="sI"&&ek==0){var m=new sSE(el,1);m.eg(mode)}if(mode=="sO"&&ek==1){var m=new sSE(el,1);m.eg(mode)}};function fy(){if(sSS==0){var m=new sSE(el,1);m.eg("pS")}};function fz(){if(sSS==0){var m=new sSE(el,1);m.eg("pL")}}}function slideShow(){var i=new sSE(el,1);i.eg("fI")}function setUpThBar(){this.oc=0;this.contBL=document.getElementById("slider");var h=this.contBL.offsetHeight,w=this.contBL.offsetWidth;this.tBML=7;this.tBLW=5;this.tBElW=105;this.pixVis=6;var inActCol="#999999";if(document.getElementById("thumbBar")==undefined){this.contL=document.createElement("div");this.contL.id="thumbBar";this.contL.className="thumbBar bg1Design";ed(this.contL,{position:"absolute",zIndex:1,top:(h-60)/2+"px",left:0+"px",height:60+"px"});this.contBL.appendChild(this.contL);for(var i in this.pics){var pic=this.pics[i].f_n.replace(/medium/gi,"thumb"),tBEl=document.createElement("div");tBEl.id="tBEl"+i;tBEl.className="thBarEl";tBEl.num=i;ed(tBEl,{position:"absolute",zIndex:1,top:0+"px",left:this.tBML+(i*this.tBElW)+"px",width:96+"px",height:60+"px",cursor:"pointer",backgroundImage:"url("+pic+")",backgroundRepeat:"no-repeat",backgroundPosition:"-2px -3px"});tBEl.onclick=function(){fw(this.num)};this.contL.appendChild(tBEl);this.tBLW+=this.tBElW}if(pics.length>this.pixVis){this.bBLe=document.createElement("div");this.bBLe.id="barButLeft";this.bBLe.className="barButton";ed(this.bBLe,{position:"absolute",zIndex:20,top:0+"px",left:0+"px",width:20+"px",height:h+"px",cursor:"pointer",display:"none"});var bBLBg=document.createElement("div");bBLBg.className="bBBg";ed(bBLBg,{position:"absolute",zIndex:1,top:0+"px",left:0+"px",width:20+"px",height:h+"px"});this.bBLe.appendChild(bBLBg);var bBLBu=document.createElement("div");ed(bBLBu,{position:"absolute",zIndex:2,top:0+"px",left:0+"px",width:20+"px",height:h+"px"});var prP=document.createElement("p"),prT=document.createTextNode("<<");ed(prP,{margin:5+"px",marginTop:(h/2-7)+"px",padding:0+"px",fontWeight:"bold",color:inActCol});prP.appendChild(prT);bBLBu.appendChild(prP);this.bBLe.appendChild(bBLBu);this.bBRi=document.createElement("div");this.bBRi.id="barButRight";this.bBRi.className="barButton";ed(this.bBRi,{position:"absolute",zIndex:22,top:0+"px",left:w-20+"px",width:20+"px",height:h+"px",cursor:"pointer",display:"none"});var bBRBg=document.createElement("div");bBRBg.className="bBBg";ed(bBRBg,{position:"absolute",zIndex:1,top:0+"px",left:0+"px",width:20+"px",height:h+"px"});this.bBRi.appendChild(bBRBg);var bBRBu=document.createElement("div");ed(bBRBu,{position:"absolute",zIndex:2,top:0+"px",left:0+"px",width:20+"px",height:h+"px"});var neP=document.createElement("p"),neT=document.createTextNode(">>");ed(neP,{margin:5+"px",marginTop:(h/2-7)+"px",padding:0+"px",fontWeight:"bold",color:"#FFFFFF"});neP.appendChild(neT);bBRBu.appendChild(neP);this.bBRi.appendChild(bBRBu);if(ea){bBLBu.style.filter="alpha(opacity="+100+",finishopacity=0,style=0)";bBRBu.style.filter="alpha(opacity="+100+",finishopacity=0,style=0)"}this.bBLe.onmouseover=function(){fv("kBV")};this.bBRi.onmouseover=function(){fv("kBV")};this.bBLe.onclick=function(){fv("mBR")};this.bBRi.onclick=function(){fv("mBL")};this.contBL.appendChild(this.bBLe);this.contBL.appendChild(this.bBRi);this.contBL.onmouseover=function(){fv("fIB")};this.contBL.onmouseout=function(){fv("tBV")}}}this.fo=function(){var l=document.getElementById("barButLeft"),r=document.getElementById("barButRight");if(this.oc<10){this.oc++;l.style.opacity=this.oc/10;r.style.opacity=this.oc/10;l.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)";r.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)"}else{clearInterval(fj);bBV=1}};this.fp=function(){clearTimeout(fi);var cm=this.incl(this.fq);fk=setInterval(cm,60)};this.fq=function(){var l=document.getElementById("barButLeft"),r=document.getElementById("barButRight");if(this.oc>0){this.oc--;l.style.opacity=this.oc/10;r.style.opacity=this.oc/10;l.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)";r.style.filter="alpha(opacity="+(this.oc*10)+",finishopacity=0,style=0)"}else{clearInterval(fk);l.style.display="none";r.style.display="none";bBV=0}};this.fr=function(mode){var l=document.getElementById("barButLeft"),r=document.getElementById("barButRight");switch(mode){case "fIB":ed(l,{display:"block",opacity:0,filter:"alpha(opacity=0,finishopacity=0,style=0)"});ed(r,{display:"block",opacity:0,filter:"alpha(opacity=0,finishopacity=0,style=0)"});var cm=this.incl(this.fo);fj=setInterval(cm,60);break;case "mBL":if(cPPo>this.pixVis-this.pics.length){cPPo--;var cm=this.incl(this.fs);if(mIP==0){mIP=1;fl=setInterval(cm,50)}}break;case "mBR":if(cPPo<0){cPPo++;var cm=this.incl(this.ft);if(mIP==0){mIP=1;fl=setInterval(cm,50)}}break;case "kBV":clearInterval(fj);clearInterval(fk);clearTimeout(fi);ed(l,{opacity:10,filter:"alpha(opacity=100,finishopacity=0,style=0)"});ed(r,{opacity:10,filter:"alpha(opacity=100,finishopacity=0,style=0)"});this.oc=10;break;case "tBV":this.oc=10;var cm=this.incl(this.fp);fi=setTimeout(cm,3000);break}};this.fs=function(){var l=document.getElementById("thumbBar");cP=l.offsetLeft;if(cP>cPPo*this.tBElW){var m=(cPPo*this.tBElW)-cP,s=(m*m)/1000;cP-=1+s;l.style.left=cP+"px"}else{this.fu();clearInterval(fl);mIP=0}};this.ft=function(){var l=document.getElementById("thumbBar");cP=l.offsetLeft;if(cP<cPPo*this.tBElW){var m=cP-(cPPo*this.tBElW),s=(m*m)/1000;cP+=1+s;l.style.left=cP+"px"}else{this.fu();clearInterval(fl);mIP=0}};this.fu=function(){var l=document.getElementById("barButLeft").childNodes[1].firstChild;ed(l,{color:cPPo==0?inActCol:"#FFFFFF"});var l=document.getElementById("barButRight").childNodes[1].firstChild;ed(l,{color:cPPo>this.pixVis-this.pics.length?"#FFFFFF":inActCol})};function fv(mode){var m=new setUpThBar;switch(mode){case "fIB":if(bBV==0){bBV=2;m.fr(mode)}break;case "kBV":bBV=1;m.fr(mode);break;case "tBV":if(bBV==1){bBV=2;m.fr(mode)}break;default:m.fr(mode);break}};function fw(num){var m=new sSE(num,3);m.eg("fI")}}function thumbnailBar(){setUpThBar.prototype=new sSE(0,3);var i=new setUpThBar;i.eg("fI")}
