// Amazing Frameless Popup Window - Version I
// (C) 2000 www.CodeLifter.com
// Free for all users, but leave in this  header

// set the popup window width and height
var windowW=screen.width; // wide
var windowH=screen.height; // high

// set the screen position where the popup should appear
var windowX = 0; // (screen.width/2)-(windowW/2);
var windowY = 0; // (screen.height/2)-(windowH/2);

// set the title of the page
var title =  "Studio-Be Full-Service Digitalstudio";

// set this to true if the popup should close
// upon leaving the launching page; else, false
var autoclose = true;

// ============================
// do not edit below this line
// ============================
s = "width="+windowW+",height="+windowH+",scrollbars=NO";
var beIE = document.all?true:false;

function openFrameless(lang)
{
	if (screen.height > 768)
	{
		document.location.href = "page.php?lang="+lang;
	}
	else
	{
		// set the url of the page to show in the popup
		var urlPop = "page.php?lang="+lang;

		if (beIE)
		{
			// for IE Browser
			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=auto>"+
				"<frame name='bottom' src='about:blank' scrolling='no'>"+
				"</frameset>"+
				"</html>";
			NFW.document.open();
			NFW.document.write(frameString);
			NFW.document.close();
		} 
		else 
		{
			// for non-IE Browser
			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();}
		}
	}
}

function Impressum()
{
	window.open("impressum.html", "_blank", "width=393,height=559");
}

