/*Para usar Google Images*/
	if (document.referrer.search(/images.google|google.([^\/]+)\/imgres/) != -1 && document.referrer.search(/prev/) != -1) {
	var x = new RegExp("google.([^\/]+).*&prev=([^&]+)"),
	m = x.exec(document.referrer);

	_gaq.push(['_setReferrerOverride', 'http://images.google.'+m[1]+unescape(m[2])]);
	_gaq.push(['_clearOrganic']);
	_gaq.push(['_addOrganic','images.google.'+m[1],'q']);
}  
/*Fin Google Images*/

/* Enlaces externos, docs y eventos*/

	(function(){

	var
	// event handling |-->
	h=function(o,i,n){if(!o.eventHandlers){o.eventHandlers=[]}if(!o.eventHandlers[i]){o.eventHandlers[i]=[];if(o["on"+i]){o.eventHandlers[i].push(o["on"+i])}o["on"+i]=l}o.eventHandlers[i].push(n)},
	l=function(q){var p=true,n,o;if(!q){q=c(event)}n=this.eventHandlers[q.type];for(o in n){this.$$handleEvent=n[o];p=!((p&&this.$$handleEvent(q))===false)}return p},
	c=function(i){i.preventDefault=c.preventDefault;i.stopPropagation=c.stopPropagation;return i};c.preventDefault=function(){this.returnValue=false};c.stopPropagation=function(){this.cancelBubble=true};
	// <--| event handling

	var
	// obtiene el dominio-ruta de una url
	g=function(i){var o={domain:false,path:false},n=i.toLowerCase().replace("//","/").split("/");if(n[1]){o.domain=n[1];o.path=""}if(n[2]){o.path=n.slice(2).join("/")}return o},

	// asigna evento a elementos basado en "className"
	m=function(q){var p=document.getElementsByTagName("*"),o,n;for(n=0;n<p.length;n++){for(o in q){if((" "+p[n].className+" ").indexOf(" "+o+" ")>-1){(function(){var i=q[o];h(p[n],"click",function(t){clearTimeout(this._gaq_timer);var s=k.path+this[i].toLowerCase(),r=function(){_gaq.push(["_trackPageview",s])};this._gaq_timer=setTimeout(r,200)})})();break}}}},

	// dominio - ruta
	k=g(window.location.href),

	// tipos de archivo a considerar
	j=/\.(pdf|odf|doc|ppt)$/i,

	// evento para enlaces "archivos" (pdf, odf, etc)
	d=function(r){var o=this.href.toLowerCase().match(/([^\.\/]+)\.([\w]+)$/),q="/"+k.path+o[2]+"-"+o[1]+"."+o[2];if(this.target&&this.target=="_blank"){_gaq.push(["_trackPageview",q])}else{clearTimeout(this._gaq_timer);r.preventDefault();var p=function(){_gaq.push(["_trackPageview",q]);setTimeout(i,400)},n=this.href,i=function(){window.location.href=n};this._gaq_timer=setTimeout(p,200)}},

	// evento para enlaces externos
	f=function(q){var p="/links/"+g(this.href).domain;if(this.target&&this.target=="_blank"){_gaq.push(["_trackPageview",p])}else{clearTimeout(this._gaq_timer);q.preventDefault();var o=function(){_gaq.push(["_trackPageview",p]);setTimeout(i,400)},n=this.href,i=function(){window.location.href=n};this._gaq_timer=setTimeout(o,200)}},

	// barriendo enlaces y asignando eventos según corresponda
	a=document.getElementsByTagName("a"),b,e;
	for(e=0;e<a.length;e++){b=g(a[e].href).domain;if(b&&b!==k.domain){h(a[e],"click",f)}else{if(j.test(a[e].href)){h(a[e],"click",d)}}}

	// asignando eventos a los elementos (className: attribute)
	m({"_abc_tab":"id","_abc_accor":"title"})

	})();

/* Fin de enlaces externos, docs y eventos*/

