// scripts by ian cavalier
   // http://www.oxygenesis.com/
   // feel free to use/modify the following scripts any way you like as
   // long as these four comment lines remain with the source code.  thanks.


// CHANGE WINDOW STATUS BAR ONMOUSEOVER
   function changeStatus(status) {
     window.status = status;
   }


// PRELOAD HIDDEN IMAGES TO CACHE
   // define imgSwap function
   function imgSwap(imgObjectName, imgObjectState) {

   // test browser compatibility
   if (navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 3) {
     imgObject = new Object();
     imgObject = imgObjectName;
     imgObject.src = imgObjectState;
     }
   }

   // define imgPreLoad function
   function imgPreLoad(i, img) {

   // test browser compatibility
   if (navigator.appName== "Netscape" && parseInt(navigator.appVersion) >= 3) {
     cacheImg[i] = new Image();
     cacheImg[i].src = img;
     }
   }

   // name images
   sculpture2 = "/images/menu-sculpture-on.gif";
   galleries2 = "/images/menu-galleries-on.gif";
   featured2 = "/images/menu-featured-on.gif";
   fabrication2 = "/images/menu-fabrication-on.gif";
   search2 = "/images/menu-search-on.gif";
   home2 = "/images/menu-home-on.gif";
   about2 = "/images/menu-about-on.gif";
   current2 = "/images/menu-current-on.gif";
   client2 = "/images/menu-client-on.gif";
   guestbook2 = "/images/menu-guestbook-on.gif";
   contact2 = "/images/menu-contact-on.gif";
   entryways2 = "/images/menu-entryways-on.gif";
   logo2 = "/images/logo2.gif";

   // load images
   cacheImg = new Array();
   imgPreLoad(1,sculpture2);
   imgPreLoad(2,galleries2);
   imgPreLoad(3,featured2);
   imgPreLoad(4,fabrication2);
   imgPreLoad(5,search2);
   imgPreLoad(6,home2);
   imgPreLoad(7,about2);
   imgPreLoad(8,current2);
   imgPreLoad(9,client2);
   imgPreLoad(10,guestbook2);
   imgPreLoad(11,contact2);
   imgPreLoad(12,entryways2);
   imgPreLoad(13,logo2);


// CHECK BROWSER VERSION TO DETERMINE IF MS FUNCTIONS WILL BE ACTIVATED
   bn = navigator.appName;
   bv = parseFloat(navigator.appVersion); 

   if (bn == "Netscape" && bv < 2.0)
	{
	roll = 'false';
	}
   else if (bn == "Netscape" && bv == 2.0)
	{
	roll = 'false';
	}
   else if (bn == "Netscape" && bv >= 3.0)
	{
	roll = 'true';
	}
   else if (bn == "Microsoft Internet Explorer" && bv <= 2.0)
	{
	roll = 'false';
	}
   else if (bn == "Microsoft Internet Explorer" && bv >= 3.0)
	{
	roll = 'true';
	}
   else
	{
	roll = 'false';
	}

   function msover(img,ref)
	{
		if (roll == 'true')
			{
			document.images[img].src = ref;
			}
	}
	
   function msout(img,ref)
	{
		if (roll == 'true')
			{
			document.images[img].src = ref;
			}
	}
	
   function msover2(img1,ref1,img2,ref2)
	{
		if (roll == 'true')
			{
			document.images[img1].src = ref1;
			document.images[img2].src = ref2;
			}
	}
	
   function msout2(img1,ref1,img2,ref2)
	{
		if (roll == 'true')
			{
			document.images[img1].src = ref1;
			document.images[img2].src = ref2;
			}
	}
	

// DEFINE SHOWN AND HIDDEN IMAGES THAT WILL APPEAR ONMOUSEOVER
   agent = navigator.userAgent
   browserversion = 1

   if (agent.indexOf("a/2",6) == -1) { 
     browserversion = 1} 
   else { 
     browserversion = 2}

   if (browserversion == 1) {

   sculpture1 = new Image(80,15);
   sculpture1.src = "/images/menu-sculpture.gif";

   sculpture2 = new Image(80,15);
   sculpture2.src = "/images/menu-sculpture-on.gif";

   galleries1 = new Image(77,15);
   galleries1.src = "/images/menu-galleries.gif";

   galleries2 = new Image(77,15);
   galleries2.src = "/images/menu-galleries-on.gif";

   featured1 = new Image(135,15);
   featured1.src = "/images/menu-featured.gif";

   featured2 = new Image(135,15);
   featured2.src = "/images/menu-featured-on.gif";

   fabrication1 = new Image(161,15);
   fabrication1.src = "/images/menu-fabrication.gif";

   fabrication2 = new Image(161,15);
   fabrication2.src = "/images/menu-fabrication-on.gif";

   search1 = new Image(61,15);
   search1.src = "/images/menu-search.gif";

   search2 = new Image(61,15);
   search2.src = "/images/menu-search-on.gif";

   home1 = new Image(45,15);
   home1.src = "/images/menu-home.gif";

   home2 = new Image(45,15);
   home2.src = "/images/menu-home-on.gif";

   about1 = new Image(71,15);
   about1.src = "/images/menu-about.gif";

   about2 = new Image(71,15);
   about2.src = "/images/menu-about-on.gif";

   current1 = new Image(140,15);
   current1.src = "/images/menu-current.gif";

   current2 = new Image(140,15);
   current2.src = "/images/menu-current-on.gif";

   client1 = new Image(89,15);
   client1.src = "/images/menu-client.gif";

   client2 = new Image(89,15);
   client2.src = "/images/menu-client-on.gif";

   guestbook1 = new Image(86,15);
   guestbook1.src = "/images/menu-guestbook.gif";

   guestbook2 = new Image(86,15);
   guestbook2.src = "/images/menu-guestbook-on.gif";

   contact1 = new Image(89,15);
   contact1.src = "/images/menu-contact.gif";

   contact2 = new Image(89,15);
   contact2.src = "/images/menu-contact-on.gif";

   entryways1 = new Image(94,15);
   entryways1.src = "/images/menu-entryways.gif";

   entryways2 = new Image(94,15);
   entryways2.src = "/images/menu-entryways-on.gif";

   logo1 = new Image(205,51);
   logo1.src = "/images/logo1.gif";

   logo2 = new Image(205,51);
   logo2.src = "/images/logo2.gif";
   }

   function viewReplace(imgDocID,imgObjName) { 
     if (browserversion == 1) {
       document.images[imgDocID].src = eval(imgObjName + ".src")
     }
   }

