function makeOpCos(c){
      this.copy = c;
      this.write = writeOpCos;
   }


 function writeOpCos(){
      var str = '';
      str += this.copy + '<br>';
      return str;
   }

   var OpCosArrayBE = new Array();
   OpCosArrayBE[0] = new makeOpCos("South Western - West Legal Studies in Business").write();
   OpCosArrayBE[1] = new makeOpCos("SAGE").write();

   var OpCosArrayHS = new Array();
   OpCosArrayHS[0] = new makeOpCos("Wadsworth - Brooks/Cole - Heinle - Schirmer").write();
   OpCosArrayHS[1] = new makeOpCos("SAGE").write();

   var OpCosArrayTT = new Array();
   OpCosArrayTT[0] = new makeOpCos("Delmar - Course Technology").write();
   OpCosArrayTT[1] = new makeOpCos("Goodheart-Willcox - CMHC - DeWalt - FIT").write();
   OpCosArrayTT[2] = new makeOpCos("American Technical Publishers - SAGE").write();
   OpCosArrayTT[3] = new makeOpCos("Industrial Press - Centennial College Press").write();

   var nIndexTT = 0;
   var timerIDTT = null;

   var nIndexBE = 0;
   var timerIDBE = null;

   var nIndexHS = 0;
   var timerIDHS = null;


   function rotateOpCos(){
      rotateOpCosTT();
   	  rotateOpCosBE();
   	  rotateOpCosHS();
   }

   function rotateOpCosTT(){
   	  var lenTT = OpCosArrayTT.length;
      if(nIndexTT >= lenTT)
         nIndexTT = 0;
      document.getElementById('opCosTT').innerHTML = OpCosArrayTT[nIndexTT];
      nIndexTT++;
      timerIDTT = setTimeout('rotateOpCosTT()',6000);
   }

   function rotateOpCosBE(){
   	  var lenBE = OpCosArrayBE.length;
      if(nIndexBE >= lenBE)
         nIndexBE = 0;
      document.getElementById('opCosBE').innerHTML = OpCosArrayBE[nIndexBE];
      nIndexBE++;
      timerIDBE = setTimeout('rotateOpCosBE()',6000);
   }

   function rotateOpCosHS(){
   	  var lenHS = OpCosArrayHS.length;
      if(nIndexHS >= lenHS)
         nIndexHS = 0;
      document.getElementById('opCosHS').innerHTML = OpCosArrayHS[nIndexHS];
      nIndexHS++;
      timerIDHS = setTimeout('rotateOpCosHS()',6000);
   }

/*
function pauseOpCos() {
      if (timerID != null) {
         clearTimeout(timerID);
         timerID = null;
      }
   }

   function playOpCos() {
      if (timerID == null) {
         timerID = setTimeout('rotateOpCos()', 1000);
      }
   }
*/