window.addEvents({
	'domready': function() {

		var kwicks = $$("#horizontal_container .horizontal_item");
		var fx = new Fx.Elements(kwicks, {wait: false, duration: 150, transition: Fx.Transitions.linear});

		kwicks.each(function(kwick, i) {
			kwick.addEvent("mouseenter", function(event) {
				var o = {};
				o[i] = {zIndex: [10] }
				kwicks.each(function(other, j) {
					if (i != j) {
						//ojo con el style opacity que en IE7 y IE8 no funciona
						o[j] = {zIndex: [j] };
					}
				});
				fx.start(o);
			});

		});


		//$('horizontal_item_gel').fireEvent('mouseenter');

	},
	'load': function() {
		// el evento load a veces se queda pillado con IE 6, mejor domready
	//	$('tab_title_fotos').fireEvent('mouseleave');
	}
});