function SearchFocus(obj)
{
  if (obj.value == obj.defaultValue)
  {
    obj.value = '';
    obj.className = 'txt1';
    obj.onblur = function() {SearchBlur(obj);};
  };
};

function SearchBlur(obj)
{
  if (obj.value == '')
  {
    obj.value = obj.defaultValue;
    obj.className = 'txt0';
  };
};

var mmCNwas='';
function MMover(obj)
{
  obj.onmouseout = function() {MMout(obj);}
  mmCNwas = obj.className;
  obj.className = mmCNwas+' itemO';
}

function MMout(obj)
{
  obj.className = mmCNwas;
}

function ShowQLinks(obj)
{
  var div = document.getElementById('qLinks');
  div.style.display = 'inline';
  var width = div.offsetWidth;
  div.style.display = 'none';
  
  var objWidth = obj.offsetWidth;
  if (width < objWidth) width = objWidth;
    
  var param = new Array();
  var objPos = GetBodyOffset(obj);
  param['top'] = objPos[0] + obj.offsetHeight;
  var corrector = 2;
  if (IsIE()) corrector = -21 ;//- from margin by IE =(
  param['right'] = document.body.offsetWidth-objPos[1]+(width - objWidth)+corrector; 
  
  
  ShowWindow(div, '', 1, width, param);
}


window.onresize = function() {CloseWindow('qLinks');} 