function showBanner() {
  var code = '<div id="overlay"><a href="#" style="position: absolute; margin-left: 490px; width: 50px; height: 20px; margin-top: 20px; z-index: 10005;" onclick="closeBanner();">&nbsp;</a><img src="/images/activia/banner.gif" alt="ACTIVIA" /></div>';
  jQuery("body").append(code);
}
function closeBanner() {
  jQuery("#overlay").fadeOut();
  setTimeout(function(){jQuery("#overlay").remove();},1000);
}

function vIE(){return (navigator.appName=='Microsoft Internet Explorer')?parseFloat((new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})")).exec(navigator.userAgent)[1]):-1;}

jQuery(document).ready(function(){
    jQuery(".inputs input").keyup(function(event){
    if ((event.keyCode >= 48
    && event.keyCode <= 90)
    || (event.keyCode >= 96
    && event.keyCode <= 105)) {
      if(jQuery(this).next().length > 0)
        jQuery(this).next().select();  
    } else if(event.keyCode == 37) {
      //left
      if(jQuery(this).prev().length > 0)
        jQuery(this).prev().select();
    } else if(event.keyCode == 39) {
      //right
      if(jQuery(this).next().length > 0)
        jQuery(this).next().select();
    }
  });

  if(vIE() < 0 || vIE() > 6) {
    setTimeout(function(){
      FLIR.init( { path: "/flir/" } );
      FLIR.replace( "p.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "h2.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "h3.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "span.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "div.goobascript a", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "div.goobascript p", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "a.helveticaneuel", new FLIRStyle({ cFont:"helveticaneuel" }) )
      FLIR.replace( "button.helveticaneuel", new FLIRStyle({ cFont:"helveticaneuel" }) );
    },100);
  };
});
/*
jQuery(document).ready(function(){
  setTimeout(function(){
    alert(flir_enable);
    if(flir_enable) {
      alert("init");
      FLIR.init( { path: "/flir/" } );
      FLIR.replace( "p.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "h2.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "h3.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "span.goobascript", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "div.goobascript a", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "div.goobascript p", new FLIRStyle({ cFont:"goobascript" }) )
      FLIR.replace( "a.helveticaneuel", new FLIRStyle({ cFont:"helveticaneuel" }) )
      FLIR.replace( "button.helveticaneuel", new FLIRStyle({ cFont:"helveticaneuel" }) );
    };
  },100);
});
*/
//setTimeout(function(){showBanner();},2000);