plus=new Image(); 	plus.src="images/plus.gif";	
minus=new Image(); 	minus.src="images/minus.gif";

function strom(thiss,idd) {
	if (thiss.src.indexOf('minus')==-1) {
		document.getElementById('r'+idd).style.display="block";
		thiss.src=minus.src;
	}else{
		document.getElementById('r'+idd).style.display='none';
		thiss.src=plus.src;
	}
}

function ovr(thiss,typ,aktivni) {
//	if (typ=="o") thiss.style.backgroundColor="#7DB1D6";
	if (typ=="o") thiss.style.backgroundColor="#E7D2E3";
	if (aktivni=="a") thiss.style.backgroundColor="#E7D2E3";
	if (typ=="u") thiss.style.backgroundColor="";
}

function nove_okno(strana,w,h) {//otvira nove okno IE
   winStats='toolbar=no,location=no,directories=no,menubar=yes,resizable=yes,';
   winStats+='scrollbars=yes,width='+w+',height='+h;
   if (navigator.appName.indexOf("Microsoft")>=0) {
      winStats+=',left=100,top=60';
    }else{
      winStats+=',screenX=100,screenY=60';
    }
   floater=window.open(strana,"",winStats);
}
function moveto(url,ev){
	 	document.location=url;
}
function tlch(thiss, akce){ // zmena pozadi u tlacitka
if (akce==0) cesta = "t_2.gif"
if (akce==1) cesta = "t_4.gif"
thiss.style.backgroundImage = 'url(images/'+cesta+')';
}

function ank(thiss,i,akce){
	
	if (akce==1) {document.getElementById('ank_'+i).src='images/a_'+i+'_ov.gif';}
	if (akce==0) {document.getElementById('ank_'+i).src='images/a_'+i+'.gif';}
}

function hlasuj(id,ln,sess){
window.location='akce/a_hlasuj.php?ank='+id+'&ln='+ln+'&PHPSID='+sess;
};


function show(tagid) {

	for (i=1;i<99;i++){	tmp='od'+i;
		if (document.getElementById(tmp)) document.getElementById(tmp).style.display="none"; else continue;
	}
	document.getElementById(tagid).style.display="block";
}