window.name="neumann_main";
var zoomWin,searchWin;
function overMenu1(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        obj.className=cname+"Over";
      }
    }
  }
}
function outMenu1(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        pos=cname.indexOf("Over");
        if(pos>0)
        {
          obj.className=cname.substring(0,pos);
        }
      }
    }
  }
}
function overIconMenu(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById("top"+id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        obj.className=cname+"Over";
      }
    }
    obj=document.getElementById("label"+id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        obj.className=cname+"Over";
      }
    }
    obj=document.getElementById("link"+id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        obj.className=cname+"Over";
      }
    }
  }
}
function outIconMenu(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById("top"+id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        pos=cname.indexOf("Over");
        if(pos>0)
        {
          obj.className=cname.substring(0,pos);
        }
      }
    }
    obj=document.getElementById("label"+id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        pos=cname.indexOf("Over");
        if(pos>0)
        {
          obj.className=cname.substring(0,pos);
        }
      }
    }
    obj=document.getElementById("link"+id);
    if(obj)
    {
      if(obj.className)
      {
        cname=obj.className;
        pos=cname.indexOf("Over");
        if(pos>0)
        {
          obj.className=cname.substring(0,pos);
        }
      }
    }
  }
}
function showStartTeaserImg(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      obj.style.display="block";
    }
  }
}
function hideStartTeaserImg(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      obj.style.display="none";
    }
  }
}
function setVerticalMenuImg(pic)
{
  if(document.getElementById)
  {
    obj=document.getElementById("contentLeftCell");
    if(obj)
    {
      obj.style.backgroundImage="url("+pic+")";
    }
  }
}
function zoom(zoomImg,zoomLabel,w,h)
{
  if(typeof(zoomWin)!="undefined")
  {
    if(zoomWin)
    {
      zoomWin.close();
    }
  }
  zoomWin=window.open("zoom.php?zoomimg="+escape(zoomImg)+"&zoomlabel="+escape(zoomLabel)+"&w="+w+"&h="+h,"zoom","width="+w+",height="+h);
}
	
function showContact(id)
{
  if(formArray)
  {
    for(i=0;i<formArray.length;i++)
    {
      if(id==formArray[i])
      {
        document.getElementById("cf_"+formArray[i]).style.display="block";
        document.getElementById("arrow_"+formArray[i]).src="shared/arrow1_down.gif"
      }
      else
      {
        document.getElementById("cf_"+formArray[i]).style.display="none";
        document.getElementById("arrow_"+formArray[i]).src="shared/arrow1.gif"
      }
    }
  }
}
	
function overFooterButton(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      obj.style.backgroundColor="#E68B0C";
    }
  }
}
function outFooterButton(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      obj.style.backgroundColor="#969898";
    }
  }
}
function overFrButton(id)
{
  var obj=document.getElementById("langMsg");
  if (obj)
  {
    var objBtn=document.getElementById(id);
    if(objBtn)
    {
      var t =getTop(objBtn);
      var l =getLeft(objBtn);
      obj.style.top=t+21;
      obj.style.display="block";
      obj.style.left=l-133;
    }
  }
}
function outFrButton(id)
{
  var obj=document.getElementById("langMsg");
  if (obj)
  {
    var objBtn=document.getElementById(id);
    if(objBtn)
    {
      obj.style.top=-500;
      obj.style.display="none";
    }
  }
}
function overMicFinderButton(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      obj.style.backgroundColor="#E68B0C";
    }
  }
}
function outMicFinderButton(id)
{
  if(document.getElementById)
  {
    obj=document.getElementById(id);
    if(obj)
    {
      obj.style.backgroundColor="#374A51";
    }
  }
}
function textLinkOut(obj)
{
  if(obj)
  {
    if(obj.className)
    {
      obj.className="textLink";
    }
  }
}
function textLinkOver(obj)
{
  if(obj)
  {
    if(obj.className)
    {
      obj.className="textLinkOver";
    }
  }
}
openCount = 0;
popupRef = null;
/* opens new window */
function popupSizedCentered(location, width, height) 
{
  LeftPosition = (screen.width) ? (screen.width-width)/2 : 0;
  TopPosition = (screen.height) ? (screen.height-height)/2 : 0;
  ref = window.open(location, 'stefanmaycom', "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,width="+width+",height="+height+",top="+TopPosition+",left="+LeftPosition);
  ref.focus();
  return ref;
}
// opens new window for microphone finder
function startMicFinder(lang)
{
  url = "micfinder/micfinder.php?lang="+lang;
  width = 1016;
  height = 606;
  if( openCount == 0 )
  {
    popupRef = popupSizedCentered(url, width, height);
  }
  else
  {
    if ( popupRef.closed == true )
    {
      popupRef = popupSizedCentered(url, width, height);
    }
  }
  openCount++;
  popupRef.focus();
}
function openPopup(url)
{
  window.open(url,"popup","width=800,height=647,toolbar=no,location=no,directories=no,scrollbars=yes,status=no,menubar=no,resizable=no");
}
function navResultPage(url)
{
  if(window.opener)
  {
    opener.focus();
    window.opener.document.location.href=url;
    return true;
  }
}
function openforum()
{
  var ah=screen.availHeight;
  var aw=screen.availWidth;
  var url="forums/index.php?site=neumann&lang=en";
  window.open(url,"forum","width="+aw+",left=0,top=0,height=700,toolbar=yes,location=no,directories=no,scrollbars=yes,status=no,menubar=yes,resizable=yes");
}
function getLeft(l)
{
  if (l.offsetParent) return (l.offsetLeft + getLeft(l.offsetParent));
  else return (l.offsetLeft);
}
function getTop(l)
{
  if (l.offsetParent) return (l.offsetTop + getTop(l.offsetParent));
  else return (l.offsetTop);
}
function getMTo(tld,d,n,s,l)
{
  var e=n + '&#64;' + d + '&#46;' + tld;
  var a ="mailto:" +e;
  if(typeof s != 'undefined')
  {
    a = a + '?subject='+s;
  }
  if(typeof l == 'undefined')
  {
    l=e;
  }
  a= '<img src="/shared/arrow_or.gif" width="8" border="0" height="8" alt=""/><a onmouseout="textLinkOut(this)" onmouseover="textLinkOver(this)" class="textLink" href="' +a+ '">'+l+'</a>';
  document.write(a);
}
