function jumpBox(list) 
{
	location.href = list.options[list.selectedIndex].value;
}

// JavaScript Document

function startList(id)
{											
	if (document.all && document.getElementById) 
	{
		navRoot = document.getElementById(id);						
		for (i=0; i<navRoot.childNodes.length; i++) 
		{			
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") 
			{								
				node.onmouseover=function() 
				{
					this.className+=" over";
				}
				node.onmouseout=function() 
				{
					this.className=this.className.replace(" over", "");
				}
			}				
		}
	}
}

function fx_printCookie(str_cookieName)
{
	var cookieName = str_cookieName;		
	document.write(fx_checkNullName(Get_Cookie(cookieName)));
}
	
function fx_checkNullName(str_cookieValue)
{
	if (str_cookieValue)
	{
		return str_cookieValue;
	} else {
		return 'Valued LKD Customer';
	}
}

function changeBg(color)
{
	var myColor = color
	var el = event.srcElement;
	el.style.background = '' + myColor + '';
	el.parentElement.parentElement.parentElement.style.background = '' + myColor +  '';	
}

function Del_Cookie(name, path, domain)
	{
		if (Get_Cookie(name))
		{
			document.cookie = name + "=" + 
			((path) ? "; path=" + path : "") +
			((domain) ? "; domain=" + domain : "") +
			"; expires=Thu, 01-Jan-70 00:00:01 GMT";
		}
	}

	function Set_Cookie(name,value,expires,path,domain,secure) 
	{
		document.cookie = name + "=" +escape(value) +
		( (expires) ? ";expires=" + expires.toGMTString() : "") +
		( (path) ? ";path=" + path : "") + 
		( (domain) ? ";domain=" + domain : "") +
		( (secure) ? ";secure" : "");
	}

	function Get_Cookie(name)
	{
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);
		if (begin == -1)
		{
				begin = dc.indexOf(prefix);
				if (begin != 0) return null;
		}
		else
		{
				begin += 2;
		}
		var end = document.cookie.indexOf(";", begin);
		if (end == -1)
		{
				end = dc.length;
		}
		return unescape(dc.substring(begin + prefix.length, end));
	}
	
	function showLayer(str_divID)
	{
		document.all[str_divID].style.display = 'block';
	}

	function hideLayer(str_divID)
	{
		document.all[str_divID].style.display = 'none';
	}
	
	function ImageLoadFailed() {
    //window.event.srcElement.style.display = "None";
    window.event.srcElement.src = 'http://www.lkdaerospace.com/images/blank.gif';
    window.event.srcElement.border = 1;
  }