// JavaScript Document
function swapImages(newImg,id)
{
	img = document.getElementById(id);
	img.src=newImg;
}
function setRightSide()
{
	rS = document.getElementById("sidepanel");
	lS = document.getElementById("maintext");
	
	if (lS.offsetHeight)
	{
		rheight = rS.offsetHeight;
		lheight = lS.offsetHeight;
	}
	else if (lS.style.pixelHeight)
	{
		rheight = rS.style.pixelHeight;
		lheight = lS.style.pixelHeight;
	}
	
	if (lheight > rheight)
		rS.style.height = lheight + "px";
	if (rheight > lheight)
		lS.style.height = rheight + "px";
}

window.onload = function() 
{
	 setRightSide();
}
