picturehouse_uk 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- Y2E3N2EwZjlhZGJhZWJiOGU5YTY2NjRhZThiYWM5ZmEyODA3MzdiOQ==
5
- data.tar.gz: !binary |-
6
- N2RlNzU4ZDA3MjIwMThiNjZlZjM2ZmJiN2Q3YmE0NGY0NDYzNzBmZg==
2
+ SHA1:
3
+ metadata.gz: 944f2d9ed771bfd8d95ceea29fda42f77346ef03
4
+ data.tar.gz: 87cd57db1cbe6ffc6ceb949332749ed94180620a
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NzVlMWI3ZGZkN2RlZmQxODAzNTU4NTZmYzZiYjZjODAyNjIwZTQyYzc0YzEw
10
- ZTBjMzcyNjllNTQ4NjY5YzMxODQ0NmNjZDc2M2UzNjk4MjQ2NTE4NTZkZGY3
11
- YzRmZWQxYTk2ZWY5OTZiNzNjZmJmYTMyMDg4NWMzODI5NmVhMWU=
12
- data.tar.gz: !binary |-
13
- MWI2MTFkMmI1YzQyN2MzZmZhZGFhZTVkOTQzODM4Y2I1ZDNjMTlhMmY4MzMx
14
- MjY2Mjg4OWMxMzI4ZjBjODU5YjZlZDNkZTNmZGU5NmVkMmFhMjg1M2M3Nzhi
15
- ZWEyY2U1NzAwZTFlNGU2MjcwNGViMTgxNzdlNGJjYjllZTk1NjE=
6
+ metadata.gz: 398e86805f4619f29d567599c775b7f5e101806809ccac053b6b3098ccadccf2a8f2872019e64d6bed8cfbca4a722cfd97b7038e05ec97e87205eb08ca65d954
7
+ data.tar.gz: b37051a1d76065d43c293c115abd37d0e1f77b32e932c139b8600ee23c698ac26235ce92b2b25ca276ea71db44fa3021197817c5de812a897ab631dcc0e0964c
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  A simple gem to parse the [Picturehouse Cinemas UK website](http://picturehouses.co.uk) and spit out useful formatted info.
4
4
 
5
+ [![Gem Version](https://badge.fury.io/rb/picturehouse_uk.png)](http://badge.fury.io/rb/picturehouse_uk)
5
6
  [![Code Climate](https://codeclimate.com/github/andycroll/picturehouse_uk.png)](https://codeclimate.com/github/andycroll/picturehouse_uk)
6
7
  [![Build Status](https://travis-ci.org/andycroll/picturehouse_uk.png?branch=master)](https://travis-ci.org/andycroll/picturehouse_uk)
7
8
 
@@ -47,6 +47,35 @@ module PicturehouseUk
47
47
  all.select { |cinema| cinema.id == id }[0]
48
48
  end
49
49
 
50
+ # Address of the cinema
51
+ # @return [Hash] of different address parts
52
+ # @example
53
+ # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
54
+ # cinema.adr
55
+ # #=> { street_address: '44-47 Gardner Street', extended_address: 'North Laine', locality: 'Brighton', postal_code: 'BN1 1UN', country_name: 'United Kingdom' }
56
+ # @note Uses the standard method naming as at http://microformats.org/wiki/adr
57
+ def adr
58
+ {
59
+ street_address: street_address,
60
+ extended_address: extended_address,
61
+ locality: locality,
62
+ postal_code: postal_code,
63
+ country: 'United Kingdom'
64
+ }
65
+ end
66
+ alias_method :address, :adr
67
+
68
+ # The second address line of of the cinema
69
+ # @return [String, nil]
70
+ # @example
71
+ # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
72
+ # cinema.extended_address
73
+ # #=> 'North Laine'
74
+ # @note Uses the standard method naming as at http://microformats.org/wiki/adr
75
+ def extended_address
76
+ address_strings.length > 3 ? address_strings[1] : nil
77
+ end
78
+
50
79
  # Films with showings scheduled at this cinema
51
80
  # @return [Array<PicturehouseUk::Film>]
52
81
  # @example
@@ -60,24 +89,67 @@ module PicturehouseUk
60
89
  end.uniq
61
90
  end
62
91
 
92
+ # The name of the cinema (might include brand)
93
+ # @return [String]
94
+ # @example
95
+ # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
96
+ # cinema.full_name
97
+ # #=> "Duke's At Komedia"
98
+ def full_name
99
+ name
100
+ end
101
+
102
+ # The locality (town) of the cinema
103
+ # @return [String]
104
+ # @example
105
+ # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
106
+ # cinema.locality
107
+ # #=> 'Brighton'
108
+ # @note Uses the standard method naming as at http://microformats.org/wiki/adr
109
+ def locality
110
+ address_strings[-2]
111
+ end
112
+
113
+ # Post code of the cinema
114
+ # @return [String]
115
+ # @example
116
+ # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
117
+ # cinema.postal_code
118
+ # #=> 'BN1 1UN'
119
+ # @note Uses the standard method naming as at http://microformats.org/wiki/adr
120
+ def postal_code
121
+ address_strings[-1]
122
+ end
123
+
63
124
  # All planned screenings
64
125
  # @return [Array<PicturehouseUk::Screening>]
65
126
  # @example
66
127
  # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
67
128
  # cinema.screenings
68
- # # => [<PicturehouseUk::Screening film_name="Iron Man 3" cinema_name="Duke's At Komedia" when="..." varient="...">, <PicturehouseUk::Screening ...>]
129
+ # # => [<PicturehouseUk::Screening film_name="Iron Man 3" cinema_name="Duke's At Komedia" when="..." variant="...">, <PicturehouseUk::Screening ...>]
69
130
  def screenings
70
131
  film_nodes.map do |node|
71
132
  parser = PicturehouseUk::Internal::FilmWithScreeningsParser.new node.to_s
72
133
  parser.showings.map do |screening_type, times|
73
134
  times.map do |time|
74
- varient = screening_type == '2d' ? nil : screening_type
75
- PicturehouseUk::Screening.new parser.film_name, self.name, time, varient
135
+ variant = screening_type == '2d' ? nil : screening_type
136
+ PicturehouseUk::Screening.new parser.film_name, self.name, time, variant
76
137
  end
77
138
  end
78
139
  end.flatten
79
140
  end
80
141
 
142
+ # The street adress of the cinema
143
+ # @return a String
144
+ # @example
145
+ # cinema = PicturehouseUk::Cinema.find('Dukes_At_Komedia')
146
+ # cinema.street_address
147
+ # #=> '44-47 Gardner Street'
148
+ # @note Uses the standard method naming as at http://microformats.org/wiki/adr
149
+ def street_address
150
+ address_strings[0]
151
+ end
152
+
81
153
  private
82
154
 
83
155
  def self.cinema_links
@@ -99,6 +171,31 @@ module PicturehouseUk
99
171
  Nokogiri::HTML(homepage_response)
100
172
  end
101
173
 
174
+ def address_parts
175
+ if pure_address_parts.length > 0 && pure_address_parts[0].match(/\d+\Z/)
176
+ ["#{pure_address_parts[0]} #{pure_address_parts[1]}"] + pure_address_parts[2..-1]
177
+ else
178
+ pure_address_parts
179
+ end
180
+ end
181
+
182
+ def address_strings
183
+ if address_parts && address_parts.length > 0
184
+ address_parts[0..post_code_index]
185
+ else
186
+ # this is a horrendous hack for Hackney Picturehouse
187
+ address_node.css('p').to_s.split('Box Office')[0].split('<br> ')[1..-1]
188
+ end
189
+ end
190
+
191
+ def address_node
192
+ parsed_contact_us.css('.box6 .txt6')
193
+ end
194
+
195
+ def contact_us_response
196
+ @contact_us_response ||= HTTParty.get("#{@url}Hires_Info/Contact_Us/")
197
+ end
198
+
102
199
  def cinema_response
103
200
  @cinema_response ||= HTTParty.get(@url)
104
201
  end
@@ -111,5 +208,18 @@ module PicturehouseUk
111
208
  Nokogiri::HTML(cinema_response)
112
209
  end
113
210
 
211
+ def parsed_contact_us
212
+ Nokogiri::HTML(contact_us_response)
213
+ end
214
+
215
+ def post_code_index
216
+ address_parts.index { |e| e.match /[A-Z]{1,2}\d{1,2}[A-Z]?\s\d{1,2}[A-Z]{1,2}/ }
217
+ end
218
+
219
+ def pure_address_parts
220
+ @pure_address_parts = address_node.css('.cinemaListBox').map do |e|
221
+ e.children[0].to_s
222
+ end.select { |e| e != '' }
223
+ end
114
224
  end
115
225
  end
@@ -10,14 +10,14 @@ module PicturehouseUk
10
10
  # @return [Time] the UTC time of the screening
11
11
  attr_reader :when
12
12
  # @return [String] the type of screening (2D, 3D, IMAX...)
13
- attr_reader :varient
13
+ attr_reader :variant
14
14
 
15
15
  # @param [String] film_name the film name
16
16
  # @param [String] cinema_name the cinema name
17
17
  # @param [Time] time datetime of the screening (UTC preferred)
18
- # @param [String] varient the type of showing (e.g. 3d/baby/live)
19
- def initialize(film_name, cinema_name, time, varient=nil)
20
- @cinema_name, @film_name, @varient = cinema_name, film_name, varient
18
+ # @param [String] variant the type of showing (e.g. 3d/baby/live)
19
+ def initialize(film_name, cinema_name, time, variant=nil)
20
+ @cinema_name, @film_name, @variant = cinema_name, film_name, variant
21
21
  @when = time.utc? ? time : TZInfo::Timezone.get('Europe/London').local_to_utc(time)
22
22
  end
23
23
 
@@ -26,5 +26,11 @@ module PicturehouseUk
26
26
  def date
27
27
  @when.to_date
28
28
  end
29
+
30
+ # @deprecated Please use {#variant} instead, I can't spell
31
+ def varient
32
+ warn "Please use #variant instead, I can't spell"
33
+ variant
34
+ end
29
35
  end
30
36
  end
@@ -1,6 +1,6 @@
1
1
  # Ruby interface for http://www.picturehouses.co.uk
2
- # @version 1.0.1
2
+ # @version 1.0.2
3
3
  module PicturehouseUk
4
4
  # Gem version
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
@@ -0,0 +1,1026 @@
1
+
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml"
6
+ xmlns:og="http://opengraphprotocol.org/schema/"
7
+ xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="en" lang="en">
8
+ <head>
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>
11
+
12
+ <meta name="keywords" content="picturehouse, cinema, picture house, Abbeygate Picturehouse" />
13
+
14
+
15
+ <meta name="description" content="Contact Us | Hires &amp; Info at Abbeygate Picturehouse | Bury St Edmunds" />
16
+
17
+ <script type="text/javascript">
18
+ var venue = 'Abbeygate_Picturehouse';
19
+ var trailer = {height:288,width:510};
20
+ </script>
21
+
22
+
23
+
24
+ <link rel="stylesheet" href="/site-media/css/cityscreen/global.201308021435.css" />
25
+
26
+
27
+ <!--[if IE 6]>
28
+ <link rel="stylesheet" href="/site-media/css/cityscreen/ie6.v3.min.css" type="text/css" />
29
+ <![endif]-->
30
+
31
+ <!--[if IE 7]>
32
+ <link rel="stylesheet" href="/site-media/css/cityscreen/ie7.v1.min.css" type="text/css" />
33
+ <![endif]-->
34
+ <meta name="google-site-verification" content="tfGR4gRo-YG-57LfPFX3Pjv0VqsFRPKIs2ioVOH-3f8" />
35
+
36
+ <meta property="fb:app_id" content="" />
37
+ <meta property="og:type" content="" />
38
+ <meta property="og:title" content="Contact Us | Hires &amp; Info at Abbeygate Picturehouse | Bury St Edmunds" />
39
+ <meta property="og:url" content="" />
40
+ <meta property="og:site_name" content="Picturehouses" />
41
+ <meta property="og:description" content="" />
42
+ <meta property="og:image" content="" />
43
+
44
+
45
+ <link id="canonical" rel="canonical" href="/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/" />
46
+
47
+
48
+
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>
55
+
56
+ <link rel="stylesheet" type="text/css" href="http://partner.mymovies.net/html5/jqtools/1.css"/>
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>
59
+ <script SRC="http://flvplayer.mymovies.net/includes/sdc_tag.js" type="text/javascript"></script>
60
+
61
+ <script type="text/javascript" charset="utf-8" src="/site-media/js/cityscreen/site.201308042128.js"></script>
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"/>
65
+
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");
69
+ mywindow.focus();
70
+ }
71
+ </script>
72
+ <script type="text/javascript">
73
+ docCookies = {
74
+ getItem: function (sKey) {
75
+ if (!sKey || !this.hasItem(sKey)) { return null; }
76
+ return unescape(document.cookie.replace(new RegExp("(?:^|.*;\\s*)" + escape(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*"), "$1"));
77
+ },
78
+ /**
79
+ * docCookies.setItem(sKey, sValue, vEnd, sPath, sDomain, bSecure)
80
+ *
81
+ * @argument sKey (String): the name of the cookie;
82
+ * @argument sValue (String): the value of the cookie;
83
+ * @optional argument vEnd (Number, String, Date Object or null): the max-age in seconds (e.g., 31536e3 for a year) or the
84
+ * expires date in GMTString format or in Date Object format; if not specified it will expire at the end of session;
85
+ * @optional argument sPath (String or null): e.g., "/", "/mydir"; if not specified, defaults to the current path of the current document location;
86
+ * @optional argument sDomain (String or null): e.g., "example.com", ".example.com" (includes all subdomains) or "subdomain.example.com"; if not
87
+ * specified, defaults to the host portion of the current document location;
88
+ * @optional argument bSecure (Boolean or null): cookie will be transmitted only over secure protocol as https;
89
+ * @return undefined;
90
+ **/
91
+ setItem: function (sKey, sValue, vEnd, sPath, sDomain, bSecure) {
92
+ if (!sKey || /^(?:expires|max\-age|path|domain|secure)$/.test(sKey)) { return; }
93
+ var sExpires = "";
94
+ if (vEnd) {
95
+ switch (typeof vEnd) {
96
+ case "number": sExpires = "; max-age=" + vEnd; break;
97
+ case "string": sExpires = "; expires=" + vEnd; break;
98
+ case "object": if (vEnd.toGMTString != undefined) { sExpires = "; expires=" + vEnd.toGMTString(); } break;
99
+ }
100
+ }
101
+ document.cookie = escape(sKey) + "=" + escape(sValue) + sExpires + (sDomain ? "; domain=" + sDomain : "") + (sPath ? "; path=" + sPath : "") + (bSecure ? "; secure" : "");
102
+ },
103
+ removeItem: function (sKey) {
104
+ if (!sKey || !this.hasItem(sKey)) { return; }
105
+ var oExpDate = new Date();
106
+ oExpDate.setDate(oExpDate.getDate() - 1);
107
+ document.cookie = escape(sKey) + "=; expires=" + oExpDate.toGMTString() + "; path=/";
108
+ },
109
+ hasItem: function (sKey) { return (new RegExp("(?:^|;\\s*)" + escape(sKey).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=")).test(document.cookie); }
110
+ };
111
+ jQuery(document).ready(function(){
112
+ if ((docCookies.getItem('accepted') === null)) {
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>');
115
+ jQuery('#cookie_accepted').click(function() {
116
+ jQuery('#cookie_message').hide();
117
+ docCookies.setItem('accepted', 'dismissed', new Date(2014, 1, 1), '/');
118
+ });
119
+ }
120
+ });
121
+ </script>
122
+ <script type="text/javascript">
123
+ var apiHost = (("https:" == document.location.protocol) ? "https://" : "http://");
124
+ var websales_url = ''.replace('http://', apiHost);
125
+ var secure_websales_url = 'https://www.picturehouses.co.uk';
126
+ newman_prefix = 'newman';
127
+ setup_api();
128
+ </script>
129
+
130
+ <script type="text/javascript">
131
+ newman_prefix = 'newman';
132
+ document.write(unescape("%3Cscript src='" + websales_url + "/jswebsales/static/customer.201308042153.js' type='text/javascript'%3E%3C/script%3E"));
133
+ </script>
134
+
135
+ <script type="text/javascript">
136
+ 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>');
138
+
139
+ var url = '/fs/';
140
+ if ('BSE' !== 'global') {
141
+ url = '/cinema/Abbeygate_Picturehouse' + url;
142
+ }
143
+ jQuery('.typeahead').typeahead({
144
+ name:'films',
145
+ prefetch:{url:url,
146
+ ttl:0},
147
+ limit:30,
148
+ ttl_ms:0
149
+ })
150
+ .on('typeahead:opened', function(evt) {
151
+ var $typeahead = jQuery(this);
152
+ var v = $typeahead.val();
153
+ if (v !== '') {
154
+ _gaq.push(['_trackEvent', 'Search', 'Typing', v]);
155
+ }
156
+ })
157
+ .on('typeahead:selected', function(evt, item) {
158
+ var $typeahead = jQuery(this);
159
+ _gaq.push(['_trackEvent', 'Search', 'Selected', $typeahead.val()]);
160
+ window.location.href = item.uri + '?utm_source=' + window.location.pathname + '&utm_medium=search&utm_campaign=selected';
161
+ })
162
+ .on('typeahead:closed', function(evt, item) {
163
+ var $typeahead = jQuery(this);
164
+ console.log('closed');
165
+ })
166
+ .on('typeahead:autocompleted', function (evt, item) {
167
+ var $typeahead = jQuery(this);
168
+ _gaq.push(['_trackEvent', 'Search', 'Autocompleted', $typeahead.val()]);
169
+ window.location.href = item.uri + '?utm_source=' + window.location.pathname + '&utm_medium=search&utm_campaign=autocompleted';
170
+ }) ;
171
+ jQuery('div.demo form input.typeahead').bind('keypress', function(e) {
172
+ if(e.keyCode===13){
173
+ jQuery('div.demo form').submit();
174
+ }
175
+ });
176
+ initialize_api('Abbeygate_Picturehouse', '', 'BSE');
177
+ });
178
+ </script>
179
+ </head>
180
+
181
+ <body>
182
+
183
+ <div id="wrapper">
184
+
185
+
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
+ <h1>
201
+
202
+ <a href="/cinema/Abbeygate_Picturehouse/" id="header_logo" class="BSE" alt="Abbeygate Picturehouse"></a>
203
+
204
+ </h1>
205
+ <div id="header_right">
206
+ <a href="#" id="qb" rel="nofollow" class="quickbook_button"></a>
207
+ <form rel="nofollow" id ="searchForm" action="/cinema/Abbeygate_Picturehouse/Search/">
208
+ <input type="text" name="header_search" id="header_search" value=""/>
209
+ </form>
210
+ <div id="quickbook_layer">
211
+ <div class="quickbook_layer_spacing">
212
+ <form>
213
+ <select id="cinemaField"><option value="">Cinema</option></select>
214
+ <select id="filmField"><option value="">Film</option></select>
215
+ <select id="dateField"><option value="">Date</option></select>
216
+ <select id="showField"><option value="">Time</option></select>
217
+ <div class="right"><a href="#" id="go" class="button_book">Book</a></div>
218
+ </form>
219
+ </div>
220
+ </div>
221
+ </div>
222
+
223
+ <div class="top-links">
224
+ <div class="top-links-icons">
225
+ <a class="i-newsletter" href="/cinema/Abbeygate_Picturehouse/Connect/Email_News/">
226
+ <i class="t-icon"><i></i></i>
227
+ <span class="s-tooltip">
228
+ <span class="st-tl"></span><span class="st-tr"></span>
229
+ <strong>Newsletter</strong>
230
+ </span>
231
+ </a>
232
+
233
+ <span class="hide"> | </span>
234
+
235
+ <a class="i-facebook" href="/cinema/Abbeygate_Picturehouse/Connect/Facebook/">
236
+ <i class="t-icon"><i></i></i>
237
+ <span class="s-tooltip">
238
+ <span class="st-tl"></span><span class="st-tr"></span>
239
+ <strong>Facebook</strong>
240
+ </span>
241
+ </a>
242
+
243
+ <span class="hide"> | </span>
244
+
245
+ <a class="i-twitter" href="/cinema/Abbeygate_Picturehouse/Connect/Twitter/">
246
+ <i class="t-icon"><i></i></i>
247
+ <span class="s-tooltip">
248
+ <span class="st-tl"></span><span class="st-tr"></span>
249
+ <strong>Twitter</strong>
250
+ </span>
251
+ </a>
252
+ </div>
253
+
254
+
255
+ <span class="tl-label">MyPicturehouse:</span>
256
+ <a href="#login_form" id="login_formfancybox-link" class="fancybox-link"><strong>Sign in / Register</strong></a>
257
+
258
+
259
+
260
+ </div>
261
+
262
+
263
+
264
+
265
+
266
+ <div class="basket" style="top:50px;right:15px;position:absolute;"></div>
267
+ <div class="dummy-top-links" class="hide"></div>
268
+
269
+ </div>
270
+
271
+ <div class="hide">
272
+ <div id="login_form" class="popup-form g-clear">
273
+ <form method="post" action="/loyalty/login_process" name="login_form">
274
+ <div class="form-left-part">
275
+ <h3>Sign in</h3>
276
+ <p class="error login_form" style="color:red; margin:0; line-height:1em; display:None;"></p>
277
+
278
+ <label for="">Email address</label>
279
+ <span class="text">
280
+ <i class="t-tl"></i><i class="t-tr"></i>
281
+ <input type="text" id="loginemail" name="loginemail"/>
282
+ </span>
283
+
284
+ <div class="clearall"></div>
285
+
286
+ <label for="">Password</label>
287
+ <span class="text">
288
+ <i class="t-tl"></i><i class="t-tr"></i>
289
+ <input type="password" id="loginpassword" name="loginpassword"/>
290
+ </span>
291
+
292
+ <div class="clearall"></div>
293
+
294
+ <a class="lightgreen" href="#forgotpassword_form" id="forgotpasswordbutton" title="Forgot your password?"><strong>Forgot your password?</strong></a>
295
+
296
+ <input type="hidden" value="true" name="nomd5"/>
297
+ <div class="checkbox">
298
+ <input id="loginremember_me" type="checkbox" name="loginremember_me"/>
299
+ <label for="">Keep me signed in</label>
300
+ </div>
301
+
302
+ <div class="clearall"></div>
303
+
304
+ <span class="button">
305
+ <i class="b-tl"></i><i class="b-tr"></i>
306
+ <input type="submit" value="Sign in" id="loginbutton"/>
307
+ </span>
308
+ </div>
309
+ </form>
310
+
311
+ <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>
314
+ <p class="error register_form" style="color:red; margin:0; line-height:1em; display:None;"></p>
315
+
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>
321
+
322
+ <div class="clearall"></div>
323
+
324
+ <label for="">Email address</label>
325
+ <span class="text">
326
+ <i class="t-tl"></i><i class="t-tr"></i>
327
+ <input type="text" id="membership_myphcustomer_email" />
328
+ </span>
329
+
330
+ <div class="clearall"></div>
331
+
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
+ <span class="button">
338
+ <i class="b-tl"></i><i class="b-tr"></i>
339
+ <input type="submit" id="createaccountbutton" value="Create account" />
340
+ </span>
341
+
342
+ <div class="clearall"></div>
343
+ <br />
344
+
345
+ <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.
350
+ </div>
351
+
352
+ </div>
353
+ </div>
354
+ <div class="hide">
355
+ <div id="forgotpassword_form" class="popup-form g-clear">
356
+ <div class="form-left-part">
357
+ <h3>Forgot your password</h3>
358
+ <p>Enter your email address so that we can email you the password</p>
359
+
360
+ <p class="error forgotpassword_form" style="color:red; margin:0; line-height:1em; display:None;"></p>
361
+
362
+ <label for="">Email address</label>
363
+
364
+ <span class="text">
365
+ <i class="t-tl"></i><i class="t-tr"></i>
366
+ <input type="text" id="forgot_passwordemail"/>
367
+ </span>
368
+
369
+ <div class="clearall"></div>
370
+
371
+ <span class="button">
372
+ <i class="b-tl"></i><i class="b-tr"></i>
373
+ <input type="submit" value="email new password" id="forgot_password_button"/>
374
+ </span>
375
+ </div>
376
+ </div>
377
+ </div>
378
+ <div class="hide">
379
+ <a href="#message_form" id="popup_message_link"></a>
380
+ <a href="#register_form" id="register_link"></a>
381
+ </div>
382
+ <div class="hide">
383
+ <div id="message_form" class="popup-form g-clear">
384
+ <h3 id="popup_message_box_title"></h3>
385
+
386
+ </div>
387
+ </div>
388
+ <div class="hide">
389
+ <div id="register_form" class="popup-form g-clear">
390
+ <form method="post" action="/loyalty/register_num" name="register_form" id="register">
391
+ <h3>Register</h3>
392
+ <p>Please provide the following details to set up your account.</p>
393
+
394
+ <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">
397
+ <i class="t-tl"></i><i class="t-tr"></i>
398
+ <input type="text" id="registercustomer_num" name="registercustomer_num"/>
399
+ </span>
400
+
401
+ <input type="hidden" value="true" name="nomd5"/>
402
+ <div class="clearall"></div>
403
+ <label for="">First name</label>
404
+ <span class="text">
405
+ <i class="t-tl"></i><i class="t-tr"></i>
406
+ <input type="text" id="registerfirstname" name="registerfirstname"/>
407
+ </span>
408
+
409
+ <div class="clearall"></div>
410
+ <label for="">Surname</label>
411
+ <span class="text">
412
+ <i class="t-tl"></i><i class="t-tr"></i>
413
+ <input type="text" id="registerlastname" name="registerlastname"/>
414
+ </span>
415
+ <input type="hidden" class="broad popup" name="registervenue_id" value="" id="registervenue_id">
416
+ <input type="hidden" class="broad popup" name="registercity" value="" id="registercity">
417
+
418
+ <div class="clearall"></div>
419
+
420
+ <label for="">Email address</label>
421
+ <span class="text">
422
+ <i class="t-tl"></i><i class="t-tr"></i>
423
+ <input type="text" id="registeremail" name="registeremail"/>
424
+ </span>
425
+
426
+ <div class="clearall"></div>
427
+ <label for="">Password</label>
428
+ <span class="text">
429
+ <i class="t-tl"></i><i class="t-tr"></i>
430
+ <input type="password" id="registerpassword" name="registerpassword"/>
431
+ </span>
432
+
433
+ <div class="clearall"></div>
434
+ <label for="">Confirm password</label>
435
+ <span class="text">
436
+ <i class="t-tl"></i><i class="t-tr"></i>
437
+ <input type="password" id="registerpassword2" name="registerpassword2"/>
438
+ </span>
439
+
440
+ <div class="clearall"></div>
441
+
442
+ <span class="button">
443
+ <i class="b-tl"></i><i class="b-tr"></i>
444
+ <input type="submit" value="Register" id="register_button"/>
445
+ </span>
446
+ </form>
447
+ </div>
448
+ </div>
449
+
450
+
451
+
452
+
453
+ <div id="con_menu">
454
+ <!-- Main menu -->
455
+ <div id="menumain" style="font-size:14px;">
456
+
457
+
458
+ <!-- Seperator -->
459
+
460
+
461
+
462
+ <a href="/" class="menu_ph">
463
+ </a>
464
+
465
+
466
+ <!-- Seperator -->
467
+
468
+
469
+
470
+
471
+
472
+
473
+
474
+
475
+
476
+
477
+ <a href="/cinema/Abbeygate_Picturehouse/Whats_On/" class=
478
+
479
+ "menuitem BSE"
480
+
481
+ ><span class="menuitem_left"></span>What&#39;s On</a>
482
+
483
+
484
+ <!-- Seperator -->
485
+
486
+
487
+
488
+
489
+
490
+ <span class="separator">&nbsp;</span>
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+ <a href="/cinema/Abbeygate_Picturehouse/Coming_Soon/" class=
499
+
500
+ "menuitem BSE"
501
+
502
+ ><span class="menuitem_left"></span>Coming Soon</a>
503
+
504
+
505
+ <!-- Seperator -->
506
+
507
+
508
+
509
+
510
+
511
+ <span class="separator">&nbsp;</span>
512
+
513
+
514
+
515
+
516
+
517
+
518
+
519
+ <a href="/cinema/Abbeygate_Picturehouse/Picturehouse_Membership/" class=
520
+
521
+ "menuitem BSE"
522
+
523
+ ><span class="menuitem_left"></span>Membership</a>
524
+
525
+
526
+ <!-- Seperator -->
527
+
528
+
529
+
530
+
531
+
532
+ <span class="separator">&nbsp;</span>
533
+
534
+
535
+
536
+
537
+
538
+
539
+
540
+ <a href="/cinema/Abbeygate_Picturehouse/News/" class=
541
+
542
+ "menuitem BSE"
543
+
544
+ ><span class="menuitem_left"></span>News</a>
545
+
546
+
547
+ <!-- Seperator -->
548
+
549
+
550
+
551
+
552
+
553
+ <span class="separator">&nbsp;</span>
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+ <a href="/cinema/Abbeygate_Picturehouse/Connect/" class=
562
+
563
+ "menuitem BSE"
564
+
565
+ ><span class="menuitem_left"></span>Connect</a>
566
+
567
+
568
+ <!-- Seperator -->
569
+
570
+
571
+
572
+
573
+
574
+ <span class="separator">&nbsp;</span>
575
+
576
+
577
+
578
+
579
+
580
+
581
+
582
+ <a href="/cinema/Abbeygate_Picturehouse/Picturehouse_Recommends/" class=
583
+
584
+ "menuitem BSE"
585
+
586
+ ><span class="menuitem_left"></span>Recommends</a>
587
+
588
+
589
+ <!-- Seperator -->
590
+
591
+
592
+
593
+
594
+
595
+ <span class="separator">&nbsp;</span>
596
+
597
+
598
+
599
+
600
+
601
+
602
+
603
+ <a href="/cinema/Abbeygate_Picturehouse/Food_Drink/" class=
604
+
605
+ "menuitem BSE"
606
+
607
+ ><span class="menuitem_left"></span>Food &amp; Drink</a>
608
+
609
+
610
+ <!-- Seperator -->
611
+
612
+
613
+
614
+
615
+
616
+ <span class="separator">&nbsp;</span>
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/" class=
625
+
626
+ "menuitem BSE"
627
+
628
+ ><span class="menuitem_left"></span>Hires &amp; Info</a>
629
+
630
+
631
+ <!-- Seperator -->
632
+
633
+
634
+
635
+
636
+
637
+ <span class="separator">&nbsp;</span>
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+ <a href="/cinema/Abbeygate_Picturehouse/Faqs/" class=
646
+
647
+ "menuitem BSE"
648
+
649
+ ><span class="menuitem_left"></span>FAQs</a>
650
+
651
+
652
+
653
+ </div>
654
+ <!-- Ends Main menu -->
655
+ <!-- Sub menu -->
656
+
657
+
658
+ </div>
659
+
660
+
661
+ <div id="con_content">
662
+
663
+ <div class="col_double">
664
+
665
+
666
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Venue_Info/"
667
+
668
+ class="box_tab"
669
+
670
+ ><span class="tab_left"></span>Venue Info</a>
671
+
672
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/"
673
+
674
+ class="box_tab active"
675
+
676
+ ><span class="tab_left"></span>Contact Us</a>
677
+
678
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Press/"
679
+
680
+ class="box_tab"
681
+
682
+ ><span class="tab_left"></span>Press</a>
683
+
684
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Jobs/"
685
+
686
+ class="box_tab"
687
+
688
+ ><span class="tab_left"></span>Jobs</a>
689
+
690
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Venue_Hire/"
691
+
692
+ class="box_tab"
693
+
694
+ ><span class="tab_left"></span>Venue Hire</a>
695
+
696
+ <div style="clear:both;"></div>
697
+
698
+
699
+ <div class="box6">
700
+
701
+
702
+
703
+
704
+ <div class="box6_top"></div>
705
+
706
+
707
+
708
+
709
+
710
+
711
+
712
+
713
+
714
+
715
+
716
+
717
+
718
+ <div class="box6_title">
719
+ <div class="right" style="margin-top: 5px;">
720
+ </div>
721
+ <h1>Contact Us</h1>
722
+ </div>
723
+
724
+ <div class="box6_content">
725
+ <div style="clear:both;"></div>
726
+ <div class="right">
727
+ <div style="margin:10px;">
728
+ <a href="https://addthis.com/bookmark.php?v=250&amp;pub=xa-4af2a5d24013d7f8&amp;username=gswartland" class="button_share addthis_button">&nbsp;</a>
729
+ <script type="text/javascript" src="https://s7.addthis.com/js/250/addthis_widget.js#pub=xa-4af2a5d24013d7f8"></script>
730
+ </div>
731
+
732
+ </div>
733
+ <div class="txt6" style="padding-top: 10px;">
734
+
735
+
736
+ <p>
737
+ <div class="box" style="width:280px;">
738
+ <div class="heading"><span class="newsheading">Abbeygate Picturehouse, Bury St Edmunds</span></div>
739
+ <div class="box1">
740
+ <table cellspacing="0" cellpadding="0" border="0" id="cinemasbox">
741
+ <tbody>
742
+
743
+ <tr><td valign="bottom" class="cinemaListBox">4</td></tr>
744
+ <tr><td valign="bottom" class="cinemaListBox">Hatter Street</td></tr>
745
+ <tr><td valign="bottom" class="cinemaListBox"></td></tr>
746
+ <tr><td valign="bottom" class="cinemaListBox">Bury St Edmunds</td></tr>
747
+ <tr><td valign="bottom" class="cinemaListBox"></td></tr>
748
+ <tr><td valign="bottom" class="cinemaListBox"></td></tr>
749
+ <tr><td valign="bottom" class="cinemaListBox">IP33 1NE</td></tr>
750
+
751
+
752
+ <tr><td valign="bottom" class="cinemaListBox">Box Office Number: 0871 902 5722</td></tr>
753
+
754
+
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">
756
+ /* <![CDATA[ */
757
+ (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
+ /* ]]> */
759
+ </script></td></tr>
760
+
761
+ </tbody>
762
+ </table>
763
+ </div>
764
+ </div>
765
+
766
+ </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>
770
+
771
+
772
+ </div>
773
+ </div>
774
+ <div class="box6_bottom"></div>
775
+ </div>
776
+ </div>
777
+
778
+ <div class="col_spacer"></div>
779
+ <div class="col_single">
780
+
781
+
782
+
783
+
784
+
785
+ <div class="ad">
786
+ <!-- List of tags for the site: Picturehouses, Format "Standard" -->
787
+
788
+ <!-- REMINDER: this function must be pasted inside the website pages. -->
789
+
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 -->
798
+
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
+ </div>
810
+
811
+
812
+
813
+
814
+
815
+ <div class="ad">
816
+
817
+
818
+
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"/>
821
+ </a>
822
+
823
+
824
+
825
+
826
+ </div>
827
+
828
+
829
+
830
+
831
+
832
+ </div>
833
+
834
+
835
+
836
+ </div>
837
+ <div class="clear"></div>
838
+
839
+ <div id="con_footer">
840
+ <a href="http://www.deletelondon.com" target="_blank" id="credit"></a>
841
+ <div id="footer_inner">
842
+ <div class="toplinks txt4">
843
+ <div class="right footer_select" style="width:314px;">
844
+
845
+ <img src="/site-media/images/cityscreen/logo_small.gif" id="logo_small" style="position:relative; left:80px; top:-7px;">
846
+
847
+ <form>
848
+ <select name="selectnav" class="selectnav">
849
+ <option selected="selected" value="">Abbeygate Picturehouse</option>
850
+
851
+ </select>
852
+ </form>
853
+
854
+ </div>
855
+ <div class="footer_menu">
856
+
857
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Venue_Info/">Venue Info</a> <!-- class="BSE" -->
858
+
859
+ <span class="separator">|</span>
860
+
861
+
862
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Contact_Us/">Contact Us</a> <!-- class="BSE" -->
863
+
864
+ <span class="separator">|</span>
865
+
866
+
867
+ <a href="/cinema/Abbeygate_Picturehouse/Faqs/">Faqs</a> <!-- class="BSE" -->
868
+
869
+ <span class="separator">|</span>
870
+
871
+
872
+ <a href="http://corporate.picturehouses.co.uk/venue-hire/">Venue Hire</a> <!-- class="BSE" -->
873
+
874
+ <span class="separator">|</span>
875
+
876
+
877
+ <a href="/cinema/Abbeygate_Picturehouse/Hires_Info/Jobs/">Jobs</a> <!-- class="BSE" -->
878
+
879
+ <span class="separator">|</span>
880
+
881
+
882
+ <a href="http://picturehouseblog.co.uk/">Blog</a> <!-- class="BSE" -->
883
+
884
+ <span class="separator">|</span>
885
+
886
+
887
+ <a href="http://www.youtube.com/picturehousecinemas">YouTube</a> <!-- class="BSE" -->
888
+
889
+
890
+
891
+ </div>
892
+ </div>
893
+ <div class="bottom">
894
+ <div class="footer_col1 bottomtext">
895
+ <a href="/Privacy/">Privacy &amp; Data Protection</a><br>
896
+ <a href="/Terms/">Terms of Admission</a>
897
+ </div>
898
+ <div class="footer_col2 bottomtext">
899
+ Picturehouse Cinemas Limited is a limited company registered in England as company number 2310403 and its registered office is Power Road Studios, 114 Power Road, Chiswick, London, W4 5PY.
900
+ </div>
901
+ <div class="footer_col3 bottomtext">
902
+ 2004 Picturehouse Cinemas Limited
903
+ </div>
904
+ </div>
905
+ </div>
906
+ </div>
907
+ <!-- Ends Footer -->
908
+ <!-- Google Code for Remarketing tag -->
909
+ <!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on
910
+ adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup -->
911
+ <script type="text/javascript">
912
+ /* <![CDATA[ */
913
+ var google_conversion_id = 993965287;
914
+ var google_conversion_label = "ihOBCNmJwAMQ5-n62QM";
915
+ var google_custom_params = window.google_tag_params;
916
+ var google_remarketing_only = true;
917
+ /* ]]> */
918
+ </script>
919
+ <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
920
+ </script>
921
+ <noscript>
922
+ <div style="display:inline;">
923
+ <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/993965287/?
924
+ value=0&amp;label=ihOBCNmJwAMQ5-n62QM&amp;guid=ON&amp;script=0"/>
925
+ </div>
926
+ </noscript>
927
+
928
+
929
+ </div>
930
+
931
+
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
+
948
+ <div id="fb-root"></div>
949
+ <script>(function(d, s, id) {
950
+ var js, fjs = d.getElementsByTagName(s)[0];
951
+ if (d.getElementById(id)) return;
952
+ js = d.createElement(s); js.id = id;
953
+ js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=171233602908051";
954
+ fjs.parentNode.insertBefore(js, fjs);
955
+ }(document, 'script', 'facebook-jssdk'));</script>
956
+
957
+
958
+ <div class="apple_overlay" style="left: 50%;margin-left: -350px;width:640px;display:none;" id="contentWrap">
959
+ <script type="text/javascript">
960
+ function load_trailers(filmid) {
961
+ var film = jQuery('#' + filmid).attr('title');
962
+ _gaq.push(['_trackEvent', 'Trailers', 'Play', film]);
963
+ var h ='<div style="font-family:Arial, Helvetica, sans-serif;" id="trailer_header">';
964
+ if (jQuery('#' + filmid).find('span').length > 1) {
965
+ h = h + '<select id="trailerField">';
966
+ jQuery('#' + filmid).find('span').each(function () {
967
+ var f = jQuery(this);
968
+ h = h + '<option class="overlayed_clip" value="' + f.attr('id') + '" ';
969
+ if (f.attr('title') === film) {
970
+ h = h + 'selected ';
971
+ }
972
+
973
+ h = h + '>' + f.attr('title') + '</option>';
974
+ });
975
+ h = h + '</select>';
976
+ }
977
+ h = h + '<br/><br/></div>';
978
+ jQuery('#trailer_header').replaceWith(h);
979
+ jQuery('#trailerField').change(function () {
980
+ var f = jQuery('#' + jQuery(this).val());
981
+ var pid= f.attr('pid');
982
+ var mid= f.attr('mid');
983
+ var mtid= f.attr('mtid');
984
+ var mti= f.attr('mti');
985
+ var fid= f.attr('fid');
986
+ var fti= f.attr('fti');
987
+ triggerEnd();
988
+ if (mtid === 'ftr') {
989
+ _gaq.push(['_trackEvent', 'Features', 'Change', film]);
990
+ _V_("mm_video").src([
991
+ { type: "video/mp4", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/features/avfid" + mid + "/html5/700.mp4" },
992
+ { type: "video/webm", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/features/avfid" + mid + "/html5/700.webm" },
993
+ { type: "video/ogg", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/features/avfid" + mid + "/html5/700.ogv" }
994
+ ]);
995
+ } else {
996
+ _gaq.push(['_trackEvent', 'Trailers', 'Change', film]);
997
+ _V_("mm_video").src([
998
+ { type: "video/mp4", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/trailers/trid" + mid + "/html5/700.mp4" },
999
+ { type: "video/webm", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/trailers/trid" + mid + "/html5/700.webm" },
1000
+ { type: "video/ogg", src: "http://ml5vid.mymovies.net/filmmedia/film/fid" + fid + "/trailers/trid" + mid + "/html5/700.ogv" }
1001
+ ]);
1002
+ }
1003
+ triggerSDC(fid, mid, mtid, fti, mti, pid);
1004
+ _V_("mm_video").play();
1005
+ return false;
1006
+
1007
+ });
1008
+
1009
+ return false;
1010
+ }
1011
+ </script>
1012
+
1013
+ <div style="font-family:Arial, Helvetica, sans-serif;" id="trailer_header">
1014
+
1015
+ <br/><br/></div>
1016
+
1017
+ <!-- **** MYMOVIES HTML5 VIDEO TAG **** -->
1018
+ <div class="contentWrap" id="content"><video id="mm_video" class="video-js vjs-default-skin" controls preload="auto" width="640" height="360" data-setup="{}"></video></div>
1019
+
1020
+ <script src="http://partner.mymovies.net/html5/js/manage.js" type="text/javascript"></script>
1021
+
1022
+ <!-- **** END MYMOVIES HTML5 VIDEO TAG **** -->
1023
+
1024
+ </div>
1025
+ </body>
1026
+ </html>