// image replacement functions
// can be used anywhere in the code

function objectdata(hsize,vsize,restoreimg,replaceimg,mess) {
	if(browser) {	this.mess=mess;
			this.simg=new Image(hsize,vsize);
			this.simg.src=replaceimg;
			this.rimg=new Image(hsize,vsize);
			this.rimg.src=restoreimg; }											 
}




function ReplaceOrig(name)
{if(browser) 
{window.status=object[name].mess;
document[name].src=object[name].simg.src;}} 

function RestoreOrig(name)
{if(browser) 
{window.status="";
document[name].src=object[name].rimg.src;}} 