function showVideo(idCMSTemplate_CMSPagina_CMSObjeto, fileFLV, fileJPG, titulo, URLSeo, idAdjunto) {
	var flashPlayer = document.getElementById(getFlashName("", idCMSTemplate_CMSPagina_CMSObjeto));
	flashPlayer.SetVariable("objSocket.call", "init<param>"+ fileFLV +"<param>"+ fileJPG +"<param>"+ URLSeo +"<param>"+ idAdjunto);
	document.getElementById("TITULOVIDEO_"+ idCMSTemplate_CMSPagina_CMSObjeto).innerHTML = titulo;
}

function resizeP(idCMSTemplate_CMSPagina_CMSObjeto) {
	try {
		var flashPlayer = document.getElementById(getFlashName("", idCMSTemplate_CMSPagina_CMSObjeto)),
			flashSelector = document.getElementById(getFlashName("selector_", idCMSTemplate_CMSPagina_CMSObjeto)),
			tdPlayer = document.getElementById("td_player_"+ idCMSTemplate_CMSPagina_CMSObjeto),
			imgPlayerLeft = document.getElementById("img_player_left_"+ idCMSTemplate_CMSPagina_CMSObjeto),
			imgPlayerRight = document.getElementById("img_player_right_"+ idCMSTemplate_CMSPagina_CMSObjeto),
			tdSelector = document.getElementById("td_selector_"+ idCMSTemplate_CMSPagina_CMSObjeto),
			widthPlayer = tdPlayer.clientWidth,
			heightPlayer = Math.ceil((widthPlayer * 3) / 4),
			heightSelector = (widthPlayer > 400)? 92: 75;
		flashPlayer.width = widthPlayer;
		flashPlayer.height = heightPlayer;
		tdPlayer.style.height = heightPlayer;
		imgPlayerLeft.style.height = heightPlayer;
		imgPlayerRight.style.height = heightPlayer;
		flashSelector.height = heightSelector;
		tdSelector.style.height = heightSelector;
	}
	catch(e) {
	}
}

function getFlashName(middle, idCMSTemplate_CMSPagina_CMSObjeto) {
	return "video_"+ middle + (isMSIE()? "": "m_") + idCMSTemplate_CMSPagina_CMSObjeto;
}
