function flash(nombre, ancho, alto) {
	//var emailPat=/^(.+)\/(.+)$/;
	//var matchArray=nombre.match(emailPat);
	//var vari2=matchArray[2];

	document.write("	");

	document.write("	<OBJECT");
	document.write("		id		= 'pelicula2'");
	document.write("		classid		= 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
	document.write("		codebase	= 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'");
	document.write("		id		= movie" );
	document.write("		WIDTH		= " + ancho);
	document.write("		HEIGHT		= " + alto + ">");
	document.write("		<PARAM NAME=movie   VALUE='flash/" + nombre + "'>");
	document.write("		<PARAM NAME=loop    VALUE=false>");
	document.write("		<PARAM NAME=menu    VALUE=false>");
	document.write("		<PARAM NAME=quality VALUE=high>");
	document.write("		<PARAM NAME=scale   VALUE=noborder>");
	document.write("		<PARAM NAME=wmode   VALUE=transparent>");
	document.write("		<PARAM NAME=bgcolor VALUE=#FFFFFF>");
	document.write("		<EMBED ");
	document.write("	   	src		= 'flash/" + nombre + "' ");
	document.write("	   	loop		= false ");
	document.write("	   	menu		= false ");
	document.write("	   	quality		= high ");
	document.write("	   	scale		= noborder ");
	document.write("	   	wmode		= transparent");
	document.write("	   	bgcolor		= #FFFFFF ");
	document.write("		WIDTH		= " + ancho);
	document.write("		HEIGHT		= " + alto);
	document.write("	   	TYPE		= 'application/x-shockwave-flash'");
	document.write("	   	PLUGINSPAGE	= 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>");
	document.write("	</EMBED>");
	document.write("	</OBJECT>");

}




function flash2(nombre, ancho, alto) {
	document.write("	");
	document.write("	<div id='" + nombre + "'>");
	document.write("	<OBJECT");
	document.write("		id		= '" + nombre + "'");
	document.write("		classid		= 'clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'");
	document.write("		codebase	= 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0'");
	document.write("		WIDTH		= " + ancho);
	document.write("		HEIGHT		= " + alto + ">");
	document.write("		<PARAM NAME=movie   VALUE='" + nombre + ".swf'>");
	document.write("		<PARAM NAME=loop    VALUE=false>");
	document.write("		<PARAM NAME=menu    VALUE=false>");
	document.write("		<PARAM NAME=quality VALUE=high>");
	document.write("		<PARAM NAME=scale   VALUE=noborder>");
	document.write("		<PARAM NAME=wmode   VALUE=transparent>");
	document.write("		<PARAM NAME=bgcolor VALUE=#FFFFFF>");
	document.write("		<EMBED ");
	document.write("		id		= '" + nombre + "'");
	document.write("	   	src		= '" + nombre + ".swf' ");
	document.write("	   	loop		= false ");
	document.write("	   	menu		= false ");
	document.write("	   	quality		= high ");
	document.write("	   	scale		= noborder ");
	document.write("	   	wmode		= transparent");
	document.write("	   	bgcolor		= #FFFFFF ");
	document.write("		WIDTH		= " + ancho);
	document.write("		HEIGHT		= " + alto);
	document.write("	   	TYPE		= 'application/x-shockwave-flash'");
	document.write("	   	PLUGINSPAGE	= 'http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>");
	document.write("	</EMBED>");
	document.write("	</OBJECT>");
	document.write("	</div>");
}











function fin() {
var PeliFlash=window.document.pelicula;
var corriente = PeliFlash.CurrentFrame();
var porcentaje = PeliFlash.PercentLoaded();
var final = PeliFlash.TGetProperty("_root",5);
if (porcentaje == 100){
	PeliFlash.GotoFrame(final); 
}
}
