/*
 * MJLライブラリ用
 */
MJL.event.add(window, "load", function(event) {
    // MJL に関係するコードはこの中に記述
	
	/*新規ウィンドウ*/
    MJL.enable.window("tv_window",{name:"pop",menubar:"no",toolbar:"no",location:"no",status:"no",width:"1020px",height:"680px",top:"10",left:"10"});
	/*2ブロックの高さ*/
    MJL.enable.heightEqualizer("equalize2", {groupBy:2});
}, false);


/*
 * その他
 */

//マウスオーバー（画像名の最後に、通常時「_off」を、マウスオーバー時「_on」を付けるだけ）
$(function(){
     $('a img,input[type="image"]').hover(function(){
        $(this).attr('src', $(this).attr('src').replace('_off', '_on'));
          }, function(){
             if (!$(this).hasClass('currentPage')) {
             $(this).attr('src', $(this).attr('src').replace('_on', '_off'));
        }
   });
});

/*
 * スクロールバー
 * jScrollPane.js + jquery.mousewheel.jp
 */ 
$(function(){
	$('.scrollbox').jScrollPane({
		scrollbarWidth: 6,
		scrollbarMargin: 5
	});
});

/*
 * ドロップシャドウ
 * jquery.dropshadow.js
 */ 
$(function(){
	$('#movie').dropShadow({
	  left : 1 ,
	  top : 1 ,
	  blur : 4 ,
	  color : "#000"
	});
});


// ストライプ
$(function(){
    $('.stripe li:nth-child(odd), .stripe tr:nth-child(odd)').addClass("odd");
    $('.stripe li:nth-child(even), .stripe tr:nth-child(odd)').addClass("even");
});
