/* ++++++++++++++++++++++++++++++++++++ Mission Statement +++
+
+ Update:2010-02-09
+
+ http://www.ms-inc.co.jp
+ EditiorID:REN
+
+ + use library:jquery-1.4.1.js(mother javascript)
+ + dd_belatedPNG_0.0.8a-min.js(png for IE6)
+ + jquery.easing.1.3.js
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/* On Load Action ++++++++++++++++++++++++++++++++++++++++++ */
/*@cc_on var doc = document; eval('var document = doc');@*/


// escape conflict
jQuery(function($){

//mouseover
function initRollOverImages() {
  var image_cache = new Object();
  $("img.imgOn,input.imgOn").each(function(i) {
    var imgsrc = this.src;
    var dot = this.src.lastIndexOf('.');
    var imgsrc_on = this.src.substr(0, dot) + '_on' + this.src.substr(dot, 4);
    image_cache[this.src] = new Image();
    image_cache[this.src].src = imgsrc_on;
    $(this).hover(
      function() { this.src = imgsrc_on; },
      function() { this.src = imgsrc; });
  });
}
$(document).ready(initRollOverImages);


/*TargetBlank*/
$(function(){
    $('.blank').click(function(){
        window.open(this.href, '_blank');
        return false;
    });
});


//gNv
$(function(){
		$("#gNv > li > a").hover(function(){
		$(this).children("img").fadeOut(200);
	}, function(){
		$(this).children("img").fadeIn(200);
	});
});

//fNv
$(function(){
		$("#fNv > li > a").hover(function(){
		$(this).children("img").fadeOut(200);
	}, function(){
		$(this).children("img").fadeIn(200);
	});
});


//scroll
$(document).ready(function(){
  $('a[href^=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = $target.offset().top;
  $('html,body')
  .animate({scrollTop: targetOffset}, {duration:1000, easing:"easeOutExpo"});
    return false;
   }
 }
  });
});

// escape conflict close
});
