$(document).ready(function() {

  $('#startshow ul').innerfade({
    speed: 2000,
    timeout: 7000,
    containerheight: 191
  });
	
	
});
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 linkTo_UnCryptMailto( s )
    {
        location.href=UnCryptMailto( s );
    }

function toggledisplay (id){
  if (document.getElementById) {
    var mydiv = document.getElementById(id);
    mydiv.style.display = (mydiv.style.display=='block'?'none':'block');
  }
}

function check(theForm)
	{
	if (theForm.name.value == "")
	{
	alert("Bitte Namen eingeben!");
	theForm.name.focus();
	return (false);
	}
	if (theForm.usermail.value == "")
	{
	alert("Bitte E-Mail Adresse eingeben!");
	theForm.usermail.focus();
	return (false);
	}
	if(theForm.usermail.value.indexOf('@') == -1)
	{
	alert("Keine korrekte E-Mail Adresse!");
	theForm.usermail.focus();
	return (false);
	}
	return (true);
}
