// ********************************************
// **        Flashmaps DB Mapper 1.1         **
// **      JavaScript Custom Functions       **
// ********************************************
// ** Feel free to make any changes you need **
// **      to fit your requirements.         **
// ********************************************
// **      (c)2006 Flashmaps Geospatial      **
// **        http://www.flashmaps.com        **
// ********************************************


// ********************************************
// **  Functions called from the map, events **
// ********************************************

// The visitor placed the mouse over a POI
function fmCustomPOIOnRollOver(fmPOIID) {
	// Write your code here
	// For example, display POI's picture
	//document.getElementById('selected_location_img').src = 'fmDBMMap/pois/images/' + fmPOIID + '.jpg';
}

// The visitor moved the mouse out of a POI
function fmCustomPOIOnRollOut(fmPOIID1) {
	// Write your code here
	// For example, display a blank picture
	//document.getElementById('selected_location_img').src = 'fmDBMMap/pois/images/blank.gif';
}

// The visitor clicked on a POI
function fmCustomPOIOnRelease(fmPOIID) {
	// Write your code here
}
// The map is ready to receive commands
function fmCustomMapIsReady() {
	console.log('MAP IS READY FOO');
	// Write your code here
}

// A set of POIs has been loaded
function fmCustomPOIURLLoaded(strPOIsURL, iPOIsNumber) {
	// Write your code here
	console.log('POIS LOADED');
}


// ********************************************
// **  Functions to send commands to the map **
// ********************************************

// Highlight a POI
function fmCustomPOIHighlight(fmPOIID, strMethod) {
	// Highlight a POI inside the map
	fmPOIHighlight(fmPOIID, strMethod);
	// Write your code here
	// For example, display a POIs picture
	//document.getElementById('selected_location_img').src = 'fmDBMMap/pois/images/' + fmPOIID + '.jpg';
}

// Unhighlight a POI
function fmCustomPOIUnhighlight(fmPOIID) {
	// Unhighlight a POI inside the map
	fmPOIUnhighlight(fmPOIID);
	// Write your code here
	// For example, display a blank picture
	//document.getElementById('selected_location_img').src = 'fmDBMMap/pois/images/blank.gif';
}

// Highlight and focus on a POI
function fmCustomPOIHighlightAndFocusOn(fmPOIID, strMapScale, strMethod){
	// Focus and highlight on a POI inside the map
	fmPOIHighlightAndFocusOn(fmPOIID, strMapScale, strMethod);
	// Write your code here
}

