// Funcion para intercambiar las pestaņas de mas leidos y mas comentados.
if (document.images)
{
  pic1= new Image(150,30); 
  pic1.src="/wp-content/themes/sobreseguros/images/bg_most_read.jpg"; 

  pic2= new Image(150,30); 
  pic2.src="/wp-content/themes/sobreseguros/images/bg_most_hover.jpg";   
}

function mostrar(m,o) {
	tabOculto  = document.getElementById(m);
	tabVisible = document.getElementById(o);

	tabVisible.style.display = 'none';
	tabOculto.style.display  = 'block';
	
	if( m == 't2')
	{
	document.getElementById('a_most_comment').style.color = '#FFF';
	document.getElementById('a_most_read').style.color = '#000';
	document.getElementById('a_most_read').style.background  = 'url(/wp-content/themes/sobreseguros/images/bg_most_read.jpg) no-repeat';
	document.getElementById('a_most_comment').style.background  = 'url(/wp-content/themes/sobreseguros/images/bg_most_hover.jpg) no-repeat';
	}
	else
	{
	document.getElementById('a_most_read').style.color = '#FFF';
	document.getElementById('a_most_comment').style.color = '#000';
	document.getElementById('a_most_read').style.background  = 'url(/wp-content/themes/sobreseguros/images/bg_most_hover.jpg) no-repeat';
	document.getElementById('a_most_comment').style.background  = 'url(/wp-content/themes/sobreseguros/images/bg_most_read.jpg) no-repeat';
	}
}
