MWF.xApplication.BAM.summary = MWF.xApplication.BAM.summary || {}; MWF.xApplication.BAM.summary.Overview = new Class({ Extends: MWF.widget.Common, Implements: [Options, Events], options: { "style": "default" }, initialize: function(summary, node, data, options){ this.setOptions(options); this.path = "../x_component_BAM/summary/$Overview/"; this.cssPath = "../x_component_BAM/summary/$Overview/"+this.options.style+"/css.wcss"; this._loadCss(); this.summary = summary; this.app = this.summary.app; this.container = $(node); this.data = data; this.load(); }, load: function(){ this.node = new Element("div", {"styles": this.css.node}).inject(this.container); var html = "" + "" + "
" this.node.set("html", html); this.table = this.node.getElement("table"); this.cells = this.node.getElements("td"); this.table.setStyles(this.css.table); this.cells.setStyles(this.css.cells); for (var i=0; i<4; i++){ this.cells[i].setStyle("border-top", "0px"); } for (var i=4; i