$(document).ready(function(){
	$(".foto_suite a, .suite, .foto_salao a").fancybox({
		'overlayOpacity'	: 0.7,
		'overlayColor'		: '#FFF',
		'zoomSpeedIn'		: 500,
		'zoomSpeedOut'		: 500,
		'titlePosition'		: 'inside'
	});
});

function reserva(){
	if(isBranco(document.forms[0].dataIni)){
		alert("Data Inicial vazia")
		return false;
	}else if(isBranco(document.forms[0].dataFim)){
		alert("Data Final vazia")
		return false;
	}
	return true;
}

$(function(){
	
	$('.mapa_popup').fancybox({
		'titlePosition'		: 'inside',
		'overlayColor'		: '#000',
		'overlayOpacity'	: 0.85,
		'width'				: '60%',
		'height'			: '75%',
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
	
	/*
	$('<div id="mascara"></div>').css({
		opacity:0.8,
		width:$(document).width(),
		height:$(document).height()
	}).appendTo('body').hide();
	
	$('.mapa_popup').click(function(event){
		event.preventDefault();
		$('.inner_map').empty();
		var filial='<iframe width="630" height="480" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=pt-BR&amp;geocode=&amp;q=Rua+Desembargador+Ermelino+de+Le%C3%A3o,+18+Centro+-+Curitiba+-+Paran%C3%A1+-+Brasil&amp;sll=-25.425069,-48.919939&amp;sspn=0.005475,0.011362&amp;ie=UTF8&amp;hq=&amp;hnear=R.+Des.+Ermelino+Le%C3%A3o,+18+-+Centro,+Curitiba+-+Paran%C3%A1,+80410-230,+Brasil&amp;ll=-25.430883,-49.274894&amp;spn=0.004651,0.006748&amp;z=17&amp;iwloc=A&amp;output=embed"></iframe>';
		$(filial).appendTo('.inner_map');
		$('#mascara').show();
		$('#mapa_popup').show();
		var largura=$('#mapa_popup').width();
		$('#mapa_popup').css('margin-left',-(largura)/2);
	});
	$('#fechar').css('cursor','pointer').click(function(){
		$('#mapa_popup').hide();
		$('#mascara').hide();
	});
	*/
});

$(document).ready(function(){
	$('.slide').cycle({
		fx:'fade'
	});
});

$(window).load(function(){
	$('.slide').each(function(){
		$width=$(this).children('img').width();
		$(this).children('img').css({
			'left':'50%',
			'margin-left':-$width/2
		});
	});
});

$(function(){
	var ie = $.browser.msie;
	if(ie){
		$('#menu_sup ul li').hover(
			function(){
				$(this).children('ul').show()
			},
			function(){
				$(this).children('ul').hide()
			}
		);
	}
});
