

function parseShow(){
	var url = window.location.href;
	if(url.indexOf("decorator")!=-1){
		dojo.byId("decorator").className="selected";
	}else if(url.indexOf("/bidding/")!=-1){
		dojo.byId("bidding").className="selected";
	}else if(url.indexOf("clog")!=-1){
		dojo.byId("clog").className="selected";
	}else if(url.indexOf("case")!=-1){
		dojo.byId("case").className="selected";
	}else if(url.indexOf("expertsystem")!=-1){
		dojo.byId("des").className="selected";
	}else if(url.indexOf("groupbidding")!=-1){
		dojo.byId("group").className="selected";
	}else if(url.indexOf("myhome3d")!=-1){
		dojo.byId("myhome3d").className="selected";
	}
	
	
};

function parseUserAction(){
	var url = window.location.href;
	if(url.indexOf("links") !=-1){
		dojo.byId("links").className = "on";
	}else if(url.indexOf("aboutus") !=-1){
		dojo.byId("aboutus").className = "on";
	}else if(url.indexOf("contact") !=-1){
		dojo.byId("contact").className = "on";
	}else if(url.indexOf("service") !=-1){
		dojo.byId("service").className = "on";
	}else if(url.indexOf("hr") !=-1){
		dojo.byId("hr").className = "on";
	}else if(url.indexOf("sitemap") !=-1){
		dojo.byId("sitemap").className = "on";
	}
        
};

function Show_frame(id_num,num){
	for(var i=1;i<num+1;i++){document.getElementById("link_"+i).className=""}
	for(var i=1;i<num+1;i++){document.getElementById("menu_"+i).style.display="none"}
	document.getElementById("link_"+id_num).className="on";
	document.getElementById("menu_"+id_num).style.display="block";
};

function Show_nav(id_num,num){
	for(var i=1;i<num+1;i++){document.getElementById("link_"+i).className=""}
	for(var i=1;i<num+1;i++){document.getElementById("menu_"+i).style.display="none"}
	document.getElementById("link_"+id_num).className="current";
	document.getElementById("menu_"+id_num).style.display="block";
};

function Show_note(id_num){
	
		   if (document.getElementById("menu_"+id_num).style.display=="block"){
               document.getElementById("menu_"+id_num).style.display="none";
			   document.getElementById("link_"+id_num).className="";
              
			  
            } else {
              document.getElementById("link_"+id_num).className="on";
              document.getElementById("menu_"+id_num).style.display="block";
            }
	

};

function parseBidAction(){
	var url = window.location.href;
	if(url.indexOf("success") != -1){
		dojo.byId("fl").className = "on";
	}else if(url.indexOf("latest") != -1){
		dojo.byId("ll").className = "on";
	}else if(url.indexOf("all") != -1){
		dojo.byId("la").className = "on";
	}else{
		dojo.byId("lc").className = "on";
	}
};



function parseDecType(){
	return;
	var url = window.location.href;
	if(url.indexOf("h=1") != -1){
		dojo.byId("d_header").className = "on";
	}else if(url.indexOf("t=1") != -1){
		dojo.byId("type1").className = "on";
	}else if(url.indexOf("t=2") != -1){
		dojo.byId("type2").className = "on";
	}else if(url.indexOf("t=3") != -1){
		dojo.byId("type3").className = "on";
	}else if(url.indexOf("t=4") != -1){
		dojo.byId("type4").className = "on";
	}else{
		dojo.byId("type_all").className = "on";
	}
};

function parseDesState(){
	var url = window.location.href;
	if(url.indexOf("latest") != -1){
		dojo.byId("designer_latest_list").className = "on";
	}else if(url.indexOf("fee") != -1){
		dojo.byId("designer_fee_list").className = "on";
	}
	else if(url.indexOf("case") != -1){
		dojo.byId("designer_case_list").className = "on";
	}
	else if(url.indexOf("designer/list") != -1){
		dojo.byId("designer_all_list").className = "on";
	}
	else if(url.indexOf("decorator/latest") != -1){
		dojo.byId("decorator_latest_list").className = "on";
	}
	else if(url.indexOf("casequantity") != -1){
		dojo.byId("decorator_case_list").className = "on";
	}
};

function parseDecorState(){
	var url = window.location.href;
	if(url.indexOf("decorator/latest") != -1){
		dojo.byId("decorator_latest_list").className = "on";
	}
	else if(url.indexOf("casequantity") != -1){
		dojo.byId("decorator_case_list").className = "on";
	}
};
