// ActionScript Document

// Player Progressive Download
function Player(pPelicula,pImagen,pAncho,pAlto,pBuffer) {
	document.write('<embed src="player.swf" width="'+pAncho+'" height="'+pAlto+'" allowfullscreen="true" allowscriptaccess="always" flashvars="&controlbar=over&autostart=false&displayheight='+pAlto+'&bufferlength='+pBuffer+'&file='+pPelicula+'&height='+pAlto+'&image='+pImagen+'&width='+pAncho+'" />')
}

// Abre una ventana nueva con los parametros pasados.
function AbrirVentana(NuevaVentana,Nombre,Ancho,Alto,Left,Top,Scroll,Resize,Tool,Status,Menu,Location)
{
var Ventana;
var Opciones;
 if((Ancho > screen.width) || (Ancho == 0)){
  Ancho = screen.width - 2;
 }
 if((Alto > screen.height) || (Alto == 0)){
  Alto = screen.height - 2;
 }
 if(Left == 0)
 {
  Left = ((screen.width - Ancho)/2);
 }
 if(Top == 0)
 {
  Top   = ((screen.height - Alto)/2);
 }
 Opciones = 'width='+Ancho+',height='+Alto+',top='+Top+',left='+Left+',toolbar='+Tool+',scrollbars='+Scroll+',location='+Location+',statusbar='+Status+',menubar='+Menu+',resizable='+Resize;
 Ventana = window.open(NuevaVentana,Nombre,Opciones);
 Ventana.focus();
}


function CargarFoto(img, ancho, alto){
  	derecha=(screen.width-ancho)/2;
  	arriba=(screen.height-alto)/2;
	string="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+ancho+",height="+alto+",left="+derecha+",top="+arriba+"";
  	fin=window.open("VerFoto.asp?foto=" + img,"",string);
}

function CargarFoto2(img, ancho, alto){
  	derecha=(screen.width-ancho)/2;
  	arriba=(screen.height-alto)/2;
	string="toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+ancho+",height="+alto+",left="+derecha+",top="+arriba+"";
  	fin=window.open("VerFoto.asp?foto=" + img,"",string);
}
function CargarFoto3(img, ancho, alto){
  	derecha=(screen.width-ancho)/2;
  	arriba=(screen.height-alto)/2;
	string="toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+ancho+",height="+alto+",left="+derecha+",top="+arriba+"";
  	fin=window.open("VerFoto.asp?foto=" + img,"",string);
}

