		window.addEvent('domready', function() {
			
			// Declare this up here for IE
			var total_submenu_items = 0;
			var last_item = 0;
			var button_height = 0;

			// Do not let menu or content overflow the container
			var menu_column_height = $('left_container').getStyle('height').toInt()
			var content_container_height = $('content_container').getStyle('height').toInt()	
			// this page uses a right column
			if ($chk($('content_column')) != false){
				
				// What is larger?
				var content_column_height = $('content_column').getStyle('height').toInt()
				var maxheight = 0;				
				if(menu_column_height > content_column_height){
					maxheight = ((menu_column_height + 250) + 'px');
				} else {
					maxheight = (content_column_height + 'px');
				}
				$('content_container').setStyle("height", maxheight);	
				
			}
			
			// no right column on this page
			else {
					$('content_container').setStyle("height", ((menu_column_height + 200) + 'px'));
			}
	
			// submenu styling
			var all_menu_items = $$('#mainmenu_container ul.menu li');
			all_menu_items.each(function(el, i){
			
				// child menus
				var my_submenu_items = $ES('ul li', el);
				total_submenu_items = 0;

				// loop through child menus
				my_submenu_items.each(function(el2, i2){
					// mark as submenu
					el2.type = 1;
					el2.number = i2;
					total_submenu_items++;
				});
				
				//adjust button spacing
				if(total_submenu_items > 0){
					button_height = ((40 + (total_submenu_items * 18)) + 'px');
				} else {
					button_height = '30px';
				}				
				
				// get the last submenu id
				if(total_submenu_items > 0){
					last_item = (total_submenu_items -1);
				}

				// this is a regular menu
				if(el.type != 1){
					// resize for submenus
					var b1Toggle = new Fx.Style(el, 'height',{duration: 500});
					b1Toggle.start(button_height);
				} 
					
				// this is a submenu				
				else {
									
					// first submenu
					if(el.number == 0){
					
						// IE6 has different dimensions
						if(window.ie6 == true){
							el.setStyle("top", "-1px");				
						} else {
							el.setStyle("top", "3px");
						}
						el.setStyle("height", "8px");
						el.setStyle("padding-top", "0px");
						el.setStyle("background-image", "url(/templates/sago2/images/submenu_top.jpg)");
					}
					
					// last submenu
					else if(el.number == last_item){
						if(window.ie6 == true){
							el.setStyle("top", "-1px");				
						} else {
							el.setStyle("top", "0px");
						}
						el.setStyle("height", "32px");
						el.setStyle("padding-top", "0px");
						el.setStyle("background-image", "url(/templates/sago2/images/submenu_bot.jpg)");	
					}
						
					// normal submenu
					else {
						if(window.ie6 == true){
							el.setStyle("top", "-1px");
							el.setStyle("padding-top", "1px");
							el.setStyle("height", "17px");
						}
					}
					
				}
				
			});			
			
			// DEBUG: Throw an alert to make sure all the code executed (on IE6)
			//alert('JS code finished.');
			
		});
