//头部改变
function topChangeSelect(orderby,pagecode,url,flag){
	var tag = document.getElementById("dvTopMenu").getElementsByTagName("li");
		var taglength = tag.length;
		for(var i=0; i<taglength; i++){
			tag[i].className = "";
		}
		changeTopCss(orderby.toString(),tag);
}

//选中
function changeTopCss(orderby,obj){

	switch(orderby.toString()){
		case "0" :
			 obj[0].className = "topselect";
			 document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/fen.gif)"; 
			 document.getElementById("dvbase").innerHTML="热门关键字：<a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&typeid=150'>洁面</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=167'>面膜</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?searchtype=type&typeid=275'>BB霜</a>  <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=174'>眼霜</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?searchtype=type&searchArrKey=0-0-0-0-0-0-0&typeid=280'>睫毛膏</a> <a href='http://www.tiantian.com/makeups/browse_MakeUps.asp?pagecode=skincare&searchtype=type&typeid=182'>女士香水</a> <a href='http://www.tiantian.com/bags/browse_Bags.asp?pagecode=Bags&searchwordarr=%B5%A5%BC%E7%B0%FC%2D0%2D0'>单肩包</a> <a href='http://www.tiantian.com/watchs/browse_watchs.asp?bradeid=1175&sorttype=2'>卡西欧</a> ";

			break;
			
		case  "1" :
			obj[1].className = "topselect";
			document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/fen.gif)"; 
			 document.getElementById("dvbase").innerHTML="热门关键字：<a href='/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=172'>防晒</a> <a href='/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&searchArrKey=%C3%C0%B0%D7%2D0%2D0%2D0%2D0%2D0%2D0&typeid=144'>美白</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=167'>面膜</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=174'>眼霜</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&searchArrKey=%B1%A3%CA%AA%B2%B9%CB%AE%2D0%2D0%2D0%2D0%2D0%2D0&typeid=144'>保湿</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=150'>洁面</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=166'>精华</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=type&restsearch=2&typeid=164'>乳液</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=brand&brandid=79 '>兰蔻</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=skincare&searchtype=brand&brandid=47'>欧珀莱</a>";

			break;
			
		case  "2"  :
			obj[2].className = "topselect";
			document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/fen.gif)"; 
			document.getElementById("dvbase").innerHTML="热门关键字： <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&typeid=280'>睫毛膏</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&typeid=272'>妆前乳</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&typeid=273'>粉底</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&typeid=283'>唇彩</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&typeid=282'>眼线</a> <a href='/browse.asp?classid=1&feature=眼影'>眼影</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&typeid=278'>遮瑕</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&searchArrKey=0%2D0%2D0%2D0%2D0%2D0%2D0&typeid=153&brandid=15'>美宝莲</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=cosmetics&searchtype=type&searchArrKey=0%2D0%2D0%2D0%2D0%2D0%2D0&typeid=153&brandid=965'>卡姿兰</a>";

			break;
			
		case  "3"  :
			obj[3].className = "topselect";
			document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/fen.gif)"; 
			document.getElementById("dvbase").innerHTML="热门关键字：<a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&searchArrKey=0%2D0%2D%C4%D0%CA%BF%2D0%2D0%2D0%2D0&restsearch=2&typeid=182'>男士</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&typeid=182'>女士</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&searchArrKey=0%2D%B5%AD%CF%E3%CB%AE%2D0%2D0%2D0%2D0%2D0&restsearch=2&typeid=260'>淡香水</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&searchArrKey=0%2D%CF%E3%CB%AE%2D0%2D0%2D0%2D0%2D0&restsearch=2&typeid=182'>香水</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&typeid=262'>迷你香水</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&searchArrKey=0%2D%B5%AD%CF%E3%CB%AE%2D0%2D0%2D0%2D0%2D0&restsearch=2&typeid=260&brandid=61'>安娜苏</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&searchArrKey=0%2D%B5%AD%CF%E3%CB%AE%2D0%2D0%2D0%2D0%2D0&restsearch=2&typeid=260&brandid=64'>巴宝莉</a> <a href='http://www.tiantian.com/makeups/browse_makeups.asp?pagecode=perfume&searchtype=type&searchArrKey=0%2D%CF%E3%CB%AE%2D0%2D0%2D0%2D0%2D0&restsearch=2&typeid=182&brandid=72'>雅顿</a>";

			break;
			
		case  "4"  :
			obj[4].className = "topselect";
			document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/lan.gif)";
			document.getElementById("dvbase").innerHTML="热门关键字：<a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=%B6%FA%B6%A4%2F%B6%FA%BB%B7%2F%B6%FA%D7%B9%2D0%2D0' target='_blank'  >耳饰</a> <a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=%CA%D6%EF%ED%2F%CA%D6%C1%B4%2D0%2D0' target='_blank' >手镯/手链</a> <a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=%BD%C5%C1%B4%2D0%2D0' target='_blank'>脚链</a> <a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=0%2D0%2D641' target='_blank'>施华洛世奇</a> <a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=0%2D0%2D1245' target='_blank'>禾场纯银</a> <a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=0%2D%CC%EC%C8%BB%CB%AE%BE%A7%2D0' target='_blank'>天然水晶</a> <a href='http://www.tiantian.com/jewelries/browse_jewelries.asp?pagecode=Jewelries&searchwordarr=0%2D%CC%EC%C8%BB%ED%BE%CA%AF%2D0' target='_blank'>砭石</a>";

			break;
			
		case  "5"  :
			obj[5].className = "topselect";
			document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/huang.gif)"; 
			 document.getElementById("dvbase").innerHTML="热门关键字：<a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=%C6%A4%B4%F8%2F%D1%FC%B4%F8%2D0%2D0' target='_blank'>皮带腰带</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=%C7%AE%B0%FC%2D0%2D0&sorttype=4' target='_blank'>钱包</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=%C0%F1%BA%D0%CC%D7%D7%B0%2D0%2D0' target='_blank'>皮具礼盒</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=%B5%E7%C4%D4%B0%FC%2D0%2D0' target='_blank'>电脑包</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=0%2D%D5%E6%C6%A4%2D0' target='_blank'>真皮</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=0%2DPU%2D0' target='_blank'>PU</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=0%2D%C4%E1%C1%FA%2D0' target='_blank'>尼龙</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchArrKey=%B5%A5%BC%E7%B0%FC%2D0%2D0%2D0%2D%C5%AE%BF%EE&searchwordarr=%B5%A5%BC%E7%B0%FC%2D0%2D0&sorttype=5' target='_blank'>女包</a> <a href='http://www.tiantian.com/bags/browse_bags.asp?pagecode=Bags&searchwordarr=%CA%D6%C1%E0%B0%FC%2D0%2D0&sorttype=5' target='_blank'>拎包</a> ";

			break;
			
		case  "6"  :
			obj[6].className = "topselect";
			document.getElementById("dvbg").style.backgroundImage = "url(http://www.tiantian.com/includex/new-img/te.gif)"; 
			 document.getElementById("dvbase").innerHTML="热门关键字：<a href='http://www.tiantian.com/watchs/browse_watchs.asp?bradeid=1175&sorttype=2'>卡西欧</a> <a href='../watchs/browse_watchs.asp?bradeid=1257'>斯沃琪</a> <a href='http://www.tiantian.com/watchs/browse_watchs.asp?bradeid=1174&sorttype=2'>西铁城</a>  <a href='http://www.tiantian.com/watchs/browse_watchs.asp?bradeid=1150'>天梭</a>  <a href='http://www.tiantian.com/watchs/browse_watchs.asp?bradeid=1151'>浪琴</a> <a href='http://www.tiantian.com/watchs/browse_watchs.asp?bradeid=1172&sorttype=2'>梅花</a>  <a href='http://www.tiantian.com/watchs/browse_watchs.asp?searchArrKey=%C4%D0%B1%ED%2D1%2D1%2D1%2D1&sorttype=2'>男表</a> <a href='http://www.tiantian.com/watchs/browse_watchs.asp?searchArrKey=%C5%AE%B1%ED%2D1%2D1%2D1%2D1&sorttype=2'>女表</a>";
		 
			break;
   }
  
}