/****************************
* ¿¥ÆÄ½º°ÔÀÓ ·¹ÀÌ¾î ÅëÇÕ
* by inomy
*****************************/

function div_emg_cls() {
	this.divName = null;
	this.obj = '';
	this.top = '';
	this.left = '';
	this.visible = 'hidden';
	this.shtml = '';
	this.zindex = '';
	this.position = '';
	
	this.show = show_emg_layer;
	this.hide = hide_emg_layer;
	this.start = init_emg_layer;
	this.add = add_emg_html;
	
	//¿¹¿Ü»çÇ× Ã³¸®¸¦ À§ÇØ.
	this.tmpFunc = '';
	this.tmpFunc2 = '';
	this.tmpFunc3 = '';
	this.tmpFunc4 = '';
	this.tmpFunc5 = '';
	this.tmpFunc6 = '';
	this.tmpFunc7 = '';
	this.tmpFunc8 = '';
	this.tmpFunc9 = '';
	this.tmpFunc10 = '';
}

function show_emg_layer() {
	this.divName.style.visibility = 'visible';
}

function hide_emg_layer() {
	this.divName.style.visibility = 'hidden';
}

function init_emg_layer() {
	this.divName.innerHTML = this.shtml;

	//·¹ÀÌ¾î¼Ó¼ºº¯°æ»çÇ× Ã³¸®
	if(this.top != '') {
		this.divName.style.top = this.top;
	}
	if(this.left != '') {
		this.divName.style.left = this.left;
	}
	if(this.zindex != '') {
		this.divName.style.zindex = this.zindex;
	}
	if(this.position != '') {
		this.divName.style.position = this.position;
	}
}

function add_emg_html(str) {
	this.shtml += str;
}