/*
 * widget.js -- Fundraising web widget
 * Copyright (c) 2007 Creative Commons
 * Copyright (c) 2007 Free Software Foundation, Inc.
 *
 * Modified by the FSF in November 2007 to make it FSF-specific.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * A copy of the GNU Lesser General Public License is available at
 * <http://www.gnu.org/licenses/lgpl-3.0.html>.
 */

if (fsf_widget_text == "Help protect your freedom!") {
    var fsf_widget_text = "Get updates from the FSF";
	}

if (fsf_widget_text == "Help fight DRM!") {
    var fsf_widget_text = "Get updates from the FSF";
	}

document.write("<link href=\"http://www.fsf.org/graphics/widget/campaignwidget.css?1.0.1\" rel=\"stylesheet\" type=\"text/css\" />");
document.write("");
document.write("<div id=\"fsf_campaign_widget\" class=\"" + fsf_widget_size + "\">");
document.write("<div id=\"fsf_campaign_widget_bg\"><div id=\"fsf_campaign_widget_bg_logo\">");
document.write("<h1 id=\"fsf_widget_title\"><span><a href=\"http://www.fsf.org\">Free Software Foundation</a></span></h1>");
document.write("<p style='text-align:center;'><a href=\"http://www.fsf.org/associate/support_freedom/join_fsf?referrer=" +  fsf_associate_id + "\">Support software freedom!</a></p>");
document.write("<p style='text-align:center;'>Get the new monthly newsletter &mdash; <br /><em>Free Software Supporter</em></p>");
document.write("<form action=\"https://crm.fsf.org/civicrm/profile/create&amp;reset=1&amp;gid=31\" method=\"post\">");
document.write("<p style='text-align:center;'><input type=\"text\" id=\"txtbx\" name=\"email-Primary\" size=\"15\" \" /></p>");
document.write("<p style='text-align: center; margin-top: 10px;'><input type=\"submit\" name=\"_qf_Edit_next\" value=\"Subscribe Me\" /></p>");
document.write("<div><input name=\"postURL\" type=\"hidden\" value=\"\" />");
document.write("<input type=\"hidden\" name=\"group[25]\" value=\"1\" />");
document.write("<input name=\"cancelURL\" type=\"hidden\" value=\"https://crm.fsf.org/civicrm/profile?reset=1&amp;gid=31\" />");
document.write("<input name=\"_qf_default\" type=\"hidden\" value=\"Edit:cancel\" />");
document.write("</div>");
document.write("</form>");
document.write("");
document.write("</div></div>");
document.write("</div>");
document.write("");


