function categoryDiv(){
	this.v;
	this.c;
	this.t;
	this.dropShow = false;
	this.el;
	this.fadeTimer;
	this.dropdown = _dropdown;
	this.dropFadeIn = _dropFadeIn;
	this.dropFadeOut = _dropFadeOut; 
	this.dropdownHide = _dropdownHide;
	this.hiLight = _hiLight;
	this.CheckMe = _CheckMe;
}		
		
function _dropdown(){
	var value = ""+this.v.value;	
	for (var i=0;i<value.length;i++){
		if (value.substring(i,i+1) == 1)
			this.c[i].checked=true;
		else
			this.c[i].checked=false;
	}
	if(this.dropShow){
		this.dropFadeOut();
	}else{
		this.el.style.visibility="visible";
		this.dropFadeIn();
	}
}

function _dropFadeIn(){//选单淡入的效果
	this.el.filters.alpha.opacity=100;
	this.dropShow=true;
}
function _dropFadeOut(){//选单淡出的效果
	this.el.filters.alpha.opacity=0;
	this.dropShow=false;
	this.el.style.visibility="hidden";
}

function _dropdownHide(){
	if(this.dropShow){
		this.dropFadeOut();
		this.dropShow=false;
	}
}
function _hiLight(obj){//高亮度显示指标位置
	if(this.dropShow){
		for(i=0;i<obj.parentElement.childNodes.length;i++){
			obj.parentElement.childNodes(i).className="link_record0"
		}
		obj.className="link_record1"
	}
}
function _CheckMe(){//替换显示内容
	var text="";
	var value="";
	var index=0;
	for (var i=0;i<this.c.length;i++){
		if (this.c[i].checked == true){		
			value += 1;
			text += this.c[i].value+";&nbsp;&nbsp;&nbsp;"; 
			index ++;
			if (index == 2){
				index = 0;
				text += "<br>"
			}
		}else{
			value += 0;
		}
	}
	this.t.innerHTML = text;
	this.v.value = value;
	this.dropdownHide();
}