<!--
//######################
//# Description: Base Event object
//# Dated:       11/12/2006 - 11/14/2006
//# Author       (c) Philip Jahmani Chauvet 
//# Notice:      Free to use, download, publish, but keep my name on this code.
//######################

function Event()
{
    this.name=null;
    this.eventid=null;    
    this.dir=null;
    this.src=null;
    this.img=null;   
    this.imgtitle=null;
    this.setTitle=setTitle;  
    this.getTitle=getTitle; 
    this.setEventID=setEventID;  
    this.getEventID=getEventID;     
    this.setSrc=setSrc;
    this.getSrc=getSrc;
    this.setImageTitle=setImageTitle;  
    this.getImageTitle=getImageTitle; 
    this.setDir=setDir;  
    this.getDir=getDir;
    this.setImager=setImager; 
    this.getImager=getImager; 
}
Event.prototype.toString=evenobjToString;
function evenobjToString()
{
	var msg = "Event.toString():\n";
	    msg += "  name=" + this.getTitle() + "\n";
        msg += "  eventid=" + this.getEventID() + "\n";
        msg += "  dir=" + this.getDir() + "\n";
	    msg += "  img=" + this.getImager() + "\n";
        msg += "  imgtitle=" + this.getImageTitle() + "\n";
	    msg += "  src=" + this.getSrc() + "\n";
	    
	return msg;
}
function setTitle( name )
{
    this.name = name;
}
function getTitle()
{
    return this.name;
}
function setEventID( eventid )
{
    this.eventid = eventid;
}
function getEventID()
{
    return this.eventid;
}
function setSrc( src )
{
	this.src = src;
}
function getSrc()
{
	return this.src;
}
function setImageTitle( tmptitle )
{
    this.imgtitle = tmptitle;
}
function getImageTitle()
{
	if ( this.imgtitle == null )
		this.imgtitle = "no title";		

    return this.imgtitle;
}
function setDir( dir )
{
    this.dir = dir;
}
function getDir()
{
    return this.dir;
}
function setImager( img )
{
    this.img = img;
}
function getImager()
{
    return this.img;
}

//-->    

