thnd = null;
smobj = null;
function _ob(id){return document.getElementById(id);}
function show(id) {
	if (smobj) smhide();
	if (id) {
		smobj = _ob(id);
		smobj.style.display='block';
	}
	clr();
}
function smhide(){ if(smobj) {smobj.style.display='none'; smobj=null;}}
function hide() {
	thnd=setTimeout( smhide,500);
}
function clr() {
	if ( thnd!=null ) {
		clearTimeout(thnd);
		thnd = null;
	}
}
function showSearch() {
	show('search');
	_ob('searchField').focus();
}
function hideSearch() {
	thnd=setTimeout( function() { smhide(); /*_ob('searchField').value='';*/ }, 500 );
}