   var Img0 = new Image();
   Img0.src = 'http://www.2k1.co.uk/images/product0.jpg';
   var Img1 = new Image();
   Img1.src = 'http://www.2k1.co.uk/images/product1.jpg';
   var Img2 = new Image();
   Img2.src = 'http://www.2k1.co.uk/images/product2.jpg'; 
   var Img3 = new Image();
   Img3.src = 'http://www.2k1.co.uk/images/product3.jpg';
   var Img4 = new Image();
   Img4.src = 'http://www.2k1.co.uk/images/product4.jpg';
   var Img5 = new Image();
   Img5.src = 'http://www.2k1.co.uk/images/product5.jpg';

function makeNews(c,l,f,i){
      this.copy = c;
      this.link = l;
      this.follow = f;
      this.img = i;
      this.write = writeNews;
   }

function writeNews(){
      var str = '';
      str += '<TABLE><TR><TD ROWSPAN="3" WIDTH="120" VALIGN="TOP">';
      str += '<a href="' + this.link + '">';
      str += '<img border="0" src="' + 
         this.img.src + '"></a></TD><TD HEIGHT="25">&nbsp;</TD></TR><TR><TD HEIGHT="40" VALIGN="TOP">';
      str += this.copy + '</TD></TR><TR><TD ALIGN="RIGHT">';
      str +=  '<a href="' + this.link + '">' + 
         this.follow + '</a>';
      str += '</TD></TR></TABLE>';
      return str;
   }



   var newsArray = new Array();
   newsArray[0] = new makeNews(
      "2001 launches the P4 ZLed. The P4 is currently the industry's highest brightness single die device.",
      'displays/Seoul_LED.asp',
       'More...',Img0).write();
   
   newsArray[1] = new makeNews(
      "With plenty of configurable I/O and multiple serial ports, the RCM6700 provides connectivity and control to numerous devices, allowing for greater design flexibility.",
      'rabbit/default.asp',
      'More...',Img1).write();
   
   newsArray[2] = new makeNews(
      "Built with Intel® mobile 945GSE chipset, WADE-8071 takes advantage of the Intel® AtomTM N270's low power and also can provide dual displays such as LVDS and VGA.",
      'portwell/default.asp',
      'More...',Img2).write();
   
   newsArray[3] = new makeNews(
      "The Q52 Omni from Wavecom is a groundbreaking combination of cellular, satellite and GPS technology in a single device. ",
     'wireless/wavecom_modules4.asp',
      'More...',Img3).write(); 

  newsArray[4] = new makeNews(
      "The programmable XBee-PRO ZB ZigBee module features a user-programmable 8-bit Freescale SO8 microprocessor. XBee products are easy to use and share a common hardware footprint",
      'digirf/default.asp',
      'More...',Img4).write();

  newsArray[5] = new makeNews(
      "Sanyo's Amorton family are amorphous silicon Solar Cells offering low cost and increased efficiency across all light conditions when compared with crystal silicon devices.",
      'components/sanyo_components3.asp',
      'More...',Img5).write();

   var nIndex = 0;
   var timerID = null;
   
   function rotateNews(){
      var len = newsArray.length;
      if(nIndex >= len)
         nIndex = 0;
      document.getElementById('stories').innerHTML = 
         newsArray[nIndex];
      nIndex++;
      timerID = setTimeout('rotateNews()',8000);
   }

   function pauseNews() {
      if (timerID != null) {
         clearTimeout(timerID);
         timerID = null;
      }
   }
   
   function playNews() {
      if (timerID == null) {
         timerID = setTimeout('rotateNews()', 1200);
      }
   }

