//***** Returning the object width

function find_width(nodeObj)
{
	return nodeObj.offsetWidth;
}

//**** Ensure photo has right proportions in size!

function ph_sz(nodeObj,pp)
	{
		var w = find_width(nodeObj);
		var h = w * pp;
		var ht = h + 'px';
		nodeObj.style.height = ht;
	}


// Scripts below are unused but left here should they at some point be needed.

//***** Returning the object height

function find_hght(id)
{
	var nodeObj = document.getElementById(id);
	return nodeObj.offsetHeight;
}

//***** Returning the object width

function find_wid(id)
{
	var nodeObj = document.getElementById(id);
	return nodeObj.offsetWidth;
}

//**** Ensure photo have loaded!

function chk_loaded(id)
	{
		var w = find_wid(id);
		var h = find_hght(id);
		var x = eval(h + '/' + w);
		if ( x < 0.65 || x > 0.68 )
		  {
		    window.location.reload( false );
		      alert('Photo failed to load properly. Page is refreshing.');
		  }
	}

/* setTimeout('chk_loaded(\'bath\')',1500); */
