 // Global Variables
        var b_Speed = 4000;
        var b_Num = 0;
        var bb_time;
        // script function
        function rotateBoard(preloadOnly)
        {
            
 		boards = new Array();
		boards[0] = new Image();
        boards[0].src = "images/smartsville/history_temperance-hill.jpg";
		boards[1] = new Image();  
        boards[1].src = "images/smartsville/PioneerDay.jpg"; 
		boards[2] = new Image();
        boards[2].src = "images/smartsville/PioneerDay2.jpg"; 
		boards[3] = new Image();
        boards[3].src = "images/smartsville/Getting-the-S-back.jpg"; 
		boards[4] = new Image();
        boards[4].src = "images/smartsville/Getting-the-S-back2008.jpg";
		boards[5] = new Image();  
        boards[5].src = "images/smartsville/AerialView2.jpg";
		boards[6] = new Image();
        boards[6].src = "images/smartsville/Church.jpg"; 
		boards[7] = new Image();
        boards[7].src = "images/smartsville/churchRestoration.jpg"; 
		boards[8] = new Image();
        boards[8].src = "images/smartsville/churchRestoration2.jpg";
		boards[9] = new Image();  
        boards[9].src = "images/smartsville/history_hydraulic-pressure-box.jpg"; 
		boards[10] = new Image();
        boards[10].src = "images/smartsville/oldDitch.jpg"; 
		boards[11] = new Image();
        boards[11].src = "images/smartsville/harwareStore.jpg"; 
		boards[12] = new Image();
        boards[12].src = "images/smartsville/salmonrun1.jpg";
		boards[13] = new Image();
        boards[13].src = "images/smartsville/salmonrun2.jpg";
		boards[14] = new Image();
        boards[14].src = "images/smartsville/salmonrun.jpg";
		boards[15] = new Image();
        boards[15].src = "images/smartsville/AerialView.jpg";
		boards[16] = new Image();
        boards[16].src = "images/smartsville/HuellHowser.jpg";
		boards[17] = new Image();
        boards[17].src = "images/smartsville/mainStreet.jpg";
		boards[18] = new Image();
        boards[18].src = "images/smartsville/Arch-above-the-Nave.jpg"; if (preloadOnly == false) {
	if (b_Num < (boards.length - 1) ) 

                  b_Num++;
            else
                  b_Num = 0;
            document.billboard.src = boards[b_Num].src;
            bb_time = setTimeout('rotateBoard(false)', b_Speed);
	}
	}
		
	function stopRotateBoard()
	{
	clearTimeout(bb_time);
	}
		
	function nextRotateBoard()
	{
	if (b_Num < (boards.length - 1) ) 

                  b_Num++;
            else
                  b_Num = 0;
            document.billboard.src = boards[b_Num].src;
	}
		
	function backRotateBoard()
	{
	if (b_Num == 0) 

                b_Num = (boards.length - 1);
           else
                b_Num--;
           document.billboard.src = boards[b_Num].src;
	}
	
 rotateBoard(false);
