
function swapNavBg(tt, item){
	var tabRoot = document.getElementById(tt);
	var tabLiList = tabRoot.getElementsByTagName('li');
	for( var i = 0; i<tabLiList.length; i++){
		if(tabLiList[i].innerText==null || tabLiList[i].innerText=='') {
			continue;
		}
		tabLiList[i].style.background='#f2f6fb';
		tabLiList[i].style.fontWeight='normal';
		tabLiList[i].style.borderBottom='#c6d8e6 1px solid';
		tabLiList[i].style.zIndex='3';
//		document.getElementById('zj_'+i).style.display='none';
	}
		tabLiList[item].style.background='#fff';
		tabLiList[item].style.fontWeight='bold';
		tabLiList[item].style.borderBottom='#fff 1px solid';
		tabLiList[item].style.zIndex='2';
		tabLiList[item].style.cursor='pointer';
//		document.getElementById('zj_'+item).style.display='block';
	}

function showHotImglist(item){
	item.style.backgroundPosition = 'bottom';
}
function showImglist(item){
	item.style.backgroundPosition = 'top';
}
function showHotImgdown(item){
	item.style.backgroundPosition = 'bottom';
}
function showImgdown(item){
	item.style.backgroundPosition = 'top';
}
function showHotImgcailing(item){
	item.style.backgroundPosition = 'bottom';
}
function showImgcailing(item){
	item.style.backgroundPosition = 'top';
}
//带箭头的标签切换函数
function swapJtTab(tabPrefix, jtPrefix,pagePrefix,totalPageNum,currentPageNo){
 //onmouseover="swapJtTab('tabJt','jt','zj','4','3')"
 
	for( var i = 0; i < totalPageNum; i++){
		$(tabPrefix+i).style.background='url(http://image.kuwo.cn/titlebg.gif)';//按钮背景
		$(tabPrefix+i).getElementsByTagName('a')[0].style.color='#212121';//按钮链接文字颜色
		$(jtPrefix+i).style.visibility='hidden';//箭头
		$(pagePrefix+i).style.display="none";//切换的页面
	}
	$(tabPrefix+currentPageNo).style.background='#fff';//按钮背景
	$(tabPrefix+currentPageNo).getElementsByTagName('a')[0].style.color='#fb6600';//按钮链接文字颜色
	$(tabPrefix+currentPageNo).style.cursor="pointer";//切换的手型
	$(jtPrefix+currentPageNo).style.visibility='visible';//箭头
	$(pagePrefix+currentPageNo).style.display="block";//切换的页面
}

//不带下箭头的标签切换函数
function swapTab(tabPrefix,pagePrefix,totalPageNum,currentPageNo){
	for( var i = 0; i < totalPageNum; i++){
		$(tabPrefix+i).style.background='url(http://image.kuwo.cn/titlebg.gif)';//按钮背景
		$(tabPrefix+i).getElementsByTagName('a')[0].style.fontWeight='normal';//按钮链接文字颜色
		$(tabPrefix+i).style.borderBottom='#c6d8e6 1px solid';
		$(pagePrefix+i).style.display="none";//切换的页面
	}
	$(tabPrefix+currentPageNo).style.background='#fff';//按钮背景
	$(tabPrefix+currentPageNo).getElementsByTagName('a')[0].style.fontWeight='bold';//按钮链接文字颜色
	$(tabPrefix+currentPageNo).style.cursor="pointer";//切换的手型
	$(tabPrefix+currentPageNo).style.borderBottom='#fff 1px solid';
	$(pagePrefix+currentPageNo).style.display="block";//切换的页面
}

function mouseOver(obj) {
	obj.style.backgroundColor='#ecf7ff';
}
function mouseOut(obj) {
	obj.style.backgroundColor='#fff';
}
//var yzlistWrapper = document.getElementById('cxcl');
//if(yzlistWrapper!=null) {
//	yzlistWrapper.getElementsByTagName('table');
///	for(var i=0; i<yzlist.length; i++) {
//		yzlist[i].onmouseover = function(){mouseOver(this)};
//		yzlist[i].onmouseout = function(){mouseOut(this)};
//	}	
//}
