function upRotate( imgs1, caps2, imgname1, capname1 )
{

    var me = this;

    // declare local vars //
    var upcount;
    var loopcount;
    var imgs;
    var caps;
    var imgname;
    var capname;
    
     // setup parameters //
    this.upcount = 0;
    this.loopcount = 0; 
    this.imgs = imgs1;
    this.caps = caps2;
    this.imgname = imgname1;
    this.capname = capname1;
      
      // setup methods //   
    this.next = function next()
   {
   
       window.setTimeout( function(){ me.next() }, 10000);
   
      // alert( this.imgs[0] );
   
      if ( this.go() ) {
		    var i;
		    var c;
		    i = document.getElementById(this.imgname);		    
		    try {
				i.src = this.imgs[this.upcount];
			}
			catch (e) {
			}
					
			
		    c = document.getElementById(this.capname);			
			try {
				c.innerHTML = this.caps[this.upcount] //+ "  upcount: " + this.upcount;
			}
			catch (e) {
			}
			
		    this.upcount++;
	    }

   }// end function next() //
   
   
    this.go = function go(){

     if (this.upcount >= this.imgs.length )
     {
       //alert( "You have hit the end of the line my friend" );
       this.upcount = 0;      
     }
     
		return true;
 }// end function go() //

  me.next();

}// end function upRotate() -- actually class declaration //


   


 
