function fillLeftBar (numOfImgs, bannerBottom)
// Place the given number of background 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='" + upPath + "assets/Menu/Menu Bgnd Bar.jpg' />";	
		else
			//Insert background image and author name
			leftBarImg.innerHTML = "<img border='0' src='" + upPath + "assets/Menu/Menu Bgnd Bar.jpg' /><p style= \"font-family: arial, sans-serif; font-size: 8pt; color: #636E8E; 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 /><a href= '" + upPath + "Mail/Query.php?rec=Webmaster&subj=Enquiry regarding Net-Conception website'>Net-Conception</a><br />Copyright &copy; 2005</p>";		

		// Position image
		imgTop = bannerBottom + 1 + 12 + (160 * (i-1));	// Image height is 160
		leftBarImg.style.position = 'absolute';
		eval ("leftBarImg.style.top = \'" + imgTop + "px\'");
	}
	// Insert final graduated image
	leftBarImg = getObject ("left_bar_img_" + i);
	leftBarImg.innerHTML = '<img border="0" src="' + upPath + 'assets/Menu/Menu Bgnd Bar grad.jpg" />';	
	imgTop = bannerBottom + 1 + 12 + (160 * (i-1));	// Image height is 160
	leftBarImg.style.position = 'absolute';
	eval ("leftBarImg.style.top = \'" + imgTop + "px\'");
}

function findPosX(obj)
{
	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;
}