		window.addEvent('domready', function(){
			var timerSet = false;
			var szNormal = 14, szSmall  = 14, szMed = 18;		
			
			var kwicks = $$("#ghost .seg");
			var fx = new Fx.Elements(kwicks, {wait: false, duration: 250, transition: Fx.Transitions.Quad.easeIn});
			kwicks.each(function(kwick, i) {
				var szExt = {};
				szExt[i] = kwick.getStyle("height").toInt();
				kwick.style.height = "14px";
				//mouse over event to expand a little bit
				kwick.addEvent("mouseover", function(event) {
					alertTimerId2 = setTimeout (function(event) {
						if (timerSet) {clearTimeout(alertTimerId);}
						var o = {};
						o[i] = {height: [kwick.getStyle("height").toInt(), szExt[i]]};
						kwicks.each(function(other, j) {
							if(i != j) {
								var w = other.getStyle("height").toInt();
								if(w != szSmall) o[j] = {height: [w, szSmall]};
							}
						});
						fx.start(o);
					} , 200);
				});
				//mouse over event to expand a little bit
				kwick.addEvent("click", function(event) {
					alertTimerId2 = setTimeout (function(event) {
						if (timerSet) {clearTimeout(alertTimerId);}
						var o = {};
						o[i] = {height: [kwick.getStyle("height").toInt(), szExt[i]]};
						kwicks.each(function(other, j) {
							if(i != j) {
								var w = other.getStyle("height").toInt();
								if(w != szSmall) o[j] = {height: [w, szSmall]};
							}
						});
						fx.start(o);
					} , 200);
				});
			});
			
			$("ghost").addEvent("mouseleave", function(event) {
				alertTimerId = setTimeout (function(event) {
					timerSet = true;
					var o = {};
					kwicks.each(function(kwick, i) {
						o[i] = {height: [kwick.getStyle("height").toInt(), szNormal]}
					});
					fx.start(o);
				} , 1000);
			})
			
		});

