if (!Bs_Objects) {var Bs_Objects = [];};function Bs_Button() { this._id;this._objectId;this.id;this.group;this._status = 1;this.inactiveStyle = 3;this._imgPathDefault = '/_bsImages/buttons/';this.imgPath;this.imgName;this.height;this.width;this.backgroundColor;this.title;this.caption;this.action;this.cssClassDefault = 'bsBtnDefault';this.cssClassMouseOver = 'bsBtnMouseOver';this.cssClassMouseDown = 'bsBtnMouseDown';this._buttonBar;this.actualizeFromChildren = 0;this._childrenButtonBar;this._isDragAction;this._attachedEvents = new Array;this._constructor = function() { this._id = Bs_Objects.length;Bs_Objects[this._id] = this;this._objectId = "Bs_Button_"+this._id;} this.attachEvent = function(fire, e) { if (typeof(e) == 'undefined') e = 'on';if (typeof(this._attachedEvents[e]) == 'undefined') this._attachedEvents[e] = new Array;this._attachedEvents[e][this._attachedEvents[e].length] = fire;} this.attachFireOff = function(param) { } this.render = function() { var isGecko = this._isGecko();var out = new Array;var containerStyle = new Array;out[out.length] = '
';var tagType = 'div';out[out.length] = '<' + tagType;out[out.length] = ' id="' + this._getId() + '"';if (typeof(this.title) != 'undefined') { out[out.length] = ' title="' + this.title + '"';} out[out.length] = ' unselectable="on"';captionType = typeof(this.caption);if (captionType != 'undefined') { containerStyle[containerStyle.length] = 'width:auto';} else { if (typeof(this.width) != 'undefined') containerStyle[containerStyle.length] = 'width:' + this.width + 'px';if (typeof(this.height) != 'undefined') containerStyle[containerStyle.length] = 'height:' + this.height + 'px';} if (typeof(this.backgroundColor) != 'undefined') containerStyle[containerStyle.length] = 'background-color:' + this.backgroundColor;switch (this._status) { case 0: var filter = this._getInactiveStyleFilter();if (typeof(filter) == 'string') { containerStyle[containerStyle.length] = 'filter:' + filter;} case 1: out[out.length] = ' class="' + this.cssClassDefault + '"';break;case 2: out[out.length] = ' class="' + this.cssClassMouseDown + '"';break;} out[out.length] = ' style="' + containerStyle.join(';') + '"';out[out.length] = ' onMouseOver="Bs_Objects['+this._id+'].mouseOver(this);"';out[out.length] = ' onMouseOut="Bs_Objects['+this._id+'].mouseOut(this);"';out[out.length] = ' onMouseDown="Bs_Objects['+this._id+'].mouseDown(this);"';out[out.length] = ' onMouseUp="Bs_Objects['+this._id+'].mouseUp(this);"';out[out.length] = '>';if (typeof(this.imgName) != 'undefined') { var imgFullPath = '';imgFullPath += this._getImgPath();imgFullPath += this.imgName;if (this.imgName.substr(this.imgName.length -4) != '.gif') imgFullPath += '.gif';out[out.length] = ' 18)) out[out.length] = ' style="vertical-align:top;"';out[out.length] = '>';} captionType = typeof(this.caption);if (captionType != 'undefined') { if (captionType == 'string') { out[out.length] = this.caption;} else { out[out.length] = this.title;} if (!isGecko) out[out.length] = ' ';} if ((typeof(this._childrenButtonBar) != 'undefined') && (this.numberOfAttachedEvents('on') == 0)) { this.group = this._objectId + '_pseudoGroup';var imgFullPath = '';if (this.imgPath) imgFullPath += this._getImgPath();imgFullPath += 'small_black_arrow_down.gif';out[out.length] = '  ';var subBarString = this._childrenButtonBar.render();subBarString = '';out[out.length] = subBarString;} out[out.length] = '';out[out.length] = '
';return out.join('');} this.drawOut = function() { document.writeln(this.render());} this.drawInto = function(elm) { if (typeof(elm) == 'string') { elm = document.getElementById(elm);} if (elm != null) { var x = this.render(); //x = x.replace(//, ''); //x = x.replace(/<\/nobr>/, ''); x = x.replace(//, ''); x = x.replace(/<\/nobr>/, '<\/span>'); elm.innerHTML = x;} } this.mouseOver = function(div) { if (this._status == 2) return;if (this._status == 0) return;if (!this._isGecko()) { div.className = this.cssClassMouseOver;} this._fireEvent('over');} this.mouseOut = function(div) { if (this._status == 2) return;if (this._status == 0) return;if (!this._isGecko()) { div.className = this.cssClassDefault;} this._fireEvent('out');} this.mouseDown = function(div) { if (this._status == 0) return;this._isDragAction = false;div.className = this.cssClassMouseDown;} this.mouseUp = function(div) { if (this._status == 0) return;var doFireOn = true;var doFireOff = false;if (this._isGecko()) { div.className = this.cssClassDefault;} else { div.className = this.cssClassMouseOver;} if (typeof(this.group) != 'undefined') { if (this._status == 2) { this._status = 1;doFireOn = false;doFireOff = true;} else { div.className = this.cssClassMouseDown;this._status = 2;this._deactivateOtherGroupButtons();} } if (this._isDragAction) doFireOn = false;if (doFireOn) { this._fireEvent('on');} else if (doFireOff) { this._fireEvent('off');} } this.dragStart = function(div) { if (this._status == 0) return false;this._isDragAction = true;div.className = this.cssClassMouseOver;return false;} this._deactivateOtherGroupButtons = function() { if (typeof(this._buttonBar) == 'undefined') return;for (var i=0; i