//
// user variables, modify to whatever you want
//

var picX = -1;                 // where is the X center of the picture? Negative numbers = no moving
var picY = -1;                 // where is the Y center of the picture? Negative numbers = no moving
var fade = true;                // should we fade at all?
var picCurrent = 0;             // which picture in the array should we start with? (0 = first)
var fadingSpeed = 40;           // how fast the transition should be
var fadingSteps = 2;            // how small steps the transition should use
var takeItEasy = 1000;           // how long the picture should be shown, at minimum, in milliseconds. I *strongly* suggest 250 or over as a value!
var cacheAhead = 2;             // how many pictures after the current one should be precached
var cacheBack = 0;              // as above, but before the current one. Set both to 0 to disable precaching
var loopSlideshow = false;	// should slideshows repeat ad infinitum?
var slideshow = true;
var picPath = "/photos/bg/";  // where the full-res pictures are located
var thumbPath = "/pics/66/";     // where the thumbnails are
var picSrc = new Array(         // this is an ordered list of all pictures we should display
"street.jpg",
"meadow.jpg",
"tree.jpg",
"treeandleaves.jpg",
"ice.jpg",
"darkwing.jpg",
"stone.jpg",
"misspiggy.jpg",
"leaves.jpg",
"museum.jpg",
"plantlamp.jpg",
"lamp.jpg",
"buoy.jpg");


clicks = 0;


if (!Array.prototype.shuffle) {
    Array.prototype.shuffle = function() {
        // Clone this array.
        var result = this.concat();

        // Swap each element with another randomly selected one.
        for (var i = 0; i < result.length; i++) {
            var j = i;
            while (j == i) {
                j = Math.floor(Math.random() * result.length);
            }
            var contents = result[i];
            result[i]    = result[j];
            result[j]    = contents;
        }

        return result;
    };
}
picSrc = picSrc.shuffle();

function firstPageStart()
{
if ((ie == 0) || (ie == 4) || (ie > 6))
	{
	menuPhotos = new Image(103,65);
	menuPhotos.src = "/pics/mainmenu3-photos-over-PNG.gif";
	menuArticles = new Image(103,65);
	menuArticles.src = "/pics/mainmenu3-articles-over-PNG.gif";
	menuServices = new Image(103,65);
	menuServices.src = "/pics/mainmenu3-services-over-PNG.gif";
	menuAbout = new Image(103,65);
	menuAbout.src = "/pics/mainmenu3-about-over-PNG.gif";
	menuStandard = new Image(103,65);
	menuStandard.src = "/pics/mainmenu3-PNG.gif";
	switchImage('mw', 'mw2', commonTrans);
	switchImage('mw', 'mw3', commonTrans);
	switchImage('mw', 'mw4', commonTrans);
	switchImage('mw', 'mw1', mwPNG);
	switchImage('whitebanner', 'whitebanner2', commonTrans);
	switchImage('whitebanner', 'whitebanner3', commonTrans);
	switchImage('whitebanner', 'whitebanner4', commonTrans);
	switchImage('whitebanner', 'whitebanner1', whitebannerPNG);
	switchImage('mainmenu', 'dynmenuimg', menuStandard);
	switchImage('mainmenu', 'mainmenu2', commonTrans);
	switchImage('mainmenu', 'mainmenu4', commonTrans);
	switchImage('mainmenu', 'mainmenu0', mainmenuPNG);
	}

if (ns == 4)
        {
        document.pic1Layer.document.images.pic1.src = picPath + picSrc[0];
        }
else
        {
	if (ns > 4)
		fade = false;
	if ((Get_Cookie('fade')) == 'false')
		fade = false;
        startMeUp();
        startSlideShow(0,10000,true);
        }
}

