//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 Special Antiques Sale will be in March 2012';
textArray[1]='For a free auction valuation please contact<br />Michael Callan, Freephone 0800 037 8000';
textArray[2]='<a style=\"color: #FFFFCC;  font-size: 11px;  font-family: Arial, Helvetica, Swiss, SunSans-Regular;  font-weight: bold; line-height: 12px; text-align: center; \" href=\"../pdfs/invitationToConsign.pdf\" target=\"pdfwindow\">or click here to view our Invitation to Consign</a>';

	// &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]='<a style="color: #FFFFCC;  font-size: 11px;  font-family: Arial, Helvetica, Swiss, SunSans-Regular;  font-weight: bold; line-height: 12px; text-align: center; " href="../pdfs/preview.pdf" target="pdfwindow">Click here to view Preview Catalogue</a>';
textArray[2]='Closing Date for submitting items for the sale: Friday 15th October.<br />All Items which sell for £3000 or more are commission free!';
textArray[3]='For a free auction valuation please contact<br />Michael Callan, Freephone 0800 037 8000.';
textArray[4]='Viewing of the lots prior to the sale is on Wednesday 17th, 9.00am - 5pm,<br />Thursday 18th 9.00am - 8.00pm and Friday 19th 9.00am - 4.30pm';
	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==3) { m1=0; }//comment out to stop rotation  CHANGE if(m1==1) second 1 should be 1 more than last textArray[n]
}
/* 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; }
}
