/* <![CDATA[ */


    $(function() {
		// Use this example, or...
		//$('a[@rel*=lightbox]').lightBox(); // Select all links that contains lightbox in the attribute rel
		// This, or...
		//$('#gallery a').lightBox(); // Select all links in object with gallery ID
		// This, or...
		$('a.lightbox').lightBox(); // Select all links with lightbox class
		// This, or...
		//$('a').lightBox(); // Select all links in the page
		// ... The possibility are many. Use your creative or choose one in the examples above
	});


	
	
	function setMapHeight()
	{
		var viewportwidth;
		var viewportheight;
		
		// the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight
		
		if (typeof window.innerWidth != 'undefined')
		{
		viewportwidth = window.innerWidth,
		viewportheight = window.innerHeight
		}
		
		// IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)
		
		else if (typeof document.documentElement != 'undefined'
		&& typeof document.documentElement.clientWidth !=
		'undefined' && document.documentElement.clientWidth != 0)
		{
		viewportwidth = document.documentElement.clientWidth,
		viewportheight = document.documentElement.clientHeight
		}
		
		// older versions of IE
		
		else
		{
		viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
		viewportheight = document.getElementsByTagName('body')[0].clientHeight
		}
		//document.write('<p>Your viewport width is '+viewportwidth+'x'+viewportheight+'</p>');
		
		$("#map_canvas").animate({height: viewportheight});
	}



	$(document).ready(function(){
		
		setMapHeight();
		
		
		// Mike's shiz						
		$("#toggle_expand").click(function()
		{
			if($(this).hasClass('footer_open'))
			{
				$("#info_holder").animate({height: "600px"}).animate({height: "590px" }, "fast").animate({height: "596px" }, "fast");
				$(this).removeClass("footer_open").addClass("footer_close");
			}
			else
			{
				$("#info_holder").animate({height: "157px"}).animate({height: "167px" }, "fast").animate({height: "162px" }, "fast"); 
				$(this).removeClass("footer_close").addClass("footer_open");
			}
		});
			 
		 
	});
	
/* ]]> */