var ThisRow;
var LastRow;

function set_color(Row,Color) {
	var c     = null;
	var Cells = null;
	if (typeof(Row.style) == 'undefined') { 
		return false; 
	} else if (Row == ThisRow) { 
		return true; 
	} else if (typeof(document.getElementsByTagName)!='undefined') { 
		Cells = Row.getElementsByTagName('td');
	} else if (typeof(Row.cells) != 'undefined') {
		Cells = Row.cells; 
	} else  { 
		return false; 
	}
	var CellsCnt  = Cells.length;
	if (typeof(window.opera) == 'undefined' && typeof(Cells[0].getAttribute) != 'undefined') {
		for (c = 1; c < CellsCnt; c++) {
			Cells[c].setAttribute('bgcolor', Color, 0); 
		}
	} else {
		for (c = 1; c < CellsCnt; c++) {
			Cells[c].style.backgroundColor = Color;
		}
	}
	return true;
}

function grey(Row) { return set_color(Row,'#abc7eb'); }
function grey2(Row) { return set_color(Row,'#C4D1DF'); }
function white(Row) { return set_color(Row,'#ffffff'); }

/**
 * Adds the sidbar as a mozilla sidebar 
 */
function addMozillaSidebar( url ) {
	
	if ((typeof window.sidebar == "object") 
	      	&& (typeof window.sidebar.addPanel == "function")) { 
         
		window.sidebar.addPanel ("SC Veltheim", url ,""); 
	} else { 
		var rv = window.confirm 
	 		("This Seite nutzt Funktionen von Netscape 6/7.  " 
			+ "Wollen SIe eine neue Version herunterladen?"); 
		if (rv) {
			document.location.href = 
				"http://home.netscape.com/download/index.html";
		}
	} 
} 
