<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Play Flash Video"
title_url="http://sites.google.com/site/annuairevin/"
height="370"
width="425"
scrolling="false"
directory_title="Flash Video"
description="Flash Video from YouTube, with option autostart"
screenshot="http://winepic061.googlepages.com/flash-video-screenshot.png"
thumbnail="http://winepic061.googlepages.com/flash-video-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 (*.swf)"
required="true" default_value="http://www.youtube.com/v/XZHu8E5uJxA" />
<UserPref name="Autostart" display_name="Autostart" required="true" default_value="1" />
<UserPref name="Backcol" display_name="Color for Background" required="true" default_value="#D1DAE3" />

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

<style type="text/css">

.main_box
{
background-color: __UP_Backcol__;
}

</style>

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

<script type="text/javascript">

// Global variables

var prefs = new _IG_Prefs(__MODULE_ID__);

var s_fil=_trim(prefs.getString("File")) + '&autoplay=' + prefs.getString("Autostart");

// Play .swf file
function displaySlide()
{
// Play .swf file.
_IG_EmbedFlash(s_fil, "flashcontainer", {
swf_version: 6,
id: "flashid",
width: 425,
height: 350 
})
}

// When gadget first loads
_IG_RegisterOnloadHandler(displaySlide);
</script>
</div>
]]>
</Content>
</Module>