<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Display a Google Group subscription box"
title_url="http://sites.google.com/site/annuairevin/tips-and-tricks-for-google-sites"
height="200"
width="200"
scrolling="false"
directory_title="Display a Google Group subscription box"
description="Display a Form to subscribe to a Google Group"
screenshot="http://www.liens-du-vin.ch/_pic062/groupe-google-screen.png"
thumbnail="http://www.liens-du-vin.ch/_pic062/google-groupe-en.png"
author="Philippe Chappuis"
author_email="info+gadgetCSE@liens-du-vin.ch"
author_affiliation="Google"
author_location="Rolle Switzerland"
author_link="http://www.liens-du-vin.ch"
author_photo="http://www.liens-du-vin.ch/_pic02/gadget-author-photo.png"
author_aboutme="An Engineer who likes to develop for the Net and tastes wines"
author_quote="A chief is a man who assumes responsibility. He says &quot;I was beaten&quot; he does not
say &quot;My men were beaten&quot; - Antoine de Saint-Exupery">

</ModulePrefs>

<UserPref name="GroupName" display_name="Group Name" required="true" default_value="bloggers-beta" />
<UserPref name="Text" display_name="Text" datatype="string" default_value="Enter your Email" />

<UserPref name="FontCol" display_name="Font Color" required="true" default_value="#6488da" />
<UserPref name="BackCol" display_name="Background Color" required="true" default_value="#d1dae3" />
<UserPref name="BorderCol" display_name="Border Color" required="true" default_value="#cc0000" />

<UserPref name="ContainerCol" display_name="Container Color" required="true" default_value="#d1dae3" />

<Content type="html"><![CDATA[

<style type="text/css">
body
{
background: __UP_ContainerCol__;
padding: 0;
margin:0;
}

#container
{
font-family: Arial, Helvetica, sans-serif;
font-size: 0.9em;
margin: 5px; padding: 8px;
background-color: __UP_BackCol__;
border: solid 2px __UP_BorderCol__;
color: __UP_FontCol__;
text-align: center;
}

#lien a:link
{
text-decoration: none;
color: __UP_FontCol__;
}

#lien a:visited
{
text-decoration: none;
color: __UP_FontCol__;
font-style: italic;
}

#lien a:hover
{
text-decoration: none;
color: __UP_BorderCol__;
font-weight: bold;
background-color: __UP_BackCol__;
}

  
#lien a:focus
{
text-decoration: none;
color: __UP_BorderCol__;
font-weight: bold;
background-color: __UP_BackCol__;
}


#lien a:active
{
text-decoration: none;
color: __UP_BorderCol__;
font-weight: bold;
background-color: __UP_BackCol__;
 
 
</style>

<div id="container"></div>

<script type="text/javascript">

var prefs = new _IG_Prefs(__MODULE_ID__);

var s_gro = _trim(prefs.getString("GroupName"));
s_gro = s_gro.replace("'"," ");

var s_txt = _trim(prefs.getString("Text"));
s_txt = s_txt.replace("'"," ");
  
var s_html="";

s_html= "<img src='http://www.liens-du-vin.ch/_pic062/google-groupe-en.png' height='26' width='132' alt='Google Groups' title='Google Groups' />" +
        "<form style='text-align:center; margin-top:5px;' action='http://groups.google.com/group/" + s_gro + "/boxsubscribe' target='_blank'> " +
        "<p>" + s_txt + "</p>" +
        "<p><input type='text' name='email'></p>" +  
        "<p><input type='submit' name='sub' value='Subscribe'></p>" +
        "<p id='lien'><a href='http://groups.google.com/group/" + s_gro + "' target='_blank' title='Visit the Group : " + s_gro + "'>Visit " + s_gro + "</a></p>" +
        "</form>";  


_gel("container").innerHTML = s_html;

</script>


]]></Content>
</Module>
