/*
 * jQuery Action Button Plugin v1.0
 *
 * Copyright (c) 2009 University of Oklahoma
 * Dual licensed under the MIT (MIT-LICENSE.txt)
 * and GPL (GPL-LICENSE.txt) licenses.
 *
 */
(function($){
$.fn.actionbutton = function(speed){

var s = this.selector;
var c = this.context;

start();

function start(){
	$(s + " a",c).each(function(i){
		$(s + " a .action_text",c).hide();
		$(this).hover(function(){
			$(s + " a",c).eq(i).find(".action_title").animate({"width": "152px"}, "fast");
			$(s + " a",c).eq(i).find(".action_text").slideDown();
			$(s + " a",c).eq(i).css("z-index","2");
			return false;
		},
		function(){
			$(s + " a",c).eq(i).find(".action_title").animate({"width": "77px"}, "fast");
			$(s + " a",c).eq(i).find(".action_text").slideUp();
			$(s + " a",c).eq(i).css("z-index","1");
			return false;
		});
	});
}
}
})(jQuery);