var hrefElement = document.getElementById('widgetIFB');
var hrefAttr = hrefElement.getAttribute('href');;
if (hrefAttr.indexOf('www.infobolsa.es') === -1) {
	document.write('Módulo mal configurado.');
} else {	
	document.write('<link href="//www.infobolsa.es/css/modulos.css" type="text/css" rel="stylesheet" />');	
	document.write('<div class="widget">');
	document.write('<div class="logo">');
	document.write('<a href="https://www.infobolsa.es" target="_blank" onclick="TrackEvent(\'widget\', \'MFV_Logo\', \'\')"></a>');
	document.write('</div>');
	document.write('<div class="downloadApp">');
	document.write('<a href="http://app.infobolsa.es" target="_blank" onclick="TrackEvent(\'widget\', \'MFV_Banner_publicidad\', \'\')"></a>');
	document.write('</div>');

	
	
	
	
	

	
		document.write('<div class="valor"><a href="http://www.infobolsa.es/cotizacion/ibex_35" target="_blank" onclick="TrackEvent(\'widget\', \'MFV_+Info\', \'\')">');
		document.write('IBEX 35</a></div>');
	

		

	document.write('<div class="datos">');
	document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	document.write('<tr>');
	document.write('<td class="price top">7.959,000</td>');
	document.write('<td class="changeP top  arrow txtRight"><div class=" top"></div>0,78%</td>');
	document.write('</tr>');
	document.write('<tr>');
	document.write('<td class="date">26/01/2021</td>');
	document.write('<td class="hour txtRight">17:17</td>');
	document.write('</tr>');
	document.write('</table>');
	document.write('</div>');

	document.write('<div class="graf">');
	document.write('<a href="http://www.infobolsa.es/cotizacion/ibex_35" target="_blank" onclick="TrackEvent(\'widget\', \'MFV_Grafico\', \'\')">');
	document.write('<img ID="Graf_1D" src="https://ifbic.infobolsanet.com/graficos/IFBgetchart.dll?GetChart?TR=1D&amp;LAN=SP&amp;UN=INFOBOLSA08_02&amp;WIDTH=180&amp;HEIGHT=100&amp;MV=I IB   &amp;CHARTYPE=6&amp;TH=N" border="0">');
	document.write('</a></div>');
	document.write('<a class="copy" href="http://www.infobolsa.es" target="_blank" onclick="TrackEvent(\'widget\', \'MFV_Logo\', \'\')">Cotización <strong>IBEX 35</strong> por ©infobolsa</a>');
	document.write('</div>');


	var _gaq = _gaq || [];
	_gaq.push(['_setAccount', 'UA-4243185-13']);
	_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';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
}

hrefElement.parentNode.removeChild(hrefElement);

function TrackEvent(categoria, accion, etiqueta) {
	if(document.referrer != ""){
		 var url_parts = document.referrer.split('//');
		 var dom_parts = url_parts[1].split('/');
		 var name_dom = "http://"+dom_parts[0];        
		 _gaq.push(['_trackEvent', categoria, accion, name_dom]);
	}
}