// browser sniffer - warning for non W3C browsers //
if (document.getElementById?0:1)
{
 	alert('You appear to be using an old browser.  This page may not display as intended.');
}

var wnd;

page = new Array('default','webserv','digilib','dataman','consult','clients','contact','petex');
var pg;
var i;
for (i=0; i<page.length; i++)
{	if (location.href.indexOf(page[i])>-1) pg = i;
}

function emlk(n, d, s)
{
	var a = n+'@'+d;
	var t = s==null?a:s;
	document.write('<a href="mailto:'+a+'">'+t+'</a>');
}

function moNav(el)
{
	var n = el.className.substr(3,1);
	el.className = 'nav'+n+'h';
}
 
function mxNav(el)
{
	var n = el.className.substr(3,1);
	var cl = (n==pg)?'a':'n';
	el.className = 'nav'+n+cl;
}

function moRes(el)
{
	el.className = 'resgrph';
}
 
function mxRes(el)
{
	el.className = 'resgrp';
}

function press()
{
	var btn = window.event.srcElement;
	btn.style.filter = 'blur(add=0, direction=135, strength=2)';
	window.setTimeout('release(\''+btn.id+'\')', 400);
}

function release(id)
{
	var btn = document.getElementById(id); 
	if (btn) btn.style.filter = null;
}

