function isEmpty (el) {
  return el.value.match(/^\s*$/)
}

$(document).ready(function () {
	$('.change-bg').hover(function () {$(".change-bg").animate({ backgroundPosition: "100% 0"}, 300 );}, 
		function () {$(".change-bg").animate({ backgroundPosition: "0 0"}, 100 );}
	);
	//$(".answer").first().slideToggle("normal");
	$(".h").click(function()
	{
		$(this).next(".hide-enable-block").slideToggle("normal");
	});
	$(".uni-h").click(function()
	{
		$(this).next(".uni-hide-enable-block").slideToggle("normal");
	});
	$(".hotel-page .h").click(function()
	{
		$(this).prev(".hide-enable-block").slideToggle("normal");
		if($(this).prev(".hide-enable-block").length)
			if($(this).find("a").text()=="Подробнее") {$(this).find("a").text("Свернуть");} else {$(this).find("a").text("Подробнее");}
	});
	$(".question").click(function()
	{
		$(this).next(".answer").slideToggle("normal");
	});
	$(".more-hotels").click(function()
	{
		$(this).next(".more-hotels-block").slideToggle("normal");
		if($(".more-hotels a").text()=="Все отели") {$(".more-hotels a").text("Свернуть");} else {$(".more-hotels a").text("Все отели");}
	});
});
/*$(document).ready(function(){

	$(".games-index ul a").append("<em></em>");
	
	$(".games-index ul a").hover(function() {
		$(this).find("em").stop(true, true).animate({opacity: "show", top: "0"}, "slow");
		$(this).find("em").css({display: "block"});
		var hoverText = $(this).attr("title");
	    $(this).find("em").text(hoverText);
	}, function() {
		$(this).find("em").stop(true, true).animate({opacity: "hide", top: "-35"}, "fast");
	});


});*/
