if(!commonspot)
	var commonspot = {};
   
var Spry;
if (!Spry) Spry = {};
if (!Spry.Widget) Spry.Widget = {};
   
Spry.Widget.Accordion.prototype.closePanel = function()
{
	// The accordion can only ever have one panel open at any
	// give time, so this method only closes the current panel.
	// If the accordion is in fixed panel heights mode, this
	// method does nothing.

   /* CS5.5 overwrote the functionality changed "if (!this.useFixedPanelHeights && this.currentPanel)" 
      condition to if (this.useFixedPanelHeights && this.currentPanel) to enable closing all panels
      including the current panel when using fixed heights.
   */   
	if (this.useFixedPanelHeights && this.currentPanel)
	{
		var panel = this.currentPanel;
		var content = this.getPanelContent(panel);
		if (content)
		{
			if (this.enableAnimation)
			{
				if (this.animator)
					this.animator.stop();
				this.animator = new Spry.Widget.Accordion.PanelAnimator(this, null, { duration: this.duration, fps: this.fps, transition: this.transition });
				this.animator.start();
			}
			else
			{
				content.style.display = "none";
				content.style.height = "0px";
			}
		}		
		this.removeClassName(panel, this.openClass);
		this.addClassName(panel, this.closedClass);
		this.currentPanel = null;
	}
};
