/**
 *
 *   General F1 Fast Scripts 
 *
 */   
jQuery(document).ready(function(){

        $('table.tabular tr:odd').css({background:  '#eeeeee', color: '#333333'});

    // Handle horizontal menu dropdowns
    jQuery('#menu li').hover(
        function(){ jQuery('ul', this).css('display', 'block'); 
                    jQuery(this).addClass('current'); },
        function(){ jQuery('ul', this).css('display', 'none'); 
                    jQuery(this).removeClass('current'); 
    });
    
    //Menu Highlighting!
    var body = jQuery("body").attr("id");
    jQuery("#menu li#tab_"+body).addClass("selected");
	


    if(typeof document.body.style.maxHeight == "undefined") {
        DD_belatedPNG.fix('#pitchdiv #players ul li a img');
    } 
	
jQuery('.icons').css({backgroundColor: '#cccccc'});

if( feedUrl != null ) {
if(jQuery.jGFeed){
    jQuery.jGFeed(feedUrl,
    function(feeds){
        if(!feeds){
            return false;
        }
     
        for(var i=0; i<3; i++){
            var entry = feeds.entries[i];
            jQuery("#rss ul").append("<li><a href="+entry.link+">"+entry.title+"</a><br />"+entry.contentSnippet+"<br /><small>"+entry.publishedDate+"</small></li>");
        }
    }, 10);
$( '.bottom a').attr('href', feedUrl);
}



}
     


//team screen points box events

//load the points    
$('.total').text($('.total_pts').text())

//hide the points on hover over a driver
$('.player').hover(function() {

	$('.total').hide();
	
}, function() {

	$('.total').show();

});
       
    


     
});
