// JavaScript Documentvar ms = navigator.appVersion.indexOf("MSIE");var ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)var nesc = navigator.appName.lastIndexOf("Netscape"); var nesc4 = (nesc >= 0) && (parseInt(navigator.appVersion.substring(0,2)) >= 4);function closeWindow() {	window.close();}function contents_DoFSCommand(command,args) {if (command == "openMain") {	fullscreen('main/index.html',"kbmain");} else {	if (command == "openEigafan") {		var newWin = window.open('http://www.eigafan.com',"_blank");	} else if (command == "openMagazine") {		var newWin = window.open('magazine/index.html',"kbmagazine","width=620,height=620,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openMagazine2") {		var newWin = window.open('../magazine/index.html',"kbmagazine","width=620,height=620,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openTicket") {		var newWin = window.open('../ticket-info/index.html',"kbticket","width=640,height=750,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openNews") {		var newWin = window.open('http://blog.eigafan.com/koibake/',"kbnews","width=620,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openTheater") {		var newWin = window.open('../theater-info/index.html',"kbtheater","width=620,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openComments") {		var newWin = window.open('comments/index.html',"kbcomments","width=620,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openCommentsJ") {		var newWin = window.open('comments/indexj.html',"kbcommentsj","width=620,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openCommentsW") {		var newWin = window.open('comments/indexw.html',"kbcommentsw","width=620,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openYch") {		var newWin = window.open('http://ch.yahoo.co.jp/koibake/',"kbych");	} else if (command == "openYchie") {		var newWin = window.open('http://my.chiebukuro.yahoo.co.jp/my/myspace.php?writer=yc_koisuru_bakery',"kbychie");	} else if (command == "openBP") {		var newWin = window.open('http://blogparts.eigafan.com/koibake/share/',"kbbp","width=620,height=700,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} else if (command == "openSPP") {		var newWin = window.open('sp-program/index.html',"kbspp","width=640,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	} 	newWin.focus();}}function openTicketInfo() {	var newWin = window.open('ticket-info.html',"kbticketinfo","width=620,height=1000,location=no,directories=no,status=no,scrollbars=yes,resizable=yes");	newWin.focus();}function MM_callJS(jsStr) { //v2.0  return eval(jsStr)}function fullscreen(src, wname){	if (nesc4){    	newwindow = window.open(src,wname,"resizable=yes, scrollbars=yes,width=" + window.screen.width + ",height=" + window.screen.height);		newwindow.moveTo(0,0);		newwindow.focus();	}else if (ie4){		newwindow = window.open(src,wname,"resizable=yes, scrollbars=yes,width=" + window.screen.width + ",height=" + window.screen.height);		newwindow.moveTo(0,0);		newwindow.focus();	}else{	    newwindow = window.open(src,wname,"resizable=yes, scrollbars=yes,width=" + window.screen.width + ",height=" + window.screen.height);		newwindow.moveTo(0,0);		newwindow.focus();	}}