jQuery(function($){
   $("#nascimento").mask("99/99/9999");
   $("#telefone").mask("(99) 9999-9999");
   $("#celular").mask("(99) 9999-9999");
   $("#cep").mask("99.999-999");
   $("#cpf").mask("999.999.999-99");
});


// TWITTER DISPLAY // 
getTwitters('loverTweets', {
	id: 'hamyeasyweb', 
	prefix: '',  // If you want display your avatar and name <img height="16" width="16" src="%profile_image_url%" /><a href="http://twitter.com/%screen_name%">%name%</a> said:<br/>
	clearContents: false, // leave the original message in place
	count: 1, 
	withFriends: true,
	ignoreReplies: false,
	newwindow: true
});


$(function() {
	$("a[rel^='prettyPhoto']").prettyPhoto();
});



$(function() {
	
	<!-- Para Lazy Load Images -->
		
	$(".mainContent img").lazyload({
		placeholder : "../img/ajax-loader.gif",
		effect : "fadeIn"
	});
			
	<!-- Para Highlighting social icons on Footer -->	
		
	$('#footer ul.social img').css('opacity', '.8');
	$('#footer ul.social a').hover (function() {
		$('img',this).stop(true).animate({
			opacity : '1'
		}, '10');
	}, function() {
		$('img',this).stop(true).animate({
			opacity : '.8'
		});
	});
			
	<!-- Para Fading Link Images -->	
	$('a.photo, a.video, a.content, a.info').hover (function() {
		$(this).css('background-color', '#333333');		
		$('img', this).fadeTo(300, 0.4);
	}, function() {
		$(this).css('background-color', '#FFFFFF');
		$('img, this').stop().fadeTo(300, 1);
	});
	
	<!-- Login pop-up -->
	// Show/hide remind password panel
	$('#remindBlock').css('display','none');
		$('#remind').click(function() {
			$('#remindBlock').toggle();
		});
	});
	
	<!-- For sliding up -->
			
	function scrollWin(){
		$('html').animate({
		scrollTop: $("#header").offset().top
		}, 800);
}



$(function() {
	$('.mainMenu li .subMenu').css({
		display: "none",
		left: "auto"
	});
	$('.mainMenu li').hover(function() {
		$(this)
			.find('.subMenu')
			.stop(true, true)
			.show('normal');
	}, function() {
		$(this)
			.find('.subMenu')
			.stop(true, true)
			.slideUp('fast')
	});
	
	$('.subMenu li:has(.thirdMenu) a').addClass('more');
	$('.thirdMenu a').removeClass('more');
	
	$('.subMenu li').hover(function() {
		$(this)
			.find('.thirdMenu')
			.stop(true, true)
			.show('normal');
	}, function() {
		$(this)
			.find('.thirdMenu')
			.stop(true, true)
			.slideUp('fast')
	});

});
