/* ++++++++++++++++++++++++++++++++++++ Mission Statement +++
+
+ Update:2010-03-18
+
+ 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.tools.min.js(easing)
+
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ */


/*@cc_on var doc = document; eval('var document = doc');@*/

/* On Load Action ++++++++++++++++++++++++++++++++++++++++++ */


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

//btnMap
$(function(){
		$("#btnWoman > span").hover(function(){
		$(this).children("img").fadeIn(100);
	}, function(){
		$(this).children("img").fadeOut(100);
	});
});

/* popup */
$(function (){
	$("#btnWoman").click(function(){
		$("#popUp").animate({width: "toggle",height: "toggle"}, 200, "linear");		
	});
	$("#popClose").click(function(){
		$("#popUp").animate({width: "hide",height: "hide"}, 200, "linear");		
	});
});

/* pictPop */
$(function (){
	$("#pictLink").click(function(){
		$("#pictPop").animate({width: "toggle",height: "toggle"}, 200, "linear");		
	});
	/*$("#pictClose").click(function(){
		$("#pictPop").animate({width: "hide",height: "hide"}, 200, "linear");		
	});*/
});