	ns4 = (document.layers)?true:false;
	ie4 = (document.all)?true:false;
	
	if (document.images)
		{
			productstxt=new Image();
			productstxt.src="/images/products.gif";
			servicestxt=new Image();
			servicestxt.src="/images/services.gif";
			testimonialstxt=new Image();
			testimonialstxt.src="/images/testimonials.gif";
			contactustxt=new Image();
			contactustxt.src="/images/contactus.gif";

			productsgreen=new Image();
			productsgreen.src="/images/productsg.gif";
			servicesgreen=new Image();
			servicesgreen.src="/images/servicesg.gif";
			testimonialsgreen=new Image();
			testimonialsgreen.src="/images/testimonialsg.gif";
			testimonialsgreen=new Image();
			testimonialsgreen.src="/images/testimonialsg.gif";

/*projects image stuff is temporary*/
			projectsgreen=new Image();
			projectsgreen.src="/images/projectsg.gif";
		}
		
	function setImgSrc(nameattrib, imagesrc) {

/*  - nameattrib -
 A string denoting the base name assigned to an
 image via the 'name=' option of the <IMG> tag. 
 For proper operation of the script, your images
 should have the same base names as the name 
 attribute in the <IMG> tag*/


/* - imagesrc -
 A string containing the url of the new image file. 
 This provides an easy way to change an image on the page,
 whether it is defined within the body of the page or within
 the content of a layer. In order to work properly, the name
 of the image in the <IMG> tag should be unique on that page */

if  (navigator.appVersion.substring(0,1) >= 3)
{

  var i, layer,layerList;
  layerList = document.layers;

  /* If the image exists in the document object
   (Internet Explorer), change the source.*/

  if (document.images[nameattrib]) {
    document.images[nameattrib].src = imagesrc;
    return;
  }

  /* Otherwise, (Netscape), search through the layers
   for the named image and change the source.*/

  else if (document.layers) {
    var found = false;
    for (i = 0; i < layerList.length && !found; i++) {
      layer = layerList[i];
      if (layer.document.images[nameattrib]) {
        layer.document.images[nameattrib].src = imagesrc;
        found = true;
       }
     } 
   }
 }
}

	function init()
	{
		if (ns4||ie4)
		{
			DynLayerInit();
		}
	}
	
	function swap(imgName,imgObj)
	{
		if (document.images)
		{
		document.images[imgName].src=eval(imgObj).src;
		}
	}
	
	
