//v.2.5 build 91111
/*
Copyright DHTMLX LTD. http://www.dhtmlx.com
To use this component please contact sales@dhtmlx.com to obtain license
*/
dhtmlXGridObject.prototype._in_header_collapse=function(t,i,c){
var rt=t.tagName=="TD"?t:t.parentNode;
i=rt._cellIndexS;
if (!this._column_groups) this._column_groups=[];
var cols=c[1].split(":")
var count = parseInt(cols[0]);
t.innerHTML=c[0]+""+(cols[1]||"")+"";
t.style.paddingBottom='0px';
var self = this;
this._column_groups[i]=t.getElementsByTagName("IMG")[0];
this._column_groups[i].onclick=function(e){
(e||event).cancelBubble=true;
this._cstate=!this._cstate;
for (var j=i+1; j<(i+count); j++)
self.setColumnHidden(j,this._cstate)
if (this._cstate){
if (rt.colSpan && rt.colSpan>0) {
rt._exp_colspan=rt.colSpan;
var delta=Math.max(1,rt.colSpan-count)
if (!_isFF || window._KHTMLrv) //create additional cells to compensate colspan
for (var z=0; z