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

function closepopover() {
  $("#windover").empty();
  $("#popover").css("display","none");
}


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

  $("a.story").click(function() {
    $("#windover").load(this.href,function() {
      $(".storyClose").click(function() {
        $("#popover").css("display","none");
        return false;
      });
    });
    $("#popover").css("display","block");
    return(false);
  });

});

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

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

