<?xml version="1.0" encoding="UTF-8" ?> 
<Module>
  <ModulePrefs title="The Daily Show" height="375" width="340" scrolling="false"
             author="Jinu George"
             author_email="jgeorge.feedback@googlemail.com"
             author_link="http://raakshaseeyam.blogspot.com" 
             description="Most popular videos from The Daily Show with Jon Stewart"
             screenshot="http://jinuvgeorge.googlepages.com/dailyS.png"
             thumbnail="http://jinuvgeorge.googlepages.com/dailyS_s.png"> 
  <Require feature="analytics" />
</ModulePrefs>
<Content type="html"><![CDATA[
  <script>
  _IG_Analytics("UA-2560293-3", "/DailyShow");
</script>
<script>
  var url = "http://www.thedailyshow.com/video/videos.jhtml";
  var ind = 1;
  function vid () {
  _IG_FetchContent(url, function (responseText) {
  //alert(responseText);
  var recent = responseText.split("Most Recent");
//alert(recent[3]);
  var context = recent[3].split("textHolder");
//alert(context[1]);
  
  if (ind<1)
  ind = 1;

  var vidUrl1 = context[ind].split("href=");
//alert(vidUrl1[1]);
  
  if (!vidUrl1)
  vidUrl1 = context[1].split('href="');

  var vidUrl2 = vidUrl1[1].split('"');

  
  _IG_FetchContent(vidUrl2[1], function (response) {
  var id_temp = response.split('embed style=');
  var id = id_temp[1].split("src='");
  var html = "<embed style='display:block' src='"+id[1].split("'")[0]+"' width='360' height='301' type='application/x-shockwave-flash' wmode='window' allowFullscreen='true' flashvars='autoPlay=false' allowscriptaccess='always' allownetworking='all' bgcolor='#000000'></embed>"; 
  _gel('content').innerHTML = html;
    
  });
      
    });
}
 function next () {
 ind++;
  vid ();
 }
 function back () {
 ind--;
  vid ();
 }
  
  _IG_RegisterOnloadHandler (vid);
</script> 
  
<font size="2" color="3399FF"><b><center>Most Recent Videos</center></b></font>

<div id="nav1" style="float:left;"><font size='2'><a href="javascript:back()" style="text-decoration:none;color:#006699"><< Previous</a></div>
<div id="nav2" style="float:right"><font size='2'><a href="javascript:next()" style="text-decoration:none;color:#006699">Next >></a></div>
&nbsp;
<div id="content" align="center"></div>

<div id="ad" align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-7199283646323733";
/* 234x60, created 6/1/08 */
google_ad_slot = "5888304773";
google_ad_width = 234;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div> 
]]></Content>
</Module>
