
function popup1(name,page,height,width)
{
  if( navigator.appName== 'Netscape')
    {
     open(page,name,"resizable=no,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,height="+height+",width="+width+",screenY=50,screenX=200");
	}
  else
    {
     open(page,name,"resizable=no,scrollbars=no,menubar=no,toolbar=no,location=no,status=no,height="+height+",width="+width+",top=50,left=200");	
	}
}

function popup2(name,page,height,width,scrollbar)
{
  if( navigator.appName== 'Netscape')
    {
     open(page,name,"resizable=no,scrollbars="+scrollbar+",menubar=no,toolbar=no,location=no,status=no,height="+height+",width="+width+",screenY=50,screenX=200");
 	}
  else
    {
     open(page,name,"resizable=no,scrollbars="+scrollbar+",menubar=no,toolbar=no,location=no,status=no,height="+height+",width="+width+",top=50,left=200");
	}
}

function popup3(name,page,height,width,scrollbar,top,left)
{
  if( navigator.appName== 'Netscape')
    {
     open(page,name,"resizable=no,scrollbars="+scrollbar+",menubar=no,toolbar=no,location=no,status=no,height="+height+",width="+width+",screenY="+top+",screenX="+left);	
	}
  else
    {
     open(page,name,"resizable=no,scrollbars="+scrollbar+",menubar=no,toolbar=no,location=no,status=no,height="+height+",width="+width+",top="+top+",left="+left);
    }  
}

function setOn(imgName,ext) 
{
 if (document.images) 
 {
    document[imgName].src = "../bilder/"+imgName+"_on."+ext;
 }
}
 
 function setOff(imgName,ext) 
{
 if (document.images) 
 {
  document[imgName].src = "../bilder/"+imgName +"_off."+ext;
 }
}

function setAktuell(imgName) 
{
 if (document.images) 
 {
    document['aktuell'].src = "/servlet/com.pixip.web.servlets.GetImage?imageName="+imgName+".gif";
 }
}

function IdSetOn(imgId,imgName,ext) 
{
 if (document.images) 
 {
    document[imgId].src = "../bilder/"+imgName+"_on."+ext;
 }
}
 
 function IdSetOff(imgId,imgName,ext) 
{
 if (document.images) 
 {
  document[imgId].src = "../bilder/"+imgName +"_off."+ext;
 }
}


function rollover(imgId,imgName,ext)
{
 if (document.images) 
 {
   document.write('<img src="../bilder/'+imgName+'_off.'+ext+'" border="0" name="'+imgId+'" onMouseOver=IdSetOn("'+imgId+'","'+imgName+'","'+ext+'") onMouseOut=IdSetOff("'+imgId+'","'+imgName+'","'+ext+'")>');
 }
}

function controlSound(sndstr, sndFile) 
{
  var i, method = "", sndObj = eval(sndstr);
  if (sndObj != null) 
    {
      if (navigator.appName == 'Netscape') method = "play";
      else {
             if (window.MM_WMP == null) 
		{
        	 window.MM_WMP = false;
        	 for(i in sndObj) 
		    if (i == "ActiveMovie") 
		       {
          		 window.MM_WMP = true; 
			 break;
		       } 
 		}
      	    if (window.MM_WMP) method = "play";
      	    else if (sndObj.FileName) method = "run";
  	   } 
   }
  if (method) eval(sndstr+"."+method+"()");
  else window.location = sndFile;
}

function srollover(imgId,imgName,ext,sndName,sndFile)
{
 if (document.images) 
 {   
   document.write('<img src="../bilder/'+imgName+'_off.'+ext+'" border="0" name="'+imgId+'" onMouseOver=IdSetOn("'+imgId+'","'+imgName+'","'+ext+'") onMouseOut=IdSetOff("'+imgId+'","'+imgName+'","'+ext+'")>');
   document.write('<EMBED NAME="'+sndName+'" SRC="'+sndFile+'" LOOP=false AUTOSTART=false MASTERSOUND HIDDEN=true WIDTH=0 HEIGHT=0></EMBED>');
 }
}

 function refreshOpener()
  {
    window.opener.location.reload();
  }