function navigationOver(node) {
	node.style.backgroundPosition = 'bottom left';
}

function navigationOut(node) {
	node.style.backgroundPosition = 'top left';
}

function searchInputOver(node) {
	if(node.value == 'SEARCH') {
		node.value = '';
	}
}

function searchInputOut(node) {
	if(node.value == '') {
		node.value = 'SEARCH';
	}
}

function subnavOver(node) {
	node.style.backgroundPosition = 'bottom';	
}

function subnavOut(node) {
	node.style.backgroundPosition = 'top';	
}

function showSub(mainNode, nodeId) {
	document.getElementById(nodeId).style.display = 'block';	
	mainNode.style.height = '151px';
	if(detectIE() == '6') {
		mainNode.style.width = '172px';
		mainNode.style.marginRight = '-103px';
	} else {
		mainNode.style.width = '168px';
		mainNode.style.marginRight = '-103px';
	}
}

function hideSub(mainNode, nodeId) {
	document.getElementById(nodeId).style.display = 'none';	
	mainNode.style.height = '12px';
	if(detectIE() == '6') {
		mainNode.style.width = '86px';
		mainNode.style.marginRight = '-17px';
	} else {
		mainNode.style.width = '83px';	
		mainNode.style.marginRight = '-18px';
	}
}

function detectIE() {
	if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)) { //test for MSIE x.x;
		var ieversion = new Number(RegExp.$1);		 // capture x.x portion and store as a number
		return ieversion;
	}
}
