/** 
* @copyright 2008, Curators of the University of Missouri 
*/ 
var muTigerStriping=new Class({Implements:Options,options:{elementsToSearch:["body"],debug:false},initialize:function(a,c,b){window.addEvent("domready",function(){this.begin(a,c,b);}.bind(this));},begin:function(a,c,b){this.setOptions(b);if(this.options.debug){this.errorreport=new objErrorReporter();if($type(a)!="string"||a==""||!$type(a)){this.errorreport.RecordError("I need the name of the class that will exclude a table from striping.");}else{this.__setExcluder(a);}if($type(c)!="string"||c==""||!$type(c)){this.errorreport.RecordError("I need the name of the class to apply to the odd rows.");}else{this.__setOddClass(c);}if(this.errorreport.ErrorsEncountered()){this.errorreport.DisplayErrors();}else{this.__setExcluder(a);this.__setOddClass(c);this.stripe();}}else{this.__setExcluder(a);this.__setOddClass(c);this.stripe();}},stripe:function(){this.options.elementsToSearch.each(function(a){$(a).getElements("table[class!="+this.ClassExcluder).each(function(b){intCounter=1;elmTbody=b.getElement("tbody");if($type(elmTbody)=="element"){b=elmTbody;}b.getChildren("tr").each(function(c){if(intCounter!=1&&!(intCounter%2)){c.addClass(this.OddClass);}++intCounter;}.bind(this));}.bind(this));}.bind(this));},__setExcluder:function(a){this.ClassExcluder=a;},__setOddClass:function(a){this.OddClass=a;}});