clrpix = setTimeout("clearPics()",10000)
setArrays()
function PreLoad(){
	var doc=document; if(doc.images){ if(!doc.newarray) doc.newarray=new Array();
	var x,y=doc.newarray.length,a=PreLoad.arguments; for(x=0; x<a.length; x++)
	if (a[x].indexOf("#")!=0){ doc.newarray[y]=new Image; doc.newarray[y++].src=a[x];}}
	scrollline = -1
}
function setArrays(){
	p_off = new Array()
	p_on = new Array()
	link = new Array()
	p_off[0] = "/images/buttons/home1.gif"
	p_off[1] = "/images/buttons/about_boats1.gif"
	p_off[2] = "/images/buttons/charter_rates1.gif"
	p_off[3] = "/images/buttons/about_capt1.gif"
	p_off[4] = "/images/buttons/fish_for1.gif"
	p_off[5] = "/images/buttons/bring1.gif"
	p_off[6] = "/images/buttons/messagebd1.gif"
	p_off[7] = "/images/buttons/weather1.gif"
	p_off[8] = "/images/buttons/gallery1.gif"
	p_off[9] = "/images/buttons/links1.gif"
	p_off[10] = "/images/buttons/contact1.gif"
	p_on[0] = "/images/buttons/home2.gif"
	p_on[1] = "/images/buttons/about_boats2.gif"
	p_on[2] = "/images/buttons/charter_rates2.gif"
	p_on[3] = "/images/buttons/about_capt2.gif"
	p_on[4] = "/images/buttons/fish_for2.gif"
	p_on[5] = "/images/buttons/bring2.gif"
	p_on[6] = "/images/buttons/messagebd2.gif"
	p_on[7] = "/images/buttons/weather2.gif"
	p_on[8] = "/images/buttons/gallery2.gif"
	p_on[9] = "/images/buttons/links2.gif"
	p_on[10] = "/images/buttons/contact2.gif"
	link[0] = "/default.asp"
	link[1] = "/about_boats.asp"
	link[2] = "/charter_rates.asp"
	link[3] = "/about_capt.asp"
	link[4] = "/fish_for.asp"
	link[5] = "/bring.asp"
	link[6] = "/messagebd.asp"
	link[7] = "/weather.asp"
	link[8] = "/gallery.asp"
	link[9] = "/links.asp"
	link[10] = "/contact.asp"
}
function clearPics(){
	for (z=0; z<=10; z++){
		eval("document.images['pic"+z+"'].src = '"+p_off[z]+"'")
	}
	clearTimeout(clrpix)
}
function changePic(x){
	if(clrpix){clearTimeout(clrpix)}
	clrpix = setTimeout("clearPics()",10000)
	if(document.images){
		eval("document.images['pic"+x+"'].src = '"+p_on[x]+"'")
		scrollline = x
		for (z=0; z<p_on.length; z++){
			if (z != x){
				eval("document.images['pic"+z+"'].src = '"+p_off[z]+"'")
			}
		}
	}
}
function getArrows(x){
	if(clrpix){clearTimeout(clrpix)}
	clrpix = setTimeout("clearPics()",10000)
	y = scrollline
	if (x == 0){
		y = parseInt(y) + 1
		if (y > 10){y = 0}
	}else{
		y = y - 1
		if (y < 0){y = 10}
	}
	if(document.images){
		eval("document.images['pic"+y+"'].src = '"+p_on[y]+"'")
		scrollline = y
		for (z=0; z<p_on.length; z++){
			if (z != y){
				eval("document.images['pic"+z+"'].src = '"+p_off[z]+"'")
			}
		}
	}	
}
function mouseOver(x,y){
	if(clrpix){clearTimeout(clrpix)}
	clrpix = setTimeout("clearPics()",10000)
	if (scrollline < 0){scrollline = 0}
	eval("document.images['pic"+scrollline+"'].src = '"+p_on[scrollline]+"'")
	if (y == 0){
		eval("document.images['"+x+"'].src = '/images/"+x+"1.gif'")
	}else{
		eval("document.images['"+x+"'].src = '/images/"+x+"2.gif'")
	}
}
function getLink(){
	if(clrpix){clearTimeout(clrpix)}
	clrpix = setTimeout("clearPics()",10000)
	if (scrollline < 0){scrollline = 0}
	document.location = link[scrollline]
}