window.addEvent('domready', function(e) {
        var tips_mp = new Tips($$('span a.alist'), {
                className: 'mp',
                beforeText: '<img alt="" src="/southern-colorado/images/memberpages/bbbmember.gif" style="float: left; margin-right: 5px; padding-top: 3px; margin-bottom: 10px;" />See what BBB has to say about <br /><b>',
                afterText: '</b>'
        });

        $$('p.pao a').each( function( fullad, i ) {

                fullad.addEvent('mouseenter', function(e) {
                        var coords = fullad.getCoordinates();
	                        var ad = new Element( 'div', { 'class': 'fullad' } ).setHTML( this.lang.replace("::","") ).setStyles({
	                                'margin-left': 'auto',
	                                'margin-right': 'auto',
	                                'text-align': 'center'
	                        }).injectInside( new Element( 'div', { 'id': 'ad_contain' } ).setStyles({
	                                'position': 'absolute',
	                                'width': 800,
	                                'left': Math.round( ( ( window.getScrollWidth()-parseFloat( 800 ) ) / 2 ), 1 ),
	                                'top': parseFloat(coords['top'])-100
	                        }).inject( document.body ) );
	                

                        logstat( fullad.name );

                        $$('div.fullad img').addEvent('mouseleave', function(e) {
                                this.remove();
                                $('ad_contain').remove();
                        });
                        /*
                        clear = function() {
                                if( $('ad_contain') ) {
                                        ad.remove();
                                        $('ad_contain').remove();
                                }
                        }.delay(6000);
                        */
                });
        });

        /*
        var tips_pao = new Tips($$('p.pao a'), {
                className: 'pao',
                hideDelay: 1000,
                custom: true
        });
        */

});
