// Scrolling status Bar text Script
// Being of Scrolling text in the Status bar
var speed = 50 //decrease value to increase speed (must be positive)
var pause = 2500 //increase value to increase pause
var timerID = null
var bannerRunning = false
var ar = new Array()

ar[0] = "WELCOME - to the BEST luggage tag website in the world! CONGRATULATIONS for finding us."
ar[1] = "Have you seen our WHATS NEW page yet?"
ar[2] = "Order over 1000 printed lanyards and get 10% EXTRA FREE. Quote REF: 10% at time of ordering"
ar[3] = "GREAT prices, GREAT service and more importantly GREAT products"
ar[4] = "Email Paul@taggs-r-us.com ph 00 64 (0)9 479 9799"
ar[5] = "Watch this space for specials each month and check-out our NEW 'Specials Page'"
ar[6] = "Have you seen our WHAT'S NEW webpage yet?  We aim to lead the market"
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
					}
							}
//this is to start the Scrolling Status Bar
startBanner();
