function inithome(){
	
	$('.buttonT1').hover(
		function() 
		{
			$(this).children('.img1').stop(true, true).fadeIn(timeOver);
			$(this).children('.img0').stop(true, true).fadeOut(timeOver);
			$(this).children('.textButtoT1').stop(true, true).animate({"color": "#666"}, timeOver);
		},
		function() 
		{
			$(this).children('.img1').stop(true, true).fadeOut(timeOver);
			$(this).children('.img0').stop(true, true).fadeIn(timeOver);
			$(this).children('.textButtoT1').stop(true, true).animate({"color": "#fff"}, timeOver);
		}
	);
	
	$('.updatadITBOver').hover(
		function() 
		{
			$(this).stop(true, true).animate({"color": "#fea40b"}, timeOver);
		},
		function() 
		{
			$(this).stop(true, true).animate({"color": "#fff"}, timeOver);
		}
	);
	
	$('.newsItemNascar').hover(
		function() 
		{
			$(this).children(".imgnewsItem").stop(true, true).animate({"border-color": "#f06f00"}, timeOver);
			$(this).children(".titlenewsItem").stop(true, true).animate({"color": "#000"}, timeOver);
		},
		function() 
		{
			$(this).children(".imgnewsItem").stop(true, true).animate({"border-color": "#000"}, timeOver);
			$(this).children(".titlenewsItem").stop(true, true).animate({"color": "#333"}, timeOver);
		}
	);
	
	$('.firstNewsHome').hover(
		function() 
		{
			$(this).children(".imgfirstNewsItemHome").stop(true, true).animate({"border-color": "#f06f00"}, timeOver);
			$(this).children(".textContentNewsItemHome").children(".titlefirstNewsItemHome").stop(true, true).animate({"color": "#000"}, timeOver);
		},
		function() 
		{
			$(this).children(".imgfirstNewsItemHome").stop(true, true).animate({"border-color": "#000"}, timeOver);
			$(this).children(".textContentNewsItemHome").children(".titlefirstNewsItemHome").stop(true, true).animate({"color": "#333"}, timeOver);
		}
	);
	
	$('.featuredItem').hover(
		function() 
		{
			$(this).children(".imgfeaturedItem").stop(true, true).animate({"border-color": "#f06f00"}, timeOver);
			$(this).children(".titlefeaturedItem").stop(true, true).animate({"color": "#000"}, timeOver);
		},
		function() 
		{
			$(this).children(".imgfeaturedItem").stop(true, true).animate({"border-color": "#000"}, timeOver);
			$(this).children(".titlefeaturedItem").stop(true, true).animate({"color": "#333"}, timeOver);
		}
	);
	
	$('.contentCountDown').hover(
		function() 
		{
			$(this).children('.countdownRace').stop(true, true).animate({"color": "#fea40b"}, timeOver);
			$(this).children('.countdownTitle').stop(true, true).animate({"color": "#fea40b"}, timeOver);
		},
		function() 
		{
			$(this).children('.countdownRace').stop(true, true).animate({"color": "#fff"}, timeOver);
			$(this).children('.countdownTitle').stop(true, true).animate({"color": "#fff"}, timeOver);
		}
	);
	
	$('#lastvideo').hover(
		function() 
		{
			$(this).children('.lastvideoOver').stop(true, true).fadeIn(600);
		},
		function() 
		{
			$(this).children('.lastvideoOver').stop(true, true).fadeOut(600);
		}
	);
	
	$(function()
	{
		var settings = {
		showArrows: false,
		autoReinitialise: true
		};
		$('#standingsListContent').jScrollPane(settings);
	});
	
	jQuery(function($){
		$(".tweet").tweet({
			username: "NelsonPiquet",
			avatar_size: 32,
			count: 2,
			loading_text: "loading tweets..."
		});
	});
	
	//$(".videoPlayer").colorbox({initialWidth:500, initialHeight:300, innerWidth:735, innerHeight:498, iframe:true, opacity:0.9, transition:"elastic", arrowKey:false});
	createGallery("picsContent");
}

function setCountDown(dt)
{
	date = new Date(dt); 
	$('.countdownCount').countdown({until: date, compact: true, format: 'DHMS'});	
}

function setSound(url)
{
	$("#jquery_jplayer_1").jPlayer( 
	{
    	ready: function () {
      		$(this).jPlayer("setMedia", {
  				mp3: url
    		});
    	},
 		solution: 'html, flash'
  	});
}

function touglesound()
{
	$("#jquery_jplayer_1").jPlayer("play");
	$(".buttonPodcast").fadeOut(500);
	$(".jp-audio").fadeIn(500);
}
