jQuery(document).ready(init_toogle_items);

function init_toogle_items(){
  jQuery('.toogle_body').hide();

  jQuery('.toogle_arrow a').bind('click', function(){

    var o_next = jQuery(this).parent().next();
    if(o_next.css('display')=='none'){
      o_next.slideDown(); 
      
      jQuery('.toogle_arrow.selected a').trigger('click');
      jQuery(this).parent().addClass('selected'); 
      
      
      
    }else{
      o_next.slideUp();  
      jQuery(this).parent().removeClass('selected'); 
    }
    return false;  
    
  });
  var anchor = window.location.hash;

  if(anchor !=''){
    jQuery('.toogle_arrow.selected').removeClass('selected');
    
    jQuery('a').each(function(i){
      if(jQuery(this).attr('href')== anchor){
        jQuery(this).trigger('click');
        
        //alert(anchor); 
               
      }
      
    });
    
  
  }else{
    jQuery('.toogle_arrow.selected').next().show();
  }

}


