
//create an image scroller object
var imageScroller_24435038;

//delay all code execution untill after page load
addAnEvent(window, "load", loadScroller_24435038);

    function loadScroller_24435038() {

        imageScroller_24435038 = new ImageScroller("imageScrollerFrame_24435038", "imageScrollerImageRow_24435038");
        //**    [begin] Modify these to change your images  **//
		
		   imageScroller_24435038.setThumbnailWidth(96);
imageScroller_24435038.setThumbnailHeight(80);
imageScroller_24435038.setScrollSpeed(25);
imageScroller_24435038.setScrollAmount(2);
imageScroller_24435038.setThumbsShown(7);
imageScroller_24435038.setAutoLoop("True");
imageScroller_24435038.setScrollType(0);
imageScroller_24435038.setThumbnailPadding(3);
imageScroller_24435038.addThumbnail("scroller/images/thmb_0001.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0002.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0003.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0004.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0005.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0006.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0007.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0008.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0009.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0010.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0011.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0012.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0013.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0014.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0015.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0016.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0017.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0018.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0019.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0020.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0021.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0022.jpg", "page2.html", "", "");
imageScroller_24435038.addThumbnail("scroller/images/thmb_0023.jpg", "page2.html", "", "");
		
	    //**    [end]   Modify these to change your images  **//			    			    
	    imageScroller_24435038.enableThumbBorder(true);
	    imageScroller_24435038.setClickOpenType(1);
	    imageScroller_24435038.setNumOfImageToScroll(1);
	    imageScroller_24435038.renderScroller();
    };
	
	timer_24435038 = window.setTimeout("scrollImages_24435038()", 300);

var direction_24435038;
function scrollImages_24435038() {
	//set how many thumb shown, 3 in this example, modify to your number
	var currentThumbnail = imageScroller_24435038.getCurrentThumbIndex();
	var lastThumbnail = imageScroller_24435038.getThumbnailCount();
	
	var scrollType = imageScroller_24435038.getScrollType();
	
	if (scrollType == 0) {
		var currentPosition = parseInt(document.getElementById("imageScrollerImageRow_24435038").style.left);
		var endPosition = -1 * (parseInt(document.getElementById("imageScrollerImageRow_24435038").style.width) - parseInt(document.getElementById("imageScrollerFrame_24435038").style.width));
	} else {
		var currentPosition = parseInt(document.getElementById("imageScrollerImageRow_24435038").style.top);
		var endPosition = -1 * imageScroller_24435038.iNumOfThumbsShownHeightTotal_;
	}
	
	//0=forward, 1=backward
	//if we are at image 1, go forward, if we are on last one, go backward
	if (currentPosition > (endPosition + 2)) {
		direction_24435038 = 0;
	} else {
		direction_24435038 = 1;
	}
	
	//move the scroller based on direction
	if (direction_24435038 == 0) {
		if (scrollType == 0) {
			imageScroller_24435038.smoothScrollForward();
		} else {
			imageScroller_24435038.smoothScrollUp();
		}
	} else {
		if (scrollType == 0) {
			imageScroller_24435038.smoothScrollReverse();
		} else {
			imageScroller_24435038.smoothScrollDown();
		}
	}
	//call it again for next scroll
	timer_24435038 = window.setTimeout("scrollImages_24435038()", 1);
};
