var pmap_mapObj;
var pmap_bounds;
var pmap_markerIcon;
var pmap_panZoomControl;
var pmap_popup = null;
var pmap_animEndWidth, pmap_animEndHeight, pmap_animFinishedCallback;
var pmap_initialWidth, pmap_initialHeight;
var pmap_maxWidth = 705;
var pmap_maxHeight = 300;
var pmap_animating = false;

jQuery(document).ready(function(){

	progressMapInitialise();

	pmap_initialWidth = jQuery("#progressMap").width();
	pmap_initialHeight = jQuery("#progressMap").height();
	pmap_collapsedWidth = 180;
	pmap_collapsedHeight = 200;

	jQuery("#progressMapDragHandle").click(function () {
		jQuery("#progressMapDragMessageText").text("please wait...");

		// It's necessary to set a small delay before doing this
		// or else the "please wait..." above is not shown
		setTimeout(progressMapExpandOrContract, 100);
	});
});
