var isNav6  = false, isIE = false, pgFrame;
var loc = self.document.location.search;
if (document.location.hostname == "www.ceegal.nl") document.location.replace("/company/");
if (document.location.hostname == "ceegal.nl") document.location.replace("/company/");
if (loc != "" && loc != null) loc = loc.substr(1); else loc = 'page1.asp';
function getBrowser()
{ if (navigator.appVersion.charAt(0) == "5") { if (navigator.appName == "Netscape") isNav6 = true; }
  else { if (navigator.appVersion.indexOf("MSIE") != -1) isIE = true; }
}
function getRegio(str)
{ var doc = "regio=" + str;
  hideFrm();
  if (isIE)   { window.page.location.search = doc; menu.cells(1).focus(); }
  if (isNav6) { pgFrame.contentDocument.location.search = doc; pgFrame.contentDocument.location.reload; }
}
function getPage(str)
{ var doc = str;

  if (str.match(/regio/i) == null) doc = str+"?regio="+document.getElementById('regio').value;
  hideFrm();
  if (isIE)   { window.page.location.href = doc; }
  if (isNav6) { pgFrame.contentDocument.location.href = doc; pgFrame.contentDocument.location.reload; }
}
function goInfo()
{ var doc = 'infoform.asp';
  hideFrm();
  if (isIE)   { window.page.location.href = doc; }
  if (isNav6) { pgFrame.contentDocument.location.href = doc; pgFrame.contentDocument.location.reload; }
}
function hideFrm() { document.getElementById('page').style.visibility = 'hidden'; }
function pgBack() { window.history.back(); }
function pgNext(str) { return str+'?regio='+regio.value; }
function ptrType(str) { if (isNav6) document.getElementById(str).style.cursor = "pointer"; if (isIE) document.getElementById(str).style.cursor = "hand"; }
function setBgMenu(str) { document.getElementById(str).setAttribute('background',"/gateway/images/tabel1.gif"); }
function resetBgMenu(str) { document.getElementById(str).setAttribute('background',"/gateway/images/bg_net3.gif"); }
function changeMenuItem(str, n)
{ if (n == 1)
  { switch (str)
    { case "Rubriek A - G": setBgMenu('m1'); break;
      case "Rubriek H - N": setBgMenu('m2'); break;
      case "Rubriek O - U": setBgMenu('m3'); break;
      case "Rubriek V - Z": setBgMenu('m4'); break;
      case "Toelichting"  : setBgMenu('m5'); break;
      case "Tarieven"     : setBgMenu('m6'); break;
      case "Aanmelden"    : setBgMenu('m7'); break;
    }
  }
  else
  { switch (str)
    { case "Rubriek A - G": resetBgMenu('m1'); break;
      case "Rubriek H - N": resetBgMenu('m2'); break;
      case "Rubriek O - U": resetBgMenu('m3'); break;
      case "Rubriek V - Z": resetBgMenu('m4'); break;
      case "Toelichting"  : resetBgMenu('m5'); break;
      case "Tarieven"     : resetBgMenu('m6'); break;
      case "Aanmelden"    : resetBgMenu('m7'); break;
    }
  }
}
function ShowFooter()
{
  document.writeln('  <table width="100%" height="25" align="left" cellspacing="0" cellpadding="0" background="/gateway/images/bg_btm.gif" style="color:LightYellow;">');
  document.writeln('  <tr>');
  document.writeln('   <td width="150" height="25" align="center" valign="bottom" class="footer"></td>');
  document.writeln('   <td width="209" height="25" align="right" valign="bottom" class="footer"><strong>&nbsp;&nbsp;&nbsp;Copyright© 2001 - 2003</strong></td>');
  document.writeln('   <td width="210" height="25" align="center" valign="bottom" class="footer"><strong>Ceegal Systems</strong></td>');
  document.writeln('   <td width="209" height="25" align="left" valign="bottom" class="footer"><strong>Kvk : 17131882&nbsp;&nbsp;&nbsp;</strong></td>');
  document.writeln('   <td height="25" align="left" valign="bottom" class="footer">&nbsp;</td>');
  document.writeln('  </tr>');
  document.writeln('  </table>');
}
