/**
 *TRUCO CONTRA EL CLICK
**/
 
var pelicula = "";

function pintaflash(peli,identificador,ancho,alto,version,fondo,lugar){
	pelicula =lugar;
	//("are_todo_inicio.swf", "mymovie", "100%", "100%", "7", "#ffffff");
	var objeto ="<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" ";
		objeto +=" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0\" name=\""+identificador+"\" ";
  		objeto +=" width=\""+ancho+"\" height=\""+alto+"\" hspace=\"0\" vspace=\"0\" align=\"left\" id=\"general\" valign=\"top\"> ";
    	objeto +=" <param name=movie value=\""+peli+"\"> ";
      	objeto +=" <param name=\"salign\" value=\"LT\"> ";
      	objeto +=" <param name=quality value=high> ";
      	objeto +=" <PARAM NAME=menu VALUE=false> ";
      	objeto +=" <param name=bgcolor value="+fondo+"> ";
		objeto +="<embed src=\""+peli+"\"  width=\""+ancho+"\" height=\""+alto+"\" hspace=\"0\" vspace=\"0\" salign=\"LT\" menu=false quality=high bgcolor="+fondo;
 		objeto +=" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" name=\""+identificador+"\"></embed> ";
		objeto +="</object> ";
		try{
			document.getElementById(lugar).innerHTML = objeto;
		}catch(e){}
}
//para escalar como en auto res:
function ajustafla(){
	IE4 = (document.all);
	var ancho = 774;
	var alto = 472;
	if(IE4){
		ancho=document.body.clientWidth;
		alto = document.body.clientHeight;
	}else{
		ancho=window.innerWidth;
		alto=window.innerHeight;

	}
	//alert(ancho +"..."+alto);
	
	var cualo = document.getElementById(pelicula);
	if(ancho>774 && alto>472){
		cualo.style.width = ancho;
		cualo.style.height = alto;
		cualo.style.align = "left";
		}else{
		cualo.style.width = 774;
		cualo.style.height = 472;
		}
	
}
