<!--
//**********************************
// Fall Line Painting
// Author: Jason Liveston
// Date: 4.21.02
// Purpose: Functions used in fall line web site
// Include in head:
// <script language=javascript type="text/javascript" href="fallLineFunctions.js"></script>
//**********************************

//**********************************
// Preload images onload in body
// Images are used onmouseover
//**********************************
function fctPreloadImages()
	{
	var aryPictures = new Array;

	aryPictures[0] = "buttonEndOver.jpg"
	aryPictures[1] = "fallContact.gif"
	aryPictures[2] = "fallDefault.jpg"
	aryPictures[3] = "fallEmploy.jpg"
	aryPictures[4] = "fallExterior.jpg"
	aryPictures[5] = "fallInterior.jpg"
	aryPictures[6] = "fallPortfolio.jpg"
	aryPictures[7] = "fallPressure.gif"
	aryPictures[8] = "fallRef.jpg"
	aryPictures[9] = "fallWallCover.jpg"
	aryPictures[10] = "fallCheck.gif"

	for (i = 0; i <= aryPictures.length; i++)
		{
		imgPreload = new Image;
		imgPreload.src = "../images/" + aryPictures[i];	
		}
	}

//**********************************
// Swap images onmouseover and onmouseout
// strImage - image name
// anchorType - source location of image to change (ex name="location")
//**********************************
function fctSwapImages(strImage,anchorType)
	{	
	document.images[anchorType].src = "../images/" + strImage
	}	


//**********************************
// Show Date
// Display format: Day, Month XX, XXXX
// Use in html as document.write(fctGetDate())
//**********************************
function fctGetDate()
	{
	var mydate=new Date()
	var theYear=mydate.getFullYear()
	var day=mydate.getDay()
	var month=mydate.getMonth()
	var daym=mydate.getDate()
	if (daym<10)
	daym="0"+daym
	var dayarray=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
	var montharray=new Array("January","February","March","April","May","June","July","August","September","October","November","December")
	DisplayDate = dayarray[day]+" "+montharray[month]+" "+daym+", "+theYear
	return DisplayDate
	}
//-->