function addEvent( obj, type, fn )
{
	if ( obj.addEventListener ) {
		obj.addEventListener( type, fn, false );
	} else if ( obj.attachEvent ) {
			obj[ 'e' + type + fn ] = fn;
			obj[ type + fn ] = function() { 
				obj[ 'e' + type + fn ]( window.event); 
			}
			obj.attachEvent('on'+type, obj[type+fn]);
	}
}

function colorTables ()
{
	var content, tables, rows;
	content = document.getElementById( 'rightcol' );
	if ( !content ) {
		return;
	}
	tables = content.getElementsByTagName( 'table' );
	for ( i = 0; i < tables.length; i++ ) {
		if( tables[ i ].className == "" ) {
			//alert('1');
			rows = tables[ i ].getElementsByTagName( 'tr' );
			rows[ 0 ].className = 'headerTable';
			for ( j = 1; j < rows.length; j += 2 ) {
				rows[ j ].className = 'favor';
			}
		}
	}
}

