<script>
/*点击显示点击隐藏*/
$(".search-main-new").click(function(){
$(".searchtoggle").stop().toggle(1000);
});
/*添加焦点,移除焦点*/
$(".searchtoggle .searchtoggle-content dl dd a").click(function(){
$(this).addClass("on");
$(this).siblings().removeClass("on");
});
/*获取高度,计算位置,计算高度*/
$(function(){
var leftHeight=$(".main_left").height();
var topHeight=(leftHeight-20)*0.6+"px";
var botHeight=(leftHeight-20)*0.4+"px";
var tableHeight=((leftHeight-20)*0.4-40)*0.1+"px";
var listHeight=((leftHeight-20)*0.4-40)*0.9+"px";
$(".left-top").css({"height":topHeight});
$(".left-bot").css({"height":botHeight});
$(".table-head").css({"height":tableHeight});
$(".table-scroll").css({"height":listHeight});
$(window).resize(function() {
var leftHeight=$(".main_left").height();
var topHeight=(leftHeight-20)*0.6+"px";
var botHeight=(leftHeight-20)*0.4+"px";
var tableHeight=((leftHeight-20)*0.4-40)*0.1+"px";
var listHeight=((leftHeight-20)*0.4-40)*0.9+"px";
$(".left-top").css({"height":topHeight});
$(".left-bot").css({"height":botHeight});
$(".table-head").css({"height":tableHeight});
$(".table-scroll").css({"height":listHeight});
});
});
</script>