/*
DynAPI Distribution
RadioButtonStyle (Default)
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
Requires: StyleManager, RadioButton
*/
function RadioButtonStyle(){
var style = new Style(); // create basic style object
style.styleName='RadioButtonStyle';
style.loadImages = function(){
if(!this.imageOn) this.imageOn = Styles.getImage('radio_on.gif',13,13);
if(!this.imageOff) this.imageOff = Styles.getImage('radio_off.gif',13,13);
};
// initStyle will act as a function of the DynLayer object
style.initStyle = function(){
this.renderStyle();
};
// renderStyle will act as a function of the DynLayer object
style.renderStyle = function(act) {
var all=!act;
var img,tbl;
var id=this.id+'imgrad';
var ion = this.getStyleAttribute('imageOn');
var ioff = this.getStyleAttribute('imageOff');
if(all||act=='caption'){
img='';
if (this._selected && ion) {
img+='';
if(!this._caption) tbl=img;
else{
tbl='
' +img+' | ' +'' +this._getCapHTML()+' |