//overriding with default events.. you are free to write on your own js file and these event will be overrriden


//for mouse pause
var MarkerEventPause=  new henworx.MapCms.MarkerEvent.mousePause(); //call without new

/*Please note that only pause needs to be called via constructor rest are static objects*/
var MarkerEventOver=   henworx.MapCms.MarkerEvent.mouseOver;
var MarkerEventOut =  henworx.MapCms.MarkerEvent.mouseOut;
var MarkerEventClick =   henworx.MapCms.MarkerEvent.mouseClick;
var MarkerEventDoubleClick =  henworx.MapCms.MarkerEvent.mouseDoubleClick;


MarkerEventPause.onMousePause=function(){
	//MarkerEventPause.loc; the locatioan object
	//MarkerEventPause.marker; the marker
	
}


MarkerEventOver.onMouseOver=function (_loc,_marker,_map){
	//we must enable pause here if we need it
	//henworx.MapCms.Ewindow.cancelHide()
	//MarkerEventPause.enable(_loc,_marker,_map)
	//gMapCms.currentLocation=_loc;
	
	
	//WRITE CODE TO SHOW TOOL TIP
	//alert(_loc.address.address)
	//normal functions
	/*
	_marker.tooltip = new Tooltip(_marker,_loc.address.address,4);
	_map.addOverlay(_marker.tooltip);
	_marker.tooltip.show();

*/
	 
	
}


MarkerEventOut.onMouseOut= function (_loc,_marker,_map){
	//since mouse has gone out let's disable pause here
	//_marker.tooltip.hide();
	

	
}


MarkerEventClick.onMouseClick= function (_loc,_marker,_map){
	document.location.href=_loc.title;
	
}





 	
		
		
		
