/* 
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.
*/
matchColumns1=function(){ 

     var divs1,contDivs1,maxHeight1,divHeight1,d1; 
	
     // get all <div> elements in the document 
     divs1=document.getElementsByTagName('div'); 

     contDivs1=[]; 

     // initialize maximum height value 

     maxHeight1=0; 

     // iterate over all <div> elements in the document 

     for(var i=0;i<divs1.length;i++){ 

          // make collection with <div> elements with class attribute 'container' 

          if(/\bcolumn\b/.test(divs1[i].className)){ 

                d1=divs1[i]; 

                contDivs1[contDivs1.length]=d1; 

                // determine height for <div> element 

                if(d1.offsetHeight){ 

                     divHeight1=d1.offsetHeight; 					

                } 

                else if(d1.style.pixelHeight){ 

                     divHeight1=d1.style.pixelHeight;					 

                } 

                // calculate maximum height 

                maxHeight1=Math.max(maxHeight1,divHeight1); 

          } 

     } 

     // assign maximum height value to all of container <div> elements 

     for(var i=0;i<contDivs1.length;i++){ 

          contDivs1[i].style.height=maxHeight1 + "px"; 

     } 

} 

// Runs the script when page loads 

window.onload=function(){ 

     if(document.getElementsByTagName){ 

          matchColumns1();			 

     } 

} 



