jQuery.noConflict(); 
var j$ = jQuery;

j$(function(){
   
	
	j$('#article #shopItems .itemLists dl').eq(3).css("clear","both");
	j$('#article #shopItems .itemLists dl').eq(2).addClass("fix");
	
	j$('a[href^=#]').click(function() {
		var speed = 400;// ミリ秒
		var href= j$(this).attr("href");
		var target = j$(href == "#" || href == "" ? 'html' : href);
		var position = target.offset().top;
		j$(j$.browser.safari ? 'body' : 'html').animate({scrollTop:position}, speed, 'swing');
		return false;
	});
	
	j$(".jqhover").hover(function(){
		var index = j$(".jqhover").index(this);
		j$(".jqhover").eq(index).animate({
			opacity: 0.7
		},0);
	},
	function(){
		var index = j$(".jqhover").index(this);
		j$(".jqhover").eq(index).animate({
			opacity: 1
		},0);
	});
	
	j$("#listPage #article .xc_productList .xc_productListImage img").hover(function(){
		var index = j$("#listPage #article .xc_productList .xc_productListImage img").index(this);
		j$("#listPage #article .xc_productList .xc_productListImage img").eq(index).animate({
			opacity: 0.7
		},0);
	},
	function(){
		var index = j$("#listPage #article .xc_productList .xc_productListImage img").index(this);
		j$("#listPage #article .xc_productList .xc_productListImage img").eq(index).animate({
			opacity: 1
		},0);
	});
	
	j$("#listPage #article .xc_productList .xc_productListImage input").hover(function(){
		var index = j$("#listPage #article .xc_productList .xc_productListImage input").index(this);
		j$("#listPage #article .xc_productList .xc_productListImage input").eq(index).animate({
			opacity: 0.7
		},0);
	},
	function(){
		var index = j$("#listPage #article .xc_productList .xc_productListImage input").index(this);
		j$("#listPage #article .xc_productList .xc_productListImage input").eq(index).animate({
			opacity: 1
		},0);
	});
   
	//var clnLink = j$("#listPage #article .xc_productList .xc_productLink").clone();
	
	/*var pBoxLn = j$("#listPage #article .xc_productList .xc_productListBox").length;
	for(var i = 0; i < pBoxLn; i++){
		j$("#listPage #article .xc_productList .xc_productListBox").eq(i).find(".xc_productComment").after(j$("#listPage #article .xc_productList .xc_productListBox").eq(i).find(".xc_productLink").clone());
		j$("#listPage #article .xc_productList .xc_productListBox").eq(i).find(".xc_productLink:first").empty();
	}*/
	
	j$("#listPage #article .xc_productList .xc_productListBox:last").css("margin-bottom","0");
	j$("#listPage #article .xc_textRight:first").addClass("fstPager");
	j$("#listPage #listHeader").nextAll("h3:first").hide();
	j$("#cartPage #article #cartInner .xc_cartView td a:odd").addClass("caut").before("<br />");
	j$("#cartPage #article #cartInner input.xc_floatRight:last").after("<div class='clears'></div>");
	j$("#cartPage #article #cartInner p:last").css("padding-bottom","0");
	//j$("#cartPage #article #cartInner h3").eq(1).css("margin","0");
	//j$("#cartPage #article #cartInner h3").eq(1).css("margin","0 0 20px");
	j$(".cartBtm #article #cartInner table.xc_normal").eq(1).find("th").addClass("jqth").removeAttr("width");
	j$(".cartBtm #article #cartInner table.xc_normal td textarea").css("width","400px");
	j$("#listPage #article .xc_productList .xc_productListBox").addClass("clearfix");
	
	//window.location.reload();
	
	/*var engine = document.documentMode;
	setTimeout("location.reload()",5000);*/
	if(jQuery.browser.msie && parseInt(jQuery.browser.version) == 8){
		j$(".xc_productList").hide();
		setTimeout(function(){
			j$(".xc_productList").show();
		},300);
	}
	
});
