function FlipImage(obraz,novy)
{
   document.images[obraz].src=novy;
}

function Menu(jazyk,stranka,a,b)
{
  if (jazyk==1)
   {
	 with (document)
	   {

		writeln("<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 HEIGHT=100% WIDTH=1010>");
		writeln("<TR valign=top>");
		writeln("<TD class=levo>");
		writeln("<A HREF='index.html'><IMG SRC='images/atelier2002.jpg' BORDER=0 style='margin-top: 67px; margin-right: 0px; margin-left: 36px; margin-bottom: 39px;' WIDTH=223 HEIGHT=57></A><BR>");


		if (a==1) writeln("<IMG SRC='images/atelierhi.gif' BORDER=0 NAME='m01' style='margin-bottom: 30px; margin-right: 0px;'><BR>")
			else writeln("<A HREF='index.html' onMouseOver=FlipImage('m01','images/atelierhi.gif'); onMouseOut=FlipImage('m01','images/atelier.gif');><IMG SRC='images/atelier.gif' BORDER=0 NAME='m01' style='margin-bottom: 30px; margin-right: 0px;'></A><BR>");

		writeln("<!A HREF='index.html' onMouseOver=FlipImage('m02','images/p0hi.gif'); onMouseOut=FlipImage('m02','images/p0.gif');><IMG SRC='images/p0.gif' BORDER=0 NAME='m02' style='margin-bottom: 4px;'></A><BR>");

		if (a==5) writeln("<A HREF='skolstvi.html'><IMG SRC='images/p1hi.gif' BORDER=0 NAME='m03' style='margin-bottom: 4px;'></A><BR>")
			else writeln("<A HREF='skolstvi.html' onMouseOver=FlipImage('m03','images/p1hi.gif'); onMouseOut=FlipImage('m03','images/p1.gif');><IMG SRC='images/p1.gif' BORDER=0 NAME='m03' style='margin-bottom: 4px;'></A><BR>");
		if (a==6) writeln("<A HREF='zdravotnictvi.html'><IMG SRC='images/p2hi.gif' BORDER=0 NAME='m04' style='margin-bottom: 4px;'></A><BR>")
			else writeln("<A HREF='zdravotnictvi.html' onMouseOver=FlipImage('m04','images/p2hi.gif'); onMouseOut=FlipImage('m04','images/p2.gif');><IMG SRC='images/p2.gif' BORDER=0 NAME='m04' style='margin-bottom: 4px;'></A><BR>");
		if (a==7) writeln("<A HREF='obcanska.html');><IMG SRC='images/p3hi.gif' BORDER=0 NAME='m05' style='margin-bottom: 4px;'></A><BR>")
			else writeln("<A HREF='obcanska.html' onMouseOver=FlipImage('m05','images/p3hi.gif'); onMouseOut=FlipImage('m05','images/p3.gif');><IMG SRC='images/p3.gif' BORDER=0 NAME='m05' style='margin-bottom: 4px;'></A><BR>");
		if (a==8) writeln("<A HREF='obytne.html'><IMG SRC='images/p4hi.gif' BORDER=0 NAME='m06' style='margin-bottom: 4px;'></A><BR>")
			else writeln("<A HREF='obytne.html' onMouseOver=FlipImage('m06','images/p4hi.gif'); onMouseOut=FlipImage('m06','images/p4.gif');><IMG SRC='images/p4.gif' BORDER=0 NAME='m06' style='margin-bottom: 4px;'></A><BR>");
		if (a==9) writeln("<A HREF='prumysl.html'><IMG SRC='images/p5hi.gif' BORDER=0 NAME='m07' style='margin-bottom: 4px;'></A><BR>")
			else writeln("<A HREF='prumysl.html' onMouseOver=FlipImage('m07','images/p5hi.gif'); onMouseOut=FlipImage('m07','images/p5.gif');><IMG SRC='images/p5.gif' BORDER=0 NAME='m07' style='margin-bottom: 4px;'></A><BR>");
		if (a==10) writeln("<A HREF='interier.html'><IMG SRC='images/p6hi.gif' BORDER=0 NAME='m08' style='margin-bottom: 30px;'></A><BR>")
			else writeln("<A HREF='interier.html' onMouseOver=FlipImage('m08','images/p6hi.gif'); onMouseOut=FlipImage('m08','images/p6.gif');><IMG SRC='images/p6.gif' BORDER=0 NAME='m08' style='margin-bottom: 30px;'></A><BR>");

		if (a==2) writeln("<IMG SRC='images/publikacehi.gif' BORDER=0 NAME='m09' style='margin-bottom: 4px;'><BR>")
			else writeln("<A HREF='publikace.html' onMouseOver=FlipImage('m09','images/publikacehi.gif'); onMouseOut=FlipImage('m09','images/publikace.gif');><IMG SRC='images/publikace.gif' BORDER=0 NAME='m09' style='margin-bottom: 4px;'></A><BR>");
		if (a==3) writeln("<IMG SRC='images/kontakthi.gif' BORDER=0 NAME='m10' style='margin-bottom: 3px;'><BR>")
			else writeln("<A HREF='kontakt.html' onMouseOver=FlipImage('m10','images/kontakthi.gif'); onMouseOut=FlipImage('m10','images/kontakt.gif');><IMG SRC='images/kontakt.gif' BORDER=0 NAME='m10' style='margin-bottom: 3px;'></A><BR>");

		writeln("</TD>");
		writeln("<TD width=90% class=pravo>");


		writeln("");


	   }
	}
   else
   {

	  if (jazyk==2)
	   {
		 with (document)
		   {

			writeln("<CENTER>");

		   }
		}
	   else
	   {
		 with (document)
		   {
			writeln("");


		   }
	   }


   }
}

function Refer(stavba,text,oddil)
{
	 with (document)
	   {
		writeln("<TD WIDTH=33% style='padding-bottom: 25px; padding-right: 25px;'>");
		writeln("<A HREF='"+stavba+".html' class=seznam>");
		writeln("<IMG SRC='"+oddil+"/"+stavba+".jpg' BORDER=0 style='margin-bottom: 7px;' WIDTH=205 HEIGHT=154><BR>");
		writeln(text);
		writeln("</A>");
		writeln("</TD>");

	   }
}

function Okno(zdroj,sirka,vyska)
{
 with (navigator)
   {
	nazev=appName;
   }
 stredx=screen.width/2-sirka/2;
 stredy=screen.height/2-vyska/2-5;
 parametry="width="+sirka+",height="+vyska+",left="+stredx+",top="+stredy+",menubar=no,directories=no,toolbar=no,location=no,status=no,scrollbars=no,resizable=no";
 obr=window.open("","okno",parametry);
 obr.window.close();
 obr=window.open("","okno",parametry);
  with (obr)
   {
   window.focus();
   document.writeln("<HTML>\n<HEAD>\n<TITLE>atelier 2002</TITLE>");
   document.writeln("</HEAD>\n<BODY bgcolor=#DEDEDE MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 LEFTMARGIN=0>");
   document.writeln("<A HREF='javascript:window.close()'><IMG SRC="+zdroj+" BORDER=0></A>");
   document.writeln("</BODY>\n</HTML>");
   window.focus();
   }

}

