function BE(onImg,outImg){
	this.onImg		= onImg;
	this.outImg		= outImg;
	this.cid		= 0;
	this.preName	= null;
}

function BEctrl(o,a){
	
	var cNum			= parseInt(o.id.split('_')[1]);
		a.preName		= o.id.split('_')[0];
		o.style.cursor	= "pointer";
		o.onfocus = function(){
			blur();
		}
	for(var i=0;i<a.onImg.length;i++){
		var tElement = document.getElementById(a.preName+'_'+i);
		var tContent = document.getElementById(a.preName+'-'+i);
		if(i!=cNum){
			tElement.src = a.outImg[i];
			tContent.style.display = "none";
		}else{
				tElement.src = a.onImg[i];
				tContent.style.display = "block";
		}
	}
	
}

function BEdefault(ide){
	if(ide.preName){
		for(var i=0;i<ide.onImg.length;i++){
			var tElement = document.getElementById(ide.preName+'_'+i);
			var tContent = document.getElementById(ide.preName+'-'+i);
			if(i!=ide.cid){
				tElement.src = ide.outImg[i];
				tContent.style.display = "none";
			}else{
				tElement.src = ide.onImg[i];
				tContent.style.display = "block";
			}
		}
	}

}




