window.addEvent('domready', function() {
	
	var bb = $$('#rt-header ul.menu > li');
	
	bb.each(function(el) {
		//var parent = el.getParent();
			if(!el.hasClass('active')) {
				var childs = el.getChildren('a');
				if(childs[0] != null) {
				var fx = new Fx.Styles(el,{duration:100,wait:false});
				el.addEvents(
				{'mouseenter':function() {
					fx.start({'background-position':'0px 1px','color':'#fff'})
					//childs[1].addClass('withBg');
				},
				'mouseleave':function() {
					fx.start({'background-position':'0px -84px','color':'#d6d6d6'});
					//childs[1].removeClass('withBg');
				}
				});
			}
		}
	});
	
	$$('.slider-container ul li:odd').addClass('odd');
	

	
	var imgs = $$('.tabs_backgrounds li');
	imgs.each(function(el,i) {
		el.addClass('opacity');
	});
	imgs.each(function(item){
        item.setStyle('opacity', 0.5);
		 var f = new Fx.Style (item,'opacity', {duration: 300, wait: false});
		 item.addEvents(
		{'mouseenter': function() {
			f.start(1);
			},
		'mouseleave': function() {
			f.start(0.5);
			}
		})
	})
});
