Ajax Tabs Content Script (v 2.2)
http://www.dynamicdrive.com/dynamici...tent/index.htm

Accordion Content script (v1.3)
http://www.dynamicdrive.com/dynamici...daccordion.htm


One of my tabbed (external) files within the Ajax Tabs Content Script contains the Accordion Content script, but the ddaccordion functions do not actually end up working when the page is called via the tab.

I've read about the nesting (onajaxpageload) and I've tried to include the ddaccordion.init function in that block (also loading the jquery and ddaccordion .js files on the main page as well), but it still does not work:

Code:
<script type="text/javascript">
    var tabs=new ddajaxtabs("infotabs", "infodivcontainer")
    tabs.setpersist(true)
    tabs.setselectedClassTarget("link") //"link" or "linkparent"
    tabs.init()

    tabs.onajaxpageload=function(pageurl){
    if (pageurl.indexOf("../test/accordian/index.php?s=CBWTB3050")!=-1){

        ddaccordion.init({
        headerclass: "inventory",
        contentclass: "inventory_item",
        collapseprev: false,
        defaultexpanded: [],
        animatedefault: false,
        persiststate: true,
        toggleclass: ["", "openinv"],
        togglehtml: ["prefix", "<img src='img/plus.gif'>  ", "<img src='img/minus.gif'>  "],
        animatespeed: "fast",
        oninit:function(expandedindices){
                //do nothing
        },
        onopenclose:function(header, index, state, isclicked){
                //do nothing
        }
        })

    }
}
</script>