﻿var RootURL="http://"+window.location.host+"/";
document.writeln("<div class='top'>");
document.writeln("<div>");

document.writeln("<div class='headlogo'><div class='logo'></div><div class='banner'></div></div>");


document.writeln("						 <div class='top_4'>");
document.writeln("						 <div class='top_4_1'></div>");
document.writeln("						 <div class='top_4_2'>");
document.writeln("						 <div class='top_dh'>");
document.writeln("						 <ul>");
document.writeln("						 <li><a href='"+RootURL+"' onFocus='this.blur();'>官网首页&nbsp;</a></li>");
document.writeln("						 <li class='top_dhg'> </li>");
document.writeln("						<li><a href='"+RootURL+"List_news.aspx' onFocus='this.blur();'> &nbsp;新闻公告&nbsp;</a></li>");
document.writeln("						<li class='top_dhg'> </li>");
document.writeln("						<li><a href='"+RootURL+"pay/index.aspx' onFocus='this.blur();'> &nbsp;充值专区&nbsp;</a></li>");
document.writeln("						<li class='top_dhg'> </li>");
document.writeln("						<li><a href='"+RootURL+"rule/index.htm' onFocus='this.blur();'> &nbsp;游戏帮助&nbsp;</a></li>");
document.writeln("						<li class='top_dhg'> </li>");
document.writeln("						<li><a href='http://pk.58h.com/Matchinfo.htm' onFocus='this.blur();'> &nbsp;赛况查询&nbsp;</a></li>");
document.writeln("						<li class='top_dhg'> </li>");
document.writeln("						<li><a href='"+RootURL+"user/login.aspx' onFocus='this.blur();'> &nbsp;账号管理&nbsp;</a></li>");
document.writeln("						<li class='top_dhg'> </li>");
document.writeln("						<li><a href='"+RootURL+"Download.html' onFocus='this.blur();'> &nbsp;游戏下载&nbsp;</a></li>");
document.writeln("						<li class='top_dhg'> </li>");
document.writeln("						<li><a href='http://bbs.58h.com/' onFocus='this.blur();'> &nbsp;玩家论坛</span></a></li>						");
document.writeln("						   </ul>");

document.writeln("						 </div>");
document.writeln("						 <div class='topanjian'><a target='_blank' href='http://shop.58h.com'><img src='"+RootURL+"Templets/images/default/jiaceng05.gif' /></a></div>");
document.writeln("						 </div>");
document.writeln("						 <div class='top_4_3'></div>");
document.writeln("						 </div>");
document.writeln("    </div>");
//var Is58H= window.location.href.indexOf("www.58h.com")  > 0
//if (!Is58H)
//{
//    document.getElementById("Logo").src=RootURL+"Templets/images/default/VnetLogo.gif";
//}

function AddFavorite(sURL, sTitle)
{
    try
    {
        window.external.addFavorite(sURL, sTitle);
    }
    catch (e)
    {
        try
        {
            window.sidebar.addPanel(sTitle, sURL, "");
        }
        catch (e)
        {
        }
    }
}
function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        }
                        catch (e) {
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}