donors_choose2 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in donors_choose.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012 michael verdi
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,73 @@
1
+ # DonorsChoose
2
+
3
+ This is a lightweight gem for the Donors Choose Api. It's dead simple to use. Donors Choose requires an api key to make requests. You can get your api key by sending an email to them at apikey[at]donorschoose[dot]org. However, you can start using the gem right away as the Api provides a default key, which is already built into gem. So, if no api key passed as an agrument, the default is used.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'donors_choose2'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install donors_choose2
18
+
19
+ Or Link directly to the master branch (for the most up-to-date hotness)
20
+
21
+ gem donors_choose, github: "verdi327/donors_choose_gem"
22
+
23
+ ## Usage
24
+
25
+ #### The gem has three external method to interact with. It will return an instance of the Project class.
26
+
27
+ ### Sample Call 1 (without own api key)
28
+
29
+ DonorsChooseApi::Project.find_by_url("http://www.donorschoose.org/project/appletv-makes-classroom-tech-imazing/774020/")
30
+
31
+ ### Sample Call 2
32
+
33
+ DonorsChooseApi::Project.find_by_url("http://www.donorschoose.org/project/appletv-makes-classroom-tech-imazing/774020/", API_KEY)
34
+
35
+ ### Other Methods
36
+
37
+ DonorsChooseApi::Project.find_by_id('811882', API_KEY) #=> returns a project object
38
+
39
+ @project.attributes #=> returns a hash of attributes
40
+
41
+ ### The Project class returns these attributes
42
+ * :proposal_url
43
+ * :fund_url
44
+ * :image_url
45
+ * :title
46
+ * :short_description
47
+ * :fulfillment_trailer
48
+ * :percent_funded
49
+ * :cost_to_complete
50
+ * :total_price
51
+ * :free_shipping
52
+ * :teacher_name
53
+ * :grade_level
54
+ * :poverty_level
55
+ * :school_name
56
+ * :city
57
+ * :zip
58
+ * :state_abbr
59
+ * :latitude
60
+ * :longitude
61
+ * :state
62
+ * :subject
63
+ * :resource_type
64
+ * :expiration_date
65
+ * :funding_status
66
+
67
+ ## Contributing
68
+
69
+ 1. Fork it
70
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
71
+ 3. Commit your changes (`git commit -am 'Added some feature'`)
72
+ 4. Push to the branch (`git push origin my-new-feature`)
73
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env rake
2
+ require "bundler/gem_tasks"
@@ -0,0 +1,21 @@
1
+ # -*- encoding: utf-8 -*-
2
+ require File.expand_path('../lib/donors_choose/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.authors = ["michael verdi"]
6
+ gem.email = ["michael.v.verdi@gmail.com"]
7
+ gem.description = %q{Ruby wrapper for the Donors Choose Api}
8
+ gem.summary = %q{Ruby wrapper for the Donors Choose Api}
9
+ gem.homepage = ""
10
+
11
+ gem.files = `git ls-files`.split($\)
12
+ gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
13
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
+ gem.name = "donors_choose2"
15
+ gem.require_paths = ["lib"]
16
+ gem.version = DonorsChoose::VERSION
17
+
18
+ gem.add_runtime_dependency('faraday')
19
+ gem.add_runtime_dependency('nokogiri')
20
+ gem.add_development_dependency('rspec')
21
+ end
@@ -0,0 +1,10 @@
1
+ require "donors_choose/version"
2
+ require "donors_choose/api_key"
3
+ require "donors_choose/api_base"
4
+ require 'donors_choose/donors_count_fetcher'
5
+ require 'donors_choose/client'
6
+ require 'donors_choose/project'
7
+ require 'faraday'
8
+ require 'json'
9
+ require 'nokogiri'
10
+ require 'open-uri'
@@ -0,0 +1,42 @@
1
+ module DonorsChooseApi
2
+ class ApiBaseModel
3
+
4
+ # this is field behavior, it should be in it's own module/class
5
+ def self.fields
6
+ @fields ||= []
7
+ end
8
+
9
+ # keeps us in order (until 1.9.x)
10
+ def self.field_keys
11
+ @field_keys ||= {}
12
+ end
13
+
14
+ def self.field(key, options={}, &block)
15
+ attr_accessor key
16
+ define_method("#{key}=", &block) if block_given?
17
+
18
+ self.field_keys[key] = options.fetch(:key, key.to_s)
19
+ self.fields << key
20
+ end
21
+
22
+ # all this should be included
23
+ def initialize(hash={})
24
+ update_from_json(hash)
25
+ end
26
+
27
+ # currently, mostly overridden
28
+ def update_from_json(hash={})
29
+ unless hash.empty?
30
+ self.class.fields.each do |field|
31
+ key = self.class.field_keys[field]
32
+ self.send("#{field}=".to_sym, hash[key])
33
+ end
34
+ end
35
+ end
36
+
37
+ def attributes
38
+ values = self.class.fields.map { |attribute| self.send(attribute) }
39
+ Hash[self.class.fields.zip(values)]
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,2 @@
1
+ ###default api key from Donors Choose
2
+ API_KEY = "DONORSCHOOSE"
@@ -0,0 +1,34 @@
1
+ module DonorsChooseApi
2
+ class Client
3
+ BASE_URL = "http://api.donorschoose.org"
4
+ DEFAULT_KEY = "DONORSCHOOSE"
5
+
6
+ def initialize
7
+ @connection = Faraday.new(BASE_URL)
8
+ end
9
+
10
+ def data_for(project_url, api_key=DEFAULT_KEY)
11
+ response = @connection.get do |req|
12
+ req.url '/common/json_feed.html'
13
+ req.headers["Accepts"] = "application/json"
14
+ req.params['id'] = grab_id_from_url(project_url)
15
+ req.params['APIKEY'] = api_key
16
+ end
17
+ response.body
18
+ end
19
+
20
+ def get_id(donors_choose_id, api_key=DEFAULT_KEY)
21
+ response = @connection.get do |req|
22
+ req.url '/common/json_feed.html'
23
+ req.headers["Accepts"] = "application/json"
24
+ req.params['id'] = donors_choose_id
25
+ req.params['APIKEY'] = api_key
26
+ end
27
+ response.body
28
+ end
29
+
30
+ def grab_id_from_url(project_url)
31
+ project_url.scan(/\d{4,}/).first
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,15 @@
1
+ module DonorsChooseApi
2
+ module DonorsCountFetcher
3
+
4
+ def donors_to_date
5
+ unless make_connection(self.proposal_url).css('.needs.donors').any?
6
+ "0"
7
+ end
8
+ end
9
+
10
+ def make_connection(donors_choose_proposal_url)
11
+ url = donors_choose_proposal_url
12
+ Nokogiri.HTML(open(url))
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,50 @@
1
+ module DonorsChooseApi
2
+ class Project < DonorsChooseApi::ApiBaseModel
3
+ include DonorsCountFetcher
4
+ DEFAULT_KEY = "DONORSCHOOSE"
5
+
6
+ field :donors_choose_id, :key => 'id'
7
+ field :proposal_url, :key => 'proposalURL'
8
+ field :fund_url, :key => 'fundURL'
9
+ field :image_url, :key => 'imageURL'
10
+ field :title, :key => 'title'
11
+ field :short_description, :key => 'shortDescription'
12
+ field :fulfillment_trailer, :key => 'fulfillmentTrailer'
13
+ field :percent_funded, :key => 'percentFunded'
14
+ field :cost_to_complete, :key => 'costToComplete'
15
+ field :total_price, :key => 'totalPrice'
16
+ field :free_shipping, :key => 'freeShipping'
17
+ field :teacher_name, :key => 'teacherName'
18
+ field :poverty_level, :key => 'povertyLevel'
19
+ field :school_name, :key => 'schoolName'
20
+ field :city, :key => 'city'
21
+ field :state_abbr, :key => 'state'
22
+ field :zip, :key => 'zip'
23
+ field :latitude, :key => 'latitude'
24
+ field :longitude, :key => 'longitude'
25
+ field :expiration_date, :key => 'expirationDate'
26
+ field :funding_status, :key => 'fundingStatus'
27
+ field(:grade_level, :key => 'gradeLevel') { |grade_hash| @grade_level = grade_hash['name'] if grade_hash }
28
+ field(:subject, :key => 'subject') { |subject_hash| @subject = subject_hash['name'] if subject_hash }
29
+ field(:resource_type, :key => 'resource') { |resource_hash| @resource_type = resource_hash['name'] if resource_hash }
30
+ field(:state, :key => 'zone') { |zone_hash| @state = zone_hash['name'] if zone_hash }
31
+
32
+ def self.client
33
+ DonorsChooseApi::Client.new
34
+ end
35
+
36
+ def self.parse(link_url)
37
+ JSON.parse(link_url)
38
+ end
39
+
40
+ def self.find_by_url(link_url, api_key=DEFAULT_KEY)
41
+ response = parse(client.data_for(link_url, api_key))
42
+ new(response['proposals'].first)
43
+ end
44
+
45
+ def self.find_by_id(donors_choose_id, api_key=DEFAULT_KEY)
46
+ response = parse(client.get_id(donors_choose_id, api_key))
47
+ new(response['proposals'].first)
48
+ end
49
+ end
50
+ end
@@ -0,0 +1,3 @@
1
+ module DonorsChoose
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,35 @@
1
+ require 'spec_helper'
2
+
3
+ describe DonorsChooseApi::Client do
4
+ let(:client) { DonorsChooseApi::Client.new }
5
+ SAMPLE_URL = "http://www.donorschoose.org/project/appletv-makes-classroom-tech-imazing/774020/"
6
+ SAMPLE_ID = "811882"
7
+
8
+ describe '#data_for(link_url, api_key)' do
9
+ it 'returns a hash' do
10
+ response = JSON.parse(client.data_for(SAMPLE_URL))
11
+ response.should be_a(Hash)
12
+ end
13
+
14
+ context "confirming that the data is valid" do
15
+ it 'returns a valid title' do
16
+ response = JSON.parse(client.data_for(SAMPLE_URL))
17
+ response['proposals'].first['title'] == "AppleTV Makes Classroom Tech iMazing"
18
+ end
19
+ end
20
+ end
21
+
22
+ describe '#grab_id_from_url(project_url)' do
23
+ it 'returns the donors choose unique id from the url' do
24
+ client.grab_id_from_url(SAMPLE_URL).should == "774020"
25
+ end
26
+ end
27
+
28
+ describe '.get_id(donors_choose_id, api_key)' do
29
+ it 'returns a hash' do
30
+ response = JSON.parse(client.get_id(SAMPLE_ID))
31
+ response.should be_a(Hash)
32
+ end
33
+ end
34
+
35
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe DonorsChooseApi::DonorsCountFetcher do
4
+ SAMPLE_URL = "http://www.donorschoose.org/project/appletv-makes-classroom-tech-imazing/774020/"
5
+ let(:project) { DonorsChooseApi::Project.find_by_url(SAMPLE_URL) }
6
+ let(:sample_data) { File.open("spec/fixtures/sample_donors_choose_response.html") }
7
+
8
+ describe '#make_connection(donors_choose_proposal_url)' do
9
+ it 'returns a parsed nokogiri object' do
10
+ project.make_connection(project.proposal_url).class.should be(Nokogiri::HTML::Document)
11
+ end
12
+ end
13
+
14
+ before(:each) do
15
+ project.stub(:make_connection).and_return(Nokogiri::HTML(sample_data))
16
+ end
17
+
18
+ describe '#donors_to_date(donors_choose_proposal_url = proposal_url)' do
19
+ it 'returns a string' do
20
+ project.donors_to_date.should be_a(String)
21
+ end
22
+
23
+ it 'returns zero if there are no donors' do
24
+ project.donors_to_date.should == "0"
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,4104 @@
1
+
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
73
+
74
+
75
+
76
+
77
+
78
+
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+
92
+
93
+
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+
177
+
178
+
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
207
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
208
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" xmlns:fb="http://www.facebook.com/2008/fbml" lang="en">
209
+ <head>
210
+ <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
211
+ <base href="http://www.donorschoose.org/donors/proposal.html?id=779216" />
212
+ <title>Super Social Sciences</title>
213
+ <meta name="description" content="Save our future! We all know that science and social studies skills are very important to our future and students need to have the basic knowledge of social science skills before they can delve... My students need social studies and science games and activities to help improve their knowledge of new skills presented in the 3rd grade." />
214
+ <meta name="keywords" content="South Carolina Grades 3-5 Social Sciences Math & Science " />
215
+ <link rel="shortcut icon" href="http://cdn.donorschoose.net/images/favicon.ico" />
216
+ <link type="text/css" rel="stylesheet" href="http://cdn.donorschoose.net/styles/global.css?version=201207192090312" />
217
+ <link type="text/css" rel="stylesheet" href="http://cdn.donorschoose.net/styles/wide.css?version=201207192090312" />
218
+
219
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/styles.js?version=201207192090312" ></script>
220
+ <!--[if lt IE 7]>
221
+ <style type="text/css">
222
+ .bodyCorners .corners {background-image:url(../images/cnr_body_wide.gif)}
223
+ </style>
224
+ <![endif]-->
225
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/util.js?version=201207192090312" ></script>
226
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/jquery/jquery-latest.min.js"></script>
227
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/jquery/jquery-ui-1.7.3.custom.min.js"></script>
228
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/jquery/jquery.tools.min.js"></script>
229
+ <script type="text/javascript">/* <![CDATA[ */ self.name = "_orig"; /* ]]> */ </script>
230
+
231
+
232
+ <link rel="canonical" href="http://www.donorschoose.org/project/super-social-sciences/779216/" />
233
+
234
+ <meta property="og:title" content="Super Social Sciences"/>
235
+ <meta property="og:site_name" content="DonorsChoose.org"/>
236
+ <meta property="fb:app_id" content="44550081712"/>
237
+ <meta property="fb:page_id" content="28557150476" />
238
+ <meta property="og:type" content="cause" />
239
+ <meta property="og:url" content="http://www.donorschoose.org/project/super-social-sciences/779216/" />
240
+
241
+ <meta name="geo.placename" content="Pawleys Isl,29585-5806,US" />
242
+ <meta name="geo.position" content="33.456626000000000;-79.137192000000000" />
243
+ <meta name="geo.region" content="US-SC" />
244
+ <meta name="ICBM" content="33.456626000000000,-79.137192000000000" />
245
+
246
+
247
+
248
+
249
+ <meta property="og:image" content="http://www.donorschoose.org/images/user/uploads/small/u107944_sm.jpg?timestamp=1285976392606"/>
250
+
251
+
252
+
253
+
254
+ <link rel="stylesheet" href="http://cdn.donorschoose.net/styles/style_proposal.css?version=201207192090312">
255
+
256
+
257
+ <script type="text/javascript">
258
+ // uses givingCart.html, aka cartAdded.jsp
259
+ // include parseJSON and div id=addedProposalId on page
260
+
261
+ function setDivShim(elem) {
262
+ if( navigator.appName != 'Netscape') {
263
+ var DivRef = document.getElementById(elem);
264
+ if(DivRef.style.display == "block") {
265
+ $('#'+elem).bgiframe();
266
+ }
267
+ }
268
+ }
269
+
270
+ function setActiveDonationAmountStyle(el) {
271
+ el.style.color = "#000000";
272
+ el.style.letterSpacing = "0px";
273
+ el.style.fontSize = "16px";
274
+ if (el.value == "$" || el.value == "any amount") el.value = "";
275
+ }
276
+
277
+ function ajaxAddToCartSubmit(frm) {
278
+ var donAmt = trim(frm.donationAmount.value.replace("$",""));
279
+ donAmt = donAmt.replace(",","");
280
+ frm.donationAmount.value = donAmt;
281
+ var regexp = /^[0-9\.]+$/;
282
+ if (donAmt == "" || donAmt.match(regexp) == null || parseFloat(donAmt) <= 0) {
283
+ alert("Please enter a dollar amount.\n\n(Redeeming a gift card? Enter your code during checkout.)");
284
+ return false;
285
+ } else {
286
+ if ($('.widgetDropdownHolder').css('display') == 'none') {
287
+ frm.widgetStyle.value = "noDropdown";
288
+ } else {
289
+ frm.widgetStyle.value = "dropdown";
290
+ }
291
+
292
+
293
+
294
+ urlString = frm.action + "?callback=ajaxAddToCartStatus";
295
+ for (i=0; i< frm.elements.length; i++) {
296
+ if (frm.elements[i].name != null)
297
+ urlString += "&" + frm.elements[i].name + "=" + frm.elements[i].value;
298
+ }
299
+ var e = document.createElement("script");
300
+ e.src = urlString;
301
+ urlString = urlString.replace('#','');
302
+ e.type="text/javascript";
303
+ frm.style.display = "none";
304
+ document.getElementById("added"+frm.elements["proposalid"].value).innerHTML = '<div align="center"><img src="http://cdn.donorschoose.net/images/loading_circle.gif" /></div>';
305
+ document.getElementsByTagName("head")[0].appendChild(e);
306
+ _gaq.push(['_trackPageview','/cart/add_ajax.html']);
307
+ if (frm.widgetStyle != null && 'Project Page' != '') {
308
+ _gaq.push(['_trackEvent','Project Page', 'Donation Amount',frm.widgetStyle.value,parseInt(frm.donationAmount.value)]);
309
+ }
310
+
311
+
312
+ return false;
313
+ }
314
+ }
315
+ function ajaxAddToCartStatus(data) {
316
+
317
+ if (data.message.indexOf("Funded or expired") > -1) {
318
+ document.getElementById("added"+data.proposalId).innerHTML = '<div style="float:none;text-align:center;padding:2px 0px;" class="viewMessage"><b>' + data.message + '</b></div><div style="clear:both"></div>';
319
+ } else {
320
+ document.getElementById("added"+data.proposalId).innerHTML = '<a target="_top" class="viewCart" href="https://secure.donorschoose.org/donors/givingCart.html"><span>View Cart</span></a><div style="float:left"><div style="float:none" class="viewMessage">' + data.message + '</div><div style="float:none" class="viewCheckout"><a target="_top" href="https://secure.donorschoose.org/donors/givingCart.html?traction=clickCheckout"><span>check out</span> <img style="width:9px" src="http://cdn.donorschoose.net/images/cart/icon_searchcart_arr.gif"></a></div></div><div style="clear:both"></div>';
321
+ }
322
+ createCookie("cartTotal",data.cartTotal,0);
323
+ createCookie("cartItems",data.cartItems,0);
324
+ updateWidgetAmounts();
325
+ if (trim(data.message) != "Added to cart!") {
326
+ if ('Project Page' != '') {
327
+ _gaq.push(['_trackEvent','Project Page', 'Error - Ajax Add', trim(data.message)]);
328
+ }
329
+ }
330
+ getMiniCart();
331
+ if (document.getElementById("wishlist"+data.proposalId)) {
332
+ document.getElementById("wishlist"+data.proposalId).style.display = "none";
333
+ }
334
+ if (document.getElementById("addToChallengeLink"+data.proposalId)) {
335
+ document.getElementById("addToChallengeLink"+data.proposalId).style.display = "none";
336
+ }
337
+ $("#share" + data.proposalId).hide();
338
+ }
339
+
340
+ function setDonationAmountDD(frmName,amount) {
341
+ if (amount == 0) {
342
+ document.forms[frmName].donationAmount.value = "";
343
+ } else {
344
+ document.forms[frmName].donationAmount.value = amount;
345
+ }
346
+ try {
347
+ document.forms[frmName].donationAmount.focus();
348
+ } catch(e) {
349
+ //do nothing
350
+ }
351
+ document.getElementById(frmName+"DD").style.display = "none";
352
+ if (document.forms[frmName].onsubmit()) {
353
+ //ajaxAddToCartSubmit(document.forms[frmName]);
354
+ document.forms[frmName].submit();
355
+ }
356
+ }
357
+
358
+ function updateWidgetAmounts() {
359
+ var holder = document.getElementById('proposal_holder');
360
+ var proposals = holder.getElementsByTagName("table");
361
+ for (var i in proposals) {
362
+ if (proposals[i].id) {
363
+ changeWidgetsForGiftCode(proposals[i].id);
364
+ }
365
+ }
366
+ changeQuickDonateWidgetForGiftCode();
367
+ }
368
+
369
+ function changeWidgetsForGiftCode(proposalID) {
370
+ var cartTotal = readCookie("cartTotal");
371
+ var cartGiftCodeAmount = readCookie("cartGiftCodeAmount");
372
+ if (cartGiftCodeAmount != null && cartGiftCodeAmount > 0) {
373
+ $('.widgetDropdownHolder').css({'display':'block'});
374
+ $('.widgetDropdown').css({'margin-left':'-228px'});
375
+ $('.ddArrow2').css({'display':'inline'});
376
+ $('.ddArrow').css({'display':'inline'});
377
+ $('.dropdownArrow').css({'display':'inline-block'});
378
+ $(".ddInput").addClass("ddInputWithGC");
379
+ } else {
380
+ $('.widgetDropdown').css({'margin-left':'0px'});
381
+ }
382
+ if (document.getElementById('widget'+proposalID+'_complete_amount')) {
383
+ var amountNeededToComplete = (document.getElementById('widget'+proposalID+'_complete_amount').innerHTML);
384
+ }
385
+ if (cartTotal != null && cartTotal > 0 && cartGiftCodeAmount != null && cartGiftCodeAmount > 0) {
386
+ cartGiftCodeAmount = cartGiftCodeAmount/1 - cartTotal/1;
387
+ }
388
+ if (cartGiftCodeAmount != null && cartGiftCodeAmount > 0) {
389
+ if (document.getElementById('widget'+proposalID+'DD') != null) { document.getElementById('widget'+proposalID+'DD').style.width="300px"; }
390
+ if (document.getElementById('simpleWidgetFormDD') != null) { document.getElementById('simpleWidgetFormDD').style.width="300px"; document.getElementById('simpleWidgetFormDD').style.marginLeft="-120px"; }
391
+ try {
392
+ if (amountNeededToComplete/1 >= cartGiftCodeAmount/1) {
393
+ document.getElementById('widget'+proposalID+'_amount_code').innerHTML = '$'+cartGiftCodeAmount+' <em>(gift code only)</em>';
394
+ document.getElementById('widget'+proposalID+'_amount_code').onclick = function() { setDonationAmountDD('widget'+proposalID,cartGiftCodeAmount/1);if('undefined' != typeof(event) )event.returnValue = false;return false; };
395
+ document.getElementById('widget'+proposalID+'_option_code').style.display='block';
396
+ }
397
+ } catch(error) { }
398
+ var donationAmountsToTry = new Array(5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,120,125,150,200,300,400,500,1000);
399
+ for (i in donationAmountsToTry) {
400
+
401
+ try {
402
+ if (document.getElementById('widget'+proposalID+'_option_'+donationAmountsToTry[i])) {
403
+ if (cartGiftCodeAmount/1 == donationAmountsToTry[i]) {
404
+ document.getElementById('widget'+proposalID+'_option_code').style.display='none';
405
+ }
406
+ if (cartGiftCodeAmount/1 > donationAmountsToTry[i]) {
407
+ document.getElementById('widget'+proposalID+'_option_'+donationAmountsToTry[i]).style.display = 'none';
408
+ } else if (cartGiftCodeAmount/1 == donationAmountsToTry[i] && amountNeededToComplete/1 >= donationAmountsToTry[i]) {
409
+ document.getElementById('widget'+proposalID+'_option_'+donationAmountsToTry[i]).style.display = 'block';
410
+ document.getElementById('widget'+proposalID+'_amount_'+donationAmountsToTry[i]).innerHTML = '$'+donationAmountsToTry[i]+' <em>(gift code only)</em>';
411
+ } else {
412
+ document.getElementById('widget'+proposalID+'_option_'+donationAmountsToTry[i]).style.display = 'block';
413
+ document.getElementById('widget'+proposalID+'_amount_'+donationAmountsToTry[i]).innerHTML = '$'+donationAmountsToTry[i]+' <em>(gift code + $' + (donationAmountsToTry[i]/1-cartGiftCodeAmount/1) + ' donation)</em>';
414
+ }
415
+ }
416
+ } catch(error) { }
417
+ }
418
+ try {
419
+ if (amountNeededToComplete/1 <= cartGiftCodeAmount/1) {
420
+ document.getElementById('widget'+proposalID+'_amount_complete').innerHTML = '$'+addCommas(amountNeededToComplete/1)+' complete! <em>($' + addCommas(cartGiftCodeAmount/1-amountNeededToComplete/1) + ' credit will remain)</em>';
421
+ } else {
422
+ document.getElementById('widget'+proposalID+'_amount_complete').innerHTML = '$'+addCommas(amountNeededToComplete/1)+' complete! <em>(gift code + $' + addCommas(amountNeededToComplete/1-cartGiftCodeAmount/1) + ' donation)</em>';
423
+ }
424
+ document.getElementById('widget'+proposalID+'_option_' + amountNeededToComplete).style.display = "block";
425
+ } catch(error) { }
426
+ } else {
427
+ // check whether this menu needs to be changed back
428
+ if (document.getElementById('widget'+proposalID+'DD') && document.getElementById('widget'+proposalID+'DD').style.width=="300px") {
429
+ try {
430
+ document.getElementById('widget'+proposalID+'_option_code').style.display='none';
431
+ document.getElementById('widget'+proposalID+'DD').style.width="150px";
432
+ var donationAmountsToTry = donationAmountsToTry = new Array(5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,120,125,150,200,300,400,500,1000);
433
+ for (i in donationAmountsToTry) {
434
+ try {
435
+ document.getElementById('widget'+proposalID+'_option_'+donationAmountsToTry[i]).style.display = 'block';
436
+ document.getElementById('widget'+proposalID+'_amount_'+donationAmountsToTry[i]).innerHTML = '$'+donationAmountsToTry[i];
437
+ } catch(error) { }
438
+ }
439
+ try {
440
+ var amountNeededToComplete = (document.getElementById('widget'+proposalID+'_complete_amount').innerHTML);
441
+ document.getElementById('widget'+proposalID+'_amount_complete').innerHTML = '$'+amountNeededToComplete+' complete!';
442
+ } catch(error) { }
443
+ } catch(error) { }
444
+ }
445
+ }
446
+ }
447
+
448
+ function changeQuickDonateWidgetForGiftCode() {
449
+ var cartTotal = readCookie("cartTotal");
450
+ var cartGiftCodeAmount = readCookie("cartGiftCodeAmount");
451
+ if (cartTotal != null && cartTotal > 0 && cartGiftCodeAmount != null && cartGiftCodeAmount > 0) {
452
+ cartGiftCodeAmount = cartGiftCodeAmount/1 - cartTotal/1;
453
+ }
454
+ if (cartGiftCodeAmount != null && cartGiftCodeAmount > 0) {
455
+ if (document.getElementById('quickDonateDD') != null) { document.getElementById('quickDonateDD').style.width="300px"; }
456
+ try {
457
+ document.getElementById('quickDonate_amount_code').innerHTML = '$'+cartGiftCodeAmount+' <em>(gift code only)</em>';
458
+ document.getElementById('quickDonate_amount_code').onclick = function() { setDonationAmountDD('quickDonate',cartGiftCodeAmount/1);if('undefined' != typeof(event) )event.returnValue = false;return false; };
459
+ document.getElementById('quickDonate_option_code').style.display='block';
460
+ } catch(error) { }
461
+ var donationAmountsToTry = donationAmountsToTry = new Array(5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,120,125,150,200,300,400,500,1000);
462
+ for (i in donationAmountsToTry) {
463
+ try {
464
+ if (cartGiftCodeAmount/1 == donationAmountsToTry[i]) {
465
+ document.getElementById('quickDonate_option_code').style.display='none';
466
+ }
467
+ if (cartGiftCodeAmount/1 > donationAmountsToTry[i]) {
468
+ document.getElementById('quickDonate_option_'+donationAmountsToTry[i]).style.display = 'none';
469
+ } else if (cartGiftCodeAmount/1 == donationAmountsToTry[i]) {
470
+ document.getElementById('quickDonate_option_'+donationAmountsToTry[i]).style.display = 'block';
471
+ document.getElementById('quickDonate_amount_'+donationAmountsToTry[i]).innerHTML = '$'+donationAmountsToTry[i]+' <em>(gift code only)</em>';
472
+ } else {
473
+ document.getElementById('quickDonate_option_'+donationAmountsToTry[i]).style.display = 'block';
474
+ document.getElementById('quickDonate_amount_'+donationAmountsToTry[i]).innerHTML = '$'+donationAmountsToTry[i]+' <em>(gift code + $' + (donationAmountsToTry[i]/1-cartGiftCodeAmount/1) + ' donation)</em>';
475
+ }
476
+ } catch(error) { }
477
+ }
478
+ } else {
479
+ // check whether this menu needs to be changed back
480
+ if (document.getElementById('quickDonateDD') && document.getElementById('quickDonateDD').style.width=="300px") {
481
+ try {
482
+ document.getElementById('quickDonate_option_code').style.display='none';
483
+ document.getElementById('quickDonateDD').style.width="150px";
484
+ var donationAmountsToTry = donationAmountsToTry = new Array(5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100,120,125,150,200,300,400,500,1000);
485
+ for (i in donationAmountsToTry) {
486
+ try {
487
+ document.getElementById('quickDonate_option_'+donationAmountsToTry[i]).style.display = 'block';
488
+ document.getElementById('quickDonate_amount_'+donationAmountsToTry[i]).innerHTML = '$'+donationAmountsToTry[i];
489
+ } catch(error) { }
490
+ }
491
+ } catch(error) { }
492
+ }
493
+ }
494
+ }
495
+
496
+ function openDonationAmountDD(frmName) {
497
+ if (document.forms[frmName].donationAmount.value == "$" || document.forms[frmName].donationAmount.value == "any amount") {
498
+ document.forms[frmName].donationAmount.value = "";
499
+ setActiveDonationAmountStyle(document.forms[frmName].donationAmount);
500
+ }
501
+ $('.widgetDropdown').css('display','none');
502
+ document.getElementById(frmName+"DD").style.display = "block";
503
+ setDivShim(frmName+"DD");
504
+ if (document.forms[frmName].donationAmount.value == "") {
505
+ var els = document.getElementById(frmName+"DD").getElementsByTagName("a");
506
+ var elsTrimmed = new Array();
507
+ for (i=0;i<els.length;i++) {
508
+ if (els[i].style.display != "none") {
509
+ elsTrimmed.push(els[i]);
510
+ }
511
+ }
512
+ els = elsTrimmed;
513
+ els[0].className = "on";
514
+ for (i=0;i<els.length;i++) {
515
+ els[i].onmouseover = function(e) {
516
+ for (j=0;j<els.length;j++) {
517
+ els[j].className = "";
518
+ }
519
+ var targ;
520
+ if (!e) var e = window.event;
521
+ if (e.target) targ = e.target;
522
+ else if (e.srcElement) targ = e.srcElement;
523
+ if (targ.nodeType == 3) // defeat Safari bug
524
+ targ = targ.parentNode;
525
+ targ.className = "on";
526
+ }
527
+ }
528
+ document.forms[frmName].donationAmount.onkeydown = function(e) {
529
+ if (document.getElementById(frmName + "DD").style.display != "none") {
530
+ var keycode;
531
+ if (window.event) keycode = window.event.keyCode;
532
+ else if (e) keycode = e.which;
533
+
534
+ var selectedPrice = 0;
535
+ for (j=0;j<els.length;j++) {
536
+ if (els[j].className == "on") {
537
+ selectedPrice = j;
538
+ }
539
+ }
540
+ if (keycode == 13) {
541
+ if (selectedPrice != null && els[selectedPrice].getAttribute("onclick") != null) {
542
+ if (typeof(els[selectedPrice].getAttribute("onclick")) == "string") {
543
+ eval(els[selectedPrice].getAttribute("onclick").replace("return false;",""));
544
+ } else {
545
+ var fnAttr = els[selectedPrice].getAttribute("onclick");
546
+ fnAttr();
547
+ }
548
+ }
549
+ document.forms[frmName].donationAmount.focus();
550
+ document.getElementById(frmName + "DD").style.display = "none";
551
+ setDivShim(frmName+"DD");
552
+ return false;
553
+ } else if (keycode == 40) { // down arrow
554
+ if (selectedPrice != null && selectedPrice < els.length - 1) {
555
+ els[selectedPrice].className = "";
556
+ els[selectedPrice+1].className = "on";
557
+ } else if (selectedPrice != null) {
558
+ els[selectedPrice].className = "";
559
+ els[0].className = "on";
560
+ }
561
+ } else if (keycode == 38) { // up arrow
562
+ if (selectedPrice != null && selectedPrice > 0) {
563
+ els[selectedPrice].className = "";
564
+ els[selectedPrice-1].className = "on";
565
+ } else if (selectedPrice != null) {
566
+ els[selectedPrice].className = "";
567
+ els[els.length - 1].className = "on";
568
+ }
569
+ } else {
570
+ document.getElementById(frmName + "DD").style.display = "none";
571
+ setDivShim(frmName+"DD");
572
+ }
573
+ }
574
+ }
575
+ }
576
+ }
577
+
578
+
579
+
580
+ function toggleDonationAmountDD(frmName) {
581
+ if (document.forms[frmName].donationAmount.value == "$" || document.forms[frmName].donationAmount.value == "any amount") {
582
+ document.forms[frmName].donationAmount.value = "";
583
+ setActiveDonationAmountStyle(document.forms[frmName].donationAmount);
584
+ }
585
+ if ($('.widgetDropdownHolder').css('display') == 'none') {
586
+ ajaxAddToCartSubmit(document.forms[frmName]);
587
+ } else {
588
+ if (document.getElementById(frmName+"DD").style.display == "none") {
589
+ openDonationAmountDD(frmName);
590
+ setDivShim(frmName+"DD");
591
+ } else {
592
+ document.getElementById(frmName+"DD").style.display = "none";
593
+ setDivShim(frmName+"DD");
594
+ }
595
+ }
596
+ }
597
+ document.onclick = function(e) {
598
+ var evt = (e)?e:event;
599
+ var theElem = (evt.srcElement)?evt.srcElement:evt.target;
600
+ while(theElem!=null) {
601
+ if((theElem.className).indexOf("ddInput") > -1 || (theElem.className).indexOf("ddArrow") > -1) {
602
+ return true;
603
+ }
604
+ theElem = theElem.offsetParent;
605
+ }
606
+ var widgetDDs = $(".widgetDropdown");
607
+ for (i=0;i<widgetDDs.length;i++) {
608
+ widgetDDs[i].style.display = "none";
609
+ }
610
+ return true;
611
+ }
612
+ if(typeof initNewDDs == 'function') {
613
+ initNewDDs();
614
+ }
615
+ if(typeof initReturnDDs == 'function') {
616
+ initReturnDDs();
617
+ }
618
+
619
+
620
+ </script>
621
+
622
+ <script type="text/javascript">
623
+ $(document).ready(function() {
624
+ if (readCookie("v") != null) {
625
+ $('head').append('<link rel="stylesheet" href="http://cdn.donorschoose.net/styles/returnDonor.css?version=201207192090312" type="text/css" />');
626
+ }
627
+ });
628
+ </script>
629
+
630
+
631
+
632
+
633
+
634
+
635
+
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+
658
+
659
+
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+
682
+
683
+
684
+
685
+
686
+
687
+
688
+
689
+
690
+
691
+
692
+
693
+
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+
704
+ <!-- GOOGLE ANALYTICS TRACKING FOOTER -->
705
+
706
+ <script type="text/javascript">
707
+
708
+ var _gaq = _gaq || [];
709
+ _gaq.push(['_setAccount', 'UA-2016540-1']);
710
+ _gaq.push(['_setDomainName', '.donorschoose.org']);
711
+
712
+ <!-- SET userType BACK TO DONOR -->
713
+ if (window.location.pathname.indexOf("lastingImpact") == -1 && window.location.pathname.indexOf("cartThankYou") == -1 && window.location.pathname.indexOf("cartDonationMessage") == -1 && readCookie("v") != null && readCookie("v") == "donated") {
714
+ //pageTracker._setVar("donor");
715
+ _gaq.push(['_setCustomVar',1,'visitorType','donor',1]);
716
+ createCookie("v","donor",365);
717
+ }
718
+
719
+
720
+
721
+
722
+
723
+
724
+ var l = document.location, s = l.search;
725
+
726
+ _gaq.push(['_trackPageview',l.pathname + s]);
727
+
728
+
729
+
730
+ _gaq.push(['_trackPageLoadTime']);
731
+
732
+ </script>
733
+
734
+ <!-- /GOOGLE ANALYTICS TRACKING FOOTER -->
735
+
736
+ </head>
737
+ <body>
738
+
739
+ <div align="center" id="body1">
740
+ <div id="body2">
741
+
742
+
743
+
744
+
745
+
746
+
747
+
748
+
749
+
750
+
751
+
752
+
753
+
754
+
755
+
756
+
757
+
758
+
759
+
760
+
761
+
762
+
763
+
764
+
765
+
766
+
767
+
768
+
769
+
770
+
771
+
772
+
773
+
774
+
775
+
776
+
777
+
778
+
779
+
780
+
781
+
782
+
783
+
784
+
785
+
786
+
787
+
788
+
789
+
790
+
791
+
792
+
793
+
794
+
795
+
796
+
797
+
798
+
799
+
800
+
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+
813
+
814
+
815
+
816
+
817
+
818
+
819
+
820
+
821
+
822
+ <script type="text/javascript">
823
+
824
+ var baseURL = "http://www.donorschoose.org/";
825
+
826
+
827
+
828
+ var secureBaseURL = "https://secure.donorschoose.org/";
829
+
830
+
831
+
832
+ var baseCacheURL = "http://cdn.donorschoose.net/";
833
+
834
+
835
+
836
+ var pageName = "Project Page";
837
+
838
+ function isLoggedIn() {
839
+
840
+ var loggedInCookie = Get_Cookie('isLoggedIn');
841
+
842
+ if (loggedInCookie == null || loggedInCookie == '') return false;
843
+ return loggedInCookie;
844
+ }
845
+
846
+ function Get_Cookie( name ) {
847
+
848
+ var start = document.cookie.indexOf( name + "=" );
849
+ var len = start + name.length + 1;
850
+ if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) )
851
+ {
852
+ return null;
853
+ }
854
+ if ( start == -1 ) return null;
855
+ var end = document.cookie.indexOf( ";", len );
856
+ if ( end == -1 ) end = document.cookie.length;
857
+ return unescape( document.cookie.substring( len, end ) );
858
+ }
859
+
860
+ </script>
861
+ <style type="text/css">
862
+ #topNavTextLinks #accountDropdown {line-height:1.3em}
863
+ #topNavTextLinks span.sep {padding:0px}
864
+ #myAccountLink {padding:0px 10px}
865
+ #miniAccount {cursor:pointer;float:left;height:14px;line-height:26px;margin:7px 10px 0px 10px;padding:0px 0px 18px 0px;-moz-border-radius:5px 5px 0px 0px;border-radius:5px 5px 0px 0px;}
866
+ #accountDropdown {-moz-border-radius:5px;border-radius:5px;display:none;white-space:nowrap;background-color:#ffffff;z-index:1000;position:absolute;top:23px;left:0px;padding:5px 13px;text-align:left;width:180px;}
867
+ #accountDropdown a {display:block;padding:0px;line-height:1.5em}
868
+ </style>
869
+
870
+
871
+ <script type="text/javascript">
872
+ if (readCookie("hasHeaderHIW") == null) {
873
+ createCookie("hasHeaderHIW","true",0);
874
+ } else if (readCookie("hasHeaderHIW").length < 8) {
875
+ createCookie("hasHeaderHIW",readCookie("hasHeaderHIW") + "1",0);
876
+ }
877
+ </script>
878
+
879
+
880
+
881
+ <script type="text/javascript">
882
+ WebFontConfig = {
883
+ google: { families: [ 'Ubuntu+Condensed::latin' ] }
884
+ };
885
+ (function() {
886
+ var wf = document.createElement('script');
887
+ wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
888
+ '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
889
+ wf.type = 'text/javascript';
890
+ wf.async = 'true';
891
+ var s = document.getElementsByTagName('script')[0];
892
+ s.parentNode.insertBefore(wf, s);
893
+ })();</script>
894
+ <style type="text/css">
895
+ #headerHIW {display:none;padding:5px 0px;background:#b1e1e8;text-align:center;font-size:14px;font-family:arial,helvetica;
896
+ /* filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ddeff3', endColorstr='#b1e1e8'); */ /* for IE */
897
+ /* background: -webkit-gradient(linear, left top, left bottom, from(#ddeff3), to(#b1e1e8)); */ /* for webkit browsers */
898
+ /* background: -moz-linear-gradient(top, #ddeff3, #b1e1e8); */ /* for firefox 3.6+ */
899
+ background: #ffffff;
900
+ /* border-style:solid;border-color:#becdd3;border-width:0px 0px 1px 0px */}
901
+ #headerHIWHolder {width:954px;margin:0px auto;text-align:left}
902
+ #headerLeft {background:url() transparent}
903
+ #hiwDonors {padding:0px 5px 0px 0px;color:#000000;font-size:1.5em;text-align:right;}
904
+ #hiwDonors div {padding:40px 30px 0px 0px;}
905
+ #hiwDonors span {line-height:4em;}
906
+ #hiwDonors .stat {line-height:1em;white-space:nowrap}
907
+ #hiwDonors strong {font-size:1em;font-weight:bold;letter-spacing:-1px}
908
+ .wf-active #hiwDonors strong {display:inline;font-family:'Ubuntu Condensed';font-size:1.8em}
909
+ #hiwDonors a {text-decoration:none;font-size:.8em}
910
+ </style>
911
+ <div id="headerHIW" style="display:none">
912
+ <div id="headerHIWHolder">
913
+ <div style="float:left;width:347px;margin-left:30px">
914
+ <!-- VIDEO -->
915
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/swfobject.js"></script>
916
+ <script type="text/javascript">/* <![CDATA[ */
917
+ swfobject.registerObject("homePageVideo", "8.0.0", "/images/misc/expressInstall.swf");
918
+ /* ]]> */</script>
919
+ <div style="width:347px;height:166px" id="video">
920
+ <!-- old video = CfKamEdZ1sI -->
921
+ <a href="#" onclick="toggleLargeVideo();"><img src="http://cdn.donorschoose.net/images/header/oprah_colbert.png" style="width:347px;height:166px;position:absolute;" border="0" /></a>
922
+ </div>
923
+ <div id="videoOverlay" style="display:none;top:3px;left:0px;position:absolute; background-color: black; width: 100%; height: 100%; z-index:199;" onclick="toggleLargeVideo();">&nbsp;</div>
924
+ <div style="position:absolute;">
925
+ <div style="display:none;width:347px;height:166px;position:absolute;z-index:200;margin-top:-170px;left:0px;" id="largeVideo">
926
+ <div id="largeVideoInner" style="position:absolute;display:none;z-index:202;">
927
+ <div class="close_button" style="position:absolute;top:-15px;right:-15px;z-index:300;"><a href="#" onclick="toggleLargeVideo()"><img src="http://cdn.donorschoose.net/images/close_button.png" height="29" width="29" border="0" alt="youtube video" /></a></div>
928
+ <iframe id="homepage_player" class="youtube-player" type="text/html" width="505" height="438" frameborder="0"></iframe>
929
+ </div>
930
+ </div>
931
+ </div>
932
+
933
+ <script type="text/javascript">
934
+ function toggleLargeVideo() {
935
+ if (document.getElementById('largeVideo').style.display=='none') {
936
+ document.getElementById('homepage_player').src='http://www.youtube.com/embed/PUSdjfh2YjM?autoplay=1&wmode=opaque';
937
+ $('#videoOverlay').height($(document).height());
938
+ $('#videoOverlay').fadeTo('slow',0.5);
939
+ $('#largeVideo').show();
940
+
941
+
942
+
943
+ $('#largeVideo').animate({'left':'+=0px','top':'+=10px','width':'+=152px','height':'+=272px','background-color':'black'}, 'slow', function() { $('#homepage_player').show().width(505).height(438); $('#largeVideoInner').fadeIn('slow'); });
944
+
945
+
946
+ _gaq.push(['_trackEvent','HIW Video','Obama Oprah','Project Page']);
947
+ } else {
948
+ $('#videoOverlay').fadeOut('fast');
949
+
950
+
951
+ $('#largeVideoInner').fadeOut('fast', function() { $('#largeVideo').animate({'left':'+=0px','top':'+=-10px','width':'+=-152px','height':'+=-272px'}, 'slow'); document.getElementById('homepage_player').src=''; $('#largeVideo').fadeOut(); });
952
+
953
+ }
954
+ }
955
+
956
+
957
+
958
+ </script>
959
+ </div>
960
+
961
+ <div id="hiwDonors">
962
+ <a target="_top" id="imATeacher" href="/teacher">I'm a teacher &raquo;</a>
963
+ <div><span class="stat"><strong>2,019</strong> <span>donors helped</span></span> <span class="stat"><strong>68,287</strong> <span>students this week</span></span></div>
964
+ </div>
965
+ <div style="clear:both"></div>
966
+ </div>
967
+ </div>
968
+ <script type="text/javascript">
969
+ if (false || (readCookie("v") == null && (readCookie("hasHeaderHIW") == null || readCookie("hasHeaderHIW") == "true"))) {
970
+ $('#headerHIW').insertBefore('#body2');
971
+ $('#headerHIW').show();
972
+ }
973
+ </script>
974
+
975
+
976
+ <div id="headerBackground" style="background:url(/images/misc/body_bg.jpg) top center repeat-x #abd8ed;">
977
+ <div id="headerLeft">
978
+ <div id="headerRight">
979
+ <div class="topNav">
980
+ <div id="topNavTextLinks">
981
+ <div style="float:left;float:left;height:30px;line-height:30px;padding:0px;margin:5px 0px"><a target="_blank" href="http://help.donorschoose.org/">Help Center</a></div>
982
+ <div id="miniAccount">
983
+ <div id="accountDropdownHolder" style="position:relative;z-index:1000">
984
+ <div id="accountDropdown" onmouseover="showAccountDropdown()" onmouseout="hideAccountDropdown()">
985
+ <a id ="subAccountLink" target="_top" href="https://secure.donorschoose.org/common/myaccount.html">My Account</a>
986
+ <a id="createAccountLink" target="_top" href="https://secure.donorschoose.org/donors/create_password.html" style="display:none">Activate account</a>
987
+ <a id="signOutLink" target="_top" href="https://secure.donorschoose.org/common/signout.html">Sign Out</a>
988
+ <a id="notYouLink" target="_top" href="https://secure.donorschoose.org/common/signout.html" onclick="notYou()">Not You?</a>
989
+ </div><!-- /accountDropdown -->
990
+ </div><!-- /accountDropdownHolder -->
991
+ <span id="sep1" class="sep">|</span><span id="facebookHeaderPhoto" style="display:none"></span><a id="myAccountLink" target="_top" href="https://secure.donorschoose.org/common/myaccount.html">My Account</a><span id="sep2" class="sep">|</span>
992
+
993
+ <span id="noCookieSignoutLink" style="padding:0px"></span>
994
+ </div><!-- /miniAccount -->
995
+ <span style="display:none" id="headerFavLink"><a class="followStarHeader" title="Favorites" href="https://secure.donorschoose.org/donors/mmi.html"><span>Favorites</span></a><span style="padding:0px 10px" class="sep">|</span></span>
996
+ </div><!-- /topNavTextLinks -->
997
+ <script type="text/javascript">
998
+ $('.followStarHeader[title]').tooltip({tipClass: 'tooltipDefault',position: 'bottom right',effect: 'fade',fadeOutSpeed: 100,predelay: 400});
999
+ </script>
1000
+ <div id="miniCart" onclick="parent.location.href='https://secure.donorschoose.org/donors/givingCart.html?traction=clickCartHeaderLink'" class="miniCart"></div>
1001
+
1002
+ </div><!-- /topNav -->
1003
+
1004
+ <div class="topNavBtmRow">
1005
+ <div id="nav2">
1006
+ <a target="_top" class="chooseAProject" href="http://www.donorschoose.org/donors/search.html"><span>Projects</span></a>
1007
+ <a target="_top" class="gifts" href="http://www.donorschoose.org/donors/giftoptions.html"><span>Gift Ideas</span></a>
1008
+ <a target="_top" class="about" href="http://www.donorschoose.org/about"><span>About</span></a>
1009
+ </div><!-- /nav2 -->
1010
+ </div><!-- /topNavBtmRow -->
1011
+ </div><!-- /headerRight -->
1012
+ <a id="logoLink" target="_top" href="http://www.donorschoose.org/homepage/main.html" onclick="getReturnHomePage(this);"><img name="logo" id="logo" style="margin:10px 0px 0px 0px;" src="http://cdn.donorschoose.net/images/header/donorschoose_org.gif" border="0" alt="DonorsChoose.org" /></a><br/>
1013
+ <a id="taglineNewLink" target="_top" href="http://www.donorschoose.org/homepage/main.html"><img name="taglineNew" id="taglineNew" align="left" src="http://cdn.donorschoose.net/images/header/online_charity.gif" border="0" alt="An online charity connecting you to classrooms in need." /></a>
1014
+ <a id="taglineReturnLink" target="_top" href="http://www.donorschoose.org/homepage/main.html"><img name="taglineReturn" id="taglineReturn" align="left" src="http://cdn.donorschoose.net/images/header/teachers_ask.gif" border="0" alt="Teachers ask. You choose. Students learn." /></a>
1015
+ <div style="clear:both"></div>
1016
+ <script type="text/javascript">
1017
+
1018
+ function showSignOutLink() {
1019
+ if (isLoggedIn()) {
1020
+ document.getElementById("signOutLink").style.display = "";
1021
+ } else {
1022
+ document.getElementById("signOutLink").style.display = "none";
1023
+ if (readCookie("userId") == null || readCookie("userId") == "") document.getElementById("subAccountLink").innerHTML = "Sign In";
1024
+ }
1025
+
1026
+ personalizeAccountLinks();
1027
+
1028
+ }
1029
+
1030
+ function showAccountDropdown() {
1031
+ document.getElementById("accountDropdown").style.display = "block";
1032
+ document.getElementById("miniAccount").style.backgroundColor = "#ffffff";
1033
+ }
1034
+ function hideAccountDropdown() {
1035
+ document.getElementById("accountDropdown").style.display = "none";
1036
+ document.getElementById("miniAccount").style.backgroundColor = "transparent";
1037
+ }
1038
+
1039
+ function personalizeAccountLinks() {
1040
+ if (readCookie("userId") != null && readCookie("userId") != "") {
1041
+ if (userName != null && userName != "") {
1042
+ if (isLoggedIn()) {
1043
+ document.getElementById("myAccountLink").href = "https://secure.donorschoose.org/common/myaccount.html";
1044
+ document.getElementById("subAccountLink").href = "https://secure.donorschoose.org/common/myaccount.html";
1045
+ } else if (readCookie("v") != "teacher") {
1046
+ document.getElementById("myAccountLink").href = "http://www.donorschoose.org/donor/" + userId + "?pageType=account";
1047
+ document.getElementById("subAccountLink").href = "http://www.donorschoose.org/donor/" + userId + "?pageType=account";
1048
+ document.getElementById("subAccountLink").innerHTML = "My Account / Sign In";
1049
+ }
1050
+ document.getElementById("myAccountLink").innerHTML = "<b>Hi, " + userName + "</b>";
1051
+ document.getElementById("notYouLink").innerHTML = "Not " + userName + "?";
1052
+ document.getElementById("miniAccount").onmouseover = showAccountDropdown;
1053
+ document.getElementById("miniAccount").onmouseout = hideAccountDropdown;
1054
+ document.getElementById("accountDropdownHolder").style.display = "";
1055
+ }
1056
+ if (userHasPW == null || userHasPW == "0") {
1057
+ document.getElementById("createAccountLink").style.display = "block";
1058
+ document.getElementById("subAccountLink").style.display = "none";
1059
+ }
1060
+ document.getElementById("noCookieSignoutLink").innerHTML = '';
1061
+ document.getElementById("noCookieSignoutLink").style.padding = '0px';
1062
+ } else {
1063
+ document.getElementById("myAccountLink").href = "https://secure.donorschoose.org/common/myaccount.html";
1064
+ document.getElementById("subAccountLink").href = "https://secure.donorschoose.org/common/myaccount.html";
1065
+ document.getElementById("myAccountLink").innerHTML = "My Account";
1066
+ document.getElementById("notYouLink").innerHTML = "";
1067
+ document.getElementById("miniAccount").onmouseover = null;
1068
+ document.getElementById("miniAccount").onmouseout = null;
1069
+ document.getElementById("accountDropdownHolder").style.display = "none";
1070
+ }
1071
+
1072
+ if (isLoggedIn() && readCookie("userId") == null) {
1073
+ document.getElementById("noCookieSignoutLink").innerHTML = '<a href="https://secure.donorschoose.org/common/signout.html" style="padding:0px 9px 0px 4px">Sign Out</a> <span class="sep">!</span>';
1074
+
1075
+ }
1076
+
1077
+ }
1078
+
1079
+ function notYou() {
1080
+ if (isLoggedIn() && readCookie("fbsr_44550081712") != null) {
1081
+ FB.logout(response.authResponse);
1082
+ }
1083
+ eraseCookie("userId");
1084
+ personalizeAccountLinks();
1085
+ hideAccountDropdown();
1086
+ removeFavorites();
1087
+ if (location.href.indexOf("header.html") > -1) {
1088
+ document.getElementById("notYouLink").href += "?go=" + escape("http://www.donorschoose.org/");
1089
+ } else {
1090
+ document.getElementById("notYouLink").href += "?go=" + escape(location.href);
1091
+ }
1092
+ }
1093
+ showSignOutLink();
1094
+
1095
+ function setHeaderMMILink(el) {
1096
+ if (readCookie("favProposalIds") != null || readCookie("favChallengeIds") != null || readCookie("favTeacherIds") != null || readCookie("favSchoolIds") != null) {
1097
+ document.getElementById("headerFavLink").style.display = "";
1098
+ }
1099
+ }
1100
+ if (readCookie("favCookiesSet") != null) {
1101
+ setHeaderMMILink(true);
1102
+ } else if (readCookie("userId") != null && readCookie("userId") != "") {
1103
+ updateFavoritesCookie("setHeaderMMILink", null);
1104
+ }
1105
+
1106
+ </script>
1107
+
1108
+ <div id="ie6_header_error_holder" style="display:none;">&nbsp;</div>
1109
+ <!--[if lt IE 7]>
1110
+ <script type="text/javascript">
1111
+ checkDonorUserAgent(navigator.userAgent);
1112
+ </script>
1113
+ <![endif]-->
1114
+
1115
+ <!-- HOMEPAGE PROMO STRIPE: zone 10001 -->
1116
+
1117
+ <!-- /HOMEPAGE PROMO STRIPE -->
1118
+
1119
+ <!-- SITE-WIDE PROMO STRIPE: zone 55555 -->
1120
+
1121
+ <!-- /SITE-WIDE PROMO STRIPE -->
1122
+
1123
+ <script type="text/javascript">
1124
+ getMiniCart();
1125
+ if (readCookie("v") != null) {
1126
+ document.getElementById("taglineNew").style.display = "none";
1127
+ document.getElementById("taglineReturn").style.display = "block";
1128
+ } else {
1129
+ document.getElementById("taglineNew").style.display = "block";
1130
+ document.getElementById("taglineReturn").style.display = "none";
1131
+ }
1132
+ </script>
1133
+
1134
+
1135
+ <script type="text/javascript">
1136
+
1137
+ var loggedIn = readCookie("isLoggedIn");
1138
+ var fbcookie = readCookie("fbsr_44550081712");
1139
+
1140
+ if (loggedIn && fbcookie != null) {
1141
+ document.getElementById("facebookHeaderPhoto").innerHTML = '<img width="20" src="'+location.protocol+'//graph.facebook.com/'++'/picture?return_ssl_resources=1" /><img src="http://cdn.donorschoose.net/images/header/fb_tn.gif" alt="" />';
1142
+ document.getElementById("facebookHeaderPhoto").style.display = "inline";
1143
+ }
1144
+ </script>
1145
+
1146
+
1147
+ <div id="fb-root"></div>
1148
+ <script type="text/javascript">
1149
+ var ajaxRequest = $.getScript("https://connect.facebook.net/en_US/all.js",
1150
+ function(){
1151
+ clearTimeout(facebookScriptTimeout);
1152
+ });
1153
+ var facebookScriptTimeout = setTimeout(function() {ajaxRequest.abort();clearTimeout(facebookScriptTimeout);}, 1000);
1154
+ </script>
1155
+
1156
+ <script>
1157
+ window.fbAsyncInit = function() {
1158
+ FB.init({appId: '44550081712', status: true, cookie: true, xfbml: true, channelUrl: 'https://secure.donorschoose.org/html/facebookInitChannelUrl.htm'});
1159
+ };
1160
+ </script>
1161
+
1162
+
1163
+ </div><!-- /headerLeft -->
1164
+ </div><!-- /headerBackground -->
1165
+ <!-- /HEADER -->
1166
+
1167
+
1168
+ <div class="bodyCorners">
1169
+ <div class="corners tlc"></div>
1170
+ <div class="corners trc"></div>
1171
+ </div>
1172
+
1173
+ <!-- MAIN BODY -->
1174
+ <div class="borderbox">
1175
+
1176
+
1177
+
1178
+
1179
+ <p id="pickNextProject" style="float:right;padding:0px 10px"></p>
1180
+ <script type="text/javascript">
1181
+ if (readCookie("proposalPickerIds") != null) {
1182
+ var testProposalPickerIds = readCookie("proposalPickerIds").split(",");
1183
+ if (testProposalPickerIds != null && testProposalPickerIds.length > 2) {
1184
+ document.getElementById("pickNextProject").innerHTML = '<a class="pickAProject" href="javascript:void(0)" onclick="pickNextProject(false);return returnFalse();">Pick another project for me</a>';
1185
+ }
1186
+ }
1187
+ </script>
1188
+
1189
+ <h1 class="proposalHeader">
1190
+ Super Social Sciences
1191
+
1192
+
1193
+ <!-- ADD TO WISHLIST -->
1194
+ <a target="_top" id="addToWishlistLink779216" class="addToWishlistLink779216 followStar" onclick="addToWishlist('779216','',this.id); return returnFalse();"><span>Favorite</span></a>
1195
+ <script type="text/javascript">
1196
+ var proposalsOnPage = ['779216'];
1197
+ </script>
1198
+ <!-- /ADD TO WISHLIST -->
1199
+
1200
+ </h1>
1201
+
1202
+
1203
+ <div class="subtitle">
1204
+ Classroom project requested by <strong>Mrs. Keller</strong> on Mar 31, 2012
1205
+ </div>
1206
+
1207
+ <!-- TITLE BAR -->
1208
+
1209
+
1210
+ <!-- /TITLE BAR -->
1211
+
1212
+ <!-- MESSAGES -->
1213
+
1214
+ <div class="errorbar">
1215
+
1216
+
1217
+
1218
+ <div id="backgroundOpacity" style="display:none"></div>
1219
+ <div id="errorMessagePopupHolder"><div id="errorMessagePopup" style="display:none">
1220
+ <div id="errorMessageText">
1221
+
1222
+
1223
+
1224
+
1225
+ </div>
1226
+
1227
+ <div id="messagesCloseBtn" style="text-align:right"><a class="OK" href="#" onclick="hideErrorMessagePopup();return false;"><img style="border:0px" src="/images/cart/btn_ok.gif" alt="OK" /></a></div>
1228
+
1229
+ </div>
1230
+ </div>
1231
+ <script type="text/javascript">
1232
+
1233
+ </script>
1234
+
1235
+
1236
+
1237
+
1238
+ </div>
1239
+
1240
+ <!-- /MESSAGES -->
1241
+
1242
+ <table border="0" cellpadding="0" cellspacing="0" id="table1">
1243
+ <tbody>
1244
+ <tr>
1245
+ <!-- LEFT_NAV -->
1246
+
1247
+ <!-- /LEFT_NAV -->
1248
+
1249
+ <td class="centerNav" id="centerNav" align="left" valign="top">
1250
+ <!-- INNER_BODY -->
1251
+
1252
+
1253
+ <!-- INNER BODY TITLE BAR -->
1254
+
1255
+
1256
+ <!-- /INNER BODY TITLE BAR -->
1257
+
1258
+
1259
+
1260
+
1261
+ <div id="fb-root"></div>
1262
+ <script type="text/javascript">
1263
+ <!--
1264
+ window.fbAsyncInit = function() {
1265
+ FB.init({appId: '44550081712', status: true, cookie: true, xfbml: true});
1266
+ FB.Event.subscribe('edge.create', function(href, widget) {
1267
+ _gaq.push(['_trackEvent','Project Page','FB Like']);
1268
+ });
1269
+ };
1270
+ (function() {
1271
+ var e = document.createElement('script');
1272
+ e.type = 'text/javascript';
1273
+ e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js#xfbml=1';
1274
+ e.async = true;
1275
+ document.getElementById('fb-root').appendChild(e);
1276
+ }());
1277
+ //-->
1278
+ </script>
1279
+
1280
+ <div id="lightboxContainerDTY">
1281
+ <div id="lightboxBackgroundDTY" style="display:none">
1282
+ <div id="lightboxTellAFriend" style="display:none"><iframe id="tellAFriendIframe" name="tellAFriendIframe" style="width:100%;background-color:#ffffff;" width="100%" frameborder="0" onload="setIframeHeight(this)"></iframe></div>
1283
+ </div>
1284
+ </div>
1285
+
1286
+ <script type="text/javascript">
1287
+ function setIframeHeight(f) {
1288
+ try {
1289
+ f.style.height = f.contentWindow.document.body.scrollHeight + "px";
1290
+ } catch(e) {
1291
+ // might be domain mismatch
1292
+ }
1293
+ }
1294
+
1295
+ function getSlides(smallPhotoName) {
1296
+ document.getElementById('tellAFriendIframe').style.height = "1100px";
1297
+ document.getElementById('tellAFriendIframe').src='http://www.donorschoose.org/donors/proposal_lightbox.html?id=779216' + ((location.search != null && location.search.length > 1) ? '&' + location.search.substring(1,location.search.length) : '');
1298
+ //document.getElementById('tellAFriendIframe').src='http://www.donorschoose.org/donors/proposal_lightbox.html?id=779216&rating=&pmaType=&lightbox=' + smallPhotoName;
1299
+ showLightbox('Project Page','TellAFriend');
1300
+ _gaq.push(['_trackEvent','Project Page', 'Slideshow', 'Open']);
1301
+ }
1302
+ </script>
1303
+
1304
+ <!--[if lte IE 6]>
1305
+ <style type="text/css">
1306
+ .rightNav .completed .corners {display:none}
1307
+ #searchProjects .photos {height:1%;overflow:auto}
1308
+ #donationMessages h6 .trc {right:-2px;overflow:hidden}
1309
+ #donationMessages h6 .brc {right:-2px;bottom:-2px}
1310
+ #donationMessages h6.teacher .trc {right:-2px;overflow:hidden}
1311
+ #donationMessages h6.teacher .brc {right:-2px;bottom:-2px;}
1312
+ .candy .addToCart {margin: 0px 25px 0px 25px}
1313
+ .addToCart .corners {height:10px;overflow:hidden}
1314
+ .addToCart .blc,.addToCart .brc {overflow:auto;bottom:-1px}
1315
+ </style>
1316
+ <![endif]-->
1317
+ <!--[if IE]>
1318
+ <style type="text/css">
1319
+ .giveAnyAmount {zoom:1}
1320
+ </style>
1321
+ <![endif]-->
1322
+
1323
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/getElementsByClassName.js"></script>
1324
+ <script type="text/javascript">
1325
+ function resizeTeacherPhoto(theImage) {
1326
+ if (theImage.height > 130) {
1327
+ theImage.removeAttribute("width");
1328
+ theImage.setAttribute("height","130");
1329
+ }
1330
+ theImage.style.display = "";
1331
+ }
1332
+
1333
+ </script>
1334
+
1335
+ <div style="padding:10px 0px 5px 0px">
1336
+ <a name="title"></a>
1337
+
1338
+ <div id="photoAndEssay">
1339
+
1340
+ <!-- PHOTO -->
1341
+ <div class="photo">
1342
+
1343
+ <div style="height: 210px; overflow:hidden;"><a onclick="_gaq.push(['_trackEvent','Project Page','Classroom Photo', 'Teacher Search']);" href="http://www.donorschoose.org/we-teach/107944" title="See this teacher's page"><img onerror="getDefaultImage(this,'http://cdn.donorschoose.net/images/examples/default.gif')" alt="Classroom Photo" src="http://www.donorschoose.org/images/user/uploads/small/u107944_sm.jpg?timestamp=1285976392606"></a></div>
1344
+
1345
+
1346
+ <div class="classroomOf">
1347
+ <a onclick="_gaq.push(['_trackEvent','Project Page','Tab 1', 'Teacher Search']);" href="http://www.donorschoose.org/we-teach/107944" title="See this teacher's page">Mrs. Keller</a>
1348
+ <a class=".favTeacherLink followStar" id="favTeacherLink" href="javascript:void(0)" onclick="addOrRemoveFavorite('107944','teacherId',this.id,'Mrs. Keller'); return returnFalse();"></a>
1349
+ </div>
1350
+
1351
+
1352
+ <style type="text/css">
1353
+ #followEmailHolder {font-weight:normal;font-size:14px;white-space:normal;position:relative;display:inline-block;line-height:1.2em;}
1354
+ .followLinkHolder, #followLinkHolder {background:transparent;}
1355
+ .followLinkHolder a,#followLinkHolder a,#followLinkHolder2 a {display:inline}
1356
+ .followLinkHolder img,#followLinkHolder img,#followLinkHolder2 img {display:none;vertical-align:middle}
1357
+ .followLinkHolder a img,#followLinkHolder a img,#followLinkHolder2 a img {display:inline}
1358
+ .followLinkHolder.loading a,#followLinkHolder.loading a,#followLinkHolder2.loading a {display:none}
1359
+ .followLinkHolder.loading img,#followLinkHolder.loading img,#followLinkHolder2.loading img {display:inline;vertical-align:middle;margin:0px 10px}
1360
+ .followLinkHolder.loading a img,#followLinkHolder.loading a img,#followLinkHolder2.loading a img {display:none}
1361
+ </style>
1362
+
1363
+ <!-- FOLLOW FORM -->
1364
+ <div id="followEmailHolder" style="position:relative">
1365
+ <div id="followEmail">
1366
+ <div style="text-align:right;"><a href="#" onclick="document.getElementById('followEmail').style.display='none';return false;"><img src="http://cdn.donorschoose.net/images/btn_close.gif" alt="x" /></a></div>
1367
+ <form name="followEmailForm" id="followEmailForm" method="post" action="https://secure.donorschoose.org/common/mmi_update.html" target="followIframe">
1368
+ <input type="hidden" name="action" value="true" />
1369
+ <input type="hidden" name="callback" value="window.parent.followStatus" />
1370
+
1371
+ <input type="hidden" name="challengeId" value="" />
1372
+ <input type="hidden" name="teacherId" value="107944" />
1373
+ <input type="hidden" name="schoolId" value="" />
1374
+ <input type="hidden" name="searchURL" value="" />
1375
+ <input type="hidden" name="followAbout" value="Mrs. Keller's projects" />
1376
+ <input type="hidden" name="remove" value="false" />
1377
+ <input type="hidden" name="callbackSecure" value="false" />
1378
+
1379
+ <div id="followEmailMessage">To save your Favorites:</div>
1380
+ <input style="width:170px" type="text" name="email" value="email" class="textFieldWithInnerLabel" onfocus="resetTextFieldWithInnerLabel(this,'email')" disabled />
1381
+ <div id="followPassword" style="display:none"><input style="width:170px;display:none" id="followPasswordField" type="password" name="password" value="" disabled />
1382
+ <input style="width:170px" id="followPasswordFieldFAKE" type="text" name="passwordFAKE" value="password" class="textFieldWithInnerLabel" onfocus="resetPasswordFieldWithInnerLabel(this.id)" />
1383
+ <div style="font-size:11px;">(<a href="https://secure.donorschoose.org/donors/forgot_password.html">forgot password</a>)</div></div>
1384
+ <div style="text-align:right"><input type="submit" name="followSubmit" value="submit" onclick="setFollowSubmitStyles()" /></div>
1385
+ </form>
1386
+ </div>
1387
+ </div>
1388
+
1389
+ <!-- ADD TO WISHLIST FORM -->
1390
+ <div id="wishlistHolder" style="position:relative;display:inline-block">
1391
+ <div class="addToWishlist" id="wishlist" style="display:none">
1392
+ <a class="close" href="javascript:void(0)" onclick="closeFavPopup(document.addToWishlistForm.proposalId.value);"><img src="http://cdn.donorschoose.net/images/btn_close.gif" alt="x"></a>
1393
+ <div id="addToWishlistStatus" class="message"></div>
1394
+ <form name="addToWishlistForm" id="addToWishlistForm" action="https://secure.donorschoose.org/common/wishlist_update.html" method="post" onsubmit="addToWishlist(document.addToWishlistForm.proposalId.value,document.addToWishlistForm.verify.value,''); return returnFalse();" target="wishlistIframe">
1395
+ <input type="hidden" name="callback" value="window.parent.addToWishlistStatus" />
1396
+ <input type="hidden" name="action" value="add" />
1397
+ <input type="hidden" name="active" value="true" />
1398
+ <input type="hidden" name="proposalId" value="" />
1399
+ <input type="hidden" name="callbackSecure" value="false" />
1400
+ <input type="hidden" name="verify" value="" />
1401
+ <div id="addToWishlistEmail" class="message" style="display:none"><input style="width:170px" type="text" name="email" value="email" class="textFieldWithInnerLabel" onfocus="resetTextFieldWithInnerLabel(this,'email')" />
1402
+ <div id="addToWishlistPassword" style="display:none">
1403
+ <input style="width:170px;display:none" type="password" name="password" value="" id="addToWishlistPWField" />
1404
+ <input style="width:170px;" type="text" name="passwordFAKE" value="password" id="addToWishlistPWFieldFAKE" class="textFieldWithInnerLabel" onfocus="resetPasswordFieldWithInnerLabel(this.id)" />
1405
+ <div style="font-size:11px;">(<a href="https://secure.donorschoose.org/donors/forgot_password.html">forgot password</a>)</div>
1406
+ </div>
1407
+ <div style="text-align:right;padding-top:3px"><input type="submit" name="submitButton" value="submit" /></div></div>
1408
+ </form>
1409
+ </div>
1410
+ </div>
1411
+
1412
+ <script type="text/javascript">
1413
+
1414
+ function closeFavPopup(proposalId) {
1415
+ document.getElementById('wishlist').style.display='none';
1416
+ }
1417
+
1418
+ function setFollowSubmitStyles() {
1419
+ document.getElementById('followEmail').style.display='none';
1420
+ //update the star as if it is already successful
1421
+ try {
1422
+ if (document.followEmailForm.teacherId.value != "") {
1423
+ $('.favTeacherLink' + document.followEmailForm.teacherId.value).addClass("followStarLoading");
1424
+ if ($('.favTeacherLink' + document.followEmailForm.teacherId.value).hasClass("followStar")) $('.favTeacherLink' + document.followEmailForm.teacherId.value).removeClass("followStar").addClass("followStarOn");
1425
+ else $('.favTeacherLink' + document.followEmailForm.teacherId.value).removeClass("followStarOn").addClass("followStar");
1426
+ } else if (document.followEmailForm.schoolId.value != "") {
1427
+ $('.favSchoolLink').addClass("followStarLoading");
1428
+ if ($('.favSchoolLink').hasClass("followStar")) $('.favSchoolLink').removeClass("followStar").addClass("followStarOn");
1429
+ else $('.favSchoolLink').removeClass("followStarOn").addClass("followStar");
1430
+ } else if (document.followEmailForm.challengeId.value != "") {
1431
+ $('.favChallengeLink').addClass("followStarLoading");
1432
+ if ($('.favChallengeLink').hasClass("followStar")) $('.favChallengeLink').removeClass("followStar").addClass("followStarOn");
1433
+ else $('.favChallengeLink').removeClass("followStarOn").addClass("followStar");
1434
+ } else if (document.followEmailForm.searchURL.value != "") {
1435
+ $('.favSearchLink').addClass("followStarLoading");
1436
+ if ($('.favSearchLink').hasClass("followStar")) $('.favSearchLink').removeClass("followStar").addClass("followStarOn");
1437
+ else $('.favSearchLink').removeClass("followStarOn").addClass("followStar");
1438
+ }
1439
+ } catch(e) {
1440
+ //
1441
+ }
1442
+ }
1443
+
1444
+ function addOrRemoveFavorite(id,favoriteType,linkId,labelText) {
1445
+
1446
+ if ($('#'+linkId).hasClass('followStarLoading')) return;
1447
+
1448
+ resetFollowForm(id,favoriteType,linkId,labelText);
1449
+ $('#'+linkId).after(document.getElementById("followEmailHolder"));
1450
+ followSearch();
1451
+ }
1452
+
1453
+ function resetFollowForm(id,followType,linkId,labelText) {
1454
+ document.followEmailForm.challengeId.value = "";
1455
+ document.followEmailForm.teacherId.value = "";
1456
+ document.followEmailForm.schoolId.value = "";
1457
+ document.followEmailForm.searchURL.value = "";
1458
+ document.followEmailForm.followAbout.value = "";
1459
+ document.followEmailForm.elements[followType].value = id;
1460
+ if ($("#" + linkId).hasClass("followStarOn")) {
1461
+ document.followEmailForm.remove.value = "true";
1462
+ document.followEmailForm.followSubmit.value = "Remove";
1463
+ } else {
1464
+ document.followEmailForm.remove.value = "false";
1465
+ document.followEmailForm.followSubmit.value = "Add";
1466
+ }
1467
+ if (labelText != null) document.followEmailForm.followAbout.value = labelText;
1468
+ if (document.followEmailForm.remove.value == "true") {
1469
+ document.getElementById("followEmailMessage").innerHTML = "We'll remove " + document.followEmailForm.followAbout.value + " from your Favorites.";
1470
+ } else {
1471
+ document.getElementById("followEmailMessage").innerHTML = "To save your Favorites:";
1472
+ }
1473
+ }
1474
+
1475
+ function followSearch() {
1476
+
1477
+ _gaq.push(['_trackEvent','Project Page','Follow', 'Click']);
1478
+ if (document.getElementById("followIframe")) {
1479
+ var wiEl = document.getElementById("followIframe");
1480
+ wiEl.parentNode.removeChild(wiEl);
1481
+ }
1482
+ followIframe = document.createElement('iframe');
1483
+ followIframe.setAttribute("id","followIframe");
1484
+ followIframe.setAttribute("name","followIframe");
1485
+ followIframe.setAttribute("width","0");
1486
+ followIframe.setAttribute("height","0");
1487
+ followIframe.setAttribute("frameBorder","0");
1488
+ document.body.appendChild(followIframe);
1489
+ document.followEmailForm.target = "followIframe";
1490
+ if (!isLoggedIn() && readCookie("userId") == null && !isEmailAddress(document.followEmailForm.email.value) ) {
1491
+ document.getElementById("followEmail").style.display = "block";
1492
+ document.followEmailForm.email.disabled = false;
1493
+ } else {
1494
+ if (location.hostname.indexOf("secure") > -1) document.followEmailForm.callbackSecure.value = "true";
1495
+ else document.followEmailForm.callbackSecure.value = "false";
1496
+ if (document.getElementById("followEmail").style.display == "none") document.followEmailForm.email.disabled = true;
1497
+ if (document.getElementById("followPassword").style.display == "none" || document.getElementById("followPasswordField").style.display == "none") document.followEmailForm.password.disabled = true;
1498
+ document.followEmailForm.submit();
1499
+ setFollowSubmitStyles();
1500
+ }
1501
+
1502
+ }
1503
+
1504
+ function followStatus(obj) {
1505
+
1506
+ //reset the star to previous state
1507
+ if (typeof obj.teacherId != "undefined") {
1508
+ $('.favTeacherLink' + obj.teacherId).removeClass('followStarLoading');
1509
+ if ($('.favTeacherLink' + obj.teacherId).hasClass('followStar')) $('.favTeacherLink' + obj.teacherId).removeClass('followStar').addClass('followStarOn');
1510
+ else $('.favTeacherLink' + obj.teacherId).removeClass('followStarOn').addClass('followStar');
1511
+ } else if (typeof obj.schoolId != "undefined") {
1512
+ $('.favSchoolLink').removeClass('followStarLoading');
1513
+ if ($('.favSchoolLink').hasClass('followStar')) $('.favSchoolLink').removeClass('followStar').addClass('followStarOn');
1514
+ else $('.favSchoolLink').removeClass('followStarOn').addClass('followStar');
1515
+ } else if (typeof obj.challengeId != "undefined") {
1516
+ $('.favChallengeLink').removeClass('followStarLoading');
1517
+ if ($('.favChallengeLink').hasClass('followStar')) $('.favChallengeLink').removeClass('followStar').addClass('followStarOn');
1518
+ else $('.favChallengeLink').removeClass('followStarOn').addClass('followStar');
1519
+ } else if (typeof obj.searchURL != "undefined") {
1520
+ $('.favSearchLink').removeClass('followStarLoading');
1521
+ if ($('.favSearchLink').hasClass('followStar')) $('.favSearchLink').removeClass('followStar').addClass('followStarOn');
1522
+ else $('.favSearchLink').removeClass('followStarOn').addClass('followStar');
1523
+ }
1524
+
1525
+ if (obj.success == "true") {
1526
+ eraseCookie("followSuggestionsHeight");
1527
+ showSignOutLink();
1528
+ createCookie("followDate",(new Date()).getTime(),0);
1529
+
1530
+ if (typeof obj.remove != "undefined" && obj.remove == "true") {
1531
+ if (typeof obj.teacherId != "undefined") {
1532
+ $('.favTeacherLink' + obj.teacherId).attr('class','favTeacherLink'+obj.teacherId+' followStar');
1533
+ }
1534
+ else if (typeof obj.schoolId != "undefined") $('.favSchoolLink').attr('class','followStar');
1535
+ else if (typeof obj.challengeId != "undefined") $('.favChallengeLink').attr('class','favChallengeLink followStar');
1536
+ else if (typeof obj.searchURL != "undefined") $('.favSearchLink').attr('class','favSearchLink followStar');
1537
+ } else {
1538
+ if (typeof obj.teacherId != "undefined") {
1539
+ $('.favTeacherLink' + obj.teacherId).attr('class','favTeacherLink'+obj.teacherId+' followStarOn');
1540
+ }
1541
+ else if (typeof obj.schoolId != "undefined") $('.favSchoolLink').attr('class','followStarOn');
1542
+ else if (typeof obj.challengeId != "undefined") $('.favChallengeLink').attr('class','favChallengeLink followStarOn');
1543
+ else if (typeof obj.searchURL != "undefined") $('.favSearchLink').attr('class','favSearchLink followStarOn');
1544
+
1545
+ // also set up toast message
1546
+ toast(obj.message);
1547
+
1548
+ }
1549
+ try {
1550
+ document.getElementById("followSuggestionsHolder").style.height = "auto";
1551
+ getFollowSuggestions(true);
1552
+ } catch(e) {}
1553
+ document.getElementById("followEmail").style.display = "none";
1554
+ document.followEmailForm.email.disabled = true;
1555
+ document.followEmailForm.password.disabled = true;
1556
+ _gaq.push(['_trackEvent','Project Page', 'Follow', 'Success']);
1557
+ } else if (obj.signinRequired) {
1558
+ if (obj.message != null && obj.message != "") document.getElementById("followEmailMessage").innerHTML = obj.message;
1559
+ document.getElementById("followPassword").style.display = "block";
1560
+ document.getElementById("followEmail").style.display = "block";
1561
+ document.followEmailForm.email.disabled = false;
1562
+ document.followEmailForm.password.disabled = false;
1563
+ } else if (obj.emailRequired) {
1564
+ if (obj.message != null && obj.message != "") document.getElementById("followEmailMessage").innerHTML = obj.message;
1565
+ document.getElementById("followEmail").style.display = "block";
1566
+ document.followEmailForm.email.disabled = false;
1567
+ } else {
1568
+ toast(obj.message);
1569
+ document.getElementById("followEmail").style.display = "none";
1570
+ document.followEmailForm.email.disabled = true;
1571
+ document.followEmailForm.password.disabled = true;
1572
+ if (obj.message.toLowerCase().substring("success") > -1) {
1573
+ showSignOutLink();
1574
+ //document.getElementById("followLink").style.display = "none";
1575
+ }
1576
+ }
1577
+ //document.getElementById("followIframe").src = "javascript:false";
1578
+ setUpUserCookies();
1579
+ showSignOutLink();
1580
+ getFavorites(true);
1581
+ }
1582
+
1583
+
1584
+ // add to wishlist
1585
+ function addToWishlist(proposalId,verify,elId) {
1586
+
1587
+ // if in the process of loading, don't submit again
1588
+ if (elId != "" && $('#' + elId).hasClass('followStarLoading')) return;
1589
+
1590
+ // don't reset the form after it has been shown and received input
1591
+ // if (document.getElementById("wishlist").style.display == "none") {
1592
+ document.forms["addToWishlistForm"].elements["proposalId"].value = proposalId;
1593
+ if (verify != null && verify != "") {
1594
+ document.forms["addToWishlistForm"].elements["verify"].disabled = false;
1595
+ document.forms["addToWishlistForm"].elements["verify"].value = verify;
1596
+ } else {
1597
+ document.forms["addToWishlistForm"].elements["verify"].disabled = true;
1598
+ }
1599
+ if ($(".addToWishlistLink" + proposalId).hasClass("followStarOn")) {
1600
+ document.forms["addToWishlistForm"].elements["active"].value = "false";
1601
+ document.forms["addToWishlistForm"].elements["action"].value = "remove";
1602
+ document.getElementById("addToWishlistStatus").innerHTML = '<div>We\'ll remove this project from your Favorites.</div>';
1603
+ document.forms["addToWishlistForm"].elements["submitButton"].value = "Remove";
1604
+ } else {
1605
+ document.forms["addToWishlistForm"].elements["active"].value = "true";
1606
+ document.forms["addToWishlistForm"].elements["action"].value = "add";
1607
+ document.getElementById("addToWishlistStatus").innerHTML = '<div>To save your Favorites:</div>';
1608
+ document.forms["addToWishlistForm"].elements["submitButton"].value = "Add";
1609
+ }
1610
+ // }
1611
+
1612
+
1613
+ $(".addToWishlistLink" + proposalId).addClass("followStarLoading");
1614
+ if (elId != "") $("#" + elId).after($("#wishlistHolder"));
1615
+
1616
+ /*
1617
+ if (!isLoggedIn() && userId != "" && userHasPW == "1" && (!isEmailAddress(document.forms["addToWishlistForm"].email.value) || document.forms["addToWishlistForm"].password.value == "")) {
1618
+ document.getElementById("wishlist").style.display = "";
1619
+ document.getElementById("addToWishlistEmail").style.display = "";
1620
+ document.getElementById("addToWishlistPassword").style.display = "";
1621
+ $('.addToWishlistLink' + proposalId).removeClass('followStarLoading');
1622
+ } else
1623
+ */
1624
+ if (!isLoggedIn() && userId == "" && !isEmailAddress(document.forms["addToWishlistForm"].email.value) ) {
1625
+ document.getElementById("wishlist").style.display = "";
1626
+ document.getElementById("addToWishlistEmail").style.display = "";
1627
+ $('.addToWishlistLink' + proposalId).removeClass('followStarLoading');
1628
+ } else {
1629
+ document.getElementById("wishlist").style.display = "none";
1630
+ if (document.getElementById("addToWishlistEmail").style.display != "none") {
1631
+ document.forms["addToWishlistForm"].email.disabled = false;
1632
+ } else {
1633
+ document.forms["addToWishlistForm"].email.disabled = true;
1634
+ }
1635
+
1636
+ if (document.getElementById("addToWishlistPassword").style.display != "none" && document.getElementById("addToWishlistPWField").style.display != "none" ) {
1637
+ document.forms["addToWishlistForm"].password.disabled = false;
1638
+ } else {
1639
+ document.forms["addToWishlistForm"].password.disabled = true;
1640
+ }
1641
+ if ('Project Page' != '') {
1642
+ _gaq.push(['_trackEvent','Project Page', 'Link', 'Add to Wish List']);
1643
+ }
1644
+ document.getElementById("addToWishlistEmail").style.display = "none";
1645
+ if (document.getElementById("wishlistDiv")) {
1646
+ var wiEl = document.getElementById("wishlistDiv");
1647
+ wiEl.parentNode.removeChild(wiEl);
1648
+ }
1649
+
1650
+ wishlistDiv = document.createElement('div');
1651
+ wishlistDiv.id = 'wishlistDiv';
1652
+ wishlistDiv.innerHTML = '<iframe name="wishlistIframe" id="wishlistIframe" width="0" height="0" frameborder="0"></iframe>';
1653
+ document.body.appendChild(wishlistDiv);
1654
+
1655
+ document.forms["addToWishlistForm"].target = "wishlistIframe";
1656
+ if (location.hostname.indexOf("secure") > -1) document.forms["addToWishlistForm"].callbackSecure.value = "true";
1657
+ else document.forms["addToWishlistForm"].callbackSecure.value = "false";
1658
+ document.forms["addToWishlistForm"].submit();
1659
+
1660
+ //update the star as if it's already successful
1661
+ if ($(".addToWishlistLink" + proposalId).hasClass("followStar")) $(".addToWishlistLink" + proposalId).removeClass("followStar").addClass("followStarOn");
1662
+ else $(".addToWishlistLink" + proposalId).removeClass("followStarOn").addClass("followStar");
1663
+ }
1664
+ }
1665
+
1666
+ function addToWishlistStatus(obj) {
1667
+ document.getElementById("wishlist").style.display = "";
1668
+ document.forms['addToWishlistForm'].email.disabled = false;
1669
+ document.forms['addToWishlistForm'].password.disabled = false;
1670
+ document.getElementById("addToWishlistStatus").innerHTML = '';
1671
+
1672
+ //reset star to original state
1673
+ $('.addToWishlistLink' + obj.proposalId).removeClass('followStarLoading');
1674
+ if ($('.addToWishlistLink' + obj.proposalId).hasClass('followStar')) $('.addToWishlistLink' + obj.proposalId).attr('class','addToWishlistLink' + obj.proposalId + ' followStarOn');
1675
+ else $('.addToWishlistLink' + obj.proposalId).attr('class','addToWishlistLink' + obj.proposalId + ' followStar');
1676
+
1677
+ if (obj.removed && obj.removed == "true") {
1678
+ $('.addToWishlistLink' + obj.proposalId).attr('class','addToWishlistLink' + obj.proposalId + ' followStar');
1679
+ document.getElementById("wishlist").style.display = "none";
1680
+ } else if (obj.success && obj.success == "true") {
1681
+ // document.getElementById("addToWishlistStatus" + obj.proposalId).innerHTML = "Successfully added!";
1682
+ // document.getElementById("addToWishlistStatus" + obj.proposalId).style.display = "";
1683
+ $('.addToWishlistLink' + obj.proposalId).attr('class','addToWishlistLink' + obj.proposalId + ' followStarOn');
1684
+ toast(obj.message);
1685
+ document.getElementById("wishlist").style.display = "none";
1686
+ } else if (obj.signinRequired) {
1687
+ document.getElementById("addToWishlistEmail").style.display = "";
1688
+ document.getElementById("addToWishlistPassword").style.display = "";
1689
+ document.getElementById("addToWishlistStatus").innerHTML = "<div>" + obj.message + "</div>";
1690
+ } else if (obj.emailRequired) {
1691
+ document.getElementById("addToWishlistEmail").style.display = "";
1692
+ document.getElementById("addToWishlistPassword").style.display = "none";
1693
+ document.getElementById("addToWishlistStatus").innerHTML = "<div>" + obj.message + "</div>";
1694
+ } else if (obj.message) {
1695
+ toast(obj.message);
1696
+ document.getElementById("wishlist").style.display = "none";
1697
+ }
1698
+
1699
+ setUpUserCookies();
1700
+ showSignOutLink();
1701
+ getFavorites(true);
1702
+ }
1703
+
1704
+
1705
+ // Set up favorites cookies
1706
+ var favProposalIds = null;
1707
+ var favTeacherIds = null;
1708
+ var favSchoolIds = null;
1709
+ var favChallengeIds = null;
1710
+ var favSearchURLs = null;
1711
+
1712
+ function getFavorites(isSet) {
1713
+ favProposalIds = null;
1714
+ favTeacherIds = null;
1715
+ favSchoolIds = null;
1716
+ favChallengeIds = null;
1717
+ favSearchURLs = null;
1718
+ if (readCookie("favProposalIds") != null) favProposalIds = eval(readCookie("favProposalIds"));
1719
+ if (readCookie("favTeacherIds") != null) favTeacherIds = eval(readCookie("favTeacherIds"));
1720
+ if (readCookie("favSchoolIds") != null) favSchoolIds = eval(readCookie("favSchoolIds"));
1721
+ if (readCookie("favChallengeIds") != null) favChallengeIds = eval(readCookie("favChallengeIds"));
1722
+ if (readCookie("favSearchURLs") != null) favSearchURLs = eval(readCookie("favSearchURLs"));
1723
+ /*
1724
+ if (readCookie("favSearchURLs") != null) {
1725
+ var favSearchURLStrings = readCookie("favSearchURLs").replace("[","").replace("]","").split(",");
1726
+ favSearchURLs = new Array();
1727
+ for (i in favSearchURLStrings) {
1728
+ if (favSearchURLStrings[i] != null && favSearchURLStrings[i].split("donorschoose.org/")[1] != null) favSearchURLs.push(baseURL + favSearchURLStrings[i].split("donorschoose.org/")[1]);
1729
+ }
1730
+ }
1731
+ */
1732
+ resetFollowStars();
1733
+ setHeaderMMILink(true);
1734
+ }
1735
+
1736
+ function resetFollowStars() {
1737
+
1738
+ if (favProposalIds != null) {
1739
+ if (typeof proposalsOnPage != "undefined") {
1740
+ for (i in proposalsOnPage) {
1741
+ if ($.inArray(parseInt(proposalsOnPage[i]), favProposalIds) > -1) {
1742
+ $('.addToWishlistLink' + proposalsOnPage[i]).attr('class','addToWishlistLink' + proposalsOnPage[i] + ' followStarOn');
1743
+ } else {
1744
+ $('.addToWishlistLink' + proposalsOnPage[i]).attr('class','addToWishlistLink' + proposalsOnPage[i] + ' followStar');
1745
+ }
1746
+ }
1747
+ }
1748
+ }
1749
+
1750
+ if (favTeacherIds != null) {
1751
+ if (typeof teachersOnPage != "undefined") {
1752
+ for (i in teachersOnPage) {
1753
+ if ($.inArray(teachersOnPage[i], favTeacherIds) > -1) {
1754
+ $('.favTeacherLink' + teachersOnPage[i]).attr('class','favTeacherLink'+teachersOnPage[i]+' followStarOn');
1755
+ } else {
1756
+ $('.favTeacherLink' + teachersOnPage[i]).attr('class','favTeacherLink'+teachersOnPage[i]+' followStar');
1757
+ }
1758
+ }
1759
+ }
1760
+ }
1761
+
1762
+ if (favSchoolIds != null && "" != "") {
1763
+ if ($.inArray(parseInt(""), favSchoolIds) > -1) {
1764
+ $('.favSchoolLink').attr('class','favSchoolLink followStarOn');
1765
+ } else {
1766
+ $('.favSchoolLink').attr('class','favSchoolLink followStar');
1767
+ }
1768
+ }
1769
+
1770
+ if (favChallengeIds != null && "" != "") {
1771
+ if ($.inArray(parseInt(""), favChallengeIds) > -1) {
1772
+ $('.favChallengeLink').attr('class','favChallengeLink followStarOn');
1773
+ } else {
1774
+ $('.favChallengeLink').attr('class','favChallengeLink followStar');
1775
+ }
1776
+ }
1777
+
1778
+ if (favSearchURLs != null) {
1779
+ if ("" != "") {
1780
+ if ($.inArray(parseInt("",10), favSearchURLs) > -1) {
1781
+ $('.favSearchLink').attr('class','favSearchLink followStarOn');
1782
+ } else {
1783
+ $('.favSearchLink').attr('class','favSearchLink followStar');
1784
+ }
1785
+ }
1786
+ }
1787
+ }
1788
+
1789
+ if ((favSearchURLs != null && favSearchURLs.indexOf("search") > -1) || (readCookie("userId") != null && readCookie("userId") != "" && readCookie("favCookiesSet") == null)) {
1790
+ updateFavoritesCookie("getFavorites",null);
1791
+ } else if (readCookie("favCookiesSet") != null) {
1792
+ $(document).ready(function () {
1793
+ getFavorites(true);
1794
+ });
1795
+ }
1796
+
1797
+ </script>
1798
+
1799
+
1800
+
1801
+ <div style="position:relative">
1802
+ <div class="classroomDetails" align="left">
1803
+
1804
+ <!-- INCOME LEVEL -->
1805
+ <a class="searchLink" href="http://www.donorschoose.org/help/popup_faq.html?name=lowincome" onclick="getFaqPopup(this,this.href);if('undefined' != typeof(event) )event.returnValue = false;return false;">Moderate Poverty</a><br/>
1806
+
1807
+ <!-- LOCATION -->
1808
+ <!-- SCHOOL -->
1809
+
1810
+
1811
+
1812
+
1813
+
1814
+ <a href="http://www.donorschoose.org/school/waccamaw-elementary-school/6772" title="See other projects from Waccamaw Elementary School" class="searchLink">Waccamaw Elementary School</a><br/>
1815
+
1816
+
1817
+
1818
+
1819
+
1820
+
1821
+
1822
+
1823
+
1824
+
1825
+
1826
+
1827
+ <a href="http://www.donorschoose.org/donors/search.html?zone=303&community=15497:3" title="See other projects from Pawleys Isl" class="searchLink">Pawleys Isl</a>,
1828
+ <a href="http://www.donorschoose.org/donors/search.html?state=SC" title="See other projects from SC" class="searchLink">SC</a><br/>
1829
+
1830
+
1831
+
1832
+
1833
+ <!-- /SCHOOL -->
1834
+ <div style="padding-top:2px">
1835
+ <fb:like href="http://www.donorschoose.org/we-teach/107944?utm_campaign=fblike&utm_medium=projectpage&utm_source=dc" layout="button_count" show-faces="false" width="210" action="like" colorscheme="light" font=""></fb:like>
1836
+ </div>
1837
+
1838
+ </div>
1839
+ <div style="clear:both"></div>
1840
+ </div>
1841
+
1842
+ </div>
1843
+ </div>
1844
+
1845
+ <!-- ESSAY -->
1846
+ <div class="essay newSubmission">
1847
+
1848
+
1849
+
1850
+
1851
+
1852
+
1853
+
1854
+
1855
+ <div id="shortEssay">
1856
+ <p><strong>My Students:</strong> Save our future! We all know that science and social studies skills are very important to our future and students need to have the basic knowledge of social science skills be...
1857
+ </p>
1858
+ <p><strong>My Project:</strong> The 3rd grade students in my classroom will be able to actively participate with the materials provided. The games will keep children focused and encourage the application o...
1859
+ <a class="more" href="javascript:void(0)" onclick="_gaq.push(['_trackEvent','Project Page','Essay', 'More']);showLongEssay();return false;">more&raquo;</a>
1860
+ </p>
1861
+ </div>
1862
+
1863
+
1864
+ <div id="longEssay">
1865
+ <p><strong>My Students:</strong> Save our future! We all know that science and social studies skills are very important to our future and students need to have the basic knowledge of social science skills before they can delve into the higher level skills necessary in our society. <p> Along the coast of South Carolina, 18 very eager third grade students want to explore and apply newly acquired skills. The social sciences are very difficult to remember and understand for 8 and 9 year old children. The more practice children can actively participate in, the more likely that they will actually remember and be able to apply the skills learned.
1866
+ </p>
1867
+ <p><strong>My Project:</strong> The 3rd grade students in my classroom will be able to actively participate with the materials provided. The games will keep children focused and encourage the application of skills that have been acquired through the social sciences. The additional practice available will allow the children to model their newly found social science ability in a safe and rewarding environment. Students will be able to demonstrate their understanding of both science and social study skills mastered with the use of the new materials. <p> As we all know, the social sciences are very important to a student's overall education. The ability to practice skills mastered in both science and social studies will encourage the 3rd grade students to continue striving to master and apply the skills necessary to advance throughout their entire education.
1868
+ <a class="more" href="javascript:void(0)" onclick="showShortEssay();return false;">hide&raquo;</a>
1869
+ </p>
1870
+ </div>
1871
+
1872
+
1873
+ <p style="clear:right"><strong>My students need</strong> social studies and science games and activities to help improve their knowledge of new skills presented in the 3rd grade.
1874
+ <a class="more" href="http://www.donorschoose.org/project/super-social-sciences/779216/#materials">details&raquo;</a>
1875
+ </p>
1876
+
1877
+
1878
+ </div>
1879
+ <!-- /ESSAY -->
1880
+ <div style="clear:both"></div>
1881
+ </div>
1882
+
1883
+
1884
+ <script type="text/javascript">
1885
+ function showLongEssay() {
1886
+ document.getElementById("longEssay").style.display = "block";
1887
+ document.getElementById("shortEssay").style.display = "none";
1888
+ if (document.getElementById("essayFooterFunding"))
1889
+ document.getElementById("essayFooterFunding").style.display = "block";
1890
+ }
1891
+ function showShortEssay() {
1892
+ document.getElementById("shortEssay").style.display = "block";
1893
+ document.getElementById("longEssay").style.display = "none";
1894
+ if (document.getElementById("essayFooterFunding"))
1895
+ document.getElementById("essayFooterFunding").style.display = "none";
1896
+ }
1897
+
1898
+ </script>
1899
+ <div style="clear:both"></div>
1900
+
1901
+
1902
+
1903
+
1904
+ <!-- DONOR MESSAGES -->
1905
+ <a name="meetthedonors"></a>
1906
+ <a name="liveUpdates"></a>
1907
+ <div id="meetTheDonors">
1908
+
1909
+
1910
+
1911
+ <div style="clear:both"></div>
1912
+
1913
+ <div id="donationMessages">
1914
+ <div id="donationMessagesPrepend"></div>
1915
+
1916
+
1917
+ <!--[if lte IE 7]>
1918
+ <style type="text/css">
1919
+ #biggerPhotos {background-image:url(../images/project/biggerphotos.gif)}
1920
+ </style>
1921
+ <![endif]-->
1922
+
1923
+ <script type="text/javascript">
1924
+ function setMessagePhotoHeight(photoCtr,photoHeight) {
1925
+ if (photoHeight < 135) {
1926
+ document.getElementById("messagePhotoDiv" + photoCtr).style.height = photoHeight + "px";
1927
+ }
1928
+ }
1929
+ </script>
1930
+
1931
+
1932
+ <div class="pmRow">
1933
+
1934
+
1935
+
1936
+
1937
+
1938
+
1939
+
1940
+
1941
+
1942
+
1943
+
1944
+
1945
+
1946
+
1947
+
1948
+
1949
+
1950
+
1951
+
1952
+
1953
+
1954
+
1955
+ <a name="lastliveupdate"></a>
1956
+ <div class="pm ">
1957
+
1958
+
1959
+
1960
+ <h4>
1961
+
1962
+
1963
+
1964
+
1965
+ <div id="messagePhotoDiv0" class="messagePhotoDiv">
1966
+
1967
+
1968
+
1969
+ <img src="http://cdn.donorschoose.net/images/project/staff_tn.gif" class="noscale" onload="setMessagePhotoHeight(0,this.height)" />
1970
+
1971
+
1972
+
1973
+ </div>
1974
+
1975
+
1976
+
1977
+
1978
+
1979
+
1980
+
1981
+
1982
+
1983
+
1984
+
1985
+ <!-- STICKERS -->
1986
+ <div >
1987
+ <div class="stickers" >
1988
+
1989
+
1990
+
1991
+
1992
+
1993
+
1994
+ </div>
1995
+ </div>
1996
+ <div style="clear:both"></div>
1997
+ <!-- /STICKERS -->
1998
+
1999
+ </h4>
2000
+
2001
+
2002
+ <div class="titleAndMessage ">
2003
+
2004
+ <h5 >
2005
+
2006
+ <span class="date">Mar 31</span></span>
2007
+ <span class="author">
2008
+
2009
+
2010
+
2011
+
2012
+ <strong>Ryan G</strong> an associate at donorschoose.org
2013
+
2014
+
2015
+
2016
+
2017
+ </span>
2018
+
2019
+
2020
+
2021
+
2022
+
2023
+
2024
+
2025
+
2026
+
2027
+ <div class="clear"></div>
2028
+ </h5>
2029
+
2030
+
2031
+
2032
+
2033
+
2034
+ <!-- REGULAR PROPOSAL MESSAGE -->
2035
+ <h6 class="staff">
2036
+ <div class="content ">
2037
+
2038
+
2039
+
2040
+
2041
+
2042
+
2043
+
2044
+
2045
+
2046
+ Verified the cost of the requested <a href="#materials"><span>resources</span></a> and posted this project.
2047
+
2048
+ </div>
2049
+ </h6>
2050
+ <!-- /REGULAR PROPOSAL MESSAGE -->
2051
+
2052
+
2053
+
2054
+ </div>
2055
+ <div style="clear:both"></div>
2056
+ </div>
2057
+
2058
+
2059
+
2060
+
2061
+
2062
+
2063
+
2064
+
2065
+
2066
+
2067
+
2068
+
2069
+
2070
+
2071
+
2072
+
2073
+
2074
+
2075
+
2076
+
2077
+
2078
+
2079
+
2080
+
2081
+
2082
+
2083
+
2084
+ <div class="pm ">
2085
+
2086
+
2087
+
2088
+ <h4>
2089
+
2090
+
2091
+
2092
+
2093
+ <div id="messagePhotoDiv1" class="messagePhotoDiv">
2094
+
2095
+
2096
+ <img width="135" src="http://cdn.donorschoose.net/images/user/uploads/small/u46827_sm.jpg" border="0" onerror="this.style.display='none';" onload="setMessagePhotoHeight(1,this.height)" />
2097
+
2098
+
2099
+
2100
+
2101
+ </div>
2102
+
2103
+
2104
+
2105
+
2106
+
2107
+
2108
+
2109
+
2110
+
2111
+
2112
+
2113
+ <!-- STICKERS -->
2114
+ <div >
2115
+ <div class="stickers" >
2116
+
2117
+
2118
+
2119
+
2120
+
2121
+
2122
+ </div>
2123
+ </div>
2124
+ <div style="clear:both"></div>
2125
+ <!-- /STICKERS -->
2126
+
2127
+ </h4>
2128
+
2129
+
2130
+ <div class="titleAndMessage ">
2131
+
2132
+ <h5 >
2133
+
2134
+ <span class="date">Mar 30</span></span>
2135
+ <span class="author">
2136
+
2137
+
2138
+
2139
+
2140
+ <strong>Maria S</strong> a volunteer at donorschoose.org
2141
+
2142
+
2143
+
2144
+
2145
+ </span>
2146
+
2147
+
2148
+
2149
+
2150
+
2151
+
2152
+
2153
+
2154
+
2155
+ <div class="clear"></div>
2156
+ </h5>
2157
+
2158
+
2159
+
2160
+
2161
+
2162
+ <!-- REGULAR PROPOSAL MESSAGE -->
2163
+ <h6 class="staff">
2164
+ <div class="content ">
2165
+
2166
+
2167
+
2168
+
2169
+
2170
+
2171
+
2172
+
2173
+
2174
+ Reviewed the project essay and sent follow-up questions if needed.
2175
+
2176
+ </div>
2177
+ </h6>
2178
+ <!-- /REGULAR PROPOSAL MESSAGE -->
2179
+
2180
+
2181
+
2182
+ </div>
2183
+ <div style="clear:both"></div>
2184
+ </div>
2185
+
2186
+ <div style="clear:both"></div></div>
2187
+
2188
+ </div>
2189
+
2190
+
2191
+
2192
+ </div>
2193
+
2194
+ <div style="clear:both"></div>
2195
+
2196
+ <script type="text/javascript">
2197
+
2198
+ if (false || (true && readCookie("userId") != null && $.inArray(userId,donorIds) > -1)) {
2199
+ if (false || (isLoggedIn() && readCookie("userId") != null && $.inArray(userId,donorIds) > -1)) {
2200
+ document.getElementById("proposalMessageIframe").src = "https://secure.donorschoose.org/donors/proposal_message.html?pmaId=&pmaHash=&proposalId=779216";
2201
+ setTimeout('getAddAMessageDisplay()',500);
2202
+ } else {
2203
+ document.getElementById("proposalMessageIframe").style.height = "0px";
2204
+ document.getElementById("signInInvite").style.display = "block";
2205
+ }
2206
+ } else {
2207
+ document.getElementById("proposalMessageIframe").style.height = "0px";
2208
+ document.getElementById("signInInvite").style.display = "none";
2209
+ }
2210
+ </script>
2211
+
2212
+ </div>
2213
+ <!-- /DONOR MESSAGES -->
2214
+
2215
+
2216
+ </div>
2217
+
2218
+
2219
+ <div style="clear:left;font-size:10px;padding:10px 0px 0px 20px">
2220
+ Please <a href="https://secure.donorschoose.org/contact/contact_form_donor.html?proposalId=779216&questionTypeId=4&subQuestionTypeId=1">notify our staff</a> of any messages or photos of concern.
2221
+ </div>
2222
+
2223
+
2224
+ <!-- UNFUNDED: step 1 -->
2225
+ <a name="materials"></a>
2226
+
2227
+
2228
+
2229
+
2230
+
2231
+
2232
+
2233
+
2234
+
2235
+
2236
+
2237
+
2238
+
2239
+
2240
+
2241
+
2242
+
2243
+
2244
+
2245
+
2246
+
2247
+
2248
+
2249
+
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+
2256
+
2257
+
2258
+
2259
+
2260
+
2261
+
2262
+
2263
+
2264
+
2265
+
2266
+
2267
+
2268
+
2269
+
2270
+
2271
+
2272
+
2273
+
2274
+
2275
+
2276
+
2277
+
2278
+
2279
+
2280
+
2281
+
2282
+
2283
+
2284
+
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+
2291
+
2292
+
2293
+
2294
+
2295
+
2296
+
2297
+
2298
+
2299
+
2300
+
2301
+
2302
+
2303
+
2304
+ <h5 id="projectDetailsHdr"><span class="date">Mar 27, 2012</span><strong>Mrs. Keller</strong> - Teacher</h5>
2305
+
2306
+ <strong style="padding-left:25px">Project Details</strong>
2307
+
2308
+ <div style="padding:10px;margin:10px 20px;background-color:#fff8ed">
2309
+
2310
+ <table cellpadding="0" cellspacing="0" border="0" width="100%" class="projectCosts">
2311
+
2312
+
2313
+
2314
+
2315
+ <tr>
2316
+ <th width="50%">Materials</th>
2317
+ <th>Vendor</th>
2318
+ <th>Price</th>
2319
+ <th>#</th>
2320
+ <th>Total</th>
2321
+ </tr>
2322
+
2323
+
2324
+
2325
+
2326
+
2327
+
2328
+
2329
+ <tr>
2330
+ <td class="itemName">GAME LEARNING WELL SCIENCE LAB EARTH SCIENCE GR 2-3</td>
2331
+ <td class="vendor">ABC School Supply, Inc </td>
2332
+ <td class="unitPrice">$20.89</td>
2333
+ <td class="quantity">1</td>
2334
+ <td class="price">
2335
+ $20.89
2336
+
2337
+ </td>
2338
+ </tr>
2339
+
2340
+
2341
+
2342
+
2343
+
2344
+
2345
+
2346
+ <tr>
2347
+ <td class="itemName">GAME LEARNING WELL SCIENCE LAB PHYSICAL SCIENCE GR 2-3</td>
2348
+ <td class="vendor">ABC School Supply, Inc </td>
2349
+ <td class="unitPrice">$20.89</td>
2350
+ <td class="quantity">1</td>
2351
+ <td class="price">
2352
+ $20.89
2353
+
2354
+ </td>
2355
+ </tr>
2356
+
2357
+
2358
+
2359
+
2360
+
2361
+
2362
+
2363
+ <tr>
2364
+ <td class="itemName">BOOK DAILY SCIENCE GR3</td>
2365
+ <td class="vendor">ABC School Supply, Inc </td>
2366
+ <td class="unitPrice">$28.49</td>
2367
+ <td class="quantity">1</td>
2368
+ <td class="price">
2369
+ $28.49
2370
+
2371
+ </td>
2372
+ </tr>
2373
+
2374
+
2375
+
2376
+
2377
+
2378
+
2379
+
2380
+ <tr>
2381
+ <td class="itemName">BOOK SCIENCE 4 TODAY GR 3</td>
2382
+ <td class="vendor">ABC School Supply, Inc </td>
2383
+ <td class="unitPrice">$15.14</td>
2384
+ <td class="quantity">1</td>
2385
+ <td class="price">
2386
+ $15.14
2387
+
2388
+ </td>
2389
+ </tr>
2390
+
2391
+
2392
+
2393
+
2394
+
2395
+
2396
+
2397
+ <tr>
2398
+ <td class="itemName">DVD KIA 3RD GR</td>
2399
+ <td class="vendor">ABC School Supply, Inc </td>
2400
+ <td class="unitPrice">$37.99</td>
2401
+ <td class="quantity">1</td>
2402
+ <td class="price">
2403
+ $37.99
2404
+
2405
+ </td>
2406
+ </tr>
2407
+
2408
+
2409
+
2410
+
2411
+
2412
+
2413
+
2414
+ <tr>
2415
+ <td class="itemName">HH598 - Social Studies Quiz Game Show - Gr. 1-3 - Single License CD-ROM</td>
2416
+ <td class="vendor">Lakeshore Learning </td>
2417
+ <td class="unitPrice">$19.95</td>
2418
+ <td class="quantity">1</td>
2419
+ <td class="price">
2420
+ $19.95
2421
+
2422
+ </td>
2423
+ </tr>
2424
+
2425
+
2426
+
2427
+
2428
+
2429
+
2430
+
2431
+ <tr>
2432
+ <td class="itemName">HH118 - Wrap-Around Science Games - Gr. 3-4</td>
2433
+ <td class="vendor">Lakeshore Learning </td>
2434
+ <td class="unitPrice">$24.95</td>
2435
+ <td class="quantity">1</td>
2436
+ <td class="price">
2437
+ $24.95
2438
+
2439
+ </td>
2440
+ </tr>
2441
+
2442
+
2443
+
2444
+ <tr>
2445
+ <th colspan="5" style="height:10px;font-size:1px">&nbsp;&nbsp;</th>
2446
+ </tr>
2447
+ <tr class="firstCharge">
2448
+ <td colspan="4">
2449
+
2450
+ <a target="new" href="http://www.donorschoose.org/help/popup_faq.html?name=shipping_charges" onmouseover="getFaqPopup(this,this.href);this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return false;">Vendor Shipping Charges</a></td>
2451
+ <td class="price">$12.34</td>
2452
+ </tr>
2453
+ <tr class="charges">
2454
+ <td colspan="4"><a target="new" href="http://www.donorschoose.org/help/popup_faq.html?name=sales_tax" onmouseover="getFaqPopup(this,this.href);this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return false;">State Sales Tax</a></td>
2455
+ <td class="price">$11.87</td>
2456
+ </tr>
2457
+ <tr class="charges">
2458
+ <td colspan="4"><a target="new" href="http://www.donorschoose.org/help/popup_faq.html?name=payment_processing" onmouseover="getFaqPopup(this,this.href);this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return false;">3rd Party Payment Processing Fee</a></td>
2459
+ <td class="price">$2.52</td>
2460
+ </tr>
2461
+ <tr class="charges">
2462
+ <td colspan="4"><a target="new" href="http://www.donorschoose.org/help/popup_faq.html?name=projectfulfillment" onmouseover="getFaqPopup(this,this.href);this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return false;">Fulfillment Labor & Materials</a></td>
2463
+ <td class="price">$35.00</td>
2464
+ </tr>
2465
+ <tr class="subtotal">
2466
+ <td colspan="4"><b>Project Cost Excluding Donation to Support DonorsChoose.org</b></td>
2467
+ <td class="price">$230.03</td>
2468
+ </tr>
2469
+ <tr class="firstCharge fulfillmentCost">
2470
+ <td colspan="4"><a target="new" href="http://www.donorschoose.org/help/popup_faq.html?name=optionaldonation13" onmouseover="getFaqPopup(this,this.href);this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return false;"><b>Optional</b> Donation to Support DonorsChoose.org</a></td>
2471
+ <td class="price">$40.59</td>
2472
+ </tr>
2473
+ <tr class="total">
2474
+ <td colspan="4"><a target="new" href="http://www.donorschoose.org/help/popup_faq.html?name=total_cost" onmouseover="getFaqPopup(this,this.href);this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'" onclick="return false;"><b>Project Cost Including Donation to Support DonorsChoose.org</b></a></td>
2475
+
2476
+ <td class="price">$270.62</td>
2477
+ </tr>
2478
+
2479
+
2480
+
2481
+ </table>
2482
+ </div>
2483
+
2484
+
2485
+ <div class="additionalDetails">
2486
+
2487
+
2488
+ <div style="float:left;width:43%;">
2489
+ <!-- CLASSROOM -->
2490
+
2491
+
2492
+
2493
+ <h5>Level: </h5>
2494
+
2495
+
2496
+ <a href="http://www.donorschoose.org/donors/search.html?gradeType=2" title="See other Grades 3-5 projects" class="searchLink">Grades 3-5</a>
2497
+
2498
+
2499
+
2500
+
2501
+
2502
+
2503
+
2504
+
2505
+
2506
+
2507
+
2508
+
2509
+
2510
+ <br /><h5>School type:</h5>
2511
+ <a href="http://www.donorschoose.org/donors/search.html?schoolType=12" title="See other Horace Mann Company projects" class="searchLink">Horace Mann Company</a>
2512
+
2513
+
2514
+
2515
+ <br /><h5>County: </h5>
2516
+
2517
+
2518
+ <span style="white-space:nowrap">
2519
+ <a href="http://www.donorschoose.org/donors/search.html?zone=303&community=37:1" title="See other projects in Georgetown County" class="searchLink">Georgetown</a>
2520
+ </span>
2521
+
2522
+
2523
+
2524
+
2525
+
2526
+ <br /><h5>District:</h5>
2527
+ <a href="http://www.donorschoose.org/donors/search.html?zone=303&community=3302:2" title="See other projects from Georgetown Co School District" class="searchLink">Georgetown Co School District</a>
2528
+
2529
+
2530
+
2531
+
2532
+
2533
+
2534
+
2535
+ <br /><h5>Zip:</h5>
2536
+
2537
+
2538
+ <a href="http://www.donorschoose.org/donors/search.html?keywords=29585" title="See other projects in the 29585 zip code" class="searchLink">29585-5806</a>
2539
+
2540
+
2541
+
2542
+
2543
+
2544
+
2545
+ <br /><h5>Affiliation:</h5>
2546
+
2547
+ <a href="http://www.donorschoose.org/donors/search.html?teacherType=5" title="See other SONIC Teacher projects" class="searchLink">SONIC Teacher</a>
2548
+
2549
+
2550
+
2551
+ <br /><h5>Teacher's funded projects: </h5>
2552
+
2553
+ <a onclick="_gaq.push(['_trackEvent','Project Page','Additional Details', 'Teacher Search']);" href="http://www.donorschoose.org/we-teach/107944?historical=true" title="See this teacher's page">10</a>
2554
+
2555
+
2556
+
2557
+ <br /><h5><a style="color:#656565" href="http://www.donorschoose.org/help/popup_faq.html?name=thankyoupunctuality" onmouseover="getFaqPopup(this,this.href)" onclick="return false;">Thank-you punctuality</a>: </h5>
2558
+
2559
+
2560
+
2561
+ 100%
2562
+
2563
+
2564
+
2565
+ <!-- /CLASSROOM -->
2566
+
2567
+ </div>
2568
+ <div style="float:left;width:55%;">
2569
+
2570
+ <!-- PROJECT -->
2571
+
2572
+ <h5>Subject:</h5>
2573
+
2574
+
2575
+ <span style="color:#0067B5">
2576
+ <a href="http://www.donorschoose.org/donors/search.html?subject3=15" title="See other Social Sciences projects" class="searchLink">Social Sciences</a>
2577
+ <em>(in <a href="http://www.donorschoose.org/donors/search.html?subject3=-1" title="See other History & Civics projects" class="searchLink">History & Civics</a>)</em>,
2578
+ </span>
2579
+
2580
+
2581
+
2582
+
2583
+
2584
+
2585
+
2586
+ <span style="color:#0067B5">
2587
+ <a href="http://www.donorschoose.org/donors/search.html?subject4=6" title="See other Applied Sciences projects" class="searchLink">Applied Sciences</a>
2588
+ <em>(in <a href="http://www.donorschoose.org/donors/search.html?subject4=-1" title="See other Math & Science projects" class="searchLink">Math & Science</a>)</em>
2589
+ </span>
2590
+
2591
+
2592
+
2593
+
2594
+ <br /><h5>Resource: </h5>
2595
+ <span style="color:#0067B5;white-space:nowrap">
2596
+ <a href="http://www.donorschoose.org/donors/search.html?proposalType=6" title="See other projects needing Other" class="searchLink">Other</a>
2597
+ (<a href="http://www.donorschoose.org/donors/search.html?resourceUsage=1" title="See other Essential projects" class="searchLink">Essential</a>)
2598
+
2599
+ </span>
2600
+
2601
+
2602
+ <br /><h5>Students reached: </h5>
2603
+
2604
+ 18
2605
+
2606
+
2607
+
2608
+ <br /><h5>Used by future students? </h5>
2609
+
2610
+ Yes
2611
+
2612
+
2613
+
2614
+ <!-- EXPIRES -->
2615
+
2616
+
2617
+
2618
+
2619
+
2620
+ <br /><h5 >Expiration: </h5>
2621
+ Aug 26, 2012
2622
+
2623
+ <!-- EXPIRES -->
2624
+
2625
+ <br /><h5>Project ID: </h5>
2626
+ 779216
2627
+ <!-- /IMPACT -->
2628
+ </div>
2629
+
2630
+
2631
+
2632
+
2633
+
2634
+
2635
+ <div style="clear:both"></div>
2636
+
2637
+
2638
+
2639
+ <!-- /STATS -->
2640
+ </div>
2641
+
2642
+
2643
+
2644
+
2645
+
2646
+
2647
+ <script type="text/javascript">
2648
+ $(document).ready(function() {
2649
+ if (readCookie("v") != null) {
2650
+ $('head').append('<link rel="stylesheet" href="http://cdn.donorschoose.net/styles/returnDonor.css?version=201207192090312" type="text/css" />');
2651
+ }
2652
+ });
2653
+
2654
+
2655
+
2656
+ </script>
2657
+
2658
+
2659
+ <!-- /INNER_BODY -->
2660
+ </td>
2661
+
2662
+ <!-- RIGHT_NAV -->
2663
+ <td valign="top" class="rightNav" style="position:relative;zoom:1">
2664
+
2665
+ <!-- FUND -->
2666
+
2667
+ <!-- FUNDED OR INELIGIBLE -->
2668
+ <div id="notScrollingDiv">
2669
+
2670
+
2671
+
2672
+
2673
+
2674
+
2675
+ </div>
2676
+ <!-- /FUNDED OR INELIGIBLE -->
2677
+
2678
+
2679
+ <div id="scrollingDivHolder" style="position:relative;zoom:1;">
2680
+ <div id="scrollingDiv">
2681
+
2682
+
2683
+ <div class="candy">
2684
+ <div class="addToCart">
2685
+
2686
+ <!-- FUNDING WIDGET -->
2687
+ <div class="widgetTop"><img src="http://cdn.donorschoose.net/images/project/widget_top.gif" /></div>
2688
+ <div class="simpleWidget">
2689
+ <div id="loading" style="text-align:center;background:transparent;display:none;padding:20px;"><img src="http://cdn.donorschoose.net/images/loading_circle.gif" width="24" height="24" /></div>
2690
+ <div id="simpleWidget"><strong class="giveAnyAmount">Give any amount</strong>
2691
+ <form action="https://secure.donorschoose.org/donors/givingCart.html" name="simpleWidgetForm" method="get" onsubmit="_gaq.push(['_trackEvent','Project Page', 'Donation Amount','dropdown', parseInt(this.donationAmount.value)]);_gaq.push(['_trackEvent','Project Page', 'Widget', 'Top']);return checkDonationAmount(this);">
2692
+ <input type="hidden" name="proposalid" value="779216" />
2693
+ <input type="hidden" name="zone" value="0" />
2694
+ <input type="hidden" name="lastSearchURL" value="" />
2695
+ <script type="text/javascript">
2696
+ document.simpleWidgetForm.lastSearchURL.value = readCookie("searchTermsURL");
2697
+ </script>
2698
+
2699
+
2700
+ <div><div style="position:relative"><div class="dollarSign">$</div></div><input type="text" autocomplete="off" onKeyPress="if (this.value=='') { return disableEnterKey(event); }" class="ddInput" name="donationAmount" value="any amount" style="color:#999999" onfocus="setActiveDonationAmountStyle(this)" onclick="openDonationAmountDD(this.form.name)" /><img class="ddArrow ddArrow2" style="vertical-align:middle" src="http://cdn.donorschoose.net/images/cart/dropdown_arrow.gif" onclick="toggleDonationAmountDD('simpleWidgetForm')" /> <a style="text-decoration:none" href="javascript:void(0)" onclick="if (checkDonationAmount(document.forms['simpleWidgetForm'])) { document.forms.simpleWidgetForm.submit();return false; } else if ($('.widgetDropdownHolder').css('display') != 'none') { toggleDonationAmountDD('simpleWidgetForm');return false; } else { return false; }"><img class="giveBtn ddArrow" src="http://cdn.donorschoose.net/images/cart/btn_givearrow2.gif" style="vertical-align:middle" /><span class="giveSpan">Give</span></a></div>
2701
+ <div class="widgetDropdownHolder">
2702
+ <div id="simpleWidgetFormDD" class="widgetDropdown" style="display:none">
2703
+ <div style="border-bottom:1px solid #a7a7a7" id="widget779216_option_code"><a id="widget779216_amount_code" href="javascript:void(0)" onclick="toggleDonationAmountDD('simpleWidgetForm');document.forms.simpleWidgetForm.donationAmount.focus();return false;">other amount</a></div>
2704
+
2705
+
2706
+
2707
+ <div class="d10"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',10);if('undefined' != typeof(event) )event.returnValue = false;return false;">$10</a></div>
2708
+
2709
+
2710
+
2711
+ <div class="d15"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',15);if('undefined' != typeof(event) )event.returnValue = false;return false;">$15</a></div>
2712
+
2713
+
2714
+
2715
+ <div class="d20"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',20);if('undefined' != typeof(event) )event.returnValue = false;return false;">$20</a></div>
2716
+
2717
+
2718
+
2719
+ <div class="d25"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',25);if('undefined' != typeof(event) )event.returnValue = false;return false;">$25</a></div>
2720
+
2721
+
2722
+
2723
+ <div class="d30"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',30);if('undefined' != typeof(event) )event.returnValue = false;return false;">$30</a></div>
2724
+
2725
+
2726
+
2727
+ <div class="d35"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',35);if('undefined' != typeof(event) )event.returnValue = false;return false;">$35</a></div>
2728
+
2729
+
2730
+
2731
+ <div class="d40"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',40);if('undefined' != typeof(event) )event.returnValue = false;return false;">$40</a></div>
2732
+
2733
+
2734
+
2735
+ <div class="d45"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',45);if('undefined' != typeof(event) )event.returnValue = false;return false;">$45</a></div>
2736
+
2737
+
2738
+
2739
+ <div class="d50"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',50);if('undefined' != typeof(event) )event.returnValue = false;return false;">$50</a></div>
2740
+
2741
+
2742
+
2743
+ <div class="d55"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',55);if('undefined' != typeof(event) )event.returnValue = false;return false;">$55</a></div>
2744
+
2745
+
2746
+
2747
+ <div class="d60"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',60);if('undefined' != typeof(event) )event.returnValue = false;return false;">$60</a></div>
2748
+
2749
+
2750
+
2751
+ <div class="d65"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',65);if('undefined' != typeof(event) )event.returnValue = false;return false;">$65</a></div>
2752
+
2753
+
2754
+
2755
+ <div class="d70"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',70);if('undefined' != typeof(event) )event.returnValue = false;return false;">$70</a></div>
2756
+
2757
+
2758
+
2759
+ <div class="d75"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',75);if('undefined' != typeof(event) )event.returnValue = false;return false;">$75</a></div>
2760
+
2761
+
2762
+
2763
+ <div class="d80"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',80);if('undefined' != typeof(event) )event.returnValue = false;return false;">$80</a></div>
2764
+
2765
+
2766
+
2767
+ <div class="d85"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',85);if('undefined' != typeof(event) )event.returnValue = false;return false;">$85</a></div>
2768
+
2769
+
2770
+
2771
+ <div class="d90"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',90);if('undefined' != typeof(event) )event.returnValue = false;return false;">$90</a></div>
2772
+
2773
+
2774
+
2775
+ <div class="d95"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',95);if('undefined' != typeof(event) )event.returnValue = false;return false;">$95</a></div>
2776
+
2777
+
2778
+
2779
+ <div class="d100"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',100);if('undefined' != typeof(event) )event.returnValue = false;return false;">$100<em></em></a></div>
2780
+
2781
+
2782
+
2783
+ <div class="d120"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',120);if('undefined' != typeof(event) )event.returnValue = false;return false;">$120<em></em></a></div>
2784
+
2785
+
2786
+ <div class="d125"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',125);if('undefined' != typeof(event) )event.returnValue = false;return false;">$125<em></em></a></div>
2787
+
2788
+
2789
+ <div class="d150"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',150);if('undefined' != typeof(event) )event.returnValue = false;return false;">$150<em></em></a></div>
2790
+
2791
+
2792
+
2793
+
2794
+ <div class="d200"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',200);if('undefined' != typeof(event) )event.returnValue = false;return false;">$200<em></em></a></div>
2795
+
2796
+
2797
+
2798
+
2799
+
2800
+
2801
+
2802
+
2803
+
2804
+
2805
+ <div class="dcomplete"><a href="javascript:void(0)" onclick="changeWidgetToSpinner();setDonationAmountDD('simpleWidgetForm',271);if('undefined' != typeof(event) )event.returnValue = false;return false;">$271<em></em> complete!</a></div>
2806
+
2807
+ </div>
2808
+ </div>
2809
+ </div>
2810
+
2811
+
2812
+ </form>
2813
+
2814
+ <script type="text/javascript">
2815
+ changeWidgetsForGiftCode(779216);
2816
+ </script>
2817
+
2818
+ <div class="needs togo"
2819
+ onmouseover="this.style.textDecoration='underline';document.body.style.cursor='pointer'"
2820
+ onmouseout="this.style.textDecoration='none';document.body.style.cursor='auto'"
2821
+ onclick="document.getElementsByName('donationAmount')[0].style.color='#000000';document.getElementsByName('donationAmount')[0].value='$271'">
2822
+ <strong>$271</strong>
2823
+ <span>to go</span>
2824
+ </div>
2825
+
2826
+
2827
+
2828
+
2829
+
2830
+
2831
+
2832
+ <br />
2833
+
2834
+
2835
+
2836
+ <div class="needs"><div class="percent"><div class="percentfg" style="width:0.00px"></div><div class="percentmatch" style="width:0.00px"></div></div></div>
2837
+
2838
+ </div>
2839
+ <div class="widgetBtm"><img class="widgetBtmImg" src="http://cdn.donorschoose.net/images/project/widget_btm.gif" /></div>
2840
+
2841
+
2842
+
2843
+ <!-- /FUNDING WIDGET -->
2844
+
2845
+
2846
+ <div class="fundingDetails">
2847
+
2848
+
2849
+
2850
+
2851
+
2852
+ </div>
2853
+ </div>
2854
+
2855
+
2856
+ <div style="clear:both"></div>
2857
+
2858
+ <!-- /FUND -->
2859
+
2860
+ <script type="text/javascript">
2861
+ // Resize iframe to full height
2862
+ function resizeIframe(height)
2863
+ {
2864
+ // "+60" is a general rule of thumb to allow for differences in
2865
+ // IE & and FF height reporting, can be adjusted as required..
2866
+ document.getElementById('tellAFriendIframe').height = parseInt(height);
2867
+ }
2868
+ </script>
2869
+
2870
+ <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
2871
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/zeroclipboard/ZeroClipboard.js"></script>
2872
+ <script type="text/javascript">
2873
+ ZeroClipboard.setMoviePath("http://cdn.donorschoose.net/js/zeroclipboard/ZeroClipboard.swf");
2874
+ </script>
2875
+ <!-- SHAREBAR -->
2876
+
2877
+
2878
+
2879
+
2880
+
2881
+
2882
+
2883
+
2884
+ <div class="share" id="share779216">
2885
+
2886
+
2887
+
2888
+
2889
+ <div class="shareAddFollow">
2890
+ <div style="float:left" class="shareButton" title="<span style='line-height:27px'>Share this project</span>" onclick="toggleShare(779216)">Share <img src="http://cdn.donorschoose.net/images/icon/arrow_down.png" /></div>
2891
+ <div style="float:left;margin-left:5px" class="shareButton tooltip2" title="Favorites or <br />Giving Page" onclick="toggleAddTo(779216)">Add to <img src="http://cdn.donorschoose.net/images/icon/arrow_down.png" /></div>
2892
+ <div style="clear:both"></div>
2893
+ </div>
2894
+
2895
+
2896
+
2897
+
2898
+ <div id="shareBar779216" class="shareBar">
2899
+ <div class="close"><a href="javascript:void(0)" onclick="$('#shareBar779216').hide()"><img src="http://cdn.donorschoose.net/images/project/share_close_btn.png" alt="" /></a></div>
2900
+ <a onclick="document.getElementById('tellAFriendIframe').style.height='1650px';document.getElementById('tellAFriendIframe').src='https://secure.donorschoose.org/donors/send_friend.html?sharetype=proposal&proposalId=779216'; showLightbox('Project Page','TellAFriend'); return false;" href="javascript:void(0)"><img style="margin-left:0px" alt="Email" title="Email to friends" src="http://cdn.donorschoose.net/images/project/share_email_btn.png" /></a>
2901
+ <a target="new" onClick="_gaq.push(['_trackEvent','Project Page','Sharebar', 'Facebook']);" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.donorschoose.org%2Fproject%2Fsuper-social-sciences%2F779216%3Futm_campaign%3Dfacebook%26utm_source%3Ddc%26utm_medium%3Dprojectpage&ref=Proposal"><img alt="Facebook" title="Share on Facebook" src="http://cdn.donorschoose.net/images/project/share_facebook_btn.png" /></a>
2902
+ <style type="text/css" media="screen">
2903
+ #custom-tweet-button a {
2904
+ display: block;
2905
+ padding: 2px 5px 2px 20px;
2906
+ background: url('http://a4.twimg.com/images/favicon.ico') 1px center no-repeat;
2907
+ border: 1px solid #ccc;
2908
+ }
2909
+ </style>
2910
+ <a target="_blank" onClick="_gaq.push(['_trackEvent','Project Page','Sharebar', 'Twitter']);" href="http://twitter.com/share?text=I+love+this+teacher%27s+idea+for+helping+students:&url=http%3A%2F%2Fwww.donorschoose.org%2Fproject%2Fsuper-social-sciences%2F779216%3Futm_campaign%3Dtwitter%26utm_source%3Ddc%26utm_medium%3Dprojectpage&via=donorschoose"><img alt="Twitter" title="Share on Twitter" src="http://cdn.donorschoose.net/images/project/share_tweet_btn.png" /></a>
2911
+ <!-- Place this tag where you want the +1 button to render -->
2912
+ <span class="googlePlus1"><g:plusone href="http://www.donorschoose.org/project/super-social-sciences/779216?utm_campaign=googleplusone&utm_source=dc&utm_medium=projectpage" annotation="none"></g:plusone></span>
2913
+
2914
+ <a href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Fwww.donorschoose.org%2Fproject%2Fsuper-social-sciences%2F779216%3Futm_campaign%3Dpinterest%26utm_source%3Ddc%26utm_medium%3Dprojectpage%2F&media=http%3A%2F%2Fcdn.donorschoose.net%2Fimages%2Fuser%2Fuploads%2Fsmall%2Fu107944_sm.jpg%3Ftimestamp%3D1285976392606&description=Pin%20this%20DonorsChoose.org%20project%20on%20your%20pinboard." class="pin-it-button" count-layout="horizontal"><img border="0" src="//assets.pinterest.com/images/PinExt.png" title="Share on Pinterest" /></a>
2915
+
2916
+ <div class="copyBox" style="white-space:nowrap">
2917
+ <input type="text" readonly="readonly" class="copyURL" id="copyURL779216" value="http://www.donorschoose.org/project/super-social-sciences/779216/" />
2918
+ <div class="copyContainer" id="copyContainer779216" onclick="toClipboard(779216,$('#copyURL779216').val())">
2919
+ <div class="shareButton copyButton" id="copyButton779216">Copy link</div>
2920
+ </div>
2921
+ <div style="clear:both"></div>
2922
+ </div>
2923
+ </div>
2924
+
2925
+ <script type="text/javascript">
2926
+ $(".share img[title]").tooltip({position: "bottom center"});
2927
+ $(".shareAddFollow [title]").tooltip({position: "top center", tipClass: "tooltipTopDouble"});
2928
+ $(".shareOnly [title]").tooltip({position: "top center", tipClass: "tooltipTop"});
2929
+ </script>
2930
+
2931
+ <!-- /SHAREBAR -->
2932
+
2933
+ <div style="clear:both"></div>
2934
+
2935
+
2936
+ <div id="followBar779216" class="shareBar" style="text-align:left;">
2937
+ <div class="close"><a href="javascript:void(0)" onclick="$('#followBar779216').hide()"><img src="http://cdn.donorschoose.net/images/project/share_close_btn.png" alt="" /></a></div>
2938
+ <!-- ADD TO WISHLIST -->
2939
+
2940
+ <a target="_top" style="color:#505050;" onclick="addToWishlist('779216','','addToWishlistLink779216i2'); return returnFalse();">Favorites</a> <a target="_top" id="addToWishlistLink779216i2" class="addToWishlistLink779216 followStar" onclick="addToWishlist('779216','',this.id); return returnFalse();"><span>Favorite</span></a>
2941
+
2942
+
2943
+ <!-- ADD TO CHALLENGE -->
2944
+
2945
+
2946
+ <div style="clear:both"></div>
2947
+
2948
+ <div class="addToGivingPage">
2949
+ <div id="addToChallengeLink779216">
2950
+ <a target="_top" href="#" class="addToChallengeTitle" onclick="doAddToChallenge(779216,null);if('undefined' != typeof(event) )event.returnValue = false;return false;">Giving Page</a>
2951
+ </div>
2952
+ <div id="addToChallenge779216"></div>
2953
+ <div id="addToChallSuccess779216" class="message"></div>
2954
+ <div style="clear:both"></div>
2955
+ </div>
2956
+
2957
+
2958
+ <!-- /ADD TO CHALLENGE -->
2959
+
2960
+ </div>
2961
+
2962
+ </div>
2963
+
2964
+ <div style="clear:both"></div>
2965
+
2966
+ <div class="moreProjects" style="background:url()">
2967
+
2968
+
2969
+ <div class="moreTeacherProjects">
2970
+ <h3>Mrs. Keller has a new project!</h3>
2971
+ </div>
2972
+ <div class="teacherPageLink"><a onclick="_gaq.push(['_trackEvent','Project Page','Sidebar', 'Teacher Search']);" href="http://www.donorschoose.org/we-teach/107944">Help her students </a></div>
2973
+
2974
+
2975
+
2976
+ <div id="nextProject">
2977
+ <h3>View next project</h3>
2978
+ <a id="nextProjectLink1" href="javascript:void(0)"><img name="nextProjectImage" id="nextProjectImage" src="http://cdn.donorschoose.net/images/sp.gif" alt=""/></a>
2979
+ <a id="nextProjectLink2" href="javascript:void(0)"></a>
2980
+ </div>
2981
+
2982
+
2983
+
2984
+
2985
+
2986
+
2987
+
2988
+
2989
+ </div>
2990
+ </div>
2991
+
2992
+ </td>
2993
+ <!-- /RIGHT_NAV -->
2994
+ </tr>
2995
+ </tbody>
2996
+ </table>
2997
+
2998
+
2999
+ </div>
3000
+
3001
+ <div class="bodyCorners">
3002
+ <div class="corners blc"></div>
3003
+ <div class="corners brc"></div>
3004
+ </div>
3005
+ <!-- /MAIN BODY -->
3006
+ <script type="text/javascript">
3007
+ if (qsParam["zone"] != null) {
3008
+ createCookie("zone", qsParam["zone"], null);
3009
+ } else if (true) {
3010
+ createCookie("zone", "0", null);
3011
+ }
3012
+
3013
+
3014
+ </script>
3015
+ </div>
3016
+
3017
+
3018
+
3019
+
3020
+
3021
+
3022
+
3023
+
3024
+
3025
+
3026
+
3027
+
3028
+
3029
+
3030
+
3031
+
3032
+
3033
+
3034
+
3035
+
3036
+
3037
+
3038
+
3039
+
3040
+
3041
+
3042
+
3043
+
3044
+
3045
+
3046
+
3047
+
3048
+
3049
+
3050
+
3051
+
3052
+
3053
+
3054
+
3055
+
3056
+
3057
+
3058
+
3059
+
3060
+
3061
+
3062
+
3063
+
3064
+
3065
+
3066
+
3067
+
3068
+
3069
+
3070
+
3071
+
3072
+
3073
+
3074
+
3075
+
3076
+
3077
+
3078
+
3079
+
3080
+
3081
+
3082
+
3083
+
3084
+
3085
+
3086
+
3087
+
3088
+
3089
+
3090
+
3091
+
3092
+
3093
+
3094
+
3095
+
3096
+
3097
+
3098
+
3099
+
3100
+ <!-- FOOTER -->
3101
+
3102
+ <div id="mainFooter">
3103
+
3104
+ <div id="footerLinks">
3105
+
3106
+ <div class="col">
3107
+ <h2>About</h2>
3108
+ <ul>
3109
+ <li><a target="_top" href="http://www.donorschoose.org/about">How it works</a></li>
3110
+ <li><a target="_top" href="http://www.donorschoose.org/about#integrity">Ensuring integrity</a></li>
3111
+ <li><a target="_top" href="http://www.donorschoose.org/about/impact.html">Impact stats</a></li>
3112
+ <li><a target="_top" href="http://www.donorschoose.org/about/in_the_news.html">Press Center</a></li>
3113
+ <li><a target="_top" href="http://www.donorschoose.org/blog/">Blog</a></li>
3114
+ <li><a target="_top" href="http://www.donorschoose.org/about/our_supporters.html">Supporters</a></li>
3115
+ <li><a target="_top" href="http://www.donorschoose.org/about/meet_the_team.html">Staff</a> & <a target="_top" href="http://www.donorschoose.org/about/meet_the_team.html#nationalboard">Board</a></li>
3116
+ <li><a target="_top" href="http://www.donorschoose.org/careers">Join our team</a></li>
3117
+ </ul>
3118
+ </div>
3119
+
3120
+ <div class="col">
3121
+ <h2>Teachers</h2>
3122
+ <ul>
3123
+ <li><a target="_top" href="http://www.donorschoose.org/teachers">Get started</a></li>
3124
+ <li><a target="_top" href="http://help.donorschoose.org/app/fundingopportunities">Partner Funding Opportunities</a></li>
3125
+ </ul>
3126
+
3127
+ <h2>Giving pages</h2>
3128
+ <ul>
3129
+ <li><a target="_top" href="http://www.donorschoose.org/donors/createChallenge.html">Create a registry</a></li>
3130
+ <li><a target="_top" href="http://www.donorschoose.org/celebrations">Celebrations</a></li>
3131
+ <li><a target="_top" href="http://www.donorschoose.org/communities">Communities</a></li>
3132
+ <li><a target="_top" href="http://www.donorschoose.org/m4k">Mustaches for Kids</a></li>
3133
+ </ul>
3134
+ </div>
3135
+
3136
+ <div class="col">
3137
+ <h2>Ways to give</h2>
3138
+ <ul>
3139
+ <li><a target="_top" href="http://www.donorschoose.org/donors/search.html">Projects</a></li>
3140
+ <li><a target="_top" href="http://www.donorschoose.org/donors/giftoptions.html">Gift cards</a></li>
3141
+ <li><a target="_top" href="http://www.donorschoose.org/about/partnership_center.html">Partnership Center</a></li>
3142
+ <li><a target="_top" href="http://www.donorschoose.org/monthly">Donate monthly</a></li>
3143
+ <li><a target="_top" href="http://help.donorschoose.org/app/answers/detail/a_id/354">Stock, bequest, or DAF</a></li>
3144
+ <li><a target="_top" href="http://www.donorschoose.org/about/do_more.html">Do more</a></li>
3145
+ </ul>
3146
+ </div>
3147
+
3148
+ <div class="col last">
3149
+ <h2>Help & info</h2>
3150
+ <ul>
3151
+ <li><a target="_top" href="http://help.donorschoose.org/">Help Center</a></li>
3152
+ <li><a target="_top" href="http://help.donorschoose.org/app/contact">Contact</a></li>
3153
+ <li><a target="_top" href="http://talk.donorschoose.org/pages/home">Discussion Forum</a></li>
3154
+ <li><a target="_top" href="http://www.donorschoose.org/contact/link.html">Logos & Banners</a></li>
3155
+ <li><a target="_top" href="http://www.donorschoose.org/about/finance.html">Finance & Legal</a></li>
3156
+ <li><a target="_top" href="http://www.donorschoose.org/help/privacy_policy.html">Privacy</a> & <a target="_top" href="http://www.donorschoose.org/help/user_agreement.html">Terms</a></li>
3157
+ <li><a target="_top" href="http://developer.donorschoose.org/">API & Open data</a></li>
3158
+ <li><a target="_top" href="http://www.donorschoose.org/hacking-education-winners">Hacking Education</a></li>
3159
+ </ul>
3160
+ </div>
3161
+
3162
+ <div style="clear:both"></div>
3163
+ </div>
3164
+
3165
+ <div id="footerFeatured">
3166
+ <div id="bbb"><a target="_top" href="http://www.donorschoose.org/help/popup_faq.html?name=charity_nav" onclick="g_openWindow(this.href, 600, 950, 'fulfillwindow');return returnFalse();"><span>Better Business Bureau Accredited Charity</span></a></div>
3167
+ <div id="charityNav"><a target="_top" href="http://www.donorschoose.org/help/popup_faq.html?name=charity_nav" onclick="g_openWindow(this.href, 600, 950, 'fulfillwindow');return returnFalse();"><span>Charity Navigator Highest Rating</span></a></div>
3168
+ <div id="featuredOn"><a target="_top" href="http://www.donorschoose.org/about/press_center.html"><span>Featured on The Wall Street Journal, CNN and NPR</span></a></div>
3169
+ </div>
3170
+
3171
+ <div id="footerSponsors">
3172
+
3173
+
3174
+
3175
+
3176
+ <script type="text/javascript" src="http://cdn.donorschoose.net/js/jquery/jquery.cycle.all.latest.js"></script>
3177
+ <script type="text/javascript">
3178
+
3179
+ function createFooterLogo(sponsorThumbnail, sponsorName) {
3180
+ if (sponsorThumbnail) {
3181
+ slideshowDiv=document.getElementById('logo_slideshow');
3182
+ var newDiv = document.createElement('div');
3183
+ newDiv.setAttribute('class','logo_holder');
3184
+ newDiv.style.width="250px";
3185
+
3186
+
3187
+ newDiv.innerHTML='<center><img src="http://cdn.donorschoose.net/images/logos/'+sponsorThumbnail+'" alt="'+sponsorName+'" border="0" style="margin:0px auto;" /></center>';
3188
+
3189
+
3190
+
3191
+ slideshowDiv.appendChild(newDiv);
3192
+ }
3193
+ }
3194
+
3195
+ $(document).ready(function() {
3196
+ var tierOneSponsors=new Array();
3197
+
3198
+
3199
+ tierOneSponsors[0]=new Array();
3200
+ tierOneSponsors[0]['logo'] = 'omidyar_network_bw.png';
3201
+ tierOneSponsors[0]['name'] = 'Omidyar Network';
3202
+
3203
+
3204
+ tierOneSponsors.sort(function() {return 0.5 - Math.random()});
3205
+ for (var j in tierOneSponsors) {
3206
+ createFooterLogo(tierOneSponsors[j]['logo'], tierOneSponsors[j]['name']);
3207
+ }
3208
+ var tierTwoSponsors=new Array();
3209
+
3210
+
3211
+ tierTwoSponsors[0]=new Array();
3212
+ tierTwoSponsors[0]['logo'] = 'amex_mp_bw.png';
3213
+ tierTwoSponsors[0]['name'] = 'AMEX Members Project';
3214
+
3215
+
3216
+ tierTwoSponsors[1]=new Array();
3217
+ tierTwoSponsors[1]['logo'] = 'chevron_bw.png';
3218
+ tierTwoSponsors[1]['name'] = 'Chevron';
3219
+
3220
+
3221
+ tierTwoSponsors[2]=new Array();
3222
+ tierTwoSponsors[2]['logo'] = 'gates_foundation_bw.png';
3223
+ tierTwoSponsors[2]['name'] = 'Bill and Melinda Gates Foundation';
3224
+
3225
+
3226
+ tierTwoSponsors[3]=new Array();
3227
+ tierTwoSponsors[3]['logo'] = 'Wasserman_bw.png';
3228
+ tierTwoSponsors[3]['name'] = 'Wasserman Foundation';
3229
+
3230
+
3231
+ tierTwoSponsors[4]=new Array();
3232
+ tierTwoSponsors[4]['logo'] = 'pershing_square_bw.png';
3233
+ tierTwoSponsors[4]['name'] = 'Pershing Square Foundation';
3234
+
3235
+
3236
+ tierTwoSponsors[5]=new Array();
3237
+ tierTwoSponsors[5]['logo'] = 'townsend_press_bw.png';
3238
+ tierTwoSponsors[5]['name'] = 'Townsend Press';
3239
+
3240
+
3241
+ tierTwoSponsors.sort(function() {return 0.5 - Math.random()});
3242
+ for (var j in tierTwoSponsors) {
3243
+ createFooterLogo(tierTwoSponsors[j]['logo'], tierTwoSponsors[j]['name']);
3244
+ }
3245
+ var tierThreeSponsors=new Array();
3246
+
3247
+
3248
+ tierThreeSponsors[0]=new Array();
3249
+ tierThreeSponsors[0]['logo'] = 'chase_bw.png';
3250
+ tierThreeSponsors[0]['name'] = 'Chase';
3251
+
3252
+
3253
+ tierThreeSponsors[1]=new Array();
3254
+ tierThreeSponsors[1]['logo'] = 'horacemann_small3.png';
3255
+ tierThreeSponsors[1]['name'] = 'Horace Mann';
3256
+
3257
+
3258
+ tierThreeSponsors[2]=new Array();
3259
+ tierThreeSponsors[2]['logo'] = 'sonic_bw.png';
3260
+ tierThreeSponsors[2]['name'] = 'SONIC Drive-In';
3261
+
3262
+
3263
+ tierThreeSponsors[3]=new Array();
3264
+ tierThreeSponsors[3]['logo'] = 'starbucks_morningjoe_small_bw.png';
3265
+ tierThreeSponsors[3]['name'] = 'Starbucks & MSNBC';
3266
+
3267
+
3268
+ tierThreeSponsors[4]=new Array();
3269
+ tierThreeSponsors[4]['logo'] = 'oo_bw.png?v=2';
3270
+ tierThreeSponsors[4]['name'] = 'OO.com';
3271
+
3272
+
3273
+ tierThreeSponsors[5]=new Array();
3274
+ tierThreeSponsors[5]['logo'] = 'CapitalOnebw.png';
3275
+ tierThreeSponsors[5]['name'] = 'Capital One';
3276
+
3277
+
3278
+ tierThreeSponsors[6]=new Array();
3279
+ tierThreeSponsors[6]['logo'] = 'bankofthewest_bw.png';
3280
+ tierThreeSponsors[6]['name'] = 'Bank of the West';
3281
+
3282
+
3283
+ tierThreeSponsors.sort(function() {return 0.5 - Math.random()});
3284
+ for (var j in tierThreeSponsors) {
3285
+ createFooterLogo(tierThreeSponsors[j]['logo'], tierThreeSponsors[j]['name']);
3286
+ }
3287
+ var footerOnlySponsors=new Array();
3288
+
3289
+
3290
+ footerOnlySponsors[0]=new Array();
3291
+ footerOnlySponsors[0]['logo'] = 'clearchannel_bw.png';
3292
+ footerOnlySponsors[0]['name'] = 'Clear Channel Communities';
3293
+
3294
+
3295
+ footerOnlySponsors.sort(function() {return 0.5 - Math.random()});
3296
+ for (var j in footerOnlySponsors) {
3297
+ createFooterLogo(footerOnlySponsors[j]['logo'], footerOnlySponsors[j]['name']);
3298
+ }
3299
+ var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
3300
+ if (re.exec(navigator.userAgent) != null) {
3301
+ var slideSpeed = '0';
3302
+ } else {
3303
+ var slideSpeed = '1000';
3304
+ }
3305
+ $('.slideshow').cycle({
3306
+ fx: 'fade',
3307
+ speed: slideSpeed,
3308
+ cleartype: true,
3309
+ cleartypeNoBg: true
3310
+ });
3311
+ });
3312
+ </script>
3313
+
3314
+ <div id="logo_slideshow" class="slideshow" style="height:87px;width:250px;"></div>
3315
+
3316
+ </div>
3317
+
3318
+
3319
+ <div id="footerLikes">
3320
+ <div>
3321
+ <iframe src="//www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2Fdonorschoose&amp;send=false&amp;layout=button_count&amp;width=95&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font=arial&amp;height=21&amp;appId=192967394082873" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:95px; height:21px;" allowTransparency="true"></iframe>
3322
+ </div>
3323
+ <div>
3324
+ <a target="_top" target="_new" onclick="_gaq.push(['_trackEvent','Footer','Links', 'Twitter']);" href="http://twitter.com/DonorsChoose" class="twitter-follow-button" data-show-count="true" data-lang="en" data-show-screen-name="false">Follow</a>
3325
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
3326
+ </div>
3327
+ <div>
3328
+ <script src="https://platform.linkedin.com/in.js" type="text/javascript"></script>
3329
+ <script type="IN/FollowCompany" data-id="33101" data-counter="right"></script>
3330
+ </div>
3331
+ <div>
3332
+ <a target="_top" href="http://pinterest.com/DonorsChoose/"><img src="https://a248.e.akamai.net/passets.pinterest.com.s3.amazonaws.com/images/about/buttons/pinterest-button.png" height="22" alt="Follow Me on Pinterest" /></a>
3333
+ </div>
3334
+ <div>
3335
+ <a target="_top" href="https://plus.google.com/113100650355461881905?prsrc=3" rel="author" style="text-decoration:none;"><img src="https://ssl.gstatic.com/images/icons/gplus-32.png" alt="" style="border:0;width:22px;height:22px;"/></a>
3336
+ </div>
3337
+
3338
+ </div>
3339
+
3340
+ <div id="footerBar">
3341
+
3342
+
3343
+
3344
+
3345
+
3346
+
3347
+
3348
+
3349
+
3350
+
3351
+
3352
+
3353
+
3354
+
3355
+
3356
+
3357
+
3358
+
3359
+
3360
+
3361
+
3362
+
3363
+
3364
+
3365
+
3366
+
3367
+
3368
+
3369
+
3370
+
3371
+
3372
+
3373
+
3374
+
3375
+
3376
+
3377
+
3378
+
3379
+
3380
+
3381
+
3382
+
3383
+
3384
+
3385
+
3386
+
3387
+
3388
+
3389
+
3390
+
3391
+
3392
+
3393
+
3394
+
3395
+
3396
+
3397
+
3398
+
3399
+
3400
+
3401
+
3402
+
3403
+
3404
+
3405
+
3406
+
3407
+
3408
+
3409
+
3410
+
3411
+
3412
+
3413
+
3414
+
3415
+
3416
+
3417
+
3418
+ <span>Open to every public school in America thanks to <a target="_top" style="text-decoration:underline" href="http://www.donorschoose.org/about/our_supporters.html">our supporters</a>.</span>
3419
+ &copy; 2000-<script type="text/javascript" language="javascript">
3420
+ <!--
3421
+ var d = new Date();
3422
+ var thisYear = d.getFullYear();
3423
+ document.write(thisYear);
3424
+ //-->
3425
+ </script> DonorsChoose.org, a 501(c)(3) not-for-profit corporation.
3426
+
3427
+
3428
+ <!-- GOOGLE ANALYTICS MOVED TO GATRACKINGHEADER AND GATRACKINGFOOTER -->
3429
+
3430
+ <!-- EXACT TARGET -->
3431
+
3432
+ <script type="text/javascript"> /* <![CDATA[ */
3433
+ //Set the number of days before your cookie should expire
3434
+ var ExpireDays = 30;
3435
+ //Do not change anything below this line
3436
+ qstr = document.location.search;
3437
+ if (qstr.lastIndexOf("?") > -1) {
3438
+ qstr = qstr.substring(qstr.lastIndexOf("?"),qstr.length);
3439
+ }
3440
+
3441
+ qstr = qstr.substring(1,qstr.length)
3442
+
3443
+ function ExactTargetSetCookie(cookieName,cookieValue,nDays)
3444
+ {
3445
+ var today = new Date();
3446
+ var expire = new Date();
3447
+ if (nDays==null || nDays==0) nDays=1;
3448
+ expire.setTime(today.getTime() + 3600000*24*nDays);
3449
+ document.cookie = cookieName+"="+escape(cookieValue)+ ";expires="+expire.toGMTString()+";path=/;domain=donorschoose.org";
3450
+ }
3451
+
3452
+ thevars = qstr.split("&");
3453
+
3454
+ for(i=0;i<thevars.length;i++) {
3455
+ thecase=thevars[i].split("=")
3456
+ switch(thecase[0]) {
3457
+ case 'j':
3458
+ thevars[i] = thevars[i].replace("=","='")+"'";
3459
+ eval(thevars[i]);
3460
+ ExactTargetSetCookie("JobID",j,ExpireDays);
3461
+ break;
3462
+ case 'e':
3463
+ thevars[i] = thevars[i].replace("=","='")+"'";
3464
+ eval(thevars[i]);
3465
+ ExactTargetSetCookie("EmailAddr",e,ExpireDays);
3466
+ break;
3467
+
3468
+ case 'l':
3469
+ thevars[i] = thevars[i].replace("=","='")+"'";
3470
+ eval(thevars[i]);
3471
+ ExactTargetSetCookie("ListID",l,ExpireDays);
3472
+ break;
3473
+ case 'u':
3474
+ thevars[i] = thevars[i].replace("=","='")+"'";
3475
+ eval(thevars[i]);
3476
+ ExactTargetSetCookie("UrlID",u,ExpireDays);
3477
+ break;
3478
+ case 'mid':
3479
+ thevars[i] = thevars[i].replace("=","='")+"'";
3480
+ eval(thevars[i]);
3481
+ ExactTargetSetCookie("MemberID",mid,ExpireDays);
3482
+ break;
3483
+ case 'jb':
3484
+ thevars[i] = thevars[i].replace("=","=")+"";
3485
+ eval(thevars[i]);
3486
+ ExactTargetSetCookie("BatchID",jb,ExpireDays);
3487
+ break;
3488
+ default:
3489
+ try {
3490
+ if (thevars[i] != null && thevars[i] != "") {
3491
+ thevars[i] = thevars[i].replace("=","='")+"'";
3492
+ eval(thevars[i]);
3493
+ }
3494
+ } catch (e) {
3495
+ //nada
3496
+ }
3497
+
3498
+ break;
3499
+ }
3500
+ }
3501
+ /* ]]> */ </script>
3502
+
3503
+
3504
+ <!--oobegin
3505
+
3506
+ * OnlineOpinionF3cS v3.1
3507
+ * The following code is Copyright 1998-2008 Opinionlab, Inc.
3508
+ * All rights reserved. Unauthorized use is prohibited.
3509
+ * This product and other products of OpinionLab, Inc. are protected by U.S. Patent No. US 6606581, 6421724, 6785717 B1 and other patents pending.
3510
+ * http://www.opinionlab.com
3511
+
3512
+ -->
3513
+
3514
+ <div id="oLab" style="position:absolute; left: -20px; top: -1px;">
3515
+
3516
+ <script language="javascript" type="text/javascript" charset="windows-1252" src="http://cdn.donorschoose.net/onlineopinionF3cS/oo_engine.js"></script>
3517
+
3518
+ <script language="javascript" type="text/javascript" charset="windows-1252" src="http://cdn.donorschoose.net/onlineopinionF3cS/oo_conf_en-US.js"></script>
3519
+
3520
+ </div>
3521
+
3522
+ <!--ooend-->
3523
+
3524
+ <!-- SET VARS FOR DONATION ACQ. TRACKING -->
3525
+ <script type="text/javascript">/* <![CDATA[ */
3526
+ var genLandingURL = location.href;
3527
+
3528
+
3529
+
3530
+ if (readCookie("referringURL") == null && document.referrer.indexOf("localhost") == -1 && (document.referrer.indexOf("https://www.paypal.com") == -1 && document.referrer.indexOf("/cgi-bin/webscr?cmd=_flow") == -1) && document.referrer.indexOf("https://authorize.payments.amazon.com") == -1) {
3531
+ var locString = escape(document.referrer) + "###" + escape(genLandingURL) + "###" + (new Date()).getTime();
3532
+ createCookie("referringURL",locString,45);
3533
+ //alert(locString);
3534
+ } else if (readCookie("sessionURL") == null && document.referrer.indexOf("donorschoose.org") == -1 && document.referrer.indexOf("localhost") == -1 && (document.referrer.indexOf("https://www.paypal.com") == -1 && document.referrer.indexOf("/cgi-bin/webscr?cmd=_flow") == -1) && document.referrer.indexOf("https://authorize.payments.amazon.com") == -1) {
3535
+ var locString = escape(document.referrer) + "###" + escape(genLandingURL) + "###" + (new Date()).getTime();
3536
+ createCookie("sessionURL",locString,0);
3537
+ //alert("session" + locString);
3538
+ }
3539
+
3540
+
3541
+ /* ]]> */</script>
3542
+ <!-- SET VARS FOR DONATION ACQ. TRACKING -->
3543
+
3544
+
3545
+ </div>
3546
+ </div>
3547
+ <!-- /FOOTER -->
3548
+
3549
+
3550
+ <script type="text/javascript"> /* <![CDATA[ */
3551
+ var hasTimestamp = false;
3552
+ function keepAliveCart() {
3553
+ if ((readCookie("cartItems") != null && readCookie("cartItems") > 0) || (readCookie("isLoggedIn") != null && readCookie("isLoggedIn") != "") || (hasTimestamp)) {
3554
+ var e = document.createElement("script");
3555
+ e.src = "https://secure.donorschoose.org/common/keepalive.html";
3556
+ e.type="text/javascript";
3557
+ document.getElementsByTagName("head")[0].appendChild(e);
3558
+ hasTimestamp = false;
3559
+ var keepAlive = setTimeout("keepAliveCart()",15*60*1000);
3560
+ }
3561
+ }
3562
+ keepAliveCart();
3563
+ /* ]]> */ </script>
3564
+
3565
+ <!-- AddRoll Retargeting Pixel -->
3566
+
3567
+ <script type="text/javascript">
3568
+ adroll_adv_id = "MLTXT2Z6CBB4LBZUNDBMFX";
3569
+ adroll_pix_id = "ULQO36I2GRBZ3GGYEQVVE4";
3570
+ (function () {
3571
+ var oldonload = window.onload;
3572
+ window.onload = function(){
3573
+ __adroll_loaded=true;
3574
+ var scr = document.createElement("script");
3575
+ var host = (("https:" == document.location.protocol) ? "https://s.adroll.com" : "http://a.adroll.com");
3576
+ scr.setAttribute('async', 'true');
3577
+ scr.type = "text/javascript";
3578
+ scr.src = host + "/j/roundtrip.js";
3579
+ document.documentElement.firstChild.appendChild(scr);
3580
+ if(oldonload){oldonload()}};
3581
+ }());
3582
+ </script>
3583
+
3584
+ <!-- /AddRoll Retargeting Pixel -->
3585
+
3586
+
3587
+
3588
+ </div>
3589
+
3590
+
3591
+ <!-- SET UP GIVING PAGE LINK -->
3592
+ <script type="text/javascript">
3593
+
3594
+ if (typeof document.body.style.maxHeight != "undefined") {
3595
+ $().ready(function() {
3596
+ var $scrollingDiv = $("#scrollingDiv");
3597
+ var startY = $scrollingDiv.offset().top - 10;
3598
+ var totalY = ($("#table1").offset().top + $("#table1").height() - $scrollingDiv.height());
3599
+
3600
+ // alert($scrollingDiv.height());
3601
+
3602
+ $(window).scroll(function(){
3603
+ var pageYOffset = window.pageYOffset || document.documentElement && document.documentElement.scrollTop || document.body.scrollTop;
3604
+ if (pageYOffset > totalY - 20) {
3605
+ $scrollingDiv.css("top", totalY - $("#scrollingDivHolder").offset().top - 10);
3606
+ $scrollingDiv.css("position","absolute");
3607
+ } else if (pageYOffset > startY) {
3608
+ $scrollingDiv.css("top", 10);
3609
+ $scrollingDiv.css("position","fixed");
3610
+ } else {
3611
+ $scrollingDiv.css("position","static");
3612
+ }
3613
+ });
3614
+ });
3615
+ } else {
3616
+ document.getElementById("scrollingDivHolder").style.position ="";
3617
+ document.getElementById("scrollingDiv").style.position = "";
3618
+ }
3619
+
3620
+ isZeroClipboardInitialized = false;
3621
+ </script>
3622
+
3623
+ <!-- SET UP FUNDING WIDGET -->
3624
+ <script type="text/javascript">
3625
+ /*
3626
+ var donationAmounts = getElementsByClassName("donationAmount", "input", null);
3627
+ var first25 = getElementsByClassName("give25", "div", null);
3628
+ var second25 = getElementsByClassName("second25", "div", null);
3629
+ for (i=0;i<first25.length;i++) {
3630
+ if (readCookie("v") == null && 271 > 45) {
3631
+ donationAmounts[i].value = Math.floor(45);
3632
+ } else {
3633
+ donationAmounts[i].value = Math.floor(271);
3634
+ }
3635
+ if (271 >= 25) {
3636
+ if (readCookie("v") != null) {
3637
+ first25[i].style.display = "none";
3638
+ second25[i].style.display = "block";
3639
+ } else {
3640
+ first25[i].style.display = "block";
3641
+ second25[i].style.display = "none";
3642
+ }
3643
+ }
3644
+ }
3645
+ */
3646
+ </script>
3647
+
3648
+ <!-- SET UP GIVING PAGE LINK -->
3649
+
3650
+ <div id="addToChallengeSigninContainer" style="display:none">
3651
+ <iframe name="addToChallengeSigninIframe" id="addToChallengeSigninIframe"></iframe>
3652
+ <form method="post" id="addToChallengeSignin" name="addToChallengeSignin" action="https://secure.donorschoose.org/common/signin.html" target="addToChallengeSigninIframe" onsubmit="return validateAddToChallengeSignin()">
3653
+ <div style="padding-top:10px">Please sign in:</div>
3654
+ <input style="width:170px" type="text" name="email" value="email" class="textFieldWithInnerLabel" onfocus="resetTextFieldWithInnerLabel(this,'email')" />
3655
+ <div id="addToChallengePassword"><input style="width:170px;display:none" id="addToChallengePasswordField" type="password" name="password" value="" disabled="disabled" />
3656
+ <input style="width:170px" id="addToChallengePasswordFieldFAKE" type="text" name="passwordFAKE" value="password" class="textFieldWithInnerLabel" onfocus="resetPasswordFieldWithInnerLabel(this.id)" />
3657
+ <div style="font-size:11px;">(<a href="https://secure.donorschoose.org/donors/forgot_password.html">forgot password</a>)</div></div>
3658
+ <div style="text-align:right"><input type="submit" name="followSubmit" value="submit" /></div>
3659
+ </form>
3660
+ <div style="text-align:center" id="addToChallengeSigninLoading"><img src="http://cdn.donorschoose.net/images/loading_circle.gif" /></div>
3661
+ </div>
3662
+
3663
+ <script type="text/javascript">
3664
+
3665
+ function validateAddToChallengeSignin() {
3666
+ document.addToChallengeSignin.action += "?go=" + encodeURIComponent(location.href);
3667
+ $("#addToChallengeSignin").after($("#addToChallengeSigninLoading"));
3668
+ $("#addToChallengeSigninContainer").append($("#addToChallengeSignin"));
3669
+ return true;
3670
+ }
3671
+
3672
+ $("#addToChallengeSigninIframe").load(function () {
3673
+ var e = document.createElement("script");
3674
+ e.src = "https://secure.donorschoose.org/donors/add_to_challenge_json.html?proposalId=0&callback=showAddToChallenge";
3675
+ e.type="text/javascript";
3676
+ document.getElementsByTagName("head")[0].appendChild(e);
3677
+ });
3678
+
3679
+ var donorChallenges = null;
3680
+ function showAddToChallenge(obj) {
3681
+ $("#addToChallengeSigninContainer").append($("#addToChallengeSigninLoading"));
3682
+
3683
+ donorChallenges = obj;
3684
+ var addToChallengeLinks = getElementsByClassName("addToGivingPage", "div", null);
3685
+ var addToChallengeTitles = getElementsByClassName("addToChallengeTitle", "a", null);
3686
+ if (donorChallenges.challenges.length > 0) {
3687
+ for (i=0;i<addToChallengeLinks.length;i++) {
3688
+ addToChallengeLinks[i].style.display = "block";
3689
+ if (donorChallenges.challenges.length == 1) {
3690
+ addToChallengeTitles[i].innerHTML = donorChallenges.challenges[0].title;
3691
+ } else {
3692
+ addToChallengeTitles[i].style.width = "auto";
3693
+ addToChallengeTitles[i].style.paddingRight = "2px";
3694
+ }
3695
+ }
3696
+ if (document.getElementById("saveSearchToChallengeLink") != null) {
3697
+ if (donorChallenges.challenges.length == 1 && document.getElementById("saveSearchToChallengeLink").getElementsByTagName("a")) {
3698
+ document.getElementById("saveSearchToChallengeLink").getElementsByTagName("a")[0].innerHTML = "Use for " + donorChallenges.challenges[0].title;
3699
+ }
3700
+ document.getElementById("saveSearchToChallengeLink").style.display = "";
3701
+ }
3702
+
3703
+ }
3704
+ }
3705
+
3706
+ function setupChallengeLinks(obj) {
3707
+ donorChallenges = obj;
3708
+ var challengesString = "";
3709
+ if (typeof donorChallenges.challenges != "undefined" && donorChallenges.challenges.length > 0) {
3710
+ $(".shareOnly").hide();
3711
+ $(".shareAddFollow").show();
3712
+ }
3713
+ for (i=0;i<donorChallenges.challenges.length;i++) {
3714
+ challengesString += '<div class="cList"><a href="#" onclick="addToChallenge(779216,'+donorChallenges.challenges[i].id+',null);return false;" >' + donorChallenges.challenges[i].title + '</a></div>';
3715
+ }
3716
+
3717
+ document.getElementById("addToChallenge779216").innerHTML = challengesString;
3718
+ document.getElementById("addToChallenge779216").style.display = "block";
3719
+ document.getElementById("addToGPAjaxLink").style.display = "block";
3720
+ document.getElementById("addToChallengeLink779216").style.display = "none";
3721
+ }
3722
+
3723
+ function closeAddToChallenge(elName) {
3724
+ document.getElementById(elName).style.display = "none";
3725
+ }
3726
+
3727
+ function doAddToChallenge(proposalId,verify) {
3728
+ if (!isLoggedIn()) {
3729
+ $("#addToChallenge"+proposalId).empty().append($("#addToChallengeSignin"));
3730
+ $("#addToChallenge"+proposalId).addClass("addToChallengeSignin");
3731
+ } else if (donorChallenges == null || donorChallenges.challenges.length == 0) {
3732
+ document.getElementById("addToChallenge"+proposalId).innerHTML = '<div class="message">First, please <a href="../donors/createChallenge.html">create a Giving Page</a>.</div>';
3733
+ document.getElementById("addToChallenge"+proposalId).style.display = "block";
3734
+ } else if (donorChallenges.challenges.length == 1) {
3735
+ addToChallenge(proposalId,donorChallenges.challenges[0].id,verify);
3736
+ } else {
3737
+ var challengesString = "";
3738
+ for (i=0;i<donorChallenges.challenges.length;i++) {
3739
+ challengesString += '<div class="cList"><input type="radio" name="challengeId" value="'+donorChallenges.challenges[i].id+'" onclick="addToChallenge('+proposalId+','+donorChallenges.challenges[i].id+','+verify+');" > <a href="#" onclick="addToChallenge('+proposalId+','+donorChallenges.challenges[i].id+','+verify+');return false;" >' + donorChallenges.challenges[i].title + '</a></div>';
3740
+ }
3741
+ if (donorChallenges.challenges.length > 1) {
3742
+ challengesString += '<div align="right"><a href="#" onclick="closeAddToChallenge(\'addToChallenge'+proposalId+'\');return false;">close</a></div>'
3743
+ }
3744
+ document.getElementById("addToChallenge"+proposalId).innerHTML = challengesString;
3745
+ document.getElementById("addToChallenge"+proposalId).style.display = "block";
3746
+ }
3747
+ }
3748
+
3749
+ function addToChallenge(proposalId,challengeId,verify) {
3750
+ document.getElementById("addToChallenge"+proposalId).style.display = "none";
3751
+ document.getElementById("addToChallSuccess"+proposalId).innerHTML = '<div align="center"><br /><img src="http://cdn.donorschoose.net/images/loading_circle.gif" /></div>';
3752
+ document.getElementById("addToChallSuccess"+proposalId).style.display = "block";
3753
+ var urlString = secureBaseURL + "donors/add_to_challenge_json.html?proposalId="+proposalId+"&challengeId="+challengeId+"&callback=addToChallengeStatus";
3754
+ if (verify != null) urlString += "&verify=" + verify;
3755
+ var e = document.createElement("script");
3756
+ e.src = urlString;
3757
+ e.type="text/javascript";
3758
+ document.getElementsByTagName("head")[0].appendChild(e);
3759
+ try {
3760
+ if ('Project Page' != '') {
3761
+ _gaq.push(['_trackEvent','Project Page', 'Link', 'Add to Giving Page']);
3762
+ }
3763
+ } catch (e) {
3764
+ // do nothing
3765
+ }
3766
+ }
3767
+
3768
+ function addToChallengeStatus(obj) {
3769
+ if (obj.message) {
3770
+ document.getElementById("addToChallSuccess"+obj.proposalId).innerHTML = "<p>" + obj.message + "</p>";
3771
+ document.getElementById("addToChallSuccess"+obj.proposalId).style.display = "block";
3772
+ if (donorChallenges.challenges.length == 1) {
3773
+ document.getElementById("addToChallengeLink"+obj.proposalId).style.display = "none";
3774
+ }
3775
+ } else {
3776
+ document.getElementById("addToChallSuccess"+obj.proposalId).innerHTML = "Successfully added!";
3777
+ document.getElementById("addToChallSuccess"+obj.proposalId).style.display = "block";
3778
+ }
3779
+ if ((document.getElementById("addToChallSuccess"+obj.proposalId).innerHTML).indexOf("Successfully added!") > -1) {
3780
+ document.getElementById("addToChallengeLink"+obj.proposalId).style.display = "none";
3781
+ // document.getElementById("addToWishlistLink"+obj.proposalId).style.display = "none";
3782
+ }
3783
+ }
3784
+
3785
+ function saveSearchToChallenge() {
3786
+ if (donorChallenges.challenges.length == 1) {
3787
+ doSaveSearchToChallenge(donorChallenges.challenges[0].id);
3788
+ } else {
3789
+ var challengesString = "";
3790
+ for (i=0;i<donorChallenges.challenges.length;i++) {
3791
+ challengesString += '<a href="#" onclick="doSaveSearchToChallenge('+donorChallenges.challenges[i].id+');return returnFalse();" >' + donorChallenges.challenges[i].title + '</a><br />';
3792
+ }
3793
+ document.getElementById("saveSearchToChallengeList").innerHTML = challengesString;
3794
+ document.getElementById("saveSearchToChallengeList").style.display = "block";
3795
+ }
3796
+ }
3797
+
3798
+ function doSaveSearchToChallenge(challengeId) {
3799
+ document.getElementById("saveSearchToChallengeLink").className = "loading";
3800
+ document.getElementById("saveSearchToChallengeList").style.display = "none";
3801
+ document.saveSearchToChallengeForm.id.value = challengeId;
3802
+ if (document.getElementById("followIframe")) {
3803
+ var wiEl = document.getElementById("followIframe");
3804
+ wiEl.parentNode.removeChild(wiEl);
3805
+ }
3806
+ followIframe = document.createElement('iframe');
3807
+ followIframe.setAttribute("id","followIframe");
3808
+ followIframe.setAttribute("name","followIframe");
3809
+ followIframe.setAttribute("width","0");
3810
+ followIframe.setAttribute("height","0");
3811
+ followIframe.setAttribute("frameBorder","0");
3812
+ document.body.appendChild(followIframe);
3813
+ document.saveSearchToChallengeForm.target = "followIframe";
3814
+ document.saveSearchToChallengeForm.submit();
3815
+ }
3816
+
3817
+ function saveSearchToChallengeStatus(status) {
3818
+ document.getElementById("saveSearchToChallengeLink").className = "";
3819
+ if (status == "success") {
3820
+ alert("Success!");
3821
+ document.getElementById("saveSearchToChallengeLink").style.display = "none";
3822
+ }
3823
+ else if (status == "signinRequired") alert("Please sign into your account to use this feature.");
3824
+ else if (status == "noChallenge") alert("The giving page could not be found.");
3825
+ }
3826
+
3827
+ function getIframeBody(id) {
3828
+ var el = getContentDocument(id);
3829
+ if (el.src != "javascript:false") {
3830
+ eval(el.body.innerHTML);
3831
+ }
3832
+ }
3833
+
3834
+ </script>
3835
+
3836
+ <script type="text/javascript">
3837
+ if (isLoggedIn()) {
3838
+ document.write('<scr'+'ipt type="text/javascript" src="https://secure.donorschoose.org/donors/add_to_challenge_json.html?proposalId=0&callback=setupChallengeLinks"></scri'+'pt>');
3839
+ }
3840
+ </script>
3841
+
3842
+
3843
+
3844
+ <!-- SET UP SIMILAR PROJECTS -->
3845
+ <script type="text/javascript">
3846
+
3847
+ function changeWidgetToSpinner() {
3848
+ document.getElementById('loading').style.display='block';
3849
+ document.getElementById('simpleWidget').style.display='none';
3850
+ }
3851
+
3852
+ function displayGivingPageProjects(challenge) {
3853
+ if (challenge.proposals != null && challenge.proposals.length > 3) {
3854
+ document.getElementById("searchProjectLink").href = "http://www.donorschoose.org/donors/viewChallenge.html?id=" + challenge.challengeId;
3855
+ document.getElementById("searchProjectLinkText").innerHTML = "View more projects in " + challenge.challengeName;
3856
+ document.getElementById("searchProjectLinkText").href = "http://www.donorschoose.org/donors/viewChallenge.html?id=" + challenge.challengeId;
3857
+ displayJSONProposals(challenge.proposals,document.getElementById("searchProjectLink").href);
3858
+ document.getElementById("searchProjects").style.display = "block";
3859
+ } else if (challenge.proposals != null && challenge.proposals.length > 0) {
3860
+ displaySuggestedSearches();
3861
+ } else {
3862
+ displayDefaultSearch();
3863
+ }
3864
+ }
3865
+
3866
+ function displayDonorProfileProjects(donorProfile) {
3867
+ if (donorProfile.proposals != null && donorProfile.proposals.length > 3) {
3868
+ document.getElementById("searchProjectLink").href = "http://www.donorschoose.org/donor/" + donorProfile.donorId;
3869
+ document.getElementById("searchProjectLinkText").innerHTML = "View more projects in " + readCookie("searchTermsDesc");
3870
+ document.getElementById("searchProjectLinkText").href = "http://www.donorschoose.org/donor/" + donorProfile.donorId;
3871
+ displayJSONProposals(donorProfile.proposals,document.getElementById("searchProjectLink").href);
3872
+ document.getElementById("searchProjects").style.display = "block";
3873
+ } else if (donorProfile.proposals != null && donorProfile.proposals.length > 0) {
3874
+ displaySuggestedSearches();
3875
+ } else {
3876
+ displayDefaultSearch();
3877
+ }
3878
+ }
3879
+
3880
+ function displaySearchProjects(search) {
3881
+ if (search.proposals != null && search.proposals.length > 3) {
3882
+ if (search.searchURL.indexOf("?utm_") > -1) {
3883
+ document.getElementById("searchProjectLink").href = "http://www.donorschoose.org/donors/search.html";
3884
+ } else {
3885
+ document.getElementById("searchProjectLink").href = search.searchURL.split("&utm_")[0].replace(/\historical=true&amp;/, "").replace(/&historical=true/, "");
3886
+ }
3887
+ if (document.getElementById("searchProjectLink").href.indexOf("?") > -1) {
3888
+ document.getElementById("searchProjectLinkText").innerHTML = "View more projects in " + search.searchTerms;
3889
+ document.getElementById("searchProjectLinkText").href = document.getElementById("searchProjectLink").href;
3890
+ }
3891
+ displayJSONProposals(search.proposals,document.getElementById("searchProjectLink").href);
3892
+ document.getElementById("searchProjects").style.display = "block";
3893
+ } else if (search.proposals != null && search.proposals.length > 0) {
3894
+ displaySuggestedSearches();
3895
+ } else {
3896
+ displayDefaultSearch();
3897
+ }
3898
+ }
3899
+ function displayJSONProposals(proposals,searchURL) {
3900
+ var counter = 0;
3901
+ var ran = Math.floor(Math.random() * proposals.length);
3902
+ for (i=0;i<proposals.length;i++) {
3903
+ if (counter >= 3) {
3904
+ break;
3905
+ }
3906
+ if (ran + i < proposals.length && proposals[ran + i].id != "779216" && proposals[ran + i].imageURL != "") {
3907
+ document.getElementById("searchProjectLink" + counter).href = searchURL;
3908
+ document.getElementById("searchProjectImage" + counter).src = proposals[ran + i].imageURL;
3909
+ document.getElementById("searchProjectLink" + counter).style.display = "block";
3910
+ counter++;
3911
+ } else if ((ran + i) - proposals.length >= 0 && proposals[(ran + i) - proposals.length].id != "779216" && proposals[(ran + i) - proposals.length].imageURL != "") {
3912
+ document.getElementById("searchProjectLink" + counter).href = searchURL;
3913
+ document.getElementById("searchProjectImage" + counter).src = proposals[(ran + i) - proposals.length].imageURL;
3914
+ document.getElementById("searchProjectLink" + counter).style.display = "block";
3915
+ counter++;
3916
+ }
3917
+ }
3918
+ }
3919
+
3920
+ function displaySuggestedSearches() {
3921
+ if (readCookie("searchTermsURL") != null && readCookie("searchTermsDesc") != null) {
3922
+ document.getElementById("cookieSearch").href = readCookie("searchTermsURL");
3923
+ document.getElementById("cookieSearch").innerHTML = readCookie("searchTermsDesc");
3924
+ document.getElementById("suggestedSearches").style.display = "block";
3925
+ }
3926
+ document.write('<scr'+'ipt type="text/javascript" src="http://www.donorschoose.org/common/json_feed.html?max=10&APIKey=H9v7hCeN&callback=displaySearchProjects"></scri'+'pt>');
3927
+ }
3928
+
3929
+ var displayDefaultSearchCtr = 0;
3930
+ function displayDefaultSearch() {
3931
+ if (displayDefaultSearchCtr == 0) {
3932
+ document.write('<scr'+'ipt type="text/javascript" src="http://www.donorschoose.org/common/json_feed.html?max=10&APIKey=H9v7hCeN&callback=displaySearchProjects"></scri'+'pt>');
3933
+ displayDefaultSearchCtr++;
3934
+ }
3935
+ }
3936
+
3937
+
3938
+
3939
+ function incrementAndSetSearchIndexCookie(proposalId) {
3940
+ if (readCookie("searchTermsIndex") != null) {
3941
+ var searchTermsIndex = readCookie("searchTermsIndex");
3942
+ var searchIndex = parseInt(searchTermsIndex.split("of")[0]);
3943
+ var searchTotal = parseInt((searchTermsIndex.split("of")[1]).split("proposalIds")[0]);
3944
+ var proposalIds = ((searchTermsIndex.split("of")[1]).split("proposalIds")[1]).split(",");
3945
+ if ($.inArray(proposalId,proposalIds) == -1) {
3946
+ if ($.inArray('779216',proposalIds) > -1) {
3947
+ proposalIds[$.inArray('779216',proposalIds) + 1] = proposalId;
3948
+ } else {
3949
+ proposalIds.push(proposalId);
3950
+ }
3951
+ }
3952
+ createCookie("searchTermsIndex",searchIndex+"of"+searchTotal + "proposalIds" + proposalIds.toString(),0);
3953
+ }
3954
+ }
3955
+
3956
+ function setUpNextProject() {
3957
+
3958
+ if (readCookie("searchTermsIndex") != null && readCookie("searchTermsURL") != null && readCookie("searchTermsURL").indexOf("?") > -1) {
3959
+
3960
+ var searchType = readCookie("searchTermsURL").split("?")[0];
3961
+ var searchQuery = readCookie("searchTermsURL").split("?")[1];
3962
+ var searchTermsIndex = readCookie("searchTermsIndex");
3963
+ var searchIndex = parseInt(searchTermsIndex.split("of")[0]);
3964
+ var searchTotal = parseInt((searchTermsIndex.split("of")[1]).split("proposalIds")[0]);
3965
+ var proposalIds = ((searchTermsIndex.split("of")[1]).split("proposalIds")[1]).split(",");
3966
+
3967
+ // searchIndex is set from search list only, so correct in case this is a back button
3968
+ if ($.inArray("779216",proposalIds) > 0) {
3969
+ searchIndex = searchIndex + $.inArray("779216",proposalIds);
3970
+ if (searchIndex > searchTotal -1) searchIndex = searchIndex - (searchTotal - 1);
3971
+ }
3972
+
3973
+ if (searchTotal > 1) {
3974
+ searchIndex++;
3975
+ if (searchIndex >= searchTotal) searchIndex = 0;
3976
+ searchQuery = searchQuery.replace(/max=[0-9].?/, "");
3977
+ searchQuery = searchQuery.replace(/page=[0-9].?/, "");
3978
+ searchQuery += "&max=1&index=" + searchIndex;
3979
+ searchQuery = searchQuery.replace(/&&/g, "&");
3980
+
3981
+
3982
+ if (searchType.indexOf("viewChallenge.html") > -1 ) {
3983
+ document.write('<scr'+'ipt type="text/javascript" src="http://www.donorschoose.org/common/json_challenge.html?'+searchQuery+'&APIKey=H9v7hCeN&callback=displayNextProject"></scri'+'pt>');
3984
+ } else if (searchType.indexOf("donor.html") > -1 ) {
3985
+ document.write('<scr'+'ipt type="text/javascript" src="http://www.donorschoose.org/common/json_donor.html?'+searchQuery+'&APIKey=H9v7hCeN&callback=displayNextProject"></scri'+'pt>');
3986
+ } else {
3987
+ document.write('<scr'+'ipt type="text/javascript" src="http://www.donorschoose.org/common/json_feed.html?'+searchQuery+'&APIKey=H9v7hCeN&callback=displayNextProject"></scri'+'pt>');
3988
+ }
3989
+ }
3990
+ }
3991
+ }
3992
+
3993
+ setUpNextProject();
3994
+
3995
+ function displayNextProject(search) {
3996
+ if (search.proposals != null && search.proposals.length > 0) {
3997
+ var nextProposal = search.proposals[0];
3998
+ document.getElementById("nextProjectLink1").href = baseURL+'donors/proposal.html?id='+nextProposal.id;
3999
+ document.getElementById("nextProjectLink2").href = baseURL+'donors/proposal.html?id='+nextProposal.id;
4000
+ document.getElementById("nextProjectImage").src = nextProposal.imageURL;
4001
+ document.getElementById("nextProjectLink2").innerHTML = nextProposal.title;
4002
+ document.getElementById("nextProject").style.display = "block";
4003
+ document.getElementById("nextProjectLink1").onclick = new Function("incrementAndSetSearchIndexCookie('"+nextProposal.id+"')");
4004
+ document.getElementById("nextProjectLink2").onclick = new Function("incrementAndSetSearchIndexCookie('"+nextProposal.id+"')");
4005
+
4006
+ }
4007
+ }
4008
+
4009
+ </script>
4010
+
4011
+
4012
+
4013
+
4014
+
4015
+
4016
+
4017
+
4018
+
4019
+
4020
+
4021
+
4022
+
4023
+
4024
+
4025
+
4026
+
4027
+
4028
+
4029
+
4030
+
4031
+
4032
+
4033
+
4034
+
4035
+
4036
+
4037
+
4038
+
4039
+
4040
+
4041
+
4042
+
4043
+
4044
+
4045
+
4046
+
4047
+
4048
+
4049
+
4050
+
4051
+
4052
+
4053
+
4054
+
4055
+
4056
+
4057
+
4058
+
4059
+
4060
+
4061
+
4062
+
4063
+
4064
+
4065
+
4066
+
4067
+
4068
+
4069
+
4070
+
4071
+
4072
+
4073
+
4074
+
4075
+
4076
+
4077
+
4078
+
4079
+
4080
+
4081
+
4082
+
4083
+
4084
+
4085
+
4086
+
4087
+ <!-- GOOGLE ANALYTICS TRACKING FOOTER -->
4088
+
4089
+ <script type="text/javascript">
4090
+
4091
+ (function() {
4092
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
4093
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
4094
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
4095
+ })();
4096
+
4097
+ </script>
4098
+
4099
+ <!-- /GOOGLE ANALYTICS TRACKING FOOTER -->
4100
+
4101
+
4102
+ </body>
4103
+ </html>
4104
+