<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Music Thing blogs feed" directory_title="Music gear blogs feed" description="News from Music Thing, Create Digital Music, Analog Industries, Matrix Synth and others" title_url="http://www.musicthing.co.uk/" author="Music Thing" author_email="tom@musicthing.co.uk" author_location="UK" screenshot="http://photos1.blogger.com/blogger/4749/510/1600/logo-581-86.gif" thumbnail="http://photos1.blogger.com/blogger/4749/510/1600/logo-581-86.gif" height="360" width="295" scrolling="false" singleton="false" category="news" category2="tools">
  <Require feature="tabs"/>
  <Require feature="analytics" />
</ModulePrefs>
<UserPref name="selectedTab" datatype="hidden"/>
<Content type="html"><![CDATA[
  <style type="text/css">
  .tablib_table__MODULE_ID__ { font-size: 11px; }


.tablib_table {
  width:100%;
  border-collapse:collapse;  
  background:#ffffff;
  border-spacing:0px;
  empty-cells:show;
    line-height:12px;
  margin-top:0px;
  font-size:9px;
  text-align:center;
}
.tablib_spacerTab, .tablib_emptyTab {
  border-bottom:0px solid #ffffff;background-color:#ffffff;
  padding:0px 0px;
}
.tablib_selected {
  padding:0px 0px;
      background-color:#FFaa33;
  border-top:0px solid #ffffff;
  border-right:0px solid #ffffff;
  border-left:0px solid #ffffff;
   border-bottom:0px solid #aaaaaa;
     color:#000000;
  font-weight:normal;
  width:40px;
  cursor:default;
}
.tablib_unselected {
  padding:0px 0px;
  background-color:#FFCC33;
  border-top:0px solid #ffffff;
  border-right:1px solid #ffffff;
  border-left:0px solid #ffffff;
 border-bottom:0px solid #cccccc;
  color:#000000;
  width:40px;
  cursor:default;
}
    

  .statusLabel {
    font-size:30px;font-family: arial,san-serif;color:#aaaaaa;
    font-style:italic;
    padding-top:30px;
    text-align:center;
  }
  .feedHeader {
    padding-top:0px;
    font-size:13px;
  }
  
a:visited, a:link {color:#808080;
	text-decoration:none;
}
a:hover, a:active {color:#808080;
	text-decoration:underline;
}  .feedList {
    font-size:10px;
font-family: arial,sans-serif;color:#000000;    margin:0px 0px 0px 0px;
    padding:0px 3px 5px 3px;
/*    border-top: 0px solid #aaaaaa; */
    border-bottom: 0px solid #aaaaaa;
  }
  .feedList li {
    margin-top:5px;
    padding:0px; font-weight:bold;
  }
  .feedList div.entrySummary {
    font-size:10px;color:black;
  }
  .feedlist div.entryTimestamp {
    font-size:8px;
    font-style:italic;
    color:#676767;
  }
  </style>
  <script>
  // Global variables
  var prefs = new _IG_Prefs(__MODULE_ID__);
  var tabs = new _IG_Tabs(__MODULE_ID__);
   

  /**
   * Initialize tabs when page loads.
   * Create tab for each userpref only if userpref is not empty.
   */
  function init() {
    var f1 = "http://musicthing.blogspot.com/feeds/posts/default";
    var f2 = "http://feeds.feedburner.com/createdigitalmusic";
    var f3 = "http://www.analogindustries.com/blog/rss.jsp";
    var f4 = "http://matrixsynth.blogspot.com/feeds/posts/default";
    var f5 = "http://pipes.yahoo.com/pipes/pipe.run?_id=452ba4f3e04ccbe61ef8adcd76ad7c94&_render=rss";
    var f6 = "";
    var f7 = "";
    var ft1 = "Music Thing";
    var ft2 = "Create Digital";
    var ft3 = "Analog Inds";
    var ft4 = "Matrix Synth";
    var ft5 = "More";
    var ft6 = "";
    var ft7 = "";

    if (f1 != "") {
      tabs.addDynamicTab(((ft1 == "") ? "Feed 1" : ft1), _IG_Callback(callbackTab, f1));
    }
    if (f2 != "") {
      tabs.addDynamicTab(((ft2 == "") ? "Feed 2" : ft2), _IG_Callback(callbackTab, f2));
    }
    if (f3 != "") {
      tabs.addDynamicTab(((ft3 == "") ? "Feed 3" : ft3), _IG_Callback(callbackTab, f3));
    }
    if (f4 != "") {
      tabs.addDynamicTab(((ft4 == "") ? "Feed 4" : ft4), _IG_Callback(callbackTab, f4));
    }
    if (f5 != "") {
      tabs.addDynamicTab(((ft5 == "") ? "Feed 5" : ft5), _IG_Callback(callbackTab, f5));
    }
    if (f6 != "") {
      tabs.addDynamicTab(((ft4 == "") ? "Feed 6" : ft6), _IG_Callback(callbackTab, f6));
    }
    if (f7 != "") {
      tabs.addDynamicTab(((ft7 == "") ? "Feed 7" : ft7), _IG_Callback(callbackTab, f7));
    }
  };

  /**
   * Fetches an Atom or RSS feed and generates content inside the
   * selected tab's content container.  This function is called whenever
   * a tab is selected.
   */
  function callbackTab(tabId, feedUrl) {
    var summaries = 100;
    var entries = 8;
    var showhtml = "true";
    var container = _gel(tabId);

    // Display loading message before fetching feed.
    container.innerHTML = '<div class="statusLabel">Loading...</div>';

    // Fetch feed and return it as a JSON object.
    // Callback function is defined within local scope.
    _IG_FetchFeedAsJSON(
      feedUrl,
      function(feed) {
        if (typeof feed == "undefined" || typeof feed.Entry == "undefined") {
          container.innerHTML = '<div class="statusLabel">Invalid feed URL:<br>' + feedUrl + '</div>';
        } else {
          // Fetch feed successful.  Generate HTML content from returned JSON object.
          // Create feed header containing title and description.
          var html = new Array();
          html.push('')
          html.push('');
           html.push('');

          html.push('</div>');

          // Iterate through each feed entry and generate list of content.
          html.push('<ul class="feedList">');
          for (var n = 0; n < feed.Entry.length; n++) {
            var entry = feed.Entry[n];
            html.push('<li>');
            html.push('<a target="_top" href="' + entry.Link + '">' + _hesc(entry.Title) + '</a>');
            if (typeof entry.Summary != "undefined" && entry.Summary != "") {
              var summary = document.createElement("div");
              summary.innerHTML = (summaries == 0) ? entry.Summary : entry.Summary.substr(0, summaries);

            }
                          html.push('</li>');
          }
          html.push('</ul>');
          container.innerHTML = html.join("");
        }



      },
      entries,
      (summaries > -1)
    );
  }

  // Set onload event handler to call init()
  _IG_RegisterOnloadHandler(init);
  </script>
]]>
</Content>
</Module>

