function showVideo(idCMSTemplate_CMSPagina_CMSObjeto, fileFLV, fileJPG,idAdjunto) {
	var flashPlayer = document.getElementById(getFlashName("", idCMSTemplate_CMSPagina_CMSObjeto));

	mostrarEpigrafe(idAdjunto,idCMSTemplate_CMSPagina_CMSObjeto);
	flashPlayer.SetVariable("objSocket.call", "init<param>"+ fileFLV +"<param>"+ fileJPG);	
}

function getFlashName(middle, idCMSTemplate_CMSPagina_CMSObjeto) {
	//return "video_"+ middle + ((isMSIE())? "": "m_") + idCMSTemplate_CMSPagina_CMSObjeto;
	return "video_"+ middle + "m_" + idCMSTemplate_CMSPagina_CMSObjeto;
}

function mostrarEpigrafe(idAdjunto,idCMSTemplate_CMSPagina_CMSObjeto)
{
	var nodo = document.getElementById("epigrafes_"+idCMSTemplate_CMSPagina_CMSObjeto);
	
	if(nodo.childNodes.length)
	{
		nodo = nodo.firstChild;
		
		if(nodo.style)
		nodo.style.display = 'none';
		
		while(nodo = nodo.nextSibling)
			if(nodo.style)
				nodo.style.display = 'none';
	}
	
	document.getElementById("div_epigrafe_"+idAdjunto).style.display = 'block';
}

function showVideoAlone(fileFLV, fileJPG) {
  
  var flashPlayer = document.getElementById("video_m");
  flashPlayer.SetVariable("objSocket.call", "init<param>"+ fileFLV +"<param>"+ fileJPG);
  
}