/* ------------------------------------------------------------ */

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 - 1 );
	}
	return r;
}

function UnCryptM( s )
{
	location.href=UnCryptMailto( s );
}
	
	
/* ------------------------------------------------------------ */
function showhide(id)
{
	if (document.getElementById){
			obj = document.getElementById(id);
		if (obj.style.display == "none"){
			obj.style.display = "";
			}
		else {
			obj.style.display = "none";
		}
	}
}
/* ------------------------------------------------------------ */

var popup_true = false;

function PopUp(MyUrl,MyName,MyFeatures)
{
	//JavaScript:"PopUp(urlparam , 'Fenstername', 'scrollbars=0,resizable=1,width=440,height=425')"


	//if(popup_true == true){popup.close();}

	popup = window.open(MyUrl, MyName, MyFeatures);
	popup_true = true;	
	popup.focus();
}

function popup_close()
{
	//popup.focus();
	popup.close();
}

/* ------------------------------------------------------------ */
function klippklapp(id)
{
	if (document.getElementById)
	{
		
		zu  = "url(../_obj/interface/li_pfeil.gif)";
		auf = "url(../_obj/interface/li_pfeil_down.gif)";
	
		obj = document.getElementById(id);
	
		if ( (obj.style.backgroundImage.indexOf('li_pfeil.gif')) > 0 || (obj.style.backgroundImage== ""))
		{
			obj.style.backgroundImage=auf;
		}
		else
		{
			obj.style.backgroundImage=zu;
		}
		
		obj.style.backgroundRepeat="no-repeat";
	}
}
