var myrules = {
	'.forumRow' : function(el)
	{
		el.onmouseover = function()
		{
			el.style.backgroundColor = '#eeeeee';
		};
		el.onmouseout = function()
		{
			el.style.backgroundColor = '#fff';
		};
		/*
		el.onclick = function()
		{
			var kids = el.childNodes;
			for (var i = 0; i < kids.length; i++)
			{
				var tag = "" + kids[i].tagName;
				if (tag && tag.toLowerCase() == 'a' && kids[i].className == 'forumLink')
				{
					var href = kids[i].getAttribute('href');
					alert(href);
				}
			}
		};
		*/
	}
/*
	'button' : function(el)
	{
		//element.onmouseover = ChangeState;
		el.onmouseover = ChangeState;
		el.onmouseleave = ChangeState;
		el.onmousedown = ChangeState;
		el.onmouseup = ChangeState;

		if (el.className.indexOf('Disabled') < 0 &&
			el.className.indexOf('Active') < 0 &&
			!el.getAttribute("pdicommand"))
		{
			el.onclick = function ()
			{
				if (el.id == 'btnWizardPrevious')
					goPrev();
				else if (el.id == 'btnWizardNext' || el.id == 'btnStartWizard')
					goNext();
				else
				{
					var name = this.getAttribute("name");
					if (name)
						goMenu(name);
				}
			} // onclick
		}
	},
	*/
};
Behaviour.register(myrules);
window.unload = function()
{
	var list = document.getElementsByTagName('*');
	for (var i = 0; i < list.length; i++)
	{
		list[i].onmouseover = null;
		list[i].onmousedown = null;
		list[i].onmouseup = null;
		list[i].onmouseleave = null;
		list[i].onclick = null;
	}
}
