//////////////////////////////////////////////////
//  Autor: Harald Hörst 01.02.2005
//////////////////////////////////////////////////
// Adaption für dpsg-odenwald-tauber.de/nelzddhm
//////////////////////////////////////////////////

var sMenue2="";
var sMenue2Titel="";
//var sMenue2Trenner="&nbsp; :: &nbsp;";
var sMenue2Trenner="&nbsp;<img style=\"position:relative;top:5px;\" src=\"http://dpsg-odenwald-tauber.de/nelzddhm/img/trenner.png\" width=\"17\" height=\"16\" border=\"0\" alt=\"trenner\">&nbsp;";
if (self.parent.frames.length != 0)  self.parent.location=document.Location;

function MP1(sTitel,sHref,sStatus)
{
	if(sTitel!="")
	{
		document.write("<a class=\"hauptmenue\" OnMouseOver=\"status='");
		document.write(sStatus);
		document.write("'; this.className='hauptmenueOvr'; return true;\" OnMouseOut=\"status=''; this.className='hauptmenue'; return true;\" href=\"");
		document.write(sHref);
//	document.write("\" target=\"inhalt\">");	Ziel bin immer ich selber
		document.write("\">");
		document.write(sTitel);
		document.write("</a><hr>");
	}
//	else
//		document.write("</a><br>");
}

function ZeigeMP1()
{
	document.write("<div class=\"Menue\">");
	document.write("<div class=\"Logo\"></div>");
	
	document.write("<div style=\"position:absolute; left: 5px; margin-top: 20pt;\">");
	MP1("Stamm Don Bosco","http://www.dpsg-odenwald-tauber.de/nelzddhm","Zur Startseite des Stammes Don Bosco");
	MP1("","","");
	MP1("Gruppen","http://www.dpsg-odenwald-tauber.de/nelzddhm/gruppen.html","Gruppen");
	MP1("Aktivit&auml;ten","http://www.dpsg-odenwald-tauber.de/nelzddhm/aktion/index.html","Aktivitäten");
	MP1("JOTI","http://www.dpsg-odenwald-tauber.de/joti/index.html","JOTI");
	MP1("Termine","http://www.dpsg-odenwald-tauber.de/nelzddhm/termine.html","Termine");
	MP1("Kontakt","http://www.dpsg-odenwald-tauber.de/nelzddhm/kontakt.html","kontakt");
	MP1("Links","http://www.dpsg-odenwald-tauber.de/download/index.html","Links");
	MP1("Materialverleih","http://www.dpsg-odenwald-tauber.de/nelzddhm/verleih.html","Materialverleih");
	MP1("F&ouml;rderverein","http://www.dpsg-odenwald-tauber.de/nelzddhm/ev.html","e.V.");
	MP1("","","");
	MP1("Bezirk Odenwald-Tauber","http://www.dpsg-odenwald-tauber.de","Bezirk Odenwald-Tauber");
	MP1("Impressum","http://www.dpsg-odenwald-tauber.de/impressum.html","Impressum");
	document.write("</div>");
	

	document.write("</div>");
	document.write("</div>");
}

function MP2Titel(sTitel)
{
	sMenue2Titel = "<span class=\"seitenmenueTitel\">" + sTitel + "</span>"
}
function MP2(sTitel,sLink)
{
	if(sMenue2!="" || sMenue2Titel!="")
		sMenue2 +="<span class=\"seitenmenue\">"+sMenue2Trenner+"</span>";

	if(sLink!="")
		sMenue2 += "<a class=\"seitenmenue\" "
							+"OnMouseOver=\"this.className='seitenmenueOvr'; return true;\" "
							+"OnMouseOut=\"this.className='seitenmenue'; return true;\" "
							+"href=\"" + sLink +  "\">" + sTitel + "</a>";
	else
		sMenue2 += "<span	class=\"seitenmenueAkt\">" + sTitel + "</span>";
}

function ZeigeMP2()
{
	if(sMenue2!="")
		document.write("<div class=\"seitenmenue\">"+ sMenue2Titel + sMenue2 + "</div>");		
	else
		document.write("<div class=\"seitenmenue\">"+ sMenue2Titel + "</div>");		
}

ZeigeMP1();

// Tools für die Anzeige von Photos
function FotoOpen(img,titeltext)
{
	foto= new Image();
	foto.src=(img);
	FotoControl(img,titeltext);
}

function FotoControl(img,titeltext)
{
	if((foto.width!=0)&&(foto.height!=0))
	{
		FotoView(img,titeltext);
	}
	else
	{
	interval_a="FotoControl('"+img+"','"+titeltext+"')";
	interval_b=setTimeout(interval_a,20);
	}
}

function FotoView(img,titeltext)
{
	width=foto.width+20;
	height=foto.height+24;
	if(titeltext=="") titeltext="Foto";

	try 
	{
		if (output.closed == false) throw "offen";
	}
	catch (e) 
	{
		if (e=="offen") 
		{
			output.close();
		}
	}
	/*output=window.open("","output","left=40,top=40,width="+width+",height="+height+",location=no,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no");*/
	output=window.open("","output","left=40,top=40,width="+width+",height="+height+",location=no,toolbar=no,menubar=no,status=no,scrollbars=yes,resizable=yes");
	output.document.writeln("<html><head><title>..:: "+titeltext+" ::..<\/title><\/head>");
	output.document.writeln("<body bgcolor=\"white\" text=\"white\" link=\"white\" vlink=\"white\" alink=\"white\" leftmargin=\"0\" marginwidth=\"0\" topmargin=\"0\" marginheight=\"0\">");
	output.document.writeln("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"100%\">");
	output.document.writeln("<tr><td width=\"100%\" height=\"100%\" align=\"left\" valign=\"top\"><p><a href=\"javascript:self.close()\"><img src=\""+img+"\" width=\""+foto.width+"\" height=\""+foto.height+"\" border=\"10\" alt=\"Hier klicken um das Fenster zu schließen\"></a><\/p><\/td><\/tr>");
	output.document.writeln("<\/table><\/body><\/html>");
	output.focus();
}


