/*
 
Correctly handle height:100% in Win IE 5.5 & 6.

Use in <HEAD> with DEFER keyword wrapped in conditional comments:
<!--[if lt IE 7]>
<script defer type="text/javascript" src="heightfix.js"></script>
<![endif]-->



*/

function fixHeights(){
	
	var maxHeight = 0;
	
	for(var i=0; i<document.getElementsByTagName('div').length; i++){
			
		var curObj = document.getElementsByTagName('div')[i];
		
		if(curObj.className.indexOf("shadowSide") > -1){
			//maxHeight = Math.max(maxHeight, curObj.parentNode.offsetHeight); 
			curObj.style.height = curObj.parentNode.offsetHeight+"px";
		}
		if(curObj.className.indexOf("subMenuArea") > -1){
			
			curObj.style.height = curObj.parentNode.offsetHeight-50+"px";
		}
//		if(curObj.className.indexOf("subMenuArea") > -1){
//			maxHeight = Math.max(maxHeight, curObj.offsetHeight); 
//			curObj.style.height = maxHeight+"px";
//		}
	}
}
