/* SUBNAV Left - Height Fix */
function subnav_fixHeight()
{
	var listframe = $('listframe');
	var subnav = $('subnav');
	if(!listframe || !subnav) { return; }

	subnav.addClassName('js');
	

	var posTop1 = $('subnav').cumulativeOffset().top;
	var posTop2 = $('bottom_frame').cumulativeOffset().top;
	var frameHeight = posTop2-posTop1;
	subnav.setStyle({ 'height': frameHeight+'px' });
	listframe.setStyle({ 'height': frameHeight+'px' });


	(function() {
		var maxHeight = 0;
		var lists = listframe.select("div[class^=list]");
		for(i=0; i<lists.length; i++)
		{
			var curHeight = lists[i].getHeight();
			if(curHeight>maxHeight) { maxHeight = curHeight; }
		}
		if(maxHeight>0)
		{
			maxHeight += 10;
			new Effect.Parallel([
				new Effect.Morph(subnav, { style: { height: maxHeight+'px' } }), 
				new Effect.Morph(listframe, { style: { height: maxHeight+'px' } })
				], { duration: 1.00 });
		}
	}).delay(0.01);
}
document.observe("dom:loaded", function() { subnav_fixHeight(); });