function czytaj_ciacho()
{
  	var textCookie = document.cookie; 
 	var poczatek = textCookie.indexOf("okiem_ramka=") + 12;
	var lan = location.href;
	var pocz = lan.indexOf("okiem.pl/")+9;
	var kon = lan.lastIndexOf("/");
	var ile = lan.substring(pocz, kon);
	var co = "bla";

	 
switch(ile) 
{
case "bog": case "ciekawostki": case "cnota": case "czytelnia": case "harcerstwo": case "honor": case "leksykon": case "leks": case "php2": case "linki": case "nauka": case "ojczyzna": case "polemika": co="../";
break;
case "bog/sekty": case "php2/sondy": case "bog/swieci": case "bog/istnienie": case "ciekawostki/ciekawe": case "ciekawostki/cytaty": case "cnota/rock": case "cnota/sex": case "cnota/sluzba_zyciu": case "czytelnia/rozw": case "harcerstwo/wezly": co="../../";
break;
default: co="";
}
 
 if (document.cookie.length<2)
   {
   var adres2 = co + "spis_leksykon_a.htm"
   return adres2;
   }
 else
   {
	var adresik = co+textCookie.substring(poczatek, textCookie.length);
	return adresik;

   }
 }
