	function cargar_flash(ruta,ancho,alto,variables,transp,nombre)
	{
		parte1="";
		parte2="";
		if(transp==1)
		{
			parte1='<param name="wmode" value="transparent">';	
			parte2=' wmode="transparent" ';	
		}
		
		//
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ancho+'" height="'+alto+'" id="'+nombre+'" align="middle">');
		document.write('<param name="allowScriptAccess" value="sameDomain" />');
		document.write('<param name="movie" value="'+ruta+'" />');
		document.write('<param name="quality" value="high" />');
		//
		document.write(parte1);
		//
		document.write('<param name="FlashVars" value="'+variables+'" />');
		document.write('<embed src="'+ruta+'" width="'+ancho+'" height="'+alto+'" name="'+nombre+'" align="middle" quality="high" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" '+ parte2 +'flashvars="'+variables+'"/>'); 
		document.write('</object>');
	}
	
	function getFlashMovieObject(movieName)
	{
		  	if (window.document[movieName]) 
			{
			      return window.document[movieName];
			 }
			  if (navigator.appName.indexOf("Microsoft Internet")==-1)
			  {
			    if (document.embeds && document.embeds[movieName])
			      return document.embeds[movieName]; 
			  }
			  else // if (navigator.appName.indexOf("Microsoft Internet")!=-1)
			  {
			    return document.getElementById(movieName);
			  }
	}
	
// JavaScript Document
function redimensionar(w,h)
{
var LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
var TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
window.resizeTo(w,h);
window.moveTo(LeftPosition,TopPosition);
}
	
function mostrarFoto(nombreFoto, ancho, alto)
{
	var win = null;
	LeftPosition = (screen.width) ? (screen.width-ancho)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-alto)/2 : 0;
	estilo ='height='+alto+',width='+ancho+',top='+TopPosition+',left='+LeftPosition+',scrollbars=no,resizable';
	pagina='php/mostrarfoto.php?ruta=../fotos/'+nombreFoto;
	//alert(imagen);
	win = window.open(pagina,"mostrarFoto",estilo);
} 