// JScript File
    
   var status =true;
   var myInterval=null;
        
   
     function Start()
     {
     
     //alert("start");
     //-->
         
    var count=document.getElementById ("count").value;
    // Show("div"+ 1);   
     if (count > 0 )
      
      {      
        
         myInterval = window.setInterval('FlashContentShow()',6000); 
      
      
      }
 }
       
     function FlashContentShow()
     {
    // alert("call");
        var divids;
        var id;
        var count=document.getElementById("count").value;
             
       for (var i=1;i<=count;i++)
         {
                   
             if (document.getElementById ("div"+i).style.display=="block")
             
             {
             
              if (i >=count) 
                 {
            
              Show(1);
              break; 
              }
            
              else
              {
              Show(i+1);
              break; 
            
              }
                         
             } 
           
        
        }
  
     }   
           
     
     function Show(id)
     {
      
       if (myInterval!='undefined') 
          {
           
          // window.clearInterval(myInterval);
         //  myInterval=null;
          }
      
     var count=document.getElementById("count").value;
     for (var i=1;i<=count;i++)
         {
         var divids="div"+i;
         hidediv(divids);
	    }		  
  
      var divid= "div"+id;
      document.getElementById (divid).style.display="block";
                    
    }
       
     function hidediv(id)
     {
     document.getElementById(id).style.display ="none";
     }
