<!-- # Pronto Casei
$(document).ready(function()
{
	$('form#buscar input#nome_casal').keypress(function(event){ if (event.keyCode == '13'){ $('form#buscar').submit(); }	});
	$('form#buscar input#nome_casal').focus(function(){ if( $(this).val() == 'Digite aqui os nomes dos noivos' ){ $(this).val(''); } });
	$('form#buscar input#nome_casal').blur(function(){ if( $(this).val() == 'Digite aqui os nomes dos noivos' || $(this).val() == '' ){ $(this).val('Digite aqui os nomes dos noivos'); }else{ $(this).val(); } });
	$('form#buscar a.botao').click(function(){ $('form#buscar').submit(); });

	$("a.youtube-videos").click(function()
	{
		$.fancybox(
		{
			'padding'		: 0,
			'autoScale'		: false,
			'transitionIn'	: 'none',
			'transitionOut'	: 'none',
			'title'			: this.title,
			'width'			: 680,
			'height'		: 495,
			'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
			'type'			: 'swf',
			'swf'			: 
			{
				'wmode'				: 'transparent',
				'allowfullscreen'	: 'true'
			}
		});
		return false;
	});

	
	
	$('div.banner-promocional').nivoSlider({
        effect:'fold', //Specify sets like: 'fold,fade,sliceDown'
        slices:15,
        animSpeed:1000, //Slide transition speed
        pauseTime:8000,
        startSlide:0, //Set starting Slide (0 index)
        directionNav:false, //Next & Prev
        directionNavHide:true, //Only show on hover
        controlNav:true, //1,2,3...
        controlNavThumbs:false, //Use thumbnails for Control Nav
        controlNavThumbsFromRel:false, //Use image rel for thumbs
        controlNavThumbsSearch: '.jpg', //Replace this with...
        controlNavThumbsReplace: '_thumb.jpg', //...this in thumb Image src
        keyboardNav:true, //Use left & right arrows
        pauseOnHover:true, //Stop animation while hovering
        manualAdvance:false, //Force manual transitions
        captionOpacity:0.8, //Universal caption opacity
        beforeChange: function(){},
        afterChange: function(){},
        slideshowEnd: function(){}, //Triggers after all slides have been shown
        lastSlide: function(){}, //Triggers when last slide is shown
        afterLoad: function(){} //Triggers when slider has loaded
    });

	$('div.twitter div.api').twitterSearch({ 
		term:   		'prontocasei OR felizesparasempre.com OR seuniram.com OR acaminhodoaltar.com OR demoroumascasamos.com OR vaoseunir.com OR agoracasados.com -vish -orçamento -sigalogovia -feia -offline -fora&nbsp;do&nbsp;ar', 
		animOut: 		{ opacity: 1 }, 
		avatar:  		true, 
		anchors: 		true, 
		bird:    		false, 
		colorExterior: '#ddd', 
		colorInterior: 'white', 
		pause:   		true, 
		time:    		true, 
		timeout: 		3000 
	});
	
	$('.flipbook.sites-ativos-decimal').flightboard({lettersSeq: '0123456789', lettersSize: [27, 37], pause: 10000, messages: [contagem_total_decimal], maxLength: 2, lettersImage: '/_plugins/jquery-flipboard/flipboard_numbers_small.gif'});
	$('.flipbook.sites-ativos').flightboard({lettersSeq: '0123456789', lettersSize: [27, 37], pause: 10000, messages: [contagem_total], maxLength: 3, lettersImage: '/_plugins/jquery-flipboard/flipboard_numbers_small.gif'});
	$('.flipbook.sites-hoje').flightboard({lettersSeq: '0123456789', lettersSize: [27, 37], speed: 250, pause: 5000, messages: [contagem_hoje], sequential: true, lettersImage: '/_plugins/jquery-flipboard/flipboard_numbers_small.gif', maxLength: 2});
	
	loading_mapa();
});

function loading_mapa()
{
	var titulo = '';
	
	$("div.mapa ul li a").mouseover(function()
	{
		titulo = $(this).attr('title');
		$(this).attr('title', '');
		$(this).append('<div class="descricao-estados show">'+titulo+'</div>');
	})
	.mouseout(function()
	{ 
		$(this).find(".descricao-estados").removeClass("show").addClass("hidden");
		$(this).remove('.descricao-estados');
		$(this).attr('title', titulo);
	});	
}
-->
