//window.setInterval("tippRoller('startbild')", 3000);

var visibleTipp = 1;

function tippRoller(prefix) {
    var node = $(prefix + visibleTipp);
    var nextNode = $(prefix + (++visibleTipp));
    if(visibleTipp==4) {
        visibleTipp=1;
        nextNode = $(prefix + visibleTipp);
    }
    if (node) node.hide();
	console.log(nextNode);
    new Effect.Appear(nextNode, {queue:'end'});
}

function myweb2goEncryptedMailto (securemail) {
email = rot13(securemail);
document.location.href="mailto:"+email;
}


function rot13(text){
var a=97, m=109, n=110, z=122, A=65, M=77, N=78, Z=90;
var len = text.length, c, str = "";
for(var i=0; i<len; i++)
{
c = text.charCodeAt(i);
if((a <= c && c <= m) || (A <= c && c <= M)){ str += String.fromCharCode(c+13);}
else if((n <= c && c <= z) || (N <= c && c <= Z)){ str += String.fromCharCode(c-13);}
else{ str += text.substr(i,1);}
}
return str;
}

