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 += '<p><a href="'+this.link+'" target="_blank"><img border="0" align="right" valign="top" src="'+this.img+'"></a>'+this.copy+'</p>';
      str += '<p><a href="'+this.link+'" target="_blank">'+this.follow+'</a></p>';
      return str;
   }


var newsArray = new Array();

	newsArray[0] = new makeNews(
	"<strong>Zoetronics  Technology, Inc.,</strong> based in Taiwan,  is formed by a group of interdisciplinary experts from semiconductor circuit  design, medical engineering, and system design. Zoetronics designs and delivers  highly integrated circuit (IC) solutions for home health care market with low  power and wireless functions. Cardiovascular related applications like ECG,  Pulse Oximetry, and Blood Pressure are Zoetronics' major focus.",'http://www.zoetronics.com/zoe-main.htm','Visit Featured Company >>','images/logos/zoetronics.gif').write();

	newsArray[1] = new makeNews(
	"<strong>9 in the box.com</strong> provides an International Shopping Platform via Internet.  Non-Chinese-speaking vendors are able to sell products to Greater China  consumers with least efforts via 9inthebox.com's solution. This business model is being  implemented and tested in Taiwan  for a much larger-scaled launch in China in 2009.",'http://www.9inthebox.com.tw/','Visit Featured Company >>','images/logos/9inthebox.gif').write();

	newsArray[2] = new makeNews(
	"<strong>Groundhog  Technologies, Inc.</strong> is a spin off from MIT and offers advanced solutions for  performance management, capacity planning and network optimization. We invented  a series of mathematical modeling technology that calculates subscribers'  mobility and usage behavior as the basis for analyzing network bottlenecks and  solutions in different stages of network growth.",'http://www.ghtinc.com/','Visit Featured Company >>','images/logos/groundhog.gif').write();
		
newsArray[3] = new makeNews(
	"<strong>IQChinese</strong> is the CNN reported, innovative Chinese Language Learning  solution provider globally with business at Irvine,  CA and Taiwan.<br><br>IQChinese&rsquo;s products have been well adopted by the school district in  the global market as the best and only &ldquo;Type to Learn&rdquo; methodology and Voice Technology for Easy, Enjoyable and Effective Chinese learning.",'http://www.iqchinese.com/about_us/aboutus.htm','Visit Featured Company >>','images/logos/iqchinese.gif').write();
	
	newsArray[4] = new makeNews(
	"<strong>Lionic</strong> provides IC chip and security software module with own developing security database, tackling on daily changing internet  security.<br><br>Lionic ePavis deep content inspection chip expedites the network  package scanning speed and enhances system performance.<br><br>Talos software offers customer a ready-to-market security solutions  that fully integrated ePavis chip and security database pattern.<br><br>Egis database covers application like anti-virus, intrusion  prevention system (IPS), instant message, and peer-to-peer applications.<br><br>Lionic solutions can be flexibly integrated into internet accessible  or storage devices for serving customer the highest cost-performance security features design.",'http://www.lionic.com/','Visit Featured Company >>','images/logos/lionic.gif').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()',10000);
   }

function pauseNews() {
      if (timerID != null) {
         clearTimeout(timerID);
         timerID = null;
      }
   }
   
function playNews() {
      if (timerID == null) {
         timerID = setTimeout('rotateNews()', 1000);
      }
   }
