var show_activ = 0;
var hide_activ = 0;

function getTipLayer(_index) {
return document.getElementById('header_menu_' + _index) || {style:{}};
}

function _showTip(_index) {
_hideTips();
getTipLayer(_index).style.display = 'block';
}

function _hideTip(_index) {
getTipLayer(_index).style.display = 'none';
activ_hide = _index;
}

function _hideTips() {
_hideTip(show_activ);
show_activ = 0;      
}

var _to = null;

function tipOver(_index) {
if (_to) window.clearTimeout(_to);
        if (show_activ!=_index) _showTip(_index);
show_activ = _index;
}

function tipOut(_index) {
if (_to) window.clearTimeout(_to);
_to = window.setTimeout('_hideTips()', 500);
}

function preLoadImages() {
	if (document.images==false) {
		return true;
	}
	var image = new Image();
	var node = document.images;
	for (var i = 0;i<node.length;i++) {
		image.src = node[0].src;
	}
}
preLoadImages();