// Google Analitycs
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-410926-4']);
_gaq.push(['_trackPageview']);
(function() {
	var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
	ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
	(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ga);
})();

// Crear target="_blank"
$(document).ready(function(){
	$("a.popup").each(function(i){
		tituloEnlace = $(this).attr("title") + " (se abre en nueva ventana)";
		$(this).attr({ target: "_blank", title: tituloEnlace });
		if ($(this).html().toLowerCase().indexOf('img') == -1)
			//$('<img src="images/popup.png" class="icono" alt="" />').appendTo($(this));
			$('<span>&nbsp;</span><img src="images/popup.png" class="icono" alt="" />').insertAfter($(this));
	});
});