function drawAd(text1,text2,linkto,img,imgw,imgh,imgalt,linktext) {

  document.write('<table width="174" cellspacing="7" cellpadding="0" bgcolor="white">');
  document.write('<tr><td><p class="random">'+text1+'</p>');
  document.write('<a href="'+linkto+'"><img src="'+img+'" width="'+imgw+'" height="'+imgh+'" alt="'+imgalt+'" border="0"></a><br>');
  document.write('<p class="random">'+text2+'.</p></td></tr>');
  document.write('<tr cellspacing="10"><td bgcolor="#FFF5DF"><p class="random">Learn more about<br>');
  document.write('<a href="'+linkto+'">'+linktext+'</a>.</p></td></tr></table>');
}

function randomNotice() {
  var now = new Date();
  var whichOne = (now.getMilliseconds() % 12);
  switch (whichOne)
  {
   case 0:
      drawAd("Take your lab to market.","Enhance your lab's outreach and connectivity with web-enabled order entry and result retrieval","http://www.orchardsoft.com/product/h_webOutreach.html","http://www.orchardsoft.com/images/rn_outreach.jpg","130","91","Harvest the power of Outreach with Orchard","outreach");
			break;
   case 1:
      drawAd("Don't leave microbiology in the vineyard.","Bring it to the Orchard","http://www.orchardsoft.com/product/h_microModule.html","http://www.orchardsoft.com/images/rn_micro.jpg","130","91","Harvest the power of microbiology with a laboratory information system from Orchard","microbiology");
			break;
   case 2:
      drawAd("Labs see record yields.","Increase your lab's revenue through outreach","http://www.orchardsoft.com/product/copia.html","http://www.orchardsoft.com/images/rn_copia.jpg","130","91","Harvest the power of outreach with Orchard Copia","outreach");
			break;
   case 3:
      drawAd("Labs from coast to coast","are harvesting the power of an Orchard lab system","http://www.orchardsoft.com/product/product.html","http://www.orchardsoft.com/images/rn_map.jpg","130","91","Harvest the power of an Orchard lab system","Orchard lab systems");
			break;
   case 4:
      drawAd("Whatever the interface,","we grow it at Orchard","http://www.orchardsoft.com/product/h_integration.html","http://www.orchardsoft.com/images/rn_integration.jpg","130","91","Harvest the power of integration with Orchard","integration with Orchard");
			break;
   case 5:
      drawAd("We won't leave you hanging.","Harvest the power of support from Orchard","http://www.orchardsoft.com/support/support.asp","http://www.orchardsoft.com/images/rn_support.jpg","130","91","Harvest the power of service and support with Orchard","our service and support");
			break;			
    case 6:
      drawAd("Produce more from less.","Harvest the power of an Orchard LIS","http://www.orchardsoft.com/product/product.html","http://www.orchardsoft.com/images/rn_roi.jpg","130","91","Harvest the power of rules with an Orchard laboratory information system","the power of rules");
			break;
	case 7:
      drawAd("Looking for a career change?","Come join us","http://www.orchardsoft.com/about_us/careerops/careerops.html","http://www.orchardsoft.com/images/rn_employment.jpg","130","91","Harvest the power of a winning team with Orchard!","career opportunities");
			break;
	case 8:
      drawAd("Join the Orchard team!","We're always looking for new Systems Engineers","http://www.orchardsoft.com/about_us/careerops/careerops.html","http://www.orchardsoft.com/images/rn_employment.jpg","130","91","Harvest the power of a winning team with Orchard!","career opportunities");
			break;
	case 9:
      drawAd("Fill your EMR","with lab results","http://www.orchardsoft.com/product/product.html","http://www.orchardsoft.com/images/rn_emr.jpg","130","91","Harvest the power of EMR/LIS integration with an Orchard LIS.","EMR/LIS integration");
			break;
	case 10:
      drawAd("Put all of your results in one basket.","Join clinical, molecular, and pathology results on one report","http://www.orchardsoft.com/product/pathology.html","http://www.orchardsoft.com/images/rn_ap.jpg","130","91","Harvest the power of Orchard Pathology.","Orchard Pathology");
			break;
	case 11:
      drawAd("Here at Orchard Software,","we're always growing new things","http://www.orchardsoft.com/product/product.html","http://www.orchardsoft.com/images/rn_newthings.jpg","130","91","Harvest the power of innovation with Orchard.","innovation with Orchard");
			break;
  }
}


 



