<!--

/*
function show( theLayer )  {
	//hideAll();
	if( n ) { rt_layers[ theLayer ].visibility = "show" }
	else  {	rt_layers[ theLayer ].style.visibility = "visible" }
}

function hide( theLayer, recurs )  {
	if( n )  { rt_layers[ theLayer ].visibility = "hide" }
	else  {	rt_layers[ theLayer ].style.visibility = "hidden" }
}
*/


function BgOn(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#000066";
}
}

function BgOut(td){
if(document.getElementById||(document.all && !(document.getElementById))){
td.style.backgroundColor="#0066cc";
}
}


function checkBrowser(){
	this.ver=navigator.appVersion
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
	this.ns4=(document.layers && !this.dom)?1:0;
	//added
	this.ie4mac=this.ie4 && navigator.userAgent.indexOf("Mac")>-1
	this.ie5mac=this.ie5 && navigator.userAgent.indexOf("Mac")>-1
	this.ie55=(this.ver.indexOf("MSIE 5.5")>-1 && this.dom)?1:0; 
	this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5 || this.ie5mac)
	return this
}
bw=new checkBrowser()

//var rt_layers = (bw.dom) ? document.layers : document.all;


function show( div, nest )  {
	hideAll();
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='visible'
}

function hide( div, nest )  {
	obj=bw.dom?document.getElementById(div).style:bw.ie4?document.all[div].style:bw.ns4?nest?document[nest].document[div]:document[div]:0; 
	obj.visibility='hidden'
}

function hideAll()  {
	hide( "about" );
	hide( "services" );
}


// Function to 'activate' images.
function imgOn(imgName) {
	if (document.images) {
	    document[imgName].src = eval(imgName + ".src");
	}
}

// Function to 'deactivate' images.
function imgOff(imgName) {
	if (document.images) {
	    document[imgName].src = eval(imgName + "off.src");
	}
}

// Function to 'activate' layers.
function layer_imgOn( imgName,div, nest ) {
	obj=bw.dom?document.images:bw.ie4?document.all:bw.ns4?nest?document[nest].document[div]:document[div].document.images:0; 
	if (document.images) {
	    obj[imgName].src = eval(imgName + ".src");
	}
}

// Function to 'deactivate' layers.
function layer_imgOff( imgName, div, nest ) {
	obj=bw.dom?document.images:bw.ie4?document.all:bw.ns4?nest?document[nest].document[div]:document[div].document.images:0; 
	if (document.images) {
	    obj[imgName].src = eval(imgName + "off.src");
	}
}

var topMenuTimer = null;

function startTimer()
{
	stopTimer();
	topMenuTimer = setTimeout( "hideAll()", 100 );
}

function stopTimer()
{
   if( topMenuTimer )
		clearTimeout( topMenuTimer );
		topMenuTimer = null;
}

