		var kmsb = {
			animated 	: false,
			current 	: false,
			
			expand : function(button) {
				var button_id = $(button).attr('id');
				var ypitch = '-'+$(button).css('zIndex')*33 + 'px';
				var xpitch = '250px';
				
				if (this.current == button_id) return false;
				if (this.animated) return false;
				if (button.expanded) return false;
				
				this.close();
				this.animated = true;
				
				$(button).css({'backgroundPosition': xpitch + ' ' + ypitch});
				$(button).animate({'width': '250px', 'backgroundPositionX': xpitch, 'backgroundPositionY': ypitch}, 300, function () { 
					kmsb.animated = false; button.expanded = true; 
				});
				
				if (console) console.log($(button).css('backgroundPosition'));
				
				this.current = $(button).id;
				
				return true;
			},
			
			close : function(button) {
				var button_id = $(button).attr('id');
				
				$('#kmsb_container > a').each(function () {
					var link = this;
					var ypitch = '-'+$(link).css('zIndex')*33 + 'px';
					var xpitch = '0px';
					
					$(link).css({'backgroundPosition': xpitch + ' ' + ypitch});
					$(link).animate({'width': '88px', 'backgroundPositionX': xpitch, 'backgroundPositionY': ypitch},  100, function () { link.expanded = false; });
				})
				
				this.current = false;
			}
		}
		
		$(document).ready(function() {
			$('.kmsb_site').hover(
				function() {
					kmsb.expand(this);
				},
				function() {
					kmsb.close(this);
				}
			);
		});
		
		