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

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

//označí všechny tabulky - vstup název class tabulky
function stripeAllTables(styl) {
	var t = document.getElementsByTagName('TABLE');
	for (var i=0; i<t.length; i++) 
		{
		if (t[i].className==styl)
			stripeTable(t[i]);
		}
	}


//zobrazí/skryje virtuální prohlídu
//vstup: 0/1 - skryt, zobrazt
function showVirtual(stav)
	{
	if (document.getElementById('virtualni-prohlidka'))
		{
	//	alert(stav);
		if (stav==1)
			document.getElementById('virtualni-prohlidka').style.display = "block";
		else
			document.getElementById('virtualni-prohlidka').style.display = "none";
		}
	}

