// [Start]Modified by Neha For the elements in the table whose style is "none" then
// those donot break the UI color hover
function TableRowColorHoverInit(){
    var elem = "TR";
    if(document.getElementsByTagName){
        var el = document.getElementsByTagName(elem);
        var blnatl=true;
        for(var i=0; i<el.length; i++){
            if(el[i].childNodes[0]) {
                if(el[i].childNodes[0].tagName != "TH" && el[i].parentNode.parentNode.className.indexOf("TableStyle") != -1){
                    if (el[i].style.display!="none"){
                        //if(i%2 == 1){
                        if (blnatl==true){
                            el[i].className = "on";
                            el[i].onmouseout  = function(){this.className = "on";}
                           blnatl=false;
                        } else {
                            el[i].className = "off";
                            el[i].onmouseout  = function(){this.className = "off";}
                            blnatl=true;
                        }
                        el[i].onmouseover = function(){this.className = "hover";}
                    }
               }
           }
        }//end of for loop
    }// end of if statement
}// end of function

function DataGridRowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
   var blnatl=true;
    for(var i=3; i<el.length; i++){
        if (el[i].childNodes[0]){
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("DataGridStyle") != -1){
      if (el[i].style.display!="none"){
    // if(i%2 == 1){
     if (blnatl==true){
      el[i].className = "on";
      el[i].onmouseout  = function(){ this.className = "on";}
	  blnatl=false;
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){    this.className = "off";}
	  blnatl=true;
      }
    
      el[i].onmouseover = function(){this.className = "hover";}
	     
      }
      }
   }
  }
 }
}

// [End]Modified by Neha For the elements in the table whose style is "none" then
// those donot break the UI color hover
function Table1RowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=0; i<el.length; i++){
    if(el[i].childNodes[0]) 
    {
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("TableStyle1") != -1){
     if(i%2 == 1){
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
   }
   }
  }//end of for loop
 }// end of if statement
}// end of function

//fucntion added by subarna on 2-Feb-2007 similar to TableRowColorHoverInit
//since above logic for alternate colors was not working additional info table
function AltTableRowColorHover(){

  var elem = "TR";
  var flag= true;
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=0; i<el.length; i++)
    {
        if(el[i].childNodes[0]) 
        {
          if(el[i].childNodes[0].tagName != "TH"
          && el[i].parentNode.parentNode.className.indexOf("TableStyle") != -1)
          {
            if(flag==true)
            {
                flag=false
                el[i].className = "on";
                el[i].onmouseout  = function()
                {
	                this.className = "on";
	            }
            }
            else
            {
              flag=true;
              el[i].className = "off";
              el[i].onmouseout  = function()
              {
	            this.className = "off";
	          }
	        }
            el[i].onmouseover = function(){
	         this.className = "hover";
          }
        }
   }
  }//end of for loop
 }// end of if statement
}// end of function
function AltDataGridRowColorHover(){

  var elem = "TR";
  var flag= true;
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=3; i<el.length; i++){
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("DataGridStyle") != -1){
      if(flag==true){
      flag=false
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
     flag=true;
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
   }
  }
 }
}
function DataGrid1RowColorHoverInit(){

  var elem = "TR";
  if(document.getElementsByTagName){
   var el = document.getElementsByTagName(elem);
    for(var i=2; i<el.length; i++){
        if (el[i].childNodes[0]){
      if(el[i].childNodes[0].tagName != "TH"
      && el[i].parentNode.parentNode.className.indexOf("DataGridStyle") != -1){
     if(i%2 == 1){
      el[i].className = "on";
      el[i].onmouseout  = function(){
	     this.className = "on";
      }
    } else {
      el[i].className = "off";
      el[i].onmouseout  = function(){
	     this.className = "off";
      }
    }
      el[i].onmouseover = function(){
	     this.className = "hover";
      }
      }
   }
  }
 }
}

function ResultsTableStyleinit(){
    var elem = "TR";
    if(document.getElementsByTagName){
        var el = document.getElementsByTagName(elem);
        var blnatl=true;
        for(var i=0; i<el.length; i++){
            if(el[i].childNodes[0]) {
                if(el[i].childNodes[0].tagName != "TH" && el[i].parentNode.parentNode.className.indexOf("ResultsTableStyle") != -1){
                    if (el[i].style.display!="none"){
                        //if(i%2 == 1){
                        if (blnatl==true){
                            el[i].className = "on";
                            el[i].onmouseout  = function(){this.className = "on";}
                           blnatl=false;
                        } else {
                            el[i].className = "off";
                            el[i].onmouseout  = function(){this.className = "off";}
                            blnatl=true;
                        }
                        
                    }
               }
           }
        }//end of for loop
    }// end of if statement
}// end of function	  

function CFPStyleinit(){
    var elem = "TR";
    if(document.getElementsByTagName){
        var el = document.getElementsByTagName(elem);
        var blnatl=true;
        for(var i=0; i<el.length; i++){
            if(el[i].childNodes[0]) {
                if(el[i].childNodes[0].tagName != "TH" && el[i].parentNode.parentNode.className.indexOf("CFPStyle") != -1){
                    if (el[i].style.display!="none"){
                        //if(i%2 == 1){
                        if (blnatl==true){
                            el[i].className = "on";
                            el[i].onmouseout  = function(){this.className = "on";}
                           blnatl=false;
                        } else {
                            el[i].className = "off";
                            el[i].onmouseout  = function(){this.className = "off";}
                            blnatl=true;
                        }
                        
                    }
               }
           }
        }//end of for loop
    }// end of if statement
}// end of function