function openmenu(id)
{
	if(document.getElementById(id).style.display=='block')
	{
		document.getElementById(id).style.display='none';
	}
	else
	{
		document.getElementById(id).style.display='block';
	}
}

var openWindow;

function niederrhein() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('niederrhein.php','niederrhein','width=500,height=465,top=200,left=260');
}
function duesseldorf() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('duesseldorf.php','duesseldorf','width=700,height=494,top=100,left=100');
}
function lageplan() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('http://www.dus-int.de/dus/parken','duesseldorf','width=1020,height=814,top=0,left=0, scrollbars=yes');
}
function koeln() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('koeln.php','koeln','width=372,height=600,top=200,left=260');
}
function muenster() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('muenster.php','muenster','width=500,height=538,top=200,left=260');
}
function dortmund() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('dortmund.php','dortmund','width=795,height=351,top=200,left=260');
}
function anfahrtb() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('anfahrtb.php','anfahrtb','width=563,height=615,top=100,left=260');
}
function anfahrta() {
  if (openWindow) {openWindow.close();}
  openWindow = window.open('anfahrta.php','anfahrta','width=605,height=400,top=200,left=260');
}


function ende() {
  if (openWindow) {openWindow.close();
  }
}

var Grafikfenster = null;
function grafikpop(GrafikURL, Breite, Hoehe, Bildnummer)
{
    Fensteroptionen = "toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
    Grafikfenster = window.open("", "", Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
    Grafikfenster.focus();
    Grafikfenster.document.open();
		with(Grafikfenster)
    {
        document.write("<html><head>");
				document.write("<style type=\"text/css\">a { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#214658; text-decoration:none; } ");
				document.write("a:hover {	font-family:Verdana, Arial, Helvetica, sans-serif; font-size:11px; color:#214658;	text-decoration:underline; } ");
				document.write(".active {	font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#214658;	font-weight:bold;	} ");
				document.write("</style>");
        document.write("<title>Grafikanzeige</title>");
        document.write("</head>");
        document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">");
        document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\"><br>");
				document.write("<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td align=\"left\" style=\"padding:0px 0px 0px 5px; \">");
				if(Bildnummer==1)
				{
					Bildnummer++;
					document.write("<font class=\"active\">1</font> <a href=\"2.html\">2</a> <a href=\"3.html\">3</a> <a href=\"4.html\">4</a> <a href=\"5.html\">5</a> <a href=\"6.html\">6</a></td>");
					document.write("<td align=\"right\" style=\"padding:0px 5px 0px 0px; \"><a href=\"2.html\">weiter</a></td></tr></table>");
				}
				else if(Bildnummer==2)
				{
					Bildnummer++;
					document.write("<a href=\"1.html\">1</a> <font class=\"active\">2</font> <a href=\"3.html\">3</a> <a href=\"4.html\">4</a> <a href=\"5.html\">5</a> <a href=\"6.html\">6</a></td>");
					document.write("<td align=\"right\" style=\"padding:0px 5px 0px 0px; \"><a href=\"1.html\">zurück</a> | <a href=\"3.html\">weiter</a></td></tr></table>");
				}
				else if(Bildnummer==3)
				{
					Bildnummer++;
					document.write("<a href=\"1.html\">1</a> <a href=\"2.html\">2</a> <font class=\"active\">3</font> <a href=\"4.html\">4</a> <a href=\"5.html\">5</a> <a href=\"6.html\">6</a></td>");
					document.write("<td align=\"right\" style=\"padding:0px 5px 0px 0px; \"><a href=\"2.html\">zurück</a> | <a href=\"4.html\">weiter</a></td></tr></table>");
				}
				else if(Bildnummer==4)
				{
					Bildnummer++;
					document.write("<a href=\"1.html\">1</a> <a href=\"2.html\">2</a> <a href=\"3.html\">3</a> <font class=\"active\">4</font> <a href=\"5.html\">5</a> <a href=\"6.html\">6</a></td>");
					document.write("<td align=\"right\" style=\"padding:0px 5px 0px 0px; \"><a href=\"3.html\">zurück</a> | <a href=\"5.html\">weiter</a></td></tr></table>");
				}
				else if(Bildnummer==5)
				{
					Bildnummer++;
					document.write("<a href=\"1.html\">1</a> <a href=\"2.html\">2</a> <a href=\"3.html\">3</a> <a href=\"4.html\">4</a> <font class=\"active\">5</font> <a href=\"6.html\">6</a></td>");
					document.write("<td align=\"right\" style=\"padding:0px 5px 0px 0px; \"><a href=\"4.html\">zurück</a> | <a href=\"6.html\">weiter</a></td></tr></table>");
				}
				else if(Bildnummer==6)
				{
					document.write("<a href=\"1.html\">1</a> <a href=\"2.html\">2</a> <a href=\"3.html\">3</a> <a href=\"4.html\">4</a> <a href=\"5.html\">5</a> <font class=\"active\">6</font></td>");
					document.write("<td align=\"right\" style=\"padding:0px 5px 0px 0px; \"><a href=\"5.html\">zurück</a></td></tr></table>");
				}
				else
				{
					document.write("<td align=\"center\" style=\"padding:0px 5px 0px 5px; \"><a href=\"javascript:self.close();\">schließen</a></td></tr></table>");
				}
				document.write("</div>");
        document.write("</body></html>");
				document.close();
    }
}

function checkfenster()
{
	if(Grafikfenster != null && !Grafikfenster.closed) {
		Grafikfenster.close();
	}
}
