$(function() {
	//$('.rotate').rotate(-3)
});

$(function() {
	//$('#gallery a').lightBox({fixedNavigation:true});	
	//$('#gallery a').lightBox();
});

$(function() {
    //if($.fontAvailable('Helvetica Neue-Light')) {
	//	alert('got it');
	//}
});

$(function() {
	$(document).pngFix(); 
});

// BOOK NOW LINK
$("a[class*='cat_12']").attr('href', 'javascript:;');
$("a[class*='cat_12']").click(function(){
	hhotelSearch('SVPTHTLMiraparque', '', '', '', '', '', '');
//	hhotelSearch('SVPTHTLMiraparque', '', '', '', '');
	return false;
});


// PRIVACY LINK
$("a[class*='cat_15']").attr('href', 'javascript:;');
$("a[class*='cat_15']").click(function(){
	window.open("/themes/hotel_miraparque/static/privacy.html","popup","scrollbars=no,width=724,height=453,top=50,left=23").focus
	return false;
});


// NASCONDO TUUTE LE RISPOSTE DELLE FAQ
$(".story .full_box .body").each(function() {	
	$(this).css("display","none");
});

// VISUALIZZO LA RISPOSTA DELLA FAQ
$("#faq .story .full_box .moreinfo a").click(function(){
	// nascodo tutte le risposte aperte
	$("#faq .story .full_box .body").each(function() {	
		$(this).hide(1000);
	});
	var hidden_id = parseInt($(this).parent('.moreinfo').attr('id').replace('h_', ''), 10); 
	$("#faq .story .full_box #risp_" + hidden_id).show(1000);
	return false;
});

// SCROLLING IMAGE OFFERS / EVENTS
(function($) {
	$(function() { //on DOM ready
		$("#scroller").simplyScroll({
			className: 'vert',
			horizontal: false,
			frameRate: 20,
			speed: 10
		});
	});
})(jQuery);