// object constructor
function csnPhotoObject(thumbID,thumbOffURI,thumbOnURI,fullID,fullURI) {
	// define object's properties
	this.thumbDOMRef = document.getElementById(thumbID);
	this.fullDOMRef = document.getElementById(fullID);
	this.thumbOffImg = new csnSmartImageObject(thumbOffURI,true);
	this.thumbOnImg = new csnSmartImageObject(thumbOnURI,true);
	// we don't want to load the full image until its needed
	this.fullImg = new csnSmartImageObject(fullURI,false); 
	
	// attach object's methods
	this.showThumb = csnPhotoObjectShowThumb;
	this.hideThumb = csnPhotoObjectHideThumb;
	this.showFull = csnPhotoObjectShowFull;
	
}

// define object's methods
function csnPhotoObjectShowThumb() { this.thumbDOMRef.src = this.thumbOnImg.getImage(); }
function csnPhotoObjectHideThumb() { this.thumbDOMRef.src = this.thumbOffImg.getImage(); }
function csnPhotoObjectShowFull() { this.fullDOMRef.src = this.fullImg.getImage(); }
