﻿function nav_links_style() {
    
    $("#mp_header_nav_links > ul > li > a").click( function () {
        //window.open("http://www.baidu.com");
    });
    $("#mp_header_nav_links > ul > li").mouseover( function () {
        $(this).css("border","none");
        $(this).css("border-top","solid 3px #E86711");
        //$(this).css("border-top",randColor().toString());
        $(this).css("background","#FFFFCE");
        $(this).css("height","25px");
        $(this).children().css("color","#3D6AC0");      
    });
    $("#mp_header_nav_links > ul > li").mouseleave( function () {
        $(this).css("border-top","solid 3px #3D6AC0");
        //$("#mp_header_nav_links > ul > li").css("border-top","solid 2px #800000");
        $(this).css("background","#3D6AC0");
        $(this).css("height","25px");
        $(this).children().css("color","#fff");
    });
    
    if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) {
        $("#top").css("display","none");
        $("#tp1").css("display","none");
    }
    

}

function randColor() {
    return 'solid 2px #'+(''+(Math.random()*0x1000000<<0).toString(16)).substr(-6); 
}

/*
if ($(window).width() > "1120") {
    $("#top").css("display","block");
} else {
    $("#top").css("display","none");
}

$(window).resize(function() {
    var width = $(this).width();
    if (width >= "1120") {
        $("#top").css("display","block");
    }else
    {
        $("#top").css("display","none");
    }
});

*/

