﻿/*
 加载头部 底部
*/
/*
$(function (){

  $.ajax({
    url: "header.htm",
    cache: false,
    success: function (data){
      $('#wrapper').prepend(data);
    }
  });

  $.ajax({
    url: "footer.htm",
    cache: false,
    success: function (data){
      $('#wrapper').append(data);
    }
  });

});
*/

function autoImgSize(obj, MAX_WIDTH, MAX_HEIGHT, IMG_MARGIN){
  var dImg = new Image();
  dImg.src = obj.src;
  dImg.onload = function (){
    var w = dImg.width;
    var h = dImg.height;
    //对比图片宽高是否超出
    if(w > MAX_WIDTH || h > MAX_HEIGHT){
      if(w > MAX_WIDTH){
        //对比图片宽
        obj.style.width = MAX_WIDTH + 'px';
        obj.style.height = dImg.height * MAX_WIDTH / dImg.width + 'px';
        var h2 = parseInt(obj.style.height);
        //设置完宽,高超出时
        if(h2 > MAX_HEIGHT){
          obj.style.height = MAX_HEIGHT + 'px';
          obj.style.width = parseInt(obj.style.width) * MAX_HEIGHT / h2 + 'px';
        }
      }else{
        //对比图片高
        obj.style.height = MAX_HEIGHT + 'px';
        obj.style.width = dImg.width * MAX_HEIGHT / dImg.height + 'px';
        //设置完高,宽超出时
        var w2 = parseInt(obj.style.width);
        if(w2 > MAX_WIDTH){
          obj.style.width = MAX_WIDTH + 'px';
          obj.style.height = parseInt(obj.style.height) * MAX_WIDTH / w2 + 'px';
        }
      }
    }
  }
  dImg.src = obj.src;
}

$(function (){
  $('#menu>li').last().addClass('bgnone');

  $('#nav>li').hover(function(){
    $(this).find('.subnav').show();
  },function(){
    $('#nav .subnav').hide();
  })

});

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('6 f(a,c,d){3.4=a;3.n=c;3.g=d;8(!3.4){o}3.h=$(\'#\'+3.4+\' > 7\').p;3.5=0;3.b=0;3.e();3.j()}f.q={j:6(){r 2=3;(6(){8(2.b>0){8(2.5>=2.h){2.5=0}$(\'#\'+2.4+\' > 7\').s(t);2.e();$(\'#\'+2.4+\' > 7\').k(2.5).l(\'z-m\',\'9\');$(\'#\'+2.4+\' > 7\').k(2.5).u(v)}2.b=1;2.5++;2.w=x(y.A,2.g)})()},e:6(){$(\'#\'+3.4+\'>7\').B(6(i){$(3).l(\'z-m\',i+1)})}}',38,38,'||_this|this|Big|I|function|li|if|||N|||attZindex|jQSlide|Tim|Count||Play|eq|css|index|Eve|return|length|prototype|var|fadeOut|600|fadeIn|1000|running|setTimeout|arguments||callee|each'.split('|'),0,{}))









