ie4 = (document.all) ? true : false;
nn6 = ( (document.getElementById) && (! document.all) ) ? true : false;
function init()
{
if (ie4)
	{
	inhalt = e_inhalt.style;
	scrolli = e_scroll.style;

	}
if (nn6)
	{
	inhalt = document.getElementById("e_inhalt").style;
	scrolli = document.getElementById("e_scroll").style;
	}
komplett = true;
}

var liste = new Array();
liste[0] = new Image();
liste[0].src = "./bilder/home.jpg";
liste[1] = new Image();
liste[1].src = "./bilder/home_high.jpg";
liste[2] = new Image();
liste[2].src = "./bilder/institut.jpg";
liste[3] = new Image();
liste[3].src = "./bilder/institut_high.jpg";
liste[4] = new Image();
liste[4].src = "./bilder/yoga.jpg";
liste[5] = new Image();
liste[5].src = "./bilder/yoga_high.jpg";
liste[6] = new Image();
liste[6].src = "./bilder/coaching.jpg";
liste[7] = new Image();
liste[7].src = "./bilder/coaching_high.jpg";
liste[8] = new Image();
liste[8].src = "./bilder/kontakt.jpg";
liste[9] = new Image();
liste[9].src = "./bilder/kontakt_high.jpg";
liste[10] = new Image();
liste[10].src = "./bilder/1x1.gif";
liste[11] = new Image();
liste[11].src = "./bilder/inst_sonne.jpg";
liste[12] = new Image();
liste[12].src = "./bilder/yoga_sonne.jpg";
liste[13] = new Image();
liste[13].src = "./bilder/coa_sonne.jpg";
liste[14] = new Image();
liste[14].src = "./bilder/schwa_sonne.jpg";
liste[15] = new Image();
liste[15].src = "./bilder/kontakt_sonne.jpg";
liste[16] = new Image();
liste[16].src = "./bilder/sonne_menue.gif";



function wechseln(bild,n)
		{
		document.images[bild].src = liste[n].src;
		}
var komplett = false;

function kontrolle()
{
	if(document.forms[0].elements[0].value == "") 
	{
		window.alert("Achtung! Bitte tragen Sie hier Ihre E-Mail Adresse ein!");
		document.forms[0].elements[0].focus();
		return false;
	}	
		else
		{
			//berprfung der e-mail
			var mail = document.forms[0].elements['Emailadresse'].value;
			//der string: -document.forms...- wird in objekt mit eigenschaften festgestellt
			//dieses objekt -mail- hat eigenschaften die abgefragt werden knnen:
			if ( (mail.indexOf("@")<0) || (mail.indexOf(".")<0) || (mail.indexOf(" ")>0) || (mail.length<6) )
			{
			alert("Achtung! Bitte fllen Sie das Feld korrekt aus!");
			document.forms[0].elements['Emailadresse'].focus();//setzt den curser an diese -angegebene- stelle
			return false;
			}
			else
			{
			return true;
			} 
		} 
}
y=0;
var looop;
var hup;
var speed=20;
f=0;
function rauf_k(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_k()',speed)
				if(y<-160){
							clearTimeout(looop);
						  }
				}
function rauf_ks(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_ks()',speed)
				if(y<-230){
							clearTimeout(looop);
						  }
				}
function rauf_l(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_l()',speed)
				if(y<-738){
							clearTimeout(looop);
						  }
				}
function rauf_lkk(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_lkk()',speed)
				if(y<-660){
							clearTimeout(looop);
						  }
				}
function rauf_kll(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_kll()',speed)
				if(y<-640){
							clearTimeout(looop);
						  }
				}
function rauf_xxk(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_xxk()',speed)
				if(y<-630){
							clearTimeout(looop);
						  }
				}
function rauf_sll(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_sll()',speed)
				if(y<-550){
							clearTimeout(looop);
						  }
				}
function rauf_ml(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_ml()',speed)
				if(y<-485){
							clearTimeout(looop);
						  }
				}
function rauf_kl(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_kl()',speed)
				if(y<-280){
							clearTimeout(looop);
						  }
				}
function rauf_sm(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_sm()',speed)
				if(y<-330){
							clearTimeout(looop);
						  }
				}
function rauf_km(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_km()',speed)
				if(y<-380){
							clearTimeout(looop);
						  }
				}
function rauf_kkm(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_kkm()',speed)
				if(y<-350){
							clearTimeout(looop);
						  }
				}

function rauf_m(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_m()',speed)
				if(y<-510){
							clearTimeout(looop);
						  }
				}
				
function rauf_xl(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_xl()',speed)
				if(y<-1850){
							clearTimeout(looop);
						  }
				}
				
function rauf_xxl(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_xxl()',speed)
				if(y<-2850){
							clearTimeout(looop);
						  }
				}
								
function rauf_ll(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_ll()',speed)
				if(y<-1180){
							clearTimeout(looop);
						  }
				}
function rauf_lll(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_lll()',speed)
				if(y<-1170){
							clearTimeout(looop);
						  }
				}
function rauf_lk(){

				inhalt.top=y;				y=y-3;

				looop=setTimeout('rauf_lk()',speed)
				if(y<-940){
							clearTimeout(looop);
						  }
				}
function rauf_lx(){
				inhalt.top=y;
				y=y-3;

				looop=setTimeout('rauf_lx()',speed)
				if(y<-1200){
							clearTimeout(looop);
						  }
				}

function runter(){
				inhalt.top=y;
				y=y+3;

				hup=setTimeout('runter()',speed)
				if(y>0){
						clearTimeout(hup);
			        	}
				}
				
function halt(){
				clearTimeout(looop);
				clearTimeout(hup);
				}


function abspielen()
				{
				window.open("./musik/musike1.htm","musike","top=0,left=500,width=130,height=130,resizable=no,location=no");
				
				}
function abspielen2()
				{
				window.open("./musik/musike2.htm","musike","top=0,left=500,width=130,height=130,resizable=no,location=no");
				
				}
function abspielen3()
				{
				window.open("./musik/musike3.htm","musike","top=0,left=500,width=130,height=130,resizable=no,location=no");
				
				}
function abspielen4()
				{
				window.open("./musik/musike4.htm","musike","top=0,left=500,width=130,height=130,resizable=no,location=no");
				
				}
function abspielen5()
				{
				window.open("./musik/musike5.htm","musike","top=0,left=500,width=130,height=130,resizable=no,location=no");
				
				}