
// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// 
// Coded by Travis Beckham
// http://www.squidfingers.com | http://www.podlob.com
// If want to use this code, feel free to do so, but please leave this message intact.
// If you do remove this, I will hunt you down :)
//
// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// --- Version Date 6-12-02 --------------------------------------------------------------

// NOTE: this version only works in a W3C browser. It could work in Netscape4 / Explorer4,
// but I don't feel like messing with it right now.

// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Navigation Properties

var webSiteWidth = 900;
var curNav = null;
var delay = 250;
var timer = 0;

// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
// Navigation Functions

function showSub( subName, xOffset ){
	//alert('entre');
	var e, windowWidth, webSiteLeft;
	cancelHide();
	hideSubNavigation();
	e = document.getElementById(subName);
	
	windowWidth = document.all ? document.body.clientWidth : window.innerWidth;
	webSiteLeft = (windowWidth - webSiteWidth)/2;
	if( webSiteLeft < 0 ) webSiteLeft = 0;
	e.style.left = webSiteLeft + xOffset;
	e.style.visibility = 'visible';
	curNav = subName;
}
function hideSubNavigation(){
	if( curNav != null ){
		e = document.getElementById(curNav);
		e.style.visibility = 'hidden';
		curNav = null;
	}
}
function hideSub(){
	timer = setTimeout('hideSubNavigation()', delay);
}
function cancelHide(){
	clearTimeout(timer);
	timer = 0;
}
function navOver(e){
	e.style.backgroundColor = '#5a463c';
	e.style.color = '#e1e1cd';
}
function navOut(e){
	e.style.backgroundColor = '#ffffff';
	e.style.color = '#8CAAA5';
}

// |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
