// openFullscreen
// Opens a window fullscreen
function openFullscreen (page,w,h) {
	var URLen = page;
	var windowName = "windowFlash";
	var browserName = navigator.appName;
	var operatingSystem = navigator.platform;
	var version = parseFloat(navigator.appVersion);
	var win;

	// Netscape version 4.0+ on Win
	if (browserName.indexOf("Netscape") != -1 && version >= 4.0 && operatingSystem.indexOf("Mac") != -1)
		win = window.open(URLen,windowName,'titlebar=no,status=0,top=0,left=0,width=' + w + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0')

	// MSIE Mac
	else if (browserName.indexOf("Microsoft Internet Explorer") != -1 && operatingSystem.indexOf("Mac") != -1)
		win = window.open(URLen,windowName,'titlebar=no,status=no,top=0,left=0,width=' + w + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0')
		
	// Netscape Mac
	else if (browserName.indexOf("Netscape") != -1 && operatingSystem.indexOf("Mac") != -1)
		win = window.open(URLen,windowName,'width=' + w + ',height=' + h + ',top=0,left=0,status=0');

	// MSIE Windows
	else if (browserName.indexOf("Microsoft Internet Explorer") != -1 && operatingSystem.indexOf("Win") != -1) {
		win = window.open(URLen,windowName,'titlebar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,top=0,left=0,width=' + w + ',height=' + h + ',screenX=0,screenY=0,top=0,left=0')
	}

	// Netscape Windows
	else if (browserName.indexOf("Netscape") != -1 && operatingSystem.indexOf("Win") != -1)
		win = window.open(URLen,windowName,'width=' + w + ',height=' + h + ',top=0,left=0,status=0');

	else win = window.open(URLen,windowName);
	
	win.resizeTo(w, h);
	win.moveTo(screen.width/2 - 512 , screen.height/2-318);
	win.focus();
}

// openLink
// Opens a link to the defencejobs page
function openLink (url) {
	window.open(url);
}

function hide() {
	window.close();
}
