// Gaia Ajax Widgets Copyright (C) 2007 - 2008 Gaiaware AS. details at http://ajaxwidgets.com/
Gaia.DropDownList=Class.create();Object.extend(Gaia.DropDownList.prototype,Gaia.WebControl.prototype);Object.extend(Gaia.DropDownList.prototype,{initialize:function(element,options){this.initializeDropDownList(element,options);},initializeDropDownList:function(element,options){this.initializeWebControl(element,options);},setTabIndex:function(value){this.element.tabIndex=value;return this;},setSelectedIndex:function(value){if(value<this.element.options.length)
this.element.selectedIndex=value;return this;},clearItems:function(){this.element.options.length=0;return this;},addItem:function(item){this.element.options[this.element.options.length]=new Option(item.text,item.value);if(item.selected)
this.element.value=item.value;return this;},setAutoCallBack:function(value){return this;},_getElementPostValue:function(){return'&'+this.getCallbackName()+'='+$F(this.element.id);},_getElementPostValueEvent:function(){return'&'+this.getCallbackName()+'='+$F(this.element.id)+'&__EVENTTARGET='+this.getCallbackName();}});Gaia.DropDownList.browserFinishedLoading=true;