function SetCookie(name,value)
{
 var argv=SetCookie.arguments;
 var argc=SetCookie.arguments.length;
 var expires=(argc>2)?argv[2]:null;
 var path=(argc>3)?argv[3]:null;
 var domain=(argc>4)?argv[4]:null;
 var secure=(argc>5)?argv[5]:false;
 document.cookie=name+"="+escape(value)+
  ((expires==null)?"":("; expires="+expires.toGMTString()))+
  ((path==null)?"":("; path="+path))+
  ((domain==null)?"":("; domain="+domain))+
  ((secure==true)?";secure":"");
}

var lang="en";
var file="index";
var alen=window.location.href.length;
if (alen>=7) lang=window.location.href.substring(alen-7,alen-5);
if (alen>9) file=window.location.href.substring(0,alen-8);
if ((lang!="en")&&(lang!="pl")) lang="en";
if (file=="") file="index";

 document.write("<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0><TR><TD>");
 if (lang!="pl") document.write("<A HREF=\""+file+"-pl.html\" onClick=\"SetCookie('lang','pl');\">");
 document.write("Pl");
 if (lang!="pl") document.write("</A>");
 document.write(" | ");
 if (lang!="en") document.write("<A HREF=\""+file+"-en.html\" onClick=\"SetCookie('lang','en');\">");
 document.write("En");
 if (lang!="en") document.write("</A>");
 document.write("<TD ALIGN=CENTER><A HREF=\"javascript:history.back();\">");
 switch (lang)
  {case "pl": document.write("Powrót"); break;
   default: document.write("Back");
  };
 document.write("</A> | <A HREF=\"index-"+lang+".html\">");
 switch (lang)
  {case "pl": document.write("Menu"); break;
   default: document.write("Menu");
  };
 document.write("</A> | <A HREF=\"listy-"+lang+".html\">");
 switch (lang)
  {case "pl": document.write("Kontakt"); break;
   default: document.write("Contact");
  };
 document.write("</A> | <A HREF=\"ceny-"+lang+".html\">");
 switch (lang)
  {case "pl": document.write("Ceny"); break;
   default: document.write("Prices");
  };
 document.write("</A> | <A HREF=\"opinie-"+lang+".html\">");
 switch (lang)
  {case "pl": document.write("Opinie"); break;
   default: document.write("Opinions");
  };
 document.write("</A></TABLE><HR>");
