// Function calculates the height of the subcat-img box in the subcat-table and sets all subcat-image div within the row to the greatest height //
dojo.addOnLoad(function(){
		dojo.query('ul.subcat-table').forEach(function(row){ 
			var ceiling = 0;
			var tempHeight = 0;
			var columns = dojo.query('div.subcat-img', row);
			// establish the max height cache
			columns.forEach(function(item){ 
				tempHeight = dojo.contentBox(item).h; 
				if(tempHeight > ceiling)
					ceiling = tempHeight;
			});
			columns.forEach(function(item){
				dojo.style(item, "height", ceiling + "px");
			});
		});
	});

// Function calculates the height of the subcat-table li's and sets all li within the row to the greatest height //

dojo.addOnLoad(function(){
		dojo.query('ul.subcat-table').forEach(function(row){ 
			var ceiling = 0;
			var tempHeight = 0;
			var columns = dojo.query('li', row);
			// establish the max height cache
			columns.forEach(function(item){ 
				tempHeight = dojo.contentBox(item).h; 
				if(tempHeight > ceiling)
					ceiling = tempHeight;
			});
			columns.forEach(function(item){
				dojo.style(item, "height", ceiling + "px");
			});
		});
	});
  
// Function calculates the height of the font style guide li and sets all subcat-image div within the row to the greatest height //
dojo.addOnLoad(function(){
		dojo.query('ul.monogram-style-guide').forEach(function(row){ 
			var ceiling = 0;
			var tempHeight = 0;
			var columns = dojo.query('li', row);
			// establish the max height cache
			columns.forEach(function(item){ 
				tempHeight = dojo.contentBox(item).h; 
				if(tempHeight > ceiling)
					ceiling = tempHeight;
			});
			columns.forEach(function(item){
				dojo.style(item, "height", ceiling + "px");
			});
		});
	});
  
// Function calculates the height of the thumbnail cell on the mini-pip more views and sets all subcat-image div within the row to the greatest height //
dojo.addOnLoad(function(){
		dojo.query('div.moreviews').forEach(function(row){ 
			var ceiling = 0;
			var tempHeight = 0;
			var columns = dojo.query('div.thumb_item', row);
			// establish the max height cache
			columns.forEach(function(item){ 
				tempHeight = dojo.contentBox(item).h; 
				if(tempHeight > ceiling)
					ceiling = tempHeight;
			});
			columns.forEach(function(item){
				dojo.style(item, "height", ceiling + "px");
			});
		});
	});