/**
 * Note: The functions contained in this file are for demonstration purposes
 * only and are certainly not necessary in your own project.
 */
function initDemos(){

    // setup flash gallery demo
    Shadowbox.setup([], {
        
    });

  

};

function calculateMap(lat, long){

    Shadowbox.open({
        player:     'html',        
        height:     300,
        width:      500,
        options:    { 
            onFinish: function(item){
                if(GBrowserIsCompatible()){
                    var map = new GMap2(document.getElementById('shadowbox_content'));
                     map.setCenter(new GLatLng(lat, long), 16);

                    // add 10 markers to the map at random locations
                	var center = new GLatLng(lat, long);
					var marker = new GMarker(center, {draggable: true});
					map.addOverlay(marker);
                    
                }
            }
        }
    });

};

