// JavaScript Document
	/*商品一覧リスト切り替え*/
            jQuery(function ($) {
				$("a.switch_thumb").addClass("swap");
				$("ul.item_display").addClass("thumb_view");

                $("a.switch_thumb").toggle(
                    function(){
                        $(this).removeClass("swap");
                        $("ul.item_display").fadeOut("fast", function() {
                            $(this).fadeIn("fast").removeClass("thumb_view");
                        });
                    },
					function(){
                        $(this).addClass("swap"); 
                        $("ul.item_display").fadeOut("fast", function() {
                            $(this).fadeIn("fast").addClass("thumb_view"); 
                        });
                    }
                ); 
            });
			
/*全体フェードイン表示*/
window.setting = {
    styling:'html{overflow-y:scroll;}'+
    '#content,#footer{display:none;}'
};
if ( setting.styling ) {
    var style = document.createElement("style");
    var head = document.getElementsByTagName('head')[0];
    style.type = "text/css";
    
    try {
        style.appendChild( document.createTextNode( setting.styling ) );
    } catch (e) {
        if ( style.styleSheet ) {
            style.styleSheet.cssText = setting.styling;
        }
    }
    head.appendChild( style );
};
jQuery(function($){
	$('#content,#footer')
    .fadeIn(1500);
	
	/*上部へスクロールロール*/
	$("a[href^=#]").click(function(){
		var Hash = $(this.hash);
		var HashOffset = $(Hash).offset().top;
		$("html,body").animate({
			scrollTop: HashOffset
		}, 1000);
		return false;
	});
});


