window.addEvent('load', function() {

	/**
	 * accordion car info
	 * creates car info accordion
	 *
	 * author Rocco Janse <rocco@efocus.nl>
	 */
	
	if(ge('accordion')) {
		var accordion = new Accordion('a.toggler', 'div.element', {
							opacity: false,
							onActive: function(toggler, element) {
								toggler.blur();
								toggler.setStyles({
									'color': '#ffffff',
									'background': 'transparent url(/spykersquadron/siteimg/ico_list_toggler_open.gif) no-repeat 225px 10px'
								});
							},
							onBackground: function(toggler, element) {
								toggler.blur();
								toggler.setStyles({
									'color': '#838383',
									'background': 'transparent url(/spykersquadron/siteimg/ico_list_toggler.gif) no-repeat 225px 10px'
								});
							}
		}, $('accordion'));
	}

	if(ge('accordion2')) {
		var accordion2 = new Accordion('a.toggler', 'div.element', {
							opacity: false,
							onActive: function(toggler, element) {
								toggler.blur();
								toggler.setStyle('color', '#ffffff');
							},
							onBackground: function(toggler, element) {
								toggler.blur();
								toggler.setStyle('color', '#838383');
							}
		}, $('accordion2'));
	}
});

function ge(id) {
	return document.getElementById(id);
}