
function changePhoto(thisNode, photoNode,photoURL)
{
	var imgNode = document.getElementById(photoNode);

	var sibblings = thisNode.parentNode.childNodes;
	for (var i=0;i<sibblings.length;i++)
	{
		sibbling = sibblings[i];
		if (sibbling.name == "panel_button")
		{
			setClass(sibbling,"button");
		}
	
	}
	
	setClass(thisNode,"button_sel");
	
	if (imgNode != null)
	{
		imgNode.src=photoURL;
	}
}


function setClass(node,className)
{
	if (node != null) node.attributes['class'].nodeValue = className;
}
