
var browser = navigator.appName

if (browser == "Microsoft Internet Explorer")
	browser == "ie"
else
	browser == "netscape"

function flashStart() {

	if (AC_FL_RunContent == 0) {
		alert("This page requires AC_RunActiveContent.js.");
	} else {
		AC_FL_RunContent(
			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
			'width', '800',
			'height', '400',
			'src', 'Animals',
			'quality', 'high',
			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
			'align', 'middle',
			'play', 'true',
			'loop', 'true',
			'scale', 'showall',
			'wmode', 'window',
			'devicefont', 'false',
			'id', 'Animals',
			'bgcolor', '#ffffff',
			'name', 'Animals',
			'menu', 'true',
			'allowFullScreen', 'false',
			'allowScriptAccess','sameDomain',
			'movie', 'Animals',
			'salign', ''
			); //end AC code
	}
}

// set which menu is active

function setMenu() {
	var pageName = getPageName();
    var prefix = pageName.substring(0,pageName.indexOf(".")).toLowerCase();
	
	var objImg = document.getElementById(prefix);
	//if (objImg == null)
	//	objImg = document.getElementById("food")
	
	if (objImg != null) {
		if (browser == "ie")
			objImg.setAttribute("className", "menuLinkOn");
		else
			objImg.setAttribute("class", "menuLinkOn");
	}
 


	
}

function getPageName() {
	
   var pathArray = window.location.pathname.split( '/' );  
   var pageName = pathArray[pathArray.length - 1];
   return pageName;	
}

