// ------------------------------------------------------------------------------------------------------------------------------------------

function UnCryptMailto(s) {		 
		 var n=0;
		 var r="";
		 for(var i=0; i < s.length; i++) {
		 		 n=s.charCodeAt(i);
		 		 if (n>=8364) {n = 128;}
		 		 r += String.fromCharCode(n-(5));
		 }
		 return r;
}


function linkTo_Mail(s)		 {		 
		 location.href="mailto:" + UnCryptMailto(s);
//		 location.href="mailto:" + UnCryptMailto(s) + "?subject=Worum geht es";
}


function MailToForm(s){		 
 		 return ITSFORM.r_email.value = UnCryptMailto(s);
}


// ------------------------------------------------------------------------------------------------------------------------------------------/* ---------------------- TOOL TIP --------------------------------- */

var Initialisierung = 0;
//var StartXpos = 617;
//var StartYpos = 190;
var Ex, Ey, TitelFarbe, TextFarbe, TImage, TWidth, ContentInfo;

function ToolTipBewegen(layerName, FromTop, FromLeft, e)
{
	document.getElementById(layerName).style.top = FromTop - 90;
	document.getElementById(layerName).style.left = FromLeft + 15;
}


function Aktivieren()
{
	Initialisierung=1;
}

function Deaktivieren()
{
	Initialisierung=0;
}

function Starten(event)
{
	if(Initialisierung)
	{	
		document.getElementById("ToolTip").style.visibility = "visible";
		document.getElementById("ToolTip").style.top =  StartYpos;
		document.getElementById("ToolTip").style.left = StartXpos;		
	}
	else
	{
		document.getElementById("ToolTip").style.visibility = "hidden";		
	}
}

function Starten2(event)
{
	if(Initialisierung)
	{
		Ex = document.all ? window.event.x + document.body.scrollLeft : event.pageX;
		Ey = document.all ? window.event.y + document.body.scrollTop : event.pageY;
		
	//	Ex = document.all ? window.event.x : event.pageX;
	//	Ey = document.all ? window.event.y : event.pageY;

		ToolTipBewegen("ToolTip", Ey, Ex, event);
		document.getElementById('ToolTip').style.visibility = "visible";
	}
	else
	{
		ToolTipBewegen("ToolTip", 0, 0);
		document.getElementById('ToolTip').style.visibility = "hidden";
	}
}



function ToolTip(layerName, TitelFarbe, TextFarbe, TWidth, TTitel, TInhalt)
{
	ContentInfo = '<table border="1" width='+TWidth+' cellspacing="0" cellpadding="0"><tr><td width="100%" bgcolor="#000000"><table border="0" width="100%" cellspacing="1" cellpadding="0"><tr><td width="100%" bgcolor='+TitelFarbe+'><table border="0" width="90%" cellspacing="0" cellpadding="0" align="center"><tr><td width=100%"><font class="ToolTipTitel"> '+TTitel+'</font></td></tr></table></td></tr><tr><td width="100%" bgcolor='+TextFarbe+'><table border="0" width="90%" cellpadding="0" cellspacing="1" align="center"><tr><td width="100%"><font class="ToolTipInhalt">'+TInhalt+'</font></td></tr></table></td></tr></table></td></tr></table>';
	document.getElementById(layerName).innerHTML = ContentInfo;
}


function ToolTip2(layerName, TitelFarbe, TextFarbe, TTitel, TImage)
{
	ContentInfo = '<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%" bgcolor="#000000"><table border="0" width="100%" cellspacing="1" cellpadding="0"><tr><td width="100%" bgcolor='+TitelFarbe+'><table border="0" width="90%" cellspacing="0" cellpadding="0" align="center"><tr><td width="100%"><font class="ToolTipTitel"> '+TTitel+'</font></td></tr></table></td></tr><tr><td width="100%" bgcolor='+TextFarbe+'><table border="0" width="90%" cellpadding="0" cellspacing="1" align="center"><tr><td width="100%"><img src="'+TImage+'"  border="1"></td></tr></table></td></tr></table></td></tr></table>';
	document.getElementById(layerName).innerHTML = ContentInfo;
}



function ToolTip3(layerName, TitelFarbe, TextFarbe, TTitel, TImage, xpos, ypos)
{
StartYpos = ypos;
StartXpos = xpos;

	if(Initialisierung)
	{	
		document.getElementById("ToolTip").style.visibility = "visible";
		document.getElementById("ToolTip").style.top =  StartYpos;
		document.getElementById("ToolTip").style.left = StartXpos;		
	}
	else
	{
		document.getElementById("ToolTip").style.visibility = "hidden";
				
	}
	
	ContentInfo = '<table border="0" width="100%" cellspacing="0" cellpadding="0"><tr><td width="100%" bgcolor="#000000"><table border="0" width="100%" cellspacing="1" cellpadding="0"><tr><td width="100%" bgcolor='+TitelFarbe+'><table border="0" width="90%" cellspacing="0" cellpadding="0" align="center"><tr><td width="100%"><font class="ToolTipTitel"> '+TTitel+'</font></td></tr></table></td></tr><tr><td width="100%" bgcolor='+TextFarbe+'><table border="0" width="90%" cellpadding="0" cellspacing="1" align="center"><tr><td width="100%"><img src="'+TImage+'"  border="1"></td></tr></table></td></tr></table></td></tr></table>';
	document.getElementById(layerName).innerHTML = ContentInfo;
}



function ToolTip4(layerName, TitelFarbe, TextFarbe, TWidth, TTitel, TImage)
{
	ContentInfo = '<table border="0" width='+TWidth+' cellspacing="0" cellpadding="0">'+'<tr><td width="100%" bgcolor="#000000">'+'<table border="0" width="100%" cellspacing="1" cellpadding="0">'+'<tr><td width="100%" bgcolor='+TitelFarbe+'>'+'<table border="0" width="90%" cellspacing="0" cellpadding="0" align="center">'+'<tr><td width="100%">'+'<font class="ToolTipFans"> '+TTitel+'</font>'+'</td></tr>'+'</table>'+'</td></tr>'+'<tr><td width="100%" bgcolor='+TextFarbe+'>'+'<table border="0" width="90%" cellpadding="0" cellspacing="1" align="center">'+'<tr><td width="100%">'+'<img src="'+TImage+'"  border="1">'+'</td></tr>'+'</table>'+'</td></tr>'+'</table>'+'</td></tr>'+'</table>';
	document.getElementById(layerName).innerHTML = ContentInfo;
}




/* ------------------------------------------------ ENDE ------------------------------------------ */
