	/**
		This defines the Event information
	*/	
				
	QualEvent.prototype.mId					= null;																
	QualEvent.prototype.mRaceId				= null;
	QualEvent.prototype.mType				= null;
	QualEvent.prototype.mSeries				= null;
	
	QualEvent.prototype.mTrackLength		= null;
	QualEvent.prototype.mTitle				= null;	
	QualEvent.prototype.mSponsor			= null;	
	QualEvent.prototype.mLocation			= null;
	
	QualEvent.prototype.mStartTime			= null;
	QualEvent.prototype.mElapsedTime		= null;	
	QualEvent.prototype.mQualifyingCar		= null;
	QualEvent.prototype.mNextCarToQualify	= null;
	QualEvent.prototype.mQualifyingPosition	= null;
	QualEvent.prototype.mWeather			= null;	
	QualEvent.prototype.mForecast			= null;
		
	QualEvent.prototype.mTrackAbbreviation	= null;
	QualEvent.prototype.mTrackShape			= null;
	QualEvent.prototype.mTrackShortName		= null;
	QualEvent.prototype.mTrackType			= null;
	QualEvent.prototype.mCarsStarted		= null;
		
	/**
	 * QualEvent - Constructor
	 * Create a new QualEvent object.
	 */
	function QualEvent(inputLine)
	{
		this.mId				= "";																
		this.mRaceId			= "";
		this.mType				= "";
		this.mSeries			= "";
		
		this.mTrackLength		= "";
		this.mTitle				= "";	
		this.mSponsor			= "";	
		this.mLocation			= "";
		
		this.mStartTime				= "";
		this.mElapsedTime			= "";	
		this.mQualifyingCar			= "";
		this.mNextCarToQualify		= "";
		this.mQualifyingPosition	= "";
		this.mWeather				= "";	
		this.mForecast				= "";		
		
		this.mTrackAbbreviation	= "";
		this.mTrackShape		= "";
		this.mTrackShortName	= "";
		this.mTrackType			= "";
		this.mCarsStarted		= "";
		
		this.initialize(inputLine);
	}
	
	/**
	 */
	QualEvent.prototype.initialize = function (inputLine)
	{
		if (!inputLine)
		{
			return;
		}
		
		//the inputLine format must of the following
		//"E" + "|"+event.getId()+ "|"+event.getRaceId()+ "|"+event.getType()+ "|"+event.getSeries()+
		//"|"+event.getTrackLength()+ "|"+event.getTitle()+	"|"+event.getSponsor()+	"|"+event.getLocation()+
		//"|"+event.getStartTime()+	"|"+event.getElapsedTime()+	"|"+event.getQualifyingCar()+ "|"+event.getNextCarToQualify()+
		//"|"+event.getQualifyingPosition()+ "|"+event.getWeather()+ "|"+event.getForecast()+ "|"+event.getTrackAbbreviation()+
		//"|"+event.getTrackShape()+ "|"+event.getTrackShortName()+ "|"+event.getTrackType()+ "|"+event.getCarsStarted();			
					
		var values = inputLine.split("|");
		
		//skip the 0's index, that is just an 'E' indicating that 
		//the input line is for QualEvent information.
		
		this.mId 				= values[1];
		this.mRaceId			= values[2];
		this.mType				= removeNull( values[3] );
		this.mSeries			= removeNull( values[4] );
	
		this.mTrackLength		= removeNull( values[5] );
		this.mTitle				= removeNull( values[6] );	
		this.mSponsor			= removeNull( values[7] );	
		this.mLocation			= removeNull( values[8] );
		
		this.mStartTime				= removeNull( values[9] );
		this.mElapsedTime			= removeNull( values[10] );	
		this.mQualifyingCar			= removeNull( values[11] );
		this.mNextCarToQualify		= removeNull( values[12] );
		this.mQualifyingPosition	= removeNull( values[13] );
		this.mWeather				= removeNull( values[14] );	
		//this.mForecast				= removeNull( values[15] );		
		
		this.mTrackAbbreviation	= removeNull( values[16] );
		this.mTrackShape		= removeNull( values[17] );
		this.mTrackShortName	= removeNull( values[18] );
		this.mTrackType			= removeNull( values[19] );					
		this.mCarsStarted		= removeNull( values[20] );
	};
	
	/**
	 */
	function removeNull(value)
	{
		if (value == null || value == 'null')
		{
			return '-';
		}
		return value;
		
	}
	
	/**
	 */
	QualEvent.prototype.getId = function ()
	{
		return this.mId;
	};
	
	/**
	 */
	QualEvent.prototype.getRaceId = function ()
	{
		return this.mRaceId;
	};				
			
	/**
	 */
	QualEvent.prototype.getType = function ()
	{
		return this.mType;
	};
	
	/**
	 */
	QualEvent.prototype.getSeries = function ()
	{
		return this.mSeries;
	};
	
	/**
	 */
	QualEvent.prototype.getTrackLength = function ()
	{
		return this.mTrackLength;
	};
	
	/**
	 */
	QualEvent.prototype.getTitle = function ()
	{
		return this.mTitle;
	};
	
	/**
	 */
	QualEvent.prototype.getSponsor = function ()
	{
		return this.mSponsor;
	};
	
	/**
	 */
	QualEvent.prototype.getLocation = function ()
	{
		return this.mLocation;
	};	
	
	/**
	 */
	QualEvent.prototype.getStartTime = function ()
	{
		return this.mStartTime;
	};
	
	/**
	 */
	QualEvent.prototype.getElapsedTime = function ()
	{
		return this.mElapsedTime;
	};
	
	/**
	 */
	QualEvent.prototype.getQualifyingCar = function ()
	{
		return this.mQualifyingCar;
	};
	
	/**
	 */
	QualEvent.prototype.getNextCarToQualify = function ()
	{
		return this.mNextCarToQualify;
	};
	
	/**
	 */
	QualEvent.prototype.getQualifyingPosition = function ()
	{
		return this.mQualifyingPosition;
	};
	
	/**
	 */
	QualEvent.prototype.getWeather = function ()
	{
		return this.mWeather;
	};
	
	/**
	 */
	QualEvent.prototype.getForecast = function ()
	{
		return this.mForecast;
	};
								
	/**
	 */
	QualEvent.prototype.getTrackAbbreviation = function ()
	{
		return this.mTrackAbbreviation;
	};
	
	/**
	 */
	QualEvent.prototype.getTrackShape = function ()
	{
		return this.mTrackShape;
	};
	
	/**
	 */
	QualEvent.prototype.getTrackShortName = function ()
	{
		return this.mTrackShortName;
	};	
	
	/**
	 */
	QualEvent.prototype.getTrackType = function ()
	{
		return this.mTrackType;
	};				
	
	/**
	 */
	QualEvent.prototype.getCarsStarted = function ()
	{
		return this.mCarsStarted;
	};
	
	
	/**
	 * toString
	 * Returns a string representation of this QualEvent 
	 */
	QualEvent.prototype.toString = function ()
	{	
		var buffer;
		
		buffer += "mId: [" + this.mId		+ "], ";
		buffer += "mRaceId: [" + this.mRaceId		+ "], ";
		buffer += "mType [" + this.mType 			+ "], ";
		buffer += "mSeries [" + this.mSeries 				+ "], ";
		buffer += "mTrackLength [" + this.mTrackLength				+ "], ";
		buffer += "mTitle [" + this.mTitle	+ "], ";		
		buffer += "mSponsor [" + this.mSponsor		+ "], ";						
		buffer += "mLocation [" + this.mLocation		+ "], ";	
							
		buffer += "mStartTime [" + this.mStartTime		+ "], ";
		buffer += "mElapsedTime [" + this.mElapsedTime 				+ "], ";		
		buffer += "mQualifyingCar [" + this.mQualifyingCar				+ "], ";
		buffer += "mNextCarToQualify [" + this.mNextCarToQualify	+ "], ";		
		buffer += "mQualifyingPosition [" + this.mQualifyingPosition		+ "], ";						
		buffer += "mWeather [" + this.mWeather		+ "], ";						
		//buffer += "mForecast [" + this.mForecast		+ "], ";	
				
		buffer += "mTrackAbbreviation [" + this.mTrackAbbreviation	+ "], ";		
		buffer += "mTrackShape [" + this.mTrackShape		+ "], ";						
		buffer += "mTrackShortName [" + this.mTrackShortName		+ "], ";						
		buffer += "mTrackType [" + this.mTrackType		+ "], ";					
		buffer += "mCarsStarted [" + this.mCarsStarted				+ "], ";
						
		return buffer;
	};			

