
function accordionMaker() {
	//alert("accordion time!");
	$("#loading").addClass("hidden");
	
	$("#bigContainer").removeClass("hidden")
	
	$("div.explanatory").each(function(){
		while($(this).children(".descriptor:first").outerHeight()>$(this).children(".blurb:first").outerHeight()) {
			$(this).children(".blurb:first").append("<br/>");
		} //while
	});
	
	if(navigator.appName != "Microsoft Internet Explorer") {
		$("#bargraph").accordion({
			active: false,
			alwaysOpen: false,
			header: ".header",
			autoHeight: false,
			clearStyle: true
		}); 
		$(".blurb").addClass("leftBorder");
		$(".tavern").addClass("leftBorder");
	} else {
		$("#bargraph").accordion({
			active: false,
			alwaysOpen: false,
			header: ".header"
		});
	}
	
	$("div.nameplate").each(function(){
		var height = $(this).outerHeight();
		$(this).css("margin-top", -1*height/2);
	});

	//alert("accordion applied.");
}


$(document).ready(setTimeout(accordionMaker, 1000));
