PageSourceSearch

https://www.forestryjournal.co.uk/subscriptions/app/

html forestryjournal.co.uk collected 2026-09-25 02:36:09 UTC 129,146 bytes, 3,430 lines download raw bytes

1<!-- standard - CustomHeader-NoAds-Site.html --> <!DOCTYPE html>
2<html lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#">
3<head>
4    <title>App | Forestry Journal</title>
5
6    <meta charset="utf-8">
7    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
8    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
9    <meta name="OMG-Verify-V1" content="4389-366acdfc-5224-4c07-bb70-f74d8fbfc2db" />
10    <meta name="robots" content="max-image-preview:large">
11    <meta name="format-detection" content="telephone=no">
12
13    <style>
14        .mar-leaderboard--top {
15            display: none;
16        }
17    </style>
18    
18<script>
19        window.doNotAdvertise = true;
20    </script>
20
21    <link rel="canonical" href="https://www.forestryjournal.co.uk/subscriptions/app/" />
22	<meta property="fb:pages" content="" />
23	<meta name="title" content="App | Forestry Journal"/>
24	<meta name="description" content="Check out the app for the Forestry Journal"/>
25	<meta name="keywords" content=""/>
26
27<script type="application/ld+json">
28    {
29        "@context": "http://schema.org",
30        "@type": "WebPage",
31        "headline": "Subscriptions | App Index",
32        "url": "https://www.forestryjournal.co.uk/subscriptions/app/"
33    }
34</script>
34
35
36
37
38
39
40
41
42
43    <link id="page_stylesheet_vars" href="/resources/responsive-static/build/mds/css/palette-9-slab-vars.css?r=mkW8NyPe" rel="stylesheet" type="text/css">
44
45    <link href="/resources/responsive-static/build/mds/css/header-footer.css?r=mkW8NyPe" rel="stylesheet" type="text/css">
46
47    <link id="page_stylesheet" href="/resources/responsive-static/build/mds/css/statichtml.css?r=mkW8NyPe" rel="stylesheet" type="text/css">
48
49    <link rel="shortcut icon" href="/resources/images/17396197/" type="image/vnd.microsoft.icon">
50    <link rel="icon" href="/resources/images/17396197/" type="image/vnd.microsoft.icon">
51    
51<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha384-1H217gwSVyLSIfaLxHbE7dRb3v4mYCKbpQvzx0cegeju1MVsGrX5xXxAvs/HgeFs" crossorigin="anonymous"></script>
vendor: 1 bytes, line 51
51
52<script src="https://code.jquery.com/jquery-migrate-3.6.0.js" integrity="sha384-ekzRTCLAU/LqHRBjnphRAxgZZvGdoP+TfkGGsX+tBJpRdM7r2/89ZZNzC/7YTJXX" crossorigin="anonymous"></script>
vendor: 1 bytes, line 52
52
53<script type="text/javascript" src="/resources/shared/responsive-sync/?r=mkW8NyPe"></script>
53
54
55<script type="text/javascript">
56    data_layer_helper.setIsArticle(false);
57    data_layer_helper.setCookieDomain('.forestryjournal.co.uk');
58    data_layer_helper.setModuleType('StaticHtmlModule');
59    data_layer_helper.setLocalInfoFolder('');
60    data_layer_helper.setHomesData('', '', '', 'subscriptions');
61    data_layer_helper.setPrimaryDomain('www.forestryjournal.co.uk');
62    data_layer_helper.setPath('/subscriptions/app/');
63    data_layer_helper.setGoogleNetworkCode('154725070');
64    data_layer_helper.setArticleTimestamp('');
65    data_layer_helper.setPathOverride();
66
67
68    var extraTags = [];
69    
70        extraTags.push('user_level_anonymous');
71    
72
73    var data_layer = {
74        environment: {
75            is_test_site: 'no',
76            is_live_site: 'yes',
77            is_paywall_site: 'yes',
78            is_portable_screen: (data_layer_helper.isMobileScreen()) ? 'yes' : 'no',
79            is_desktop_screen: (data_layer_helper.isMobileScreen()) ? 'no' : 'yes',
80            is_mobile_device: data_layer_helper.getMobileDevice(),
81            is_tablet_device: data_layer_helper.getTabletDevice(),
82            server: 'webapp-66cb74b878-4mxgt',
83            platform: 'Martini'
84        },
85        site: {
86            id: '1121',
87            comments_subscriber_only: 'no',
88            viafoura_site_id: '00000000-0000-4000-8000-c97188d659f1',
89            comments_use_viafoura: 'yes',
90            centre_id: '14',
91            centre_name: '',
92            country: 'Scotland',
93            name: 'Forestry Journal',
94            name_with_prefix_capitalised_possessive: 'The Forestry Journal\'s',
95            name_with_prefix_lower_possessive: 'the Forestry Journal\'s',
96            domain: 'www.forestryjournal.co.uk',
97            editor_name: 'John McNee',
98            onboarding_enabled: 'no',
99            onboarding_flow_id: 'onboarding_disabled',
100            allowing_mr_replacement: '',
101            cookie_domain: '.forestryjournal.co.uk',
102            uses_cmp: 'yes',
103            short_domain: 'forestryjournal',
104            using_piano_id: 'yes',
105            enable_skimlinks: 'yes',
106            skimlinks_domain_id: '1680363',
107            disable_newsletters: 'no',
108            is_archant_site: 'no',
109            shc_merchant_name: '',
110            piano_application_group: 'Bespoke',
111            piano_site_name: '',
112            piano_site_name_possessive: 'Forestry Journal\'s',
113            piano_site_name_with_prefix_lower: 'the Forestry Journal',
114            piano_site_name_with_prefix_capitalised: 'The Forestry Journal',
115            piano_site_name_with_prefix_capitalised_possessive: 'The Forestry Journal\'s',
116            piano_site_name_with_prefix_lower_possessive: 'the Forestry Journal\'s',
117            piano_location_primary: '',
118            piano_location_primary_possessive: '',
119            piano_location_county: '',
120            piano_location_county_possessive: '',
121            piano_primary_sports_team: '',
122            piano_primary_sports_team_nickname: '',
123            piano_primary_sports_team_sport: '',
124            piano_primary_sports_team_possessive: '',
125            piano_primary_sports_team_nickname_possessive: '',
126            piano_self_service_cancellation_setting: 'None',
127            has_app: 'yes',
128            app_provider: 'pagesuite',
129            app_platform: 'pagesuite-cosmo',
130            app_store_url_ios: 'https://apps.apple.com/app/forestry-journal/id1234235397',
131            app_store_url_google_play: 'https://play.google.com/store/apps/details?id=com.pagesuite.droid.forestryjournal'
132        },
133        page: {
134            module: 'StaticHtmlModule',
135            referrer: data_layer_helper.getReferrerHostName(),
136            name: '(www) ' + data_layer_helper.getOmniturePath(),
137            title: document.title,
138            path: data_layer_helper.getOmniturePath(),
139            section: data_layer_helper.getPathFragment(0),
140            subsection: data_layer_helper.getPathFragment(1),
141            subsection_2: data_layer_helper.getPathFragment(2),
142            subsection_3: data_layer_helper.getPathFragment(3),
143            reference: qs.get('ref'),
144            layout: '',
145            ad_timing: data_layer_helper.getCookie('adtiming'),
146            template_namespace: 'standard',
147            template: '',
148            colour_scheme: '',
149            layout_template: '',
150            mds_font: 'slab',
151            user_used_app_last_24hours: '',
152            user_used_app_last_7days: '',
153            user_used_app_last_14days: '',
154            mds_colour_palette: 'palette-9',
155            feature_block_a_enabled: ($('[data-name="Feature Article Block A"]').length > 0) ? 'yes' : 'no',
156            feature_block_b_variant: (typeof $('[data-name="Feature Article Block B"]').data('variant') === 'undefined') ? '' : $('[data-name="Feature Article Block B"]').data('variant'),
157            is_article_list: 'no',
158            error_404: '',
159            top_stories_article_count: '',
160            interstitial_dedupe_top_stories: '',
161            interstitial_desktop_height: '',
162            interstitial_mobile_height: '',
163            interstitial_tablet_height: '',
164            interstitial_piano_module_id: '',
165            interstitial_using_recommendations: '',
166            interstitial_recommendation_header: '',
167            interstitial_article_count: '',
168            news_stories_article_count: '',
169            site_newspaper_archive_enabled: 'no',
170            site_newspaper_archive_number_of_pages: '',
171            site_newspaper_archive_start_year: 0,
172            article_originates_from_this_site: '',
173            article_originates_from_site: '',
174            article_originates_from_url: ''
175        },
176        user: {
177            id: '',
178            first_name: '',
179            advertising_experience: 'Ad-Full',
180            is_privacy_plus: 'no',
181            is_alist: 'no',
182            level: data_layer_helper.getCookie('nq_ul'),
183            seen_cmp: (data_layer_helper.getCookie('_sp_enable_dfp_personalized_ads') === 'true' || data_layer_helper.getCookie('_sp_enable_dfp_personalized_ads') === 'false') ? 'yes' : 'no',
184            given_consent: (data_layer_helper.getCookie('_sp_enable_dfp_personalized_ads') === 'true') ? 'yes' : 'no',
185            consent_string: data_layer_helper.getConsentString(),
186            type: 'anonymous',
187            parsely_type: 'Anonymous',
188            chartbeat_type: 'anon',
189            type_as_int: '1',
190            is_logged_in: 'no',
191            is_admin: 'no',
192            is_internal_admin: '',
193            has_full_admin_link_permissions: '',
194            has_registered: (data_layer_helper.getCookie('nqr') !== null) ? 'yes' : 'no',
195            comments_verified: '',
196            comments_verified_date: '',
197            user_email_is_verified: '',
198            user_email_is_verified_date: '',
199            mobile_number_is_verified: '',
200            mobile_number_is_verified_date: '',
201            user_needs_email_verification: '',
202            user_needs_mobile_verification: '',
203            user_too_many_requests: '',
204            age_decade:  '0' ,
205            gender:  'u' ,
206            is_known: data_layer_helper.getCookie('__siren') ? 'yes' : 'no',
207            hash: '',
208            lr_hash_1: '',
209            lr_hash_2: '',
210            lr_hash_3: '',
211            gender:  'u' ,
212            user_decade:  '0' ,
213            subscription_plan: '',
214            subscription_tier: 'null',
215            subscription_plan_and_frequency: ' - ',
216            commented: (data_layer_helper.isArticle() && qs.get('action') === 'success') ? 'yes' : 'no',
217            time_since_last_visit: 'not implemented (maybe drop)',
218            device: data_layer_helper.getDevice(),
219            using_ad_blocker_sourcepoint: data_layer_helper.getSourcepointAdbockStatus(),
220            admin_user_name: '',
221            is_admin_internal: '',
222            is_admin_external: '',
223            card_expired: '',
224            card_will_expire: '',
225            expires_urgency: '',
226            abandoned_cart: 'no',
227            subscription_expired: 'no',
228            is_archant_site: 'no',
229            signed_up_primary_news_newsletter: 'no',
230            signed_up_primary_sport_newsletter: 'no',
231            played_free_puzzles_last_7days: '',
232            played_paid_puzzles_last_7days: '',
233            commenter_badge: '',
234        },
235        analytics: {
236            hierachy: 'newsquest,,www.forestryjournal.co.uk,' + data_layer_helper.getPathFragment(3).replace(/\//,','),
237            link_filters: 'javascript:,forestryjournal.co.uk,fish4.co.uk,adsys.newsquest.co.uk,www.exchangeandmart.co.uk,www.communigate.co.uk,',
238            tracking_block: data_layer_helper.getTrackingFromCookie('tracking_block', ''),
239            tracking_block_index: data_layer_helper.getTrackingFromCookie('tracking_block_index', ''),
240            previous_page_name: data_layer_helper.getCookie('nq_prev_page'),
241            advert_id: '',
242            position_in_list: data_layer_helper.getTrackingFromCookie('o-prop30', ''),
243            featured_content: data_layer_helper.getTrackingFromCookie('o-ref', qs.get('ref')),
244            account: data_layer_helper.getAccount()
245        },
246        chartbeat: {
247            enabled: "no",
248            id: "",
249            domain: "",
250            sections: ''
251        },
252        parsely: {
253            enabled: "yes",
254            site_id: "forestryjournal.co.uk",
255            type: 'Anonymous'
256        },
257        piano: {
258            tags: data_layer_helper.getPianoTags({
259                      piano_domain: 'forestryjournal',
260                      piano_master: '',
261                      breaking_news: false,
262                      editorial_opinion: false,
263                      free_subscriber: false,
264                      free_subscriber: false,
265                      has_video: false,
266                      is_article: false,
267                      article_content_level : '',
268                      article_content_level_open_access: false,
269                      picture_gallery_id: false,
270                      user_is_newsquest: false,
271                      user_is_entra_authenticated: false,
272                      user_logged_in: false,
273                      is_live_article: false,
274                      why_free_subscriber: '',
275                      extra_tags: extraTags,
276                      is_covid_headline: false,
277                      is_covid_body: false,
278                      is_alist: false,
279                      audio_provider_bytecast: false
280                  }
281            ),
282            custom_variables: {
283                article_length: '',
284                application_group: 'Bespoke',
285                content_is_editorial_opinion: 'no',
286                base_url: 'https://www.forestryjournal.co.uk',
287                full_url: document.location.href,
288                mds_font: 'slab',
289                mds_colour_palette: 'palette-9',
290                site_name: '',
291                site_name_possessive: 'Forestry Journal\'s',
292                site_name_with_prefix_capitalised: 'The Forestry Journal',
293                site_name_with_prefix_lower: 'the Forestry Journal',
294                site_name_with_prefix_capitalised_possessive: 'The Forestry Journal\'s',
295                site_name_with_prefix_lower_possessive: 'the Forestry Journal\'s',
296                location_primary: '',
297                location_primary_possessive: '',
298                location_county: '',
299                location_county_possessive: '',
300                site_has_primary_sports_team: 'no',
301                primary_sports_team: '',
302                primary_sports_team_nickname: '',
303                primary_sports_team_sport: '',
304                primary_sports_team_possessive: '',
305                primary_sports_team_nickname_possessive: '',
306                site_id: '1121',
307                content_level: '',
308                content_author: '',
309                content_id: '',
310                content_is_article: 'no',
311                content_primary_topic: '',
312                user_seen_consent_modal: ($.cookie('_sp_enable_dfp_personalized_ads') === 'true' || $.cookie('_sp_enable_dfp_personalized_ads') === 'false') ? 'yes' : 'no',
313                site_section: data_layer_helper.getPathFragment(0, true),
314                article_published_yyyy: '',
315                user_played_free_puzzles_last_7days: '',
316                user_played_paid_puzzles_last_7days: '',
317                anon_user_played_free_puzzles_last_7days: data_layer_helper.untrackedPuzzleCheck(),
318                home_delivery_phone_number: '0800 953 0227',
319                content_is_restricted: data_layer_helper.getRestrictedContent('', '', '', ''),
320                day_of_week: data_layer_helper.getDayOfWeek(),
321                user_card_expired: '',
322                user_card_will_expire: '',
323                user_expires_urgency: '',
324                user_used_app_last_24hours: '',
325                user_used_app_last_7days: '',
326                user_used_app_last_14days: '',
327                user_subscription_tier: 'null',
328                user_is_newsquest: 'no',
329                primary_news_newsletter_id: '1873',
330                primary_news_newsletter_name: 'the Morning Briefing',
331                primary_news_newsletter_description: 'The latest stories, in your inbox every morning.',
332                primary_sport_newsletter_id: '',
333                primary_sport_newsletter_name: '',
334                primary_sport_newsletter_description: '',
335                user_signed_up_primary_news_newsletter: 'no',
336                user_signed_up_primary_sport_newsletter: 'no',
337                newsletter_auto_promote: '',
338                newsletter_auto_promote_name: '',
339                newsletter_auto_promote_description: '',
340                newsletter_auto_promote_ID: '',
341                site_has_app: 'yes',
342                site_app_store_url_ios: 'https://apps.apple.com/app/forestry-journal/id1234235397',
343                site_app_store_url_google_play: 'https://play.google.com/store/apps/details?id=com.pagesuite.droid.forestryjournal',
344                subsets_experiment_id: '',
345                site_section1: data_layer_helper.getPathFragment(1, true), // GBL required
346                site_newspaper_archive_enabled: 'no',
347                site_newspaper_archive_number_of_pages: '',
348                site_newspaper_archive_start_year: 0,
349                article_originates_from_this_site: '',
350                article_originates_from_site: '',
351                article_originates_from_url: ''
352            },
353            native_variables: {
354                setContentCreated: '',
355                setContentIsNative:  'no',
356                setContentAuthor: '',
357                setContentSection: data_layer_helper.getPathFragment(0, true)
358            }
359        },
360        article: {
361            cscore:'',
362            showing_preview: '',
363            is_article: data_layer_helper.isArticle() ? 'yes' : 'no',
364            id : '',
365            length_type: '',
366            character_count: '',
367            author: ''.toLowerCase(),
368            e_var15: ''.toLowerCase(),
369            context: '',
370            content_level: '',
371            content_level_open_access: '',
372            content_level_combined: ',,no',
373            content_is_restricted: data_layer_helper.getRestrictedContent('', '', '', ''),
374            increment: (data_layer_helper.isArticle()) ? '+1' : '',
375            sponsor: '',
376            contributions: '0',
377            is_sponsored: 'no',
378            headline: '',
379            age: data_layer_helper.getArticleAge(),
380            upload_date: '',
381            publish_date: '',
382            update_date: '',
383            rating: '',
384            source: data_layer_helper.getSource(''),
385            subjects: (typeof articleSubjects === 'object') ? articleSubjects.join(',') : '',
386            context: '',
387            grapeshot_context: (typeof gs_channels !== 'undefined') ? gs_channels : '',
388            allow_comments: 'no',
389            total_comments: '',
390            originating_site_id: '',
391            parent_article_site_id: '',
392            parent_article_id: '',
393            originating_article_id: '',
394            parent_originating_site_id: '',
395            is_original_to_site: '',
396            is_cloned: '',
397            parent_article_url: '',
398            use_skimlinks: 'no',
399            content_primary_topic: '',
400            taxonomy: {
401                article_types: '',
402                topics: '',
403                sports: '',
404                sports_teams: '',
405                locations: '',
406                shared_content: '',
407                free_tags: '',
408                farming: ''
409            },
410            audio: {
411                has_audio: 'no',
412                provider: ''
413            },
414            article_comments_use_viafoura: ''
415        },
416        homes: {
417            search_bedrooms_minimum: '',
418            search_location: 'subscriptions',
419            search_price_minimum: '',
420            search_price_maximum: '',
421            list: '',
422            id: ''
423        },
424        video: {
425            exists: 'no',
426            auto_play_enabled: data_layer_helper.getAutoPlay('no')
427        },
428        contributions: {
429            allow_text: '',
430            allow_image: '',
431            user_contributions_number: '0',
432            has_user_contributions: 'no'
433        },
434        search: {
435            keywords: qs.get('search'),
436            results: ''
437        },
438        announcements: {
439            category: ''
440        },
441        config: {
442            google_analytics_id: '',
443            site_template_set: 'standard',
444            path: '/subscriptions/app/',
445            top_level_section: 'subscriptions',
446            polar_property_id: '',
447            gallery_show_advert_after: '5',
448            disable_outbrain_with_ad_light: 'no',
449            disable_outbrain: 'yes'
450        },
451        dfp: {
452            is_landing: 'yes',
453            module_path: 'subscriptions',
454            weather_band: '',
455            weather_summary: ''.toLowerCase(),
456            id: data_layer_helper.getGoogleId(),
457            display_screen: data_layer_helper.isMobileScreen() ? 'mobile' : 'desktop',
458            can_show_billboard: (window.screen.width > 960) ? 'y' : 'n'
459        },
460        dates: {
461            date: (new Date()).toLocaleDateString('en-GB'),
462            hour: (new Date()).getHours(),
463            day: data_layer_helper.getDayOfWeek(),
464            weekend: ((new Date()).getDay() === 6 || (new Date()).getDay() === 0) ? 'Weekend' : 'Weekday'
465        },
466        memorials: {
467            contact_phone_number: '',
468            contact_email_address: '',
469            publications: JSON.parse('' || '[]'),
470            user: {
471                id: '',
472                email_verified: 'no',
473                type: ''
474            },
475            funeral_director: {
476                id: '',
477                person_urn: ''
478            }
479        }
480    }
481
482    data_layer_helper.storeCurrentPageName(data_layer.page.name);
483
484    window.dispatchEvent(new Event('data-layer-loaded'))
485
486      data_layer.piano.custom_variables.user_used_app_last_24hours = 'no';
487      data_layer.piano.custom_variables.user_used_app_last_7days = 'no';
488      data_layer.piano.custom_variables.user_used_app_last_14days = 'no';
489  if (data_layer.article.is_article !== 'yes') {
490      data_layer.piano.custom_variables.site_module = 'StaticHtmlModule';
491      data_layer.piano.custom_variables.puzzles_landing_page = 'no';
492      data_layer.piano.custom_variables.puzzles_display_page = 'no';
493  }
494</script>
494
495 
496<script
497  src="https://assets.adobedtm.com/499440d21de9/54b957ecfb7e/launch-98090dfa3d73.min.js"
498  async
499></script>
499
500 
501
502<script>"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(){var t=function(){var t,e,o=[],n=window,r=n;for(;r;){try{if(r.frames.__tcfapiLocator){t=r;break}}catch(t){}if(r===n.top)break;r=r.parent}t||(!function t(){var e=n.document,o=!!n.frames.__tcfapiLocator;if(!o)if(e.body){var r=e.createElement("iframe");r.style.cssText="display:none",r.name="__tcfapiLocator",r.title="tcfapiLocator",e.body.appendChild(r)}else setTimeout(t,5);return!o}(),n.__tcfapi=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return o;"setGdprApplies"===n[0]?n.length>3&&2===parseInt(n[1],10)&&"boolean"==typeof n[3]&&(e=n[3],"function"==typeof n[2]&&n[2]("set",!0)):"ping"===n[0]?"function"==typeof n[2]&&n[2]({gdprApplies:e,cmpLoaded:!1,cmpStatus:"stub"}):o.push(n)},n.addEventListener("message",(function(t){var e="string"==typeof t.data,o={};if(e)try{o=JSON.parse(t.data)}catch(t){}else o=t.data;var n="object"===_typeof(o)&&null!==o?o.__tcfapiCall:null;n&&window.__tcfapi(n.command,n.version,(function(o,r){var a={__tcfapiReturn:{returnValue:o,success:r,callId:n.callId}};t&&t.source&&t.source.postMessage&&t.source.postMessage(e?JSON.stringify(a):a,"*")}),n.parameter)}),!1))};"undefined"!=typeof module?module.exports=t:t()}();</script>
502
503
504<script type = "text/javascript">
505( function () {
506
507    window._sp_ = {
508        config: {
509            baseEndpoint: 'https://a02342.forestryjournal.co.uk',
510            accountId: 52,
511            targetingParams:{
512                subscribed: false,
513                privacy: false
514            },
515            gdpr: { },
516            events: {
517                onMessageReady: function (message_type) {
518                    trackSPEvents('event76');
519                },
520                onMessageChoiceSelect: function (message_type, choice_id, choice_type_id) {
521                    console.log('message_type: ', message_type);
522                    console.log('choice_id: ', choice_id);
523                    console.log('choice_type_id: ', choice_type_id);
524                    if ('yes' === 'yes') {
525                        if (choice_type_id === 12) {
526                            trackSPEvents('event83'); //Consent Banner Reject All
527                            trackSPEvents('event82'); //Journalism Message Shown
528                        }
529                        if (choice_type_id === 11) {
530                            trackSPEvents('event78');
531                        }
532                        if (choice_type_id === 9) {
533                            trackSPEvents('event77');
534                        }
535                    } else {
536                        // these are the second argument in non-gate
537                        if (choice_type_id === 12) {
538                            trackSPEvents('event77');
539                        }
540
541                        if (choice_type_id === 11) {
542                            trackSPEvents('event78');
543                        }
544
545                        if (choice_type_id === 13) {
546		                    trackSPEvents('event83');
547                        }
548                    }
549                },
550                onPrivacyManagerActionStatus: function(message_type, status, actionType) {
551                    console.log('message_type: ' + message_type);
552                    console.log('status: ' + status);
553                    console.log('actionType: ' + actionType);
554                    if ('yes' === 'yes') {
555                        if (actionType === 11) {
556                            trackSPEvents('event79'); //Privacy Manager Accept
557                        }
558                        if (actionType === 9) {
559                            trackSPEvents('event68'); //Privacy Manager Redirect
560                        }
561                        if (actionType === 1) {
562                            trackSPEvents('event75'); //Forced tcf String Change
563                        }
564                    } else {
565                    // these are the second argument in non-gate
566                        if (actionType === 13) {
567                            trackSPEvents('event81'); //Privacy Manager Reject
568                        }
569                        if (actionType === 11) {
570                            trackSPEvents('event79'); //Privacy Manager Accept
571                        }
572                        if (actionType === 1) {
573                            trackSPEvents('event80'); //Privacy Manager Save & Exit
574                        }
575                    }
576                },
577                onPMCancel: function (message_type) {
578                    console.log('onPMCancel', message_type);
579                    trackSPEvents('event84'); //Privacy Manager Back
580                },
581            }
582        }
583    }
584
585    if (typeof window.__tcfapi === 'function') {
586        window.__tcfapi('addEventListener', 2, function (tcData, success) {
587            console.log('SP: Event Listen:', tcData, success);
588            if (success && tcData.eventStatus === 'useractioncomplete') {
589                setTcfCookie(tcData.purpose.consents, tcData.purpose.legitimateInterests);
590
591                var csnt = 'none';
592                if ($.cookie('_sp_enable_dfp_personalized_ads') === 'true') {
593                    csnt = 'yes';
594                } else if ($.cookie('_sp_enable_dfp_personalized_ads') === 'false') {
595                    csnt = 'no';
596                }
597                googletag.cmd.push(function() {
598                    // console.log('DFP: Cookie check - setting dfpcsnt to ', csnt);
599                    googletag.pubads().setTargeting('dfpcsnt', csnt);
600                });
601                // ready to start DFP
602                // console.log('PIANO: setting unrestricted via useractioncomplete');
603                // runPiano('unrestricted');
604                startAdvertising(tcData.listenerId);
605
606                var e = new Event('launch:cmp:choice-made');
607                window.dispatchEvent(e);
608            } else if (success && tcData.eventStatus === 'tcloaded') {
609                // tcloaded means a valid TCF v2.0 string is available
610                // console.log('PIANO: setting unrestricted via tcloaded');
611                // runPiano('unrestricted');
612                if (tcData.gdprApplies === false) {
613                    $.cookie('_sp_enable_dfp_personalized_ads', 'true', {domain: '.forestryjournal.co.uk', path: '/', expires: 100});
614                }
615                startAdvertising(tcData.listenerId);
616
617            } else if (success && tcData.eventStatus === 'useractionnotcomplete') {
618                // do nothing - this means the user has not made a choice yet
619            } else if (success && tcData.eventStatus === 'cmpuishown') {
620                // do nothing - this means the CMP UI has been shown
621            } else if (!success) {
622                // $.cookie('_sp_enable_dfp_personalized_ads', 'true', {domain: '.forestryjournal.co.uk', path: '/', expires: 100});
623                // startAdvertising();
624            } else {
625                // console.log('PIANO: setting restricted');
626                // runPiano('restricted');
627            }
628        });
629    }
630
631    
632
633    document.addEventListener('click', function (e) {
634        const option = e.target.closest('.gdpr-option-v2');
635
636        if (!option) return;
637
638        e.preventDefault();
639        sendEvent76 = false;
640
641        const id = option.dataset.v2Id;
642        const isGate = option.dataset.isGate;
643
644        if (isGate === 'yes') {
645            trackSPEvents('event87');
646            _sp_.gdpr.loadPrivacyManagerModal(id);
647        } else {
648            trackSPEvents('event77');
649            _sp_.gdpr.loadPrivacyManagerModal(id);
650        }
651    });
652
653    function getTcfData() {
654        if (typeof window.__tcfapi !== 'function') {
655            console.warn('TCF API unavailable');
656            return;
657        }
658        window.__tcfapi('addEventListener', 2, function(data, success) {
659            if (!data.purpose || !data.purpose.consents || !data.purpose.legitimateInterests) {
660                // console.log('DFP: No TCF data found, not setting cookies');
661                return;
662            }
663            setTcfCookie(data.purpose.consents, data.purpose.legitimateInterests);
664        }, [755]);
665    }
666    getTcfData();
667
668    function setTcfCookie(data, legitimateInterests) {
669        var consents = [];
670        $.each(data, function(id, consent)  {
671            var c = (consent === true) ? 'yes' : 'no';
672            consents.push(c)
673        });
674        // console.log('DFP: consents length: ', consents.length);
675        if (consents.length !== 10) {
676            // consents = consents.fill('no', consents.length, 10);
677            for (var i = consents.length; i < 10; i++) {
678                consents[i] = 'no';
679            }
680        }
681        // console.log('DFP: Found consents to store in cookie:', consents);
682        $.cookie('prev-tcf-v2', consents.join(','), {domain: '.forestryjournal.co.uk', path: '/', expires: 100});
683
684        var consentEvent4 = 'none';
685        if (typeof data[4] !== 'undefined') {
686            consentEvent4 = data[4] ? 'true' : 'false';
687        }
688        $.cookie('_sp_enable_dfp_personalized_ads', consentEvent4, {domain: '.forestryjournal.co.uk', path: '/', expires: 100});
689
690        var legitInterest = 'none';
691        if (legitimateInterests && typeof legitimateInterests[2] !== 'undefined') {
692            legitInterest = legitimateInterests[2] ? 'true' : 'false';
693        }
694
695        $.cookie('_sp_legitimate_interests', legitInterest , {domain: '.forestryjournal.co.uk', path: '/', expires: 100});
696    }
697
698    var sendEvent76 = true;
699
700    function trackSPEvents(events) {
701        if (events === 'event76' && !sendEvent76) {
702            return;
703        } else if (events === 'event76') {
704            sendEvent76 = false;
705        }
706
707        if (typeof window.s !== 'object') {
708            // console.log('DFP: No window.s object found, trying again in 1 second');
709            window.setTimeout(function () { trackSPEvents(events)} , 1000);
710            return;
711        }
712
713        // console.log("ADB: Tracking %s", events);
714        // Re-create the Omniture object so the data can be tracked.
715        var s = window.s;
716
717        if (events.indexOf('event70') !== -1) {
718            // console.log('DFP: Events passed, added evars');
719            s.eVar35 = 'enabled';
720            s.prop35 = 'enabled';
721        }
722
723        s.events = events;
724        s.linkTrackEvents = events;
725        s.linkTrackVars = "eVar2,eVar3,eVar4,eVar5,eVar6,evar7,evar8,evar9,eVar16,eVar19,eVar26,eVar35,eVar43,eVar67,prop35";
726        s.suppressPageView = true;
727        s.tl(true,'o','Ad Block');
728    }
729
730    function startAdvertising(id)
731    {
732        if (typeof window.doNotAdvertise !== 'undefined' && window.doNotAdvertise === true) {
733            return;
734        }
735
736        // console.log("DFP: Is the page fully loaded?", window.googleReady);
737        if (window.googleReady !== true) {
738            window.setTimeout(function () {
739                // console.log('DFP: Google not fully loaded yet, pausing quarter of a second before trying again');
740                startAdvertising(id);
741            }, 250);
742            return;
743        }
744
745        // Ensure that we never run this code twice
746        if (window.advertisingStart === true) {
747            return;
748        }
749        // console.log('DFP: Running advertisement');
750        window.advertisingStart = true;
751
752        var googletag = window.googletag;
753        // init google objects and array
754        (function() {
755            var gads = document.createElement('script');
756            gads.async = true;
757            gads.type = 'text/javascript';
758            gads.src = 'https://securepubads.g.doubleclick.net/tag/js/gpt.js';
759            var node = document.getElementsByTagName('script')[0];
760            node.parentNode.insertBefore(gads, node);
761        })();
762
763        // launch the exco slideshow player
764        launchExcoSlideshow();
765
766        // load facebook etc
767        loadSocials();
768
769        // Checking our decision to use headerbidding (shorterned as prebid) is correct
770        // via system logic, and that we have the simplified consent to do so
771        if (usePrebid && $.cookie('_sp_enable_dfp_personalized_ads') === 'true') {
772            var e = new Event('launch:sourcepoint:consentaccepted');
773            window.dispatchEvent(e);
774
775            // AP code initialisation
776            // the script is loaded via launch, once we have detected a consent signal via the datalayer.
777            fetchAp();
778
779            var site = 'desktop';
780            var _site = 'desktop';
781
782            // load IAS scripts and set up vars
783            (function() {
784                var ias = document.createElement('script');
785                ias.async = true;
786                ias.type = 'text/javascript';
787                ias.src = 'https://cdn.adsafeprotected.com/iasPET.1.js';
788                var node = document.getElementsByTagName('script')[0];
789                node.parentNode.insertBefore(ias, node);
790            })();
791
792            // load the prebid script
793            (function() {
794                var pbs = document.createElement('script');
795                pbs.async = true;
796                pbs.type = 'text/javascript';
797                pbs.src = 'https://micro.rubiconproject.com/prebid/dynamic/11022.js?group=newsquest';
798                var node = document.getElementsByTagName('script')[0];
799                node.parentNode.insertBefore(pbs, node);
800            })();
801
802            // tell google to actually get the bids from all relevant vendors when loaded
803            googletag.cmd.push(function () {
804                fetchHeaderBids();
805            });
806        }
807
808        // Outbrain
809        if (
810            (window.data_layer.user.advertising_experience === 'Ad-Free' || window.data_layer.config.disable_outbrain === 'yes') ||
811            (window.data_layer.user.advertising_experience === 'Ad-Light' && window.data_layer.config.disable_outbrain_with_ad_light === 'yes')
812        ) {
813            // console.log("No Outbrain script loading due to page settings");
814        } else {
815            // console.log("Loading Outbrain");
816            var ob = document.createElement('script');
817            ob.async = true;
818            ob.type = 'text/javascript';
819            ob.src = 'https://widgets.outbrain.com/outbrain.js';
820            var node = document.getElementsByTagName('script')[0];
821            node.parentNode.insertBefore(ob, node);
822        }
823
824
825        // remove the listener
826        if (id !== null) {
827            window.__tcfapi('removeEventListener', 2, function (success) { }, id);
828        }
829    }
830
831    /**
832     * Wait until we have advertising consent to show this advertising
833     * based replacement for the single image on our article pages
834     * This logic is based on excoSlidshowPlayerID that only appears on the page
835     * if a user is NOT a subscriber (including privacy plus) and the page has the
836     * correct information to show it (doesn't have a video, not in sport etc)
837     */
838    function launchExcoSlideshow() {
839        const slideShowPlayerId = window.excoSlideshowPlayerId;
840        // if we do not have a player id, we do not need to do anything
841        if (!slideShowPlayerId) {
842            return;
843        }
844
845        // this is exco's supplied code, modified for our use
846        (function (d, s, n) {
847            fjs = d.getElementsByTagName(s)[0];
848            js = d.createElement(s);
849            js.className = n;
850            js.src = '//player.ex.co/player/' + slideShowPlayerId;
851            js.setAttribute('programmatic', 'true');
852	        js.onload = function () {
853                const playerApi = ExCoPlayer.connect(slideShowPlayerId);
854                playerApi.init({});
855
856                playerApi.on('player-load', function(data) {
857                    $('.mar-article-image').remove();
858                    if (window.screen.width > 800) {
859                        $('.article-hero').attr('style', 'order: 1');
860                    }
861                    window.hide_overlay_for_exco = true;
862                });
863            };
864            fjs.parentNode.insertBefore(js, fjs);
865        }(document, 'script', 'exco-player'));
866    }
867
868    function loadSocials()
869    {
870        const socials = [
871            'https://platform.twitter.com/widgets.js',
872            'https://connect.facebook.net/en_US/all.js#xfbml=1',
873            'https://www.tiktok.com/embed.js',
874        ];
875
876        socials.forEach((social) => {
877            var script = document.createElement('script');
878            script.src = social;
879            script.async = true;
880            document.getElementsByTagName('head')[0].appendChild(script);
881        });
882    }
883
884
885})();
886
887</script>
vendor: 1 bytes, line 887
887
888<script src="https://a02342.forestryjournal.co.uk/unified/wrapperMessagingWithoutDetection.js"></script>
888
889
890<script>
891window.usePiano = true;
892window.selectedOfferId = null;
893window.selectedTermId = null;
894</script>
vendor: 1 bytes, line 894
894
895<script>
896document.cookie = "__adblocker=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/";
897var setNptTechAdblockerCookie = function(adblocker) {
898    var d = new Date();
899    d.setTime(d.getTime() + 60 * 60 * 24 * 2 * 1000);
900    document.cookie = "__adblocker=" + (adblocker ? "true" : "false") + "; expires=" + d.toUTCString() + "; path=/";
901}
902var script = document.createElement("script");
903script.setAttribute("async", true);
904script.setAttribute("src", "//www.npttech.com/advertising.js");
905script.setAttribute("onerror", "setNptTechAdblockerCookie(true);");
906document.getElementsByTagName("head")[0].appendChild(script);
907</script>
907
908
909<script>
910// window.pdl = window.pdl || {};
911// window.pdl.requireConsent = 'v2';
912
913// Store entry point unless it's a user or subscribe page
914// to redirect after subscription
915const excludedPaths = ['/user/', '/subscribe/'];
916
917const shouldExclude = excludedPaths.some(path =>
918  window.location.pathname.includes(path)
919);
920
921if (!shouldExclude) {
922  sessionStorage.setItem(
923    'last_piano_page_interacted_with',
924    window.location.pathname
925  );
926}
927
928tp = window.tp || [];
929
930function runPiano(restrictedMode) {
931    // console.log('Running Piano with restricted mode:', restrictedMode);
932    // tp.push(['init', function() {
933    //      console.log('Piano purpose map, before calling setAllPurposes()', tp.consent.getByPurpose());
934    // }]);
935    // if (restrictedMode === 'restricted') {
936    //     // If we're in restricted mode, we need to set some specific parameters
937    //     tp.push(['init', function() {
938    //         tp.consent.setAllPurposes('opt-out')
939    //     }]);
940    // } else {
941    //     tp.push(['init', function() {
942    //         tp.consent.setAllPurposes('opt-in')
943    //     }]);
944    // }
945    // tp.push(['init', function() {
946    //     console.log('Piano purpose map, after calling setAllPurposes()', tp.consent.getByPurpose());
947    // }]);
948    // init Piano ID
949    tp.push(['init', function() {
950        tp.pianoId.init();
951    }]);
952
953    const isGooglebot = window.isRobot.googleBot();
954
955    const isArticle = (data_layer.article.is_article === 'yes');
956
957    const isCl3 = (parseInt(data_layer.article.content_level, 10) === 3);
958
959    if (isGooglebot) {
960        // we don't load Piano from all non-article pages
961        if (!isArticle) {
962            return;
963        }
964
965        // If we are on an article, we do not load piano on CL0, 1, or 2
966        if (!isCl3) {
967            return;
968        }
969    }
970    Object.keys(data_layer.piano.custom_variables).forEach(function (k) {
971        var v = data_layer.piano.custom_variables[k];
972
973        if (v != '') {
974            tp.push(["setCustomVariable", k, v]);
975        }
976    });
977
978    Object.keys(data_layer.piano.native_variables).forEach(function (k) {
979        var v = data_layer.piano.native_variables[k];
980        if (v != '') {
981            tp.push([k, v]);
982        }
983    });
984
985    tp.push(['setTags', data_layer.piano.tags]);
986
987   (function(src){
988        var a=document.createElement("script");
989        a.type = "text/javascript";
990        a.async=true;
991        a.src=src;
992        var b=document.getElementsByTagName("script")[0];
993        b.parentNode.insertBefore(a, b)
994    })("//experience.tinypass.com/xbuilder/experience/load?aid=BY2E0Kpxpu");
995}
996
997// Init Piano
998const debug = document.cookie
999    .split('; ')
1000    .find(row => row.startsWith('debug='))
1001    ?.split('=')[1];
1002
1003tp.push(["setDebug", debug === '1']);
1004
1005tp.push(["setApplePayMerchantId", 'merchant.nq.subssites.piano']);
1006
1007tp.push(["setUsePianoIdUserProvider", true ]);
1008
1009tp.push(["addHandler", "loginRequired", function(params) {
1010    // If they're already signed in, we don't need to do anything special.
1011    if (tp.user.isUserValid()) {
1012        return;
1013    }
1014    if (typeof window._overridePianoDefault !== 'undefined' && window._overridePianoDefault !== true) {
1015        console.log("TPL Called")
1016        tp.pianoId.show({
1017            screen: 'login',
1018            displayMode: 'modal',
1019            loggedIn: (data) => {
1020                pianoId.loggedIn();
1021            },
1022            loggedOut: () => {
1023                console.log('TP-TJ: user logged out');
1024            },
1025            registrationSuccess: () => {
1026                pianoId.registered();
1027            },
1028            width: '500px',
1029            height: '460px',
1030        });
1031    }
1032}]);
1033
1034tp.push(["addHandler", "checkoutSelectTerm", function (termDetails) {
1035    if (typeof termDetails.termId !== 'undefined') {
1036        window.selectedTermId = termDetails.termId;
1037    }
1038}]);
1039
1040tp.push(["addHandler", "showTemplate", function (templateParams) {
1041    showPianoTarget(templateParams);
1042}]);
1043
1044tp.push(["addHandler", "showOffer", function (offerParams) {
1045    window.shownOffer = true;
1046
1047    // Store some data we might need later.
1048    if (typeof offerParams.offerId !== 'undefined') {
1049        window.selectedOfferId = offerParams.offerId;
1050    }
1051
1052    showPianoTarget(offerParams);
1053}]);
1054
1055function handleFullWidthBanner(selector) {
1056    if (selector === '#po-overlay-articlegate-full-width-full-article-scroll-below') {
1057        document.querySelector(selector).classList.add(selector.replace('#', ''));
1058    }
1059    document.querySelector(selector).style.minHeight = "254px";
1060    document.querySelector('#subscription-content').style.display = 'none';
1061    document.querySelectorAll('.send-us-your-news-cta').forEach((el) => { el.style.display = 'none'; });
1062    document.querySelectorAll('.mega-news-block').forEach((el) => { el.style.display = 'none'; });
1063
1064    const block = document.querySelector(selector);
1065    const containerBlock = block.parentElement;
1066    const containerBlockHeight = 254; // to prevent abrupt jumping
1067
1068    if (!block) { return; }
1069
1070    block.style.display = 'block';
1071
1072    const blockRect = block.getBoundingClientRect();
1073    const startTop = blockRect.top + window.scrollY;
1074    const blockHeight = blockRect.height;
1075    const screenWidth = window.screen.width;
1076
1077    let lastState = ''; // 'top', 'bottom', 'default'
1078
1079    function getScrollbarWidth() {
1080        return window.innerWidth - document.documentElement.clientWidth;
1081    }
1082
1083    function updatePosition() {
1084        const scrollY = window.scrollY;
1085        const viewportHeight = window.innerHeight;
1086        const bottomTrigger = startTop + blockHeight - viewportHeight;
1087
1088        let newState = 'default';
1089
1090        if (scrollY > startTop && screenWidth >= 768) {
1091            newState = 'top';
1092        } else if (scrollY < bottomTrigger && screenWidth >= 768) {
1093            newState = 'bottom';
1094        } else if (scrollY < bottomTrigger + 90 && screenWidth < 768) {
1095            newState = 'bottom-mobile';
1096        }
1097
1098        const scrollbarWidth = getScrollbarWidth();
1099
1100        if (newState !== lastState) {
1101            switch (newState) {
1102                case 'top':
1103                    block.style.position = 'fixed';
1104                    block.style.top = '0';
1105                    block.style.bottom = 'auto';
1106                    block.style.marginLeft = '0';
1107                    block.style.marginRight = '0';
1108                    containerBlock.style.minHeight = `${containerBlockHeight}px`;
1109                    break;
1110
1111                case 'bottom':
1112                    block.style.position = 'fixed';
1113                    block.style.bottom = '0';
1114                    block.style.top = 'auto';
1115                    block.style.marginLeft = '0';
1116                    block.style.marginRight = '0';
1117                    block.style.width = `calc(100vw - ${scrollbarWidth}px)`;
1118                    containerBlock.style.minHeight = 'unset';
1119                    break;
1120
1121                case 'bottom-mobile':
1122                    block.style.position = 'fixed';
1123                    block.style.bottom = '90px';
1124                    block.style.top = 'auto';
1125                    block.style.marginLeft = 'calc(-100vw + 100%)';
1126                    block.style.marginRight = 'calc(-100vw + 100%)';
1127                    containerBlock.style.minHeight = 'unset';
1128                    break;
1129
1130                default:
1131                    block.style.position = '';
1132                    block.style.top = '';
1133                    block.style.bottom = '';
1134                    block.style.width = `calc(100vw - ${scrollbarWidth}px)`;
1135                    block.style.marginLeft = '-100vw';
1136                    block.style.marginRight = '-100vw';
1137                    containerBlock.style.minHeight = 'unset';
1138                    break;
1139            }
1140
1141            lastState = newState;
1142        }
1143
1144        requestAnimationFrame(updatePosition);
1145    }
1146
1147    updatePosition();
1148    window.addEventListener('resize', updatePosition);
1149}
1150
1151function trackLocation(forceValidLocation = false) {
1152    var currentLocation = window.location.pathname;
1153
1154    let valid = false;
1155
1156    if (currentLocation.indexOf('puzzles') > -1) {
1157        valid = true;
1158    }
1159
1160    if (currentLocation.indexOf('pagesuite') > -1) {
1161        valid = true;
1162    }
1163
1164    var articleMatch = currentLocation.match(/(\d+)\.[^\/]+\/(r\/)?$/);
1165    if (articleMatch != null) {
1166        valid = true;
1167    }
1168
1169    if (forceValidLocation) {
1170        valid = true;
1171    }
1172
1173    if (currentLocation.indexOf('subscribe') > -1) {
1174        valid = false;
1175    }
1176
1177    if (!valid) {
1178        return;
1179    }
1180
1181    $.cookie('last-piano-page-interacted-with', currentLocation, {path: '/', domain: window.data_layer.site.cookie_domain});
1182}
1183
1184function trackPianoWithNewRelic(templateName) {
1185    if (this.newrelic && typeof this.newrelic === 'object') {
1186        newrelic.setCustomAttribute('user_was_shown_piano_experience', templateName);
1187    }
1188}
1189
1190function handleOfferShow(params) {
1191    console.log('Piano params', params);
1192
1193    // If on the subscription page and the URL has a term ID and offer ID, show the relevant offer.
1194    if (typeof location.pathname !== 'undefined' && location.pathname === '/subscribe/') {
1195        var offerId = location.search.match(/offer_id=([A-Z0-9]+)/);
1196        if (offerId !== null && offerId.length > 1) {
1197            offerId = offerId[1];
1198        }
1199        var termId = location.search.match(/term_id=([A-Z0-9]+)/);
1200        if (termId !== null && termId.length > 1) {
1201            termId = termId[1];
1202        }
1203        if (offerId !== null && termId !== null) {
1204            tp.offer.show({'termId': termId, 'offerId': offerId});
1205        }
1206    }
1207
1208    // we are only tracking
1209    var templateId = params.templateId;
1210    var variantId = params.templateVariantId;
1211    if (params.containerSelector !== '#po-inline-articlegate-fullarticle' &&
1212        params.containerSelector !== '#po-overlay-articlegate-full-width-full-article-scroll-below' &&
1213        params.containerSelector !== '#po-inline-articlegate-partialarticle' &&
1214        params.containerSelector !== '#po-overlay-articlegate-full-width-scroll-below'
1215    ) {
1216        $.get('/ws/piano/templatename/', {template_id: templateId, variant_id: variantId}, function (response) {
1217            trackPianoSimplified(params, response.name);
1218        });
1219        return;
1220    }
1221
1222
1223    $.get('/ws/piano/templatename/', {template_id: templateId, variant_id: variantId}, function (response) {
1224        trackPiano(params, response.name);
1225    });
1226}
1227
1228function trackPiano(params, templateName) {
1229    trackPianoWithNewRelic(templateName);
1230
1231    if (typeof params.activeMeters === 'string') {
1232        activeMeters = JSON.parse(params.activeMeters);
1233    } else {
1234        activeMeters = params.activeMeters;
1235    }
1236
1237    var s = window.s;
1238    if (!s || !s.pageName) {
1239        // console.log("ADB: Setting s from backup");
1240        s = window.backupAdobe;
1241        window.s = s;
1242    }
1243
1244    // this would call when CL3 is a hard gate
1245    if (!activeMeters && data_layer.article.content_level === '3') {
1246        s.eVar59 = templateName;
1247        s.eVar58 = data_layer.article.content_level;
1248        s.events = "event91";
1249        s.linkTrackVars="eVar58,eVar2,eVar3,eVar4,eVar5,eVar6,eVar15,eVar16,eVar19,eVar25,eVar26,eVar28,eVar43,eVar59,eVar61,eVar62,eVar79,eVar104,eVar106,eVar107,eVar108,eVar118,prop63,list3,events";
1250        s.linkTrackEvents="event91";
1251        s.tl(document, 'o', 'Metered Access Notice');
1252        s.events = '';
1253        return;
1254    }
1255
1256    if (!activeMeters) {
1257        return;
1258    }
1259
1260    var meterData = activeMeters[0];
1261
1262    var meterName = meterData.meterName.toLowerCase();
1263
1264    // track event 5
1265    if (meterName.indexOf('cl1') !== -1 || meterName.indexOf('cl2') !== -1 || meterName.indexOf('cl3') !== -1 || params.containerSelector === '#po-inline-articlegate-partialarticle' || params.containerSelector === '#po-overlay-articlegate-full-width-scroll-below') {
1266        s.eVar58 = data_layer.article.content_level;
1267        s.eVar80 = meterData.meterName + ',' +  meterData.views + ',' + meterData.totalViews + ',' + meterData.viewsLeft + ',' + meterData.maxViews;
1268        s.eVar59 = templateName;
1269        s.events = "event5";
1270        s.linkTrackVars="eVar58,eVar2,eVar3,eVar4,eVar5,eVar6,eVar16,eVar19,eVar25,eVar26,eVar28,eVar43,eVar59,eVar61,eVar62,prop63,eVar80,eVar79,eVar118,list3, events";
1271        s.linkTrackEvents="event5";
1272    } else {
1273        s.eVar80 = meterData.meterName + ',' +  meterData.views + ',' + meterData.totalViews + ',' + meterData.viewsLeft + ',' + meterData.maxViews;
1274        s.eVar59 = templateName;
1275        s.linkTrackVars="eVar2,eVar3,eVar4,eVar5,eVar6,eVar16,eVar19,eVar25,eVar26,eVar28,eVar43,eVar59,eVar61,eVar62,prop63,eVar80,eVar79,eVar118,list3, events";
1276    }
1277    s.tl(document, 'o', 'Metered Access Notice');
1278    s.events = '';
1279
1280}
1281
1282/**
1283 * Just track the template name in 78 for non-article-interrupts/gates
1284 */
1285function trackPianoSimplified(params, templateName)
1286{
1287    trackPianoWithNewRelic(templateName);
1288
1289    var s = window.s;
1290    if (!s || !s.pageName) {
1291        // console.log("ADB: Setting s from backup");
1292        s = window.backupAdobe;
1293        window.s = s;
1294    }
1295    s.eVar78 = templateName;
1296    s.events = 'event90';
1297    s.linkTrackEvents="event90";
1298    s.linkTrackVars="eVar2,eVar3,eVar4,eVar5,eVar6,eVar16,eVar19,eVar25,eVar26,eVar28,eVar43,eVar59,eVar61,eVar62,prop63,eVar80,eVar79,eVar118,list3,eVar78, events";
1299    s.tl(document, 'o', 'Piano Template');
1300}
1301
1302function raiseLaunchEvent(name) {
1303    var e = new Event('launch:piano:' + name);
1304    window.dispatchEvent(e);
1305}
1306
1307function removePianoToast() {
1308    setTimeout(() => {
1309        document.getElementById('po-overlay-toast-left').remove()
1310    }, 30000)
1311}
1312
1313function showPianoTarget(params) {
1314    handleOfferShow(params);
1315    trackLocation();
1316
1317    if ($(params.containerSelector).length > 0) {
1318        const displayType = $(params.containerSelector).attr('data-display');
1319
1320        if (displayType) {
1321            $(params.containerSelector).addClass(`shown-${displayType}`);
1322        } else {
1323            $(params.containerSelector).addClass('shown').show();
1324        }
1325
1326        if ($(params.containerSelector).hasClass('piano--block-level') || $(params.containerSelector).hasClass('piano--inside-block')) {
1327            $(params.containerSelector).show();
1328        }
1329
1330        if (
1331            params.containerSelector === '#po-overlay-articlegate-full-width-scroll-below' ||
1332            params.containerSelector === '#po-overlay-articlegate-full-width-full-article-scroll-below'
1333        ) {
1334            handleFullWidthBanner(params.containerSelector);
1335        }
1336
1337        if ($(params.containerSelector) === '#po-inline-subscribe-page') {
1338            $(params.containerSelector).show();
1339        }
1340
1341        if (['#po-inline-blocksystem-target-e'].includes(params.containerSelector)) {
1342            $('#po-inline-blocksystem-target-e').show();
1343            $('.piano-promo-container').show();
1344        }
1345
1346        if (params.containerSelector === '#po-overlay-toast-left') {
1347            removePianoToast()
1348        }
1349
1350        if (params.containerSelector === '#po-overlay-toast-main-navigation') {
1351            removePianoToast()
1352        }
1353
1354        if (params.containerSelector === '#po-inline-articlewall-partialarticle-closable') {
1355            $('#po-inline-articlegate-partialarticle').css('display', 'none');
1356        }
1357
1358        if (params.containerSelector === '#po-inline-articlewall-fullarticle-closable') {
1359            $('#po-inline-articlegate-fullarticle').css('display', 'none');
1360        }
1361
1362        if (params.containerSelector === '#po-overlay-articlegate-full-width-full-article-scroll-below-closable') {
1363            $('#po-overlay-articlegate-full-width-full-article-scroll-below').css('display', 'none');
1364        }
1365    }
1366}
1367
1368tp.push(["addHandler", "checkoutComplete", function(conversion) {
1369    var s = window.s;
1370    s.events = s.apl(s.events, "event4", ",", 1); // Set the subscription counter event.
1371    s.events = s.apl(s.events, "purchase", ",", 1); // Set the purchase event.
1372    s.products = "Subscription : Metered Access;" + conversion.termId + ";1;"+conversion.chargeAmount;
1373    s.linkTrackEvents = "event4,purchase";
1374    s.purchaseID = conversion.termConversionId;
1375    s.pageName = '(www) /subscribe/complete/';
1376    // wipe out errors
1377    s.eVar31 = '';
1378    s.linkTrackVars="eVar2,eVar3,eVar5,eVar6,eVar7,eVar8,eVar9,eVar10,eVar15,eVar16,eVar17,eVar18,eVar19,eVar20,eVar22,eVar23,eVar24,eVar25,eVar26,eVar61,eVar62,events,products,purchaseID";
1379
1380    s.tl(true, 'o', 'Subscription');
1381
1382    $.cookie('resourceConverted', conversion.rid, {path: '/', domain: window.data_layer.site.cookie_domain});
1383    $.cookie('pianoConverted', '1', {path: '/', domain: window.data_layer.site.cookie_domain});
1384    raiseLaunchEvent('checkoutComplete');
1385
1386    // Clean Session Storage
1387    sessionStorage.removeItem('nq_selected_offer_id');
1388    sessionStorage.removeItem('nq_selected_term_id');
1389    sessionStorage.removeItem('nq_adobe_tracking_article_dimensions');
1390    sessionStorage.removeItem('nq_adobe_tracking_visiting_dimensions');
1391
1392    // Show Onboarding modal after subscription
1393    const lastPage = sessionStorage.getItem('last_piano_page_interacted_with');
1394    const baseUrl = lastPage || window.location.href;
1395
1396    const url = new URL(baseUrl, window.location.origin);
1397    url.searchParams.set('show-onboarding', 'yes');
1398
1399    setTimeout(() => {
1400        window.location.href = url.pathname + url.search;
1401    }, 2000);
1402}]);
1403
1404tp.push(["addHandler", "checkoutPaymentError", function(errorData) {
1405    var s = window.s;
1406    s.pageName = '(www) /subscribe/error/';
1407    s.eVar31 = errorData.message;
1408    s.tl(true, 'o', 'CheckoutPaymentError');
1409
1410    raiseLaunchEvent('checkoutPaymentError');
1411}]);
1412
1413tp.push(["addHandler", "checkoutError", function(errorData) {
1414    var s = window.s;
1415    s.pageName = '(www) /subscribe/error/';
1416    s.eVar31 = errorData.message;
1417    s.tl(true, 'o', 'CheckoutError');
1418    raiseLaunchEvent('checkoutError');
1419}]);
1420
1421tp.push(["addHandler", "startCheckout", function(options) {
1422    sessionStorage.setItem("nq_selected_offer_id", options.offerId);
1423    sessionStorage.setItem("nq_selected_term_id", options.termId);
1424
1425    if (!tp.user.isUserValid()) {
1426        window.location = '/user/create-account/subscribe/';
1427        return;
1428    }
1429
1430    var s = window.s;
1431    s.eVar2 = '(www) /subscribe/payment/';
1432    s.pageName = '(www) /subscribe/payment/';
1433    const storedAdobeArticleDimensions = sessionStorage.getItem('nq_adobe_tracking_article_dimensions');
1434    const storedAdobeVisitingDimensions = sessionStorage.getItem('nq_adobe_tracking_visiting_dimensions');
1435    if (storedAdobeVisitingDimensions) {
1436        const storedAdobeVisitingDimensionsObj = JSON.parse(storedAdobeVisitingDimensions);
1437        s.eVar10 = storedAdobeVisitingDimensionsObj.eVar10;
1438        s.eVar22 = storedAdobeVisitingDimensionsObj.eVar22;
1439        s.eVar23 = storedAdobeVisitingDimensionsObj.eVar23;
1440        s.eVar24 = storedAdobeVisitingDimensionsObj.eVar24;
1441    }
1442    if (storedAdobeArticleDimensions) {
1443        const storedAdobeArticleDimensionsObj = JSON.parse(storedAdobeArticleDimensions);
1444        s.eVar10 = storedAdobeArticleDimensionsObj.eVar10;
1445        s.eVar15 = storedAdobeArticleDimensionsObj.eVar15;
1446        s.eVar22 = storedAdobeArticleDimensionsObj.eVar22;
1447        s.eVar23 = storedAdobeArticleDimensionsObj.eVar23;
1448        s.eVar24 = storedAdobeArticleDimensionsObj.eVar24;
1449        s.eVar25 = storedAdobeArticleDimensionsObj.eVar25;
1450    }
1451    // wipe out errors
1452    s.eVar31 = '';
1453    s.events = '';
1454    raiseLaunchEvent('startCheckout');
1455    s.linkTrackVars="eVar10,eVar15,eVar22,eVar23,eVar24,eVar25";
1456    s.t();
1457}]);
1458
1459tp.push(["addHandler", "checkoutClose", function(conversion) {
1460    raiseLaunchEvent('checkoutClose');
1461
1462    // Did they abandon the cart? If so: was anything in their cart?
1463    if (typeof conversion.state === 'undefined' || conversion.state !== 'close') {
1464        return;
1465    }
1466    if (window.selectedOfferId === null || window.selectedTermId === null) {
1467        return;
1468    }
1469    $.post('/ws/piano/abandoned-cart/', {offer_id: window.selectedOfferId, term_id: window.selectedTermId});
1470}]);
1471
1472tp.push(["addHandler", "meterExpired", function(meterData){
1473    var msg = "<div><b>meterName:</b> " + meterData.meterName
1474        + "&nbsp; | &nbsp;<b>views:</b> " + meterData.views
1475        + "&nbsp; | &nbsp;<b>totalViews:</b> " + meterData.totalViews
1476        + "&nbsp; | &nbsp;<b>viewsLeft:</b> " + meterData.viewsLeft
1477        + "&nbsp; | &nbsp;<b>maxViews:</b> " + meterData.maxViews
1478        + "&nbsp; | &nbsp;<b>callback:</b> " + meterData.callback + '</div>';
1479    if ($.cookie('nq-show-piano-viewer') === 'yes') {
1480        $('#piano-meter-value').html(msg);
1481        $('#piano-meter-display').show();
1482        $('#piano-meter-display-content').append(msg);
1483    }
1484    var cVal = window.location.href;
1485
1486    trackLocation(true);
1487
1488    console.log("Piano Meter Expired:", meterData.meterName);
1489    if (meterData.meterName === 'CL1 Meter') {
1490        console.log("Piano: Setting meter expired cookie");
1491        $.cookie('isMeterExpired', 'yes', {path: '/', domain: window.data_layer.site.cookie_domain, expires: 1});
1492    }
1493
1494    raiseLaunchEvent('meterExpired');
1495
1496}]);
1497
1498tp.push(["addHandler", "meterActive", function(meterData){
1499    var msg = "<div><b>meterName:</b> " + meterData.meterName
1500        + "&nbsp; | &nbsp;<b>views:</b> " + meterData.views
1501        + "&nbsp; | &nbsp;<b>totalViews:</b> " + meterData.totalViews
1502        + "&nbsp; | &nbsp;<b>viewsLeft:</b> " + meterData.viewsLeft
1503        + "&nbsp; | &nbsp;<b>maxViews:</b> " + meterData.maxViews
1504        + "&nbsp; | &nbsp;<b>callback:</b> " + meterData.callback + '</div>';
1505    if ($.cookie('nq-show-piano-viewer') === 'yes') {
1506        $('#piano-meter-value').html(msg);
1507        $('#piano-meter-display').show();
1508        $('#piano-meter-display-content').append(msg);
1509    }
1510
1511    console.log("Piano Meter running total:", meterData.meterName,  meterData.totalViews, meterData.maxViews, meterData);
1512    if (meterData.meterName === 'CL1 Meter' && meterData.totalViews >= meterData.maxViews) {
1513        $.cookie('isMeterExpired', 'yes', {path: '/', domain: window.data_layer.site.cookie_domain, expires: 1});
1514    } else {
1515        $.cookie('isMeterExpired', 'no', {path: '/', domain: window.data_layer.site.cookie_domain, expires: 1});
1516    }
1517}]);
1518
1519
1520tp.push(["setCxenseSiteId", "2478428342924650590"]);
1521
1522
1523runPiano('unrestricted');
1524
1525</script>
1525
1526
1527
1528
1529    <link rel="apple-touch-icon" href="/resources/images/10308247/">
1530    <link rel="apple-touch-icon" sizes="72x72" href="/resources/images/10308246/">
1531    <link rel="apple-touch-icon" sizes="114x114" href="/resources/images/10308248/">
1532
1533
1534    <!-- Add iconify -->
1535    
1535<script src="https://code.iconify.design/1/1.0.7/iconify.min.js" integrity="sha384-jQq64HqdQD5xg0PPkpkCOW3x8Nsfx5UT1qWOpoJxLYy6Ef+5i+8xPoAj/I3B+ZMm" crossorigin="anonymous"></script>
1535
1536</head>
1537<body class="sticky-footer" data-cache-buster="mkW8NyPe" data-template="" data-template-colour="Blue" data-namespace="standard">
1538    <!--
1539  ##+ +##  ##: `#####.  #######  ###  ###      ######  `#####.  #######      ###  ,##  +#####
1540  +## ###' ##  #######  ######## ### ###       ######  #######  ########     ###  ,##  ######:
1541  .## #### ## ###   ### ###  ### ######        ##,    ###   ### ###  ###     ###  ,##  ##`
1542   ##,#+##:## ###   ### #######  ######        #####+ ###   ### #######      ###  ,##  +#####
1543   ####`####+ ###   ### ######   #######       #####+ ###   ### ######       ###  ,##     ####
1544   #### .###. '##   ##' ### ###  ### ,##:      ##,    '##   ##' ### ###      ###  ### '##  +##
1545   :###  ###   #######  ### `##+ ###  ###      ##,     #######  ### `##+     `#######  ######+
1546    ##:  ###    #####   ###  ### ###  ,###     ##,      #####   ###  ###       #####    ####+
1547
1548Developers, designers, testers - interested in working for us?
1549Contact this guy....https://uk.linkedin.com/in/hillsimon
1550-->
1551
1552
1553    <div style="height: 0px"><div id="DFP_out_of_page"></div></div>
1554
1555    <div id="paywallWindowOverlay"></div>
1556
1557
1558
1559    <div id="takeover">
1560        <div id="martini-config" class="layout">
1561            <div id="header-content">
1562                <!-- standard - header-1.html --> <header id="site-header" class="site-header site-header--1 header-bottom-margin" >
1563    
1564    <div class="header-topnav" role="navigation" aria-label="top-navigation">
1565    
1566    <div class="container-inner-width">
1567        <div class="header-topnav-links">
1568          <ul class="list-style-none">
1569             <li><a class="mar-nav--promo-link" href="/classified-ads/">Classifieds</a></li> <li><a class="mar-nav--promo-link" href="/directories/">Directories</a></li> <li><a class="mar-nav--promo-link" href="/media-partners/">Media Partners</a></li> <li><a class="mar-nav--promo-link" href="/media-partners/apf/">APF Catalogue</a></li> <li><a class="mar-nav--promo-link" href="/puzzles/">Puzzles</a></li> <li><a class="mar-nav--promo-link" href="/contact/">Contact Us</a></li> 
1570          </ul>
1571        </div>
1572          <ul id="links-nav" class="header-topnav--links-nav list-style-none">
1573            <li class="links-nav-label"><span class="links-nav-label-text">More</span>
1574                <ul class="list-style-none">
1575                    <li class="dropdown-icon-closed">
1576                        <span class="iconify" data-icon="akar-icons:chevron-down"></span>
1577                    </li>
1578                    <li class="dropdown-icon-open" style="display: none;">
1579                        <span class="iconify" data-icon="akar-icons:chevron-up"></span>
1580                    </li>
1581
1582                    <li class="links-nav-container">
1583                        <ul class="list-style-none">
1584                            <li><a class="mar-nav--promo-link" href="/classified-ads/">Classifieds</a></li> <li><a class="mar-nav--promo-link" href="/directories/">Directories</a></li> <li><a class="mar-nav--promo-link" href="/media-partners/">Media Partners</a></li> <li><a class="mar-nav--promo-link" href="/media-partners/apf/">APF Catalogue</a></li> <li><a class="mar-nav--promo-link" href="/puzzles/">Puzzles</a></li> <li><a class="mar-nav--promo-link" href="/contact/">Contact Us</a></li> 
1585                        </ul>
1586                    </li>
1587                </ul>
1588            </li>
1589          </ul>
1590    </div>
1591    
1592        </div>
1593
1594    <div class="site-brand container-inner-width">
1595        <div class="site-brand__container">
1596        <a href="/">
1597            <img src="/resources/images/small_site_logo/" alt="Forestry Journal" class="site-brand__brand-image"/>
1598        </a>
1599        </div>
1600        <div class="simple-header-top-navigation">
1601    <div class="simple-header-top-navigation__links">
1602
1603        <div class="simple-header-top-navigation__links--primary-links header-primary-links">
1604            
1605            <a href="/subscribe/" aria-label="subscribe button" class="mar-btn mar-btn--promo-primary">
1606                Subscribe
1607            </a>
1608            
1609
1610            
1611            <ul class="list-style-none top-nav-overflow">
1612                <li><a  href="/pagesuite/" class="mar-btn mar-btn--promo-secondary">Digital Edition</a></li> <li><a  href="/puzzles/" class="mar-btn mar-btn--promo-primary">Puzzles</a></li> 
1613            </ul>
1614            
1615        </div>
1616
1617        
1618        
1619        <div class="simple-header-top-navigation__links--classifieds">
1620            
1621        </div>
1622        
1623        
1624
1625    </div>
1626    
1627    <div class="simple-header-top-navigation__links--account">
1628        
1629        <a id="user-login-not-loggedin" href="/user/login/?redirect_url=/user/account/" class="simple-header-top-navigation__user-login mar-btn" title="User Account">
1630            <div aria-label="User Account Button" id="headerUserAccountButton">
1631                <svg xmlns="http://www.w3.org/2000/svg " width="14" height="16" viewB
1631ox="0 0 10 14" fill="none">
1632<circle cx="5" cy="3.85718" r="3" fill="black"/>
1633<ellipse cx="5" cy="10.2857" rx="5" ry="2.85714" fill="black"/>
1634</svg>
1635            </div>
1636        </a>
1637        
1638    </div>
1639    
1640
1641    <button aria-expanded="false" aria-label="Open the menu" class="simple-header-top-navigation__mega-menu-btn primary-nav__menu--more-btn">
1642        <svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M3 6h18M3 12h18M3 18h18"/></svg>
1643    </button>
1644
1645</div>
1646    </div>
1647
1648    <div id="mega-menu" class="mega-menu" style="display: none;">
1649    <div class="mega-menu__container mega-menu__wrapper">
1650        <div class="mega-menu__cancel-button">
1651            <i aria-expanded="true" aria-hidden="true" aria-label="Close the menu" class="mega-menu__cancel-button--icon">
1652                <span class="iconify" data-icon="eva:close-fill" data-inline="false"></span>
1653                <div>Close</div>
1654            </i>
1655        </div>
1656
1657    
1658        <div class="mega-menu-subscribe-banner">
1659            <span>Stay ahead with a digital subscription</span>
1660            <a href="/subscribe/">Subscribe</a>
1661        </div>
1662    
1663
1664    
1665        <div class="mega-menu__features expanded-sub-nav">
1666        <div class="mega-menu__features--links">
1667            
1668            <a href="https://www.facebook.com/ForestryJournal" target="_blank" class="col link-item">Facebook</a>
1669            
1670
1671                <a href="https://www.instagram.com/forestryjournal/" target="_blank" class="col link-item">Instagram</a>
1672            
1673
1674                <a href="https://www.tiktok.com/@forestryjournal" target="_blank" class="col link-item">TikTok</a>
1675            
1676
1677                <a href="https://youtube.com/channel/UCSd5JelZa577UgQX2NAJn7w" target="_blank" class="col link-item">YouTube</a>
1678            
1679
1680                <a href="https://www.youtube.com/playlist?list=PLLA2NI1m0uewP-EfMceM1pIq2fda-H-8S" target="_blank" class="col link-item">Watch the Forestry Briefing</a>
1681            
1682
1683                <a href="https://www.linkedin.com/showcase/forestry-journal-&amp;-essentialarb/" target="_blank" class="col link-item">LinkedIn</a>
1684            
1685
1686                <a href="https://www.forestryjournal.co.uk/newsletters/" target="_blank" class="col link-item">Newsletters</a>
1687            
1688
1689                <a href="https://www.newsquestrewards.co.uk/" target="_blank" class="col link-item">Reader Rewards</a>
1690            
1691            </div>
1692            <hr class="divider none">
1693        </div>
1694    
1695
1696        <div class="mega-menu__search">
1697          <form method="get" action="/search/">
1698              <label class="mega-menu__search--title" for="searchbar-input">Search</label>
1699              <div class="mega-menu__search--bar">
1700                  <input id="searchbar-input" class="searchbar-input" type="text" name="search" placeholder="Search Forestry Journal">
1701                  <button class="searchbar-btn mira-search-button" type="submit"><span class="iconify" data-icon="fe:search" data-inline="false"></span></button>
1702              </div>
1703          </form>
1704        </div>
1705
1706        <div class="mega-menu__main-list link-list">
1707      <div class="mega-menu__main-list--list-item">
1708                <div>
1709                    <div>
1710                        <a href="/news/">
1711                            <h3><span class="mega-menu__main-list--parent-link">News</span></h3>
1712                        </a>
1713                    </div>
1714        
1715                    <div class="mega-menu__main-list--child-links">
1716                      <div class="child-item">
1717                          <a href="/news/equipment/">Equipment</a>
1718                      </div>
1719                  
1720
1721                      <div class="child-item">
1722                          <a href="/news/grants/">Grants</a>
1723                      </div>
1724                  
1725
1726                      <div class="child-item">
1727                          <a href="/news/people/">People</a>
1728                      </div>
1729                  
1730
1731                      <div class="child-item">
1732                          <a href="/news/plant-health/">Plant Health</a>
1733                      </div>
1734                  
1735
1736                      <div class="child-item">
1737                          <a href="/news/politics/">Politics</a>
1738                      </div>
1739                  
1740
1741                      <div class="child-item">
1742                          <a href="/news/vacancies/">Vacancies</a>
1743                      </div>
1744                    </div>
1745        
1746                </div>
1747                <div class="divider"></div>
1748            </div>
1749      
1750
1751            <div class="mega-menu__main-list--list-item">
1752                <div>
1753                    <div>
1754                        <a href="/situations-vacant/">
1755                            <h3><span class="mega-menu__main-list--parent-link">Jobs</span></h3>
1756                        </a>
1757                    </div>
1758        
1759                    <div class="mega-menu__main-list--child-links">
1760                      <div class="child-item">
1761                          <a href="/situations-vacant/otheragriculturalvacancies/">Other Agricultural Vacancies</a>
1762                      </div>
1763                    </div>
1764        
1765                </div>
1766                <div class="divider"></div>
1767            </div>
1768      
1769
1770            <div class="mega-menu__main-list--list-item">
1771                <div>
1772                    <div>
1773                        <a href="/opinion/">
1774                            <h3><span class="mega-menu__main-list--parent-link">Opinion</span></h3>
1775                        </a>
1776                    </div>
1777        
1778                    <div class="mega-menu__main-list--child-links">
1779                      <div class="child-item">
1780                          <a href="/opinion/voices-of-forestry/">Voices of Forestry</a>
1781                      </div>
1782                  
1783
1784                      <div class="child-item">
1785                          <a href="/opinion/letters/">Letters</a>
1786                      </div>
1787                    </div>
1788        
1789                </div>
1790                <div class="divider"></div>
1791            </div>
1792      
1793
1794            <div class="mega-menu__main-list--list-item">
1795                <div>
1796                    <div>
1797                        <a href="/features/">
1798                            <h3><span class="mega-menu__main-list--parent-link">Features</span></h3>
1799                        </a>
1800                    </div>
1801        
1802                    <div class="mega-menu__main-list--child-links">
1803                      <div class="child-item">
1804                          <a href="/features/foresters-diary/">Forester's Diary</a>
1805                      </div>
1806                  
1807
1808                      <div class="child-item">
1809                          <a href="/features/women-in-forestry/">Women In Forestry</a>
1810                      </div>
1811                  
1812
1813                      <div class="child-item">
1814                          <a href="/features/bites-from-the-blog/">Bites From The Blog</a>
1815                      </div>
1816                  
1817
1818                      <div class="child-item">
1819                          <a href="/features/tree-of-the-month/">Tree Of The Month</a>
1820                      </div>
1821                  
1822
1823                      <div class="child-item">
1824                          <a href="/features/voice/">Voice</a>
1825                      </div>
1826                    </div>
1827        
1828                </div>
1829                <div class="divider"></div>
1830            </div>
1831      
1832
1833            <div class="mega-menu__main-list--list-item">
1834                <div>
1835                    <div>
1836                        <a href="/machinery/">
1837                            <h3><span class="mega-menu__main-list--parent-link">Machinery</span></h3>
1838                        </a>
1839                    </div>
1840        
1841                    <div class="mega-menu__main-list--child-links">
1842                      <div class="child-item">
1843                          <a href="/machinery/itesfromthelog/">Bites from the Blog</a>
1844                      </div>
1845                  
1846
1847                      <div class="child-item">
1848                          <a href="/machinery/equipment-reviews/">Equipment</a>
1849                      </div>
1850                  
1851
1852                      <div class="child-item">
1853                          <a href="/machinery/vehicle-reviews/">Vehicle Reviews</a>
1854                      </div>
1855                    </div>
1856        
1857                </div>
1858                <div class="divider"></div>
1859            </div>
1860      
1861
1862            <div class="mega-menu__main-list--list-item">
1863                <div>
1864                    <div>
1865                        <a href="/buyersguides/">
1866                            <h3><span class="mega-menu__main-list--parent-link">Buyers Guides</span></h3>
1867                        </a>
1868                    </div>
1869        
1870                </div>
1871                <div class="divider"></div>
1872            </div>
1873      
1874
1875            <div class="mega-menu__main-list--list-item">
1876                <div>
1877                    <div>
1878                        <a href="/events/">
1879                            <h3><span class="mega-menu__main-list--parent-link">Events</span></h3>
1880                        </a>
1881                    </div>
1882        
1883                    <div class="mega-menu__main-list--child-links">
1884                      <div class="child-item">
1885                          <a href="/events/apf-show/">APF Show</a>
1886                      </div>
1887                  
1888
1889                      <div class="child-item">
1890                          <a href="/events/apf-catalogue/">APF Catalogue</a>
1891                      </div>
1892                  
1893
1894                      <div class="child-item">
1895                          <a href="/events/arb-show/">ARB Show</a>
1896                      </div>
1897                  
1898
1899                      <div class="child-item">
1900                          <a href="/events/elmia-wood/">Elmia Wood</a>
1901                      </div>
1902                  
1903
1904                      <div class="child-item">
1905                          <a href="/events/swedish-forestry-expo/">Swedish Forestry Expo</a>
1906                      </div>
1907                    </div>
1908        
1909                </div>
1910                <div class="divider"></div>
1911            </div>
1912      
1913
1914            <div class="mega-menu__main-list--list-item">
1915                <div>
1916                    <div>
1917                        <a href="/essential-arb/">
1918                            <h3><span class="mega-menu__main-list--parent-link">essentialARB</span></h3>
1919                        </a>
1920                    </div>
1921        
1922                    <div class="mega-menu__main-list--child-links">
1923                      <div class="child-item">
1924                          <a href="/essential-arb/tree-gang/">Tree Gang</a>
1925                      </div>
1926                  
1927
1928                      <div class="child-item">
1929                          <a href="/essential-arb/tales-from-the-trees/">Tales from the Trees</a>
1930                      </div>
1931                  
1932
1933                      <div class="child-item">
1934                          <a href="/essential-arb/a-view-from-the-nursery/">A View From The Nursery</a>
1935                      </div>
1936                  
1937
1938                      <div class="child-item">
1939                          <a href="/essential-arb/women-in-arb/">Women In Arb</a>
1940                      </div>
1941                  
1942
1943                      <div class="child-item">
1944                          <a href="/essential-arb/arb-confidential/">Arb Confidential</a>
1945                      </div>
1946                    </div>
1947        
1948                </div>
1949                <div class="divider"></div>
1950            </div>
1951      
1952
1953            <div class="mega-menu__main-list--list-item">
1954                <div>
1955                    <div>
1956                        <a href="/advertise/">
1957                            <h3><span class="mega-menu__main-list--parent-link">Advertise</span></h3>
1958                        </a>
1959                    </div>
1960        
1961                </div>
1962                <div class="divider"></div>
1963            </div>
1964      
1965
1966            <div class="mega-menu__main-list--list-item">
1967                <div>
1968                    <div>
1969                        <a href="/subscriptions/">
1970                            <h3><span class="mega-menu__main-list--parent-link">Subscriptions</span></h3>
1971                        </a>
1972                    </div>
1973        
1974                    <div class="mega-menu__main-list--child-links">
1975                      <div class="child-item">
1976                          <a href="/subscriptions/free-sample-issue/">Free Sample Issue</a>
1977                      </div>
1978                  
1979
1980                      <div class="child-item">
1981                          <a href="/subscriptions/subscription-order-form/">Subscription Order Form</a>
1982                      </div>
1983                  
1984
1985                      <div class="child-item">
1986                          <a href="/subscriptions/digital-edition/">Digital Edition</a>
1987                      </div>
1988                  
1989
1990                      <div class="child-item">
1991                          <a href="/subscriptions/app/">App</a>
1992                      </div>
1993                    </div>
1994        
1995                </div>
1996                <div class="divider"></div>
1997            </div>
1998        </div>
1999    </div>
2000
2001    <div class="mega-menu__sticky">
2002        <ul class="list-style-none mega-menu__sticky--list">
2003            <div class="mega-menu__sticky--primary-links">
2004                
2005                <li>
2006                <a href="/subscribe/">
2007                    <button class="mar-btn--promo-primary">
2008                        Subscribe
2009                    </button>
2010                </a></li>
2011            
2012                <li><a  href="/pagesuite/" class="mar-btn mar-btn--promo-secondary">Digital Edition</a></li> <li><a  href="/puzzles/" class="mar-btn mar-btn--promo-primary">Puzzles</a></li> 
2013            </div>
2014            <li><a class="mar-nav--promo-link" href="/classified-ads/">Classifieds</a></li> <li><a class="mar-nav--promo-link" href="/directories/">Directories</a></li> <li><a class="mar-nav--promo-link" href="/media-partners/">Media Partners</a></li> <li><a class="mar-nav--promo-link" href="/media-partners/apf/">APF Catalogue</a></li> <li><a class="mar-nav--promo-link" href="/puzzles/">Puzzles</a></li> <li><a class="mar-nav--promo-link" href="/contact/">Contact Us</a></li> 
2015        </ul>
2016    </div>
2017</div>
2018
2019
2020    <!-- standard - SimplePrimaryNavigation.html --> <nav aria-label="Main navigation" id="primary-nav" class="primary-nav">
2021    <div class="primary-nav__container container-inner-width">
2022        <span class="primary-nav__left">
2023          <nav class="primary-nav__menu">
2024              <div class="primary-nav__menu-container">
2025  <div class="primary-nav__menu--item">
2026                      <a class="primary-nav__menu--link" href="/news/">News</a>
2027                  </div>
2028  
2029
2030                  <div class="primary-nav__menu--item">
2031                      <a class="primary-nav__menu--link" href="/situations-vacant/">Jobs</a>
2032                  </div>
2033  
2034
2035                  <div class="primary-nav__menu--item">
2036                      <a class="primary-nav__menu--link" href="/opinion/">Opinion</a>
2037                  </div>
2038  
2039
2040                  <div class="primary-nav__menu--item">
2041                      <a class="primary-nav__menu--link" href="/features/">Features</a>
2042                  </div>
2043  
2044
2045                  <div class="primary-nav__menu--item">
2046                      <a class="primary-nav__menu--link" href="/machinery/">Machinery</a>
2047                  </div>
2048  
2049
2050                  <div class="primary-nav__menu--item">
2051                      <a class="primary-nav__menu--link" href="/buyersguides/">Buyers Guides</a>
2052                  </div>
2053  
2054
2055                  <div class="primary-nav__menu--item">
2056                      <a class="primary-nav__menu--link" href="/events/">Events</a>
2057                  </div>
2058  
2059
2060                  <div class="primary-nav__menu--item">
2061                      <a class="primary-nav__menu--link" href="/essential-arb/">essentialARB</a>
2062                  </div>
2063  
2064
2065                  <div class="primary-nav__menu--item">
2066                      <a class="primary-nav__menu--link" href="/advertise/">Advertise</a>
2067                  </div>
2068  
2069
2070                  <div class="primary-nav__menu--item primary-nav__menu--item--active">
2071                      <a class="primary-nav__menu--link" href="/subscriptions/">Subscriptions</a>
2072                  </div>
2073              </div>
2074          </nav>
2075        </span>
2076        <span class="primary-nav__right">
2077            <div class="primary-nav__menu--more-btn">
2078                <button aria-expanded="false" aria-label="Open the menu" class="more-link more-burger-icon">
2079                    <svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5" d="M3 6h18M3 12h18M3 18h18"/></svg>
2080                </button>
2081            </div>
2082            <div class="primary-nav__right--search">
2083                <a class="primary-nav__container--search-icon search-icon" href="#" aria-label="Search for article"><span class="iconify" data-icon="ion:search-circle-sharp" data-inline="false"></span></a>
2084            </div>
2085        </span>
2086    </div>
2087</nav>
2088
2089
2090
2091    
2092        <div class="sub-nav" role="navigation" aria-label="sub-navigation">
2093
2094
2095
2096    <span class="sub-nav__breadcrumb sub-nav__parent-link">
2097        <a href="/subscriptions/">Subscriptions<span class="iconify" data-icon="akar-icons:chevron-right" data-inline="false"></span></a>
2098    </span>
2099
2100
2101    <a href="/subscriptions/app/" class="sub-nav__breadcrumb">App</a>
2102        
2103    
2104
2105        
2106            <a href="/subscriptions/free-sample-issue/">Free Sample Issue</a>
2107        
2108    
2109
2110        
2111            <a href="/subscriptions/subscription-order-form/">Subscription Order Form</a>
2112        
2113    
2114
2115        
2116            <a href="/subscriptions/digital-edition/">Digital Edition</a>
2117</div>
2118
2119
2120    
2121
2122
2123</header>
2124            </div>
2125
2126            <div id="redesign-content">
2127                <div id="module-content" class="content">
2128                    <div class="piano--block-level block-bottom-margin" id="po-inline-banner-top-hero-content"></div>
2129
2130
2131                    <!-- standard - StaticHtml.html --> <div class="static-html container mar-mb-5">
2132  <div class="static-html__wrapper">
2133    <h1></h1>
2134
2135
2136    <div class="static-html__content">
2137      <img src="/resources/images/9518018" align="center">
2138
2139<p style="font-size:20px; color:#33856e"><b>Forestry Journal App</b></p>
2140<p> </p>
2141<p>Forestry is at the forefront of everything we do, and we want to ensure you know about everything that's happening in the industry.</p>
2142<p> </p>
2143<p>It's our aim to produce top-class stories each day and we want you to be able to read them wherever and whenever suits you.</p>
2144 <p> </p>
2145<p>By subscribing to Forestry Journal not only would you be supporting our journalism, but you will get full access to all our stories and other perks. You truly have a companion within our app which will guide you through forestry life, making it easier for you to stay up to date while on the move.</p>
2146 <p> </p>
2147<p>With the app, you can access both the latest news, analysis, features and s
2147o much more with advert-free browsing and you can flick through a digital edition of our magazine.</p>
2148 <p> </p>
2149<p>If you subscribe to our digital plan, you will have full access to all articles on the app.</p>
2150 <p> </p>
2151<p>You can still download the app without a digital subscription, but you will not be able to use all of the perks that a subscriber would.</p>
2152 <p> </p>
2153<p>Digital subscribers will now have unlimited access to our ad-free app and website, while premium and non-subscribers have limited access within the app.</p>
2154
2155<p> </p>
2156 
2157<p style="font-size:20px; color:#33856e"><b> So, why should you download the app? </b></p>
2158 <p> </p>
2159<p>You will be able to read all our exclusive stories and the latest forestry news and features directly from your Android or iPhone / iPad.</p>
2160 <p> </p>
2161<p>Our subscribers have unlimited access to the app while non-subscribers have limited access to content on site and in app.</p>
2162 <p> </p>
2163<p>The app is free to download and offers both web and e-edition experiences.</p>
2164<p> </p>
2165<p>If you enjoy reading through the magazine, you can now easily scroll through a digital edition.</p>
2166 <p> </p>
2167<p>Not only do you get access to each month's newest edition, you will also be able to access our archive for older editions for any stories you missed and the ability to save content for reading at your leisure.</p>
2168 <p> </p>
2169<p>There is an adjustable font-size function to suit your reading experience.</p>
2170 <p> </p>
2171<p>You can easily download the app from Forestry Journal on the App Store (apple.com)  on any iPhone / iPad or if you have an Android, visit Forestry Journal app – Apps on Google Play.</p>
2172<p> </p>
2173
2174<div align="center"><a title="Click here to go to the Apple App Store" href="https://itunes.apple.com/mu/app/forestry-journal/id1234235397?mt=8" target="_blank"><img src="/resources/images/4762026"></a><a title="Click here to go to the Google Play Store" href="https://play.google.com/store/apps/details?id=com.pagesuite.droid.forestryjournal" target="_blank"><img src="/resources/images/4762029"></a></div><br>
2175
2176<img src="/resources/images/9518315" align="center">
2177    </div>
2178  </div>
2179</div>
2180                </div>
2181            </div>
2182
2183            <footer class="site-footer" aria-label="site-footer">
2184    <div class="container-inner-width">
2185        <div class="links-grid" aria-label="site-footer-links">
2186            <section class="get-in-touch-section">
2187                <h2>Get in Touch</h2>
2188                <a href="/contact/">Contact Us</a><a href="/advertising/">Advertise</a><a href="/send-us-your-news/">Send Us Your News</a>
2189            </section>
2190            <section class="follow-us-section">
2191                <h2>Follow Us</h2>
2192<a
2193                        class="footer__social-media--link"
2194                        href="https://www.facebook.com/ForestryJournal"
2195                        title="Like Us on Facebook"
2196                        role="link"
2197                        data-media-type="facebook"
2198                    >
2199                        <i class="footer__social-media--icon iconify"></i>
2200                        Like Us on Facebook
2201                    </a>
2202
2203
2204                    <a
2205                        class="footer__social-media--link"
2206                        href="https://twitter.com/Forestry_UK"
2207                        title="Follow us on Twitter"
2208                        role="link"
2209                        data-media-type="twitter"
2210                    >
2211                        <i class="footer__social-media--icon iconify"></i>
2212                        Follow us on Twitter
2213                    </a>
2214
2215
2216                    <a
2217                        class="footer__social-media--link"
2218                        href="https://www.linkedin.com/showcase/forestry-journal-&-essentialarb/"
2219                        title="Follow us on LinkedIn"
2220                        role="link"
2221                        data-media-type="linkedin"
2222                    >
2223                        <i class="footer__social-media--icon iconify"></i>
2224                        Follow us on LinkedIn
2225                    </a>
2226
2227
2228                    <a
2229                        class="footer__social-media--link"
2230                        href="https://www.instagram.com/forestryjournal/"
2231                        title="Follow us on Instagram"
2232                        role="link"
2233                        data-media-type="instagram"
2234                    >
2235                        <i class="footer__social-media--icon iconify"></i>
2236                        Follow us on Instagram
2237                    </a>
2238            </section>
2239            <section class="useful-links-section">
2240                <h2>Useful Links</h2>
2241                <div class="useful-links">
2242                    <section>
2243                        <a href="/subscribe/">Subscriptions</a><a href="/newsletters/">Newsletters</a>
2244                    </section>
2245                    <section>
2246                        <a href="/archive/" style="display: inline-block">Archive</a> | <a href="/misc/sitemap/" style="display: inline-block">Sitemap</a><a href="/gdpr/" class="gdpr-option-v2" data-v2-id="1170586" data-is-gate="yes" rel="nofollow">Manage Consent</a><a href="https://www.newsquest.co.uk/legal/ai-notice/" target="_blank">AI Notice</a>
2247                    </section>
2248                </div>
2249            </section>
2250            <section class="ipso-terms">
2251                <img class="ipso-logo" src="/resources/responsive-static/mds/images/ipso-regulated.png" alt="IPSO Regulated image" />
2252                <p class="ipso-copy">This website and associated newspapers adhere to the Independent Press Standards Organisation's
2253    Editors' Code of Practice. If you have a complaint about the editorial content which relates to
2254    inaccuracy or intrusion, then please <a class="footer__ipso-terms--link" href="/contact">
2255    contact the editor here</a>.
2256    If you are dissatisfied with the response provided you can
2257    <a class="footer__ipso-terms--link" href="https://www.ipso.co.uk/contact-us/" target="_block">contact IPSO here</a></p>
2258            </section>
2259        </div>
2260        <div class="notice" aria-label="site-footer-notice">
2261            <img src="/resources/responsive-static/mds/images/newsquest.png" alt="Newsquest" style="width: 193px"/>
2262            <p><strong>&copy; 2001-2026. The Forestry Journal</strong> is owned and operated by Newsquest Media Group Ltd, an audited local newspaper network.</p>
2263            <p>Visit <a href="https://www.newsquest.co.uk/" target="_blank">newsquest.co.uk</a> to view our <a href="https://www.newsquest.co.uk/our-policies/" target="_blank">policies</a>, <a href="https://www.newsquest.co.uk/legal/" target="_blank" >terms</a> and <a href="https://www.newsquest.co.uk/legal/" target="_blank" >legal agreements</a>.</p>
2264            <p>The Echo Building, 18 Albert Road, Bournemouth, England BH1 1BZ. Registered in England & Wales | 01676637</p>
2265        </div>
2266    </div>
2267</footer>
2268
2269
2270            <div id="fb-root"></div>
2271
2272
2273        </div>
2274    </div>
2275
2276
2277
2278    <div class="mar-modal-container mar-modal-container--animate mar-modal-container--animate-out visually-hidden">
2279    <div class="mar-modal-overlay" data-uses-js="close-modal"></div>
2280
2281    <div aria-label="Pop up dialog" class="mar-modal" tabindex="-1" role="dialog">
2282        <div class="mar-modal__header">
2283            <h3 class="mar-modal__title">Modal headline</h3>
2284
2285            <div class="mar-modal__close" data-uses-js="close-modal">
2286<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">
2287    <path fill-rule="evenodd" clip-rule="evenodd" d="M7.60714 6L11.6518 10.0446C11.7589 10.1518 11.8438 10.2768 11.9062 10.4196C11.9688 10.5625 12 10.7143 12 10.875C12 11.1786 11.8884 11.442 11.6652 11.6652C11.442 11.8884 11.1696 12 10.8482 12C10.6875 12 10.5357 11.9688 10.3929 11.9062C10.25 11.8438 10.1339 11.7589 10.0446 11.6518L6 7.60714L1.95536 11.6518C1.84821 11.7589 1.72321 11.8438 1.58036 11.9062C1.4375 11.9688 1.28572 12 1.125 12C0.821427 12 0.558037 11.8884 0.334821 11.6652C0.111606 11.442 0 11.1786 0 10.875C0 10.7143 0.0312497 10.5625 0.09375 10.4196C0.15625 10.2768 0.241071 10.1518 0.348214 10.0446L4.36607 6L0.348214 1.95536C0.241071 1.84821 0.15625 1.72768 0.09375 1.59375C0.0312497 1.45982 0 1.3125 0 1.15179C0 0.830355 0.111606 0.558037 0.334821 0.334821C0.558037 0.111606 0.821427 0 1.125 0C1.28572 0 1.4375 0.0312497 1.58036 0.09375C1.72321 0.15625 1.84821 0.241071 1.95536 0.348214L6 4.39286L10.0446 0.348214C10.1339 0.241071 10.25 0.15625 10.3929 0.09375C10.5357 0.0312497 10.6875 0 10.8482 0C11.1696 0 11.442 0.111606 11.6652 0.334821C11.8884 0.558037 12 0.830355 12 1.15179C12 1.3125 11.9688 1.45982 11.9062 1.59375C11.8438 1.72768 11.7589 1.84821 11.6518 1.95536L7.60714 6Z" fill="#9DA0A4"/>
2288</svg>
2289
2290
2291                <span>Close</span>
2292            </div>
2293        </div>
2294
2295        <div class="mar-modal__body">Automatically injected HTML goes here</div>
2296
2297        <div class="mar-modal__actions">
2298<!-- standard - Buttons.html --> 
2299    
2300<button
2301    type="button"
2302    data-uses-js="modal-submit"
2303    
2304    class=" mar-btn
2305    mar-btn--light
2306    mar-btn--md
2307    
2308    
2309    "
2310>
2311    Submit
2312</button>
2313    
2314
2315
2316
2317<!-- standard - Buttons.html --> 
2318    
2319<button
2320    type="button"
2321    data-uses-js="modal-cancel"
2322    
2323    class=" mar-btn
2324    mar-btn--outline
2325    mar-btn--md
2326    
2327    
2328    "
2329>
2330    Cancel
2331</button>
2332    
2333
2334
2335        </div>
2336    </div>
2337</div>
2338
2339</body>
2340
2341<div id="outbrain-holder">
2342    <div id="DFP_standard_mpu_3"></div>
2343    <div id="DFP_standard_mpu_4"></div>
2344    <div id="DFP_standard_mpu_5"></div>
2345    <div id="DFP_standard_mpu_6"></div>
2346    <div id="DFP_standard_mpu_7"></div>
2347</div>
2348<script>
2349
2350const elementToObserve = document.querySelector("#outbrain-holder");
2351
2352// create a new instance of `MutationObserver` named `observer`,
2353// passing it a callback function
2354const observer = new MutationObserver(function(e) {
2355    $.each(e, function(j, obs) {
2356        $.each(obs.removedNodes, function (i, node) {
2357            var id = $(node).attr('id');
2358            addAdSlot(id, id.replace('DFP_', ''));
2359        });
2360    });
2361});
2362
2363// call `observe()` on that MutationObserver instance,
2364// passing it the element to observe, and the options object
2365observer.observe(elementToObserve, {subtree: true, childList: true});
2366</script>
2366
2367
2368<script>
2369window.domComplete = performance.now();
2370</script>
2370
2371
2372<script type="text/javascript">
2373path = document.location.href.split("/");
2374var prop30 = qs.get('lp');
2375var prop43 = qs.get('ref');
2376var pType="StaticHtmlModule"
2377
2378if (pType === 'BlockArticleModule' || pType === 'NationalNewsModule' || pType === 'BlockWhatsOnModule') {
2379    pType = 'ArticleModule';
2380}
2381for(x=4; x<7; x++)
2382{
2383    if (typeof path[x] == 'undefined')
2384    {
2385        path[x] = '';
2386    }
2387    if(path[x] == "" || (pType == "ArticleModule" && path[x].match(/[0-9]+\./)) || (path[x].indexOf('?') > -1))
2388    {
2389        path[x] = path[x-1];
2390    }
2391    else
2392    {
2393        path[x] = path[x-1] + "/" + path[x];
2394    }
2395    path[x] = path[x].replace(/\/undefined/g,"");
2396}
2397sitename = path[2].split(".");
2398
2399pathN= unescape(document.location.pathname.toString());
2400matches = pathN.match(/(\w+)\.(in|near|compare)\.([\,a-zA-Z0-9\ _-]+)[\/]?$/);
2401detailMatches = pathN.match(/(\w+)\.detail\.(.*)$/);
2402if (detailMatches !== null && detailMatches.length > 1)
2403{
2404    matches = detailMatches;
2405}
2406
2407if (matches !== null && matches.length > 1)
2408{
2409    var subfolder = '';
2410    path[3] = 'li';
2411    path[4] = 'li/'+subfolder;
2412    path[5] = 'li/'+subfolder+'/'+matches[1];
2413    path[6] = 'li/'+subfolder+'/'+matches[1];
2414}
2415if (pathN === '/')
2416{
2417    path[3] = 'homepage';
2418    path[4] = 'homepage';
2419    path[5] = 'homepage';
2420    path[6] = 'homepage';
2421}
2422
2423
2424function filterArray(arr) {
2425    var retArr = [];
2426    $.each(arr, function(i, part) {
2427        if (part !== '') {
2428            retArr.push(part);
2429        }
2430    });
2431
2432    return retArr;
2433}
2434</script>
2434
2435
2436
2437<script type="text/javascript">
2438var known = $.cookie('__siren') ? '1' : '0' ;
2439</script>
2439
2440
2441<script type="text/javascript">
2442
2443var known = $.cookie('__siren') ? '1' : '0' ;
2444var ref = document.referrer;
2445var parser = document.createElement('a');
2446parser.href = ref;
2447
2448// values in the below MUST be strings
2449var targeting = {
2450    'context': '',
2451    
2452    'domain': 'www.forestryjournal.co.uk',
2453    'isLanding': 'yes',
2454    'top_path': 'subscriptions',
2455    'weather': ''.toLowerCase(),
2456    'jbsjs': ''.toLowerCase(),
2457    'site_search': '',
2458    'bmd_cat': '',
2459    'wt': '',
2460    'cmpid': qs.get('cmpid'),
2461    'refdm': parser.hostname,
2462    'k': known,
2463    'g':  'u' ,
2464    'a':  '0' ,
2465    'topic': '',
2466    'publication': '',
2467    'primary_tag_future_use': '',
2468    'site': (isMobile()) ? 'mobile': 'desktop',
2469    'r': data_layer.user.subscription_plan !== ''
2470        ? '2'       // 2 = subscribed
2471        : data_layer.user.is_logged_in == 'yes'
2472            ? '1'   // 1 = registered
2473            : '0',  // 0 = anonymous
2474};
2475
2476if (!usePrebid) {
2477    targeting.adrq = 'adl';
2478}
2479
2480if (data_layer.video.exists === 'yes') {
2481    targeting.ptype = 'video';
2482}
2483
2484if ($.cookie('isMeterExpired') === 'yes' && window.data_layer.article.is_article) {
2485    var articleContentLevel = parseInt(window.data_layer.article.content_level, 10) || 0; // account for NaN
2486    if (articleContentLevel !== 0 && window.data_layer.article.content_level_open_access === 'no') {
2487        targeting.ao = 'y';
2488    }
2489}
2490
2491if ($.cookie('_sp_enable_dfp_personalized_ads') === 'true') {
2492    targeting.dfpcsnt = 'yes';
2493} else if ($.cookie('_sp_enable_dfp_personalized_ads') === 'false') {
2494    targeting.dfpcsnt = 'no';
2495} else {
2496    targeting.dfpcsnt = 'none';
2497}
2498
2499if (typeof MobileDetect !== "undefined") {
2500    targeting.canbb = (window.screen.width > 960) ? 'y' : 'n';
2501}
2502
2503if (typeof module_targeting === "object") {
2504    targeting = addToTargeting(targeting, module_targeting);
2505}
2506
2507// $.each(apData, function (k, v) {
2508//     targeting[k] = v;
2509// });
2510
2511// if (typeof gs_channels !== 'undefined') {
2512//     targeting.gs_channels = gs_channels;
2513// }
2514
2515targeting = addToTargeting(targeting, data_layer_helper.homesData);
2516
2517targeting.article_id = '';
2518var googleSiteName = 'www.forestryjournal.co.uk';
2519var googlePath = '/subscriptions/app/';
2520
2521var googleNetworkCode = 154725070;
2522
2523var googleChildNetworkCode = 22694024870;
2524var googleId = '/'+googleNetworkCode + ',' + googleChildNetworkCode + '/' + googleSiteName+googlePath;
2525
2526if (googleId.charAt(googleId.length - 1) === '/') {
2527    googleId = googleId.slice(0, -1);
2528}
2529
2530var googletag = googletag || {};
2531googletag.cmd = googletag.cmd || [];
2532
2533googletag.cmd.push(function () {
2534    var _YB = _YB || {
2535        ab: function () {
2536            return _YB.dool ? "b" : "a" + Math.floor(Math.random() * 10);
2537        },
2538        dool: Math.random() >= 0.1,
2539    };
2540    var yb_ab;
2541    if (Math.random() <= 0.9) {
2542        yb_ab = _YB.ab();
2543    } else {
2544        yb_ab = "c";
2545    }
2546    googletag.pubads().setTargeting("yb_ab", yb_ab);
2547});
2548
2549googletag.cmd.push(function() {
2550    googletag.pubads().set("adsense_background_color", "FFFFFF");
2551    googletag.pubads().setTargeting('rfs', "0");
2552    $.each(targeting, function (key, value) {
2553
2554        // No real value so exclude
2555        if (value === 0 || value === '' || value === null) {
2556            return;
2557        }
2558        googletag.pubads().setTargeting(key, value);
2559    });
2560
2561});
2562
2563if (isMobile() && '' === 'top') {
2564    $('.desktop-standard-leaderboard').remove();
2565    $('.mobile-top-leaderboard').show();
2566    $('#DFP_top_leaderboard_mobile').attr('id', 'DFP_top_leaderboard');
2567} else {
2568    $('.mobile-top-leaderboard').remove();
2569}
2570// Ads
2571var adUnits = [];
2572
2573hideAdsByScreensize();
2574
2575if (blackListAds.length > 0) {
2576    removeBlacklistAds(blackListAds);
2577}
2578
2579$.each(unfilteredAdUnits, function (i, unit) {
2580    removeWhitelistAds(unit);
2581});
2582
2583// set up a holder for all the adverts so we can do things with them later
2584var dfpHolder = {};
2585// the set up code
2586googletag.cmd.push(function() {
2587    $.each(adUnits, function(i, data) {
2588
2589        // check if the dom exists
2590        if ($('#'+data.domName).length === 0) {
2591            return;
2592        }
2593
2594        var dfp = null;
2595
2596        if (data.slotType === 'standard')
2597        {
2598            // get the correct sizes, using the alternate_sizes if they exist and we are on a mobile site
2599            var sizes = data.sizes;
2600            if (data.alternate_mobile_size && isMobile()) {
2601                sizes = data.alternate_mobile_size;
2602            }
2603            // push this ad slot through
2604            dfp = googletag.defineSlot(googleId, sizes, data.domName)
2605                .addService(googletag.pubads())
2606                .setTargeting("position", data.positionName)
2607                .setCollapseEmptyDiv(data.collapseContainer);
2608            // check if we have an array of targets, and assign them as a companion if we do
2609            if (data.targets instanceof Array && data.targets.length > 0 ) {
2610                dfp.setTargeting('companion', data.targets);
2611            }
2612
2613        }
2614        else if (data.slotType === 'outofpage')
2615        {
2616            dfp = googletag.defineOutOfPageSlot(googleId, data.domName)
2617                .addService(googletag.pubads())
2618                .setTargeting("position", data.positionName)
2619                .setCollapseEmptyDiv(data.collapseContainer);
2620            // check if we have an array of targets, and assign them as a companion if we do
2621            if (data.targets instanceof Array && data.targets.length > 0 ) {
2622                dfp.setTargeting('companion', data.targets);
2623            }
2624        }
2625
2626        // store
2627        dfpHolder[data.domName] = dfp;
2628
2629    });
2630
2631    if (adLight === true) {
2632        googletag.pubads().setCategoryExclusion('adlight');
2633        // var adlightexplanation = '<div class="adlight-explanation">I\'m a subscriber <a href="#" class="adlight-explanation-link">Why am I seeing this advert?</a></div>';
2634        // if ($('#DFP_premium_mpu').length > 0) {
2635        //     $('#DFP_premium_mpu').before(adlightexplanation);
2636        // }
2637
2638        // if ($('#DFP_standard_mpu_1').length > 0) {
2639        //     $('#DFP_standard_mpu_1').before(adlightexplanation);
2640        // }
2641
2642        // var imageIds = [11497497, 11497535, 11497536, 11497541, 11497542, 11497545, 11497546, 11497547];
2643        // var imageId = imageIds[Math.floor(Math.random() * imageIds.length)];
2644        // $('.adlight-explanation-link').click(function(e) {
2645        //     e.preventDefault();
2646        //     $('#adlight-explanation-modal-image').attr('src', '/resources/images/' + imageId + '/').show();
2647        //     $('#adlight-explanation-modal').modal();
2648        // });
2649    }
2650
2651    // send the request
2652    googletag.pubads().enableSingleRequest();
2653
2654    googletag.enableServices();
2655
2656    googletag.pubads().addEventListener('slotVisibilityChanged', function(event) {
2657        if (event.slot.getResponseInformation().creativeTemplateId === 828288 ||
2658            event.slot.getResponseInformation().creativeTemplateId === 12383216 ) {
2659            console.log('DFP: Magic template id detected, not refreshing');
2660            return;
2661        }
2662        var slotName = '';
2663        $.each(dfpHolder, function (a, e) {
2664            if (e == event.slot) {
2665                slotName = a;
2666            }
2667        });
2668        if (typeof window.advertisingTimer !== 'undefined') {
2669            var perc = event.inViewPercentage;
2670            window.advertisingTimer.timer(slotName, perc);
2671        }
2672    });
2673});
2674
2675// the display code
2676$.each(adUnits, function(i, data) {
2677
2678    // check if the dom exists
2679    if ($('#'+data.domName).length === 0) {
2680        return;
2681    }
2682
2683    if (data.domName === 'DFP_interstitial_mpu') {
2684        if (!inter.checkVisit()) {
2685            return;
2686        }
2687    }
2688
2689    // are we manually loading it?
2690    if ($('#'+data.domName).attr('data-manual-loading') === "yes") {
2691        return;
2692    }
2693    // for mobile, we check if the dom element has the data-delay-loading attribute set to "1"
2694    else if ($('#'+data.domName).attr('data-delay-loading') === "yes") {
2695
2696        // load it
2697        $('#'+data.domName).appear();
2698        $(document.body).on('appear', '#'+data.domName, function(e, allElement) {
2699
2700            // don't call it many times
2701            if ($(this).attr('data-processed') === 'yes') {
2702                return;
2703            }
2704
2705            $(this).attr('data-processed', 'yes');
2706
2707            // display the google ad
2708            googletag.display(data.domName);
2709            googletag.pubads().refresh([dfpHolder[data.domName]]);
2710        });
2711        return;
2712    }
2713    googletag.cmd.push(function() {
2714        googletag.display(data.domName);
2715    });
2716});
2717window.googleComplete = performance.now();
2718window.googleReady = true;
2719
2720// METHODS
2721function addToTargeting(targeting, data) {
2722    if (!data) {
2723        return targeting;
2724    }
2725    $.each(data, function (key, value) {
2726        if (!value) {
2727            return;
2728        }
2729        targeting[key] = value;
2730    });
2731    return targeting;
2732}
2733
2734function addAdSlot(slotName, slot, initHidden) {
2735    console.log("Add ad slot called for %s %s", slotName, slot);
2736    // check if item already exists
2737    if (typeof window.dfpHolder[slotName] !== 'undefined') {
2738        return;
2739    }
2740
2741    if (window.adLight === true) {
2742        return;
2743    }
2744    window.googletag.cmd.push(function() {
2745        var dfp = googletag.defineSlot(window.googleId, [[300,250]], slotName)
2746            .setTargeting('position', [slot])
2747            .addService(googletag.pubads());
2748        window.dfpHolder[slotName] = dfp;
2749
2750        if (!initHidden) {
2751            googletag.pubads().refresh([dfp]);
2752
2753            return;
2754        }
2755    });
2756}
2757
2758function hideAdsByScreensize() {
2759    if (window.screen.width < 728 && $('#BlockArticleContainer').length > 0) {
2760        if ('1121' === '1147') {
2761            $('#DFP_out_of_page').remove();
2762        } else {
2763            $('#DFP_premium_mpu').remove();
2764        }
2765        $('#DFP_on_scroll').remove();
2766    } else if (window.screen.width < 728 &&
2767        ( $(".article-grid__uber[data-top-stories-articles='7'][data-news-list-articles='9']").length > 0 ||
2768        $(".article-grid__uber[data-top-stories-articles='7'][data-news-list-articles='12']").length > 0  ||
2769        $(".article-grid__uber[data-top-stories-articles='7'][data-news-list-articles='18']").length > 0  ||
2770        $(".article-grid__uber[data-top-stories-articles='7'][data-news-list-articles='24']").length > 0 )
2771    ) {
2772        const adElement = document.querySelector('#high_vis_container');
2773        $('.omnicard[data-position="5"]').after(adElement);
2774    }
2775
2776    if ('1121' === '1147' && window.screen.width > 450) {
2777        $('#DFP_bottom_leaderboard').remove();
2778    }
2779
2780    if ('1121' === '1147' && window.screen.width < 728) {
2781        $('#DFP_top_leaderboard').remove();
2782    }
2783
2784    if ('1121' === '1147') {
2785        $('#DFP_teads').remove();
2786        $('#DFP_out_of_page').remove();
2787    }
2788
2789    if ($('#comments-in-page').length === 1 && window.screen.width > 450) {
2790        $('#DFP_top_leaderboard').parent().remove();
2791        $('#DFP_bottom_leaderboard').parent().remove();
2792        // $('#DFP_standard_mpu_1').parent().remove();
2793    }
2794}
2795
2796function removeBlacklistAds(blackListAds) {
2797    $.each(blackListAds, function(i, name) {
2798        removeAdContainer(name);
2799    });
2800}
2801
2802function removeWhitelistAds(unit) {
2803    // VAST (video) ad units never get displayed in here.
2804    if (unit.isVast) {
2805        return;
2806    }
2807
2808    // if we have an ad-light experience
2809    if (whiteList === true) {
2810        if (typeof whiteListAds[unit.positionName] === 'undefined') {
2811            removeAdContainer(unit.domName)
2812            return;
2813        }
2814    }
2815
2816    adUnits.push(unit);
2817}
2818
2819function removeAdContainer(name) {
2820    const element = document.getElementById(name);
2821    // doesn't exist? exit
2822    if(!element) {
2823        return;
2824    }
2825
2826    const parent = element.parentElement;
2827    if (parent && parent.classList.contains('block-bottom-margin')) {
2828        // if immediate parent contains block-bottom-margin as a class, remove the parent as well
2829        parent.classList.remove('block-bottom-margin');
2830    }
2831    if (parent && parent.classList.contains('mar-leaderboard--top')) {
2832        // in case of leaderboard, remove as has min-height
2833        parent.remove();
2834        return;
2835    }
2836
2837    if (parent && parent.classList.contains('mar-leaderboard--bottom')) {
2838        // in case of article ad container, remove as has min-height
2839        parent.remove();
2840        return;
2841    }
2842
2843    element.remove();
2844}
2845</script>
2845
2846
2847
2848<script src="/resources/responsive-static/build/mds/js/global.js?cb=mkW8NyPe"></script>
2848
2849
2850
2851
2852
2853
2854<script src="/__siren/"></script>
2854
2855
2856
2857
2858<script type="text/javascript">
2859    var s_account="newsquestgroupprod";
2860</script>
2860
2861
2862<script type="text/javascript" src="/resources/responsive-static/vendor/adobe/VisitorAPI.js?cb=mkW8NyPe"></script>
vendor: 1 bytes, line 2862
2862
2863<script type="text/javascript" src="/resources/responsive-static/vendor/adobe/omniture.js?cb=mkW8NyPe"></script>
2863
2864
2865<script type="text/javascript">
2866
2867function getOmniturePath() {
2868    var path = '';
2869    if ($('#gallery-base-url').length === 1) {
2870        path = $('#gallery-base-url').val();
2871    }
2872    else {
2873        path = window.location.pathname;
2874    }
2875    return path;
2876}
2877
2878function getPositionFromCookie() {
2879    const cookieName = 'tracking_block_index';
2880
2881    const ref = document.cookie
2882        .split('; ')
2883        .find(row => row.startsWith(`${cookieName}=`))
2884        ?.slice(cookieName.length + 1);
2885
2886    document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${window.data_layer.site.cookie_domain}`;
2887
2888    return ref ? decodeURIComponent(ref) : undefined;
2889}
2890function getRefFromCookie() {
2891    const cookieName = 'tracking_block';
2892
2893    const ref = document.cookie
2894        .split('; ')
2895        .find(row => row.startsWith(`${cookieName}=`))
2896        ?.split('=')[1];
2897
2898    // Remove the cookie
2899    document.cookie = `${cookieName}=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/; domain=${window.data_layer.site.cookie_domain}`;
2900
2901    return ref;
2902}
2903
2904function getOmnitureTrackingFromCookie(key, preExistingValue) {
2905    var ref = $.cookie('o-' + key);
2906    if(typeof(ref) === 'undefined') {
2907    	ref  = preExistingValue
2908    } else {
2909    	ref = decodeURIComponent(ref);
2910    	$.removeCookie('o-' + key, {
2911            path: '/',
2912            domain: window.data_layer.site.cookie_domain,
2913        });
2914    }
2915    return ref;
2916}
2917
2918function getValidatedAPList() {
2919
2920    var validList = [1100, 1101, 1002, 1006, 1010, 1014, 1018, 1022, 1200, 1202, 1205, 1300, 1602, 1605, 1608, 1612, 1616, 1500, 1503, 1507, 1509, 1512, 1402, 1406, 1409, 1412, 1416, 14331, 14333, 14335, 14336, 14339, 14342, 14344, 14345, 14346, 14350, 14351, 14353, 14359, 14366, 14370, 14371, 14377, 14388, 14394, 14396, 14399, 14407, 14221, 14423, 15679, 15681, 15682, 15683, 15684, 15686, 15687, 15688, 15975];
2921
2922    var data = getAudienceProjectTargetingData();
2923    if (!data || !data.ap_x) {
2924        return '';
2925    }
2926
2927    validData = [];
2928    $.each(data.ap_x, function(i, td) {
2929        if ($.inArray(parseInt(td, 10), validList) !== -1) {
2930            validData.push(td);
2931        }
2932    });
2933
2934    return validData.join(',');
2935}
2936
2937path = document.location.href.split("/");
2938
2939var qs = new URLSearchParams(window.location.search);
2940
2941var prop30 = qs.get('lp');
2942var prop43 = qs.get('ref');
2943var pType="StaticHtmlModule"
2944
2945if (pType === 'BlockArticleModule' || pType === 'NationalNewsModule' || pType === 'BlockWhatsOnModule') {
2946    pType = 'ArticleModule';
2947}
2948
2949for(x=4; x<7; x++)
2950{
2951    if (typeof path[x] == 'undefined')
2952    {
2953        path[x] = '';
2954    }
2955    if(path[x] == "" || (pType == "ArticleModule" && path[x].match(/[0-9]+\./)) || (path[x].indexOf('?') > -1))
2956    {
2957        path[x] = path[x-1];
2958    }
2959    else
2960    {
2961        path[x] = path[x-1] + "/" + path[x];
2962    }
2963    path[x] = path[x].replace(/\/undefined/g,"");
2964}
2965pathN= unescape(document.location.pathname.toString());
2966matches = pathN.match(/(\w+)\.(in|near|compare)\.([\,a-zA-Z0-9\ _-]+)[\/]?$/);
2967detailMatches = pathN.match(/(\w+)\.detail\.(.*)$/);
2968if (detailMatches !== null && detailMatches.length > 1)
2969{
2970    matches = detailMatches;
2971}
2972
2973if (matches !== null && matches.length > 1)
2974{
2975    var subfolder = '';
2976    path[3] = 'li';
2977    path[4] = 'li/'+subfolder;
2978    path[5] = 'li/'+subfolder+'/'+matches[1];
2979    path[6] = 'li/'+subfolder+'/'+matches[1];
2980}
2981if (pathN === '/')
2982{
2983    path[3] = 'homepage';
2984    path[4] = 'homepage';
2985    path[5] = 'homepage';
2986    path[6] = 'homepage';
2987}
2988
2989
2990/* You may give each page an identifying name, server, and channel on
2991the next lines. */
2992s.pageName="(www) "+getOmniturePath();
2993s.pageName = s.pageName.toLowerCase();
2994s.server="martini";
2995s.channel="";
2996s.pageType="";
2997s.prop1= qs.get('search');
2998s.prop2="";
2999s.prop3=document.title;
3000s.prop4="";
3001s.prop5="StaticHtmlModule"; /* get from Martini */
3002s.prop6=path[3].toLowerCase();
3003s.prop7=path[4].toLowerCase();
3004s.prop8=path[5].toLowerCase();
3005s.prop9=path[6].toLowerCase();
3006s.prop10="";
3007
3008s.prop16=path[2].toLowerCase();
3009s.prop17="";
3010s.prop18="Martini";
3011s.prop19="1";
3012s.prop20 = s.getPreviousValue(s.pageName, 'gpv_pn');
3013s.prop42 = "";
3014s.prop53 = 'standard';
3015s.prop54 = '';
3016s.prop55 = '';
3017s.prop56 = "";
3018s.prop57 = ($('[data-name="Feature Article Block A"]').length > 0) ? 'Enabled' : 'Disabled';
3019s.prop58 = document.querySelector('[data-name="Feature Article Block B"]')?.dataset.variant;
3020s.prop59 = getRefFromCookie();
3021s.prop60 = getPositionFromCookie();
3022s.prop73 = document.cookie.split('; ').find(row => row.startsWith('adtiming='))?.split('=')[1] || null;
3023
3024var eVar67 = [];
3025
3026if ($.cookie('consentUUID')) {
3027    eVar67.push('yes');
3028} else {
3029    eVar67.push('no');
3030}
3031if ($.cookie('_sp_enable_dfp_personalized_ads') === 'true') {
3032    eVar67.push('yes');
3033} else if ($.cookie('_sp_enable_dfp_personalized_ads') === 'false') {
3034    eVar67.push('no');
3035} else {
3036    eVar67.push('none');
3037}
3038
3039if ($.cookie('_sp_legitimate_interests') === 'true') {
3040    eVar67.push('yes');
3041} else if ($.cookie('_sp_legitimate_interests') === 'false') {
3042    eVar67.push('no');
3043} else {
3044    eVar67.push('none');
3045}
3046
3047//if ($.cookie('euconsent')) {
3048//    eVar67.push($.cookie('euconsent'));
3049//} else {
3050//    eVar67.push('none');
3051//}
3052
3053s.eVar67 = eVar67.join(',');
3054// console.log('ADB: setting eVar67 to %s', eVar67.join(','));
3055
3056if ($.cookie('prev-tcf-v2')) {
3057    // console.log('ADB: Setting eVar68 to ', $.cookie('prev-tcf-v2'));
3058    s.eVar68 = $.cookie('prev-tcf-v2');
3059}
3060
3061if (typeof iabNames !== 'undefined') {
3062    s.prop29 = iabNames.join(',');
3063} else if (typeof iabIds !== 'undefined') {
3064    s.prop29 = iabIds.join(',');
3065}
3066
3067if (s.prop20 && s.prop20 !== 'no value') {
3068    s.prop21 = s.getPercentPageViewed();
3069} else {
3070    s.prop21 = '';
3071}
3072
3073if (typeof __siren !== 'undefined') {
3074    s.eVar27 = __siren;
3075}
3076
3077s.prop22 = s.getDaysSinceLastVisit('s_lv');
3078
3079
3080s.prop43=getOmnitureTrackingFromCookie('ref', prop43);
3081s.prop25 = ''
3082
3083s.prop27 = '';
3084
3085s.prop30 = getOmnitureTrackingFromCookie('prop30', prop30);
3086s.linkInternalFilters="javascript:,forestryjournal.co.uk,fish4.co.uk,adsys.newsquest.co.uk,www.exchangeandmart.co.uk,www.communigate.co.uk,"
3087s.eVar61=(new Date()).toLocaleDateString("en-GB");
3088/* s.eVar62=(new Date()).toLocaleDateString("en-GB"); */
3089
3090
3091
3092
3093
3094
3095/* Article-site-cloning data */
3096s.eVar90 = window.data_layer.article.parent_originating_site_id;
3097s.eVar91 = window.data_layer.article.originating_article_id;
3098s.eVar92 = window.data_layer.article.is_original_to_site;
3099s.eVar95 = window.data_layer.site.using_piano_id;
3100s.eVar106 = '';
3101
3102s.eVar109 = '';
3103
3104/* Uber block article counts */
3105s.eVar93 = window.data_layer.page.top_stories_article_count + ':' + window.data_layer.page.interstitial_article_count + ':' + window.data_layer.page.news_stories_article_count;
3106
3107/* Conversion Variables */
3108s.campaign=""
3109s.state=""
3110s.zip=""
3111s.events=""
3112s.products=""
3113s.purchaseID=""
3114s.eVar14=""
3115try {
3116    s.list3=getValidatedAPList();
3117} catch (e) {
3118    // do nothing
3119}
3120
3121
3122
3123
3124// Initial fotorama tracking.
3125var moduleType = null;
3126if (s.prop5 === 'ArticleModule' || s.prop5 == 'PropertyModuleReplacement' || s.prop5 === 'BlockArticleModule') {
3127    moduleType = 'article';
3128} else if (s.prop5 === 'PictureGalleryModule') {
3129    moduleType = 'gallery';
3130}
3131
3132if ($('#comments-in-page').length === 1) {
3133    moduleType = 'comments';
3134}
3135
3136if (moduleType === 'article' || moduleType === 'gallery' || moduleType === 'comments') {
3137    var imagePath = '';
3138
3139    if ($('.fotorama').length > 0) {
3140        // Get the first Fotorama image.
3141        try {
3142            var el = $('.fotorama').data('fotorama').data[0].html;
3143            var url = $(el).find('div').css('background-image');
3144            imagePath = url.replace('url(','').replace(')','').replace(/\"/gi, "");
3145        } catch (e) {
3146        }
3147    } else {
3148        // If there's just one image (i.e. it's not a gallery), find its path.
3149        var imagePathSingle = $('#mainImage').attr('src');
3150        if (typeof imagePathSingle !== 'undefined') {
3151            imagePath = imagePathSingle.split('.')[0] + '/';
3152        }
3153    }
3154    var imageParts = imagePath.split('/');
3155    if (imageParts.length > 1) {
3156        s.eVar37 = imageParts[imageParts.length - 2];
3157        s.prop37 = imageParts[imageParts.length - 2];
3158        s.events = s.apl(s.events, 'event7', ',', 2);
3159    }
3160    s.eVar36 = moduleType;
3161    s.prop36 = moduleType;
3162}
3163
3164
3165
3166// Education pages.
3167if (s.prop5 === 'ResponsiveEducationModule') {
3168    // School profile page.
3169    if ($('#eduOverview').length > 0) {
3170        s.eVar40 = $('#eduOverview').data('school-status');
3171        s.prop40 = s.eVar40;
3172        s.prop41 = 'edu-' + $('#eduOverview').data('school-urn');
3173        s.prop46 = $('#town').text();
3174    }
3175
3176    // Comparison page.
3177    if ($('#eduComparisonTable').length > 0) {
3178        s.list1 = '';
3179    }
3180
3181    // Results page.
3182    if ($('.school-results').length > 0) {
3183        s.list1 = '';
3184
3185        // Track the search criteria.
3186        s.prop44 = '';
3187        s.prop45 = "".toLowerCase();
3188        s.prop46 = "".toLowerCase();
3189        s.prop49 = '';
3190        s.prop50 = '';
3191        s.prop51 = '';
3192        s.eVar2 = s.prop50;
3193
3194        var newSearch = false;
3195        if (newSearch) {
3196            s.events = s.apl(s.events, 'event17', ',', 1);
3197        }
3198    }
3199}
3200
3201// Notices Module
3202if (s.prop5 === 'NewsquestModulesNoticesModule') {
3203    // Notices Find page.
3204    if (s.pageName.includes('notices/find')) {
3205        s.pageName = '(www) /notices/find/';
3206        s.eVar50 = '';
3207        const noticesURL = new URL(window.location.href);
3208        const noticesParams = new URLSearchParams(noticesURL.search);
3209
3210        s.eVar1 = noticesParams.has('keyword') ? noticesParams.get('keyword') : 'None';
3211        s.eVar51 = noticesParams.has('sort') ? noticesParams.get('sprt') : 'best';
3212        s.eVar52 = noticesParams.has('p') ? (parseInt(noticesParams.get('p'), 10) + 1) : 1;
3213        s.eVar53 = noticesParams.has('type') ? noticesParams.get('type') : 'All';
3214        s.eVar54 = noticesParams.has('nearby') ? noticesParams.get('nearby') : 'no';
3215        s.eVar55 = noticesParams.has('daterange') ? noticesParams.get('daterange') : 'last-month';
3216
3217        if (noticesParams.has('sort')) {
3218            switch (noticesParams.get('sort')) {
3219                case 'date_asc':
3220                    s.eVar51 = 'oldest';
3221                    break;
3222                case 'date_desc':
3223                    s.eVar51 = 'newest';
3224                    break;
3225                case 'best_match':
3226                    s.eVar51 = 'best';
3227                    break;
3228                default:
3229                    s.eVar51 = noticesParams.get('sort');
3230                    break;
3231            }
3232        }
3233
3234        // Concatenate all search params into eVar44
3235        if (noticesParams.size > 0) {
3236            const searchParams = new URL(window.location.href).searchParams;
3237            s.eVar44 = '';
3238            searchParams.forEach((value, key) => {
3239                s.eVar44 += `${key}=${value},`;
3240            });
3241        } else {
3242            s.eVar44 = '';
3243        }
3244
3245        // Adobe Search Event triggering
3246        const setNoticePaginationClicked = (value) => {
3247            localStorage.setItem("isNoticePaginationClicked", value);
3248        };
3249
3250        const noticeSearchInput = document.getElementById("notices-search");
3251        const noticeSearchBtn = document.getElementById("notice-search-find");
3252        const noticePaginationBtns = document.querySelectorAll('.notice-find__pagination .pagination-btn');
3253        const noticePaginationBtnPrev = document.querySelector('.pagination-btn-previous svg');
3254        const noticePaginationBtnNext = document.querySelector('.pagination-btn-next svg');
3255
3256        noticeSearchInput?.addEventListener('change', () => setNoticePaginationClicked('false'));
3257        noticeSearchBtn?.addEventListener('click', () => setNoticePaginationClicked('false'));
3258
3259        noticePaginationBtns.forEach(btn => {
3260            btn.addEventListener('click', () => setNoticePaginationClicked('true'));
3261        });
3262
3263        noticePaginationBtnPrev?.addEventListener('click', () => setNoticePaginationClicked('true'));
3264        noticePaginationBtnNext?.addEventListener('click', () => setNoticePaginationClicked('true'));
3265
3266        if (localStorage.getItem("isNoticePaginationClicked") === 'false') {
3267            s.events = s.apl(s.events, 'event1', ',', 1);
3268        }
3269    }
3270
3271    if (/notices\/funeral-directors\/(\d+)\.([a-zA-Z0-9-?]+)?/.test(s.pageName)) {
3272        s.pageName = '(www) /notices/funeral-director/';
3273        s.eVar41 = '';
3274    }
3275}
3276
3277if (s.prop5 === 'NewsquestModulesNoticeModule') {
3278    s.eVar41 = '';
3279    const type = window.announcement_data?.details?.type || '';
3280    const subCategory = window.announcement_data?.details?.sub_category || '';
3281    s.eVar40 = type !== 'Tribute' ? type : `${type} - ${subCategory}`;
3282    s.eVar42 = window.announcement_data?.details?.id || '';
3283    s.eVar107 = '';
3284    s.eVar119 = '';
3285    s.eVar120 = '';
3286    s.eVar2 = "(www) /notice/";
3287}
3288
3289//New Property module
3290if (s.prop5 === 'ResponsivePropertyModule') {
3291    /*
3292        Use prop42 for single and list pages, for list pages use hyphen separate lists of id's
3293    */
3294    
3295    
3296    //Property's all over the place (homepage, searches etc - HOM-133
3297
3298    //Property Detail - HOM-131, HOM-134, HOM-130
3299
3300    //Contact us submissions - HOM-137
3301    if($('#propertyModule.agent-details').length > 0) {
3302        //Add a click handler for a.contact-detail
3303    }
3304
3305
3306}
3307
3308// is their a video tag on the page?
3309if ($('.exco-embed').length > 0) {
3310    console.log('VID: setting tracking for event50');
3311    s.events = s.apl(s.events, 'event50', ',', 1);
3312}
3313
3314var foundAutoPlayVid = false;
3315$('.jw-outer').each(function (a, domEle) {
3316    if ($(this).data('multimedia-block') === 'no' && !foundAutoPlayVid) {
3317        console.log('VID: setting tracking for event51');
3318        s.events = s.apl(s.events, 'event51', ',', 1);
3319        foundAutoPlayVid = true;
3320    }
3321});
3322
3323
3324
3325
3326
3327
3328
3329s.eVar66 = 'Ad-Full';
3330s.eVar114 = '';
3331
3332
3333
3334    // var eVar65Copy = s.getValOnce(s.eVar65, "ev65", 0);
3335    // if (eVar65Copy !== '' && s.prop20.indexOf("/my/subscription/activate/") > -1) {
3336    //     s.events = s.apl(s.events, "event4", ",", 1); // Set the subscription counter event.
3337    //     s.events = s.apl(s.events, "purchase", ",", 1); // Set the purchase event.
3338    //     s.products = "Subscription : Metered Access;" + eVar65Copy + ";1;";
3339    //     s.purchaseID = "";
3340    // }
3341
3342
3343if(qs.get('action') === 'success' && (s.prop5 === 'ArticleModule' || s.prop5 === 'BMDModule' || s.prop5 === 'BlockArticleModule')) {
3344    s.events=s.apl(s.events,'event9',',',2)
3345}
3346/* Hierarchy Variables */
3347s.hier1="newsquest," + "" + ",www.forestryjournal.co.uk," + path[6].replace(/\//,",");
3348
3349if (typeof MartiniFotorama !== 'undefined') {
3350    MartiniFotorama.loadOmniture(s);
3351}
3352s.prop39 = "0";
3353
3354
3355
3356// Tracking usage of Bytecast audio embeds in articles.
3357s.eVar82 = 'no';
3358s.eVar83 = '';
3359
3360    console.log('ADB: starting');
3361    console.log('Google Bot Browser: ', window.isRobot.googleBot()); //TODO Remove this log after QA
3362
3363// Tracking of Commenting Registration FLow
3364if (s.prop5 !== 'BlockArticleModule') {
3365    const storedAdobeDimensions = sessionStorage.getItem('nq_adobe_tracking_article_dimensions');
3366    if (storedAdobeDimensions) {
3367        const storedAdobeDimensionObj = JSON.parse(storedAdobeDimensions);
3368        s.eVar10 = storedAdobeDimensionObj.eVar10;
3369        s.eVar15 = storedAdobeDimensionObj.eVar15;
3370        s.eVar22 = storedAdobeDimensionObj.eVar22;
3371        s.eVar23 = storedAdobeDimensionObj.eVar23;
3372        s.eVar24 = storedAdobeDimensionObj.eVar24;
3373        s.eVar25 = storedAdobeDimensionObj.eVar25;
3374        s.eVar28 = storedAdobeDimensionObj.eVar28;
3375        s.eVar60 = storedAdobeDimensionObj.eVar60;
3376        s.eVar104 = storedAdobeDimensionObj.eVar104;
3377        s.eVar106 = storedAdobeDimensionObj.eVar106;
3378        s.eVar107 = storedAdobeDimensionObj.eVar107;
3379        s.eVar108 = storedAdobeDimensionObj.eVar108;
3380        s.prop63 = storedAdobeDimensionObj.prop63;
3381    }
3382}
3383
3384if (window.location.href.includes("/user/create-account/commenting/")) {
3385    s.eVar2 = '(www) /user/create-account/commenting/';
3386}
3387
3388/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
3389if (qs.get('callback') !== 'in' && !window.isRobot.googleBot()) {
3390    var s_code=s.t();
3391    var backupAdobe = s;
3392
3393    if(s_code)document.write(s_code)
3394}
3395
3396// Storing the visiting dimensions
3397if (s.eVar10 || s.eVar22 || s.eVar23 || s.eVar24) {
3398    const adobeTrackingVisitingDimensions = {
3399        eVar10: s.eVar10,
3400        eVar22: s.eVar22,
3401        eVar23: s.eVar23,
3402        eVar24: s.eVar24,
3403    }
3404    sessionStorage.setItem('nq_adobe_tracking_visiting_dimensions', JSON.stringify(adobeTrackingVisitingDimensions));
3405}
3406
3407//--></script>
3407
3408<!-- End SiteCatalyst code version: H.19.3. -->
3409
3410
3411
3412
3413    
3413<script src="/resources/responsive-static/build/mds/js/homepage.js?cb=mkW8NyPe"></script>
3413
3414
3415
3416<script>
3417    if ('' !== '') {
3418        setTimeout(function() {
3419            data_layer_helper.loadScript(
3420                "/resources/responsive-static/build/mds-next/js/.js?cb=mkW8NyPe",
3421                true,
3422                null,
3423                "module"
3424            )
3425        }, 500);
3426    }
3427</script>
3427
3428
3429
3430</html>

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.