Click here to see Live Demo | Click here for the article 'Javascript,OOP and Reuse'
Method Description
CAJAXPanel(div,title,strHTML,height,
opacity,speed,smoothess)

div: The id of <DIV> being used as placeholder. It should be unqiue for every instance.

title : The title text or HTML to be displayed on the title bar

strHTML : The HTML to be displayed in the content area

height : Height in 'px' for the widget

opacity : The opacity for the control. Value should be between 0.00 and 1.00

speed : Value determines how fast the animation when collapsing should occur. The value is in milliseconds

smmothess : Atually the step , by which the panel collapses . In conjuction with 'speed' will help to control the animation.

ContainerStyle(className) Sets a new CSS class for the container <DIV> (one with unique id)
SetTitleStyle(className) Sets a new CSS class for tite area
SetContentDIVStyle(className) Sets a new CSS class for the content area.
SetContentHTML(strHTML) Sets the innerHTML(content) of content area
SetTitleHTML(strTitle) Sets the title string.
Collapsed(boolean) If b==true then panel is collapsed  else it is minimised
SetIconURLs(d,u) Sets new image URLs for maximise icon (d) and minimise icon (u).