<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Odeo Flash Player"
title_url="http://sites.google.com/site/annuairevin/tips-and-tricks-for-google-sites"
height="62"
width="310"
scrolling="false"
directory_title="Odeo Flash Player"
description="Flash Container to Play MP3 Songs."
screenshot="http://www.liens-du-vin.ch/_pic061/odeo-flash-screen.png"
thumbnail="http://www.liens-du-vin.ch/_pic061/odeo-flash-thumb.png"
author="Philippe Chappuis"
author_email="info+gadgetCSE@liens-du-vin.ch"
author_affiliation="Google"
author_location="Rolle Switzerland"
author_link="http://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">

<Require feature="flash" />
<Require feature="analytics" />

</ModulePrefs>

<UserPref name="File" display_name="File (*.mp3)"
required="true" default_value="http://www.liens-du-vin.ch/_files/bach_243_gloria_patri.mp3" />

<UserPref name="AutoPlay" display_name="Auto Play" required="true"
default_value="yes" />

<UserPref name="Skin" display_name="Skin" default_value="Gray - Black" datatype="enum" >
<EnumValue value="Gray - Black" />
<EnumValue value="Pink - Gray" />
</UserPref>

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

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

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

</style>

<div id="flashcontainer" style="text-align: center; "></div>

<script type="text/javascript">

// Global variables

var prefs = new _IG_Prefs(__MODULE_ID__);

var s_fil=prefs.getString("File");

var s_aut=_trim(prefs.getString("AutoPlay"));
if (s_aut=='yes')
{s_aut='auto_play=true';}
else
{s_aut='auto_play=false';}

var s_ski=_trim(prefs.getString("Skin"));
if (s_ski == 'Gray - Black')
// {s_ski='http://www.odeo.com/flash/audio_player_black.swf';}
{s_ski='http://sites.google.com/site/annuairevin/files/odeo-black.swf';}  
  
else
// {s_ski='http://www.odeo.com/flash/audio_player_standard_gray.swf';}
{s_ski='http://sites.google.com/site/annuairevin/files/odeo-pink.swf';}
  
var sfv =  s_aut + "&valid_sample_rate=true&external_url=" + s_fil;

// Play .swf file
function displaySlide()
{

// Play .swf file.
_IG_EmbedFlash(s_ski, "flashcontainer", {
swf_version: 9,
id: "flashid",
flashvars: sfv,
wmode: "transparent",
width: 300,
height: 52
})
}



// When gadget first loads, display slide
_IG_RegisterOnloadHandler(displaySlide);
  
_IG_Analytics("UA-442758-35", "/g_sound");

</script>
]]>
</Content>
</Module>