$(document).ready(function () {

	$(".post-title a").click(function() {
		var object = $(this).parent().children().length;
		if (object == 2){
			var title = $(this).parent().find(".post-title a").html();
			_gaq.push(['_trackEvent', 'Index', title, 'Afbeelding']);
		}
		else if(object == 1){
			var title = $(this).parent().find("a").html();
			_gaq.push(['_trackEvent', 'Index', title, 'Link']);
		}
	});
	
	$(".post-cat a").click(function() {	
		var categorie = $(this).html();
		var cat = 'Categorie - ' + categorie;
		var title = $(this).parent().parent().find(".post-title a").html();
		_gaq.push(['_trackEvent', 'Index', title, cat]);
	});
	
	$(".image-headers a").click(function() {	
		var afbeelding = $(this).find("a.activeSlide").html();
		var afb = 'Afbeelding ' + afbeelding;
		var title = $(".single-post-description .single-post-title h3").html();	
		_gaq.push(['_trackEvent', 'Portfolio gallery', title, afb]);
	});	
	
	$(".static-text-content a.grouped_elements").click(function() {	
		var afbeelding = $(this).attr("alt");
		var afb = 'Foto: ' + afbeelding;
		_gaq.push(['_trackEvent', 'Over mij', 'Showcase', afb]);
	});		

	$(".single-post-related a.twitter-image").click(function() {	
		_gaq.push(['_trackEvent', 'Over mij', 'External link', 'Twitter - volg mij']);
	});	

	$(".counter").click(function() {
		_gaq.push(['_trackEvent', 'Studentenfoto', 'Klik', 'Counter']);
	});		

	$(".delicious-link").click(function() {	
		var url = $(this).attr("href");
		_gaq.push(['_trackEvent', 'Over mij', 'External link - delicious', url]);
	});		
	
});
