// ©Ò¦³¹Ï¤ù¿ï³æªº MAP ³¡¥÷


// MAP «Å§i³¡¥÷¡]©Ò¦³ÅÜ¼Æ³£¦b³oùØ§ï¡^
			
MapAreaStart		= "<area shape=rect coords=";
MapAreaLeftmenuSquare	= "<area shape=rect coords=\"  4, 6, 21, 23\"";
MapAreaLeftmenuDistrict	= "<area shape=rect coords=\" 24, 6, 81, 23\"";
MapArea050101		= "<area shape=rect coords=\"  3, 3,120, 42\"";
MapArea050102		= "<area shape=rect coords=\"123, 3,240, 42\"";
MapArea050103		= "<area shape=rect coords=\"243, 3,360, 42\"";
MapArea050104		= "<area shape=rect coords=\"363, 3,480, 42\"";
MapArea050105		= "<area shape=rect coords=\"483, 3,600, 42\"";
			
Targetcjokemenu		= " target=cjoke_menu>";
TargetcjokemenuEnd	= " target=cjoke_menu><area shape=\"default\" nohref></map>";
TargetBlank		= " target=_blank>";
TargetBlankEnd		= " target=_blank><area shape=\"default\" nohref></map>";
TargetNo		= " >";
TargetNoEnd		= " ><area shape=\"default\" nohref></map>";
ReturnLast		= "alt=¦^¤W¤@­¶	href=\"javascript:history.go(-1)\"";
			
			
// MAP °õ¦æ³¡¥÷		
			
document.write('<map name=picmenu_game1m>												');
document.write('' + MapArea050101 + ' alt="§ó·s°O¿ý"		href="update.html"					' + TargetNo + '');
document.write('' + MapArea050102 + ' alt="¹CÀ¸¹wÄý"		href="pv.html"						' + TargetNo + '');
document.write('' + MapArea050103 + ' alt="¹CÀ¸¤U¸ü"		href="dl.html"						' + TargetNo + '');
document.write('' + MapArea050104 + ' alt="¹CÀ¸¤u¨ã"		href="game1mt.html"					' + TargetNo + '');
document.write('' + MapArea050105 + ReturnLast + TargetNoEnd + '									');
document.write('<map name=picmenu_gb>													');
document.write('' + MapArea050101 + ' alt="§Ú­n¯d¨¥"		href="/zhtml/gb_rule.html"				' + TargetNo + '');
document.write('' + MapArea050102 + ' alt="Æ[¬Ý¯d¨¥"		href="http://www.victortong.com/cgi-bin/gb/view.cgi"	' + TargetNo + '');
document.write('' + MapArea050103 + ' alt="­±³¡ªí±¡¹wÄý"	href="/zhtml/gb_pic_pv.html"				' + TargetNo + '');
document.write('' + MapArea050105 + ReturnLast + TargetNoEnd + '');


// JavaScript ³¡¥÷

// ¦^³Ì³»®Éªº¦ì¸m
document.write('<a name=top></a>');

function help(message)
	{
		alert(message);
		return;
	}

function newwin(FileName)
	{window.open(FileName,"_blank",",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");}
	
function newwinvar(FileName,newWidth,newHeight)
	{window.open(FileName,"_blank","width=" + newWidth + ",height=" + newHeight + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1");}
	
function download(Class,FileName,DLMethod)
	{
	cgiUrlRoot	= "http://www.victortong.com/cgi-bin/dlcount/"
	cgiUrlEnd	= ".cgi?file="
			
	// ¦Û°ÊÀË¬d¤U¸ü¤ÀÃþ¡]Class¡^				
		if	(Class == "game1m")		Class		= "game1m"
		else if (Class == "game1mt")		Class		= "game1mt"
		else if (Class == "game2o")		Class		= "game2o"
		else if (Class == "sw")			Class		= "sw"
		else if (Class == "joke")		Class		= "joke"
		else if (Class == "jokehtml")		Class		= "jokehtml"
		else if (Class == "pc")			Class		= "pc"
		else if (Class == "zhtml")		Class		= "zhtml"
		else					Class		= "Error"
							
	// ¦Û°ÊÀË¬d¤U¸ü¤è¦¡¡]DLMethod¡^				
		if	(DLMethod == "file")		DLMethod	= "file"
		else if (DLMethod == "win")		DLMethod	= "win"
		else if (DLMethod == "win550400")	DLMethod	= "win550400"
		else					DLMethod	= "Error"
							
	// ¦^À³ÂsÄý¾¹ CGI ¦ì¸m¡AÂsÄý¾¹¦A¦V CGI ®³¨ú§¹¾ãÀÉ®×¦ì¸m
		errorJS		= cgiUrlRoot + "error"	+ cgiUrlEnd + "javascript.html"
		cgiDownload	= cgiUrlRoot + Class	+ cgiUrlEnd + FileName
							
	// °õ¦æ¡AÀË¬d¥Î¨º­Ó¤è¦¡¤U¸ü¡A¬OÀÉ®×¤U¸ü¡AÁÙ¬O¶}·sµøµ¡¡A¦p¬OÀË»~·|¦Û°Ê¨ì¿ù»~­¶
		if	(Class		== "Error")	window.location = errorJS
		else if (FileName	== "Error")	window.location = errorJS
		else if (DLMethod	== "Error")	window.location = errorJS
							
		else if (DLMethod	== "file")	window.location = cgiDownload
		else if (DLMethod	== "win")	window.open(cgiDownload,"_blank","width=640,height=480,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1")
		else if (DLMethod	== "win550400")	window.open(cgiDownload,"_blank","width=550,height=400,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0")
		else					window.location = errorJS
							
	}