function hideFlashMessage(){
	if ($('flashMessage')){
		new Fx.Slide('flashMessage').slideOut();
	}
}

window.addEvent('load', function() {
    

	hideFlashMessage.delay(3000);

	//create our Accordion instance
	//if ($('pricelist')){
		var priceListAc = new Accordion($('pricelist'), 'h4.pricelistToggle', 'div.pricelistTable', {
			opacity: false,
			onActive: function(toggler, element){
				toggler.setStyle('color', '#000');
			},
			onBackground: function(toggler, element){
				toggler.setStyle('color', '#999');
			}
		});
	//}
	
	var priceListAc = new Accordion($('equipment-list'), 'h4.toggle', 'div.equip', {
		opacity: false,
		//display: -1,
		onActive: function(toggler, element){
		var img = toggler.getElement("img");
		var source = img.get("src");
		source = source.replace(".", "_downarrow.");
		img.set("src", source);
		},
		onBackground: function(toggler, element){
	var img = toggler.getElement("img");
		var source = img.get("src");
		source = source.replace("_downarrow.", ".");
		img.set("src", source);
		}
	});
	
	
	
	
	
	var data = [
       "1.gif", "2.gif", "3.gif","4.gif","5.gif","6.gif"
    ];
    // Initialize the Slideshow instance
    var myShow = new Slideshow('show', data, { loop:3, overlap:false, delay: 4000, transition: 'back:in:out', height: 303, hu: '/img/sidebars', width: 193 });
	

	
});