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) history.go(0);
}
mm_reloadPage(true);

function met_swapClass()
{
 var i,x,tB,j=0,tA=new Array(),arg=met_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++){
 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 met_downClass() { //v1.0 by PVII
 var j,args=met_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 mm_displayStatusMsg(msgStr) { //v1.0
	//alert(msgStr)
 window.status=msgStr;
 document.mm_returnValue = true;
}

function changeImage(image) {
	document.getElementById("projektbild").src = image;
}

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_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+=',left='+myLeft+',top='+myTop;
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}