$(function(){ //switchbtn
	$('#sjbox h3,#bulletin h3,#cors h3,#senew h3').mouseover(function(){
		$(this).addClass('on')
		.siblings('h3').removeClass('on')
		.end()
		.next().removeClass('fly')
		.siblings('div,ul:not("#corsAd"),table').addClass('fly')
	});

    //pinyin
	$('#pinyin>li').bind("mouseover mouseout",function(){
		$(this).toggleClass("on")
		.children().toggleClass("fly");		
	});

    //expo
	$('table#expo tr').each(function(){
			$aa=$(this).children('td').eq(0).text().substring(0,20);
			$bb=$(this).children('td').eq(1).text().substring(0,10);
			$cc=$(this).children('td').eq(2).text().substring(0,10);
			$(this).children('td').eq(0).children('a').text($aa);
			$(this).children('td').eq(1).text($bb);
			$(this).children('td').eq(2).text($cc);
	});

    //moveup
	var $li1=$("#prodScrol li");
	moveup($li1);
	var $li2=$("#biz ul.sales li");
	moveup($li2);
	var $li3=$("#biz ul.buy li");
	moveup($li3);
	var $li4=$("#newcomp li");
	moveup($li4)

    //面议
	var $iv=$("#zp li div i");
	$iv.each(function(){
		if(parseInt(this.innerHTML)==0)
		this.innerHTML="面议";		
	});

	$('#biz li:odd,#expo tr:even').css('background','#F2F4FC');

});
$(function(){
	var bbtsize=12;             // 可自定义输入框长度
	var bbtlen=232;            // 可自定义 iframe长度
	var bbthei=55;             // 可自定义 iframe高度
	$("#bbt").html("<ifr"+"ame id=\"bbtsearch\"  src=\"http://www.4006009090.com/search5.html?len="+bbtsize+"\" width="+bbtlen+" height="+bbthei+" scrolling=\"no\" frameborder=\"0\"></ifr"+"ame>");
    
    $(".lds span").each(function(){
       var temp=$(this).text().substring(0,10); 
       $(this).text(temp);
    })
})




//$.ajax({ //价格播报
//		type:"post",
//		url:"/mbs/mb1/jsp/getPrice.jsp?"+Math.random(),
//		success:function(newsList){
//			$("#price").html("");
//			$("#price").html($.trim(newsList));
//		}
//});

