/* javascript 'hack' to fill empty cells so there is not a big black gap in the table */
var isIE = ((navigator.appName) == "Microsoft Internet Explorer")? true : false;	
function fillCells(){
	var specialTbl = document.getElementById('special');			// grab table 
	// get last TR in table - we will add the extra cells to this row
	var lastTr = (isIE)? specialTbl.lastChild.lastChild : specialTbl.lastChild.lastChild.previousSibling;	
	
	var numCols = cleanUp(specialTbl.lastChild.firstChild.childNodes).length;	// count the number of TDs in first TR
	var numLastRowCells = cleanUp(lastTr.childNodes).length;					// count the number of TDs in the last row

	// if the last row doesn't have the same number of cells as the first row..
	if(numCols != numLastRowCells){
		var numBlankCells = numCols - numLastRowCells;	// calc the number of missing cells
		for(var i = 0; i<numBlankCells; i++){
			var tmpCell = document.createElement('td');	// create a new td element
			tmpCell.innerHTML = "&nbsp;";				// fill it with an empty character
			lastTr.appendChild(tmpCell);				// add the td cell to the last row
		}
	}
}

/* more for firefox - filter out all textnodes and crap - returns just elements */
function cleanUp(dirtyRows){
	var cleanRows = new Array();
	// grab only element nodes
	for(var i = 0; i<dirtyRows.length;i++){
		if(dirtyRows[i].nodeType == 1){
			cleanRows.push(dirtyRows[i]);
		}
	}
	return cleanRows;
}