
//create an image scroller object
var imageScroller_15277270;

//delay all code execution untill after page load
addAnEvent(window, "load", loadScroller_15277270);

function loadScroller_15277270() {

    imageScroller_15277270 = new ImageScroller("imageScrollerFrame_15277270", "imageScrollerImageRow_15277270");
    //**    [begin] Modify these to change your images  **//
	
	         imageScroller_15277270.setThumbnailWidth(160);
imageScroller_15277270.setThumbnailHeight(40);
imageScroller_15277270.setScrollSpeed(200);
imageScroller_15277270.setScrollAmount(2);
imageScroller_15277270.setThumbsShown(8);
imageScroller_15277270.setAutoLoop("True");
imageScroller_15277270.setScrollType(0);
imageScroller_15277270.setThumbnailPadding(2);
imageScroller_15277270.addThumbnail("images/0001.jpg", "http://www.stringsmagazine.com", "", "");
imageScroller_15277270.addThumbnail("images/0002.jpg", "http://www.markwoodmusic.com", "", "");
imageScroller_15277270.addThumbnail("images/0003.jpg", "http://www.centurystrings.com", "", "");
imageScroller_15277270.addThumbnail("images/0004.jpg", "http://www.alfred.com", "", "");
imageScroller_15277270.addThumbnail("images/0005.jpg", "http://www.emmcmusic.com", "", "");
imageScroller_15277270.addThumbnail("images/0006.jpg", "http://www.concordgroup.com", "", "");
imageScroller_15277270.addThumbnail("images/0007.jpg", "http://www.kunrest.com", "", "");
imageScroller_15277270.addThumbnail("images/0008.jpg", "http://www.halleonard.com", "", "");
imageScroller_15277270.addThumbnail("images/0009.jpg", "http://www.lucksmusic.net", "", "");
imageScroller_15277270.addThumbnail("images/0010.jpg", "http://www.howardcore.com", "", "");
imageScroller_15277270.addThumbnail("images/0011.jpg", "http://www.mandmdistributing.com", "", "");
imageScroller_15277270.addThumbnail("images/0012.jpg", "http://www.knilling.com", "", "");
imageScroller_15277270.addThumbnail("images/0013.jpg", "http://www.mooradian.com", "", "");
imageScroller_15277270.addThumbnail("images/0014.jpg", "http://www.bobelock.com", "", "");
imageScroller_15277270.addThumbnail("images/0015.jpg", "http://www.cscproducts.com", "", "");
imageScroller_15277270.addThumbnail("images/0016.jpg", "http://www.codabow.com", "", "");
imageScroller_15277270.addThumbnail("images/0017.jpg", "http://www.snowviolin.com", "", "");
imageScroller_15277270.addThumbnail("images/0018.jpg", "http://www.usbandsupplies.com", "", "");

	
    //**    [end]   Modify these to change your images  **//			    			    
    imageScroller_15277270.enableThumbBorder(false);
    imageScroller_15277270.setClickOpenType(1);
    imageScroller_15277270.setNumOfImageToScroll(1);
    imageScroller_15277270.renderScroller();
};
timer_15277270 = window.setTimeout("scrollImages_15277270()", 300);
			
var direction_15277270;
function scrollImages_15277270() {
	//set how many thumb shown, 3 in this example, modify to your number
	var thumbsShown = imageScroller_15277270.getThumbsShown();
	var currentThumbnail = imageScroller_15277270.getCurrentThumbIndex();
	var lastThumbnail = imageScroller_15277270.getThumbnailCount();
	var scrollType = imageScroller_15277270.getScrollType();
	
	//0=forward, 1=backward
	//if we are at image 1, go forward, if we are on last one, go backward
	if (currentThumbnail == 1) {
		direction_15277270 = 0;
	} else if (currentThumbnail == ((lastThumbnail + 1) - thumbsShown)) {
		direction_15277270 = 1;
	}
	//move the scroller based on direction
	if (direction_15277270 == 0) {
		if (scrollType == 0) {
			imageScroller_15277270.scrollForward();
		} else {
			imageScroller_15277270.scrollUp();
		}
	} else {
		if (scrollType == 0) {
			imageScroller_15277270.scrollReverse();
		} else {
			imageScroller_15277270.scrollDown();
		}
	}
	//call it again for next scroll
	timer_15277270 = window.setTimeout("scrollImages_15277270()", 1500);
};
