// JavaScript Documentthis.moveTo(0,0);window.resizeTo(screen.width, screen.height-30);var win = null;function NewWindow(mypage,myname,w,h,scroll){LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;TopPosition = (screen.height) ? (screen.height-h)/2 : 0;settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'win = window.open(mypage,myname,settings)if(win.window.focus){win.window.focus();}}function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }function MM_reloadPage(init) {  //reloads the window if Nav4 resized  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();}MM_reloadPage(true);var i = 0;var Speed = 100;TextInput = new Object();TotalTextInput = 2;TextInput[0]= "Welcome to SW Allens Opticians";TextInput[1]= "a family owned optical company...";TextInput[2]= "...with a renowned history going back over 60 years.";var TextNumber = -1;var HelpText = "";var WaitSpace=" "; for (i =0; i <= TotalTextInput; i++) { TextInput[i] += WaitSpace; }var TimerID; var TimerSet = false;function startBanner(form) { if (!TimerSet) { TimerSet = true; banner(); } }function banner() { Text=rollMessage(); TimerId = setTimeout("banner()", Speed); window.status=Text; }function rollMessage() { Wait=false; if (HelpText.substring((i++)-1,i) == " ") { i++; } if (i >= HelpText.length+1) { i=0; if (TextNumber >= TotalTextInput) { TextNumber = 0 ; } else { TextNumber++; } initBanner(); } Text = HelpText.substring(0,i); return (Text); }function initBanner() { Text = TextInput[TextNumber]; HelpText = Text; startBanner(); }startBanner(); 
