jQuery(document).ready(function(){
	$('.ClientBox a').attr('href','javascript:void(0)');
	$('.ClientBox').unbind('click');
	$('.ClientBox').click(
		function(){
			$('.ClientBox').not(this).removeClass('Active');
			$(this).addClass('Active');

			// Display Content
			var classList = $(this).attr('class').split(" ");
			for(var i = 0;i < classList.length; i++){
				var regExp = new RegExp(/^ClientBox_/);
				if(regExp.test(classList[i])){
					var clientId = classList[i].split("_")[1];
					$('#RWContent li').not('#RWContent_' + clientId).slideUp();
					$('#RWContent_' + clientId).slideDown();
				}
			}
		}
	);
	
	/* Set the page height to the height of the biggest entry */
	var h = 0;
	$('#RWContent li').each(
		function(){
			$(this).css('display','block');
			var th = $(this).height();
			if($(this).hasClass('Hidden')){
				$(this).css('display','none');
			}
			if(th > h){h = th;}
		}
	);
	$('.InnerCol').css('height',h + 'px');

//	setInterval('colHeights()', 10);
	
});
