function initHome(){

var currentPanel = 0;

$(document).ready( function () { 

$("#news-nav-left").children().click(function() {

  currentPanel = ($(this).attr('id')).substr(4);
  showpanel(currentPanel);
  
});	


showpanel(currentPanel);

$('div.revert div.featured-left').hide();

$("div.revert a").mouseenter(function() {
	  
	  $(this).prev().fadeIn();
	  
  }).mouseleave(function() {
   
  $(this).prev().show().hide();
   
  });


$("div.normal a").mouseenter(function() {
	  
	   $(this).prev().show().fadeOut();
	  
  }).mouseleave(function() {
 
   $(this).prev().show();
  });


} ) ; 

}

function showpanel(index){


$('#news-container').children().hide();


$('#featured-'+index).fadeIn('slow');
$('#featured-'+(parseInt(index)+1)).fadeIn('slow');
$('#featured-'+(parseInt(index)+2)).fadeIn('slow');
$('#featured-'+(parseInt(index)+3)).fadeIn('slow');
$('#featured-'+(parseInt(index)+4)).fadeIn('slow');

//nav items

$("#news-nav-left").children().removeClass('active');
$("#nav-"+index).addClass('active');

}
