

//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);
}



//<a href="javascript:goMenu('ex2')">¸µÅ©</a>
function goMenu(menu_idx)
{
	var goURL = "";

	switch (menu_idx)
	{

		case "ex1" : //ÆäÀÌÁö ÀÌµ¿
			goURL = '/yakult2008/#.html';
		break;
		case "ex2" : //»õÃ¢ °¡¿îµ¥
			openWinCenter("#.html","ex","width=700,height=500");
		break;
		case "ex3" : //»õÃ¢
			window.open("#.html","ex","");
		break;
/////////////////////////////////////////////////////////////////top///////////////////////////////////////////////////////////
		case "home" : //¸ÞÀÎ
			goURL = '../';
		break;
		case "login" : //·Î±×ÀÎ
			goURL = '';
		break;
		case "membership" : //membership
			goURL = '';
		break;
		case "notices" : //notices
			goURL = '../news/news_list.asp';
		break;
		case "customer" : //customer center
			goURL = '../service/faq_list.asp';
		break;
		case "sitemap" : //site map
			goURL = '../util/sitemap.asp';
		break;
		case "onlineshop" : //onlineshop
			goURL = '';
		break;
/////////////////////////////////////////////////////////////////quick///////////////////////////////////////////////////////////
		case "quick1" : //onlineshop
			goURL = '';
		break;
		case "quick2" : //event
			goURL = '';
		break;
		case "quick3" : //shop open info
			goURL = '../util/open.asp';
		break;
		case "quick4" : //store
			goURL = '../store/shop_list.asp';
		break;
		case "quick5" : //faq
			goURL = '../service/faq_list.asp';
		break;
/////////////////////////////////////////////////////////////////about moababy///////////////////////////////////////////////////////////
		case "sub1" : //company
			goURL = '../about/company.asp';
		break;
		case "sub1_1" : //company
			goURL = '../about/company.asp';

		case "sub1_2" : //brand
			goURL = '../about/brand.asp';
		break;
		case "sub1_3" : //history
			goURL = '../about/history.asp';
		break;
		case "sub1_4" : //location
			goURL = '../about/location.asp';
		break;
		case "sub1_5" : //recruit 
			goURL = '../about/recruit.asp';
		break;
/////////////////////////////////////////////////////////////////style///////////////////////////////////////////////////////////
		case "sub2" : //style
			goURL = '../style/style.asp';
		break;
		case "sub2_1" : //style book
			goURL = '../style/style.asp';
		break;
		case "sub2_2" : //new bone
			goURL = '../style/bone.asp';
		break;
/////////////////////////////////////////////////////////////////mania zone///////////////////////////////////////////////////////////
		case "sub3" : //mania zone
			goURL = '../mania/media.asp';
		break;
		case "sub3_1" : //media
			goURL = '../mania/media.asp';
		break;
		case "sub3_2" : //magazine
			goURL = '../mania/magazine.asp';
		break;
		case "sub3_3" : //star stage
			goURL = '../mania/star.asp';
		break;
/////////////////////////////////////////////////////////////////store///////////////////////////////////////////////////////////
		case "sub4" : //store
			goURL = '../store/shop_list.asp';
		break;
		case "sub4_1" : //shop
			goURL = '../store/shop_list.asp';
		break;
		case "sub4_2" : //star shop
			goURL = '../store/star_list.asp';
		break;
/////////////////////////////////////////////////////////////////service///////////////////////////////////////////////////////////
		case "sub5" : //service
			goURL = '../service/faq_list.asp';
		break;
		case "sub5_1" : //faq
			goURL = '../service/faq_list.asp';
		break;
/////////////////////////////////////////////////////////////////news///////////////////////////////////////////////////////////
		case "sub6" : //news
			goURL = '../news/news_list.asp';
		break;
////////////////////////////////////////////////////////////////etc/////////////////////////////////////////////////////////////
		case "etc1" : //shop open info
			goURL = '../util/open.asp';
		break;
		case "etc2" : //ÀÌ¿ë¾à°ü
			goURL = '../util/privacy1.asp';
		break;
		case "etc3" : //°³ÀÎÁ¤º¸Ãë±Þ¹æÄ§
			goURL = '../util/privacy2.asp';
		break;
		case "etc4" : //¼ÒºñÀÚº¸È£±ÔÁ¤
			goURL = '../util/privacy3.asp';
		break;
		case "etc5" : //»çÀÌÆ® ¸Ê
			goURL = '../util/sitemap.asp';
		break;
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
		default :
			alert('ÁØºñÁßÀÔ´Ï´Ù.');
		return;

	}

	if (goURL != "") {
		location.href = goURL;
	}
}
