// JavaScript Document
$(document).ready(function(){
	$('.fade').mouseover(function(){
																$(this).animate({opacity:0});
																}).mouseout(function(){
																$(this).animate({opacity:1});
																});
	$('.fade_fast').mouseover(function(){
																$(this).animate({opacity:0},350);
																}).mouseout(function(){
																$(this).animate({opacity:1},350);
																});
	$('#main_content .hotel_contents:last').css({border:'none'});
	
		$("img.click").hover(function(){
							$(this).attr("src",$(this).attr("src").replace(/^(.+)(\.[a-z]+)$/, "$1_hover$2"));
						},
						function(){
							$(this).attr("src",$(this).attr("src").replace(/^(.+)_hover(\.[a-z]+)$/, "$1$2"));
						}
					  );
					  
		$("img.click").mousedown(function(){
							$(this).attr("src",$(this).attr("src").replace(/^(.+)_hover(\.[a-z]+)$/, "$1_active$2"));
		});
		$("img.click").mouseup(function(){
							$(this).attr("src",$(this).attr("src").replace(/^(.+)_active(\.[a-z]+)$/, "$1$2"));
		});
		$("img.click").mouseout(function(){
							$(this).attr("src",$(this).attr("src").replace(/^(.+)_active(\.[a-z]+)$/, "$1$2"));
		});
		$('.page_scroll').click(function(){
										 var targetOffset = $($(this).attr('href')).offset().top;
										 $('html,body').animate({scrollTop:targetOffset}, 1500,'easeOutExpo');
										 return false;
										 });
});
