﻿var topDomain = "http://www.dokee.cn/";
document.writeln('<style>');
document.writeln('#topmenu * {margin:0px;padding:0px;border:0;list-style:none;color:#212121;font-size:12px;font-family:"宋体",Tahoma;}');
document.writeln('#topmenu img{vertical-align:middle;}');
document.writeln('#topmenu {background:#fff;width:100%;background:url(' + topDomain + '/topmenu/images/back01.jpg) repeat-x;height:35px;}');
document.writeln('#topmenu_box {width:973px;margin:0 auto;overflow:hidden;}');
document.writeln('#topmenu_box ul {text-align:center;}');
document.writeln('#topmenu_box ul li {float:left;}');
document.writeln('#topmenu_box .menu_pic {width:79px;overflow:hidden;}');
document.writeln('#topmenu_box .topNav {width:386px;color:#666;height:35px;line-height:35px;text-align:left;padding-left:10px;overflow:hidden;}');
document.writeln('#topmenu_box .topNav img {margin:10px 0;}');
document.writeln('#topmenu_box .topNav a {color:#666;text-decoration:none;}');
document.writeln('#topmenu_box .topNav a:hover {color:#f00;text-decoration:none;}');
document.writeln('#topmenu_box .menu_news {width:299px;text-align:left;line-height:35px;height:35px;background:url(' + topDomain + '/topmenu/images/back02.jpg) no-repeat;overflow:hidden;}');
document.writeln('#topmenu_box .menu_news a {margin-left:25px;color:#666;text-decoration:none;}');
document.writeln('#topmenu_box .menu_news a:hover {color:#f00;text-decoration:underline;}');
document.writeln('#topmenu_box .login {width:199px;text-align:left;height:35px;background:url(' + topDomain + '/topmenu/images/back02.jpg) no-repeat;overflow:hidden;}');
document.writeln('#topmenu_box .login font {margin-left:25px;color:#666;line-height:35px;}');
document.writeln('#topmenu_box .login a {color:#666;text-decoration:none;}');
document.writeln('.mobile_menu {width:116px;overflow:hidden;display:none;z-index:10000; position:absolute;}');
document.writeln('.mobile_menu .top_back {height:9px;overflow:hidden;background:url(' + topDomain + '/topmenu/images/top_tip01.GIF) no-repeat;}');
document.writeln('.mobile_menu .con_back {width:116px;background:url(' + topDomain + '/topmenu/images/top_tip02.GIF) repeat-y;}');
document.writeln('.mobile_menu .con_back a {color:#666;text-decoration:none;}');
document.writeln('.mobile_menu .con_back a:hover {color:#f60;text-decoration:underline;}');
document.writeln('.mobile_menu .con_back ul {padding:5px 12px;}');
document.writeln('.mobile_menu .con_back ul li {list-style:none;height:26px;color:#666;line-height:26px;padding-left:10px;background:url(' + topDomain + '/topmenu/images/top_tip04.jpg) 1px 10px no-repeat;}');
document.writeln('.mobile_menu .footer_back {height:23px;background:url(' + topDomain + '/topmenu/images/top_tip03.GIF) no-repeat;}');
document.writeln('<\/style>');
document.writeln('<div id="topmenu">');
document.writeln('<div id="topmenu_box">');
document.writeln('<ul>');
document.writeln('<li class="mene_pic"><a href="http://www.dokee.cn"><img style="margin-top:6px;" src="' + topDomain + '/topmenu/images/logo.jpg" width="79" height="23" /></a></li>');
document.writeln('<li class="topNav">');
//document.writeln('<a href="#" onmouseover=\'topMenu.divShow(event,this,"menu_list_1")\' onmouseout=\'topMenu.Banner_Mouseout("menu_list_1")\'>兵团 <img src="' + topDomain + '/topmenu/images/menu.jpg" width="13" height="13" /> </a>  |')
document.writeln('<a href="http://cs.dokee.cn">首页</a> | <a href="http://m.dokee.cn" style="color:red">会员</a> | <a href="http://gh.dokee.cn" style="color:red">公会</a> | <a href="http://cs.dokee.cn/rank/">排行</a> | <a href="http://cs.dokee.cn/match">活动</a> | <a href="http://pay.dokee.cn">充值</a> | <a href="http://cs.dokee.cn/shop/">道具</a> | <a href="http://bar.dokee.cn">网吧</a> | <a href="http://dz.dokee.cn/" style="color:red">豆知</a>');
document.writeln('</li>');
document.writeln('<li class="menu_news"><a href="http://cs.dokee.cn/Activity/renwutiyan/" style=\"color:red\" target=\"_blank\">体验任务系统　赢取赛睿外设</a></li>');
document.writeln('<li class="login"><iframe  style="width:199px;heigth:25px" src=\"\" marginheight=\"0\" marginwidth=\"0\" frameborder=\"0\" scrolling=\"no\" allowTransparency=\"true\" id=\"login_header\" name=\"login_header\"><\/iframe></li>');
document.writeln('</ul>');
document.writeln('</div>');
document.writeln('</div>');
document.writeln('<div class="mobile_menu" id="menu_list_1" onmouseover=\'topMenu.Banner_MouseOver("menu_list_1")\' onmouseout=\'topMenu.Banner_Mouseout("menu_list_1")\'>');
document.writeln('<div class="top_back"></div>');
document.writeln('<div class="con_back">');
document.writeln('<ul>');
document.writeln('<li><a href="#">兵团分部</a></li>');
document.writeln('<li><a href="#">兵团排行</a></li>');
document.writeln('<li><a href="#">兵团招募</a></li>');
document.writeln('<li><a href="#">兵团介绍</a></li>');
document.writeln('</ul>');
document.writeln('</div>');
document.writeln('<div class="footer_back"></div>');
document.writeln('</div>');

var scrElement = null;
var topMenu = {
    divShow: function (ev, self, id) {
        ev = window.event || ev;
        scrElement = window.event ? ev.srcElement : ev.target;
        var mousePos = this.mouseCoords(self);
        var obj = document.getElementById(id);
        obj.style.left = mousePos.x - 116 + 'px';
        obj.style.top = mousePos.y + 13 + 'px';
        obj.style.display = "block";
    },
    Banner_MouseOver: function (id) {
        document.getElementById(id).style.display = "block";
    },
    Banner_Mouseout: function (id) {
        document.getElementById(id).style.display = "none";
    },
    mouseCoords: function (obj) {
        var x = obj.offsetLeft + obj.offsetWidth;
        var y = obj.offsetTop;
        var parent = obj;
        while (parent.offsetParent) {
            parent = parent.offsetParent;
            x += parent.offsetLeft;
            y += parent.offsetTop;
        }
        return { x: x, y: y }
    },
    Browser:function () { return { IE: !!(window.attachEvent && navigator.userAgent.indexOf('Opera') === -1), Opera: navigator.userAgent.indexOf('Opera') > -1, WebKit: navigator.userAgent.indexOf('AppleWebKit/') > -1, Gecko: navigator.userAgent.indexOf('Gecko') > -1 && navigator.userAgent.indexOf('KHTML') === -1, MobileSafari: !!navigator.userAgent.match(/Apple.*Mobile.*Safari/) }; },
    binEvent:function (_HTMLElement_, _event_, _called_) { if (new this.Browser().IE) { _HTMLElement_.attachEvent("on" + _event_, function() { _called_(_HTMLElement_); }); } else { _HTMLElement_.addEventListener(_event_, function() { _called_(this); }, false); } }
}

topMenu.binEvent(window, "load", function () { document.getElementById("login_header").src = topDomain + "/login/login_header.aspx?from=" + window.location.href });




