//for placing text in specific places and being able to change it
function drawTxt(putWhere,theWords){ 
	document.getElementById(putWhere).innerHTML=theWords; 
} 

//for placing text in specific places and being able to change it
//when function called from a child frame
function parentdrawTxt(putWhere,theWords){ 
	parent.document.getElementById(putWhere).innerHTML=theWords; 
} 
// Put the following HTML on your page where you would like the Clock to be displayed:
//<span id="_putWhere_">&nbsp;</span>
//<script type="text/javascript" src="drawText.js"></script>


var m1 = 0;// m1 must go outside array    message1
function doMessage1() {
 // set up list of images
	var textArray=new Array();
	//set textArray[0] to = '' to turn off
	textArray[0]='Our next specialist sale of antiques will be in September.<br />Goods are now being accepted.';
	textArray[1]='For a free auction valuation please contact<br />Michael Callan, Freephone 0800 037 8000.';

	// &nbsp;&nbsp;<a class=\"navc\" href=\"../pdfs/callancatalogue/index.html\">more&nbsp;&nbsp;&#x203A;&#x203A;</a>
/*	textArray[0]='Our next sale of fine art, antique and decorative items will take place in February 2009.';
	textArray[1]='including a consignment of selected items from Skelmorlie Castle, and a collection of Royal Worcester will be on Saturday 19th June 2010 at 10.00am.';
	textArray[2]='you will find us friendly and helpful . . .';
	textArray[3]='Contact us by phone or email . . .';
	textArray[4]='we will be happy to help.';
	textArray[5]='Starting up a business? ';
	textArray[6]='We have several starter packs . . .';
	textArray[7]='Great prices on colour brochures, leaflets, stationery . . .';
	textArray[8]='Call or email us now for details.';*/
	if(textArray[0]!=''){
		drawTxt('message1ID',textArray[m1]);
	}
 	// increment counter for next call
	 m1=m1+1;//comment out to stop rotation
 	// when at the end, start again
 	if(m1==2) { m1=0; }//comment out to stop rotaation
}
/* THIS GOES ON PAGE
<span id="message1ID">&nbsp;</span>
<script type="text/javascript"><!--
setInterval('doMessage1()',3000);
//-->
</script>
*/

//ADD MORE change m1 to m2 etc // doMessage1 to 2 etc // message1ID to 2ID etc
// and on page <span id="message1ID">&nbsp;</span>

var m2 = 0;// m1 must go outside array    message1
function doMessage2() {
 // set up list of images
	var textArray=new Array();
	//set textArray[0] to = '' to turn off
	textArray[0]='';//'Please note that our production department will be on holiday . . . ';
	textArray[1]='from 2 June to 9 June 2006 inclusive.';
	textArray[2]='During this time you can place orders if you wish . . .';
	textArray[3]='but your order will not be processed until our return.';
	if(textArray[0]!=''){
		drawTxt('message2ID',textArray[m2]);
	}
	 // increment counter for next call
	 m2=m2+1;
 
 	// when at the end, start again
 	if(m2==4) { m2=0; }
}