ns4 = (document.layers)? true:false
dom = (document.all)? true:false
ie5=navigator.userAgent.indexOf('MSIE 5')>0?true:false;

var collection="";
var styleObj="";
if (dom) {
	collection="all.";
	styleObj=".style";
	}

	
//**********Pick the Correct CSS!**********	
var browserName=navigator.appName;
if (browserName=="Microsoft Internet Explorer")
{
//load ie friendly stylesheet
document.write('<link rel="stylesheet" href="tools/elephant_ie.css" type="text/css">')
}
else
{
if ((parseFloat(navigator.appVersion)) >= 5 )
{
// if ns version is great than or equal to 5 (6) load this stylesheet
document.write('<link rel="stylesheet" href="tools/elephant_ff.css" type="text/css">')
} else {
//if you have a really ancient browser ;-) (ie. NS 4.7 or earlier) load this stylesheet
document.write('<link rel="stylesheet" href="tools/elephant_ff.css" type="text/css">')
}
}

	
//**********image preloading**********

// This script and many more are available free online at -->
// The JavaScript Source!! http://javascript.internet.com -->
// roll-over for hte drop-downs

image1 = new Image();
image1.src = "images/submenu.gif";

image2 = new Image();
image2.src = "images/submenu_over.gif";


//**********CORRECTS CSS HOVER FUNCTION FOR IE 6**********
image1 = new Image();
image1.src = "images/submenu.gif";

image2 = new Image();
image2.src = "images/submenu_over.gif";

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("li");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);


//**********Makes the Drop-Down Function Work**********
function doSel(obj)
{
   for (i = 1; i < obj.length; i++)
      if (obj[i].selected == true)
        eval(obj[i].value);
}