// JavaScript Document
var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, intWidth, intHeight){
	var h=0;
	var w=0;
	if(screen.availHeight<=intHeight){intHeight = screen.availHeight;}
	else{h = Math.floor( (screen.availHeight-intHeight)/2 );}
	if(screen.availWidth<=intWidth) intWidth = screen.availWidth;
	else{w = Math.floor( (screen.availWidth-intWidth)/2 );}
	var str="screenX=0,screenY=0";
	str = ",top="+h+",left="+w;
	var tools="";
	if (Prototype.Browser.IE && screen.availHeight<=720){
		newWindow = window.open(url,'newWin','fullscreen=yes');
	}else{
		tools = "resizable=no,toolbar=no,location=no,status=no,scrollbars=no,width="+intWidth+",height="+intHeight+str;
		newWindow = window.open(url, 'newWin', tools);
	}
	newWindow.focus();
}

function Full()
{
	var arg1 = 1280;
	var arg2 = 720;
	var arg3 = 'flash.html';

	switch (arguments.length) {
		default:
		case 3: arg3 = arguments[2];
		case 2: arg2 = arguments[1];
		case 1: arg1 = arguments[0];
		case 0:
	}
	
	popUpWin(arg3,arg1,arg2);

}
