// -------------------------------------------------------------------
// Switch Content Script- By Dynamic Drive, available at: http://www.dynamicdrive.com
// Created: Jan 5th, 2007
// Last updated: Jan 25th, 2007. Fixed defaultExpanded() feature not working when persistence is enabled (applicable only for 1st page load)
// -------------------------------------------------------------------

//   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.collapsePrevious(true/false)- Sets whether previous content should be contracted when current one is expanded
//3) Instance.defaultExpanded(indices)- Sets contents that should be expanded by default (ie: 0, 1). Persistence feature overrides this setting!
//4) Instance.init() REQUIRED

var box=new switchcontent("group1", "div") //Limit scanning of switch contents to just "div" elements
box.setStatus('<a href="#" class="img_link" title="Zuklappen"><img src="img/objects/arrow_merkzettel_open.gif" class="arrow" /></a>', '<a href="#" class="img_link" title="Aufklappen"><img src="img/objects/arrow_merkzettel_close.gif" class="arrow" /></a>')
box.collapsePrevious(1)
box.defaultExpanded(0)
box.init()

var box=new switchcontent("group2", "div") //Limit scanning of switch contents to just "div" elements
box.setStatus('<a href="#" class="img_link" title="Zuklappen"><img src="img/objects/arrow_merkzettel_open.gif" class="arrow" /></a>', '<a href="#" class="img_link" title="Aufklappen"><img src="img/objects/arrow_merkzettel_close.gif" class="arrow" /></a>')
box.collapsePrevious(1)
box.defaultExpanded(0)
box.init()

/*var container=new switchcontent("group2", "div") //Limit scanning of switch contents to just "div" elements
container.setStatus('schlie&szlig;en', '&ouml;ffnen')
container.collapsePrevious(1)
container.defaultExpanded(0,1,2)
container.init()*/
