//下拉菜单
$(document).ready(function(){
   $("#menu .mCell a.mroot").mouseover(function(){
        $("#menu .mCell").find('a.mroot img').attr('src',function(){return 'images/default/menu/menu_df_'+$(this).parent().attr('rel')+'.jpg';}).filter('.on').removeClass("on");
              
        $("#menu .mCell").find("ul").hide();                
        $(this).parent().addClass("on").find("ul").fadeTo('slow',0.75);
            
        var imgname=$(this).attr('rel');
        $(this).find("img").attr('src',"images/default/menu/menu_on_"+imgname+".jpg");
   }); 
   $("#menu .mCell").filter('.on').find("ul:first").mouseover(function(){this.hide();});
});

//上下滚动新闻
function divMqueeUp(elem,speed){
    var obj=$(elem);    
    function mqe(){
        obj.animate({marginTop:'-130px'},500,function(){
            obj.find(".marqueeCell:first").appendTo(obj);
        });
    }
    var les=window.setInterval(mqe,speed);
}


// 招聘显示 
function jobShow(selectObj){
    var obj=$(selectObj);
    var markDiv="<div id='markDiv' title='双击可关闭！'><div id='closeThis' style='float:right;background:url(images/public/close_div.gif);width:40px; height:40px;cursor:pointer'></div></div>";
    var mWid=$(document).width();
    var mHei=$(document).height();
    if($("#markDiv").length==0)$("body").append(markDiv);
    $("#markDiv").css({'position':'absolute','left':'0','top':'0','z-index':'999','width':mWid+'px','height':mHei+'px','background':'#000'}).fadeTo(100,0.75);
    var showDiv="<div id='showDiv'></div>";      
    var sLeft=parseInt((mWid-760)/2);
    var sHei=mHei-60;  
    if($("#showDiv").length==0)$("body").append(showDiv);
    $("#showDiv").css({'position':'absolute','left':sLeft+'px','top':'20px','z-index':'1100','width':'760px','height':sHei+'px','background':'#fff','padding':'10px','overflow':'auto'}).load(obj.attr('href')+' #m_job_show');
    $("#markDiv").dblclick(function(){$("#showDiv").remove();$("#markDiv").remove();});
    $("#closeThis").click(function(){$("#showDiv").remove();$("#markDiv").remove();});
    return false;        
}
