window.onload = function()
{

	if(document.getElementById("leftcol") && document.getElementById("rightcol"))
	{
				
		var leftcol 	= document.getElementById("leftcol");
		var rightcol 	= document.getElementById("rightcol");
	
		if(leftcol.offsetHeight > rightcol.offsetHeight)
			rightcol.style.pixelHeight=leftcol.offsetHeight + "px";
		else
			leftcol.style.height=rightcol.offsetHeight + "px";
		
	}
		
}

function showPhoto(photoName, photosrc)
{
	
	document.getElementById("teamdesc").innerHTML = document.getElementById(photoName).innerHTML;
	document.getElementById("teamphotoimg").src=photosrc;
	
}

function changeDisplay(photoID)
{
	
	for(i=1; i<=9; i++)
		document.getElementById("image" + i).src="images/profile/image" + i + ".jpg";
		
	document.getElementById("image" + photoID).src="images/profile/image" + photoID + "_grey.jpg";
	document.getElementById("profileimg").src="images/profile/image" + photoID + "_large.jpg";
	
}

function showWork(divID)
{
	
	document.getElementById("videxplain").innerHTML = document.getElementById(divID).innerHTML;

}