stuHover = function() {
    var cssRule;
    var newSelector;
    for (var i = 0; i < document.styleSheets.length; i++)
        for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
        {
            cssRule = document.styleSheets[i].rules[x];
            if (cssRule.selectorText.indexOf("LI:hover") != -1)
            {
                newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
                document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
            }
        }
    var getElm = document.getElementById("xlbg").getElementsByTagName("LI");
    for (var i=0; i<getElm.length; i++) {
        getElm[i].onmouseover=function() {
            this.className+=" iehover";
        }
        getElm[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" iehover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", stuHover);


stuHover = function() {
    var cssRule;
    var newSelector;
    for (var i = 0; i < document.styleSheets.length; i++)
        for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
        {
            cssRule = document.styleSheets[i].rules[x];
            if (cssRule.selectorText.indexOf("LI:hover") != -1)
            {
                newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
                document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
            }
        }
    var getElm = document.getElementById("xlbg3").getElementsByTagName("LI");
    for (var i=0; i<getElm.length; i++) {
        getElm[i].onmouseover=function() {
            this.className+=" iehover";
        }
        getElm[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" iehover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", stuHover);

stuHover = function() {
    var cssRule;
    var newSelector;
    for (var i = 0; i < document.styleSheets.length; i++)
        for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
        {
            cssRule = document.styleSheets[i].rules[x];
            if (cssRule.selectorText.indexOf("LI:hover") != -1)
            {
                newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
                document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
            }
        }
    var getElm = document.getElementById("xlbg4").getElementsByTagName("LI");
    for (var i=0; i<getElm.length; i++) {
        getElm[i].onmouseover=function() {
            this.className+=" iehover";
        }
        getElm[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" iehover\\b"), "");
        }
    }
}
if (window.attachEvent) window.attachEvent("onload", stuHover);

stuHover = function() {
    var cssRule;
    var newSelector;
    for (var i = 0; i < document.styleSheets.length; i++)
        for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
        {
            cssRule = document.styleSheets[i].rules[x];
            if (cssRule.selectorText.indexOf("LI:hover") != -1)
            {
                newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
                document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
            }
        }
    var getElm = document.getElementById("xlbg5").getElementsByTagName("LI");
    for (var i=0; i<getElm.length; i++) {
        getElm[i].onmouseover=function() {
            this.className+=" iehover";
        }
        getElm[i].onmouseout=function() {
            this.className=this.className.replace(new RegExp(" iehover\\b"), "");
        }
    }
}
$(document).ready(function() {
    $(".nali").hover( function(){
        $(".xlbg").stop(true,true).slideDown("fast");
    },function(){
        $(".xlbg").stop(true,true).slideUp("fast");
    })
});
$(document).ready(function() {
    $(".nali3").hover( function(){
        $(".xlbg3").stop(true,true).slideDown("fast");
    },function(){
        $(".xlbg3").stop(true,true).slideUp("fast");
    })
});
$(document).ready(function() {
    $(".nali4").hover( function(){
        $(".xlbg4").stop(true,true).slideDown("fast");
    },function(){
        $(".xlbg4").stop(true,true).slideUp("fast");
    })
});

    $(function(){
        $("#ssk").click(function(){
            $("#in2sr").val("请输入您想要搜索的内容");
            $("#newtcc").css("display","block");
            $("#zixun").css("color", "#fff");
            $("#zixun").css("background", "url(/images/2011/ssqhbg.gif) 0px 0px no-repeat");
            $("#yanjiu").css("color","#333");
            $("#yanjiu").css("background", "");
            $("#zhengce").css("color","#333");
            $("#zhengce").css("background", "");
            $("#ttss").val("1");
        });
        $("#gb-r").click(function(){
            $("#newtcc").css("display","none");
            $("#zixun").css("color", "#333");
            $("#zixun").css("background", "");
            $("#yanjiu").css("color","#333");
            $("#yanjiu").css("background", "");
            $("#zhengce").css("color","#333");
            $("#zhengce").css("background", "");
            $("#ttss").val("1");
        });
        $("#zixun").click(function(){
            $("#zixun").css("color", "#fff");
            $("#zixun").css("background", "url(/images/2011/ssqhbg.gif) 0px 0px no-repeat");
            $("#yanjiu").css("color","#333");
            $("#yanjiu").css("background", "");
            $("#zhengce").css("color","#333");
            $("#zhengce").css("background", "");
            $("#ttss").val("1");
        });
        $("#yanjiu").click(function(){
            $("#yanjiu").css("color", "#fff");
            $("#yanjiu").css("background", "url(/images/2011/ssqhbg.gif) 0px 0px no-repeat");
            $("#zixun").css("color","#333");
            $("#zixun").css("background", "");
            $("#zhengce").css("color","#333");
            $("#zhengce").css("background", "");
            $("#ttss").val("2");
        });
        $("#zhengce").click(function(){
            $("#zhengce").css("color", "#fff");
            $("#zhengce").css("background", "url(/images/2011/ssqhbg.gif) 0px 0px no-repeat");
            $("#yanjiu").css("color","#333");
            $("#yanjiu").css("background", "");
            $("#zixun").css("color","#333");
            $("#zixun").css("background", "");
            $("#ttss").val("3");
        });
        $("#in2sr").click(function(){
            $("#in2sr").val("");
        });
        $("#in3").click(function(){
            var tt=$("#ttss").val();
            var txt=encodeURI($("#in2sr").val());
            if($("#in2sr").val()=="" || $("#in2sr").val()=="请输入您想要搜索的内容"){
                $("#in2sr").val("请输入您想要搜索的内容");
                return false;
            }
            if(tt==1){
                location.href="/outsourcing-news/list/?k="+txt;
            }
            if(tt==2){
                location.href="/research-insights/list/?k="+txt;
            }
            if(tt==3){
                location.href="/industry/policy/?k="+txt;
            }
        });
    });

