// File:	FAI.js
// Version:	1.00
// Project:	Francis Audio, Inc.
// Author:	J.P. Miller
// Date:	April 26, 2000
//
// Copyright (c) 2000
//
// Revisions:
//


var str = new String("          Serving South Florida, the Caribbean, South America and Central America since 1981...          ");
var Timer;

function Timer_onExpire()
	{
	str = str.substr(1, str.length-1).concat(str.charAt(0));

//	Use object sniffing...
	if (document.all && scrollingText.innerHTML)	// IE Browser
		scrollingText.innerHTML = str;
	else if (document.scrollingLayer.document)	// Netscape Browser
		{
		with (document.scrollingLayer.document)
			{
			open("text/html");
			writeln("<DIV ID='scrollingText'>"+str+"</DIV>");
			close();
			}
		}
	}


function Doc_onLoad()
	{
	if (document.layers)
		{
		document.scrollingLayer.left = ((window.innerWidth/2 - 182) < 305) ? 305 : (window.innerWidth/2 - 182);
		window.onresize = Window_onResize;
		}

	Timer     = setInterval("Timer_onExpire()", 150);
	}


function Window_onResize()	<!-- For Netscape CSS-P	-->
	{
	if (document.layers) window.reload();
	}
