function randomAdv(numOfItems) {

  if(!numOfItems)
  	  numOfItems = 1;
 	  
  
  ad  = new Array();
  adv = new Array();
  hit = new Array();

  
  hit[0] = 1; adv[0] = '<dd>The Provincial Language Service (PLS) has worked with A&E Communications on several occasions in the past two years and we were always pleased with the service and the quality of work offered. Their qualified Japanese translators and editors are responsive and detail-oriented. The agency was also able to recommend voice over talents for one of our DVD projects. Our A&E collaborators keenly catered to our timelines and processes showing great flexibility and professionalism even when dealing with most demanding customer requirements. Their appetite for well-done work, their punctuality and excellent communications skills have been greatly appreciated.</dd><dd class=m10><strong>Veronique St.Antoine</strong><br />Coordinator - Translation Services<br />The Provincial Language Service</dd>';
  hit[1] = 1; adv[1] = '<dd>Our translation requirements can be complex and specialized yet the team at A&E consistently provides us with translations in both English and Japanese that accurately reflect the tone of the message in a timely and professional manner. A&E are very accommodating and easy to work with especially when we need quick turnover on some projects. I have recommended A&E to others involved in the Canada-Japan relationship and have been using them for the past ten years.</dd><dd><strong>Neil Moody, Executive Director</strong><br />The Canadian Chamber of Commerce in Japan</dd>';
  hit[2] = 1; adv[2] = '<dd>A & E has been doing excellent translation services for many years. Whenever someone is looking for a translation service, I recommend A & E without any hesitation. Furthermore the company has a splendid devoted volunteerism. I have noticed of many occasions of their helping out various community activities. At Nikkei Place where the writer is associated with, A & E Communications has been doing surpassing English to Japanese translation of medical articles monthly without any remuneration, for JCCA Bulletin for the past several years. We appreciate their help very much.</dd><dd class="m10"><strong>Mits Hayashi</strong><br />Senior Advisor-Community Relations<br />National Nikkei Museum and Heritage Centre</dd>';
  hit[3] = 1; adv[3] = '<dd>It has been my pleasure to work with A&E Communications and Ms. Mariko Baba for more than a decade.  They have consistently provided a professional and dynamic translation and interpretive service.<br /><br />I am always secure in her attention to and understanding of the ever important subtleties, in both the language and the business relationship.   A&E is an integral force in our ability to manage and develop our business. </dd><dd><strong>Ingrid Hart</strong><br />General Manager<br />Carnoustie Holdings Ltd.</dd>';
  hit[4] = 1; adv[4] = '<dd>I am pleased to be able to recommend A&E for the high quality of their translations. Our headquarters is in Japan and A&E translates complex technology-oriented product brochures, case studies and PowerPoints between our Marketing departments. We are very pleased with the accuracy, reliability and speed of their work, especially for some of our more demanding projects. The team at A&E are great to work with!</dd><dd><strong>Teresa Cheung</strong><br />Director of Marketing<br />JustSystems</dd>';


  var nums = '';
  var ad = '';
  
  //var testn = '';
  
  for(num = 0; numOfItems > num ; num++){
	  
 	  m = 0, x = 0, y = 0;
	  
	  for(i=0; i<=hit.length - 1; i++) {
		m += hit[i];
	  }
	  
	  
	  do{
	  	n = Math.floor(Math.random() * m);
	  	n++;
		var reg = new RegExp(n);
		//testn += ','+n;
	  }while(nums.search(reg) > 0)

	  nums += ','+n;
	  for(i=0; i<=hit.length - 1; i++) {
		x = y;
		y += hit[i];
		if(x<n && n<=y) ad += adv[i];
	  }
	  
  }
  //alert(testn);
  document.write(ad);
}
                   
               
