var twitterTimestamp = 0;
var newsTimestamp = 0;

$(function () {
	initTabs(location.hash);
	
	if ( newsTimestamp > twitterTimestamp )
	{
		$('ul.news-tabs li.news a').click();
	}
});

function initTabs(activeHash)
{
	var tabContainers = $('div#infowrapper > div.tabContainer'); 
  
  $('ul.news-tabs a').filter(function(){return !$(this).hasClass('ignoreTab');}).click(function () 
	{
    tabContainers.hide().filter(this.hash).show();
    $('ul.news-tabs li').removeClass('active');
    $(this.parentNode).addClass('active');
    return false;
  }).each(function(i) 
  { 
    //evt reageren actief maken omdat we het uit de request halen.   
    if ( i == 0 && activeHash == '' )
      $(this).click();
    else if ( $(this).attr('href') == activeHash )
      $(this).click();
  });
  //;
}
