function myBrowser(){
  var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串
  var isOpera = userAgent.indexOf("Opera") > -1;

  if (isOpera){return "Opera"}; //判断是否Opera浏览器 
  if (userAgent.indexOf("Firefox") > -1){return "FF";} //判断是否Firefox浏览器 
  if (userAgent.indexOf("Safari") > -1){return "Safari";} //判断是否Safari浏览器 
  if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !isOpera){return "IE";} ; //判断是否IE浏览器
} //myBrowser() end
function resizeWorkImag(){
var WinW = null;
var WinH = null;
var ImgW = 1160;
var ImgH = 768;
//
var StaH = 700;
var PadTop = 120;
WinW = document.documentElement.clientWidth;
WinH = document.documentElement.clientHeight;

    if(WinW > ImgW || WinH > ImgH)
    {
      if ((WinW / WinH) > (ImgW / ImgH)) {
        var newHeight = Math.round((WinW / ImgW) * ImgH);
        var newWidth = WinW;
      } else {
        var newHeight = WinH;
        var newWidth = (WinH / ImgH) * ImgW;
      }
    }
    else
    {
      var newWidth = 1160;
      var newHeight = 768;
    }
    newTop = 0 - Math.round((newHeight - WinH) / 2);
    newLeft =  0 - Math.round((newWidth - WinW) / 2);
    if(( WinH / StaH ) < 1)
    {
      var newPadTop = Math.round(PadTop * (WinH / StaH));
    }
    else
    {
      var newPadTop = PadTop;
    }

    var _imgs = $(".pageBg img");
    var _oDivs = $(".pageBg .overflowDiv");
    if(_imgs!=null){
      _oDivs.css({height: WinH, width: WinW});
       _imgs.css({width: newWidth, height: newHeight, top: newTop, left: newLeft});
       if(Sys.ie == '7.0'){
       _imgs .css({height:newHeight ,width: newWidth,top: newTop});
       $.each($(".pageBg"),function(){
         $(this).find('.overflowDiv').eq(0).css({height: WinH - newTop , width: WinW,overflow:"hidden",top: newTop});  
       });
         
    }            
    }
  //  if(_imgs!=null) _oDivs.css({height: WinH, width: WinW});


   //$(".pageBg img").width(document.documentElement.clientWidth);

}

var h = document.documentElement.clientHeight;
var pageH = $(document).height(); 
var pageW = $(document).width();
var boxH  =  $(".pageBg img").height();
var peopleIntroH  =h-100;
var showListH  =  $(".dropDownContent").height();

resizeWorkImag();
//$(".pageBg img").height(h);
$(".pageBg object").height(h);
$(".pageBg embed").height(h);
$(".pageBg video").height(h);
$(".content").height(pageH);
$(".showContent").height(h-120);

  
$(".peopleIntro").height(h);

$("#articleContent").height(pageH-180);
$("#map_canvas").height(pageH);
$("#map_canvas").width(pageW);
$("#historyIntro").height(h-280);
$(".historyContent").height(h-180);
$("#skill").height(h-180);
$(".articleContent").height(h-120);







