
function fnFlashObject(path, width, height, flashvars) {
    var m_protocol = document.location.protocol.replace(":","");
    var m_movie = path;
    var m_width = width;
    var m_height = height;
    var m_flashvars = flashvars;

    this.wmode = "transparent";
    this.id = "";
    this.quality = "high";
    this.menu = "false";
    this.allowScriptAccess = "sameDomain";

    var html;

	html ="";
    html += "<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='"+ m_protocol +"://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='" + m_width + "' height='" + m_height + "'";
    if (this.id != "") html += " id='" + this.id + "'";
    html += ">";

    html += "<param name='allowScriptAccess' value='" + this.allowScriptAccess + "' />";
    html += "<param name='movie' value='" + m_movie + "' />";
    html += "<param name='menu' value='" + this.menu + "' />";
    html += "<param name='quality' value='" + this.quality + "' />";
    if (this.wmode != "") html += "<param name='wmode' value='" + this.wmode + "' />";
    if (m_flashvars != "") html += "<param name='FlashVars' value='" + m_flashvars + "' />";

    html += "<embed src='" + m_movie + "' quality='" + this.quality + "' pluginspage='"+ m_protocol +"://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='" + m_width + "' height='" + m_height + "'";
    html += " allowScriptAccess='" + this.allowScriptAccess + "'";
    if (this.wmode != "") html += " wmode='" + this.wmode + "'";
    if (m_flashvars != "") html += " FlashVars='" + m_flashvars + "'";
    html += " /></object>";

    document.write(html);

}

var page,wid,hit,nam;
function win(page,nam,wid,hit){
var  windo=eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=no,menubar=no,width='+wid+',height='+hit+',top=10,left=10")');
windo.focus();
  }
  
  
function winscroll(page,nam,wid,hit){
var  windo=eval('window.open("'+page+'","'+nam+'","status=no,toolbar=no,resizable=no,scrollbars=yes,menubar=no,width='+wid+',height='+hit+',top=100,left=100")');
windo.focus();
  }
  
  
  // ¸ÞÀÎÆäÀÌÁö ÅÇ º¯°æÇÏ±â ( lid ÄÁÆ®·Ñ ÇÒ ·¹ÀÌ¾î ÀÌ¸§ / tno ¼±ÅÃµÈ ÅÇ ¹øÈ£ / tname È°¼ºÈ­½ÃÅ³ ÅÇ ¿ÀºêÁ§Æ®)
function  tabCng(lid,tno) {
	if (!lid || !tno) { alert('ÅÇÀÌ ÁöÁ¤µÇÁö ¾Ê¾Ò½À´Ï´Ù.'); return; }
	if (!getEi(lid + '_1') || !getEi(lid + '_tabs_')) { alert('ÁöÁ¤ÇÑ ¸íÄª "' + lid + '" °ú(¿Í) ÀÏÄ¡ÇÏ´Â ¿ÀºêÁ§Æ®°¡ ¾ø½À´Ï´Ù.'); return; }
	for(var i=1;getEi(lid + '_' + i);i++) {	getEi(lid + '_' + i).style.display = "none"; }
	for(var i=1;getEi(lid + '_tabs_' + i);i++) {	getEi(lid + '_tab_' + i).src = getEi(lid + '_tabs_' + i).src.replace("s.gif", "off.gif"); }
	getEi(lid + '_tabs_' + tno).src = getEi(lid + '_tabs_' + tno).src.replace("on.", "s.");
	getEi(lid + '_tabs_' + tno).src = getEi(lid + '_tabs_' + tno).src.replace("off.", "s.");
	getEi(lid + '_' + tno).style.display = "block";
}
  
  // NameÀ¸·Î ¿ÀºêÁ§Æ® ÇÈ¾÷
function getEn(n) { return document.getElementsByName(n); }

// ID·Î ¿ÀºêÁ§Æ® ÇÈ¾÷
function getEi(n) { return document.getElementById(n); }

// rollover [Åõ¸íÃ³¸®µÈ png Ã¼Å© Æ÷ÇÔ]
function over(imgName) {
	if(imgName.src) if(imgName.src.indexOf('_s.') != "-1") return;
	if(imgName.style.filter) imgName.style.filter = imgName.style.filter.replace("off.", "on."); 
	else imgName.src = imgName.src.replace("off.", "on.");
}
// rollout [Åõ¸íÃ³¸®µÈ png Ã¼Å© Æ÷ÇÔ]
function out(imgName) {
	if(imgName.src) if(imgName.src.indexOf('_s.') != "-1") return;
	if(imgName.style.filter) imgName.style.filter = imgName.style.filter.replace("on.", "off."); 
	else imgName.src = imgName.src.replace("on.", "off.");
}






