			var divMenu = null;
			var cntryMenu = null;

			$(function(){
				//preload some images

				//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.
				divMenu = new FSMenu('divMenu', false, 'visibility', 'visible', 'hidden');
				divMenu.cssLitClass = 'highlighted';
				divMenu.animInSpeed = 1;
				divMenu.animOutSpeed = 1;

				$('#main_nav_table td').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, 0, 40);
					});
					td.bind('mouseout', {'menu_div':menu_div}, function(e){
						divMenu.hide(e.data['menu_div']);
					});

					//hover menu events if its not open.
					if ( td.attr('class') != 'topnav_inactive') {
						td.bind('mouseover', {}, function(e){
							td.attr('class', 'topnav_inactive');
							this.style.cursor = 'pointer';
						});
						td.bind('mouseout', {}, function(e){
							td.attr('class', 'topnav');
							this.style.cursor = 'default';
						});
					};

					//lets always bind the cell click stuff.
					var url = $('a', td).attr('href');
					td.bind('click', {'url':url}, function(e){
						window.location.href = e.data['url'];
					});
				});
		
				//feature nav highlight events stuff
				$('td.tr_feature_nav').each(function(){
					var td = $(this);
					td.bind('mouseover', {}, function(e){
						td.attr('class', 'tr_feature_nav_hover');
						this.style.cursor = 'pointer';
					});
					td.bind('mouseout', {}, function(e){
						td.attr('class', 'tr_feature_nav');
						this.style.cursor = 'default';
					});
				});
				
				//I apologize for this. its for the homepage. i didnt do the html. the selectors are bad.
				//feature nav highlight events stuff
				$('td.feature_button_home').each(function(){
					var td = $(this);
					td.bind('mouseover', {}, function(e){
						td.attr('class', 'feature_button_home_hover');
						this.style.cursor = 'pointer';
					});
					td.bind('mouseout', {}, function(e){
						td.attr('class', 'feature_button_home');
						this.style.cursor = 'default';
					});
				});				
				$('td.feature_button_homeb').each(function(){
					var td = $(this);
					td.bind('mouseover', {}, function(e){
						td.attr('class', 'feature_button_homeb_hover');
						this.style.cursor = 'pointer';
					});
					td.bind('mouseout', {}, function(e){
						td.attr('class', 'feature_button_homeb');
						this.style.cursor = 'default';
					});
				});
				
				//country selector dropdown stuff - should only find the element on certain homepage templates that have an item with id=country_selector
				var cntrySel = $('#country_selector');
				if (cntrySel.length) {
					cntryMenu = new FSMenu('cntryMenu', false, 'visibility', 'visible', 'hidden');
					cntryMenu.cssLitClass = 'highlighted';
					cntryMenu.animInSpeed = 1;
					cntryMenu.animOutSpeed = 1;

					var menu_div = 'country_menu'; //only one of them here.
					cntrySel.bind('mouseover', {'menu_div':menu_div}, function(e){
						cntryMenu.show(e.data['menu_div'], this, 0, 19);
					});
					cntrySel.bind('mouseout', {'menu_div':menu_div}, function(e){
						cntryMenu.hide(e.data['menu_div']);
					});
				}				

			});
	