	function bioNaviTab(){
		this.init=function(){
			initNaviTab();
		}
	function initNaviTab(){
		obj=document.getElementById("tabcontain");
		if(obj==undefined||obj.childNodes==undefined){
			return;
		}
		nodeList=obj.childNodes;
		for(i=0;i<nodeList.length;i++){
			node=nodeList[i];
			if(node.className=='nav'){
				tabHead(node);
			}
		}

		function tabHead(obj){
		nodeList=obj.childNodes;
		var show=readCookie("show_tab");
		var showTabObj;
		for(i=0;i<nodeList.length;i++){
			node=nodeList[i];
			if(node==undefined||node.tagName==undefined){
				continue;	
			}else{
				if(node.tagName=='LI'){
					node.onmouseover=function(){showNode(this)};
					node.onmouseout=function(){};
					if(show!=undefined&&show!=""&&show==node.getAttribute("show")){
						showTabObj=node;
					}
				}
			}
		}
		showNode(showTabObj);
		}
	function showNode(obj){
		if(obj==undefined)return;
		nodeList=obj.parentNode.childNodes;
		for(i=0;i<nodeList.length;i++){
			node=nodeList[i];
			node.className="nav_tab";
		}
		obj.className="nav_tab_selected";
		showId=obj.getAttribute("show");
		con=document.getElementById("tabcontain");
		nodeList=con.childNodes;
		for(i=0;i<nodeList.length;i++){
			node=nodeList[i];
			if(node.className=="nav_tab_content_selected"){
				node.className="nav_tab_content";
				break;
			}
		}
		document.cookie="show_tab="+showId+";path=/";
		showObj=document.getElementById(showId);
		if(showObj!=undefined){
			showObj.className="nav_tab_content_selected";
		}
	}
	function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}
	}
}
function initNaviTab(){
	new bioNaviTab().init();
}
function dealRecordList(){
		nodeList=document.getElementsByTagName("DIV");
		for(i=0;i<nodeList.length;i++){
			node=nodeList[i];
			if(node.getAttribute("target")!=undefined){
				getLinks(node,node.getAttribute("target"));
				break;
			}
		}
		function getLinks(obj,target){
			nodeList=obj.getElementsByTagName("A");
			for(i=0;i<nodeList.length;i++){
				node=nodeList[i];
				node.onclick=function(){new bkAjaxLoad(target).loadToDiv(this.href);return false;}
			}
		}
}
