function menu_reloadPage(init) {
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.menu_pgW=innerWidth; document.menu_pgH=innerHeight; onresize=menu_reloadPage; }}
  else if (innerWidth!=document.menu_pgW || innerHeight!=document.menu_pgH) history.go(0);
}
menu_reloadPage(true);

function menu_swapClass()
{
 var i,x,tB,j=0,tA=new Array(),arg=menu_swapClass.arguments;
 if(document.getElementsByTagName)
	 {
	 for(i=4;i<arg.length;i++)
		{
		tB=document.getElementsByTagName(arg[i]);
		for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++)
			{
			//alert(arg[i])
			if(tA[i].className)
				{
				if(tA[i].id==arg[1])
				{
					if(arg[0]==1)
						{
							tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];
						}
					else
						{
						tA[i].className=arg[2];
						}
				}
				else if (arg[0]==1 && arg[1]=='none')
				{
					if(tA[i].className==arg[2] || tA[i].className==arg[3])
						{
							tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];
						}
				}
				else if(tA[i].className==arg[2])
				{
					tA[i].className=arg[3];
				}
			}
		}
	}
}

/*
function menu_downClass()
{
 var j,args=menu_downClass.arguments;if(document.getElementById){
 if(!document.p7setdown){p7dco=new Array();document.p7setdown=true;}
 p7dco.length=0;j=0;for(var i=0;i<args.length;i+=2){
  if(document.getElementById(args[i])!=null){p7dco[j]=args[i];p7dco[j+1]=args[i+1];
  document.getElementById(args[i]).className=args[i+1];j+=2;}}}
}
*/

function menu_displayStatusMsg(msgStr) 
{ 
	//alert(msgStr)
	window.status=msgStr;
	//return true;
}

//function changeImage(image) {
//	document.getElementById("projektbild").src = image;
//}

function menu_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.menu_p) d.menu_p=new Array();
    var i,j=d.menu_p.length,a=menu_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.menu_p[j]=new Image; d.menu_p[j++].src=a[i];}}
}

