1 function CCTrack () { }
  2 
  3 CCTrack.click = function (label) {
  4 	if (pageTracker) pageTracker._trackEvent("click", label, CCTrack.id);
  5 	return true;
  6 }
  7 
  8 function addTramiteTracker() {
  9 	var elem,enlaces;
 10 	elem = document.getElementById('table__i__ConsultaTramiteFicha_1');
 11 	if (elem) {
 12 		enlaces = elem.getElementsByTagName('a');
 13 		if (enlaces[0]) {
 14 			enlaces[0].onclick = function () {CCTrack.click("Consultas");} ;
 15 		}
 16 	}
 17 	elem = document.getElementById('table__i__institucionContactoWeb_1');
 18 	if (elem) {
 19 		enlaces = elem.getElementsByTagName('a');
 20 		if (enlaces[0]) {
 21 			enlaces[0].onclick = function () {CCTrack.click("Consultas");} ;
 22 		}
 23 	}
 24 	elem = document.getElementById('table__i__Herramientas_EidoxImprimir_1');
 25 	if (elem) {
 26 		enlaces = elem.getElementsByTagName('a');
 27 		if (enlaces[0]) {
 28 			enlaces[0].onclick = function () {CCTrack.click("Imprimir");} ;
 29 		}
 30 	}
 31 	elem = document.getElementById('table__i__AccesoAudio_1');
 32 	if (elem) {
 33 		enlaces = elem.getElementsByTagName('a');
 34 		if (enlaces[0]) {
 35 			enlaces[0].onclick = function () {CCTrack.click("Escuchar");} ;
 36 		}
 37 	}
 38 	elem = document.getElementById('table__i__fichaAccesoMasInformacion_1');
 39 	if (elem) {
 40 		enlaces = elem.getElementsByTagName('a');
 41 		if (enlaces[0]) {
 42 			enlaces[0].onclick = function () {CCTrack.click("Mas Informacion");} ;
 43 		}
 44 	}
 45 	elem = document.getElementById('table__i__FichaResumenNueva_1');
 46 	if (elem) {
 47 		enlaces = elem.getElementsByTagName('a');
 48 		var l = enlaces.length;
 49 		for (var i=0;i<l;i++) {
 50 			if (enlaces[i].title.match(/Formulario/)) {
 51 				enlaces[i].onclick = function () {CCTrack.click("Descarga Formulario");} ;
 52 			} else if (enlaces[i].title.match(/Tr�mite OnLine/)) {
 53 				enlaces[i].onclick = function () {CCTrack.click("Realizar en Linea");} ;
 54 			}
 55 		}
 56 	}
 57 }
 58 if (window.addEventListener) { // Standard
 59 	window.addEventListener('load', addTramiteTracker, false);
 60 } else if (window.attachEvent) { // IE
 61 	window.attachEvent('onload', addTramiteTracker);
 62 }
 63