// JavaScript Document

$(function(){
     $('a img').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'));
        }
   });
});

$(function(){
     $("a[href^='http://']").attr("target","_blank");
});

$(function(){
     $(".sampleBox").click(function(){
         window.location=$(this).find("a").attr("href");
         return false;
    });
});

$(function(){
     $("#toTop a").click(function(){
     $('html,body').animate({ scrollTop: $($(this).attr("href")).offset().top }, 'slow','swing');
     return false;
     })
});

$(function () {
     if ( $.browser.msie && $.browser.version <= 6 ) {
             $('body').prepend('<div class="error">あなたは旧式ブラウザをご利用中です。このウェブサイトを快適に閲覧するにはブラウザをアップグレードしてください。</div>');
     }
});


$(function () {
     $(".deleteBox .delete").click(function(){
         $(this).parents(".deleteBox").animate({ opacity: "hide" }, "slow");
     });
});

$(function(){
     $(".open").click(function(){
      $("#slideBox").slideToggle("slow");
     });
});

$(function(){
     $(".tooltip a").hover(function() {
        $(this).next("span").animate({opacity: "show", top: "-75"}, "slow");}, function() {
               $(this).next("span").animate({opacity: "hide", top: "-85"}, "fast");
     });
});

$(document).ready(function(){
     $("#midashi").fadeIn(1000).fadeOut(3000);
     $("#page").delay(4000).fadeIn(800);
	 });
	 
$(document).ready(function() {
	$(".navi2 dt").hover(function(){
		$(this).css("cursor","pointer"); 
	},function(){
		$(this).css("cursor","default"); 
		});
	$(".navi2 dd").css("display","none");
	$(".navi2 dt").click(function(){
		$(this).next().slideToggle("slow");
		});
});
