function doClick_anmaimenu(o){
 o.className="navmenu_on"; 
var j; 
var id; 
var e; 
	for(var i=1;i<=8;i++){
   		id ="anmaimenu"+i; 
  		j = document.getElementById(id);
	   if(id != o.id)
			{j.className="navmenu_off";}

	}
}
function Init_anmaimenu(o){
	for(var i=1;i<=8;i++){
		id ="anmaimenu"+i; 
  		j = document.getElementById(id);
	   if(i == o){
			j.className="navmenu_on";
	   	}
		else{  
			j.className="navmenu_off";
		}
	}
}
function setHomepage()
{
    if (document.all)
    {
        document.body.style.behavior='url(#default#homepage)';
        document.body.setHomePage('http://www.anmai.net/');
    }
    else if (window.sidebar)
    {
        if(window.netscape)
        {
            try
            {
                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
            }
            catch(e)
            {
                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将[signed.applets.codebase_principal_support]设置为'true'");  
            }
         }
         var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components. interfaces.nsIPrefBranch);
         prefs.setCharPref('browser.startup.homepage','http://www.anmai.net/');
     }
}

document.writeln("<LINK rel=stylesheet type=text\/css href=\"menu.css\" \/>");
document.writeln("<DIV id=anmai_header style=\"background-image:url(images\/index_02.jpg)\">");
document.writeln("<DIV id=logo>");
document.writeln("<A href=\"index.htm\" target=_self><img src=\"images\/index_04-new.jpg\" width=\"265\" height=\"77\" border=\"0\" \/><\/A>");
document.writeln("<\/DIV>");
document.writeln("<DIV id=search>");
document.writeln("<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
document.writeln("<FORM name=\"formSear\" action=\"..\/search\/search.asp\" method=\"GET\">");
document.writeln("              <tr>");
document.writeln("                <td width=\"746\" valign=\"top\" align=right style=\"padding:10px 5px 0px 5px;\"><img src=\"images\/index_13.gif\" ><span class=\"font\"><a style=\"cursor:hand;\" onClick=\"setHomepage();\"> 设为首页<\/a><\/span>　<img src=\"images\/gl.gif\" width=\"13\" height=\"13\" \/><a href=\"..\/indexmain.htm\">教学交流<\/a>　<img src=\"images\/person.gif\" width=\"13\" height=\"13\"\/><span class=\"font\"><a href=\"..\/search\/messageboard.asp\">互动交流<\/a><\/span>　<\/td>");
document.writeln("                <td width=\"127\" style=\"padding-top:10px;\">");
document.writeln("<INPUT name=searWords size=16 title=\"文章搜索\" value=文章搜索 style=color:#999 onFocus=\"if(this.value==\'文章搜索\'){this.value=\'\';this.style.color=\'#000\';}\" onBlur=\"if(this.value==\'\'){this.value=\'文章搜索\';this.style.color=\'#999\';}\"><\/td>");
document.writeln("<td width=\"86\" style=\"padding-top:8px;\"><INPUT name=Send type=image title=\"文章搜索\" src=\"images\/index_07.jpg\" onClick=\"if(searWords.value==\'文章搜索\'){searWords.value=\'\';}formSear.submit();\"><\/td>");
document.writeln("              <\/tr>");
document.writeln("<\/FORM>");
document.writeln("    <\/table>");
document.writeln("<\/DIV>");
document.writeln("		<DIV id=navmenu>");
document.writeln("		<UL>");
document.writeln("		  <LI><SPAN id=\"anmaimenu1\" class=navmenu_off onmouseover=doClick_anmaimenu(this);><A href=\"index.htm\" target=_self>首 页<\/A><\/SPAN> ");
document.writeln("		  <\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu2\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"product.htm\" target=_self>解决方案<\/A><\/SPAN><\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu3\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"loaddown.htm\" target=_self>软件下载<\/A><\/SPAN> <\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu4\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"market.htm\" target=_self>市场合作<\/A><\/SPAN> <\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu5\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"server.htm\" target=_self>服务支持<\/A><\/SPAN> <\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu6\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"case.htm\" target=_self>成功案例<\/A><\/SPAN> <\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu7\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"pass.htm\">诚聘英才<\/A><\/SPAN> <\/LI>");
document.writeln("		  <LI><SPAN id=\"anmaimenu8\" class=navmenu_off onmouseover=doClick_anmaimenu(this)><A href=\"project.htm\">联系我们<\/A><\/SPAN> <\/LI>");
document.writeln("		  <\/UL>");
document.writeln("		<\/DIV>");
document.writeln("");
document.writeln("<\/DIV>");
Init_anmaimenu(1);
document.writeln("");
document.writeln("<table width=\"960\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
document.writeln("  <tr>");
document.writeln("    <td style=\"padding-top:5px;\"><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=7,0,19,0\" width=\"960\" height=\"220\">");
document.writeln("      <param name=\"movie\" value=\"Flash\/banner-main.swf\" \/>");
document.writeln("      <param name=\"quality\" value=\"high\" \/>");
document.writeln("      <embed src=\"Flash\/banner-main.swf\" quality=\"high\" pluginspage=\"http:\/\/www.macromedia.com\/go\/getflashplayer\" type=\"application\/x-shockwave-flash\" width=\"960\" height=\"210\"><\/embed>");
document.writeln("    <\/object>");
document.writeln("    <\/td>");
document.writeln("  <\/tr>");
document.writeln("<\/table>")
