/* Scripts by: www.jokfa.deSIGN
 * Version: 1.0 (20110422)
 */

var x0 = ":"; var x1 = "a"; var x2 = "l"; var x3 = "i"; var x4 = "t"; var x5 = "m"; var x6 = "o"; 
var eM1 = x5 +x1 + x3 + x2 + x4 + x6 + x0;
var eMA = "@"; 
var eMP = ".";
var eMG = "d" + x6 + "r" + x3 + "s" + "-" + "p" + "r" + x3 + x2 + x6 + "p";
var eMT = "d" + "e";

function jaeM(n,d,t) {
      var i=0; i=jaeM.arguments.length;
      var eMs; eMs="no e-mail address";

      if (i==1) {
         eMs = eM1 + n + eMA + eMG + eMP + eMT;
      }

      if (i==2) {
         eMs = eM1 + n + eMA + d + eMP + eMT;
      }

      if (i==3) {
         eMs = eM1 + n + eMA + d + eMP + t;
      }

      window.location.replace(eMs);
}

function Html_CenterFoto(Foto,CopyR,Frmt,Prod,Ttle) {
		var WidthHeight;
		var HochQuer;
		if (Frmt=="hoch") {
			WidthHeight="height";
			HochQuer="hoch";
		}
		else {
			WidthHeight="width";
			HochQuer="quer";
		}
		var CopyName = "";
		if (CopyR.length>4) {
			CopyName="&copy; "+CopyR;
		}
		var ProdInfo = "";
		if (Prod.length>3) {
			ProdInfo="aus: "+Prod;
		}
		
		var NewHtml = "<img class=\"" + HochQuer + "\" src=\""+Foto.src+"\" " + WidthHeight + "=\"500\" title=\"" + Ttle + "\" ><p class=\"CopyR\">" + CopyName + "<br />"+ ProdInfo +"</p>";
 		document.getElementById('CenterFoto').innerHTML = NewHtml;
}

function CenterFotoKeepVisible() {
		var Xmethod1 = document.documentElement.scrollTop;	// MSIE
		var Xmethod2 = document.body.scrollTop;							// Other
		document.getElementById('CenterFoto').style.top=Math.max(Xmethod1,Xmethod2)+"px";
		setTimeout("CenterFotoKeepVisible()", 10);
}

var imgSource = new Array(); 
		imgSource[0] = "_images/Navigation/Aktuelles.jpg"; 
		imgSource[1] = "_images/Navigation/Kontakt.jpg"; 
		imgSource[2] = "_images/Navigation/Presse.jpg"; 
		imgSource[3] = "_images/Navigation/Theater.jpg"; 
		imgSource[4] = "_images/Navigation/TV+Film.jpg"; 
		imgSource[5] = "_images/Navigation/Video.jpg"; 
		imgSource[6] = "_images/Navigation/Vita.jpg"; 
var imgCache = new Array();

function imgPreCache() {
	for (i = 0; i < imgSource.length; i++) { 
		imgCache[i] = new Image(); 
		imgCache[i].src = imgSource[i]; 
	}
} 
