     	jQuery.noConflict();
		
		jQuery(document).ready(function($){
			var pagetype = "";
			var headerurl = "";
			
			if (document.getElementById("minbrand-header") )  {
				pagetype = "MB";
				headerurl = "/global/menus/header_minbrand.html";
				}
			else {
				pagetype = "STD";
				headerurl = "/global/menus/header_general.html";
				}
			$.ajax({
				type: "GET",
				url: headerurl,
				//dataType: "xml",
				success: function(xml) {
					if (pagetype == "STD" ) {
						var myDiv = $('#header');
						myDiv.html($(xml).html());
						if (gSection) {
							document.getElementById("header").className = gSectionPrefix + "_header";
							document.getElementById("section_home").className = gSectionPrefix + "_home";
							var contentSourcePath = "/global/menus/" + gSection + "_header_menu.html";
							if (document.getElementById("mp_" + gSection)) {
								document.getElementById("mp_" + gSection).className = "menu-on";
								}
							gSection = (gSection == "trust") ? "about" : gSection;
							if (gSection == "home") {
								document.getElementById("section_home").innerHTML = '<a href="/index.html">&nbsp;</a>';
							}
							else {
								document.getElementById("section_home").innerHTML = '<a href="/' + gSection + '/index.html">&nbsp;</a>';
							}
							ddsmoothmenu.init({
									mainmenuid: "smoothmenu1", // menu DIV id
									orientation: 'h', // horizontal or vertical menu: Set to "h" or "v"
									classname: 'ddsmoothmenu', // class added to menu's outer DIV
									contentsource: ["menu-departments", contentSourcePath] //"markup" or ["container_id", "path_to_menu_file"]
								})
							}
						}
					else {
						var myDiv = $('#minbrand-header');
						myDiv.html($(xml).html());
						}		
							
					$.ajax({
						type: "GET",
						url: "/global/menus/footer_general.html",
						success: function(xml) {
							var myDiv = $('#footer');
							myDiv.html($(xml).html());
							
							//after doc fully loads, initialize Lytebox code
							if (gAllowLytebox) {
								initLytebox();
								}
							}
						});
						

					}
				});
			if (pagetype == "STD" && document.getElementById("lefthandnav") != null) { //when present, load left hand nav tree
				if (gSectionPrefix == "museum" && gSectionSubNavNode == "exhibitions" ) { //in exhibitions area, add exhibition menu items
					if (document.getElementById("red").innerHTML.indexOf('href="/visit/exhibitions/"') < 0)	{ //if code is in there already, don't add
						document.getElementById("red").innerHTML += '<li class="lhnbullet"><span><a href="/visit/exhibitions/">Current Exhibitions</a></span></li>' +
						'<li class="lhnbullet"><span><a href="/visit/exhibitions/future.html">Future Exhibitions</a></span></li>' + 
						'<li class="lhnbullet last"><span><a href="/visit/exhibitions/past.html">Past Exhibitions</a></span></li>';
						}
					}	
			
				$("#red").treeview({
					animated: "fast",
					collapsed: true,
					control: "#treecontrol"
					});
					
				document.getElementById("lefthandnav").style.height = "auto";	
				document.getElementById("red").style.visibility = 'visible';	
				document.getElementById("lefthandnonnavbottom").style.visibility = 'visible';	
			}
			
			
			if (gSection) {
				var visitInfoSourcePath = "/global/includes/" + gSection + "_visit_info.html";
				$.ajax({
					type: "GET",
					url: visitInfoSourcePath,
					success: function(xml) {
						var myDiv = $('#lefthandnonavvisiting');
						myDiv.html($(xml).html());
						}
					});
				}
			

			$.ajax({
				type: "GET",
				url: "/global/broadcast/broadcast.html",
				success: function(xml) {
					if (pagetype == "STD" ) {		
						$('<div id="globalbroadcastwrapper"></div>').insertBefore("#header");	
						}		
					else {
						$('<div id="globalbroadcastwrapper"></div>').insertBefore("#minbrand-header");
						}
					var myDiv = $('#globalbroadcastwrapper');
					myDiv.html($(xml).html());
					}
				});
				
				
		});
