var width,height
var image,ext
var posx,posy
function miniwin(image,width,height_,peques) {
		posx=screen.width;posy=screen.height;
		 if (peques>0) {
		 height = Number(height_);
		// height+=100;
		// con mini-thumbs (pqeues)
		window.open("openex.php?image="+image+"&thumbs="+peques+"&w="+width+"&h="+height, "imagewin","toolbar=no,scrollbars=no,menubar=no,width="+(width)+",height="+(height)+"px,left="+((posx/2)-(width/2))+"px,top="+((posy/2)-(height/2)));
		} else {
		height = Number(height_);
		// no mini-thumbs (pqeues)
        window.open("open.php?image="+image, "imagewin","toolbar=no,scrollbars=no,menubar=no,width="+(width)+",height="+(height)+"px,left="+((posx/2)-(width/2))+"px,top="+((posy/2)-(height/2)));
}
        //imgwin.document.write(s)
}
function minitwin(text,width,height) {
		posx=screen.width;posy=screen.height;
        var s1="<html><head><title>bottom</title></head><body bgcolor='#f4f4f4' leftmargin='5' topmargin='5' marginwidth='5' marginheight='5' style='text-align: justify;	font-size: 9px;	color: #8b8a8b;	font-family: arial;' ><table width='100%' border='0'><tr><td align='center'><img src='img/information.gif'></td></tr></table>"
        var s2 ="</body></html>"
        txtwin=window.open("", "info","toolbar=no,scrollbars=no,menubar=no,width="+(width)+"px,height="+(height)+"px,left="+((posx/2)-(width/2))+"px,top="+((posy/2)-(height/2)));
        txtwin.document.write(s1+text+s2)
}

function minivwin(text,number) {
		posx=screen.width;posy=screen.height;
		width=320;height=120;
        window.open("video.php?id="+number+"&texto="+text, "videowin","toolbar=no,scrollbars=no,menubar=no,width="+(width)+",height="+(height)+"px,left="+((posx/2)-(width/2))+"px,top="+((posy/2)-(height/2)));

}
