Prototype.Browser.IE6 = Prototype.Browser.IE && parseInt(navigator.userAgent.substring(navigator.userAgent.indexOf("MSIE")+5)) == 6;

fixHeightForEachElement = function(){

    var descriptionElms = false;    
    var maxDDHeight = 0;
    
    descriptionElms = $A( $('cw_content').select('.listing-type-grid .item-info') );
    
	//find max height
	for( i=0;i<descriptionElms.length;i++ ){
		maxDDHeight = (descriptionElms[i].getHeight() > maxDDHeight )?descriptionElms[i].getHeight():maxDDHeight;
		//console.log(maxDDHeight);
	}
	
	if(Prototype.Browser.IE6){	
		maxDDHeight += 20;
	}
	for( i=0;i<descriptionElms.length;i++ ){
		descriptionElms[i].style.height = maxDDHeight + 'px';
	}
    
}

initializeFixHeight = function(){
	if(Prototype.Browser.IE6){		
		window.setTimeout("fixHeightForEachElement()", 500);

	}else{
		fixHeightForEachElement();
	}
}

document.observe(   'dom:loaded'  ,   function(){   if($('cw_content')){    initializeFixHeight();    } }   );