$(document).ready( function () {
//    $(".blank").append('&nbsp;<img src="../img/popup.gif" height="12" width="14" alt="" />');
//    $(".blank img").css("vertical-align","text-top");
//    $(".blank").after('&nbsp;');
    $('.blank').click(function(){
        window.open(this.href, '_blank');
        return false;
    });
});

function initRollOverImages() {
	var image_cache = new Object();
	$(".rollover a img").not("[src*='_on.']").each(function(i) {
		var imgsrc = this.src;
		var dot = this.src.lastIndexOf('.');
		var imgsrc_hov = this.src.substr(0, dot) + '_hov' + this.src.substr(dot, 4);
		image_cache[this.src] = new Image();
		image_cache[this.src].src = imgsrc_hov;
		$(this).hover(
			function() { this.src = imgsrc_hov; },
			function() { this.src = imgsrc; }
		);
	});
}
$(document).ready(initRollOverImages);


$(function() {
    $('#main-img-index').cycle({ 
    fx:    'fade', 
    speed:  5000 
 });
});


(function($) {
  $(function() {
    $.hamFunction.opacityRollOver({
      /*適応させる部分の変更*/
      fnClass:'.shisetsu IMG',
      /*デフォルトの透明度指定*/
      opacityDef:1.0,
      /*フェードの時間指定*/
      fadeTime:250,
      /*マウスオーバー時の透明度の指定*/
      opacityOn:0.5,
      /*マウスアウト時の最初の透明度の指定*/
      opacityOff:1.0
    });
  });

  $.hamFunction = {
    opacityRollOver: function(options){
      var c = $.extend(options);
      $(c.fnClass).each(function(){
        $(this).css('opacity',c.opacityDef)
          .hover(function(){
            $(this).fadeTo(c.fadeTime,c.opacityOn);
          },
          function(){
            $(this).fadeTo(c.fadeTime,c.opacityOff);
          }
        )
      });
    }
  };
})(jQuery);
