/**
Alternate Color in Rows v2.0 - K Hackenberg (Gould) 03-14-2007
(original code from: http://www.sitepoint.com/article/background-colors-javascript)
exists or add to stylesheet ---
	.odd{background-color:#eeeef7;}
	.even{background-color:#ffffff;}
exists or add onLoad function, enter item ID and tag to colorize, ex. ---	
	<body onLoad="alternate('colorMe', 'p')">
exists or add table id, ex. ---	
<table id="colorMe">
 */
		
function alternate(id, tag){ 
 if(document.getElementsByTagName){  
   var thisItem = document.getElementById(id);   
    if(thisItem){ 
       var rows = thisItem.getElementsByTagName(tag);   
       for(i = 0; i < rows.length; i++){           
     //manipulate rows 
         if(i % 2 == 0){ 
           rows[i].className = "odd"; 
         }else{ 
           rows[i].className = "even"; 
         }     
         }  
   } 
 } 
}

