QA = {
   init: function() {
      $$('div.qa .answer').each(
         function(e) {
            e.hide();
            close_button = $(document.createElement('a'));
            close_button.className = 'close';
            close_button.update(A.CloseButtonLabel);
            close_button.onclick = function() {
               myqa = this.ancestors()[1];
               myqa.childElements()[0].className = 'closed';
               new Effect.BlindUp(this.ancestors()[0], {duration:0.8});
               
            }
            e.appendChild(close_button);
         }
      )
      $$('div.qa h2').each(
         function(e) {
            e.className = 'closed';
            e.onclick = function() {
               if(this.className == 'open') {
                  this.className = 'closed';
                  new Effect.BlindUp(this.nextSiblings()[0], {duration:0.8});
               } else {
                  this.className = 'open';
                  new Effect.Appear(this.nextSiblings()[0], {duration:0.6});
               }
               return false;
            }
         }
      )
   }
}


Event.observe(document, 'dom:loaded', QA.init);
Event.observe(document, 'dom:loaded', function() {EScript.touch_e('marjorie-apel','mar','de','e')});
Event.observe(document, 'dom:loaded', function() {EScript.touch_e('marjorie-apel','mar','de','e2')});
Event.observe(document, 'dom:loaded', function() {Links.touch_external_links('external')});
