﻿<!-- Maus und Status -->

function motto(inhalt)
{window.status="    Herzlich Willkommen  "+inhalt;return true;}

function motto2()
{window.status="    Herzlich Willkommen in der Kirchenecke ";return true;}

if (document.layers)
document.captureEvents(Event.img.MOUSEOVER | Event.MOUSEOUT)
document.onmouseover=motto2
document.onmouseout=motto2




<!-- rechte Maus firefox -->
 var zeit, message="Na, na, du willst doch nicht etwa ...  :-) ";
function click0() {
if (event.button != 1) {
popup();
return false;
}
}
function nsc(e) {
if (e.which != 1) keinkontext();
}
function popup() {
alert(unescape(message));
return false;
}
function nichts(e) {
if (e.which != 1) return false;
}
function keinkontext() {
clearTimeout(zeit);
zeit = setTimeout("kontext()",1);
}
function kontext() {
clearTimeout(zeit);
popup();
}
if (document.all)
if (document.getElementById) document.oncontextmenu=popup;
else document.onmousedown=click0;
if (!(document.all) && document.getElementById)
document.oncontextmenu=popup;
if (document.layers) {
document.captureEvents(Event.MOUSEUP | Event.MOUSEDOWN);
document.onmousedown=nichts;
document.onmouseup=nsc;
}


<!-- Bilder vorladen -->

function BilderLaden() {
	document.Vorladen = new Array();
	if (document.images) {
		for (var i=0;i<BilderLaden.arguments.length;i++){
				document.Vorladen[i] = new Image();
				document.Vorladen[i].scr = BilderLaden.arguments[1];				
			}	}	}

function BilderVorladen() {
	if (document.images) {
		imgObjects = new Array ();
			for (i=0;i<9;i++){
				nowImg=imgObjects[i];
				eval(nowImg = new Image())
				eval(nowImg.src = + "an.scr")
			}	}	}



<!-- Fenster  -->

function zg(nam,nr){ 
AuswahlFenster = window.open(nam+nr+".html", "Antwort", "width=650,height=350,screenX=0,screenY=0,scrollbars=1"); 
AuswahlFenster.moveTo(screen.width-700,screen.height-500); 
AuswahlFenster.focus(); 
}

function pss(nam){ 
AuswahlFenster = window.open(nam, "Antwort1", "width=680,height=500,screenX=0,screenY=0,scrollbars=0"); 
AuswahlFenster.moveTo(screen.width-750,screen.height-600); 
AuswahlFenster.focus(); 
}

function of2(nam,breit,hoch){ 
AuswahlFenster = window.open(nam, "Antwort2", 'width='+breit+',height='+hoch+',screenX=0,screenY=0,scrollbars=0'); 
AuswahlFenster.moveTo(screen.width-750,screen.height-600); 
AuswahlFenster.focus(); 
}

function of2s(nam,breit,hoch){ 
AuswahlFenster = window.open(nam, "Antwort2", 'width='+breit+',height='+hoch+',screenX=0,screenY=0,scrollbars=1'); 
AuswahlFenster.moveTo(screen.width-750,screen.height-600); 
AuswahlFenster.focus(); 
}

function of3(nam,breit,hoch){ 
AuswahlFenster = window.open(nam, "Antwort3", 'width='+breit+',height='+hoch+',left=100,top=100,scrollbars=0'); 
AuswahlFenster.focus(); 
}



function pss2(nam,breit,hoch)

{
breit="680";
hoch="500";
	vbild = nam, titel = "L?sung" +" ________________ : -) ______________________", breite = breit, hoehe = hoch;
		if(navigator.appName == "Netscape")
		{ fensterhoehe = hoehe + 15;
		fensterbreite = breite + 15; }
		else
		{ fensterhoehe = hoehe; 
		fensterbreite = breite; }
	werte = 'toolbar=0,location=0,menubar=0,scrollbars=0,resizable=0,height='+fensterhoehe+',width='+fensterbreite;

	fenster = open("","",werte)
	fenster.moveTo(screen.width-750,screen.height-600); 
	fenster.document.open(); 
	with (fenster)

	{
	document.write('<html><head><title>' + titel + '</title>');
	document.write('</head>');
	document.write('<body leftmargin="0" topmargin="0" bgcolor="#DCDCDC">');
	document.write('<table border="0" width="100%" height="100%"><tr><td valign="middle" align="center">');
	document.write('<a href="javascript:window.close()">Fenster schlie?en</a>');
	document.write('  <p>&nbsp;</p> ');

	document.write('  <object id="pss" data="loesung3.pss" ></object>   ');
	document.write(' <embed  autostart="true" src="'+ vbild +'"  ></embed> ');

	document.write('  <p>&nbsp;</p> ');
	document.write('  <p>Etwas Geduld, die Daten werden gerade geladen ...</p> ');
	document.write('</tr></table></body></html>');
	}

	fenster.document.close();
}

<!-- Kirchenecke  -->

function makeArray() 
			{this.length = makeArray.arguments.length
			for (var i = 0; i < this.length; i++) this[i+1] = makeArray.arguments[i] }
		
var pix = new makeArray (1,2,3,4,5,6,7,8);
var nummer = 1, z=1, cl=2000;

function dia1()  {document.ecken.src = "elemente/ecken"+pix[nummer]+".gif";
			nummer += 1, cl=200;
			if (z > 18) cl=6000, z=1;
			if (nummer == 9) nummer = 1;
			z=z+1;
		      setTimeout("dia1()", cl);}

function dia()  {document.ecken.src = "../elemente/ecken"+pix[nummer]+".gif";
			nummer += 1, cl=200;
			if (z > 18) cl=6000, z=1;
			if (nummer == 9) nummer = 1;
			z=z+1;
		      setTimeout("dia()", cl);}




function bildfenster(w_1,w_2,w_3,w_4)
{
	bild = w_1, titel = w_2, breite = w_3, hoehe = w_4;
		if(navigator.appName == "Netscape")
		{ fensterhoehe = hoehe + 15;
		fensterbreite = breite + 15; }
		else
		{ fensterhoehe = hoehe; 
		fensterbreite = breite; }
	werte = 'toolbar=0,location=0,menubar=0,scrollbars=0,resizable=0,height='+fensterhoehe+',width='+fensterbreite;
	fenster = open("","",werte)
	fenster.moveTo(screen.width-550,screen.height-500); 
	fenster.document.open(); 
	with (fenster)
	{
	document.write('<html><head><title>' + titel + '</title></head>');
	document.write('<body onblur="window.close()" leftmargin="0" topmargin="0">');
	document.write('<table border="0" width="100%" height="100%"><tr><td valign="middle" align="center">');
	document.write('<a href="javascript:window.close()"><img src="'+ bild +'" border="0" alt="Klick = Fenster schlie?en"></a>');
	document.write('</tr></table></body></html>');
	}

	fenster.document.close();
}


function auswahl(nav,hoch,sc)
{
	werte = 'toolbar=0,location=0,menubar=0,scrollbars='+sc+',resizable=1,height='+hoch+',width=220,screenX=0,screenY=0';
	fenster = window.open(nav, "Menue", werte)
	fenster.moveTo(screen.width-230,screen.height-500); 
	fenster.focus(); 
}


function info(nam)
{ 
fenster = window.open(nam, "Info", "width=550, height=400, screenX=0,screenY=0,scrollbars=1"); 
fenster.moveTo(screen.width-600,screen.height-500); 
fenster.focus();  }


function seite(ziel)
{
opener.location.href=ziel;
window.close();
}


function bildgr(bg)
	{
	Bildgruppe="bilder/"+bg;
	}

function znr(s,b)	//Zufallszahlen generieren
	{
	Bildnr = new Array (1,2,3,4,5,6,7,8,9,10);
	x=Bildnr.length, bereich=b, startzahl=s; // bereich f?r Anzahl vorhande Bilder, startzahl f?r kleinste Bildnummer
	if (bereich < x) x=bereich;
	for (var i = 0; i < x; i++)
		{
		Bildnr[i] =Math.floor(bereich*Math.random())+startzahl; 
		   for (var m=1; m<=x; m++)
		   if (Bildnr[i]==Bildnr[i-m]) Bildnr[i]=Math.floor(bereich*Math.random())+startzahl, i=i-1; 
		}
	}

var n=0, warte=6000;	

function zbilder()   //Auswahl Bilder anzeigen
	{
	document.menschen.src = Bildgruppe+Bildnr[n]+".jpg";
//	document.menschen.src = "bilder/menschen0"+Bildnr[n]+".jpg";
	Bildaktuell=Bildgruppe+Bildnr[n]+"-400.jpg";
//	Bildaktuell="bilder/menschen0"+Bildnr[n]+"-400.jpg";
	n += 1; 
	if (n == x) n = 0;
	setTimeout("zbilder()", warte);
	}

