window.addEvent('domready', function() {
	
	//create our Accordion instance - Content related
	var myAccordion = new Accordion($('accordion'), 'div.toggler', 'div.element_acc', {
		opacity: false,
		onActive: function(toggler, element_acc){
			toggler.setStyle('color', '#9d1837');
			toggler.setStyle('background', 'transparent url(fileadmin/pixabit/templates/images/accordion_open.gif) left top no-repeat');		
		},
		onBackground: function(toggler, element_acc){
			toggler.setStyle('color', '#9d1837');
			toggler.setStyle('background', 'transparent url(fileadmin/pixabit/templates/images/accordion_closed.gif) left top no-repeat');
		}
	});
	
	//create our Accordion instance for references 
	var myAccordion = new Accordion($('accordion_ref'), 'div.toggler_ref', 'div.element_ref', {
		opacity: false,
		onActive: function(toggler, element){
			toggler.setStyle('color', '#9d292b');	
			toggler.setStyle('font-weight', 'bold');
		},
		onBackground: function(toggler, element){
			toggler.setStyle('color', '#54504D');
			toggler.setStyle('font-weight', 'normal');
		}
	});
	
	//create our Accordion instance - Content
	var myAccordion2 = new Accordion($('accordion_center'), 'div.toggler_center', 'div.element_acc_center', {
		opacity: false,
		onActive: function(toggler, element_acc){
			toggler.setStyle('color', '#9d292b');
			toggler.setStyle('font-weight', 'bold');
			toggler.setStyle('background', 'transparent url(fileadmin/pixabit/templates/images/accordion_open_center.gif) left top no-repeat');		
		},
		onBackground: function(toggler, element_acc){
			toggler.setStyle('color', '#54504d');
			toggler.setStyle('font-weight', 'normal');
			toggler.setStyle('background', 'transparent url(fileadmin/pixabit/templates/images/accordion_closed_center.gif) left top no-repeat');
		}
	});	
});
