var byngsys = 
{
	/**
	 * Start the page 
	 */
	start : function ()
	{	
		if ($('accordion')) {
				var accordion = new Accordion('.toggler', '.element', {
					opacity: false,
					onActive: function(toggler) { toggler.addClass('active')},
					onBackground: function(toggler) { toggler.removeClass('active')}
					}, $('accordion'));
		}
		if ($('case')) {
			gc = new GoodCarousel("case", {width: 467, height: 450});
		}
		if ($('showcase')) {
			var myGallery = new gallery($('showcase'), {
				timed: true						
			});
		}			
		if ($$('.header-product-bar')) {
			var productBar = new Fx.Slide('productBar').hide();		
			$('product').addEvent('click', function(e){
				e.stop();
				productBar.toggle();
				$('product').toggleClass('toggle');
			});
			var productShow = new productSelector();
		}
		// create the tooltips  
		var tips = $$('.tips').filter(function(el) {
			var title = el.getProperty('title').split("::");
			el.store('tip:title', title[0]).store('tip:text', (title[1] ? title[1] : '')); 	
			return true;
		});
		var tooltips = new Tips(tips,{  
			 className: 'bg-tips',  
			 fixed: true,  
			 hideDelay: 50,  
			 showDelay: 50
		 });
	}
}
// domread -> load the page
window.addEvent('domready', byngsys.start);