//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><param name=menu value=false><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);
}

//¾ÆÀÌÇÁ·¹ÀÓ ¼¼·ÎÇÁ·¹ÀÓ ÄÁÆ®·Ñ.. ¤¾
function resizeFrame(fr) {
	fr.setExpression("height",Total.document.body.scrollHeight);
}
// À½.. ³×ºñ°ÔÀÌ¼Ç¹Ù ½ºÅ©¸³Æ®
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_nbGroup(event, grpName) { //v6.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : ((args[i+1])? args[i+1] : img.MM_up);
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    nbArr = document[grpName];
    if (nbArr)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = (args[i+1])? args[i+1] : img.MM_up;
      nbArr[nbArr.length] = img;
  } }
}

//<a href="javascript:goMenu('ex2')">¸µÅ©</a>
function goMenu(menu_idx)
{
	var goURL = "";

	switch (menu_idx)
	{
		case "ex1" : //ÆäÀÌÁö ÀÌµ¿
			goURL = '#.aspl';
		break;
		case "ex2" : //»õÃ¢ °¡¿îµ¥
			openWinCenter("#.aspl","ex","width=700,height=500");
		break;
		case "ex3" : //»õÃ¢
			window.open("#.aspl","ex","");
		break;
		
/////////////////////////////////////////////////////////////////mainpage///////////////////////////////////////////////////////////
		
		case "main_index" : //¸ÞÀÎ
			goURL = '/index.asp';
		break;
		 
/////////////////////////////////////////////////////////////////montbell ///////////////////////////////////////////////////////////

		case "ceo" : //ceo
			goURL = '/montbell/brand.asp';
		break;
		case "press" : //press
			goURL = '/montbell/brand2.asp';
		break;
		case "brand" : //brand
			goURL = '/montbell/brand3.asp';
		break;

		
/////////////////////////////////////////////////////////////////Product///////////////////////////////////////////////////////////

		
		//////////////¾ÆÀÌÅÛ ¸µÅ© ºÐ·ù/// ¼­ºêÀÇ ¾ÆÀÌÅÛÆäÀÌÁö ÇÃ·¡½Ã ³»¿¡¼­ ¸µÅ©°ªÀ¸·Î ¾²ÀÔ´Ï´Ù./////////////////
		
		///ÇÃ·¡½Ã µõµå °ªµé....°¢ÆäÀÌÁö ¸¶´Ù Àû¿ë ¿¹) <script>flash_tr('¾ÆÀÌÅÛÇÃ·¡½Ã¶ó¸é.swf?pro_num=´ë¸Þ´º°ª&sun_num=¼Ò¸Þ´º°ª','960','85') <//script>////////////

		case "item_man_jacket_all" : //item (³²¼ºÀÚÄÏ)
			goURL = '/product/item_list.asp?depth1_idx=1&depth2_idx=1';
		break;
		case "item_man_jacket" : //item (³²¼ºÀÚÄÏ)
			goURL = '/product/item_list.asp?depth1_idx=1&depth2_idx=1';
		break;
		case "item_man_tshirts" : //item (³²¼ºÆ¼¼ÅÃ÷) 
			goURL = '/product/item_list.asp?depth1_idx=1&depth2_idx=2'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_man_pants" : //item (³²¼ºÆÒÃ÷) 
			goURL = '/product/item_list.asp?depth1_idx=1&depth2_idx=3'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_man_underwear" : //item (³²¼º³»ÀÇ) 
			goURL = '/product/item_list.asp?depth1_idx=1&depth2_idx=4'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_man_etc" : //item (³²¼º±âÅ¸) 
			goURL = '/product/item_list.asp?depth1_idx=1&depth2_idx=5'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_woman_jacket_all" : //item (Àü¸éºÎ)
			goURL = '/product/item_list.asp?depth1_idx=2&depth2_idx=6'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_woman_jacket" : //item (¿©¼ºÀÚÄÏ) 
			goURL = '/product/item_list.asp?depth1_idx=2&depth2_idx=6'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_woman_tshirts" : //item (¿©¼ºÆ¼¼ÅÃ÷) 
			goURL = '/product/item_list.asp?depth1_idx=2&depth2_idx=7'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_woman_pants" : //item (¿©¼ºÆÒÃ÷) 
			goURL = '/product/item_list.asp?depth1_idx=2&depth2_idx=8'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_woman_underwear" : //item (¿©¼º³»ÀÇ) 
			goURL = '/product/item_list.asp?depth1_idx=2&depth2_idx=9'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_woman_etc" : //item (¿©¼º±âÅ¸) 
			goURL = '/product/item_list.asp?depth1_idx=2&depth2_idx=10'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_s_shoes_all" : //item (Àü¸éºÎ)
		    goURL = '/product/item_list.asp?depth1_idx=3&depth2_idx=11'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_s_shoes" : //shoes(°æµî»êÈ­)
			goURL = '/product/item_list.asp?depth1_idx=3&depth2_idx=11'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_m_shoes" : //shoes(Áßµî»êÈ­)
			goURL = ' /product/item_list.asp?depth1_idx=3&depth2_idx=12'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_ridge_shoes" : //shoes(¸´ÁöÈ­)
			goURL = '/product/item_list.asp?depth1_idx=3&depth2_idx=13'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_etc_shoes" : //shoes(½Å¹ß±âÅ¸)
			goURL = '/product/item_list.asp?depth1_idx=3&depth2_idx=15'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_50_bag_all" : //item (Àü¸éºÎ)
			goURL = '/product/item_list.asp?depth1_idx=4&depth2_idx=16'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_50_bag" : //bag(¹è³¶ 50¸®ÅÍÀÌ»ó)
			goURL = '/product/item_list.asp?depth1_idx=4&depth2_idx=16'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_33_bag" : //bag(¹è³¶ 33~50¸®ÅÍ)
			goURL = '/product/item_list.asp?depth1_idx=4&depth2_idx=17'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_32_bag" : //bag(¹è³¶ 32¸®ÅÍÀÌÇÏ)
			goURL = '/product/item_list.asp?depth1_idx=4&depth2_idx=18'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_etc_bag" : //bag(¹è³¶ ±âÅ¸)
			goURL = '/product/item_list.asp?depth1_idx=4&depth2_idx=19'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_socks_all" : //item (Àü¸éºÎ)
			goURL = '/product/item_list.asp?depth1_idx=5&depth2_idx=20'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_socks" : //¾ç¸»(ÀÇ·ù¼ÒÇ° ¾ç¸»)
			goURL = '/product/item_list.asp?depth1_idx=5&depth2_idx=20'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_cap" : //¸ðÀÚ·ù(ÀÇ·ù¼ÒÇ° ¸ðÀÚ·ù)
			goURL = '/product/item_list.asp?depth1_idx=5&depth2_idx=21'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_glove" : //Àå°©·ù(ÀÇ·ù¼ÒÇ° Àå°©·ù)
			goURL = '/product/item_list.asp?depth1_idx=5&depth2_idx=22'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_sleepingbag_all" : //item (Àü¸éºÎ)
			goURL = '/product/item_list.asp?depth1_idx=6&depth2_idx=23'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_sleepingbag" : //Ä§³¶·ù(µî»ê¿ëÇ° Ä§³¶·ù)
			goURL = '/product/item_list.asp?depth1_idx=6&depth2_idx=23'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_tent" : //ÅÙÆ®·ù(µî»ê¿ëÇ° ÅÙÆ®·ù)
			goURL = '/product/item_list.asp?depth1_idx=6&depth2_idx=24'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_stick" : //½ºÆ½·ù(µî»ê¿ëÇ° ½ºÆ½·ù)
		    goURL = '/product/item_list.asp?depth1_idx=6&depth2_idx=25'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		case "item_ect2" : //±âÅ¸¿ëÇ°(µî»ê¿ëÇ° ±âÅ¸)
			goURL = '/product/item_list.asp?depth1_idx=6&depth2_idx=26'; //»ý¼ºµÉ ¸µÅ©°ª »ðÀÔ.
		break;
		
		
		//////////////¾ÆÀÌÅÛ ¸µÅ© ºÐ·ù ³¡//////////////////
		
		case "product_brand" : //brand-±âÅ¸Ãë±Þºê·£µå
		goURL = '/product/brand.asp';
		break;
		
		case "item_hot" : //hot-±â´É¼º¼ÒÀç¼³¸í
			goURL = '/product/school_list.asp';
		break;
		
		case "style" : //style-¾Æ¿ôµµ¾î°¶·¯¸®
		goURL = '/product/style.asp';
		break;

/////////////////////////////////////////////////////////////////STORE//////////////////////////////////////////////////////////

		case "store" : //¸ÅÀå¾È³»
			goURL = '/store/info_list.asp';
		break;
		case "franchise" : //°³¼³ ¹× Ãë±ÞÁ¡ ¹®ÀÇ
			goURL = '/store/franchise.asp';
		break;
		case "open" : //¿ÀÇÂ¿¹Á¤¸ÅÀå¾È³»
			goURL = '/store/open_list.asp';
		break;
	
/////////////////////////////////////////////////////////////////Mont-bell Club///////////////////////////////////////

		case "mania_c" : //Mania Club
			goURL = '/club/mania_list.asp';
		break;
		case "school" : //Mania Club
			goURL = '/club/test_team.asp';
		break;
		
/////////////////////////////////////////////////////////////////Event///////////////////////////////////////////////////////////

		case "news" : //news
			goURL = '/event/press_list.asp';
		break;
		case "press_list" : //º¸µµÀÚ·á
			goURL = '/event/press_list.asp';
		break;
		case "movie": //¸ùº§¿µ»ó
			goURL = '/lounge/movie/list.asp';
		break;
		
/////////////////////////////////////////////////////////////////·Î±×ÀÎ / ·Î±×¾Æ¿ô /////////////////////////////////////

		case "login" : //·Î±×ÀÎ
			goURL = '/member/login.asp';
		break;
		case "log_out" : //·Î±×¾Æ¿ô
			goURL ='/member/logout.asp'
		break;
		case "member_modify" : //È¸¿øÁ¤º¸ ¼öÁ¤
			goURL = '/member/mypage.asp';
		break;
		
/////////////////////////////////////////////////////////////////È¸¿ø°¡ÀÔ/////////////////////////////////////////////////////////////

		case "join_us" : //È¸¿ø°¡ÀÔ
			goURL = '/member/join.asp';
		break;

/////////////////////////////////////////////////////////////////°í°´¼¾ÅÍ/////////////////////////////////////////////////////////////

		case "faq" : //FAQ
			goURL = '/customer/faq.asp';
		break;
		case "qna" : //Q&A
			goURL = '/customer/qna.asp';
		break;
		case "contact_us" : //contact_us
			goURL = '/customer/contact.asp';
		break;
		case "sitemap" : //»çÀÌÆ®¸Ê
			goURL = '/customer/sitemap.asp';
		break;
		
//////////////////////////////////////////////////////±âÅ¸¸Þ´º////////////////////////////////
		
		case "email" ://ÀÌ¸ÞÀÏ ¹«´Ü¼ö½Å°ÅºÎ (ÆË)
			openWinCenter("/member/email.asp","ex","width=350,height=230");
		break;
		case "eng" ://ÀÌ¿ë¾à°ü (ÆË)
			openWinCenter("/member/private1.asp","ex","width=600,height=540");
		break;
		case "privacy" ://°³ÀÎÁ¤º¸º¸È£Ãë±Þ¹æÄ§ (ÆË)
			openWinCenter("/member/private2.asp","ex","width=600,height=540");
		break;
		
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

		default :
			alert('ÁØºñÁßÀÔ´Ï´Ù.');
		return;

	}

	if (goURL != "") {
		location.href = goURL;
	}
}