this.tablecloth = function(){
		
	var tableover = false;
	this.start = function(){
		var tables = document.getElementsByTagName("table");
		for (var i=0;i<tables.length;i++){
		  if(tables[i].className == "preisliste") {
        tables[i].onmouseover = function(){tableover = true};
        tables[i].onmouseout = function(){tableover = false};			
        rows(tables[i]);
      }
		};
	};
	
	this.rows = function(table){
		var css = "";
		var tr = table.getElementsByTagName("tr");
		for (var i=0;i<tr.length;i++){
			css = (css == "odd") ? "even" : "odd";
			tr[i].className = css;
		};
	};
	start();
	
};

/* script initiates on page load. */
window.onload = tablecloth;

