// OPEN WINDOW Platzplan Detailansichten
//--- check for browser
IE = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
//
NS = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 ));
//--- open pop-up window

function detailPlanopenWindow(strPageToLoad)
{
	var strWindowName = "Detailplan"
	var intWidth = 650;
	var intHeight = 310;
	var xposition=0; yposition=0;
//
	xposition = (screen.width - intWidth) / 2;
	yposition = (screen.height - intHeight) / 2;
//
	strArgs = 	"width="  + intWidth + "," 
	+ "height=" + intHeight + "," 
	+ "location=no," 
	+ "menubar=no,"
	+ "resizable=no,"
	+ "scrollbars=no,"
	+ "status=no," 
	+ "titlebar=no,"
	+ "toolbar=no,"
	+ "hotkeys=no,";
//
	if (IE) strArgs = strArgs	+ 	"left=" + xposition + ","
	+	"top=" + yposition;
//
	if (NS) strArgs = strArgs 	+	"screenx=" + xposition + ","
	+	"screeny=" + yposition;
//
//--- open window
	window.open(strPageToLoad, strWindowName, strArgs);
}

function AnfahrtsPlanopenWindow(strPageToLoad)
{
	var strWindowName = "Anfahrtsplanlangross"
	var intWidth = 499;
	var intHeight = 346;
	var xposition=0; yposition=0;
//
	xposition = (screen.width - intWidth) / 2;
	yposition = (screen.height - intHeight) / 2;
//
	strArgs = 	"width="  + intWidth + "," 
	+ "height=" + intHeight + "," 
	+ "location=no," 
	+ "menubar=no,"
	+ "resizable=yes,"
	+ "scrollbars=no,"
	+ "status=no," 
	+ "titlebar=no,"
	+ "toolbar=no,"
	+ "hotkeys=no,";
//
	if (IE) strArgs = strArgs	+ 	"left=" + xposition + ","
	+	"top=" + yposition;
//
	if (NS) strArgs = strArgs 	+	"screenx=" + xposition + ","
	+	"screeny=" + yposition;
//
//--- open window
	window.open(strPageToLoad, strWindowName, strArgs);
}

function ProShopopenWindow(strPageToLoad)
{
	var strWindowName = "ProShop"
	var intWidth = 670;
	var intHeight = 372;
	var xposition=0; yposition=0;
//
	xposition = (screen.width - intWidth) / 2;
	yposition = (screen.height - intHeight) / 2;
//
	strArgs = 	"width="  + intWidth + "," 
	+ "height=" + intHeight + "," 
	+ "location=no," 
	+ "menubar=no,"
	+ "resizable=no,"
	+ "scrollbars=yes,"
	+ "status=no," 
	+ "titlebar=no,"
	+ "toolbar=no,"
	+ "hotkeys=no,";
//
	if (IE) strArgs = strArgs	+ 	"left=" + xposition + ","
	+	"top=" + yposition;
//
	if (NS) strArgs = strArgs 	+	"screenx=" + xposition + ","
	+	"screeny=" + yposition;
//
//--- open window
	window.open(strPageToLoad, strWindowName, strArgs);
}

function GalleryopenWindow(strPageToLoad)
{
	var strWindowName = "Galerie"
	var intWidth = 650;
	var intHeight = 700;
	var xposition=0; yposition=0;
//
	xposition = (screen.width - intWidth) / 2;
	yposition = (screen.height - intHeight) / 2;
//
	strArgs = 	"width="  + intWidth + "," 
	+ "height=" + intHeight + "," 
	+ "location=no," 
	+ "menubar=no,"
	+ "resizable=no,"
	+ "scrollbars=yes,"
	+ "status=no," 
	+ "titlebar=no,"
	+ "toolbar=no,"
	+ "hotkeys=no,";
//
	if (IE) strArgs = strArgs	+ 	"left=" + xposition + ","
	+	"top=" + yposition;
//
	if (NS) strArgs = strArgs 	+	"screenx=" + xposition + ","
	+	"screeny=" + yposition;
//
//--- open window
	window.open(strPageToLoad, strWindowName, strArgs);
}
