// ÇÃ·¡½Ã »ðÀÔ =======================================================================================================

function FlashObject(swf, width, height, bgcolor, id, wmode, flashvars)
{
    var strFlashTag = new String();
    
    if (navigator.appName.indexOf("Microsoft") != -1)
    {
        strFlashTag += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ';
        strFlashTag += 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=version=8,0,0,0" ';
        strFlashTag += 'id="' + id + '" width="' + width + '" height="' + height + '">';
        strFlashTag += '<param name="movie" value="' + swf + '"/>';
        
        if(flashvars != null) {strFlashTag += '<param name="flashvars" value="' + flashvars + '"/>'};
        strFlashTag += '<param name="quality" value="best"/>';
        strFlashTag += '<param name="bgcolor" value="' + bgcolor + '"/>';
        strFlashTag += '<param name="menu" value="false"/>';
        strFlashTag += '<param name="salign" value="LT"/>';
        strFlashTag += '<param name="scale" value="noscale"/>';
        strFlashTag += '<param name="wmode" value="' + wmode + '"/>';
        strFlashTag += '<param name="allowScriptAccess" value="sameDomain"/>';
        strFlashTag += '</object>';
    }
    else
    {
        strFlashTag += '<embed src="' + swf + '" ';
        strFlashTag += 'quality="best" ';
        strFlashTag += 'bgcolor="' + bgcolor + '" ';
        strFlashTag += 'width="' + width + '" ';
        strFlashTag += 'height="' + height + '" ';
        strFlashTag += 'menu="false" ';
        strFlashTag += 'scale="noscale" ';
        strFlashTag += 'id="' + id + '" ';
        strFlashTag += 'salign="LT" ';
        strFlashTag += 'wmode="' + wmode + '" ';
        strFlashTag += 'allowScriptAccess="sameDomain" ';
        if(flashvars != null) {strFlashTag += 'flashvars="' + flashvars + '" '};
        strFlashTag += 'type="application/x-shockwave-flash" ';
        strFlashTag += 'pluginspage="http://www.macromedia.com/go/getflashplayer">';
        strFlashTag += '</embed>';
    }

 document.write(strFlashTag);
}

function getflash(URL,width,height,wmode) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+width+'" height="'+height+'">');
	document.write('<param name="movie" value="'+URL+'">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="'+wmode+'">');
	document.write('<embed src="'+URL+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed></object>');
}

// ÀÌ¹ÌÁö ·Ñ¿À¹ö =======================================================================================================

function CHIMG(obj){
	var str = obj.src;               
	if(str.indexOf('_on.gif') < 0){         
		ss = str.substr(0, str.indexOf('.gif'))      
		obj.src = ss + "_on.gif";                         
	}else{                                      
		ss = str.substr(0, str.indexOf('_on.gif'))
		obj.src = ss + ".gif";
	}
}

// ·¹ÀÌ¾îº¸ÀÌ±â/°¨Ãß±â =================================================================================================

function showLayer(id) { 
    document.getElementById(id).style.display = "block"; 
    return true; 
} 
function hideLayer(id) { 
    document.getElementById(id).style.display = "none"; 
    return true; 
}

function showHideLayer(id) { 
	var divObj = eval(id);
 
	if (divObj.style.display == "block"	|| divObj.style.display == "") {
		divObj.style.display="none";
	}else {
		divObj.style.display="block";
	}
}

// ³×ºñ°ÔÀÌ¼Ç =======================================================================================================

// Home
function Home(){
	window.location.href = '/index.jsp';
}

//GNB »çÀÌÁî Á¶Àý =======================================================================================================

//´ÝÇôÀÖ´Â »óÅÂ¿¡¼­ uccÅ¬¸¯ÇÏ¸é openLayer(true);
//¿­·ÁÀÖ´Â »óÅÂ¿¡¼­ uccÅ¬¸¯ÇÏ¸é openLayer(false);
function openLayer(size){
	if(size){
		//true
	}
	else{
		//false
	};
}
