$(document).ready(function() {
	// hides the slickbox as soon as the DOM is ready
	// (a little sooner than page load)
	$('.more_content').hide();
});
 // shows the element on calling the function
function showhide(target) {
	$(target).slideToggle(400);
}

$(function() {

	$('#chart li').each(function() {
		var amt = $(this).children('.result').text();
		var myNumber = parseFloat(amt);
		var pc = 100 * amt/22.3; //for now, manually enter the largest value
		var pc = pc.toFixed(0);
//		var pc = $(this).attr('title');
		pc = pc > 100 ? 100 : pc;
		var ww = $(this).width();
		var len = parseInt(ww, 10) * parseInt(pc, 10) / 100;
		$(this).children('.bar').animate({ 'width' : len + 'px' }, 1500);
		
	});

});





