/** 
 *  プラン詳細
 */

/** 
 *  基本MJL
 */
MJL.event.add(window, "load", function(event) {

	MJL.enable.rollover("roll", {disable:"unroll"});

}, false);



/** 
 *  biggerlink
 */
$(function(){
	$('.yms_active_links').biggerlink();
	$('.other_roomtype .yms_title').biggerlink();
});



/** 
 *  写真
 */
var tb_pathToImage = "../../../contents/libraries/thickbox/3.1customize/images/loadingAnimation.gif";
$(document).ready(function(){   
	tb_init('a.thickbox, span.thickbox, area.thickbox, input.thickbox');//pass where to apply thickbox
	imgLoader = new Image();// preload image
	imgLoader.src = tb_pathToImage;
});



/** 
 *  写真切替え
 */
$(function(){
	$('.photo_bgi_58x43').hover(
		function(){ // オーバー
			id = $(this).parent().parent().parent().parent().attr("id");
			href = $(this).parent().attr("href");
			text = $(this).text();
			src = $(this).attr("yms_title");
			$("#" + id + " p span.photo_bgi_240x180").css("background-image", "url(" + src + ")");
			$("#" + id + " span.yms_photo_caption").text(text);
//			$("#" + id + " p a.yms_photo_main").attr("href", href); 大写真のクリックでthickbox用
		}
	);
});

