/* 
Derived from a script by Alejandro Gervasio. 
Modified to work in FireFox by Stefan Mischook for Killersites.com

How it works: just apply the CSS class of 'column' to your pages' main columns.
*/
matchColumns=function(){ 

     var divs,diff,col1Height, col2Height, col3Height, centerHeight,rightHeight,d1,d2,d3; 
	
		if( document.getElementById('aboutleftCol') != null)
		 d1 = document.getElementById('aboutleftCol');
		 else
		 if( document.getElementById('consultleftCol') != null)
		  d1 = document.getElementById('consultleftCol');
		 else
		 if( document.getElementById('contactusleftCol') != null)
		  d1 = document.getElementById('contactusleftCol');
		  else
		   if( document.getElementById('industsolleftCol') != null)
		    d1 = document.getElementById('industsolleftCol');
		  else
		   if( document.getElementById('loginleftCol') != null)
		    d1 = document.getElementById('loginleftCol');
		  else
		   if( document.getElementById('nataccountsleftCol') != null)
		    d1 = document.getElementById('nataccountsleftCol');
		  else
		   if( document.getElementById('productsleftCol') != null)
		    d1 = document.getElementById('productsleftCol');
		  else
		   if( document.getElementById('newsleftCol') != null)
		    d1 = document.getElementById('newsleftCol');
		  else
		   if( document.getElementById('environmentalleftCol') != null)
		    d1 = document.getElementById('environmentalleftCol');
		  else
		   if( document.getElementById('equipmentleftCol') != null)
		    d1 = document.getElementById('equipmentleftCol');
	 
	 if(d1.offsetHeight){ 

                     col1Height=d1.offsetHeight; 					

                } 

                else if(d1.style.pixelHeight){ 

                     col1Height=d1.style.pixelHeight;					 

                } 
				
	 
	 d2 = document.getElementById('insideCenter');
	 
	 if(d2.offsetHeight){ 

                     col2Height=d2.offsetHeight; 					

                } 

                else if(d2.style.pixelHeight){ 

                     col2Height=d2.style.pixelHeight;					 

                }
				
				
    
     // assign maximum height value to all of container <div> elements 
        
		
		
		col1Height = col2Height;
			  
		 

          d1.style.height=col1Height + "px"; 
		  //d2.style.height=col2Height + "px";
		  //d3.style.height=col3Height + "px";
		  

} 

// Runs the script when page loads 

window.onload=function(){ 

     if(document.getElementById){ 

          matchColumns();			 

     } 

} 


