var windowW=screen.width;
var windowH=screen.height;

var windowX = 0; // (screen.width/2)-(windowW/2);
var windowY = 0; // (screen.height/2)-(windowH/2);

var title =  "Biederlack Borbo";

var autoclose = true;

s = "width="+windowW+",height="+windowH+",scrollbars=NO";
var beIE = document.all ? true : false;

function Website(Sprache)
{
	if (screen.height < 800 && screen.height > 700)
		openFrameless(Sprache);
	else
		location.href = "index.php?lang="+Sprache;
}

function openFrameless(Sprache)
{
	var urlPop = "index.php?lang="+Sprache;
	/*
	switch(Sprache)
	{
		case "D": urlPop = "index.php"; break;
		case "UK": urlPop = "gb/flash.html"; break;
		case "NL": urlPop = "nl/flash.html"; break;
		case "FR": urlPop = "fr/flash.html"; break;
	}
	*/
	if (beIE)
	{
		NFW = window.open("","popFrameless","fullscreen,"+s);
		NFW.blur();
		window.focus();
		NFW.resizeTo(windowW,windowH);
		NFW.moveTo(windowX,windowY);

		var frameString = 	""+
							"<html>"+
							"<head>"+
							"<title>"+title+"</title>"+
							"</head>"+
							"<frameset rows='*,0' framespacing=0 border=0 frameborder=0>"+
							"<frame name='top' src='"+urlPop+"' scrolling=no>"+
							"<frame name='bottom' src='about:blank' scrolling='no'>"+
							"</frameset>"+
							"</html>";
		NFW.document.open();
		NFW.document.write(frameString);
		NFW.document.close();
	} 
	else
	{
		NFW=window.open(urlPop,"popFrameless","scrollbars,"+s);
		NFW.blur();
		window.focus();
		NFW.resizeTo(windowW,windowH);
		NFW.moveTo(windowX,windowY);
	}   
	
	NFW.focus();
	if (autoclose)
	{
		window.onunload = function(){ NFW.close(); }
	}
}

//
// Verhinderung von Flashrahmen
//
function FlashMovie(src, movie, width, height, version, quality, menu, bgcolor, flashvars)
{
	document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0' width='" +width+ "' height='" +height+ "' id='" +movie+ "'>");
	document.write("<param name='movie' value='" +src+ "' />");
	document.write("<param name='FlashVars' value='" +flashvars+ "'>");
	document.write("<param name='quality' value='" +quality+ "' />");
	document.write("<param name='menu' value='" +menu+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<param name='bgcolor' value='" +bgcolor+ "' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='" +src+ "' wmode='transparent' swLiveConnect='true' menu='" +menu+ "' FlashVars='" +flashvars+ "' quality='" +quality+ "' bgcolor='" +bgcolor+ "' width='" +width+ "' height='" +height+ "' name='" +movie+ "' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
	document.write("</object>");
}
