var newWindow = null;
var w = null;
var h = null;
var x = 30;
var y = 20;
var toolbar = "no";

var newWindow = null;
var w = null;
var h = null;
var x = 100;
var y = 100;
var toolBar = "no";

function openWin(sourceFile,winWidth,winHeight,winScroll){
	if (parseInt(navigator.appVersion)>3&&newWindow!=null&&!newWindow.closed) {
		newWindow.close();
	}
	w = (parseInt(navigator.appVersion)<4)?winWidth+30:winWidth;
	h = (parseInt(navigator.appVersion)<4)?winHeight+30:winHeight;
	if (!winScroll){
	 	newWindow = window.open(sourceFile,"_blank","width="+w+",height="+h+",toolbar="+toolBar+",location=no,status=no,menubar=no,scrollbars=no,resizable=no");
	}
	else{
	 	newWindow = window.open(sourceFile,"_blank","width="+(w+20)+",height="+h+",toolbar="+toolBar+",location=no,status=no,menubar=no,scrollbars=yes,resizable=yes");
	}
	if (window.moveTo){
	newWindow.moveTo(x,y)
	}
	if(window.focus){
		newWindow.focus();
	}
}

function openVideoWin(sourceFile,winWidth,winHeight)
{
	w = (parseInt(navigator.appVersion)<4)?winWidth+30:winWidth;
	h = (parseInt(navigator.appVersion)<4)?winHeight+30:winHeight;


	if (navigator.appVersion.indexOf("Mac") != -1)	
	{
		var sourceFile = sourceFile + "_mac.html";
		newWindow = window.open(sourceFile,"_blank","width="+w+",height="+h+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10,top=10");
	}
	else
	{
		var sourceFile = sourceFile + ".html";
		newWindow = window.open(sourceFile,"_blank","width="+w+",height="+h+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,left=10,top=10");
	}
}

var smWindow = null;
var w = null;
var h = null;
var x = 30;
var y = 20;
var toolbar = "no";

function smWin(sourceFile,winWidth,winHeight){
	if (smWindow!=null&&!smWindow.closed) {
		smWindow.close();
	}
	w = winWidth;
	h = winHeight;
 	smWindow = window.open(sourceFile,"See_popup","width="+w+",height="+h+",toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no");
	if (window.moveTo){
	smWindow.moveTo(0,0)
	}
	if (smWindow.opener==null){
		smWindow.opener=self;
	}
	if(window.focus){
		smWindow.focus();
	}
}

function neuesFenster(url,width,height)
{
	var fenster = window.open(url,"boomy","width="+width+",height="+height+",toolbar=yes,location=yes,status=yes,menubar=yes,scrollbars=yes,resizable=no");

	if(fenster.focus)
	{
		fenster.focus();
	}
}

function fullScreenwindow(url)
{
	w = screen.availWidth;
	h = screen.availHeight;
	var f = window.open(url,"boomyandzob","width="+w+",height="+h+",toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=0,left=0");

	if(f.focus)
	{
		f.focus();
	}
}
