function fillLeftBar (numOfImgs, bannerBottom)
// Place the given number of backround pictures down the left bar (behind the menu)
{
	var i;
	var imgTop;
	var leftBarImg;

	if (numOfImgs > 7)
		numOfImgs = 7;
	
	for (i = 1; i <= numOfImgs; i++)
	{
		leftBarImg = getObject ("left_bar_img_" + i);

		if (i < numOfImgs)
			//Insert background image
			leftBarImg.innerHTML = "<img border='0' src='../assets/Menu/fleur%20blur.jpg' />";	
		else
			//Insert background image and author name
			leftBarImg.innerHTML = "<img border='0' src='../assets/Menu/fleur%20blur.jpg' /><p style= \"font-family: arial, sans-serif; font-size: 8pt; color: green; text-align: center; background-color: white; border-style: solid; border-width: thin thick; padding: 3px 6px; position: absolute; top: 100px; left: 25px; z-index: 90\">Web design by<br />Barrie Barnes</p>";		

		// Position image
		imgTop = bannerBottom + 1 + 12 + (160 * (i-1));	// Image height is 160
		leftBarImg.style.position = 'absolute';
		leftBarImg.style.left = '0';
		eval ("leftBarImg.style.top = \'" + imgTop + "px\'");
	}
}

function findPosX(obj)
{
//alert ("findxpos");
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft;
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
		curleft += obj.x;
	return curleft;
}

function findPosY(obj)
{
	var curRight = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curRight += obj.offsetRight;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
		curRight += obj.y;
	return curRight;
}

