<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Google Gadget to add gif animation within Google Sites"
title_url="http://sites.google.com/site/annuairevin/"
width="800"
height="600"
scrolling="false"
directory_title="Google Gadget to add gif animation within Google Sites (with anchor)"
description="Add a gif animation within a Google Site page. We can define an anchor and a border"
screenshot="http://www.liens-du-vin.ch/_pic061/my_gadgets_thumb.png"
thumbnail="http://www.liens-du-vin.ch/_pic061/my_gadgets_thumb.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="File" display_name="File (url of gif file)" required="true" default_value="http://sites.google.com/site/annuairevin/test-file-cabinet/vin004.gif?attredirects=0" />
<UserPref name="Text" display_name="Text (alt and title)" required="true" default_value="Title" />
<UserPref name="Link" display_name="Link on picture" required="true" default_value="http://www.obrist.ch" />
<UserPref name="Border" display_name="Color of Border" required="true" default_value="#d1dae3" />
<UserPref name="ContainerCol" display_name="Color of Container" required="true" default_value="#d1dae3" />



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

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

#my_img
{
border: solid 1px __UP_Border__;
}    
  
</style>

<a href="#" id="my_link" target="_blank" title=""><img id="my_img" src="" alt="" title="" /></a>

<script type="text/javascript">

var prefs = new _IG_Prefs(__MODULE_ID__);

var s_url = _trim(prefs.getString("File"));
s_url = s_url.replace("'"," ");
s_url = s_url.replace(" ","%20");

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

var s_lnk = _trim(prefs.getString("Link"));
s_lnk = s_lnk.replace("'"," ");
s_lnk = s_lnk.replace(" ","%20");

_gel("my_link").href=s_lnk;
_gel("my_link").title=s_tex;
_gel("my_img").src=s_url;
_gel("my_img").alt=s_tex;
_gel("my_img").title=s_tex;

</script>
]]></Content>

</Module>
