/*
DynAPI Distribution
CheckBoxStyle (Default)
The DynAPI Distribution is distributed under the terms of the GNU LGPL license.
Requires: StyleManager, CheckBox
*/
function CheckBoxStyle (){
var style = new Style(); // create basic style object
style.styleName='CheckBoxStyle';
style.loadImages = function(){
if(!this.imageOn) this.imageOn = Styles.getImage('check_on.gif',13,13);
if(!this.imageOff) this.imageOff = Styles.getImage('check_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+'imgchk';
var ion = this.getStyleAttribute('imageOn');
var ioff = this.getStyleAttribute('imageOff');
if(all||act=='caption'){
img='';
if (this._checked && ion) {
img+='';
if(!this._caption) tbl=img;
else{
tbl='
' +img+' | ' +'' +this._getCapHTML()+' |