window.addEvent("domready", function(){
	topEl = $$('#top a');
	topEl.each(function(el){
		if(!el.hasClass('cat_act')){
			el.set('tween', {duration: 'long'});
			el.addEvents({
				"mouseenter": function() {
					this.set('tween', {duration: 0});
					this.tween('color', '#ffe400');
				},
				"mouseleave": function() {
					this.set('tween', {duration: 500});
					this.tween('color', '#ffffff');
				}
			});
		}
	});
	toolEl = $$('#tool a');
	toolEl.each(function(el){
		if(!el.hasClass('cat_act')){
			el.set('tween', {duration: 'long'});
			el.addEvents({
				"mouseenter": function() {
					this.set('tween', {duration: 0});
					this.tween('color', '#999999');
				},
				"mouseleave": function() {
					this.set('tween', {duration: 500});
					this.tween('color', '#3c64a9');
				}
			});
		}
	});
	langEl = $$('#lang a');
	langEl.each(function(el){
		if(!el.hasClass('cat_act')){
			el.set('tween', {duration: 'long'});
			el.addEvents({
				"mouseenter": function() {
					this.set('tween', {duration: 0});
					this.tween('color', '#3c64a9');
				},
				"mouseleave": function() {
					this.set('tween', {duration: 500});
					this.tween('color', '#999999');
				}
			});
		}
	});
	$('submitLogin').set('tween', {duration: 'long'});
	$('submitLogin').addEvents({
		"mouseenter": function() {
			this.set('tween', {duration: 0});
			this.tween('background-color', '#093073');
		},
		"mouseleave": function() {
			this.set('tween', {duration: 500});
			this.tween('background-color', '#B4B9BF');
		}
	});
	if($('submenu')){
		subEl = $$('#submenu a');
		subEl.each(function(el){
			if(!el.hasClass('cat_act') && !el.hasClass('fol_act') && !el.hasClass('doc_act')){
				el.set('tween', {duration: 'long'});
				el.addEvents({
					"mouseenter": function() {
						this.set('tween', {duration: 0});
						this.tween('background-color', '#A7B5CD');
					},
					"mouseleave": function() {
						this.set('tween', {duration: 500});
						this.tween('background-color', '#CED6E3');
					}
				});
			}
		});
	}
});