﻿<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Odeo Flash Player"
title_url="http://sites.google.com/site/annuairevin/"
height="62"
width="310"
scrolling="false"
directory_title="Odeo Flash Player"
description="Flash Container to Play MP3 Songs from Odeo."
screenshot="http://winepic061.googlepages.com/odeo-flash-screen.png"
thumbnail="http://winepic061.googlepages.com/odeo-flash-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">

<Require feature="flash" />

</ModulePrefs>

<UserPref name="File" display_name="File (*.mp3)"
required="true" default_value="http://philippe.chappuis.googlepages.com/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>

<Content type="html">
<![CDATA[

<style type="text/css">
body
{
padding: 0;
margin: 0;
background: transparent;
}

</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=_unesc(_trim(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://odeo.com/flash/audio_player_black.swf';}
else
{s_ski='http://www.odeo.com/flash/audio_player_standard_gray.swf';}

s_fil= s_ski + "?" + s_aut + "&amp;valid_sample_rate=true&amp;external_url=" + s_fil;

// Play .swf file
function displaySlide()
{

// Play .swf file.
_IG_EmbedFlash(s_fil, "flashcontainer", {
swf_version: 7,
id: "flashid",
wmode: "transparent",
width: 300,
height: 52
})
}



// When gadget first loads, display slide
_IG_RegisterOnloadHandler(displaySlide);

</script>
]]>
</Content>
</Module>