/* ++++++++++++++++++++++++++++++++++++ Mission Statement +++
+
+ Update:2010-**-**
+
+ http://www.ms-inc.co.jp
+ EditiorID:***
+
+ + 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;
    });
});



//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
});


/* popup setting ********************************** */

	function popUp(URL,Winname,Wwidth,Wheight){
		var WIN;
		WIN = window.open(URL,Winname,"width="+Wwidth+",height="+Wheight+",scrollbars=yes,resizable=yes,toolbar=no,location=no,directories=no,status=no");
		WIN.focus();
	}
	function closeChild()
{
	window.close();
}

/* /popup setting ********************************** */