function writeDate() {
  var today = new Date();
  var year = today.getFullYear();
  document.write(year);
}

$(document).ready(function(){
  $(".roll").bind("mouseover",rollover);
  $(".roll").bind("mouseout",rollout);

  $("a[href*='mode=print']").click(function() { 
    window.open(this.href,"printWindow","width=600,height=800,toolbar=0,directories=0,status=0,menubar=no,resizable=1,scrollbars=1");
    return false;
  });

});

function rollover() {
  if (this.src.indexOf("down") < 0) {
    var path =  this.src.substr(0,this.src.lastIndexOf("."));
    var filetype = this.src.substr(this.src.lastIndexOf("."));
    this.src = path + "_over" + filetype;
  }
}

function rollout() {
  if (this.src.indexOf("down") < 0) {
    var path =  this.src.substr(0,this.src.lastIndexOf(".")-5);
    var filetype = this.src.substr(this.src.lastIndexOf("."));
    this.src = path + filetype;
  }
}


