function render_header(imgstring){
	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("			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\",\"cn/\"+curpage);");
	document.writeln("					$(\"#englishpage\").attr(\"href\",curpage);");
	document.writeln("				}else{");
	document.writeln("				    $(\"#chinapage\").attr(\"href\",\"cn/tech/\"+curpage);");
	document.writeln("				    $(\"#englishpage\").attr(\"href\",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(imgstring=="home"){
		document.writeln("                <li><a href=\"index.htm\"><img src=\"images/home1.jpg\" width=\"53\" height=\"27\" id=\"home\" border=\"0\"/></a></li>");
	}else{
		document.writeln("                <li><a href=\"index.htm\"><img src=\"images/home.jpg\" width=\"53\" height=\"27\" id=\"home\" border=\"0\" onmouseover=\"mouse_sj(this,'home2.jpg')\" onmouseout=\"mouse_sj(this,'home.jpg')\"/></a></li>");
	}
	
	if(imgstring=="tech"){
		document.writeln("                <li><a href=\"tech/index.htm\"><img src=\"images/tech1.jpg\" width=\"93\" height=\"27\" id=\"tech\" border=\"0\"/></a></li>");	
	}else{
		document.writeln("                <li><a href=\"tech/index.htm\"><img src=\"images/tech.jpg\" width=\"93\" height=\"27\" id=\"tech\" border=\"0\" onmouseover=\"mouse_sj(this,'tech2.jpg')\" onmouseout=\"mouse_sj(this,'tech.jpg')\"/></a></li>");
	}
	
	if(imgstring=="service"){
		document.writeln("                <li><a href=\"production_services.html\"><img src=\"images/service1.jpg\" width=\"141\" height=\"27\" id=\"service\" border=\"0\"/></a></li>");
	}else{
		document.writeln("                <li><a href=\"production_services.html\"><img src=\"images/service.jpg\" width=\"141\" height=\"27\" id=\"service\" border=\"0\" onmouseover=\"mouse_sj(this,'service2.jpg')\" onmouseout=\"mouse_sj(this,'service.jpg')\"/></a></li>");
	}
	
	if(imgstring=="jobs"){
		document.writeln("                <li onmouseover=\"mouse_sj(document.getElementById('jobs'),'jobs3.jpg')\" onmouseout=\"mouse_sj(document.getElementById('jobs'),'jobs31.jpg')\"><a href=\"joinus_jobs.html\"><img src=\"images/jobs1.jpg\" width=\"46\" height=\"27\" id=\"jobs\" border=\"0\"/></a>");
	}else{
	    	document.writeln("                <li onmouseover=\"mouse_sj(document.getElementById('jobs'),'jobs3.jpg')\" onmouseout=\"mouse_sj(document.getElementById('jobs'),'jobs31.jpg')\"><a href=\"joinus_jobs.html\"><img src=\"images/jobs31.jpg\" width=\"46\" height=\"27\" id=\"jobs\" border=\"0\"/></a>");
	}
	document.writeln("				<ul>");
	document.writeln("		  			<li style='margin-bottom:0px;_margin-top:-6px;'><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')\" border=\"0\"></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')\" border=\"0\"></a></li>");
	document.writeln("				</ul>");
	document.writeln("			  </li>");
	
	if(imgstring=="about"){
	    document.writeln("                <li><a href=\"company.html\"><img src=\"images/about1.jpg\" width=\"56\" height=\"27\" id=\"about\" border=\"0\"/></a></li>");
	}else{
	    document.writeln("                <li><a href=\"company.html\"><img src=\"images/about.jpg\" width=\"56\" height=\"27\" id=\"about\" border=\"0\" onmouseover=\"mouse_sj(this,'about2.jpg')\" onmouseout=\"mouse_sj(this,'about.jpg')\"/></a></li>");
	}
	
	if(imgstring=="contact"){
	    document.writeln("                <li><a href=\"company.html#02\"><img src=\"images/contact1.jpg\" width=\"69\" height=\"27\" id=\"contact\" border=\"0\"/></a></li>");
	}else{
	    document.writeln("                <li><a href=\"company.html#02\"><img src=\"images/contact.jpg\" width=\"69\" height=\"27\" id=\"contact\" border=\"0\" onmouseover=\"mouse_sj(this,'contact2.jpg')\" onmouseout=\"mouse_sj(this,'contact.jpg')\"/></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_top1.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>");
}
