// Location of this script:
// http://www.qiksearch.com/javascripts/
//     blinking_text20.htm
//*********************************************
//* Blinking Text 2.0 *
//* Blinks a text *
//* v 2.0 works on IE/NS4/NS6 *
//* Modified 07 May 2002 *
//* (c) Premshree Pillai, *
//* http://www.qiksearch.com *
//* E-mail : premshree@hotmail.com*
//* Use the script freely as long as this *
//* message is intact *
//*********************************************
window.onerror = null;
var IE4 = document.all && navigator.userAgent.indexOf("Opera") == -1;
var NS4 = document.layers;
var NS6 = document.getElementById && navigator.userAgent.indexOf("Opera") == -1;
var blink_speed = 500;
// Delay in milliseconds
var i = 0;
// The Distance of text from left

if (IE4)


{
  layerRef = "document.all";
  styleSwitch = ".style";
}

//BLINKING
function Blink(layerName)


{
  if (IE4)


  {
    if (i % 2 == 0)


    {
      eval(layerRef + '["' + layerName + '"]' +
           styleSwitch + '.visibility="visible"');
    }

    else


    {
      eval(layerRef + '["' + layerName + '"]' +
           styleSwitch + '.visibility="hidden"');
    }

  }


  if (NS6 && (navigator.appName != "Microsoft Internet Explorer"))


  {
    if (i % 2 == 0)


    {
      eval('document.getElementById("' + layerName + '").style.display=""');
    }

    else


    {
      eval('document.getElementById("' + layerName + '").style.display="none"');
    }

  }

  if (i < 1)


  {
    i++;
  }

  else


  {
    i--
  }

  setTimeout("Blink('" + layerName + "')", blink_speed);
}


function writeBlinkingText(pTextHTML, pLeftPos) {
  if (IE4 || NS6)


  {
    if (IE4)


    {
      dispIENS = "visibility:hidden;";
    }

    else


    {
      dispIENS = "display:none;";
    }

    document.write('<div id="qiksearch" style="position:absolute; left:' + pLeftPos + ';' + dispIENS + '">'+pTextHTML+'</div>');
    Blink('qiksearch');
  }

  if (NS4)


  {
    document.write('<blink>'+pTextHTML+'</blink>');
  }

}

