//Pictures to switch inbetween
//path on server is /home/33/06/7210633/web/

    var scrollpic1 = "./images/menu/pic1.png";
    var scrollpic2 = "./images/menu/pic2.png";
    var scrollpic3 = "./images/menu/pic3.png";
    var scrollpic4 = "./images/menu/pic4.png";
    var scrollpic5 = "./images/menu/pic5.png";
    var scrollpic6 = "./images/menu/pic6.png";
    var scrollpic7 = "./images/menu/pic7.png";
    var scrollpic8 = "./images/menu/pic8.png";
    var scrollpic9 = "./images/menu/pic9.png";
    var scrollpic10 = "./images/menu/pic10.png";
    var scrollpic11 = "./images/menu/pic11.png";
    var scrollpic12 = "./images/menu/pic12.png";

    //Start at the what pic:
    var picNum=1;
    //Number of pics:
    var numPics=12;
    //Time between pics switching in secs
    var duration=2;

    //changePic Function
    function changePic(count){

    	if(count < duration){

    		count++;


    		//Display pic in what <IMG> tag scroll is what I called the image
    		document.scroll.src = eval("scrollpic" + picNum);

    		//function calls itself
    		CallchangePic=window.setTimeout("changePic("+count+")",1500);

    		}

    		else{
    			//if its not the last picture goto the next picture
    			if(picNum < numPics){
    				picNum++;
    				changePic(0);
    			}
    			//its the last picture go to the first one
    			else{
    				picNum=1;
    				changePic(0);
    				}

    		}

    }

