<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Play Flash Video"
title_url="http://sites.google.com/site/annuairevin/"
height="394"
width="480"
scrolling="false"
directory_title="Flash Video"
description="Flash Video. A Google Gadget to incorporate a Flash Player within Google Sites."
screenshot="http://www.liens-du-vin.ch/_pic061/flash-video-screenshot.png"
thumbnail="http://www.liens-du-vin.ch/_pic061/flash-video-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">

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

</ModulePrefs>

<UserPref name="File" display_name="File (*.swf)"
required="true" default_value="http://www.dailymotion.com/swf/3gFvrrAZ3QXqwmOzD" />
<UserPref name="Photo" display_name="Picture" required="true" default_value="http://www.liens-du-vin.ch/_pic061/chaplin-google-video.jpg" />
<UserPref name="Titre" display_name="Title of Picture" required="true" default_value="the kid project - chaplin at web 2.0" />
<UserPref name="Link" display_name="Link on Picture" required="true" default_value="http://sites.google.com/site/antolintinez/Home/the-kid-project-1" />
<UserPref name="Subtitle" display_name="Subtitle" required="true" default_value=" Discover The Swiss Wineries " />
<UserPref name="Sublink" display_name="Link on Subtitle" required="true" default_value="http://www.liens-du-vin.ch/_winemap/maps-clos-domaines-chateaux.htm" />
<UserPref name="Backcol" display_name="Color for Background" required="true" default_value="#D1DAE3" />

<UserPref name="Fwidth" display_name="Width of Flash" required="true" default_value="480" />
<UserPref name="Fheight" display_name="Height of Flash" required="true" default_value="380" />

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

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

<style type="text/css">

body
{
padding: 0px;
margin: 0px;
background: __UP_ContainerCol__;
}


.my_link
{
font-family:Arial,sans-serif;
font-size:11px;
}

.my_link:link, .my_link:visited
{
text-decoration: none;
}

.main_box
{
background-color: __UP_Backcol__;
}

</style>

<center>
<div class="main_box" style="height: 430px; width: 430px;">
&nbsp;
<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_img=_trim(prefs.getString("Photo"));
var s_tit=_trim(prefs.getString("Titre"));
var s_lnk=_trim(prefs.getString("Link"));
var s_sub=_trim(prefs.getString("Subtitle"));
var s_slk=_trim(prefs.getString("Sublink"));


// Display photo.
function showPhoto()
{
_gel("flashcontainer").innerHTML = "<a style='border: 0 none;' href='" + s_lnk + "' target='_blank' title='" + s_tit + "'><img src='" + s_img + "' style='border: 0 none;' alt='" + s_tit + "' title='" + s_tit + "' /img></a>";
}

// Play .swf file
function displaySlide()
{
// Play .swf file.
_IG_EmbedFlash(s_fil, "flashcontainer", {
swf_version: 9,
id: "flashid",
wmode: "window",
scale: "exactfit",
width: __UP_Fwidth__,
height: __UP_Fheight__
})
}

// When gadget first loads, display photo.
_IG_RegisterOnloadHandler(showPhoto);
</script>

<div id="my_footer" style="text-align: center; margin-top:5px;"></div>
<br/>&nbsp;


<script type="text/javascript">

// define footer

var html=

"<img src='http://www.liens-du-vin.ch/_pic061/button-start.gif' title='Start' alt='Start' onClick='displaySlide()'>" +
"<a class='my_link' href='" + s_slk + "' target='_blank' title='" + s_sub + "'>" + "&nbsp;&nbsp;&nbsp;" + s_sub + "&nbsp;&nbsp;&nbsp;" + "</a>" +
"<img src='http://www.liens-du-vin.ch/_pic061/button-stop.gif' title='Stop' alt='Stop' onClick='showPhoto()'>";

_gel("my_footer").innerHTML = html;

_IG_Analytics("UA-442758-35", "/g_video");
  
</script>
</div>
</center>
]]>
</Content>
</Module>