////////////////////////
//FULL BROWSER WINDOW
////////////////////////

function fullWindow(windowUrl) {
	var newWindowName="mainwindow";
	//
	var agnt = navigator.userAgent.toLowerCase();
	var theVersion = parseFloat(navigator.appVersion);
	var isOpera = (navigator.appName=="Opera") ? 1:0
	var ie = (document.all && !isOpera) ? 1:0
	var ie4 = (navigator.userAgent.indexOf("MSIE 4")>-1) ? 1:0
	var ns4 = (navigator.appName=="Netscape" && theVersion<5) ? 1:0;
	var ns6 = document.getElementById && !document.all;
	var isWin = ((navigator.appVersion.indexOf('Windows')!=-1) && (navigator.appVersion.indexOf('3.1')==-1));
	var isNs = (ns4 || ns6);
	var isMac = (navigator.appVersion.indexOf('Mac') != -1);
	var isW3C = (document.getElementById && !ie) ? 1:0
	var havePluginJsSupport = ((ie && isWin) || ns4);

	var width, height,x,y;
	width = (screen.availWidth?screen.availWidth:800) -10;
	height= (screen.availHeight?screen.availHeight:600) - 28;
	x=0;
	y=0;
	if(isMac){
		if(isNs){
			height +=40;
			//height=screen.height-45
			width += 10;
		}else{
			width += 10;
			height += 6;
		}
	}else{
		x=-1;
		y=-3;
		if(ns6){
			width +=4;
			height +=2;
		}
	}
	
	fullWin = window.open(windowUrl,newWindowName,"left="+x+"0,top="+y+",width=" + width + ",height=" + height + ",fullscreen=no,scrollbars=no,resizable=yes,menubar=no,toolbar=no");
	fullWin.moveTo(x,y);
	if(fullWin && isMac && fullWin.moveTo && fullWin.resizeTo){
		fullWin.moveTo(x,y);
		fullWin.resizeTo(width,height);
		fullWin.focus();
	}
		//self.location = "newlocation";
}