function agregaFlash(archivo,width,height){
	var classid     = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
	var codebase    = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0";
	var pluginspage = "http://www.macromedia.com/go/getflashplayer";
	var type        = "application/x-shockwave-flash";
	
	document.write("<object classid="+classid+" codebase="+codebase+" width="+width+" height="+height+">");
	document.write("<param name='movie' value='peliculas/"+archivo+".swf' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='peliculas/"+archivo+".swf' width='"+width+"' height='"+height+"' quality='high' pluginspage='"+pluginspage+"' type='"+type+"' wmode='transparent'></embed>");
	document.write("</object>");
}

function agregaTituloFlash(nombre,dir){
	var classid     = "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";
	var codebase    = "http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0";
	var pluginspage = "http://www.macromedia.com/go/getflashplayer";
	var type        = "application/x-shockwave-flash";
	
	document.write("<object classid="+classid+" codebase="+codebase+" width=480 height=40>");
	document.write("<param name='movie' value='"+dir+"peliculas/titulos.swf?titulo="+nombre+"' />");
	document.write("<param name='quality' value='high' />");
	document.write("<param name='wmode' value='transparent' />");
	document.write("<embed src='"+dir+"peliculas/titulos.swf?titulo="+nombre+"' width='480' height='40' quality='high' pluginspage='"+pluginspage+"' type='"+type+"' wmode='transparent'></embed>");
	document.write("</object>");
}

function fecRefresh(){
	var mydate=new Date();
	var year=mydate.getYear();
	if (year < 1000)
		year+=1900;
	var day=mydate.getDay();
	var month=mydate.getMonth();
	var daym=mydate.getDate();
	if (daym<10)
	daym="0"+daym;
	
	var hora = mydate.getHours();
	var minu = mydate.getMinutes();
	var segundos = mydate.getSeconds();
	
	if (hora > 12){
		hora -= 12;
		ampm = " PM";
	}else{
		ampm = " AM";
	}
	
	if(segundos < 10)
		segundos = "0"+segundos;
	if(minu < 10)
		minu = "0"+minu;
	if(hora <10)
		hora = "0"+hora;
	
	var montharray=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
	
	document.write(daym+" "+montharray[month]+" "+year+"<br />"+hora+":"+minu+":"+segundos+ampm);
}