//------------------------------------------------------------------------------
// Class:  Common
//------------------------------------------------------------------------------
// Author:  CL
// Date:  19/08/08
// Description:  This class is for the Common js
//------------------------------------------------------------------------------
function Common()
{
	// Methods:
	this.buttonHover = buttonHover;
	this.goToURL = goToURL;
	this.mainMenuSubmenuHover = mainMenuSubmenuHover;
	this.printPage = printPage;

	//--------------------------------------------------------------------------
	
	function buttonHover(elemName,path)
	{
		document[elemName].src = path;
	}
	
	//--------------------------------------------------------------------------

	function goToURL(path)
	{
		window.location = path;
	}
	
	//--------------------------------------------------------------------------

	function mainMenuSubmenuHover(thisElem,classNm,sType)
	{
		if(sType == 0)
		{
			thisElem.className = "";
		}
		else
		{
			thisElem.className = classNm;
		}
	}
	
	//--------------------------------------------------------------------------

	function printPage()
	{
		window.print();
	}
	
}
// 
oCommon = new Common();
// JavaScript Document