
function set_cookie(name,value,expires,path,domain,secure) {
   var today=new Date();
   today.setTime(today.getTime());

if (expires) {
  expires = expires;
}

var expires_date = new Date( today.getTime() + (expires));

document.cookie = name + "=" +escape( value ) +
( ( expires ) ? ";expires=" + expires_date.toGMTString() : "" ) +
( ( path ) ? ";path=" + path : "" ) +
( ( domain ) ? ";domain=" + domain : "" ) +
( ( secure ) ? ";secure" : "" );
 
} 

 function zobr(co){
	document.getElementById(co).style.display = "block";
	}
	
	function hide(co){
	document.getElementById(co).style.display = "none";
	}

function zobraz(co){
	stav = document.getElementById(co).style.display;
	proved = document.getElementById(co).style.display = (stav=="none") ? "block" : "none";
	}

function zpracuj_filtr_fast(kamzpatky, stav){
				set_cookie('flt_znak23', '', -3600, '/', '', '');  
				set_cookie('flt_znak23', stav, 8000*1000*60*60*24, '/', '', '');
				
				window.location.replace(kamzpatky); 
}

function zpracuj_filtr_fast2(kamzpatky, stav){
				set_cookie('flt_znk98', '', -3600, '/', '', '');  
				set_cookie('flt_znk98', stav, 8000*1000*60*60*24, '/', '', '');
				
				window.location.replace(kamzpatky); 
}
 function zpracuj_filtr_kurzy(kamzpatky){
				stav = document.getElementById('selznak').value;
				set_cookie('flt_znk98', '', -3600, '/', '', '');  
				set_cookie('flt_znk98', stav, 8000*1000*60*60*24, '/', '', '');
				
				window.location.replace(kamzpatky); 
}
 
	
	
function zpracuj_filtr(kamzpatky){
				stav = document.getElementById('selznak').value;
				set_cookie('flt_znak23', '', -3600, '/', '', '');  
				set_cookie('flt_znak23', stav, 8000*1000*60*60*24, '/', '', '');
				
				window.location.replace(kamzpatky); 
}

function jdi(kam){
window.location.replace(kam); 
}



function zobr_prechod(numa, speed){
 var i;
var y;
 stav = document.getElementById(numa).style.display;

 
 for (i=0;i<11;i++){
	if(stav == "none"){
	setTimeout('setUpOpacity('+i+', '+numa+')', speed*i); 
 	}else{
	setTimeout('setDownOpacity('+i+', '+numa+')', speed*i); 
	}
 }
 
 return false;
}


function zobr_prechod_up(numa, speed){
 var i;
var y;
 stav = document.getElementById(numa).style.display;
 if(stav!='block'){
 for (i=0;i<11;i++){
	setTimeout('setUpOpacity('+i+', '+numa+')', speed*i); 
 }
 }
 return false;
}

function zobr_prechod_down(numa, speed){
 var i;
var y;
 stav = document.getElementById(numa).style.display;
 if(stav!='none'){
 for (i=0;i<11;i++){
	setTimeout('setDownOpacity('+i+', '+numa+')', speed*i); 
 }
 }
 return false;
}


function setUpOpacity(value, numa)
{
	 if(value==1) numa.style.display = "block";	 
	 numa.style.opacity = value/10;
	 numa.style.filter = 'alpha(opacity=' + (value*10) + ')';
}

function setDownOpacity(valueb, numa)
{	
	 
	 numa.style.opacity = 1 - (valueb/10);
	 numa.style.filter = 'alpha(opacity=' + (100 - valueb*10) + ')';
	  if(valueb==10) numa.style.display = "none";	
}

 
