window.onload=function(){
	var b;
	if (document.getElementsByTagName) {
		var tables=document.getElementsByTagName('table');
		for (var i=0;i<tables.length;i++) {
			if(tables[i].className=='zebra') {
				var trs=tables[i].getElementsByTagName('tr');
				var odd = true;
				for(var j=0;j<trs.length;j++) {
					if(trs[j].parentNode.nodeName=='TBODY')	{
						//if (odd) {trs[j].className='stripped';}
						odd = !odd;
						trs[j].onmouseover=function(){b=this.className;this.className='ruled';}
						trs[j].onmouseout=function(){if (typeof(b)!=="undefined") this.className=b;}
					}
				}
			}
		}
	}
};