<!--

var url = parent.location.href;

// Browser Sniffer
var sAgent = navigator.userAgent;
var mac = sAgent.indexOf("Mac") > -1;
bName = navigator.appName;
bVer = parseInt(navigator.appVersion);
var ns3 = (bName == "Netscape" && bVer == 3);
var ie3 = (bName == "Microsoft Internet Explorer" && bVer == 3);
var ns4 = (document.layers) ? true : false;
var ie4 = (document.all && !document.getElementById) ? true : false;
var ie5 = (document.all && document.getElementById) ? true : false;
var ns6 = (document.getElementById && !document.all) ? true : false;

// Just in case function 
function init(){null}

// Netscape Resize Workaround
if (ns4) {
	widthCheck = window.innerWidth
	heightCheck = window.innerHeight
	window.onResize = refresh
}

function refresh() {
	if (widthCheck != window.innerWidth || heightCheck != window.innerHeight)
	document.location.href = document.location.href
}

// Find Drop Down Location
function go_url() {
var sel = document.find.search.selectedIndex;
parent.location.href = document.find.search.options[sel].value;
}

// Rollover Function
function findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); return x;
}

function swapImage(){//v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function swapImgRestore(){//v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

// Hide Show
function show(object) {
	if (document.getElementById){
			myObject = eval(document.getElementById('' + object + ''));
			myObject.style.visibility = 'visible';
			}
    else if (document.layers) {
        if (document.layers[object] != null) document.layers[object].visibility = 'visible';
    }
    else if (document.all) 
        	document.all[object].style.visibility = 'visible'; 
}

function hide(object) {
	if (document.getElementById){
			myObject = eval(document.getElementById('' + object + ''));
			myObject.style.visibility = 'hidden';
			}
    else if (document.layers) {
        if (document.layers[object] != null) document.layers[object].visibility = 'hidden';
    }
    else if (document.all) 
        	document.all[object].style.visibility = 'hidden'; 
}

var noNavClock = null;

function offnav(){ noNavClock = setTimeout('nonav();noblurbs();',1500); }

var aSubnav = new Array();
aSubnav[0] = 'services'; 
aSubnav[1] = 'solutions'; 
aSubnav[2] = 'knowledge'; 
aSubnav[3] = 'clients'; 
aSubnav[4] = 'employment'; 
aSubnav[5] = 'company';
	
function nonav(){ hide('servsub'); hide('solusub'); hide('knowsub'); hide('clientsub'); hide('emplsub'); hide('whiteppr'); hide('compsub'); hide('topten'); hide('firstrpt'); hide('fivestg'); hide('newsnotes'); clearTimeout(noNavClock);
	for (var i = 0; i < aSubnav.length; i++) {
		swapImage(aSubnav[i],'','images/home/buttons/' + aSubnav[i] + '.gif',1);
	}
}

function noblurbs() { hide('whiteppr'); hide('topten'); hide('firstrpt'); hide('fivestg'); hide('newsnotes'); }

function onserv(){ show('servsub'); swapImage('services','','images/home/buttons/services_over.gif',1); clearTimeout(noNavClock)}	
function onsolu(){ show('solusub'); swapImage('solutions','','images/home/buttons/solutions_over.gif',1); clearTimeout(noNavClock)}
function onknow(){ show('knowsub'); swapImage('knowledge','','images/home/buttons/knowledge_over.gif',1); clearTimeout(noNavClock)}
function onclient(){ show('clientsub'); swapImage('clients','','images/home/buttons/clients_over.gif',1); clearTimeout(noNavClock)}		
function onempl(){ show('emplsub'); swapImage('employment','','images/home/buttons/employment_over.gif',1); clearTimeout(noNavClock)}
function oncomp(){ show('compsub'); swapImage('company','','images/home/buttons/company_over.gif',1); clearTimeout(noNavClock)}
		
	
//-->