	cok = document.cookie ;
	cok = unescape(cok) ;
	re = new RegExp("id=([^;]*)");
	if (cok.match(re)) {
		cok = RegExp.$1 ;
	}else{
		cok = "detail,map,inn,comment," ;
	}

function startcok(id) {
	if(checkcok(id,cok)) {
		dspon(id);
	}else{
		dspoff(id);
	}
	return 1 ;
}

function clicok(id) {
	cok = document.cookie ;
	cok = unescape(cok) ;
	re = new RegExp("id=([^;]*)");
	if (cok.match(re)) {
		cok = RegExp.$1 ;
	}else{
		cok = "" ;
	}
	if(checkcok(id,cok)){
		cokoff(id,cok) ;
	}else{
		cokon(id,cok) ;
	}
	return 1 ;
}

function dspon(id) {
	oElement = document.getElementById(id);
	oElement.getAttributeNode("CLASS").value = "" ;
//	this.getAttributeNode("CLASS").value = "on" ;
	return 1 ;
}

function dspoff(id) {
	oElement = document.getElementById(id);
	oElement.getAttributeNode("CLASS").value = "hidden" ;
//	this.getAttributeNode("CLASS").value = "off" ;
	return 1 ;
}

function checkcok(id,cok) {
	re = new RegExp(id);
	if (cok.match(re)) {
		return true;
	}else{
		return false;
	}
	return true;
}

function cokon(id,cok) {
	cok += ',' + id ;
	var period = 30 ;
	var nowtime = new Date().getTime();
	var clear_time = new Date(nowtime + (60 * 60 * 24 * 1000 * period));
	var limit = clear_time.toGMTString();
	document.cookie = "id=" + escape(cok) + "; expires=" + limit;
	dspon(id) ;
	return cok;
}

function cokoff(id,cok) {
	cok = cok.replace(id,"") ;
	var period = 30 ;
	var nowtime = new Date().getTime();
	var clear_time = new Date(nowtime + (60 * 60 * 24 * 1000 * period));
	var limit = clear_time.toGMTString();
	document.cookie = "id=" + escape(cok) + "; expires=" + limit;
	dspoff(id) ;
	return cok;
}
