// Property of JPages.net You May not use any portion of this page without express written permission


var crossFadeDuration=20;
var pic= new Array(

//add new images below in quotes (single or double) and followed by a comma




"The Island.jpg",
"Shelly and Lassie.jpg",
"Shelly and Lassie 2.jpg",
"Lassie.jpg",
"Miss Rachel.jpg",
"Soaking In The Sun.jpg",
"Mary Queen Of The Lake.jpg",
"The House Sign I Painted.jpg",
"View through the trees.jpg",
"My Sister Jess.jpg",
"Learning To Kayak.jpg",
"My Brother Brian.jpg",
"My Brother and Sister.jpg",
"Pretty Red Kayak.jpg",
"Peeking through the trees.jpg",
"Looking around the cove.jpg",
"Kayak Race.jpg",
"Sand Reflections.jpg",
"Sunlight through the trees.jpg",
"Antone Mountain.jpg",
"Soaring Bird.jpg",
"Rippling Shore.jpg",





//add new images above

''
);

var i=0;
var j;
var names="";


function loadem(){                    

document.images['bigPic'].src=pic[0];  
names=pic[0].split('.');                                      
document.getElementsByTagName('span')[0].innerHTML=names[0];        

for(var x=0;x<pic.length-1;x++) {


	document.images[x].src=pic[x];
	document.images[x].setAttribute('alt',pic[x]);
	document.images[x].setAttribute('title',pic[x]);
	document.images[x].style.display='block';


}
if(x<15) { j=1; }
if(x>15) { j=2; }
if(x>30) { j=3; }
if(x>45) { j=4; }

document.getElementsByTagName('h1')[0].style.left= (j * 73) + 'px'; //sets left position of the large pic

}


function change(i)
{
document.images["bigPic"].src=pic[i];
names=pic[i].split('.');
document.getElementsByTagName('span')[0].innerHTML=names[0];
     }




var t;
var j = 0;
var p = pic.length-1;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = pic[i];
}
function runSlideShow() {
if (document.all&&!window.opera) {

with (document.images)

	SlideShow.style.filter="blendTrans(duration=10)";
	SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
	SlideShow.filters.blendTrans.Apply();

}
document.images.SlideShow.src = preLoad[j].src;
names=pic[j].split('.');
document.getElementsByTagName('span')[0].innerHTML=names[0];
if (document.all&&!window.opera) {
document.images.SlideShow.filters.blendTrans.Play();

}
j = j + 1;

if (j > (p - 1)) j = 0;
t = window.setTimeout('runSlideShow()', 6000);
}
function back()      {
if(j>1)
                   {      j--;document.images.SlideShow.src =preLoad[j].src ; names=pic[j].split('.');
			document.getElementsByTagName('span')[0].innerHTML=names[0];   }

else if(j==1)       {
                           j--; document.images.SlideShow.src =preLoad[j].src 
                          document.forms[0].Back.disabled="true" ;   names=pic[j].split('.');
                          document.getElementsByTagName('span')[0].innerHTML=names[0];                 }}

function forward()     {
if(j<(p-2))           {      j++;document.images.SlideShow.src =preLoad[j].src;  names=pic[j].split('.');
                             document.getElementsByTagName('span')[0].innerHTML=names[0]; }

else if(j==(p-2))  {    j++;document.images.SlideShow.src =preLoad[j].src;
                           document.forms[0].Forward.disabled="true" ;    names=pic[j].split('.');
			document.getElementsByTagName('span')[0].innerHTML=names[0];              }}