/***************************************************************************************************
* Name:          side.js
* Author:        Kyle Brickman
* Description:   Handles side overflow
* Created:       21 October 2009
* Prerequisites: Prototype     (1.6.0.3+)
*                Scriptaculous (1.8.2+)
***************************************************************************************************/

function reconcileSide( )
{
	var docHeight = 0;
	
	$$( '.layContent' ).each( function( item ){
		docHeight = item.getDimensions( ).height;
	});
	
	
	$$( '.laySide' ).each( function( item ){
		if( item.getDimensions( ).height > docHeight )
		{
			item.setStyle({
				height       : docHeight + 'px',
				'overflow-y' : 'hidden'
			});
		}
	});
}
