  /*
  ###############################################################################
  # calendar.js             version 1.0.0

  # Written by:             Gino Bossetto
  # Of:                     www.stellaritsolutions.com
  # On:                     12-20-2009
  # Last update:            12-20-2009

  # Purpose:                Various calendar website tools
  #
  # Copyright (c) 2004-2009 Stellar IT Solutions
  ###############################################################################
  */

  var d = new Date();
  var months = ["jan","feb","mar","apr","may",
                "jun","sep","sep","sep","oct","nov","dec"]; /* for jul, display sep; for aug display sep */
  var calcontrols = 0;

  function gotothismonth() {
    document.getElementById(months[d.getMonth()]).style.display = "block";
  }

  function togglecalcontrols() {
    link = document.getElementById('calcontrolslink');
    if (calcontrols == 0) {
      calcontrols = 1;
      link.innerHTML = "Interactive";
      document.getElementById('allmonths').style.display = "none";
      for (var m in months) {
        document.getElementById(months[m]).style.display = "block";
      }
    } else {
      calcontrols = 0;
      link.innerHTML = "Show All";
      document.getElementById('allmonths').style.display = "block";
      for (var m in months) {
        document.getElementById(months[m]).style.display = "none";
      }
      gotothismonth();
    }
  }

  function showcal(id) {
    id.style.backgroundImage = "url(images/monthovr.jpg)";
  }

  function showdetail(month) {
    for (var m in months) {
      detail = document.getElementById(months[m]);
      detail.style.display = "none";
    }
    detail = document.getElementById(month);
    detail.style.display = "block";
  }

  function hidecal(id) {
    id.style.backgroundImage = "url(images/month.jpg)";
  }

