/*------------- [ BRANDS MENU ] -------------*/

	Event.observe(window, 'load', function(){
		$$('#logo div.brands div a img').each(function(element){
			if(element.up('a').readAttribute('href') == '#')
				return;
			
			element.observe('mouseover', function(){
				if(this.delayTimer)
					clearTimeout(this.delayTimer);
				
  				if(this.shown)
  					return;
  				
  				this.shown = true;
				new Effect.Opacity(this, { from: 1, to: 0, duration: 0.175 });
			});
			
			element.observe('mouseout', function(){
				if(this.delayTimer)
  					clearTimeout(this.delayTimer);
  	
    			this.delayTimer = setTimeout(function(){
      				this.delayTimer = null;
					new Effect.Opacity(this, { from: 0, to: 1, duration: 0.175 });
					this.shown = false;
    			}.bind(this), 175);
			});
		});
	});