showmap = function(){
	var latlng = new google.maps.LatLng(41.836652, -87.946125);
	var myOptions = {
		zoom: 14
		,center: latlng
		,mapTypeId: google.maps.MapTypeId.ROADMAP
		,navigationControlOptions: {
			style: google.maps.NavigationControlStyle.ZOOM_PAN
		}
	};
	var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
	var marker = new google.maps.Marker({
		position: latlng
		,map: map
		,title:"The Hyatt Lodge at McDonald's Campus"
	});
}
window.addEvent("domready", function(){

	if(Browser.Plugins.Flash.version >= 9){
		swfloaded = false;
		myOnloadFunc = function(){
			//$('Player').replaces($$('#Music span')[0]);
			swfloaded = true;
			$('Player').togglePlay();
		}
		var obj = new Swiff('/player.swf', {
			id: 'Player',
			container: $('Music'),
			width: 124,
			height: 14,
			params: {
				wmode: 'opaque',
				bgcolor: '#000000'
			}
		});
		//obj.replaces($$('#Music span')[0]);
	}
	
	getPage = function(targ){
		var myHTMLRequest = new Request.HTML({
			url: targ,
			evalScripts: false,
			onSuccess: function(restree, resel, reshtml){
				var nextpage;
				resel.each(function(item){
					if(item.id == 'Content'){
						nextpage = item;
					}  
				});
				$('Content').set('html', nextpage.get('html'));
				$$('#Foot a').addEvent('click', function(e){
					e.stop();
					var targ = this.get('href');
					getPage(targ);
				});
				if(targ == "/location-and-directions/"){
					showmap();
				}
			}
		}).post();
	}
	
	
	if(Browser.Features.xhr){
		
		$$('#Foot a', '#Mast a').addEvent('click', function(e){
			e.stop();
			var targ = this.get('href');
			getPage(targ);
		});

		
	}
	
	
});