﻿<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="AddThis Gadget"
title_url="http://sites.google.com/site/annuairevin/"
height="16"
width="125"
scrolling="false"
directory_title="AddThis Gadget"
description="Add a AddThis to your Site"
screenshot="http://winepic061.googlepages.com/thumb-addthis-screen.png"
thumbnail="http://winepic061.googlepages.com/thumb-addthis-thumb.png"
author="Philippe Chappuis"
author_email="philippe.chappuis+gadgetCSE@gmail.com"
author_affiliation="Google"
author_location="Rolle Switzerland"
author_link="http://philippe.chappuis.googlepages.com"
author_photo="http://winepic02.googlepages.com/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="Lang" display_name="Language (en or fr)" required="true" default_value="en" />
<UserPref name="ID" display_name="User ID" required="true" default_value="prac53" />
<UserPref name="URL" display_name="URL" required="true" default_value="http://philippe.chappuis.googlepages.com/slide-show-media-rss" />
<UserPref name="Title" display_name="Title" required="true" default_value="Media RSS Feed and Slideshow" />
<UserPref name="BackCol" display_name="Background Color" required="true" default_value="#d1dae3" />

<Content type="html"><![CDATA[


<script type="text/javascript">

var prefs = new _IG_Prefs(__MODULE_ID__);

var ad_uid = _trim(prefs.getString("ID"));

var ad_url = encodeURI(_trim(prefs.getString("URL")));

var ad_tit = _trim(prefs.getString("Title"));

var ad_sti = ad_tit.substr(0,30);
ad_tit = encodeURI(ad_tit);

var ad_lan = _trim(prefs.getString("Lang"));

var ad_cod="en"
var ad_txt="Share"

if (ad_lan == "fr")
{
ad_cod="fr"
ad_txt="Partager"
};

</script>



<style type="text/css">
body
{
padding: 0px;
margin: 0px;
background: __UP_BackCol__;
}
</style>

<body>

<center>
<div id="my_id"></div>
</center>


<script type="text/javascript">



var s_html = "<a href='http://www.addthis.com/bookmark.php?pub=" + ad_uid
+ "&url=" + ad_url + "&title=" + ad_tit
+ "' target='_blank'>"
+ "<img src='http://s7.addthis.com/static/btn/lg-share-" + ad_cod + ".gif' style='width: 125px; height: 16px; border: 0px;' alt='" + ad_txt
+ " " + ad_sti + "' title='" + ad_txt + " " + ad_sti + "' /></a>";

_gel("my_id").innerHTML = s_html;
</script>
]]></Content>

</Module>


