// JavaScript Document

var g_width = 0;
var g_height = 0;

function href()
{
	g_width = screen.availWidth;
	g_height = screen.availHeight;
	
	if (document.all)
	{
		self.moveTo (0, 0);
		self.resizeTo (screen.availWidth, screen.availHeight);
		self.moveTo (0, 0);
	}
	if (document.layers || document.getElementById)
	{
		self.moveTo (0, 0);
		if (top.window.outerHeight < screen.availHeight || top.window.outerWidth < screen.availWidth )
		{
			self.resizeTo (screen.availWidth, screen.availHeight);
		}
		self.moveTo (0, 0);
	}
}

function openWindow (site)
{
	MeinFenster = window.open (site, "Zweitfenster", "width="+g_width+",height="+g_height+",left=0,top=0,scrollbars=yes");
	MeinFenster.focus();
}

function getFlashMovieObject (movieName)
{
	if (window.document[movieName]) 
	{
		return window.document[movieName];
	}

	if (navigator.appName.indexOf ("Microsoft Internet") == -1)
	{
		if (document.embeds && document.embeds[movieName])
			return document.embeds[movieName]; 
	}
	else return document.getElementById (movieName);
}

function stopSound (stopIt)
{
	var flashMovie = getFlashMovieObject ("yourbeach");

	if (! flashMovie) return;

	if (stopIt)
	{
		flashMovie.SetVariable ("shouldPlay", 0);
	}
	else flashMovie.SetVariable ("shouldPlay", 1);
}
