Event.observe(window, 'load', function() {
	$$('table tbody > tr:nth-child(even)').each(
		function(n)
		{
			n.addClassName('evenRow');
		}
	)
});
function showHideToolTip(id)
{
	Effect.toggle(id, 'appear', { duration: 0.2 });
}

var ToolTips = Class.create(
{
	initialize: function()
	{
		var time = new Date();
		this.anchors = $$('a[rel=toolTip]');
		this.tips = $$('div.toolTip');
		var i=0;
		if(this.anchors.length == this.tips.length)
		{
			for(i=0;i<this.anchors.length;i++)
			{
				this.anchors[i].observe('mouseover', this.showTip.bind(this, i));
				this.anchors[i].observe('mouseout', this.hideTip.bind(this, i));
				this.tips[i].style.position = 'absolute';
				this.tips[i].style.left = (this.anchors[i].offsetLeft + 20)+'px';
				this.tips[i].style.top = (this.anchors[i].offsetTop + 12)+'px';
			}
		}
		else
		{
			alert('Tips dont match anchors');
		}
	},
	showTip: function(num)
	{
		this.tips[num].style.display = 'block';
	},
	hideTip: function(num)
	{
		this.tips[num].style.display = 'none';
	}
});
Event.observe(window, 'load', function(){
	new ToolTips();
});