// JavaScript Document

var promoexample=new switchcontent("switchgroup1", "div") //Limit scanning of switch contents to just "p" elements
promoexample.setStatus()
promoexample.setColor()
promoexample.collapsePrevious(true) //Allow more than 1 content to be open simultanously
promoexample.setPersist(false)
promoexample.defaultExpanded()
promoexample.init()

var subpromoexample=new switchcontent("switchgroup2", "div") //Limit scanning of switch contents to just "p" elements
subpromoexample.setStatus()
subpromoexample.setColor()
subpromoexample.collapsePrevious(true) //Allow more than 1 content to be open simultanously
subpromoexample.setPersist(false)
subpromoexample.defaultExpanded()
subpromoexample.init()