var Popup = Class.create();
Popup.prototype = 
{
  initialize: function(options)
  {
    this.options = {
      url: '#',
      width: 500,
      height: 660
    }
    Object.extend(this.options, options || {});
    window.open(this.options.url, '', 'width='+this.options.width+',height='+this.options.height);
  }
}


//Opens a pop-up for send-to-friend link - function sits in top of lodge page and takes a rails tag.
function sendToFriend(pageurl){
	if (!document.getElementById("link_stf")) return false;
	Event.observe('link_stf', 'click', function(e) {
		new Popup({url:pageurl});
		Event.stop(e);
	});
}
