							// predefine variables
							var leftActive = 0;
							var rightActive = 1;
							var totalQuotes = 6-4;
							var currentShift = 0;

							// preload images
							jQuery.preloadImages = function()
							{
							  for(var i = 0; i<arguments.length; i++)
							  {
							    jQuery("<img>").attr("src", arguments[i]);
							  }
							}
							$.preloadImages("/themes/ACROv2/images/blank.gif","/themes/ACROv2/images/right-arrow.png","/themes/ACROv2/images/right-arrow-hover.png","/themes/ACROv2/images/left-arrow.png","/themes/ACROv2/images/left-arrow-hover.png");
							
							//scrollbox
							$(document).ready(function(){
								// handle animations
								$("#scrollRight").click(function(){
									if (currentShift<totalQuotes) {
										$("#scrollBox").animate({"marginLeft": "-=214px"}, "slow");
										currentShift++;
									}
									if (currentShift>=totalQuotes) {
										$("#scrollRight").attr("src", '/themes/ACROv2/images/blank.gif');
									}
									$("#scrollLeft").attr("src", '/themes/ACROv2/images/left-arrow.png');
								});
								$("#scrollLeft").click(function(){
									if (currentShift>0) {
										$("#scrollBox").animate({"marginLeft": "+=214px"}, "slow");
										currentShift--;
									}
									if (currentShift<=0) {
										$("#scrollLeft").attr("src", '/themes/ACROv2/images/blank.gif');
									}
									$("#scrollRight").attr("src", '/themes/ACROv2/images/right-arrow.png');
								});

								// hover images and on/off based on ability to scroll

								$("#scrollRight").mouseover(function(){
									if (currentShift<totalQuotes) {
										$("#scrollRight").attr("src", '/themes/ACROv2/images/right-arrow-hover.png');
									}
								});
								$("#scrollRight").mouseout(function(){
									if (currentShift<totalQuotes) {
										$("#scrollRight").attr("src", '/themes/ACROv2/images/right-arrow.png');
									}
								});
								$("#scrollLeft").mouseover(function(){
									if (currentShift>0) {
										$("#scrollLeft").attr("src", '/themes/ACROv2/images/left-arrow-hover.png');
									}
								});
								$("#scrollLeft").mouseout(function(){
									if (currentShift>0) {
										$("#scrollLeft").attr("src", '/themes/ACROv2/images/left-arrow.png');
									}
								});
							});