var Maplet = new function () {

	this.XOffset = -205;
    this.YOffset = 0;

    this.ShowProperty = function (oLink, nLatitude, nLongitude, sGoogleMapsKey) {
        var sImageURL = 'http://maps.google.com/maps/api/staticmap?center=' + nLatitude + ',' + nLongitude + '&zoom=14&size=350x180&maptype=roadmap&markers=color:red|' + nLatitude + ',' + nLongitude + '&sensor=false&key=' + sGoogleMapsKey;

        var oPopup = document.createElement('div');
        f.SetClass(oPopup, 'maplet propertymaplet');

        var oImage = document.createElement('img');
        oImage.setAttribute('src', sImageURL);
        oImage.setAttribute('alt', '');
        oPopup.appendChild(oImage);

        var oLinkPosition = e.GetPosition(oLink);
        e.SetTopLeft(oPopup, oLinkPosition.Top + oLinkPosition.Height + this.YOffset, oLinkPosition.Left + this.XOffset);
        document.body.appendChild(oPopup);
    };
	
    this.Hide = function () {
        var aMaplets = f.GetElementsByClassName('div', 'maplet');
        for (var i = 0; i < aMaplets.length; i++) aMaplets[i].parentNode.removeChild(aMaplets[i]);
    };

};
