//Browserweiche CSS für Firefox

if (navigator.userAgent.indexOf("Firefox") != -1) document.write('<link rel="stylesheet" href="../css/ff.css" type="text/css">');



//Browserweiche CSS für Safari

if (navigator.userAgent.indexOf("Safari") != -1) document.write('<link rel="stylesheet" href="../css/safari.css" type="text/css">');



//E-Mail-Verschlüsselung

function build_mail(user,domain,suffix,weight){

document.write('<a href="'+'mailto:'+user+'@'+domain+'.'+suffix+'" font-weight:'+weight+'" onfocus="this.blur()">'+user+'@'+domain+'.'+suffix+'</a>');

}



//Popup öffnen

function NeuesFenster(datei,name,breite,hoehe,x,y,center,loc,men,stat,scroll,res)

{

	if (center == 1)

	{

		x = (screen.width-breite)/2;

		y = (screen.height-hoehe)/2;

	}

	settings='width='+breite+',height='+hoehe+',left='+x+',top='+y+',location='+loc+',menubar='+men+',status='+stat+',scrollbars='+scroll+',resizable='+res+'';

	newWindow=window.open(datei,name,settings);

}



//Show-Hide Layers

function ShowHideLayers(layer,val){

	if (val == "show"){

		document.getElementById(layer).style.visibility = "visible";

		return

	}

	if (val == "hide"){document.getElementById(layer).style.visibility = "hidden"}

}



//Ticker

/*

Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/

This script may be used and changed freely as long as this msg is intact

Visit http://getElementById.com/ for more free scripts and tutorials.

*/

var ie5 = (document.getElementById && document.all);

var ns6 = (document.getElementById && !document.all);



var nWidth = 2000;         		// width of text vorher:4850

var nSpeed = 2;           		// speed

var color_off = "#ffffff";    	// font-color onmouseout

var color_over  = "#FF9900";    // font-color onmouseover



var nEnd_1 = -nWidth;

var nEnd_2 = -nWidth; 

var nLeft_1 = nWidth;

var nLeft_2 = nWidth;

var timerTt_1 = null;

var timerTt_2 = null;

var timerSt_1 = null;

var timerSt_2 = null;



function Statik_1(){

    	if(ie5){

        	scrollY = document.body.scrollTop;

        	innerHeight = document.body.clientHeight;

	}

    	if (ie5 || ns6){

        	obj_1.style.top = (innerHeight - obj_1.offsetHeight) + scrollY;

        	obj_1.style.left = 270;

			obj_1.style.width = 350;

			timerSt_1=setTimeout("Statik_1()", 10);

	}

}



function Statik_2(){

    	if(ie5){

        	scrollY = document.body.scrollTop;

        	innerHeight = document.body.clientHeight;

	}

    	if (ie5 || ns6){

        	obj_2.style.top = (innerHeight - obj_2.offsetHeight) + scrollY;

        	obj_2.style.left = 270;

			obj_2.style.width = 350;

			timerSt_2=setTimeout("Statik_2()", 10);

	}

}



function TickerTape_1(){

    	if(ie5) {

        	innerWidth = document.body.clientWidth;

}

    	if(ie5 || ns6){

			obj_1.style.color = color_off;

        	tck_1.style.left = nLeft_1;

        	tck_1.style.width = nWidth;

        	nLeft_1 = nLeft_1 - nSpeed;

        	if( nLeft_1 < nEnd_1 ) {nLeft_1 = 600;}

        	timerTt_1=setTimeout('TickerTape_1()', 30);

    	}

}



function TickerTape_2(){

    	if(ie5) {

        	innerWidth = document.body.clientWidth;

}

    	if(ie5 || ns6){

			obj_2.style.color = color_off;

        	tck_2.style.left = nLeft_2;

        	tck_2.style.width = nWidth;

        	nLeft_2 = nLeft_2 - nSpeed;

        	if( nLeft_2 < nEnd_2 ) {nLeft_2 = 600;}

        	timerTt_2=setTimeout('TickerTape_2()', 30);

    	}

}



function StopIt_1(){

    	if(ie5 || ns6) {

        	clearTimeout(timerTt_1);

			obj_1.style.color = color_over;

	}

}



function StopIt_2(){

    	if(ie5 || ns6) {

        	clearTimeout(timerTt_2);

			obj_2.style.color = color_over;

	}

}



function TickerInit_1(){

    	if(ie5 || ns6) {

        	tck_1 = document.getElementById('text_ticker_1');

        	obj_1 = document.getElementById('cont_1');

        	obj_1.style.visibility = "visible";

			nLeft_1 = nLeft_1 - nWidth;

        	obj_1.onmouseover=StopIt_1;

        	obj_1.onmouseout=TickerTape_1;

        	TickerTape_1();

			Statik_1();

    	}

}		

function TickerInit_2(){

    	if(ie5 || ns6) {

        	tck_2 = document.getElementById('text_ticker_2');

        	obj_2 = document.getElementById('cont_2');

        	obj_2.style.visibility = "visible";

			nLeft_2 = nLeft_2 - nWidth;

        	obj_2.onmouseover=StopIt_2;

        	obj_2.onmouseout=TickerTape_2;

        	TickerTape_2();

			Statik_2();

    	}

}

function addBookmark()
{
  if(window.sidebar)                   // Geckos wie FF
    window.sidebar.addPanel(document.title || location.href, location.href,"");
  else if(window.external)             // IE
    window.external.AddFavorite(window.location.href, document.title || location.href)
  else
    alert("Hinweis:\nLeider konnte kein Lesezeichen gesetzt werden...");

  return false;
}



