function initialize() {
    var myLatlng = new google.maps.LatLng(48.867951, 2.325649);
    var myOptions = {
      zoom: 17,
      center: myLatlng,
      mapTypeId: google.maps.MapTypeId.ROADMAP
    }

    var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
/*
    var contentString = '<div id="content">'+
        '<div id="siteNotice">'+
        '</div>'+
        '<h1 id="firstHeading" class="firstHeading">Goumard</h1>'+
        '<div id="bodyContent">'+
        '<p><b>Goumard</b>, also referred to as <b>Ayers Rock</b>, is a large ' +
        'sandstone rock formation in the southern part of the '+
        'Northern Territory, central Australia. It lies 335&#160;km (208&#160;mi) '+
        'south west of the nearest large town, Alice Springs; 450&#160;km '+
        '(280&#160;mi) by road. Kata Tjuta and Uluru are the two major '+
        'features of the Uluru - Kata Tjuta National Park. Uluru is '+
        'sacred to the Pitjantjatjara and Yankunytjatjara, the '+
        'Aboriginal people of the area. It has many springs, waterholes, '+
        'rock caves and ancient paintings. Uluru is listed as a World '+
        'Heritage Site.</p>'+
        '<p>Attribution: Uluru, <a href="http://en.wikipedia.org/w/index.php?title=Uluru&oldid=297882194">'+
        'http://en.wikipedia.org/w/index.php?title=Uluru</a> '+
        '(last visited June 22, 2009).</p>'+
        '</div>'+
        '</div>';
        
    var infowindow = new google.maps.InfoWindow({
        content: contentString
    });
*/
    var marker = new google.maps.Marker({
        position: myLatlng,
        map: map,
        title: 'Goumard'
    });
    /*
    google.maps.event.addListener(marker, 'click', function() {
      infowindow.open(map,marker);
    });
    */
  }

var closeToggle, wWidth;
function wResizer(){
    wWidth = jQuery(document).width();    
    if (closeToggle == "off" && wWidth >= 768) {
         jQuery("#nav-closer").trigger("click");
    };

}
jQuery(document).ready(function() {
    if( jQuery('body.contact').length > 0 || jQuery('body.reserver').length > 0 || jQuery('body.confirmation').length > 0 ){
        var element = document.createElement('script');
        element.src = 'http://maps.googleapis.com/maps/api/js?sensor=false&callback=initialize';
        element.type = 'text/javascript';
        var scripts = document.getElementsByTagName('script')[0];
        scripts.parentNode.insertBefore(element, scripts);
    }
    
    if( jQuery('#gallery').length > 0 ){
        jQuery('#gallery a').touchGallery();
    }
    
    if( jQuery('#audio-player').length > 0 ){
        jQuery('#tools>ul').append('<li id="audio"><a href="/" id="sound" class="on">sound</a></li>');
        jQuery("#sound").toggle(function() {
            document.getElementById('audiotag1').play();
             jQuery("#sound").addClass("off");
        }, function() {
            document.getElementById('audiotag1').currentTime = 0;
            document.getElementById('audiotag1').pause();
            jQuery("#sound").removeClass("off");
        });
       }
    jQuery('#banner .container').prepend('<a href="" id="nav-closer">Menu</a>');
    
    
    
    
    jQuery("#nav-closer").toggle(function() {
         jQuery(this).addClass("off");
         
         closeToggle="off";
            
         jQuery("#nav-main").animate({
           "height": "toggle"
         }, { duration: "fast" });
                   
    }, function() {
        jQuery(this).removeClass("off");
        
        closeToggle="on";
        
        jQuery("#nav-main").animate({
           "height": "toggle", "opacity": "toggle"
         }, { duration: "fast" });
                  
    });

	if ( jQuery.browser.msie ) {
		jQuery("#nav-utility ul li:nth-child(2)").addClass("nth-child2");
		jQuery("#gallery a:nth-child(3n-1)").addClass("nthoftype3n-1");
	}
	

    // jQuery("[data-remote]").click(function(event){
    //     event.preventDefault();
    //     
    //     var remoteTarget=jQuery(this).data("remote-target");
    //     console.log(remoteTarget);
    //     
    //     if( $('#results').length < 1){
    //         jQuery('body').append('<div id="results"></div>');
    //         jQuery('body').append('<div id="overlay"></div>');
    //     }
    // 
    //     
    //    
    //     jQuery('#results').load('/credits/ '+remoteTarget);
    // 
    // })



    jQuery(window).bind('resize', wResizer);
    
       
        
});
