/* hovered rows from www.espaivirtual.com:88/phpMyAdmin/js/functions.js */
/**
 * enables highlight and marking of rows in data tables
 */
function PMA_markRowsInit() {
    // for every table row ...
    var rows = document.getElementsByTagName('td');
    for ( var i = 0; i < rows.length; i++ ) {
        // ... with the class 'odd' or 'even' ...
        if ( 'j1bg' == rows[i].className.substr(0,4)) {
	        // ... to highlight the row on mouseover ...
	        if ( navigator.appName == 'Microsoft Internet Explorer' ) {
	            // but only for IE, other browsers are handled by :hover in css
	            rows[i].onmouseover = function() {
	                this.className += ' hover1';
	            }
	            rows[i].onmouseout = function() {
	                this.className = this.className.replace( ' hover1', '' );
	            }
	        }
      	}
      	else if ( 'j2bg' == rows[i].className.substr(0,4)) {
	        // ... to highlight the row on mouseover ...
	        if ( navigator.appName == 'Microsoft Internet Explorer' ) {
	            // but only for IE, other browsers are handled by :hover in css
	            rows[i].onmouseover = function() {
	                this.className += ' hover2';
	            }
	            rows[i].onmouseout = function() {
	                this.className = this.className.replace( ' hover2', '' );
	            }
	        }
      	}
      	else if ( 'j3bg' == rows[i].className.substr(0,4)) {
	        // ... to highlight the row on mouseover ...
	        if ( navigator.appName == 'Microsoft Internet Explorer' ) {
	            // but only for IE, other browsers are handled by :hover in css
	            rows[i].onmouseover = function() {
	                this.className += ' hover3';
	            }
	            rows[i].onmouseout = function() {
	                this.className = this.className.replace( ' hover3', '' );
	            }
	        }
      	}
    }
}
