// zdroj: http://www.chose.cz/weblog/1091719620-efektivni-rollover-hover-na-radku-tabulky.html
	var hover_color = null;
	function highlight_row(obj,w){
		if (hover_color == null) hover_color = getStyle('hover', "backgroundColor");
		var tds = obj.getElementsByTagName('td');
		for(i=0;i < tds.length;i++) {
			if (w == 1) {
				tds[i].style.backgroundColor = hover_color;
			} else tds[i].style.backgroundColor = "";
		}
	}
	
	// zjistime hodnotu z CSS, pouze pro IE!
	function getStyle(el, style) {
		el = document.getElementById(el);
		var value = el.style[style];
		if(!value) value = el.currentStyle[style];
		return value;
	}
	
	// inicializacni fce
	function hover_init() {
		if (document.all && document.getElementById && !window.opera) {
			
			// ZDE JE POTREBA DAT ID tabulky nebo upravit podle vlastnich potreb :)
			if (table = document.getElementById('portaltable')){ // Pridal jsem podminku - vytvoreni promenne table ted podminuje provadeni dalsiho kodu, protoze kdyz tuto funkco volame onload a na strance neni zadna tabulka s id portaltable, dalsi kod generoval chybu. RadoN
				// nahodime na vsechny radky fci highlight_row
				trs = table.getElementsByTagName('tr');
				for(var i = 0; i < trs.length; i++){
					trs[i].onmouseover = function(){ highlight_row(this,1); }
					trs[i].onmouseout = function(){ highlight_row(this,0); }
				}
			}
		}
	}
	
// inicializacni funkce. Neni nutne zavesit na onload, lze treba na konci tabulky zavolat fci init();
hover_init();