/*
Quelle: http://blog.marcuscobden.co.uk/2008/03/google-maps-placemark.html
*/

function GPlacemark(p)
{
	/**
	* rekursives auelsen der Daten aus dem JSON Objekt von Google
	* @access public
	* @return bool
	**/
	this.run = function(i,k)
	{
		for(var k in i)
		{
			if(k == 'prototype')
			{
				continue;
			}
			if(typeof(i[k]) != 'object')
			{
				this[k] = i[k];
			} else {
				this.run(i[k]);
			}
		}
	}
	
	this.dump = function()
	{
		var text;
		var i;
		for(i in this)
		{
			if(this[i])
				text += "["+i+"] => "+this[i]+"\n";
		}
		alert(text);
	}
	
	//init
	this.run(p);
}
