function VideoListPlayerWidget() {
    this.referer = window.location.toString();
    this.referer.replace(/\?.*$/,'');
    this.genre_name = '';
    this.rating_system_id = '';
    this.rating_group_id = '';
    this.media_id = '';
    this.play_url = '';
    this.hide_digg = '0';
    this.hide_full = '0';
    this.hide_post = '0';
    this.hide_send = '0';
    this.scope_by_genre = '0';
    this.exclude_genres = '';
    this.show_featured = '0';
    this.defaultStyles = 'padding:0; margin:0;';
    this.styles = 'border: 1px solid #666;';
    this.movieWidth = '320';
    this.movieHeight = '263';
    this.width = 320;
    this.height = 515;
    this.ad_url = '';
    this.pre_roll = '';
    this.script1 = '';
    this.script2 = '';
    this.alltime = '1';

    this.extra_ops = 'frameborder=0';
    this.stylesheet = ''; // Full URL to stylesheet to use.
    this.drawWidget = function() {
        var rand = Math.round(1000*Math.random());
        var url = 'http://cachedapi.vmixcore.com/widgets/video_list_player.php?' + 
                '&play_url='    + escape(this.play_url) +
                '&genre_name='  + escape(this.genre_name) +
                '&media_id='    + escape(this.media_id) +
                '&hide_digg='   + escape(this.hide_digg) +
                '&hide_full='   + escape(this.hide_full) +
                '&hide_post='   + escape(this.hide_post) +
                '&hide_send='   + escape(this.hide_send) +
                '&scope_by_genre=' + escape(this.scope_by_genre) +
                '&exclude_genres=' + escape(this.exclude_genres) +
                '&show_featured='  + escape(this.show_featured) + 
                '&height='      + escape(this.height) +
                '&width='       + escape(this.width) +
                '&movieHeight=' + escape(this.movieHeight) +
                '&movieWidth='  + escape(this.movieWidth) +
                '&script1='      + escape(this.script1) +
                '&script2='      + escape(this.script2) +
                '&token=117aa635c9a763ee809d7f4d21ab3a05' +
                '&referer=' + escape(this.referer) + 
                '&stylesheet=' + escape(this.stylesheet) +
                '&ad_url=' + escape(this.ad_url) +
                '&pre_roll=' + escape(this.pre_roll) +
                '&alltime=' + escape(this.alltime);
        document.write('<iframe width=' + this.width + ' src="about:blank" height="' + this.height + '" style="' + this.defaultStyles + this.styles + '" ' + this.extra_ops + ' id="VmixListIframe' + rand + '"></iframe>');
        document.getElementById('VmixListIframe' + rand).src = url;
    }
}
