// SmallBizWebs.com JavaScript Document
// Copyright SmallBizWebs.com, A Division of The JBI Company, Inc.
// All Rights Reserved, contact SmallBizWebs.com for licensing information.
//
// ============================
// Code for Slide Show function
// ============================
//
// Standard MM code functions
// This section only, copyright Adobe Systems Incorporated
//
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//
// SmallBizWebs.com custom code functions
// Copyright SmallBizWebs.com, All Rights Reserved
//
var nextPic = 2;
function applyTransition(picName,numPics) {
	if (document.all) SlideshowPic.filters(0).Apply();
	picPhoto='images/' + picName + nextPic + '.jpg';
	nextPic++;
	if (nextPic > numPics) nextPic=1;
	document.images.SlideshowPic.src=picPhoto;
	if (document.all) SlideshowPic.filters(0).Play();
}
function startSlideshow(picName,numPics) {
	picInterval = window.setInterval("applyTransition('"+picName+"','"+numPics+"')",3500);
}

