// javascript for quilter's workshop menu
// 2006-02-25 bo'n

        //load  images

        

        var imgArray = new Array(7)

        var txtImgArray = new Array(7)

        var txtBlkImgArray = new Array(7)



		// 0: home

		// 1: what is

		// 2: gallery

		// 3: restore

		// 4: design

		// 5: workshops

		// 6: contacts

		

        imgArray[0] = new Image()

        var imgFile = "images/menu/homeMenu.jpg"

        imgArray[0].src = imgFile

   		txtImgArray[0] = new Image()

		txtBlkImgArray[0] = new Image()

        imgFile = "txtImgs/homeMenu.r.gif"

        txtImgArray[0].src = imgFile

        imgFile = "txtImgs/homeMenu.b.gif"

        txtBlkImgArray[0].src = imgFile

        

        imgArray[1] = new Image()

        imgFile = "images/menu/whatIsMenu.jpg"

        imgArray[1].src = imgFile

   		txtImgArray[1] = new Image()

		txtBlkImgArray[1] = new Image()

        imgFile = "txtImgs/whatIsMenu.r.gif"

        txtImgArray[1].src = imgFile

        imgFile = "txtImgs/whatIsMenu.b.gif"

        txtBlkImgArray[1].src = imgFile



        imgArray[2] = new Image()

        imgFile = "images/menu/galleryMenu.jpg"

        imgArray[2].src = imgFile

   		txtImgArray[2] = new Image()

		txtBlkImgArray[2] = new Image()

        imgFile = "txtImgs/galleryMenu.r.gif"

        txtImgArray[2].src = imgFile

        imgFile = "txtImgs/galleryMenu.b.gif"

        txtBlkImgArray[2].src = imgFile



        imgArray[3] = new Image()

        imgFile = "images/menu/restoreMenu.jpg"

        imgArray[3].src = imgFile

   		txtImgArray[3] = new Image()

		txtBlkImgArray[3] = new Image()

        imgFile = "txtImgs/restoreMenu.r.gif"

        txtImgArray[3].src = imgFile

        imgFile = "txtImgs/restoreMenu.b.gif"

        txtBlkImgArray[3].src = imgFile



        imgArray[4] = new Image()

        imgFile = "images/menu/designMenu.jpg"

        imgArray[4].src = imgFile

   		txtImgArray[4] = new Image()

		txtBlkImgArray[4] = new Image()

        imgFile = "txtImgs/dwMenu.r.gif"

        txtImgArray[4].src = imgFile

        imgFile = "txtImgs/dwMenu.b.gif"

        txtBlkImgArray[4].src = imgFile



        imgArray[5] = new Image()

        imgFile = "images/menu/workshopsMenu.jpg"

        imgArray[5].src = imgFile

   		txtImgArray[5] = new Image()

		txtBlkImgArray[5] = new Image()

        imgFile = "txtImgs/wcMenu.r.gif"

        txtImgArray[5].src = imgFile

        imgFile = "txtImgs/wcMenu.b.gif"

        txtBlkImgArray[5].src = imgFile



        imgArray[6] = new Image()

        imgFile = "images/menu/contactMenu.jpg"

        imgArray[6].src = imgFile

   		txtImgArray[6] = new Image()

		txtBlkImgArray[6] = new Image()

        imgFile = "txtImgs/clMenu.r.gif"

        txtImgArray[6].src = imgFile

        imgFile = "txtImgs/clMenu.b.gif"

        txtBlkImgArray[6].src = imgFile





        

        function imageReplace(i, img, txt) {

        

	        document.images[img].src = imgArray[i].src

	        document.images[txt].src = txtBlkImgArray[i].src

        

        }

        

        function imageRestore(i, img, txt, page) {

        

        	document.images[img].src = imgArray[page].src

	        document.images[txt].src = txtImgArray[i].src

        	

        }



