
$(document).ready(function() {
$(".podSection").hide();
$(".podSection .topLink").remove();
});
function show(elementId) {
$(".infoText a.selected").removeClass("selected");
if($("#"+elementId+":visible").length > 0) {
$(".podSection:visible .closeButton").remove();
$(".podSection:visible").slideUp("normal");
}
else if($(".podSection:visible").length < 1) {
display(elementId);
} else {
$(".podSection:visible .closeButton").remove();
$(".podSection:visible").slideUp("normal", function() {display(elementId);});
}
}
function display(elementId) {
$("#"+elementId).append('<div class="button secondary right closeButton"><a class="plain" href="javascript:closeSection('+"'"+elementId+"'"+');" title="Close section.">Close</a></div><div class="clearBoth">&nbsp;</div>');
$("#"+elementId).slideDown("normal");
$(".infoText a."+elementId).addClass("selected");
}
function closeSection(elementId) {
$("#"+elementId+":visible").slideUp("normal", function() {$("#"+elementId+" .closeButton").remove();	$(".infoText a.selected").removeClass("selected");});
}