var subdir = "";
var lang = "";
var href = document.location.href;
var s = href.split("/"); 
for (var i=2;i<(s.length-1);i++) {lang=s[i];}

function WriteNavi ()
{
  var NaviContent='<a href="javascript:GoLink(\'frontpage.html\')" class="navi';
  if (ActiveNavi==1) NaviContent += 'act';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '">Etusivu</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'eng') NaviContent += '">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'swe') NaviContent += '">Hemsida</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'ger') NaviContent += '">Home</a>&nbsp;&nbsp;|&nbsp;&nbsp;';

  NaviContent += '<a href="javascript:GoLink(\'services.html\')" class="navi';
  if (ActiveNavi==2) NaviContent += 'act';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '">Palvelut</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'eng') NaviContent += '">Services</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'swe') NaviContent += '">Service</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'ger') NaviContent += '">Dienste</a>&nbsp;&nbsp;|&nbsp;&nbsp;';

  NaviContent += '<a href="javascript:GoLink(\'company.html\')" class="navi';
  if (ActiveNavi==3) NaviContent += 'act';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '">Esittely</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'eng') NaviContent += '">Company</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'swe') NaviContent += '">Presentation</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'ger') NaviContent += '">Über uns</a>&nbsp;&nbsp;|&nbsp;&nbsp;';

  NaviContent += '<a href="javascript:GoNews(\'news.html\',\'69\')" class="navi';
  if (ActiveNavi==4) NaviContent += 'act';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '">Ajankohtaista</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'eng') NaviContent += '">News</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'swe') NaviContent += '">Aktuellt</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  //if (lang == 'ger') NaviContent += '">Aktuell</a>&nbsp;&nbsp;|&nbsp;&nbsp;';

  NaviContent += '<a href="javascript:GoLink(\'links.html\')" class="navi';
  if (ActiveNavi==5) NaviContent += 'act';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '">Linkit</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'eng') NaviContent += '">Links</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'swe') NaviContent += '">Linkar</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'ger') NaviContent += '">Links</a>&nbsp;&nbsp;|&nbsp;&nbsp;';

  NaviContent += '<a href="javascript:GoLink(\'contact.html\')" class="navi';
  if (ActiveNavi==6) NaviContent += 'act';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '">Ota yhteyttä</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'eng') NaviContent += '">Contact us</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'swe') NaviContent += '">Kontakta oss</a>&nbsp;&nbsp;|&nbsp;&nbsp;';
  if (lang == 'ger') NaviContent += '">Kontakt</a>&nbsp;&nbsp;|&nbsp;&nbsp;';

  document.write (NaviContent);
}

function WriteTextSize ()
{
  var NaviContent='';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '<nobr>Tekstikoko: <a href="#" onclick="FontSize(1); return false;" onmouseover="PutImage(\'MinusUp\',\'btn_minus\',\'0\');" onmouseout="PutImage(\'MinusDown\',\'btn_minus\',\'0\');"><img src="images/btn_minus01.gif" name="btn_minus" alt="Reduce font size" width="13" height="13" hspace="0" vspace="0" align="top" border="0" /></a><a href="#" onclick="FontSize(2); return false;" onmouseover="PutImage(\'PlusUp\',\'btn_plus\',\'0\');" onmouseout="PutImage(\'PlusDown\',\'btn_plus\',\'0\');"><img src="images/btn_plus01.gif" name="btn_plus" alt="Enlarge font size" width="13" height="13" hspace="2" vspace="0" align="top" border="0" /></a></nobr><br />';
  if (lang == 'eng')  NaviContent += '<nobr>Text size: <a href="#" onclick="FontSize(1); return false;" onmouseover="PutImage(\'MinusUp\',\'btn_minus\',\'0\');" onmouseout="PutImage(\'MinusDown\',\'btn_minus\',\'0\');"><img src="../images/btn_minus01.gif" name="btn_minus" alt="Reduce font size" width="13" height="13" hspace="0" vspace="0" align="top" border="0" /></a><a href="#" onclick="FontSize(2); return false;" onmouseover="PutImage(\'PlusUp\',\'btn_plus\',\'0\');" onmouseout="PutImage(\'PlusDown\',\'btn_plus\',\'0\');"><img src="../images/btn_plus01.gif" name="btn_plus" alt="Enlarge font size" width="13" height="13" hspace="2" vspace="0" align="top" border="0" /></a></nobr><br />';
  if (lang == 'swe')  NaviContent += '<nobr>Fontstorlek: <a href="#" onclick="FontSize(1); return false;" onmouseover="PutImage(\'MinusUp\',\'btn_minus\',\'0\');" onmouseout="PutImage(\'MinusDown\',\'btn_minus\',\'0\');"><img src="../images/btn_minus01.gif" name="btn_minus" alt="Reduce font size" width="13" height="13" hspace="0" vspace="0" align="top" border="0" /></a><a href="#" onclick="FontSize(2); return false;" onmouseover="PutImage(\'PlusUp\',\'btn_plus\',\'0\');" onmouseout="PutImage(\'PlusDown\',\'btn_plus\',\'0\');"><img src="../images/btn_plus01.gif" name="btn_plus" alt="Enlarge font size" width="13" height="13" hspace="2" vspace="0" align="top" border="0" /></a></nobr><br />';
  if (lang == 'ger')  NaviContent += '<nobr>Font-Größe: <a href="#" onclick="FontSize(1); return false;" onmouseover="PutImage(\'MinusUp\',\'btn_minus\',\'0\');" onmouseout="PutImage(\'MinusDown\',\'btn_minus\',\'0\');"><img src="../images/btn_minus01.gif" name="btn_minus" alt="Reduce font size" width="13" height="13" hspace="0" vspace="0" align="top" border="0" /></a><a href="#" onclick="FontSize(2); return false;" onmouseover="PutImage(\'PlusUp\',\'btn_plus\',\'0\');" onmouseout="PutImage(\'PlusDown\',\'btn_plus\',\'0\');"><img src="../images/btn_plus01.gif" name="btn_plus" alt="Enlarge font size" width="13" height="13" hspace="2" vspace="0" align="top" border="0" /></a></nobr><br />';

  document.write (NaviContent);
}

function WriteCopy ()
{
  var NaviContent='';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += '&copy; Accounting Services Tilimatic Oy<!--, <a href="javascript:GoLink(\'index.html\')" class="copylink">Read our legal notice</a>.-->';
  if (lang == 'eng') NaviContent += '&copy; Accounting Services Tilimatic Oy<!--, <a href="javascript:GoLink(\'index.html\')" class="copylink">Read our legal notice</a>.-->';
  if (lang == 'swe') NaviContent += '&copy; Accounting Services Tilimatic Oy<!--, <a href="javascript:GoLink(\'index.html\')" class="copylink">Read our legal notice</a>.-->';
  if (lang == 'ger') NaviContent += '&copy; Accounting Services Tilimatic Oy<!--, <a href="javascript:GoLink(\'index.html\')" class="copylink">Read our legal notice</a>.-->';

  document.write (NaviContent);
}


function WriteContacts ()
{
  var NaviContent='';
  if (lang != 'eng' && lang != 'swe' && lang != 'ger') NaviContent += 'Mannerheimintie 16 A 3<br />FI-00100 Helsinki, Finland<p />tel +358-9-618881<br />fax +358-9-61888228<br /><p /><b>e-mail:</b> <a href="mailto:contact@tilimatic.fi">contact@tilimatic.fi</a>';
  if (lang == 'eng') NaviContent += 'Mannerheimintie 16 A 3<br />FI-00100 Helsinki, Finland<p />tel +358-9-618881<br />fax +358-9-61888228<br /><p /><b>e-mail:</b> <a href="mailto:contact@tilimatic.fi">contact@tilimatic.fi</a>';
  if (lang == 'swe') NaviContent += 'Mannerheimintie 16 A 3<br />FI-00100 Helsinki, Finland<p />tel +358-9-618881<br />fax +358-9-61888228<br /><p /><b>e-mail:</b> <a href="mailto:contact@tilimatic.fi">contact@tilimatic.fi</a>';
  if (lang == 'ger') NaviContent += 'Mannerheimintie 16 A 3<br />FI-00100 Helsinki, Finland<p />tel +358-9-618881<br />fax +358-9-61888228<br /><p /><b>e-mail:</b> <a href="mailto:contact@tilimatic.fi">contact@tilimatic.fi</a>';

  document.write (NaviContent);
}




