//------------------------------------------------------------------------------
// CLASS Page
//------------------------------------------------------------------------------
// pitflag e' una combinazione di valori in OR
// dei valori PAGE, ILLUSTRATION e TRANSCRIPTION
//------------------------------------------------------------------------------
//
	function Page(numero,titolo,id,zid,pitflag,server,ref) {
		this.numero = numero ;
		this.titolo = titolo ;
		this.id = id ;
		this.zid = zid ;
		this.pitflag = pitflag ;
		this.server = server ;
		this.ref = ref ;
		this.modified = false ;
	}

	Page.prototype.formatPage = function() {
		var ret = ""+this.numero ;
		while(ret.length<5)
			ret="0"+ret ;
		return ret ;
	}

	function Thumb(pag,titolo,id,zid,note,server) {
		this.pag = pag ;
		this.titolo = titolo ;
		this.id = id ;
		this.zid = zid ;
		this.note = note ;
		this.server = server ;
	}
//
//------------------------------------------------------------------------------


//------------------------------------------------------------------------------
// CLASS Sfogliatore
//------------------------------------------------------------------------------
// sfogliatore di una collezione di immagini
//------------------------------------------------------------------------------
//
	function Sfogliatore(percorso,imagePrefix,imagePath,rid,sid) {
		this.base = Modulo ;
		this.base(percorso) ;
		/** Prefisso immagini, ovvero indirizzo base del server o della pagina che genera l'immagine */
		this.imagePrefix = imagePrefix ;
		/** Percorso base delle immagini corrente (ovvero generalmente la cartella sul server) */
		this.imagePath = imagePath ;
		/** Identificativo della sessione che fa richiesta dell'immagine */
		this.sid = sid ;

		this.rid = parseInt(rid) ;
	}

//
//------------------------------------------------------------------------------