function random_image()
{
  var imagenumber = 3;
  var randomnumber = Math.random();
  var rand1 = Math.round( (imagenumber-1) * randomnumber);

  var images = new Array("home.jpg", "profilex.jpg",
                         "contact.jpg");

  document.write('<img src="/i/rhs-'+images[rand1]+'" width="253" border="0" alt="Holleran" />');
//height="198"
}




function doPopups()
{
  if (!document.getElementsByTagName) return false;
  var links=document.getElementsByTagName("a");
  for (var i=0; i < links.length; i++) {
    if (links[i].className.match("popup")) {
      links[i].onclick=function() {
        window.open(this.href, "","top=10,left=10,width=700,height=300");
        return false;
      }
    }
  }
}
window.onload=doPopups;




function newWindow(name,src,top,left,width,height,style)
{
	if (!style)
	  style = "status=no,toolbar=no,menubar=no,location=no,resizable=yes,scrollbars=no";
	var opts="";
	if (top) opts += "top="+top+",";
	if (left) opts += "left="+left+",";
	if (width) opts += "width="+width+",";
	if (height) opts += "height="+height+",";
	var win = window.open(src,name,opts+style);
	return win;
}
