$( document ).ready( function() {

	// set maximum height for playlist content based on tallest (hidden) element */
	$.fn.maxHeight = function( px ) {
		$( this ).each( function() {
			var currentTallest = 0;
			$( this ).children().each( function( i ) {
				if( $( this ).height() > currentTallest ) {
					currentTallest = $( this ).height();
				}
			});
			// for ie6, set height since min-height isn't supported
			if( $.browser.msie && $.browser.version == 6.0 ) {
				$( this ).css({ 'height': currentTallest });
			} else {
				$( this ).css({ 'min-height': currentTallest });
			}
		});
		return this;
	};
	$( '#playlist_content' ).maxHeight();

});