
                ////////////////////////////////////////////////////////////////////
                //
                //  V I S I T O R  R E V I E W | widget implementation example
                //  bugs: nick@digitalvisitor.co.uk | +44 (0) 1179 055 195
                //
                ////////////////////////////////////////////////////////////////////

                window.onload = function(){

                    __vr.load({

                        key: '97e8a174-9e7f-11e0-828c-4040b2058987-l205cc246',
                        oauth: true,
                        onReady: function(){
                            __vr.widgets.state({
                                tagText: 'travel<em>designers</em>'
                            });

                            __vr.widgets.buttons({
                                className: 'buttons',
                                labels: {
                                    like: 'Like',
                                    review: 'Add a Review',
                                    discuss: 'Discuss',
                                    watch: 'Keep Me Updated'
                                },

                                style: {
                                    like: {
                                        height: '30px',
                                        width: '75px',
                                        css: 'body { background: url(http://adon.visitorreview.org/cdn/images/icons/heart_stroke_24x21.png) no-repeat left #941b7c; font-family: arial; no-repeat left; font-size: 12px; color: white; font-weight: bold; }.on{background: transparent url(http://adon.visitorreview.org/cdn/images/icons/unheart_stroke_24x21.png) no-repeat left}'
                                    },
                                    watch: {
                                        height: '30px',
                                        width: '160px',
                                        css: 'body { background: url(http://adon.visitorreview.org/cdn/images/icons/rss_24x24.png) no-repeat left #941b7c; font-family: arial; font-size: 12px; color: white; font-weight: bold;}.on{background: transparent url(http://adon.visitorreview.org/cdn/images/icons/unrss_24x24.png) no-repeat left}.on{color: #CCCCCC;}'
                                    }

                                }
                            });
                            
                            __vr.widgets.feed({
                                className: 'feed',
                                labels: {
                                    all: 'Reviews & Discussions',
                                    discussions: 'Discussions',
                                    reviews: 'Reviews'
                                }
                            });

                            __vr.widgets.average({ className: 'averageRating' });

                        }

                    });

                 }

