var Akkordeon={
  getContentElement:function(el){
    return $(el).select('.stcontent')[0];
  },
  closeEffect:function(el){
    var el=$(el);
    return new Effect.BlindUp(this.getContentElement(el),{
      sync: true,
      afterFinish:function(){
        el.className=el.className.replace('akkordeonopen','akkordeonclosed');
      }
    });
  },
  openEffect:function(el){
    var el=$(el);
    var content=this.getContentElement(el);
    return new Effect.BlindDown(content,{
      sync: true,
      beforeStart:function(){
        content.hide();
        el.className=el.className.replace('akkordeonclosed','akkordeonopen');
      }
    });
  },
  findOpen:function(el){
    var el=$(el);
    var parent = $(el.parentNode);
    return parent.select('.akkordeonopen');
  },
  isOpen:function(el){
    var el=$(el);
    return el.className.match(/akkordeonopen/);
  },
  toggle:function(el){
    var effects = [];
    if (this.isOpen(el))
      effects.push(this.closeEffect(el));
    else {
      this.findOpen(el).each(function(toClose){effects.push(Akkordeon.closeEffect(toClose));});
      effects.push(this.openEffect(el));
    }
    new Effect.Parallel(effects,{duration: 0.8,afterFinish:Akkordeon.onfinish});
  },
  onfinish:function(){
    if ((typeof CmsToolbarElement != 'undefined') && (CmsToolbarElement)) CmsToolbarElement.relayoutAll();
  }
}
    
    
    
    
    function clickAkkordeon(el){
    Akkordeon.toggle(el);
}
  
  function hover(elid){
  var el = document.getElementById(elid);
if (el) el.className='hover';
}
  function leave(elid){
  var el = document.getElementById(elid);
if (el) el.className='';
}
  function nhover(id){
  hover('nt'+id);
hover('ni'+id);
hover('nl'+id);
}
  function nleave(id){
  leave('nt'+id);
leave('ni'+id);
leave('nl'+id);
}
  
  
  function _submit()
  {
  var inputs = document.getElementsByTagName("input");
for (var i=0; i<inputs.length; i++)  {
  if (inputs[i].className == "btn-go")  {
    inputs[i].onmouseover = function()
      {
        this.src = this.src.replace(".gif", "-hover.gif");
      }
      inputs[i].onmouseout = function()
      {
      this.src = this.src.replace("-hover.gif", ".gif");
  }
}
}
  }
  if (window.addEventListener)
  window.addEventListener("load", _submit, false);
else if (window.attachEvent)
  window.attachEvent("onload", _submit);