
  /* 

     default.js v1.1
     Copyright (C) 1998-2008 DYNAMIC+. All rights reserved.

  */


  function InfoBar( )
  {
    if ( arguments.length < 1 || (!document.getElementById && !document.all) )
      return false;


    var curInfoBar  = arguments[ Math.floor( Math.random( ) * arguments.length ) ];

    if ( typeof( curInfoBar ) != typeof( new Array() ) || curInfoBar.length < 8 )
      return false;


    var outInfoBar  = '';

    outInfoBar += '<div id="infobar" ';
    outInfoBar += 'onselectstart="return false;" ';
    outInfoBar += 'ondragstart="return false;" ';
    outInfoBar += 'oncontextmenu="return false;" ';
    outInfoBar += curInfoBar[4] ? 'title="' + curInfoBar[4] + '" ' : '';

    outInfoBar += 'onclick="' + ( !curInfoBar[7] ? 'this.style.display = \'none\'; ' : '' ) + ( curInfoBar[1] ? curInfoBar[1] : '' ) + '" ';
    outInfoBar += 'onmouseover="this.style.backgroundColor = \'#b2b4bf\'; ' + ( curInfoBar[5] ? 'window.status = \'' + curInfoBar[5] + '\';' : '' ) + '" ';
    outInfoBar += 'onmouseout="this.style.backgroundColor = \'#ffffe1\'; ' + ( curInfoBar[5] ? 'window.status = \'\';' : '' ) + '" ';

    outInfoBar += 'style="position: absolute; left: 0px; top: 0px; z-index: 1000; height: 21px; width: 100%; overflow: hidden; white-space: none; display: none; ';
    outInfoBar += 'filter:alpha(opacity=75); -moz-opacity: 0.75; opacity: 0.75; ';
    outInfoBar += curInfoBar[2] ? 'background-repeat: no-repeat; background-position: 6px 2px; background-image: url( \'' + curInfoBar[2] + '\' );' : '';
    outInfoBar += 'border-bottom: 1px solid #66667e; background-color: #ffffe1; color: #000000; font-family: tahoma, verdana, arial, sans-serif; font-size: 8pt; cursor: default;">';

    outInfoBar += '<span style="height: 15px; overflow: hidden; white-space: nowrap; margin: 3px 6px 3px ' + ( curInfoBar[3] ? '28' : '6' ) + 'px; float: left;">';
    outInfoBar += ( curInfoBar[0] ? curInfoBar[0] : '' ) + '</span>';
    outInfoBar += '<span style="height: 15px; overflow: hidden; white-space: nowrap; margin: 3px 6px 3px 0px; color: #e1e1e1; float:right;">DYNAMIC+</span>';
    outInfoBar += '</div>';

    outInfoBar += curInfoBar[3] ? '<bgsound src="' + curInfoBar[3] + '" loop="1" volume="0" />' : '';

    document.write( outInfoBar );


    window.oldonscroll = window.onscroll;
    window.oldonresize = window.onresize;
    window.oldonload   = window.onload;


    window.updateInfoBar = function( )
    {
      if ( document.getElementById )
      {
        document.getElementById( 'infobar' ).style.width = ( window.innerWidth ? window.innerWidth-16 : ( document.compatMode && document.compatMode != 'BackCompat' ? document.documentElement.clientWidth : document.body.clientWidth ) ) + 'px';
        document.getElementById( 'infobar' ).style.left  = ( window.pageXOffset ? window.pageXOffset : ( document.compatMode && document.compatMode != 'BackCompat' ? document.documentElement.scrollLeft : document.body.scrollLeft ) ) + 'px';
        document.getElementById( 'infobar' ).style.top   = ( window.pageYOffset ? window.pageYOffset : ( document.compatMode && document.compatMode != 'BackCompat' ? document.documentElement.scrollTop : document.body.scrollTop ) ) + 'px';
      }

      else if ( document.all )
      {
        document.all[ 'infobar' ].style.width = ( document.compatMode && document.compatMode != 'BackCompat' ? document.documentElement.clientWidth : document.body.clientWidth ) + 'px';
        document.all[ 'infobar' ].style.left  = ( document.compatMode && document.compatMode != 'BackCompat' ? document.documentElement.scrollLeft : document.body.scrollLeft ) + 'px';
        document.all[ 'infobar' ].style.top   = ( document.compatMode && document.compatMode != 'BackCompat' ? document.documentElement.scrollTop : document.body.scrollTop ) + 'px';
      }
    }

    window.onscroll = function( )
    {
      if ( window.oldonscroll )
        window.oldonscroll( );

      window.updateInfoBar( );
    }

    window.onresize = function( )
    {
      if ( window.oldonresize )
        window.oldonresize( );

      window.updateInfoBar( );
    }

    window.onload   = function( )
    {
      if ( window.oldonload )
        window.oldonload( );

      window.updateInfoBar( );

      if ( document.getElementById )
        document.getElementById( 'infobar' ).style.display = 'block';

      else if ( document.all )
        document.all[ 'infobar' ].style.display = 'block';


      setTimeout( function( )
      {

        if ( (document.getElementById && document.getElementById( 'infobar' ).style.display != 'none') || (document.all && document.all[ 'infobar' ].style.display != 'none') )
        {
          window.updateInfoBar( );
          setTimeout( arguments.callee, 100 );
        }

      }, 100 );
    }



    if ( curInfoBar[6] && !isNaN( curInfoBar[6] ) && curInfoBar[6] > 0 )
    {
      setTimeout( function( )
      {
        if ( document.getElementById )
          document.getElementById( 'infobar' ).style.display = 'none';

        else if ( document.all )
          document.all[ 'infobar' ].style.display = 'none';

      }, curInfoBar[6] );
    }


    return true;
  }




  
  if ( Math.floor(Math.random()*3) == 0 ) InfoBar
  (
    new Array
    ( 
      'Invia <b>tutti gli SMS Gratis che vuoi</b> solo su <b>www.infinitysms.com</b>: non lasciarti scappare questa occasione.',
      null,
      'scripts/infobar/pin.gif',
      'scripts/infobar/infobar.wav',
      null,
      null,
      10 * 1000,
      false
    ),

    new Array
    ( 
      'Ti piace questo servizio web? Fai <b>conoscere</b> questo sito ad <b>amici</b> e <b>conoscenti</b>: così facendo ci aiuterai a crescere.',
      null,
      'scripts/infobar/alert.gif',
      'scripts/infobar/infobar.wav',
      null,
      null,
      10 * 1000,
      false
    ),

    new Array
    ( 
      'Cogli l\'attimo: usa questi SMS con la tua ragazza o i tuoi amici. <b>Non sprecarli per l\'autoricarica</b>: è davvero un peccato!',
      null,
      'scripts/infobar/bulb.gif',
      'scripts/infobar/infobar.wav',
      null,
      null,
      10 * 1000,
      false
    ),

    new Array
    ( 
      '<b>Novità</b>: da oggi puoi spedire fino a <b>5 SMS al giorno</b> verso lo stesso destinatario. Che aspetti? Tutti gli SMS inviati sono <b>gratis</b>.',
      null,
      'scripts/infobar/pin.gif',
      'scripts/infobar/infobar.wav',
      null,
      null,
      10 * 1000,
      false
    )
  );
