// START SCIPTS FOR NEW GLOBAL STYLE

function Fenster(Link,WinWidth,WinHeight,WindowName,posLeft,posTop) {
  newWindow=top.window.open(Link,WindowName,'toolbar=0,width='+WinWidth+',left=230,top=100,height='+WinHeight+',location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,copyhistory=0');
  newWindow.focus();
}

 // Open a centered popup
function openPopup(url,wName,w,h) {
	var wl = (screen.width-w)/2;
	var wt = (screen.height-h)/2;
	var params  ='height='+h+',width='+w+',top='+wt+',left='+wl;
	params +=",scrollbars,resizable";
	popWin = window.open(url, wName, params);
	return false;
}

function popup_zentriert(url, name, width, height, parms) {
   var left = Math.floor( (screen.width - width) / 2);
   var top = Math.floor( (screen.height - height) / 2);
   var winParms = "top=" + top + ",left=" + left + ",height=" + height + ",width=" + width;
   if (parms) { winParms += "," + parms; }
   var win = window.open(url, name, winParms);
   if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

//Popunder
function popunder() {
  win2=window.open('/egarage/teaser/popup_shop_ausstieg.html','exitpage','height=480,width=600,top=' + screen.height / 3 + ',left=' + screen.width / 3 +',toolbar=0,resizable=1,scrollbars=1');
  //win2.blur();
  //window.focus();
}

