
var fxCSSID = "STYLE" + Date.parse(new Date());
document.write("<style id='"+ fxCSSID+"'>TABLE.RowColorFX TBODY TR{");
document.write("r1:expression(this.parentNode.parentNode.evenColor= (this.parentNode.parentNode.evenColor==null)?'#e9ebf3':this.parentNode.parentNode.evenColor ); ");
document.write("r2:expression(this.parentNode.parentNode.oddColor= (this.parentNode.parentNode.oddColor==null)?'#FFFFFF':this.parentNode.parentNode.oddColor ); ");
document.write("background-color:expression((this.rowIndex%2)?this.parentNode.parentNode.evenColor:this.parentNode.parentNode.oddColor);");
document.write("}<\/style>");

String.prototype.Trim=function()
{return this.replace(/(^\s+)|\s+$/g,"");}


if(window.attachEvent){window.attachEvent("onload",IEdoRowColorFX);}
else if(window.addEventListener){window.addEventListener("load",doRowColorFX,false);}


function IEdoRowColorFX()
{
  document.getElementById(fxCSSID).removeNode(true);
  if(window.createPopup){ doRowColorFX();}
  else{ setTimeout(doRowColorFX,0);}
}



function doRowColorFX()
{
 var TBS = document.getElementsByTagName("table");

 for(var i=0;i<TBS.length;i++)
 {
  setRowColorFX(TBS[i]);
 }
 
 function setRowColorFX(tableObj)
 {
  if(tableObj.className.indexOf("RowColorFX")>=0)
  {
   tableObj.evenColor = (tableObj.getAttribute("evenColor")==null || tableObj.getAttribute("evenColor")=="")?"#e9ebf3":tableObj.getAttribute("evenColor");
   tableObj.oddColor = (tableObj.getAttribute("oddColor")==null || tableObj.getAttribute("oddColor")=="")?"#FFFFFF":tableObj.getAttribute("oddColor");
  
   if(tableObj.getAttribute("overColor")!=null && tableObj.getAttribute("overColor")!="")
   {tableObj.overColor = tableObj.getAttribute("overColor");}
  

   var newClass = ReplaceTxt(tableObj.className, "RowColorFX" , "");
   newClass = newClass.Trim();
   tableObj.className = newClass;

  
   for(var r = 0;r<tableObj.rows.length;r++)
   {
    if(tableObj.rows[r].parentNode.tagName.toLowerCase() =="tbody"){
		
		tableObj.rows[r].rIndex = r;
		if((r%2)==1)
		{tableObj.rows[r].style.backgroundColor =  tableObj.evenColor ;}
		else{ tableObj.rows[r].style.backgroundColor =  tableObj.oddColor;}
        
		if(tableObj.overColor!=null){
		tableObj.rows[r].onmouseover = function()
        {this.style.backgroundColor = tableObj.overColor;}

		tableObj.rows[r].onmouseout = function()
        {this.style.backgroundColor =( this.rIndex %2 )?tableObj.evenColor:tableObj.oddColor}
		}
	}
   }
  }
 }

 function ReplaceTxt(srcText, Old, New){
   var r, re;                  
   re =eval("/" + Old + "/g");
   r = srcText.replace(re, New);   
   return(r);                   
}
}


//#f7f7f7
//#e9ebf3

