function srcW(){
    srcW = document.body.clientWidth;
    if(srcW>1100){
        $("#nav_left").css({"display":"block"});
        $("#nav_right").css({"display":"block"});
        }
    }
jQuery(function($){
            srcW()  
                })

/*20110923*/
function hidAll(){
    $("#L_mu_navDiv > div").hide();
    $(".L_mu_cur").removeClass("L_mu_cur");
}
$(document).ready(function() { 
   $("#L_mu_person").mouseover(function(e){
      $("#L_mu_person").addClass("L_mu_cur").siblings().removeClass("L_mu_cur"); 
      $("#L_mu_m1").show().siblings().hide();
      pshow_hid();
      search_hid();
       $(".sel_t").hide();// jn_716 
    
   });
     $("#L_mu_grow").mouseover(function(e){
      $("#L_mu_grow").addClass("L_mu_cur").siblings().removeClass("L_mu_cur"); 
      $("#L_mu_m2").show().siblings().hide();
      pshow_hid();
      search_hid();
       $(".sel_t").hide();// jn_716 
   });
   $("#L_mu_great").mouseover(function(e){
      $("#L_mu_great").addClass("L_mu_cur").siblings().removeClass("L_mu_cur"); 
      $("#L_mu_m3").show().siblings().hide();

      pshow_hid();
      search_hid();
       $(".sel_t").hide();// jn_716 
   });

     $("#L_mu_ser").mouseover(function(e){
      $("#L_mu_ser").addClass("L_mu_cur").siblings().removeClass("L_mu_cur"); 
      $("#L_mu_m4").show().siblings().hide();
      pshow_hid();
      search_hid();
       $(".sel_t").hide();// jn_716 
   });
   
   $("#L_mu_shop").mouseover(function(e){
      $("#L_mu_shop").addClass("L_mu_cur").siblings().removeClass("L_mu_cur"); 
      $("#L_mu_m5").show().siblings().hide();
      pshow_hid();
      search_hid();
       $(".sel_t").hide();// jn_716 
   });
   $("#L_mu_m4").mouseleave(function(){
       $(this).hide();
       $("#L_mu_ser").removeClass("L_mu_cur");
     });
     $("#L_mu_m5").mouseleave(function(){
       $(this).hide();
       $("#L_mu_shop").removeClass("L_mu_cur");
     });
   
   //le phone le pad
    var _l = $(".pop_phone > .l > li");
    var _r = $(".pop_phone > .r > li");
    _l.click(function(){
        var _ii = _l.index(this);
        _l.find("ul").hide();
        $(this).find("ul").show();
        _r.eq(_ii).show().siblings().hide();
    });
});

$(document).ready(function() { 
 $(".head,.news,.ad_area,#nav_left,#nav_right,.L_mu_mb_1,.L_mu_nav_top,#L_mu_mem").mouseover(function(e){ //jn_716 add                                                                   
 hidAll();
 pshow_hid();
 search_hid();
   $(".sel_t").show();// jn_716 
   });
});
/*20110923end*/

$(document).ready(function() { 
   $(".box_b").mouseover(function(e){
 hidAll();
 pshow_hid();
 search_hid();
   });
   
});

$(document).ready(function() { 
   $("#searchinput").click(function(e){
     document.getElementById("searchinput").value="";
   });
   
});
function pshow_hid(){
    $("#pthink_area").hide();
     $("#pidea_area").hide();
     $(".pop_phone").hide();
     $("#pthink").removeClass("a1");
    $("#pidea").removeClass("a2");
    $("#pphone").removeClass("a2");
    }
    
function search_hid(){
    $("#search_result").hide();
    }
/8-5/   
function MouseUp() { 
  if(event.srcElement.tagName=="A" || (event.srcElement.parentElement.tagName=="A" && event.srcElement.tagName=="B") || event.srcElement.tagName=="IMG")
    {
      var ToUrl="";
      var Target="";
      if(event.srcElement.tagName=="B" || event.srcElement.tagName=="IMG"){
        if(event.srcElement.parentElement.href!="undefined" && event.srcElement.parentElement.href!=null){
                Target=event.srcElement.parentElement.target;
                ToUrl = event.srcElement.parentElement.href;
            }
      }else{
          if(event.srcElement.href!="undefined" && event.srcElement.href!=null){
            Target=event.srcElement.target;
                ToUrl = event.srcElement.href;
            }
        }

        if(ToUrl!=""){
                var nav=navigator.userAgent;
                if(nav.indexOf("Tencent")>=0)
                {
                    if(Target==""){
                        location.href = ToUrl;
                    }else{
                        window.open(ToUrl);
                    }
              }
        }
    }
}
document.onmouseup = MouseUp;


function bluring(){
    if(event.srcElement.tagName=="A" || event.srcElement.tagName=="IMG")
    {
        document.body.focus();

    }
    return true;
}
document.onfocusin = bluring;

