function open_window(uri, width, height) {
 var top = (screen.height - height) / 2;
 var left = (screen.width - width) / 2;

 window.open(uri,"_blank","toolbar=no, scrollbars=yes, width=" + width
    + ", height=" + height + ", screenX=" + top + ", screenY=" + top
    + ", top=" + top + ", left=" + top);
}

function mouse_over(obj, thumb) {
 if(obj.tagName != null)
  var tag = obj.tagName.toLowerCase();
 if(obj.type != null)
  var type = obj.type.toLowerCase();

 if(type == "submit") {
  obj.style.cursor = "hand";
  obj.style.color = "#FFF";
 }
 else if(type == "image" || tag == "img") {
  if(typeof thumb != 'undefined')
   obj.src = thumb;
  else
   obj.style.background = "#CC66FF";
 }
}

function mouse_out(obj, img) {
 if(obj.tagName != null)
  var tag = obj.tagName.toLowerCase();
 if(obj.type != null)
  var type = obj.type.toLowerCase();

 if(type == "submit") {
  obj.style.color = "#0E3293";
 }
 else if(type == "image" || tag == "img") {
  if(typeof img != 'undefined')
   obj.src = img;
  else
   obj.style.background = "inherit";
 }
}