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

function()
{
$("#"+elementId+" .button").remove();
$(".infoText a.selected").removeClass("selected");
});
}

