function render_header(imgstr){
	document.writeln("<script type=\"text/javascript\">");
	document.writeln("			function changeImage(imgstr){");
	document.writeln("				$(\"#mainNav ul li img\").each(function(idx,obj){");
	document.writeln("					if(obj.id==imgstr){");
	document.writeln("						obj.src=\"images/\"+imgstr+\"1.jpg\";");
	document.writeln("					}else{");
	document.writeln("						obj.src=\"images/\"+obj.id+\".jpg\";");
	document.writeln("					}						  ");
	document.writeln("				});");
	document.writeln("			}");
	document.writeln(" 			");
	document.writeln("			function mouse_sj(imgobj,imgsrc){");
	document.writeln("				imgobj.src=\"images/\"+imgsrc;");
	document.writeln("			}");
	document.writeln("			");
	document.writeln("			function getCurrentName(){");
	document.writeln("				var curhost=window.location.host;");
	document.writeln("				var cururl=window.location.href;");
	document.writeln("				var param=cururl.split(\"/\");");
	document.writeln("				var curpage=param[param.length-1];");
	document.writeln("				if(cururl.indexOf(\"tech\") == -1){");
	document.writeln("					$(\"#chinapage\").attr(\"href\",curpage);");
	document.writeln("					$(\"#englishpage\").attr(\"href\",\"../\"+curpage);");
	document.writeln("				}else{");
	document.writeln("				    $(\"#chinapage\").attr(\"href\",curpage);");
	document.writeln("				    $(\"#englishpage\").attr(\"href\",\"../tech/\"+curpage);");
	document.writeln("				}");
	document.writeln("			}");
	document.writeln("			if(window.attachEvent){ window.attachEvent(\"onload\", getCurrentName); }");
	document.writeln("			if(window.addEventListener){window.addEventListener(\"load\",getCurrentName,false);}");
	document.writeln("			 ");
	document.writeln("</script>");

	document.writeln("	<div id=\"container\">");
	document.writeln("		<div id=\"zhongyinwen\"><a href=\"#\" id=\"chinapage\">中文<\/a>&nbsp;<span style=\"color: #999999\">|<\/span>&nbsp;<a href=\"#\" id=\"englishpage\">English<\/a><\/div>");
	document.writeln("	    <div id=\"mainNav\" class=\"navMenu\">");
	document.writeln("            <ul>");
	if(imgstr=="home"){
		document.writeln("	                <li><a href=\"index.htm\"><img src=\"images\/home_c2.jpg\" width=\"53\" height=\"26\" id=\"home\" border=\"0\" \/><\/a><\/li>");
	}else{
		document.writeln("	                <li><a href=\"index.htm\"><img src=\"images\/home_c1.jpg\" width=\"53\" height=\"26\" id=\"home\" border=\"0\" onmouseover=\"mouse_sj(this,\'home_c3.jpg\')\" onmouseout=\"mouse_sj(this,\'home_c1.jpg\')\" \/><\/a><\/li>");
	}
	if(imgstr=="tech"){
		document.writeln("	                <li><a href=\"tech\/index.htm\"><img src=\"images\/tech_c2.jpg\" width=\"80\" height=\"26\" id=\"tech\" border=\"0\" \/><\/a><\/li>");
	}else{
		document.writeln("	                <li><a href=\"tech\/index.htm\"><img src=\"images\/tech_c1.jpg\" width=\"80\" height=\"26\" id=\"tech\" border=\"0\" onmouseover=\"mouse_sj(this,\'tech_c3.jpg\')\" onmouseout=\"mouse_sj(this,\'tech_c1.jpg\')\"\/><\/a><\/li>");
	}
	if(imgstr=="service"){
		document.writeln("	                <li><a href=\"production_services.html\"><img src=\"images\/service_c2.jpg\" width=\"80\" height=\"26\" id=\"service\" border=\"0\" \/><\/a><\/li>");
	}else{
		document.writeln("	                <li><a href=\"production_services.html\"><img src=\"images\/service_c1.jpg\" width=\"80\" height=\"26\" id=\"service\" border=\"0\" onmouseover=\"mouse_sj(this,\'service_c3.jpg\')\" onmouseout=\"mouse_sj(this,\'service_c1.jpg\')\"\/><\/a><\/li>");
	}
	if(imgstr=="jobs"){
		document.writeln("                  	<li onmouseover=\"mouse_sj(document.getElementById(\'jobs\'),\'jobs_c3.jpg\')\" onmouseout=\"mouse_sj(document.getElementById(\'jobs\'),\'jobs_c1.jpg\')\"><a href=\"joinus_jobs.html\"><img src=\"images\/jobs_c2.jpg\" width=\"80\" height=\"26\" id=\"jobs\" border=\"0\" \/><\/a>");
	}else{
		document.writeln("	                <li onmouseover=\"mouse_sj(document.getElementById(\'jobs\'),\'jobs_c3.jpg\')\" onmouseout=\"mouse_sj(document.getElementById(\'jobs\'),\'jobs_c1.jpg\')\"><a href=\"joinus_jobs.html\"><img src=\"images\/jobs_c1.jpg\" width=\"80\" height=\"26\" id=\"jobs\" border=\"0\" \/><\/a>");
	}
	document.writeln("						<ul>");
	document.writeln("							<li style='margin-bottom:0px;'><a href=\"joinus_envbenefits.html\"><img src=\"images\/jobs_eb.jpg\" width=\"200\" height=\"27\" border=\"0\" onmouseover=\"mouse_sj(this,\'jobs_eb1.jpg\')\" onmouseout=\"mouse_sj(this,\'jobs_eb.jpg\')\"><\/a><\/li>");
	document.writeln("				    			<li style='margin-bottom:0px;'><a href=\"joinus_jobs.html\"><img src=\"images\/jobs_jo.jpg\" width=\"200\" height=\"27\" border=\"0\" onmouseover=\"mouse_sj(this,\'jobs_jo1.jpg\')\" onmouseout=\"mouse_sj(this,\'jobs_jo.jpg\')\"><\/a><\/li>");
	document.writeln("						<\/ul>");
	document.writeln("					<\/li>");
	if(imgstr=="gywm"){
	    document.writeln("	                <li><a href=\"company.html\"><img src=\"images\/gywm2.jpg\" width=\"80\" height=\"26\" id=\"gywm\" border=\"0\" \/><\/a><\/li>");
	}else{
	    document.writeln("                  <li><a href=\"company.html\"><img src=\"images/gywm1.jpg\" width=\"80\" height=\"26\" id=\"gywm\" onmouseover=\"mouse_sj(this,'gywm3.jpg')\" onmouseout=\"mouse_sj(this,'gywm1.jpg')\" border=\"0\"/></a></li>");    
	}
	if(imgstr=="lxwm"){
	    document.writeln("	                <li><a href=\"company.html#02\"><img src=\"images\/lxwm1.jpg\" width=\"80\" height=\"26\" id=\"lxwm\" border=\"0\" \/><\/a><\/li>");
	}else{
	    document.writeln("                  <li><a href=\"company.html#02\"><img src=\"images/lxwm1.jpg\" width=\"80\" height=\"26\" id=\"lxwm\" onmouseover=\"mouse_sj(this,'lxwm3.jpg')\" onmouseout=\"mouse_sj(this,'lxwm1.jpg')\" border=\"0\"/></a></li>");
	}
	document.writeln("	                <li style=\"float:right;padding-right:2px;\">");
	document.writeln("	                	<form id=\"searchForm\" action=\"http:\/\/www.google.cn\/search\" target=\"_blank\">");
	document.writeln("	                    	<input id=\"searchinput\" type=\"text\" name=\"q\" value=\"\" maxlength=\"10\"\/>");
	document.writeln("	                        <input type=\"image\" src=\"images\/search_bn.jpg\"  align=\"absmiddle\" \/>");
	document.writeln("                    <input name=\"sitesearch\" type=\"hidden\" value=\"http://www.epicgameschina.com/\" />");
	document.writeln("	                    <\/form>");
	document.writeln("	                <\/li>");
	document.writeln("            <\/ul>");
	document.writeln("	    <\/div>");
	document.writeln("		<div id=\"content_epic\">");
	document.writeln("		  <div id=\"content_topimg\"><img src=\"images\/center_bg.jpg\" width=\"980\" height=\"400\" id=\"topimg\"\/><\/div>");
	document.writeln("        <div id=\"content_table\">");
	document.writeln("    <div id=\"logodiv\" onclick=\"window.open('index.htm','','');\">&nbsp;</div>");

}
