	function stxTogDescr()
	{
		$('.toggleDescription').slideToggle();
	}
	
	function switchMenu(obj)
	{
		var el = document.getElementById(obj);
		var myButton = document.getElementById('ShowMenu');
		
		if(el.style.display == "block")
		{
			el.style.display = "none";
			document.getElementById("InstructionText").innerHTML = "Click for Page Instructions";
		} else {
			el.style.display = "block";
			document.getElementById("InstructionText").innerHTML = "Click to hide Page Instructions";
		}
	}

	// Display Data Fiunction
    function dispData( title)
    {
        // Display Graph items in display area 
        document.getElementById("dataTitle").innerHTML = title;
    }
	
    // Hide Data Fiunction
    function hideData()
    {
        // Clear fields
	    dispData( '&nbsp;');
	}





	var maxMode = false;
	var e;

	function maxMap() {
	    $("div#map_canvas").css("position", "fixed"); //position: absolute;
	    $("div#map_canvas").css("left", "0px"); //left: 0px;
	    $("div#map_canvas").css("right", "0px"); //right: 0px;
	    $("div#map_canvas").css("top", "0px"); //top: 0px;
	    $("div#map_canvas").css("width", getWindowWidth()); //width: 100%;
	    $("div#map_canvas").css("height", getWindowHeight()); //height: 100%;
	    $("div#map_canvas").css("z-index", "2"); //z-index:3
	    $(".lavaLampNoImage").css("z-index", "0");
	    map.checkResize();
	    map.setCenter(new GLatLng(11.050000, 1.1000000), 2);
	    document.onkeyup = processKey;
	    maxMode = true;
	}

	function restoreMap() {
	    $("div#map_canvas").css("position", "relative"); //position: absolute;
	    $("div#map_canvas").css("left", "0px"); //left: 0px;
	    $("div#map_canvas").css("right", "0px"); //right: 0px;
	    $("div#map_canvas").css("top", "0px"); //top: 0px;
	    $("div#map_canvas").css("width", '100%'); //width: 100%;
	    $("div#map_canvas").css("height", '450px'); //height: 100%;
	    $("div#map_canvas").css("z-index", "0"); //z-index:3
	    $(".lavaLampNoImage").css("z-index", "0");
	    map.checkResize();
	    map.setCenter(new GLatLng(11.050000, 1.1000000), 2);
	    maxMode = false;
	}

	function processKey(e) {
	    e = getKeyCode(e);
	    if (e == 27 && maxMode) {    // 27 => ESC 
	        restoreMap();
	    }
	}


	// get the kode of the key that was just pressed
	// This is from http://www.howtocreate.co.uk/tutorials/index.php?tut=0&part=17  
	function getKeyCode(e) {
	    if (!e) {
	        if (window.event) {
	            e = window.event;
	        } else {
	            return;
	        }
	    }
	    if (typeof (e.which) == 'number') {
	        //NS 4, NS 6+, Mozilla 0.9+, Opera
	        e = e.which;
	    } else if (typeof (e.keyCode) == 'number') {
	        //IE, NS 6+, Mozilla 0.9+
	        e = e.keyCode;
	    } else if (typeof (e.charCode) == 'number') {
	        //also NS 6+, Mozilla 0.9+
	        e = e.charCode;
	    } else {
	        return;
	    }
	    return e;
	}

	function getWindowHeight() {
	    if (typeof (window.innerWidth) == 'number') {
	        // Non-IE
	        return window.innerHeight;
	    }
	    else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
	        // IE 6+ in 'standards compliant mode'
	        return document.documentElement.clientHeight;
	    }
	    else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
	        // IE 4 compatible
	        return document.body.clientHeight;
	    }
	}

	function getWindowWidth() {
	    if (typeof (window.innerWidth) == 'number') {
	        // Non-IE
	        return window.innerWidth;
	    }
	    else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
	        // IE 6+ in 'standards compliant mode'
	        return document.documentElement.clientWidth;
	    }
	    else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
	        // IE 4 compatible
	        return document.body.clientWidth;
	    }
	}




	/*
	* Jonathan Howard
	*
	* jQuery Pause
	* version 0.2
	*
	* Requires: jQuery 1.0 (tested with svn as of 7/20/2006)
	*
	* Feel free to do whatever you'd like with this, just please give credit where
	* credit is do.
	*
	*
	*
	* pause() will hold everything in the queue for a given number of milliseconds,
	* or 1000 milliseconds if none is given.
	*
	*
	*
	* unpause() will clear the queue of everything of a given type, or 'fx' if no
	* type is given.
	*/
	$.fn.pause = function(milli, type) {
	    milli = milli || 1000;
	    type = type || "fx";
	    return this.queue(type, function() {
	        var self = this;
	        setTimeout(function() {
	            $.dequeue(self);
	        }, milli);
	    });
	};

	$.fn.clearQueue = $.fn.unpause = function(type) {
	    return this.each(function() {
	        type = type || "fx";
	        if (this.queue && this.queue[type]) {
	            this.queue[type].length = 0;
	        }
	    });
	};
