picturehouse_uk 1.0.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -1
  3. data/CHANGELOG.md +18 -0
  4. data/README.md +7 -10
  5. data/Rakefile +20 -7
  6. data/lib/picturehouse_uk.rb +4 -1
  7. data/lib/picturehouse_uk/cinema.rb +51 -100
  8. data/lib/picturehouse_uk/film.rb +22 -8
  9. data/lib/picturehouse_uk/internal/address_parser.rb +72 -0
  10. data/lib/picturehouse_uk/internal/cinema_page.rb +35 -0
  11. data/lib/picturehouse_uk/internal/film_with_screenings_parser.rb +87 -37
  12. data/lib/picturehouse_uk/internal/title_sanitizer.rb +49 -0
  13. data/lib/picturehouse_uk/internal/website.rb +39 -0
  14. data/lib/picturehouse_uk/screening.rb +63 -19
  15. data/lib/picturehouse_uk/version.rb +2 -2
  16. data/picturehouse_uk.gemspec +11 -11
  17. data/test/fixture_updater.rb +43 -0
  18. data/test/fixtures/address-fragments/duke-of-yorks.html +39 -0
  19. data/test/fixtures/address-fragments/hackney-picturehouse.html +12 -0
  20. data/test/fixtures/cinema/Duke_Of_Yorks.html +4370 -0
  21. data/test/fixtures/cinema/Duke_Of_Yorks/film_last.html +45 -0
  22. data/test/fixtures/cinema/Duke_Of_Yorks/film_second.html +37 -0
  23. data/test/fixtures/{abbeygate-contact-us.html → contact_us/Duke_Of_Yorks.html} +635 -156
  24. data/test/fixtures/{dukes-at-komedia-contact-us.html → contact_us/Dukes_At_Komedia.html} +582 -98
  25. data/test/fixtures/{picturehouses-homepage.html → home.html} +642 -146
  26. data/test/lib/picturehouse_uk/cinema_test.rb +127 -307
  27. data/test/lib/picturehouse_uk/film_test.rb +65 -16
  28. data/test/lib/picturehouse_uk/internal/address_parser_test.rb +55 -0
  29. data/test/lib/picturehouse_uk/internal/cinema_page_test.rb +51 -0
  30. data/test/lib/picturehouse_uk/internal/film_with_screenings_parser_test.rb +44 -151
  31. data/test/lib/picturehouse_uk/internal/title_sanitizer_test.rb +131 -0
  32. data/test/lib/picturehouse_uk/internal/website_test.rb +64 -0
  33. data/test/lib/picturehouse_uk/screening_test.rb +149 -21
  34. data/test/live/integration_test.rb +68 -0
  35. data/test/test_helper.rb +3 -1
  36. metadata +40 -43
  37. data/test/fixtures/dukes-at-komedia-cinema.html +0 -7148
  38. data/test/fixtures/film_node/blue-jasmine-done.html +0 -53
  39. data/test/fixtures/film_node/blue-jasmine-future.html +0 -55
  40. data/test/fixtures/film_node/bolshoi-spartacus.html +0 -26
  41. data/test/fixtures/film_node/captain-phillips-with-silver-screen-and-subtitles.html +0 -103
  42. data/test/fixtures/film_node/fifth-estate-with-big-scream.html +0 -73
  43. data/test/fixtures/film_node/london-film-festival-with-toddler-time.html +0 -46
  44. data/test/fixtures/film_node/met-encore-rusalka-as-live.html +0 -26
  45. data/test/fixtures/film_node/nt-encore-hamlet.html +0 -26
  46. data/test/fixtures/film_node/planes-with-kids-club.html +0 -77
  47. data/test/fixtures/film_node/royal-opera-house-don-quixote.html +0 -26
  48. data/test/fixtures/film_node/rsc-encore-richard-ii.html +0 -28
  49. data/test/fixtures/film_node/rsc-live-richard-ii.html +0 -41
  50. data/test/fixtures/film_node/rsc-live-the-two-gentlemen-of-verona-zero-cert.html +0 -19
  51. data/test/fixtures/hackney-contact-us.html +0 -998
@@ -0,0 +1,45 @@
1
+ <div class="item" style="height:80px;">
2
+ <div class="left a" style="height:80px;">
3
+ <a rel="#overlay" onclick="load_trailers('The_Judge_trailer');" id="The_Judge_trailer" href="#" class="trailer mymovies" mtid="trl" mti="The Judge - Trailer 2" fid="11745" title="The Judge - Trailer 2" fti="The Judge" pid="PictureHouse" mid="11477">
4
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/trl/mid11126.jpg" title="The Judge - Trailer" pid="PictureHouse" mid="11126" mtid="trl" mti="The Judge - Trailer" fid="11745" fti="The Judge" id="11745_11126"></span>
5
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/trl/mid11477.jpg" title="The Judge - Trailer 2" pid="PictureHouse" mid="11477" mtid="trl" mti="The Judge - Trailer 2" fid="11745" fti="The Judge" id="11745_11477"></span>
6
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/ftr/mid17081.jpg" title="Clip - Did You Go To Law School?" pid="PictureHouse" mid="17081" mtid="ftr" mti="Clip - Did You Go To Law School?" fid="11745" fti="The Judge" id="11745_17081"></span>
7
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/ftr/mid17082.jpg" title="Clip - I Need My Walk" pid="PictureHouse" mid="17082" mtid="ftr" mti="Clip - I Need My Walk" fid="11745" fti="The Judge" id="11745_17082"></span>
8
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/ftr/mid17088.jpg" title="Exclusive Interview With Robert Downey Jr, Robert Duvall, David Dobkin &amp; Vera Farmiga" pid="PictureHouse" mid="17088" mtid="ftr" mti="Exclusive Interview With Robert Downey Jr, Robert Duvall, David Dobkin &amp; Vera Farmiga" fid="11745" fti="The Judge" id="11745_17088"></span>
9
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/newman/static/atchs/Content/2s/2spf2.jpeg" width="60" height="60" class="imageborder">
10
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/playbutton.png" style="width:15px; height:15px;position:relative;top:-17px;left:47px;">
11
+ </a>
12
+ </div>
13
+ <div class="left b" style="width:300px;">
14
+ <a href="/cinema/Duke_Of_Yorks/film/The_Judge/" class="movielink" style="text-decoration:underline;">The Judge [15]</a><br>
15
+ <div class="clear"></div>
16
+ <div class="padding txt1 film.subtitled" style="height:45px;overflow-y:hidden;padding-left:0;">
17
+ <b>Director:</b> <span>David Dobkin</span><br>
18
+ <b>Duration:</b> <span>141 min. </span>
19
+ <br> <b>Trailer:</b>
20
+ <a rel="#overlay" onclick="load_trailers('The_Judge_trailer');" id="The_Judge_trailer" href="#" class="trailer mymovies" mtid="trl" mti="The Judge - Trailer 2" fid="11745" title="The Judge - Trailer 2" fti="The Judge" pid="PictureHouse" mid="11477">
21
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/trl/mid11126.jpg" title="The Judge - Trailer" pid="PictureHouse" mid="11126" mtid="trl" mti="The Judge - Trailer" fid="11745" fti="The Judge" id="11745_11126"></span>
22
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/trl/mid11477.jpg" title="The Judge - Trailer 2" pid="PictureHouse" mid="11477" mtid="trl" mti="The Judge - Trailer 2" fid="11745" fti="The Judge" id="11745_11477"></span>
23
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/ftr/mid17081.jpg" title="Clip - Did You Go To Law School?" pid="PictureHouse" mid="17081" mtid="ftr" mti="Clip - Did You Go To Law School?" fid="11745" fti="The Judge" id="11745_17081"></span>
24
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/ftr/mid17082.jpg" title="Clip - I Need My Walk" pid="PictureHouse" mid="17082" mtid="ftr" mti="Clip - I Need My Walk" fid="11745" fti="The Judge" id="11745_17082"></span>
25
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid11745/ftr/mid17088.jpg" title="Exclusive Interview With Robert Downey Jr, Robert Duvall, David Dobkin &amp; Vera Farmiga" pid="PictureHouse" mid="17088" mtid="ftr" mti="Exclusive Interview With Robert Downey Jr, Robert Duvall, David Dobkin &amp; Vera Farmiga" fid="11745" fti="The Judge" id="11745_17088"></span>
26
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/playbutton.png" style="width:15px; height:15px;position:relative;top:-2px;"></a>
27
+ <div class="filmrating" content_id="e9mvo"></div>
28
+ </div>
29
+ </div>
30
+ <div class="left" style="width:210px;">
31
+ <a rel="nofollow" bookable="" href="/cinema/Duke_Of_Yorks/film/The_Judge/show/iuyiwt/" id="iuyiwt" class="button_time purple restricted big_scream tip" epoch="1413972000.0">11:00
32
+ <span>Big Scream show: for parents/carers accompanied by babies under one year old only.</span>
33
+ </a>
34
+ <div id="iuyiwt-sm" class="simplemodal">
35
+ <div class="simplemodaltitle">Big Scream</div>
36
+ <div class="basic-modal-content"> Big Scream shows are exclusively for parents/carers accompanied by babies under one year old. For more information about Big Scream visit What's On &gt; Clubs/Groups &gt; Big Scream </div>
37
+ <div class="modalbooknow"><a class="button_booknow" href="/cinema/Duke_Of_Yorks/film/The_Judge/show/iuyiwt/">Book now</a></div>
38
+ </div>
39
+ <a rel="nofollow" bookable="" href="/cinema/Duke_Of_Yorks/film/The_Judge/show/gtpyaa/" id="gtpyaa" class="button_time " epoch="1413984600.0">14:30
40
+ </a>
41
+ <a rel="nofollow" bookable="" href="/cinema/Duke_Of_Yorks/film/The_Judge/show/it5pqf/" id="it5pqf" class="button_time " epoch="1413997200.0">18:00
42
+ </a>
43
+ </div>
44
+ <div style="clear:both;"></div>
45
+ </div>
@@ -0,0 +1,37 @@
1
+ <div class="item" style="height:80px;">
2
+ <div class="left a" style="height:80px;">
3
+ <a rel="#overlay" onclick="load_trailers('Gone_Girl_trailer');" id="Gone_Girl_trailer" href="#" class="trailer mymovies" mtid="trl" mti="Gone Girl - Trailer 2" fid="13950" title="Gone Girl - Trailer 2" fti="Gone Girl" pid="PictureHouse" mid="11208">
4
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid13950/trl/mid10837.jpg" title="Gone Girl - Trailer" pid="PictureHouse" mid="10837" mtid="trl" mti="Gone Girl - Trailer" fid="13950" fti="Gone Girl" id="13950_10837"></span>
5
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid13950/trl/mid11208.jpg" title="Gone Girl - Trailer 2" pid="PictureHouse" mid="11208" mtid="trl" mti="Gone Girl - Trailer 2" fid="13950" fti="Gone Girl" id="13950_11208"></span>
6
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/newman/static/atchs/Content/2n/2nxfc.jpeg" width="60" height="60" class="imageborder">
7
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/playbutton.png" style="width:15px; height:15px;position:relative;top:-17px;left:47px;">
8
+ </a>
9
+ </div>
10
+ <div class="left b" style="width:300px;">
11
+ <a href="/cinema/Duke_Of_Yorks/film/Gone_Girl/" class="movielink" style="text-decoration:underline;">Gone Girl [18]</a><br>
12
+ <div class="clear"></div>
13
+ <div class="padding txt1 film.subtitled" style="height:45px;overflow-y:hidden;padding-left:0;">
14
+ <b>Director:</b> <span>David Fincher</span><br>
15
+ <b>Duration:</b> <span>149 min. </span>
16
+ <br> <b>Trailer:</b>
17
+ <a rel="#overlay" onclick="load_trailers('Gone_Girl_trailer');" id="Gone_Girl_trailer" href="#" class="trailer mymovies" mtid="trl" mti="Gone Girl - Trailer 2" fid="13950" title="Gone Girl - Trailer 2" fti="Gone Girl" pid="PictureHouse" mid="11208">
18
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid13950/trl/mid10837.jpg" title="Gone Girl - Trailer" pid="PictureHouse" mid="10837" mtid="trl" mti="Gone Girl - Trailer" fid="13950" fti="Gone Girl" id="13950_10837"></span>
19
+ <span style="display:none;" img="http://images.mymovies.net/images/film/cin/120x90/fid13950/trl/mid11208.jpg" title="Gone Girl - Trailer 2" pid="PictureHouse" mid="11208" mtid="trl" mti="Gone Girl - Trailer 2" fid="13950" fti="Gone Girl" id="13950_11208"></span>
20
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/playbutton.png" style="width:15px; height:15px;position:relative;top:-2px;"></a>
21
+ <div class="filmrating" content_id="jtqmd"></div>
22
+ </div>
23
+ </div>
24
+ <div class="left" style="width:210px;">
25
+ <a rel="nofollow" bookable="" href="/cinema/Duke_Of_Yorks/film/Gone_Girl/show/ywpuzw/" id="ywpuzw" class="button_time purple silver_screen tip" epoch="1413469800.0">15:30
26
+ <span>Silver Screen show: those aged over 60 can join the Silver Screen club for free, and get free tea or coffee and biscuits at this show. Everyone else is also welcome to attend this show.</span>
27
+ </a>
28
+ <div id="ywpuzw-sm" class="simplemodal">
29
+ <div class="simplemodaltitle"></div>
30
+ <div class="basic-modal-content"> </div>
31
+ <div class="modalbooknow"><a class="button_booknow" href="/cinema/Duke_Of_Yorks/film/Gone_Girl/show/ywpuzw/">Book now</a></div>
32
+ </div>
33
+ <a rel="nofollow" bookable="" href="/cinema/Duke_Of_Yorks/film/Gone_Girl/show/1xy3az/" id="1xy3az" class="button_time " epoch="1413489000.0">20:50
34
+ </a>
35
+ </div>
36
+ <div style="clear:both;"></div>
37
+ </div>
@@ -7,65 +7,65 @@ xmlns:og="http://opengraphprotocol.org/schema/"
7
7
  xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
8
8
  <head>
9
9
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
10
- <title>Contact Us | Hires &amp; Info | Abbeygate Picturehouse | Bury St Edmunds</title>
10
+ <title>Contact Us | Hires &amp; Info | Duke of York&#39;s Picturehouse | Brighton</title>
11
11
 
12
- <meta name="keywords" content="picturehouse, cinema, picture house, Abbeygate Picturehouse" />
12
+ <meta name="keywords" content="picturehouse, cinema, picture house, Duke of York&#39;s" />
13
13
 
14
14
 
15
- <meta name="description" content="Contact Us | Hires &amp; Info at Abbeygate Picturehouse | Bury St Edmunds" />
15
+ <meta name="description" content="Contact Us | Hires &amp; Info at Duke of York&#39;s Picturehouse | Brighton" />
16
16
 
17
17
  <script type="text/javascript">
18
- var venue = 'Abbeygate_Picturehouse';
18
+ var venue = 'Duke_Of_Yorks';
19
19
  var trailer = {height:288,width:510};
20
20
  </script>
21
21
 
22
22
 
23
23
 
24
- <link rel="stylesheet" href="/site-media/css/cityscreen/global.201308021435.css" />
24
+ <link rel="stylesheet" href="https://d2t98m0n7ql7on.cloudfront.net/site-media/css/cityscreen/global.201312092207.css" />
25
25
 
26
26
 
27
27
  <!--[if IE 6]>
28
- <link rel="stylesheet" href="/site-media/css/cityscreen/ie6.v3.min.css" type="text/css" />
28
+ <link rel="stylesheet" href="https://d2t98m0n7ql7on.cloudfront.net/site-media/css/cityscreen/ie6.v3.min.css" type="text/css" />
29
29
  <![endif]-->
30
30
 
31
31
  <!--[if IE 7]>
32
- <link rel="stylesheet" href="/site-media/css/cityscreen/ie7.v1.min.css" type="text/css" />
32
+ <link rel="stylesheet" href="https://d2t98m0n7ql7on.cloudfront.net/site-media/css/cityscreen/ie7.v1.min.css" type="text/css" />
33
33
  <![endif]-->
34
34
  <meta name="google-site-verification" content="tfGR4gRo-YG-57LfPFX3Pjv0VqsFRPKIs2ioVOH-3f8" />
35
35
 
36
36
  <meta property="fb:app_id" content="" />
37
37
  <meta property="og:type" content="" />
38
- <meta property="og:title" content="Contact Us | Hires &amp; Info at Abbeygate Picturehouse | Bury St Edmunds" />
38
+ <meta property="og:title" content="Contact Us | Hires &amp; Info at Duke of York&#39;s Picturehouse | Brighton" />
39
39
  <meta property="og:url" content="" />
40
40
  <meta property="og:site_name" content="Picturehouses" />
41
41
  <meta property="og:description" content="" />
42
42
  <meta property="og:image" content="" />
43
43
 
44
44
 
45
- <link id="canonical" rel="canonical" href="/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/" />
45
+ <link id="canonical" rel="canonical" href="/cinema/Duke_Of_Yorks/Hires_Info/Contact_Us/" />
46
46
 
47
47
 
48
48
 
49
49
 
50
- <script type="text/javascript" charset="utf-8" src="/site-media/js/libs/jquery-1.9.1.js"></script>
51
- <script src="/site-media/js/libs/jquery-migrate-1.1.0.js"></script>
52
- <script type="text/javascript" charset="utf-8" src="/site-media/js/libs/typeahead.js"></script>
53
- <script src="/site-media/js/libs/hogan-2.0.0.js"></script>
54
- <script src="/site-media/js/libs/jquery.tools.min.js"></script>
50
+ <script type="text/javascript" charset="utf-8" src="https://d2t98m0n7ql7on.cloudfront.net/site-media/js/libs/jquery-1.9.1.js"></script>
51
+ <script src="https://d2t98m0n7ql7on.cloudfront.net/site-media/js/libs/jquery-migrate-1.1.0.js"></script>
52
+ <script type="text/javascript" charset="utf-8" src="https://d2t98m0n7ql7on.cloudfront.net/site-media/js/libs/typeahead.js"></script>
53
+ <script src="https://d2t98m0n7ql7on.cloudfront.net/site-media/js/libs/hogan-2.0.0.js"></script>
54
+ <script src="https://d2t98m0n7ql7on.cloudfront.net/site-media/js/libs/jquery.tools.min.js"></script>
55
55
 
56
56
  <link rel="stylesheet" type="text/css" href="http://partner.mymovies.net/html5/jqtools/1.css"/>
57
57
  <link href="http://partner.mymovies.net/html5/css/video-js.css" rel="stylesheet" type="text/css">
58
- <script src="http://partner.mymovies.net/html5/js/video_ovrly.js" type="text/javascript"></script>
58
+ <script src="http://partner.mymovies.net/html5/js/video_ovrly.js" type="text/javascript"></script>
59
59
  <script SRC="http://flvplayer.mymovies.net/includes/sdc_tag.js" type="text/javascript"></script>
60
60
 
61
- <script type="text/javascript" charset="utf-8" src="/site-media/js/cityscreen/site.201308042128.js"></script>
61
+ <script type="text/javascript" charset="utf-8" src="https://d2t98m0n7ql7on.cloudfront.net/site-media/js/cityscreen/site.20140714.js"></script>
62
62
 
63
- <link type="image/x-icon" href="/site-media/images/cityscreen/favicon.gif" rel="shortcut icon"/>
64
- <link type="image/x-icon" href="/site-media/images/cityscreen/favicon.gif" rel="icon"/>
63
+ <link type="image/x-icon" href="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/favicon.gif" rel="shortcut icon"/>
64
+ <link type="image/x-icon" href="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/favicon.gif" rel="icon"/>
65
65
 
66
66
  <script type="text/javascript">
67
- function twitterPop(str) {
68
- mywindow = window.open('http://twitter.com/share?url='+str,"Tweet_widow","channelmode=no,directories=no,location=no,menubar=no,scrollbars=no,toolbar=no,status=no,width=500,height=375,left=300,top=200");
67
+ function twitterPop(text, url) {
68
+ mywindow = window.open('http://twitter.com/share?text='+text+'&url='+url,"Tweet_widow","channelmode=no,directories=no,location=no,menubar=no,scrollbars=no,toolbar=no,status=no,width=500,height=375,left=300,top=200");
69
69
  mywindow.focus();
70
70
  }
71
71
  </script>
@@ -111,10 +111,10 @@ docCookies = {
111
111
  jQuery(document).ready(function(){
112
112
  if ((docCookies.getItem('accepted') === null)) {
113
113
  console.log('cookie');
114
- jQuery('body').append('<div id="cookie_message" style="background-color: rgb(255, 255, 225); color: rgb(51, 51, 51); position: fixed; top: 0px; left: 0px; right: 0px; padding: 7px 120px 7px 36px; vertical-align: middle; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(68, 68, 68); font-size: 12px; font-family: Arial, Helvetica, sans-serif; z-index: 9999; box-shadow: rgb(0, 0, 0) 0px 0px 5px; "><p class="wolfblock" style="text-align: left; font-size: 1.1em !important; width: 600px; float: left; margin: 0px; padding: 0px; line-height: 16px; ">This site uses cookies to help make it more useful and reliable. By using the site or by dismissing this banner you are consenting to their use.</p><a href="#" id="cookie_accepted">Do not show this message again</a></div></div>');
114
+ jQuery('body').append('<div id="cookie_message" style="background-color: rgb(255, 255, 225); color: rgb(51, 51, 51); position: fixed; bottom: 0px; left: 0px; right: 0px; padding: 7px 120px 7px 36px; vertical-align: middle; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: rgb(68, 68, 68); font-size: 12px; font-family: Arial, Helvetica, sans-serif; z-index: 9999; box-shadow: rgb(0, 0, 0) 0px 0px 5px; "><p class="wolfblock" style="text-align: left; font-size: 1.1em !important; width: 600px; float: left; margin: 0px; padding: 0px; line-height: 16px; ">This site uses cookies to help make it more useful and reliable. By using the site or by dismissing this banner you are consenting to their use.</p><a href="#" id="cookie_accepted">Do not show this message again</a></div></div>');
115
115
  jQuery('#cookie_accepted').click(function() {
116
116
  jQuery('#cookie_message').hide();
117
- docCookies.setItem('accepted', 'dismissed', new Date(2014, 1, 1), '/');
117
+ docCookies.setItem('accepted', 'dismissed', 86400*365*30, '/');
118
118
  });
119
119
  }
120
120
  });
@@ -127,19 +127,38 @@ if ((docCookies.getItem('accepted') === null)) {
127
127
  setup_api();
128
128
  </script>
129
129
 
130
+ <script type="text/javascript">
131
+ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
132
+ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
133
+ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
134
+ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
135
+ ga('create', 'UA-7911463-2', 'picturehouses.co.uk');
136
+ ga('require', 'displayfeatures');
137
+ ga('send', 'pageview');
138
+ </script>
139
+
140
+
130
141
  <script type="text/javascript">
131
142
  newman_prefix = 'newman';
132
- document.write(unescape("%3Cscript src='" + websales_url + "/jswebsales/static/customer.201308042153.js' type='text/javascript'%3E%3C/script%3E"));
143
+ document.write(unescape("%3Cscript src='" + websales_url + "/jswebsales/static/customer.201404272310.js' type='text/javascript'%3E%3C/script%3E"));
133
144
  </script>
134
145
 
146
+
147
+
148
+
149
+
135
150
  <script type="text/javascript">
136
151
  jQuery(document).ready(function(){
137
- jQuery('#searchForm').replaceWith('<div class="demo" style="float:right; margin-right:10px;"><form rel="nofollow" action="/cinema/Abbeygate_Picturehouse/Search/"><input class="typeahead" name="header_search" type="text" placeholder="Search..."></form></div>');
152
+
153
+
154
+
155
+ jQuery('#searchForm').replaceWith('<div class="demo" style="float:right; margin-right:10px;"><form rel="nofollow" action="/cinema/Duke_Of_Yorks/Search/"><input class="typeahead" name="header_search" type="text" placeholder="Search..."></form></div>');
138
156
 
139
157
  var url = '/fs/';
140
- if ('BSE' !== 'global') {
141
- url = '/cinema/Abbeygate_Picturehouse' + url;
158
+ if ('doyb' !== 'global') {
159
+ url = '/cinema/Duke_Of_Yorks/fs/';
142
160
  }
161
+ if (location.protocol !== 'https:') {
143
162
  jQuery('.typeahead').typeahead({
144
163
  name:'films',
145
164
  prefetch:{url:url,
@@ -151,12 +170,18 @@ if ((docCookies.getItem('accepted') === null)) {
151
170
  var $typeahead = jQuery(this);
152
171
  var v = $typeahead.val();
153
172
  if (v !== '') {
154
- _gaq.push(['_trackEvent', 'Search', 'Typing', v]);
173
+ ga('send', 'event', {
174
+ eventCategory:'Search',
175
+ eventAction:'Typing',
176
+ eventValue:v});
155
177
  }
156
178
  })
157
179
  .on('typeahead:selected', function(evt, item) {
158
180
  var $typeahead = jQuery(this);
159
- _gaq.push(['_trackEvent', 'Search', 'Selected', $typeahead.val()]);
181
+ ga('send', 'event', {
182
+ eventCategory:'Search',
183
+ eventAction:'Selected',
184
+ eventValue:$typeahead.val()});
160
185
  window.location.href = item.uri + '?utm_source=' + window.location.pathname + '&utm_medium=search&utm_campaign=selected';
161
186
  })
162
187
  .on('typeahead:closed', function(evt, item) {
@@ -165,7 +190,10 @@ if ((docCookies.getItem('accepted') === null)) {
165
190
  })
166
191
  .on('typeahead:autocompleted', function (evt, item) {
167
192
  var $typeahead = jQuery(this);
168
- _gaq.push(['_trackEvent', 'Search', 'Autocompleted', $typeahead.val()]);
193
+ ga('send', 'event', {
194
+ eventCategory:'Search',
195
+ eventAction:'Autocompleted',
196
+ eventValue:$typeahead.val()});
169
197
  window.location.href = item.uri + '?utm_source=' + window.location.pathname + '&utm_medium=search&utm_campaign=autocompleted';
170
198
  }) ;
171
199
  jQuery('div.demo form input.typeahead').bind('keypress', function(e) {
@@ -173,38 +201,69 @@ if ((docCookies.getItem('accepted') === null)) {
173
201
  jQuery('div.demo form').submit();
174
202
  }
175
203
  });
176
- initialize_api('Abbeygate_Picturehouse', '', 'BSE');
204
+ }
205
+ initialize_api('Duke_Of_Yorks', '', 'doyb');
177
206
  });
178
207
  </script>
208
+ <!-- Start: GPT Sync -->
209
+
210
+ <script type='text/javascript'>
211
+
212
+ var gptadslots=[];
213
+
214
+ (function(){
215
+
216
+ var useSSL = 'https:' == document.location.protocol;
217
+
218
+ var src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js';
219
+
220
+ document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>');
221
+
222
+ })();
223
+
224
+ </script>
225
+ <script type="text/javascript">
226
+
227
+
228
+ //Adslot 1 declaration
229
+
230
+ gptadslots[1]= googletag.defineSlot('/116061662/UK_PictureHouses', [[300,250]],'div-gpt-ad-144738139352026482-1').addService(googletag.pubads());
231
+
232
+
233
+
234
+ //Adslot 2 declaration
235
+
236
+ gptadslots[2]= googletag.defineSlot('/116061662/UK_PictureHouses/Homepage', [[300,250]],'div-gpt-ad-144738139352026482-2').addService(googletag.pubads());
237
+
238
+
239
+
240
+ googletag.pubads().enableSyncRendering();
241
+
242
+ googletag.enableServices();
243
+
244
+ </script>
245
+
246
+ <!-- End: GPT -->
179
247
  </head>
180
248
 
181
249
  <body>
182
250
 
183
251
  <div id="wrapper">
184
252
 
253
+ <link rel="stylesheet" href="https://d2t98m0n7ql7on.cloudfront.net/site-media/css/cityscreen/venues.2014091904.css" />
254
+
255
+ <div id="con_header" class="header_doyb" sold="">
256
+
257
+
185
258
 
186
- <div id="con_header" class="clapham headerBSE"
187
-
188
-
189
-
190
-
191
-
192
-
193
- style="background: url('/site-media/images/cityscreen/headers/header_BSE.gif');">
194
-
195
-
196
-
197
-
198
-
199
-
200
259
  <h1>
201
260
 
202
- <a href="/cinema/Abbeygate_Picturehouse/" id="header_logo" class="BSE" alt="Abbeygate Picturehouse"></a>
261
+ <a href="/cinema/Duke_Of_Yorks/" id="header_logo" class="doyb" alt="Duke of York&#39;s"></a>
203
262
 
204
263
  </h1>
205
264
  <div id="header_right">
206
265
  <a href="#" id="qb" rel="nofollow" class="quickbook_button"></a>
207
- <form rel="nofollow" id ="searchForm" action="/cinema/Abbeygate_Picturehouse/Search/">
266
+ <form rel="nofollow" id ="searchForm" action="/cinema/Duke_Of_Yorks/Search/">
208
267
  <input type="text" name="header_search" id="header_search" value=""/>
209
268
  </form>
210
269
  <div id="quickbook_layer">
@@ -222,7 +281,7 @@ if ((docCookies.getItem('accepted') === null)) {
222
281
 
223
282
  <div class="top-links">
224
283
  <div class="top-links-icons">
225
- <a class="i-newsletter" href="/cinema/Abbeygate_Picturehouse/Connect/Email_News/">
284
+ <a class="i-newsletter" href="/cinema/Duke_Of_Yorks/Connect/Email_News/">
226
285
  <i class="t-icon"><i></i></i>
227
286
  <span class="s-tooltip">
228
287
  <span class="st-tl"></span><span class="st-tr"></span>
@@ -232,7 +291,7 @@ if ((docCookies.getItem('accepted') === null)) {
232
291
 
233
292
  <span class="hide"> | </span>
234
293
 
235
- <a class="i-facebook" href="/cinema/Abbeygate_Picturehouse/Connect/Facebook/">
294
+ <a class="i-facebook" href="/cinema/Duke_Of_Yorks/Connect/Facebook/">
236
295
  <i class="t-icon"><i></i></i>
237
296
  <span class="s-tooltip">
238
297
  <span class="st-tl"></span><span class="st-tr"></span>
@@ -242,7 +301,7 @@ if ((docCookies.getItem('accepted') === null)) {
242
301
 
243
302
  <span class="hide"> | </span>
244
303
 
245
- <a class="i-twitter" href="/cinema/Abbeygate_Picturehouse/Connect/Twitter/">
304
+ <a class="i-twitter" href="/cinema/Duke_Of_Yorks/Connect/Twitter/">
246
305
  <i class="t-icon"><i></i></i>
247
306
  <span class="s-tooltip">
248
307
  <span class="st-tl"></span><span class="st-tr"></span>
@@ -268,13 +327,361 @@ if ((docCookies.getItem('accepted') === null)) {
268
327
 
269
328
  </div>
270
329
 
330
+
331
+ <style>
332
+ #precomplete_form {
333
+ width:270px;
334
+ }
335
+ #precomplete_formfancybox-link {
336
+ visibility: none;
337
+ }
338
+ </style>
339
+
340
+ <a href="#precomplete_form" id="precomplete_formfancybox-link" class="fancybox-link"></a>
341
+ <div class="hide">
342
+ <div id="precomplete_form" class="popup-form g-clear">
343
+ <form method="post" action="" name="info_form">
344
+ <div class="form-left-part">
345
+ <h3>Additional Information</h3>
346
+
347
+ <p id="precomplete_msg">To complete your registration, please choose your favourite cinema:</p>
348
+
349
+ <div id="precomplete_email_holder">
350
+ <label for="">Email address</label>
351
+ <span class="text">
352
+ <i class="t-tl"></i><i class="t-tr"></i>
353
+ <input type="text" id="precomplete_email" name="loginemail"/>
354
+ </span>
355
+ </div>
356
+
357
+
358
+ <div class="clearall"></div>
359
+
360
+ <div id="precomplete_venue_holder">
361
+ <label for="">Favourite cinema</label>
362
+ <select id="precomplete_venue">
363
+
364
+
365
+ <option value="cph">Clapham Picturehouse</option>
366
+
367
+
368
+
369
+ <option value="EDP">East Dulwich Picturehouse</option>
370
+
371
+
372
+
373
+ <option value="gate">Gate Picturehouse</option>
374
+
375
+
376
+
377
+ <option value="gnw">Greenwich Picturehouse</option>
378
+
379
+
380
+
381
+ <option value="hck">Hackney Picturehouse</option>
382
+
383
+
384
+
385
+ <option value="PHC">Picturehouse Central</option>
386
+
387
+
388
+
389
+ <option value="ritz">Ritzy Picturehouse</option>
390
+
391
+
392
+
393
+ <option value="se">Stratford, London</option>
394
+
395
+
396
+
397
+ <option value="bath">The Little</option>
398
+
399
+
400
+
401
+ <option value="NMM">Picturehouse at the NMM</option>
402
+
403
+
404
+
405
+ <option value="DAK">Duke&#39;s At Komedia</option>
406
+
407
+
408
+
409
+ <option selected="selected" value="doyb">Duke of York&#39;s</option>
410
+
411
+
412
+
413
+ <option value="camb">Arts Picturehouse Cambridge</option>
414
+
415
+
416
+
417
+ <option value="edbg">Cameo Picturehouse</option>
418
+
419
+
420
+
421
+ <option value="xtr">Exeter Picturehouse</option>
422
+
423
+
424
+
425
+ <option value="rgl">Regal Picturehouse</option>
426
+
427
+
428
+
429
+ <option value="fact">Picturehouse at FACT</option>
430
+
431
+
432
+
433
+ <option value="nor">Cinema City</option>
434
+
435
+
436
+
437
+ <option value="oxfd">Phoenix Picturehouse</option>
438
+
439
+
440
+
441
+ <option value="hlsh">Harbour Lights</option>
442
+
443
+
444
+
445
+ <option value="soa">Stratford-upon-Avon</option>
446
+
447
+
448
+
449
+ <option value="york">York Picturehouse</option>
450
+
451
+
452
+ </select>
453
+ </div>
454
+
455
+ <span class="button">
456
+ <i class="b-tl"></i><i class="b-tr"></i>
457
+ <input type="button" value="Complete Registration" id="completebutton"/>
458
+ </span>
459
+ </div>
460
+ </form>
461
+ </div>
462
+ </div>
463
+
464
+ <script>
465
+ // START OF UTILS
466
+ function qs(key) {
467
+ key = key.replace(/[*+?^$.\[\]{}()|\\\/]/g, "\\$&"); // escape RegEx meta chars
468
+ var match = location.search.match(new RegExp("[?&]"+key+"=([^&]+)(&|$)"));
469
+ return match && decodeURIComponent(match[1].replace(/\+/g, " "));
470
+ }
471
+
472
+ if (typeof String.prototype.startsWith != 'function') {
473
+ // see below for better implementation!
474
+ String.prototype.startsWith = function (str){
475
+ return this.indexOf(str) == 0;
476
+ };
477
+ }
478
+ // END OF UTILS
479
+
480
+ function isPrecompleteForm() {
481
+ if (window.location.hash.indexOf("#precomplete_form") != -1) {
482
+ jQuery("a#precomplete_formfancybox-link")[0].click()
483
+ }
484
+ };
485
+
486
+ var precomplete_hookup = function() {
487
+ jQuery('a#precomplete_formfancybox-link').fancybox({
488
+ transitionIn: 'elastic',
489
+ transitionOut: 'elastic',
490
+ onComplete: function(){
491
+ jQuery('#precomplete_form span.button .b-tl').each(function(){
492
+ jQuery(this).width( jQuery(this).parent().width() )
493
+ });
494
+ }
495
+ });
496
+ jQuery('#completebutton').click(precomplete_finish);
497
+ };
498
+
499
+ var setup_precomplete_form = function() {
500
+ setup = window.location.hash
501
+
502
+ if (setup.indexOf("email") == -1) {
503
+ jQuery("#precomplete_email_holder").hide()
504
+ } else {
505
+ jQuery("#precomplete_email_holder").show()
506
+ }
507
+ if (setup.indexOf("venue_id") == -1) {
508
+ jQuery("#precomplete_venue_holder").hide()
509
+ } else {
510
+ jQuery("#precomplete_venue_holder").show()
511
+ }
512
+ };
513
+
514
+ var precomplete_finish = function() {
515
+ var url = qs('redirect');
516
+ if (setup.indexOf("email") != -1) {
517
+ url += "&email=" + jQuery("#precomplete_email").val()
518
+ }
519
+ if (setup.indexOf("venue_id") != -1) {
520
+ url += "&venue_id=" + jQuery("#precomplete_venue").val()
521
+ }
522
+
523
+ window.location.href = url
524
+ };
525
+
526
+ jQuery(document).ready(function () {
527
+ precomplete_hookup();
528
+ setup_precomplete_form()
529
+ isPrecompleteForm()
530
+ })
531
+
532
+ </script>
533
+
534
+
271
535
  <div class="hide">
272
536
  <div id="login_form" class="popup-form g-clear">
537
+ <style>
538
+ #socialauth_error_msg {
539
+ color:red;
540
+ margin:0;
541
+ line-height:12px;
542
+ margin-bottom:-7px;
543
+ }
544
+ </style>
545
+
546
+ <p id="socialauth_error_msg"></p>
547
+
548
+ <script>
549
+ console.log("START ALERT SETUP SCRIPT")
550
+
551
+ // START OF UTILS
552
+ function getHashParams() {
553
+
554
+ var hashParams = {};
555
+ var e,
556
+ a = /\+/g, // Regex for replacing addition symbol with a space
557
+ r = /([^&;=]+)=?([^&;]*)/g,
558
+ d = function (s) { return decodeURIComponent(s.replace(a, " ")); },
559
+ q = window.location.hash.substring(1);
560
+
561
+ while (e = r.exec(q))
562
+ hashParams[d(e[1])] = d(e[2]);
563
+
564
+ return hashParams;
565
+ }
566
+ // END OF UTILS
567
+
568
+ function isErrorMsg() {
569
+ // Is there a socialauth error message?
570
+ if (window.location.hash.indexOf("#socialauth_error_msg") != -1) {
571
+
572
+ // Found a SocialAuth error signal, preparing to display msg.
573
+ var msg = getHashParams()["socialauth_error_msg"]
574
+ if (msg) {
575
+ jQuery("#socialauth_error_msg").html(msg);
576
+ jQuery("#socialauth_error_msg").show();
577
+ };
578
+
579
+ // Open login dialog.
580
+ var rt = jQuery("a#login_formfancybox-link").fancybox().trigger('click');
581
+ } else {
582
+ jQuery("#socialauth_error_msg").hide();
583
+ }
584
+ };
585
+
586
+ isErrorMsg()
587
+
588
+ </script>
589
+
273
590
  <form method="post" action="/loyalty/login_process" name="login_form">
274
591
  <div class="form-left-part">
592
+
593
+ <style>
594
+
595
+ .social_auth_widget {
596
+ margin-bottom: 10px;
597
+ }
598
+
599
+ .social_button {
600
+ width: 270px;
601
+ height: 30px;
602
+ margin-bottom: 8px;
603
+ }
604
+
605
+ .social_auth_widget a,
606
+ .social_auth_widget a:link,
607
+ .social_auth_widget a:visited,
608
+ .social_auth_widget a:hover,
609
+ .social_auth_widget a:active
610
+ {
611
+ color: inherit;
612
+ text-decoration: none;
613
+ }
614
+
615
+ .social_button h4 {
616
+ display: inline;
617
+ padding-left: 6px;
618
+ vertical-align: -webkit-baseline-middle;
619
+ color: #fff;
620
+ font-size: 129%;
621
+ letter-spacing: 0.2px;
622
+ }
623
+
624
+ .social_button.safari h4 {
625
+ vertical-align: middle !important;
626
+ }
627
+
628
+ .social_auth_widget #facebook_button {
629
+ background-color: #4a629d;
630
+ border-radius: 3px;
631
+ }
632
+
633
+ .social_auth_widget #google-plus_button {
634
+ background-color: #ca363a;
635
+ border-radius: 3px;
636
+ }
637
+
638
+ .social_button img {
639
+ margin-left: 10px;
640
+ margin-top: 2.5px;
641
+ }
642
+
643
+ .social_button.safari img {
644
+ margin-top: 3px;
645
+ }
646
+
647
+ </style>
648
+
649
+ <div class="social_auth_widget">
650
+ <a href="/socialauth/login/facebook/">
651
+ <div class="social_button" id="facebook_button">
652
+ <img src="/site-media/images/social/facebook_login.png" alt="Login with Facebook"></img>
653
+ <h4>Sign in with Facebook</h4>
654
+ </div>
655
+ </a>
656
+ <a href="/socialauth/login/google-plus/">
657
+ <div class="social_button" id="google-plus_button">
658
+ <img src="/site-media/images/social/google-plus_login.png" alt="Login with Google+"></img>
659
+ <h4>Sign in with Google+</h4>
660
+ </div>
661
+ </a>
662
+ </div>
663
+
664
+ <script>
665
+ (function () {
666
+
667
+ var source = encodeURI(document.URL)
668
+ jQuery(".social_auth_widget a").each(function (i,v) {
669
+ v.href = v.href + "?source_page=" + source
670
+ })
671
+
672
+ var safari = jQuery.browser.safari != undefined;
673
+ if (safari) {
674
+ jQuery(".social_button").addClass("safari");
675
+ }
676
+ })()
677
+ </script>
678
+
679
+
680
+
681
+
682
+
275
683
  <h3>Sign in</h3>
276
684
  <p class="error login_form" style="color:red; margin:0; line-height:1em; display:None;"></p>
277
-
278
685
  <label for="">Email address</label>
279
686
  <span class="text">
280
687
  <i class="t-tl"></i><i class="t-tr"></i>
@@ -309,15 +716,101 @@ if ((docCookies.getItem('accepted') === null)) {
309
716
  </form>
310
717
 
311
718
  <div class="form-right-part">
312
- <h3>Create an account</h3>
313
- <p>You must be an existing Picturehouse Member to register for an online account.</p>
719
+ <h3>Create a MyPicturehouse account</h3>
314
720
  <p class="error register_form" style="color:red; margin:0; line-height:1em; display:None;"></p>
315
721
 
316
- <label for="">Membership number (8 digits)</label>
317
- <span class="text">
318
- <i class="t-tl"></i><i class="t-tr"></i>
319
- <input type="text" id="membership_myphcustomer_num"/>
320
- </span>
722
+ <label for="">Favourite cinema</label>
723
+ <select id="membership_myphvenue_id">
724
+
725
+
726
+ <option value="cph">Clapham Picturehouse</option>
727
+
728
+
729
+
730
+ <option value="EDP">East Dulwich Picturehouse</option>
731
+
732
+
733
+
734
+ <option value="gate">Gate Picturehouse</option>
735
+
736
+
737
+
738
+ <option value="gnw">Greenwich Picturehouse</option>
739
+
740
+
741
+
742
+ <option value="hck">Hackney Picturehouse</option>
743
+
744
+
745
+
746
+ <option value="PHC">Picturehouse Central</option>
747
+
748
+
749
+
750
+ <option value="ritz">Ritzy Picturehouse</option>
751
+
752
+
753
+
754
+ <option value="se">Stratford, London</option>
755
+
756
+
757
+
758
+ <option value="bath">The Little</option>
759
+
760
+
761
+
762
+ <option value="NMM">Picturehouse at the NMM</option>
763
+
764
+
765
+
766
+ <option value="DAK">Duke&#39;s At Komedia</option>
767
+
768
+
769
+
770
+ <option selected="selected" value="doyb">Duke of York&#39;s</option>
771
+
772
+
773
+
774
+ <option value="camb">Arts Picturehouse Cambridge</option>
775
+
776
+
777
+
778
+ <option value="edbg">Cameo Picturehouse</option>
779
+
780
+
781
+
782
+ <option value="xtr">Exeter Picturehouse</option>
783
+
784
+
785
+
786
+ <option value="rgl">Regal Picturehouse</option>
787
+
788
+
789
+
790
+ <option value="fact">Picturehouse at FACT</option>
791
+
792
+
793
+
794
+ <option value="nor">Cinema City</option>
795
+
796
+
797
+
798
+ <option value="oxfd">Phoenix Picturehouse</option>
799
+
800
+
801
+
802
+ <option value="hlsh">Harbour Lights</option>
803
+
804
+
805
+
806
+ <option value="soa">Stratford-upon-Avon</option>
807
+
808
+
809
+
810
+ <option value="york">York Picturehouse</option>
811
+
812
+
813
+ </select>
321
814
 
322
815
  <div class="clearall"></div>
323
816
 
@@ -329,11 +822,6 @@ if ((docCookies.getItem('accepted') === null)) {
329
822
 
330
823
  <div class="clearall"></div>
331
824
 
332
- <a class="lightgreen" href="#" id="noemailbutton" title="">I don't have a registered email address.</a>
333
-
334
- <div class="clearall"></div>
335
- <br />
336
-
337
825
  <span class="button">
338
826
  <i class="b-tl"></i><i class="b-tr"></i>
339
827
  <input type="submit" id="createaccountbutton" value="Create account" />
@@ -343,10 +831,7 @@ if ((docCookies.getItem('accepted') === null)) {
343
831
  <br />
344
832
 
345
833
  <h4>The benefits</h4>
346
-
347
- Rate films, receive recommendations, view history. Speed up your online booking.
348
- <br />Manage account and subscriptions.
349
- <br />+ More coming soon.
834
+ Speed up online booking, rate films, receive recommendations, view your film history, manage your private account, signup for coming soon, manage subscriptions and preferences.
350
835
  </div>
351
836
 
352
837
  </div>
@@ -392,8 +877,8 @@ if ((docCookies.getItem('accepted') === null)) {
392
877
  <p>Please provide the following details to set up your account.</p>
393
878
 
394
879
  <p class="error" style="color:red; padding:0; margin:0; line-height:1em; display:None;"></p>
395
- <label for="">Membership number</label>
396
- <span class="text">
880
+ <label style="display:none;" for="">Membership number</label>
881
+ <span class="text" style="display:none;">
397
882
  <i class="t-tl"></i><i class="t-tr"></i>
398
883
  <input type="text" id="registercustomer_num" name="registercustomer_num"/>
399
884
  </span>
@@ -449,7 +934,11 @@ if ((docCookies.getItem('accepted') === null)) {
449
934
 
450
935
 
451
936
 
937
+
938
+
452
939
 
940
+
941
+
453
942
  <div id="con_menu">
454
943
  <!-- Main menu -->
455
944
  <div id="menumain" style="font-size:14px;">
@@ -474,9 +963,9 @@ if ((docCookies.getItem('accepted') === null)) {
474
963
 
475
964
 
476
965
 
477
- <a href="/cinema/Abbeygate_Picturehouse/Whats_On/" class=
966
+ <a href="/cinema/Duke_Of_Yorks/Whats_On/" class=
478
967
 
479
- "menuitem BSE"
968
+ "menuitem doyb"
480
969
 
481
970
  ><span class="menuitem_left"></span>What&#39;s On</a>
482
971
 
@@ -495,9 +984,9 @@ if ((docCookies.getItem('accepted') === null)) {
495
984
 
496
985
 
497
986
 
498
- <a href="/cinema/Abbeygate_Picturehouse/Coming_Soon/" class=
987
+ <a href="/cinema/Duke_Of_Yorks/Coming_Soon/" class=
499
988
 
500
- "menuitem BSE"
989
+ "menuitem doyb"
501
990
 
502
991
  ><span class="menuitem_left"></span>Coming Soon</a>
503
992
 
@@ -516,9 +1005,9 @@ if ((docCookies.getItem('accepted') === null)) {
516
1005
 
517
1006
 
518
1007
 
519
- <a href="/cinema/Abbeygate_Picturehouse/Picturehouse_Membership/" class=
1008
+ <a href="/cinema/Duke_Of_Yorks/Picturehouse_Membership/" class=
520
1009
 
521
- "menuitem BSE"
1010
+ "menuitem doyb"
522
1011
 
523
1012
  ><span class="menuitem_left"></span>Membership</a>
524
1013
 
@@ -537,9 +1026,9 @@ if ((docCookies.getItem('accepted') === null)) {
537
1026
 
538
1027
 
539
1028
 
540
- <a href="/cinema/Abbeygate_Picturehouse/News/" class=
1029
+ <a href="/cinema/Duke_Of_Yorks/News/" class=
541
1030
 
542
- "menuitem BSE"
1031
+ "menuitem doyb"
543
1032
 
544
1033
  ><span class="menuitem_left"></span>News</a>
545
1034
 
@@ -558,9 +1047,9 @@ if ((docCookies.getItem('accepted') === null)) {
558
1047
 
559
1048
 
560
1049
 
561
- <a href="/cinema/Abbeygate_Picturehouse/Connect/" class=
1050
+ <a href="/cinema/Duke_Of_Yorks/Connect/" class=
562
1051
 
563
- "menuitem BSE"
1052
+ "menuitem doyb"
564
1053
 
565
1054
  ><span class="menuitem_left"></span>Connect</a>
566
1055
 
@@ -579,9 +1068,9 @@ if ((docCookies.getItem('accepted') === null)) {
579
1068
 
580
1069
 
581
1070
 
582
- <a href="/cinema/Abbeygate_Picturehouse/Picturehouse_Recommends/" class=
1071
+ <a href="/cinema/Duke_Of_Yorks/Picturehouse_Recommends/" class=
583
1072
 
584
- "menuitem BSE"
1073
+ "menuitem doyb"
585
1074
 
586
1075
  ><span class="menuitem_left"></span>Recommends</a>
587
1076
 
@@ -600,9 +1089,9 @@ if ((docCookies.getItem('accepted') === null)) {
600
1089
 
601
1090
 
602
1091
 
603
- <a href="/cinema/Abbeygate_Picturehouse/Food_Drink/" class=
1092
+ <a href="/cinema/Duke_Of_Yorks/Food_Drink/" class=
604
1093
 
605
- "menuitem BSE"
1094
+ "menuitem doyb"
606
1095
 
607
1096
  ><span class="menuitem_left"></span>Food &amp; Drink</a>
608
1097
 
@@ -621,11 +1110,11 @@ if ((docCookies.getItem('accepted') === null)) {
621
1110
 
622
1111
 
623
1112
 
624
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/" class=
1113
+ <a href="/cinema/Duke_Of_Yorks/Faqs/" class=
625
1114
 
626
- "menuitem BSE"
1115
+ "menuitem doyb"
627
1116
 
628
- ><span class="menuitem_left"></span>Hires &amp; Info</a>
1117
+ ><span class="menuitem_left"></span>FAQs</a>
629
1118
 
630
1119
 
631
1120
  <!-- Seperator -->
@@ -642,11 +1131,11 @@ if ((docCookies.getItem('accepted') === null)) {
642
1131
 
643
1132
 
644
1133
 
645
- <a href="/cinema/Abbeygate_Picturehouse/Faqs/" class=
1134
+ <a href="/cinema/Dukes_At_Komedia/" class=
646
1135
 
647
- "menuitem BSE"
1136
+ "menuitem doyb"
648
1137
 
649
- ><span class="menuitem_left"></span>FAQs</a>
1138
+ ><span class="menuitem_left"></span>Komedia</a>
650
1139
 
651
1140
 
652
1141
 
@@ -656,6 +1145,8 @@ if ((docCookies.getItem('accepted') === null)) {
656
1145
 
657
1146
 
658
1147
  </div>
1148
+
1149
+
659
1150
 
660
1151
 
661
1152
  <div id="con_content">
@@ -663,35 +1154,35 @@ if ((docCookies.getItem('accepted') === null)) {
663
1154
  <div class="col_double">
664
1155
 
665
1156
 
666
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Venue_Info/"
1157
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Venue_Info/"
667
1158
 
668
1159
  class="box_tab"
669
1160
 
670
1161
  ><span class="tab_left"></span>Venue Info</a>
671
1162
 
672
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/"
1163
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Contact_Us/"
673
1164
 
674
1165
  class="box_tab active"
675
1166
 
676
1167
  ><span class="tab_left"></span>Contact Us</a>
677
1168
 
678
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Press/"
1169
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Venue_Hire/"
679
1170
 
680
1171
  class="box_tab"
681
1172
 
682
- ><span class="tab_left"></span>Press</a>
1173
+ ><span class="tab_left"></span>Venue Hire</a>
683
1174
 
684
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Jobs/"
1175
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Press/"
685
1176
 
686
1177
  class="box_tab"
687
1178
 
688
- ><span class="tab_left"></span>Jobs</a>
1179
+ ><span class="tab_left"></span>Press</a>
689
1180
 
690
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Venue_Hire/"
1181
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Jobs/"
691
1182
 
692
1183
  class="box_tab"
693
1184
 
694
- ><span class="tab_left"></span>Venue Hire</a>
1185
+ ><span class="tab_left"></span>Jobs</a>
695
1186
 
696
1187
  <div style="clear:both;"></div>
697
1188
 
@@ -735,24 +1226,24 @@ if ((docCookies.getItem('accepted') === null)) {
735
1226
 
736
1227
  <p>
737
1228
  <div class="box" style="width:280px;">
738
- <div class="heading"><span class="newsheading">Abbeygate Picturehouse, Bury St Edmunds</span></div>
1229
+ <div class="heading"><span class="newsheading">Duke of York&#39;s Picturehouse, Brighton</span></div>
739
1230
  <div class="box1">
740
1231
  <table cellspacing="0" cellpadding="0" border="0" id="cinemasbox">
741
1232
  <tbody>
742
1233
 
743
- <tr><td valign="bottom" class="cinemaListBox">4</td></tr>
744
- <tr><td valign="bottom" class="cinemaListBox">Hatter Street</td></tr>
745
1234
  <tr><td valign="bottom" class="cinemaListBox"></td></tr>
746
- <tr><td valign="bottom" class="cinemaListBox">Bury St Edmunds</td></tr>
1235
+ <tr><td valign="bottom" class="cinemaListBox">Preston Circus</td></tr>
747
1236
  <tr><td valign="bottom" class="cinemaListBox"></td></tr>
1237
+ <tr><td valign="bottom" class="cinemaListBox">Brighton</td></tr>
748
1238
  <tr><td valign="bottom" class="cinemaListBox"></td></tr>
749
- <tr><td valign="bottom" class="cinemaListBox">IP33 1NE</td></tr>
1239
+ <tr><td valign="bottom" class="cinemaListBox"></td></tr>
1240
+ <tr><td valign="bottom" class="cinemaListBox">BN1 4NA</td></tr>
750
1241
 
751
1242
 
752
- <tr><td valign="bottom" class="cinemaListBox">Box Office Number: 0871 902 5722</td></tr>
1243
+ <tr><td valign="bottom" class="cinemaListBox">Box Office Number: 0871 902 5728</td></tr>
753
1244
 
754
1245
 
755
- <tr><td valign="bottom" class="cinemaListBox">email: <a class="__cf_email__" href="http://www.cloudflare.com/email-protection" data-cfemail="94f6e1e6edd4e4fdf7e0e1e6f1fcfbe1e7f1e7baf7fbbae1ff">[email&nbsp;protected]</a><script type="text/javascript">
1246
+ <tr><td valign="bottom" class="cinemaListBox">email: <a class="__cf_email__" href="/cdn-cgi/l/email-protection" data-cfemail="3a5e4f515f555c43554851497a4a53594e4f485f52554f495f49145955144f51">[email&nbsp;protected]</a><script type="text/javascript">
756
1247
  /* <![CDATA[ */
757
1248
  (function(){try{var s,a,i,j,r,c,l,b=document.getElementsByTagName("script");l=b[b.length-1].previousSibling;a=l.getAttribute('data-cfemail');if(a){s='';r=parseInt(a.substr(0,2),16);for(j=2;a.length-j;j+=2){c=parseInt(a.substr(j,2),16)^r;s+=String.fromCharCode(c);}s=document.createTextNode(s);l.parentNode.replaceChild(s,l);}}catch(e){}})();
758
1249
  /* ]]> */
@@ -764,9 +1255,8 @@ if ((docCookies.getItem('accepted') === null)) {
764
1255
  </div>
765
1256
 
766
1257
  </p>
767
- <p>Cafe table bookings: 01284 754477</p>
768
- <p>General Manager: Pat Church</p>
769
- <p>You might find the answer to your question by visting our <a href="Faqs/">FAQs</a> page.</p>
1258
+ <p>&nbsp;</p>
1259
+ <p>General Manager: Kenny Gold</p>
770
1260
 
771
1261
 
772
1262
  </div>
@@ -783,31 +1273,20 @@ if ((docCookies.getItem('accepted') === null)) {
783
1273
 
784
1274
 
785
1275
  <div class="ad">
786
- <!-- List of tags for the site: Picturehouses, Format "Standard" -->
787
1276
 
788
- <!-- REMINDER: this function must be pasted inside the website pages. -->
789
1277
 
790
- <script type="text/javascript">
791
- sas_tmstp=Math.round(Math.random()*10000000000);sas_masterflag=1;
792
- function SmartAdServer(sas_pageid,sas_formatid,sas_target) {
793
- if (sas_masterflag==1) {sas_masterflag=0;sas_master='M';} else {sas_master='S';};
794
- document.write('<scr'+'ipt src="https://www4.smartadserver.com/call/pubj/' + sas_pageid + '/' + sas_formatid + '/' + sas_master + '/' + sas_tmstp + '/' + escape(sas_target) + '?"></scr'+'ipt>');
795
- }
796
- </script>
797
- <!-- Page : ros -->
1278
+ <!-- Beginning Sync AdSlot 2 for Ad unit UK_PictureHouses/Homepage ### size: [[300,250]] -->
1279
+ <div id='div-gpt-ad-144738139352026482-2'>
1280
+ <script type='text/javascript'>
1281
+ googletag.display('div-gpt-ad-144738139352026482-2');
1282
+ </script>
1283
+ </div>
1284
+ <!-- End AdSlot 2 -->
1285
+
798
1286
 
799
- <script type="text/javascript">
800
- sas_pageid='23668/160918'; // Page : Picturehouses/ros
801
- sas_formatid=10021; // Format : MPU 300x250
802
- sas_target=''; // Targeting
803
- SmartAdServer(sas_pageid,sas_formatid,sas_target);
804
- </script>
805
- <noscript>
806
- <a href="https://www4.smartadserver.com/call/pubjumpi/23668/160918/10021/M/[timestamp]/?" target="_blank">
807
- <img src="https://www4.smartadserver.com/call/pubi/23668/160918/10021/M/[timestamp]/?" border="0" alt="" /></a>
808
- </noscript>
809
1287
  </div>
810
1288
 
1289
+
811
1290
 
812
1291
 
813
1292
 
@@ -816,11 +1295,17 @@ function SmartAdServer(sas_pageid,sas_formatid,sas_target) {
816
1295
 
817
1296
 
818
1297
 
819
- <a onClick="_gaq.push(['_trackEvent','advert', 'internal', 'click'])" href="https://itunes.apple.com/gb/app/picturehouse-recommends/id579615856?mt=8" target="_blank">
820
- <img src="/site-media/images/cityscreen/iPad_MPU_PicRecs30.gif"/>
1298
+ <a href="/News/item/Guardian_Live_Russell_Brand_In_Conversation/">
1299
+ <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="300" height="250" id="Richard Curtiss" align="middle">
1300
+ <param name="allowScriptAccess" value="sameDomain" />
1301
+ <param name="allowFullScreen" value="false" />
1302
+ <param name="movie" value="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/GuardianLive_MPUBrand.swf" />
1303
+ <param name="quality" value="high" />
1304
+ <param name="bgcolor" value="#333333" />
1305
+ <embed src="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/GuardianLive_MPUBrand.swf" quality="high" bgcolor="#333333" width="300" height="250" name="kuma" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
1306
+ </object>
821
1307
  </a>
822
1308
 
823
-
824
1309
 
825
1310
 
826
1311
  </div>
@@ -842,11 +1327,11 @@ function SmartAdServer(sas_pageid,sas_formatid,sas_target) {
842
1327
  <div class="toplinks txt4">
843
1328
  <div class="right footer_select" style="width:314px;">
844
1329
 
845
- <img src="/site-media/images/cityscreen/logo_small.gif" id="logo_small" style="position:relative; left:80px; top:-7px;">
1330
+ <img src="https://d2t98m0n7ql7on.cloudfront.net/site-media/images/cityscreen/ECmedia-en-white.gif" id="logo_small" width="154" height="29" style="position:relative; top:-12px;">
846
1331
 
847
1332
  <form>
848
1333
  <select name="selectnav" class="selectnav">
849
- <option selected="selected" value="">Abbeygate Picturehouse</option>
1334
+ <option selected="selected" value="">Duke of York&#39;s</option>
850
1335
 
851
1336
  </select>
852
1337
  </form>
@@ -854,37 +1339,37 @@ function SmartAdServer(sas_pageid,sas_formatid,sas_target) {
854
1339
  </div>
855
1340
  <div class="footer_menu">
856
1341
 
857
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Venue_Info/">Venue Info</a> <!-- class="BSE" -->
1342
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Venue_Info/">Venue Info</a> <!-- class="doyb" -->
858
1343
 
859
1344
  <span class="separator">|</span>
860
1345
 
861
1346
 
862
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/">Contact Us</a> <!-- class="BSE" -->
1347
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Contact_Us/">Contact Us</a> <!-- class="doyb" -->
863
1348
 
864
1349
  <span class="separator">|</span>
865
1350
 
866
1351
 
867
- <a href="/cinema/Abbeygate_Picturehouse/Faqs/">Faqs</a> <!-- class="BSE" -->
1352
+ <a href="/cinema/Duke_Of_Yorks/Faqs/">Faqs</a> <!-- class="doyb" -->
868
1353
 
869
1354
  <span class="separator">|</span>
870
1355
 
871
1356
 
872
- <a href="http://corporate.picturehouses.co.uk/venue-hire/">Venue Hire</a> <!-- class="BSE" -->
1357
+ <a href="http://corporate.picturehouses.co.uk/venue-hire/">Venue Hire</a> <!-- class="doyb" -->
873
1358
 
874
1359
  <span class="separator">|</span>
875
1360
 
876
1361
 
877
- <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Jobs/">Jobs</a> <!-- class="BSE" -->
1362
+ <a href="/cinema/Duke_Of_Yorks/Hires_Info/Jobs/">Jobs</a> <!-- class="doyb" -->
878
1363
 
879
1364
  <span class="separator">|</span>
880
1365
 
881
1366
 
882
- <a href="http://picturehouseblog.co.uk/">Blog</a> <!-- class="BSE" -->
1367
+ <a href="http://picturehouseblog.co.uk/">Blog</a> <!-- class="doyb" -->
883
1368
 
884
1369
  <span class="separator">|</span>
885
1370
 
886
1371
 
887
- <a href="http://www.youtube.com/picturehousecinemas">YouTube</a> <!-- class="BSE" -->
1372
+ <a href="http://www.youtube.com/picturehousecinemas">YouTube</a> <!-- class="doyb" -->
888
1373
 
889
1374
 
890
1375
 
@@ -929,21 +1414,6 @@ value=0&amp;label=ihOBCNmJwAMQ5-n62QM&amp;guid=ON&amp;script=0"/>
929
1414
  </div>
930
1415
 
931
1416
 
932
- <script type="text/javascript">
933
-
934
- var _gaq = _gaq || [];
935
- _gaq.push(['_setAccount', 'UA-7911463-2']);
936
- _gaq.push(['_trackPageview']);
937
-
938
- (function() {
939
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
940
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
941
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
942
- })();
943
-
944
- </script>
945
-
946
-
947
1417
 
948
1418
  <div id="fb-root"></div>
949
1419
  <script>(function(d, s, id) {
@@ -959,7 +1429,10 @@ value=0&amp;label=ihOBCNmJwAMQ5-n62QM&amp;guid=ON&amp;script=0"/>
959
1429
  <script type="text/javascript">
960
1430
  function load_trailers(filmid) {
961
1431
  var film = jQuery('#' + filmid).attr('title');
962
- _gaq.push(['_trackEvent', 'Trailers', 'Play', film]);
1432
+ ga('send', 'event', {
1433
+ eventCategory:'Trailers',
1434
+ eventAction:'Play',
1435
+ eventValue:film});
963
1436
  var h ='<div style="font-family:Arial, Helvetica, sans-serif;" id="trailer_header">';
964
1437
  if (jQuery('#' + filmid).find('span').length > 1) {
965
1438
  h = h + '<select id="trailerField">';
@@ -986,14 +1459,20 @@ value=0&amp;label=ihOBCNmJwAMQ5-n62QM&amp;guid=ON&amp;script=0"/>
986
1459
  var fti= f.attr('fti');
987
1460
  triggerEnd();
988
1461
  if (mtid === 'ftr') {
989
- _gaq.push(['_trackEvent', 'Features', 'Change', film]);
1462
+ ga('send', 'event', {
1463
+ eventCategory:'Features',
1464
+ eventAction:'Change',
1465
+ eventValue:film});
990
1466
  _V_("mm_video").src([
991
1467
  { type: "video/mp4", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/features/avfid" + mid + "/html5/700.mp4" },
992
1468
  { type: "video/webm", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/features/avfid" + mid + "/html5/700.webm" },
993
1469
  { type: "video/ogg", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/features/avfid" + mid + "/html5/700.ogv" }
994
1470
  ]);
995
1471
  } else {
996
- _gaq.push(['_trackEvent', 'Trailers', 'Change', film]);
1472
+ ga('send', 'event', {
1473
+ eventCategory:'Trailers',
1474
+ eventAction:'Change',
1475
+ eventValue:film});
997
1476
  _V_("mm_video").src([
998
1477
  { type: "video/mp4", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/trailers/trid" + mid + "/html5/700.mp4" },
999
1478
  { type: "video/webm", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/trailers/trid" + mid + "/html5/700.webm" },