function showhide(id){
if (document.getElementById){
obj = document.getElementById(id);
if (obj.style.display == "none"){
obj.style.display = "";
} else {
obj.style.display = "none";
}
}
}

function dhide(id){
if (document.getElementById){
obj = document.getElementById(id);
obj.style.display = "none";
}
}

function dshow(id){
if (document.getElementById){
obj = document.getElementById(id);
obj.style.display = "";
}
}

function do_click_cat(kk){
	showhide('display_menu_2');
	showhide('display_menu_3');
	showhide('cathold');
	showhide('cathold2');
}

function mytab_more(){
	setMyCookie('nstab',2,2);
}

function mytab_nomore(){
	setMyCookie('nstab',1,2);
}

function setMyCookie(c_name,value,expiredays)
{
var exdate=new Date();
exdate.setDate(exdate.getDate()+expiredays);
document.cookie=c_name+ "=" +escape(value)+
((expiredays==null) ? "" : ";path=/;expires="+exdate.toGMTString());
}

function getMyCookie(c_name)
{
if (document.cookie.length>0)
  {
  c_start=document.cookie.indexOf(c_name + "=");
  if (c_start!=-1)
    { 
    c_start=c_start + c_name.length+1; 
    c_end=document.cookie.indexOf(";",c_start);
    if (c_end==-1) c_end=document.cookie.length;
    return unescape(document.cookie.substring(c_start,c_end));
    } 
  }
return "";
}

function mytab_restore(){
	var ex = getMyCookie('nstab');
	var wwx = getMyCookie('flowertabs');
	if(wwx==0)
	{
			setMyCookie('mytabis',1,2);
	}
	if(ex == '2')
	{
		dhide('display_menu_2');
		dhide('cathold');
		dshow('display_menu_3');
		dshow('cathold2');
	}
	else
	{
		dhide('display_menu_3');
		dhide('cathold2');
		dshow('display_menu_2');
		dshow('cathold');
	}
}

var lo = window.location.href;
if(lo == 'http://ke4pr.p5xt7.servertrust.com' || lo == 'http://ke4pr.p5xt7.servertrust.com/default.asp')
	{
	setMyCookie('mytabis',1,2);
	setMyCookie('flowertabs','0',2);
	}


