
function setHeight(firstele, secondele,thirdele)
{
	var first = document.getElementById(firstele);
	var second = document.getElementById(secondele);
	var third = document.getElementById(thirdele);
	first.style.height = 'auto';
	second.style.height = 'auto';
	third.style.height = 'auto';
	var x = first.offsetHeight;
	var y = second.offsetHeight;
	var z = third.offsetHeight;
	
	
	if((y < x) &&( z < x))
	{
		first.style.height = x + "px";
		second.style.height = x + "px";
		third.style.height = x + "px";
		//first.style.height  = x + "px";
	/*	alert("left height used ");
		alert("left height "+ x);
		alert("right height " + second.style.height);
		alert("third height " + third.style.height);*/
		
	}
	else if((x < z) && (y < z))
	{
		first.style.height = z + "px";
		second.style.height = z + "px";
		third.style.height = z + "px";
/*		alert("main height used ");
		alert("main height "+ z);
		alert("left height " + first.style.height);
		alert("right height " + second.style.height);*/
		
		
	}
	
	else if(( x < y) && (z < y))
	{
		
		first.style.height = y + "px";
		second.style.height = y + "px";
		third.style.height = y +  "px";
		//second.style.height = y  + "px";
		//second.style.height = y + "px";
/*
		alert("right height used ");
		alert("right height "+ y);
		alert("left height " + first.style.height);
		alert("main height " + third.style.height);*/
				
	}
	
}

			function sugarmillgallery(fileName)
	 {
     myFloater = window.open('','myWindow','scrollbars=no,status=no,width=760,height=525')
     myFloater.location.href = fileName;
	}