    $(function() {

        var ANVIL = {
            setup : function() {
                if(typeof initialize == 'function') {
                    initialize();
                }
                $('body').unload( function() {
                    if(typeof GUnload == 'function') {
                        GUnload();
                    }
                } );

                var imgs = $('#banner_img img');
                if (1 < imgs.length) {
                    var idx = Math.round(Math.random() * (imgs.length-1));
                    $('#banner_img img:not(:eq('+idx+'))').hide();
                    setTimeout(function() { ANVIL.slide(imgs, idx, 6000); }, 4500);
                }

            } ,

            slide : function(imgs, idx, timeout) {
                $(imgs.get(idx)).fadeOut(1500);
                idx++;
                if (!(idx < imgs.length)) {
                    idx = 0;
                }
                setTimeout(function() { $(imgs.get(idx)).fadeIn(1500); }, 1500);
                setTimeout(function() { ANVIL.slide(imgs, idx, timeout); }, timeout);
            }
        }

        ANVIL.setup();

    });



