//Copyright © 2006 ABS Technology plc. All rights reserved.
//Project:		ABS Technology plc Corporate Website
//Title:		/_common/_include/navigation.js
//Author:		Andrew Stanton Consulting Ltd (www.andrewstantonconsulting.co.uk)
//Date:			22 Mar 2006
//Description:	Navigation (menu and button) functionality.


<!--
// Constants
var TMR_HIDE_SUB_SERVICES = 600;	// Time (ms) before hiding the Services sub menu

// Variables
var timerHideSubServices = 0;		// Timer to hide the Services sub menu


function unselectAllSubMenus() {
	unselectMenuSubServices();
}

function onSelectMenuSubServices() {
	if (isDOM) {
		clearTimeout(timerHideSubServices);
		selectMenu('pageMenuServices');
		showSubMenu('pageMenuSubServices');
	}
}

function onUnselectMenuSubServices() {
	if (isDOM)
		timerHideSubServices = setTimeout('unselectMenuSubServices();', TMR_HIDE_SUB_SERVICES);
}

function unselectMenuSubServices() {
	if (isDOM) {
		hideSubMenu('pageMenuSubServices');
		unselectMenu('pageMenuServices');
	}
}

function showSubMenu(strElem) {
	if (isDOM) {
		var eDiv = document.getElementById(strElem);
		eDiv.className = 'pageMenuSubDivShow';
	}
}

function hideSubMenu(strElem) {
	if (isDOM) {
		var eDiv = document.getElementById(strElem);
		eDiv.className = 'pageMenuSubDivHide';
	}
}

function unselectMenu(strElem) {
	if (isDOM) {
		var eDiv = document.getElementById(strElem);
		eDiv.className = 'pageMenuItem';
	}
}

function selectMenu(strElem) {
	if (isDOM) {
		var eDiv = document.getElementById(strElem);
		eDiv.className = 'pageMenuItemSelected';
	}
}

function onMenuHome(strPath) {
	window.location = strPath + 'default.asp';
}

function onMenuDownloads(strPath) {
	window.location = strPath + 'downloads/default.asp';
}

function onMenuAbout(strPath) {
	window.location = strPath + 'about/default.asp';
}


function onMenuContact(strPath) {
	window.location = strPath + 'contact/default.asp';
}


function onMenuClients(strPath) {
	window.location = strPath + 'clients/default.asp';
}


function onMenuServices(strPath) {
	window.location = strPath + 'services/default.asp';
}


function onMenuNetworks(strPath) {
	window.location = strPath + 'services/networks.asp';
}


function onMenuMobile(strPath) {
	window.location = strPath + 'services/mobile.asp';
}


function onMenuTelephone(strPath) {
	window.location = strPath + 'services/telephone.asp';
}


function onMenuPrint(strPath) {
	window.location = strPath + 'services/print.asp';
}


function onMenuSoftware(strPath) {
	window.location = strPath + 'services/software.asp';
}


function onShowHelp(strVar) {
	window.status = strVar;
}


function onHideHelp() {
	window.status = '';
}
//-->