// JavaScript Document

var platform;
var browser;
var window_size;

if(navigator.userAgent.indexOf('Win') == -1) {
	platform = 'MAC'; 
} else { 
	platform = 'WIN'; 
} 

if(navigator.appName.indexOf('Netscape') == -1) {
	browser = 'IE'; 
} else { 
	browser = 'NN';
}

var mode;
var w = screen.width - 12;
var h = screen.height - 20;
var file_path = "fullFlash.html"+window.location.search;

/////////


function openWindow(arg){

    mode = arg;
	
	///
	

	if(platform == 'WIN' && browser == 'IE'){
		
		if(mode == 'fullscreen') {	

			///
			//	openCMwin("index");
			///
		h = screen.height - 20;
		w = screen.width;
		NikeGolf=window.open(file_path,"NikeGolf","scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=0,top=0");
		NikeGolf.resizeTo(w,h);
		NikeGolf.focus();
		
		}
		else if (mode == 'pop_up'){
			w = screen.width;
			h = screen.height - 20;
			///
			//	openCMwin("index");
			///
			NikeGolf=window.open(file_path,"NikeGolf","scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=0,top=0");
			NikeGolf.resizeTo(w,h);
			NikeGolf.focus();		
	}
		
	}else if(platform == 'MAC' && browser == 'IE'){

			///
			//	openCMwin("index");
			///
		h = screen.height - 20;
		w = screen.width;
		NikeGolf=window.open(file_path,"NikeGolf","scrollbars=0,resizable=no,location=no,menubar=no,status=no,left=0,top=0");
		NikeGolf.resizeTo(w,h);
		NikeGolf.focus();
	}else if(platform == 'MAC' && browser == 'NN'){
		h = screen.height - 20;
		window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
			///
			//	openCMwin("index");
			///
		NikeGolf=window.open(file_path,"NikeGolf","scrollbars=0,resizable=no,location=no,menubar=no,status=no," + window_size);
		NikeGolf.moveTo(0,0);
		NikeGolf.focus();	
	}else if( platform == 'WIN' && browser == 'NN'){
		window_size = "width=" + w + ",height=" + h +",innerWidth=" + w + ",innerHeight=" + h;
			///
			//	openCMwin("index");
			///

		NikeGolf=window.open(file_path,"NikeGolf","scrollbars=0,resizable=no,location=no,menubar=no,status=no," + window_size);
		NikeGolf.moveTo(0,0);
		NikeGolf.focus();
	}		
}
/* Onen NikeGolf close
function outofHere(){
	//alert("start");
	if(window.cmWin){
	clearTimeout();
	}else{
	if(!NikeGolf.closed){
	//alert("open");
	setTimeout("outofHere();", 60000);
	}else {
	//alert("close");
		url = "close.html"
		cmWin.location=url; 
}
}
}
	setTimeout("outofHere();", 30000);
*/