$(function() {
//動画ライトボックス
        $('#gallery a').lightBox();
//fancyボックス SWF立ち上げ後でライトボックス削除
		$(".various4").fancybox({
				'padding'			: 10,
				'autoScale'			: false,
				'transitionIn'		: 'none',
				'transitionOut'		: 'none',
				'width'             : 650,
				'height'            : 500
		});
//ボタンロールオーバー
        var postfix = '_on'; 
        $('.btn_on a img').not('[src*="'+ postfix +'."]').not("[src*='_on.']").each(function() { 
             var img = $(this); 
             var src = img.attr('src'); 
             var src_on = src.substr(0, src.lastIndexOf('.')) + postfix + src.substring(src.lastIndexOf('.')); 
        $('<img>').attr('src', src_on); 
             img.hover(function() { 
                  img.attr('src', src_on); 
             },function() { 
                  img.attr('src', src); 
             }); 
        });
//Q&Aのスライド
        $(".block_e dd").css("display","none");
		$(".block_e dl dt").click(function(){
				$("+dd",this).slideToggle(250);
		});
//画像ドラッグ回転
		 $('#reel').reel({ frames: 36, indicator: 10, saves: true 
		});
//フラッシュ
       var params = {
       wmode: "transparent"
       };
       swfobject.embedSWF("http://test3.nakamotohonten.co.jp/yamamura_cms/assets/images/flash/yamamuraTop.swf", "flash", "1200", "547", "9.0.0","",{},params);
//画像のフェードのみ
        $("ul.photoFade").innerfade({
			speed:1000,
			timeout:5000,
			type:'sequence',
			containerheight:'296px'
		});
//要素にクラス追加
		//$("#gmenu li:first").css("marginLeft","0px");		
		//$("#gmenu2 li:first").css("marginLeft","0px");		
		$("#topics li:first").css("borderTop","1px #000 solid");		
		$("#topics li:last").css("borderBottom","1px #000 solid");	
		//$(".pagemenu4 li:first,.pagemenu5 li:first,.pagemenu4_s li:first").css("marginLeft","0px");	
})

