// Middle window v1.0 (TITLE)
// www.sweell.com / Luigi Gambardella java[z]one - io@sweell.com
// Center trick by dR g. http://www.sweell.com

function enter_Site() {
	theurl="prenota.htm"
	wname ="CENTERWIN"
	W=650;
	H=350;
	open_center(theurl, wname, W, H);
}

function open_center(theURL, wname, W, H) {

	var windowW = W;
	var windowH = H;
	var windowX = Math.ceil( (window.screen.width  - windowW) / 2 );
	var windowY = Math.ceil( ((window.screen.height - windowH) / 2)-22 );

	if (navigator.appName == "Microsoft Internet Explorer" && parseInt(navigator.appVersion)>=4) isie=true
	else											     isie=false

	if (isie) { H=H+20+2; W=W+2; }

	s = ",width="+W+",height="+H;

	if (isie) {
		
		splashWin = window.open( "prenota.htm" , wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s)

		splashWin.resizeTo( Math.ceil( W )       , Math.ceil( H ) )
		splashWin.moveTo  ( Math.ceil( windowX ) , Math.ceil( windowY ) )

	}
	else    var splashWin = window.open(theURL, wname, "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0"+s, true)

	splashWin.focus();
}
