// Gaia Ajax Widgets Copyright (C) 2007 - 2008 Gaiaware AS. details at http://ajaxwidgets.com/
Gaia.Button=Class.create();Object.extend(Gaia.Button.prototype,Gaia.WebControl.prototype);Object.extend(Gaia.Button.prototype,{initialize:function(element,options){this.initializeButton(element,options);},initializeButton:function(element,options){this.initializeWebControl(element,options);},setText:function(value){this.element.value=value;return this;},setPostBackUrl:function(value){this.options.url=value;return this;},setOnClientClick:function(value){Element.observe(this.element,'click',value.bindAsEventListener(this));return this;},setTabIndex:function(value){this.element.tabIndex=value;return this;},_getElementPostValue:function(){return'';},_getElementPostValueEvent:function(){return'&'+this.getCallbackName()+'='+$F(this.element.id);}});Gaia.Button.browserFinishedLoading=true;