google.load("maps", "2",{
    "other_params":"sensor=false"
});

// Call this function when the page has been loaded
function initialize() {
    var map = new google.maps.Map2(document.getElementById("map"));
    map.setCenter(new google.maps.LatLng(-41.2905, 174.7738), 16);
    var point = new GLatLng(-41.2905, 174.7738);
    map.addControl(new GSmallMapControl());
    // Create our "tiny" marker icon
    var blueIcon = new GIcon(G_DEFAULT_ICON);
    blueIcon.image = "http://euromassage.co.nz/app/resources/images/euromassageLogo.ico";
    // Set up our GMarkerOptions object
    markerOptions = {
        icon:blueIcon
    };
    map.addOverlay(new GMarker(point, markerOptions));
    
    // rotate images in the content a bit
    var odd=false;
    $(".content img").each(function( intIndex, image ){
        var degree = Math.floor(Math.random()*11);
        $(image).attr("id", "contentPicture_" + intIndex);
        var floating = $(image).css("float");
        if (odd) {
            $(image).rotate(-3-degree);
        } else {
            $(image).rotate(3+degree);
        }
        odd=!odd;
        $("#contentPicture_" + intIndex).css("float", floating);
        $("#contentPicture_" + intIndex).addClass("rotatedPicture");
        $("#contentPicture_" + intIndex).fadeIn(1000);
    });

}
google.setOnLoadCallback(initialize);

