var logo_an=0;
var faktor_temp=4;

function nn_logo_bewegen (ereignis)
{
	active_object.positionx("grafiklogoklein",ereignis.pageX-46);
	active_object.positiony("grafiklogoklein",ereignis.pageY-46);
}

function logo_event()
// wird bei Klick auf das Logo ausgefuehrt
{
	if (logo_an==0) logo_an=1; else logo_an=0;
	if (logo_an==1)
	{
		if (document.layers)
		{
			document.layers.grafiklogoklein.captureEvents(Event.MOUSEMOVE);
			document.layers.grafiklogoklein.document.images["grafik_logo_klein"].src=grafiken["layout_logo_klein1"].src;
			document.layers.grafiklogoklein.onmousemove=nn_logo_bewegen;
		}
		if (document.all) document.images[6].src=grafiken["layout_logo_klein1"].src;
	}
	if (logo_an==0)
	{
		if (document.layers)
		{
			document.layers["grafiklogoklein"].releaseEvents(Event.MOUSEMOVE);
			document.layers.grafiklogoklein.document.images[0].src=grafiken["layout_logo_klein"].src;
		}
		if (document.all) document.images[6].src=grafiken["layout_logo_klein"].src;
	}
}

function msie_logo_bewegen()
{
	if (logo_an==1)
	{
		active_object.positionx("grafiklogoklein",window.event.x-46);
		active_object.positiony("grafiklogoklein",window.event.y-46);
	}
}

function speedchange()
{
	switch (faktor_temp)
	{
		case 1: faktor_temp=4; active_object.formvalue("speedform","controlbuttons",1," normal"); break;
		case 2: faktor_temp=1; active_object.formvalue("speedform","controlbuttons",1,"langsam"); break;
		case 4: faktor_temp=7; active_object.formvalue("speedform","controlbuttons",1,"schnell"); break;
		case 8: faktor_temp=4; active_object.formvalue("speedform","controlbuttons",1," normal"); break;
		case 7: faktor_temp=1; active_object.formvalue("speedform","controlbuttons",1,"langsam"); break;
		case 14: faktor_temp=7; active_object.formvalue("speedform","controlbuttons",1,"schnell"); break;
		default: faktor_temp=4; active_object.formvalue("speedform","controlbuttons",1," normal");
	}
}

function turbo_scrollen()
{
	switch (faktor_temp)
	{
		case 1: faktor_temp=2; active_object.formvalue("speedform","controlbuttons",1," turbo "); break;
		case 2: faktor_temp=1; active_object.formvalue("speedform","controlbuttons",1,"langsam"); break;
		case 4: faktor_temp=8; active_object.formvalue("speedform","controlbuttons",1," turbo "); break;
		case 8: faktor_temp=4; active_object.formvalue("speedform","controlbuttons",1," normal"); break;
		case 7: faktor_temp=14; active_object.formvalue("speedform","controlbuttons",1," turbo "); break;
		case 14: faktor_temp=7; active_object.formvalue("speedform","controlbuttons",1,"schnell"); break;
		default: faktor_temp=4; active_object.formvalue("speedform","controlbuttons",1," normal");
	}
}

function formhilfechange()
{
	switch (hilfeklick)
	{
		case 0: hilfeklick=1;
				clearTimeout(timeoutanimation);
				clearTimeout(timeoutscrollen);
				if (an_temp==1||an_temp==3||an_temp==5) an_temp-=1;
				grafik_rollover(button_temp,an_temp);
				//mouse_over_out(objekt_name,0,150);
				zaehler=-100;
				if (objekt_name!="sys") unter_mouse_over_out(objekt_name,0,0);
				else mouse_over_out("sys",0);
				einausblenden(0);
				//scrollen_neu("inhaltli0");
				//scrollen_neu("inhaltre0");
				active_object.formvalue("speedform","controlbuttons",0,"start");
				active_object.zindex("speedform",9);
				active_object.show("ladenoch",hide);
				break; //=alles Moegliche zuruecksetzen
		case 1: active_object.zindex("speedform",101);
				active_object.show("ladenoch","visible");
				hilfeklick=0;
				active_object.formvalue("speedform","controlbuttons",0,"stopp");
				start_button_animation(0);
				break;
		default: alert("Fehler bei formhilfechange");
	}
}

function start_button_animation(steuerzahl)
{
	steuerzahl_temp=steuerzahl;
	steuerzahl_temp+=1;
	if (steuerzahl_temp<25)
	{
		switch (steuerzahl_temp)
		{
			case 1: mouse_over_out("projekt",1,186); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',700); break;
			case 2: mouse_over_out("projekt",0); mouse_over_out("musik",1,216); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',900); break;
			case 3: mouse_over_out("musik",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1000); break;
			case 4: mouse_over_out("sys",1,398); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',800); break;
			case 5: mouse_over_out("sys",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',600); break;
			case 6: mouse_over_out("gimmicks",1,306); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1300); break;
			case 7: mouse_over_out("gimmicks",0); mouse_over_out("anderen",1,276); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',600); break;
			case 8: mouse_over_out("anderen",0); mouse_over_out("studio",1,246); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',2200); break;
			case 9: unter_mouse_over_out("studio",1,258); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1200); break;
			case 10: unter_mouse_over_out("studio",0); unter_mouse_over_out("studio",1,238); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1500); break;
			case 11: einausblenden(31); unter_mouse_over_out("studio",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1300); break;
			case 12: grafik_rollover("inhaltlirauf",1); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1800); break;
			case 13: grafik_rollover("inhaltlirauf",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',400); break;
			case 14: grafik_rollover("inhaltlirunter",1); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1000); break;
			case 15: grafik_rollover("inhaltlirunter",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',400); break;
			case 16: grafik_rollover("inhaltlitop",3); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',400); break;
			case 17: scrollen_neu("inhaltli"+altes_objekt_ziel); grafik_rollover("inhaltlitop",2); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',800); break;
			case 18: grafik_rollover("inhaltrerauf",1); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1800); break;
			case 19: grafik_rollover("inhaltrerauf",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',400); break;
			case 20: grafik_rollover("inhaltrerunter",1); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',1000); break;
			case 21: grafik_rollover("inhaltrerunter",0); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',400); break;
			case 22: grafik_rollover("inhaltretop",5); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',400); break;
			case 23: scrollen_neu("inhaltre"+altes_objekt_ziel); grafik_rollover("inhaltretop",4); timeoutanimation=setTimeout('start_button_animation(steuerzahl_temp)',800); break;
			case 24: formhilfechange(); break;
			default: alert("Fehler bei start_button_animation");
		}
	}
}