// header animation 2 on subpages
	var Kwix = {

		start: function(){
			Kwix.parseKwicks();
		},

		parseKwicks: function(){

			var squeeze_to = 40;
			var max_height = 99;

			//get original heights
			var start_heights = new Array();
			var kwicks = $$('#al_header_2 .kwick');
			var fx = new Fx.Elements(kwicks, {wait: false, duration: 250, transition:Fx.Transitions.Cubic.easeOut});
			kwicks.each(function(kwick, i){

				start_heights[i] = kwick.getStyle('height').toInt();

				//mouse is in, squeeze and expand
				kwick.addEvent('mouseenter', function(e){

					var obj = {};
					obj[i] = {
						'height': [kwick.getStyle('height').toInt(), max_height]
					};

					var counter = 0;

					kwicks.each(function(other, j){
						if (other != kwick){
							var h = other.getStyle('height').toInt();
							if (h != squeeze_to) obj[j] = {'height': [h,squeeze_to] };
						}
					});
					fx.start(obj);
				}
				);
			});

			//mouse is out, squeeze back
			$('al_header_2').addEvent('mouseleave', function(e){
				var obj = {};
				kwicks.each(function(other, j){
					obj[j] = {'height': [other.getStyle('height').toInt(), start_heights[j]]};
				});
				fx.start(obj);
			});
		}
	};

	//lock and load!
	window.addEvent('domready',Kwix.start);
		
		
		/*
		
			window.addEvent('domready', function() { 
				//--horizontal slide for meta sidebar
				// init and hide
				var sidebarSlide = new Fx.Slide('meta_sidebar', {mode: 'horizontal'}).hide();
				
				// slide in
				$('slidein_anchor').addEvent('click', function(e){
					e.stop();
					sidebarSlide.slideIn();
				});
				
				// slide out
				$('icon_arrows').addEvent('click', function(e){
					e.stop();
					sidebarSlide.slideOut();
				});
				
			});
			
			*/