	//javascript for quilter's workshop home page
	//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/home/home.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/home/whatIs.jpg"

        imgArray[1].src = imgFile

   		txtImgArray[1] = new Image()

		txtBlkImgArray[1] = new Image()

        imgFile = "txtImgs/whatIsHome.r.gif"

        txtImgArray[1].src = imgFile

        imgFile = "txtImgs/whatIsHome.b.gif"

        txtBlkImgArray[1].src = imgFile



        imgArray[2] = new Image()

        imgFile = "images/home/gallery.jpg"

        imgArray[2].src = imgFile

   		txtImgArray[2] = new Image()

		txtBlkImgArray[2] = new Image()

        imgFile = "txtImgs/galleryHome.r.gif"

        txtImgArray[2].src = imgFile

        imgFile = "txtImgs/galleryHome.b.gif"

        txtBlkImgArray[2].src = imgFile



        imgArray[3] = new Image()

        imgFile = "images/home/restore.jpg"

        imgArray[3].src = imgFile

   		txtImgArray[3] = new Image()

		txtBlkImgArray[3] = new Image()

        imgFile = "txtImgs/restoreHome.r.gif"

        txtImgArray[3].src = imgFile

        imgFile = "txtImgs/restoreHome.b.gif"

        txtBlkImgArray[3].src = imgFile



        imgArray[4] = new Image()

        imgFile = "images/home/design.jpg"

        imgArray[4].src = imgFile

   		txtImgArray[4] = new Image()

		txtBlkImgArray[4] = new Image()

        imgFile = "txtImgs/dwHome.r.gif"

        txtImgArray[4].src = imgFile

        imgFile = "txtImgs/dwHome.b.gif"

        txtBlkImgArray[4].src = imgFile



        imgArray[5] = new Image()

        imgFile = "images/home/workshops.jpg"

        imgArray[5].src = imgFile

   		txtImgArray[5] = new Image()

		txtBlkImgArray[5] = new Image()

        imgFile = "txtImgs/wcHome.r.gif"

        txtImgArray[5].src = imgFile

        imgFile = "txtImgs/wcHome.b.gif"

        txtBlkImgArray[5].src = imgFile



        imgArray[6] = new Image()

        imgFile = "images/home/contact.jpg"

        imgArray[6].src = imgFile

   		txtImgArray[6] = new Image()

		txtBlkImgArray[6] = new Image()

        imgFile = "txtImgs/clHome.r.gif"

        txtImgArray[6].src = imgFile

        imgFile = "txtImgs/clHome.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) {

        

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

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

        	

        }



