/*firefox css plus start*/
var writeCode1;
var writeCode2;

writeCode1 = window.navigator.appName;
writeCode2 = window.navigator.appVersion;

if(writeCode1 == 'Netscape')
{
	document.write('<link rel="stylesheet" type="text/css" href="/_common/css/ff.css" />');
}
/*firefox css plus end*/

/*¼­ºê¸ÞÀÎ top margin*/
function submainMargin(){

	var ctnsHeight = document.getElementById('layoutDiv').clientHeight * -1;

	document.getElementById('main').style.marginTop = ctnsHeight;
}

// PNG ÀÌ¹ÌÁö
function pngImgBackGround(obj,imgSrc){

	if(writeCode1 == 'Netscape') obj.style.backgroundImage = 'url('+imgSrc+'.png)';
	else obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + imgSrc + ".png',sizingMethod='scale')";

	
}

function pngImgButton(imgSrc,width,height,alt,link){

	if(writeCode1 == 'Netscape' || writeCode2.indexOf('MSIE 7.0') >= 0)
	{
		document.write ('<a href="javascript:void(0)" onclick="goFrontMenu(\''+ link +'\'); return false;"><img src="'+ imgSrc +'.png" width="'+ width +'" height="'+ height +'" alt="'+ alt +'" /></a>');
	}
	else
	{
		document.write('<div><div style="position:absolute;"><a href="javascript:void(0)" onclick="goFrontMenu(\''+ link +'\'); return false;"><img src="/media/imgs/layout/t.gif" width="'+ width +'" height="'+ height +'" alt="'+ alt +'" /></a></div>');
		document.write('<img src="/media/imgs/layout/t.gif" style="width:'+ width +'px;height:'+ height +'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+ imgSrc +'.png\',sizingMethod=\'scale\');"></div>');
	}
}


// ¹è°æ margin
function layoutDivHeight(){

	var layoutHeight1 = document.getElementById('layoutDiv').clientHeight;
	var divTabType1Top = document.getElementById('brandLogoImg').clientHeight + 95;

	var brandProductHeight = parseInt(document.getElementById('brandProduct').style.marginTop) + parseInt(document.getElementById('brandProduct').clientHeight) + 80;
	var layoutContentsDivTop = parseInt(document.getElementById('layoutContentsDiv').offsetHeight) + 155;
	if(document.getElementById('brandContents'))
	{
		var checkValue1 = parseInt(document.getElementById('brandContents').style.marginTop) + parseInt(document.getElementById('brandContents').clientHeight)-100;
		var checkValue2 = brandProductHeight - layoutContentsDivTop + 330;
		if(checkValue1>checkValue2)
		{
			document.getElementById('layoutContentsDiv').style.marginBottom = checkValue1;
		}
		else
		{
			document.getElementById('layoutContentsDiv').style.marginBottom = checkValue2;
		}
		//document.getElementById('layoutContentsDiv').style.marginBottom = parseInt(document.getElementById('brandContents').style.marginTop) + parseInt(document.getElementById('brandContents').clientHeight)-100;
		//document.getElementById('layoutContentsDiv').style.marginBottom = brandProductHeight - layoutContentsDivTop + 330;
		document.getElementById('brandContents').style.marginTop = divTabType1Top + document.getElementById('divTabType1').clientHeight + 30;
	}
	else
	{
		if(brandProductHeight>layoutContentsDivTop)
		{
			document.getElementById('layoutContentsDiv').style.marginBottom = brandProductHeight - layoutContentsDivTop + 330;
		}
		else
		{
			document.getElementById('layoutContentsDiv').style.marginBottom = 350;
		}
	}
	if(document.getElementById('divTabType1'))
	{
		document.getElementById('divTabType1').style.marginTop = divTabType1Top;
	}

	if(writeCode1 == 'Netscape')
	{
		var layoutHeight2 = document.getElementById('layoutContentsDiv').clientHeight + 155;

		var brandProductLeft = parseInt(document.getElementById('brandProduct').style.marginLeft);
		var brandProductTop = parseInt(document.getElementById('brandProduct').style.marginTop);
		var brandBubbleLeft = parseInt(document.getElementById('brandBubble').style.marginLeft);
		var brandBubbleTop = parseInt(document.getElementById('brandBubble').style.marginTop);

		document.getElementById('brandProduct').style.marginLeft = brandProductLeft + 178;
		document.getElementById('brandProduct').style.marginTop = brandProductTop + 65;
		document.getElementById('brandBubble').style.marginLeft = brandBubbleLeft + 178;
		document.getElementById('brandBubble').style.marginTop = brandBubbleTop + 65;

		if(document.getElementById('divTabType1'))
		{
			var divTabType1Left = parseInt(document.getElementById('divTabType1').style.marginLeft);
			var divTabType1Top = parseInt(document.getElementById('divTabType1').style.marginTop);

			document.getElementById('divTabType1').style.marginLeft = divTabType1Left + 178;
			document.getElementById('divTabType1').style.marginTop = divTabType1Top + 65;
		}

		if(document.getElementById('brandContents')){
			var brandContentsLeft = parseInt(document.getElementById('brandContents').style.marginLeft);
			var brandContentsTop = parseInt(document.getElementById('brandContents').style.marginTop);
			document.getElementById('brandContents').style.marginLeft = brandContentsLeft + 178;
			document.getElementById('brandContents').style.marginTop = brandContentsTop + 65;
		}
	}
}

// ÀÌ¹ÌÁö ·Ñ¿À¹ö
function imgOver(obj,imgUrl,imgName,over){

	if(over=='over')
	{
		obj.src = imgUrl + imgName + '_over.gif';
	}
	else
	{
		obj.src = imgUrl + imgName + '.gif';
	}
}
function pngImgOver(obj,imgSrc,over){

	if(over=='over')
	{
		pngImgBackGround(obj,imgSrc+'_over');
	}
	else
	{
		pngImgBackGround(obj,imgSrc);
	}
}


/*bgFlash start*/
function bgFlash(flashid, flashfilename)
{
	var layoutHeight1 = document.getElementById('layoutDiv').clientHeight * -1;
	var layoutHeight2 = document.getElementById('layoutDiv').clientHeight + 500;

	if(writeCode1 == 'Netscape')
	{
		layoutHeight1 = (document.getElementById('layoutContentsDiv').clientHeight + 155) * -1;
		layoutHeight2 = document.getElementById('layoutContentsDiv').clientHeight + 555;
	}

	document.write('<object id="'+ flashid +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="'+ layoutHeight2 +'" >');
	document.write('<param name="movie" value="'+ flashfilename +'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed id="'+ flashid +'" style="margin-top:'+layoutHeight1+';" src="'+ flashfilename +'" width="100%" height="'+ layoutHeight2 +'" wmode="transparent" >');
	document.write('</object>');

	document.getElementById(flashid).style.marginTop = layoutHeight1;
}
function footerFlash(flashid, flashfilename)
{
	document.write('<object id="'+ flashid +'" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="100%" height="280" >');
	document.write('<param name="movie" value="'+ flashfilename +'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed src="'+ flashfilename +'" width="100%" height="280" wmode="transparent" />');
	document.write('</object>');

	//document.getElementById(flashid).style.marginTop = parseInt(-280);
}
function flash(flashid, flashfilename, flashwidth, flashheight, flashvars) {
	document.write('<object id="' + flashid + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ flashwidth +'" height="'+ flashheight +'">');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="'+ flashfilename +'">');
	if (flashvars) document.write('<param name="flashVars" value="'+ flashvars +'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed wmode="transparent" name="' + flashid + '"');
	if (flashvars) document.write(' flashVars="'+ flashvars +'" ');
	document.write(' src="'+ flashfilename +'" width="'+ flashwidth +'" height="'+ flashheight +'" ');
	document.write(' allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" >');
	document.write('</embed>');
	document.write('</object>');
}
/*bgFlash end*/

function flashMain(flashid, flashfilename, flashvars, flashWidth, flashheight) {

	if(!flashWidth) flashWidth = '100%';
	if(!flashheight) flashheight = '100%';

	if(document.body.clientHeight<760) flashheight = 760;

	document.write('<object id="' + flashid + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width='+flashWidth+' height='+flashheight+'>');
	document.write('<param name="allowScriptAccess" value="always" />');
	document.write('<param name="movie" value="'+ flashfilename +'">');
	if (flashvars) document.write('<param name="flashVars" value="'+ flashvars +'">');
	document.write('<param name="wmode" value="transparent">');
	document.write('<embed wmode="transparent" style="margin-top:-96px;" name="' + flashid + '"');
	if (flashvars) document.write(' flashVars="'+ flashvars +'" ');
	document.write(' src="'+ flashfilename +'" width='+flashWidth+' height='+flashheight+' ');
	document.write(' allowScriptAccess="always" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" >');
	document.write('</embed>');
	document.write('</object>');
	}


// ¹Ìµð¾î ÇÃ·¹ÀÌ¾î
function mediaPlayer(objID, url, width, height) {
	if(writeCode1 == 'Netscape')
	{
		document.write("<embed id='" + objID + "' src=" + url + "  width='" + width + "' height='" + height + "'  type='video/x-ms-asf-Plugin' ");
		document.write(" animationatstart='0' autostart='0' displaybackcolor='black' showcontrols='1' showstatusbar='0' showtracker='0' showpositioncontrols='0' pluginspage='http://www.microsoft.com/korea/windows/windowsmedia/' ></embed>");
	}
	else
	{
		document.write("<object id='" + objID + "' width='" + width + "' height='" + height + "' standby='Loading  Windows  Media  Player  components...' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6  VIEWASTEXT>");
		document.write("<param name='url' value='" + url + "'>");
		document.write("<PARAM name='autoStart' value='0'>");
		document.write("<param name='rate' value='1'>");
		document.write("<param name='balance' value='0'>");
		document.write("<param name='currentPosition' value='0'>");
		document.write("<param name='playCount' value='1'>");
		document.write("<param name='currentMarker' value='0'>");
		document.write("<param name='invokeURLs' value='1'>");
		document.write("<param name='volume' value='100'>");
		document.write("<param name='mute' value='0'>");
		document.write("<param name='uiMode' value='none'>");
		document.write("<param name='stretchToFit' value='true'>");
		document.write("<param name='enabled' value='1'>");
		document.write("<param name='enableContextMenu' value='1'>");
		document.write("<param name='fullScreen' value='0'>");
		document.write("<param name='SAMIFilename' value=''>");
		document.write("</object>");
	}
}
function soundOnOff(play){

	var obj		= document.getElementById('player');
	var imgOn	= document.getElementById('playerSoundOn');
	var imgOff	= document.getElementById('playerSoundOff');

	if(play == 'on')
	{
		obj.settings.mute = false;
		pngImgBackGround(imgOn,'/media/imgs/layout/bbs/btn_on_01_over');
		pngImgBackGround(imgOff,'/media/imgs/layout/bbs/btn_off_01');
	}
	else
	{
		obj.settings.mute = true;
		pngImgBackGround(imgOn,'/media/imgs/layout/bbs/btn_on_01');
		pngImgBackGround(imgOff,'/media/imgs/layout/bbs/btn_off_01_over');
	}
}

// ÄÚ¸àÆ® ±ÛÀÚ¼ö Á¦ÇÑ
function CheckStrLen(obj,maxlen)
{
	var temp;
	var msglen;
	msglen = maxlen;
	var value= obj.value;
	var valueCount;

	l = obj.value.length;
	tmpstr = "" ;
	
	if (l == 0)
	{
		value = maxlen*2;
	}
	else
	{
		for(k=0;k<l;k++)
		{
			temp =value.charAt(k);
			
			if (escape(temp).length > 4)
			{
				msglen -= 2;
			}
			else 
			{
				msglen--;
			}
			valueCount = maxlen - msglen;

			if(msglen < 0)
			{
				alert("´ñ±ÛÀº " + maxlen + "ÀÚ·Î Á¦ÇÑµÇ¾î ÀÖ½À´Ï´Ù.");
				obj.value= tmpstr;
				valueCount = maxlen;
				return false;
			}
			else
			{
				tmpstr += temp;
			}
		}

		document.getElementById('txtlenght').value = valueCount;
	}
}
function CheckStrLen2(obj,maxlen)
{
	var temp;
	var msglen;
	msglen = maxlen;
	var value= obj.value;

	l = obj.value.length;
	tmpstr = "" ;
	
	if (l == 0)
	{
		value = maxlen*2;
	}
	else
	{
		for(k=0;k<l;k++)
		{
			temp =value.charAt(k);
			
			if (escape(temp).length > 4)
			{
				msglen -= 2;
			}
			else 
			{
				msglen--;
			}

			if(msglen < 0)
			{
				alert("Å»Åð»çÀ¯´Â " + maxlen + "ÀÚ·Î Á¦ÇÑµÇ¾î ÀÖ½À´Ï´Ù.");
				obj.value= tmpstr;
				return false;
			}
			else
			{
				tmpstr += temp;
			}
		}
	}
}

// ÄÚ¸àÆ® Á¦¾î
function viewComment(img){

	var check	= document.getElementById('commentHiddenCheck');
	var cmt		= document.getElementById('commentList');

	if(check.value!=1)
	{
		pngImgBackGround(img,'/media/imgs/layout/bbs/btn_cmt_view_01_over');
		cmt.style.display = 'none';
		check.value = 1;
		//layoutDivHeight();
	}
	else
	{
		pngImgBackGround(img,'/media/imgs/layout/bbs/btn_cmt_view_01');
		cmt.style.display = 'block';
		check.value = 2;
		//layoutDivHeight();
	}
}

/* FAQ Á¦¾î */
function faqView(num){

	var icoQ = document.getElementById('icoQ'+num);
	var linkQ = document.getElementById('linkQ'+num);
	var answer = document.getElementById('answer'+num);

	var prevNum1 = document.getElementById('prevFrom').prevNum.value;

	if(prevNum1>0)
	{
		pngImgBackGround(document.getElementById('icoQ' + prevNum1),'/media/imgs/layout/bbs/ico_q_01');

		document.getElementById('linkQ' + prevNum1).className = 'line';
		document.getElementById('answer' + prevNum1).style.display = 'none';
	}

	pngImgBackGround(document.getElementById('icoQ' + num),'/media/imgs/layout/bbs/ico_q_01_over');

	document.getElementById('linkQ' + num).className = 'line2';
	document.getElementById('answer' + num).style.display = 'block';
	document.getElementById('prevFrom').prevNum.value = num;

	var layoutHeight1 = document.getElementById('layoutDiv').clientHeight * -1;
	var layoutHeight2 = document.getElementById('layoutDiv').clientHeight + 400;

	if(writeCode1 == 'Netscape')
	{
		layoutHeight1 = (document.getElementById('layoutContentsDiv').clientHeight + 155) * -1;
		layoutHeight2 = document.getElementById('layoutContentsDiv').clientHeight + 555;
	}

	document.getElementById('backGroundFlash').style.marginTop = layoutHeight1;
}

//ºê·£µå ÆäÀÌÁö·Î ÀÌµ¿ (½ºÅä¸® ÆäÀÌÁö)
function goBrandInfoPage(directory_name) {
	var goUrl = "/brand/" + directory_name + "/story_01.asp";
	location.href = goUrl;
}

//ºê·£µå ±¤°í
function goBrandAdvertisement(brandCode) {
	location.href = "?idx=" + brandCode;
}

//ºê·£µå ¿ùÆäÀÌÆÛ
function goBrandWallpaper(brandCode) {
	location.href = "/brand/wallpaper.asp?idx=" + brandCode;
}

//ºê·£µå ½ºÅ©¸°¼¼ÀÌ¹ö
function goBrandScreenSaver(brandCode) {
	location.href = "/brand/screen_saver.asp?idx=" + brandCode;
}

//ºê·£µå ÀÌº¥Æ®
function goBrandEvent(brandCode) {
	location.href = "/brand/event.asp?idx=" + brandCode;
}

//show room ÆË¾÷
function showRoomPopup() {
	openWinCenter ('/brand/showroom.asp','showroom','width=1000, height=700');
}

//main ÆË¾÷
function mainPopup() {
	openWinCenter ('main.php','main','width=1280, height=650');
}

//·Î±×¾Æ¿ô
function logout(){

	location.href = "/membership/logoutAction.asp";
}

// ½ºÅÆÇÁ ÆË¾÷
function popupMaster(){

	openWinCenter ('/mypage/popup_master.asp','popup_master','width=450, height=380');
}

function popupFormMail(contentType, contentIdx) {
	openWinCenter ('/mypage/popup_mail.asp?contentType=' + contentType + '&contentIdx=' + contentIdx,'popup_master','width=750, height=650, scrollbars=yes');
}

// ¸Þ´º
function goFrontMenu(menuCode,brand){

	var goUrl = "";
	var target = "";

	if(!brand)
	{
		switch (menuCode) {
			//Home
			case "FM0000000000" :
				goUrl = "/home/";
				break;

			//Corporate--------------------------------------------------------------

			case "FM0100000000" :	// Corporate ¸ÞÀÎ
				goUrl = "/corporate/";
				break;
			case "FM0101000000" :	// È¸»ç¼Ò°³
				goUrl = "/corporate/corporate_01.asp";
				break;
			case "FM0101010000" :	// È¸»ç¼Ò°³
				goUrl = "/corporate/corporate_01.asp";
				break;
			case "FM0101020000" :	// È¸»ç¿¬Çõ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ / Áø·Î ¹ß·»Å¸ÀÎ
				goUrl = "/corporate/corporate_02.asp";
				break;
			case "FM0101020100" :	// È¸»ç¿¬Çõ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ / Áø·Î ¹ß·»Å¸ÀÎ
				goUrl = "/corporate/corporate_02.asp";
				break;
			case "FM0101020101" :	// È¸»ç¿¬Çõ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ / Áø·Î ¹ß·»Å¸ÀÎ
				goUrl = "/corporate/corporate_02.asp";
				break;
			case "FM0101020102" :	// È¸»ç¿¬Çõ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ / Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_03.asp";
				break;
			case "FM0101020200" :	// È¸»ç¿¬Çõ -Æä¸£³ë´ÏÄ« ±×·ì
				goUrl = "/corporate/corporate_04.asp";
				break;
			case "FM0101030000" :	// °æ¿µÀÌ³ä
				goUrl = "/corporate/corporate_05.asp";
				break;
			case "FM0101040000" :	// CEO Message -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_06.asp";
				break;
			case "FM0101040100" :	// CEO Message -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_06.asp";
				break;
			case "FM0101040200" :	// CEO Message -Æä¸£³ë´ÏÄ« ±×·ì
				goUrl = "/corporate/corporate_07.asp";
				break;
			case "FM0101050000" :	// Æä¸£³ë´ÏÄ« -À§»ó
				goUrl = "/corporate/corporate_08.asp";
				break;
			case "FM0101050100" :	// Æä¸£³ë´ÏÄ« -À§»ó
				goUrl = "/corporate/corporate_08.asp";
				break;
			case "FM0101050200" :	// Æä¸£³ë´ÏÄ« -ºê·£µå
				goUrl = "/corporate/corporate_09.asp";
				break;
			case "FM0101050300" :	// Æä¸£³ë´ÏÄ« -ºñÁî´Ï½º ¸ðµ¨
				goUrl = "/corporate/corporate_10.asp";
				break;
			case "FM0102000000" :	// Ã¥ÀÓÀ½ÁÖ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_11.asp";
				break;
			case "FM0102010000" :	// Ã¥ÀÓÀ½ÁÖ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_11.asp";
				break;
			case "FM0102010100" :	// Ã¥ÀÓÀ½ÁÖ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_11.asp";
				break;
			case "FM0102010200" :	// Ã¥ÀÓÀ½ÁÖ -Æä¸£³ë´ÏÄ« ±×·ì
				goUrl = "/corporate/corporate_12.asp";
				break;
			case "FM0102020000" :	// °øÀÍ»ç¾÷ -Æä¸£³ë´ÏÄ« ÄÚ¸®¾Æ
				goUrl = "/corporate/corporate_13.asp";
				break;
			case "FM0102020200" :	// °øÀÍ»ç¾÷ -Æä¸£³ë´ÏÄ« ±×·ì
				goUrl = "/corporate/corporate_14.asp";
				break;
			case "FM0105000000" :	// º»»çÀ§Ä¡
				goUrl = "/corporate/corporate_15.asp";
				break;
			case "FM0105010000" :	// º»»çÀ§Ä¡
				goUrl = "/corporate/corporate_15.asp";
				break;
			case "FM0105020000" :	// ÁöÁ¡¾È³»
				goUrl = "/corporate/corporate_16.asp";
				break;
			case "FM0103000000" :	// °øÁö»çÇ×
				goUrl = "/corporate/corporate_list.asp";
				break;
			case "FM0103010000" :	// °øÁö»çÇ×
				goUrl = "/corporate/corporate_list.asp";
				break;
			case "FM0103020000" :	// º¸µµÀÚ·á
				goUrl = "/corporate/corporate_list2.asp";
				break;
			case "FM0103030000" :	// È«º¸ÀÚ·á -¿µ»óÀÚ·á
				goUrl = "/corporate/corporate_movie.asp";
				break;
			case "FM0103030100" :	// È«º¸ÀÚ·á -¿µ»óÀÚ·á
				goUrl = "/corporate/corporate_movie.asp";
				break;
			case "FM0103030201" :	// È«º¸ÀÚ·á -ÀÎ¼âÀÚ·á / image library
				goUrl = "/corporate/corporate_print1.asp";
				break;
			case "FM0103030202" :	// È«º¸ÀÚ·á -ÀÎ¼âÀÚ·á / press kit
				goUrl = "/corporate/corporate_print2.asp";
				break;
			case "FM0103030300" :	// È«º¸ÀÚ·á -°£Çà¹°
				goUrl = "/corporate/corporate_print3.asp";
				break;
			case "FM0103030203" :	// È«º¸ÀÚ·á -°£Çà¹°
				goUrl = "/corporate/corporate_print3.asp";
				break;
			case "FM0104000000" :	// ±â¾÷¹®È­
				goUrl = "/corporate/corporate_culture.asp";
				break;
			case "FM0104010100" :	// ±â¾÷¹®È­ -ÀÎÅÍºä1
				goUrl = "/corporate/corporate_interView_01.asp";
				break;

			//--------------------------------------------------------------Corporate

			//brand--------------------------------------------------------------

			case "FM0200000000" :	// Brand -¸ÞÀÎ
				goUrl = "/brand/";
				break;
			case "FM0201000000" :	// À§½ºÅ° -ÀÓÆä¸®¾ó
				goUrl = "/brand/imperial/story_01.asp";
				break;
			case "FM0201010000" :	// À§½ºÅ° -ÀÓÆä¸®¾ó
				goUrl = "/brand/imperial/story_01.asp";
				break;
			case "FM0201020000" :	// À§½ºÅ° -¹ß·»Å¸ÀÎ
				goUrl = "/brand/ballantines/story_01.asp";
				break;
			case "FM0201030000" :	// À§½ºÅ° -½Ã¹Ù½º ¸®°¥
				goUrl = "/brand/chivas/story_01.asp";
				break;
			case "FM0201040000" :	// À§½ºÅ° -·Î¾â »ì·çÆ®
				goUrl = "/brand/royalsalute/story_01.asp";
				break;
			case "FM0201050000" :	// À§½ºÅ° -´õ ±Û·»¸®ºª
				goUrl = "/brand/glenlivet/story_01.asp";
				break;

			case "FM0202000000" :	// ¿ÍÀÎ -Á¦ÀÌÄß½º Å©¸¯
				goUrl = "/brand/jacobs/story_01.asp";
				break;
			case "FM0202010000" :	// ¿ÍÀÎ -Á¦ÀÌÄß½º Å©¸¯
				goUrl = "/brand/jacobs/story_01.asp";
				break;
			case "FM0202020000" :	// ¿ÍÀÎ -À©´ã ¿¡½ºÅ×ÀÌÆ®
				goUrl = "/brand/wyndham/story_01.asp";
				break;
			case "FM0202030000" :	// ¿ÍÀÎ -¸óÅ¸³ª
				goUrl = "/brand/montana/story_01.asp";
				break;
			case "FM0202040000" :	// ¿ÍÀÎ -¸Ø
				goUrl = "/brand/mumm/story_01.asp";
				break;
			case "FM0202050000" :	// ¿ÍÀÎ -Æä¸®¿¡ ÁÖ¿¡
				goUrl = "/brand/perrier/story_01.asp";
				break;

			case "FM0203000000" :	// È­ÀÌÆ® ½ºÇÇ¸´ -È£¼¼Äí¿¤º¸
				goUrl = "/brand/cuervo/story_01.asp";
				break;
			case "FM0203010000" :	// È­ÀÌÆ® ½ºÇÇ¸´ -È£¼¼Äí¿¤º¸
				goUrl = "/brand/cuervo/story_01.asp";
				break;
			case "FM0203020000" :	// È­ÀÌÆ® ½ºÇÇ¸´ -ºñÇÇÅÍ
				goUrl = "/brand/beefeater/story_01.asp";
				break;
			case "FM0203030000" :	// È­ÀÌÆ® ½ºÇÇ¸´ -½ºÅç¸®Ä¡³ª¾ß
				goUrl = "/brand/stolichnaya/story_01.asp";
				break;

			case "FM0204000000" :	// ¸®Å¥¸£ -±ò·ç¾Æ
				goUrl = "/brand/kahlua/story_01.asp";
				break;
			case "FM0204010000" :	// ¸®Å¥¸£ -±ò·ç¾Æ
				goUrl = "/brand/kahlua/story_01.asp";
				break;
			case "FM0204020000" :	// ¸®Å¥¸£ -¸»¸®ºÎ
				goUrl = "/brand/malibu/story_01.asp";
				break;

			case "FM0205000000" :	// ¼î·ë
				showRoomPopup();
				return;

			//--------------------------------------------------------------brand

			//--------------------------------------------------------------culture
			case "FM0300000000" :	// ¼úÀÌ¾ß±â -À§½ºÅ°
				goUrl = "/culture/";
				break;
			case "FM0301000000" :	// ¼úÀÌ¾ß±â -À§½ºÅ°
				goUrl = "/culture/culture_01.asp";
				break;
			case "FM0301010000" :	// ¼úÀÌ¾ß±â -À§½ºÅ°
				goUrl = "/culture/culture_01.asp";
				break;
			case "FM0301020000" :	// ¼úÀÌ¾ß±â -¿ÍÀÎ
				goUrl = "/culture/culture_02.asp";
				break;
			case "FM0301030000" :	// ¼úÀÌ¾ß±â -È­ÀÌÆ® ½ºÇÇ¸´ & ¸®Å¥¸£
				goUrl = "/culture/culture_03.asp";
				break;
			
			case "FM0302000000" :	// Bar ¼Ò°³
				goUrl = "/culture/culture_list.asp";
				break;
			case "FM0303000000" :	// Å×¸¶ Ä·ÆäÀÎ
				goUrl = "/culture/theme_campaign.asp";
				break;
			case "FM0304000000" :	// ´º½º·¹ÅÍ
				goUrl = "/culture/news_letter.asp";
				break;
			case "FM0305000000" :	// °¶·¯¸® -¿ùÆäÀÌÆÛ
				goUrl = "/culture/wallpaper.asp";
				break;
			case "FM0305010000" :	// °¶·¯¸® -¿ùÆäÀÌÆÛ
				goUrl = "/culture/wallpaper.asp";
				break;
			case "FM0305020000" :	// °¶·¯¸® -½ºÅ©¸°¼¼ÀÌ¹ö
				goUrl = "/culture/screen_saver.asp";
				break;
			case "FM0306000000" :	// ÀÌº¥Æ® -ÀÌº¥Æ® ¸®½ºÆ®
				goUrl = "/culture/event_online_list.asp";
				break;
			case "FM0306010000" :	// ÀÌº¥Æ® -ÀÌº¥Æ® ¸®½ºÆ®
				goUrl = "/culture/event_online_list.asp";
				break;
			case "FM0306010102" :	// ÀÌº¥Æ® -ºê·£µå ÆÄÆ¼
				goUrl = "/culture/event_online_list.asp?category=2";
				break;
			case "FM0306010103" :	// ÀÌº¥Æ® -¹®È­Ã¼Çè ÀÌº¥Æ®
				goUrl = "/culture/event_online_list.asp?category=4";
				break;
			case "FM0306010200" :	// ÀÌº¥Æ® -´çÃ·ÀÚ ¹ßÇ¥
				goUrl = "/culture/event_win_list.asp";
				break;
			case "FM0306020000" :	// ÀÌº¥Æ® -ºê·£µå ÆÄÆ¼
				goUrl = "/culture/event_brand.asp";
				break;
			case "FM0306030000" :	// ÀÌº¥Æ® -ºê·£µå ÀÍ½ºÇÃ·Î¾î
				goUrl = "/culture/event_explore.asp";
				break;
			case "FM0306040000" :	// ÀÌº¥Æ® -¹®È­Ã¼Çè ÀÌº¥Æ®
				goUrl = "/culture/event_culture.asp";
				break;
			//--------------------------------------------------------------culture

			//mypage--------------------------------------------------------------
			case "FM0501000000" :	// ¸¶ÀÌÆäÀÌÁö
				goUrl = "/mypage/mypage.asp";
				break;
			case "FM0502000000" :	// ¸¶ÀÌÆäÀÌÁö -È¸¿øÁ¤º¸¼öÁ¤
				goUrl = "/mypage/member_modify.asp";
				break;
			case "FM0503000000" :	// ¸¶ÀÌÆäÀÌÁö -¸¶ÀÌ ½ºÅ©·¦
				goUrl = "/mypage/my_scrap_list.asp";
				break;
			case "FM0504000000" :	// ¸¶ÀÌÆäÀÌÁö -¸¶ÀÌ ÀÌº¥Æ®
				goUrl = "/mypage/my_event_list.asp";
				break;
			case "FM0505000000" :	// ¸¶ÀÌÆäÀÌÁö -³» °í°´¹®ÀÇ
				goUrl = "/mypage/my_customer_list.asp";
				break;
			//--------------------------------------------------------------mypage

			//membership--------------------------------------------------------------
			case "FM0601000000" :	// ¸â¹ö½± -·Î±×ÀÎ
				goUrl = "/membership/login.asp";
				break;
			case "FM0602000000" :	// ¸â¹ö½± -¾ÆÀÌµð/ºñ¹Ð¹øÈ£Ã£±â
				goUrl = "/membership/lostid.asp";
				break;
			case "FM0603000000" :	// ¸â¹ö½± -È¸¿ø°¡ÀÔ
				goUrl = "/membership/join_01.asp";
				break;
			case "FM0604000000" :	// ¸â¹ö½± -ÀÌ¿ë¾à°ü
				goUrl = "/membership/using_agreement.asp";
				break;
			case "FM0605000000" :	// ¸â¹ö½± -°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
				goUrl = "/membership/protective_policy.asp";
				break;
			//--------------------------------------------------------------membership

			//customer--------------------------------------------------------------
			case "FM0700000000" :	// °í°´¼¾ÅÍ -FAQ
				goUrl = "/customer/faq.asp";
				break;
			case "FM0701000000" :	// °í°´¼¾ÅÍ -FAQ
				goUrl = "/customer/faq.asp";
				break;
			case "FM0702000000" :	// °í°´¼¾ÅÍ -1:1 ÀÌ¸ÞÀÏ ¹®ÀÇ
				goUrl = "/customer/email_customer.asp";
				break;
			case "FM0703000000" :	// °í°´¼¾ÅÍ -»çÀÌÆ®¸Ê
				goUrl = "/customer/site_map.asp";
				break;
			//--------------------------------------------------------------customer

			default :
				alert("ÁË¼ÛÇÕ´Ï´Ù.\n\nÆäÀÌÁö¸¦ ÁØºñÁßÀÔ´Ï´Ù. [" + menuCode + "]");
				return;
		}
	}
	else
	{
		if(brand == 1)
		{
			goUrl = "/brand/"+ menuCode;
		}
		else
		{
			goUrl = "/brand/"+ brand +"/"+ menuCode;
		}
	}

	if(target) window.open (goUrl,'goUrl',''); else location.href = goUrl;

}

/*¸µÅ© Á¡¼± ¾ø¾Ö±â*/
function bluring(){

	if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;

/*¹è°æÀÌ¹ÌÁö ±ôºýÀÌ´Â Çö»ó Á¦°Å*/
try {
    document.execCommand('BackgroundImageCache', false, true);
} catch(me) {}
/*¹è°æÀÌ¹ÌÁö ±ôºýÀÌ´Â Çö»ó Á¦°Å*/

//È«º¸ÀÚ·á Á¶È¸¼ö ¾÷µ¥ÀÌÆ®
function updatePrHit(idx) {
	var resultUpdate = null;
	try {
		var moz = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined'); 
		var ie = (typeof window.ActiveXObject != 'undefined'); 
		if (moz) {
			resultUpdate = document.implementation.createDocument("", "", null);
			resultUpdate.onload = function() {}
		} else if (ie) {
			resultUpdate = new ActiveXObject("Microsoft.XMLDOM");
			resultUpdate.async = false;
			resultUpdate.onreadystatechange = function () {
				if (resultUpdate.readyState == 4) {}
			}
		}
		resultUpdate.load("/corporate/updatePrHit.asp?idx=" + idx);
	} catch(e) {
	}
}

//ºê·£µå ±¤°íÀÚ·á Á¶È¸¼ö ¾÷µ¥ÀÌÆ®
function updateBrandPrHit(idx) {
	var resultUpdate = null;
	try {
		var moz = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined'); 
		var ie = (typeof window.ActiveXObject != 'undefined'); 
		if (moz) {
			resultUpdate = document.implementation.createDocument("", "", null);
			resultUpdate.onload = function() {}
		} else if (ie) {
			resultUpdate = new ActiveXObject("Microsoft.XMLDOM");
			resultUpdate.async = false;
			resultUpdate.onreadystatechange = function () {
				if (resultUpdate.readyState == 4) {}
			}
		}
		resultUpdate.load("/brand/updateBrandHit.asp?idx=" + idx);
	} catch(e) {
	}
}

var scrapContentType	= null;
var scrapContnetIndex	= null;
//½ºÅ©·¦ À©µµ¿ì
function popupScrapWindow(contentType, contentIndex) {
	if (!checkNull(contentType) && !checkNull(contentIndex)) {
		scrapContentType	= contentType;
		scrapContnetIndex	= contentIndex;
		openWinCenter("/mypage/popup_scrap.asp","popupScrap","width=450, height=350");
	}
}

//ÁöÁ¡¾È³»
function mapView(map){

	var imgMap = document.getElementById('img_con_14_01');
	document.getElementById('corporateMapPrint').num.value = map;

	pngImgBackGround(imgMap,'/media/imgs/corporate/' + map);
}

// ÁöÁ¡¾È³» ÀÎ¼âÇÏ±â
function mapPrint(){
	var mapPrintImages;
	mapPrintImages = document.getElementById('corporateMapPrint').num.value;
	mapOpen = window.open('/corporate/map_print.asp?mapPrintImages='+mapPrintImages,'map','width=422, height=378, scrollbars=no');
}