function go_home(value) { go_url(value,"index.html");}

function go_url(val1, odk) { 
if (val1==null||val1==1) { window.location.href="../"+odk; }
if (val1==2) { window.location.href="../../"+odk; }
if (val1==0) { window.location.href=odk; } }

function s_biozah(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_biozahrada("+value+");\">/Biozahrada/</A></span>"); }
function s_ekoves_cr(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_ekoves_cr("+value+");\">/Ekovesničky v ČR/</A></span>"); }
function s_porody(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_porody("+value+");\">/Přirozené porody/</A></span>"); }
function s_hudba(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_hudba("+value+");\">/Etnická hudba/</A></span>"); }
function s_remesla(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_remesla("+value+");\">/Stará řemesla/</A></span>"); }
function s_ekozem(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_ekozem("+value+");\">/Biozemědělství/</A></span>"); }
function s_alterekonom(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_ekonom("+value+");\">/Alternativní ekonomika/</A></span>"); }
function s_pribehy(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_pribehy("+value+");\">/Střípky a příběhy/</A></span>"); }
function s_strava(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_strava("+value+");\">/Přirozená strava/</A></span>"); }
function s_vyuka(value) { if (value==null) { value=0; } document.write("<span class=\"novinky-pol-sekce\"><A HREF=\"javascript:go_vyuka("+value+");\">/Alternativní školství/</A></span>"); }

function go_hudba(value) { go_url(value,"clanek.php?sekce=HUDBA&id=index_hudba"); }
function go_strava(value) { go_url(value,"strava/prirozena_strava.html"); }
function go_remesla(value) { go_url(value,"clanek.php?sekce=REMESLA&id=index_remesla"); }
function go_beztv(value) { go_url(value,"televize/bez_televize_hl_strana.html"); }
function go_ekoves(value) { go_url(value,"clanky/cteni_o_ekovesnickach.html"); }
function go_ekozem(value) { go_url(value,"biozemedelstvi/ekozemedelstvi_hl_strana.html"); }
function go_ekodum(value) { go_url(value,"ekodomy/ekologicke_bydleni.html"); }
function go_vyuka(value) { go_url(value,"vychova/alternativni_vyuka_deti.html"); }
function go_ekonom(value) { go_url(value,"clanek.php?sekce=ALTEREKONOM&id=index_alterekonom"); }
function go_galerie(value) { go_url(value,"clanek.php?sekce=CLANKY-RUZNE&id=info_k_obrazkum"); }
function go_forum(value) { go_url(value,"nuke/modules.php?name=Forums"); }
function go_alterziv(value) { go_url(value,"clanky/alternativni_zivotni_styl.html"); }
function go_porody(value) { go_url(value,"clanek.php?sekce=PORODY&id=index_porody"); }

function go_ekoves_cr(value) { go_url(value,"clanek.php?sekce=CESKO&id=index_ekoves_cesko"); }
function go_camphill(value) { go_url(value,"cesko/camphill_hl_strana.html"); }
function go_renata(value) { go_url(value,"cesko/centrum_renata_hl_strana.html"); }
function go_lunaria(value) { go_url(value,"cesko/lunaria_hl_strana.html"); }

function go_ekoves_sr(value) { go_url(value,"slovensko/ekovesnicky_v_sr.html"); }
function go_zajezka(value) { go_url(value,"slovensko/zajezova_hl_strana.html"); }

function go_ekoves_svet(value) { go_url(value,"svet/ekovesnicky_ve_svete.html"); }
function go_findhorn(value) { go_url(value,"svet/findhorn_hl_strana.html"); }
function go_economads(value) { go_url(value,"svet/erika_ofek_hl_strana.html"); }
function go_kibuc(value) { go_url(value,"svet/kibucy_hl_strana.html"); }
function go_polsko(value) { go_url(value,"svet/polsko_hl_strana.html"); }
function go_rusko(value) { go_url(value,"svet/ruske_ekovesnicky.html"); }

function go_hist_crsr(value) { go_url(value,"cesko/historie_v_cr_a_sr.html"); }
function go_eubio_cr(value) { go_url(value,"cesko/eubiotika_hl_strana.html"); }

function go_akce(value) { go_url(value,"clanky/ekovesnickove_akce.html"); }
function go_inzerce(value) { go_url(value,"inzerce/inzerce.html"); }
function go_rejstrik(value) { go_url(value,"clanky/rejstrik.html"); }
function go_typy_rady(value) { go_url(value,"clanky/typy_rady.html"); }
function go_about(value) { go_url(value,"clanky/o_strankach.html"); }
function go_fotogalerie(value) { go_url(value,"priroda/fotogalerie.html"); }
function go_pribehy(value) { go_url(value,"pribehy/pribehy_hl_strana.html"); }
function go_kontakty(value) { go_url(value,"clanky/kontakty.html"); }

function go_zachrana_lesa(value) { go_url(value,"klima/zachrana_lesa.html"); }
function go_bionoviny(value) { go_url(value,"biozemedelstvi/bio_noviny_hl_strana.html"); }

function go_bavlna(value) { go_url(value,"remesla/bavlna_index.html"); }
function go_kalendar(value) { go_url(value,"clanky/prirodni_kalendar.html"); }
function go_len(value) { go_url(value,"remesla/len_index.html"); }
function go_biozahrada(value) { go_url(value,"clanek.php?sekce=BIOZAHRADA&id=index_biozahrada"); }

function but_home(value) {
vnor="";
if (value==null) { vnor="../"; }
if (value==2) { vnor="../../"; }
window.document.write("&nbsp;<IMG SRC=\""+vnor+"images/ico_home.jpg\" class=\"nav-lista\" title=\"Zpět na hlavní stranu\" onClick=\"go_home("+value+");\">"); }

function but_hudba()
{ window.document.write("&nbsp;<IMG SRC=\"../images/ico_hudba.jpg\" class=\"nav-lista\" title=\"Etnická (lidová) hudba\" onClick=\"go_hudba();\">"); }

function but_strava()
{ window.document.write("&nbsp;<IMG SRC=\"../images/ico_strava.jpg\" class=\"nav-lista\" title=\"Přirozená strava\" onClick=\"go_strava();\">"); }

function but_remesla()
{ window.document.write("&nbsp;<IMG SRC=\"../images/ico_remesla.jpg\" class=\"nav-lista\" title=\"Stará řemesla\" onClick=\"go_remesla();\">"); }

function but_bavlna()
{ window.document.write("&nbsp;<IMG SRC=\"../images/ico_bavlna.jpg\" class=\"nav-lista\" title=\"Bavlna\" onClick=\"go_bavlna();\">"); }

function but_len()
{ window.document.write("&nbsp;<IMG SRC=\"../images/ico_len.jpg\" class=\"nav-lista\" title=\"Len\" onClick=\"go_len();\">"); }

function zacni() { window.document.write("<span class=\"vpravo\">"); }

function skonci() {document.write("</span>");}

function OpenBigPict(ObrUrl,ObrWidth,ObrHeight,ObrTitle,DirVnor) {
   var ProcZmensWidth = 1;
   var ProcZmensHeight = 1;
   var ProcZmenseni = 1;
 
   MaxHeight = screen.height - 70;
   if (ObrHeight>MaxHeight) { 
	 ProcZmensHeight=MaxHeight/ObrHeight; }

   MaxWidth = screen.width - 30;
   if (ObrWidth>MaxWidth) { 
	 ProcZmensWidth=MaxWidth/ObrWidth; }

   if (ProcZmensWidth<1||ProcZmensHeight<1) { 	 
	   if (ProcZmensWidth<=ProcZmensHeight) { ProcZmenseni = ProcZmensWidth }
	   else { ProcZmenseni = ProcZmensHeight }
	 }

   ObrWidth = Math.floor(ObrWidth*ProcZmenseni);
   ObrHeight = Math.floor(ObrHeight*ProcZmenseni);

   if (ObrTitle==null) { ObrTitle="Detail obrázku"; }
   vnor="../";
   if (DirVnor==2) { vnor="../../"; }
   if (DirVnor==0) { vnor=""; }
   navVerse=navigator.appVersion;
   if (navigator.appName=="Microsoft Internet Explorer"||navigator.appName=="Konqueror") {
   msg=open("","DisplayWindow","toolbar=no,scrollbars=no,directories=no,top=0,menubar=no,width=50,height=50");
   msg.close();
   }   
   msg=open("","DisplayWindow","toolbar=no,scrollbars=no,directories=no,top=0,menubar=no,width="+ObrWidth+",height="+ObrHeight);
   msg.document.write("<html><HEAD><TITLE>"+ObrTitle+"</TITLE><link rel=\"stylesheet\" type=\"text/css\" href=\""+vnor+"styly.css\"></HEAD><body class=\"body-big-pict\" onblur=\"window.close();\">");
   msg.document.write("<CENTER><IMG SRC=\""+ObrUrl+"\" WIDTH=\""+ObrWidth+"\" height="+ObrHeight+" align=center class=\"img-big-pict\" onClick=\"window.close();\" title=\"Kliknutím zavřete okno\"></CENTER>");
   msg.document.write("</body></html>");
}

function Picture2_show_big () {
OpenBigPict(this.bigurl, this.width, this.hight, this.title, this.dirvnor);
}

function Picture_show () {
OpenBigPict(this.url, this.width, this.hight, this.title, this.dirvnor);
}

function Picture2_show_small () {
document.write ("<img src=\"" + this.smallurl + "\" class=\"foto-anchor\" onclick=\"OpenBigPict( '" + this.bigurl + "', " + this.width + ", " + this.hight +", '" + this.title + "', " + this.dirvnor + ")\">");
}

function Picture(u,w,h,t,v) {
   this.url = u;
   this.width = w;
   this.hight = h;
   this.title = t;
   this.dirvnor = v;
   this.show = Picture_show;
}

function Picture2(ub,us,wb,hb,tb,v) {
   this.bigurl = ub;
   this.smallurl = us;
   this.width = wb;
   this.hight = hb;
   this.title = tb;
   this.dirvnor = v;
   this.show_big = Picture2_show_big;
   this.show_small = Picture2_show_small;
}

function ekoves_hl_menu (vnor) {

document.writeln("         <div class=\"box-pagesmenu\" align=\"left\">");
document.writeln("		    <div class=\"box-pagesmenu-title\">Co najdete na ekovesnicky.org:</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
if (vnor>0) {
document.writeln("			  <LI><a href=\"javascript:go_home("+vnor+");\" >Hlavní strana</a></LI>");
document.writeln("			  <div><BR></div>");
}
document.writeln("			  <LI><a href=\"javascript:go_forum("+vnor+");\" >Diskusní fórum</a></LI>");
document.writeln("			  <div><BR></div>");
document.writeln("			  <LI><a href=\"javascript:go_alterziv("+vnor+");\" >Alternativní životní styl</a></LI>");
document.writeln("                  <UL class=\"menu-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_ekonom("+vnor+");\" >Alternativní ekonomika</a></LI>");
document.writeln("                  <LI><a href=\"javascript:go_vyuka("+vnor+");\" >Alternativní výuka dětí</a></LI>");
document.writeln("                  <LI><a href=\"javascript:go_biozahrada("+vnor+");\" >Biozahrada</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_ekodum("+vnor+");\" >Ekologické bydlení</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_ekozem("+vnor+");\" >Ekologické zemědělství</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_ekoves("+vnor+");\" >Ekovesničky a komunity</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_hudba("+vnor+");\">Etnická (lidová) hudba</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_porody("+vnor+");\" >Přirozené porody, mateřství</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_strava("+vnor+");\" >Přirozená strava</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_remesla("+vnor+");\" >Stará řemesla</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_beztv("+vnor+");\" >Život bez televize</a></LI>");
document.writeln("				  </UL>");
document.writeln("				  </ul>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Ekovesničky a komunity v současnosti:</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_ekoves_cr("+vnor+");\" >V České republice</a></LI>");
document.writeln("                  <UL class=\"menu-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_camphill("+vnor+");\" >Camphill České Kopisty</a></LI>");
document.writeln("				  <LI><a href=\"http://www.permalot.org\" TARGET=\"_blank\">PermaLot</a></LI>");
document.writeln("				  <LI><a href=\"http://www.volny.cz/padmafarma/\" TARGET=\"_blank\">PadmaFarma</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_lunaria("+vnor+");\" >Lunaria</a></LI>");
document.writeln("				  <LI><A HREF=\"http://www.anastasia.cz\" TARGET=\"_blank\">Anastasia</A></LI>");
document.writeln("				  <LI><A HREF=\"http://www.sdruzenizeme.cz\" TARGET=\"_blank\">Sdružení Země</A></LI>");
document.writeln("				  </UL>");
document.writeln("			  <BR>");
document.writeln("			  <LI><a href=\"javascript:go_ekoves_sr("+vnor+");\" >Na Slovensku</a></LI>");
document.writeln("                  <UL class=\"menu-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_zajezka("+vnor+");\" >Zaježová</a></LI>");
document.writeln("				  <LI><a href=\"http://www.anastasia.sk/\" target=\"_blank\">Anastasia.sk</a></LI>");
document.writeln("				  <LI><a href=\"http://www.alter-nativa.sk/\" target=\"_blank\">Alter Nativa, Brdárka</a></LI>");
document.writeln("				  <LI><a href=\"http://komunity.vsieti.sk/\" target=\"_blank\">komunity.vsieti.sk</a></LI>");
document.writeln("				  </UL>");
document.writeln("			  <BR>");
document.writeln("			  <LI><a href=\"javascript:go_ekoves_svet("+vnor+");\" >Ve světě</a></LI>");
document.writeln("                  <UL class=\"menu-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_economads("+vnor+");\" >Economads</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_findhorn("+vnor+");\" >Findhorn</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_kibuc("+vnor+");\" >Kibucy a mošavy</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_polsko("+vnor+");\" >Polsko</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_rusko("+vnor+");\" >Rusko</a></LI>");
document.writeln("				  </UL>");
document.writeln("				  </ul>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Historie ekovesniček a komunit:</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_hist_crsr("+vnor+");\" >V ČR a na Slovensku</a></LI>");
document.writeln("                  <UL class=\"menu-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_eubio_cr("+vnor+");\" >Eubiotika</a></LI>");
document.writeln("				  </UL>");
document.writeln("				  </ul>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Ostatní sekce:</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_akce("+vnor+");\">Programy, akce</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_inzerce("+vnor+");\">Inzerce</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_rejstrik("+vnor+");\">Rejstřík a minilexikon</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_typy_rady("+vnor+");\">Typy, rady, recepty</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_about("+vnor+");\">O těchto stránkách</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_fotogalerie("+vnor+");\">Fotogalerie přírody</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_pribehy("+vnor+");\">Střípky a příběhy</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_kontakty("+vnor+");\">Napište mi...</a></LI>");
document.writeln("			  </UL>");
document.writeln("			</div></div>");

}


function biozah_hl_menu (vnor) {

document.writeln("         <div class=\"box-pagesmenu\" align=\"left\">");
document.writeln("		    <div class=\"box-pagesmenu-title\">Biozahrada:</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_biozahrada("+vnor+");\" >Hlavní strana</a></LI>");
document.writeln("			  <div><BR></div>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Půda, hnojení:</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("                  <UL class=\"menu-hl-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_ekonom("+vnor+");\" >Druhy půd</a></LI>");
document.writeln("                  <LI><a href=\"javascript:go_vyuka("+vnor+");\" >Hnůj</a></LI>");
document.writeln("                  <LI><a href=\"javascript:go_biozahrada("+vnor+");\" >Hnůj záchodový</a></LI>");
document.writeln("				  <LI><a href=\"javascript:go_ekodum("+vnor+");\" >Zavlažování nádobami</a></LI>");
document.writeln("				  </UL>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Nářadí, nástroje</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("				  <LI><a href=\"javascript:go_camphill("+vnor+");\" >Naklepávání srpu</a></LI>");
document.writeln("				  </UL>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Semenaření</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_ekoves_sr("+vnor+");\" >Sbírání a uchování semen</a></LI>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Odrůdy, pěstování</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_hist_crsr("+vnor+");\" >V ČR a na Slovensku</a></LI>");
document.writeln("				  </ul>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Ovocnářství</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_hist_crsr("+vnor+");\" >Prořezávání stromů</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_hist_crsr("+vnor+");\" >Očišťování stromků</a></LI>");
document.writeln("				  </ul>");
document.writeln("				  </div> <!-- inside -->");
document.writeln("		    <div class=\"box-pagesmenu-subtitle\">Kalendář prací</div>");
document.writeln("             <div class=\"box-pagesmenu-inside\">");
document.writeln("			  <UL class=\"menu-hl-pol\">");
document.writeln("			  <LI><a href=\"javascript:go_akce("+vnor+");\">Leden</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_inzerce("+vnor+");\">Únor</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_rejstrik("+vnor+");\">Březen</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_typy_rady("+vnor+");\">Duben</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_about("+vnor+");\">Květen</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_fotogalerie("+vnor+");\">Červen</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_pribehy("+vnor+");\">Červenec</a></LI>");
document.writeln("			  <LI><a href=\"javascript:go_kontakty("+vnor+");\">Srpen</a></LI>");
document.writeln("			  </UL>");
document.writeln("			</div></div>");

}			


function tab_width(value) { 
TabSirka=780;
TabProc=0.9;
Sect1ColWidth=200;
Sect1Proc=0.21;
Sect2ColWidth=400;
Sect2Proc=0.50;
Sect3ColWidth=180;
Sect3Proc=0.19;
Sect2RullWidth=380;
Sect2RullProc=0.4;
MaxSirka=screen.width;
if (value==0) { sirka=TabSirka} 
if (value==1) { sirka=Sect1ColWidth} 
if (value==2) { sirka=Sect2ColWidth} 
if (value==3) { sirka=Sect3ColWidth }
if (value==4) { sirka=Sect2RullWidth }
if (MaxSirka>800) { 
if (value==0) { sirka =Math.floor((MaxSirka*TabProc))} 
if (value==1) { sirka =Math.floor((MaxSirka*Sect1Proc))}
if (value==2) { sirka=Math.floor((MaxSirka*Sect2Proc))}
if (value==3) { sirka=Math.floor((MaxSirka*Sect3Proc))}
if (value==4) { sirka=Math.floor((MaxSirka*Sect2RullProc))}
     }
return sirka
} 

