function ShowMenu(language, path,linkpath, selectedmenu)
{
 document.write("<TABLE width='100%' border='0' cellpadding='0' cellspacing='0'>");
 document.write("<TR>");
 document.write("<TD>");  
 if(language=="EN")
 {
  document.write("<a href='"+linkpath+"index_en.html'><IMG src='"+path+"graphics/header/logo_en.jpg' border='0' align='center'/></a></TD>");
  if(selectedmenu=="onas")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/o_nas_2_en.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index_en.html' onmouseover=ShowImage('" + "onas" + "','" + path+"graphics/header/o_nas_2_en.jpg" + "') onmouseout=ShowImage('" + "onas" + "','" + path+"graphics/header/o_nas_1_en.jpg" + "')><IMG id='onas' src='"+path+"graphics/header/o_nas_1_en.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="sluzby")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/sluzby_2_en.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index_en.html' onmouseover=ShowImage('" + "sluzby" + "','" + path+"graphics/header/sluzby_2_en.jpg" + "') onmouseout=ShowImage('" + "sluzby" + "','" + path+"graphics/header/sluzby_1_en.jpg" + "')><IMG id='sluzby' src='"+path+"graphics/header/sluzby_1_en.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="produkty")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/produkty_2_en.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index_en.html' onmouseover=ShowImage('" + "produkty" + "','" + path+"graphics/header/produkty_2_en.jpg" + "') onmouseout=ShowImage('" + "produkty" + "','" + path+"graphics/header/produkty_1_en.jpg" + "')><IMG id='produkty' src='"+path+"graphics/header/produkty_1_en.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="riesenia")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/riesenia_2_en.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index_en.html' onmouseover=ShowImage('" + "riesenia" + "','" + path+"graphics/header/riesenia_2_en.jpg" + "') onmouseout=ShowImage('" + "riesenia" + "','" + path+"graphics/header/riesenia_1_en.jpg" + "')><IMG id='riesenia' src='"+path+"graphics/header/riesenia_1_en.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="kontakt")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/kontakt_2_en.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"pages/contacts_en.html' onmouseover=ShowImage('" + "kontakt" + "','" + path+"graphics/header/kontakt_2_en.jpg" + "') onmouseout=ShowImage('" + "kontakt" + "','" + path+"graphics/header/kontakt_1_en.jpg" + "')><IMG id='kontakt' src='"+path+"graphics/header/kontakt_1_en.jpg' border='0'/></a></TD>");
  }
 }
 else
 {
  document.write("<a href='"+linkpath+"index.html'><IMG src='"+path+"graphics/header/logo_sk.jpg' border='0' align='center'/></a></TD>");
  if(selectedmenu=="onas")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/o_nas_2_sk.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index.html' onmouseover=ShowImage('" + "onas" + "','" + path+"graphics/header/o_nas_2_sk.jpg" + "') onmouseout=ShowImage('" + "onas" + "','" + path+"graphics/header/o_nas_1_sk.jpg" + "')><IMG id='onas' src='"+path+"graphics/header/o_nas_1_sk.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="sluzby")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/sluzby_2_sk.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index.html' onmouseover=ShowImage('" + "sluzby" + "','" + path+"graphics/header/sluzby_2_sk.jpg" + "') onmouseout=ShowImage('" + "sluzby" + "','" + path+"graphics/header/sluzby_1_sk.jpg" + "')><IMG id='sluzby' src='"+path+"graphics/header/sluzby_1_sk.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="produkty")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/produkty_2_sk.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index.html' onmouseover=ShowImage('" + "produkty" + "','" + path+"graphics/header/produkty_2_sk.jpg" + "') onmouseout=ShowImage('" + "produkty" + "','" + path+"graphics/header/produkty_1_sk.jpg" + "')><IMG id='produkty' src='"+path+"graphics/header/produkty_1_sk.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="riesenia")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/riesenia_2_sk.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"index.html' onmouseover=ShowImage('" + "riesenia" + "','" + path+"graphics/header/riesenia_2_sk.jpg" + "') onmouseout=ShowImage('" + "riesenia" + "','" + path+"graphics/header/riesenia_1_sk.jpg" + "')><IMG id='riesenia' src='"+path+"graphics/header/riesenia_1_sk.jpg' border='0'/></a></TD>");
  }
  if(selectedmenu=="kontakt")
  {
   document.write("<TD width='110'><IMG src='"+path+"graphics/header/kontakt_2_sk.jpg'/></a></TD>");
  }
  else
  {
   document.write("<TD width='110'><a href='"+linkpath+"pages/contacts_sk.html' onmouseover=ShowImage('" + "kontakt" + "','" + path+"graphics/header/kontakt_2_sk.jpg" + "') onmouseout=ShowImage('" + "kontakt" + "','" + path+"graphics/header/kontakt_1_sk.jpg" + "')><IMG id='kontakt' src='"+path+"graphics/header/kontakt_1_sk.jpg' border='0'/></a></TD>");
  }
 } 
 document.write("</TR></TABLE>");
}

function ShowImage(name, filename)
{
 document.getElementById(name).src=filename;
}

function ShowFooter(language)
{
 if(language=="EN")
 {
  document.write("<TABLE width='100%'><TR><TD id='TextBlackLeft' width='50%'>e-mail: <a href='mailto:info@deltasystem.sk'>info@deltasystem.sk</a></TD><TD id='TextBlackRight' width='50%'><img src='http://www.atlantis.sk/counter/counter.php?inf=de8270444sk63&f=1&bg=ffffff&fg=ffffff'>2008 &copy; Delta System. All Rights Reserved.</TD></TR></TABLE>");
 }
 else
 {
  document.write("<TABLE width='100%'><TR><TD id='TextBlackLeft' width='50%'>e-mail: <a href='mailto:info@deltasystem.sk'>info@deltasystem.sk</a></TD><TD id='TextBlackRight' width='50%'><img src='http://www.atlantis.sk/counter/counter.php?inf=de8270444sk63&f=1&bg=ffffff&fg=ffffff'>2008 &copy; Delta System. Všetky práva vyhradené.</TD></TR></TABLE>");
 }
}

function ShowWindow(width, height, title, content, path)
{
	document.write("<TABLE border=0 cellpadding=0 cellspacing=0 width="+width+" height="+height+" id='window'>");
	document.write("<TR height='9'>");
	document.write("<TD width='9'><IMG src='"+path+"graphics/topleft.jpg'/></TD>");
	document.write("<TD height='9' background='"+path+"graphics/top.jpg'/>");
	document.write("<TD width='9'><IMG src='"+path+"graphics/topright.jpg'/></TD>");
	document.write("</TR>");
	document.write("<TR valign=top>");
	document.write("<TD width='9' background='"+path+"graphics/left.jpg'/>");
	document.write("<TD background='"+path+"graphics/background.jpg'><TABLE width=100% cellpadding=0 cellspacing=0><TR><TD width=14><IMG src='"+path+"graphics/arrow.gif'/></TD><TD width=88%><font class='windowtitle'>"+title+"</font></TD></TR><TR><TD colspan=2><BR/></TD></TR><TR><TD colspan=2><font class='block'>"+content+"</font></TD></TR></TABLE></TD>");
	document.write("<TD width='9' background='"+path+"graphics/right.jpg'/>");
	document.write("</TR>");
	document.write("<TR height='9'>");
	document.write("<TD width='9'><IMG src='"+path+"graphics/bottomleft.jpg'/></TD>");
	document.write("<TD height='9' background='"+path+"graphics/bottom.jpg'/>");
	document.write("<TD width='9'><IMG src='"+path+"graphics/bottomright.jpg'/></TD>");
	document.write("</TR>");
	document.write("</TABLE>");
}
