old="SoundOff";

function SoundIt(x)
	{
	if (top.window.name=="SoundOff")
		{
		parent.Sound.location.href="../no_sound.html";
		}
	if (top.window.name=="SoundOn")
		{
		if (x==1) parent.Sound.location.href="../tor_sound.html";
		if (x==2) parent.Sound.location.href="../hof_sound.html";
		if (x==3) parent.Sound.location.href="../haus_sound.html";
		if (x==4) parent.Sound.location.href="../zimmer_sound.html";
		if (x==5) parent.Sound.location.href="../garten_sound.html";
		}
	SoundItt(x)
	}

function SoundItt(x){
  if (top.window.name!=old)
 	{
	old=top.window.name;
	if (old=="SoundOff") parent.Sound.location.href="../no_sound.html";
	if (old=="SoundOn")
		{
		if (x==1) parent.Sound.location.href="../tor_sound.html";
		if (x==2) parent.Sound.location.href="../hof_sound.html";
		if (x==3) parent.Sound.location.href="../haus_sound.html";
		if (x==4) parent.Sound.location.href="../zimmer_sound.html";
		if (x==5) parent.Sound.location.href="../garten_sound.html";
		}
	}
setTimeout("SoundItt("+x+")",100);
}

