$('#soSelect').css({cursor:'pointer'}).mouseover(function()
{
	$('#soSelect').addClass('soSelecthover');
});
$('#soSelect').mouseout(function()
{
	$('#soSelect').removeClass('soSelecthover');
});
$('#headSlected').click(function()
{
	select_open();
});

$('#soSelect').click (function()
{
	select_open();
});

function getmove(id) {
	if (id==newsid) return false;
	$("#link_"+id).attr('src','css/alink_'+id+'.gif');	
}
function getout(id) {
	if (id==newsid) return false;
	$("#link_"+id).attr('src','css/link_'+id+'.gif');
}
function select_open() {
	$('#headSel').toggle();
}
function search_show(num,value) {  
	var text=$("#headSel p:nth-child("+num+")").html();
	var newstext=$(text+">a").html();
	$('#headSlected').html(newstext);
	$("#logintype").val(value);
	select_open();
}
window.onresize=function(){
	var heights = 0;        // 当前浏览器高度
	var munheights=$("#mba_banner").height()+$("#mba_foot").height()+$("#mba_bo").height(); // 头部+底部高度
		if(window.innerHeight){
		heights = window.innerHeight;//Mozilla
	}else if(document.documentElement.clientHeight){
		heights = document.documentElement.clientHeight;//IE6
	}else{
		heights = document.body.clientHeight;//IE5.x
	}
	var nheights = heights-munheights;    // 浏览器中间高度
	var mheight = $("#mba_main").height(); // mba_main高度
	
	$("#mba_right").height(mheight);
	$("#mba_left").height(mheight);
}
window.onresize();

jQuery(function($) {
  $("#link_"+newsid).attr('src','css/alink_'+newsid+'.gif');	
});
