/*---------------------------------------------------------------------------------------------------------*/
// #  ÇÃ·¡½¬ Ãâ·Â	#
/*---------------------------------------------------------------------------------------------------------*/
function obj_fun(strObjectTag){
	document.write(strObjectTag);
}



/*---------------------------------------------------------------------------------------------------------*/
// #  ÇÃ·¡½¬ ¸®»çÀÌÂ¡ Ã³¸®	#
/*---------------------------------------------------------------------------------------------------------*/
function onresize(){

	var doc_width = (document.body.scrollWidth || document.documentElement.scrollWidth);
	var obj = document.getElementById("Wrap");
	if(doc_width<=1024){
		obj.style.width="1024px";
	}else
	{
		obj.style.width="100%";
	}
}



/*---------------------------------------------------------------------------------------------------------*/
// # Media Player Object #
/*---------------------------------------------------------------------------------------------------------*/
function playerprint(id,src,width,height)
{
 document.write('<object id="'+id+'" width="'+width+'" height="'+height+'" classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715">');
 document.write('<param name="Filename" value="'+src+'">');
 document.write('<param name="AutoStart" value="false">');
 document.write('<param name="ShowTracker" value="true">');
 document.write('<param name="ShowControls" value="true">');
 document.write('<param name="ShowGotoBar" value="false">');
 document.write('<param name="ShowDisplay" value="false">');
 document.write('<param name="ShowStatusBar" value="false">');
 document.write('<param name="AutoSize" value="false">');
 document.write('</object>');
}

/*---------------------------------------------------------------------------------------------------------*/
// # ÀÌº¥Æ® °Ô½ÃÆÇ ³»(¼û±è/ÆîÄ§) ¼³Á¤	#
/*---------------------------------------------------------------------------------------------------------*/
var previd = null;

function subBlock(id) {

	if (previd != null) {
		if (previd != id) {
			document.getElementById(previd).style.display = 'none';
		}
	}

	if (document.getElementById(id).style.display == 'none') {
		document.getElementById(id).style.display = 'block';
	} else {
		document.getElementById(id).style.display = 'none';
	}
	previd = id;
}


/* definition list toggle */
function initToggle(tabContainer) {
	triggers = tabContainer.getElementsByTagName("a");

	for(i = 0; i < triggers.length; i++) {
		if (triggers.item(i).href.split("#")[1])
			triggers.item(i).targetEl = document.getElementById(triggers.item(i).href.split("#")[1]);

		if (!triggers.item(i).targetEl)
			continue;

		triggers.item(i).targetEl.style.display = "none";
		triggers.item(i).onclick = function () {
			if (tabContainer.current == this) {
				this.targetEl.style.display = "none";
				tabContainer.current = null;
			} else {
				if (tabContainer.current) {
					tabContainer.current.targetEl.style.display = "none";
				}
				this.targetEl.style.display = "block";
				tabContainer.current = this;
			}
			return false;
		}
	}
}