//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();
	 textArray[0]  = 'Please feel free to contact us if you have any questions . . . ' ;//TURNED OFF
	 textArray[1]='. . . or wish to discuss any aspects of your book with us.';
	//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;
 
 	// when at the end, start again 
 	if(m1==2) { m1=0; }
// if(m1==2) NEEDS AMENDED - red figure changes to one more than number of message lines
}
/* 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; }
}
