function bar(url){
    wasOpen  = false;
    win = window.open(url);    
    return (typeof(win)=='object')?true:false;
  }
  
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 :)
			table = document.getElementById('htabulka');
			
			// 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();
	window.onload = hover_init;







window.onload = init;

function init() {
//	stripeAllTables();
	stripeTableById('table1');
	}

function stripeTable(t) {
	var i, odd = true;
	for (i=0; i<t.rows.length; i++) {
		t.rows[i].className += odd ? ' odd' : ' even';
		odd = !odd;
		}
	}
function stripeTableById(id) {
	var t = document.getElementById(id);
	if (t) stripeTable(t);
	}

function stripeAllTables() {
	var t = document.getElementsByTagName('TABLE');
	for (var i=0; i<t.length; i++) stripeTable(t[i])
	}
	
	
	
	
 






 
