////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   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 ''; 
      }
}


////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   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);
}




////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
//  ¢Æ   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);
	}
}



/////////////////////////////////////////////////////////////////////////////////////////
//
//	¢Æ flash menu link
//
// **************************************************************************
//
/////////////////////////////////////////////////////////////////////////////////////////
var flashLink=new Array();
flashLink["logo_btn"]="/";
flashLink["btn_review"]="/shop/product_review_list.php";
flashLink["btn_qna"]="/shop/product_qna_list.php";
flashLink["btn_community"]="/content/content.php?cont=community";

flashLink["category_00"]="/shop/big_section.php?cno1=1001";
flashLink["category_01"]="/shop/big_section.php?cno1=1002";
flashLink["category_02"]="/shop/big_section.php?cno1=1003";
flashLink["category_03"]="/shop/big_section.php?cno1=1004";
flashLink["category_04"]="/shop/big_section.php?cno1=1005";
flashLink["category_05"]="/shop/big_section.php?cno1=1006";
flashLink["category_06"]="/shop/big_section.php?cno1=1007";
flashLink["category_07"]="/shop/big_section.php?cno1=1008";
flashLink["category_08"]="/shop/big_section.php?cno1=1009";
flashLink["category_09"]="/shop/big_section.php?cno1=1014";
flashLink["category_10"]="/shop/big_section.php?cno1=1015";
flashLink["category_11"]="/shop/big_section.php?cno1=1016";
flashLink["category_12"]="/shop/big_section.php?cno1=1017";
flashLink["category_13"]="/shop/big_section.php?cno1=1018";
flashLink["category_14"]="/shop/big_section.php?cno1=1019";
flashLink["category_15"]="/shop/big_section.php?cno1=1020";

flashLink['btn_favorite']="javascript:addBookmark();";


flashLink['memberMenu_00']="/member/login.php";//·Î±×ÀÎ
flashLink['memberMenu_01']="/main/exec.php?exec_file=member/logout.exe.php";//·Î±×¾Æ¿ô
flashLink['memberMenu_02']="/member/join_step1.php";//È¸¿ø°¡ÀÔ
flashLink['memberMenu_03']="/member/edit_step1.php";//È¸¿øÁ¤º¸¼öÁ¤
flashLink['memberMenu_04']="/shop/cart.php";//Àå¹Ù±¸´Ï
flashLink['memberMenu_05']="/mypage/mypage.php";//¸¶ÀÌÆäÀÌÁö
flashLink['memberMenu_06']="/mypage/order_list.php";//ÁÖ¹®Á¶È¸
flashLink['memberMenu_07']="/content/content.php?cont=guide";//¸¶ÀÌÆäÀÌÁö

flashLink['cafe_btn']="http://cafe.naver.com/sensess.cafe";

flashLink['me_btn']="/board/?db=basic_2";
flashLink['notice_btn']="/board/?db=basic_1";
flashLink['checkout_btn']="/mypage/attend_list.php";
flashLink['event_btn']="/board/?db=basic_3";
flashLink['qna_btn']="/shop/product_qna_list.php";
flashLink['diary_btn']="/board/?db=blog_1";
flashLink['review_btn']="/shop/product_review_list.php";
flashLink['lotto_btn']="/board/?db=basic_4";

function goFlash(n){
	//alert(n);
	if (!flashLink[n]) return;
	else if (n=='cafe_btn') window.open(flashLink[n]);
	else location.href=flashLink[n];
}