// Fontes
Cufon.replace('h1', { fontFamily: 'Diavlo Light' });
Cufon.replace('h1 strong', { fontFamily: 'Diavlo Bold' });
Cufon.replace('h2', { fontFamily: 'Diavlo Light' });
Cufon.replace('h2 strong', { fontFamily: 'Diavlo Bold' });
Cufon.replace('h4', { fontFamily: 'Diavlo Light' });
Cufon.replace('#head ul li a strong', { fontFamily: 'Diavlo Light' });
Cufon.replace('h3', { fontFamily: 'Diavlo Light' });
Cufon.replace('h3 strong', { fontFamily: 'Diavlo Bold' });
Cufon.replace('#head_login label', { fontFamily: 'Diavlo Bold' });
Cufon.replace('.date', { fontFamily: 'Diavlo Bold' });
Cufon.replace('#foot ul a', { fontFamily: 'Diavlo Light' });


// Dropdown menu
    $(document).ready(function(){
								   
		$('#head .nav ul ul').css({display: 'none'});
	
		$('#head .nav ul li').hover(function(){
			$(this).find('ul:first').css({
				visibility: 'visible',
				display: 'none'
			}).fadeIn('1000');
		},
		function(){
			$(this).find('ul:first').css({
				visibility: 'hidden'
			});
		});
     });

// Hover moving effect
	$(document).ready(function() {
			$("#sidebar li a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});
			
			$(".nav ul li ul li a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});
			
			$(".midd_int_menu ul li a").hover(function() {	//On hover...
				$(this).find("span").stop().animate({ 
					marginLeft: "10" //Find the span tag and move it up 40 pixels
				}, 250);
			} , function() { //On hover out...
				$(this).find("span").stop().animate({
					marginLeft: "0" //Move the span back to its original state (0px)
				}, 250);
			});

	});

// Slider home

	$(window).load(function() {
		$('#slider').nivoSlider({
			effect:'random', 
			slices:15,
			animSpeed:500,
			pauseTime:5000,
			directionNav:false, 
			directionNavHide:false, 
			controlNav:true,
			pauseOnHover:true, 
			beforeChange: function(){},
			afterChange: function(){}
		});
	});

	

