
document.write("<link href=\"../../lib/css/win.css\" REL=\"STYLESHEET\" TYPE=\"text/css\">");

/*****************************************************************************************************************/
// reloads the window if Nav4 resized
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) location.reload();
}
MM_reloadPage(true);

/*****************************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popup(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                        //if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                //if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
function popPrint(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=yes,status=no,scrollbars=yes,width='+x+',height='+y+', top='+posy+', left='+posx);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/

// Funktion zum Öffnen eines Childwindow an einer bestimmten Position MIT TOOLBAR!
function popupA(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/




function popupB(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/


/**************************************************************************************************************/

// Funktion zum Öffnen eines Childwindow an einer bestimmten Position MIT TOOLBAR!+scroll
function popupB(PopURL,FName,x,y,posx,posy)
{
        if (!(posx)) posx=20;
        if (!(posy)) posy=20;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,toolbar=yes,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,toolbar=yes,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************************/

// Kaskadiertes Popup
function popuptext(PopURL,FName,x,y,posx,posy)
{
        ns=( document.layers )?true:false;
        ie=( document.all )?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");

        if( ! window.cc_child_text )
        {
                if( ie )
                {
                        x = x +20;
                }
                cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                if ( posx )
                        cc_child_text.moveTo( posx,posy );
                window.cc_child_text.focus();
                return;
        }
        if (ie && ie4 < 0)
        {
                if( window.cc_child_text.closed )
                {
                        if( ie )
                        {
                                x = x +20;
                        }
                        cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                        if ( posx )
                                cc_child_text.moveTo( posx,posy );
                        window.cc_child_text.focus();
                        return;
                }
        }

        if( window.cc_child_text )
        {
                if (ie && ie4 < 0)
                {
                        window.cc_child_text.close();
                }
                cc_child_text = window.open( PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y );
                if( posx )
                        cc_child_text.moveTo( posx,posy );
                window.cc_child_text.focus();
        }
}
/**************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popupmessage(PopURL,FName,x,y,posx,posy)
{       alert ("THIS");
        if (!(posx)) posx=100;
        if (!(posy)) posy=100;
        ie=(document.all)?true:false;
        ie4 = navigator.appVersion.indexOf("MSIE 4");
        if (! window.cc_child)
        {
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=no,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
                return;
        }

        if (ie && ie4 < 0)
        {
                if (window.cc_child.closed)
                {
                        cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                        if (posx) cc_child.moveTo(posx,posy);
                        window.cc_child.focus();
                        return;
                }
        }

        if (window.cc_child)
        {
                if (ie && ie4 < 0)
                        {  window.cc_child.close(); }
                cc_child = window.open(PopURL, FName,'location=no,menubar=no,resizable=no,status=no,scrollbars=yes,width='+x+',height='+y);
                if (posx) cc_child.moveTo(posx,posy);
                window.cc_child.focus();
        }
}
/**************************************************************************************************/
// Funktion zum Öffnen eines Childwindow an einer bestimmten Position
function popupclose()
{
     top.window.close();
}
/**************************************************************************************************/
function widthSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  return myWidth;
}

/**************************************************************************************************/
function heightSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else {
    if( document.documentElement &&
        ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
      //IE 6+ in 'standards compliant mode'
      myWidth = document.documentElement.clientWidth;
      myHeight = document.documentElement.clientHeight;
    } else {
      if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        myWidth = document.body.clientWidth;
        myHeight = document.body.clientHeight;
      }
    }
  }
  return myHeight;
}
/*****************************************************************************************************************/

// Funktion des Lauftextes Presse


// By Ernst Straka (ernst.straka@central-europe.basf.org http://www.rs-systems.at/straka)
// Courtesy of SimplytheBest.net (http://simplythebest.net/info/dhtml_scripts.html)
var a1 =   0; // left of ticker in pixel, or 0 to position relative
var b1 =   500; // top of ticker in pixel, or 0 to position relative
var d1 =  390; // width of ticker in pixel
var ie = document.all ? true : false;
var ns = document.getElementById ? true : false;
var first = true;
var f2 = a1 + d1;
var g3 = a1 - f2;
var h = f2;
var rePos = a1+d1;
function setDefaults()
	{
	//a1 =   67; // left of ticker in pixel, or 0 to position relative
	//b1 =   485; // top of ticker in pixel, or 0 to position relative
	blameIe = document.getElementById("findMe").offsetLeft;

	d1 =  blameIe;//278; // width of ticker in pixel
	f2 = a1 + d1;
	g3 = a1 - f2;
	if(rePos<278)repos=278;

	h = rePos;
	if(ns)
	{
	document.getElementById('ticktext1').style.posLeft = rePos;
	}
	else
	{
	ticktext1.style.posLeft = rePos;
	}
		
	}

function tick1() 
{
	if (first) setDefaults();
	h = h - 2;   //1 - x , X=anzahl pixel pro vorgang
	if (h < g3) h = rePos;
	il = a1 - h;
	ir = f2 - h;
	
	if(ir<278)ir=278;
	if (ie) {
	ticktext1.style.posLeft = h;
	ticktext1.style.posTop = b1;
	ticktext1.style.clip = "rect(auto "+ir+"px auto "+il+"px)";
	if (first) ticktext1.style.visibility = "visible";
	}
	else if (ns) {
	document.getElementById("ticktext1").style.left = h + "px";
	document.getElementById("ticktext1").style.top = b1 + "px";
	document.getElementById('ticktext1').style.clip = "rect(auto "+ir+"px auto "+il+"px)"; //Inhalt/Text von div
	if (first) document.getElementById('ticktext1').style.visibility = "visible";
	}
	else {
	document.ticktext1.pageX = h;
	document.ticktext1.clip.left = il;
	document.ticktext1.clip.right = ir;
	if (first) document.ticktext1.visibility = "show";
	}
	first = false;
}

