function trackInteractions(cat, action, label, url) {
    _gaq.push(['_trackEvent', cat, action, label]);
    if (url != null && typeof (url) != "undefined" && url != "") {		
        setTimeout("window.location.href='" + url + "'", 500);
    }

    return false;
}

$(document).ready(function(){
	$('#link-takes-center').click(function(e){
		e.preventDefault();
		trackInteractions('InTheNewsPage','ReadStory','News000912TakesCenter', this.href);
	});

	$('#link-aol-food').click(function(e){
		e.preventDefault();
		trackInteractions('InTheNewsPage','ReadStory','News200807AOLFood', this.href);
	});

	$('#link-shape-tested').click(function(e){
		e.preventDefault();
		trackInteractions('InTheNewsPage','ReadStory','News200707ShapeTested', this.href);
	});

	$('#link-top-nods').click(function(e){
		e.preventDefault();
		trackInteractions('InTheNewsPage','ReadStory','News200706TopNods', this.href);
	});

	$('#link-top-dog').click(function(e){
		e.preventDefault();
		trackInteractions('InTheNewsPage','ReadStory','News200706TopDog', this.href);
	});
});
