<!-- Beginning of JavaScript -

// CREDITS:
// WholeWidthTicker by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com.
// info@24fun.ch
// 6/29/2000

// IMPORTANT: 
// If you add this script to a script-library or script-archive 
// you have to add a link to http://www.24fun.com on the webpage 
// where the scrips will be running.

// CONFIGURATION:
// Go to www.24fun.com, open category 'text' and download 
// the full-version of this script as ZIP-file containing
// step-by-step instructions for non-programmers.

// Edit the variables below:

// Your messages. Add as many as you like
var message=new Array()
message[0]="Now That Your Ship Has Come In... Where Would You Like To Keep Her?"
message[1]="Cape Cod's Largest Full-Services Marina, Boatyard and Cruising Center, Nestled in One of New England's Most Beautiful Natural Harbors."
message[2]="Come Stay for a Night, a Week, or for the Season."
//  


// the URLs of your messages
var messageurl=new Array()
messageurl[0]="http://service.bfast.com/bfast/click?bfmid=7279965&siteid=30125004&bfpage=webclipart3"
messageurl[1]="http://service.bfast.com/bfast/click?bfmid=7279965&siteid=30125004&bfpage=javascript"
messageurl[2]="http://service.bfast.com/bfast/click?bfmid=599904&siteid=30259589&bfpage=gifbot"


// the targets of the links
// accepted values are '_blank' or '_top' or '_parent' or '_self'
// or the name of your target-window (for instance 'main')
var messagetarget=new Array()
messagetarget[0]="_blank"
messagetarget[1]="_blank"
messagetarget[2]="_blank"
// 


 
// distance of the ticker to the top margin of the browser-window (pixels)
var postop=77


// speed 1: lower means faster
var pause=25


// speed 2: higher means faster
var step=3

// font-size
var fntsize=10

// font-color
var fntcolor="B0D8F6"

// font-family
var fntfamily="Verdana"

// font-weight: 1 means bold, 0 means normal
var fntweight=1

// do not edit the variables below
var i_message=0
var timer
var textwidth
var textcontent=""
if (fntweight==1) {fntweight="700"}
else {fntweight="100"}

function init() {
	gettextcontent()
    if (document.all) {
		screenwidth=document.body.clientWidth
		text.innerHTML=textcontent
		document.all.text.style.posTop=postop
        document.all.text.style.posLeft=screenwidth
		textwidth=text.offsetWidth
        scrolltext()
    }
	if (document.layers) {
		screenwidth=window.innerWidth
		document.text.document.write(textcontent)
		document.text.document.close()
		document.text.top=postop
		document.text.left=screenwidth
		textwidth=document.text.document.width
        scrolltext()
    }
}

function scrolltext() {
    if (document.all) {
		if (document.all.text.style.posLeft>=textwidth*(-1)) {
			document.all.text.style.posLeft-=step
			var timer=setTimeout("scrolltext()",pause)
		}
		else {
			changetext()
		}
	}
   if (document.layers) {
		if (document.text.left>=textwidth*(-1)) {
			document.text.left-=step
			var timer=setTimeout("scrolltext()",pause)
		}
		else {
			changetext()
		}
	}
}

function changetext() {
    i_message++
	if (i_message>message.length-1) {i_message=0}
	gettextcontent()
	if (document.all) {
		text.innerHTML=textcontent
        document.all.text.style.posLeft=screenwidth
		textwidth=text.offsetWidth
        scrolltext()
	}

	if (document.layers) {
   		document.text.document.write(textcontent)
		document.text.document.close()
		document.text.left=screenwidth
		textwidth=document.text.document.width
        scrolltext()
	}
}

function gettextcontent() {
	textcontent="<span style='position:relative;font-size:"+fntsize+"pt;font-family:"+fntfamily+";font-weight:"+fntweight+"'>"
	textcontent+="<nobr><font color="+fntcolor+">"+message[i_message]+"</font></nobr></a></span>"
}


window.onresize=null;


// - End of JavaScript - -->
