//ロールオーバー効果

$(function() { 

$("img.rollover") 
    .each(function() { 
      var baseImage = $(this).attr("src"); 
      var ext = baseImage.substring(baseImage.lastIndexOf('.'), baseImage.length); 
      var overImage = baseImage.replace(ext, '_o' + ext); 
      new Image().src = overImage; 
      $(this).attr({basesrc: baseImage, oversrc: overImage}); 
    }) 
    .hover(function() { 
        $(this).attr({src: $(this).attr("oversrc")}); 
      }, 
      function() { 
        $(this).attr({src: $(this).attr("basesrc")}); 
    } 
  );

});




// 現在ページスタイル

function stay() {

		$(".kidaore #container.cat1 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat1.jpg"});
		$(".kidaore #container.cat2 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat2.jpg"});
		$(".kidaore #container.cat3 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat3.jpg"});
		$(".kidaore #container.cat4 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat4.jpg"});
		$(".kidaore #container.cat5 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat5.jpg"});
		$(".kidaore #container.cat6 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat6.jpg"});
		$(".kidaore #container.cat7 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat7.jpg"});
		$(".kidaore #container.cat8 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat8.jpg"});
		$(".kidaore #container.cat9 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat9.jpg"});
		$(".kidaore #container.cat10 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat10.jpg"});
		$(".kidaore #container.cat11 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_kidaore_cat11.jpg"});

		$(".staff #container.cat1 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat1.jpg"});
		$(".staff #container.cat2 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat2.jpg"});
		$(".staff #container.cat3 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat3.jpg"});
		$(".staff #container.cat4 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat4.jpg"});
		$(".staff #container.cat5 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat5.jpg"});
		$(".staff #container.cat6 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat6.jpg"});
		$(".staff #container.cat7 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat7.jpg"});
		$(".staff #container.cat8 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat8.jpg"});
		$(".staff #container.cat9 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat9.jpg"});
		$(".staff #container.cat10 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat10.jpg"});
		$(".staff #container.cat11 #screen img").attr({src: "http://kidaore.jp/_share/_img/im_screen_staff_cat11.jpg"});

//		$("#container.scene2 #scene2 img.rollover").attr({src: "http://web-contact.net/job/wakaba/_share/img/im_scene2_title_o.png"}).removeClass("rollover");
//		$("#container.scene3 #scene3 img.rollover").attr({src: "http://web-contact.net/job/wakaba/_share/img/im_scene3_title_o.png"}).removeClass("rollover");
//		$("#container.scene4 #scene4 img.rollover").attr({src: "http://web-contact.net/job/wakaba/_share/img/im_scene4_title_o.png"}).removeClass("rollover");

}


// エントリー定義
$(function() { 
	$(".main img[align='left']","#contents").css("margin-right","10px");
	$(".main img[align='right']","#contents").css("margin-left","10px");
	$(".main img[src*='/usr/']").attr("class","photo");
});
