/* 
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 divl,divc,divr,divHeight, divf; 
	 // get all <div> elements in the document 
         divl=document.getElementById('ColumnLeft'); 
	 divc=document.getElementById('content');
	 divr=document.getElementById('ColumnRight');
	 //divf=document.getElementById('footer');
	 if(divr.offsetHeight){
		//alert ("using offsetheight"); 
		divlh = divl.offsetHeight;
		divrh = divr.offsetHeight;
		if (divrh >= divlh) {
        	divHeight=divrh;
			}
		else {
			divHeight=divlh;
			}		 	
        } 
     else if(divr.style.pixelHeight){
		divlh = divl.style.pixelHeight;
		divrh = divr.style.pixelHeight;
		if (divrh >= divlh) {
        	divHeight=divrh;
			}
		else {
			divHeight=divlh;
			}
        } 
     //
	divl.style.height = divHeight + "px";
	divr.style.height = divHeight + "px";
	if (navigator.appName != "Microsoft Internet Explorer") {
		//alert ("Not IE");
		divc.style.height = divHeight + "px";
	}
	else {
		//alert ("IE");
		divc.style.height = divHeight + "px";
	}
	//divf.offsetTop = (divHeight + 222) + "px";
	//divf.style.top = (divHeight + 222) + "px";
    //alert(divHeight + ", " + divc.style.height + ", " + divl.style.height);
	// alert("Content starts at " + divc.style.offsetTop );
} 

// Runs the script when page loads 

window.onload=function(){ 

     if(document.getElementsByTagName){ 
		//alert ("calling function");
          matchColumns();			 

     } 

} 


