//this is the very top line

var speed = 100  //Delay Between Every word

var pause = 1000 //Delay Between EveryLine

var timerID = null

var bannerRunning = false

var ar = new Array()

ar[0] = "Welcome to http://www.mrhicks.com"

ar[1] = "Opening up the lines of communication"

ar[2] = "Between Parent, Teacher, Student and School"

var currentMessage = 0

var offset = 0

function stopBanner() {

   if (bannerRunning)

     clearTimeout(timerID)

     bannerRunning = false}

function startBanner() {

	stopBanner()

	showBanner()}

function showBanner() {

var text = ar[currentMessage]

   if (offset < text.length) {

	if (text.charAt(offset) == " ")

			offset++

		var partialMessage = text.substring(0, offset + 1)

 		window.status = partialMessage

		offset++

		timerID = setTimeout("showBanner()", speed)

		bannerRunning = true}

	else {

		offset = 0

		currentMessage++

		if (currentMessage == ar.length)

			currentMessage = 0

		timerID = setTimeout("showBanner()", pause)

		bannerRunning = true	}}

startBanner();



//document.write('<meta http-equiv=refresh content=600; url=self>')



// Copyright 2001 by www.CodeBelly.com
// Do *not* remove this notice.

// INSTRUCTIONS
// Place this script in the head of your page.
// Set the variables as indicated below.



// SET THE VARIABLES BELOW

// Set your messages below -- follow the pattern. To add
// more messages, just add more elements to the array.
var message = new Array() // leave this as is

message[0] = "Welcome to http:www.mrhicks.com";
message[1] = "Opening up the lines of communication";
message[2] = "Between Parent, Teacher, Students and School";


// Set the number of repetitions (how many times the arrow
// cycle repeats with each message).

var reps = 2

// Set the overall speed (larger number = slower action).

var speed = 200

// DO NOT EDIT BELOW THIS LINE.
// ============================
var p=message.length;
var T="";
var C=0;
var mC=0;
var s=0;
var sT=null;
if(reps<1)reps=1;
function doTheThing(){
T=message[mC];
A();}
function A(){
s++
if(s>8){s=1}
// you can fiddle with the patterns here...
if(s==1){document.title='||||||====||| '+T+' -----'}
if(s==2){document.title='|||=|||===||| '+T+' -----'}
if(s==3){document.title='|||==|||==||| '+T+' -----'}
if(s==4){document.title='|||===|||=||| '+T+' -----'}
if(s==5){document.title='|||====|||||| '+T+' -----'}
if(s==6){document.title='|||===|||=||| '+T+' -----'}
if(s==7){document.title='|||==|||==||| '+T+' -----'}
if(s==8){document.title='|||=|||===||| '+T+' -----'}
if(C<(8*reps)){
sT=setTimeout("A()",speed);
C++
}else{
C=0;
s=0;
mC++
if(mC>p-1)mC=0;
sT=null;
doTheThing();}}
doTheThing();
