			var divMenu = new FSMenu('divMenu', false, 'visibility', 'visible', 'hidden');
			divMenu.cssLitClass = 'highlighted';
			divMenu.animInSpeed = 1;
			divMenu.animOutSpeed = 1;


			$(function(){
				//preload some images
				var preloaders = ['BMG_main_nav_arrow_on.gif','BMG_main_nav_arrow_off.gif','BMG_nav_bullet.gif','grey_arrow.gif'];
				var preloaded = [];
				var imgpath = '/images/';
				for (var i in preloaders) {
					preloaded[i] = new Image();
					preloaded[i].src = imgpath + preloaders[i];
				}

				//alert('pageload');
				//bind all nav_item_cell td cells that are NOT already having a table with class of open to have a mouseover event that sets class of internal table to open
				//and bind mouseout to undo that on same.
				$('.nav_item_cell').each(function(){
					var td = $(this);
					var table = $('table', td);

					//dropdown menu events always
					var menu_div = td.attr('id') + '_menu';
					td.bind('mouseover', {'menu_div':menu_div}, function(e){
						divMenu.show(e.data['menu_div'], this, 8, 26);
					});
					td.bind('mouseout', {'menu_div':menu_div}, function(e){
						divMenu.hide(e.data['menu_div']);
					});

					//hover menu events if its not open.
					if ( table.attr('class') != 'open') {

						//alert('binding event');
						td.bind('mouseover', {}, function(e){
							$('img', this).attr({'src':'/images/BMG_main_nav_arrow_on.gif'});
							table.attr('class', 'open');
							this.style.cursor = 'pointer';
							//alert('mouseover: ' + table.className);
						});
						td.bind('mouseout', {}, function(e){
							$('img', this).attr({'src':'/images/BMG_main_nav_arrow_off.gif'});
							table.attr('class', '');
							this.style.cursor = 'default';
							//alert('mouseout: ' + table.className);
						});
					};

					//lets always bind the cell click stuff.
					var url = $('a', table).attr('href');
					td.bind('click', {'url':url}, function(e){
						window.location.href = e.data['url'];
					});

				});
				
				//now do leftnav rollover things setup.



				//leftnav level 1
				//'off' nav1 items need cell click and rollver to set a highlighted style on the anchor.
				$('.nav_1_off').each(function(){
					var nav1_cell = $(this);
					var url = $('a', nav1_cell).attr('href');

					nav1_cell.bind('mouseover', {}, function(e){
						$('a', this).attr({'class':'live'});
						this.style.cursor = 'pointer';
					});
					nav1_cell.bind('mouseout', {}, function(e){
						$('a', this).attr({'class':''});
						this.style.cursor = 'default';
					});
					nav1_cell.bind('click', {'url':url}, function(e){
						window.location.href = e.data['url'];
					});
				});
				//'on' nav1 items only need a cell click and cursor rollover, and then only if they actually have a link in them ('opened' style)
				$('.nav_1_on').each(function(){
					var nav1_cell = $(this);
					var a = $('a', nav1_cell);
					if (a.length) {
						var url = a.attr('href');
						nav1_cell.bind('mouseover', {}, function(e){
							this.style.cursor = 'pointer';
						});
						nav1_cell.bind('mouseout', {}, function(e){
							this.style.cursor = 'default';
						});
						nav1_cell.bind('click', {'url':url}, function(e){
							window.location.href = e.data['url'];
						});
					}
				});

				//leftnav level 2
				$('.left_nav_container .nav2_cell').each(function(){
					var nav2_cell = $(this);
					var needs_event = $('td.nav_2_off', nav2_cell).length;
					if (needs_event) {
						var url = $('a', nav2_cell).attr('href');

						nav2_cell.bind('mouseover', {}, function(e){
							$('td.nav_2_lead img', this).attr({'src':'/images/BMG_nav_bullet.gif'});
							$('td.nav_2_off a', this).attr({'class':'live'});
							this.style.cursor = 'pointer';
						});
						nav2_cell.bind('mouseout', {}, function(e){
							$('td.nav_2_lead img', this).attr({'src':'/images/grey_arrow.gif'});
							$('td.nav_2_off a', this).attr({'class':''});
							this.style.cursor = 'default';
						});
						nav2_cell.bind('click', {'url':url}, function(e){
							window.location.href = e.data['url'];
						});
					}
				});
				
			});
	