
// Create variable is_input to see if there is a ? in the url
var is_input = document.URL.indexOf('?');
var openthis = -1;
// Check the position of the ? in the url
if (is_input != -1)
{ 
// Create variable from ? in the url to the end of the string
addr_str = document.URL.substring(is_input+1, document.URL.length+1);
openthis = addr_str;
}


window.addEvent('domready', function() {

var stretchers = $$('div.accordion-content');

var togglers = $$('div.accordion-toggle');

var accordion = new Accordion(togglers, stretchers, {

display: openthis,

alwaysHide: false,

opacity:false,

duration:300

});

});





