<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Flash Player"
title_url="http://sites.google.com/site/annuairevin/"
height="350"
width="446"
scrolling="false"
directory_title="Flash Slideshow"
description="Flash Slideshow. A Google Gadget to incorporate a Flash Player within Google Sites."
screenshot="http://www.liens-du-vin.ch/_pic06/gadget-flash_slideshow-screenshot.png"
thumbnail="http://www.liens-du-vin.ch/_pic06/gadget-flash_slideshow-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://w266.photobucket.com/pbwidget.swf?pbwurl=http://w266.photobucket.com/albums/ii244/prac53/Swiss Wineries/f2ffa408.pbw" />
<UserPref name="Photo" display_name="Picture" required="true" default_value="http://i266.photobucket.com/albums/ii244/prac53/chateau_vufflens.jpg" />
<UserPref name="Titre" display_name="Title of Picture" required="true" default_value="Vufflens-le-Château" />
<UserPref name="Link" display_name="Link on Picture" required="true" default_value="http://www.liens-du-vin.ch/video_pressing_grapes.htm" />
<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/vision_cdc.htm" />

<UserPref name="Buttoncol" display_name="Color for Buttons" required="true" default_value="#C3D9FF" />
<UserPref name="Backcol" display_name="Color for Background" required="true" default_value="#D1DAE3" />

<UserPref name="FlashWidth" display_name="Width for Flash" required="true" default_value="426" />

<UserPref name="FlashHeight" display_name="Height for Flash" required="true" default_value="320" />

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

<style type="text/css">
input.mybutton
{
background-color:__UP_Buttoncol__;
border-style:solid;
border-color:#000000;
font-family:Arial,sans-serif;
font-size:11px;
}
.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>

<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=_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"));
  

var s_fwi=_trim(prefs.getString("FlashWidth"));
var s_fhe=_trim(prefs.getString("FlashHeight"));  


// 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: 6,
wmode: "transparent",
scale: "exactfit",
id: "flashid",
width: s_fwi,
height: s_fhe
})
}

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

</script>

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

<script type="text/javascript">

// define footer

var html=

"<input type=submit class='mybutton' value='Start' onClick='displaySlide()'>" +
"<a class='my_link' href='" + s_slk + "' target='_blank' title='" + s_sub + "'>" + "&nbsp;" + s_sub + "&nbsp;" + "</a>" +
"<input type=submit class='mybutton' value='Stop' onClick='showPhoto()'><br><br>";

_gel("my_footer").innerHTML = html;
  
  
_IG_Analytics("UA-442758-35", "/g_slide");

</script>

]]>
</Content>
</Module>