function show_home(){if (preloadFlag == true){
if (document.images)
{document.getElementById("home").style.visibility = "visible";}
window.status='Home';
changeImg('DeGroate_19', '/graphics_slices/DeGroate_19-over.gif'); return true;
}}
function hide_home(){if (preloadFlag == true){
if (document.images)
{document.getElementById("home").style.visibility = "hidden";}
window.status='';
changeImg('DeGroate_19', home_sticky); return true;
}}

function show_aboutus(){if (preloadFlag == true){
if (document.images)
{document.getElementById("aboutus").style.visibility = "visible";}
window.status='About Us';
changeImg('DeGroate_20', '/graphics_slices/DeGroate_20-over.gif'); return true;
}}
function hide_aboutus(){if (preloadFlag == true){
if (document.images)
{document.getElementById("aboutus").style.visibility = "hidden";}
window.status='';
changeImg('DeGroate_20', aboutus_sticky); return true;
}}

function show_products(){if (preloadFlag == true){
if (document.images)
{document.getElementById("products").style.visibility = "visible";}
window.status='Products';
changeImg('DeGroate_21', '/graphics_slices/DeGroate_21-over.gif'); return true;
}}
function hide_products(){if (preloadFlag == true){
if (document.images)
{document.getElementById("products").style.visibility = "hidden";}
window.status='';
changeImg('DeGroate_21', products_sticky); return true;
}}

function show_resources(){if (preloadFlag == true){
if (document.images)
{document.getElementById("resources").style.visibility = "visible";}
window.status='Resources';
changeImg('DeGroate_22', '/graphics_slices/DeGroate_22-over.gif'); return true;
}}
function hide_resources(){if (preloadFlag == true){
if (document.images)
{document.getElementById("resources").style.visibility = "hidden";}
window.status='';
changeImg('DeGroate_22', resources_sticky); return true;
}}




userAgent = window.navigator.userAgent;
browserVers = parseInt(userAgent.charAt(userAgent.indexOf("/")+1),10);
function findElement(n,ly) {
	if (browserVers < 4)		return document[n];
	var curDoc = ly ? ly.document : document;
	var elem = curDoc[n];
	if (!elem) {
		for (var i=0;i<curDoc.layers.length;i++) {
			elem = findElement(n,curDoc.layers[i]);
			if (elem) return elem;
		}
	}
	return elem;
}

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

function changeImg() {
	if (document.images) {
		var img;
		for (var i=0; i<changeImg.arguments.length; i+=2) {
			img = null;
			if (document.layers) {
				img = findElement(changeImg.arguments[i],0);
			}
			else {
				img = document.images[changeImg.arguments[i]];
			}
			if (img) {
				img.src = changeImg.arguments[i+1];
			}
		}
	}
}

var preloadFlag = false;
function preloadImg() {
	if (document.images) {
		DeGroate_19_over = newImage("/graphics_slices/DeGroate_19-over.gif");
		DeGroate_19_sticky = newImage("/graphics_slices/DeGroate_19-sticky.gif");
		DeGroate_20_over = newImage("/graphics_slices/DeGroate_20-over.gif");
		DeGroate_20_sticky = newImage("/graphics_slices/DeGroate_20-sticky.gif");
		DeGroate_21_over = newImage("/graphics_slices/DeGroate_21-over.gif");
		DeGroate_21_sticky = newImage("/graphics_slices/DeGroate_21-sticky.gif");
		DeGroate_22_over = newImage("/graphics_slices/DeGroate_22-over.gif");
		DeGroate_22_sticky = newImage("/graphics_slices/DeGroate_22-sticky.gif");
		if (sticky[0] == "true"){home_sticky = '/graphics_slices/DeGroate_19-sticky.gif'}
		else {home_sticky = '/graphics_slices/DeGroate_19.gif'};
		if (sticky[1] == "true"){aboutus_sticky = '/graphics_slices/DeGroate_20-sticky.gif'}
		else {aboutus_sticky = '/graphics_slices/DeGroate_20.gif'};
		if (sticky[2] == "true"){products_sticky = '/graphics_slices/DeGroate_21-sticky.gif'}
		else {products_sticky = '/graphics_slices/DeGroate_21.gif'};
		if (sticky[3] == "true"){resources_sticky = '/graphics_slices/DeGroate_22-sticky.gif'}
		else {resources_sticky = '/graphics_slices/DeGroate_22.gif'};
		preloadFlag = true;
		hide_home();
		hide_aboutus();
		hide_products();
		hide_resources();
	}
}