//   MAIN FUNCTION: new switchcontent("class name", "[optional_element_type_to_scan_for]") REQUIRED
//1) Instance.setStatus(openHTML, closedHTML)- Sets optional HTML to prefix the headers to indicate open/closed states
//2) Instance.setColor(openheaderColor, closedheaderColor)- Sets optional color of header when it's open/closed
//3) Instance.setPersist(true/false)- Enables or disabled session only persistence (recall contents' expand/contract states)
//4) Instance.collapsePrevious(true/false)- Sets whether previous content should be contracted when current one is expanded
//5) Instance.defaultExpanded(indices)- Sets contents that should be expanded by default (ie: 0, 1). Persistence feature overrides this setting!
//6) Instance.init() REQUIRED

var bobexample=new switchcontent("switchgroup1", "div") //Limit scanning of switch contents to just "div" elements
bobexample.setStatus('<img src="../tabs/img/minus_ylw.gif" vspace="1" align="right"/> ', '<img src="../tabs/img/plus_ylw.gif" vspace="1" align="right"/> ')
bobexample.setColor('#FBAA1A', 'white')
bobexample.setPersist(true)
bobexample.collapsePrevious(true) //Only one content open at any given time
bobexample.defaultExpanded(0) //Set 1st content to be expanded by default
bobexample.init()



//from open.html//
//var faq=new switchicon("icongroup1", "div") //Limit scanning of switch contents to just "div" elements
//faq.setHeader('<img src="minus.gif" />', '<img src="plus.gif" />') //set icon HTML
//faq.collapsePrevious(true) //Allow only 1 content open at any time
//faq.setPersist(false) //No persistence enabled
//faq.defaultExpanded(0) //Set 1st content to be expanded by default
//faq.init()