// 画像のロールオーバー

$(function () {
    $.rollover = {
        init: function () {
            $('a img,input[type="iamge"]').not('[@src*="_on."]')
                .bind('mouseover', this.over)
                .bind('mouseout',  this.out)
                .each(this.preload);
        },

        over : function () {
            this.setAttribute('src', this.getAttribute('src').replace('_off.', '_on.'));
        },

        out : function () {
            this.setAttribute('src', this.getAttribute('src').replace('_on.', '_off.'));
        },

        preload : function () {
            new Image().src = this.getAttribute('src').replace('_off.', '_on.');
        }
    };

    $.rollover.init();
});



// スライド式メニュー

function mainmenu(){
$(" div#contents_navigation ul ul ").css({display: "none"}); // Opera Fix
$(" div#contents_navigation li ").hover(function(){
		$(this).find('ul:first').css({visibility: "visible",display: "none"}).show(400);
		},function(){
		$(this).find('ul:first').css({visibility: "hidden"});
		});
}


$(document).ready(function(){
	mainmenu();
});