//Unfold¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ªUnfold//
$(document).ready(function(){
	$(".Unfold").click(function(){
		$(this).hide();
		$(".Packup").show();
		$(this).parent().next().addClass("PhoGal_unfold");
	});
	$(".Packup").click(function(){
		$(this).hide();
		$(".Unfold").show();
		$(this).parent().next().toggleClass("PhoGal_unfold");
	});
});

//OtherHot_list¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ªOtherHot_list//
$(document).ready(function(){
	$(".OtherHot div").each(function(){
		$(this).mousemove(function(){
			$(this).siblings("div").removeClass("OtherHot-yes");
			$(this).addClass("OtherHot-yes");
		});
	});
});

//·ÖÏíÊÕ²Ø
function addFavorites() { 
    if (document.all) {
        window.external.addFavorite(window.location, document.title);
    } else if (window.sidebar) {
        window.sidebar.addPanel(document.title, window.location, "");
    }
} 

//Í¼Æ¬ÑÓ³Ù¼ÓÔØ
$(function() {
    $("img").not(".nolazyload").lazyload({ placeholder: "/img/grey.gif",failurelimit:50 });
});

//¹ºÎï³µ¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ª¡ªshop
$(function() {
    $(".Site-shop").hover(function() {
        $(this).children(".Site-shopCon").fadeIn("fast");
        $(this).addClass("Site-shopBtn_on");
    }, function() {
        $(this).children(".Site-shopCon").fadeOut("fast");
        $(this).removeClass("Site-shopBtn_on");
    });
});

$(function() {
    cart.initItem();
    if ($("#shopCart").length) {
        cart.buildCart();
    }
});

function continueBuy(obj) {
    $("#" + obj).fadeOut("fast")
    $(".Masking").fadeOut("fast");
}

function changeImg(mypic) {
    var xw = 110;
    var xh = 110;
    var width = mypic.width;
    var height = mypic.height;
    var A = width / xw;
    var B = height / xh;
    if (A > 1 || B > 1) {
        if (A < B) {
            mypic.height = xh;
        }
        if (A > B) {
            mypic.width = xw;
        }
    }
} 

