function fullScreen(vers, isWindowClose){

	var ngtrAppVer = navigator.appVersion;

	var ngtrAppNM  = navigator.appName;

	var ngtrPos    = ngtrAppVer.indexOf("MSIE",0);


	initPage = "main.html";		//to page


	if(ngtrAppVer.indexOf("Win")>=0){ //for Windows

		if(ngtrAppNM.indexOf("Microsoft")>=0){ //IE

			if (ngtrAppNM == "Microsoft Internet Explorer" && parseInt(ngtrAppVer)>=4){ //IE4-

				if(parseInt(ngtrAppVer.slice(ngtrPos+5,ngtrPos+6))>=6){

					if(parseInt(ngtrAppVer.indexOf("Windows NT 5.1",0)) > 0){ //WinXP

						fullWindow = window.open(initPage ,"full","width=" + (screen.availWidth) + ",height=" + (screen.availHeight-31) + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");

						fullWindow.moveTo(-5,0);

						if(isWindowClose==true){

							window.close();

						}

						fullWindow.focus();

					}else{ //Not WinXP

						fullWindow = window.open(initPage ,"full","width=" + (screen.availWidth) + ",height=" + (screen.availHeight-23) + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");

						fullWindow.moveTo(-5,0);

						if(isWindowClose==true){

							window.close();

						}

						fullWindow.focus();

					}

				}else{

					fullWindow = window.open("" ,"full","fullscreen=1,width=" + (screen.availWidth+3) + ",height=" + (screen.availHeight+1) + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1");

					fullWindow.resizeTo(Math.ceil(screen.availWidth+3),Math.ceil(screen.availHeight+1));

					fullWindow.moveTo(0,0);

					fullWindow.document.open("text/html", "replace");

					fullWindow.document.write("<html><style type='text/css'>\n");

					fullWindow.document.write("body{ border: 1px solid #000000; overflow: hidden; margin: 0pt;}");

					fullWindow.document.write("#stillloadingDiv{ position: absolute; left: 0px; top: 0px; width: 100%px; height: 19px; z-index: 1; background-color: #000000; layer-background-color: #000000; clip:rect(0,100%,19,0);}");

					fullWindow.document.write("</style>\n");

					fullWindow.document.write("<body onload=\"top.document.location.replace('"+initPage+"')\" topmargin=0 leftmargin=0 marginwidth=0 marginheight=0 scroll='no'>");

					fullWindow.document.write("<div ID='stillloadingDiv'></div>");

					fullWindow.document.write("</body></html>");

					fullWindow.document.close();

					if(isWindowClose==true){

						window.close();

					}

					fullWindow.focus();

				}

			}else{ //under IE4

				fullWindow = window.open(initPage,"full","width=" + (screen.availWidth+1) + ",height=" + (screen.availHeight-21) + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,left=0,top=0,screenX=0,screenY=0",true);

				if(isWindowClose==true){

					window.close();

				}

			}

		}else if(ngtrAppNM.indexOf("Netscape")>=0){ //NN

			fullWindow = window.open("","full","scrollbars=0,resizable=1,outerWidth=" + screen.availWidth +",outerheight=" + screen.availHeight +",top=0,left=0");

			fullWindow.moveBy(0,-10);

			fullWindow.location.href = initPage;

			if(isWindowClose==true){

				window.close();

			}

		}else{ //other

			window.open(initPage,"screen","fullscreen=yes");
			//alert("ご利用のブラウザでは、ご覧いただけません。");

		}

	}else if(ngtrAppVer.indexOf("Mac")>=0){ //for Mac

		if(ngtrAppVer.indexOf("Safari")>=0){ //Safari

			fullWindow=window.open("","full","scrollbars=0,resizable=1,width=" + (screen.availWidth) +",height=" + (screen.availHeight-20));

			fullWindow.moveTo(0,0);

			fullWindow.location.href=initPage;

			if(isWindowClose==true){

				window.close();

			}

		}else{

			if(ngtrAppNM.indexOf("Microsoft")>=0){ //IE

				fullWindow = window.open(initPage,"full","alwaysLowered=0,alwaysRaised=0,channelmode=0,dependent=1,directories=0,fullscreen=1,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=0,status=0,titlebar=0,toolbar=0,z-lock=0,screenX=0,screeny=0,left=0,top=0");

				fullWindow.resizeTo(screen.availWidth,screen.availHeight);

				if(isWindowClose==true){

					window.close();

				}

			}else if(ngtrAppNM.indexOf("Netscape")>=0){ //NN

				fullWindow=window.open("","full","scrollbars=0,resizable=1,width=" + (screen.availWidth-12) +",height=" + (screen.availHeight-30));

				fullWindow.moveTo(0,0);

				fullWindow.location.href=initPage;

				if(isWindowClose==true){

					window.close();

				}

			}else{ //other

				window.open(initPage,"screen","fullscreen=yes");
				//alert("ご利用のブラウザでは、ご覧いただけません。");

			}

		}

	}else{

		alert("ご利用のブラウザでは、ご覧いただけません。");

	}

}