(function(){

	this.set_highlight = function(table)
	{
		var trs = table.getElementsByTagName('tr');
		var line_number = 0;
		for(var i=0;i<trs.length;i++)
		{
			var tr = trs[i];
			if ((tr.className != 'header') && (line_number != 0)) {
				
				tr.onmouseover = function(){
					this.className = 'highlight';
				};
				tr.onmouseout = function(){
					this.className = '';
				};
			}
			if ((tr.className == 'header') && (line_number != 0))
			{
				tr.className = '';
			}
			line_number++;
		}
	}
	
	this.get_tables = function()
	{
		var tables = document.getElementsByTagName('table');
		for(var i=0;i<tables.length;i++)
		{
			if (tables[i].className == 'standart-table')
			{
				this.set_highlight(tables[i]);
			}
		}		
	}
	

var scope = this;

addEvent(
    window,
	'load',
	function()
	{
		scope.get_tables();
	}
);	
})();