/*
	
*/                                                   
		
function slideMenu(el, select) {
	//alert(expandSize);
	var small = 165, full = expandSize;

	//var sections = $$("#sm .section");
	var sections = $(el).getChildren('li');
	var fx = new Fx.Elements(sections, {link: 'cancel', duration: 500, transition: Fx.Transitions.Sine.easeOut});
	sections.each(function(section, i) {
	
		section.addEvent("mouseenter", function(event) {
			var o = {};
			o[i] = {width: [section.getStyle("width").toInt(), full]}
			sections.each(function(other, j) {
				other.getFirst('a.market_type').setStyle('background', '#fff');
				if(i != j) {
					var w = other.getStyle("width").toInt();
					if(w != small) o[j] = {width: [w, small]};
				}
			});
			this.getFirst('a.market_type').setStyle('background', '#C6EEFA');
			fx.start(o);
		});
		
		if(select==i){
			var o = {};
			o[i] = {width: [section.getStyle("width").toInt(), full]}
			sections.each(function(other, j) {
				if(i != j) {
					var w = other.getStyle("width").toInt();
					if(w != small) o[j] = {width: [w, small]};
				}
			});
			fx.start(o);
		}
		
		section.addEvent("mouseleave", function(event) {
			this.getFirst('a.market_type').setStyle('background', '#C6EEFA');
		});
		
		//To reset values
		/*section.addEvent("mouseleave", function(event) {
			var o = {};
			sections.each(function(section, i) {
				o[i] = {width: [section.getStyle("width").toInt(), szNormal]}
			});
			fx.start(o);
		});*/
	});
}