function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  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();
}
MM_reloadPage(true);

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



//++++++++++++++Navigation+++++++++++++++++++++++++++++


// CREDITS:
// Hierarchical Menu Version 2.01 by Urs Dudli and Peter Gehrig
// Copyright (c) 2002 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// info@24fun.ch
// 2/22/2002
// IMPORTANT:
// If you add this script to a script-library or script-archive
// you have to add a link to http://www.24fun.com on the webpage
// where this script Script will be running.
var verspacetoplevel=0
var verspacesublevel=0
var horspace=3
var textdeco="none"
var minusimg=new Image()
minusimg.src="/images/arrowdown.gif"
var plusimg=new Image()
plusimg.src="/images/arrowup.gif"
var plusminusimgsrc=plusimg.src
var content=""
var fnttop="Arial"
var fnttopsize=10
var fnttopcolor="white"
var fnttopweight="bold"
var fntsub="Arial"
var fntsubsize=9
var fntsubcolor="A0A0A0"
var fntsubweight="normal"
var i_level=new Array(0,0,0,0,0,0,0,0,0,0,0)
var i_url=new Array("/index.php","/party_info/spot_ks.php","/party_info/spot_erfurt.php","/termine/index.php","/gallerie/index.php","/charts/playlist.php","/charts/wishlist.php","/cd_news/index.php","/links/index.php","/board/index.php","/dj_info/index.php")
        var i_text=new Array(
        "<img src='/images/navi/startseite_off.gif' border='0' width='117' height='23' name='Image16' id='Image16' onMouseOver=MM_swapImage('Image16','','/images/navi/startseite_on.gif',16) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/spot_kassel_off.gif' border='0' width='117' height='23' name='Image3' id='Image3' onMouseOver=MM_swapImage('Image3','','/images/navi/spot_kassel_on.gif',3) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/spot_erfurt_off.gif' border='0' width='117' height='23' name='Image4' id='Image4' onMouseOver=MM_swapImage('Image4','','/images/navi/spot_erfurt_on.gif',4) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/termine_off.gif' border='0' width='117' height='23' name='Image6' id='Image6' onMouseOver=MM_swapImage('Image6','','/images/navi/termine_on.gif',6) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/gallerie_off.gif' border='0' width='117' height='23' name='Image7' id='Image7' onMouseOver=MM_swapImage('Image7','','/images/navi/gallerie_on.gif',7) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/playlist_off.gif' border='0' width='117' height='23' name='Image9' id='Image9' onMouseOver=MM_swapImage('Image9','','/images/navi/playlist_on.gif',9) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/wishlist_off.gif' border='0' width='117' height='23' name='Image11' id='Image11' onMouseOver=MM_swapImage('Image11','','/images/navi/wishlist_on.gif',11) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/cdnews_off.gif' border='0' width='117' height='23' name='Image12' id='Image12' onMouseOver=MM_swapImage('Image12','','/images/navi/cdnews_on.gif',12) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/links_off.gif' border='0' width='117' height='23' name='Image13' id='Image13' onMouseOver=MM_swapImage('Image13','','/images/navi/links_on.gif',13) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/forum_off.gif' border='0' width='117' height='23' name='Image14' id='Image14' onMouseOver=MM_swapImage('Image14','','/images/navi/forum_on.gif',14) onMouseOut=MM_swapImgRestore()>",
"<img src='/images/navi/djinfo_off.gif' border='0' width='117' height='23' name='Image15' id='Image15' onMouseOver=MM_swapImage('Image15','','/images/navi/djinfo_on.gif',15) onMouseOut=MM_swapImgRestore()>"
        )
var i_target=new Array("","","","","","","","","","_blank","")
var whichi_opened=-1
var i_opened=false
var hassubmenus=false
var istoppageitem=true
var ie=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0
var ns4=document.layers?1:0


function closesublevels() {
plusminusimgsrc=plusimg.src
content=""
content+="<table border=0 cellpadding=0 cellspacing="+verspacesublevel+">"
for (i=0;i<=i_level.length;i++) {
hassubmenus=false
if (i_level[i]==0) {
var iplus=i+1
if ((iplus<=i_level.length) && (i_level[iplus]==1)) {
hassubmenus=true
}
if (hassubmenus) {
if (!istoppageitem) {
content+="<tr><td colspan=2><img src='/images/emptypixel.gif' height="+verspacetoplevel+"></td></tr>"
}
istoppageitem=false;
content+="<tr valign=middle>"
content+="<td>"
content+="<a href='javascript:opensublevels("+i+")'>"
content+="<img src='"+plusminusimgsrc+"' border=0 hspace="+horspace+"></a>"
content+="</td>"
content+="<td>"
content+="<a href='javascript:opensublevels("+i+")' style='text-decoration:"+textdeco+";font-family:"+fnttop+";font-size:"+fnttopsize+"pt;color:"+fnttopcolor+";font-weight:"+fnttopweight+"'>"
content+=i_text[i]
content+="</a></td></tr>"
}
else {
if (!istoppageitem) {
content+="<tr><td colspan=2><img src='/images/emptypixel.gif' height="+verspacetoplevel+"></td></tr>"
}
istoppageitem=false;
content+="<tr valign=middle><td></td>"
if (i_url[i]!="#" && i_url[i]!="" && i_url[i]!="http://" && i_url[i].indexOf("@")<0) {
content+="<td><a href='"+i_url[i]+"' target='"+i_target[i]+"' style='text-decoration:"+textdeco+";font-family:"+fnttop+";font-size:"+fnttopsize+"pt;color:"+fnttopcolor+";font-weight:"+fnttopweight+"'>"
}
else if (i_url[i].indexOf("@")>0) {
content+="<td><a href='mailto:"+i_url[i]+"' style='text-decoration:"+textdeco+";font-family:"+fnttop+";font-size:"+fnttopsize+"pt;color:"+fnttopcolor+";font-weight:"+fnttopweight+"'>"
}
else {
i_url[i]="#"
content+="<td><a href='"+i_url[i]+"' style='text-decoration:"+textdeco+";font-family:"+fnttop+";font-size:"+fnttopsize+"pt;color:"+fnttopcolor+";font-weight:"+fnttopweight+"'>"
}
content+=i_text[i]
content+="</a></td></tr>"
}
}
}
content+="</table>"
istoppageitem=true;
whichi_opened=-1
if (ie) {
menu.innerHTML=content
}
if (ns6) {
document.getElementById("menu").innerHTML=content
}
if (ns4) {
document.menutop.document.menu.document.write(content)
document.menutop.document.menu.document.close()
}
}

//++++++++++++Image Pop Up+++++++++++++++++++++++++++++

function OpenNewWindow(cPicture,nWidth,nHeight,nBorder)
        {
        NewWindow=window.open("","NeuEins","HEIGHT="+nHeight+",WIDTH="+nWidth+",scrollbars=no,resizable=no,top=5,left=5");
        NewWindow.document.write ("<HTML><HEAD><TITLE>");
        NewWindow.document.write ("</TITLE></HEAD>");
        NewWindow.document.write ("<BODY BGCOLOR='black'>");
        NewWindow.document.write ("<P ALIGN=CENTER>");
        NewWindow.document.write ("<FONT FACE='Arial' SIZE='+2' COLOR='White'><B>");

        NewWindow.document.write ("</B></FONT>");
        NewWindow.document.write ("<IMG SRC=");
        NewWindow.document.write (cPicture);
        NewWindow.document.write (">");
        NewWindow.document.write ("</P>");
        NewWindow.document.write ("<p align='right'><a href='#' onClick='self.close()'><span style='font-family:Arial,Helvetica,sans-serif;font-size:15px;color:#ffffff;'>Fenster schließen</span></a>");
        NewWindow.document.write ("</CENTER></BODY></HTML>");
        NewWindow.document.write ("</BODY></HTML>");
        NewWindow.document.close();
        return false;
        }
		
		function OpenNewWindowHome(cPicture,nWidth,nHeight,nBorder)
        {
        NewWindow=window.open("","NeuEins","HEIGHT="+nHeight+",WIDTH="+nWidth+",scrollbars=no,resizable=no,top=0,left=220");
        NewWindow.document.write ("<HTML><HEAD><TITLE>");
        NewWindow.document.write ("</TITLE></HEAD>");
        NewWindow.document.write ("<BODY BGCOLOR='black' leftMargin='0' topMargin='0' rightMargin='0' bottomMargin='0' marginwidth='0' marginheight='0'>");
        NewWindow.document.write ("<P ALIGN=CENTER>");
        NewWindow.document.write ("<FONT FACE='Arial' SIZE='+2' COLOR='White'><B>");

        NewWindow.document.write ("</B></FONT>");
        NewWindow.document.write ("<IMG SRC=");
        NewWindow.document.write (cPicture);
        NewWindow.document.write (">");
        NewWindow.document.write ("</P>");
        NewWindow.document.write ("<p align='right'><a href='#' onClick='self.close()'><span style='font-family:Arial,Helvetica,sans-serif;font-size:15px;color:#ffffff;'>Fenster schließen</span></a>");
        NewWindow.document.write ("</CENTER></BODY></HTML>");
        NewWindow.document.write ("</BODY></HTML>");
        NewWindow.document.close();
        return false;
        }

