


//TV_AD_MEDIA___
function tv_adplay(file,w,h,mediaName,s,c) {
document.write('<object id="'+mediaName+'" name=id="'+mediaName+'" width='+w+' height='+h+' classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" VIEWASTEXT>')
document.write('<param name="transparentAtStart" value="True">')
document.write('<param name="transparentAtStop" value="False">')
document.write('<param name="AnimationAtStart" value="0">')
document.write('<param name="Loop" value="true">')
document.write('<param name="AutoStart" value="'+s+'">')
document.write('<param name="AutoRewind" value="true">')
document.write('<param name="SendMouseClickEvents" value="True">')
document.write('<param name="DisplaySize" value="0">')
document.write('<param name="AutoSize" value="0">')
document.write('<param name="ShowDisplay" value="False">')
document.write('<param name="ShowControls" value="'+c+'">')
document.write('<param name="ShowTracker" value="False">')
document.write('<param name="FileName" value="'+file+'">')
document.write('<param name="Enabled" value="1">')
document.write('<param name="EnableContextMenu" value="1">')
document.write('<param name="EnablePositionControls" value="1">')
document.write('<param name="EnableFullScreenControls" value="1">')
document.write('<param name="ShowPositionControls" value="0">')
document.write('<param name="Mute" value="0">')
document.write('<param name="Rate" value="1">')
document.write('<param name="SAMILang" value="">')
document.write('<param name="SAMIStyle" value="">')
document.write('<param name="SAMIFileName" value="">')
document.write('<param name="ClickToPlay" value="0">')
document.write('<param name="CursorType" value="1">')
document.write('<embed src="'+file+'"   id="'+mediaName+'" Loop=true  quality=high menu="false" bgcolor=#FFFFFF  WIDTH="'+w+'" HEIGHT="'+h+'" autoplay=true controller=true loop=false type="application/x-oleobject"></embed></object>')
} 

function tv_adplay2(file,w,h,mediaName,s,c) {
document.write('<object id="'+mediaName+'" name=id="'+mediaName+'" width='+w+' height='+h+' classid="CLSID:22D6f312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" VIEWASTEXT>')
document.write('<param name="transparentAtStart" value="false">')
document.write('<param name="transparentAtStop" value="False">')
document.write('<param name="AnimationAtStart" value="0">')
document.write('<param name="Loop" value="true">')
document.write('<param name="AutoStart" value="'+s+'">')
document.write('<param name="AutoRewind" value="true">')
document.write('<param name="SendMouseClickEvents" value="True">')
document.write('<param name="DisplaySize" value="0">')
document.write('<param name="AutoSize" value="0">')
document.write('<param name="ShowDisplay" value="False">')
document.write('<param name="ShowControls" value="'+c+'">')
document.write('<param name="ShowTracker" value="False">')
document.write('<param name="FileName" value="'+file+'">')
document.write('<param name="Enabled" value="1">')
document.write('<param name="EnableContextMenu" value="1">')
document.write('<param name="EnablePositionControls" value="1">')
document.write('<param name="EnableFullScreenControls" value="1">')
document.write('<param name="ShowPositionControls" value="0">')
document.write('<param name="Mute" value="0">')
document.write('<param name="Rate" value="1">')
document.write('<param name="SAMILang" value="">')
document.write('<param name="SAMIStyle" value="">')
document.write('<param name="SAMIFileName" value="">')
document.write('<param name="ClickToPlay" value="0">')
document.write('<param name="CursorType" value="1">')
document.write('<embed src="'+file+'"   id="'+mediaName+'" Loop=true  quality=high menu="false" bgcolor=#FFFFFF  WIDTH="'+w+'" HEIGHT="'+h+'" autoplay=true controller=true loop=false type="application/x-oleobject"></embed></object>')
} 
//--------------------------------------------------------------



// swf
function flash(add, widthx, heighty)
{
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=wmode value=transparent><param name=quality value=high><embed src="'+add+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')}


// swf Åõ¸í
function flash_tr(add, widthx, heighty)
{
	var add;
	var widthx;
	var heighty;

	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+widthx+'" height="'+heighty+'"><param name=movie value="'+add+'"><param name=quality value=high><param name=wmode value=transparent><embed src="'+add+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+widthx+'" height="'+heighty+'"></embed></object>')
}

/**
 * »õ Ã¢À» È­¸é ÇÑ°¡¿îµ¥ ¶ç¿öÁÜ
 */
function openWinCenter(url, wname, wopt) 
{
	var newopt = "", wHeight = 0, wWidth = 0;
	if (wopt != undefined) {
		var woptlist = wopt.replace(/ /g, "").split(",");
		for (var i in woptlist) {
			if (woptlist[i].match(/^height=/i)) {
				wHeight = parseInt(woptlist[i].substr(7),10);
				if (!isNaN(wHeight)) newopt += "top=" + Math.floor((screen.availHeight - wHeight) / 2) + ",";
			}
			if (woptlist[i].match(/^width=/i)) {
				wWidth = parseInt(woptlist[i].substr(6),10);
				if (!isNaN(wWidth)) newopt += "left=" + Math.floor((screen.availWidth - wWidth) / 2) + ",";
			}
		}
	}
	return window.open(url, wname, newopt + wopt);
}

///ÆäÀÌÁöÀÎ½Ä///
///PageNum = 1Depth///
///subNum = 2Depth///

//<a href="javascript:goMenu('ex2')">¸µÅ©</a>
function goMenu(menu_idx)
{
	var goURL = "";

	switch (menu_idx)
	{

/////////////////////////////////////////////////////////////////È¸»ç¼Ò°³///////////////////////////////////////////////////////////
    case "introduce" : //È¸»ç¼Ò°³
			goURL = '';
		case "introduce4" : //È¸»ç¼Ò°³
			goURL = '../company/overview.asp';
		break;
		case "introduce1" : //CEO ÀÎ»ç¸»
			goURL = '../company/ceo.asp';
		break;
		case "introduce2" : //°æ¿µÀÌ³ä
			goURL = '../company/moral.asp';
		break;
		case "introduce3" : //¿À½Ã´Â±æ
			goURL = '../company/location.asp';
		break;
/////////////////////////////////////////////////////////////////ºê·£µå¼Ò°³///////////////////////////////////////////////////////////
		case "brand" : //ºê·£µå¼Ò°³
			goURL = '';
		break;
		case "brand1" : //°­È£µ¿À°Ä¥ÆÈ
			goURL = '/678/';
		break;
		case "brand2" : //°­È£µ¿¹éÁ¤
			goURL ='http://www.baekjeong.co.kr';
		break;
		case "brand3" : //°­È£µ¿678Âò
			goURL = 'http://www.678jjim.com/';
		break;
/////////////////////////////////////////////////////////////////È«º¸¼¾ÅÍ///////////////////////////////////////////////////////////
		case "mediacenter" : //È«º¸¼¾ÅÍ
			goURL = '/pr/news.asp';
		break;
		case "news1" : //News & Notice
			goURL = '/pr/news.asp';
		break;
		case "news2" : //È«º¸µ¿¿µ»ó
			goURL = '/pr/promotion.asp';
		break;
		case "news3" : //º¸µµÀÚ·á
			goURL = '/pr/media.asp';
		break;
		case "news4" : //ÀÌº¥Æ®
			goURL = '/pr/event.asp';
		break;
/////////////////////////////////////////////////////////////////Ã¢¾÷¾È³»///////////////////////////////////////////////////////////
		case "enterprise" : //Ã¢¾÷¾È³»
			goURL = '../franchise/info_01.asp';
		break;
		case "enterprise1" : //Ã¢¾÷¾È³»
			goURL = '../franchise/info_01.asp';
		break;
		case "enterprise2" : //Ã¢¾÷FAQ
			goURL = '../franchise/faq.asp';
		break;
		case "enterprise3" : //Ã¢¾÷¹®ÀÇ ¹× ¿¹¾à
			goURL = '../franchise/reserve_01.asp';
		break;
		case "enterprise4" : //Á¦ÈÞ»ó´ã
			goURL = '../franchise/alliance.asp';
		break;	
		case "enterprise5" : //¼º°ø½ºÅä¸®
			goURL = '../franchise/success.asp';
		break;	
/////////////////////////////////////////////////////////////////SITEMAP///////////////////////////////////////////////////////////
		case "sitemap" : //sitemap
			goURL = '../sitemap/sitemap.asp';
		break;
////////////////////////////////////////////////////////////////footer/////////////////////////////////////////////////////////////
		case "foot_1" : //ÀÌ¿ë¾à°ü_
			openWinCenter("../etc/policy.asp","ex","width=520,height=550");
		break;
		case "foot_2" : //°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
			openWinCenter("../etc/policy_1.asp","ex","width=520,height=550");
		break;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		case "enjoy" : //enjoy
			openWinCenter("","","width=620,height=520");
		break;
		default :
		        //alert('ÁØºñÁßÀÔ´Ï´Ù.');
				openWinCenter("http://www.678.co.kr","_self","");
		return;

	}

	if (goURL != "") {
		location.href = goURL;
	}
}

