var player = new Object();

player.location = location.href.replace(/#.+$/, '');

player.load = function (id)
{
	this.anchor(id);
	window.document.player.SetVariable('content.id', id); 
}

player.gps = function (coords)
{
	//lat,long,zoom;
	window.document.player.SetVariable('locations.coords', coords);
}

player.anchor = function (id)
{
	location.href = player.location + '#' + id;
}

player.hash = function()
{
	return location.hash;
}

player.watch = function (name, oldValue, newValue)
{
    alert(name + " changed from " + oldValue + " to " + newValue);
}


//window.location.watch("hash", player.watch);



