// JavaScript Document
function show_model(this_obj,which_parent_id,which_class){//
	if(document.getElementById==null){return false;}
	if(document.getElementsByTagName==null){return false;}
	var obj=document.getElementById(which_parent_id);
	var hidden_obj=document.getElementById("is_basic");
	if(hidden_obj==null){return false;}
	if(obj==null){return false;}
	var childs_obj=obj.getElementsByTagName("li");
	if(childs_obj.length<1){return false;}
	var childs_obj_length=childs_obj.length;
	var current_title=this_obj.getAttribute("title");
	var current_value=this_obj.firstChild.nodeValue;
	if(current_title=="Basic"){//如果当前状态为基本
		for(var i=0;i<childs_obj_length;i++){
			if(document.all){
				if(childs_obj[i].getAttribute("className").length>0){
					childs_obj[i].style.display='none';
				}
			}else{
				if(childs_obj[i].getAttribute("class")!=null){
					childs_obj[i].style.display='none';
				}
			}
		}
		this_obj.setAttribute("title","Advanced");
		this_obj.firstChild.nodeValue="Advanced";
		hidden_obj.setAttribute("value","0");
		Set_Cookie("is_basic","0");
	}else{
		for(var i=0;i<childs_obj_length;i++){
			if(document.all){
				if(childs_obj[i].getAttribute("className").length>0){
					childs_obj[i].style.display='';
				}
			}else{
				if(childs_obj[i].getAttribute("class")!=null){
					childs_obj[i].style.display='';
				}
			}
		}
		this_obj.setAttribute("title","Basic");
		this_obj.firstChild.nodeValue="Basic";
		hidden_obj.setAttribute("value","1");
		Set_Cookie("is_basic","1");
	}
	return false;
}

function show_model1(this_obj,which_parent_id,which_class,is_basic1){
	if(document.getElementById==null){return false;}
	if(document.getElementsByTagName==null){return false;}
	var obj=document.getElementById(which_parent_id);
	var hidden_obj=document.getElementById(is_basic1);
	if(hidden_obj==null){return false;}
	if(obj==null){return false;}
	var childs_obj=obj.getElementsByTagName("tr");
	if(childs_obj.length<1){return false;}
	var childs_obj_length=childs_obj.length;
	var current_title=this_obj.getAttribute("title");
	var current_value=this_obj.firstChild.nodeValue;
	if(current_title=="Basic"){
		//չ
		for(var i=0;i<childs_obj_length;i++){
			if(document.all){
				if(childs_obj[i].getAttribute("className").length>0){
					childs_obj[i].style.display='';
				}
			}else{
				if(childs_obj[i].getAttribute("class")!=null){
					childs_obj[i].style.display='';
				}
			}
		}
		this_obj.setAttribute("title","Advanced");
		this_obj.firstChild.nodeValue="Advanced";
		hidden_obj.setAttribute("value","0");
	}else{
		//
		//alert("");
		for(var i=0;i<childs_obj_length;i++){
			if(document.all){
				if(childs_obj[i].getAttribute("className").length>0){
					childs_obj[i].style.display='none';
				}
			}else{
				if(childs_obj[i].getAttribute("class")!=null){
					childs_obj[i].style.display='none';
				}
			}
		}
		this_obj.setAttribute("title","Basic");
		this_obj.firstChild.nodeValue="Basic";
		hidden_obj.setAttribute("value","1");
		
	}
	return false;
}
addLoadEvent(initializationUI);
function initializationUI(){
	var cookieValue=Get_Cookie("is_basic");
	if(cookieValue=="0"){
		var p1=document.getElementById("thisALink");
		if(p1!=null){
			Set_Cookie("is_basic","0");
			p1.onclick();
		}
	}
}