/* copyright by Joerg Buetehorn - http://www.buetehorn.de  */

function frametest() {
if(top.frames.length > 0)
	top.location.href=self.location;
	else {
	return true;
	}
}

function frsettest() {
if(top.frames.length <= 0)
      top.location.href = "../start/index.htm";
else {
return true;
 }
}

function vollbild()  {
	self.moveTo(0,0)
	self.resizeTo(screen.availWidth,screen.availHeight)
}

function SwitchImage(imgSource,imgName) {
	if (document.images[imgName]) {
	document.images[imgName].src = imgSource;
	return true;
	}
}

function mini(ziel,breite,hoehe) {

        var seite = (screen.availWidth - breite) / 2;
        var oben = (screen.availHeight - hoehe) / 2;

        params = ('width='+ breite +',height='+ hoehe +',left='+ seite +',top='+ oben);

        Neufenster = window.open(ziel,'Information','toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=no,'+ params);
        Neufenster.focus();
}

hinweis = new Array()
hinweis[0] = new Array("Titel","Inhalt");
hinweis[1] = new Array("Spendenmeilensteine","Spenden, die gro&szlig;e Schritte erm&ouml;glicht haben<BR><a href='..\/aktion\/danke-fs.htm' target='content' class='textkllink'>&gt;&gt; mehr<\/A>");
/* hinweis[2] = new Array("Sommernachtstraum Special","von Kunze und L&uuml;rig<BR><a href='..\/aktion\/sommernachtstraum-fs.htm' target='content' class='textkllink'>&gt;&gt; mehr<\/A>"); */
/* hinweis[3] = new Array("<img src='..\/img\/masala.gif' width=120 height=46>","Der Weltmarkt 2004 steht unter dem Motto Malawi<BR><a HREF='..\/aktion\/masala-fs.htm' target='content' class='textkllink'>&gt;&gt; mehr<\/A>"); */


function schreib()  {
	if (hinweis.length != 1)  {	
		document.write("<TABLE width=140 BORDER=0 CELLPADDING=2 CELLSPACING=0 valign=top align=left>");
		for (i=1;i<=hinweis.length-1;i++)
		{
		document.write("<TR>");
		document.write("<TD align=left valign=top class=farbe3><span class=textklb>" + hinweis [i][0] + "<\/span><\/TD>");
		document.write("<\/TR><TR>");
		document.write("<TD align=left valign=top class=farbe2><span class=textkl>" + hinweis [i][1] + "<\/span><\/TD>");
		document.write("<\/TR><TR>");
		document.write("<TD><img src='../img/spacer.gif' width=10 height=1><\/td>");
		document.write("<\/TR>");
		}
		document.write("<\/TABLE>");
	}
	else
		document.write("&nbsp;");	
}

/* Javascript by Joerg Buetehorn - http://www.buetehorn.de  */

function MM_reloadPage(init) {
	if (init==true) with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerWidth;
			document.MM_pgH=innerHeight;
			onresize=MM_reloadPage;
		}
	}
	else 
		if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
