function getMenuHeight(calledFrom){
	
	// Set divHeight back to zero...
	var divHeight = 0;
	
	// Get the DIV elements within the calledFrom element...
	var tagObj = document.getElementById(calledFrom).getElementsByTagName('div');
	
	// Loop through and check if they are "the droids we are looking for", and add height accordingly...
	for(i=0;i<tagObj.length;i++){
		
		if(calledFrom != "commercial"){
			divHeight += getItemHeight(tagObj[i]);
		}
		else if(tagObj[i].parentNode.parentNode.className == "commercial_details" && tagObj[i].parentNode.style.display != "none"){
			divHeight += getItemHeight(tagObj[i]);
		}
 
	}
	
	// Find out if there is an iFrame inside the DIV...
	var iFrameObj = document.getElementById(calledFrom).getElementsByTagName('iframe');
	
	// Add the bottom padding as well, if there are any items displayed...
	if(divHeight > 0) divHeight += 9;
	
	
	if(iFrameObj.length > 0){
		iFrameObj[0].style.height = divHeight + "px";
	}
	
	// Return the height value...
	return divHeight;

}

function getItemHeight(passedItem){
	
	var itemHeight = 0;
	
	switch(passedItem.className){
		case "txtLink":
			itemHeight = 16;
			break; 
		case "vehicleImage":
			itemHeight = 87;
			break; 
		case "txtPrice":
			itemHeight = 24;
			break; 
		case "moreForLess":
			itemHeight = 95;
			break; 
		case "offers":
			itemHeight = 20;
			break; 
		case "bluemoon":
			itemHeight = 95;
			break; 				
	}
	
	return itemHeight;
}