
//Begin Refresh Page
var sURL = unescape(window.location.pathname);
function refresh()
{
    window.location.href = sURL;
}
//End Refresh Page

// BEGIN SET HREF TAGLINES
var sethref = "";
var sethttps = "";
// END HREF TAGLINES

// BEGIN IMAGE FADER FUNCTIONS
function getimages () {
	//SET IMAGE PATHS. Extend or contract array as needed
	fadeimages[0]="csea_images/fishphoto12.jpg"
	fadeimages[1]="csea_images/fishphoto11.jpg"
	fadeimages[2]="csea_images/fishphoto10.jpg"
	fadeimages[3]="csea_images/fishphoto9.jpg"
	fadeimages[4]="csea_images/fishphoto8.jpg"
	fadeimages[5]="csea_images/fishphoto7.jpg"
	fadeimages[6]="csea_images/fishphoto6.jpg"
	fadeimages[7]="csea_images/fishphoto5.jpg"
	fadeimages[8]="csea_images/fishphoto4.jpg"
	fadeimages[9]="csea_images/fishphoto3.jpg"
	fadeimages[10]="csea_images/fishphoto2.jpg"
	fadeimages[11]="csea_images/fishphoto1.jpg"
}

function fadepic(){
	if (curpos<100){
	curpos+=10
	if (tempobj.filters)
	tempobj.filters.alpha.opacity=curpos
	else if (tempobj.style.MozOpacity)
	tempobj.style.MozOpacity=curpos/100
	}
	else{
	clearInterval(dropslide)
	nextcanvas=(curcanvas=="canvas0")? "canvas0" : "canvas1"
	tempobj=ie4? eval("document.all."+nextcanvas) : document.getElementById(nextcanvas)
	tempobj.innerHTML='<img src="'+fadeimages[nextimageindex]+'">'
	nextimageindex=(nextimageindex<fadeimages.length-1)? nextimageindex+1 : 0
	setTimeout("rotateimage()",pause)
	}
}
	
function rotateimage(){
	if (ie4||dom){
	resetit(curcanvas)
	var crossobj=tempobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	crossobj.style.zIndex++
	var temp='setInterval("fadepic()",50)'
	dropslide=eval(temp)
	curcanvas=(curcanvas=="canvas0")? "canvas1" : "canvas0"
	}
	else
	document.images.defaultslide.src=fadeimages[curimageindex]
	curimageindex=(curimageindex<fadeimages.length-1)? curimageindex+1 : 0
}
	
function resetit(what){
	curpos=10
	var crossobj=ie4? eval("document.all."+what) : document.getElementById(what)
	if (crossobj.filters)
	crossobj.filters.alpha.opacity=curpos
	else if (crossobj.style.MozOpacity)
	crossobj.style.MozOpacity=curpos/100
}
	
function startit(){
	var crossobj=ie4? eval("document.all."+curcanvas) : document.getElementById(curcanvas)
	crossobj.innerHTML='<img src="'+fadeimages[curimageindex]+'">'
	rotateimage()
}
// END IMAGE FADER FUNCTIONS

// BEGIN SHORE SOFTWARE TAGLINE
function shoretag(){
	var L1, L2, L3, L4 = "";
	L1 = "<tr><td align=right><font size=-2 face=Arial color=Blue>";
	L2 = L1 + "<blockquote><span class=ShoreTag>Designed&nbsp;&amp;&nbsp;maintained&nbsp;by&nbsp;";
	L3 = L2 + "<a href=http://www.shoresoftware.com target=_blank><span class=ShoreLink>Shore&nbsp;Software,&nbsp;Inc.</span></a>";
	L4 = L3 + "</span></blockquote></font></td></tr>";
	document.write(L4);
}
// END SHORE SOFTWARE TAGLINE

//Checks for Acrobat Reader
//This script detects the following plugin:
		//Flash
		//Windows Media Player
		//Java
		//Shockwave
		//RealPlayer
		//QuickTime
		//Acrobat Reader
		//SVG Viewer
function chkacro(pdf){
	if (pluginlist.indexOf("Acrobat Reader")!=-1) 
		{
			window.open("pdfs/" + pdf,"_blank");
		}
	else
		{
			alert("You need to download and install Acrobat Reader to view this form.\nIf the download does not automatically begin, please visit www.acrobat.com");
			window.open("http://ardownload.adobe.com/pub/adobe/reader/win/6.x/6.0/enu/AdbeRdr60_enu.exe","_blank");
		}
}