// openFullscreen
// Opens a window fullscreen
function openFullscreen (page) {

	
	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){
		
			window.location = URLen
		
			/*
			if ((window.screen.availWidth>1280) && (window.screen.availHeight>800))
			{		
				win = window.open(URLen,windowName,'titlebar=no,status=0,top=0,left=0,width=' + window.screen.availWidth + ',height=' + window.screen.availHeight + ',screenX=0,screenY=0,top=0,left=0')
				
			}else{
	
				
				
				 window.location = URLen
			}*/
			
			
		}
	
		// MSIE Mac
		else if (browserName.indexOf("Microsoft Internet Explorer") != -1 && operatingSystem.indexOf("Mac") != -1){
			
			window.location = URLen
		/*
			if ((window.screen.availWidth>1280) && (window.screen.availHeight>800))
			{
				win = window.open(URLen,windowName,'titlebar=no,status=no,top=0,left=0,width=' + window.screen.availWidth + ',height=' + window.screen.availHeight + ',screenX=0,screenY=0,top=0,left=0')
				
			}else{
	
				window.location = URLen
			}
		*/	
		}
			
		// Netscape Mac
		else if (browserName.indexOf("Netscape") != -1 && operatingSystem.indexOf("Mac") != -1){
		
			window.location = URLen
		/*
			if ((screen.width>1280) && (screen.height>800))
			{
				win = window.open(URLen,windowName,'width=' + screen.width + ',height=' + screen.height + ',top=0,left=0,status=0');
			
			}else{
			
				window.location = URLen
			
			}
		*/
		}
	
		// MSIE Windows
		else if (browserName.indexOf("Microsoft Internet Explorer") != -1 && operatingSystem.indexOf("Win") != -1) {
		
			window.location = URLen
		/*
			if ((screen.width>1280) && (screen.height>800))
			{
				win = window.open(URLen,windowName,'titlebar=0,toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,top=0,left=0,width=' + window.screen.availWidth + ',height=' + window.screen.availHeight + ',screenX=0,screenY=0,top=0,left=0')
				win.resizeTo(screen.width, screen.height);
				
			}else{
			
				window.location = URLen
			}
		*/	
		}
	
		// Netscape Windows
		else if (browserName.indexOf("Netscape") != -1 && operatingSystem.indexOf("Win") != -1){
			
			window.location = URLen
		/*
			if ((screen.width>1280) && (screen.height>800))
			{
				win = window.open(URLen,windowName,'width=' + screen.width + ',height=' + screen.height + ',top=0,left=0,status=0');
				
			}else{
			
				window.location = URLen
			}
		*/
			
		}
	
		else if (browserName.indexOf("Opera") != -1 && operatingSystem.indexOf("Win") != -1) {
			
			
			
				var aw = 1200;
				var ah = 800;
				
				var hx = screen.width/2 - 600
				
				
				newwindow=window.open(URLen,windowName,'width='+aw+',height='+ah+',top=0,left='+hx);
				
				if (window.focus) {newwindow.focus()}
				return false;
		
			
			
		}
	
		else win = window.open(URLen,windowName);
		
		
	
	
	win.focus();
}

// openLink
// Opens a link to the defencejobs page
function openLink (url) {
	window.open(url);
}

function hide() {
	window.close();
}