/*page scroll*/
$(function() {
	$('.page_toplink a').click(
		function() {
			$('#wrapper').ScrollTo(800, 'easeout');
			return false;
		});
});



/*faq*/

$(function(){
	$("dl#qa_list dd").hide();
	$("dl#qa_list dt").click(function(){
		var index = $("dl#qa_list dt").index(this);
		$("dl#qa_list dd").eq(index).slideToggle("fast");
	});
	$("dl#qa_list dd p.btn_close").click(function(){
			var close = $("dl#qa_list dd p.btn_close").index(this);
			$("dl#qa_list dd").eq(close).slideUp("fast");
	});
});


/* product navi*/

$(function(){
	$("#head #head_navi_product").hide();
	$("#head ul li#head_navi05").mouseover(function(){
		$("#head #head_navi_product").show();
		$("#head #head_navi_product").hover(function(){
		    $("#head #head_navi_product").show();
		},function(){
		    $("#head #head_navi_product").hide();
		});
	});
});

/*scroll bar*/

$(function(){
	$('#pane1').jScrollPane({ showArrows: false, scrollbarWidth: 5 });
});
$(function(){
	$('#pane2').jScrollPane({ showArrows: false, scrollbarWidth: 5 });
});


/*rollover*/
$(function(){
	$(".over").each(function(){
		$("<img>").attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_on$2"));
	})

    $("img.over").not("[src*='_on.']").each(function(){
        var imgSrc = this.src;
        var fType = imgSrc.substring(imgSrc.lastIndexOf('.'));
        var imgName = imgSrc.substr(0, imgSrc.lastIndexOf('.'));
        var imgOver = imgName + '_on' + fType;
        $(this).hover(
            function (){
                this.src = imgOver;
            },
            function (){
                this.src = imgSrc;
            }
        );
    });
})

