////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¡á setPng24
//
//**************************************************************************************************************
//
// Usage) IE 6¿¡¼­ 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 ''; 
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¡á eaChg(
//
//**************************************************************************************************************
//
//  Usage) input text ¼ýÀÚ up & down
//
//  Example)
//      <img src="¾÷" alt="" title="" onclick="eaChg(f,pm)">
//      <img src="´Ù¿î" alt="" title="" onclick="eaChg(f,pm)">
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function eaChg(f,pm){
    if (pm == 1) {
        f.buy_ea.value++;
    }else {
        if (f.buy_ea.value <= 1) return;
        f.buy_ea.value--;
    }
}

////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// ¡á addBookmark
//
//**************************************************************************************************************
//
//  Usage) Áñ°ÜÃ£±â
//
//  Example)
//      <img src="ÀÌ¹ÌÁö" alt="" title="" onclick="addBookmark()">
//      -  À§»ç¸ôÀÇ °æ¿ì 
//         °°ÀÌ phpº¯¼ö¿Í ÇÔ²² »ç¿ë°¡´É
//
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
function addBookmark(url, title) {
    if (!url) var url = root_url;
    if (!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(document.all) // IE
    window.external.AddFavorite(url, title);
    else { // for other browsers which does not support
        alert('Your browser does not support this bookmark action');
        return false;
    }
}
