if (!self.swingbox) {
	var swingbox = {
		swingboxInit: function() {
			swingbox.modules = document.getElementsByClassName("swing");
			swingbox.modulesText = document.getElementsByClassName("swing_text");
			var x = new Fx.Elements(swingbox.modulesText, { wait: false, duration: 250 });
			
      var obj = {};
			swingbox.modules.each(function(module, i) {			  
				swingbox.modulesText[i].collapseH = module.getElementsByTagName('H3')[0].offsetHeight;
				obj[i] = { 'height': [swingbox.modulesText[i].getStyle('height').toInt(), swingbox.modulesText[i].collapseH]};
				module.addEvent('mouseenter', function(e) {
					var obj = {};
					obj[i] = { 'height': [swingbox.modulesText[i].getStyle('height').toInt(), swingbox.expandH]};
					swingbox.modules.each(function(other, j) {
						if (other != module) {
							var h = swingbox.modulesText[j].getStyle('height').toInt();
							if (h != swingbox.modulesText[j].collapseH) obj[j] = { 'height': [h, swingbox.modulesText[j].collapseH] };
						}
					});
					x.start(obj);
				});
				
				module.addEvent('mouseleave', function(e) {
					var obj = {};
					swingbox.modules.each(function(other, j) {
						obj[j] = { 'height': [swingbox.modulesText[j].getStyle('height').toInt(), swingbox.modulesText[j].collapseH]};
					});
					x.start(obj);
				});
			});
			x.start(obj);
		}
	}
	
	window.addEvent('load', swingbox.swingboxInit);
}

