

// e-dvertising - Hinterdorfer & Edlinger OEG, http://e-dvertising.at/
// browserabfrage ... (support && credits: w.reinisch, http://reinisch.at)

// Default browsercheck, added to all scripts! ... (support && credits: Thomas Brattli, http://www.bratta.com)
function checkBrowser()
{
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
	return this
}

var bw=new checkBrowser()
var browserVersion=0;

if (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion)  >= 3 )) ||
    ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
        browserVersion = 3;

query_string = window.top.location.search;

if (query_string) {query_string = (query_string + '&p=y');}
else {query_string = ('?p=y');}


if (browserVersion==3)
{
	selfname = "";
	fensterlcheck = false;

	dreiopen=new Function("fensterl= window.open(query_string,'drucken','toolbar=yes,menubar=yes,pageYOffset=10,pageXOffset=310,resizable=yes,scrollbars=yes,width=620,height=600');fensterlcheck=true;");
	impropen=new Function("fensterl= window.open('/impressum.php','impressum','toolbar=yes,menubar=no,pageYOffset=10,pageXOffset=310,resizable=yes,scrollbars=no,width=400,height=400');fensterlcheck=true;");
	discopen=new Function("fensterl= window.open('/disclaimer.php','haftungsausschluss','toolbar=yes,menubar=no,pageYOffset=10,pageXOffset=310,resizable=yes,scrollbars=no,width=420,height=400');fensterlcheck=true;");
	agbopen=new Function("fensterl= window.open('/agb.php','agb','toolbar=yes,menubar=no,pageYOffset=10,pageXOffset=610,resizable=yes,scrollbars=yes,width=400,height=300');fensterlcheck=true;");

	function popopenprint(picname,dir,titel,width,height)
	{
		window.open('/popup.php?pic_name=' + picname +'&dir=' + dir +'&titel=' + titel +'','zoom','toolbar=yes,menubar=no,pageYOffset=10,pageXOffset=10,resizable=no,scrollbars=no,width=' + width + ',height=' + height + '');
	}
}

function popopen(picname,popup_title,popup_alt_text,width,height)
{
	window.open('/popup.php?pic_name=' + picname +'&popup_title=' + popup_title +'&popup_alt_text=' + popup_alt_text +'','zoom','toolbar=no,menubar=no,pageYOffset=10,pageXOffset=10,resizable=no,scrollbars=no,width=' + width + ',height=' + height + '');
}

function popopenzwei(picname,popup_title,popup_alt_text,width,height)
{
	window.open('/popup2.php?pic_name=' + picname +'&popup_title=' + popup_title +'&popup_alt_text=' + popup_alt_text +'','zoom','toolbar=yes,menubar=no,pageYOffset=10,pageXOffset=10,resizable=no,scrollbars=no,width=' + width + ',height=' + height + '');
}

// neues fenster bildgalerie-popup
function picgal_open(navtext, gallery_id, pic_dir, pic_name)
{
	window.open('/picgal_popup.php?navtext=' + navtext + '&gallery_id=' + gallery_id + '&pic_dir=' + pic_dir + '&pic_name=' + pic_name + '', 'zoom', 'toolbar=no, menubar=no, status=no, sreenY=10, screenX=10, left=10, top=10, resizable=no, scrollbars=no, width=552, height=660');
}

// the netscape bugfix "resize'it" ... reloads the window if Nav4 resized
function MM_reloadPage(init)
{
	if (init==true) with (navigator)
	{
		if ((appName=="Netscape")&&(parseInt(appVersion)==4))
		{
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage;
		}
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
