 window.addEvent('domready', function(){

        var s5_vm_acc_openElement = "";
		
		var s5_vm_acc_window_location = window.location;
		s5_vm_acc_window_location = s5_vm_acc_window_location.toString(); 
		var s5_vm_acc_url_array = s5_vm_acc_window_location.split("&vmcchk");
		s5_vm_acc_window_location = s5_vm_acc_url_array[0];

		 
		var s5_vm_acc_active_toggler = document.getElementById("s5_vm_container").getElementsByTagName("A");
		for (var s5_vm_acc_active_toggler_y=0; s5_vm_acc_active_toggler_y<s5_vm_acc_active_toggler.length; s5_vm_acc_active_toggler_y++) {
			if (s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].href == s5_vm_acc_window_location) {
				s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].id = "s5_vm_acc_active_a";
				if (s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].parentNode.parentNode.tagName == "H3") {
					s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].parentNode.parentNode.id = "s5_vm_acc_active_toggler";
				}
				if (s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].parentNode.parentNode.parentNode.parentNode.className == "element") {
					s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].parentNode.parentNode.parentNode.parentNode.previousSibling.id = "s5_vm_acc_active_toggler";
				}
				if (s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.className == "element") {
					s5_vm_acc_active_toggler[s5_vm_acc_active_toggler_y].parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.previousSibling.id = "s5_vm_acc_active_toggler";
				}
			}
		}
		
		var s5_vm_acc_current = document.getElementById("s5_vm_container").getElementsByTagName("H3");
		for (var s5_vm_acc_current_y=0; s5_vm_acc_current_y<s5_vm_acc_current.length; s5_vm_acc_current_y++) {
			if (s5_vm_acc_current[s5_vm_acc_current_y].id == "s5_vm_acc_active_toggler") {
				s5_vm_acc_openElement = s5_vm_acc_current_y;
			}
		}

         var s5_vm_accordion = new Accordion($('s5_vm_container'), 'h3.toggler','div.element', {
                opacity: true,
                display: s5_vm_acc_openElement
         });

 });
 
 function s5_vm_acc_active(id) {
	document.getElementById(id).id = "s5_vm_acc_active_toggler_holder";
	var s5_vm_acc_reset = document.getElementById("s5_vm_container").getElementsByTagName("H3");
		for (var s5_vm_acc_reset_y=0; s5_vm_acc_reset_y<s5_vm_acc_reset.length; s5_vm_acc_reset_y++) {
		if (s5_vm_acc_reset[s5_vm_acc_reset_y].id != "s5_vm_acc_active_toggler_holder") {
			s5_vm_acc_reset[s5_vm_acc_reset_y].id = "s5_vm_acc_non_active_toggler" + s5_vm_acc_reset_y;
		}
	}
	document.getElementById("s5_vm_acc_active_toggler_holder").id = "s5_vm_acc_active_toggler";
 }

