/***********************************************/
/* JS Document for Theo Platt                 */
/* created by Steven Herring                   */
/***********************************************/

// JavaScript Document
<!--
clickMenu = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("li");
	var getAgn = getEls;

	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
				<!--cycle through the elements-->
				for (var x=0; x<getAgn.length; x++) {
					<!-- replace the word selected with an empty string -->
					getAgn[x].className=getAgn[x].className.replace("selected", "");
				}
				<!--do the reverse and add the word selected to the classname-->
				this.className+=" selected";
				}
			}
		}

naviMenu = function(menu) {
	var getEls = document.getElementById(menu).getElementsByTagName("LI");
	var getAgn = getEls;

	for (var i=0; i<getEls.length; i++) {
			getEls[i].onclick=function() {
				for (var x=0; x<getAgn.length; x++) {
				getAgn[x].className=getAgn[x].className.replace("click", "");
				}
				this.className+=" click";
				}
			}
		}

// nice menu transition
function lite(obj) {
	if(document.all&&!window.opera) {
		//alert("hi " + obj);
		obj.filters.blendTrans.apply(); 
		obj.filters.blendTrans.play(); 
	} 
} 

/*used for small image problems*/
function onImgErrorSmall(source)
{
source.src = "images/no-image-100px.gif";
// disable onerror to prevent endless loop
source.onerror = "";
return true;
}

/*used for large image problems*/
function onImgErrorLarge(source)
{
source.src = "images/no-image-200px.gif";
// disable onerror to prevent endless loop
source.onerror = "";
return true;
}

function getfocus(id)
{
	document.getElementById(id).focus()
}

-->
