/*
*	Overlay Popup
*	QuickFind
*/

var s = 400;
var t = 300;
var opened = false;
var leaved = false;

function openQuickFind () {
	document.getElementById('quickFind').style.display = 'block';
	opened = true;
	leaved = false;
}

function showQuickFind () {
	if ( opened && leaved ) {
		clearTimeout(aktiv);
	}
	openit = window.setTimeout("openQuickFind ()", s);
}

function hideQuickFind () {
	document.getElementById('quickFind').style.display = 'none';
	opened = false;
}

function leaveQuickFind () {
	if ( opened ) {
		aktiv = window.setTimeout("hideQuickFind ()", t);
		leaved = true;
	}
	if ( openit ) {
		clearTimeout(openit);
	}
}
