function show_tab(divid,dcnt,idx) {
	for(i=1;i<= dcnt; i++) {
		if(idx==i) {
			document.getElementById(divid + i).style.display = "block";
		} else {
			document.getElementById(divid + i).style.display = "none";
		}
	}
}

function flashView(_src,_w,_h,_trans){
	var trans = _trans;
	//<![CDATA[
		bcEmbed = '';
		bcEmbed += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+_w+'" height="'+_h+'" align="middle" />';
		bcEmbed += '<param name="allowScriptAccess" value="always" />';
		bcEmbed += '<param name="allowFullScreen" value="false" />';
		bcEmbed += '<param name="movie" value="'+_src+'" />';
		bcEmbed += '<param name="quality" value="high" />';
		if(trans == "no") "";
		else bcEmbed += '<param name="wmode" value="transparent" />';

		bcEmbed += '<param name="menu" value="false" />';
		bcEmbed += '<embed src="'+_src+'" quality="high" width="'+_w+'" height="'+_h+'" wmode="Transparent" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" align="middle" />';
		bcEmbed += '</object>';
	//]]>

	try {
		document.write(bcEmbed);
		} catch(e) {
	}
}


function imgView(_flag){
	var flag = _flag;
	var num;
	if(flag == "01_meditation") num = 1;
	else if(flag == "02_meditour") num = 1;
	else if(flag == "03_meditour") num = 3;
	else if(flag == "04_domestic") num = 4;
	else if(flag == "05_theme") num = 5;
	else if(flag == "06_backpack") num = 6;
	else if(flag == "07_honey") num = 7;
	else if(flag == "08_hotel") num = 8;
	else if(flag == "09_customer") num = 9;
	else if(flag == "10_story") num = 10;
	else if(flag == "11_info") num = 11;
	else if(flag == "12_mypage") num = 12;
	else num = 13;
	if(num > 9) document.write("<img src='../images/sub_visual/sub_visual_"+num+".gif' />");
	else document.write("<img src='../images/sub_visual/sub_visual_0"+num+".gif' />");
}
function titleView(_mn,_sn){
	var mn = _mn;
	var sn = _sn;
	var num;
	if(mn == "01_meditation") num = 1;
	else if(mn == "02_meditour") num = 2;
	else if(mn == "03_meditour") num = 3;
	else if(mn == "04_domestic") num = 4;
	else if(mn == "05_theme") num = 5;
	else if(mn == "06_backpack") num = 6;
	else if(mn == "07_honey") num = 7;
	else if(mn == "08_hotel") num = 8;
	else if(mn == "09_customer") num = 9;
	else if(mn == "10_story") num = 10;
	else if(mn == "11_info") num = 11;
	else if(mn == "12_mypage") num = 12;
	else num = 13;
	if(num > 9) document.write("<img src='../images/99_common/subtit_"+num+"_0"+sn+".gif' />");
	else document.write("<img src='../images/99_common/subtit_0"+num+"_0"+sn+".gif' />");
}
function l_titleView(_mn){
	var mn = _mn;
	var num;
	if(mn == "01_meditation") num = 1;
	else if(mn == "02_meditour") num = 2;
	else if(mn == "03_meditour") num = 3;
	else if(mn == "04_domestic") num = 4;
	else if(mn == "05_theme") num = 5;
	else if(mn == "06_backpack") num = 6;
	else if(mn == "07_honey") num = 7;
	else if(mn == "08_hotel") num = 8;
	else if(mn == "09_customer") num = 9;
	else if(mn == "10_story") num = 10;
	else if(mn == "11_info") num = 11;
	else if(mn == "12_mypage") num = 12;
	else num = 13;
	if(num > 9) document.write("<img src='../images/sub_left_title/left_top_"+num+".gif' />");
	else document.write("<img src='../images/sub_left_title/left_top_0"+num+".gif' />");
}

function left_fs(_divid, _idx, _str){
	document.getElementById(_divid+_idx).innerHTML = "<img src='../images/99_common/left_icon_ov.gif' /><font color='#48b011'><b>"+_str+"</b></font>";
}

function urlGo(_url){
	location.href = _url;
}

var flag = false;
function gnbView(_obj){
    if(flag == false){
        document.getElementById(_obj).style.display = "block";
        flag = true;
    }else{
        document.getElementById(_obj).style.display = "none";
        flag = false;
    }
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
