//fairly crude bounce animation for gmaps markers
function gmapsBounceMarker(marker){
	gmapsRaiseMarker(marker, 10);
	setTimeout(function() { gmapsDropMarker(marker, 10); }, 200);
	setTimeout(function() { gmapsRaiseMarker(marker, 6); }, 360);
	setTimeout(function() { gmapsDropMarker(marker, 6); }, 480);
};

function gmapsRaiseMarker(marker, height)
{
	// Make bouncable
	if (!marker.Ff)
	{
		marker.Ff = true;
		//marker.WBUnknownFunc(false);
	}
	//alert(marker.jg);
	//alertObject(marker);
	marker.dk = height; // Max height
	marker.Bx = -1; // Direction (- = up)
	marker.og();
};

// Lower marker
function gmapsDropMarker(marker, height)
{
	marker.dk = height; // Max height
	marker.Bx = 1; // Direction (- = up)
	marker.og();
};
/*
function alertObject(theObject){
	var properties = "";
	
	for (var propertyName in theObject) {
		// Check if it’s NOT a function
		if (!(theObject[propertyName] instanceof Function)) {
			properties += propertyName + ", ";
		}
	}
	
	prompt("Properties : " + properties, "Properties : " + properties);
	
	// Loop through the properties/functions
	var functions = "";
	for (var functionName in theObject) {
	// Check if it’s a function
		if (theObject[functionName] instanceof Function) {
			functions += functionName + ", " + theObject[functionName] + " ";
			//functions += functionName + ", " + functionName + " ";
		}
	}
	
	prompt("Functions : " + functions, "Functions : " + functions);	
	
};
*/
