
var element;
function MM_effectBlind(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoBlind(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}
function MM_effectAppearFade(targetElement, duration, from, to, toggle)
{
	Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
}

var wasistan = '1';

function einblenden(was) {
	wasistan = was;
	MM_effectBlind('mt-box-'+was, 1000, '0%', '100%', false);
	MM_effectAppearFade('mt-box-'+was, 1000, 0, 70, false);
	MM_effectAppearFade('mb-box-'+was, 2000, 0, 70, false);
	document.getElementById('mb-box-'+was).style.zIndex = 9030+was;
	document.getElementById('mt-box-'+was).style.zIndex = 9040+was;
	document.getElementById('mt-link-'+was).style.zIndex = 9050+was;
	document.getElementById('link-'+was).className = 'current';
}

function ausblenden(was) {
	wasistan = 0;
	MM_effectBlind('mt-box-'+was, 1000, '100%', '0%', false);
	MM_effectAppearFade('mt-box-'+was, 1000, 70, 0, false);
	MM_effectAppearFade('mb-box-'+was, 1000, 70, 0, false);
	document.getElementById('mb-box-'+was).style.zIndex = 9000+was;
	document.getElementById('mt-box-'+was).style.zIndex = 9010+was;
	document.getElementById('mt-link-'+was).style.zIndex = 9020+was;
	document.getElementById('link-'+was).className = '';
}

function wechsel(wasistan,was) {
	clearTimeout(timer);
	if (wasistan > 0 ) { ausblenden(wasistan); } 
	timer = setTimeout("einblenden("+was+")",800);
}

function rotation() {
	was = wasistan+1;
	if (was == 5) { was = 1; }
	wechsel(wasistan,was);
}

/*Funktion für die Mail unkenntlich zu machen*/
function umfummeln(x){
var yy=2;var z=0;var xx="";
for(var y=0;y<x.length;y++)
        {
        z=x.charCodeAt(y);
        xx+=String.fromCharCode(z-yy);
        }
return xx;
}

function nixlesen(x)
{
location.href='mailto:'+umfummeln(x);
}


