/**
 * rokSifr - A multicolor-sifr helper that let the first word be colored.
 * 
 * @version		1.5
 * 
 * @license		MIT-style license
 * @author		Djamil Legato <djamil [at] djamil.it>
 * @copyright	Author
 */
  var RokSifr = new Class({options : {selector : "h3", movie : "js/gsl.swf", color : "#444444", firstword : "#FF9900", sifr : {}}, initialize : (function (a)
{
  this.setOptions(a);
  return this;
}
), build : (function ()
{
  var a = this;
  var b = $merge({sSelector : a.options.selector, sFlashSrc : a.options.movie, sColor : a.options.color, sSpanColor : a.options.firstword}, this.options.sifr);
  sIFR.replaceElement(named(b));
  return this;
}
)});
  RokSifr.implement(new Options());
  var RokStart = (function (d,e,f,g)
{
  d.length.times((function (i)
{
  var a = "." + d[i] + " " + e;
  if (! $E(a))
    return ;
  expcolorspan(d, e, g);
  var b = $merge({selector : a, movie : f, color : $E(a).getStyle("color"), firstword : $E(a + " span").getStyle("color"), sifr : {sLinkColor : "", sBgColor : $E(a).getStyle("backgroundColor"), sHoverColor : c || ""}}, g);
  var c = $$(a + " a").getStyle("color");
  rok = new RokSifr(b).build();
}
));
}
);
  var expcolorspan = (function (e,f,g)
{
  e.length.times((function (i)
{
  var d = "." + e[i] + " " + f;
  $$(d).each((function (a)
{
  a.setStyle("visibility", "visible");
  var b = a.getText(), temp = b.split(" ");
  first = temp[0], rest = temp.slice(1).join(" "), html = a.innerHTML;
  var c = "<span>" + first + "</span> " + rest;
  a.setHTML(html.replace(b, c, "g"));
}
));
}
));
}
);
