jQuery.noConflict(); 

function formatText(index, panel) {
    return index + "";
}

function setup() {
    //initialize();
}

jQuery(window).load(function() {   

    jQuery('#slider').nivoSlider({
        effect: 'fade',
        animSpeed: 500, 
        pauseTime: 8000,
        directionNav: true, 
        directionNavHide: true, 
        controlNav: false, 
        controlNavThumbs: false, 
        controlNavThumbsFromRel: false, 
        keyboardNav: false, 
        pauseOnHover: true, 
        manualAdvance: false,
        captionOpacity: 0.7
    });

    jQuery("img[rel]").overlay({
        color: '#ccc',
        top: 170
    });
    
});


//function initialize() {
//    if (GBrowserIsCompatible()) {
//        var map = new GMap2(document.getElementById("map_canvas"));
//        map.setCenter(new GLatLng(50.712935, -1.985575), 15);
//        map.setUIToDefault();

//        // Create a base icon for all of our markers that specifies the
//        // shadow, icon dimensions, etc.
//        var baseIcon = new GIcon(G_DEFAULT_ICON);
//        baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
//        baseIcon.iconSize = new GSize(20, 34);
//        baseIcon.shadowSize = new GSize(37, 34);
//        baseIcon.iconAnchor = new GPoint(9, 34);

//        // Creates a marker whose info window displays the letter corresponding
//        // to the given index.
//        function createMarker(point, index) {
//            // Create a lettered icon for this point using our icon class
//            var letter = String.fromCharCode("A".charCodeAt(0) + index);
//            var letteredIcon = new GIcon(baseIcon);
//            letteredIcon.image = "http://www.google.com/mapfiles/marker" + letter + ".png";
//            // Set up our GMarkerOptions object
//            markerOptions = { icon: letteredIcon };
//            var marker = new GMarker(point, markerOptions);
//            return marker;
//        }

//        var latlng = new GLatLng(50.711868, -1.985441);
//        map.addOverlay(createMarker(latlng, 0));

//        latlng = new GLatLng(50.712935, -1.985575);
//        map.addOverlay(createMarker(latlng, 1));

//        latlng = new GLatLng(50.715251, -1.986423);
//        map.addOverlay(createMarker(latlng, 2));
//    }
//}
