// JavaScript Document

jQuery(document).ready(function($){
		
		/* SLIDE DESTACADOS HOME */
		$('#slideshow').find('a').each(function(){
			$(this).click(function(){
				var title = $(this).attr('title') + " | " + $(this).text();
				_gaq.push(['_trackEvent', 'Slide-Home', 'Click', title]);
			});
		});
		$('#slideshow').find('#leftControl').click(function(){
			_gaq.push(['_trackEvent', 'Slide-Home', 'Click', 'Move Left']);
		});
		$('#slideshow').find('#rightControl').click(function(){
		_gaq.push(['_trackEvent', 'Slide-Home', 'Click', 'Move Right']);
		});
		
		$('#slideshow ul.pagination').find('a').each(function(){
			$(this).click(function(){
				var title = $(this).attr('title');
				_gaq.push(['_trackEvent', 'Slide-Home', 'Click', title]);
			});
		});
		
		/* FIN */
		$('#menu-principal').find('a').each(function(){
			$(this).click(function(){
				var title =  $(this).attr('title');
				_gaq.push(['_trackEvent', 'Menu-principal', 'Click', title]);
			});
		});
		$('#menu-top').find('a').each(function(){
			$(this).click(function(){
				var title =  $(this).attr('title');
				_gaq.push(['_trackEvent', 'Menu-top', 'Click', title]);
			});
		});
		$('#footer-nav').find('a').each(function(){
			$(this).click(function(){
				var title =  $(this).attr('title');
				_gaq.push(['_trackEvent', 'Menu-footer', 'Click', title]);
			});
		});
		
		/*  BANNER **/
		$('#Matricula').find('a').each(function(){
			$(this).click(function(){
				var title = $(this).find('area').attr('alt');
				_gaq.push(['_trackEvent', 'banners-admision', 'MapArea', title]);
			});
		});
		$('#wrap-home-left').find('a').each(function(){
			$(this).click(function(){
				var title = $('#wrap-home-left').next().attr('id')  + " | " + $(this).text();
				_gaq.push(['_trackEvent', 'Seccion-Home', 'Click', title]);
			});
		});
		
		$('#centros').find('option').each(function(){
			$(this).click(function(){
				var title = $(this).text();
				_gaq.push(['_trackEvent', 'Centros', 'click', title]);
			});
		});
		
		$('.carrusel-vertical').find('a').each(function(){
			$(this).click(function(){
				var title = $(this).attr('title');
				_gaq.push(['_trackEvent', 'Banners Carrusel', 'Click', title]);
			});
		});
		
		$('#social-media').find('a').each(function(){
			$(this).click(function(){
				var title = $(this).attr('title');
				_gaq.push(['_trackEvent', 'Social Media', 'Click', title]);
			});
		});
		
	
});



