window.TreeTop = {
  
  postToWall: function (imageUrl, returnUrl) {
	
    var mediaItem = {}

    mediaItem.type = 'image';
    mediaItem.src = imageUrl;
    mediaItem.href = returnUrl;

    var attachment = {
      'name': 'Tree Top Words to Grow By',
      'href': returnUrl,
      'description': "It may sound cliché, but it’s true – life’s too short to not live the life you want. This is something that the growers of Tree Top know very well. They have an appealing, commonsense approach to their work and life. They don’t waste time with things that bog them down, or get caught up in the hectic ways of life. Instead, they keep things simple and authentic, focusing on the good things – the things that are truly important.",
      'media': [{
			'type': 'image',
			'src': imageUrl,
			'href': returnUrl}]
	  };
	  
	  
    var action_links = [{"text":"Tree Top - Words to Grow By", "href": returnUrl}];

    FB.Connect.requireSession(function () {
    FB.Connect.streamPublish('', attachment, action_links);
    });
  }

};


