function navigation() {
	var title=document.title;
	title=title.substring(0,4);
	switch(title) {
		//case "用户中心":{
//						var user_login_a=document.getElementById("user_login");
//						    user_login_a.style.cssText = "color:#f80c17";
//							document.getElementById("user_login").href="";
//							alert(document.getElementById("user_login").href);
//						var theLink=document.getElementById("user_login");
//							theLink.setAttribute("href","");
//							alert(theLink); 
//						};
//			break;	
		case "首页":{var navigation_index = document.getElementById("navigation_index");
							navigation_index.style.cssText = " background:url(/images/header/navigation_left_js.gif) 0px 0px no-repeat;";
						var navigation_index_a=document.getElementById("navigation_index_a");
						    navigation_index_a.style.cssText = "color:#000";
						};
			break;					
		case "礼品分类":{var navigation_category = document.getElementById("navigation_category");
							navigation_category.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var navigation_category_a=document.getElementById("navigation_category_a");
						    navigation_category_a.style.cssText = "color:#000";
						};
			break;
		case "最新礼品":{var zuixinlipin = document.getElementById("zuixinlipin");
							zuixinlipin.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var zuixinlipin_a=document.getElementById("zuixinlipin_a");
						    zuixinlipin_a.style.cssText = "color:#000";
						};
			break;
		case "推荐礼品":{var tuijianlipin = document.getElementById("tuijianlipin");
							tuijianlipin.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var tuijianlipin_a=document.getElementById("tuijianlipin_a");
						    tuijianlipin_a.style.cssText = "color:#000";
						};
			break;
		case "现货礼品":{var lipinxianhuo = document.getElementById("lipinxianhuo");
							lipinxianhuo.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var lipinxianhuo_a=document.getElementById("lipinxianhuo_a");
						    lipinxianhuo_a.style.cssText = "color:#000";
						};
			break;
			
			
		case "行业礼品":{var hangyielipin= document.getElementById("hangyielipin");
							hangyielipin.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var hangyielipin_a=document.getElementById("hangyielipin_a");
						    hangyielipin_a.style.cssText = "color:#000";
						};
			break;	
		case "公司简介":{var navigation_about = document.getElementById("navigation_about");
							navigation_about.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var navigation_about_a=document.getElementById("navigation_about_a");
						    navigation_about_a.style.cssText = "color:#000";
						};
			break;	
		case "联系方式":{var navigation_contact = document.getElementById("navigation_contact");
							navigation_contact.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var navigation_contact_a=document.getElementById("navigation_contact_a");
						    navigation_contact_a.style.cssText = "color:#000";
						};
			break;
			
		case "付款方式":{var navigation_fukuanfangshi = document.getElementById("navigation_fukuanfangshi");
							navigation_fukuanfangshi.style.cssText = " background:url(/images/header/navigation_middle_other.gif) 0px 0px no-repeat;";
						var navigation_fukuanfangshi_a=document.getElementById("navigation_fukuanfangshi_a");
						    navigation_fukuanfangshi_a.style.cssText = "color:#000";
						};
			break;	
			
		case "采购流程":{var navigation_help = document.getElementById("navigation_help");
							navigation_help.style.cssText = " background:url(/images/header/navigation_right_a.gif) 0px 0px no-repeat;";
						var navigation_help_a=document.getElementById("navigation_help_a");
						    navigation_help_a.style.cssText = "color:#000";
						};
			break;				

		default:
			break;
	}
}




//help
//function table() {
//	var list_table = document.getElementById("help_table");
//	if(list_table!=null&&list_table!="") {
//		var list_tr = list_table.getElementsByTagName("tr");
//		var list_td = list_table.getElementsByTagName("td");	
//		for(var i = 1; i < list_tr.length; i++) {
//			if(i%2 == 0) {
//				list_tr[i].style.cssText = "background-color: #bfe9ff;";
//			} else {
//				list_tr[i].style.cssText = "background-color: #e3f5ff;";
//			}
//		}
//	}
//}
////news_list
//function list() {
//	var news_list_div = document.getElementById("right");
//	var news_list_li = news_list_div.getElementsByTagName("li");
//	for(var i = 0; i < news_list_li.length; i++) {
//		if(i%2 == 0) {
//			news_list_li[i].style.cssText = "background-color: #eff9fe;";
//		} else {
//			news_list_li[i].style.cssText = "background-color: #dff2fb;";
//		}
//	}
//}
////user
//function user() {
//	var title=document.title;
//	var theLink=document.getElementById("user_login");
//	if(title=="用户中心") {
//		theLink.setAttribute("href","http://www.15gift.com/user/user_info.asp");
//	}
//}
////通过ajax获取服务器端对相关产品的简介
//var first="";
//var last="";
//var xmlHttp;
//var allcontent="";
//
//function createXMLHttpRequest() {
//	if (window.ActiveXObject) {
//		xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
//		}
//	else if (window.XMLHttpRequest) {
//		xmlHttp= new XMLHttpRequest();
//		}
//	}
//function callServer() {
//		createXMLHttpRequest();
////		var url = "test_info.asp?time="+ new Date().getDate();
//		var h1=document.getElementById("new").firstChild.nodeValue;
//		var url = "test_info.asp?product="+escape(h1)+"&amp;time="+ new Date().getDate();
//		xmlHttp.onreadystatechange = updatePage;
//		xmlHttp.open("GET", url, true);
//		xmlHttp.send(null);
//}
//function updatePage() {
//	if (xmlHttp.readyState!= 4) {	
//	}
//	else {
//		if (xmlHttp.readyState == 4) {		
//			if (xmlHttp.status == 200) {
//				allcontent = xmlHttp.responseText;
//				first=allcontent.substring(0,150);
//				last=allcontent.substring(150,allcontent.length);
//				document.getElementById("first").innerHTML=first;
//			}
//			else if (xmlHttp.status == 404) {
//				alert("找不到页面！");
//			}
//			else {
//				alert("错误代码:"+xmlHttp.status);
//			}
//		}	
//	}
//}
////简介的控制显示
//function shower() {
//	var content=document.getElementById("show").firstChild.nodeValue;	
//	if(content=="更多") {
//		document.getElementById("hidder").style.display='';
//		document.getElementById("hidder").innerHTML=last;	
//		document.getElementById("show").firstChild.nodeValue="隐藏";
//	}
//	else {
//		document.getElementById("show").firstChild.nodeValue="更多";
//		document.getElementById("hidder").style.display='none';
//	}
//}




//最新，推荐，礼品现货
//var flag = false;
//function shower() {
//	if(!flag) {
//		document.getElementById("abs").style.cssText="width: 100%; height:auto; overflow:auto;display:block;"
//		document.getElementById("show").firstChild.nodeValue="隐藏";
//		flag = true;
//	} else {
//		document.getElementById("abs").style.cssText="width: 100%; height:40px; overflow: hidden; display:block;"
//		document.getElementById("show").firstChild.nodeValue="更多";				
//		flag = false;
//	}
//
//}
//行业礼品
//var hangye = false;
//function hangyeshower() {
//	if(!hangye) {
//		document.getElementById("abs").style.cssText="width:650px; height:auto; overflow:auto;display:block;"
//		document.getElementById("show_hidder").firstChild.nodeValue="隐藏";
//		hangye = true;
//	} else {
//		document.getElementById("abs").style.cssText="width:650px; height:40px; overflow: hidden; display:block;"
//		document.getElementById("show_hidder").firstChild.nodeValue="更多";				
//		hangye = false;
//	}
//
//}
//大类礼品
//var hangye = false;
//function bigclassshower() {
//	if(!hangye) {
//		document.getElementById("abs").style.cssText="width:888px; height:auto; overflow:auto;display:block;"
//		document.getElementById("show_hidder").firstChild.nodeValue="隐藏";
//		hangye = true;
//	} else {
//		document.getElementById("abs").style.cssText="width:888px; height:40px; overflow: hidden; display:block;"
//		document.getElementById("show_hidder").firstChild.nodeValue="更多";				
//		hangye = false;
//	}
//
//}