//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);
};

// Raise marker
/*
function gmapsRaiseMarker(marker, height)
{
	// Make bouncable
	if (!marker.Xa)
	{
		marker.Xa = true;
		//marker.qo(false);
	}

	marker.ri = height; // Max height
	marker.av = -1; // Direction (- = up)
	marker.tc();
};

// Lower marker
function gmapsDropMarker(marker, height)
{
	marker.ri = height; // Max height
	marker.av = 1; // Direction (- = up)
	marker.tc();
};
*/
/*function gmapsRaiseMarker(marker, height)
{
	// Make bouncable
	if (!marker.F)
	{
		marker.F = true;
		marker.Lx(false);
	}
	//alert(marker.jg);
	//alertObject(marker);
	marker.Zj = height; // Max height
	marker.ax = -1; // Direction (- = up)
	marker.jg();
};

// Lower marker
function gmapsDropMarker(marker, height)
{
	marker.Zj = height; // Max height
	marker.ax = 1; // Direction (- = up)
	marker.jg();
};*/

/*function gmapsRaiseMarker(marker, height)
{
	// Make bouncable
	if (!marker.F)
	{
		marker.F = true;
		//marker.WBUnknownFunc(false);
	}
	//alert(marker.jg);
	//alertObject(marker);
	marker.Mj = height; // Max height
	marker.nw = -1; // Direction (- = up)
	marker.dg();
};


// Lower marker
function gmapsDropMarker(marker, height)
{
	marker.Mj = height; // Max height
	marker.nw = 1; // Direction (- = up)
	marker.dg();
};
*/
/*
function gmapsRaiseMarker(marker, height)
{
	// Make bouncable
	if (!marker.Nf)
	{
		marker.Nf = true;
		//marker.WBUnknownFunc(false);
	}
	//alert(marker.jg);
	//alertObject(marker);
	marker.rk = height; // Max height
	marker.Ax = -1; // Direction (- = up)
	marker.vg();
};

// Lower marker
function gmapsDropMarker(marker, height)
{
	marker.rk = height; // Max height
	marker.Ax = 1; // Direction (- = up)
	marker.vg();
};
*/

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);	
	
};
*/
