<?xml version="1.0" encoding="UTF-8" ?>
<Module>
 <ModulePrefs title="Event"
    description="Use this gadget to promote an event to your community. Members of your site can get details about the event (including images and video), see a map, indicate whether they will attend, and see who else has responded. Events can be added to a member's Google Calendar with a single click."
    thumbnail="/ig/modules/socialevent-thm.png"
    screenshot="/friendconnect/static/images/social-event.png"
    author="Google"
    author_affiliation="Google Inc."
    author_email="friendconnect-feedback+gadgets@google.com">
  <Require feature="opensocial-0.8"/>
  <Require feature="views"/>
  <Require feature="dynamic-height"/>
 </ModulePrefs>
 <Content type="html">
 <![CDATA[

<link type="text/css" rel="stylesheet" href="/ig/modules/calendar/socialevent/embedevent.css" />
<script type="text/javascript" src="/ig/modules/calendar/socialevent/embedevent.js"></script>

<script type="text/javascript">
var widget;
function loadEventControl() {
  var params = gadgets.views.getParams() || {};

  var data = {
    scope: params['scope'] || 'PAGE',
    id: params['id'] || '',
    summary: params['title'],
    description: params['description'],
    start: params['start'],
    end: params['end'],
    timezone: params['tz'],
    location: params['location'],
    address: params['address']
  };

  var options = {
    mapZoom: params['mapZoom'],
    imageUrl: params['imageUrl'],
    videoId: params['videoId'],
    slideshowFeed: params['slideshowFeed'],
    showMap: params['showMap'],
    showCalendar: params['showCalendar'],
    showCountdown: params['showCountdown'],
    server: params['server']
  };

  var element = document.getElementById('output');
  element.innerHTML = '';
  widget = new GSevent(data, element, options);
}

gadgets.util.registerOnLoadHandler(loadEventControl);

</script>
<div id="output"></div>

 ]]>

 </Content>
</Module>

