// The actText function (object) switches color of the text when a
// MouseOver event occurs. The pressing calls the certain link or action.
// Supported by all browsers. Really switches color for Internet Explorer 4.0+
// only.
// Copyright (c) 1999-2000 Slava Guzenko (Slava@soon.com)

function _over() {eval(this.overS);}
function _out() {eval(this.outS);}

function actText(name, text, baseColor, overColor, face, size, link, target, status, onClick, onOver, onOut)
{
  var targetS = (target=="")?(""):(" target='"+target+"'");
  var linkS = (link=="")?("'javascript:;'"):("'"+link+"'"+targetS);
  var clickS = (onClick=="" || onClick==null)?(""):(" onClick='"+onClick+";'");
  this.overS = (onOver=="" || onOver==null)?(""):(onOver+";");
  this.outS = (onOut=="" || onOut==null)?(""):(onOut+";");
  if (document.all && overColor != "") {
    this.overS += "self.event.toElement.style.color=\""+overColor+"\";";
    this.outS += "self.event.fromElement.style.color=\"\";";
  }
  this.overS += (status=="")?(""):("self.status=unescape(\""+escape(status)+"\");");
  this.outS += (status=="")?(""):("self.status=\"\";");
  var mouseS = (this.overS=="")?(""):(" onmouseover='"+this.overS+"return true;'");
  mouseS += (this.outS=="")?(""):(" onmouseout='"+this.outS+"return true;'");
  var colorS = (baseColor=="")?(""):(" color='"+baseColor+"'");
  var faceS = (face=="")?(""):(" face='"+face+"'");
  var sizeS = (size=="")?(""):(" size='"+size+"'");
  var textS = (colorS=="" && faceS=="" && sizeS=="")?(text):("<FONT"+sizeS+colorS+faceS+">"+text+"</FONT>");
  this.src = "<A href="+linkS+clickS+mouseS+"><SPAN id='"+name+"'>"+textS+"</SPAN></A>";
  this.over = _over;
  this.out = _out;
  return this.src;
}

