// spezifische Funktionen für Raumplus - 13. 6. 2006 (FW)

sound_allowed=1; // Legt fest, ob überhaupt Sound gespielt werden soll
sound_status=1;  // Legt fest, welcher Sound gespielt wird (1/2/2leise)
sound_einzelbuero_status = "laut";

function sound_on_off(sollwert)
{
	sound_allowed = sollwert;
	if (sound_allowed==0) parent.frames["bg_sound"].location.href = "sound_aus.htm";
	if (sound_allowed==1)
	{
		if (sound_status==1) quelle="sound_1.htm";
		if (sound_status==2) quelle="sound_2.htm";
		if (sound_status==3) quelle="sound_2leise.htm";
		if (sound_status==0) quelle="sound_aus.htm";
		parent.frames["bg_sound"].location.href = quelle;
	}
}

function hg_sound(sound_id)
{
	var quelle=0;
	if ((sound_status != sound_id) && sound_allowed)
	{
		if (sound_id==1) quelle = "sound_1.htm";
		if (sound_id==2) quelle = "sound_2.htm";
		if (sound_id==3) quelle = "sound_2leise.htm";
		if (sound_id==0) quelle = "sound_aus.htm";
		parent.frames["bg_sound"].location.href = quelle;
	}
	sound_status = sound_id;
}

function hg_sound_Einzelbuero()
{
	if (sound_einzelbuero_status == "laut")
	{ 
		sound_status = 2; if (sound_allowed==1) parent.frames["bg_sound"].location.href = "sound_2.htm";
	}
	else 
	{
		sound_status = 3; if (sound_allowed==1) parent.frames["bg_sound"].location.href = "sound_2leise.htm";
	}
}

function toggleSoundEinzelbuero()
{
	if (sound_einzelbuero_status == "laut")
	{ 
		sound_einzelbuero_status = "leise";
		sound_status = 3;
		if (sound_allowed) parent.frames["bg_sound"].location.href = "sound_2leise.htm";
	}
	else 
	{
		sound_einzelbuero_status = "laut";
		sound_status = 2;
		if (sound_allowed) parent.frames["bg_sound"].location.href = "sound_2.htm";
	}
}

