// code for Info popups

var isIE=document.all;
var isNN=!document.all&&document.getElementById;
var isN4=document.layers;

function hidePopup(){
  Shadower.deshadow('thePopup'); // remove shadow
  pp = document.getElementById("thePopup");
  pp.style.visibility="hidden";
}

function showPopup(e, srcUrl){

  // get ref to popup div
  pp = document.getElementById("thePopup");

  pp.style.visibility = "visible";
  var ev = isIE ? window.event : e;
  
  // show at mousepointer to make info popup more intuitive
  fraObj = document.getElementById("fraPopup");

  //if (document.body) fraObj.src = "http://www.cryopc.co.uk/" + srcUrl + ".htm";
  if (document.body) fraObj.src = srcUrl + ".htm";
  var root = document.documentElement || document.body;
  x = isIE ? ev.clientX + root.scrollLeft - parseInt(pp.style.width) : ev.pageX - parseInt(pp.style.width);
  y = isIE ? ev.clientY + root.scrollTop : ev.pageY;

  pp.style.left = x + 'px';
  pp.style.top = y + 'px';
 
  Shadower.shadow('thePopup'); // show shadow
}
