var playerAdTextStr = '' ;
/**/
/*
playerAdTextStr = '<li><a href="http://adultfriendfinder.com/search/g1095096?18PG=1&ip=auto&race=4&show_city=1" target="_blank"><u>Find Sexiest Women, Men And Couples</u></a></li><li><a href="http://www.hornymatches.com/dating/visit.php?campaign_id=20874" target="_blank"><u>Meet The Hottest Blondes ! </u></a></li><li><a href="http://www.livejasmin.com/freechat.php?psid=pornlee&pstour=t3&psprogram=REVS&performerid=Xena4U&gopage=bio&pstool=35_1" target="_blank"><u>The Sexiest Women Are Waiting !</u></a></li>' ;
*/
playerAdTextStr = '<li><a href="http://adultfriendfinder.com/search/g1095096-pctsubdhtxt?18PG=1&ip=auto&race=4&show_city=1" target="_blank"><u>Find Sexiest Women, Men And Couples</u></a></li><li><a href="http://adultfriendfinder.com/search/g1095096-pctsubdhtxt?18PG=1&ip=auto&race=4&show_city=1" target="_blank"><u>Meet The Hottest Blondes ! </u></a></li>' ;
/**/
new Element('ul' , {'class':'stepBao'}).setHTML(playerAdTextStr).injectInside($('playerAdText')) ;
window.addEvent('load' , function() { new MaqueeVertical($E('#playerAdText ul') , 24 , {duration:1000 , delay:6000}).loop()} ) ;

var MaqueeVertical = new Class({

    options: {
        duration: 500,
        delay: 3000
    },

    initialize: function(ele, height, options) {
        this.setOptions(options);
        this.ele = $(ele);
        this.height = height;
        this.fx = this.ele.effect('marginTop', { duration: this.options.duration });
        this.maxHeight = this.ele.offsetHeight;
    },

    loop: function() {
        this.scroll.periodical(this.options.delay, this);
    },

    scroll: function() {
        var top = parseInt(this.ele.getStyle('marginTop')) - this.height;
        if (top <= -this.maxHeight) {
            this.ele.style.marginTop = this.height + 'px';
            top = 0;
        }
        this.fx.start(top);
    }
})
MaqueeVertical.implement(new Events, new Options);

