} 
}  
	__cb_bind : function( data )	{				var datas = data.getElementsByTagName( 'Child' );		var len = datas.length;		if( len == 0 )		{			return ;		}				var tableEle = document.createElement( "table" );		tableEle.border = '0';		tableEle.cellspacing = '0';		tableEle.cellpadding = '0';		var tbody = document.createElement( "tbody" );		for( i = 0; i < len; i++ )		{			var imgid = this.__nodeid + '_' + i ;			var tr1 = document.createElement( "tr" );			var td1 = document.createElement( "td" );			td1.valign = "top";			td1.id = "td" + imgid ;			var tmp = datas[i];			var isLeafs = tmp.getElementsByTagName( 'IsLeaf' );			var img = document.createElement( "img" );			img.style.backgroundRepeat = 'no-repeat';			img.style.paddingLeft = '0px';			img.style.width = '8px';			img.style.height = '8px';			img.plusMinus = '+';	//default it is collapsed			img.id = imgid;			img.query = '0';		//default it needs to communicate with the server.						if ( isLeafs[0].firstChild.data == "false" )			{				img.src = "birt/images/Expand.gif" ;				img.style.cursor = 'pointer';				Event.observe( img, 'click', this.__neh_img_click_closure, false );			}			else			{				img.src = "birt/images/Leaf.gif" ;				img.style.cursor = 'default';			}			var nodeIds = tmp.getElementsByTagName( 'Id' );			img.nodeId = nodeIds[0].firstChild.data;						var bookmarks = tmp.getElementsByTagName( 'Bookmark' );			img.bookmark = bookmarks[0].firstChild.data;			td1.appendChild( img );			td1.appendChild( document.createTextNode( " " ) );			var spantmp = document.createElement( "input" );			var displaynames = tmp.getElementsByTagName( 'DisplayName' );			var displayname = displaynames[0].firstChild;			var s_displayname = "";			if( displayname )				s_displayname = displayname.data;							spantmp.type = "text";			spantmp.readOnly = true;						spantmp.value = s_displayname;			spantmp.title = s_displayname;			spantmp.id =  'span_' + imgid;			if( s_displayname.length > 0 )							spantmp.size = s_displayname.length;									var cssText = "cursor:pointer;border:0px;font-family:Verdana;font-size:9pt;background-color:#FFFFFF;overflow:visible;";						var styles = tmp.getElementsByTagName( 'Style' );			if( styles && styles.length > 0 )			{				if( styles[0].firstChild )					spantmp.style.cssText = cssText + styles[0].firstChild.data;				else					spantmp.style.cssText = cssText;										}										td1.appendChild( spantmp );			td1.noWrap = true;						tr1.appendChild( td1 );						var tr2 = document.createElement( "tr" );			var td2 = document.createElement( "td" );			td2.id = 'display' + imgid;			td2.style.paddingLeft = '16px';			td2.style.display = 'none';			tr2.appendChild( td2 );						tbody.appendChild( tr1 );			tbody.appendChild( tr2 );						//observe the text so that when click the text ,we can expand or collapse the toc			Event.observe( spantmp , 'mouseover', this.__neh_item_mouse_over, false );			Event.observe( spantmp , 'mouseout', this.__neh_item_mouse_out, false );				Event.observe( spantmp , 'click', this.__neh_item_click, false );			Event.observe( spantmp , 'keydown', this.__neh_item_click, false );		}		tableEle.appendChild( tbody );		var displayid = 'display' + this.__nodeid;		var ele= $( displayid );		var childLength = ele.childNodes.length;		if ( childLength == 0 )		{			ele.appendChild( tableEle );		}		else		{			ele.replaceChild( tableEle, ele.childNodes[0] );		}				this.__neh_resize( ); // hack	},
9270	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9270/978f26fb56f0fc38ad96587a53336a1beebf879c/AbstractBaseToc.js/clean/viewer/org.eclipse.birt.report.viewer/birt/webcontent/birt/ajax/ui/app/AbstractBaseToc.js