
var container = null;



$(document).ready(function()
{
	container = $("div.container");	
});



function toggleNoProblemPanel(panelID,action)
{
	var panelName = "noProblemPanel";
	
	if (panelID != null && panelID.length > 0) 
	{
		panelName = "#" + panelID + "." + panelName;		
	}
	
	var query = $(panelName);
	
	if (query.length > 0)
	{
		if ((query.css("display").toLowerCase() == "none" && action == null) || (action != null && action.toLowerCase() == "open"))
		{
			//toggle show			
			query.slideDown(250,reflowFooterBottom);
			return;
		}
		if ((query.css("display").toLowerCase() != "none" && action == null) || (action != null && action.toLowerCase() == "close"))
		{
			//toggle hide			
			query.slideUp(250,reflowFooterBottom);
			return;
		}
		
	}
	
	
	
}


function reflowFooterBottom()
{
	if (container != null)
	{
		container.css("position","absolute").css("position","relative");
	}
	
}