var windowObj = 0;

function getFullscreen() {
	windowObj=1;
	var isWin=(navigator.appVersion.indexOf("Win")!=-1)? true : false;
	var isIE=(navigator.appVersion.indexOf("MSIE")!=-1)? true : false;
	if(isWin&&isIE){
		window.open('./swf/main_index.html','inspirationscene','fullscreen=yes');
	}else{
		var str="left=0,screenX=0,top=0,screenY=0";
		if(window.screen){
			var ah=screen.availHeight;
			var aw=screen.availWidth;
			str+=",height="+ah;
			str+=",width="+aw;
		}
		var tmp=window.open('./swf/main_index.html','inspirationscene',str);
		tmp.moveTo(0,0);
		tmp.resizeTo(aw,ah);
	}
}


function open_flapper(win_path,win_name,win_width,win_height)
{
screen_width = (screen.width - win_width) / 2;
screen_height = (screen.height - win_height) / 2-30;

  window.open(win_path,win_name,'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+win_width+',height='+win_height+',fullscreen=no,left='+screen_width+',top='+screen_height);
}
