
/* ------------ top navigation behavior ------------ */
var nav1 = {};

nav1.mouseOver1 = function(obj) {
	this.triggerLogo();
	if (obj != this.activeObj1) { this.hide1(); }
	clearTimeout(this.timeoutId1);
	if (!this.activeObj1) {
		if (obj.getElementsByTagName('UL').length != 0) {
			this.menu1 = obj.getElementsByTagName('UL')[0];
			this.menu1.style.display = 'block';
		}
	}
	this.activeObj1 = obj;
} 

nav1.mouseOut1 = function(obj) {
	var obj = this;
	hide = function() { obj.hide1(); }
	this.timeoutId1 = setTimeout('hide()', 300);
}

nav1.hide1 = function() {
	clearTimeout(this.timeoutId1);
	if (this.activeObj1) {
		if (this.menu1) this.menu1.style.display = 'none';
		this.activeObj1 = null;
	}
}

nav1.mouseOver2 = function(obj) {
	// this.triggerLogo();
	if (obj != this.activeObj) { this.hide2(); }
	clearTimeout(this.timeoutId);
	if (!this.activeObj) {
		if (obj.getElementsByTagName('UL').length != 0) {
			this.menu = obj.getElementsByTagName('UL')[0];
			this.menu.style.display = 'block';
		}
	}
	this.activeObj = obj;
} 

nav1.mouseOut2 = function(obj) {
	var obj = this;
	hide = function() { obj.hide1(); }
	this.timeoutId = setTimeout('hide()', 300);
}

nav1.hide2 = function() {
	clearTimeout(this.timeoutId);
	if (this.activeObj) {
		if (this.menu) this.menu.style.display = 'none';
		this.activeObj = null;
	}
}

nav1.triggerLogo = function() {
	var logo = window.document.logo;
	logo.SetVariable('debug', 'blap');
	logo.TCallFrame('/', 2);
}




/* ------------ sub navigation behavior ------------ */
/*
var nav3 = {};

nav3.toggle = function(obj) {
	var section = obj.parentNode;
	var menu = section.parentNode;
	var sections = menu.getElementsByTagName('DIV');
	for (var i=0; i<sections.length; i++) {
		if (sections[i].className == 'section expanded') {
			if (sections[i] != section) sections[i].className = 'section';
		}
	}
	(section.className == 'section') ? section.className = 'section expanded' : section.className = 'section';
	if (obj.className.indexOf('active') != -1) return false;
	return true;
}
*/