////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   imgOver
//
//**************************************************************************************************************
//
//  Example)
//      <img src="/_image/common/ÀÌ¹ÌÁö.jpg" alt="" title="" onmouseover="imgOver(this)" onmouseout="imgOver(this,'out')">
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function imgOver(imgEl,opt) {
    var src = imgEl.getAttribute('src');
    var ftype = src.substring(src.lastIndexOf('.'), src.length);
    
    if (opt == 'out') imgEl.src = imgEl.src.replace("_over"+ftype, ftype);
    else imgEl.src = imgEl.src.replace(ftype, "_over"+ftype);
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   goFlash
//
//**************************************************************************************************************
//
//  Usage) ÇÃ·¡½Ã ¸µÅ© ÀÚ¹Ù½ºÅ©¸³Æ® ¿¬µ¿
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////

var flashLink=new Array();
flashLink['topMenu_0']="/content/content.php?cont=travel";
flashLink['topMenu_1']="/content/content.php?cont=map";
flashLink['topMenu_2_00']="/board?db=notice";
flashLink['topMenu_2_01']="/board?db=review";
flashLink['topMenu_2_02']="/board?db=qna";

flashLink['menu_0_00']="/content/content.php?cont=intro";
flashLink['menu_0_01']="/content/content.php?cont=outside";
flashLink['menu_0_02']="/content/content.php?cont=space";

flashLink['menu_1_00']="/content/content.php?cont=rooms_dasoda";
flashLink['menu_1_01']="/content/content.php?cont=rooms_raon";
flashLink['menu_1_02']="/content/content.php?cont=rooms_danmi";
flashLink['menu_1_03']="/content/content.php?cont=rooms_ato";
flashLink['menu_1_04']="/content/content.php?cont=rooms_choa";
flashLink['menu_1_05']="/content/content.php?cont=rooms_atti1";
flashLink['menu_1_06']="/content/content.php?cont=rooms_atti2";
flashLink['menu_1_07']="/content/content.php?cont=rooms_atti3";

flashLink['menu_2_00']="/content/content.php?cont=reservation";
flashLink['menu_2_01']="/content/content.php?cont=reservation_entry";

flashLink['menu_3_00']="/content/content.php?cont=special";

flashLink['menu_4_00']="/content/content.php?cont=event_bridal";
flashLink['menu_4_01']="/content/content.php?cont=event_wedding";
flashLink['menu_4_02']="/content/content.php?cont=event_propose";
flashLink['menu_4_03']="/content/content.php?cont=event_balloon";


function goFlash(n){
	//alert(n);
	if (!flashLink[n]) return;
	else if (n=='btn_cyworld') window.open(flashLink[n]);
	else location.href=flashLink[n];
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   setPng24
//
//**************************************************************************************************************
//
//  Usage) IE 7 ÀÌÇÏ¿¡¼­ png24 ÀÇ ¾ËÆÄÃ¤³Î Áö¿ø
//
//  Example)
//      <img src="ÀÌ¹ÌÁö" alt="" title="" class="png24">
//      -  css ÆÄÀÏ¶Ç´Â ¹®¼­³»¿¡ .png24{tmp:expression(setPng24(this));} °¡ ÁöÁ¤µÇÀÖ¾î¾ß »ç¿ë°¡´É
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////

function setPng24(obj) { 
      var browser = navigator.appName;
      var version = parseFloat(navigator.appVersion.replace (/^.*MSIE ([.0-9]+).*$/,"$1"));

      if(browser.indexOf("Internet Explorer") && version < 7.0 ) { // IE6 ÀÌÇÏ¿¡¼­¸¸ µ¿ÀÛ 2008-03-14 by zardsama
            obj.width=obj.height=1; 
            obj.className=obj.className.replace(/\bpng24\b/i,''); 
            obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');" 
            obj.src='';  
            return ''; 
      }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   bookmarksite
//
//**************************************************************************************************************
//
//  Usage) Áñ°ÜÃ£±â
//         -  À§»ç¸ô °ü¸®ÀÚÀÇ ¼îÇÎ¸ô°ü¸® - ´ëÇ¥µµ¸ÞÀÎ ¼³Á¤ - ´ëÇ¥µµ¸ÞÀÎ, 
//            À§»ç¸ô °ü¸®ÀÚÀÇ ¼îÇÎ¸ô°ü¸® - Å¸ÀÌÆ²¸ÞÅ¸°Ë»ö - À¥ºê¶ó¿ìÀú Å¸ÀÌÆ²ÀÌ ³»¿ëÀ¸·Î µé¾î°¨
//
//  Example)
//      <img src="ÀÌ¹ÌÁö°æ·Î" alt="Áñ°ÜÃ£±â" onclick="addBookmark()">
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function addBookmark() {
	var url = root_url;
    var title = document.title;

    if (window.sidebar) {// firefox
        window.sidebar.addPanel(title, url, ""); 
    }

    else if(window.opera && window.print) {// opera
        var elem = document.createElement('a');
        elem.setAttribute('href',url);
        elem.setAttribute('title',title);
        elem.setAttribute('rel','sidebar');
        elem.click();
    }

    else if(window.external) {// IE
        window.external.AddFavorite(url, title);
    }
}
