function initialize() {
    // Twin Shores Latitude and Longitude
    var latlng = new google.maps.LatLng(29.97179,-90.10928);
  	
  	// Map options
    var myOptions = {
    	zoom: 15,
    	center: latlng,
    	mapTypeId: google.maps.MapTypeId.ROADMAP
    }
    
    // Where the map should be displayed
    map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
    
    // Adding a marker
    var marker = new google.maps.Marker({
        position: latlng,
        map: map, 
        title:"Twin Shores Landscape"
    });

    
    // Creating an InfoWindow
    var infowindow = new google.maps.InfoWindow({
    	content: '<h2>Twin Shores Landscape</h2>\n<address>701 S Alexander St,<br />\nNew Orleans, LA 70119</address><p><a href="http://maps.google.com/maps?client=safari&amp;q=701+S+Alexander+St,+New+Orleans,+LA+70119&amp;oe=UTF-8&ie=UTF8&hq=&amp;hnear=701+S+Alexander+St,+New+Orleans,+Orleans,+Louisiana+70119&amp;gl=us&amp;ei=hqVqTKCtL8SBlAfp4rGGAw&amp;ved=0CBcQ8gEwAA&z=16" target="_blank">Get Directions</a></p>'
    });
    
    // Adding a click event to the marker
    google.maps.event.addListener(marker, 'click', function() {
    	// Opening the InfoWindow
  		infowindow.open(map, marker);
  	});
}

		// Triggered every time a new slide is first
		function mycarousel_itemFirstInCallback(carousel, item, idx, state) {
			// Fade the first image to full opacity
			jQuery('img', item).fadeTo('1000', 1);
			// Remove the "current" class from the slider direct links
			jQuery('.direct-links li a').removeClass('current');
			// Add the "current" class to the new current direct link
			jQuery('.direct-links li:nth-child(' + (idx) + ') a').addClass('current');
		};
		
		// Triggered everytime the previous first slide has moved
		function mycarousel_itemFirstOutCallback(carousel, item, idx, state) {
			// Fade the image back to half opacity
			jQuery('img', item).fadeTo('slow', .1);
		};		
		
		// Set up initial functions for the carousel
		function mycarousel_initCallback(carousel) {
			
			// Set up next button
		    jQuery('.next a, .slider-panel').bind('click', function() {
		        carousel.next();
		        return false;
		    });
			
			// Set up previous button
		    jQuery('.previous a').bind('click', function() {
		        carousel.prev();
		        return false;
		    });
		 	
		 	// Set up direct links
		    jQuery('.direct-links a').bind('click', function() {
		        carousel.scroll(jQuery.jcarousel.intval(jQuery(this).text()));
		        return false;
		    });
		};
		
		function homepagecarousel_initCallback(carousel) {
			
			// Set up next button
		    jQuery('p.next a').bind('click', function() {
		        carousel.next();
		        return false;
		    });
			
			// Set up previous button
		    jQuery('p.previous a').bind('click', function() {
		        carousel.prev();
		        return false;
		    });
		};

		jQuery(document).ready(function() {
			// Homepage slider
		    jQuery('.billboard ul').jcarousel({
		    	animation: 500,
		    	initCallback: homepagecarousel_initCallback,
        		// This tells jCarousel NOT to autobuild prev/next buttons
        		buttonNextHTML: null,
        		buttonPrevHTML: null,
		        scroll: 1,
		        wrap: 'both'
			});
			
			// project sliders
		    jQuery('.slider ul.slider-panel').jcarousel({
		    	animation: 500,
        		initCallback: mycarousel_initCallback,
        		itemFirstInCallback: mycarousel_itemFirstInCallback,
        		itemFirstOutCallback: mycarousel_itemFirstOutCallback,
        		// This tells jCarousel NOT to autobuild prev/next buttons
        		buttonNextHTML: null,
        		buttonPrevHTML: null,
		        scroll: 1,
		        wrap: 'both'
			});
			// Change opacity on all photos
			jQuery('.slider li:not(:first) img').fadeTo('fast', .1);
			
			// Slideshow on content pages...change this out to use the other cycle
			jQuery('.photo-carousel').cycle({ 
			    fx:     'fade', 
			    timeout: 4000, 
			    delay: -2000 
			});
			jQuery('.scroll').jScrollPane();

		    $.ajax({
		        type: "GET",
		        url: "/proxy.php",
		        dataType: "xml",
		        success: xmlParser
		    });

			function xmlParser(xml) {
				jQuery(xml).find("weather").each(function () {
					jQuery(".loading").remove();
					jQuery(".weather").append('<p><img src="http://google.com' + $(this).find("icon").attr("data") + '" height="18" width="18" />&nbsp;&nbsp;' + $(this).find("condition").attr("data") + ' ' + $(this).find("low").attr("data") + '&deg;/' + $(this).find("high").attr("data") + '&deg;</p>');
				});
			};
		});
