function TopMenu(str){
	if(str=="1_1"){
	location.href="about_greet.htm?pageNum=a1&subNum=b1";
	}else if(str=="1_2"){
	location.href="about_step.htm?pageNum=a1&subNum=b2";
	}else if(str=="1_3"){
	location.href="about_equip.htm?pageNum=a1&subNum=b3";
	}else if(str=="1_4"){
	location.href="about_mu.htm?pageNum=a1&subNum=b4";
	}else if(str=="1_5"){
	location.href="about_map.htm?pageNum=a1&subNum=b5";
	}else if(str=="2_1"){
	location.href="nature_1.htm?pageNum=a2&subNum=b1";
	}else if(str=="2_2"){
	location.href="nature_2.htm?pageNum=a2&subNum=b2";
	}else if(str=="2_3"){
	location.href="nature_3.htm?pageNum=a2&subNum=b3";
	}else if(str=="2_4"){
	location.href="nature_4.htm?pageNum=a2&subNum=b4";
	}else if(str=="2_5"){
	location.href="nature_5.htm?pageNum=a2&subNum=b5";
	}else if(str=="3_1"){
	location.href="drg_1.htm?pageNum=a3&subNum=b1";
	}else if(str=="3_2"){
	location.href="drg_2.htm?pageNum=a3&subNum=b2";
	}else if(str=="3_3"){
	location.href="drg_3.htm?pageNum=a3&subNum=b3";
	}else if(str=="3_4"){
	location.href="drg_4.htm?pageNum=a3&subNum=b4";
	}else if(str=="3_5"){
	location.href="drg_5.htm?pageNum=a3&subNum=b5";
	}else if(str=="3_6"){
	location.href="drg_6.htm?pageNum=a3&subNum=b6";
	}else if(str=="4_1"){
	location.href="can_1.htm?pageNum=a4&subNum=b1";
	}else if(str=="4_2"){
	location.href="can_2.htm?pageNum=a4&subNum=b2";
	}else if(str=="5_1"){
	location.href="exam.htm?pageNum=a5&subNum=b1";
	}else if(str=="5_2"){
	location.href="position.htm?pageNum=a5&subNum=b2";
	}else if(str=="6_1"){
	location.href="repl_1.htm?pageNum=a6&subNum=b1";
	}else if(str=="6_2"){
	location.href="repl_2.htm?pageNum=a6&subNum=b2";
	}else if(str=="6_3"){
	location.href="repl_3.htm?pageNum=a6&subNum=b3";
	}else if(str=="6_4"){
	location.href="repl_4.htm?pageNum=a6&subNum=b4";
	}else if(str=="7_1"){
	location.href="photo.htm?pageNum=a7&subNum=b1&cate=1";
	}else if(str=="7_2"){
	location.href="photo.htm?pageNum=a7&subNum=b2&cate=2";
	}else if(str=="7_3"){
	location.href="photo.htm?pageNum=a7&subNum=b3&cate=3";
	}else if(str=="7_4"){
	location.href="photo.htm?pageNum=a7&subNum=b4&cate=4";
	}else if(str=="8_1"){
	location.href="yso_1.htm?pageNum=a8&subNum=b1";
	}else if(str=="8_2"){
	location.href="yso_2.htm?pageNum=a8&subNum=b2";
	}else if(str=="8_3"){
	location.href="yso_3.htm?pageNum=a8&subNum=b3";
	}else if(str=="9_1"){
	location.href="newstart.htm?pageNum=a9";
	}else if(str=="10_3"){
	location.href="board.htm?pageNum=a10&subNum=b3&board=1";
	}else if(str=="10_2"){
	location.href="board.htm?pageNum=a10&subNum=b2&board=2";
	}else if(str=="10_1"){
	location.href="board.htm?pageNum=a10&subNum=b1&board=4";
	}
}


function setEmbed(){
	var obj = new String;
	var parameter = new String;
	var embed = new String;
	var html = new String;
	var allParameter = new String;
	var clsid = new String;
	var codebase = new String;
	var pluginspace = new String;
	var embedType = new String;
	var src = new String;
	var width = new String;
	var height = new String;

	this.init = function( getType , s ,w , h ){
		if( getType == "flash"){
			clsid = "D27CDB6E-AE6D-11cf-96B8-444553540000";
			codebase = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0";
			pluginspage = "http://www.macromedia.com/go/getflashplayer";
			embedType = "application/x-shockwave-flash";
		}
		parameter += "<param name='movie' value='"+ s + "'>\n"; 
		parameter += "<param name='quality' value='high'>\n";
		src = s;
		width = w;
		height = h;
	}

	this.parameter = function( parm , value ){
		parameter += "<param name='"+parm +"' value='"+ value + "'>\n";
		allParameter += " "+parm + "='"+ value+"'";
	}

	this.show = function(){
		if(clsid) obj = "<object classid=\"clsid:"+ clsid +"\" codebase=\""+ codebase +"\" width='"+ width +"' height='"+ height +"'>\n";
		embed = "<embed src='" + src + "' pluginspage='"+ pluginspage + "' type='"+ embedType + "' width='"+ width + "' height='"+ height +"'"+ allParameter +" ></embed>\n";
		if(obj){embed += "</object>\n";}
		html = obj + parameter + embed; 
		document.write(html);
	}
}
