/*===========================================================================*
 * INIT FUNCTIONS                                                            *
 *                                                                           *
 * By Ednardo Lobo <ednardo@pontolucro.com.br>                               *
 *                                                                           *
 * Create: 18/05/2006 18:45                                                  *
 * Change: __/__/____ __:__ (#0)                                             *
 *===========================================================================*/

/*---------------------------------------------------------------------------*
 * Init                                                                      *
 *---------------------------------------------------------------------------*/
function ini(e) {
    if (getId(document.location) == '100') {
        scroll('marquee','slide');
    }

//  menu('nav');
}

/*---------------------------------------------------------------------------*
 * getSrc                                                                    *
 *---------------------------------------------------------------------------*/
function getSrc(e) {
    var src;
    
    if (typeof(e) == 'undefined') {
        e = window.event;
    }

    src = e.target ? e.target : e.srcElement;

    return src;
}

/*---------------------------------------------------------------------------*
 * getId                                                                     *
 *---------------------------------------------------------------------------*/
function getId(href) {
    var re = /g_id=(\d+)/;

    var reArray = re.exec(href);

    if (reArray) {
        return reArray[1];
    }
    else {
        return '100';
    }
}

/*---------------------------------------------------------------------------*
 * Load Javascript                                                           *
 *---------------------------------------------------------------------------*/
window.onload = ini;
