	function DetailWindow(theURL,winName,features) {
	//----------------------------------------------
  	newWindow =window.open(theURL,winName,features);    
  	newWindow.focus(); } 

	
	function SearchRedirect(){ 
    //-------------------------
	
	
	if (document.getElementById('search').value ==''){
  		alert('zadej text');
    } else {
	  document.getElementById('hd_SearchText').value=document.getElementById('search').value;   
    document.getElementById('form1').submit();	
    }
    }
	
	
	function CrLf() {
//--------------------------

  if (event.keyCode == 13) {
  SearchRedirect();
  }
}
	

  function CtiCookie (Name) {
//---------------------------

  var Cookies = document.cookie;
  if (Cookies == "") return ("");
  var Start = Cookies.indexOf (Name+'=');
  if (Start == -1) return ("");
  Start += Name.length + 1;
  var End = Cookies.indexOf(';', Start);
  if (End == -1) End = Cookies.length;

  return (unescape (Cookies.substring(Start, End)));
}

 
  function ZapisCookie (Name, Value) {
//------------------------------------
 document.cookie = Name + '=' + escape (Value);
}
	

function VymazCookies() {
//--------------------------------------
   ZapisCookie("corhb_MainKategorie","");
   ZapisCookie("corhb_IDKategorie","");
   ZapisCookie("corhb_ID_Kategorie1","");
   ZapisCookie("corhb_ID_Kategorie2","");
}
	


  function ZapisIDsKategorieDoCookies(MainKategorie,IDKategorie,ID_Kategorie1,ID_Kategorie2) {
//--------------------------------------------------------------------------------------------
  
  ZapisCookie("corhb_MainKategorie",MainKategorie);
  ZapisCookie("corhb_IDKategorie",IDKategorie);
  ZapisCookie("corhb_ID_Kategorie1",ID_Kategorie1);
  ZapisCookie("corhb_ID_Kategorie2",ID_Kategorie2);
}

	
 function TestPrihlaseni() {
//---------------------------

  if (CtiCookie("corhb_IDZakaznik") == "") {
     alert("Musíte se přihlásit !");
     window.location="loginzakaznik.aspx";
  }  else {
    window.location="ucet.aspx";
  } 
}
	
	SLIDES = new slideshow("SLIDES");

	// Create some slides and add custom filters for Microsoft IE
	SLIDES.add_slide(s = new slide('images/ill_rotace1.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	
	SLIDES.add_slide(s = new slide('images/ill_rotace7.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	
	
	SLIDES.add_slide(s = new slide('images/ill_rotace2.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	
	SLIDES.add_slide(s = new slide('images/ill_rotace3.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	
	SLIDES.add_slide(s = new slide('images/ill_rotace4.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	
	SLIDES.add_slide(s = new slide('images/ill_rotace5.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	
	SLIDES.add_slide(s = new slide('images/ill_rotace6.jpg'));
	s.filter = 'progid:DXImageTransform.Microsoft.Fade()';
	

