Ed Sheeran and Rupert Grint shoot Lego House video at Forum Hertfordshire in Hatfield

PUBLISHED: 10:49 04 November 2011 | UPDATED: 10:18 09 November 2011

Ed Sheeran [Dan WIlton/Front magazine]

Ed Sheeran [Dan WIlton/Front magazine]

Dan WIlton/Front magazine

A BEHIND-THE-SCENES film of Ed Sheeran’s latest video – starring Harry Potter actor Rupert Grint and filmed at the Forum Hertfordshire in Hatfield – has been released.

Sheerans new single Lego House, released last month, featured the Kimpton actor - who starred as Harry Potter's side kick Ron Weasley in the hit films - as a creepy stalker following the fellow red-haired singer backstage at one of his gigs.

That gig happened to be Sheeran's October 8 appearance at The Forum Hertfordshire - and the University of Hertfordshire can clearly be seen throughout much of the video.

Now footage of Sheeran and Grint backstage at the venue during the shooting of the promo has been released on Sheeran's YouTube channel.

The Forum Hertfordshire's commercial director Max Ross said: "The first half of the video was filmed during his October 8 appearance at the Forum Hertfordshire, and various areas around the venue, including the Auditorium and stage where Ed and Rupert performed, our backstage areas and even our service yard are featured quite heavily.

Additionally, a number of UH students, who were in the audience for the performance, were filmed as well.

"We are thrilled to have our venue appear in the video. Ed Sheeran, Rupert Grint and the team were great to work with on the day and we couldn't be happier with how the video turned out."

</p> <!-- Article End --> <div id="article-postscript"> <div class="advert mobile tablet mpu"> <div id="ad-slot-mpu-2-tablet-mobile" class="ad-slot-mpu-2 mobile tablet mpu lp_track"></div> </div> </div> <div class="clearfix"></div> <div class="story-list related"> <h2 class="inpage">Related articles</h2> <ul> <li> <a href="http://www.whtimes.co.uk/what-s-on/the-forum" target="_blank">For more news of events at the Forum Hertfordshire click here</a> </li> </ul> </div> </div> </article> <div class="article-keywords"> </div> <div class="article-share bottom"> <div class="utilities clearfix"><!--*** When utilities is used in a gallery article the class of clearfix is not required --> <div class="fbshare-btn"> <!-- commented because depricated<div class="fbshare-count"></div>--> </div> <div class="twittshare-btn"> </div> <div class="gpshare-btn"></div> <div class="redditshare-btn articleBeltShareBtn"></div> <div class="emailShare articleBeltShareBtn"></div> <div class="wa-share articleBeltShareBtn"></div> <div class="sms-share articleBeltShareBtn"></div> <!--<div class="totalshare"></div>--> <div class="share" id="share-bottom"> <a href="#" id="share-trigger-bottom" onclick="return false"> <span class="logo"></span> <span class="text">Share</span> </a> <div id="popover_content_wrapper" style="display: none"> </div> <script type="text/javascript"> if ($('#share-bottom #email-share').length != 0) { $(document).on('click', '#share-bottom #email-share', function() { var element = $('#captcha_container-304773').html() $('#captcha_container-304773-bottom').html(element); $('.popover').hide(); $('#display-send-to-friend-304773-bottom').toggle(); }); } </script> </div> </div> </div> <div id=display-send-to-friend-304773-bottom style="display:none"> <a name="sharinganchor-display-send-to-friend-304773-bottom"></a> <form action="" method="post" class="web-form" id="share-by-email"> <div id="ClientValidationSummary" class="errors hide"></div> <fieldset> <div class="introduction loggedout"> <p><span href="#sharinganchor">Email this article to a friend</span></p> <p>To send a link to this page you must be logged in.</p> </div> </fieldset> </form> </div> <script type="text/javascript"> // Utilities popover javascript functions $(function(){ $('#share-trigger-bottom').popover({ html : true, placement : 'bottom', content:function() { return '<button type="button" id="close" class="close" onclick="$(&quot;#share-trigger-bottom&quot;).popover(&quot;hide&quot;);">&times;</button>'+ $('#popover_content_wrapper').html(); } }); }); </script> <div class="clearfix"></div> <div id="article-bottom"> <div class="OUTBRAIN" data-src="http://www.whtimes.co.uk/news/ed-sheeran-and-rupert-grint-shoot-lego-house-video-at-forum-hertfordshire-in-hatfield-1-1117402" data-widget-id="AR_1" data-ob-template="archant"></div> <script type="text/javascript" async="async" src="https://widgets.outbrain.com/outbrain.js"></script> <!-- Plista Starts Here --> <div data-widget="plista_widget_belowArticle"></div> <!-- Plista Ends Here --> <script type="text/javascript"> var articleImg = ""; var unixMilli = 1320403740000; var articleTime = unixMilli /1000; console.info('Unix time in seconds = '+ articleTime); var str = $( ".stand-first h2:first" ).text(); var shortText = jQuery.trim(str).substring(0, 155).split(" ").slice(0, -1).join(" ") + "..."; if ($('meta[property="og:image"]').length){ articleImg = $('meta[property="og:image"]').attr("content").replace('630', '225'); articleImg = articleImg.replace(":80",""); } else { articleImg = "/polopoly_fs/7.360744.1509358051!/news-icon.jpg"; } if (!window.PLISTA) { window.PLISTA = { publickey: '4dcb0a5d8961ee480b60030d', item: {"objectid": "1.1117402", "title": "Ed Sheeran and Rupert Grint shoot Lego House video at Forum Hertfordshire in Hatfield", "text": shortText, "url": "http://www.whtimes.co.uk:80/1.1117402", "img": articleImg, "category": 'News',"published_at": articleTime } }; (function(){var n='script',d=document,s=d.createElement(n),s0=d.getElementsByTagName(n)[0];s.async='async';s.type='text/javascript';s.src=(d.location.protocol==='https:'?'https:':'http:')+'//static-uk.plista.com/async.js';s0.parentNode.insertBefore(s,s0)}()); } </script> <div class="advert mobile tablet mpu"> <div id="ad-slot-mpu-3-tablet-mobile" class="ad-slot-mpu-3 mobile tablet mpu lp_track"></div> </div> <!-- Lowestoft Journal, Yarmouth Mercury: Element has been placed in all secondary level pages, as these contain bespoke article queues... C Evans 26/06/17 --> <!-- Implementation details at end of element --> <!-- Start Disqus: 7.584324 --> <!-- Comments Status: true and $comments --> <a name="CommentsArea"></a> <div class="article-comments"> <div data-lazy-widget><!-- <div id="disqus_thread"> <script type="text/javascript"> // found! var disqus_shortname = 'welwyn-hatfield-times'; // Unique Identifier var disqus_identifier = 'ContentId(1.1117402)'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> <noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript> <a href="http://disqus.com" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a> </div> --></div> </div> <!-- End Disqus --> <!-- How to implement Disqus element on websites Disqus element is to be placed last in the bottom slot of the Root. Copy this element, and paste it onto the required site. Check bottom slot on all secondary pages to ensure the bottom slot is empty. If not, if possible remove all elements in the bottom slot. However, if sub page specific content is there, (specific queues, for example), place the Disqus element at the end of the bottom slot. Once element has been placed, you will need to go through the root, and each primary and secondary sub pages, and check the "Initial moderation level for comments" status, which is found under Page Options. The "Initial moderation level for comments" status should be set to Closed. Rinse and repeat ヽ(´∇`)ノ Cat - 27/06/2017 --> <style> /* Styling added to Related articles as per RFC 1753 - Related links to stand out more on Herts and Cambs titles https://basecamp.com/2294155/projects/4252126/todos/229021984. This element is shared for all H&C sites with the Red theme - HAD and WHT Cat Evans - 2015-02-02/14:36 */ .related h2.inpage { color: #d70404!important; height: auto; padding: 8px 15px; font-size: 20px; font-weight: 700; /*background: #336699;*/ margin: 10px 10px 10px -7px; width: calc(100% - 3px); position: relative; } .related h2.inpage:before { width: calc(100% + 20px); height: 3px; background: #d70404; position: absolute; margin-left: -30px; bottom: 0; display: inline-block; content: ''; } .related h2.inpage:after { content: ''; width: 100%; height: 3px; background: #eee; position: absolute; margin: 0 0 0 15px; bottom: 0; border-left: 1px solid #fff; display: inline-block; } .related li a { color: #333; /* font-weight: bold; */ font-size: 1.2em; } .related li a:hover { text-decoration: none; /* color: #d70404!important; */ font-weight: bold; } .related li a:visited { color: #d70404; } </style> <div class="advert mobile tablet desktop mpu"> <div id="ad-slot-teads-desktop-tablet-mobile" class="ad-slot-teads mobile tablet desktop mpu lp_track"></div> </div> <div class="story-list article-bottom two-column"> <h2 class="inpage"> More news stories </h2> <div class="medium-teaser-item teaser clearfix"> <div class="teaser-title"> <h2> <a href="http://www.whtimes.co.uk:80/news/m25-long-delays-following-crash-between-junction-24-potters-bar-and-junction-25-enfield-1-5363563">Long delays following four vehicle collision on M25 </a> </h2> </div> <div class="teaser-extras"> <span class="time">13:49</span> <span class="byline"><a href="/author/sophie-blackman-author-details-author-bio-1-4906844">Sophie Blackman</a></span> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/m25-long-delays-following-crash-between-junction-24-potters-bar-and-junction-25-enfield-1-5363563" title="Delays on the M25 following a four vehicle collision by Junction 24 for Potters Bar. Picture: BCH Road Policing."> <div style="position:relative;height:0;padding-bottom:75.87%;"> <img alt="Delays on the M25 following a four vehicle collision by Junction 24 for Potters Bar. Picture: BCH Road Policing." class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/m25-long-delays-following-crash-between-junction-24-potters-bar-and-junction-25-enfield-1-5363563"> <div style="position:relative;height:0;padding-bottom:75.87%;"> <img alt="Delays on the M25 following a four vehicle collision by Junction 24 for Potters Bar. Picture: BCH Road Policing." class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363562.1516542557!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> <div class="teaser-content"><p><!--PSTYLE=SF Web Summary--><p>Drivers on the M25 are currently facing long delays after four vehicles were involved in a crash by Junction 24 for Potters Bar.</p> </p> </div> </div> <div class="medium-teaser-item teaser clearfix"> <div class="teaser-title"> <h2> <a href="http://www.whtimes.co.uk:80/news/weather/hertfordshire-weather-forecast-welwyn-hatfield-st-albans-stevenage-1-5363518">Weather forecast across Hertfordshire </a> </h2> </div> <div class="teaser-extras"> <span class="time">12:28</span> <span class="byline"><a href="/author/sophie-blackman-author-details-author-bio-1-4906844">Sophie Blackman</a></span> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/weather/hertfordshire-weather-forecast-welwyn-hatfield-st-albans-stevenage-1-5363518" title="The snow in Redbourn this afternoon. Picture: Supplied."> <div style="position:relative;height:0;padding-bottom:76.0%;"> <img alt="The snow in Redbourn this afternoon. Picture: Supplied." class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/weather/hertfordshire-weather-forecast-welwyn-hatfield-st-albans-stevenage-1-5363518"> <div style="position:relative;height:0;padding-bottom:76.0%;"> <img alt="The snow in Redbourn this afternoon. Picture: Supplied." class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363516.1516537724!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> <div class="teaser-content"><p><!--PSTYLE=SF Web Summary--><p>A yellow weather warning has been issued for Stevenage and the snow is due to stop soon across Welwyn Hatfield and St Albans.</p> </p> </div> </div> <div class="medium-teaser-item teaser clearfix"> <div class="teaser-title"> <h2> <a href="http://www.whtimes.co.uk:80/news/welwyn-hatfield-and-potters-bar-court-results-1-5362776">Latest court results for Welwyn Hatfield and Potters Bar </a> </h2> </div> <div class="teaser-extras"> <span class="time">09:00</span> <span class="byline"><a href="/author?author=nina.morgan@whtimes.co.uk">Nina Morgan</a></span> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/welwyn-hatfield-and-potters-bar-court-results-1-5362776" title="St Albans Magistrates' Court"> <div style="position:relative;height:0;padding-bottom:67.41%;"> <img alt="St Albans Magistrates' Court" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/welwyn-hatfield-and-potters-bar-court-results-1-5362776"> <div style="position:relative;height:0;padding-bottom:67.41%;"> <img alt="St Albans Magistrates' Court" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5362775.1516386569!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> <div class="teaser-content"><p><!--PSTYLE=SF Web Summary--><p>Court results published by the Welwyn Hatfield Times are taken from St Albans, Stevenage and Hatfield Magistrates&#8217; Courts and are published without prejudice.</p> </p> </div> </div> <div class="medium-teaser-item teaser clearfix"> <div class="teaser-title"> <h2> <a href="http://www.whtimes.co.uk:80/news/missing-dog-taken-to-hatfield-police-station-1-5363232">Cops and the hound: Dog taken to Hatfield Police Station </a> </h2> </div> <div class="teaser-extras"> <span class="time">Yesterday, 18:29</span> <span class="byline"><a href="/author/sophie-blackman-author-details-author-bio-1-4906844">Sophie Blackman</a></span> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/missing-dog-taken-to-hatfield-police-station-1-5363232" title="Hatfield Police Station"> <div style="position:relative;height:0;padding-bottom:67.41%;"> <img alt="Hatfield Police Station" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/missing-dog-taken-to-hatfield-police-station-1-5363232"> <div style="position:relative;height:0;padding-bottom:67.41%;"> <img alt="Hatfield Police Station" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363231.1516472962!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> <div class="teaser-content"><p><!--PSTYLE=SF Web Summary--><p>Officers that found a dog wandering around Hatfield all alone are now trying to find his human parents.</p> </p> </div> </div> </div> <script> console.log("article share icons warning: $m.global.archantvariables.SiteName has not been set"); //google analytics for article clicks var sendSocialArticleGoogleAnalytics = function(socialNetwork, sharedUrl){ //turn shared url into just article and id number for google analytics sharedArticle = sharedUrl.split("/")[sharedUrl.split("/").length -1] ga('send', 'event', 'Article social share', 'share on '+ socialNetwork, sharedArticle ); } // detect mobile os var getMobileOperatingSystem = function() { var userAgent = navigator.userAgent || navigator.vendor || window.opera; if( userAgent.match( /iPad/i ) || userAgent.match( /iPhone/i ) || userAgent.match( /iPod/i ) ) { // supports iOS 2.0 and later var v = (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/); version = [parseInt(v[1], 10), parseInt(v[2], 10), parseInt(v[3] || 0, 10)]; if (version[0] < 8){ return "ios <8" } else { return "ios =>8" } }else if( userAgent.match( /Android/i ) ){ return 'Android'; }else{ return false; } } jQuery( document ).ready(function () { var articleTitle =""; articleTitle = "Ed Sheeran and Rupert Grint shoot Lego House video at Forum Hertfordshire in Hatfield"; // get current url var currentURL = 'http://www.whtimes.co.uk/news/ed-sheeran-and-rupert-grint-shoot-lego-house-video-at-forum-hertfordshire-in-hatfield-1-1117402'; var totalShareCount = 0; // define share counter //define utm query strings var FBUtmTeaserQueryStr = encodeURIComponent("?utm_source=Facebook&utm=Social_Icon&utm_campaign=article_teaser_social_icons"); var TwittUtmTeaserQueryStr = encodeURIComponent("?utm_source=Twitter&utm_medium=Social_Icon&utm_campaign=article_teaser_social_icons"); var GPUtmTeaserQueryStr = encodeURIComponent("?utm_source=Google_Plus&utm_medium_medium=Social_Icon&utm_campaign=article_teaser_social_icons"); var FBUtmArticleQueryStr = encodeURIComponent("?utm_source=Facebook&utm_medium=Social_Icon&utm_campaign=in_article_social_icons"); var TwittUtmArticleQueryStr = encodeURIComponent("?utm_source=Twitter&utm_medium=Social_Icon&utm_campaign=in_article_social_icons"); var GPUtmArticleQueryStr = encodeURIComponent("?utm_source=Google_Plus&utm_medium=Social_Icon&utm_campaign=in_article_social_icons"); var redditAtmArticleQueryStr = encodeURIComponent("?utm_source=Reddit&utm_medium=Social_Icon&utm_campaign=in_article_social_icons"); //define urls to retrive share statistics var facebookStatsURL = "https://api.facebook.com/method/links.getStats?urls="+ currentURL +"&format=json" // define test boolean for checking for completion of asynchronous ajax calls var completedFB = false var completedTwitter = false // define share links var facebookPrepend = "https://www.facebook.com/sharer/sharer.php?u="; var twitterPrepend = "https://twitter.com/intent/tweet?url="; var gPlusPrepend = "https://plus.google.com/share?url="; var redditPrepend = "http://www.reddit.com/submit?url=" //render share buttons if (jQuery(".fbshare-btn")[0]){ var fbIcon = '<a target="_blank" onclick="event.preventDefault();window.open(\'' + facebookPrepend + encodeURIComponent(currentURL) + FBUtmArticleQueryStr +'\', \'newwindow\', \'width=600, height=500\'); sendSocialArticleGoogleAnalytics(\'facebook\', \''+currentURL+'\'); return false;" href="#"><img src="/polopoly_fs/7.304791.1499961195!/fb-64.png" alt="Share article from on facebook"/></a>'; jQuery(".fbshare-btn").prepend(fbIcon); } if (jQuery(".twittshare-btn")[0]){ var twittIcon = '<a target="_blank" onclick="event.preventDefault();window.open(\'' + twitterPrepend + encodeURIComponent(currentURL) + TwittUtmArticleQueryStr + '&text=' + encodeURIComponent(articleTitle) + '\', \'newwindow\', \'width=600, height=500\'); sendSocialArticleGoogleAnalytics(\'twitter\', \''+currentURL+'\');return false;" href="#"><img src="/polopoly_fs/7.304791.1499961195!/twitt-64.png" alt="Tweet article from "/></a>'; jQuery(".twittshare-btn").prepend(twittIcon); } if (jQuery(".gpshare-btn")[0]){ var gpIcon = '<a target="_blank" onclick="event.preventDefault();window.open(\'' + gPlusPrepend + encodeURIComponent(currentURL) + GPUtmArticleQueryStr +'\', \'newwindow\', \'width=600, height=500\'); sendSocialArticleGoogleAnalytics(\'Google Plus\', \''+currentURL+'\');return false;" href="#"><img src="/polopoly_fs/7.304791.1499961195!/gplus-64.png" alt="Share article from on Google Plus"/></a>'; jQuery(".gpshare-btn").prepend(gpIcon); } if (jQuery(".redditshare-btn")[0]){ var redditIcon = '<a target="_blank" onclick="event.preventDefault();window.open(\'' + redditPrepend + encodeURIComponent(currentURL) + redditAtmArticleQueryStr +'\', \'newwindow\', \'width=600, height=500\'); sendSocialArticleGoogleAnalytics(\'Reddit\', \''+currentURL+'\');return false;" href="#"><img src="/polopoly_fs/7.304791.1499961195!/reddit-64.png" alt="post article from on reddit"/></a>'; jQuery(".redditshare-btn").prepend(redditIcon); } if (jQuery(".emailShare")[0]){ var emailContent = "mailto:?subject="+encodeURIComponent("Story on ")+"&body="+encodeURIComponent("Article from : "+currentURL) jQuery(".emailShare").append('<a href="'+emailContent+'" onclick="sendSocialArticleGoogleAnalytics(\'E-Mail\', \''+currentURL+'\');"> <img src="/polopoly_fs/7.304791.1499961195!/e-mail-64.png" alt="email article from "/></a>'); } if (jQuery(".wa-share")[0]){ if (getMobileOperatingSystem()){ var whatsAppMessage = encodeURIComponent("Article on http://www.whtimes.co.uk "+currentURL) var whatsAppRender = '<a onClick="sendSocialArticleGoogleAnalytics(\'Whatsapp\', \''+currentURL+'\');" href="whatsapp://send?text='+whatsAppMessage+'" class="wa_btn wa_btn_l" ><img src="/polopoly_fs/7.304791.1499961195!/wa-64.png" alt="send article from on Whatsapp"/></a>'; jQuery(".wa-share").append(whatsAppRender); } } if (jQuery(".sms-share")[0]){ var mobileOS = getMobileOperatingSystem(); if (mobileOS){ smsContent = encodeURIComponent("Story from : "+currentURL) if (mobileOS == "Android"){ jQuery(".sms-share").append('<a rel="nofollow" href="sms:?body='+smsContent+'" onclick="sendSocialArticleGoogleAnalytics(\'SMS Android\', \''+currentURL+'\');"><img src="/polopoly_fs/7.304791.1499961195!/sms-64.png" alt="Send article from as text message"/></a>'); } else if (mobileOS == "ios <8"){ jQuery(".sms-share").append('<a rel="nofollow" href="sms:;body='+smsContent+'" onclick="sendSocialArticleGoogleAnalytics(\'SMS IOS\', \''+currentURL+'\');"><img src="/polopoly_fs/7.304791.1499961195!/sms-64.png" alt="Send article from as text message"/></a>'); } else if (mobileOS == "ios =>8"){ jQuery(".sms-share").append('<a rel="nofollow" href="sms:&body='+smsContent+'" onclick="sendSocialArticleGoogleAnalytics(\'SMS IOS\', \''+currentURL+'\');"><img src="/polopoly_fs/7.304791.1499961195!/sms-64.png" alt="Send article from as text message"/></a>'); } else { console.log("unknown mobile device: "+mobileOS) } } } //get facebook share count jQuery.getJSON(facebookStatsURL, function(data) { var fbShareCount = 0; for(i = 0;i< data.length; i++){ fbShareCount = fbShareCount + data[i].share_count; } //render fb shares and add them to totalShareCount if (fbShareCount > 999){ var fbShareCountRender if (fbShareCount > 9999){ fbShareCountRender = Math.floor(fbShareCount/1000); }else{ fbShareCountRender = Math.floor(fbShareCount/100)/10; } fbShareCountRender += "k" jQuery(".fbshare-count").append(fbShareCountRender); }else{ jQuery(".fbshare-count").append(fbShareCount); } totalShareCount = totalShareCount + fbShareCount; completedFB = true }); if ($('.article-share.top').length){ var articleSize = Math.abs($('.article-share.bottom').offset().top - $('.article-share.top').offset().top); var windowHeight = $(window).height(); if (articleSize < (windowHeight/3)*2){ $('.article-share.top').hide(); } } // check if all ajax calls finished every second and then render totalShareCount var renderTotalShare = function(){ setTimeout(function () { if (completedFB){ var totalShareCountRender if (totalShareCount > 999){ totalShareCountRender = Math.floor(totalShareCount/100)/10; totalShareCountRender += "k"; jQuery(".totalshare").append(totalShareCountRender); }else{ jQuery(".totalshare").append(totalShareCount); } }else{renderTotalShare()} }, 1000); }; renderTotalShare(); }); </script> <style> .fbshare-btn img, .twittshare-btn img, .gpshare-btn img, .articleBeltShareBtn img { width: 42px; border-radius: 4px; } /*fix for some themes */ .utilities div { width: initial; } .utilities > .fbshare-btn, .utilities .twittshare-btn, .utilities .gpshare-btn, .utilities .articleBeltShareBtn { padding: 0; border-radius: 4px; -webkit-filter: grayscale(75%); filter: grayscale(75%); margin: 0 4px; } .utilities > .fbshare-btn:hover, .utilities > .twittshare-btn:hover, .utilities > .gpshare-btn:hover, .utilities > .articleBeltShareBtn:hover { -webkit-filter: grayscale(0%); filter: grayscale(0%); } .article-share .utilities a:hover { opacity: 1; } /* counter styles */ .utilities .fbshare-btn { background-color: #3b5998; } .utilities .twittshare-btn { background-color: #4099FF; } .fbshare-count, .twittshare-count{ display: inline-block; color: white; font-weight: bold; font-size: 18px; width: 0; transition: width 1s; overflow: hidden; white-space: nowrap; vertical-align: middle; } .fbshare-count a, .twittshare-count a{ color: white; } .fbshare-count:before { content: "Shares: "; } .twittshare-count:before { content: "Tweets: "; } .fbshare-btn:hover .fbshare-count, .twittshare-btn:hover .twittshare-count { width: 110px; transition: width 1s; display: inline-block; } /*total share*/ .utilities > .totalshare { vertical-align: bottom; height: 42px; padding: 0; font-weight: bold; font-size: 32px; vertical-align: middle; float: right; padding-left: 4px; border-left: 1px solid #ccc; } .totalshare:before { content: "Shares: "; font-size: 14px; } /*general styles*/ .article-share { border-top: 1px solid #ccc; border-bottom: 1px solid #ccc; padding: 10px 0; vertical-align: middle; } .article-share .utilities { padding: 0; } /* stop appering in gallery */ .gallery .article-share{ display: none!important; } /*remove comments button*/ .article-share .utilities .comments { display: none; } /*whatsapp button*/ @media screen and (min-width: 1024px) { .whatsappcontainer { display:none; } } /*mobile tablet styling*/ @media (max-width: 1024px){ .utilities > .totalshare { border-left: 0; } .fbshare-count, .twittshare-count{ font-size: 14px; width: initial; padding-Right: 8px; } .utilities > .fbshare-btn, .utilities .twittshare-btn, .utilities .gpshare-btn, .utilities .articleBeltShareBtn { -webkit-filter: grayscale(0%); filter: grayscale(0%); margin-bottom: 8px; } .fbshare-btn:hover .fbshare-count, .twittshare-btn:hover .twittshare-count { width:initial } } </style> </div> <div class="clearfix"></div> </div> </div></div> <div class="content-b col-md-4"><div class="row"><div class="inner-c col-md-12"> <div> <!-- Start LegacyAppFragment name="Banners" --> <div class="advert desktop mpu"> <div id="ad-slot-mpu-1-desktop" class="ad-slot-mpu-1 desktop mpu lp_track"></div> </div> <div> <style> .tbcentered { text-align: center; border-bottom: 2px solid #CCC; padding-bottom: 10px; font-size: 18px; } .promo-container h2.tbcentered { float:none !important; } .promo-container { padding-top: 10px !important; } .promo-container h2{text-transform:none !important;} </style> <script> var start = new Date(2016,10,03); var end = new Date(2016,11,19); var now = new Date(); if(now > start && now < end){ document.write('<div class="promo-container newheading promoted-content"><div class="clearfix"><h2 class="tbcentered">PROMOTED CONTENT</h2></div>'); } </script> <div class="story-list "> </div> <script> var w = window.innerWidth; if (w < 970) { if ($('.promoted-content').length) { var movecode3 = $('.promoted-content'); $('.promoted-content').detach; $('.moved-promoted').after(movecode3); } } </script> </div> <style type="text/css"> .e-edition object{ position:relative; } .e-edition .fallback{ position:absolute; top:0; left:0; } .e-edition .preview{ width:150px; height:auto; float:left; margin-right:5px; } .e-edition .description { padding-top:15%; } .e-edition .description .button{ display:block; float:left; margin-top:10px; } </style> <h3 class="inpage"><a href="/home/e-edition/">Digital Edition</a></h3> <div style="width: 100%; height: 190px;" class="e-edition" <a href="/home/e-edition/"><img class="preview" src="http://edition.pagesuite-professional.co.uk/get_image.aspx?w=300&pbid=c899d34e-4f2c-4ee8-8872-4574ba7d16af&d=21" border="0" alt="Image"/></a> <div class="description">Read the <strong>Welwyn Hatfield Times</strong> e-edition <a href="/home/e-edition/" target="_blank" class="button">E-edition</a> </div> </div> <style type="text/css"> #local-search-container { background-image: url("http://www.whtimes.co.uk:80/polopoly_fs/7.180692.1446808795!/LS24-background.jpg"); background-position: 0 -40px; font-size: 100%; height: 260px; margin-bottom: 20px; padding: 20px; position: relative; } #local-search-container .row{ margin: 0px; } #local-search-container .search-button { background-color: #f4cd4d; color: #540075; cursor: pointer; margin: 20px 0px 0px 0px; text-decoration:none; font-weight: bold; border: 0px; float: left; } #local-search-container label{ padding: 0px; } #local-search-container #local-search-fields .text { border: 1px solid #6E2085; } #local-search-container .logo{ margin-bottom: 10px; } #local-search-container #strapline { display: block; font-size: 100%; line-height: 12px; color: #ffffff; margin-bottom: 10px; padding-top: 20px; font-weight: bold; text-shadow: 0 0 10px #000000; } #local-search-container #search-radius { } @media (min-width: 800px) { #local-search-container #strapline{ padding-top: 70px; } .linebreak { margin-bottom: 10px; } } </style> <h3 class="inpage"> Local business directory</h3> <div class="linebreak"></div> <div id="local-search-container" class="callout"> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <!-- LS24 Logo --> <a href="http://www.localsearch24.co.uk/herts/" target="_blank"><img class="logo" border="0" src="http://www.whtimes.co.uk:80/polopoly_fs/7.180692.1446808795!/local_search_191.png" alt="Local Search 24"></a> </div> </div> <div class="row"> <form action="http://www.localsearch24.co.uk/herts//search-results.aspx" enctype="application/x-www-form-urlencoded" method="get" target="_blank" class="form-horizontal" role="form"> <div id="local-search-fields"> <div class="row"> <div class="col-md-6 col-sm-6 col-xs-12"> <div class="row"> <label class="" for="Business">Looking for a:</label> <input type="text" name="Business" class="form-control text"> </div> </div> <div class=" col-md-6 col-sm-6 col-xs-12"> <div class="row"> <label class="col-md-6 col-sm-6 col-xs-12" for="Location">Location:</label> <input type="text" name="Location" class="form-control text col-md-6 col-sm-6 col-xs-12" value="Hertfordshire"> </div> </div> </div> <!-- Search Radius and Search Button --> <div class="row"> <div class="col-md-6 col-sm-6 col-xs-9"> <div id="search-radius" class="row"> <label for="SearchRadius">Search radius:</label> <select name="SearchRadius" class="form-control"> <option value="3" selected="selected">3 Miles</option> <option value="6">6 Miles</option> <option value="9">9 Miles</option> <option value="12">12 Miles</option> <option value="15">15 Miles</option> <option value="18">18 Miles</option> <option value="21">21 Miles</option> <option value="24">24 Miles</option> <option value="27">27 Miles</option> <option value="30">30 Miles</option> </select> </div> </div> <div class="col-md-6 col-sm-6 col-xs-3"> <div class="row"> <input type="submit" id="Search" value="Search" class="search-button btn btn-default"> </div> </div> </div> </div> </form> </div> <div class="row"> <div class="col-md-12 col-sm-12 col-xs-12"> <!-- Strapline --> <div id="strapline">Hertfordshire's trusted business finder</div> </div> </div> </div> <div class="subscription-widget"> <h4>Newsletter Sign Up</h4> <form class="subscription-widget__form" action="" method="post"> <input type="hidden" name="action" value="subscribe"/> <input type="hidden" name="submitted" value="none" id="subscription"/> <input type="hidden" name="relatedProduct" value=0 /> <div class="form-group"> <label for="subscriber-email">Email Address*</label> <input type="email" class="form-control" id="subscriber-email" placeholder="Email" name="email" required> </div> <div class="form-group"> <label for="subscriber-name">Name*</label> <input type="text" class="form-control" id="subscriber-name" placeholder="Name" name="name" required> </div> <div class="checkbox"> <label> <input type="checkbox" value="1" name="electronicMarketingArchant"> Keep me up to date on special promotions, products and services from Archant Community Media Limited </label> </div> <div class="checkbox"> <label> <input type="checkbox" value="1" name ="electronicMarketingThirdParty"> I am happy for you to pass my information onto carefully selected third parties so they can send me information about their products and services </label> </div> <div class="checkbox sub-terms-cond"> <label> <input type="checkbox" value="1" name ="termsCond" tabindex="-1" checked="checked"> Please agree to the terms and conditions </label> </div> <div class="col-sm-10 text-right">Sign up to receive our regular email newsletter</div> <button type="submit" class="btn btn-default col-sm-2 subscription-widget__submit">Join</button> </form> </div> <script type="text/javascript"> //As this widget contains two "required" input fields, the shopping basket functionality on services pages wouldn't submit its post request. //This quick fix removes the newsletter widget when it appears on a services page or aspx page. $(function(){ var urlPrefix = window.location.hostname; var urlPreResult = /^services/.test(urlPrefix); var urlPath = window.location.pathname; var urlPathResult = /aspx/.test(urlPath); if(urlPreResult || urlPathResult){ $('.subscription-widget').remove(); } }); </script> <script type="text/javascript"> window.setTimeout(function(){ $('.sub-terms-cond input:checkbox').removeAttr("checked"); }, 3000); $(".subscription-widget__submit").click(function(e) { var termsCheckbox = $('.sub-terms-cond input:checkbox').is(':checked'); function validateEmail(email) { var re = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; return re.test(email); } var userEmail = document.getElementById('subscriber-email').value; var validEmail = validateEmail(userEmail); if(!validEmail){ alert('Please provide a valid email address'); e.preventDefault(); } else if(termsCheckbox){ document.getElementById('subscription').value = 'false'; } else{ document.getElementById('subscription').value = 'true'; } }); </script> <style type="text/css"> #drive24-widget { margin: 0; width: 100%; font-family: Arial, Helvetica, sans-serif; position: relative; border-bottom: 1px solid #999; overflow: hidden; padding: 0 0 15px 0; margin: 10px 0px 20px 0px; } #drive24-widget h2 { margin: 0px 0px 15px 0px; height: 33px; line-height: 33px; text-indent: 10px; font-size: 16px; font-weight: normal; color: #263333; text-shadow: 1px 1px #fff; border: 1px solid #999; background: #e5e5e5; /* Old browsers */ background: -ms-linear-gradient(top, #e5e5e5 0%, #f2f2f2 100%); /* IE10+ */ background: linear-gradient(to bottom, #e5e5e5 0%, #f2f2f2 100%); /* W3C */ } #drive24-widget #motors-logo { position: absolute; top: 1px; right: 1px; } #mot-UsedCarSearch-logo { display: none; } #drive24-widget label { width: 20%; padding: 0px 5px 0px 0px; float: left; display: block; height: 26px; line-height: 26px; text-align: right; margin: 0px 0px 10px 0px; color: #727272; font-size: 12px; } #drive24-widget select, #mot-UsedCarSearch-location { width: 79%; float: left; display: block; padding: 3px; height: 26px; margin: 0px 0px 10px 0px; border: 1px solid #acacac; border-radius: 3px; } #mot-UsedCarSearch-location { width: 34%; height: 20px; } #mot-UsedCarSearch-search { float: left; margin: 0px 0px 0px 45px; border: 1px solid #161616; padding: 3px 14px; border-radius: 3px; color: #fff; font-weight: bold; text-shadow: 1px 1px 0px #000; background: #767676; /* Old browsers */ background: -ms-linear-gradient(top, #767676 0%, #343434 100%); /* IE10+ */ background: linear-gradient(to bottom, #767676 0%, #343434 100%); /* W3C */ } </style> <script type="text/javascript"> /* Development version Compile before deployment~~~ */ var motorsWidget = (function(w, d) { "use strict"; var options = {}; // trim a string function trim(str) { if (str) { var str = str.replace(/^\s\s*/, ''), ws = /\s/, i = str.length; while (ws.test(str.charAt(--i))); return str.slice(0, i + 1); } } // ie doesn't like (this) being passed through the json object out of context, which is fair enough function ieFixEvent() { var e, el; if (!e) { e = w.event; } if (e.target) { el = e.target; } else if (e.srcElement) { el = e.srcElement; } if (el.nodeType === 3) { el = el.parentNode; } return el; } // grab namespace out of generated IDs // TODO: remove harcoded references to panel name function getNs(el) { var elNs, retVal = false; if (el && el.id) { elNs = el.id.split('-'); elNs.pop(); retVal = elNs.join('-'); } return retVal; } // validate a specified field with a regex from the set in options.config.validate values function validate(el, method, compareTo) { var valid, compareEl, val1, val2, returnVal; if (!el.tagName) { el = ieFixEvent(); } if (method === 'withinbound') { compareEl = d.getElementById(getNs(el) + '-' + compareTo); val1 = parseInt(el.options[el.selectedIndex].value, 10); val2 = parseInt(compareEl.options[compareEl.selectedIndex].value, 10); if (!isNaN(val1 * val2)) { if (compareTo === 'maxprice' && val1 > val2) { el.value = compareEl.options[(compareEl.selectedIndex - 1 >= 0) ? compareEl.selectedIndex - 1 : compareEl.selectedIndex].value; alert('Minimum price must be lower than the maximum price'); } else if (compareTo === 'minprice' && val1 < val2) { el.value = compareEl.options[(compareEl.selectedIndex + 1 <= compareEl.options.length) ? compareEl.selectedIndex + 1 : compareEl.selectedIndex].value; alert('Maximum price must be greater than minimum price'); } } return false; } else { var valid = options.config.validate[method].test(trim(el.value)); if (!valid) { if (el.className.indexOf("invalid") < 1) el.className += " invalid"; } else { el.className = trim(el.className.replace(/\binvalid\b/g, '')); } return valid; } } // get search criteria and populate options.search var getCriteria = function(el) { var nodeList, panelNode, field, fieldEl, errorEl, val = false, fail = false, i; options.search = {}; if (!el.tagName) el = ieFixEvent(); panelNode = el.parentNode; options.search.type = panelNode.id.split(options.config.nameSpace)[1]; nodeList = panelNode.childNodes; for (i = 0; i < nodeList.length; i++) { fieldEl = nodeList[i]; errorEl = d.getElementById(fieldEl.id + '-error'); if (fieldEl.nodeType !== 3) { if (fieldEl.className.indexOf('invalid') > -1) { fieldEl.focus(); if (fieldEl.title) { if (!errorEl) { errorEl = d.createElement('span'); errorEl.setAttribute('id', fieldEl.id + '-error'); errorEl.className = 'error'; if (fieldEl.nextSibling) { fieldEl.parentNode.insertBefore(errorEl, fieldEl.nextSibling); } else { fieldEl.parentNode.appendChild(errorEl); } errorEl.innerHTML = fieldEl.title; } else { errorEl.style.display = 'block'; } } fail = true; } else { if (errorEl) errorEl.style.display = 'none'; } if (fieldEl.tagName == "SELECT") { val = fieldEl.options[fieldEl.selectedIndex].value; } else if (fieldEl.tagName == "INPUT" && fieldEl.type !== "button") { val = fieldEl.value; } if (val) options.search[fieldEl.id.split(el.parentNode.id + '-')[1]] = val; //.replace(/\s/g,'%20'); val = false; } } if (!fail) { buildForm(); } } function getModels() { var el = document.getElementById(options.config.nameSpace + 'UsedCarSearch-make'), targ = document.getElementById(options.config.nameSpace + 'UsedCarSearch-model'), i = el.selectedIndex, opt = el.options, val = opt[i].value; if (val === 'Any') { targ.innerHTML = '<option value="Any">Any</option>'; } else { targ.innerHTML = ""; targ.options[0] = new Option('Any', 'Any'); var models; for (var x = 0; x < carData.MakeData.length; x++) { if (carData.MakeData[x].Name === val) { models = carData.MakeData[x].Models; break; } } if (models) { for (var a = 0; a < models.length; a++) { targ.options[a + 1] = new Option(models[a].Name, models[a].Name); } } } } function getMakes() { var make, el = d.getElementById(options.config.nameSpace + 'UsedCarSearch-make'), count = 1; if (carData && carData.MakeData && el) { el.innerHTML = ""; el.options[0] = new Option('Any', 'Any'); for (var i = 0; i < carData.MakeData.length; i++) { el.options[i + 1] = new Option(carData.MakeData[i].Name, carData.MakeData[i].Name); } } } options = { "config": { "makesURL": "https://www.drive24.co.uk/Ajax/AllMakesModels.ashx", "drive24URL": "https://www.drive24.co.uk/search/Widget", "logoImagePath": false, "referrer": (function() { var pHost = w.location.host + '/', pUrl = w.location.href.split('?')[0], pRef; if (pHost !== pUrl && w.location.host !== pUrl) { pRef = pUrl.split(pHost)[1]; if (pRef) pRef = pHost + pRef.substr(0, pRef.indexOf('/') + 1); } return ((pRef) ? pRef : w.location.host); }()), "nameSpace": "mot-", "showTabs": true, "showLabels": true, "wrapperId": "motorsPanel", "baseAnchor": null, "eventMethod": (function() { var r = "onevent"; if (w.addEventListener) { r = "addEventListener"; } else if (w.attachEvent) { r = "attachEvent"; } return r; }()), "tabCache": [], "panelCache": [], "validate": { "pcode": /(GIR 0AA|[A-PR-UWYZ]([0-9][0-9A-HJKPS-UW]?|[A-HK-Y][0-9][0-9ABEHMNPRV-Y]?) {0,1}[0-9][ABD-HJLNP-UW-Z]{2})/i } }, "structure": { "Used Car Search": { "logo": { "type": "div", "value": "logo", "elClass": "logo" }, "tag": { "type": "h2", "value": "Find a used car" }, "make": { "type": "select", "label": "Make", "event": [{ "type": "onchange", "fn": function() { getModels() } }] }, "model": { "type": "select", "label": "Model" }, "location": { "type": "text", "label": "Postcode", "title": "Please enter your full postcode", "elClass": "postcode invalid", "event": [{ "type": "onkeyup", "fn": function() { validate(this, 'pcode') } }] }, "search": { "type": "button", "value": "Search", "event": [{ "type": "onclick", "fn": function() { getCriteria(this) } }] } } } }; // bind an event function eventBind(el, evt, fn) { if (!el) { el = w; } if (evt === "onload") { el.onreadystatechange = function() { if (!this.readyState || this.readyState == "loaded" || this.readyState == 'complete') { fn(); } }; } switch (options.config.eventMethod) { case "addEventListener": el.addEventListener(evt.replace(/on/, ''), fn, false); break; case "attachEvent": el.attachEvent(evt, fn); break; default: switch (evt) { case "onkeyup": el.onkeyup = fn; break; case "onload": el.onload = fn; break; default: el.onclick = fn; break; } } } // extend an object function extend(obj, extObj) { var a; for (a in extObj) { if (extObj.hasOwnProperty(a)) { if (extObj[a] && (typeof extObj[a] === 'object') && !(extObj[a] instanceof Array)) { extend(obj[a], extObj[a]); } else { obj[a] = extObj[a]; } } } a = null; return obj; } // append a script tag to the document function getJsonp(url, fn) { var scriptTag = d.createElement('script'); scriptTag.setAttribute('src', url); if (fn) { eventBind(scriptTag, "onload", fn); } d.body.appendChild(scriptTag); } // tab click functionality function tabClick(el) { var elId, tab, panel, i; if (!el.tagName) { el = ieFixEvent(); if (el.tagName !== 'LI') el = el.parentNode; } elId = el.id.split(options.config.nameSpace + 'tab-')[1]; // do tabs for (i = 0; i < options.config.tabCache.length; i++) { tab = options.config.tabCache[i]; if (tab.className.indexOf('active') > -1) tab.className = trim(tab.className.replace(/\bactive\b/g, '')); } el.className += " active"; // do panel for (i = 0; i < options.config.panelCache.length; i++) { panel = options.config.panelCache[i]; if (panel.className.indexOf('active') > -1) panel.className = trim(panel.className.replace(/\bactive\b/g, '')); } d.getElementById(options.config.nameSpace + elId).className += " active"; } function formatTerm(term) { return term.replace(/\s/g, '').toLowerCase() } // build URL containing search params function buildURL() { var opt = options.search; var make = ""; var model = ""; var url = options.config.drive24URL //omit model from query if its set to any if (typeof opt.model === 'string' && opt.model !== "Any") { model = '/' + formatTerm(opt.model); } if (typeof opt.make === 'string' && opt.make !== "Any") { url += (formatTerm(opt.make) + model); } url += ('?location=' + opt.location); url += ('&referring_site=' + options.config.referrer); return url; } function buildForm() { var opt = options.search; var make = null; var model = []; var url = options.config.drive24URL; var location = opt.location; var makeModels = []; if (typeof opt.make === 'string' && opt.make !== "Any") { make = opt.make; if (typeof opt.model === 'string' && opt.model !== "Any") { model = [opt.model]; } makeModels = [{ Models: model, Trims: [], Make: make }]; }; var searchParameters = { "Type": 1, "ExcludeUnlisted": true, "FacetMinCount": -1, "SearchSortOptions": "0", "CurrentPage": 1, "PageSize": 15, "PostCode": location, "Distance": "1000", "SortOrder": "0", "AdvertType": "*", "SoldStatusType": "both", "MakeModels": makeModels, "MinPrice": "-1", "MaxPrice": "-1", "BodyStyles": [], "Age": "-1", "Mileage": "-1", "Transmissions": [], "FuelTypes": [], "Colours": [], "TopSpeed": "*", "Power": "*", "Acceleration": "*", "FuelType": null, "Transmission": null, "InsuranceGroup": "*", "TowingBrakedMax": "*", "TowingUnbrakedMax": "*", "FuelEfficiency": "*", "AnnualTax": "*", "CO2Emission": "*", "EngineSize": "*", "Doors": [], "Seats": [], "SafetyRatings": [], "Features": [], "Keywords": [], "Location": null, "IsReduced": false, "IsRecentlyAdded": false, "DealerId": 0, "RouteKey": null }; var form = document.createElement('form'); form.setAttribute('method', 'POST'); form.setAttribute('action', url); form.setAttribute('target', '_blank') var field = document.createElement('input'); field.setAttribute('type', 'hidden'); field.setAttribute('name', 'searchParameters'); field.setAttribute('value', JSON.stringify(searchParameters)); form.appendChild(field); document.body.appendChild(form); form.submit(); } // create inputs as specified in options.structure function buildInput(targEl, fieldName, fieldObj) { var fieldHtml, labelHtml, i = 0, fieldId = targEl.id + '-' + fieldName; fieldHtml = d.getElementById(fieldId); if (!fieldHtml) { // if field does not already exist create it if (fieldObj.type == "select") { // selectbox fieldHtml = d.createElement('select'); fieldHtml.options[0] = new Option('Any', 'Any'); if (fieldObj.value) { for (; i < fieldObj.value.length; i++) { if (fieldObj.value[i] !== 'undefined') fieldHtml.options[i + 1] = new Option(((fieldObj.transform) ? fieldObj.transform.replace(/{{value}}/g, fieldObj.value[i]) : fieldObj.value[i]), fieldObj.value[i]); } } } else if (fieldName == "tag") { // insert a plain html tag targEl.innerHTML += '<' + fieldObj.type + '>' + fieldObj.value + '</' + fieldObj.type + '>'; return false; } else if (fieldName == "logo") { // insert a plain html tag fieldHtml = d.createElement('div'); //if (fieldObj.value) fieldHtml.setAttribute('value', fieldObj.value); // fieldHtml.setAttribute('src', options.config.logoImagePath); } else { // generic input tag, type specified in config json fieldHtml = d.createElement('input'); fieldHtml.setAttribute('type', fieldObj.type); if (fieldObj.value) fieldHtml.setAttribute('value', fieldObj.value); } if (fieldObj.elClass) fieldHtml.className = fieldObj.elClass; if (fieldObj.title) fieldHtml.setAttribute('title', fieldObj.title); fieldHtml.setAttribute('id', fieldId); targEl.appendChild(fieldHtml); if (options.config.showLabels && fieldObj.label) { // if labels are enabled create them labelHtml = d.createElement('label'); labelHtml.setAttribute('for', fieldId); targEl.insertBefore(labelHtml, fieldHtml); labelHtml.innerHTML = fieldObj.label; } } if (fieldObj.event) { // bind element events for (i = 0; i < fieldObj.event.length; i++) { eventBind(fieldHtml, fieldObj.event[i].type, fieldObj.event[i].fn); } } } // create a divs for each search-type as specified in options.structure function buildPanel() { var panel, field, panelEl, panelId, obj = options.structure; for (panel in obj) { if (obj.hasOwnProperty(panel)) { panelId = options.config.nameSpace + panel.replace(/\W/g, ''); panelEl = d.getElementById(panelId); if (!panelEl) { panelEl = d.createElement('div'); panelEl.setAttribute('id', panelId); panelEl.className = 'panel'; options.config.baseAnchor.appendChild(panelEl); } for (field in obj[panel]) { if (obj[panel].hasOwnProperty(field)) { buildInput(panelEl, field, obj[panel][field]); } } options.config.panelCache.push(panelEl); } } options.config.panelCache[0].className += ' active'; } // build the tabbed interface function buildTabs() { var tabHtml, tabEl, tabId, tab, obj = options.structure, objItem, objCount = 0; for (objItem in obj) { if (obj.hasOwnProperty(objItem)) objCount++; } if (objCount < 2) return false; options.config.baseAnchor.innerHTML += ''; options.config.baseAnchor.innerHTML += '<ul id="' + options.config.nameSpace + 'tabs"></ul>'; tabEl = d.getElementById(options.config.nameSpace + 'tabs'); for (objItem in obj) { tabId = options.config.nameSpace + 'tab-' + objItem.replace(/\W/g, ''); tab = d.getElementById(tabId); if (!tab) { tab = d.createElement('li'); tab.setAttribute('id', tabId); tabEl.appendChild(tab); tab.innerHTML = '<a href="#motors_search">' + objItem + '</a>'; } eventBind(tab, 'onclick', function() { tabClick(this) }); options.config.tabCache.push(tab); } options.config.tabCache[0].className += ' active'; } // setup the panel function initMotorsPanel() { options.config.baseAnchor = (function() { var ret = false, el = d.getElementById(options.config.wrapperId); if (el) ret = el; return ret; }()); if (options.config.baseAnchor) { if (options.config.showTabs) buildTabs(); buildPanel(); } getJsonp(options.config.makesURL, getMakes); }; // import options overrides if present if (typeof motorsOverride === 'object') extend(options, motorsOverride); // init onload eventBind(w, "onload", initMotorsPanel); // expose internal methods (to hook it into your analytics) return { search: options.search } }(this, document)); </script> <form id="drive24-widget" runat="server"> <img id="motors-logo" class="logo" src="/polopoly_fs/7.693182.1515583748!/drive24-logo.png" alt=""> <div id="motorsPanel"></div> </form> <div class="story-list most-read most-read-small teaser-counter"> <h2 class="inpage"> Most read stories </h2> <div class="small-teaser-item teaser clearfix"> <div class="teaser-title"> <h4> <a href="http://www.whtimes.co.uk:80/news/man-dies-following-stabbing-in-ludwick-way-welwyn-garden-city-1-5361491">Man dead after stabbing in Welwyn Garden City </a> </h4> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/man-dies-following-stabbing-in-ludwick-way-welwyn-garden-city-1-5361491" title="Ludwick Way in Welwyn Garden City is closed off by police as a cordon remains in place after a serious attack. Picture: Danny Loo"> <div style="position:relative;height:0;padding-bottom:67.6%;"> <img alt="Ludwick Way in Welwyn Garden City is closed off by police as a cordon remains in place after a serious attack. Picture: Danny Loo" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/man-dies-following-stabbing-in-ludwick-way-welwyn-garden-city-1-5361491"> <div style="position:relative;height:0;padding-bottom:67.6%;"> <img alt="Ludwick Way in Welwyn Garden City is closed off by police as a cordon remains in place after a serious attack. Picture: Danny Loo" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5361525.1516357169!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> </div> <div class="small-teaser-item teaser clearfix"> <div class="teaser-title"> <h4> <a href="http://www.whtimes.co.uk:80/news/ludwick-way-welwyn-garden-city-residents-react-to-murder-investigation-1-5362177">Welwyn Garden City residents in shock at murder probe </a> </h4> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/ludwick-way-welwyn-garden-city-residents-react-to-murder-investigation-1-5362177" title="The murder investigation scene in Ludwick Way, Welwyn Garden City. Picture: Welwyn Hatfield Times."> <div style="position:relative;height:0;padding-bottom:76.0%;"> <img alt="The murder investigation scene in Ludwick Way, Welwyn Garden City. Picture: Welwyn Hatfield Times." class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/ludwick-way-welwyn-garden-city-residents-react-to-murder-investigation-1-5362177"> <div style="position:relative;height:0;padding-bottom:76.0%;"> <img alt="The murder investigation scene in Ludwick Way, Welwyn Garden City. Picture: Welwyn Hatfield Times." class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5362168.1516375214!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> </div> <div class="small-teaser-item teaser clearfix"> <div class="teaser-title"> <h4> <span class="teaser-label teaser-updated">Updated:</span> <a href="http://www.whtimes.co.uk:80/news/murder-probe-after-ludwick-way-welwyn-garden-city-stabbing-1-5361815">Murder investigation following Welwyn Garden City stabbing </a> </h4> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/murder-probe-after-ludwick-way-welwyn-garden-city-stabbing-1-5361815" title="Ludwick Way in Welwyn Garden City is closed off by police as a cordon remains in place after a serious attack. Picture: Danny Loo"> <div style="position:relative;height:0;padding-bottom:67.6%;"> <img alt="Ludwick Way in Welwyn Garden City is closed off by police as a cordon remains in place after a serious attack. Picture: Danny Loo" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/murder-probe-after-ludwick-way-welwyn-garden-city-stabbing-1-5361815"> <div style="position:relative;height:0;padding-bottom:67.6%;"> <img alt="Ludwick Way in Welwyn Garden City is closed off by police as a cordon remains in place after a serious attack. Picture: Danny Loo" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5361532.1516357194!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> </div> <div class="small-teaser-item teaser clearfix"> <div class="teaser-title"> <h4> <a href="http://www.whtimes.co.uk:80/news/marks-and-spencers-new-distribution-centre-welham-green-1-5358422">Marks & Spencer creates 500 jobs in Welwyn Hatfield </a> </h4> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/marks-and-spencers-new-distribution-centre-welham-green-1-5358422" title="The former Tesco Welham Green distribution centre. Picture: Alex Lewis"> <div style="position:relative;height:0;padding-bottom:76.0%;"> <img alt="The former Tesco Welham Green distribution centre. Picture: Alex Lewis" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/marks-and-spencers-new-distribution-centre-welham-green-1-5358422"> <div style="position:relative;height:0;padding-bottom:76.0%;"> <img alt="The former Tesco Welham Green distribution centre. Picture: Alex Lewis" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5358418.1516188496!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> </div> <div class="small-teaser-item teaser clearfix"> <div class="teaser-title"> <h4> <a href="http://www.whtimes.co.uk:80/news/ludwick-way-welwyn-garden-city-stabbing-appeal-1-5363200">Police appeal following fatal stabbing in Welwyn Garden City </a> </h4> </div> <div class="teaser-image"> <!--[if IE]> <a href="http://www.whtimes.co.uk:80/news/ludwick-way-welwyn-garden-city-stabbing-appeal-1-5363200" title="Ludwick Way in Welwyn Garden City is where the crime is believed to have taken place. Picture: Danny Loo"> <div style="position:relative;height:0;padding-bottom:67.6%;"> <img alt="Ludwick Way in Welwyn Garden City is where the crime is believed to have taken place. Picture: Danny Loo" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <![endif]--> <!--[if !IE]> --> <a href="http://www.whtimes.co.uk:80/news/ludwick-way-welwyn-garden-city-stabbing-appeal-1-5363200"> <div style="position:relative;height:0;padding-bottom:67.6%;"> <img alt="Ludwick Way in Welwyn Garden City is where the crime is believed to have taken place. Picture: Danny Loo" class='img-responsive lazyImage' data-srcset="http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_75/image.jpg 75w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_145/image.jpg 145w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_225/image.jpg 225w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_300/image.jpg 300w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_490/image.jpg 490w, http://images.archant.co.uk/polopoly_fs/1.5363199.1516470684!/image/image.jpg_gen/derivatives/landscape_630/image.jpg 630w " src="" /> </div> </a> <!-- <![endif]--> </div> </div> </div> <div class="advert desktop mpu"> <div id="ad-slot-mpu-2-desktop" class="ad-slot-mpu-2 desktop mpu lp_track"></div> </div> <div> <div class="jobs24-header"> <a href="http://www.jobs24.co.uk" target="_blank"><img src="/polopoly_fs/7.373406.1494253462!/jobs24Logo.gif" alt="" /></a> </div> <link rel='stylesheet' type='text/css' href='http://services.london24.com/london/matchwork/css/carousel-v2.css?01a'><div class='hotjobs-heading'><span>HOT</span> JOBS</div><div id='myCarousel' class='carousel slide j24' data-ride='carousel'><div class='carousel-inner' role='listbox'><div class='item active'><div class='container'><div class='carousel-caption'><img class='0-slide' src='http://static.matchwork.com/company/category-logo/jobs24/102.png' alt='slide'><h1>Administration Assistant</h1><p>Stotfold</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329732518', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329732518' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 1'><div class='container'><div class='carousel-caption'><img class='1-slide' src='http://static.matchwork.com/company/category-logo/jobs24/102.png' alt='slide'><h1>Administration Assistant</h1><p>Stotfold</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329732518', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329732518' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 2'><div class='container'><div class='carousel-caption'><img class='2-slide' src='http://static.matchwork.com/company/category-logo/jobs24/140.png' alt='slide'><h1>CAREERS EVENT ENGINEERING</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329733870', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329733870' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 3'><div class='container'><div class='carousel-caption'><img class='3-slide' src='http://static.matchwork.com/company/category-logo/jobs24/102.png' alt='slide'><h1>Medical Secretary</h1><p>Welwyn</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329737898', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329737898' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 4'><div class='container'><div class='carousel-caption'><img class='4-slide' src='http://static.matchwork.com/company/category-logo/jobs24/102.png' alt='slide'><h1>MEMBER REPRESENTATIVES</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329737918', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329737918' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 5'><div class='container'><div class='carousel-caption'><img class='5-slide' src='http://static.matchwork.com/company/category-logo/jobs24/140.png' alt='slide'><h1>Experienced Funeral Director Required</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738229', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738229' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 6'><div class='container'><div class='carousel-caption'><img class='6-slide' src='http://static.matchwork.com/company/category-logo/jobs24/123.png' alt='slide'><h1>Personal Assistant Required</h1><p>Welwyn Garden City</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738230', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738230' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 7'><div class='container'><div class='carousel-caption'><img class='7-slide' src='http://static.matchwork.com/company/category-logo/jobs24/110.png' alt='slide'><h1>HGV CLASS 1 DRIVER REQUIRED</h1><p>Cambridgeshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738233', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738233' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 8'><div class='container'><div class='carousel-caption'><img class='8-slide' src='http://static.matchwork.com/company/category-logo/jobs24/126.png' alt='slide'><h1>Sales Assistant</h1><p>Cambridgeshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738337', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329738337' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 9'><div class='container'><div class='carousel-caption'><img class='9-slide' src='http://static.matchwork.com/company/category-logo/jobs24/160.png' alt='slide'><h1>FULL TIME AND PART TIME STAFF</h1><p>Cambridgeshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329739087', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329739087' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 10'><div class='container'><div class='carousel-caption'><img class='10-slide' src='http://static.matchwork.com/company/category-logo/jobs24/123.png' alt='slide'><h1>Dental Nurse</h1><p>Harpenden</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329739088', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329739088' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 11'><div class='container'><div class='carousel-caption'><img class='11-slide' src='http://static.matchwork.com/company/category-logo/jobs24/102.png' alt='slide'><h1>Care Home Vacancies- Support workers</h1><p>Buntingford</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329739092', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329739092' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 12'><div class='container'><div class='carousel-caption'><img class='12-slide' src='http://static.matchwork.com/company/category-logo/jobs24/101.png' alt='slide'><h1>Part Qualified Accountant</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742415', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742415' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 13'><div class='container'><div class='carousel-caption'><img class='13-slide' src='http://static.matchwork.com/company/category-logo/jobs24/103.png' alt='slide'><h1>Farm and Estate Worker</h1><p>Welwyn</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742416', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742416' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 14'><div class='container'><div class='carousel-caption'><img class='14-slide' src='http://static.matchwork.com/company/category-logo/jobs24/116.png' alt='slide'><h1>Bar Manager</h1><p>Royston</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742417', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742417' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 15'><div class='container'><div class='carousel-caption'><img class='15-slide' src='http://static.matchwork.com/company/category-logo/jobs24/109.png' alt='slide'><h1>HARD LANDSCAPER / BUILDER</h1><p>Essex</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742418', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742418' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 16'><div class='container'><div class='carousel-caption'><img class='16-slide' src='http://static.matchwork.com/company/category-logo/jobs24/132.png' alt='slide'><h1>House Manager</h1><p>Ramsey</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742419', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329742419' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 17'><div class='container'><div class='carousel-caption'><img class='17-slide' src='http://static.matchwork.com/company/category-logo/jobs24/160.png' alt='slide'><h1>PRESCHOOL VACANCY</h1><p>Essex</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743613', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743613' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 18'><div class='container'><div class='carousel-caption'><img class='18-slide' src='http://static.matchwork.com/company/category-logo/jobs24/160.png' alt='slide'><h1>Childcare</h1><p>St Albans</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743635', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743635' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 19'><div class='container'><div class='carousel-caption'><img class='19-slide' src='http://static.matchwork.com/company/category-logo/jobs24/116.png' alt='slide'><h1>Food Service Assistant and Subway Crew Members</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743699', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743699' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 20'><div class='container'><div class='carousel-caption'><img class='20-slide' src='http://static.matchwork.com/company/category-logo/jobs24/110.png' alt='slide'><h1>LGV 1 DRIVING POSITIONS</h1><p>Ely</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743707', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743707' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 21'><div class='container'><div class='carousel-caption'><img class='21-slide' src='http://static.matchwork.com/company/category-logo/jobs24/139.png' alt='slide'><h1>Fire Extinguisher Service Engineer</h1><p>Cambridgeshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743709', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743709' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 22'><div class='container'><div class='carousel-caption'><img class='22-slide' src='http://static.matchwork.com/company/category-logo/jobs24/116.png' alt='slide'><h1>Kitchen Stores Porter</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743710', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743710' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 23'><div class='container'><div class='carousel-caption'><img class='23-slide' src='http://static.matchwork.com/company/category-logo/jobs24/116.png' alt='slide'><h1>Cook</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743711', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743711' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 24'><div class='container'><div class='carousel-caption'><img class='24-slide' src='http://static.matchwork.com/company/category-logo/jobs24/116.png' alt='slide'><h1>Chef</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743712', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329743712' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 25'><div class='container'><div class='carousel-caption'><img class='25-slide' src='http://static.matchwork.com/company/category-logo/jobs24/101.png' alt='slide'><h1>Payroll & Office Support</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329744133', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=329744133' role='button' target='_blank'>Job details</a></p></div></div></div><div class='item 26'><div class='container'><div class='carousel-caption'><img class='26-slide' src='http://static.matchwork.com/company/category-logo/jobs24/135.png' alt='slide'><h1>TYRE FITTER</h1><p>Hertfordshire</p><p><a class='btn btn-lg btn-primary' onClick="ga('send', 'event', { eventCategory: 'Jobs24-widget', eventAction: 'Hot Jobs', eventLabel: 'http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=LJA-54854833', eventValue: 1});" href='http://www.jobs24.co.uk/SearchResults/ShowJob.aspx?jobId=LJA-54854833' role='button' target='_blank'>Job details</a></p></div></div></div></div><a class='left carousel-control' href='#myCarousel' role='button' data-slide='prev'><span class='glyphicon glyphicon-chevron-left' aria-hidden='true'></span><span class='sr-only'>Previous</span></a><a class='right carousel-control' href='#myCarousel' role='button' data-slide='next'><span class='glyphicon glyphicon-chevron-right' aria-hidden='true'></span><span class='sr-only'>Next</span></a></div> <!-- .jobs24Widget --> <div id="jobs24Widget" class="widget jobs24 searchForm hotJobs callout"> <a id="j24-show-hide" href="#"><h4>Show Job Lists</h4></a> <div id="jobs24-results-cat" class="do-not-show"> </div> <form name="searchForm" method="post" action="" onsubmit="return encodeAndSendSearchFormValues('keywordInput', 'searchValueInput', 'searchForm');" id="searchForm"> <div class="form-group"> <label for="text">Keywords:</label> <input name="keywordInput" type="text" maxlength="75" id="keywordInput" class="hint ui-autocomplete-input hintShown" placeholder="e.g. Sales Manager" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"> </div> <div class="form-group"> <label for="text">Location:</label> <input name="searchValueInput" type="text" maxlength="75" id="searchValueInput" class="hint hintShown ui-autocomplete-input" placeholder="e.g. Norfolk" autocomplete="off" role="textbox" aria-autocomplete="list" aria-haspopup="true"> </div> <button id="searchSend" type="submit" class="btn btn-default">Search</button> </form> <script type="text/javascript"> (function(jQuery) { /** * Category Links * * Form: jobs24CategoryLinks **/ jQuery(function() { //Category Links var count = 0; var categoryLinks = jobs24CategoryLinks['links']; for (var key in categoryLinks) { if (categoryLinks.hasOwnProperty(key)) { if (count == 0) { jQuery("#jobs24-results-cat").append("<p class='hot-job-item'><a href='" + jobs24CategoryLinks['links'][key] + jobs24CategoryLinks['county']['Hertfordshire']['main_link'] + "' target='_blank'>" + key + " in Hertfordshire</a></p>"); } else { jQuery("#jobs24-results-cat").append("<p class='hot-job-item'><a href='" + jobs24CategoryLinks['links'][key] + jobs24CategoryLinks['county']['Hertfordshire']['category_link'] + "' target='_blank'>" + key + " in Hertfordshire</a></p>"); } } count++; } }); jQuery('#j24-show-hide').on('click', function(event){ event.preventDefault(); jQuery( "#jobs24-results-cat" ).toggleClass( 'do-not-show' ); }); })(jQuery); /** * Search - has to be base64 encorded with paricular argument order * **/ function encodeAndSendSearchFormValues(keywords, searchTerms, form) { // build the query string var keywordInput = jQuery('#' + keywords).val(), searchInput = jQuery('#' + searchTerms).val(), string = "v0.1|PS:10|CR:Freetext:" + keywordInput + "|CR:area:" + searchInput + "|v0.1"; // encode the string var stringBase64 = Base64.encode(string), searchQuery = "http://www.jobs24.co.uk/SearchResults.aspx?query=" + stringBase64; // Change the forms action to the base64String jQuery('#' + form).attr('action', searchQuery); // Send the form return true; } // http://jsfiddle.net/gabrieleromanato/qaght/ var Base64 = { _keyStr: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=", encode: function(input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; input = Base64._utf8_encode(input); while (i < input.length) { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); } return output; }, _utf8_encode: function(string) { string = string.replace(/\r\n/g, "\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if ((c > 127) && (c < 2048)) { utftext += String.fromCharCode((c >> 6) | 192); utftext += String.fromCharCode((c & 63) | 128); } else { utftext += String.fromCharCode((c >> 12) | 224); utftext += String.fromCharCode(((c >> 6) & 63) | 128); utftext += String.fromCharCode((c & 63) | 128); } } return utftext; } } function capitalizeFirstLetter(string) { return string.charAt(0).toUpperCase() + string.slice(1); } /** * Category Object * **/ var jobs24CategoryLinks = { 'links': { 'Jobs': 'http://www.jobs24.co.uk/', 'Education & Teaching jobs': 'http://www.jobs24.co.uk/jobs/education-and-teaching/', 'Admin, Secretarial & PA jobs': 'http://www.jobs24.co.uk/jobs/admin-secretarial-pa/', 'Transport & Delivery jobs': 'http://www.jobs24.co.uk/jobs/admin-secretarial-pa/', 'Medical & Carers jobs': 'http://www.jobs24.co.uk/jobs/medical-and-carers/', 'Mechanical & Engineering jobs': 'http://www.jobs24.co.uk/jobs/mechanical-engineering/', 'Construction jobs': 'http://www.jobs24.co.uk/jobs/construction/', 'Accounting & Finance jobs': 'http://www.jobs24.co.uk/jobs/accounting-and-finance/', 'Management & Business jobs': 'http://www.jobs24.co.uk/jobs/management-and-business/', 'Hospitality & Catering': 'http://www.jobs24.co.uk/jobs/hospitality-and-catering/', }, 'county': { 'uk': { 'category_link': 'england-jobs', 'main_link': '' }, 'Norfolk': { 'category_link': 'norfolk-jobs', 'main_link': 'jobs-norfolk' }, 'Suffolk': { 'category_link': 'suffolk-jobs', 'main_link': 'jobs-suffolk' }, 'Hertfordshire': { 'category_link': 'hertfordshire-jobs', 'main_link': 'jobs-herts' }, 'Cambridgeshire': { 'category_link': 'cambridgeshire-jobs', 'main_link': 'jobs-cambs' }, 'North London': { 'category_link': 'north-london-jobs', 'main_link': 'jobs-north-london' }, 'Essex': { 'category_link': 'essex-jobs', 'main_link': 'jobs-east-london-essex' }, 'Kent': { 'category_link': 'kent-jobs', 'main_link': 'jobs-kent' }, 'East London': { 'category_link': 'east-london-jobs', 'main_link': 'jobs-docklands' }, 'London': { 'category_link': 'london-jobs', 'main_link': 'jobs-london' }, 'North Devon': { 'category_link': 'north-devon-jobs', 'main_link': 'jobs-north-devon' }, 'East Devon': { 'category_link': 'east-devon-jobs', 'main_link': 'jobs-east-devon' }, 'Somerset': { 'category_link': 'somerset-jobs', 'main_link': 'jobs-somerset' }, }, }; </script> <style type="text/css"> #jobs24Widget { display: inline-block; width: 100%; margin-bottom: 20px; } .jobs24-header { width: 100%; border-bottom: 2px solid #31B166; padding-bottom: 4px; margin-bottom: 10px; } #jobs24-results, #jobs24-results-cat { display: inline-block; width: 100%; margin-bottom: 10px; } #jobs24-results-cat{ opacity: 1; max-height: 500px; -webkit-transition: all 500ms; -moz-transition: all 500ms; -o-transition: all 500ms; transition: all 500ms; } #jobs24-results-cat.do-not-show{ opacity: 0; max-height: 0px; overflow: hidden; } #j24-show-hide h4, #jobs24-results-cat h4 { margin: 0; font-weight: bold; font-size: 14px; font-family: 'Open Sans', Arial, Helvertica, sans-serif; } #j24-show-hide h4{ color:#333; } .hot-job-item { padding: 5px 0 5px 0; border-bottom: 1px solid #ccc; margin: 0px; } .hot-job-item a { color: #31B166; font-size: 12px; } #keywordInput, #searchValueInput { display: inherit; width: 100%; margin-bottom: 10px; } #searchSend { float: right; background-color: #31B166; color: #fff; } #searchSend:hover { background-color: #158443; } </style> </div> <!-- /.jobs24Wdiget --> </div> <div class="advert desktop mpu"> <div id="ad-slot-mpu-3-desktop" class="ad-slot-mpu-3 desktop mpu lp_track"></div> </div> <a href="http://services.whtimes.co.uk/Herts/content/hertsmostwanted-responsive/?galleryID=55"><img src="/polopoly_fs/7.182682.1418127251!/hertsmostwantedrsp.gif" style="width=100%; max-width:310px; padding-top:5%; padding-bottom:5%" alt="Herts Most Wanted"/></a> <a href="http://www.hertsbusinessawards.co.uk/" target="_blank"><img src="/polopoly_fs/7.224530.1425982485!/hertsbizbutton2015.png" style="width:100%; max-width:310px; padding-top:3%; padding-bottom:3%" alt="Herts Business Awards"/></a> <div class="advert desktop mpu"> <div id="ad-slot-mpu-4-desktop" class="ad-slot-mpu-4 desktop mpu lp_track"></div> </div> <!-- Start Planning Finder Widget HTML Element ID 7.267267 --> <div class="propertyWidget"> <style> .propertyWidget iframe{ width:100% !important; } </style> <div id="pfWidget" style="margin: 10px 0;"></div> <script type="text/javascript"> var pfWidget = {lat:51.746163,lng:-0.208855,postcode:'AL9 5NQ',name:'Welwyn Hatfield Times'} ; pfWidget['height'] = 650; pfWidget['zoom'] = 20; pfWidget['radius'] = 100; pfWidget['id'] = 'unique_string_identifier'; </script> <script type="text/javascript" src="http://www.planningfinder.co.uk/widget/big.js"></script> </div> <!-- End Planning Finder Widget HTML Element ID 7.267267 --> <!-- Archant DMPU - 300x600 --> <div id="onscroll-ad-archant-dmpu-300-x-600" style="margin-bottom: 20px"></div> <!-- End LegacyAppFragment name="Banners" --> </div> </div></div></div> </div> </div> <!-- Start LegacyAppFragment name="Footer" --> <footer> <div> <div id="footer"> <div class="useful-links"> <h3>Useful Links</h3> <ul class="left"> <li><a href="http://www.homes24.co.uk/hertfordshire/">homes<span>24</span></a></li> <li><a href="http://www.jobs24.co.uk/jobs/england/hertfordshire/jobs-welwyn-garden-city">jobs<span>24</span></a></li> <li><a href="http://www.drive24.co.uk/used/cars/hertfordshire">drive<span>24</span></a></li> <li><a href="http://www.herts24.mydate24.co.uk/">mydate<span>24</span></a></li> </ul> <ul> <li><a href="http://3276.e-printphoto.co.uk/herts24/index.cfm?z=z&action=cat&c_id=84532">myphotos<span>24</span></a></li> <li><a href="http://www.familynotices24.co.uk/wht">familynotices<span>24</span></a></li> <li><a href="http://www.localsearch24.co.uk/herts/">Localsearch<span>24</span></a></li> </div> <div class="site-links"> <h3>Site Links</h3> <ul class="left"> <li><a href="/contact">Contact us</a></li> <li><a href="/7.135">Terms and conditions</a></li> <li><a href="/7.23464">Cookie policy</a></li> <li><a href="/home/about-us">About us</a></li> </ul> <ul> <li><a href="/contact/advertise-with-us">Advertise with us</a></li> <li><a href="/contact/send-us-a-story">Send us a story</a></li> <!-- <li><a href="/what-s-on/tell-us-about-an-event">Tell us about an event</a></li> --> <li><a href="http://www.archant.co.uk/articles/archant-community-media-limited-rights-holder-char/" target="_blank">Contributor's charter</a></li> </ul> </div> <div class="brands"> <a href="http://www.thecomet.net/home" target="_blank" class="comet" title="The Comet">The Comet</a> <a href="http://www.hertsad.co.uk/home" target="_blank" class="hertsadv" title="Herts Advertiser">Herts Advertiser</a> <a href="http://www.royston-crow.co.uk/home" target="_blank" class="roystoncrow" title="Royston Crow">Royston Crow</a> </div> <div class="copyright"><span>&copy; 2018</span> <a target="_blank" href="http://www.archant.co.uk/">Archant Community Media Ltd</a></div> </div> <div class="advert desktop leaderboard"> <div id="ad-slot-wp-desktop" class="ad-slot-wp desktop leaderboard lp_track"></div> </div> <div class="advert desktop mpu"> <div id="ad-slot-float-desktop" class="ad-slot-float desktop mpu lp_track"></div> </div> <div class="advert mobile mpu"> <div id="ad-slot-float-mobile" class="ad-slot-float mobile mpu lp_track"></div> </div> <!-- Start Generic OnScroll tag: Archant, element 7.419091 --> <script src="//tags.onscroll.com/a1b570b2-06bf-4444-bf55-165fb16c7657/tag.min.js" async defer></script> <!-- End Generic OnScroll tag: Archant --> <div> <!-- Start "Generic JICREG Intercept Surveys HTML Element", ID 7.733539 --> <!-- End "Generic JICREG Intercept Surveys HTML Element", ID 7.733539 --> </div> <style> @media (-ms-high-contrast: none), (-ms-high-contrast: active) { .mosaic__item > div { text-align: left; } .mosaic__item > div .mosaic__item-overlay { min-width: 300px !important; } } </style> </div> </footer> <!-- End LegacyAppFragment name="Footer" --> <script type="text/javascript"> function loadLogin(json) { if (json.loginStatus.loggedIn) { $('#featurebar_login').empty().append( '<a href="/logout?referrer=http://www.whtimes.co.uk:80/news/ed-sheeran-and-rupert-grint-shoot-lego-house-video-at-forum-hertfordshire-in-hatfield-1-1117402?action=logout" rel="nofollow">Log out</a>'); $('#register').remove(); } else { $('#featurebar_login').empty().append( '<a href="http://www.whtimes.co.uk:80/news/ed-sheeran-and-rupert-grint-shoot-lego-house-video-at-forum-hertfordshire-in-hatfield-1-1117402?action=login" rel="nofollow"><img src="http://www.whtimes.co.uk:80/media/images/google small.png"><img src="http://www.whtimes.co.uk:80/media/images/facebook small.png"><img src="http://www.whtimes.co.uk:80/media/images/yahoo small.png"><img src="http://www.whtimes.co.uk:80/media/images/windows small.png"></a><a href="http://www.whtimes.co.uk:80/news/ed-sheeran-and-rupert-grint-shoot-lego-house-video-at-forum-hertfordshire-in-hatfield-1-1117402?action=login" rel="nofollow">Log in</a>'); } if (typeof loadCommentsDynamic === 'function') loadCommentsDynamic(json); if (typeof loadEmailDynamic === 'function') loadEmailDynamic(json); if (typeof loadCompetitionDynamic === 'function') loadCompetitionDynamic(json); } $(document).ready(function() { if ((get_cookie("sessionKey") == null) && (get_cookie("rememberMe") == null) ) { loadLogin({loginStatus:{loggedIn:false}}); } else { $.getJSON('/ajax?action=loginStatus', loadLogin); } function get_cookie(cookie_name) { var results = document.cookie.match ('(^|;) ?' + cookie_name + '=([^;]*)(;|$)'); if (results) return (results[2]); else return null; } if (get_cookie("cookiesAcknowledged") == null) { $('body').prepend('<div id="cookielaw"><div class="row"><div class="col-sm-8 col-md-8"><p>This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. <a href="/7.87126">Find out more about cookies here</a>.</p></div><div class="col-sm-4 col-md-4"><a id="cookie-continue" class="label label-success" href="#">Accept cookies</a></div></div></div>'); window.setTimeout(function() { $('#cookielaw').fadeIn('fast'); }, 1000); $('#cookie-continue').click(function() { $('#cookielaw').fadeOut('fast'); var theDate = new Date(); var oneYearLater = new Date(theDate.getTime() + (1000*3600*24*365)); var expiryDate = oneYearLater.toGMTString(); document.cookie = "cookiesAcknowledged=yes; expires="+expiryDate+"; path=/;"; return false; }); } }); </script> </div> <!-- Start LegacyAppFragment name="FooterScripts" --> <div class="js"> <!-- jQuery and JS libraries --> <!-- Theme Element file from 'Shared Blue Theme 26/06 13:02 - last poked 29/08/2017 12:22, see dev notes', VersionedContentId(7.170315.1504005771) - debugging mode enabled --> <script type="text/javascript" src="http://www.whtimes.co.uk:80/theme/7.170315.1504005771/jsfoot?debug=true"></script> <!-- Theme Element file from 'Herts & Cambs Sites Specific Theme', VersionedContentId(7.329913.1504005306) - debugging mode enabled --> <script type="text/javascript" src="http://www.whtimes.co.uk:80/theme/7.329913.1504005306/jsfoot?debug=true"></script> <!-- scripts --> <div id="fb-root"></div> <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=247899041895181"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> <!--*** This script sets up Google +1 button ***--> <script type="text/javascript"> (function() { var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; po.src = 'https://apis.google.com/js/plusone.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); })(); </script> <!--*** This script sets up Twitter button ***--> <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> <!-- Start Footer Scripts from Site Config --> <!-- Side Wide Footer Scripts --> <!-- Quantcast Tag --> <script> qcdata = {} || qcdata; (function(){ var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://pixel") + ".quantserve.com/aquant.js?a=p-YX7x3E8QMpsVE"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem,scpt); }()); var qcdata = {qacct: 'p-YX7x3E8QMpsVE', uid: 'USER-ID-HERE'}; </script> <noscript> <img src="//pixel.quantserve.com/pixel/p-YX7x3E8QMpsVE.gif?labels=" style="display: none;" border="0" height="1" width="1" alt="Quantcast"/> </noscript> <!-- End Quantcast Tag --> <!-- Quick fix for lazy loading caching issues --> <script src="http://services.london24.com/london/generic/js/jquery.lazyloadxt.script.min.js" charset="utf-8"></script> <script src="http://services.london24.com/london/generic/js/jquery.lazyloadxt.extra.min.js" charset="utf-8"></script> <script src="http://services.london24.com/london/generic/js/jquery.lazyloadxt.srcset.js" charset="utf-8"></script> <script src="http://services.london24.com/london/vanilla/js/jquery.lazyloadxt.widget.js" charset="utf-8"></script> <!-- Start Generic Grapeshot Tag --> <script type="text/javascript"> if(typeof gs_channels === 'undefined'){ var gs_channels="DEFAULT"; var gsurl=window.location!=window.top.location?document.referrer:window.location; var stripQS = gsurl.toString().split("?",1); document.write('<scr'+'ipt type="text/javascript" src="http://mediaforce.grapeshot.co.uk/archant/channels.cgi?url='+encodeURIComponent(stripQS)+'"></scr'+'ipt>'); } </script> <!-- End Generic Grapeshot Tag --> <!-- Start Boost Script --> <script> if($('.content-b .row .inner-c').length && ($.lazyLoadXT !== undefined)){ $('.content-b .row .inner-c').last().append('<div data-lazy-widget><!--<var id="ownlocal" class="boost-widget"></var><script>showBoost()<\/script>--></div>'); var boostTag = '<script id="ownlocal-script" data-active="businesses" src="http://local.whtimes.co.uk:80/embed.js?h=050&min_featured_level=0&category=all&subcategory=all&days_ago=30"></scr'+'ipt>'; showBoost = function(){ postscribe($('.boost-widget'), boostTag); } } else { console.error('Boost widget: code has run, but widget not displayed. Either the specified DOM elements do not exist on this page, or LazyXT is not being read. Check the code in 1.4277433.'); } </script> <!-- End Boost Script --> <!-- Start LegacyAppFragment name="Statistics" --> <script language="JavaScript" type="text/javascript" src="http://www.whtimes.co.uk:80/polopoly_fs/1.4277433.1516186549!/VisitorAPI.js"></script> <script language="JavaScript" type="text/javascript" src="http://www.whtimes.co.uk:80/polopoly_fs/1.4277433.1516186549!/AppMeasurement.js"></script> <script> //initialize AppMeasurement var s_account="archantwhtimes" var s=s_gi(s_account) /******** VISITOR ID SERVICE CONFIG - REQUIRES VisitorAPI.js ********/ s.visitor=Visitor.getInstance("2C000C3A53DA83BF0A490D4D@AdobeOrg") /************************** CONFIG SECTION **************************/ /* You may add or alter any code config here. */ /* Link Tracking Config */ s.trackDownloadLinks=true s.trackExternalLinks=true s.trackInlineStats=true s.linkDownloadFileTypes="exe,zip,wav,mp3,mov,mpg,avi,wmv,pdf,doc,docx,xls,xlsx,ppt,pptx" s.linkInternalFilters="javascript:" //optional: add your internal domain here s.linkLeaveQueryString=false s.linkTrackVars="None" s.linkTrackEvents="None" /* uncomment below to use doPlugins */ /* s.usePlugins=true function s_doPlugins(s) { // use implementation plug-ins that are defined below // in this section. For example, if you copied the append // list plug-in code below, you could call: // s.events=s.apl(s.events,"event1",",",1); s.prop32=s.getDaysSinceLastVisit(Cookie_Name); s.prop33=s.getNewRepeat(30,'s_getNewRepeat'); } s.doPlugins=s_doPlugins */ /* WARNING: Changing any of the below variables will cause drastic changes to how your visitor data is collected. Changes should only be made when instructed to do so by your account manager.*/ s.trackingServer="archant.d3.sc.omtrdc.net" s.trackingServerSecure="archant.d3.sc.omtrdc.net" /************************** PLUGINS SECTION *************************/ // copy and paste implementation plug-ins here - See "Implementation Plug-ins" @ // https://marketing.adobe.com/resources/help/en_US/sc/implement/#Implementation_Plugins // Plug-ins can then be used in the s_doPlugins(s) function above /* * Plugin: Days since last Visit 1.1 - capture time from last visit */ s.getDaysSinceLastVisit=new Function("c","" +"var s=this,e=new Date(),es=new Date(),cval,cval_s,cval_ss,ct=e.getT" +"ime(),day=24*60*60*1000,f1,f2,f3,f4,f5;e.setTime(ct+3*365*day);es.s" +"etTime(ct+30*60*1000);f0='Cookies Not Supported';f1='First Visit';f" +"2='More than 30 days';f3='More than 7 days';f4='Less than 7 days';f" +"5='Less than 1 day';cval=s.c_r(c);if(cval.length==0){s.c_w(c,ct,e);" +"s.c_w(c+'_s',f1,es);}else{var d=ct-cval;if(d>30*60*1000){if(d>30*da" +"y){s.c_w(c,ct,e);s.c_w(c+'_s',f2,es);}else if(d<30*day+1 && d>7*day" +"){s.c_w(c,ct,e);s.c_w(c+'_s',f3,es);}else if(d<7*day+1 && d>day){s." +"c_w(c,ct,e);s.c_w(c+'_s',f4,es);}else if(d<day+1){s.c_w(c,ct,e);s.c" +"_w(c+'_s',f5,es);}}else{s.c_w(c,ct,e);cval_ss=s.c_r(c+'_s');s.c_w(c" +"+'_s',cval_ss,es);}}cval_s=s.c_r(c+'_s');if(cval_s.length==0) retur" +"n f0;else if(cval_s!=f1&&cval_s!=f2&&cval_s!=f3&&cval_s!=f4&&cval_s" +"!=f5) return '';else return cval_s;"); /* * Plugin: getNewRepeat 1.2 - Returns whether user is new or repeat */ s.getNewRepeat=new Function("d","cn","" +"var s=this,e=new Date(),cval,sval,ct=e.getTime();d=d?d:30;cn=cn?cn:" +"'s_nr';e.setTime(ct+d*24*60*60*1000);cval=s.c_r(cn);if(cval.length=" +"=0){s.c_w(cn,ct+'-New',e);return'New';}sval=s.split(cval,'-');if(ct" +"-sval[0]<30*60*1000&&sval[1]=='New'){s.c_w(cn,ct+'-New',e);return'N" +"ew';}else{s.c_w(cn,ct+'-Repeat',e);return'Repeat';}"); /* * Utility Function: split v1.5 (JS 1.0 compatible) */ s.split=new Function("l","d","" +"var i,x=0,a=new Array;while(l){i=l.indexOf(d);i=i>-1?i:l.length;a[x" +"++]=l.substring(0,i);l=l.substring(i+d.length);}return a"); /****************************** MODULES *****************************/ // copy and paste implementation modules (Media, Integrate) here // AppMeasurement_Module_Media.js - Media Module, included in AppMeasurement zip // AppMeasurement_Module_Integrate.js - Integrate Module, included in AppMeasurement zip /* ============== DO NOT ALTER ANYTHING BELOW THIS LINE ! =============== */ </script> <script language="JavaScript" type="text/javascript"> /* You may give each page an identifying name, server, and channel on the next lines. */ s.pageName="Ed Sheeran and Rupert Grint shoot Lego House video at Forum Hertfordshire in Hatfield" s.server="http://www.whtimes.co.uk" s.channel="News" s.pageType="" s.pageURL="" s.prop1="People:Choice" s.prop2="http://www.whtimes.co.uk/1.1117402" s.prop3="ross.logan@whtimes.co.uk " s.prop4="Category.General.People.NewsSocial" s.prop5="" s.prop6="" s.prop7="" s.prop9="Canonical" s.eVar10="04/11/2011" s.eVar12="11/2011" s.eVar16="No" s.eVar17="No" s.eVar18="No" s.eVar19="No" s.eVar20="No" s.eVar21="No" s.prop20="Welwyn Hatfield Times" s.prop40="" s.prop49="1.1117402" s.hier1="News" s.hier2="Article" s.linkInternalFilters="javascript:,http://www.whtimes.co.uk" /* Conversion Variables */ s.campaign=":::" s.state="" s.zip="" s.events="" s.products="" s.purchaseID="" s.eVar1="" s.eVar2="" s.eVar3="" s.eVar4="" s.eVar5="" var s_code=s.t();if(s_code)document.write(s_code) </script> <!-- End LegacyAppFragment name="Statistics" --> <!-- DFP Inventory Build Slots LP --> <div id="ad-inv-1-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-1-desktop'); }); }</script></div> <div id="ad-inv-2-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-2-desktop'); }); }</script></div> <div id="ad-inv-2-tablet"><script>if(window.innerWidth >= 728 && window.innerWidth < 1024) { googletag.cmd.push(function() { googletag.display('ad-inv-2-tablet'); }); }</script></div> <div id="ad-inv-2-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-2-mobile'); }); }</script></div> <div id="ad-inv-3-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-3-desktop'); }); }</script></div> <div id="ad-inv-3-tablet"><script>if(window.innerWidth >= 728 && window.innerWidth < 1024) { googletag.cmd.push(function() { googletag.display('ad-inv-3-tablet'); }); }</script></div> <div id="ad-inv-3-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-3-mobile'); }); }</script></div> <div id="ad-inv-4-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-4-desktop'); }); }</script></div> <div id="ad-inv-4-tablet"><script>if(window.innerWidth >= 728 && window.innerWidth < 1024) { googletag.cmd.push(function() { googletag.display('ad-inv-4-tablet'); }); }</script></div> <div id="ad-inv-4-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-4-mobile'); }); }</script></div> <div id="ad-inv-5-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-5-desktop'); }); }</script></div> <div id="ad-inv-5-tablet"><script>if(window.innerWidth >= 728 && window.innerWidth < 1024) { googletag.cmd.push(function() { googletag.display('ad-inv-5-tablet'); }); }</script></div> <div id="ad-inv-5-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-5-mobile'); }); }</script></div> <div id="ad-inv-6-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-6-desktop'); }); }</script></div> <div id="ad-inv-6-tablet"><script>if(window.innerWidth >= 728 && window.innerWidth < 1024) { googletag.cmd.push(function() { googletag.display('ad-inv-6-tablet'); }); }</script></div> <div id="ad-inv-6-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-6-mobile'); }); }</script></div> <div id="ad-inv-7-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-7-desktop'); }); }</script></div> <div id="ad-inv-7-tablet"><script>if(window.innerWidth >= 728 && window.innerWidth < 1024) { googletag.cmd.push(function() { googletag.display('ad-inv-7-tablet'); }); }</script></div> <div id="ad-inv-7-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-7-mobile'); }); }</script></div> <div id="ad-inv-8-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-8-desktop'); }); }</script></div> <div id="ad-inv-8-mobile"><script>if(window.innerWidth < 728) { googletag.cmd.push(function() { googletag.display('ad-inv-8-mobile'); }); }</script></div> <div id="ad-inv-9-desktop"><script>if(window.innerWidth > 728) { googletag.cmd.push(function() { googletag.display('ad-inv-9-desktop'); }); }</script></div> <!-- End Footer Scripts from Site Config --> </div> <!-- End LegacyAppFragment name="FooterScripts" --> <!-- Start LegacyAppFragment name="AdvertScripts" v1.01 --> <!-- Start Lotame Scripts --> <script src="http://tags.crwdcntrl.net/c/4781/cc.js?ns=_cc4781" id="LOTCC_4781"></script> <script> _cc4781.bcp(); </script> <script type="text/javascript"> var cc_client_id= 4299; document.write('<scr'+'ipt type="text/javascript" src="http://ad.crwdcntrl.net/5/c='+cc_client_id.toString()+'/pe=y/callback=processauds"></scr'+'ipt>'); var adtechCCvals = ""; function processauds(adtechccauds) { if (typeof(adtechccauds) != 'undefined'){ for (var cci = 0; cci < adtechccauds.Profile.Audiences.Audience.length;cci++){ if (cci > 0) adtechCCvals += ":"; adtechCCvals +=adtechccauds.Profile.Audiences.Audience[cci].abbr; } } } var cc_client_id= 7659; document.write('<scr'+'ipt type="text/javascript" src="http://ad.crwdcntrl.net/5/c='+cc_client_id.toString()+'/pe=y/callback=processaudsTwo"></scr'+'ipt>'); function processaudsTwo(adtechccauds) { if (typeof(adtechccauds) != 'undefined'){ for (var cci = 0; cci < adtechccauds.Profile.Audiences.Audience.length;cci++){ adtechCCvals += ":"; adtechCCvals +=adtechccauds.Profile.Audiences.Audience[cci].abbr; } } } console.info('Lotame: adtechCCvals = ' + adtechCCvals); </script> <!-- End Lotame Scripts --> <!-- Start Amazon Ad setup Scripts --> <script type='text/javascript' src='http://c.amazon-adsystem.com/aax2/amzn_ads.js'></script> <script type='text/javascript'> try { amznads.getAds('3147'); } catch(e) { /*ignore*/ } </script> <!-- End Amazon Ad setup Scripts --> <!-- Start PostScribe Scripts for advert delivery --> <script type="text/javascript" src="http://www.whtimes.co.uk:80/media/js/htmlParser.js"></script> <script type="text/javascript" src="http://www.whtimes.co.uk:80/media/js/postscribe112.js"></script> <!-- End PostScribe Scripts for advert delivery --> <script type="text/javascript"> /* Start Pagewide Ad Functions - set up pagewide variables for Ad Tags */ /* Remove loader image from ad placements */ function removeLoader() { $('.advert').addClass('advert-autosize'); }; console.info(" "); console.info("Ad tags: setting up pagewide variables for Advert tags..."); /* Set up page-specific advert variables */ /* Check for Login Status */ var strKvaction = ""; console.info('PII: Checked for presence of user login details in request URL. kvaction string set = '); /* Amazon Ads */ var amznkvstring = ""; var tokens = amznads.getTokens("3x2"); if (tokens.length > 0) { for (var i = 0; i < tokens.length; i++) { if (i > 0) amznkvstring += ":"; amznkvstring += tokens[i]; } } console.info('Amazon Ads: amznkvstring string set = ' + amznkvstring); /* Adgroup ID */ if (window.adgroupid == undefined) { window.adgroupid = Math.round(Math.random() * 9999); console.info("Ad tags: window.adgroupid set = " + parseInt(window.adgroupid)); } /* Grapeshot channels: set to 'NONE' if not used here */ if(typeof gs_channels === 'undefined') { gs_channels = "NONE"; /*gs_channels = "beach,video,music";*/ console.info("Grapeshot: gs_channels undefined. Set to the default = " + parseInt(gs_channels)); } else { console.info("Grapeshot: gs_channels set = " + gs_channels); } /* Segment Key Value */ if(typeof segQS === 'undefined') { segKeyValue = ""; console.info("Ad tags: segKeyValue set = null " + segKeyValue); } else { segKeyValue = "kvrsi="+segQS.slice(0,-1)+";" console.info("Ad tags: segKeyValue set = " + segKeyValue); } /* Window display size: used by advert delivery scripts to ensure the correct aliases and Advert Placement IDs are used. */ var displayType; // Small (s), Medium (m) or Large (l) var displayWidth = window.innerWidth; console.info("Device: displayWidth = " + displayWidth); /* Set breakpoint variables */ var breakPointSm = 320; var breakPointMd = 728; var breakpointLg = 1024; var advertPlacementId = 0; if(displayWidth >= breakpointLg || displayWidth == undefined){ displayType = "l"; console.info("Device: Desktop view"); advertPlacementId = 6246191; } else if (displayWidth >= breakPointMd && displayWidth < breakpointLg){ displayType = "m"; console.info("Device: Tablet view"); advertPlacementId = 6246189; } else if (displayWidth < breakPointMd){ displayType = "s"; console.info("Device: Mobile view"); advertPlacementId = 6246190; } else { console.info("Device: window.innerWidth = 'other', so setting to default Desktop view"); displayType = "l"; advertPlacementId = 6246191; } console.info("Ad tags: Advert Placement ID set = " + advertPlacementId); /* End Pagewide Ad Functions */ console.info("Ad tags: finished setting up pagewide variables for Advert tags."); console.info(" "); $(document).ready(function() { /* Start individual Advert Delivery Scripts */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News Non-sticky Leaderboard Tablet/Mobile", CMS ID 7.683561 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if(displayType == "m") { adDeliveryTargetID = ".tablet.ad-slot-lb"; adTechSubDomain = "a"; adAlias = "whtimesnewslb1_tablet"; } if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-lb"; adTechSubDomain = "a"; adAlias = "whtimesnewslb2_mobile"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Postscribe */ postscribe($(adDeliveryTargetID), adTag); removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Non-sticky Leaderboard Tablet/Mobile\', CMS ID 7.683561 is looking for a Div element on the page with class ad-slot-lb, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: $desktopAlias whtimesnewslb1_tablet whtimesnewslb2_mobile */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News Sticky Leaderboard Desktop", CMS ID 7.683560 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-lb"; adTechSubDomain = "adserver"; adAlias = "whtimesnewslb1_display"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Sticky */ postscribe($(adDeliveryTargetID), adTag); if($(adDeliveryTargetID).parent.length && typeof ScrollMagic !== 'undefined'){ $(adDeliveryTargetID).parent().wrap( "<div class='sticky-leaderboard'>" ); var advertOffset = $('.sticky-leaderboard').offset().top; var headerHeight = $('.header-content').height(); var advertHeight = $('.sticky-leaderboard').outerHeight(); var displacement = headerHeight - advertOffset - advertHeight; var controller = new ScrollMagic.Controller(); var scene1 = new ScrollMagic.Scene({ triggerHook: -1, reverse: true, duration: displacement, triggerElement: '.sticky-leaderboard' }) .setPin(".sticky-leaderboard", {pushFollowers: false}) .addTo(controller); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Sticky Leaderboard Desktop\', CMS ID 7.683560 has been set to Sticky. This requires the ScrollMagic library, but it cannot be found. Check that it is present in the site Javascript libraries. Falling back to using PostScribe.'); postscribe($(adDeliveryTargetID), adTag); } removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Sticky Leaderboard Desktop\', CMS ID 7.683560 is looking for a Div element on the page with class ad-slot-lb, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewslb1_display $tabletAlias $mobileAlias */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News MPU 1 PostScribe", CMS ID 7.683558 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-mpu-1"; adTechSubDomain = "adserver"; adAlias = "whtimesnewsmpu1_display"; } if(displayType == "m") { adDeliveryTargetID = ".tablet.ad-slot-mpu-1"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu1_tablet"; } if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-mpu-1"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu1_mobile"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Postscribe */ postscribe($(adDeliveryTargetID), adTag); removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 1 PostScribe\', CMS ID 7.683558 is looking for a Div element on the page with class ad-slot-mpu-1, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewsmpu1_display whtimesnewsmpu1_tablet whtimesnewsmpu1_mobile */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News MPU 2", CMS ID 7.683557 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-mpu-2"; adTechSubDomain = "adserver"; adAlias = "whtimesnewsmpu2_display"; } if(displayType == "m") { adDeliveryTargetID = ".tablet.ad-slot-mpu-2"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu2_tablet"; } if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-mpu-2"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu2_mobile"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Lazy Loading - the 'Lazy Widget' div contains an Ad-specific function call to Postscribe the ad when it becomes 'visible' */ if($.lazyLoadXT !== undefined){ $(adDeliveryTargetID).append('<div data-lazy-widget><!--<script>ShowAd7_683557()<\/script>--></div>'); ShowAd7_683557 = function(){ postscribe($(adDeliveryTargetID), adTag); } } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 2\', CMS ID 7.683557 has been set to use Lazy Loading. This requires the LazyXT libraries, but these cannot be found. Check that they are present in the site Javascript libraries. Falling back to using PostScribe.'); postscribe($(adDeliveryTargetID), adTag); } removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 2\', CMS ID 7.683557 is looking for a Div element on the page with class ad-slot-mpu-2, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewsmpu2_display whtimesnewsmpu2_tablet whtimesnewsmpu2_mobile */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News MPU 3", CMS ID 7.683555 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-mpu-3"; adTechSubDomain = "adserver"; adAlias = "whtimesnewsmpu3_display"; } if(displayType == "m") { adDeliveryTargetID = ".tablet.ad-slot-mpu-3"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu3_tablet"; } if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-mpu-3"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu3_mobile"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Lazy Loading - the 'Lazy Widget' div contains an Ad-specific function call to Postscribe the ad when it becomes 'visible' */ if($.lazyLoadXT !== undefined){ $(adDeliveryTargetID).append('<div data-lazy-widget><!--<script>ShowAd7_683555()<\/script>--></div>'); ShowAd7_683555 = function(){ postscribe($(adDeliveryTargetID), adTag); } } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 3\', CMS ID 7.683555 has been set to use Lazy Loading. This requires the LazyXT libraries, but these cannot be found. Check that they are present in the site Javascript libraries. Falling back to using PostScribe.'); postscribe($(adDeliveryTargetID), adTag); } removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 3\', CMS ID 7.683555 is looking for a Div element on the page with class ad-slot-mpu-3, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewsmpu3_display whtimesnewsmpu3_tablet whtimesnewsmpu3_mobile */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News MPU 4", CMS ID 7.683551 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-mpu-4"; adTechSubDomain = "adserver"; adAlias = "whtimesnewsmpu4_display"; } if(displayType == "m") { adDeliveryTargetID = ".tablet.ad-slot-mpu-4"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu4_tablet"; } if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-mpu-4"; adTechSubDomain = "a"; adAlias = "whtimesnewsmpu4_mobile"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Lazy Loading - the 'Lazy Widget' div contains an Ad-specific function call to Postscribe the ad when it becomes 'visible' */ if($.lazyLoadXT !== undefined){ $(adDeliveryTargetID).append('<div data-lazy-widget><!--<script>ShowAd7_683551()<\/script>--></div>'); ShowAd7_683551 = function(){ postscribe($(adDeliveryTargetID), adTag); } } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 4\', CMS ID 7.683551 has been set to use Lazy Loading. This requires the LazyXT libraries, but these cannot be found. Check that they are present in the site Javascript libraries. Falling back to using PostScribe.'); postscribe($(adDeliveryTargetID), adTag); } removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News MPU 4\', CMS ID 7.683551 is looking for a Div element on the page with class ad-slot-mpu-4, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewsmpu4_display whtimesnewsmpu4_tablet whtimesnewsmpu4_mobile */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News Floating Desktop Footer Ad", CMS ID 7.683550 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-float"; adTechSubDomain = "adserver"; adAlias = "whtimesnewsfloat_display"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Postscribe */ postscribe($(adDeliveryTargetID), adTag); removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Floating Desktop Footer Ad\', CMS ID 7.683550 is looking for a Div element on the page with class ad-slot-float, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewsfloat_display $tabletAlias $mobileAlias */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News Floating Mobile Footer Ad", CMS ID 7.683548 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-float-mobile"; adTechSubDomain = "a"; adAlias = "whtimesnewslb1_mobile"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Postscribe */ postscribe($(adDeliveryTargetID), adTag); removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Floating Mobile Footer Ad\', CMS ID 7.683548 is looking for a Div element on the page with class ad-slot-float-mobile, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: $desktopAlias $tabletAlias whtimesnewslb1_mobile */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News Teads", CMS ID 7.683546 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-teads"; adTechSubDomain = "adserver"; adAlias = "2x1-teadswhtimesnews"; } if(displayType == "m") { adDeliveryTargetID = ".tablet.ad-slot-teads"; adTechSubDomain = "a"; adAlias = "2x1-teadswhtimesnews"; } if(displayType == "s") { adDeliveryTargetID = ".mobile.ad-slot-teads"; adTechSubDomain = "a"; adAlias = "2x1-teadswhtimesnews"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Postscribe */ postscribe($(adDeliveryTargetID), adTag); removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Teads\', CMS ID 7.683546 is looking for a Div element on the page with class ad-slot-teads, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: 2x1-teadswhtimesnews 2x1-teadswhtimesnews 2x1-teadswhtimesnews */ /* Start advert page delivery script for Advert Element "Welwyn and Hatfield Times News Wallpaper", CMS ID 7.683543 */ (function(){ var adTechSubDomain = ""; var adDeliveryTargetID = ""; var adDeliveryTargetClass = ""; var adAlias = ""; var adUrl = ""; var adTag = ""; /* Determine Display type, choose suitable AdTech subdomain, alias and target classes/ID for container */ if((displayType == "l")) { adDeliveryTargetID = ".desktop.ad-slot-wp"; adTechSubDomain = "adserver"; adAlias = "whtimesnewswpaper_display"; } /* * Create Ad Tag * * 'adUrl' and 'adTag' are separate variables because different delivery methods require different 'versions' of the tag. * This must be done client-side as server cannot access screen width etc. in order to select the correct aliases and placement IDs. */ adUrl = "http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999); adTag = "<scr"+"ipt language=\"javascript1.1\" src=\"http://" + adTechSubDomain + ".adtech.de/addyn/3.0/1482.1/" + advertPlacementId + "/0/-1/ADTECH;cookie=info;loc=100;target=_blank;key=" + gs_channels + "+2_19720+1_1117402+People+Choice;" + segKeyValue + "kvsection=News;" + strKvaction + "grp=" + window.adgroupid + ";alias=" + adAlias + ";KVabbr=" + window.adtechCCvals + ";misc=" + Math.round(Math.random() * 9999) + "\"></scri"+"pt>"; /* Check target Ad Slot Position Div exists. If so, deliver Ad Tag to slot */ if($(adDeliveryTargetID).length){ /* Postscribe */ postscribe($(adDeliveryTargetID), adTag); removeLoader(); } else { console.info('Advert Element \'Welwyn and Hatfield Times News Wallpaper\', CMS ID 7.683543 is looking for a Div element on the page with class ad-slot-wp, but no such Div can be found on the page. Check that the Ad Slot Position elements have been set up correctly, and that the Target Div IDs match.'); } })(); /* End advert page delivery script for the following Ad Aliases: whtimesnewswpaper_display $tabletAlias $mobileAlias */ /* End individual Advert Delivery Scripts */ /* LazyXT: initialise for Lazy Loading adverts. The value is set on a per-page basis in the Adverts tab in the CMS. If it's not set, then it will default to 500px */ console.info("LazyXT: initialising. Offset = " + 600); $.lazyLoadXT.edgeY = 600; }); </script> <noscript> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> <a href="http://adserver.adtech.de/adlink/3.0/1482.1/5203284/0/-1/ADTECH;loc=300;key=2_19720+1_1117402+People+Choice;kvsection=News" target="_blank"> <img src="http://adserver.adtech.de/adserv/3.0/1482.1/5203284/0/-1/ADTECH;cookie=info;loc=300;key=2_19720+1_1117402+People+Choice" border="0"> </a> </noscript> <!-- End LegacyAppFragment name="AdvertScripts" --> </body> </html>