$(document).ready(function () {
  
  var rolloverImgs = $('.imgover');
  
  rolloverImgs.each(function () {
    this.originalSrc = $(this).attr('src');
    this.rolloverSrc = this.originalSrc.replace(new RegExp('(_on)?(\.gif|\.jpg|\.png)$'), "_on$2");
  }).hover(function () {
    $(this).attr('src', this.rolloverSrc);
  }, function () {
    $(this).attr('src', this.originalSrc);
  });
  
  $(".pane-list dl:has(a)").hover(function () {
    $(this).addClass("dlhover");
    $(this).find("img").addClass("imghover");
    $(this).css({"cursor" : "pointer"});
  }, function () {
    $(this).removeClass("dlhover");
    $(this).find("img").removeClass("imghover");
    $(this).css({"cursor" : "default"});
  }).click(function () {
    window.location = $(this).find("a").attr("href");
    return false;
  });
  
  $(".pane-list li:has(a)").hover(function () {
    $(this).addClass("lihover");
    $(this).find("img").addClass("imghover");
    $(this).css({"cursor" : "pointer"});
  }, function () {
    $(this).removeClass("lihover");
    $(this).find("img").removeClass("imghover");
    $(this).css({"cursor" : "default"});
  }).click(function () {
    window.location = $(this).find("a").attr("href");
    return false;
  });
  
  $(".pane-list div.box").hover(function () {
    $(this).addClass("divhover");
    $(this).find("img").addClass("imghover");
    $(this).css({"cursor" : "pointer"});
  }, function () {
    $(this).removeClass("divhover");
    $(this).find("img").removeClass("imghover");
    $(this).css({"cursor" : "default"});
  }).click(function () {
    window.location = $(this).find("a").attr("href");
    return false;
  });
  
});
