	function getScrollXY() {
	  	var scrOfX = 0, scrOfY = 0;
	  	if( typeof( window.pageYOffset ) == 'number' ) {
	    	//Netscape compliant
	    	scrOfY = window.pageYOffset;
	    	scrOfX = window.pageXOffset;
	  	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
	    	//DOM compliant
	    	scrOfY = document.body.scrollTop;
	    	scrOfX = document.body.scrollLeft;
		} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
			//IE6 standards compliant mode
			scrOfY = document.documentElement.scrollTop;
	    	scrOfX = document.documentElement.scrollLeft;
		}
		return [ scrOfX, scrOfY ];
	}
	function showimage(url, desc, width, height)
	{
		var c_width;
		var c_height;
		var img=document.getElementById('imgdisplay');
		
		//get client window size
		if (self.innerWidth) {
			c_width = self.innerWidth;
			c_height = self.innerHeight;
		}
		else if (document.documentElement && document.documentElement.clientWidth) {
			c_width = document.documentElement.clientWidth;
			c_height = document.documentElement.clientHeight;
		}
		else if (document.body)	{
			c_width = document.body.clientWidth;
			c_height = document.body.clientHeight;
		}
		
		var b_width = width + 65;
		var b_height = height + 87;
		
		var scroll = getScrollXY();
		
		var topDistance = Math.floor(scroll[1]+((c_height-b_height)/2));
		if (topDistance < 0)
			topDistance = 0;
		
		document.getElementById('imgcontainer').style.left=Math.floor((c_width-b_width)/2)+'px';
		document.getElementById('imgcontainer').style.width=(b_width)+'px';
		document.getElementById('imgcontainer').style.top=topDistance+'px';
		document.getElementById('imgcontainer').style.height=(b_height)+'px';
		
		document.getElementById('imgdesc').innerHTML=desc;
		
		img.src=url;
		img.width=width;
		img.height=height;
		document.getElementById('imgcontainer').style.display='block';
	}
	function hide()
	{
		document.getElementById('imgcontainer').style.display='none';
		document.getElementById('imgdisplay').src="http://boulderriverranch.net/images/blank.gif";
	}
