/*
 * Copyright (c) 2006-2007 Collactive. All rights reserved.
 */
// LA Times Site Automation API
LaTimes = function() {
	this._createAssistant = function() {
		return new Collactive.Assistant("la_times",
			[],
			this._storage, this._ui);
	};

    this.emailStory = this._assistedFunction({
       	navigateFirst: true,
        clientOnly: false,
        serverOnly: false
    }, function(url, recipients, senderName, senderAddress, message, callback) {
		this._storage.clearSession();
		this._saAPI.emailStory(url, recipients, senderName, senderAddress, message,
			this._asyncCallback(function (status) {
				callback(status);
			})
		);
    });

	return this;
};

LaTimes.prototype = new SiteAutomationFacade('la_times');