// author:clemens.riccabona@world-direct.at;CLEMENS RICCABONA
// purpose:zumtobelStaffCountryPortal
// lastChange:2003-09-09

// Function for opening window to edit metadata on page
function openWindowPicture_1(url)
{
  var myWidth =800;
  var myHeight=550;
  window.open(url,"_blank","width="+myWidth+",height="+myHeight+",resizable=1,location=0,directories=0,status=0,menubar=0,scrollbars=1,toolbar=0,");
}
// background color changes on mouseover
function changeOnMouseOver(hoverStyle, id)
{
  if (ns4)
  {
    changeOnMouseOverNS4(hoverStyle, id);
  }
  else
  {
    if(hoverStyle.indexOf("Act") == -1)
    {
      document.getElementById(id).style.color = "#FFFFFF";
    }
    // first level navigation
    if(hoverStyle == "priCorp")
    {
      document.getElementById(id).style.backgroundColor = "#FFCC00";
    }
    if(hoverStyle == "priNews")
    {
      document.getElementById(id).style.backgroundColor = "#990000";
    }
    if(hoverStyle == "priProd")
    {
      document.getElementById(id).style.backgroundColor = "#336699";
    }
    if(hoverStyle == "priProj")
    {
      document.getElementById(id).style.backgroundColor = "#FF9933";
    }
    if(hoverStyle == "priElek")
    {
      document.getElementById(id).style.backgroundColor = "#41634A";
    }
    if(hoverStyle == "priServ")
    {
      document.getElementById(id).style.backgroundColor = "#339999";
    }
    // second level navigation
    if(hoverStyle == "secHome")
    {
      document.getElementById(id).style.backgroundColor = "#8C8C8C";
    }
    if(hoverStyle == "secCorp")
    {
      document.getElementById(id).style.backgroundColor = "#FFCC00";
    }
    if(hoverStyle == "secNews")
    {
      document.getElementById(id).style.backgroundColor = "#990000";
    }
    if(hoverStyle == "secProd")
    {
      document.getElementById(id).style.backgroundColor = "#336699";
    }
    if(hoverStyle == "secProj")
    {
      document.getElementById(id).style.backgroundColor = "#FF9933";
    }
    if(hoverStyle == "secElek")
    {
      document.getElementById(id).style.backgroundColor = "#41634A";
    }
    if(hoverStyle == "secServ")
    {
      document.getElementById(id).style.backgroundColor = "#339999";
    }
    // third level navigation
    if(hoverStyle == "thirdCorp")
    {
      document.getElementById(id).style.backgroundColor = "#FFCC00";
    }
    if(hoverStyle == "thirdNews")
    {
      document.getElementById(id).style.backgroundColor = "#990000";
    }
    if(hoverStyle == "thirdProd")
    {
      document.getElementById(id).style.backgroundColor = "#336699";
    }
    if(hoverStyle == "thirdProj")
    {
      document.getElementById(id).style.backgroundColor = "#FF9933";
    }
    if(hoverStyle == "thirdServ")
    {
      document.getElementById(id).style.backgroundColor = "#339999";
    }
  }
}
// background color changes on mouse out
function changeOnMouseOut(hoverStyle, id)
{
  if (ns4)
  {
    changeOnMouseOutNS4(hoverStyle, id);
  }
  else
  {
    if(hoverStyle.indexOf("Act") == -1)
    {
      document.getElementById(id).style.color = "#000000";
    }
    // first level navigation
    if(hoverStyle == "priCorp")
    {
      document.getElementById(id).style.backgroundColor = "#C0C0C0";
    }
    if(hoverStyle == "priNews")
    {
      document.getElementById(id).style.backgroundColor = "#C0C0C0";
    }
    if(hoverStyle == "priProd")
    {
      document.getElementById(id).style.backgroundColor = "#C0C0C0";
    }
    if(hoverStyle == "priProj")
    {
      document.getElementById(id).style.backgroundColor = "#C0C0C0";
    }
    if(hoverStyle == "priElek")
    {
      document.getElementById(id).style.backgroundColor = "#C0C0C0";
    }
    if(hoverStyle == "priServ")
    {
      document.getElementById(id).style.backgroundColor = "#C0C0C0";
    }
    // second level navigation
     if(hoverStyle == "secHome")
    {
      document.getElementById(id).style.backgroundColor = "#EFEFEF";
    }
    if(hoverStyle == "secCorp")
    {
      document.getElementById(id).style.backgroundColor = "#FFFF99";
    }
    if(hoverStyle == "secNews")
    {
      document.getElementById(id).style.backgroundColor = "#CC9999";
    }
    if(hoverStyle == "secProd")
    {
      document.getElementById(id).style.backgroundColor = "#6699CC";
    }
    if(hoverStyle == "secProj")
    {
      document.getElementById(id).style.backgroundColor = "#FFCC99";
    }
    if(hoverStyle == "secElek")
    {
      document.getElementById(id).style.backgroundColor = "#8DA593";
    }
    if(hoverStyle == "secServ")
    {
      document.getElementById(id).style.backgroundColor = "#66CCCC";
    }
    // third level navigation
    if(hoverStyle == "thirdCorp")
    {
      document.getElementById(id).style.backgroundColor = "#FFFFCC";
    }
    if(hoverStyle == "thirdNews")
    {
      document.getElementById(id).style.backgroundColor = "#ECC1C1";
    }
    if(hoverStyle == "thirdProd")
    {
      document.getElementById(id).style.backgroundColor = "#CAD8E7";
    }
    if(hoverStyle == "thirdProj")
    {
      document.getElementById(id).style.backgroundColor = "#FDDEBD";
    }
    if(hoverStyle == "thirdElek")
    {
      document.getElementById(id).style.backgroundColor = "#D6E2DB";
    }
    if(hoverStyle == "thirdServ")
    {
      document.getElementById(id).style.backgroundColor = "#CCFFFF";
    }
  }
}

function changeOnMouseOverNS4(hoverStyle, id)
{
  if(hoverStyle.indexOf("Act") == -1)
  {
    document.layers.id.style.color = "#FFFFFF";
  }
  // first level navigation
  if(hoverStyle == "priCorp")
  {
    document.layers.id.style.backgroundColor = "#FFCC00";
  }
  if(hoverStyle == "priNews")
  {
    document.layers.id.style.backgroundColor = "#990000";
  }
  if(hoverStyle == "priProd")
  {
    document.layers.id.style.backgroundColor = "#336699";
  }
  if(hoverStyle == "priProj")
  {
    document.layers.id.style.backgroundColor = "#FF9933";
  }
  if(hoverStyle == "priElek")
  {
    document.layers.id.style.backgroundColor = "#41634A";
  }
  if(hoverStyle == "priServ")
  {
    document.layers.id.style.backgroundColor = "#339999";
  }
  // second level navigation
  if(hoverStyle == "secCorp")
  {
    document.layers.id.style.backgroundColor = "#FFCC00";
  }
  if(hoverStyle == "secNews")
  {
    document.layers.id.style.backgroundColor = "#990000";
  }
  if(hoverStyle == "secProd")
  {
    document.layers.id.style.backgroundColor = "#336699";
  }
  if(hoverStyle == "secProj")
  {
    document.layers.id.style.backgroundColor = "#FF9933";
  }
  if(hoverStyle == "secElek")
  {
    document.layers.id.style.backgroundColor = "#41634A";
  }
  if(hoverStyle == "secServ")
  {
    document.layers.id.style.backgroundColor = "#339999";
  }
  // third level navigation
  if(hoverStyle == "thirdCorp")
  {
    document.layers.id.style.backgroundColor = "#FFCC00";
  }
  if(hoverStyle == "thirdNews")
  {
    document.layers.id.style.backgroundColor = "#990000";
  }
  if(hoverStyle == "thirdProd")
  {
    document.layers.id.style.backgroundColor = "#336699";
  }
  if(hoverStyle == "thirdProj")
  {
    document.layers.id.style.backgroundColor = "#FF9933";
  }
  if(hoverStyle == "thirdServ")
  {
    document.layers.id.style.backgroundColor = "#339999";
  }
}
// background color changes on mouse out
function changeOnMouseOutNS4(hoverStyle, id)
{
  if(hoverStyle.indexOf("Act") == -1)
  {
    document.layers.id.style.color = "#000000";
  }
  // first level navigation
  if(hoverStyle == "priCorp")
  {
    document.layers.id.style.backgroundColor = "#C0C0C0";
  }
  if(hoverStyle == "priNews")
  {
    document.layers.id.style.backgroundColor = "#C0C0C0";
  }
  if(hoverStyle == "priProd")
  {
    document.layers.id.style.backgroundColor = "#C0C0C0";
  }
  if(hoverStyle == "priProj")
  {
    document.layers.id.style.backgroundColor = "#C0C0C0";
  }
  if(hoverStyle == "priElek")
  {
    document.layers.id.style.backgroundColor = "#C0C0C0";
  }
  if(hoverStyle == "priServ")
  {
    document.layers.id.style.backgroundColor = "#C0C0C0";
  }
  // second level navigation
  if(hoverStyle == "secCorp")
  {
    document.layers.id.style.backgroundColor = "#FFFF99";
  }
  if(hoverStyle == "secNews")
  {
    document.layers.id.style.backgroundColor = "#CC9999";
  }
  if(hoverStyle == "secProd")
  {
    document.layers.id.style.backgroundColor = "#6699CC";
  }
  if(hoverStyle == "secProj")
  {
    document.layers.id.style.backgroundColor = "#FFCC99";
  }
  if(hoverStyle == "secElek")
  {
    document.layers.id.style.backgroundColor = "#8DA593";
  }
  if(hoverStyle == "secServ")
  {
    document.layers.id.style.backgroundColor = "#66CCCC";
  }
  // third level navigation
  if(hoverStyle == "thirdCorp")
  {
    document.layers.id.style.backgroundColor = "#FFFFCC";
  }
  if(hoverStyle == "thirdNews")
  {
    document.layers.id.style.backgroundColor = "#ECC1C1";
  }
  if(hoverStyle == "thirdProd")
  {
    document.layers.id.style.backgroundColor = "#CAD8E7";
  }
  if(hoverStyle == "thirdProj")
  {
    document.layers.id.style.backgroundColor = "#FDDEBD";
  }
  if(hoverStyle == "thirdElek")
  {
    document.layers.id.style.backgroundColor = "#D6E2DB";
  }
  if(hoverStyle == "thirdServ")
  {
    document.layers.id.style.backgroundColor = "#CCFFFF";
  }
}

// function for changing images onmouseover -- from external
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];}
}
//

