// JavaScript Document


$(function(){
    $(".sub_room_thmbox img").hover(function(){
		$(this).css("filter","Alpha(Opacity=40,Style=0)");
	    },
	function(){
		$(this).css("filter","");
	    }
	);

	$(".sub_room_thmbox img").click(function(){
		$(this).parent().find('img').css("border","2px solid #E0E0E0");
		$(this).css("border","2px solid #333333");
		var thisno = $(this).attr('thisno');
		var bigimg = $(this).parent().parent().parent().find('.sub_roomsel');
		bigimg.hide();
		bigimg.html('<img src="images/room/'+thisno+'.jpg" alt="" width="530" height="307" />');
		bigimg.find('img').load(function() {
		bigimg.fadeIn(1000);
		});

//		alert($(this).parent().html());
	    }
	);
});

$(document).ready(function(){
//	$.ajax({
//	  type: "GET",
//	  url: "plans.cfm",
//	  dataType: "xml",
//	success: function(msg){
	for(var i=1; i<=6; i++){
$("#inpage"+i).hide();
//	$("#plan"+i+" img").attr("src",$(msg).find("plan"+i+" pimg").text());
//	$("#plan"+i+" img + div").text($(msg).find("plan"+i+" ptitle").text());

//		$("#planimg").attr("src",$(msg).find("plan1 pimg").text());
//		$("#plan_title").text($(msg).find("plan1 ptitle").text());
//		$("#plan_sentent").text($(msg).find("plan1 psentent").text());
//		$("#plan_url").attr("href",$(msg).find("plan1 purl").text());


	
	}//for‚±‚±‚Ü‚Å
	
//	}
//	});	
		$("#inpage1").show();

});
function inpageview(i1){
for(var i=1; i<=6; i++){
	$("#inpage"+i).hide();
	$("#inpagebn1").html('<img src="module/images/page1bn.jpg" onclick="javascript(inpageview(1))" />');
	$("#inpagebn2").html('<img src="module/images/page2bn.jpg" onclick="javascript(inpageview(2))" />');
	$("#inpagebn3").html('<img src="module/images/page3bn.jpg" onclick="javascript(inpageview(3))" />');
	$("#inpagebn4").html('<img src="module/images/page4bn.jpg" onclick="javascript(inpageview(4))" />');
	$("#inpagebn5").html('<img src="module/images/page5bn.jpg" onclick="javascript(inpageview(5))" />');
	$("#inpagebn6").html('<img src="module/images/page6bn.jpg" onclick="javascript(inpageview(6))" />');
}
$("#inpage"+i1).show();
	$("#inpagebn"+i1).html('<img src="module/images/page'+i1+'bn_over.jpg" onclick="javascript(inpageview('+i1+'))" />');
}