//外贸和问答
function g(o){return document.getElementById(o);}
function HoverLi(n){
for(var i=1;i<=2;i++){g('js_menu'+i).className='js_menuout';g('js_div'+i).className='right_msg js_undis';}g('js_div'+n).className='right_msg js_dis';g('js_menu'+n).className='js_menuon';
}

//加盟和热点
function g(o){return document.getElementById(o);}
function HoverLia(n){
for(var i=1;i<=2;i++){g('js_menua'+i).className='js_menuout';g('js_diva'+i).className='right_msg js_undis';}g('js_diva'+n).className='right_msg js_dis';g('js_menua'+n).className='js_menuon';
}

//分析和动态
function g(o){return document.getElementById(o);}
function HoverLib(n){
for(var i=1;i<=2;i++){g('js_menub'+i).className='js_menuout';g('js_divb'+i).className='right_msg js_undis';}g('js_divb'+n).className='right_msg js_dis';g('js_menub'+n).className='js_menuon';
}


//公告轮换
$ = function(el){
	return document.getElementById(el);
}
function qh_check(qh_type){
	if(qh_type==1){
		$("top_qh_left").style.background = "url(img/images/index_lhbg_1.gif)";
		$("qh_cont1").style.display = "block";
		$("qh_cont2").style.display = "none";
		$("qh_cont3").style.display = "none";
	}else if(qh_type==2){
		$("top_qh_left").style.background = "url(img/images/index_lhbg_2.gif)";
		$("qh_cont1").style.display = "none";
		$("qh_cont2").style.display = "block";
		$("qh_cont3").style.display = "none";
	}else if(qh_type==3){
		$("top_qh_left").style.background = "url(img/images/index_lhbg_3.gif)";
		$("qh_cont1").style.display = "none";
		$("qh_cont2").style.display = "none";
		$("qh_cont3").style.display = "block";
	}
}
function build_qh(el){
	var current = 1;
	var runing = function(){
		if(current%3 == 1){
			$("top_qh_left").style.background = "url(img/images/index_lhbg_1.gif)";
			$("qh_cont1").style.display = "block";
			$("qh_cont2").style.display = "none";
			$("qh_cont3").style.display = "none";
		}else if(current%3 == 2){
			$("top_qh_left").style.background = "url(img/images/index_lhbg_2.gif)";
			$("qh_cont1").style.display = "none";
			$("qh_cont2").style.display = "block";
			$("qh_cont3").style.display = "none";
		}else if(current%3 == 0){
			$("top_qh_left").style.background = "url(img/images/index_lhbg_3.gif)";
			$("qh_cont1").style.display = "none";
			$("qh_cont2").style.display = "none";
			$("qh_cont3").style.display = "block";
		}
		current++;
	}
	var runing_time = setInterval(runing,6000);
	
	$("top_qh_left").onmouseover = function(){
		clearInterval(runing_time);
	}
	$("top_qh_left").onmouseout = function(){
		runing_time = setInterval(runing,6000);
	}
}

