// Javascript

window.addEvent('domready', function() {
	var sliders = $$(".menubox");
	$$(".menu-item").each( function(trigger, x) {
		var sl = null;
		
		if (sliders[x] != undefined) {
			/*
			sl = new Fx.Slide(sliders[x], {
				duration: 100,
				transition: Fx.Transitions.linear
			});
			*/
		}
		
		
		var aTag = trigger.getElement('a');		
		trigger.myElem = sliders[x];		
		
		trigger.addEvents
		({	
			'mouseover': function(e) {
				this.addClass('hover');
				aTag.addClass('hover');
				if (this.myElem != undefined) {
					this.myElem.style.display = "block";
				}
				/*
				if (sl != null) {
					e = new Event(e);
					sl.slideIn();
					e.stop();
				}
				*/
			},	
			
			'mouseout': function(e) {
				this.removeClass('hover');
				aTag.removeClass('hover');
				if (this.myElem != undefined) {
					this.myElem.style.display = "none";
				}
				/*
				if (sl != null) {
					e = new Event(e);
					sl.slideOut();
					e.stop();
				}
				*/
			}
		});
		/*
		if (sl != null) {
			sl.hide();
		}
		*/
	}); // end of triggers.each

	if ($('logobar')) {
		new iCarousel("logobar-content", {  
		    idPrevious: "logobar-prev",  
		    idNext: "logobar-next",  
		    idToggle: "undefined",  
		    item: {  
		           klass: "logobar-item",  
		           size: 79  
		    },  
		    animation: {  
		           duration: 750,  
		           amount: 9  
		    }  
		});
	}
});
