function getRecordVida(sesion, idp, base)
{
	var flashvars = {
		filePath: "http://www.meduc.cl/getConfig.php",
		fileID: "12345678",
	  url_base: base,
	  sesion: sesion,
	  idPersona: idp
	};
	
	var params = {
		bgcolor: "#B8D7F0",
	  menu: "false",
	  allowScriptAccess: "always",
	  quality: "high",
	  wmode: "opaque",
	  salign: "t"
	};


	swfobject.embedSWF("../../aplicacionflash/dictuc.swf", "flashcontent", "772", "240", "8.0.0", "../../aplicacionflash/js/expressinstall.swf", flashvars, params);
}

function getGenograma()
{
	var flashvars = {
		url_base:"../../aplicacionflash/genograma/datos/",
		show_version:"false"
	};
	
	var params = {
		bgcolor: "#FFFFFF",
	  menu: "false",
	  scale: "noScale",
	  allowFullscreen: "true",
	  allowScriptAccess: "always",
	  quality: "high",
	  salign: "t"
	};


	swfobject.embedSWF("../../aplicacionflash/genograma/genograma.swf", "genograma", "800", "600", "9.0.0", "../../aplicacionflash/js/expressinstall.swf", flashvars, params);
}

function verDocPopUpFlash(sesion,id_doc,idPersona)
{
  //alert(sesion+' '+id_doc+' '+idPersona);
  
  tb_show('Vista extendida','flashAction.php?flaction=ver_doc&id='+id_doc+'&idPersona='+idPersona+'&modal=false&width=700&height=400', null, null);
  
}

function getVisorImagenes(
	sesion,	idp, url_base_meduc,
	url_base_script, anexo_url_base_script, param_img,
	app_flash, ancho_app_flash, alto_app_flash, anexo_ruta_app_flash,
	scale_factor
)
{
	var flashvars = {
		filePath: 'http://www.meduc.cl/getConfig.php',
		fileID: '12345678',
		sesion: sesion,
	  idPersona: idp,
	  url_base_meduc: url_base_meduc,//ruta base del sistema
	  url_base_script: url_base_script,//ruta base del script (php por ejemplo) que queremos correr
	  anexo_url_base_script: anexo_url_base_script,//ruta posterior a la ruta base del script (/regsalud/registro/img.php?id_img=1234)
	  param_img: param_img,//id_doc = 113487687
	  scale_factor: scale_factor,//factor de escala de la imagen
	  ancho_app_flash: ancho_app_flash,
	  alto_app_flash: alto_app_flash
	};
	
	var params = {
		bgcolor: "#000000",
	  menu: "true",
	  allowScriptAccess: "always",
	  allowFullScreen: "true",
	  scale: "noscale",
	  quality: "best",
	  wmode: "opaque",
	  salign: "t"
	  /* Doc:
	  	salign - Possible values: l, t, r, b, tl, tr, bl, br. 
			l, r, t, and b align the movie along the left, right, top or bottom edge, respectively, of the browser window and crop the remaining three sides as needed. 
			tl and tr align the movie to the top left and top right corner, respectively, of the browser window and crop the bottom and remaining right or left side as needed. 
			bl and br align the movie to the bottom left and bottom right corner, respectively, of the browser window and crop the top and remaining right or left side as needed.
	  */
	};


	swfobject.embedSWF(url_base_meduc + anexo_ruta_app_flash + app_flash + '.swf', "flashcontent_img", ancho_app_flash, alto_app_flash, "8.0.0", "../../aplicacionflash/js/expressinstall.swf", flashvars, params);
}
