/**
* Treatment Overview Page Interaction Functionality
*
* @author      		Matt Gifford
* @copyright			2006 Timeshifting Interactive Limited
* @version        	1.0
*/


treatment = new TreatmentOverview();
window.onload = new Function("xhtml.init(); treatment.init();");


/**
* Creates a new Treatment Overview object that handles the functionality for the treatment pages
*
* @author      		Matt Gifford
* @copyright			2006 Timeshifting Interactive Limited
* @version        	1.0
*/
function TreatmentOverview()
	{
	// Step 1. Define Properties

	this.initialized = false;


	// Step 2. Define Methods

	/**
	* Sets up the initial page state and event handlers
	*/
	this.init = function()
		{
		this.addEventHandlers();
		this.initialized = true;
		}

	
	/**
	* Adds rollover event handlers the area columns
	*/
	this.addEventHandlers = function()
		{
		var columns = document.getElementById('treatmentOverview').getElementsByTagName('div');
		for (var x = 0; x < columns.length; x++)
			{
			columns[x].onmouseover = function()
				{
				this.className = 'active';
				}
			columns[x].onmouseout = function()
				{
				this.className = '';
				}
			}
		}
	}