<?xml version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Indiainteracts Video" 
 thumbnail ="http://ventunotech.com/images/ventuno_logo_new.png" 
 author_email="praboth@ventunotech.com" 
 description="indiainteracts provides wide range of videos under various categories like politics, entertainment, comedy, travel, business, etc."
 height="530"  scrolling="true" >

<Require feature="flash" />

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

<style type="text/css">
 a.{
   text-decoration:none;
  }
input.mybutton
{
background-color:#FFCC99;
border-style:solid;
border-color:#000000;
font-family:Comic Sans MS,sans-serif;
font-size:14px;
}
 div.Content {

  height:450px;
  width:100%;
  }
  div.border {
  font-size:15px;
  font-family:Trebuchet MS;
  color:#86B2F1;
  padding-left:25px;
  }
  p.un {
    padding-left:25px;
    width:550px;
    border-bottom-style:double;
    border-bottom-width:1px;
    border-color:#C5DEA1;
  }
  span.title {
    font-size:15px;
    font-family:Trebuchet MS;
    color:#86B2F1;
  }
  p.subch{
  font-size:13px;
  font-family:Trebuchet MS;
  text-align:left;
  background-color:#f1f1f1;
  width:100%;
  }
</style>
  
<div id="flashcontainer" class="Content">
     
  <div align='left' id=header style="display:block;background-color:#D7E4F7;">
     <img src="http://ventunotech.com/images/ventuno_logo_new.png" /img>
  </div>
  <br>
  <div id=subchannel style="padding-left:20px;display:block;float:right;width:30%;font-size:13px;font-family:Trebuchet MS;"></div>
  <div id=des&cha style="display:block"><!-- Description and Channel div Hide  -->
   
  <div class="border" align=left>  
      <b>Description</b>
      <p class="un"></p>
  </div>
  
  <div align=left style='width:545px;font-size:13px;font-family:Trebuchet MS;padding-left:40px;'>
    Indiainteracts provides wide range of videos under various categories 
    like politics, entertainment, comedy, travel, business, etc.
  </div>
  <br>
    
  <div align=left class="border" >  
      <b>Channels</b>
      <p class="un"></p>
  </div>
  
  <div align=left id="channel1" style="width:545px;">

  <table width=100%>

      <td id="channel" align=left; style='width:545px;font-size:13px;font-family:Trebuchet MS;padding-left:40px;'>
      </td>
      </tr></table>
  </div> 
  
  </div><!-- Description and Channel div Hide Ends -->
   
  <div id="shows1" style="display:block;"> 
  <div id=shwtit align=left style="display:block;"></div>
  <div id=shows style="width:100%;float:left;font-size:13px;font-family:Trebuchet MS;padding-left:40px;"></div>
  
  </div>
  
    <div id=episodes1  style='display:block;'> 
    <table border=0 width=100%>
        <tr><td colspan=3 id=episodnam align=left>
        </td></tr>
        <tr>
        <td width=30px;>&nbsp;</td>
        <td id=player align=left width=100px; valign=top>
        </td>   
        
        <td >
           <table height=335px; cellspacing=0 cellpadding=0><tr>
             <td width=15px;>
             </td>
             <td id=episodes2 align=right  >
               <div id=episodes style="text-align:center;height:345px;width:150px;overflow:auto;">
                 </div>
             </td>
           </tr></table>
        </td>
        <td width=30% valign=top>
         <div id=subshows style="font-size:13px;display:none;border-style:double;border-width:1px;border-color:lightgrey;float-right;text-align:left;height:345px;width:200px;">
          </div>
        </td>
   </tr>
   <tr><td colspan=4 id=embarea align=left></td></tr>
  </table>
  </div>
  
  
</div>

<script type="text/javascript">
  
<!--######  Fetching the channels  ######-->  
var html = new Array();
var ch_name = new Array();
var latest_emb = new Array();
var latest_tit = new Array();

function displayMenu() {

var url ="http://indiainteracts.com/channel.xml";

   _IG_FetchXmlContent(url, function (response) {
    
   var itemList = response.getElementsByTagName("channel");
  
   for (var i = 0; i < itemList.length ; i++) { 
   
      var nodeList = itemList.item(i).childNodes;  
  
      for(var j=0; j<nodeList.length; j++) {
        var node=nodeList.item(j);
        if (node.nodeName == "name") {
            var name = "";
            name = node.firstChild.nodeValue;
        }
        if(node.nodeName == "logo") {
          var logo=node.firstChild.nodeValue;
        }
        if(node.nodeName == "noshows") {
          var no_shows = node.firstChild.nodeValue;
        }
      }

  //html += "<img   src=\"" + logo + "\" >";
  html += "<a href=javascript:sendchannel('"+ name +"') >";
  html += "<li>"+name;
  html += "</a>";
  html += "&nbsp;&nbsp;(Shows - ";
  html += no_shows+")";
  html += "</li><br>";
  
  ch_name[i] = name;
  }
  _gel("channel").innerHTML = html;
});
  
}
  
<!--######  Fetching the Shows  ######--> 
var html1 = new Array();
function sendchannel(get_ch) {
 
  html1="";
  var showurl="http://indiainteracts.com/" + get_ch +".xml";
 
  _IG_FetchXmlContent(showurl, function (response) {

     var shwtit ="";
     shwtit += "<span align=left  class='title'><b>"+get_ch+"&nbsp;Shows</b></span>";
     shwtit += "<p class='un'></p><br>";
     var itemList1 = response.getElementsByTagName("shows");
     for (var x = 0; x < itemList1.length ; x++) { 
       var nodeList1 = itemList1.item(x).childNodes;  
       for(var z=0; z<nodeList1.length; z++) {
          var node1=nodeList1.item(z);
          if (node1.nodeName == "name") {
            var name1 = node1.firstChild.nodeValue;
          }
          if(node1.nodeName == "noepisodes") {
            var no_epis = node1.firstChild.nodeValue;
          }
       }
     if(name1 == "Star of the month") {
       name1="star_of_the_month";
     }
       epi="http://indiainteracts.com/utilities/feed_bebo.php?channel="+get_ch+"&show="+name1;
       
       html1 += "<a  href=javascript:getepisodes('"+epi+"')>";
       html1 += "<li>"+name1;
       html1 += "</a>";
       html1 += "&nbsp;&nbsp;(Episodes - ";
       html1 += no_epis;
       html1 += ")</li>";
       html1 += "<br>";
     } 
     _gel("des&cha").innerHTML = document.getElementById("des&cha").style.display="none";
     _gel("shwtit").innerHTML=shwtit;
     _gel("shows").innerHTML=html1;
     _gel("subshows").innerHTML ="<p class=subch><b>" +get_ch+ "&nbsp;Shows</b></p>"+html1;

     var combobox = "<select onchange=sendchannel(this.value);><option >-Select Channel-</option>";
     for(var k = 0; k < ch_name.length; k++) {
       if(ch_name[k] != get_ch ) {
         combobox += "<option value='"+ch_name[k]+"'>"+ch_name[k]+"</option>";
       } else if(ch_name[k] == get_ch ) {
         combobox += "<option selected value='"+ch_name[k]+"'>"+ch_name[k]+"</option>";
       }
     }
     combobox +="</select>";
     _gel("subchannel").innerHTML = combobox;
  }); 
}
  
<!--######  Fetching the Episodes  ######-->   
  
function getepisodes(get_ep) {

  _IG_FetchXmlContent(get_ep, function (response) {
     var html2 = "";
     var itemList2 = response.getElementsByTagName("item");
     for(var n = 0; n < itemList2.length; n++) {
        var nodeList2 = itemList2.item(n).childNodes;
        
        for(var m = 0; m < nodeList2.length; m++) {       
          var node2 = nodeList2.item(m);        
          if(node2.nodeName == "media:description") {
              var desc = node2.firstChild.nodeValue;
           }
           if(node2.nodeName == "media:title") {
              var tit=node2.firstChild.nodeValue;
           }           
           var chil=nodeList2.item(m).childNodes;
           for(var v=0; v < chil.length; v++) {
             var snode=chil.item(v);
              
             if(snode.nodeName == "media:player" ) {
               var embed =snode.firstChild.nodeValue;
                var emb=snode.getAttribute("url");
             }
             if(snode.nodeName == "media:thumbnail") {
               var thumb=snode.getAttribute("url");
             }
           }   
        }
     var send_tit ="";
     send_tit=escape(tit);
     var h= "";
     h=escape(embed);
        html2 += "<a style='font-size:13px;' href=javascript:play('"+emb+"','"+send_tit+"') >";
        html2 += "<img   src=\"" + thumb + "\" width=100 heoght=90 border=1>";
        html2 += "<br>";
        html2 += tit;
        html2 += "</a>";
        html2 += "<br><br>";
        latest_emb[n]=emb;
        latest_tit[n]=tit;
    } 
    _IG_EmbedFlash(latest_emb[0], "player", {
     width: 405,
     height: 325
    })
    _gel("embarea").innerHTML="<span style='font-family:Trebuchet MS;font-size:14px;'><b>URL:&nbsp;</b></span><input type=text name=embtxt id=embtxt value=>";
     var eptit = "";
     eptit += "<span align=left class='title'><b>"+latest_tit[0]+"&nbsp;</b></span>";
     eptit += "<p class='un'></p>";
     _gel("episodnam").innerHTML=eptit;

    document.getElementById("embtxt").value=latest_emb[0];
    document.getElementById("shows").style.display="none";
    document.getElementById("shwtit").style.display="none";
    document.getElementById("des&cha").style.display="none";
    document.getElementById("subshows").style.display="block";
    _gel("episodes").innerHTML=html2;
  });
}  
 
function play(emb,title) {
 
   _IG_EmbedFlash(emb, "player", {
    width: 405,
    height: 325
  })
  _gel("embarea").innerHTML="<span style='font-family:Trebuchet MS;font-size:14px;'><b>URL:&nbsp;</b></span><input type=text name=embtxt id=embtxt value=>";
  document.getElementById("embtxt").value=emb;
  var epstit ="";
  epstit += "<span align=left class='title'><b>"+title+"&nbsp;</b></span>";
  epstit += "<p class='un'></p>";
  _gel("episodnam").innerHTML=epstit;
  
}  
  
_IG_RegisterOnloadHandler(displayMenu);
</script>
<br />

]]>
</Content>
</Module>
