var windowObj = 0;

function getFullscreen(full_path) {
	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(full_path,'raku_gaki','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(full_path,'raku_gaki',str);
		tmp.moveTo(0,0);
		tmp.resizeTo(aw,ah);
	}
}

function openMain(){
	if(screen.width <= 1024){
		screen_width = (screen.width - 1000) / 2;
		screen_height = (screen.height - 685) / 2-30;

		window.open('./contents','main','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=1000,height=685,fullscreen=no,left='+screen_width+',top='+screen_height);
	}
	else {
		window.open('./contents','main','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width='+screen.width+',height='+screen.height+',fullscreen=no,left=0,top=0');
	}
}

function new_win(win_path,win_name,win_width,win_height,scrollFlag)
{
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='+scrollFlag+',resizable=no,width='+win_width+',height='+win_height+',fullscreen=no,left='+screen_width+',top='+screen_height);
}

function win_close()
{
self.close();
}