﻿var Bild = [[,,],
     [640,480,"Reiki Behandlung"],
     [360,480,"Reiki Behandlung"],
     [640,480,"Reiki Behandlung"],
     [640,480,"Klangschalen Behandlung"],
     [640,480,"Klangschalen Behandlung"],
     [640,480,"Klangschalen Behandlung"],
	 [640,480,"Körperkerzen Behandlung"],
     [640,480,"Körperkerzen Behandlung"],
     [640,480,"Körperkerzen Behandlung"],
	 [640,480,"Brigitte mit Klangschalen"],
     [640,480,"Brigitte mit Klangschalen"],
     [640,480,"Behandlungszimmer"],
	 [640,480,"Behandlungszimmer"],
	 [640,480,"Behandlungszimmer"],
     [640,480,"Klangschalen und IL-DO Körperkerzen"],
     [360,480,"Urkunde Reiki 1"],
     [360,480,"Urkunde Reiki 2"],
     [360,480,"Urkunde Reiki Meister"],
	 [358,480,"Urkunde Reiki Lehrer"],
	 [360,480,"Urkunde Klangschalen 1"],
	 [360,480,"Urkunde Klangschalen 2"],
     [360,480,"Urkunde IL-DO Körperkerze"],
	 [640,480,"Urkunde Pranic Healing"],
	 [640,480,"Brigitte mit Sabine, Wolfgang und Rocky"],
	 [640,480,"in einer Blumenwiese"],
	 [640,480,"im Park Schönbrunn"]]

function VorigeNr(i)  {
	if (i==1) {
		i=Bild.length
	}
	return i-1;
}

function NaechsteNr(i)  {
	if (i==Bild.length-1) {
		i=0
	}
	return i+1;
}

function Popup(Nr) {
		Speicherort = "fotos/foto" + Nr + ".jpg";
		Text = Bild[Nr][2];
		BildBreite = Bild[Nr][0];
		BildHoehe = Bild[Nr][1];
		PopupBreite = BildBreite+6;	
		PopupHoehe = BildHoehe+137;
		Anzahl = Bild.length-1
		VNr = VorigeNr(Nr);
		NNr = NaechsteNr(Nr);
		PopupWindow=window.open("","Fenster","width="+PopupBreite+",height="+PopupHoehe+",top=10,left=10");
		PopupWindow.focus();
		PopupWindow.resizeTo(PopupBreite,PopupHoehe);
		PopupWindow.document.writeln ("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">");
		PopupWindow.document.writeln ("<html><head><title>Foto Galerie</title>");
		PopupWindow.document.writeln ("</head>");
		PopupWindow.document.writeln ("<body bgcolor='#E1FFE1' style='margin:0px; font-family: Palatino Linotype, Book Antiqua, serif; font-size: 15px; color: #0066FF;'>");
		PopupWindow.document.writeln ("<img src=" + Speicherort + " width=" + BildBreite + " height=" + BildHoehe + ">");
		PopupWindow.document.writeln("<table width='100%'><tr><td align='left' style='padding-left:20px;'>" + Text + "</td><td align='right' style='padding-right:20px;'>" + Nr + "/"+ Anzahl + "</td></tr></table>");		
		PopupWindow.document.writeln ("<center><input type='button' value='voriges' onClick='opener.Popup(" + VNr + ")'>&nbsp;&nbsp;");
		PopupWindow.document.writeln ("<input type='button' value='schließen' onClick='self.close()'>&nbsp;&nbsp;");
		PopupWindow.document.writeln ("<input type='button' value='nächstes' onClick='opener.Popup(" + NNr + ")'></center>");
		PopupWindow.document.writeln ("</body></html>");
		PopupWindow.document.close();
}
