  jQuery(document).ready(function() {
  	jQuery('ul.subthemas').addClass('arrow');
  	jQuery(".tab_content_item").find('ul').addClass('arrow');
  	jQuery(".thema_column ul").addClass('arrow');
  	
  	jQuery("#tabs").find('ul').not('.arrow').find('a').each(function() {
  		tmp = this.href;
  		tmp = tmp.replace(/^[^#]*/,"");
  		
  		this.href = tmp;
  	})
  	
    if (jQuery("#tabs").length > 0) {
    	jQuery("#tabs").tabs();
	  }
    
    var cnt=0;
    var activeAcc = 0;
    
    jQuery(".accordion h5").each(function() {
    	if (jQuery(this).attr("class").match(/activeAcc/)) {
    		activeAcc = cnt;
    	}
    	cnt++;
    });
    
    if (jQuery(".accordion").length > 0) {
    	jQuery(".accordion").accordion({ autoHeight: false, active: activeAcc });
	}
    
  });


