var platform;
var browser;
var window_size;

var mode;
var wx = screen.width - 12;
var wy = screen.height - 31;

if(navigator.userAgent.indexOf('Win') == -1) {
	platform = 'MAC'; 
} else { 
	platform = 'WIN'; 
} 

if(navigator.appName.indexOf('Netscape') == -1) {
	browser = 'IE'; 
} else { 
	browser = 'NN';
}




function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function winfullScreen(){
if (platform == 'WIN' && browser == 'IE') {
	wx = screen.width-12;
	wy = screen.height - 61;
	window.open("http://www.flagsweb.jp/flagsflip/index.html","ubume","toolbar=no,scrollbars=no,resizable=yes,menubar=no,location=no,status=no,directories=no,left=0,top=0,width="+wx+",height="+wy);
	}
else if(platform == 'MAC' && browser == 'IE') {
	wx = screen.width;
	wy = screen.height - 35;
	window.open("http://www.flagsweb.jp/flagsflip/index.html","ubume","toolbar=no,scrollbars=no,resizable=yes,menubar=no,location=no,status=no,directories=no,left=0,top=0,width="+wx+",height="+wy);
	}
else if(platform == 'MAC' && browser == 'NN') {
	wy = screen.height - 54;
	window.open("http://www.flagsweb.jp/flagsflip/index.html","ubume","toolbar=no,scrollbars=no,resizable=yes,menubar=no,location=no,status=no,directories=no,left=0,top=0,width="+wx+",height="+wy);
	}
else if(platform == 'WIN' && browser == 'NN') {
	window.open("http://www.flagsweb.jp/flagsflip/index.html","ubume","toolbar=no,scrollbars=no,resizable=yes,menubar=no,location=no,status=no,directories=no,left=0,top=0,width="+wx+",height="+wy);
	}
}

