// JavaScript Document
function animation (number,sx,sy,names,des)
{
	this.number=number;
    this.sizes_x=new Array (number);
	this.sizes_y=new Array (number);
	this.imagenes=new Array(number);
	this.description=new Array(number);
	for (i=0;i<number;i++)
    {
		this.sizes_x[i]=sx[i];
		this.sizes_y[i]=sy[i];
		this.description[i]=des[i];
		this.imagenes[i]=new Image();
		this.imagenes[i].name=names[i];
		this.imagenes[i].src=names[i];
    }
}
function slider ( anim, imgname )
{
 this.step=0;
 this.subdir="";
 this.dostep=dostep;
 this.onclick=onclick;
 function dostep()
 {
	 this.step++;
	 if (this.step>=anim.number) this.step=0;
	 document.images[imgname].src="../photo/"+this.subdir+anim.imagenes[this.step].name;
 }
 function onclick()
 {
 	var dispnow=this.step;
 	var mw=14+anim.sizes_x[dispnow];
	var mh=76+anim.sizes_y[dispnow];
    popWin =  window.open("","","width="+mw+",height="+mh+",scrollbars=no,dependent=yes")
	popWin.document.bgColor="#000000";
	popWin.document.writeln("<html><head><title>Cargando...</title>")
	popWin.document.writeln("<script language='JavaScript1.1'>")
	popWin.document.writeln("function doTitle(){document.title='Ampliación'}")
	popWin.document.writeln("</script>")
	popWin.document.writeln("</head>")
	popWin.document.writeln("<body leftmargin='0' topmargin='0'  bgcolor='#000000' onload='doTitle()'>")
	popWin.document.writeln("<table  style='font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 14px;color: #e1ae41;background-color: #000000;'width='100%' border='0' cellpadding='0' cellspacing='0' class='corptext'><tr>")
	popWin.document.writeln("<td align='center' ><img border='1' sytle='color #e1ae41' align='middle' src="+"'../photo/zoom/"+anim.imagenes[dispnow].name+"'></td>")
	popWin.document.writeln("</tr><tr>")

	popWin.document.writeln("<td align='center' height='64'>"+anim.description[dispnow]+"</td>")
	//popWin.document.writeln("<td align='center' height='64'>Ampliaci&oacute;n</td>")
	popWin.document.writeln("</tr></table>")
	popWin.document.writeln("</body></html>")
    popWin.document.close()
 }
}

