$(document).ready(function() {
	var formulahtml = $(".formula").html().replace(/(\d+)/g, "<sub>$1<\/sub>");
	$(".formula").html(formulahtml);
	$(".molecularinfo").css("display", "none");
	$(".expander").toggle(
function() {
	$(this).addClass("expanded")
	.parent()
	.parent()
	.css("backgroundColor", "#CCCBCA")
	.children(".molecularinfo")
	.slideDown(function() { $(this).dropShadow({ left: 5, top: 5 }); });
},
function() {
	$(this).removeClass("expanded").parent().parent().css("backgroundColor", "").children(".molecularinfo").slideUp().removeShadow();
});
});
