//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 = 5600;         		// 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 = -nWidth;  

var nLeft = nWidth;

var timerTt = null;

var timerSt = null;



function Statik(){

    	if(ie5){

        	scrollY = document.body.scrollTop;

        	innerHeight = document.body.clientHeight;

	}

    	if (ie5 || ns6){

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

        	obj.style.left = 270;

			obj.style.width = 700;

			timerSt=setTimeout("Statik()", 10);

	}

}



function TickerTape(){

    	if(ie5) {

        	innerWidth = document.body.clientWidth;

}

    	if(ie5 || ns6){

			obj.style.color = color_off;

        	tck.style.left = nLeft;

        	tck.style.width = nWidth;

        	nLeft = nLeft - nSpeed;

        	if( nLeft < nEnd ) {nLeft = 600;}

        	timerTt=setTimeout('TickerTape()', 30);

    	}

}



function StopIt(){

    	if(ie5 || ns6) {

        	clearTimeout(timerTt);

			obj.style.color = color_over;

	}

}



function TickerInit(){

    	if(ie5 || ns6) {

        	tck = document.getElementById('text_ticker');

        	obj = document.getElementById('cont');

        	obj.style.visibility = "visible";

			nLeft = nLeft - nWidth;

        	obj.onmouseover=StopIt;

        	obj.onmouseout=TickerTape;

        	TickerTape();

			Statik();

    	}

}

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;
}


