/* jquery
----------------------------------------------- */
$(document).ready(function() {

	//pdf
	$('a[href$=".pdf"]').click(function() {
		window.open(this.href, '');
		return false;
	});
	
	//pageTop
	$("#pageTop a").click(function() {
		var targetOffset = $("#container").offset().top;
		$("html,body").animate({scrollTop: targetOffset}, 1000);
		return false;
	});
	
	//top
	$("#newarrivalArea .blockWrapper div:nth-child(4n)").css("padding-right", "0");
	$("#newarrivalArea .blockWrapper div:nth-child(5)").css("border-bottom", "none");
	$("#newarrivalArea .blockWrapper div:nth-child(6)").css("border-bottom", "none");
	$("#newarrivalArea .blockWrapper div:nth-child(7)").css("border-bottom", "none");
	$("#newarrivalArea .blockWrapper div:nth-child(8)").css("border-bottom", "none");
	
	$("#recommendArea div:nth-child(2n)").css("margin-right", "0");
	
	//products
	$("#listArea div:nth-child(4n)").css("padding-right", "0");
	$("#listArea div:nth-child(1)").css("border-top", "none");
	$("#listArea div:nth-child(2)").css("border-top", "none");
	$("#listArea div:nth-child(3)").css("border-top", "none");
	$("#listArea div:nth-child(4)").css("border-top", "none");
	
	$("#relatedArea .blockWrapper div:nth-child(4n)").css("padding-right", "0");

});

