$(function() {
  //plan rollover
  $("img.rollover").bind("mouseover", function() {
    var roi = $(this).attr("ajax:roimage");
    var img = $(this).attr("src");
    $(this).attr("src", roi);
    $(this).unbind("mouseout");
    $(this).bind("mouseout", function() {
      $(this).attr("src", img);
    });
  });
});

function gotoHome(active, suffix){
 var href=self.location.href;
  if (!suffix) suffix="";
  
  if (!active) var e=href.lastIndexOf('/');
  else var e=href.indexOf(active);
  
  self.location.href=href.substring(0, e)+suffix;
}

function nothing(){}
