
var plus = new Image(); plus.src = "/images/plus.gif";
var minus = new Image(); minus.src = "/images/plus.gif";


function ExpandDiv(theDivName)
  {
  InitializeGlobalData();
  if (null == theDivName || typeof(theDivName) == "undefined") return;
  var theDiv = allDivsInPage[theDivName];
  if (null == theDiv || typeof(theDiv) == "undefined") return;
  theDiv.style.display = "block";
  var thePic = allImagesInPage[theDivName + "_img"];
  if (null != thePic && typeof(thePic) != "undefined")
    {
    thePic.src = "/images/minus.gif";
    }
  }
function CollapseDiv(theDivName)
  {
  InitializeGlobalData();
  if (null == theDivName || typeof(theDivName) == "undefined") return;
  var theDiv = allDivsInPage[theDivName];
  if (null == theDiv || typeof(theDiv) == "undefined") return;
  theDiv.style.display = "none";
  var thePic = allImagesInPage[theDivName + "_img"];
  if (null != thePic && typeof(thePic) != "undefined")
    {
    thePic.src = "/images/plus.gif";
    }
  }

function ToggleDiv(theDivName)
  {
  InitializeGlobalData();
  if (null == theDivName || typeof(theDivName) == "undefined") return;
  var theDiv = allDivsInPage[theDivName];
  if (null == theDiv || typeof(theDiv) == "undefined") return;
  if (theDiv.style.display.toUpperCase() != "BLOCK")
    ExpandDiv(theDivName);
  else
    CollapseDiv(theDivName);
  }
function AlterAllDivs(displayStyle)
  {
  InitializeGlobalData();
  if (null == allDivsInPage || typeof(allDivsInPage) == "undefined") return;
  if (typeof(allDivsInPage["divShowAll"]) != "undefined" && typeof(allDivsInPage["divHideAll"]) != "undefined")
     {
     if (displayStyle == "block")
       {
       allDivsInPage["divShowAll"].style.display = "none";
       allDivsInPage["divHideAll"].style.display = "block";
       }
     else
       {
       allDivsInPage["divShowAll"].style.display = "block";
       allDivsInPage["divHideAll"].style.display = "none";
       }
     }
  AlterAllDivsSpans(document.body.getElementsByTagName("DIV"), displayStyle);
  AlterAllDivsSpans(document.body.getElementsByTagName("SPAN"), displayStyle);
}

function InitializeGlobalData()
  {
  if ('undefined' != typeof(strRtl))
  strIsRtl = strRtl;
  var divs = document.body.getElementsByTagName("DIV");
  var spans = document.body.getElementsByTagName("SPAN"); var countDiv = 0;
  var countSpan = 0;
  if (typeof(divs) != "undefined" && null != divs) countDiv = divs.length;
  if (typeof(spans) != "undefined" && null != spans) countSpan = spans.length;
  allDivsInPage = new Array();
  for (i=0; i < countDiv; i++)
    if (typeof(divs[i].id) != "undefined" && null != divs[i].id && divs[i].id.length > 0)
    allDivsInPage[divs[i].id] = divs[i];
  for (i=0; i < countSpan; i++)
    if (typeof(spans[i].id) != "undefined" && null != spans[i].id && spans[i].id.length > 0)
    allDivsInPage[spans[i].id] = spans[i];
  allImagesInPage = document.body.getElementsByTagName("IMG");
  }


function ChangeClass(typ,von,nach)
  {
document.getElementById(von).className=nach;
//  d=document.getElementsByTagName(typ);
//  for (var i=0;i<d.length;i++){
//    if(d[i].title==von)d[i].id=nach;
//    }
  }
  
function FairPic(grafik,text)
{
var pic
pic=window.open ("","picwindow","width=800,height=600,screenX=0,screenY=0,resizable=no,menubar=no,status=no,dependent=yes,locationbar=no,scrollbars=no");
pic.focus();
pic.document.open();
pic.document.write('<html><head><title>Beck IPC GmbH - News</title></head>');
pic.document.write('<body bgcolor="#ffffff" marginwidth=0 marginheight=0 leftmargin=0 topmargin=0>');
pic.document.write('<table width=100% height=100% border=0 cellpadding="0" cellspacing="0"><tr valign=center><td align=center><a href="javascript:close();"><img src="'+grafik+'" border=0 alt="'+text+'"></a></td></tr></table>');
pic.document.write('</body></html>');
pic.document.close();
      }
  
  