// MootTools 1.11 FX for harmonica
		window.addEvent('domready', function(){
			var szNormal = 65, szSmall  = 65, szFull   = 280;
			
			
			var test_kwick_css;
			test_kwick_css = $('kwicks').getStyle("display");		 

			if (test_kwick_css == "none") { // only activate the harmonica if css is available
				$('kwicks').setStyle('display','block');

				var kwicks = $$("#kwicks .kwick");
				
				var fx = new Fx.Elements(kwicks, {wait: false, duration: 300, transition: Fx.Transitions.Back.easeOut});
				kwicks.each(function(kwick, i) {
					kwick.addEvent("mouseenter", function(event) {
						$clear(periodical);
						var o = {};
						o[i] = {width: [kwick.getStyle("width").toInt(), szFull]}
						
						kwick.style.backgroundPositionX = 'right';
						
						kwicks.each(function(other, j) {
							if(i != j) {
								var w = other.getStyle("width").toInt();
								if(w != szSmall) o[j] = {width: [w, szSmall]};
								other.style.backgroundPositionX = 'left';
							}
						});
						fx.start(o);
					});
				});
				/*	depricated (or better: not used at all)
						$("kwicks").addEvent("mouseleave", function(event) {
							var o = {};
							kwicks.each(function(kwick, i) {
								// o[i] = {width: [kwick.getStyle("width").toInt(), szNormal]}
							});
							fx.start(o);
						})
				*/
	
				// try to set 1 item open
				kwick2open = 4;
				openkwickbynumber(kwick2open);
	
				// try to set items open periodically
				var test = function() {
					kwicks.each(function(kwick, i) {
						var o = {};
						
						kwicks.each(function(other, j) {
							if(i != j) {
								var w = other.getStyle("width").toInt();
								if(w != szSmall) o[j] = {width: [w, szSmall]};
								other.style.backgroundPositionX = 'left';
							}
						});
					fx.start(o);
					});
	
					// get a random number, but not the last one, this one is fixed
					randomnumber = getrandomkwicksnumber(kwick2open);
					kwick2open = randomnumber;
					openkwickbynumber(kwick2open);
				}			
				periodical = test.periodical(5000);
			}
		});
		function openkwickbynumber(number) {
			random_element = "kwick_"+number;
			var current = $(random_element);
			current.style.width = '280px';
			current.style.backgroundPositionX = 'right';	
		}
		
		function getrandomkwicksnumber(notallowed) {
			generated = Math.floor(Math.random()*4)+1;
			// while (generated == notallowed && (generated < 1 || generated > 5)){
			while (generated == notallowed){
				generated = Math.floor(Math.random()*4)+1;
			}
			return generated;
		}
