var qTimer = null; 
var ms = 250;

function qGetPrefix(id) { 
  x=document.getElementById(id); return x;
}

function qTimeout(hideTimeout, layerTarget) { 
  lt = layerTarget;
  qTimer = setTimeout("qHideLayers(lt)", hideTimeout);

}

function qMouseOver(target1, target2) {
  if (qTimer) {qHideLayers(lt)};
  qResetTimeout();

  if (target1) qShowLayers(target1);
  if (target2) qShowLayers(target2);

}

function qMouseOut(target1, target2) {
  qTimeout(ms, target1);
  if (target2) qHideLayers(target2);
}


function qShowLayers(layerTarget) {
  obj=qGetPrefix(layerTarget);
  if (obj.style) {obj.style.visibility = 'visible';}
    
}

function qHideLayers(hideTarget) {
  obj=qGetPrefix(hideTarget);
  if (obj.style) {obj.style.visibility = 'hidden';}
    
}

function qResetTimeout() { 
	if (qTimer) {clearTimeout(qTimer);
	qTimer = null;}
}





