window.addEvent('domready',function() {
  $$('div.acc-header.inithide + div.acc-content').each(function(obj,idx) { obj.slide('hide') ; }) ;
  
  $$('div.acc-header.one').each(function(obj,idx) { 
    obj.addEvent('click', function() {
      hideothers(1) ;
      $$('div.acc-content.c1').each(function(obj,idx) { obj.slide('in') ; }) ;
    }) ;
  }) ;
      
   $$('div.acc-header.two').each(function(obj,idx) { 
    obj.addEvent('click', function() {
      hideothers(2) ;
      $$('div.acc-content.c2').each(function(obj,idx) { obj.slide('in') ; }) ;    
    }) ;
  }) ;
  
  $$('div.acc-header.three').each(function(obj,idx) { 
    obj.addEvent('click', function() {
      hideothers(3) ;
      $$('div.acc-content.c3').each(function(obj,idx) { obj.slide('in') ; }) ;    
    }) ;
  }) ;
  
  $$('div.acc-header.four').each(function(obj,idx) { 
    obj.addEvent('click', function() {
      hideothers(4) ;
      $$('div.acc-content.c4').each(function(obj,idx) { obj.slide('in') ; }) ;    
    }) ;
  }) ;
  
  $$('div.acc-header.five').each(function(obj,idx) { 
    obj.addEvent('click', function() {
      hideothers(5) ;
      $$('div.acc-content.c5').each(function(obj,idx) { obj.slide('in') ; }) ;    
    }) ;
  }) ;
  
  $$('div.acc-header.six').each(function(obj,idx) { 
    obj.addEvent('click', function() {
      hideothers(6) ;
      $$('div.acc-content.c6').each(function(obj,idx) { obj.slide('in') ; }) ;    
    }) ;
  }) ;
      
}) ;

function hideothers(num)
{
  if (num!=1) $$('div.acc-content.c1').each(function(obj,idx) { obj.slide('out') ; }) ;
  if (num!=2) $$('div.acc-content.c2').each(function(obj,idx) { obj.slide('out') ; }) ;
  if (num!=3) $$('div.acc-content.c3').each(function(obj,idx) { obj.slide('out') ; }) ;
  if (num!=4) $$('div.acc-content.c4').each(function(obj,idx) { obj.slide('out') ; }) ;
  if (num!=5) $$('div.acc-content.c5').each(function(obj,idx) { obj.slide('out') ; }) ;
  if (num!=6) $$('div.acc-content.c6').each(function(obj,idx) { obj.slide('out') ; }) ;
}
