function siteImage(myRecordIn) {
	this.myRecord = myRecordIn;
}
siteImage.prototype.draw = function() {
	this.myDiv = document.createElement("div");
	this.myDiv.style.position = "absolute";	
	this.myImage = document.createElement("img");
	this.myImage.setAttribute("src",this.myRecord.getPropertyValue("imagelocation"));
	this.myID = this.myRecord.getPropertyValue("imageID");
	this.soundFile = this.myRecord.getPropertyValue("soundFile");
	this.myImage.myParent = this;
	this.myImage.onmouseover = function(e) {
		this.myParent.doRollOver();
	}
	this.myImage.onmouseout = function(e) {
		this.myParent.doRollOut();
	}
	this.myImage.onclick = function() {
		myPage.showDetails(this.myParent.myID,this.myParent.myIndex);
		this.myParent.doRollOut();
	}
	this.myDiv.appendChild(this.myImage);
	this.myDiv.style.top = this.myRecord.getPropertyValue("top");
	this.myDiv.style.left = this.myRecord.getPropertyValue("left");
	return this.myDiv;
}
siteImage.prototype.doRollOver = function() {
	this.myImage.setAttribute("src",this.myRecord.getPropertyValue("rolloverImagelocation"));
	if (this.soundFile != "undefined") {
//disabled sounds!!!!
 		myPage.sound.playSound(this.soundFile);
	}
}
siteImage.prototype.doRollOut = function() {
	myPage.sound.stopSound();
	this.myImage.setAttribute("src",this.myRecord.getPropertyValue("imagelocation"));
}
