var timeOuts= new Array();  

function live_date(jour, competition) {
	clearAllTimeouts();
	$('div[id=livescore_d]').html("<img src='/wp-content/themes/3cseo2/images/ajax-loader.gif'/>");
	 var url = '/wp-content/themes/3cseo2/livescore.php?datejour='+jour+'&compet='+competition;
	 $.post(url, function(data) {
	   if (data) {
		$('div[id=livescore_d]').html(data);
	   }
	  });
}

function live_match(id) {
	$('div[id=livescore_d]').html("<img src='/wp-content/themes/3cseo2/images/ajax-loader.gif'/>");
	 var url = '/wp-content/themes/3cseo2/matches.php?matchid='+id;
	 $.post(url, function(data) {
	   if (data) {
		$('div[id=livescore_d]').html(data);
		$('table.odds tr[class*=cat2], table.odds tr[class*=cat3], table.odds tr[class*=cat4], table.odds tr[class*=cat5]').hide();

	   }
	  });
}

function clearAllTimeouts(){  
  for(key in timeOuts ){  
    clearTimeout(timeOuts[key]);  
  }  
}  