// 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>')
}

//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>')
}
//--------------------------------------------------------------

//<a href="javascript:goMenu('ex2')">¸µÅ©</a>
function goMenu(menu_idx)
{
	var goURL = "";

	switch (menu_idx)
	{

		case "ex1" : //ÆäÀÌÁö ÀÌµ¿
			goURL = '/#.html';
		break;
		case "ex2" : //»õÃ¢ °¡¿îµ¥
			openWinCenter("#.html","ex","width=700,height=500");
		break;
/////////////////////////////////////////////////////////////////¸Þ´º///////////////////////////////////////////////////////////
		case "sub00" : //menu ¼­ºê¸ÞÀÎ ½Å¸Þ´º
			goURL = '/menu/newmenu.asp';
		break;
		case "sub01" : //¼¼Æ®menu ¼­ºê
			goURL = '/menu/setmenu.asp';
		break;
		case "sub01_01" : //¼¼Æ®¸Þ´º
			goURL = '/menu/setmenu.asp';
		break;
		case "sub01_02" : //¿¡ÇÇÅ¸ÀÌÁ®
			goURL = '/menu/appetizer_01.asp';
		break;
		case "sub01_03" : //»ø·¯µå
			goURL = '/menu/salad_01.asp';
		break;
		case "sub01_04" : //ÆÄ½ºÅ¸
			goURL = '/menu/pasta_01.asp';
		break;
		case "sub01_05" : //½ºÆä¼È ÆÄ½ºÅ¸
			goURL = '/menu/specialPastas.asp';
		break;
		case "sub01_06" : //ÇÇÀÚ
			goURL = '/menu/pizza_01.asp';
		break;
		case "sub01_07" : //speciality
			goURL = '/menu/speciality.asp';
		break;
		case "sub01_08" : //µðÀúÆ®
			goURL = '/menu/dessert.asp';
		break;
		case "sub01_09" : //À½·á
			goURL = '/menu/drink.asp';
		break;
		case "sub01_10" : //¿ÍÀÎ
			goURL = '/menu/wine.asp';
		break;
		case "sub01_11" : //½Å¸Þ´º
			goURL = '/menu/newmenu.asp';
		break;
		case "sub01_12" : //½ºÇÁ
			goURL = '/menu/soups.asp';
		break;

//		case "sub01" : //menu ¼­ºê¸ÞÀÎ
//			goURL = '/menu/setmenu.asp';
//		break;
//		case "sub01_01" : //¼¼Æ®¸Þ´º
//			goURL = '/menu/setmenu.asp';
//		break;
//		case "sub01_02" : //¿¡ÇÇÅ¸ÀÌÁ®
//			goURL = '/menu/appetizer_01.asp';
//		break;
//		case "sub01_03" : //»ø·¯µå
//			goURL = '/menu/salad_01.asp';
//		break;
//		case "sub01_04" : //ÇÇÀÚ
//			goURL = '/menu/pizza_01.asp';
//		break;
//		case "sub01_05" : //ÆÄ½ºÅ¸
//			goURL = '/menu/pasta_01.asp';
//		break;
//		case "sub01_06" : //Meat & seaciality
//			goURL = '/menu/meat.asp';
//		break;
//		case "sub01_07" : //speciality
//			goURL = '/menu/speciality.asp';
//		break;
//		case "sub01_08" : //µðÀúÆ®
//			goURL = '/menu/dessert.asp';
//		break;
//		case "sub01_09" : //À½·á
//			goURL = '/menu/drink.asp';
//		break;
//		case "sub01_10" : //¿ÍÀÎ
//			goURL = '/menu/wine.asp';
//		break;

/////////////////////////////////////////////////////////////////ÀÌº¥Æ®///////////////////////////////////////////////////////////
		case "sub02_01" : //ÀÌº¥Æ® ¼­ºê¸ÞÀÎ
			goURL = '/event/event_list.asp';
		break;
		case "sub02_02" : //ÀÌº¥Æ® °Ô½ÃÆÇ
			goURL = '/event/eventboard_list.asp';
		break;
/////////////////////////////////////////////////////////////////¸ÅÀå¾È³»///////////////////////////////////////////////////////////
		case "sub03" : //°­³²¿ªÁ¡
			goURL = '/store/store.asp';
		break;
		case "sub03_1" : //½ÅÃÌÁ¡
			goURL = '/store/store_02.asp';
		break;
/////////////////////////////////////////////////////////////////°í°´¼¾ÅÍ///////////////////////////////////////////////////////////
		case "sub04" : //°í°´¼¾ÅÍ ¼­ºê¸ÞÀÎ
			goURL = '/customer/notice_list.asp';
		break;
		case "sub04_01" : //°í°´ÀÇ¼Ò¸®ÇÔ
			goURL = '/customer/help_desk_write.asp';
		break;
		case "sub04_02" : //°øÁö»çÇ×
			goURL = '/customer/notice_list.asp';
		break;
		case "sub04_03" : //º¸µµÀÚ·á
			goURL = '/customer/news_list.asp';
		break;
		case "sub04_04" : //FAQ
			goURL = '/customer/faq_list.asp';
		break;
/////////////////////////////////////////////////////////////////¸É¹ö½±///////////////////////////////////////////////////////////
		case "sub05" : //¸É¹ö½± ¼­ºê¸ÞÀÎ
			goURL = '/membership/member_modify.asp';
		break;
		case "sub05_01" : //È¸¿ø°¡ÀÔ
			goURL = '/membership/member_register.asp';
		break;
		case "sub05_02" : //È¸¿øÁ¤º¸¼öÁ¤
			goURL = '/membership/member_modify.asp';
		break;
		case "sub05_03" : //id/pw
			goURL = '/membership/idpw_search.asp';
		break;
		case "sub05_04" : //È¸¿øÇÒÀÎÄíÆù
			goURL = '/membership/member_coupon.asp';
		break;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		case "sub06_01" : //È¸»ç¼Ò°³
			goURL = '/utility/company.asp';
		break;
		case "sub06_02" : //recruit
			goURL = '/utility/recruit_list.asp';
		break;
		case "sub06_03" : //sitemap
			goURL = '/utility/sitemap.asp';
		break;
	/////////////////////////////////////////////////////////////////ÇªÅÍ///////////////////////////////////////////////////////////
		case "sitemap" : //»çÀÌÆ®¸Ê
			goURL = '/utility/sitemap.asp';
		break;
		case "used" : //ÀÌ¿ë¾à°ü
			openWinCenter("/utility/used.asp","used","width=500,height=650");
		break;
		case "protect" : //°³ÀÎÁ¤º¸º¸È£Á¤Ã¥
			openWinCenter("/utility/protect.asp","protect","width=500,height=650");
		break;
/////////////////////////////////////////////////////////////////¸É¹ö½±_top///////////////////////////////////////////////////////////
		case "login" : //·Î±×ÀÎ
			goURL = '/membership/member_login.asp';
		break;
		case "logout" : //·Î±×¾Æ¿ô
			goURL = '/_include/logout.asp';
		break;
		case "company" : //È¸»ç¼Ò°³
			goURL = '/utility/company.asp';
		break;
		case "member" : //È¸¿ø°¡ÀÔ
			goURL = '/membership/member_register.asp';
		break;
		case "id-pw" : //id/pw
			goURL = '/membership/idpw_search.asp';
		break;
		case "recruit" : //Ã¤¿ë°ø°í
			goURL = '/utility/recruit_list.asp';
		break;

	case "logchk" :
			alert('È¸¿ø´ÔÀº ·Î±×ÀÎ »óÅÂÀÔ´Ï´Ù.');
		return;

	}

	if (goURL != "") {
		location.href = goURL;
	}
}


/**
 * »õ Ã¢À» È­¸é ÇÑ°¡¿îµ¥ ¶ç¿öÁÜ
 */
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);
}



/**
function onQuickMenu(){
    document.write(" <div style='width:72px;height:165px;color:#fff;position:absolute; top:280px; left:902px'> \n ");
    document.write(" <table width='72' border='0' cellspacing='0' cellpadding='0'> \n ");
    document.write(" <tr> \n ");
    document.write(" <td><a href='/event/event_list.asp' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image01','','images/quick_01_ov.jpg',1)\"><img src='images/quick_01_ov.jpg' name='Image01' width='72' height='55' border='0'></a></td> \n ");
    document.write(" </tr> \n ");
    document.write(" <tr> \n ");
    document.write(" <td><a href='/event/event_list.asp' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image02','','images/quick_02_ov.jpg',1)\"><img src='images/quick_02_ov.jpg' name='Image02' width='72' height='53' border='0'></a></td> \n ");
    document.write(" </tr> \n ");
    document.write(" <tr> \n ");
    document.write(" <td><a href='/event/event_list.asp' onMouseOut='MM_swapImgRestore()' onMouseOver=\"MM_swapImage('Image03','','images/quick_03_ov.jpg',1)\"><img src='images/quick_03_ov.jpg' name='Image03' width='72' height='57' border='0'></a></td> \n ");
    document.write(" </tr> \n ");
    document.write(" </table> \n ");
    document.write(" </div> \n ");
}
*/

function MM_swapImgRestore(){

}

function MM_swapImage(img, arg, chimg, val){

}

function popupWindow(url, w, h) {
        var posX = (screen.width - w) / 2;
        var posY = (screen.height - h) / 2;
        var option = ",resizable=no,scrollbars=yes,status=no";
        window.open(url, "new_win","width="+w+",height="+h+",left="+posX +",top="+posY+option);
}

