function addToFavorite(favTitle){
  if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
    window.external.AddFavorite(location.href, unescape(favTitle));
  }
  else window.alert('This function is supported only by IE 4.x browsers.\n If you are using a different browser,\n please press Ctrl+D (Netscape) or add this bookmark manually.');
}

function toggleLayer(whichLayer){
  if (document.getElementById){
    // this is the way the standards work
    var style2 = document.getElementById(whichLayer).style;
    style2.display = style2.display? "":"block";
    }
  else if (document.all){
    // this is the way old msie versions work
    var style2 = document.all[whichLayer].style;
    style2.display = style2.display? "":"block";
    }
  else if (document.layers){
    // this is the way nn4 works
    var style2 = document.layers[whichLayer].style;
    style2.display = style2.display? "":"block";
    }
}


function newImage(arg) {
	if (document.images) {rslt = new Image();rslt.src = arg;return rslt;}
	}

function changeImage(ID, newImage){
document.getElementById(ID).src=newImage
}


function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
			}
		}
	}

var preloadFlag = false;

function preloadImages() {
	if (document.images) {
		image_1 = newImage("_images/arrow.gif");
		image_2 = newImage("_images/spacer.gif");
		preloadFlag = true;
		}
	}

function changeOver(obj,color)
  {
  obj.style.borderColor=color;
  }
