


function Hudba ()
{



this.aktivujFrameset = function (stranka)
{
	if (window.top != window)
	{
	  var puvodniURL = window.top.location;
	  window.top.location.href = "http://" + puvodniURL.hostname + "/" + stranka;
		return;
	}
	document.open  ();
	document.write ('<html>');
	document.write ('<head>');
	document.write ('<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
	document.write ('<title>SANUK thajská masáž, ajurvédská indonéská masáž, regenerace a rehabilitace</title>');
	document.write ('</head>');
	document.write ('<frameset rows="1,*" frameborder="0" framespacing="0">');
	document.write ('<frame name="hudba" frameborder="0" noresize="noresize" scrolling="no" />');
	document.write ('<frame name="obsah" src="' + stranka + '?hudba=1" frameborder="0" noresize="noresize" />');
	document.write ('</frameset>');
	document.write ('</html>');
	document.close ();
	window.hudba.location = 'Hudba/Hraj.html';
	return;
}



this.zapniHudbu = function ()
{
	window.top.hudba.location = 'Hudba/Hraj.html';
	return;
}



this.vypniHudbu = function ()
{
	window.top.hudba.location = 'Hudba/Nehraj.html';
	return;
}



this.zapniVypniHudbu = function ()
{
	this.hrajeHudba () ? this.vypniHudbu () : this.zapniHudbu ();
	return;
}



this.hrajeHudba = function ()
{ 
  if(!window.top.hudba.location.pathname)
  {
    return false;
  }
  var hraje = new RegExp ('/Hudba/Hraj\.html$');
	return hraje.test(window.top.hudba.location.pathname);
}



this.dohledTest = function ()
{

	var vypnout = true;
	try
	{
		vypnout =
			(window.top.obsah.location.host != window.top.hudba.location.host);
	}
	catch (vyjimka)
	{
	}
	if (vypnout)
	{
		this.vypniHudbu ();
	}
}



}



