	//loadFirebugConsole();

		function doMenus()
		{	
			// Toggle Elements
			var toggle = jQuery("img.toggle");
	
			// Parse them and add the hover action
			for(var index=0; index < toggle.length; index++)
			{
				// Get src attribute value
				var standardSrc = toggle[index].getAttribute("src");
				var activeSrc	= standardSrc.replace(/standard/, "active");
				var link		= toggle[index].getAttribute("title");
				
				if(parentPage === link)
				{
					standardSrc = activeSrc;
				}
	
				toggle[index].setAttribute("src", standardSrc);
	
				// Set Attributes
				toggle[index].setAttribute("standardSrc", standardSrc);
				toggle[index].setAttribute("activeSrc", activeSrc);
				toggle[index].onmouseover = function()
				{
					var activeSrc = this.getAttribute("activeSrc") || this.activeSrc;
					this.setAttribute("src", activeSrc);
				};
				toggle[index].onmouseout = function()
				{
					var standardSrc = this.getAttribute("standardSrc") || this.standardSrc;
					this.setAttribute("src", standardSrc);
				};
			}
		}
		
		function doFooter()
		{
			// Footer Element
			var footer = $("#Footer");
			
			// Footer Height
			var footerH = footer.height();
			
			// Get Layout Height
			var layoutH = $("#Layout").height();
			
			// Get Window Height
			var windowH = $("body").css("height");

			// Correction
			var correction = 0;
			
		    jQuery.each(jQuery.browser, function(browser, val) 
		    {
		    	if(browser == "msie")
		    	{
		    		correction = 22;
		    	}		      
		    });
	
			if(windowH > layoutH)
			{
				footer.css(
				{
					"position"	: "absolute",
					"marginTop" : 0,
					"top"		: (windowH - footerH - correction) + "px",
					"left"		: 0,
					"visibility": "visible"
				});
			}
			else
			{
				footer.css(
				{
					"position"	: "relative",
					"marginTop" : "40px",
					"top"		: 0,
					"visibility": "visible"
				});
			}
		}
	
		function showHide(elemId, showStyle, aID, label)
		{
/*
			var newLabel = 'Hide ' + label;
			var styleName = "display";
			var styleVal = "block";
			
			if($(elemId).css('display') == showStyle)
			{ 
				styleVal = "none";
				newLabel = 'View ' + label;
			}
			$(elemId).css(styleName,styleVal);
//.scrollIntoView();
			$(aID).text(newLabel);
*/
		}
		
		function fixTeamHeader()
		{
			if(bfixTeamHeader === true)
			{
				var header	= $("#Content h1")[0];
				var headerTxt	= header.innerHTML;
				var parts	= headerTxt.split("-");

				$(header).text(parts[0].toString());
				$(header).append(document.createElement("br"));
				$(header).append(parts[1].toString());
			}
		}
		
		function slideAndScroll()
		{
				if ($("#publications_wrap").is(":hidden")) {
					$("#publications_wrap").slideDown("slow");
					//scrollTo('publications_wrap','');
					$("#publications_wrap").scrollTo(250);
					$("#publications_a").text("Hide Publications");
				} else {
					$("#publications_wrap").hide();
					$("#publications_a").text("View Publications");
				}
				doFooter();
		}

		$(document).ready(function()
		{
			doMenus();
			fixTeamHeader();	

			jQuery.fn.extend({
				scrollTo : function(speed, easing) {
					return this.each(function() {
						var targetOffset = $(this).offset().top;
						$('html,body').animate({scrollTop: targetOffset}, speed, easing);
					});
				}
			});

			doFooter();

		});
	
		window.onload = function() 
		{
			doFooter();
		};
	
		window.onresize = function()
		{
			doFooter();
		};

