PageSourceSearch

https://mybooks.com/

html mybooks.com collected 2026-10-07 19:58:20 UTC 175,692 bytes, 4,554 lines download raw bytes

1    		
2		
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4<html xmlns="http://w3.org/1999/xhtml" xml:lang="en" lang="en">
5<head>
5<script type="text/javascript" src="//ecdn2.wn.com/vp/m/ae/f10fd2cbad84386e125817a309cd00.js"></script>
5<link type="text/css" rel="stylesheet" href="//ecdn1.wn.com/vp/m/9e/561e4cc9554755b1f21853e2be9e47.css">
6
7    <meta http-equiv="X-UA-Compatible" content="IE=Edge" />
8    <meta name="referrer" content="no-referrer-when-downgrade">
9    <title>My Books</title>
10		
11    <meta name="keywords" content="My books, WorldNews, World News, My books Breaking News, Video, Videos and Editable pages for News,  Sign up and share your playlists, headlines, WN Archive, WN Network, Newspaper, Investigative journalism, journalist, media, My books Global News, Archives, Business, Politics, Sports, Music, Entertainment, Film, Photos, International Headlines, Radio Sport, Live Sport, fm Radio Worldwide, WN, Current Events, Industry, Finance, Economy, Markets, Money, Oil, Energy, Shipping, Offshore, Broadcasts, Audio, Global Issues, Farming, Health, Knowledge, Cities, Technology, Languages, Environment, War, Reports, Geography, Breaking Headlines, Archive" />
12
13    <meta name="description" content="My books on WN Network delivers the latest Videos and Editable pages for News &amp; Events, including Entertainment, Music, Sports, Science and more, Sign up and share your playlists." />
14
15
16    <link href="http://mybooks.com/" rel="canonical">
17    <link href="//ecdn0.wn.com/st/favicon-20131209.ico" type="image/x-icon" rel="icon">
18
19
20
21    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
22    <meta http-equiv="Content-Language" content="en" />
23    <meta http-equiv="Pragma" content="no-cache" />
24    <meta http-equiv="Cache-Control" content="no-cache" />
25    <meta http-equiv="Expires" content="0" />
26		
27		
28			
29    
29<script type="text/javascript">window.google_analytics_uacct = "UA-1177289-31";</script>
29
30    
30<script type="text/javascript">var quantcast_label = 'anything';</script>
30
31		
32
33		
33<script>
34    if(document.location.hostname.match(/\.forsearch\.net/)){ document.location='https://wn.com'+document.location.pathname; }
35    </script>
35
36	
37		
38    
38<script nopack="1">
39            window.basepath = '/My_books';
40    		
41        	if(navigator.userAgent.match(/\b(iPhone|iphone|iPad|ipad|Android|IEMobile|PlayBook|BB9|BB10|Mobile Safari)\b/)){
42        window.location = 'https://wn.com/mobile'+basepath; }
43		</script>
43
44		
45
46   	<meta name="viewport" content="width=device-width, initial-scale = 1.0, maximum-scale=1.0, user-scalable=no" />
47		<link nopack="1" href="//ecdn2.wn.com/or/assets/assets/avp/css/font-awesome.min.css" rel="stylesheet">
48		
49
50    
51
52    
52<script type="text/javascript"></script>
52
53    
53<script type="text/javascript"></script>
53
54		
55		
56    
56<script>
57    var isTouchSupported = 'ontouchstart' in window || window.DocumentTouch && document instanceof DocumentTouch;
58    if(isTouchSupported){
59        document.write('
59<script src="//ecdn7.wn.com/or/assets/js/jquery.touchtoclick.js"></scr'+'ipt>');
60    }
61    </script>
61
62
63
64    
64<script type="text/javascript">
65        if (!String.prototype.trim) {
66          String.prototype.trim = function () {
67            return this.replace(/^\s+|\s+$/g, '');
68          };
69        }
70        if(!window.videoplayers){
71            window.videoplayers = [];
72        }
73    if(window.console && console.log){
74        clog = console.log.bind(console);
75    }else{
76        function clog(info){}
77    }
78    function ensure(fn) {
79        return fn;
80        return function() {
81            try {
82                return(fn.apply(this, arguments));
83            } catch(e) {
84                if(window.console && console.error) console.error("Reporting: "+e);
85                Raven.captureException(e);
86                // throw e;
87            }
88        };
89    }
90
91    $ensure = function(f){
92        return jQuery(ensure(f));
93    };
94    </script>
94
95    
95<script nopack="1" type="text/javascript"><!--
96        function isAscii(x){
97            return x.match(/^[\t\n\r\ \!\"#$\%\&\'\(\)\*\+\,\.\/0123456789\:\;\=\?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\\_\`abcdefghijklmnopqrstuvwxyz\|\~\ \ü]+$/);
98        }
99
100        translateHeadings = true;
101        function checkLanguage(){
102            if(jQuery('#id_language').val() == 'en'){
103                translateHeadings = true;
104            }else{
105                translateHeadings = false;
106            }
107        }
108    // -->
109    </script>
109
110
111    
111<script type="text/javascript"></script>
111
112
113    
113<script type="text/javascript"></script>
113
114    
114<script type="text/javascript"></script>
114
115    
115<script type="text/javascript"></script>
115
116    
116<script type="text/javascript"></script>
116
117
118
119    
119<script>$.fn.cluetip = function(){};</script>
119
120    
120<script type="text/javascript"></script>
120
121    
121<script type="text/javascript"></script>
121
122    
122<script type="text/javascript">if(document.location.hostname.match('(^|\.)wn\.com$')){ jQuery.cookies.setOptions({domain:'.wn.com'}); }</script>
122
123
124    
124<script type="text/javascript"></script>
124
125    
125<script type="text/javascript"></script>
125
126    
126<script type="text/javascript"></script>
126
127
128    
128<script type="text/javascript">
129        window.updateHeight = ensure(function(content_div){
130            var active_id = content_div;
131            if(!jQuery('li.current a').length) return;
132            if(!content_div){
133                active_id = jQuery('li.current a').get(-1).id;
134            }
135            jQuery('#tabcontainer').height(jQuery('#tabcontainer '+active_id).height());
136        });
137
138    </script>
138
139
140
141    
141<script type="text/javascript"></script>
141
142    
142<script type="text/javascript"></script>
142
143    
143<script type="text/javascript"></script>
143
144
145
146
147
148
149     <!-- iframe popups -->
150    
150<script type="text/javascript"></script>
150
151    
151<script type="text/javascript">IEDITOR_CLOSE = "//ecdn4.wn.com/or/ula/ewn/closebox.png"</script>
151
152    
152<script type="text/javascript"></script>
152
153
154    
154<script type="text/javascript"></script>
154
155
156    
156<script type="text/javascript"></script>
156
157
158
159		
160
161    
161<script nopack="1" src="//ecdn5.wn.com/or/js/videoplayer-20181002-4.min.js" type="text/javascript"></script>
161
162
163    
163<script type="text/javascript"></script>
163
164    
164<script type="text/javascript"></script>
164
165
166    
166<script type="text/javascript"></script>
166
167    
167<script type="text/javascript"></script>
167
168
169		
170    
170<script type="text/javascript">
171    function load_wiki(el, cb) {
172        var el = $(el).closest('.wiki-page').find('.wikiparser');
173        var query = el.data('title');
174        var main = el.data('main');
175        var custom = el.data('custom');
176        var onSuccess = function(){
177            wikisnippet.hide();
178            updateHeight();
179            if(cb) cb();
180        };
181        if(custom) {
182            onSuccess();
183        }else{
184            var wikisnippet = el.find('.wikisnippet');
185            el.find('.wikipage a').html('Loading... please wait...');
186            $.ajax({
187                url: '/api/upge/cheetah-photo-search/wiki_page_test?main='+main+'&query='+escape(query),
188                dataType: 'html',
189                success: function(r){
190                    if(!r.match(/<h1/)){
191                        clog("No content for wiki query: "+query);
192                        el.find('.wikipage a').html('');
193                    }else{
194                        el.closest('div').html(r);
195                        onSuccess();
196                    }
197                },
198                error: function(){
199                    el.find('.wikipage a').html('')
200                }
201            });
202        }
203        return false;
204    }
205    </script>
205
206
207<script type="text/javascript">
208var detailsTemplate = _.template('<div class="video-desc draggable border_color font_color <%= info %>">' +
209    '<div class="video-remove" title="Click to remove from playlist"></div>' +
210    '<div class="content"><a class="playlistitem" id="<%= id %>_line" href="javascript:void(0);">'+
211    '<div class="video-thumb border_color bgr_color descriptions-tab-thumbnail gotop">'+
212    '<img class="video-thumbnail gotop playvideo1"  onClick="activateTab(\'playlist1\'); return false" width="300" height="225" alt="<%= title %>" src="<%= thumbnailUrl %>"></div></a>'+
213    '<div class="video-title" >'+
214    '<a class="playlistitem playvideo1 gotop"  onClick="activateTab(\'playlist1\'); return false" id="<%= id %>_more" href="javascript:void(0);"><%= title %></a></div>'+
215    '<ul><li><span data-trans="Order:">Order:</span> <input type="text" size="2" value="<%= order %>" class="details-manual-order" />'+
216    '<a href="javascript:void(0);" class="details-manual-order-confirm" style="display:none;" title="Move to new position" data-title="Move to new position"><span data-trans="Reorder">Reorder</span></a></li>'+
217    '<li><span data-trans="Duration:">Duration:</span> <span class="video-duration"><%= durationStr %></span></li>'+
218    '<li><span data-trans="Updated:">Updated:</span> <span class="video-uploaded"><%= updated %></span></li></ul>'+
219    '<div class="video-fulldescription"><%= tooltipContentBody %></div>' +
220    '<a class="video-wnlink" href="https://wn.com/<%= url %>" target="_blank" style="target-name: new; target-new: tab;">'+
221    'https://wn.com/<%= title %></a><br clear="left" /></div></div>'+
222    '<span class="description-content" style="display: none;">'+
223    '<div class="tooltip-content-body"><%= tooltipContentBody %></div></span>');
224var playlistItemTemplate = '<li class="playlistitemli thumbnail">' +
225    '<a class="playlistitem ellipsis" id="<%= id %>" href="javascript:void(0);">' +
226    '<div class="thumb"><div class="clip">' +
227    '<img width="110" height="82" alt="<%= title %>" src="<%= thumbnailUrl %>" />' +
228    '<div class="duration opacity"><%= durationStr %></div></div></div>' +
229    '<span class="video-title"><%= title %></span></a>' +
230    '<span class="playlistitemremove TTip"><span>remove from playlist</span><i class="fa fa-times" aria-hidden="true"></i></span>' +
231    '<a class="share-popup TTip" onclick="return share_popup(this, this.title)" href="javascript: void(0);" title="<%= title %>"><span>share this video</span><i class="fa fa-share" aria-hidden="true"></i></a>' +
232    '<div class="buttons"></div>'+
233    '<span class="description-content" style="display:none;"><%= tooltipContentBody %></span>' +
234    '</div></li>';
235
236
237var playlistItemTemplateFS = '<li class="playlistitemli list"><div class="item">' +
238'<a class="playlistitem ellipsis" id="<%= id %>"  href="javascript:void(0);"><span class="title"><%= title %></span><span class="dots">...</span>' +
239'<span class="playlistitemremove TTip" title="remove from playlist"></span>' +
240'<span class="duration"><%= durationStr %></span>' +
241'<span class="description-content" style="display:none;"><%= tooltipContentBody %></span>' +
242'</div></li>';
243var emptyItemMessage = '<span data-trans="Add any items to Create Playlist by dragging or using the \"Add\" Icon on each Video thumbnail or selecting more Videos from new Searches to build your Playlist">Add any items to Create Playlist by dragging or using the "Add" Icon on each Video thumbnail or selecting more Videos from new Searches to build your Playlist</span>';
244var emptyItemHtml = '<li class="empty">'+emptyItemMessage+'</li>';
245
246
247var playlistItemTemplate = '<li class="playlistitemli thumbnail"><a class="playlistitem" id="<%= id %>"><div class="thumb"><div class="clip"><div class="thumb_play"></div><img alt="<%= title %>" src="<%= thumbnailUrl %>" /><div class="duration opacity"><%= durationStr %></div></div></div><div class="video-title"><%= title %></div></a><span class="playlistitemremove TTip"><span>remove from playlist</span><i class="fa fa-trash" aria-hidden="true"></i></span><a class="share-popup TTip" title="<%= title %>" onclick="return share_popup(this, this.title)" href="javascript: void(0);"><span>share this video</span><i class="fa fa-share" aria-hidden="true"></i></a><div class="buttons"></div><span class="description-content" style="display:none;"><%= tooltipContentBody %></span></li>';
248
249
250
251var jsQuery = 'My books';
252var jsRelQuery = 'My books';
253var no_suitable_video = 'Could not find a suitable video for "%s" query';
254jQuery(function(){
255    window.no_suitable_video = i18n("Could not find a suitable video for \"%s\" query");
256});
257</script>
257
258
259<script type="text/javascript"><!--
260var remove_dynamic_playlist = ensure(function(num){
261    var target_li = $('#playlist_menu');
262    target_li.find('.remove-'+num).parent().remove();
263    var first_playlist = target_li.find('a').attr('id');
264    if(first_playlist){
265        $("#main-menu li[id='#playlist_menu'] a").attr('id', first_playlist);
266    }
267
268    var target_li = $('#details_menu');
269    target_li.find('.remove-'+num).parent().remove();
270    var first_details = target_li.find('a').attr('id');
271    if(first_details){
272        $("#main-menu li[id='#details_menu'] a").attr('id', first_details);
273    }
274    var target_pl = $('#tabcontainer');
275    target_pl.find('#playlist'+num).remove();
276    target_pl.find('#details'+num).remove();
277});
278
279var found_playlists = null;
280var longest_position = 0;
281var add_cached_videos = ensure(function(count){
282    if(!count) { count = 1; }
283    if(!found_playlists){ return; }
284    if(count>found_playlists.length){
285        count = found_playlists.length;
286    }
287    if(!found_playlists.length){
288        $('.add_youtube_playlist').hide();
289        // _add_dynamic_playlist(jsQuery, 'no more playlists');
290        return;
291    }
292    for(var i=0; i<+count; i++){
293        var p = found_playlists.splice(0, 1);
294        if(p.length){
295            p = p[0];
296            var activate = (i == count-1);
297            _add_dynamic_playlist('playlist:'+p.playlist_id, p.title, (i == count-1)? activate_playlist : function(){});
298        }
299    }
300});
301
302function activate_playlist(status, num){
303    if(status == 'loading'){
304        activateTab('playlist'+num);
305        $('#id_new_playlist').attr('value', '');
306    }
307}
308
309var show_loading = ensure(function(status){
310    if(status){
311        // add class "loading" to loading button
312    }else{
313        // remove class "loading" to loading button
314    }
315})
316
317var add_longest_videos = ensure(function(){
318    var q = jsQuery;
319    var num = ++longest_position;
320    _add_dynamic_playlist(q+' duration:longest', q + ' longest #'+num, activate_playlist, num*14);
321});
322
323var add_more_videos = ensure(function(count){
324    if(!count) { count = 1; }
325    if(found_playlists){
326        add_cached_videos(count);
327        $('.single-playlist-fullscreen').hide();
328    }else{
329        found_playlists = [];
330        show_loading(true);
331        $('.single-playlist-fullscreen').hide();
332        $.ajax({
333            url: 'https://wn.com/api/upge/edit/find_playlists',
334            data: {query: jsQuery},
335            dataType: 'jsonp',
336            success: ensure(function(response){
337                show_loading(false);
338                found_playlists = response['results'];
339                if(found_playlists){
340                    add_cached_videos(count);
341                }
342            }),
343            failure: ensure(function() {
344                show_loading(false);
345            })
346        });
347    }
348});
349
350var tab_num = null;
351
352var _add_playlist = ensure(function(loader, query, title, callback, offset, autostart){
353    if(!title){    
354        title = query;
355    }
356    show_loading(true);
357    if(!tab_num){
358        tab_num = $('#playlist_menu li').length;
359    }
360    $('#playlist_menu').show(); // in case there were zero videos
361    var num = ++tab_num;
362
363    //add videos
364    var target_li = $('#playlist_menu');
365    var code_li = _.template('<li><div id="v-remove-<%= num %>" class="remove remove-<%= num %> TTip"><span>remove the playlist</span><i class="fa fa-times"></i></div><a href="" id="#playlist<%= num %>" '+
366            'class="playlist-menu-<%= num %>"><%= title %></a>'+
367            '</li>');
368    target_li.append(code_li({num: num, title: title}));
369
370    var target_pl = $('#tabcontainer');
371    var code_pl = _.template('<div id="playlist<%= num %>" class="playlist-page" style="display: block; position: absolute; margin-left: -10000px; max-width: 9000px"></div>');
372    target_pl.append(code_pl({num: num}));
373
374    // add video details
375    var target_li = $('#details_menu');
376    var code_li = _.template('<li class=""><div id="d-remove-<%= num %>" class="remove remove-<%= num %>"></div><a href="" id="#details<%= num %>" '+
377            'class="details-menu-<%= num %>"><%= title %></a></li>');
378    target_li.append(code_li({num: num, title: title}));
379
380    var target_pl = $('#tabcontainer');
381    var code_pl = _.template('<div id="details<%= num %>" class="details-page" style="display: block; position: absolute; margin-left: -10000px; max-width: 9000px"></div>');
382    target_pl.append(code_pl({num: num}));
383
384    loader(num, query, title, callback, offset, autostart);
385
386    callback('loading', num);
387    $('.single-playlist-fullscreen').hide();
388
389    return false;
390});
391
392var _add_dynamic_playlist = ensure(function(query, title, callback, offset, autostart){
393  return _add_playlist(function(num, query, title, callback, offset, autostart){
394     $.ajax({
395        url: 'https://wn.com/api/upge/cheetah-photo-search/dynamic_playlist_v7',
396        data: {
397           language_id: '1',
398           vsid: num,
399           query: query,
400           offset: offset|0
401        },
402        dataType: 'jsonp',
403        success: ensure(function(response) {
404            $('#playlist'+num).html(response['videos']);
405            $('#details'+num).html(response['video_details']);
406            bind_videos(num, autostart);
407            bind_video_details(num);
408            $('#playlist'+num).css('display', 'block');
409            // $('.tabtrigger li a[id=#playlist'+num+']').first().click();
410            // activateTab('playlist'+num);
411            updateHeight();
412            show_loading(false);
413            callback('loaded', num);
414        }),
415        failure: ensure(function() {
416            show_loading(false);
417            callback('failed', num);
418        })
419    })}, query, title, callback, offset, autostart);
420});
421
422var add_dynamic_playlist = ensure(function(query, title){
423    _add_dynamic_playlist(query, title, activate_playlist);
424});
425
426var _video_importer = function(num, query, title, callback, offset, autostart){
427     $.ajax({
428        url: 'https://manage.wn.com/api/collect_videos',
429        data: {
430           urls: query.trim().replace(/\r*\n\r*/g,'|'),
431        },
432        dataType: 'jsonp',
433        success: ensure(function(response) {
434            $('#playlist'+num).html($('#playlist0').html().replace(/0"/g, num+'"'));
435            $('#details'+num).html($('#details0').html().replace(/0"/g, num+'"'));
436            bind_videos(num, autostart);
437            bind_video_details(num);
438            clog(response.results);
439            var vp = videoplayers[num];
440            var playlist = [];
441            _.each(response.results, function(el) {
442                var data = {
443                    source: 'youtube',
444                    video_id: el.youtube_video_id,
445                    author: el.author_name,
446                    duration: el.duration_seconds,
447                    title: el.title,
448                    published: new Date(el.published).toDateString(),
449                    updated: new Date(el.updated).toDateString(),
450                    video_views: el.view_count,
451                    thumbnailUrl: el.thumbnail_url.replace('/default.jpg', '/0.jpg'),
452                    tooltipContentBody: el.description,
453                    description: el.description,
454                };
455                playlist.push(data);
456            });
457            vp.setPlaylist(playlist);
458            vp.loadPlaylist(autostart);
459            $('#playlist'+num).css('display', 'block');
460            // $('.tabtrigger li a[id=#playlist'+num+']').first().click();
461            // activateTab('playlist'+num);
462            updateHeight();
463            show_loading(false);
464            callback('loaded', num);
465        }),
466        failure: ensure(function() {
467            show_loading(false);
468            callback('failed', num);
469        })
470    });
471}
472
473var import_videos = ensure(function(query){
474    return _add_playlist(_video_importer, query, 'Imported videos', activate_playlist, 0, true);
475});
476
477var do_import = ensure(function(el){
478    var query = $(el).parent().find('textarea').val();
479    $.unblockUI();
480    return import_videos(query);
481});
482
483
484var start_import = ensure(function(){
485    var w = $('body').width();
486    $.blockUI({
487        message: 'Enter keywords in the box below, one query per line; they could be names, places, phrases…whatever you are interested in, i.e. "funny cats" or "bicycle tricks".<br>' +
488                 'You can choose specific videos by using a colon: "Moscow helicopter views:1", or "Beethoven:1-9,12,14" to add first 9, 12th and 14th video for "Beethoven" query.<br>' +
489                 'You can also enter one or multiple WN or youtube URLs, with or without https://, i.e. https://youtu.be/i8c5JcnFaJ0 or wn.com/parrot_drone_fun/latest/3,1,2,4-10/<br>' +
490                 '<textarea style="width:99%; height: 80%"></textarea><br><input type="button" onclick="do_import(this);" value="Create your Wn Instant Playlist!">' +
491                 '<img class="ifr_close" title="Click here to cancel" src="//ecdn4.wn.com/or/ula/ewn/closebox.png" onclick="login_close()" />',
492        css: {
493            width: '880px',
494            height: '495px',
495            top: '15%',
496            applyPlatformOpacityRules: false,
497            left: (parseInt((w - 880) * 50 / w) + '%'),
498            border: '5px solid #eff2f3',
499            backgroundColor: '#aaa',
500            '-webkit-border-radius': '14px',
501            '-moz-border-radius':    '14px',
502            '-khtml-border-radius': '14px',
503            'border-radius': '14px'
504         }
505    });
506    return false;
507});
508
509$(function(){
510    $(function(){
511        $('.video-info').each(function() {
512            Hyphenator.hyphenate(this, 'en');
513        });
514    });
515
516    $(".fullscreen-toggle").click(function(e) {
517        var vsid = getPlayerId(getCurrentTab());
518        triggerFullscreen(vsid);
519    });
520
521    $(document).keyup(function(e) {
522        if (e.keyCode == 27) {
523            //#FIXME additional 
524            $('.autoscroll-box .slimScrollDiv').css('position', 'relative');
525            $('.autoscroll-box .slimScrollDiv').css('width', '100%');
526            $('.autoscroll-box .slimScrollDiv').css('height', '360px');
527            $('#autoscroll').css('height', '360px');
528            $('.autoscroll-box .slimScrollDiv').css('z-index', '102');
529            $('.autoscroll-box .slimScrollDiv').css('position', 'relative');
530            $('#scrolling-play-pause').removeClass('fs');
531            $('.autoscroll-box .slimScrollDiv').removeClass('fs');
532            return false;
533        }
534    });
535
536    $('.add-all-playlist').live('click', function(e) {
537        e.preventDefault();
538        $('input.disco-check').attr('disabled', false);
539        $('input.disco-check').attr('checked', false);
540        var links = $(this).parent().parent('.album').find('ul');
541        links.find(':checkbox').each(function() {
542            $(this).click();                        
543        });
544        $('.disco-check:checked').each(function(idx) {
545                    query = $(this).next('a').attr('title');
546                    do_query_add_to_playlist(query);
547        });
548        $(this).html('album added to playlist')
549    });
550
551    $('.add-playlist').live('click', function(e) {
552        e.preventDefault();
553        query = $(this).attr('id');                 
554        do_query_add_to_playlist(query);
555    });
556
557    $('.retrieve-karaoke-playlist').live('click', function(e) {
558        $('.disco-check:checked').each(function(idx) {
559            query = $(this).next('a').attr('title');
560            do_query_add_to_fs_playlist(query + 'karaoke');
561        });
562    });
563});
564
565
566-->
567</script>
vendor: 2 bytes, line 567
567
568<script type="text/javascript"><!--
569function getTabName(el){
570    return $(el).closest('#tabcontainer>div').attr('id');
571}
572
573function getCurrentTab(el){
574    return window.activeTab;
575}
576
577function getPlayerId(tab){
578    if(typeof(tab)!='string'){
579        tab = getTabName(tab);
580    }
581    return tab.replace(/(playlist|details)/, '') | 0;
582}
583
584function getPlayer(tab){
585    return videoplayers[getPlayerId(tab)];
586}
587
588function triggerFullscreen(vsid){     
589    $('#playercontainer'+vsid).css('position', 'fixed');
590    $('#playercontainer'+vsid).css('top', '50px');
591    $('#playercontainer'+vsid).css('left', '0px');
592    $('#playercontainer'+vsid).css('right', '0px');
593    $('#playercontainer'+vsid).css('bottom', '0px');
594    $('#playercontainer'+vsid).css('z-index', '100000');			
595	$('#playercontainer'+vsid).find('iframe').css('position', 'fixed');
596	$('#playercontainer'+vsid).find('iframe').css('width', '100%');
597	$('#playercontainer'+vsid).find('iframe').css('height', '100%'); 
598	$('#playercontainer'+vsid).find('iframe').css('left', '0');		
599	$('#playercontainer'+vsid).find('iframe').css('top', '0');			
600    $('body').css('overflow', 'hidden');	
601    $('#home'+vsid).show();
602    return false;
603}
604
605function doneFullscreen(vsid){     
606    $('#playercontainer'+vsid).css('position', 'relative');
607    $('#playercontainer'+vsid).css('top', '0px');
608    $('#playercontainer'+vsid).css('z-index', '102');
609	$('#playercontainer'+vsid).find('iframe').css('position', 'absolute');
610	$('#playercontainer'+vsid).find('iframe').css('width', '100%');
611	$('#playercontainer'+vsid).find('iframe').css('height', '100%');
612	$('#playercontainer'+vsid).find('iframe').css('top', '0');
613	$('#playercontainer'+vsid).find('iframe').css('left', '0');		
614    $('#home'+vsid).hide();
615    $('body').css('overflow', 'auto');
616    activateTab('playlist'+vsid);
617    return false;
618}
619
620if(!window.videoplayers){
621    videoplayers = [];
622}
623
624window.sentVideos = {};
625window.videoContainers = {};
626
627var getVideoPlayer = function(oid){
628        var vpid = '#videoplayer-'+(oid.match(/\d+/g)[0]-1);
629        var el = $(vpid);
630        while(el != null){
631            var vp = window.videoContainers[el.attr('id')];
632            if(vp) return vp;
633            el = $(el).parent()
634        }
635};
636
637var bind_videos = ensure(function(vsid, autostart){
638    videoplayers[vsid] = new Videoplayer({
639        playlistContainer: "#playlistcontainer"+vsid,
640        playerContainer: "#playercontainer"+vsid,
641        playlistItemTemplate: playlistItemTemplate,
642        playpositionTemplate: '<%= elapsedTime %> / <%= totalTime %>',
643        emptyItemHtml: emptyItemHtml,
644        inputOrdering: true,
645        enableLogging: false,
646        descriptionsholder: '#descriptionsplace'+vsid,
647        playTrigger: '.disabled-playvideo'+vsid,
648        addTrigger: '.disabled-addvideo'+vsid,
649        playlistRepeat: '#playlistrepeat'+vsid,
650        playlistShuffle: '#playlistshuffle'+vsid,
651        playlistClear: '#playlist_clear'+vsid,
652        playposition: '#playposition'+vsid,
653        autoplayCheckbox: '#autoplay'+vsid,
654        replaycurrentCheckbox: '.replaycurrent'+vsid,
655        autoplayCookie: (vsid==1)?'wn-videoplayer-autoplay':'',
656        playlistFormatCookie: 'wn-videoplayer-playlist-format',
657        controlNext: '.videoplayer-control-next'+vsid,
658        controlPrev: '.videoplayer-control-prev'+vsid,
659        controlPlay: '.videoplayer-control-play'+vsid,
660        controlPause: '.videoplayer-control-pause'+vsid,
661        playlistLink: '.playlist-link'
662    });
663    var vp = videoplayers[vsid];
664    var vres = '#video-results-'+vsid+' .video-info';
665    $('.playSlider'+vsid).click(function(){
666        $('#contentSlider'+vsid).show('fast');
667        $('.contentSliderClose').show('fast');
668    });
669    $('.contentSliderClose').click(function(){
670        $(this).parent().hide('fast');
671    });
672    $('a#play'+vsid).click(function(){
673        vp.addVideo($('#details'+vsid+' .video-info'));
674        vp.addVideo($('#playlist'+vsid+' .video-info'));
675    });
676    $('a#remove'+vsid).click(function(){
677        $('#playlist'+vsid+' .mainvideoresults').animate({ opacity: 'hide' }, "slow");
678        updateHeight();
679    });
680    $('a.list-preview').click(function(){
681        $('.list-preview').hide('fast');
682        $('.thumb-preview').show('fast');
683    });
684    $('a.thumb-preview').click(function(){
685        $('.list-preview').show('fast');
686        $('.thumb-preview').hide('fast');
687    });
688    $('#playlist_clear'+vsid).click(function(){
689        $(this).hide('fast');
690        $('#playlist_restore'+vsid).show('fast');
691     });
692    $('#playlist_restore'+vsid).click(function(){
693        $('.playlist_clear'+vsid).show('fast');
694        $(this).hide('fast');
695    });
696    $('#sortby'+vsid).hide();
697    $('a#open_sortby'+vsid).click(function(){
698        $('#sortby'+vsid).show('slow');
699        $('#open_sortby'+vsid).hide('fast');
700        $('#close_sortby'+vsid).show('fast');
701    });
702    $('a#close_sortby'+vsid).click(function(){
703        $('#sortby'+vsid).hide('slow');
704        $('#open_sortby'+vsid).show('fast');
705        $('#close_sortby'+vsid).hide('fast');
706    });
707
708    window.videoContainers[vp.playerContainer.attr('id')] = vp;
709
710    $(document).bind('videoplayer.player.statechange', function(e, status, playerContainer){
711        var match = window.location.search.match(/^\?from=([^#&]*)/);
712        if(match){
713            window.fromUrl = window.fromURL || match[1];
714            if(window.history.replaceState){
715                window.history.replaceState({}, '', window.location.href.replace(/(\?from=[^#&]*)/, ''));
716            }
717        }
718        //if(status == 'playing' || status == 'unstarted'){
719        if(status == 'playing'){
720            var vp = getVideoPlayer(playerContainer);
721            var videoInfo = vp.getCurrentVideo();
722            if(videoInfo){
723                var vid = videoInfo.source+':'+videoInfo.video_id;
724                if(window.sentVideos[vid]) return;
725                window.sentVideos[vid] = 1;
726                $.ajax({url: 'https://login.wn.com/history/play/', data: {
727                            video: vid,
728                            title: videoInfo.title,
729                            status: status,
730                            duration: videoInfo.duration,
731                            atUrl: window.location.host + window.location.pathname,
732                            fromUrl: window.fromUrl
733                        }, dataType:'jsonp'});
734            }
735        }
736    });
737
738    vp.playerContainer.bind('videoplayer.player.videoloaded', function(e, videoInfo){
739        if(videoInfo && window.username){
740            $.ajax({url: 'https://login.wn.com/history/play/', data: {
741                        video: videoInfo.source+':'+videoInfo.video_id,
742                        title: videoInfo.title,
743                        duration: videoInfo.duration,
744                    }, dataType:'jsonp'});
745        }
746    });
747    $(document).bind('videoplayback.repeat', function(e, playerContainer){
748        $.each(videoplayers, function(i, vp){
749            if(vp && vp.playerContainer == playerContainer && window.username){
750                var info=vp.getActualPlaylist()[vp.getPlaylistPosition()];
751                $.ajax({
752                    url: 'https://login.wn.com/videos/star/',
753                    data:{
754                        title: info.title,
755                        video: info.source+':'+info.video_id,
756                    },
757                    dataType: 'jsonp',
758                });
759            }
760        });
761    });
762    $('.autoplay').attr('checked', $('#autoplay1').attr('checked'));
763    $('.autoplay').click(function(event){
764        // set all visible autoplay buttons
765        $('.autoplay').attr('checked', $(event.target).attr('checked'));
766        // set first cookie
767        videoplayers[1].onAutoplayClick();
768    });
769    // this will add all available videos to playlist
770    //#FIXME #if $vs.get('playlist')
771    //vp.addVideo($('#video-results-'+vsid+' .video-info')); 
772    vp.addVideo($(vres));
773    vp.loadPlaylist();
774    //if(vp.getActualPlaylist().length){
775    //    vp.playFromPlaylist(vp.getActualPlaylist()[0], vp.autoplay || autostart);
776    //}
777    $(document).keyup(ensure(function(e) {
778        if (e.keyCode == 27) {
779            $('#home'+vsid).click();
780            return false;
781        }
782    }));
783    $('#videoplayer-play-all'+vsid).click(function(event) {
784        event.preventDefault();
785        vp.clearPlaylist();
786        vp.addVideo($(vres).slice(0, 23));
787        vp.playPlaylist();
788    });
789    $('#videoplayer-play-next'+vsid).click(function(event) {
790        event.preventDefault();
791        vp.playNextPlaylistVideo();
792    });
793    $('#playlist_restore'+vsid).click(function(event) {
794        event.preventDefault();
795        vp.clearPlaylist();
796        vp.addVideo($(vres).slice(0, 14));
797        vp.playPlaylist();
798    });   
799	$('.play_all_fs_'+vsid).click(function(event) {
800        	event.preventDefault();
801			vp.playNextPlaylistVideo();
802			triggerFullscreen(vsid);	
803    });  
804
805    $.fn.clickToggle = function(func1, func2) {
806        var funcs = [func1, func2];
807        this.data('toggleclicked', 0);
808        this.click(function() {
809            var data = $(this).data();
810            var tc = data.toggleclicked;
811            $.proxy(funcs[tc], this)();
812            data.toggleclicked = (tc + 1) % 2;
813        });
814        return this;
815    };
816    $('.playlist_mute_'+vsid).clickToggle(function() {
817        vp.setVolumeMute();
818        $(this).css('background-position', '0px 0px');
819    }, function() {
820        vp.setVolumeUnMute();
821        $(this).css('background-position', '-16px 0px');
822    });
823    $('.muteFS'+vsid).clickToggle(function() {
824        vp.setVolumeMute();
825        $(this).css('background-position', '-30px center');
826    }, function() {
827        vp.setVolumeUnMute();
828        $(this).css('background-position', '0px center');
829    });
830
831
832	
833	
834	
835    $('.playvideo'+vsid).livequery(function() {
836        $(this).click(function(event){
837            event.preventDefault();
838            var vp = getPlayer(this);
839            clog('onPlayVideoX');
840            var videoData = vp.extractVideoData($(event.currentTarget));
841            clog(videoData);
842            vp.playFromPlaylist(videoData, true, 0);
843        });
844    });
845	
846	$('.playvideo').livequery(function() {
847        $(this).click(function(event){
848            event.preventDefault();
849            var vp = videoplayers[1];
850            clog('onPlayVideoX');
851            var videoData = vp.extractVideoData($(event.currentTarget));
852            clog(videoData);
853            vp.playFromPlaylist(videoData, true, 0);
854        });
855    });
856    $('.addvideo').livequery(function() {
857        $(this).click(function(event){
858            event.preventDefault();
859            var vp = getPlayer(this);
860            clog('onAddVideo');
861            var videoData = vp.extractVideoData($(event.currentTarget));
862            var playlist = vp.getPlaylist();
863            playlist.push(videoData);
864            vp.setPlaylist(playlist);
865            clog('onAddVideo done.');
866        });
867    });
868});
869
870var bind_video_details = ensure(function(vsid){
871    var target = $('#details'+vsid+' .center-content');
872    videoplayers[vsid].playerContainer.bind('videoplayer.player.playlistchanged', function(e, playlist){
873        target.find('.video-desc').detach();
874        for(var i in playlist){
875            var item = playlist[i];
876            var itemId = _.uniqueId('item_');
877            var context = {
878                descriptionsholder: '#descriptionsplace'+vsid,
879                id: itemId,
880                info: "{source: '"+item.source+"', video_id: '"+item.video_id+"', duration: "+item.duration+", published: '"+item.published+"', updated: '"+item.updated+"', author: ''}",
881                url: item.title.replace(/ /g, '_').replace(/"/g,'&quot;')+'/video_details',
882                title: item.title,
883                titled: item.title+'/video details',
884                durationStr: videoplayers[vsid].formatTime(item.duration),
885                description: item.description,
886                updated: item.updated,
887                author: item.author,
888                published: item.published,
889                order: (+i)+1,
890                thumbnailUrl: item.thumbnailUrl,
891                tooltipContentBody: item.tooltipContentBody,
892            };
893            var item_text = detailsTemplate(context);
894            target.append(item_text);
895        }
896    });
897
898    // getting the video details delete button to work
899    $('#details'+vsid+' .video-remove').live('click', function(e) {
900        var toRemove = videoplayers[vsid].extractVideoData(this);
901        var playlist = videoplayers[vsid].getPlaylist();
902        for (var i = 0; i < playlist.length; i++) {
903            var playlistItem = playlist[i];
904            if(videoplayers[vsid].isSameVideo(playlistItem, toRemove)){
905                playlist.splice(i--, 1);
906            }
907        }
908        videoplayers[vsid].setPlaylist(playlist);
909        $(this).parent('div.video-desc').detach();
910        var items = $('#details'+vsid+' .video-desc .details-manual-order');
911        for (var i = 0; i < items.length; i++) {
912            $(items[i]).val(i+1);
913        }
914    });
915
916    // ordering logic
917    var pl_len = $('#details'+vsid+' .video-desc').length;
918    var init_vlist_value = false;
919    var new_vlist_value = false;
920    $('#details'+vsid+' .details-manual-order').live('hover', function(e) {
921        $(this).select();
922        if (!init_vlist_value) { init_vlist_value = parseInt($(this).val()); }
923    });
924    $('#details'+vsid+' .details-manual-order').live('focus', function(e) {
925        if (!init_vlist_value) { init_vlist_value = parseInt($(this).val()); }
926    });
927    //$('#details'+vsid+' .details-manual-order').blur(function(e) {
928    //  $(this).parent().find('.details-manual-order-confirm').hide();
929    //})
930    $('#details'+vsid+' .details-manual-order').live('keyup', function(e) {
931        $(this).parent().find('.details-manual-order-confirm').hide();
932        new_vlist_value = parseInt($(this).val());
933        if (isNaN(new_vlist_value)) { return false; }
934        if (new_vlist_value == undefined) { return false; }
935        if (new_vlist_value == parseInt(init_vlist_value)) { return false; }
936        if (new_vlist_value < 0) { return false; }
937        if (new_vlist_value > pl_len) { return false; }
938        if (new_vlist_value == 0) { new_vlist_value = 1; }
939        $(this).parent().find('.details-manual-order-confirm').show();
940    });
941
942    // add the keypress event
943    $('#details'+vsid+' .details-manual-order').live('keypress', function(e) {
944        if(e.keyCode == 13) {
945            var tmp = $('#details'+vsid+' .video-desc').eq(init_vlist_value-1);
946            var target = $('#details'+vsid+' .video-desc').eq(new_vlist_value-1);
947            var tmpc = tmp.clone(true);
948
949            target.find('.details-manual-order').val(init_vlist_value);
950            tmp.replaceWith(target);
951            var place = $('#details'+vsid+' .video-desc').eq(new_vlist_value-1);
952            tmpc.insertBefore(place);
953
954            var items = $('#details'+vsid+' .video-desc .details-manual-order');
955            for (var i = 0; i < items.length; i++) {
956                $(items[i]).val(i+1);
957            }
958
959            videoplayers[vsid].switchPlaylistItems(init_vlist_value, new_vlist_value);
960            init_vlist_value = false;
961            new_vlist_value = false;
962            $('#details'+vsid+' .details-manual-order-confirm').hide();
963        }
964    });
965
966    $('#details'+vsid+'-items .details-manual-order-confirm').live('click', function(e) {
967        var tmp = $('#details'+vsid+' .video-desc').eq(init_vlist_value-1);
968        var target = $('#details'+vsid+' .video-desc').eq(new_vlist_value-1);
969        var tmpc = tmp.clone(true);
970
971        target.find('.details-manual-order').val(init_vlist_value);
972        tmp.replaceWith(target);
973        var place = $('#details'+vsid+' .video-desc').eq(new_vlist_value-1);
974        tmpc.insertBefore(place);
975
976        var items = $('#details'+vsid+' .video-desc .details-manual-order');
977        for (var i = 0; i < items.length; i++) {
978            $(items[i]).val(i+1);
979        }
980
981        videoplayers[vsid].switchPlaylistItems(init_vlist_value, new_vlist_value);
982        init_vlist_value = false;
983        new_vlist_value = false;
984        $('#details'+vsid+' .details-manual-order-confirm').hide();
985    });
986
987    $('#playlistformating'+vsid).hover(function() {
988        $('.playlistformating.fsmode').stop(true, false).animate({'right': '0px'}, 900);
989        $('.playlistformating.fsmode').css("background-image", "url(//ecdn3.wn.com/or/images/double-right-arrow.png)");
990    }, function() {
991        $('.playlistformating.fsmode').stop(true, false).animate({'right': '-365px'}, 900);
992        $('.playlistformating.fsmode').css("background-image", "url(//ecdn8.wn.com/or/images/double-left-arrow.png)");
993    });
994});
995
996-->
997</script>
vendor: 2 bytes, line 997
997
998<script type="text/javascript"><!--
999function bind_fsplayer(){
1000    if(!window.videoplayers){
1001        videoplayers = [];
1002    }
1003    var videoplayer_fs = new Videoplayer({
1004        playlistContainer: "#playlistcontainerfs",
1005        playerContainer: "#playercontainer1",
1006        playlistItemTemplate: playlistItemTemplateFS,
1007        playpositionTemplate: '$("<%= elapsedTime %>") / $S("<%= totalTime %>")',
1008        emptyItemHtml: emptyItemHtml,
1009        inputOrdering: true,
1010        enableLogging: false,
1011        playlistClear: '.playlistcontainerfs_clear',
1012        replaycurrentCheckbox: '.replaycurrentfs',
1013        playlistFormatCookie: 'none',
1014    });
1015
1016    jQuery('.discoplaylist_play').click(function(event) {
1017        event.preventDefault();
1018        videoplayer_fs.clearPlaylist();
1019        videoplayer_fs.playPlaylist();
1020    });
1021
1022    var fullscreen_interval_caller = false;
1023
1024    jQuery('.play-album-fullscreen').live('click', ensure(function(e) {
1025        videoplayer_fs.clearPlaylist();
1026
1027        // checking if we have at least one video in the playlist in order to click it
1028        fullscreen_interval_caller = setInterval(function(){
1029            first_video = jQuery('#playlistcontainer_fs').find('a.playlistitem:first');
1030            if (first_video) {
1031                first_video.find('img.playlist-thumbnail').click();
1032                triggerFullscreen(1);
1033                clearInterval(fullscreen_interval_caller);
1034            }
1035        }, 1000);
1036    }));
1037
1038    jQuery('.play-fullscreen').live('click', ensure(function(e) {
1039        videoplayer_fs.clearPlaylist();
1040        fullscreen_interval_caller = setInterval(function(){
1041            first_video = videoplayer_fs.playlistContainer.find('li').first().find('a.playlistitem');
1042            if (first_video) {
1043                first_video.click();
1044                triggerFullscreen(1);
1045                clearInterval(fullscreen_interval_caller);
1046            }
1047        }, 1000);
1048
1049    }));
1050}
1051
1052function do_query_add_to_fs_playlist(query) {
1053    jQuery.ajax({
1054        data: {
1055            t: 'cheetah-photo-search/video_search.txt',
1056            query: query,
1057        },
1058        dataType: 'jsonp',
1059        url: 'https://upge.wn.com/',
1060        success: function(text) {	
1061            var vp = videoplayers[1];
1062						vp.clearPlaylist();
1063            //clog('onPlayVideoX');
1064            var videoData = vp.extractVideoData($(text));
1065            clog(videoData);
1066            vp.playFromPlaylist(videoData, true, 0);
1067						triggerFullscreen(1);
1068        }
1069    });
1070}
1071
1072function do_query_add_to_playlist(query) {
1073    jQuery.ajax({
1074        data: {
1075            t: 'cheetah-photo-search/video_search.txt',
1076            query: query,
1077        },
1078        dataType: 'jsonp',
1079        url: 'https://upge.wn.com/',
1080        success: function(text) {	
1081            var vp = videoplayers[1];
1082            var videoData = vp.extractVideoData($(text));	
1083            var playlist = vp.getPlaylist();
1084            playlist.push(videoData);
1085            vp.setPlaylist(playlist);
1086        }
1087    });
1088}
1089jQuery(function(){
1090    jQuery('.add-to-playlist').live('click', function(e) {
1091          query = jQuery(this).attr('id');
1092          do_query_add_to_playlist(query);
1093    });
1094	
1095    jQuery('.add-all-playlist').live('click', function(e) {
1096   		jQuery('input.disco-check').attr('disabled', false);
1097        jQuery('input.disco-check').attr('checked', false);
1098        var links = jQuery(this).parent().parent('.album').find('ul');
1099        links.find(':checkbox').each(function() {
1100            jQuery(this).click();                        
1101        });        
1102        jQuery('.disco-check:checked').each(function(idx) {
1103            query = jQuery(this).next('a').attr('title');
1104            do_query_add_to_playlist(query);
1105        });
1106    });
1107    jQuery('.retrieve-fs-playlist').live('click', function(e) {
1108        jQuery('input.disco-check').attr('disabled', false);
1109        jQuery('input.disco-check').attr('checked', false);
1110        var links = jQuery(this).parent().parent('.album').find('ul');
1111        links.find(':checkbox').each(function() {
1112            jQuery(this).click();                        
1113        });
1114        
1115        jQuery('.disco-check:checked').each(function(idx) {
1116            query = jQuery(this).next('a').attr('title');
1117            do_query_add_to_fs_playlist(query);
1118        });
1119    });
1120});
1121
1122-->
1123</script>
vendor: 2 bytes, line 1123
1123
1124<script type="text/javascript"><!--
1125var matchNumber = function(x){
1126return x && x.match(/^\d+$/);
1127}
1128
1129var matchDash = function(x){
1130return x && x.match(/^\d+(-\d+)?(,\d+(-\d+)?)*$/);
1131}
1132
1133var matchPosition = function(x){
1134return x && x.match(/^(\d+:)?\d+:\d+$/);
1135}
1136
1137var matchAction = function(x){
1138return x && x.match(/^(\d+:)?\d+:\d+(\-|\.\.)(\d+:)?\d+:\d+$/);
1139}
1140
1141var matchNames = function(x){
1142    return x && x.length >= 3;
1143}
1144
1145function parseDash(x){
1146    var parts = x.split(/,/g);
1147    var r = [];
1148    for(var i in parts){
1149        var p = parts[i];
1150        if(p.match('-')){
1151            var rg = p.split('-');
1152            for(var t=rg[0]; t<=rg[1]; t++){
1153               r.push(t|0);
1154            }
1155        }else{
1156            r.push(p|0);
1157        }
1158    }
1159    return r;
1160}
1161
1162var parsePosition = function(x){
1163    var parts = x.split(/:/g);
1164    var pos = 0;
1165    for(var p in parts){
1166        pos = pos*60 + parseInt(parts[p].trim() || '0', 10);
1167    }
1168    return pos;
1169}
1170
1171var sources = {'yt': 'youtube', 'vm': 'vimeo', 'dm': 'dailymotion'};
1172var namesMatch = function(name, vname){
1173    var name1 = name.replace(/[\W_]+/g, ' ').trim().toLowerCase();
1174    var name2 = vname.replace(/[\W_]+/g, ' ').trim().toLowerCase();
1175    if(!name1 || !name2) return false;
1176    if(name1 == name2) return 1;
1177    if(name2.substring(0, name1.length) == name1) return 0.8;
1178    if(name2.match(name1)) return 0.6;
1179    return 0;
1180}
1181
1182var findMatchingVideo = function(vp, vid){
1183    var pl = vp.getActualPlaylist();
1184    vid = vid.replace(/\/+$/,'').replace(/%20/g, ' ');
1185    if(vid.match(/^\d+$/)){
1186        var number = parseInt(vid);
1187        return pl[number-1];
1188    }else if(vid.match(/^\w\w-/)){
1189        var s = sources[vid.substr(0, 2)];
1190        for(var v in pl){
1191            if(pl[v].source == s && pl[v].video_id == vid.substr(3)){
1192                return pl[v];
1193            }
1194        }
1195    }else{
1196        var bm = 0;
1197        var winner = -1;
1198        for(var i=0; i<pl.length; i++){
1199            var candidate = namesMatch(vid, pl[i].title);
1200            if(candidate > bm){
1201                bm = candidate;
1202                winner = i;
1203            }
1204        }
1205        if(winner == -1) return null;
1206
1207        if(window.console && console.log)
1208            console.log('Found video: ' + winner + ' for query ' + vid);
1209        return pl[winner];
1210    }
1211}
1212
1213var parseAction = function(vp, x){
1214    var video = null;
1215    var start = 0;
1216    var stop = null; // at the end of video
1217    if(x.match(/\//)){
1218        var vid_pos = x.split(/\//, 2);
1219        x = vid_pos[0];
1220        var positions = vid_pos[1].split(/\-|\.\./, 2);
1221        start = parsePosition(positions[0]) || 0;
1222        if(positions[1] && positions[1].trim()){
1223            stop = parsePosition(positions[1]) || null;
1224        }
1225    }
1226    video = findMatchingVideo(vp, x);
1227    return {
1228        'video': video,
1229        'start': start,
1230        'stop': stop
1231    };
1232};
1233
1234$ensure(function(){
1235    if (window.location.hash && window.location.hash == '#_=_') {
1236        if (window.history && history.pushState) {
1237            window.history.pushState("", document.title,
1238                window.location.href.replace(location.hash,""));
1239        } else {
1240            // Prevent scrolling by storing the page's current scroll offset
1241            var scroll = {
1242                top: document.body.scrollTop,
1243                left: document.body.scrollLeft
1244            };
1245            window.location.hash = '';
1246            // Restore the scroll offset, should be flicker free
1247            document.body.scrollTop = scroll.top;
1248            document.body.scrollLeft = scroll.left;
1249        }
1250    }
1251
1252    // method that scrolls the headlines to a certain position
1253    function scrollRelated(seconds) {
1254        window.jQueryAutoScroll.doScrollTo(25*parseInt(seconds));
1255    }
1256
1257    var showMenu = ensure(function(activeMenu, activeItem, shown){
1258        if(window.console && console.log) console.log("Activating menu: "+activeMenu);
1259        // <ul id='menu-name' class="submenu border_color tabtrigger"><li id='#child-menu-id' class="active"><a id='#opened-tab-id'>
1260        // or
1261        // <ul id='main_menu' class="tabtrigger"><li id='#child-menu-id' class="current"><a id='#opened-tab-id'>
1262
1263        var activeMenuElement = $('ul'+activeMenu);
1264        var parentMenuItem = $('ul.tabtrigger li[id='+activeMenu+']');
1265        var parentMenuElement = parentMenuItem.parents('ul');
1266        var parentMenuName = '#'+parentMenuElement.attr('id');
1267        if(parentMenuItem.length){
1268            if(activeMenu != '#main-menu'){
1269                var isGoodMenu=activeMenuElement.find('li').length>1;
1270                if(isGoodMenu){
1271                    activeItem.addClass('current');
1272                    activeMenuElement.css('z-index', '100');
1273                }
1274                if(parentMenuName != '#undefined' && parentMenuName != activeMenu){
1275                    showMenu(parentMenuName, parentMenuItem, shown);
1276                }
1277                // slide down in reverse order, from the topmost menu
1278                if(isGoodMenu){
1279                    activeMenuElement.slideDown('fast');
1280                    shown.push(activeMenu);
1281                }
1282            }else{
1283                activeItem.addClass('current');
1284            }
1285        }else{
1286            activeItem.addClass('current');
1287        }
1288    });
1289
1290    window.updateMenus = ensure(function(tab){
1291        if(window.console && console.log) console.log("updateMenus for: "+tab);
1292        $('#login .history').css('color',tab=='#history'?'#c00':'');
1293        // find active menu
1294        var menu_item = $('.submenu li:not([id]) a[id='+tab+']').parents('li'); // item with no submenu
1295        if(!menu_item.length){
1296            menu_item = $('.submenu li a[id='+tab+']').parents('li'); // any submenu item
1297        }
1298        if(!menu_item.length){
1299            menu_item = $('.tabtrigger li a[id='+tab+']').parents('li'); // main menu item
1300        }
1301        // reset all submenus selection
1302        $('.submenu.tabtrigger').children('li').removeClass('active');
1303        // reset main menu selection
1304        $('.tabtrigger').children('li').removeClass('current');
1305        // move all submenus back
1306        $('.submenu').css('z-index', '10');
1307        var shown = [];
1308        var menu_name = '#'+(menu_item.parents('ul').attr('id') || 'main-menu');
1309        if(menu_item && menu_name != '#undefined'){
1310            showMenu(menu_name, menu_item, shown);
1311        }
1312        // slide all other submenus up
1313        var open_submenu = false;
1314        $('.submenu').each(function(n,el){
1315            if($.inArray('#'+el.id, shown) == -1){
1316                $(el).css('z-index', '100').slideUp('fast');
1317            }else if($(el).find('li').length<=1){
1318                // never show menus with only one element
1319            }else{
1320                $(el).css('z-index', '100');
1321                open_submenu = true;
1322            }
1323        });
1324        if(open_submenu){
1325            $('.submenu-container').slideDown('fast');
1326        }else{
1327            $('.submenu-container').slideUp('fast');
1328        }
1329    });
1330
1331window.lastHistory = '';
1332window.activeArea = '';
1333window.fsonload = null;
1334window.firstTimeActivate = true;
1335
1336    window.history_pp = 20;
1337
1338    var renderPage = function(number, active){
1339        var page = '';
1340        if(number == active){
1341            page += ' <span class="active">'+active+'</span> ';
1342        }else{
1343            page += ' <a href="javascript:void(0);" onclick=\'activateTab("history", "'+number+'");return false;\'>'+number+'</a> ';
1344        }
1345        return page;
1346    }
1347
1348    var historyTemplate = _.template('<div class="history-div">'+
1349        '<a href="<%= url %>"><%= title %></a>'+
1350        '<span style="color:gray;font-size:90%"><%= at %></span>'+
1351        '</div>');
1352
1353    var myPlaylists = DynamicStream('my_playlists', 10, 'https://editor.wn.com/personal/?kind=pages',
1354        '<div class="item-div l80">'+
1355        '<% if(thumb.width && !thumb.url.match("^/")) { %>'+
1356        '<img width="<%= thumb.width %>" height="<%= thumb.height %>" src="<%= thumb.url %>" class="thumb" />'+
1357        '<% } else { %>'+
1358        '<img width="72" height="54" src="https://login.wn.com/media/images/empty-120x90.png" class="thumb" />'+
1359        '<% } %><div class="info">'+
1360        '<a href="https://wn.com/u/<%= owner %>/<%= query %>"><%= title %></a><br /> '+
1361        '<span style="color:gray;font-size:90%"><%= edited_at %> ago</span>'+
1362        //'<br/><% if(typeof duration!=="undefined"){ %>Duration: <%= duration %><% } %><br/>'+
1363        '</div></div>');
1364
1365    var myVideos = DynamicStream('my_videos', 20, 'https://login.wn.com/history/played/',
1366        '<div class="item-div l80">'+
1367        '<img width="72" height="54" src="https://i.ytimg.com/vi/<%= video_id %>/default.jpg" class="thumb" />'+
1368        '<div class="info">'+
1369        '<a href="https://wn.com/<%= title %>"><%= title %></a><br /> '+
1370        '<span style="color:gray;font-size:90%"><%= edited_at %> ago</span>'+
1371        //'<br/><% if(typeof duration!=="undefined"){ %>Duration: <%= duration %><% } %><br/>'+
1372        '</div></div>');
1373
1374    var globalHistory = DynamicStream('global_history', 20, 'https://login.wn.com/recent/all/',
1375        '<div class="item-div l1">'+
1376        '<a href="<%= url %>"><%= title %></a>'+
1377        '</div>')
1378
1379
1380    var renderHistory = ensure(function(result){
1381        //pp = parseInt(result.pp);
1382        var stream = "";
1383        for(i in result.stream){
1384            var item = result.stream[i];
1385            var context = {
1386                title: item.title,
1387                url: item.url,
1388                at: item.at_rel,
1389            };
1390            stream += historyTemplate(context);
1391        }
1392        $('#history .stream').html(stream);
1393        var page = result.page;
1394        if(result.pages>1){
1395            var pages = '';
1396            pages += renderPage(1, page);
1397            if(result.nearby && result.nearby[0]>2){
1398                pages += '...';
1399            }
1400            for(p in result.nearby){
1401                pages += renderPage(result.nearby[p], page);
1402            }
1403            if(result.nearby && result.nearby.slice(-1)[0]<result.pages-1){
1404                pages += ' ... ';
1405            }
1406            if(result.pages>1){
1407                pages += renderPage(result.pages, page);
1408            }
1409            //pages = pages + "(" + result.count;
1410        }else{
1411            pages = ''
1412        }
1413        $('.pagination').html('<p>'+pages+'</p>');
1414        $('.stream > div:odd').addClass('bgr_color');
1415        updateHeight('#history');
1416    });
1417
1418
1419    window.activateTabArea = ensure(function(tab, areas){
1420        var parsed = false;
1421        var parts = (areas || '').split('/');
1422        window.fsonload = $.inArray('fs', parts) >= 0;
1423        if(fsonload){
1424            parts.splice(parts.indexOf('fs'), 1);
1425        }
1426        var replayMode = false;
1427        if($.inArray('replay', parts)>=0){
1428            replayMode = 'replay';
1429        }
1430        var noSoundMode = false;
1431        if($.inArray('nosound', parts)>=0){
1432            noSoundMode = 'nosound';
1433        }
1434        if($.inArray('ns', parts)>=0){
1435            noSoundMode = 'ns';
1436        }
1437        var previewMode = null;
1438        if($.inArray('p', parts)>=0){
1439            previewMode = 'p';
1440        }
1441        if($.inArray('preview', parts)>=0){
1442            previewMode = 'preview';
1443        }
1444        if($.inArray('repeat', parts)>=0){
1445            replayMode = 'repeat';
1446        }
1447        if($.inArray('r', parts)>=0 || $.inArray('ro', parts)>=0){
1448            replayMode = 'r';
1449        }
1450        if(replayMode){
1451            parts.splice(parts.indexOf(replayMode), 1);
1452        }
1453        if(noSoundMode){
1454            parts.splice(parts.indexOf(noSoundMode), 1);
1455        }
1456        if(previewMode){
1457            parts.splice(parts.indexOf(previewMode), 1);
1458        }
1459        if(previewMode){
1460            if(!parts.length){
1461                parts = ['1-14', '999:59'];
1462            }
1463        }
1464
1465        var area = parts[0];
1466
1467        if(tab == 'history' && false){
1468            var page = parseInt(area || '1') || 1;
1469            $.ajax({
1470                url: 'https://login.wn.com/recent/json/?pp='+history_pp+'&skip='
1470+history_pp*(page-1),
1471                dataType: 'jsonp',
1472                success: function(response){
1473                    $ensure(function(){
1474                        renderHistory(response, page);
1475                    });
1476                }
1477            });
1478            return true;
1479        }
1480
1481        if(tab == 'global_history' && false){
1482            var page = parseInt(area || '1') || 1;
1483            globalHistory.fetchStream(page, '', function(){
1484                updateHeight('#global_history');
1485            });
1486            return true;
1487        }
1488
1489        if(tab == 'my_playlists' && false){
1490            var page = parseInt(area || '1') || 1;
1491            myPlaylists.fetchStream(page, '', function(){
1492                updateHeight('#my_playlists');
1493            });
1494            return true;
1495        }
1496
1497        if(tab == 'my_videos' && false){
1498            var page = parseInt(area || '1') || 1;
1499            myVideos.fetchStream(page, '', function(){
1500                updateHeight('#my_videos');
1501            });
1502            return true;
1503        }
1504
1505        if(tab == 'related_sites' && areas && matchPosition(areas)){
1506            var seconds = parsePosition(areas);
1507            scrollRelated(seconds);
1508            return false;
1509        }
1510
1511        if(matchPosition(area) || matchAction(area)){
1512            parts.unshift('1');
1513            area = parts[0];
1514        }
1515
1516        if(tab == 'expand' && area && area.match(/\d+/)) {
1517            var num = parseInt(area);
1518            if(num < 100){
1519                //FIX ME. Load news page with ajax here
1520            }
1521            else if(num > 1900){
1522                //FIX ME. Load timeline page with ajax here
1523            }
1524        }
1525        else if(tab.match(/^playlist\d+$/)){
1526            var playerId = parseInt(tab.substring(8));
1527            var vp = videoplayers[playerId];
1528            window.descriptionsholder = $('.descriptionsplace');
1529            if(!vp) return; // why? no player?
1530            if(replayMode){
1531                $('.replaycurrent'+playerId).attr('checked', true);
1532                vp.setReplayCurrent(true);
1533            }
1534            var playQueue = [];
1535            window.playQueue = playQueue;
1536            var playQueuePosition = 0;
1537            var playShouldStart = null;
1538            var playShouldStop = null;
1539            var parseList = function(x){
1540                var items = x.split(/;|,/g);
1541                var results = [];
1542                for (i in items){
1543                    try{
1544                        var action = parseAction(vp, items[i]);
1545                        if(!action.video){
1546                            if(window.console && console.log) console.log("Warning: No video for queued entry: " + items[i]);
1547                        }else{
1548                            results.push(action);
1549                        }
1550                    }catch(e){
1551                        if(window.console && console.log) console.log("Warning: Can''t parse queue entry: " + items[i]);
1552                    }
1553                }
1554                return results;
1555            };
1556
1557            var scrollToPlaylistPosition = function(vp){
1558                var ppos = vp.getPlaylistPosition();
1559                var el = vp.playlistContainer.find('>li').eq(ppos);
1560                var par = el.closest('.playlist_scrollarea');
1561                par.scrollTop(el.offset().top-par.height()/2);
1562            }
1563
1564            var updateVolumeState = function(){
1565                if(noSoundMode){
1566                    if(noSoundMode == 'turn-on'){
1567                        clog("Sound is on, vsid="+vp.vsid);
1568                        vp.setVolumeUnMute();
1569                        noSoundMode = false;
1570                    }else{
1571                        clog("Sound is off, vsid="+vp.vsid);
1572                        vp.setVolumeMute();
1573                        noSoundMode = 'turn-on';
1574                    }
1575                }
1576            }
1577
1578            var playQueueUpdate = function(){
1579                var playPosition = playQueue[playQueuePosition];
1580                vp.playFromPlaylist(playPosition.video);
1581                scrollToPlaylistPosition(vp);
1582                playShouldStart = playPosition.start;
1583                playShouldStop = playPosition.stop;
1584            };
1585
1586            var playQueueAdvancePosition = function(){
1587                clog("Advancing play position...");
1588                playQueuePosition ++;
1589                while(playQueuePosition < playQueue.length && !playQueue[playQueuePosition].video){
1590                    playQueuePosition ++;
1591                }
1592                if(playQueuePosition < playQueue.length){
1593                    playQueueUpdate();
1594                }else if(vp.getReplayCurrent()){
1595                    playQueuePosition = 0;
1596                    playQueueUpdate();
1597                    vp.seekTo(playShouldStart);
1598                    vp.playVideo();
1599                }else{
1600                    vp.pauseVideo();
1601                    playShouldStop = null;
1602                    playShouldStart = null;
1603                }
1604            };
1605
1606           function loadMoreVideos(playerId, vp, start, finish, callback){
1607                    var playlistInfo = playlists[playerId-1];
1608                    if(playlistInfo.loading >= finish) return;
1609                    playlistInfo.loading = finish;
1610                    $.ajax({
1611                        url: '/api/upge/cheetah-photo-search/query_videos2',
1612                        dataType: 'json',
1613                        data: {
1614                            query: playlistInfo.query,
1615                            orderby: playlistInfo.orderby,
1616                            start: start,
1617                            count: finish-start
1618                        },
1619                        success: function(response){
1620                            var pl = vp.getPlaylist().slice(0);
1621                            pl.push.apply(pl, response);
1622                            vp.setPlaylist(pl);
1623                            callback();
1624                        }
1625                    });
1626           }
1627
1628           if(parts.length == 1 && matchDash(parts[0])){
1629                var pl = vp.getActualPlaylist();
1630                var vids = parseDash(parts[0]);
1631                parts = [];
1632                for(var i = 0; i < vids.length; i++){
1633                    playQueue.push({
1634                        'video': pl[vids[i]-1],
1635                        'start': 0,
1636                        'stop': null
1637                    })
1638                }
1639                if(vids.length){
1640                    if(vids[vids.length-1]-1>=pl.length){
1641                        loadMoreVideos(playerId, vp, pl.length, vids[vids.length-1], function(){
1642                            if(fsonload){
1643                                activateTabArea(tab, parts[0]+'/fs');
1644                            }else{
1645                                activateTabArea(tab, parts[0]);
1646                            }
1647                            var pls = vp.getPlaylist();
1648                            vp.playFromPlaylist(pls[pls.length-1]);
1649                            vp.playVideo();
1650                            scrollToPlaylistPosition(vp);
1651                        });
1652                        return true;
1653                    }
1654                }
1655                if(playQueue){
1656                    playQueueUpdate();
1657                    vp.playVideo();
1658                    parsed = true;
1659                    playShouldStart = 0;
1660                }
1661           }
1662
1663           if(previewMode){
1664                var vids = [];
1665                var dur = 0;
1666                var pl = vp.getActualPlaylist();
1667                area = parts[0];
1668                if(parts.length == 1 && matchPosition(parts[0])){
1669                    vids = parseDash('1-'+pl.length);
1670                    dur = parsePosition(parts[0]);
1671                    parts = [];
1672                }else
1673                if(parts.length == 1 && matchDash(parts[0])){
1674                    vids = parseDash(parts[0]);
1675                    dur = parsePosition("999:59");
1676                    parts = [];
1677                }
1678                if(parts.length == 2 && matchDash(parts[0]) && matchPosition(parts[1])){
1679                    vids = parseDash(parts[0]);
1680                    dur = parsePosition(parts[1]);
1681                    parts = [];
1682                }
1683                for(var i = 0; i < vids.length; i++){
1684                    playQueue.push({
1685                        'video': pl[vids[i]-1],
1686                        'start': 0,
1687                        'stop': dur
1688                    })
1689                }
1690                if(playQueue){
1691                    playQueueUpdate();
1692                    vp.playVideo();
1693                    parsed = true;
1694                }
1695            }
1696
1697            if(parts.length>1){
1698                for(var i = 0; i < parts.length; i++){
1699                    var sel = findMatchingVideo(vp, parts[i]);
1700                    if(sel){
1701                        playQueue.push({
1702                            'video': sel,
1703                            'start': 0,
1704                            'stop': null
1705                        })
1706                    }
1707                }
1708                if(playQueue){
1709                    playQueueUpdate();
1710                    vp.playVideo();
1711                    parsed = true;
1712                }
1713                
1714            }else if(area){
1715                var sel = findMatchingVideo(vp, area);
1716                if(sel){
1717                    vp.playFromPlaylist(sel);
1718                    playShouldStart = 0;
1719                    parsed = true;
1720                }
1721            }
1722
1723            if(fsonload || replayMode){
1724                playShouldStart = 0;
1725            }
1726
1727            if(document.location.search.match('at=|queue=')){
1728                var opts = document.location.search.replace(/^\?/,'').split(/&/g);
1729                for(var o in opts){
1730                    if(opts[o].match(/^at=(\d+:)?(\d+:)?\d+$/)){
1731                        playShouldStart = parsePosition(opts[o].substr(3))
1732                    }
1733                    if(opts[o].match(/^queue=/)){
1734                        playQueue = parseList(opts[o].substr(6));
1735                        if(playQueue){
1736                            playQueuePosition = 0;
1737                            playQueueUpdate();
1738                        }
1739                    }
1740                }
1741            }
1742
1743            if(matchPosition(parts[1])){
1744                    playShouldStart = parsePosition(parts[1]);
1745                    parsed = true;
1746            }
1747
1748            if(matchAction(parts[1])){
1749                    var action = parseAction(vp, area+'/'+parts[1]);
1750                    playShouldStart = action.start;
1751                    playShouldStop = action.stop;
1752                    parsed = true;
1753            }
1754
1755            if(playShouldStart !== null && !playQueue.length){
1756                playQueue.push({
1757                    video: vp.getCurrentVideo(),
1758                    start: playShouldStart,
1759                    stop: playShouldStop
1760                });
1761            }
1762
1763            if(playShouldStart != null){
1764                setInterval(function(){
1765                    if(playShouldStop && vp.currentPlayer && vp.currentPlayer.getCurrentTime() > playShouldStop){
1766                        playShouldStop = null;
1767                        if(vp.getCurrentVideo() == playQueue[playQueuePosition].video){
1768                            playQueueAdvancePosition();
1769                        }else{
1770                            playShouldStart = null;
1771                        }
1772                    }
1773                }, 500);
1774                vp.playerContainer.bind('videoplayer.player.statechange', function(e, state){
1775                    if(state == 'ended'){ // advance to the next video
1776                        playQueueAdvancePosition();
1777                    }
1778                });
1779                vp.playerContainer.bind('videoplayer.player.readychange', function(e, state){
1780                    if(state){
1781                        updateVolumeState();
1782                        if(playShouldStart !== null){
1783                            vp.seekTo(playShouldStart);
1784                            playShouldStart = null;
1785                        }else{
1786                            playShouldStop = null; // someone started other video, stop playing from playQueue
1787                        }
1788                    }
1789                    if(fsonload) {
1790                        triggerFullscreen(playerId); fsonload = false;
1791                    }
1792                });
1793            }
1794        }
1795        else if(tab.match(/^wiki\d+$/)){
1796            if(firstTimeActivate){
1797                load_wiki($('#'+tab), function(){
1798                    if(area){
1799                        var areaNode = $('#'+area);
1800                        if(areaNode.length>0){
1801                            $('html, body').scrollTop(areaNode.offset().top + 10);
1802                            return true;
1803                        }
1804                    }
1805                });
1806            }
1807        }
1808        return parsed;
1809    })
1810
1811    window.activateTab = ensure(function(tab, area){
1812        window.activeArea = null;
1813        if(tab == 'import_videos'){
1814            if(area){
1815                import_videos(area);
1816            }else{
1817                start_import();
1818            }
1819            return true;
1820        }
1821        if(tab == 'chat'){
1822            update_chat_position($('.chat').eq(0));
1823            window.activeArea = 'chat';
1824            jQuery('.tabtrigger').offscreentabs('activateTab', 'chat');
1825            return true;
1826        }
1827        if(tab in rev_names){
1828            tab = rev_names[tab];
1829        }
1830        if(tab.match(':')){ return false; }
1831        var sup = $('ul li a[id=#'+tab+']');
1832        if(sup && sup.length>0){
1833            window.activeArea = area;
1834            sup.first().click();
1835            if(!window.activateTabArea(tab, area)){
1836                window.activeArea = null;
1837            }
1838            window.activeArea = null;
1839            return true;
1840        }else{
1841            var have_tabs = $('#playlist_menu li').length;
1842            if(tab.match(/^playlists?\d+$/)){
1843                var to_add = +tab.substring(8).replace(/^s/,'')-have_tabs;
1844                if(to_add>0 && have_tabs){
1845                    add_more_videos(to_add);
1846                    return true;
1847                }
1848            }
1849        }
1850        return false;
1851    });
1852    window.currentPath = ensure(function(){
1853        return window.lastHistory.replace(basepath, '').split('?')[0];
1854    });
1855
1856    window.main_tab = window.main_tab || 'videos';
1857    window.addHistory = ensure(function(path){
1858        if(window.console && console.log) console.log("Adding to history: "+path);
1859        if(window.history && history.replaceState && document.location.hostname.match(/^(youtube\.)?(\w{2,3}\.)?wn\.com$/)){
1860            if(path == main_tab || path == main_tab+'/' || path == '' || path == '/') {
1861                path = basepath;
1862            } else if( path.match('^'+main_tab+'/') ){
1863                path = basepath + '/' + path.replace(main_tab+'/', '').replace('--','/');
1864            } else {
1865                path = basepath + '/' + path.replace('--','/');
1866            }
1867            if(document.location.search){
1868                path += document.location.search;
1869            }
1870            if(window.lastHistory) {
1871                history.pushState(null, null, path);
1872            }
1873            else if(window.lastHistory != path){
1874                history.replaceState(null, null, path);
1875                window.lastHistory = path;
1876            }
1877        }
1878        else{
1879            path = path.replace('--','/');
1880            if(path == main_tab || path == main_tab+'/' || path == '' || path == '/') {
1881                path = '';
1882            }
1883            if(window.lastHistory != '/'+path){
1884                window.location.hash = path? '/'+path : '';
1885                window.lastHistory = '/'+path;
1886            }
1887        }
1888    });
1889    $('.tabtrigger li a').live('click', ensure(function() {
1890        var tab = $(this).attr('id');
1891        if(tab.substring(0,1) == '#'){
1892            var name = tab.substring(1);
1893            if(name in menu_names){
1894                name = menu_names[name][0];
1895            }
1896            realTab = rev_names[name];
1897            $('#'+realTab).show();
1898            if(window.console && console.log) console.log("Triggering tab: "+name+(window.activeArea?" activeArea="+window.activeArea:''));
1899            var path = name;
1900            if(window.activeArea){
1901                path = path + '/' + window.activeArea;
1902            }
1903            if(tab.match(/#playlist\d+/) || tab.match(/#details\d+/)){
1904                    $('.multiple-playlists').show();
1905                    $('.related_playlist').show();
1906                    $('.longest_videos_playlist').show();
1907            }else {
1908                    $('.multiple-playlists').hide();
1909                    $('.related_playlist').hide();
1910                    $('.longest_videos_playlist').hide();
1911            }
1912
1913            // start the related script only when the tab is on screen showing
1914            if (tab.match(/related_sites/)) {
1915                if (mc) {
1916                    mc.startCredits();
1917                }
1918            }
1919
1920            window.activeTab = realTab;
1921
1922            addHistory(path);
1923            setTimeout(ensure(function(){
1924                if(tab.match(/language--/)){
1925                    $('.tabtrigger').offscreentabs('activateTab', 'language');
1926                }
1927                if(tab.match(/weather/)) {
1928                 $('.tabtrigger').offscreentabs('activateTab', 'weather');
1929                 loadContinent();
1930                }
1931
1932                updateMenus(tab);
1933                updateHeight();
1934            }), 10);
1935        }
1936        return false;
1937        
1938    }));
1939});
1940
1941-->
1942</script>
1942
1943
1944
1945
1946    
1946<script type="text/javascript"><!--
1947    var showBooksDone = false;
1948    showBooks = ensure(function(){
1949        if(!showBooksDone) showBooksDone = true;
1950        else return;
1951        var query = 'My books';
1952        function esc(x){ return x.replace(/[ \"%:;_@#$&{}<>]+/g, '_');}
1953        var itemTemplate = _.template('<li class="border_color opacity font_color shadow">'+
1954            '<div class="img_container"><a href="<%= url %>"><img src="<%= img %>"></a></div>'+
1955            '<div class="title bgr_color"><a href="<%= url %>"><%= title %></a></div>'+
1956            '<div class="authors bgr_color"><span data-trans="Authors:">Authors:</span> <%= authors %></div></li>');
1957        var target = jQuery('#books ul.book');
1958        jQuery.ajax({
1959            url: 'https://www.googleapis.com/books/v1/volumes?q='+query,
1960            dataType: 'jsonp',
1961            success: ensure(function(r){
1962                target.find('li').detach();
1963                var records = {'query': query};
1964                for(var i in r.items){
1965                    var vi = r.items[i].volumeInfo;
1966                    if(vi.authors == null) continue;
1967                    if(vi.imageLinks == null){
1968                        vi.imageLinks = {};
1969                    }
1970                    records['id'+i] = r.items[i].id;
1971                    records['authors'+i] = vi.authors.join('|');
1972                    records['title'+i] = vi.title
1973                    records['subtitle'+i] = vi.subtitle || '';
1974                    records['img'+i] = vi.imageLinks.thumbnail;
1975                    var title = vi.title;
1976                    var name = vi.title;
1977                    if(vi.subtitle){
1978                        title = title + ': ' + vi.subtitle;
1979                        name = name + '-' + vi.subtitle;
1980                    }
1981                    var authorLinks = [];
1982                    jQuery.each(vi.authors, function(i,a){
1983                        authorLinks.push('<a href="https://wn.com/'+esc(a)+'">'+a+'</a>')
1984                    });
1985                    var ctx = {
1986                        id: r.items[i].id,
1987                        url: 'https://wn.com/'+esc(vi.authors[0]+'-'+name)+'/#/book',
1988                        img: vi.imageLinks.thumbnail,
1989                        title: title,
1990                        authors: authorLinks.join(', '),
1991                    };
1992                    var text = itemTemplate(ctx);
1993                    target.append(text);
1994                }
1995                jQuery.ajax({
1996                   url: 'http://my.wn.com/bookcache/',
1997                   type: 'GET',
1998                   dataType: 'script',
1999                   data: records
2000                });
2001            })
2002        });
2003    });
2004    // -->
2005    </script>
2005
2006
2007
2008
2009    <!-- popup login, requires the same jquery.postmessage.min.js that bgr upload uses ^^^^ -->
2010
2011    <!-- bgr upload -->
2012    
2012<script type="text/javascript"></script>
2012
2013    
2013<script type="text/javascript"></script>
2013
2014    
2014<script type="text/javascript"><!--
2015    set_iframe = ensure(function(){
2016        var old_close = window.ifr_close;
2017        var new_ifr_close = function(){
2018            window.ifr_close = old_close;
2019            old_close();
2020            var style = jQuery.cookies.get(wnstyle_cookie);
2021            if (style) {
2022                switchStyle(style);
2023            }
2024        }
2025        if(old_close != new_ifr_close){
2026            window.ifr_close = new_ifr_close;
2027        }
2028        return ifr_iframe(400, 520, 'https://login.wn.com/skin/');
2029    });
2030
2031    edit_in_iframe = ensure(function(){
2032        var old_close = window.ifr_close;
2033        var new_ifr_close = function(){
2034            window.ifr_close = old_close;
2035            old_close();
2036            location.reload(true);
2037        }
2038        if(old_close != new_ifr_close){
2039            window.ifr_close = new_ifr_close;
2040        }
2041        var w = Math.min($(document).width(), 1024);
2042        var h = Math.min($(document).height(), 800);
2043        return ifr_iframe(w, h, 'https://manage.wn.com/editform/wn.com/My Books/');
2044    });
2045    // -->
2046    </script>
2046
2047
2048    
2048<script type="text/javascript">
2049
2050var start_export = ensure(function(){
2051    var w = $('body').width();
2052    $.blockUI({
2053        message: '<img class="ifr_close" title="Close" src="//ecdn4.wn.com/or/ula/ewn/closebox.png" onclick="login_close()" style="float:right;margin: -15px;z-index: 5;position: relative;">'+
2054                 '<textarea class="export_videos_list" style="width:99%; height: 99%; margin: 3px; border: solid 1px #ccc; border-radius: 4px"></textarea>',
2055        css: {
2056            width: '880px',
2057            height: '495px',
2058            top: '15%',
2059            cursor: 'default',
2060            applyPlatformOpacityRules: false,
2061            left: (parseInt((w - 880) * 50 / w) + '%'),
2062            border: '5px solid #eff2f3',
2063            backgroundColor: '#eff2f3',
2064            '-webkit-border-radius': '7px',
2065            '-moz-border-radius':    '7px',
2066            '-khtml-border-radius': '7px',
2067            'border-radius': '7px'
2068         },
2069        onBlock: function() { 
2070            var exports = [];
2071            var pl = videoplayers[1].getPlaylist();
2072            for(var i in pl){
2073                var vurl = 'https://youtube.com/watch?v='+ pl[i].video_id;
2074                exports.push(vurl+' '+pl[i].title);
2075            }
2076            $('.export_videos_list').val(exports.join('\n'));
2077        } 
2078    });
2079    return false;
2080});
2081    </script>
2081
2082
2083
2084    <!-- popup login, requires the same jquery.postmessage.min.js that bgr upload uses ^^^^ -->
2085    
2085<script type="text/javascript">
2086    login_complete_i = ensure(function(){
2087        login_close();
2088        query_user_actions();
2089    });
2090    </script>
2090
2091    
2091<script type="text/javascript"></script>
2091
2092
2093    
2093<script type="text/javascript"></script>
2093
2094    
2094<script type="text/javascript"></script>
2094
2095    
2095<script type="text/javascript"></script>
2095
2096  
2097    <!-- Google Recaptcha API CDN -->
vendor: 104 bytes, lines 2097-2099
2097
2098    <script defer="None" src="https://www.google.com/recaptcha/api.js" async="None"></script>  
2099     
2099<script>
2100        var allow_submit = false        
2101        function captcha_filled () {
2102            allow_submit = true
2103        }
2104        
2105        function captcha_expired () {
2106            allow_submit = false
2107        }       
2108        
2109        function check_captcha_filled (e) {
2110            console.log('captcha-verified')
2111            if (!allow_submit) {        
2112                //alert('ERROR: Please verify you are human by filling out the captcha')
2113    						$( "#frm-result" ).text("Please validate your reCAPTCHA.");
2114                return false
2115            }
2116            captcha_expired()
2117            return true
2118        }
2119    	</script>
2119 	
2120    	
2121      
2122  
2122<script type="text/javascript"></script>
2122
2123  
2123<script type="text/javascript"></script>
2123
2124  
2124<script><!--
2125  jQuery(function(){
2126    jQuery('input.top_query').autocomplete('http://', {
2127        selectFirst: false,
2128        matchSubset: false,
2129        scroll: false,
2130        max: 20,
2131        doSearch: window.doAutoComplete
2132    }).result(function(event, item, formatted) {
2133        if(window.wn_search_mangler){
2134            form = jQuery(this).parents().find('form:first')[0];
2135            wn_search_mangler(form);
2136        }else{
2137            wn_search_performed(event, formatted);
2138        }
2139    });
2140  });
2141  // -->
2142  </script>
2142
2143
2144
2145
2146
2147     
2147<script type="text/javascript"><!--
2148    // including the counter script
2149    ensure(function() {
2150        counter_load = ensure(function(){
2151            // disabled for now
2152            return false;
2153
2154            var s = document.createElement('script');
2155            s.type = 'text/javascript';
2156            s.async = true;
2157            s.src = 'http://counter2.wn.com/count.js';
2158            var x = document.getElementsByTagName('script')[0];
2159            x.parentNode.insertBefore(s, x);
2160        });
2161        if (window.attachEvent)
2162            window.attachEvent('onload', counter_load);
2163        else
2164            window.addEventListener('load', counter_load, false);
2165    })();
2166    // done including the counter
2167    // -->
2168    </script>
2168
2169
2170
2171    
2171<script type="text/javascript"><!--
2172        playlist_name = "My books";
2173        playlist_id = null;
2174        playlists_by_id = {};
2175        playlists = [
2176        ];
2177        page_id = 1; // fixme
2178        // -->
2179    </script>
2179
2180
2181
2182
2183
2184    
2185
2186
2187<script type="text/javascript">
2188
2189  var _gaq = _gaq || [];
2190  _gaq.push(['_setAccount', 'UA-5075628-13']);
2191  _gaq.push(['_trackPageview', window.location.pathname + window.location.search + window.location.hash]);
2192  _gaq.push(['_setAccount', 'UA-1177289-31']);
2193  _gaq.push(['_setDomainName', '.wn.com']);
2194  _gaq.push(["_setPageGroup", 1, "page"]);
2195  _gaq.push(["_setPageGroup", 2, "system"]);
2196  _gaq.push(['_trackPageview']);
2197
2198  var scookie=$.cookies.get('wnsearch');
2199  if(scookie){
2200      _gaq.push(['_trackPageview', 'https://wn.com/?qs='+scookie]);
2201      $.cookies.set('wnsearch', '');
2202  }
2203  (function() {
2204    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
2205    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
2206    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
2207  })();
2208</script>
2208
2209
2210
2211
2212<script type="text/javascript">
2213
2214  /* wrs: attempt to track how long people stay on the page by logging an event every 15 seconds */
2215  var wrs_page_load_time = new Date().getTime();
2216  var wrs_last_log_time = 0;
2217  var wrs_log_interval = 30;
2218
2219  function wrs_log_time_on_page()
2220  {
2221      /* calculate time on page, fudge it up a little in case event fires early, then round down to nearest 15 seconds */
2222      var wrs_time_on_page = 1 + ((new Date().getTime() - wrs_page_load_time) / 1000);
2223      wrs_time_on_page = wrs_time_on_page - (wrs_time_on_page % 15);
2224
2225      if(wrs_time_on_page < 180 || (wrs_time_on_page - wrs_last_log_time) > wrs_log_interval){
2226          wrs_last_log_time = wrs_time_on_page;
2227          if(wrs_time_on_page > 600)
2228              wrs_log_interval = 120;
2229          if(wrs_time_on_page > 2400)
2230              wrs_log_interval = 300;
2231          _gaq.push(['_trackEvent', 'WNAnything', 'StillOnPage', wrs_time_on_page.toFixed()]);
2232      }
2233  }
2234
2235  setInterval(wrs_log_time_on_page, 15000);
2236</script>
2236
2237
2238
2239
2240
2241				<meta property="og:title" content="My books" />
2242        <meta property="og:url" content="https://wn.com/My_Books" />
2243        <meta property="og:image" content="[]" />
2244        <meta property="og:site_name" content="World News" />
2245
2246        <meta property="og:video" content="[]"/>
2247        <meta property="og:video:height" content="240" />
2248        <meta property="og:video:width" content="320" />
2249        <meta property="og:video:type" content="application/x-shockwave-flash" />
2250
2251
2252    
2252<script type="text/javascript"></script>
2252
2253
2254
2255
2256		
2256<script async="None" src="https://cdn.onthe.io/io.js/fMXW9rrR6xmp"></script>
2256
2257    
2257<script>
2258    window._io_config = window._io_config || {};
2259    window._io_config["0.2.0"] = window._io_config["0.2.0"] || [];
2260    window._io_config["0.2.0"].push({
2261        page_url: window.location.origin + window.location.pathname + window.location.search,
2262    	page_url_canonical: "http://mybooks.com/",
2263        page_title: "My books",
2264        page_type: "default",
2265    	page_language: "en"
2266    });
2267    </script>
2267
2268
2269		    		
2270	 
2271
2272</head>
2273
2274<body onLoad="if(!document.location.hash && document.location.pathname.split('/').length <= 2){document.getElementById('video_query').focus();}">
2275
2276<script>(function(d, s, id) {
2277  var js, fjs = d.getElementsByTagName(s)[0];
2278  if (d.getElementById(id)) return;
2279  js = d.createElement(s); js.id = id;
2280  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.3";
2281  fjs.parentNode.insertBefore(js, fjs);
2282}(document, 'script', 'facebook-jssdk'));</script>
2282
2283<div id="fb-root"></div>
2284
2285
2286
2287
2288
2289
2290
2291<div class="custom_bgr">
2292
2293	<div class="share-buttons">
2294
2295	   <!-- Email -->
2296	   <a href="javascript:void(0);" id="https://wn.com/api/upge/cheetah-photo-search/send_email?title=My books&url=https://wn.com/My_Books" onclick="return popUp(this.id)" class="email"><i class="fa fa-envelope-o"></i></a>
2297
2298
2299	    <!-- Facebook -->
2300	    <a href="javascript:void(0);" id="http://www.facebook.com/sharer.php?u=https://wn.com/My_Books" onclick="return popUp(this.id)" class="facebook"><i class="fa fa-facebook" aria-hidden="true"></i>
2301	    </a>
2302
2303
2304	    <!-- Twitter -->
2305	    <a href="javascript:void(0);" id="https://twitter.com/share?url=https://wn.com/My_Books&amp;text=My books" onclick="return popUp(this.id)" class="twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a>
2306		
2307		
2308		  <!-- Whatsapp -->
2309
2310
2311
2312	</div>
2313
2314
2315
2316
2317        
2317<script type="text/javascript"><!--
2318        window.page_query = 'My books';
2319
2320        update_user_actions = ensure(function(data){
2321         		if(data.username){
2322                    window.username = data.username;
2323                }
2324                $(function(){
2325                    $('#login').html(data.html);
2326                    if(data.is_staff){
2327                        $('.is_staff').show();
2328                    }
2329                    if(data.editable){ // user is owner
2330                        $('.signup-box').html('<a id="id_save_playlist"  class="sign_up" onclick="return save_playlist(this.href)" href="https://editor.wn.com/save_playlist/My Books/"><span data-trans="Save playlist">Save playlist</span></a>');
2331                        $('.button').html('<a id="id_save_playlist"  class="sign_up" onclick="return save_playlist(this.href)" style="float: none !important;" href="https://editor.wn.com/save_playlist/My Books/"><span data-trans="Save this page">Save this page</span></a>');
2332                    }else if(data.username){
2333                        $('.signup-box').html('<a onclick="return login_and_save_playlist(\'https://editor.wn.com/save_playlist/My Books/\', this.href)" rel="nofollow" class="sign_up" href="https://editor.wn.com/fork/wn/My Books/"><span data-trans="Save playlist">Save playlist</span></a>');
2334                        $('.button').html('<a onclick="return login_and_save_playlist(\'https://editor.wn.com/save_playlist/My Books/\', this.href)" rel="nofollow" class="sign_up" style="float: none !important;" href="https://editor.wn.com/fork/wn/My Books/"><span data-trans="Save this page">Save this page</span></a>');
2335                    }
2336                    if(data.username){
2337                        $('.not_editable').hide();
2338                        $('.is_editable').show();
2339                    }else{
2340                        $('.not_editable').show();
2341                        $('.is_editable').hide();
2342                    }
2343                });
2344        });
2345
2346        query_user_actions = ensure(function(){
2347            var match = window.location.search.match(/^\?from=([^#&]*)/);
2348            if(match){
2349                window.fromUrl = window.fromURL || match[1];
2350                if(window.history.replaceState){
2351                    window.history.replaceState({}, '', window.location.href.replace(/(\?from=[^#&]*)/, ''));
2352                }
2353            }
2354            jQuery.ajax({
2355                data: {
2356                    edit: 'My Books',
2357                    owner: 'wn',
2358                    author: 'system',
2359                    atUrl: window.location.protocol + '//' + window.location.host + window.location.pathname + window.location.hash,
2360                    fromUrl: window.fromSent?null:window.fromUrl,
2361                    built: '1791403099.91'
2362                },
2363                dataType: 'jsonp',
2364                url: 'https://login.wn.com/actions/i/',
2365                success: function(data) {
2366                    update_user_actions(data);
2367                },
2368            });
2369            window.fromSent = true; // only count it once
2370        });
2371        query_user_actions();
2372        // -->
2373        </script>
2373
2374
2375
2376
2377
2378		
2379
2380
2381
2382			<div class="navbar-banner" style="text-align: center;">
2383			
2383<script type="text/javascript"><!--//<![CDATA[
2384			   var m3_u = (location.protocol=='https:'?'https://phpadsnew.wn.com/www/delivery/ajs.php':'http://phpadsnew.wn.com/www/delivery/ajs.php');
2385			   var m3_r = Math.floor(Math.random()*99999999999);
2386			   if (!document.MAX_used) document.MAX_used = ',';
2387			   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
2388			   document.write ("?zoneid=464");
2389			   document.write ('&amp;cb=' + m3_r);
2390			   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
2391			   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
2392			   document.write ("&amp;loc=" + escape(window.location));
2393			   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
2394			   if (document.context) document.write ("&context=" + escape(document.context));
2395			   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
2396			   document.write ("'><\/scr"+"ipt>");
2397			//]]>--></script>
2397<noscript><a href='http://phpadsnew.wn.com/www/delivery/ck.php?n=af9a85ca&amp;cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://phpadsnew.wn.com/www/delivery/avw.php?zoneid=464&amp;cb=INSERT_RANDOM_NUMBER_HERE&amp;n=af9a85ca' border='0' alt='' /></a></noscript>
2398			</div>
2399
2400
2401
2402
2403
2404
2405<div id="header">
2406    <div class="container">
2407
2408
2409            <div class="logo"><a href="https://wn.com/" target="_blank"><img src="//ecdn4.wn.com/or/assets/assets/anything/logo.png" alt="World News" /></a></div>
2410
2411					
2412          
2413            <!-- <div class="searchbox">
2414                <input name="query" type="text" placeholder="My Books" id="video_query" class="top_query"   />
2415                <span class="queryTooltip">Create your page here</span>
2416                <input type="image" src="//ecdn4.wn.com/or/images/search-button.png" id="news-search"  />
2417            </div> -->
2418						
2419
2420
2421            <div class="top-navigation">
2422
2423
2424
2425                <style>#login a:hover {background-color:#eef;}</style>
2426                <!-- Login in button  -->
2427                <div class="login-box pull-right">
2428           			  	<a href="javascript:void(0);" class="login-button dropdown-toggle TTip"><i class="fa fa-cog"></i></a>
2429	                    <div id="login" class="dropdown-menu"></div>
2430
2431                </div>
2432
2433
2434                <!--  header icons  -->
2435                <div class="topIcons pull-right mobile-hide fs-class">
2436								
2437									 <div class="separator"></div>
2438			              <!-- fullscreen -->
2439                    <!-- / fullscreen -->
2440
2441                    <!-- <a href="http://tv.wn.com/My books" class="tv_icon TTip"><span data-trans="TV mode">TV mode</span></a>
2442                    <a class="chat TTip" onClick="activateTab('chat'); return false;" href="javascript:void(0);"><i class="fa fa-comments-o fa-2x" aria-hidden="true"></i><span>CHAT</span></a> -->
2443
2444                </div>
2445
2446                <div class="topIcons pull-right">
2447								 	<div class="separator"></div>
2448                  
2449                   <a href="http://twitter.com/home?status=https://wn.com/My_Books" class="twitter popup TTip"><span data-trans="Tweet this page">Tweet this page</span></a>
2450
2451                   <a href="http://www.facebook.com/sharer.php?u=https://wn.com/My_Books" class="facebook popup TTip"><span data-trans="share on Facebook">share on Facebook</span></a>
2452                    <div class="separator"></div>
2453                </div>
2454
2455                <!--  date  -->
2456                <div class="topIcons pull-right fs-class">
2457
2458
2459                        <div class="top-date mobile-hide">Wednesday, 07 October 2026</div>
2460                </div>
2461                <!--  /date  -->
2462
2463        </div>
2464        <!-- /top-navigation -->
2465    </div>
2466</div>
2467
2468    
2469
2470
2471
2472
2473
2474
2475	
2476	
2477
2478
2479							
2480				
2481				
2482        
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497		
2498		
2499
2500
2501
2502
2503
2504
2505	<style type="text/css">
2506	                .custom_bgr ul.sort-box li .relevance .fa{ color: #55A4F2; }
2507	</style>
2508
2509    <!-- ====================  NAVIGATION starts ================= -->
2510    <div id="nav" class="nav">
2511
2512        <div class="container">
2513
2514            <ul id="main-menu" class="tabtrigger">
2515						
2516								
2517
2518								
2519
2520								
2521                <li ><a id="#expand" onClick="_gaq.push(['_trackEvent', 'WNAnything', 'News', jsQuery]);return false;" ><span data-trans="News">News</span></a></li>
2522        
2523              <!--  <li class="mobile-hide"><a id="#podcasts_data" onClick="load_podcast('My books'); _gaq.push(['_trackEvent', 'WNAnything', 'PodcastsData', jsQuery]); return false;" href="javascript:void(0);"><span data-trans="Podcasts ">Podcasts </span></a></li> -->
2524
2525								
2526								
2527							 
2528    
2529
2530
2531
2532
2533
2534
2535
2536
2537						 
2538
2539
2540
2541
2542
2543
2544								
2545								
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560            </ul>
2561
2562        </div>
2563    </div>
2564    <!-- navigation ends  -->
2565
2566
2567
2568
2569
2570    <!-- SET LYRICS ARTISTS NAME -->
2571
2572
2573
2574
2575    <div class="submenus">
2576		
2577        <div class="container">
2578
2579            <div class="add_playlist pull-right">
2580                <div class="multiple-playlists">
2581                    <input type="search" id="id_new_playlist" class="playlist-form-control" value="create playlist" />
2582                    <div onclick="add_dynamic_playlist($(this).siblings('input').val())" class="add_dynamic_playlist subtabs btn btn-default"><i class="fa fa-plus"></i></div>
2583                </div>
2584            </div>
2585						
2586						<div class="submenu-container">
2587
2588
2589
2590
2591
2592
2593
2594        <ul class="submenu tabtrigger" id="more_menu"  style="display:none;">
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609                    <li class="mobile-hide"><a href="javascript:void(0);" id="#bing_results" onClick="load_iframe_url('bing_results_iframe', 'http://www.bing.com/search?q=My books');
2609 _gaq.push(['_trackEvent', 'WNAnything', 'Bing Results', jsRelQuery]); return false;" href="javascript:void(0);"><span data-trans="Bing">Bing</span></a></li>
2610
2611        </ul>
2612
2613
2614
2615				</div>
2616
2617        </div>
2618    </div>
2619    <!-- / container submenus -->
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630<div class="wrapper">
2631<div class="container">
2632
2633
2634					
2635<div id="tabcontainer">
2636
2637
2638
2639
2640
2641
2642
2643
2644    <!-- =======================
2645    CRYPTOCURRENCY ======================== -->
2646
2647
2648
2649
2650    <!-- =======================
2651    WEATHER ======================== -->
2652
2653    <!-- =======================
2654    /WEATHER ======================== -->
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664    <!-- =======================
2665    WIKIPEDIA ======================== -->
2666    <!-- =======================
2667    /WIKIPEDIA ======================== -->
2668
2669
2670
2671
2672
2673
2674
2675    <!-- =======================
2676    RADIO ======================== -->
2677    <!-- =======================
2678    RADIO ======================== -->
2679
2680
2681
2682	
2683	<!-- =======================
2684	/BING ======================== -->	
2685	<div id="bing_results" style="display:none;">
2686		<iframe name="bing_results_iframe" src="about:blank" frameborder="0" width="950px" height="1800" scrolling="Auto" marginheight="0" marginwidth="0"></iframe>
2687	</div>
2688	<!-- =======================
2689	/BING ======================== -->
2690	
2691	
2692
2693
2694
2695
2696
2697
2698    <!--  RELATED MOVIE DATA   -->
2699    
2700
2701
2702
2703    <!--  RELATED MOVIE DATA ends  -->
2704
2705
2706
2707
2708
2709
2710
2711
2712    <!--  RELATED FILMOGRAPHY DATA   -->
2713    <!--  RELATED FILMOGRAPHY DATA ends  -->
2714
2715
2716
2717
2718
2719
2720
2721    <!--  RELATED TV SERIES DATA   -->
2722    <!--  RELATED TV SERIES DATA ends  -->
2723
2724
2725
2726
2727
2728
2729
2730
2731    <!--  PODCASTS DATA   -->
2732    
2733    <div id="podcasts_data" style="display:none" >
2734
2735            <h2>Podcasts:</h2>
2736						
2737            <div class="podcast-results">
2738            
2739            </div>
2740    </div>
2741  
2742   
2743
2744
2745
2746
2747
2748    <!--  RELATED BOOKS DATA   -->
2749    <!--  RELATED BOOKS DATA ends  -->
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759    <!--  RELATED QUOTES DATA   -->
2760    <!--  RELATED QUOTES DATA ends  -->
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771    <!--  RELATED MUSIC DATA   -->
2772    <div id="music_data" style="display:none">
2773
2774
2775    </div>
2776    <!--  RELATED MUSIC DATA ends  -->
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786<!-- ================DESCRIPTIONS 0 ==================== -->
2787        <div id="details0" class="details-page" style="display:none">
2788
2789            <div class="inline-links border_color">
2790
2791
2792                 <i class="fa fa-envelope-o"></i><a onClick="load_iframe_url('footer_iframe', 'https://wn.com/api/upge/cheetah-photo-search/send_email?title=My books&url=https://wn.com/My_Books&description=[]');return false;" data-reveal-id="footer-iframe" data-trans="Email this Page" href="javascript:void(0);">Email this Page</a>
2793
2794
2795                <i class="fa fa-play"></i><a href="javascript:void(0);" class="play_all_fs_0"  data-trans="Play all in Full Screen">Play all in Full Screen</a>
2796
2797                <i class="fa fa-plus"></i><a href="javascript:void(0);" onClick="load_video_details('My Books', '0')" data-trans="Show More Related Videos">Show More Related Videos</a>
2798            </div>
2799
2800
2801            <div class="rslides-box-details">
2802                <ul class="rslides details">
2803                </ul>
2804                <div class="carousel-pause">
2805                     <span class="pause"><i class="fa fa-pause"></i></span>
2806                     <span class="play"><i class="fa fa-play"></i></span>
2807                </div>
2808            </div>
2809			
2810	           <div class="moreDetails"></div>
2811				
2812				
2813						 
2814
2815
2816
2817    </div>
2818
2819
2820    <!-- video descriptions ends -->
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830    <!-- ================= VIDEOS  content ==================-->
2831
2832    <!-- ================PLAYLIST 0 ==================== -->
2833    <div id="playlist0" class="playlist-page" style="display:none">
2834
2835        <div onclick="return doneFullscreen(0);" id="home0" class="close-player TTip" style="display: none;">
2836			<div class="fs-logo"><img src="//ecdn4.wn.com/or/assets/assets/wn/img/logo.png" alt="World News" /></div>
2837			<i class="fa fa-arrow-circle-o-left" aria-hidden="true"></i><i class="arrow"></i><span>back</span>
2838
2839		</div>
2840
2841
2842      <div class="upper-block row">
2843
2844      <div id="playlist_videos_results-0" class="playlist_videos_results">
2845
2846			<div style="display: flex">
2847
2848	            <div class="col-md-8 player-col">
2849		                    <div id="playercontainer0" class="playercontainer">
2850		                                <object id="videoplayerobj"></object>
2851		                    </div>
2852		         	</div>
2853
2854
2855
2856	        		<div class="col-md-4 playlist-col">
2857
2858	            		<div class="playlistformating" style="height: 455px;">
2859
2860		                    <div id="playlistformating0">
2861
2862									    <ul class="sort-box">
2863
2864	<li class="TTip"><span>Most Related</span><a href="https://wn.com/My books?upload_time=all_time&orderby=relevance" class="relevance"><i class="fa fa-sort-amount-desc"></i></a></li>
2865
2866	<li class="TTip"><span>Most Recent</span><a href="https://wn.com/My books?upload_time=all_time&orderby=published" class="published"><i class="fa fa-clock-o"></i></a></li>
2867
2868	<li class="TTip"><span>Most Popular</span><a href="https://wn.com/My books?upload_time=all_time&orderby=viewCount" class="viewCount"><i class="fa fa-fire TTip"></i></a></li>
2869
2870	<li class="TTip"><span>Top Rated</span><a href="https://wn.com/My books?upload_time=all_time&orderby=rating" class="rating"><i class="fa fa-star"></i></a></li>
2871	                    
2872											</ul>
2873
2874
2875
2876	                                       <ul class="playlistcontainer" id="playlistcontainer0"></ul>
2877
2878
2879
2880	                                       <!-- /playlist tools -->
2881	                                       <ul class="playlist-box" id="playlist-tools0">
2882
2883																				 		 			<li class="switch_style"><a href="javascript: void(0);" onclick="switchPlayerStyle(this);" class="TTip"><i class="fa fa-expand" aria-hidden="true"></i><span>expand screen to full width</span></a></li>
2884
2885	                                                <li><a href="javascript: void(0);" class="repeat checkp TTip"  id="playlistrepeat0"><span>repeat playlist</span></a></li>
2886
2887	                                                <li><a href="javascript: void(0);" class="shuffle checkp TTip" id="playlistshuffle0"><span>shuffle</span></a></li>
2888
2889	                                                <li><a href="javascript: void(0);" class="replay checkp TTip" id="replaycurrent0"><span>replay video</span></a></li>
2890
2891	                                                <li>
2892	                                                    <a href="javascript: void(0);" id="playlist_clear0" class="playlist_clear playlist_clear1 TTip"><span data-trans="clear playlist">clear playlist</span></a>
2893	                                                    <a href="javascript: void(0);" id="playlist_restore0" class="playlist_restore playlist_restore1 TTip" style="display: none;"><span data-trans="restore">restore</span></a>
2894	                                                </li>
2895	                                                <li>
2896	                                                    <a href="#playlist-template-with-images" class="videoplayer-playlist-template thumb thumb-preview TTip" style="display: none;"><span data-trans="images"><i></i>images</span></a>
2897	                                                    <a href="#playlist-template-simple" class="videoplayer-playlist-template list list-preview TTip"><span data-trans="list"><i></i>list</span></a>
2898	                                                </li>
2899
2900
2901	                                        </ul>
2902	                                        <!-- /playlist-box -->
2903	                        </div>
2904							<!-- /playlistcontainer -->
2905
2906	         		</div>
2907	        		<!-- / playlistformatting -->
2908
2909	        	</div>
2910	        	<!-- / col-md-4 -->
2911
2912			</div>
2913			<!-- /flex -->
2914			</div>
2915			</div>
2916			<!-- / upper-block row -->
2917
2918			
2919		<div class="bottom-block">
2920			<div class="row">
2921
2922			<div class="col-md-8">
2923				<div class="row">
2924					<div  class="col-md-12">
2925								<div class="outer-div">
2926						<div class="playlist-author">						
2927            </div>
2928						<div class="playposition pull-right">PLAYLIST TIME: <span id="playposition0"></span></div>
2929									</div>
2930					</div>
2931				</div>
2932
2933                <!-- description -->
2934                <div class="description_box">
2935                	<div id="descriptionsplace0" class="descriptionsplace"></div>
2936				</div>
2937
2938			</div>
2939			<!-- /col-md-8 -->
2940
2941			<div class="col-md-4 playlist-col-down">
2942					
2943				
2944	 
2945			 	<!-- BITCHUTE STORIES  -->
2946      											
2947                                
2948					
2949					
2950				
2950<script type="text/javascript"><!--//<![CDATA[
2951				   var m3_u = (location.protocol=='https:'?'https://phpadsnew.wn.com/www/delivery/ajs.php':'http://phpadsnew.wn.com/www/delivery/ajs.php');
2952				   var m3_r = Math.floor(Math.random()*99999999999);
2953				   if (!document.MAX_used) document.MAX_used = ',';
2954				   document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
2955				   document.write ("?zoneid=465");
2956				   document.write ('&amp;cb=' + m3_r);
2957				   if (document.MAX_used != ',') document.write ("&amp;exclude=" + document.MAX_used);
2958				   document.write (document.charset ? '&amp;charset='+document.charset : (document.characterSet ? '&amp;charset='+document.characterSet : ''));
2959				   document.write ("&amp;loc=" + escape(window.location));
2960				   if (document.referrer) document.write ("&amp;referer=" + escape(document.referrer));
2961				   if (document.context) document.write ("&context=" + escape(document.context));
2962				   if (document.mmm_fo) document.write ("&amp;mmm_fo=1");
2963				   document.write ("'><\/scr"+"ipt>");
2964				//]]>--></script>
2964<noscript><a href='http://phpadsnew.wn.com/www/delivery/ck.php?n=a58ee0cf&amp;cb=5' target='_blank'><img src='http://phpadsnew.wn.com/www/delivery/avw.php?zoneid=465&amp;cb=5&amp;n=a58ee0cf' border='0' alt='' /></a></noscript>
2965			</div>
2966
2967		</div>
2968		 <!-- 	/playlist_videos_results -->
2969
2970
2971       		 <!-- mainvideoresults -->
2972            <div id="video-results-0" class="mainvideoresults">
2973
2974                          <div style="display: none">
2975                          </div>
2976             </div>
2977             <!-- /mainvideoresults -->
2978
2979
2980
2981	
2982
2983
2984    <!-- Query: My books, VSID: 0 -->
2985
2986
2987
2988
2989		</div>
2990		 <!--  /bottom-block row -->
2991
2992
2993    </div><!-- /playlist -->
2994
2995
2996
2997        
2997<script type="text/javascript"><!--
2998
2999            function playQuery(vsid, query, title){
3000                        var playlist = findOrAddPlaylist(query, title, function(status, num){
3001                            if(status == 'loading'){
3002                                $(".interview-play").hide();
3003                                $(".interview-play-off").show();
3004                            }
3005                            if(status == 'loaded'){
3006                                $(".interview-play").hide();
3007                                $(".interview-play-off").show();                                   $('div#playlist'+num).find('li.playlistitemli:first').find('a.playlistitem:first').click();
3008
3009                            }
3010                            if(status == 'failed'){
3011                                $(".interview-play-off").hide();
3012                                $("#wiki"+vsid+" .interview-play-none").show();
3013                                $("#wiki"+vsid+" .interview-play").remove();
3014                                $("#wiki"+vsid+" .interview-play-off").remove();
3015                            }
3016                    });
3017            }
3018            function findOrAddPlaylist(query, title, callback){
3019                var foundPlaylist = null;
3020
3021                $('#playlist_menu li a').each(function(i){
3022                    if($(this).text() == title) {
3023                        foundPlaylist = + $(this).attr('id').replace('#playlist','');
3024                    }
3025                });
3026
3027                if(foundPlaylist != null){
3028                    callback('loading', foundPlaylist);
3029                    callback('loaded', foundPlaylist);
3030                } else {
3031                    _add_dynamic_playlist(query, title, callback, 0, true);
3032                }
3033            }
3034
3035
3036
3037			function mouseOverMe(elem){
3038
3039				elem.addClass('played');
3040				if (elem.attr('id')){
3041					var video_id = elem.attr('id');
3042					elem.find('.player').html('<iframe id='+ video_id +' src="https://www.youtube.com/embed/'+ video_id +'?enablejsapi=1&version=3&wmode=transparent&autoplay=1" frameborder="0" allowfullscreen style="width: 100%; height: 100%;"></iframe><div class="overlay" style="display: none;"></div>');
3043				} else {
3044					var query = elem.find('.keywords').html();
3045							$.ajax({
3046									context: elem,
3047			                        url: 'https://wn.com/api/upge/cheetah-search-adv/video',
3048			                        cache: true,
3049			                        data: {
3050			                            'query': query
3051			                        },
3052			                        dataType: 'jsonp',
3053			                        success: function(text) {
3054			                        	if (text.length > 0) {
3055			                            video_id = text[0].id;
3056			                            elem.find('.player').html('<iframe  id='+ video_id +' src="https://www.youtube.com/embed/'+ video_id +'?enablejsapi=1&version=3&wmode=transparent&autoplay=1" frameborder="0" allowfullscreen style="width: 100%; height: 100%;"></iframe><div class="overlay" style="display: none;"></div>');
3057
3058			                         	}
3059			                       }
3060			                   });
3061					}
3062			}
3063
3064            var stopAllYouTubeVideos = function() {
3065              var iframes = document.querySelectorAll('iframe');
3066              Array.prototype.forEach.call(iframes, function(iframe) {
3067                iframe.contentWindow.postMessage(JSON.stringify({ event: 'command', func: 'pauseVideo' }), '*');
3068             });
3069            }
3070
3071            jQuery(function() {
3072
3073				jQuery(".playVideo").live("click", function() {            	
3074                       if(!$(this).hasClass("played")){
3075							stopAllYouTubeVideos();
3076				   			var elem = $(this);
3077				   			setTimeout(function(){
3078			                	mouseOverMe(elem);
3079			            	}, 1000);
3080			             }
3081                 });
3082        
3083		    	jQuery(".description_box .expandContent").live("click", function() {
3084		    		elem = $(this).parent().parent().parent().find('.descContent');
3085				    if(elem.height() > 51) {
3086				        elem.css('height', '44px');
3087				        $(this).html('Show More <i class="fa fa-caret-down"></i>');
3088				    }else{
3089				        elem.css('height', 'auto');
3090				        $(this).html('Hide <i class="fa fa-caret-up"></i>');
3091				    }
3092				});
3093
3094		        jQuery('.interview-play-off').click(function() {
3095                    $(".interview-play-off").hide();
3096                    $(".interview-play").show();
3097                    $(".videoplayer-control-pause").click();
3098                });
3099
3100
3101                jQuery(".video-desc .show_author_videos").live("click", function() {
3102                            query = $(this).attr('title');
3103                            container   = $(this).parent().parent().parent().find('.video-author-thumbs');
3104                            $(this).parent().parent().parent().find('.video-author-thumbs').css('height', '220px');
3105                        jQuery.ajax({
3106                                url: '/api/upge/cheetah-photo-search/videoresults',
3107                                data: {'query': query},
3108                                success: function(text) {
3109                                            if(!text) { text = i18n("No results"); }
3110                                            container.html(jQuery(text));
3111                                        }
3112                           });
3113                });
3114        });
3115        // -->
3116        </script>
3116
3117
3118
3119    
3119<script type="text/javascript"><!--
3120
3121		var largePalyerOn = false
3122		var player_width = jQuery('.player-col').width();
3123		var playlist_width = jQuery('.playlist-col').width();
3124		var container_width = jQuery('.container').width();
3125		var ww =  $(window).width();
3126		var pw =  $('.container').width();
3127		var margin_right = (ww-pw)/2;
3128		
3129		
3130		function switchPlayerStyle(link){
3131
3132			if (largePalyerOn == true) {	
3133				jQuery('.wrapper').find('.container').animate({ 'width' : container_width+'px' });
3134				jQuery('.wrapper').animate({ 'margin-top' : '15px' });				
3135				jQuery('.submenus').show();					
3136				jQuery('.bottom-block').animate({ 'width' : '100%' });
3137				jQuery('.player-col').animate({ 'width' : player_width+'%' });
3138				jQuery('.playlist-col').animate({ 'width' :playlist_width+'%' });
3139				jQuery('.playlist-col').css('position', 'relative').css('top', '0px').css('margin-top', '0px').css('right', '0px');
3140				jQuery('.playercontainer').css('width', '100%').css('padding-bottom', '56.25%');
3141				jQuery('.switch_style').css('left', '0px').css('top', '0px');
3142				$(link).html('<i class="fa fa-expand" aria-hidden="true"></i><span>expand screen to full width</span>');
3143				$(link).css('background', 'transparent');
3144				jQuery('.playlist-col-down').css('height', 'auto');
3145				jQuery('.share-buttons').show();		
3146				updateHeight();
3147				largePalyerOn = false
3148
3149         	} else {
3150				playlistWidth = jQuery('.playlist-col').width();
3151				playlistHeight = jQuery('.playlist-col').height();
3152				
3153				jQuery('.bottom-block').animate({ 'width' : container_width+'px' });
3154				jQuery('.wrapper').find('.container').animate({ 'width' : '100%' }).css('padding-left', '0px').css('padding-right', '0px');
3155				jQuery('.wrapper').animate({ 'margin-top' : '0px' });
3156				jQuery('.submenus').hide();				
3157				jQuery('.player-col').animate({ 'width' : '100%' });
3158				jQuery('.playercontainer').css('width', '70%').css('padding-bottom', '40%').css('padding-top', '0px');
3159				jQuery('.switch_style').css('position', 'absolute').css('left', 'auto').css('right', '0px').css('top', '-'+playlistHeight+'px');
3160				jQuery('.playlist-col').css('position', 'absolute').css('right', margin_right+'px').css('width', playlistWidth+'px').css('height', playlistHeight+'px');
3161				playerHeight = jQuery('.player-col').height();
3162				playlistTop = playerHeight+40;		
3163				
3164				jQuery('.share-buttons').hide();		
3165				jQuery('.playlist-col').delay(100).css('margin-top', '50px').animate({
3166					top: playlistTop+'px',
3167			    }, 800);
3168				jQuery('.playlist-col-down').css('height', '450px');
3169				$(link).html('<i class="fa fa-compress"></i><span>back</span>');
3170				$(link).css('background', '#c00');
3171				
3172        setTimeout(function(){
3173          updateHeight();
3174        }, 2000);
3175
3176				
3177				largePalyerOn = true
3178	         }
3179		}
3180
3181
3182
3183
3184        function load_lyrics(query, artist) {
3185            var song = query.replace("'","");
3186            var artist = artist.replace("'","");
3187            var scrollAmount = $(window).scrollTop();
3188            jQuery.ajax({
3189                url: '/api/upge/cheetah-photo-search/lyrics_playlist',
3190                data: {'query': song,
3191                       'artist': artist
3192                },
3193                success: function(text) {
3194                    if(!text) { text = ('No lyrics available'); }
3195                    jQuery('.lyrics_body').css('padding-top', scrollAmount+'px');
3196                    jQuery('.lyrics_body').html($(text));
3197										updateHeight();
3198                }
3199            });
3200            return false;
3201        }
3202
3203
3204
3205
3206        function find_more_videos() {
3207                      var query = jsQuery;
3208                      offset = last_count;
3209                      last_count += 8;
3210                      jQuery.ajax({
3211                              data: {
3212                              t: 'cheetah-photo-search/mvs_showmore01.txt',
3213                              offset: offset,
3214                              orderby: 'published',
3215                              corpus: 'current',
3216                              language_id: '1',
3217                              query: query
3218                          },
3219                          dataType: 'jsonp',
3220                          url: 'https://upge.wn.com/',
3221                          success: function(text) {
3222                                  jQuery('#searchresults').prepend(jQuery(text));
3223                          }
3224                      });
3225          }
3226          function more_videos() {
3227                      var query = jsQuery;
3228                      jQuery.ajax({
3229                              data: {
3230                              t: 'cheetah-photo-search/showmore.txt',
3231                              offset: '20',
3232                              query: query
3233                          },
3234                          dataType: 'jsonp',
3235                          url: 'https://upge.wn.com/',
3236                          success: function(text) {
3237                                  jQuery('#more_video_results').prepend(jQuery(text));
3238                                  jQuery('more_videos').hide();
3239
3240                          }
3241                      });
3242          }
3243
3244            // -->
3245            </script>
3245
3246
3247
3248    <!-- ================= VIDEO formatting ==================-->
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263    <!-- ===============   SLIDESHOW  ================== -->
3264    <!--    SLIDESHOW ENDS   -->
3265
3266
3267
3268
3269
3270
3271
3272
3273    <!--  RELATED LYRICS DATA   -->
3274    <!--  RELATED LYRICS DATA ends  -->
3275
3276
3277
3278
3279
3280
3281
3282<!-- =================== NEWS SECTION ======================= -->
3283
3284
3285<!-- news_tab -->
3286<div id="expand"  >
3287
3288   <div class="center-content">
3289	 
3290			<div class="col-md-8">					
3291					
3292					<div class="news_stories">
3293              
3294							<h2>Latest News for: My books</h2>
3295							
3296							
3297                                 
3298							
3299<div class="news-item">
3300
3301				
3302				
3303   		<a rel="nofollow" href="https://manage.wn.com/article/975960037" target="_blank" class="is_editable pull-right">Edit</a>
3304
3305 			<h3><a target="_blank" href="https://article.wn.com/view/2026/09/27/Pages_Why_you_should_buy_my_book/">Pages: Why you should buy my book</a></h3>
3306			
3307  		<ul class="article-footer pull-right">
3308			
3309			<li><div class="facebook"  onclick="popUp('https://www.facebook.com/sharer/sharer.php?u=https://article.wn.com/view/2026/09/27/Pages_Why_you_should_buy_my_book/&amp;t=Pages: Why you should buy my book'); return false;"><i class="fa fa-facebook"></i></div></li>
3310
3311			<li><div class="twitter" onclick="popUp('https://twitter.com/intent/tweet?url=https://article.wn.com/view/2026/09/27/Pages_Why_you_should_buy_my_book/&amp;text=Pages: Why you should buy my book'); return false;"><i class="fa fa-twitter"></i></div></li>
3312			</ul>
3313			
3314      
3315			<a target="_blank" href="https://www.sunstar.com.ph/cebu/pages-why-you-should-buy-my-book" class="resultsource">Sun Star</a>
3316			
3317      <span class="date">27 Sep 2026</span>
3318			
3319  		<div class="summary">
3320            <span dir="ltr" lang="en">My book <a href="https://wn.com/..." target="_blank" class="a_keyword_link">...</a> 50 <a href="https://wn.com/Lessons" target="_blank" class="a_keyword_link">Lessons</a> from my entrepreneurial journey has now sold over 3,<a href="https://wn.com/000" target="_blank" class="a_keyword_link">000</a> copies ... It is not really a business book ... If someone can learn from my mistakes without having to make all of them himself, then perhaps this book has served its purpose.</span>
3321      </div>			
3322			
3323
3324</div>
3325
3326                                 
3327							
3328<div class="news-item">
3329
3330				
3331				
3332   		<a rel="nofollow" href="https://manage.wn.com/article/972434995" target="_blank" class="is_editable pull-right">Edit</a>
3333
3334 			<h3><a target="_blank" href="https://article.wn.com/view/2026/07/02/My_Book_of_Hope_Shares_an_Inspiring_Journey_From_Depression_/">My Book of Hope Shares an Inspiring Journey From Depression to Healing and Renewal</a></h3>
3335			
3336  		<ul class="article-footer pull-right">
3337			
3338			<li><div class="facebook"  onclick="popUp('https://www.facebook.com/sharer/sharer.php?u=https://article.wn.com/view/2026/07/02/My_Book_of_Hope_Shares_an_Inspiring_Journey_From_Depression_/&amp;t=My Book of Hope Shares an Inspiring Journey From Depression to Healing and Renewal'); return false;"><i class="fa fa-facebook"></i></div></li>
3339
3340			<li><div class="twitter" onclick="popUp('https://twitter.com/intent/tweet?url=https://article.wn.com/view/2026/07/02/My_Book_of_Hope_Shares_an_Inspiring_Journey_From_Depression_/&amp;text=My Book of Hope Shares an Inspiring Journey From Depression to Healing and Renewal'); return false;"><i class="fa fa-twitter"></i></div></li>
3341			</ul>
3342			
3343			<img src="//ecdn7.wn.com/or/assets/assets/avp/img/no-ec.png"  style="width: 20px; height: 20px; float: left; margin-right: 10px; " /> 
3344      
3345			<a target="_blank" href="https://kdhnews.com/online_features/press_releases/my-book-of-hope-shares-an-inspiring-journey-from-depression-to-healing-and-renewal/article_901fdbd6-36fe-5e6b-83e2-5225a01b4c8b.html" class="resultsource">Killeen Daily Herald</a>
3346			
3347      <span class="date">02 Jul 2026</span>
3348			
3349  		<div class="summary">
3350            <span dir="ltr" lang="en"><a href="https://wn.com/B._J." target="_blank" class="a_keyword_link">B. J.</a> Owens offers an honest and compassionate look at living with depression while encouraging readers to separate who <a href="https://wn.com/..." target="_blank" class="a_keyword_link">...</a>.</span>
3351      </div>			
3352			
3353
3354</div>
3355
3356							
3357					</div>
3358
3359  				<novacuum>
3360            	<ul id="pagination">
3361										
3362
3363
3364											
3365											
3366                         <li class="active"><span>1</span></li>
3367											
3368              </ul>
3369           </novacuum>					 
3370			
3371		</div>
3372
3373		<div class="col-md-4">
3374
3375
3376
3377		
3378		
3379
3380			
3381
3382
3383
3384	
3385
3386        	<div class="news-search">
3387        		<h2>Article Search</h2>
3388            	<form accept-charset="utf-8" action="//search.wn.com/" method="get" class="form-horizontal" onsubmit="return check_captcha_filled()">
3389                <input type="hidden" name="action" value="search" />
3390                <input type="hidden" name="results_type" value="news" />
3391
3392                <div class="form-group">
3393                    <div class="row">
3394                        <div class="col-md-6  col-sm-12">
3395                        <input name="search_string" placeholder="My books" value="My books" maxlength="8192" class="top_searchstring top_query form-control input-lg" />
3396                        </div>
3397                        <div class="col-md-6 col-sm-12">
3398                        <button type="submit" class="btn btn-info top_submit">search</button>
3399                        <div class="btn btn-info search-tools-btn"><i class="fa fa-caret-down"></i> tools</div>
3400                        </div>
3401                    </div>
3402                </div>
3403
3404                <div class="search-tools-content bgr_color clearfix" style="display: none">
3405                    	<div class="search-header">You can search using any combination of the items listed below.</div>
3406																<br />
3407                                <div class="form-group">
3408                                    <div class="row">
3409                                            <div class="control-label col-md-3 col-sm-12">Language:</div>
3410                                            <div class="col-md-9 col-sm-12">
3411                                                <select name="language_id" class="form-control">
3412                                                              <option value="15">Afrikaans</option>
3413          <option value="26">Albanian</option>
3414          <option value="81">Amharic</option>
3415          <option value="38">Arabic</option>
3416          <option value="93">Armenian</option>
3417          <option value="97">Assamese</option>
3418          <option value="44">Azerbaijani</option>
3419          <option value="63">Bangla</option>
3420          <option value="61">Basque</option>
3421          <option value="94">Belarusian</option>
3422          <option value="42">Bengali</option>
3423          <option value="105">Bholpuri</option>
3424          <option value="27">Bosnian</option>
3425          <option value="64">Bulgarian</option>
3426          <option value="103">Burmese</option>
3427          <option value="104">Cambodian</option>
3428          <option value="66">Catalan</option>
3429          <option value="36">Chinese</option>
3430          <option value="30">Creole</option>
3431          <option value="24">Croatian</option>
3432          <option value="8">Czech</option>
3433          <option value="16">Danish</option>
3434          <option value="18">Dutch</option>
3435          <option value="1" selected>English</option>
3436          <option value="58">Estonian</option>
3437          <option value="76">Faroese</option>
3438          <option value="12">Finnish</option>
3439          <option value="39">Flemish</option>
3440          <option value="5">French</option>
3441          <option value="67">Galician</option>
3442          <option value="95">Georgian</option>
3443          <option value="6">German</option>
3444          <option value="34">Greek</option>
3445          <option value="79">Greenlandic</option>
3446          <option value="41">Gujarati</option>
3447          <option value="80">Haitian</option>
3448          <option value="22">Hausa</option>
3449          <option value="48">Hebrew</option>
3450          <option value="29">Hindi</option>
3451          <option value="13">Hungarian</option>
3452          <option value="68">Icelandic</option>
3453          <option value="20">Indonesian</option>
3454          <option value="78">Irish</option>
3455          <option value="2">Italian</option>
3456          <option value="45">Japanese</option>
3457          <option value="52">Kannada</option>
3458          <option value="96">Kazakh</option>
3459          <option value="32">Korean</option>
3460          <option value="85">Kurdish</option>
3461          <option value="86">Kurdish Kurmanji</option>
3462          <option value="100">Kyrgyz</option>
3463          <option value="59">Latvian</option>
3464          <option value="60">Lithuanian</option>
3465          <option value="82">Macedonian</option>
3466          <option value="7">Malay</option>
3467          <option value="84">Malayalam</option>
3468          <option value="74">Maltese</option>
3469          <option value="49">Marathi</option>
3470          <option value="69">Moldovan</option>
3471          <option value="71">Montenegrin</option>
3472          <option value="43">Nepali</option>
3473          <option value="9">Norwegian</option>
3474          <option value="91">Oriya</option>
3475          <option value="99">
3475Ossetic</option>
3476          <option value="54">Pashto</option>
3477          <option value="47">Persian</option>
3478          <option value="10">Polish</option>
3479          <option value="3">Portuguese</option>
3480          <option value="50">Punjabi</option>
3481          <option value="19">Romanian</option>
3482          <option value="88">Romansh</option>
3483          <option value="33">Russian</option>
3484          <option value="87">Rwandan</option>
3485          <option value="65">Scottish Gaelic</option>
3486          <option value="25">Serbian</option>
3487          <option value="17">Slovak</option>
3488          <option value="77">Slovenian</option>
3489          <option value="40">Somali</option>
3490          <option value="4">Spanish</option>
3491          <option value="21">Swahili</option>
3492          <option value="14">Swedish</option>
3493          <option value="23">Tagalog</option>
3494          <option value="31">Tamil</option>
3495          <option value="51">Telugu</option>
3496          <option value="37">Thai</option>
3497          <option value="11">Turkish</option>
3498          <option value="75">Ukrainian</option>
3499          <option value="46">Urdu</option>
3500          <option value="73">Uzbek</option>
3501          <option value="70">Vietnamese</option>
3502          <option value="53">Visayan</option>
3503          <option value="62">Welsh</option>
3504          <option value="56">Zulu</option>
3505
3506                                                </select>
3507                                            </div>
3508                                    </div>
3509                                </div>
3510                                <div class="form-group">
3511                                        <div class="row">
3512                                                <div class="control-label col-md-3 col-sm-12">Sort:</div>
3513                                                <div class="col-md-9 col-sm-12">
3514                                                          <select name="sort_type" class="form-control">
3515                                                                  <option value="relevance">Most relevant first</option>
3516
3517                                                                  <option value="oldest">Oldest first</option>
3518
3519                                                                  <option value="pub-datetime" selected>Newest first</option>
3520
3521                                                          </select>
3522                                                </div>
3523                                        </div>
3524                                </div>
3525                                <div class="form-group">
3526                                        <div class="row">
3527                                                    <div class="control-label col-md-3 col-sm-12">Indexed:</div>
3528                                                    <div class="col-md-9 col-sm-12">
3529                                                        <select name="corpus" class="form-control">
3530                                                                <option value="current" selected>last three days</option>
3531
3532                                                                <option value="recent">last three weeks</option>
3533
3534                                                        </select>
3535                                                    </div>
3536                                        </div>
3537                                </div>
3538                                <div class="form-group">
3539                                        <div class="row">
3540                                                    <div class="control-label col-md-3 col-sm-12">Search:</div>
3541                                                    <div class="col-md-9 col-sm-12">
3542                                                           <select name="search_type" class="form-control">
3543                                                                   <option value="headlinetext">expression in headline and text</option>
3544
3545                                                                   <option value="all">all of the words</option>
3546
3547                                                                   <option value="head_any">
3547any word in the headline</option>
3548
3549                                                                   <option value="boolean">boolean</option>
3550
3551                                                                   <option value="expression" selected>exact string in headline or text</option>
3552
3553                                                                   <option value="any">any of the words</option>
3554
3555                                                                   <option value="head_all">all words in the headline</option>
3556
3557                                                           </select>
3558                                                    </div>
3559                                        </div>
3560                                </div>
3561																<div class="form-group">
3562                                        <div class="row">
3563                                                    <div class="control-label col-md-3 col-sm-12">Duplicates:</div>
3564                                                    <div class="col-md-9 col-sm-12">
3565                                                           <select name="filter_type" class="form-control">
3566                                                                   <option value="true">filter</option>
3567
3568                                                                   <option value="false">show</option>
3569
3570                                                           </select>
3571                                                    </div>
3572                                        </div>
3573                                </div>
3574																				
3575																<div class="form-group">
3576                                        <div class="row">
3577                                                 
3578                                                    <div class="col-md-12 col-sm-12">
3579																										<div class="g-recaptcha"
3580                                                       data-callback="captcha_filled"
3581                                                       data-expired-callback="captcha_expired"
3582                                                       data-sitekey="6Leh0EMiAAAAADZMbStk7471S1fcLjwt_gCjCPEr">
3583                                                    </div>
3584                                                    <div id="frm-result" style="padding: 5px 0px; color: #c00;"></div>      
3585                                                    </div>
3586                                        </div>
3587                                </div>
3588                    </div>
3589                    <!-- /search-tools-content -->
3590
3591
3592             </form>
3593        	</div>
3594        	<!-- /news-search -->
3595					
3596					
3597					<!-- SPONSORED LINKS -->
3598					<!-- / SPONSORED LINKS -->
3599					
3600					
3601				
3602
3603					
3604			
3605
3606
3607			</div>
3608      <!--  /col-md-4 -->
3609
3610	</div>
3611  <!-- /center-content -->
3612</div>
3613<!--  expand ends -->
3614
3615
3616
3617
3618
3619
3620<!-- =================== NO OTHER RESULTS TAB ======================= -->
3621
3622
3623
3624
3625</div>
3626</div><!--  tabcontainer ends -->
3627</div><!--  container ends -->
3628
3629</div><!--  wrapper ends -->
3630</div><!-- /custom bgr -->
3631
3632
3633
3634
3635        <!-- FOOTER -->
3636        <div id="footer">
3637						
3638						<style>	
3639.explore-links{
3640  	color: #fff;
3641  	font-size: 13px;
3642  	padding: 0px;
3643  	margin: 0px 0px 20px;
3644}
3645.explore-links h3 { margin: 0 0 20px; }
3646.explore-links a{ color: #fff; }
3647.explore-links ul{
3648					list-style: none;
3649					padding: 0px;
3650					margin: 0px;
3651	}
3652	.explore-links .col-md-2{
3653			border-right: 1px solid rgba(255,255,255, 0.4);
3654	}.explore-links .col-md-2:last-child{
3655			border: 0px;
3656	}	
3657	@media (max-width: 767px) {
3658			.explore-links {
3659					display: none;		
3660			}
3661	}	
3662</style>
3663<div class="explore-links" id="explore-links">
3664
3665	<div class="container"> 
3666  	<div class="row">
3667          	<div class="col-md-12"><h3><a href="https://wn.com">EXPLORE WN.com</a></h3></div>
3668  	</div>
3669   	<div class="row">
3670  		<div class="col-md-3 col-sm-4">
3671  		<ul>    
3672   				<li><a target="_blank" href="https://search.wn.com/">Advanced Search</a></li> 
3673					<li><a target="_blank" href="https://education.wn.com/">Education</a></li>                		
3674          <li><a target="_blank"  href="https://cities.com/world">Cities.com</a></li>
3675  				<li><a target="_blank"  href="https://www.dubai.com/">Dubai.com</a></li>
3676  		</ul>
3677  		</div>
3678  		
3679  		<div class="col-md-3 col-sm-4">
3680  		<ul>		
3681  				<li><a target="_blank" href="https://travelagents.com/">TravelAgents.com</a></li>
3682          <li><a target="_blank"  href="https://globalweather.com/">Weather</a></li> 
3683          <li>
3683<a target="_blank" href="https://worldphotos.com/">World Photos</a></li>
3684        <li><a target="_blank"  href="https://cheese.com/">Cheese.com</a></li>
3685  		</ul>                         
3686      </div>
3687  		<div class="col-md-3 col-sm-4">
3688  		<ul>
3689				<li><a target="_blank"  href="https://broadcasts.com/">Broadcasts.com</a></li> 
3690        <li><a target="_blank" href="https://metas.com/">Metas.com</a></li></li>
3691        <li><a target="_blank"  href="https://students.com/">Students.com</a></li>	
3692    		<li><a target="_blank" href="https://emissions.com">Emissions.com</a></li>
3693  		</ul>                         
3694      </div>
3695  		<div class="col-md-3 col-sm-4">
3696  		<ul>
3697        <li><a target="_blank"  href="https://population.com/">Population.com</a></li>
3698        <li><a target="_blank" href="https://domaines.com/">Domaines.com</a></li>
3699				<li><a target="_blank" href="https://wages.com/">Wages.com</a></li>
3700      </ul>
3701  		</div> 
3702  	
3703  	</div>
3704	</div>
3705</div>
3706
3707
3708            <div class="container">						
3709                <div class="row">
3710                
3711                    <div class="col-md-9 col-sm-12">					 
3712                    <a href="https://wn.com/help" target="_blank" data-trans="Help">Help</a> |
3713
3714                    <a href="javascript:void(0);" onClick="load_iframe_url('footer_iframe', '//ecdn1.wn.com/or/html/mediakit/about-us-2021.html');return false;" data-reveal-id="footer-iframe"  data-trans="About WN">About WN</a> |
3715
3716                    <a href="javascript:void(0);" onClick="load_iframe_url('footer_iframe', '//ecdn5.wn.com/or/html/mediakit/dark/privacypolicy.html');return false;" data-reveal-id="footer-iframe"  data-trans="Privacy Policy">Privacy Policy</a> |
3717
3718                    <a target="_blank" href="https://wn.com/contact">Contact</a> |
3719
3720                    <a rel="nofollow" href="https://manage.wn.com/feedback/?url=https://wn.com/My_Books" data-trans="Feedback" target="_blank">Feedback</a> |
3721
3722                    <a href="https://manage.wn.com/employment/?from=https://wn.com/My_Books" target="_blank" data-trans="Jobs">Jobs</a> |
3723										 <a href="https://www.students.com/" target="_blank" data-trans="Students">Students</a> |
3724
3725                    <a href="javascript:void(0);" onClick="load_iframe_url('footer_iframe', 'https://wn.com/api/upge/cheetah-photo-search/send_email?title=My books&url=https://wn.com/My_Books');return false;" data-reveal-id="footer-iframe" class="mobile-hide">Email this page</a> |
3726
3727										<a rel="nofollow" href="https://wn.com/email-register" target="_blank">Newsletter</a> |
3728
3729									
3730										<br />
3731										&copy; WN 2026 All Rights Reserved, World News Inc
3732                    </div>
3733                    <div class="col-md-3  col-sm-12 text-right">
3734
3735                        <ul class="social pull-right">
3736                            <li data-trans="Connect:">Connect:</li>
3737														
3738                             <li><a class="facebook" target="_blank" href="https://www.facebook.com/WNLive"><i class="fa fa-facebook"></i></a></li>
3739                            <li><a class="twitter" target="_blank" href="https://twitter.com/worldnewsdotcom"><i class="fa fa-twitter"></i></a></li>
3740
3741                        </ul>
3742                    </div>
3743
3744                </div>
3745                
3746            </div>
3747            
3748        </div>
3749        <!-- /footer -->
3750
3751
3752
3753
3754
3755
3756<div id="shadow_under" title="My books on WN Network delivers the latest Videos and Editable pages for News &amp; Events, including Entertainment, Music, Sports, Science and more, Sign up and share your playlists. [Fallback to previous description behaviour]"></div>
3757
3758
3759
3760
3761    <!-- player reveal -->
3762    <div id="video-content" class="reveal-modal" style="top: 100px !important; height: 300px;">
3763        <a class="close-reveal-modal">&#215;</a>
3764        <iframe src="about:blank" name="modal-player" frameborder="0" width="100%" height="100%" scrolling="auto" marginheight="0" marginwidth="0"></iframe>
3765    </div>
3766
3767
3768
3769<div id="footer-iframe" class="reveal-modal footer_content">
3770    <a class="close-reveal-modal">&#215;</a>
3771    <div class="widget-logo"></div>
3772    <div class="content">
3773    <iframe src="about:blank" name="footer_iframe" frameborder="0" width="480" height="350" scrolling="auto" marginheight="0" marginwidth="0"></iframe>
3774    </div>
3775</div>
3776
3777
3778<div id="footer-content" class="reveal-modal footer_content">
3779        <a class="close-reveal-modal">&#215;</a>
3780        <div id="popup-widget">
3781            <div class="widget-logo"></div>
3782
3783            <div class="content">
3784                <div class="header">Share this video with your family and friends</div>
3785                <div class="buttons">
3786                </div>
3787
3788            </div>
3789        </div>
3790</div>
3791
3792<div id="report-rights-content" class="reveal-modal footer_content">
3793        <a class="close-reveal-modal">&#215;</a>
3794        <div class="report-rights-body">
3795
3796        </div>
3797</div>
3798<div class="reveal-modal-bg"></div>
3799
3800
3801    <div id="playlistcontainerfs" style="display: none;"></div>
3802
3803
3804        
3804<script type="text/javascript"><!--
3805        $ensure(function() {
3806
3807        		
3808
3809             $('.popup').click(function(e) {
3810                    e.preventDefault();
3811                    window.open($(this).attr('href'), 'ShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
3812                    return false;
3813                });
3814
3815
3816            $('#radio_form').submit(function(event) {
3817                    jQuery('.radio-search-results').html('<p>Loading...</p>');
3818                    var query = jQuery('.radio_query').val();
3819                    jQuery.ajax({
3820                        data: { query:  query },
3821                        url: '/api/upge/cheetah-photo-search/radio',
3822                        success: function(text) {
3823                            jQuery('.radio-search-results').html(jQuery(text));
3824                            updateHeight();
3825                            $('#RadioSearchTable').tablesorter();
3826                            $('#RadioSearchTable').trigger("update");
3827                            }
3828                   });
3829                return false; // do not submit the form
3830                });
3831
3832            $(".search-tools-btn").click(function () {
3833                header = $(this);
3834                content = $(".search-tools-content");
3835
3836                    	if(content.is(':visible')) {
3837				       		content.hide('slow');
3838				        	header.html('Tools <i class="fa fa-caret-down"></i>');
3839				    	}else{
3840				        	content.show('slow');
3841				        	header.html('Hide <i class="fa fa-caret-up"></i>');
3842				    	}
3843
3844            });
3845          });
3846          </script>
3846
3847
3848
3849
3850
3851
3852<script nopack="1" type="text/javascript">
3853    var menu_names = {
3854        'playlist1': ["videos", "playlist", "vid"],
3855        'dictionary': ["dictionary", "dict"],
3856        'movieinfo': ["movie", "imdb"],
3857        'bbc_results': ["bbc", "bbcresults", "bbc-results"],
3858        'slideshow': ["images", "image"],
3859        'top_headlines_tab': ["news--top-headlines"],
3860        'details1': ["video-details", "details", "videodetails", "video_details", "video-details"],
3861        'cast_data': ["filmography", "films", "cast"],
3862        'travel_booking': ["travel", "booking", "travel_booking"],
3863        'weather': ["weather", "forecast"],
3864        'radio': ["radio"],
3865        'music_data': ["albums", "discography", "disco", "music"],
3866        'quotes': ["quotes", "quotes-data", "quotes_data", "quote"],
3867        'wiki0': ["wiki", "location", "bio", "biography", "biographie", "wikipedia", "wikipedia1"],
3868        'podcasts_data': ["podcasts"],
3869        'lyrics_data': ["lyrics", "karaoke"],
3870        'books_data': ["books"],
3871        'tvseries_data': ["episodes", "tvseries"],
3872        'expand': ["news", "articles"],
3873        'playlist2': ["videos2", "playlist2", "live"],
3874    };
3875
3876var rev_names = {};
3877for(var k in menu_names){
3878    for(var vi in menu_names[k]){
3879        var sg = menu_names[k][vi].replace(/s$/,'');rev_names[sg] = k;
3880        var pl=(sg+'s').replace(/ys$/,'ies');rev_names[pl] = k;
3881    }
3882}
3883</script>
3883
3884
3885
3886<script type="text/javascript">
3887$(function(){
3888    var isTabName = function(tabName){
3889        var tabName = tabName.replace(/\W+/g,'_');
3890        if(tabName in rev_names){
3891            tabName = rev_names[tabName];
3892        }
3893        return $('ul li a[id=#'+tabName+']').length;
3894    };
3895    jQuery('.tabtrigger').offscreentabs({container: '#tabcontainer'});
3896    var parts = document.location.hash.replace(/[#\/]*/,'').split('/');
3897    var switches = parts.slice(1).join('/');
3898    if(matchDash(parts[0]) || matchNumber(parts[0]) || matchAction(parts[0])
3899        || matchPosition(parts[0]) || parts[0].match(/^(fs|r|p|preview|replay|repeat)$/)){
3900         // missing 'video'
3901        activateTab('playlist1', parts.join('/'));
3902    }
3903    else if(parts[1] && isTabName(parts[0]+'--'+parts[1]) && activateTab(parts[0]+'--'+parts[1]));
3904    else if(parts[0] && isTabName(parts[0]) && activateTab(parts[0], switches));
3905    else if(activateTab('news', parts.join('/')));
3906    else if(activateTab('playlist1', parts.join('/')));
3907    else activateTab('expand');
3908    firstTimeActivate = false;
3909});
3910
3911</script>
3911
3912
3913
3914
3915
3916    
3916<script type="text/javascript"><!--
3917		
3918    function report_rights(video_id) {
3919        $('#report-rights-content').find('.report-rights-body').html("The video on this page is embedded from YouTube. <br />To report a rights infringement in this video please <a href='https://www.youtube.com/copyright_complaint_form?v=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D"+ video_id +"' target='_blank' style='color: #2a72ba'>click here</a><br /> and notify YouTube of the issue. <br />The URL of this video is <br /><a target='_blank' style='color: #2a72ba' href='https://www.youtube.com/watch?v="+video_id+"'>https://www.youtube.com/watch?v="+video_id+"</a>");
3920    }
3921
3922
3923		function load_podcast(query) {		
3924			$('.podcast-results').html('');	
3925			jQuery.ajax({
3926				type: "GET",
3927				url: "https://broadcasts.com/search",
3928				dataType: "jsonp",
3929				data: { 
3930      						o: "json",
3931                  f: "2",
3932                  q: query
3933						 }
3934				}).done(function( data ) {		
3935						
3936			  		jQuery.each(data.slice(0, 12), function(i ,data) {
3937							 if (data.show_url && data.image != null ) {								  		
3938			  			 $('.podcast-results').append('<div class="podcast-item"><div class="image playaudio" id="' + data.url + '"><div class="audio-player"><audio class="audio" type="audio/mpeg" controls="controls"></audio></div><img src="' + data.image + '" /></div><div class="title playaudio" data-title="' + data.showname +'"><i class="fa fa-podcast" aria-hidden="true"></i> ' + data.showname +'</div><div class="p_added">' + data.added + '</div><div class="p_duration">duration: ' + data.duration + '</div><div class="p_source">source: <a class="source" href="' + data.url + '">' + data.showname +'</a></div></div>');							
3939						}else{						 
3940				$('.podcast-results').append('<div class="podcast-item"><div class="image playaudio" id="' + data.url + '"><div class="audio-player"><audio class="audio" type="audio/mpeg" controls="controls"></audio></div><img src="//ecdn7.wn.com/or/assets/assets/avp/img/podcast.jpg" /></div><div class="title playaudio" data-title="' + data.showname +'"><i class="fa fa-podcast" aria-hidden="true"></i> ' + data.showname +'</div><div class="p_added">' + data.added + '</div><div class="p_duration">duration: ' + data.duration + '</div><div class="p_source">source: <a class="source" href="' + data.url + '">' + data.showname +'</a></div></div>');		
3941						}
3942					$(".podcast-item img").error(function () {
3943              $(this).unbind("error").attr("src", "//ecdn7.wn.com/or/assets/assets/avp/img/podcast.jpg");
3944          });
3945					 updateHeight();
3946			  	});
3947						
3948				});
3949   	}
3950		
3951
3952
3953    function load_fs_video(element) {
3954        $('.news-item').find('.photo').show('slow');
3955        $('.news-item').find('.player').html('');
3956        $('.news-item').find('.player-container').hide('');
3957
3958        var query = $(element).attr('id');
3959        $(element).parent().hide();
3960        $(element).parent().parent().find('.close-player.news').show();
3961        $(element).parent().parent().find('.player-container').show().animate({ 'width' : '100%' }, "slow").animate({ 'height' : '100%' }, "slow").css('position', 'fixed').css('top', '0px').css('bottom', '0px').css('left', '0px').css('right', '0px');
3962        var container = $(element).parent().parent().find('.player').show();
3963            jQuery.ajax({
3964                url: 'https://upge.wn.com/api/upge/cheetah-photo-search/article_video',
3965                data: {
3966                    'q': query
3967                },
3968                dataType: 'jsonp',
3969                success: function(text) {
3970                  container.html(text);
3971                  container.animate({ 'width' : '100%' }, "slow").animate({ 'paddingBottom' : '56.25%' }, "slow").css('top', '50px').html('<iframe src="https://www.youtube.com/embed/'+ video_id +'?autoplay=1" frameborder="0" allowfullscreen></iframe>');
3972                $('body,html').animate({ scrollTop: 0}, 800);
3973
3974                }
3975          });
3976    }
3977
3978
3979        function load_video_details(query, id){
3980                jQuery('#details'+id).find('.moreDetails').html('<p style="margin: 40px 0; text-align:center;">
3980<img src="//ecdn4.wn.com/or/assets/assets/wn/img/712.GIF" alt="" width="64" height="64" /></p>');
3981                jQuery.ajax({
3982                url: '/api/upge/cheetah-photo-search/video_details02',
3983                data: {'query': query,
3984                        'vsid': id
3985                },
3986                success: function(text){
3987                    jQuery('#details'+id).find('.moreDetails').html(jQuery(text));
3988                    jQuery('.rslides-box-details').hide();
3989                    updateHeight();
3990                    }
3991                });
3992    }
3993
3994     // -->
3995    </script>
3995
3996        
3996<script type="text/javascript">
3997        <!--
3998        function loadPhotos(query) {
3999            $('#photo-results').html('<p style="width: 100%; text-align: center; padding: 50px 0;"><img src="//ecdn4.wn.com/or/assets/assets/wn/img/712.GIF"  alt="" width="64" height="64" /></p>');
4000
4001            jQuery.ajax({
4002                url: 'https://upge.wn.com/api/upge/cheetah-photo-search/photos07',
4003                data: {
4004                    'query': query
4005                },
4006                cache: true,
4007                dataType: 'jsonp',
4008                jsonpCallback: 'cbLoadPhotos',
4009                success: function(text) {
4010                    $('#photo-results').html(text);
4011                    prettyPhotoLoad();
4012                    updateHeight();
4013                }
4014            });
4015        }
4016        function popUp(url) {
4017            window.open(url, 'ShareWindow', 'height=450, width=550, top=' + ($(window).height() / 2 - 275) + ', left=' + ($(window).width() / 2 - 225) + ', toolbar=0, location=0, menubar=0, directories=0, scrollbars=0');
4018            e.preventDefault();
4019        }
4020
4021        		function share_popup(element, video_title){
4022                	title = video_title.replace(/[:\.\/_ ]+/g, '_');
4023                 	video_url = 'https://wn.com/' + title.replace(' ', '_');
4024               		$(element).parent().find('.buttons').show().html('<div class="buttons-close"  onclick="return buttons_close(this)"><i class="fa fa-times"></i></div><a href="javascript:void(0);" id="https://twitter.com/home?status=' +video_url+ '" class="twitter" onclick="return popUp(this.id)"><i class="fa fa-twitter"></i></a><a href="javascript:void(0);" id="https://www.facebook.com/sharer.php?u=' +video_url+ '" class="facebook" onclick="return popUp(this.id)"><i class="fa fa-facebook"></i></a><a href="javascript:void(0);" id="https://wn.com/api/upge/cheetah-photo-search/send_email?title=' +video_url+ '&url=' +video_url+ '" class="email" onclick="return popUp(this.id)"><i class="fa fa-envelope-o"></i></a></div>');
4025                    $(element).addClass('active');
4026                }
4027                function buttons_close(element){
4028                    $(element).parent().hide();
4029                }
4030
4031                function open_in_new_tab(url)
4032                {
4033                  window.open(url, '_blank');
4034                  window.focus();
4035                }
4036
4037                function lyrics_videos() {
4038                        jQuery('.lyrics_items li.item_video').each(function(index) {
4039                                query = jQuery(this).attr('id');
4040                                artist = jQuery(this).attr('data-value');
4041                                new_query = query + ' ' + artist
4042                                var html_box = jQuery(this).find('.video');
4043                                jQuery.ajax({
4044                                    url: 'https://wn.com/api/upge/cheetah-photo-search/query_video01',
4045                                    data: {
4046                                        'query': new_query,
4047                                        'artist': artist
4048                                    },
4049                                    dataType: 'jsonp',
4050                                    success: function(text) {
4051                                         html_box.html(text);
4052                                         updateHeight();
4053                                    }
4054                                });
4055                       });
4056                }
4057
4058                function triggerLyricsPlayer(element, video_id){
4059                     loading_obj = jQuery('.video-thumb')
4060                     if (loading_obj.hasClass('player-open')) {
4061                        loading_obj.find('img').show();
4062                        loading_obj.find('.play-icon').show();
4063                        loading_obj.parent().find('.title').show();
4064                        loading_obj.find('.player').html('');
4065                        loading_obj.animate({ width: "200px" }).animate({ height: "110px" });
4066                        loading_obj.removeClass('player-open');
4067                    }
4068                    $(element).parent().addClass('player-open');
4069                    $(element).next('img').hide();
4070                    $(element).parent().find('.play-icon').hide();
4071                    $(element).parent().parent().find('.hide').hide();
4072                    $(element).parent().animate({ width: "640px" }).animate({ height: "390px" });
4073                    $(element).parent().find('.player').html('<iframe id='+ video_id +' src="https://www.youtube.com/embed/'+ video_id +'?enablejsapi=1&version=3&wmode=transparent&autoplay=1" frameborder="0" allowfullscreen style="width: 100%; height: 100%;"></iframe>');
4074                    updateHeight();
4075                }
4076
4077
4078
4079
4080
4081                function addVideos(element, query){
4082                        html_box = $(element).parent().find('.added_videos').show();
4083                        jQuery.ajax({
4084                            url: 'https://wn.com/api/upge/cheetah-photo-search/video_suggest',
4085                            data: {
4086                                'query': query,
4087                                'num': '4'
4088                            },
4089                            dataType: 'jsonp',
4090                            success: function(text) {
4091                                $(element).hide();
4092                                 html_box.html(text);
4093                            }
4094                        });
4095                }
4096                function stopDetailsPlayer(){
4097                    loading_obj = jQuery('.video-thumb')
4098                     if (loading_obj.hasClass('player-open')) {
4099                        loading_obj.find('img').show();
4100                        loading_obj.find('.play-icon').show();
4101                        loading_obj.find('.player-container').animate({ width: "0px" }).animate({ height: "0px" });
4102                        loading_obj.find('.fs_icon').show();
4103                        loading_obj.find('.player').html('');
4104                        loading_obj.animate({ width: "480px" }).animate({ height: "300px" });
4105                        loading_obj.removeClass('player-open');
4106                    }
4107
4108                }
4109
4110                function triggerLoadFile(file){
4111                    var file_name = file;
4112                    jQuery('#writers .byNames').find('.column-left').load('https://wn.com/api/upge/shared/' + file_name);
4113                    jQuery('.byNames').show().css('height', $('.byNames').height());
4114                    jQuery('.byCountry').hide();
4115                    updateHeight();
4116                }
4117
4118
4119                function triggerLoadList(file){
4120                var file_name = file;
4121                    jQuery('#writers').find('.byCountry').load('https://wn.com/api/upge/shared/' + file_name);
4122                    jQuery('.byNames').hide();
4123                    jQuery('.byCountry').show().css('height', $('.byCountry').height());
4124                    updateHeight();
4125                }
4126
4127                function scrollToAnchor(aid){
4128                    var aTag = $("a[name='"+ aid +"']");
4129                    $('html,body').animate({scrollTop: aTag.offset().top},'slow');
4130                }
4131
4132
4133                $ensure(function(){
4134								
4135
4136                    $(".play-domain").click(function(e) {
4137                            var video = $(this).attr('id');
4138                            v = videoplayers[1];
4139                            v.playSingleVideo({video_id:video});
4140                            v.playVideo();
4141                    });
4142                    $('.play').hide();
4143
4144
4145                    $(".close-player.details").click(function(e) {
4146                        $(this).hide();
4147                        $(this).parent().parent().addClass('player-open')
4148                        $(this).parent().parent().css('width', '480px').css('height', '300px');
4149                        $(this).parent().css('position', 'relative');
4150                        $(this).parent().find('.player').css('height', '300px').animate({ 'paddingBottom' : '0' }, "slow").css({ 'margin-top' : '0px' });
4151
4152                    });
4153                    $(".close-player.news").click(function(e) {
4154                        $(this).hide();
4155                        $(this).parent().css('width', '480px').css('height', '300px').css('position', 'relative').css('float', 'left').css('margin-right', '20px');
4156                        $(this).parent().find('.player').css('height', '300px').animate({ 'paddingBottom' : '0' }, "slow").css('top','0');
4157                        updateHeight();
4158
4159                    });
4160
4161                    $('.play_lyrics_video').click(ensure(function(){
4162
4163                            loading_obj = jQuery('.player-open')
4164                            loading_obj.find('img').show();
4165                            loading_obj.find('.play-icon').show();
4166                            loading_obj.parent().find('.title').show();
4167                            loading_obj.html('');
4168                            loading_obj.animate({ width: "0px" }).animate({ height: "0px" });
4169                            loading_obj.removeClass('player-open');
4170                            query = jQuery(this).attr('id');
4171
4172                        jQuery(this).addClass('active');
4173                        var html_box = jQuery(this).parent().parent().find('.video').html('loading...');
4174                        jQuery.ajax({
4175                            url: 'https://upge.wn.com/api/upge/cheetah-photo-search/query_video_player',
4176                            data: {
4177                                'query': query
4178                            },
4179                            dataType: 'jsonp',
4180                            success: function(text) {
4181                                 html_box.html(text);
4182                            }
4183                        });
4184                    }));
4185
4186                    $('.carousel-pause .pause').click(ensure(function(){
4187                        $(this).hide();
4188                        $('.carousel-pause').find('.play').show();
4189                        $('.rslides.details').trigger('mouseenter');
4190                    }));
4191
4192                    $('.carousel-pause .play').click(ensure(function(){
4193                        $(this).hide();
4194                        $('.carousel-pause').find('.pause').show();
4195                        $('.rslides.details').trigger('mouseleave');
4196                    }));
4197
4198                    $(".rslides.related").responsiveSlides({
4199                        auto: true,
4200                        pagination: true,
4201                        nav: true,
4202                        fade: 500,
4203                        maxwidth: 800
4204                    });
4205                    $(".rslides.details").responsiveSlides({
4206                        auto: true,
4207                        pause: true,
4208                        pauseControls: true,
4209                        speed: 2000,
4210                        pagination: true,
4211                        nav: true,
4212                        fade: 500,
4213                        maxwidth: 1200
4214                    });
4215                    $(".rslides.fs").responsiveSlides({
4216                        auto: true,
4217                        pagination: true,
4218                        nav: true,
4219                        fade: 500,
4220                        maxwidth: 600
4221                    });
4222                    $('.footer.help').click(ensure(function(){
4223                        $('body').css('overflow', 'hidden');
4224                        $('.controls2').css('z-index', '10002');
4225                    }));
4226                    $('.close-reveal-modal.help').click(ensure(function(){
4227                        $('body').css('overflow', 'show');
4228                        $('.controls2').css('z-index', '115');
4229                    }));
4230
4231                    $(document).keyup(ensure(function(e) {
4232                        if (e.keyCode == 27) { $('.close-reveal-modal.help').click();}
4233                        else if (e.keyCode == 8) { $('.close-reveal-modal.help').click();  }
4234                    }));
4235
4236                    $("input[placeholder]").each(function () {
4237                            var lenght = $(this).attr('placeholder').length;
4238                            $(this).attr('size', lenght + 1);
4239                    });
4240
4241                    $('#mainvideoresults').show();
4242                    $('a#play_mainvideoresults').click(ensure(function(){
4243                          videoplayer.addVideo($('.video_results .video-info'));
4244                    }));
4245                    $('a#open_mainvideoresults').click(ensure(function(){
4246                        $('.videos_15_24').show('slow');
4247                        $('#open_mainvideoresults').hide('slow');
4248                        $('#close_mainvideoresults').show('slow');
4249                    }));
4250                    $('a#close_mainvideoresults').click(ensure(function(){
4251                        $('.videos_15_24').hide('slow');
4252                        $('#open_mainvideoresults').show('slow');
4253                        $('#close_mainvideoresults').hide('slow');
4254                    }));
4255                    $('a#remove_mainvideoresults').click(ensure(function(){
4256                        $('#mainvideoresults').animate({ opacity: 'hide' }, "slow");
4257                    }));
4258
4259                   $('#related_videos').show();
4260
4261                    $('a#play_related_videos').click(ensure(function(){
4262                         videoplayer.addVideo($('.related_videos .video-info'));
4263                    }));
4264                    $('a#open_related_videos').click(ensure(function(){
4265                        $('.related_videos').show('slow');
4266                        $('#open_related_videos').hide('slow');
4267                        $('#close_related_videos').show('slow');
4268                    }));
4269                    $('a#close_related_videos').click(ensure(function(){
4270                        $('.related_videos').hide('slow');
4271                        $('#open_related_videos').show('slow');
4272                        $('#close_related_videos').hide('slow');
4273                    }));
4274                    $('a#remove_related_videos').click(ensure(function(){
4275                        $('#related_videos_remove').animate({ opacity: 'hide' }, "slow");
4276                    }));
4277
4278                    $('#id_new_playlist' ).bind('keypress', ensure(function(e){
4279                        if ( e.keyCode == 13 ) {
4280                        $('.add_dynamic_playlist.subtabs').click();
4281                        }
4282                    }));
4283                    $("#id_new_playlist").click(ensure(function(){
4284                        $(this).attr('value', '');
4285                    }));
4286                    $("li .remove").live('click', ensure(function(){
4287                        var num = this.id.substring(9);
4288                        remove_dynamic_playlist(num);
4289                    }));
4290
4291
4292
4293                   $('.tools.player').animate({ opacity: 'hide' }, "slow");
4294                   $('.tools_container').hover(ensure(function(){
4295                       $(this).find('.tools.player').animate({ opacity: 'show' }, "fast");
4296                   }), ensure(function(){
4297                       $(this).find('.tools.player').animate({ opacity: 'hide' }, "slow");
4298                   }));
4299
4300
4301
4302                 // overwrite the playlist titles
4303                  $('#playlistcontainer1').find('.playlistitemli a.playlistitem').mouseover(ensure(function(e) {
4304                        var t = $(this);
4305                        var pos = null;
4306                        $('#playlistcontainer1 .playlistitemli a.playlistitem').each(function(i,e){
4307                            if(e.id == t.attr('id')){
4308                                pos = i;
4309                            }
4310                        });
4311                        var updated = $('div.video-desc:eq('+pos+') span.video-uploaded');
4312                        var views = $('div.video-desc:eq('+pos+') span.video-views');
4313                        var video_title = $('div.video-desc:eq('+pos+') div.video-shortdescription');
4314     $(this).attr('title', 'Published Date: '+updated.text()+', Views: '+views.text()+', '+video_title.text());
4315                   }));
4316
4317                    $('.radio-menu li a').click(ensure(function(){
4318                        $('.radio-menu li').removeClass('active');
4319                        $(this).parent().addClass('active');
4320                   }));
4321
4322                 $('a.playlistitem').click(ensure(function(e) {
4323                        $('.buttons').hide();
4324                  }));
4325
4326
4327                    $("body").click(ensure(function(e) {
4328                        if(e.target.className !== "dictionary")
4329                        {
4330                          $(".dictionary").hide();
4331                        }
4332                    }));
4333
4334                    //to the top
4335                    $('.gotop').click(ensure(function(){
4336                        $('body,html').animate({ scrollTop: 0}, 800);
4337                    }));
4338
4339
4340
4341
4342                    //reloads sms/email iframes
4343                    $('.send').click(ensure(function() {
4344                        $('.reload').attr('src', $('.reload').attr('src'));
4345                    }));
4346
4347                    $('.searchbox').hover(
4348                        function() {
4349                            $('.queryTooltip').show();
4350                        }, function() {
4351                            $('.queryTooltip').hide();
4352                        }
4353                    );
4354                    $('#weather-map').submit(function(event) {
4355                            var search_string = $("#city_map_name").val();
4356                            search_string = search_string.toLowerCase().replace(/[\.\/\: _!]+/g, '_');
4357                            window.open('https://globalweather.com/' + search_string, '_blank');
4358                            return false; // do not submit the form
4359                      });
4360                    // show_synopsis
4361                    $('.show_synopsis').hover(ensure(function(){
4362                        $(this).find('.synopsis-box').show().delay('6000');
4363                      }, function(){
4364                        $(this).find('.synopsis-box').hide().delay('6000');
4365                    }));
4366		
4367
4368		
4369		
4370        });
4371    // -->
4372    </script>
4372
4373
4374
4375    
4375<script>
4376    $(function(){
4377		
4378    		var playing = false;		
4379    		$(".playaudio").live('click', ensure(function(){								
4380    						var url = $(this).attr('id');
4381    						$("audio").trigger("pause");
4382    						$('.podcast-item').removeClass('active');	
4383    						$('.podcast-item').find('audio').attr('id', '');	
4384    						$('.podcast-item').find('.audio-player').hide();		
4385    						$(this).parent().addClass('active');		
4386    						$(this).parent().find('.audio-player').delay(2500).show();	
4387    						$(this).parent().find('audio').attr('id', 'audio').attr('src', url);						
4388                attachPlayAction(); 		
4389    					
4390         }));
4391    		
4392       	function attachPlayAction() {        	      
4393    			$("#audio").trigger("play");        
4394        };
4395        var $title = $(".page_title");
4396        var $numWords = $title.text().length;
4397
4398        if (($numWords >= 1) && ($numWords < 40)) {
4399            $title.css("font-size", "22px").css("margin-top", "3px");
4400        }
4401        else if (($numWords >= 10) && ($numWords < 70)) {
4402            $title.css("font-size", "20px").css("margin-top", "8px");
4403        }
4404        else if (($numWords >= 15) && ($numWords < 100)) {
4405            $title.css("font-size", "18px").css("margin-top", "12px");
4406        }
4407        else if (($numWords >= 100) && ($numWords < 125)) {
4408            $title.css("font-size", "14px").css("margin-top", "12px");
4409        }
4410        else {
4411            $title.css("font-size", "14px").css("margin-top", "0px").css("height", "2.8em").show();
4412        }
4413        $(".page_title").show();
4414				
4415				jQuery('#news-search').click(function(event) {
4416                var ss = jQuery("#video_query").val().toLowerCase().replace(/[:\.\/_ ]+/g, '_');
4417                $.cookies.set('wnsearch', ss);
4418                window.location = 'https://wn.com/' + ss;
4419                return false; // do not submit the form
4420        });
4421
4422    });
4423    </script>
4423
4424
4425        
4425<script type="text/javascript"><!--
4426        $ensure(function(){
4427            jQuery('input.top_query').autocomplete('https://', {
4428                selectFirst: false,
4429                matchSubset: false,
4430                scroll: false,
4431                max: 20,
4432                doSearch: window.doAutoComplete
4433            })
4434        });
4435        // -->
4436        </script>
4436
4437
4438
4439
4440
4441        
4441<script type="text/javascript"><!--
4442
4443
4444        $ensure(function() {
4445
4446                $('.back_to_playlist').click(function(){
4447                        jQuery('.tabtrigger').offscreentabs('activateTab', 'playlist1');
4448                });
4449                $(".dropdown-toggle").click(function(e){
4450                    $(".dropdown-menu").slideToggle();
4451                     e.stopPropagation();
4452                });
4453                $(".dropdown-menu").click(function(e){
4454                    e.stopPropagation();
4455                });
4456                $(document).click(function(){
4457                    $(".dropdown-menu").hide();
4458                });
4459        });
4460
4461        // -->
4462        </script>
4462
4463
4464
4465
4466
4467
4468
4469
4470            
4470<script type="text/javascript">
4471            <!--
4472            $ensure(function(){
4473                // determine what display the video gallery uses
4474                var cookie = $.cookies.get("wn-videoplayer-playlist-format");
4475                if (cookie && cookie.indexOf("playlist-template-with-images") > 0) {
4476                    $('.list-preview').show();
4477                    $('.thumb-preview').hide();
4478                }if (cookie && cookie.indexOf("playlist-template-simple") > 0) {
4479                    $('.list-preview').hide();
4480                    $('.thumb-preview').show();
4481                }
4482            });
4483            for(var c in $.cookies.get()){
4484                if(c.match('/')){
4485                    $.cookies.del(c);
4486                }
4487            }
4488            // -->
4489            </script>
4489
4490
4491
4492
4493
4494
4495<script type="text/javascript">
4496var load_iframe_url = ensure(function(a, b) {
4497    var c = 1;
4498    try {
4499        window.frames[a].location.href == b && (c = 0)
4500    } catch (d) {
4501        c = 1
4502    }
4503    return c && window.frames[a].location.replace(b), !1
4504});
4505
4506function prettyPhotoLoad() {
4507     $("a[rel^='prettyPhoto']").prettyPhoto();
4508     $(".gallery a[rel^='prettyPhoto']").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:6000, autoplay_slideshow: true, social_tools: false});
4509}
4510</script>
4510
4511
4512
4513<div class="videoload-container" style="top: 22px; right: 10px; z-index: 10000; display: none;">
4514    <div class="arrow"></div>
4515    <div class="videoload"></div>
4516</div>
4517
4518
4519<script> (function(ss,ex){ window.ldfdr=window.ldfdr||function(){(ldfdr._q=ldfdr._q||[]).push([].slice.call(arguments));}; (function(d,s){ fs=d.getElementsByTagName(s)[0]; function ce(src){ var cs=d.createElement(s); cs.src=src; cs.async=1; fs.parentNode.insertBefore(cs,fs); }; ce('https://sc.lfeeder.com/lftracker_v1_'+ss+(ex?'_'+ex:'')+'.js'); })(document,'script'); })('p1e024BnDD64GB6d'); </script>
4519
4520
4521
4522<!-- Quantcast Tag -->
4523<script type="text/javascript">
4524var _qevents = _qevents || [];
4525
4526var quantcast_host = function(){
4527    var h = document.location.hostname;
4528    if(h == 'wn.com') return 'main';
4529    if(h.match('^..\.wn\.com$')) return 'international';
4530    if(h.match('\.wn\.com$')) return 'subdomain';
4531    return 'outer';
4532}();
4533
4534(function() {
4535    var elem = document.createElement('script');
4536    elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js";
4537    elem.async = true;
4538    elem.type = "text/javascript";
4539    var scpt = document.getElementsByTagName('script')[0];
4540    scpt.parentNode.insertBefore(elem, scpt);
4541})();
4542
4543_qevents.push({
4544    qacct: "p-69LMgINxZpq8g",
4545    labels: 'wn.' + (window.quantcast_label||'other') + '.' + quantcast_host
4546});
4547</script>
4547
4548<!-- End Quantcast tag -->
4549
4550<!-- ep5i -->
4551</body>
4552</html>
4553
4554

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.