/*头部菜单下拉*/
var indexLi='';
var timeY,timeZ,timeA,timeB;
$j(function(){
	/*菜单选择*/
	$j(".head_banner li").hover(function(){
		clearTimeout(timeZ);
		clearTimeout(timeY);
		indexLi = $j(".head_banner li").index(this);
		timeY = setTimeout(function() {
			$j(".head_banner .imsc").hide();
			$j(".head_banner .imunder").hide();
			$j(".head_banner li").eq(indexLi).find('.imsc').fadeIn('fast');
			$j(".head_banner li").eq(indexLi).find('.imunder').height($j(".head_banner li").eq(indexLi).find('.imsc dl').height()+1).show();
		},200);
	},function(){
		clearTimeout(timeY);
		$j(".head_banner .imsc").hide();
		$j(".head_banner .imunder").hide();
		timeZ = setTimeout(function() {
			$j(".head_banner .imsc").hide();
			$j(".head_banner .imunder").hide();
		},200);
		
	})
	/*地区选择*/
	$j(".city_changesub .show").hover(function(){
		clearTimeout(timeA);
		clearTimeout(timeB);
		var getIdname = $j(this).find(".list").attr("id");
		timeA = setTimeout(function() {
			$j(".city_changesub .list").hide();
			$j("#"+getIdname).show();
		},200);
	},function(){
		clearTimeout(timeA);
		timeB = setTimeout(function() {
			$j(".city_changesub .list").hide();
		},200);
		
	})	
});


function setHeadMenu(menuid){
	$j("#"+menuid).addClass("curr");
}

/*快捷服务的展开特效*/
	
function producecloseall(){
	document.getElementById("index_cheapandprom").style.display = "none";
	document.getElementById("index_hotsell").style.display = "none";
	document.getElementById("index_newproduce").style.display = "none";
	document.getElementById("index_tyterminal").style.display = "none";
	document.getElementById("index_lovemusic").style.display = "none";
	

}
function produceshow(pid){
	producecloseall();
	document.getElementById(pid).style.display = '';
}
function tshow(tid){
	document.getElementById('t1').className = 'index_promotions_title_nohover';
	document.getElementById('t2').className = 'index_promotions_title_nohover';
	document.getElementById('t3').className = 'index_promotions_title_nohover';
	document.getElementById('t4').className = 'index_promotions_title_nohover';
	//document.getElementById('t5').className = 'index_promotions_title_nohover';		
	document.getElementById(tid).className = 'index_promotions_title_hover';	
}




//业务列表的JS效果
function g(o){return document.getElementById(o);}
function hoverLi(n){
//如果有N个标签,就将i<=N;
for(var i=1;i<=5;i++){
	g('tb_'+i).className='product_list_nohover floatLeft';
	g('tbc_'+i).style.display='none';
	g('tbd_'+i).style.display='none';
	g('tba_'+i).className='index_titletext1';
	}
	g('tbc_'+n).style.display='block';
	g('tbd_'+n).style.display='block';
	g('tb_'+n).className='product_list_hover floatLeft';
	g('tba_'+n).className='index_titletext1_over';
}

function outLi(){
//如果有N个标签,就将i<=N;
for(var i=1;i<=5;i++){
	g('tb_'+i).className='product_list_nohover floatLeft';
	g('tbc_'+i).style.display='none';
	g('tbd_'+i).style.display='none';
	g('tba_'+i).className='index_titletext1';
	}
}
