function x683(element,top,right,bottom,left)
{
  if(browser=="NS4")
  {
    document.layers[element].clip.top=top;
    document.layers[element].clip.right=right;
    document.layers[element].clip.height=bottom-top;document.layers[element].clip.left=left;  
  }
  if(browser=="IE"||browser=="NS6"||browser=="Opera")
  {
    document.getElementById(element).style.clip='rect('+top+'px, '+right+'px, '+bottom+'px, '+left+'px)';
  }
};

browser=x08226313404();
os=x065309();

function MM_findObj(n,d)
{ //v4.01
  var p,i,x;
  if(!d) d=document; 
  if((p=n.indexOf("?"))>0&&parent.frames.length)
  {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);
  }
  if(!(x=d[n])&&d.all) x=d.all[n]; 
  for(i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
    function AJScroller()
    {
      
      this.width=170;
      this.height=150;
      this.scrollspeed=50;
      this.pausedelay=2000;
      this.spacing=10;
      this.pausemouseover=false;
      this.y_offset=0;
      this.x_offset=0;
      this.name='ajscroller';
      this.heightArray=new Array(100);
      this.currentspeed=50;
      this.curTopItem=1;
      this.numItems=0;
      this.stop=true;
      this.x=0;
      this.y=0;
      this.ver="2.22";
      this.id="45163";
      this.timeoutIDArray=new Array(30);
      this.tiac=0;

      public:
      this.stopclicked=0;
      this.resumeclicked=1;

      
      this.sc=funcstopclicked;
      this.rc=funcresumeclicked;
      

      this.add=AddAJScrollerItem;

      
      
      this.display=function()
        {
          if(browser=="NS4")
          {
            document.write('<ilayer id="ajscroller" id="ajscroller" width="'+this.width+'" height="'+this.height+'">');    
            document.write('</ilayer><br>');
          }
          if(browser=="IE"||browser=="NS6"||browser=="Opera")
          {
            //document.write('<div id="ajscroller" style="position:relative;width:'+this.width+'px;height:'+this.height+'px;z-index:2" onmouseover="if (aj_scroller.pausemouseover){AJStop();}" onmouseout="if (aj_scroller.pausemouseover){aj_scroller.timeoutIDArray[aj_scroller.tiac++] = setTimeout(\'AJResume()\', 50);}"></div>');
            //document.write('<div id="ajscroller" style="position:relative;width:'+this.width+'px;height:'+this.height+'px;z-index:2" onmouseover="if ((aj_scroller.pausemouseover)&&(!aj_scroller.resumeclicked)){AJStop();}" onmouseout="if ((aj_scroller.pausemouseover)&&(!aj_scroller.stopclicked)){aj_scroller.timeoutIDArray[aj_scroller.tiac++] = setTimeout(\'AJResume()\', 50);}"></div>');
            document.write('<div id="ajscroller" style="position:relative;width:'+this.width+'px;height:'+this.height+'px;z-index:2"  ></div>');  
          }
        };
    };

    function AddAJScrollerItem(text)
    {
      this.numItems++;

      if(browser=="NS4")
      {
        document.writeln('<layer id="ajscrolleritm'+this.numItems+'" visibility="hide" width="'+this.width+'">');

        if(arguments.length>=1)
        {
          document.writeln(text);
          document.writeln('</layer>');
        }
      }
      
      if(browser=="IE"||browser=="NS6"||browser=="Opera")
      {
        //document.writeln('<div id="ajscrolleritm'+this.numItems+'" style="visibility:hidden;position:absolute;width:'+this.width+'px;z-index:3" onmouseover="if (aj_scroller.pausemouseover){AJStop();}"  onmouseout="if (aj_scroller.pausemouseover){aj_scroller.timeoutIDArray[aj_scroller.tiac++] = setTimeout(\'AJResume()\', 50);}">');

        //document.writeln('<div id="ajscrolleritm'+this.numItems+'" style="visibility:hidden;position:absolute;width:'+this.width+'px;z-index:3" onmouseover="if ((aj_scroller.pausemouseover)&&(!aj_scroller.resumeclicked))){AJStop();}"  onmouseout="if ((aj_scroller.pausemouseover)&&(!aj_scroller.stopclicked)){aj_scroller.timeoutIDArray[aj_scroller.tiac++] = setTimeout(\'AJResume()\', 50);}">')

        document.writeln('<div id="ajscrolleritm'+this.numItems+'" style="visibility:hidden;position:absolute;width:'+this.width+'px;z-index:3">')

        if(arguments.length>=1)
        {
          document.writeln(text);document.writeln('</div>');
        }
      }
    };

    function LoadAJScroller()
    {
      if(os=="Mac"&&browser=="IE"){aj_scroller.y_offset=parseInt(document.body.topMargin);aj_scroller.x_offset=parseInt(document.body.leftMargin);}if(!(browser=="Opera"&&version==6))setTimeout('x81623123448075()',50);
    };

    function x81623123448075()
    {
      aj_scroller.y=x466187111('ajscroller');
      aj_scroller.x=x3990044603('ajscroller');
      aj_scroller.curTopItem=1;
      var name='ajscrolleritm';
      var y=aj_scroller.y-1;
      var h;
      for(var i=aj_scroller.curTopItem;i<=aj_scroller.numItems;i++)
      {
        x483140(name+i,y);
        x3329217(name+i,aj_scroller.x+aj_scroller.x_offset);
        h=x516306672(name+i);
        aj_scroller.heightArray[i]=h;

        if(y<aj_scroller.y+aj_scroller.y_offset||y+h>aj_scroller.y+aj_scroller.y_offset+aj_scroller.height)
        {
          x683(name+i,Math.max(0,aj_scroller.y+aj_scroller.y_offset-y),aj_scroller.width,Math.min(aj_scroller.y+aj_scroller.y_offset+aj_scroller.height-y,h),0);
        }
        y+=h+aj_scroller.spacing;
        x2826022670(name+i,true);
      }

      if(y<aj_scroller.y+aj_scroller.height)
      {
        /*alert('Warning: The total height of the scroller items have to exceed the display height');*/
      }
        if(browser=="Opera"&&version!=7)
        {return;}
        if(aj_scroller.stop)
        {
          aj_scroller.stop=false;aj_scroller.currentspeed=aj_scroller.scrollspeed;setTimeout('x9664517()',aj_scroller.pausedelay);
        }
    };
    
    function x89037805512(element,index)
    {
      if(browser=="NS4")
      {
        return(aj_scroller.heightArray[index]);
      }
      if(browser=="IE")
      {
        return(document.all[element].offsetHeight);
      }
      if(browser=="NS6")
      {
        return document.getElementById(element).offsetHeight;
      }
      if(browser=="Opera"){if(version==7){return(document.getElementById(element).offsetHeight);}else{return(document.getElementById(element).style.pixelHeight);}}
    };

    function x88341497586229(){};
      
      function x9664517()
      {
        var y=0;
        var i;
        var name='ajscrolleritm';
        var cur_name=name+aj_scroller.curTopItem;
        
        if(x466187111(cur_name)+x89037805512(cur_name,aj_scroller.curTopItem)<aj_scroller.y)
        {
          x483140(cur_name,-800);

          if(aj_scroller.curTopItem==aj_scroller.numItems)
          {
            aj_scroller.curTopItem=1;
          }
          else
          {
            aj_scroller.curTopItem++;
          }
          cur_name=name+aj_scroller.curTopItem;
        }
        y=x466187111(cur_name)+aj_scroller.y_offset;
        ;
        aj_scroller.currentspeed=aj_scroller.scrollspeed;
        for(i=aj_scroller.curTopItem;i<=aj_scroller.numItems;i++)
        {
          y=x9664517Loop(name+i,i,y);
        }
        for(i=1;i<aj_scroller.curTopItem;i++)
        {
          y=x9664517Loop(name+i,i,y);
        }
        if(!aj_scroller.stop)
        {
          aj_scroller.timeoutIDArray[aj_scroller.tiac++]=setTimeout('x9664517()',aj_scroller.currentspeed);
        }
      };
      
      function x9664517Loop(cur_name,i,y)
      {
        if(y<aj_scroller.height+aj_scroller.y)
        {
          var item_y=x466187111(cur_name)+aj_scroller.y_offset;
          var item_h=x89037805512(cur_name,i);
          if(item_y==aj_scroller.y&&aj_scroller.pausedelay>aj_scroller.scrollspeed)
          {
            aj_scroller.currentspeed=aj_scroller.pausedelay;
          }
          if(item_y>-800)
          {
            x483140(cur_name,item_y-1);
          }
          else
          {
            x483140(cur_name,y);
          }
          if(item_y<aj_scroller.y+aj_scroller.y_offset||item_y+item_h>aj_scroller.y+aj_scroller.y_offset+aj_scroller.height)
          {
            x683(cur_name,Math.max(0,aj_scroller.y+aj_scroller.y_offset-item_y),aj_scroller.width,Math.min(aj_scroller.y+aj_scroller.y_offset+aj_scroller.height-item_y,item_h),0);
          }
          y+=item_h+aj_scroller.spacing;x2826022670(cur_name,true);
        }
        else
        {
          x483140(cur_name,-800);
        }
        return y;
      };

function AJIncreaseSpeed(value)
{
  aj_scroller.scrollspeed=Math.max(2,aj_scroller.scrollspeed-parseInt(value));
};

function AJDecreaseSpeed(value)
{
  aj_scroller.scrollspeed+=parseInt(value);
};

function AJStop()
{
  for(var i=0;i<aj_scroller.tiac;i++)
  {
    clearTimeout(aj_scroller.timeoutIDArray[i]);
  }
  aj_scroller.tiac=0;
  aj_scroller.stop=true
};

function AJResume()
{
  if(aj_scroller.stop)
  {
    for(var i=0;i<aj_scroller.tiac;i++)
    {
      clearTimeout(aj_scroller.timeoutIDArray[i]);
    }
    aj_scroller.tiac=0;
    aj_scroller.stop=false;
    aj_scroller.currentspeed=aj_scroller.scrollspeed;
    x9664517();
  }
};

/*The functions below is to provide the stop moving forward and show more contineously functionalities....Rituraj***********/

function funcstopclicked()
{
  this.stopclicked=1;
  this.resumeclicked=0;

  /*
  aj_scroller.y=x466187111('ajscroller');
  aj_scroller.x=x3990044603('ajscroller');
  aj_scroller.curTopItem=1;
  */

  //alert("CurtopItem = "+aj_scroller.curTopItem);

  //alert("Tiac = "+aj_scroller.tiac);

  for(var i=0;i<aj_scroller.tiac;i++)
  {
    clearTimeout(aj_scroller.timeoutIDArray[i]);
  }
  aj_scroller.tiac=0;
  aj_scroller.stop=true
  
  /*if(aj_scroller.curTopItem > 1)
  aj_scroller.curTopItem--;
  */

  var i=MM_findObj("stop");
  //i.innerHTML='<a class="bullet1" href="javascript:funcresumeclicked();"style="border:0px; margin-left:4px;text-decoration:none;">Show More Continuously</a>'; //orginal code
  i.innerHTML='<a class="bullet1" href="javascript:funcresumeclicked();" style="border:0px; padding-left:7px;text-decoration:none;">(Stop Moving Forward)</a>';
  
  
};

function funcresumeclicked()
{
  this.stopclicked=0;
  this.resumeclicked=1;
  
  if(aj_scroller.stop)
  {
    for(var i=0;i<aj_scroller.tiac;i++)
    {
      clearTimeout(aj_scroller.timeoutIDArray[i]);
    }
    aj_scroller.tiac=0;
    aj_scroller.stop=false;
    aj_scroller.currentspeed=aj_scroller.scrollspeed;
    x9664517();
  }
  var i=MM_findObj("stop");
//  i.innerHTML='<a class="hlinks" href="javascript:funcstopclicked();" >Stop Moving Forward</a>'; 
  i.innerHTML='<a class="bullet1" href="index_static.php" style="border:0px; padding-left:7px;text-decoration:none;">(Stop Moving Forward)</a>';
  
};

/*Till here functions below is to provide the stop moving forward and show more contineously functionalities....***********/

