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 = "ash" + "ram" + "-" + "je" + "su";
var eMT = "de";

function jaeM(n,d,t) {
      var i=0; i=jaeM.arguments.length;
      var eMs; eMs="keine eMail-Adresse vorhanden";

      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;
      }

      top.window.location.replace(eMs);
}

function jaeMNews() {
      var eMs; eMs = eM1 + "newsletter" + eMA +"ashram-jesu.de?subject=Ashram-Newsletter abonnieren&body=Um den Newsletter zu abonnieren, schicken Sie uns bitte diese eMail zu.%0D%0A%0D%0AKein 'muss', aber eine herzliche Bitte: ergänzen Sie auch die folgenden Informationen.%0D%0AVorname:%0D%0ANachname:%0D%0Aggf. Titel:%0D%0A%0D%0ASobald uns diese eMail erreicht, nehmen wir Sie in den Verteiler für die nächsten Newsletter auf.%0D%0AWenn Sie den Newsletter später abbestellen wollen, reicht eine kurze Nachricht an die gleiche Adresse.%0D%0A%0D%0APlatz für weitere Mitteilungen an uns:";

      window.location.replace(eMs);
}

// ACHTUNG: Funktioniert nicht mit <base target="..."> im Header
// ACHTUNG: Funktioniert nicht mit INCLUDE

function showMore() {
	document.getElementById("more").style.visibility="hidden";
	document.getElementById("more").style.height="0px";
	document.getElementById("moreContent").style.visibility="visible";
	document.getElementById("moreContent").style.height="auto";
}

var LrgBild; 
function xShowLarge() {
	var winID = "window"+new Date().getTime();
  var w = LrgBild.naturalWidth;
  var h = LrgBild.naturalHeight;
  var f = 1;
	// Anzeigedimensionen korrigieren auf max 1000px Breite und 600px Höhe
  if (LrgBild.naturalWidth > 1000) { f = 1000 / w; w = 1000; h = h * f; }
  if (LrgBild.naturalHeight > 600) { f = 600 / h; h = 600; w = w * f; }
	// Neues Fenster öffnen
	MotivFenster = window.open(LrgBild.src, winID, "width="+w+",height="+h+",left=0,top=20");
	MotivFenster.focus();			
}


function ShowLarge() {
	var winID = "window"+new Date().getTime();
  var w = LrgBild.naturalWidth;
  var h = LrgBild.naturalHeight;
  var f = 1;
	// Anzeigedimensionen korrigieren auf max 1000px Breite und 600px Höhe
  if (LrgBild.naturalWidth > 1000) { f = 1000 / w; w = 1000; h = h * f; }
  if (LrgBild.naturalHeight > 600) { f = 600 / h; h = 600; w = w * f; }
	// HTML-Text der Seite generieren
	var html = '<html><head><title>Ashram Jesu Motiv<\/title>\n'+ 
	           '<style type="text\/css">\n'+ 
             'body,html { margin:0px; padding:0px; }\n'+ 
             'img { margin:0px; padding:0px; }\n'+ 
             '<\/style><\/head><body>\n'+ 
             '<img src="'+LrgBild.src+'" width="'+w+'" height="'+h+'" border="0">\n'+ 
             '<\/body><\/html>';
	// Neues Fenster öffnen
	MotivFenster = window.open('', winID, "width="+w+",height="+h+",left=0,top=20");
	MotivFenster.document.write(html); 
}

function LoadLarge(bild) {
  var OrgPfad = bild.src;
  var m = OrgPfad.search(/motive/);
  var LrgPfad = OrgPfad.substr(0,m+7) + OrgPfad.substring(m+7,OrgPfad.length-4) + "_lrg.jpg";

  LrgBild = document.getElementById('Motiv'); 
  LrgBild.src = LrgPfad;
}

function ShowLyrik(nrOn, nrOff) {
	document.getElementById('Lyrik'+nrOn).style.display = 'block';
	document.getElementById('Lyrik'+nrOff).style.display = 'none';
}
