/*
* From website location http://www.barcahall.com/gallery-block-random.html
*
* Revised 20-Feb-2004 with a fix for the error when a sub-album's highlight photo was returned as the random photo
* Revised 19-Feb-2004 with much better cross-browser support
* Revised 7-Feb-2004 with ability to limit each random photo block to a single album
* Revised Dec 2003 with support for multiple random photos on a page
*
*
* document.domain='yourdomain.com';  
* Uncomment and edit if "Access is Denied" runtime JavaScript error occurs
*/
function iFrameHeight(obj) {
          aID = obj.id;
     // if contentDocument exists, W3C compliant (Mozilla)
		  if (document.getElementById(aID).contentDocument){
                obj.style.height = document.getElementById(aID).contentDocument.body.scrollHeight; 
          } else {
	 // IE
                obj.style.height = document.frames(aID).document.body.scrollHeight; 
		  }
}		