var texto_estado = "        Activania, la actualidad desde otro punto de vista          ";
var posicion = 0;
function Barra()
{
 mueve_texto();
}


function mueve_texto()
{
if (posicion < texto_estado.length) 
posicion ++;
else
 posicion = 1;
 var string_actual;
string_actual = texto_estado.substring(posicion) + texto_estado.substring(0,posicion);
window.status = string_actual;
setTimeout("mueve_texto()",50);
}


function Favoritos()
{
title="Activania";
url="http://www.activania.es";
	if (window.sidebar) {
		window.sidebar.addPanel(title, url,"");
	} else if( document.all ) {
		window.external.AddFavorite( url, title);
	} else if( window.opera && window.print ) {
		return true;
}
}

function EnviarAmigo(IdPost)
{
var ancho=687;	
var alto=600;
var PosX=(screen.width - ancho)/2;
var PosY=(screen.height - alto)/2;
MiVentana=window.open("home/EnviarAmigo.php?id="+IdPost,null, "width="+ ancho +", height="+ alto +", left="+ PosX + ", top=" + PosY + ", scrollbars=yes");
}

function MostrarOcultar(Elemento)
{
if (document.getElementById(Elemento).style.display == "block")
	{ document.getElementById(Elemento).style.display = "none"; }
else
 	{ document.getElementById(Elemento).style.display = "block"; }
}