hangry 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/README.md +1 -0
  2. data/lib/hangry.rb +1 -0
  3. data/lib/hangry/data_vocabulary_recipe_parser.rb +4 -0
  4. data/lib/hangry/hrecipe_parser.rb +20 -6
  5. data/lib/hangry/recipe_parser.rb +3 -1
  6. data/lib/hangry/schema_org_recipe_parser.rb +4 -0
  7. data/lib/hangry/version.rb +1 -1
  8. data/spec/fixtures/{bbc.co.uk.html → hrecipe/bbc.co.uk.html} +0 -0
  9. data/spec/fixtures/{bigoven.html → hrecipe/bigoven.html} +0 -0
  10. data/spec/fixtures/hrecipe/campbellskitchen.com.html +1970 -0
  11. data/spec/fixtures/{cooking.com.html → hrecipe/cooking.com.html} +0 -0
  12. data/spec/fixtures/{cooks.com.html → hrecipe/cooks.com.html} +0 -0
  13. data/spec/fixtures/hrecipe/drinksmixer.com.html +604 -0
  14. data/spec/fixtures/{epicurious.html → hrecipe/epicurious.html} +0 -0
  15. data/spec/fixtures/hrecipe/grouprecipes.com.html +982 -0
  16. data/spec/fixtures/hrecipe/homecooking.about.com.html +326 -0
  17. data/spec/fixtures/hrecipe/jamieoliver.com.html +868 -0
  18. data/spec/fixtures/hrecipe/mrfood.com.html +4642 -0
  19. data/spec/fixtures/hrecipe/southernfood.about.com.html +328 -0
  20. data/spec/fixtures/{tasteofhome.com.html → hrecipe/tasteofhome.com.html} +0 -0
  21. data/spec/fixtures/{allrecipes.html → schema_org/allrecipes.html} +0 -0
  22. data/spec/fixtures/{betty_crocker.html → schema_org/betty_crocker.html} +0 -0
  23. data/spec/fixtures/{copykat.com.html → schema_org/copykat.com.html} +0 -0
  24. data/spec/fixtures/{chow.com.html → schema_org/data-vocabulary_org/chow.com.html} +0 -0
  25. data/spec/fixtures/{myrecipes.com.html → schema_org/data-vocabulary_org/myrecipes.com.html} +0 -0
  26. data/spec/fixtures/{saveur.com.html → schema_org/data-vocabulary_org/saveur.com.html} +0 -0
  27. data/spec/fixtures/{tarladalal.com.html → schema_org/data-vocabulary_org/tarladalal.com.html} +0 -0
  28. data/spec/fixtures/{taste.com.au.html → schema_org/data-vocabulary_org/taste.com.au.html} +0 -0
  29. data/spec/fixtures/{eatingwell.com.html → schema_org/eatingwell.com.html} +0 -0
  30. data/spec/fixtures/{food.com.html → schema_org/food.com.html} +0 -0
  31. data/spec/fixtures/{food_network_schema_org.html → schema_org/food_network_schema_org.html} +0 -0
  32. data/spec/fixtures/{food_network_with_blank_ingredients.html → schema_org/food_network_with_blank_ingredients.html} +0 -0
  33. data/spec/fixtures/{foodandwine.com.html → schema_org/foodandwine.com.html} +0 -0
  34. data/spec/fixtures/{heart.org.html → schema_org/heart.org.html} +0 -0
  35. data/spec/fixtures/{pillsbury.com.html → schema_org/pillsbury.com.html} +0 -0
  36. data/spec/hangry_spec.rb +1 -0
  37. data/spec/real_examples/{bbc_co_uk_spec.rb → hrecipe/bbc_co_uk_spec.rb} +2 -1
  38. data/spec/real_examples/{big_oven_spec.rb → hrecipe/big_oven_spec.rb} +2 -1
  39. data/spec/real_examples/hrecipe/campbells_kitchen_com_spec.rb +63 -0
  40. data/spec/real_examples/{cooking_com_spec.rb → hrecipe/cooking_com_spec.rb} +3 -2
  41. data/spec/real_examples/{cooks_com_spec.rb → hrecipe/cooks_com_spec.rb} +2 -1
  42. data/spec/real_examples/hrecipe/drinks_mixer_com_spec.rb +57 -0
  43. data/spec/real_examples/{epicurious_spec.rb → hrecipe/epicurious_spec.rb} +2 -1
  44. data/spec/real_examples/hrecipe/group_recipes_com_spec.rb +65 -0
  45. data/spec/real_examples/hrecipe/home_cooking_food_com_spec.rb +79 -0
  46. data/spec/real_examples/hrecipe/jamie_oliver_com_spec.rb +61 -0
  47. data/spec/real_examples/hrecipe/mr_food_com_spec.rb +55 -0
  48. data/spec/real_examples/hrecipe/southern_food_about_com_spec.rb +64 -0
  49. data/spec/real_examples/{taste_of_home_spec.rb → hrecipe/taste_of_home_spec.rb} +4 -3
  50. data/spec/real_examples/{all_recipes_spec.rb → schema_org/all_recipes_spec.rb} +2 -1
  51. data/spec/real_examples/{betty_crocker_spec.rb → schema_org/betty_crocker_spec.rb} +2 -1
  52. data/spec/real_examples/{copykat_spec.rb → schema_org/copykat_spec.rb} +2 -1
  53. data/spec/real_examples/{chow_com_spec.rb → schema_org/data-vocabulary_org/chow_com_spec.rb} +2 -1
  54. data/spec/real_examples/{myrecipes_com_spec.rb → schema_org/data-vocabulary_org/myrecipes_com_spec.rb} +2 -1
  55. data/spec/real_examples/{saveur_com_spec.rb → schema_org/data-vocabulary_org/saveur_com_spec.rb} +2 -1
  56. data/spec/real_examples/{tarladalal_com_spec.rb → schema_org/data-vocabulary_org/tarladalal_com_spec.rb} +2 -1
  57. data/spec/real_examples/{taste_com_au_spec.rb → schema_org/data-vocabulary_org/taste_com_au_spec.rb} +2 -1
  58. data/spec/real_examples/{eating_well_spec.rb → schema_org/eating_well_spec.rb} +3 -2
  59. data/spec/real_examples/{food_and_wine_spec.rb → schema_org/food_and_wine_spec.rb} +2 -1
  60. data/spec/real_examples/{food_com_spec.rb → schema_org/food_com_spec.rb} +2 -1
  61. data/spec/real_examples/{food_network_spec.rb → schema_org/food_network_spec.rb} +4 -2
  62. data/spec/real_examples/{heart_org_spec.rb → schema_org/heart_org_spec.rb} +2 -1
  63. data/spec/real_examples/{pillsbury_spec.rb → schema_org/pillsbury_spec.rb} +2 -1
  64. metadata +124 -96
@@ -0,0 +1,4642 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml"
3
+ xmlns:og="http://opengraphprotocol.org/schema/"
4
+ xmlns:fb="http://ogp.me/ns/fb#">
5
+ <head>
6
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
7
+ <meta name="verify-v1" content="Jv+u2XzjkvrDjaMSNbq8Rw62ptWvWVW5MctkAfV0hLc=" />
8
+ <title>Saucy Italian Pot Roast | mrfood.com</title>
9
+ <meta name="keywords" content="crock pot, crock pot recipes, crockpot, crockpot recipes, slow cooker, slow cooker recipes, slowcooker, slowcooker recipes, italian, italian recipes, pot roast recipes," />
10
+ <meta name="description" content="Try this saucy pot roast over egg noodles, rice, or-for more authentic Italian flavor-polenta. It's a winner whichever way you choose!" />
11
+ <link rel="shortcut icon" href="/favicon_28.ico" />
12
+ <!-- START Google site verification -->
13
+ <meta name="google-site-verification" content="skrN5PJ5Nmzqsu0UOujUxZFnVUH7KnDROb_cxwi0q3E" />
14
+ <!-- END Google site verification -->
15
+ <!-- START YAHOO site explorer verification -->
16
+ <meta name="y_key" content="f0bd664c743eed3d" />
17
+ <!-- END YAHOO site explorer verification -->
18
+ <!-- START Bing / MSN verification -->
19
+ <meta name="msvalidate.01" content="8AC9DF1016A2AE6A9AF13929D3192FD8" />
20
+ <!-- END MSN verification -->
21
+ <!--<script type="text/javascript" src="/javascript/jquery-1.3.2.min.js"></script>-->
22
+ <!--<script type="text/javascript" src="/javascript/jquery-1.5.min.js"></script>-->
23
+ <script type="text/javascript" src="http://cf2.primecp.com/javascript/jquery-1.5.2.min.js?v=16"></script>
24
+ <!-- load jQuery from Google's CDN service. -->
25
+ <!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>-->
26
+ <!-- start jquery ui -->
27
+ <!-- this was installed to get the autocomplete feature, contains: Core, Widget, Position, Autocomplete -->
28
+ <script type="text/javascript" src="http://cf2.primecp.com/javascript/jquery-ui-1.8.12.custom/js/jquery-ui-1.8.12.custom.min.js?v=16"></script>
29
+ <link rel="stylesheet" type="text/css" href="/javascript/jquery-ui-1.8.12.custom/css/ui-lightness/jquery-ui-1.8.12.custom.css?v=16" media="screen" />
30
+ <!-- end jquery ui -->
31
+ <!-- jQuery Tools Library (Tabs, Tooltip, Scrollable, Overlay, Expose. No jQuery) -->
32
+ <!--<script src="http://cdn.jquerytools.org/1.1.0/tiny/jquery.tools.min.js"></script>-->
33
+ <script type="text/javascript" src="http://cf2.primecp.com/javascript/jquery.tools.min_v1.1.0.js?v=16"></script>
34
+ <script type="text/javascript" src="http://cf2.primecp.com/javascript/jquery.form.js?v=16"></script>
35
+ <script type="text/javascript" src="http://cf2.primecp.com/javascript/site_functions.js?v=16"></script>
36
+ <!-- START getPageJavascript -->
37
+ <!-- array count: 11 -->
38
+ <!-- START article rating js -->
39
+ <script type="text/javascript" src="/javascript/jquery.MetaData.js"></script>
40
+ <script type="text/javascript" src="/javascript/jquery.rating.js"></script>
41
+ <script type="text/javascript">
42
+ var article_comment_rating_input = new Object();
43
+ article_comment_rating_input.user_logged_in = false;
44
+
45
+
46
+
47
+ article_comment_rating_input.article_rated = false;
48
+
49
+
50
+ $(document).ready(
51
+ function() {
52
+
53
+ var alert_str = 'getJavascript_articleRatings ready line: 13969' + "\n";
54
+ alert_str += 'article_comment_rating_input.user_logged_in: ' + article_comment_rating_input.user_logged_in + "\n";
55
+ //alert(alert_str);
56
+
57
+
58
+ if(article_comment_rating_input.article_rated == true){
59
+ // hide the rate it button
60
+ $('.articleRatingHoverFeedback').hide();
61
+ }
62
+
63
+
64
+ // if the user is not logged in
65
+ if(article_comment_rating_input.user_logged_in == false){
66
+ // show a message about logging in
67
+ $('#articleRatingInputForm .login').show();
68
+ $('#articleRatingInputForm .ratingInput').hide();
69
+
70
+ }
71
+
72
+
73
+
74
+
75
+ /**
76
+ *init stars/ratings
77
+ *calling this func will turn inputs into stars
78
+ we are selecting stars in ALL forms
79
+ */
80
+ $('.star').rating(
81
+ {
82
+ required: true // disables the 'cancel' button
83
+ }
84
+ );
85
+
86
+ /**
87
+ disable the stars in the dhtml rating form
88
+ do not let the user change the stars
89
+ i wish this was part of the block above, but it did not work
90
+ */
91
+ $('.star').rating('disable');
92
+
93
+
94
+ /**
95
+ *rate it link
96
+ remove the text from this link
97
+ *it has a background image we want to see
98
+ * set hover behavior
99
+ * set the click handler so it displays the user input rating/comment section
100
+ */
101
+ $('.articleRatingHoverFeedback').click(
102
+ function() {
103
+ //alert('articleRatingHoverFeedback click');
104
+
105
+
106
+ if(article_comment_rating_input.user_logged_in == false){
107
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must login first.');
108
+ }else{
109
+ var current_state = $("#userCommentInputDiv").css('display');
110
+
111
+ switch (current_state){
112
+ case 'block':
113
+ // hide the dhtml rating form
114
+ closeUserCommentInputDiv();
115
+
116
+ break;
117
+ default:
118
+
119
+ var user_comment_width = $('.ratePrintAddDiv').width();
120
+ user_comment_width *= 1.10;
121
+ if(user_comment_width < 400){
122
+ user_comment_width = 400;
123
+ }
124
+
125
+ $("#userCommentInputDiv").css(
126
+ {
127
+ 'width': user_comment_width,
128
+ 'z-index': 9999
129
+ }
130
+ );
131
+
132
+ var left = ( $('#mainLayoutDiv2').width() - $('#userCommentInputDiv').outerWidth() ) / 2 + $(window).scrollLeft() + "px";
133
+ var top = ( $(window).height() - $('#userCommentInputDiv').outerHeight() ) / 2 + $(window).scrollTop() + "px";
134
+
135
+ // show the dhtml rating form
136
+ // we will make this the default so worst case scenario, a click always shows content
137
+ $("#userCommentInputDiv").css(
138
+ {
139
+ 'top': top,
140
+ 'left': left
141
+ }
142
+ );
143
+ //$("#userCommentInputDiv").center();
144
+ $("#userCommentInputDiv").slideDown("slow");
145
+ //$("#userCommentInputDiv").show();
146
+
147
+ // if the user is not logged in we will automatically hide the content
148
+ if(article_comment_rating_input.user_logged_in == false){
149
+ setTimeout("closeUserCommentInputDiv()", 15000);
150
+ }
151
+
152
+
153
+ break;
154
+ }
155
+
156
+
157
+ }
158
+
159
+
160
+
161
+ return false;
162
+ }
163
+ );
164
+
165
+
166
+ // set the on click for the rating description links in the dhtml rating form
167
+ $('#articleRatingInputForm .ratingLink').click(
168
+ function() {
169
+ //alert($(this).attr('href'));
170
+ // update the hidden form value with a value from the link clicked
171
+ $("#articleRatingInputForm input[name=article_rating]").val( $(this).attr('href') );
172
+
173
+ // submit the "main" rating form
174
+ //$('#articleRatingForm2').submit(); // this uses ajax form submit
175
+
176
+ // remove the selectedRating class currently on any of the rating links
177
+ $('#articleRatingInputForm .ratingLink').removeClass('selectedRating');
178
+ // apply the 'selectedRating' class to the link clicked
179
+ $(this).addClass('selectedRating');
180
+
181
+
182
+
183
+ return false;
184
+ }
185
+ );
186
+
187
+ // set the click for the close link in the dhtml rating form
188
+ $('#userCommentInputDiv .closeUserCommentInputButton').click(
189
+ function() {
190
+ closeUserCommentInputDiv();
191
+ return false;
192
+ }
193
+ );
194
+
195
+
196
+
197
+ $('#articleRatingInputForm').ajaxForm(
198
+ {
199
+ beforeSubmit: ajaxFormPreSubmit_articleRatingInputForm,
200
+ success: function(json) {
201
+ var alert_str = 'articleRatingForm success' + "\n";
202
+ alert_str += 'json.result: ' + json.result + "\n";
203
+ alert_str += 'json.aID: ' + json.aID + "\n";
204
+ alert_str += 'json.article_rating: ' + json.article_rating + "\n";
205
+ alert_str += 'json.aNumVotes: ' + json.aNumVotes + "\n";
206
+ alert_str += 'json.aRatingTotal: ' + json.aRatingTotal + "\n";
207
+ alert_str += 'json.aRatingMedian: ' + json.aRatingMedian + "\n";
208
+
209
+ //alert(alert_str);
210
+
211
+
212
+
213
+ $('#articleRatingInputForm .ratingInput').fadeTo('slow', 1.0);
214
+ $('#articleRatingInputForm .adding').hide();
215
+ $('#articleRatingInputForm .complete').show();
216
+
217
+
218
+
219
+ $('#articleAverageRatingForm input.star').rating('enable'); // enable the stars in the avergae form so we can change values
220
+
221
+ var new_rating = Math.round(json.aRatingMedian);
222
+ var rating_index = -1;
223
+ var x = -1;
224
+ //alert('new_rating: ' + new_rating);
225
+
226
+ // loop all the stars in the main form
227
+ $('#articleAverageRatingForm input.star').each(
228
+ function (i) {
229
+ //alert($(this).val());
230
+
231
+ // reset the checked value to false for all
232
+ $(this).attr('checked', false);
233
+ x++;
234
+ //alert('x: ' + x);
235
+
236
+ // get this input's value
237
+ var this_val = parseInt($(this).val());
238
+
239
+ // if the median value passed back mathes the value for this star
240
+ if (this_val == new_rating) {
241
+ // mark this input as checked
242
+ $(this).attr('checked', 'checked');
243
+ rating_index = x;
244
+ }
245
+
246
+ //alert('name / value / checked: ' + $(this).attr('name') + ' / ' + $(this).val() + ' / ' + $(this).attr('checked') );
247
+ }
248
+ );
249
+
250
+
251
+ // update the main form so the new median value is presented
252
+ $('#articleAverageRatingForm input.star').rating('select', rating_index);
253
+
254
+
255
+ $('#articleAverageRatingForm input.star').rating('disable'); // disable the form stars
256
+
257
+ $('.articleRatingHoverFeedback').hide();
258
+
259
+ setTimeout('closeUserCommentInputDiv()', 5000);
260
+
261
+
262
+
263
+
264
+ },
265
+ dataType: 'json'
266
+ }
267
+ );
268
+
269
+
270
+ /**
271
+ *moved to the success handler called after the ajax call to load the form
272
+ *this was too soon. the form was not in the dom
273
+ $('#articleRatingInputForm2').ajaxForm(
274
+ {
275
+ beforeSubmit: ajaxFormPreSubmit_articleRatingInputForm2,
276
+ dataType: 'json',
277
+ success: function(json){
278
+ $('#articleRatingInputForm2 .ratingInput').hide();
279
+ $('#articleRatingInputForm2 .adding').hide();
280
+ $('#articleRatingInputForm2 .complete').show();
281
+ }
282
+ }
283
+ );
284
+ */
285
+
286
+
287
+ } // end main func
288
+ ); // end ready;
289
+
290
+
291
+ function ajaxFormPreSubmit_articleRatingInputForm(){
292
+ //alert('ajaxFormPreSubmit_articleRatingInputForm');
293
+
294
+ var result = true;
295
+
296
+ if($('#articleRatingInputForm input[name=article_rating]').val() < 1){
297
+ alert('Please click one of the ratings or click the close button.');
298
+ result = false;
299
+ }
300
+
301
+ if(result == true){
302
+ $('#articleRatingInputForm .ratingInput').fadeTo('slow', .3);
303
+ $('#articleRatingInputForm .adding').show();
304
+ }
305
+
306
+ return result;
307
+ }
308
+
309
+
310
+ function ajaxFormPreSubmit_userCommentReplyForm(){
311
+ //alert('ajaxFormPreSubmit_userCommentReplyForm');
312
+
313
+ var result = true;
314
+
315
+
316
+ // is the user logged in
317
+ if(article_comment_rating_input.user_logged_in == false){
318
+ /**
319
+ *we test logged in here and when the user first clicks the textarea
320
+ */
321
+ $('.userCommentReplyDiv').slideUp();
322
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must login first.');
323
+ result = false;
324
+ }else{
325
+
326
+ // other tests we do if the user is logged in
327
+
328
+ // did the user add text to the comment textarea
329
+ if($('.userCommentReplyDiv form textarea').val() == ''){
330
+ alert('Please enter your comments.');
331
+ result = false;
332
+ }
333
+ }
334
+
335
+ if(result == true){
336
+ //alert('the form is valid. do some user feedback');
337
+ $('.userCommentReplyDiv form').fadeTo('slow', .3);
338
+ $('.userCommentReplyDiv .adding').show();
339
+ }
340
+
341
+
342
+ return result;
343
+ }
344
+
345
+
346
+
347
+ function ajaxFormPreSubmit_articleRatingInputForm2(){
348
+ //alert('ajaxFormPreSubmit_articleRatingInputForm2');
349
+
350
+ var result = true;
351
+
352
+ // is the user logged in
353
+ if(article_comment_rating_input.user_logged_in == false){
354
+ /**
355
+ *we test logged in here and when the user first clicks the textarea
356
+ */
357
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must login first.');
358
+ result = false;
359
+ }else{
360
+
361
+ // other tests we do if the user is logged in
362
+
363
+ if($('#articleRatingInputForm2 #articleReview2').val() == 'What do you think?'){
364
+ $('#articleRatingInputForm2 #articleReview2').val('');
365
+ }
366
+
367
+ // did the user add text to the comment textarea
368
+ if($('#articleRatingInputForm2 #articleReview2').val() == ''){
369
+ alert('Please enter your comments.');
370
+ result = false;
371
+ }
372
+ }
373
+
374
+ if(result == true){
375
+ $('#articleRatingInputForm2 .ratingInput').fadeTo('slow', .3);
376
+ $('#articleRatingInputForm2 .adding').show();
377
+ }
378
+
379
+ //alert('ajaxFormPreSubmit_articleRatingInputForm2 result: ' + result);
380
+
381
+ return result;
382
+ }
383
+
384
+ function closeUserCommentInputDiv() {
385
+ $("#userCommentInputDiv").slideUp("slow");
386
+ }
387
+
388
+ </script>
389
+ <!-- END article rating js -->
390
+ <!-- START pdf download link js -->
391
+ <script type="text/javascript">
392
+ var pdf_download_obj = new Object();
393
+ pdf_download_obj.user_logged_in = false;
394
+ pdf_download_obj.has_signup_cookie = false;
395
+ pdf_download_obj.show_signup_before_download = true;
396
+ pdf_download_obj.pdf_id = 0;
397
+ pdf_download_obj.dhtml_signup_id = 'pdfDownloadDhtmlDiv';
398
+ pdf_download_obj.link_href = '';
399
+ pdf_download_obj.popup_content_error = false;
400
+
401
+
402
+
403
+ $(document).ready(
404
+ function() {
405
+
406
+ if(pdf_download_obj.user_logged_in || pdf_download_obj.has_signup_cookie){
407
+ pdf_download_obj.show_signup_before_download = false;
408
+ }
409
+
410
+ var alert_str = 'getJavascript_pdfDownload ready line: 11133' + "\n";
411
+ alert_str += 'pdf_download_obj.user_logged_in: ' + pdf_download_obj.user_logged_in + "\n";
412
+ alert_str += 'pdf_download_obj.has_signup_cookie: ' + pdf_download_obj.has_signup_cookie + "\n";
413
+ alert_str += 'pdf_download_obj.show_signup_before_download: ' + pdf_download_obj.show_signup_before_download + "\n";
414
+ //alert(alert_str);
415
+
416
+
417
+ /**
418
+ *as the page loads, if the pdf_download_obj.show_signup_before_download flag true
419
+ */
420
+ if(pdf_download_obj.show_signup_before_download){
421
+
422
+ pdf_download_obj.initDhtml();
423
+
424
+ $('a.launchPdfDownloadDhtml').click(
425
+ function(){
426
+ var return_value = false;
427
+
428
+ var alert_str = 'pdf_download_obj.user_logged_in: ' + pdf_download_obj.user_logged_in + "\n";
429
+ alert_str += 'pdf_download_obj.has_signup_cookie: ' + pdf_download_obj.has_signup_cookie + "\n";
430
+ alert_str += 'pdf_download_obj.show_signup_before_download: ' + pdf_download_obj.show_signup_before_download + "\n";
431
+ //alert(alert_str);
432
+
433
+ //var click_return = true;
434
+ //alert( $(this).attr('href') );
435
+ pdf_download_obj.link_href = $(this).attr('href');
436
+ var link_arr = pdf_download_obj.link_href.split('=');
437
+
438
+ /**
439
+ *does the format of the href meet our expectations
440
+ */
441
+ if(link_arr.length > 1){
442
+ //alert(link_arr[1]);
443
+ pdf_download_obj.pdf_id = link_arr[1];
444
+
445
+ alert_str = 'pdf_download_obj.user_logged_in: ' + pdf_download_obj.user_logged_in + "\n";
446
+ alert_str += 'pdf_download_obj.has_signup_cookie: ' + pdf_download_obj.has_signup_cookie + "\n";
447
+ alert_str += 'pdf_download_obj.show_signup_before_download: ' + pdf_download_obj.show_signup_before_download + "\n";
448
+ alert_str += 'pdf_download_obj.pdf_id: ' + pdf_download_obj.pdf_id + "\n";
449
+ //alert(alert_str);
450
+
451
+ /**
452
+ *now the user is actually clicking a link
453
+ *make sure the pdf_download_obj.show_signup_before_download flag is still true
454
+ */
455
+ if(pdf_download_obj.show_signup_before_download){
456
+ pdf_download_obj.displaySignup();
457
+ }else{
458
+ return_value = true;
459
+ }
460
+
461
+ }else{
462
+ alert('Sorry. We cannot find this file.');
463
+ //click_return = false;
464
+ }
465
+
466
+
467
+ return return_value;
468
+ }
469
+ );
470
+ }
471
+ }
472
+ );
473
+
474
+ pdf_download_obj.initDhtml = function(){
475
+ //alert('pdf_download_obj.initDhtml');
476
+
477
+ $('body').append('<div id="' + pdf_download_obj.dhtml_signup_id + '" class="dhtmlLoginWrapper" style="display: none;"></div>');
478
+
479
+ }
480
+
481
+ pdf_download_obj.displaySignup = function(){
482
+ //alert('pdf_download_obj.displaySignup');
483
+
484
+ $.ajax({
485
+ url: "/ajax_process.php",
486
+ type: 'GET',
487
+ cache: false,
488
+ dataType: "html",
489
+ timeout: 10000,
490
+ data: (
491
+ {
492
+ task: 'get_pdf_download_pdf_dhtml',
493
+ pdfID: pdf_download_obj.pdf_id
494
+ }
495
+ ),
496
+ complete: function(){
497
+ //$('#' + pdf_download_obj.dhtml_signup_id).center().slideDown();
498
+ },
499
+ success: function(html){
500
+
501
+ pdf_download_obj.popup_content_error = false;
502
+
503
+ if(html == 'no-data'){
504
+ /**
505
+ *for whatever reason, we have no content to show
506
+ *allow the user to download the file
507
+ */
508
+ pdf_download_obj.popup_content_error = true;
509
+ pdf_download_obj.closeDhtml();
510
+ }else{
511
+ /**
512
+ * add the dhtml we got back to the page and set some css
513
+ */
514
+ $('#' + pdf_download_obj.dhtml_signup_id).html(html).css(
515
+ {
516
+ 'width' : '600px',
517
+ 'margin' : '0px',
518
+ 'padding' : '5px',
519
+ 'background-color' : '#fff',
520
+ 'border' : '5px solid #333',
521
+ }
522
+ );
523
+
524
+
525
+ pdf_download_obj.hijackForm();
526
+
527
+
528
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .privacyPolicyLink').click(
529
+ function(){
530
+ //alert('click privacyPolicyLink');
531
+
532
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .privacyContent').slideDown();
533
+
534
+ return false;
535
+ }
536
+ ).hover(
537
+ function(){
538
+ $(this).css(
539
+ {
540
+ 'color' : '#000',
541
+ }
542
+ );
543
+ },
544
+ function(){
545
+ $(this).css(
546
+ {
547
+ 'color' : '#a9a9a9'
548
+ }
549
+ );
550
+ }
551
+ );
552
+
553
+
554
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .closePrivacyContentLink').click(
555
+ function(){
556
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .privacyContent').slideUp();
557
+
558
+ return false;
559
+ }
560
+ );
561
+
562
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .closeBoxText').hover(
563
+ function(){
564
+ $(this).css(
565
+ {
566
+ 'color' : '#000',
567
+ 'cursor' : 'pointer'
568
+ }
569
+ );
570
+ },
571
+ function(){
572
+ $(this).css(
573
+ {
574
+ 'color' : '#666'
575
+ }
576
+ );
577
+ }
578
+ );
579
+
580
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .closeBox').click(
581
+ function(){
582
+ //alert('click close box');
583
+ pdf_download_obj.closeDhtml();
584
+ }
585
+ );
586
+
587
+
588
+ /**
589
+ *set some behavior for the email text field
590
+ */
591
+ $('#' + pdf_download_obj.dhtml_signup_id + ' form input[name=email]').val('Enter your email address').click(
592
+ function(){
593
+ $(this).select();
594
+ if($(this).val() == 'Enter your email address'){
595
+ $(this).val('');
596
+ }
597
+ }
598
+ );
599
+
600
+ $('#' + pdf_download_obj.dhtml_signup_id).center().slideDown();
601
+ }
602
+ }
603
+ });
604
+
605
+ pdf_download_obj.closeDhtml = function(){
606
+ var alert_str = 'pdf_download_obj.closeDhtml' + "\n";
607
+ alert_str += 'pdf_download_obj.link_href: ' + pdf_download_obj.link_href + "\n";
608
+ alert_str += 'pdf_download_obj.popup_content_error: ' + pdf_download_obj.popup_content_error + "\n";
609
+ alert_str += 'pdf_download_obj.show_signup_before_download: ' + pdf_download_obj.show_signup_before_download + "\n";
610
+
611
+ //alert(alert_str);
612
+
613
+ $('#' + pdf_download_obj.dhtml_signup_id).slideUp();
614
+
615
+ window.location = pdf_download_obj.link_href;
616
+ //alert(pdf_download_obj.link_href);
617
+
618
+ /**
619
+ *as long as there was not some issue getting the popup content, we will turn off the pdf_download_obj.show_signup_before_download flag
620
+ */
621
+ if(pdf_download_obj.popup_content_error == false){
622
+ /**
623
+ *some action by the user got us here where we are closing the dhtml and starting a download
624
+ *update this property so the user can click other links on the page and download w/o popup
625
+ */
626
+ pdf_download_obj.show_signup_before_download = false;
627
+ }
628
+ }
629
+
630
+ pdf_download_obj.hijackForm = function(){
631
+ //alert('pdf_download_obj.hijackForm');
632
+
633
+ $('#' + pdf_download_obj.dhtml_signup_id + ' form').ajaxForm(
634
+ {
635
+ beforeSubmit: pdf_download_obj.ajaxFormPreSubmit,
636
+ success: function(json) {
637
+
638
+ var alert_str = 'getJavascript_newsletterSignupPage success' + "\n";
639
+ alert_str += 'json.result: ' + json.result + "\n";
640
+ alert_str += 'json.fname: ' + json.fname + "\n";
641
+ alert_str += 'json.lname: ' + json.lname + "\n";
642
+ alert_str += 'json.phone: ' + json.phone + "\n";
643
+ alert_str += 'json.email: ' + json.email + "\n";
644
+
645
+ //alert(alert_str);
646
+
647
+ if (json.result > 0) {
648
+ //$('#newsletterSignupPageDiv fieldset').hide();
649
+ //$('#newsletterSignupPageDiv .formSuccess').show();
650
+
651
+ createCookie('nlsignup', 1825, 1825);
652
+
653
+
654
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .userFeedback').html('Your download will begin shorty.<br />Or <a href="' + pdf_download_obj.link_href + '">click here</a> to download your file.');
655
+
656
+ setTimeout("pdf_download_obj.closeDhtml()", 1000);
657
+
658
+ } else {
659
+ var alert_str = 'We could not sign you up.' + "\n";
660
+ alert_str += 'Please review the information you entered and make sure your email address is correct.' + "\n";
661
+
662
+ //alert(alert_str);
663
+
664
+ $('#' + pdf_download_obj.dhtml_signup_id + ' .userFeedback').html('We could not sign you up.<br />Please check your email address and try again.');
665
+
666
+ $('#' + pdf_download_obj.dhtml_signup_id + ' form').fadeTo("slow", 1.0);
667
+ }
668
+
669
+
670
+ },
671
+ dataType: 'json'
672
+ }
673
+ );
674
+ }
675
+
676
+ pdf_download_obj.ajaxFormPreSubmit = function() {
677
+ var alert_str = 'pdf_download_obj.ajaxFormPreSubmit' + "\n";
678
+ //alert(alert_str);
679
+
680
+ var result = true;
681
+
682
+ var email_val = $('#' + pdf_download_obj.dhtml_signup_id + ' form input[name=email]').val();
683
+
684
+ if(
685
+ email_val == '' ||
686
+ email_val == 'Enter your email address' ||
687
+ email_val.search("Enter your email address") >= 0
688
+ ) {
689
+ result = false;
690
+ alert('You must enter a valid email address.');
691
+ }
692
+
693
+
694
+ if (result == true) {
695
+ $('#' + pdf_download_obj.dhtml_signup_id + ' form').fadeTo("slow", .3);
696
+ }
697
+
698
+
699
+ return result;
700
+ }
701
+ }
702
+
703
+
704
+ </script>
705
+ <!-- END pdf download link js -->
706
+ <!-- START private note js -->
707
+ <script type="text/javascript">
708
+ var private_note = new Object();
709
+ private_note.text = false;
710
+ /**
711
+ * this is actually not true when the page loads. the form will not be displayed
712
+ * however, the workflow requires this to be set to true on page ready
713
+ * */
714
+ private_note.form_displayed = true;
715
+
716
+
717
+ private_note.user_logged_in = false;
718
+ private_note.use_bg_img = false;
719
+
720
+ $(document).ready(
721
+ function(){
722
+
723
+ //alert('getJavascript_privateNotes ready');
724
+
725
+ /**
726
+ *add note link
727
+ */
728
+ $('.articleDiv .privateNoteDiv a.privateNoteLink').click(
729
+ function(){
730
+
731
+ if(private_note.user_logged_in){
732
+ toggleNoteContent();
733
+ //alert('logged in');
734
+ }else{
735
+ //alert('not logged in');
736
+
737
+ $('.privateNoteDiv .login').slideDown('slow');
738
+ setTimeout("$('.privateNoteDiv .login').slideUp('slow')", 15000);
739
+ }
740
+
741
+
742
+ return false;
743
+ }
744
+ );
745
+
746
+
747
+
748
+ var note_btn = $('.ratePrintAddTable .notesTd a, .ratePrintAddDiv .notes a');
749
+
750
+ if(private_note.use_bg_img == true){
751
+ $(note_btn).html('').css(
752
+ {
753
+ 'background-image' : 'url(http://cf2.primecp.com/images/buttons-article-page.png)',
754
+ 'width' : '45px',
755
+ 'height' : '22px',
756
+ 'background-position' : '0 -210px'
757
+ }
758
+ ).hover(
759
+ function(){
760
+ $(this).css('background-position', '-200px -210px');
761
+ },
762
+ function(){
763
+ $(this).css('background-position', '0 -210px');
764
+ }
765
+ );
766
+ }
767
+
768
+ $(note_btn).click(
769
+ /**
770
+ *private note button
771
+ */
772
+ function(){
773
+ //alert('notes button clicked');
774
+
775
+ if(private_note.user_logged_in){
776
+ /**
777
+ *2011-8-4
778
+ *scroll to the notes content
779
+ */
780
+ $('html,body').animate({scrollTop: $("#col2").offset().top},'slow');
781
+ toggleNoteContent();
782
+ //alert('logged in');
783
+ }else{
784
+ //alert('not logged in');
785
+
786
+ //$('.privateNoteDiv .login').slideDown('slow');
787
+ //setTimeout("$('.privateNoteDiv .login').slideUp('slow')", 15000);
788
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must be logged in to add a private note.');
789
+ }
790
+
791
+ return false;
792
+ }
793
+ );
794
+
795
+
796
+ /**
797
+ *add button to the rate/print/add btns
798
+ *remove the text from this link
799
+ *it has a background image we want to see
800
+ ***
801
+ $('.ratePrintAddTable .notesTd a').html('').css(
802
+ {
803
+ 'background-image' : 'url(http://cf2.primecp.com/images/buttons-article-page.png)',
804
+ 'width' : '45px',
805
+ 'height' : '22px',
806
+ 'background-position' : '0 -210px'
807
+ }
808
+ ).hover(
809
+ function(){
810
+ $(this).css('background-position', '-200px -210px');
811
+ },
812
+ function(){
813
+ $(this).css('background-position', '0 -210px');
814
+ }
815
+ ).click(
816
+ /**
817
+ *private note button
818
+ ***
819
+ function(){
820
+ //alert('notes button clicked');
821
+
822
+ /**
823
+ *2011-8-4
824
+ *scroll to the notes content
825
+ ***
826
+ $('html,body').animate({scrollTop: $("#col2").offset().top},'slow');
827
+
828
+
829
+
830
+ if(private_note.user_logged_in){
831
+ toggleNoteContent();
832
+ //alert('logged in');
833
+ }else{
834
+ alert('not logged in');
835
+
836
+ $('.privateNoteDiv .login').slideDown('slow');
837
+ setTimeout("$('.privateNoteDiv .login').slideUp('slow')", 15000);
838
+ }
839
+
840
+ return false;
841
+ }
842
+ );
843
+ */
844
+
845
+
846
+ /**
847
+ *add note form cancel button
848
+ */
849
+ $('.articleDiv .privateNoteDiv input.cancel').click(
850
+ function(){
851
+ /**
852
+ *we are using toggle, but this will always hide the content
853
+ *how else would the cancel button be displaying?
854
+ */
855
+ toggleNoteContent();
856
+
857
+ return false;
858
+ }
859
+ );
860
+
861
+ /**
862
+ *add note form
863
+ */
864
+ $('#privateNoteForm').ajaxForm(
865
+ {
866
+ beforeSubmit: ajaxFormPreSubmit_privateNoteForm,
867
+ dataType: 'html',
868
+ complete: function(){
869
+ //alert('form complete');
870
+
871
+ toggleNoteContent();
872
+
873
+ $('#privateNoteForm').fadeTo("slow", 1.0);
874
+ },
875
+ success: function(html) {
876
+
877
+ var alert_str = 'privateNoteForm success' + "\n";
878
+ alert_str += 'html: ' + "\n";
879
+ alert_str += html;
880
+
881
+ //alert(alert_str);
882
+
883
+ initPrivateNote(html);
884
+
885
+ }
886
+ }
887
+ );
888
+
889
+
890
+ getPrivateNoteText();
891
+
892
+ } // end main func
893
+ ); // end ready;
894
+
895
+
896
+ function initPrivateNote(html){
897
+ /**
898
+ *add the note text to the html version
899
+ */
900
+ $(".privateNoteText span").html(html);
901
+
902
+ /**
903
+ *add the note text to the text area
904
+ */
905
+ $("#mynotes").val(html);
906
+
907
+ if(html != ''){
908
+ private_note.text = html;
909
+ }else{
910
+ private_note.text = false;
911
+ }
912
+ }
913
+
914
+ function toggleNoteContent(){
915
+ //alert('toggleNoteContent');
916
+
917
+ if(private_note.form_displayed == true){
918
+
919
+ $('#privateNoteForm').slideUp('slow');
920
+ private_note.form_displayed = false;
921
+
922
+ if(private_note.text != false){
923
+ /**
924
+ *if we have text, show it
925
+ **/
926
+ $('.privateNoteText').slideDown('slow');
927
+ }
928
+ }else{
929
+
930
+ $('#privateNoteForm').slideDown('slow');
931
+ private_note.form_displayed = true;
932
+ /**
933
+ *if we are showing the form we are always hiding the text
934
+ **/
935
+ $('.privateNoteText').slideUp('slow');
936
+ }
937
+
938
+
939
+ }
940
+
941
+
942
+
943
+ function getPrivateNoteText(){
944
+ //alert('getPrivateNoteText');
945
+
946
+ $.ajax({
947
+ url: "/ajax_process.php",
948
+ type: 'GET',
949
+ cache: false,
950
+ data: (
951
+ {
952
+ aID: '82166',
953
+ task: 'private_note_get'
954
+ }
955
+ ),
956
+ dataType: "html",
957
+ timeout: 10000,
958
+ complete: function(){
959
+ //alert('getPrivateNoteText complete');
960
+ //$("#articleCommentRatingDiv .commentLoadingDiv").remove();
961
+ },
962
+ success: function(html){
963
+
964
+ initPrivateNote(html);
965
+
966
+ toggleNoteContent();
967
+ //alert('success: private_note.text = ' + private_note.text);
968
+
969
+ }
970
+ });
971
+ }
972
+
973
+ function ajaxFormPreSubmit_privateNoteForm() {
974
+ var alert_str = 'ajaxFormPreSubmit_privateNoteForm' + "\n";
975
+ //alert(alert_str);
976
+
977
+ var result = true;
978
+
979
+ /**
980
+ *2009-01-04
981
+ *we allow them to send nothing, this would allow them to remove an existing note, but it does not delete the record
982
+ *if only sets the value to empty
983
+ *
984
+
985
+ if ($('#mynotes').val() == '') {
986
+ result = false;
987
+ alert('You must enter text into the note section.');
988
+ }
989
+ */
990
+
991
+ if (result == true) {
992
+ $('#privateNoteForm').fadeTo("slow", .3);
993
+ }
994
+
995
+
996
+
997
+ return result;
998
+ }
999
+
1000
+
1001
+ </script>
1002
+ <!-- END private note js -->
1003
+ <!-- START article rating js -->
1004
+ <script type="text/javascript">
1005
+ var user_logged_in = false;
1006
+
1007
+ var addArticleToMyBox_obj = {};
1008
+ addArticleToMyBox_obj.aID = 0;
1009
+ addArticleToMyBox_obj.article_in_box = false;
1010
+ addArticleToMyBox_obj.aID = 82166;
1011
+
1012
+
1013
+ $(document).ready(
1014
+ function() {
1015
+ //alert('getJavascript_addArticleToMyBox ready line: 12057');
1016
+
1017
+ //alert('addArticleToMyBox_obj.article_in_box: ' + addArticleToMyBox_obj.article_in_box + ' (12059)');
1018
+
1019
+ /**
1020
+ *remove the text from this link
1021
+ *it has a background image we want to see
1022
+ *
1023
+ *2011-11-1
1024
+ *not sure why this is here
1025
+ * .printTd deals with the print btn, but this func presumable handles the save button
1026
+ *
1027
+ *2012-1-11
1028
+ *break this up into smaller pieces so it can be site specific
1029
+ */
1030
+ $('.ratePrintAddTable .printTd a, .ratePrintAddDiv .print a').hover(
1031
+ function(){
1032
+ $(this).css('background-position', '-200px -60px');
1033
+ },
1034
+ function(){
1035
+ $(this).css('background-position', '0 -60px');
1036
+ }
1037
+ );
1038
+
1039
+
1040
+ /**
1041
+ *remove the text from this link
1042
+ *it has a background image we want to see
1043
+ *
1044
+ */
1045
+ $('.ratePrintAddTable .addTd a, .ratePrintAddDiv .add a').html('Save to Recipe Box');
1046
+
1047
+ $('.ratePrintAddDiv .remove a').click(
1048
+ function(){
1049
+ /**
1050
+ *the remove functionality is done here via ajax, no form involved (unlike add)
1051
+ */
1052
+ $.ajax({
1053
+ url: "/ajax_process.php",
1054
+ type: 'POST',
1055
+ cache: false,
1056
+ dataType: "json",
1057
+ timeout: 10000,
1058
+ data: (
1059
+ {
1060
+ task: 'remove_article_from_box',
1061
+ aID: addArticleToMyBox_obj.aID
1062
+ }
1063
+ ),
1064
+ complete: function(){
1065
+
1066
+ },
1067
+ success: function(json){
1068
+ $('.ratePrintAddDiv .remove').hide();
1069
+ $('.ratePrintAddTable .addTd, .ratePrintAddDiv .add').show();
1070
+ }
1071
+ });
1072
+
1073
+ return false;
1074
+ }
1075
+ );
1076
+
1077
+
1078
+ $('.ratePrintAddTable .addTd a, .ratePrintAddDiv .add a').click(
1079
+ function(){
1080
+
1081
+ // hide what ever content might have been showing in this feedback div
1082
+ $('.addToMyBoxFeedbackDiv p').hide();
1083
+
1084
+ /**
1085
+ *2011-8-4
1086
+ *updates so the content can get called by multiple buttons and appear anywhere
1087
+ */
1088
+ var user_comment_width = $('.ratePrintAddDiv').width();
1089
+ user_comment_width *= 1.10;
1090
+ if(user_comment_width < 400){
1091
+ user_comment_width = 400;
1092
+ }
1093
+
1094
+ $(".addToMyBoxFeedbackDiv").css(
1095
+ {
1096
+ 'width': user_comment_width,
1097
+ 'z-index': 9999
1098
+ }
1099
+ );
1100
+
1101
+ var left = ( $('#mainLayoutDiv2').width() - $('.addToMyBoxFeedbackDiv').outerWidth() ) / 2 + $(window).scrollLeft() + "px";
1102
+ var top = ( $(window).height() - $('.addToMyBoxFeedbackDiv').outerHeight() ) / 2 + $(window).scrollTop() + "px";
1103
+
1104
+ $(".addToMyBoxFeedbackDiv").css(
1105
+ {
1106
+ 'top': top,
1107
+ 'left': left
1108
+ }
1109
+ );
1110
+
1111
+
1112
+
1113
+ if(user_logged_in){
1114
+ $('.addToMyBoxFeedbackDiv p.adding').show();
1115
+ $('.addToMyBoxFeedbackDiv').slideDown('slow');
1116
+
1117
+ /**
1118
+ *2012-1-12
1119
+ *the add feature was done with a form
1120
+ */
1121
+ $('#addToMyBoxFeedbackForm').submit();
1122
+ }else{
1123
+ /**
1124
+ *2011-11-1
1125
+ *commented out
1126
+ $('.addToMyBoxFeedbackDiv p.login').show();
1127
+
1128
+ $('.addToMyBoxFeedbackDiv').slideDown('slow');
1129
+ setTimeout("$('.addToMyBoxFeedbackDiv').slideUp('slow')", 15000);
1130
+ */
1131
+
1132
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must login first.');
1133
+ }
1134
+
1135
+
1136
+ return false;
1137
+ }
1138
+ );
1139
+
1140
+
1141
+ if(addArticleToMyBox_obj.article_in_box){
1142
+ $('.ratePrintAddDiv .remove').show();
1143
+ }else{
1144
+ $('.ratePrintAddTable .addTd, .ratePrintAddDiv .add').show();
1145
+ }
1146
+
1147
+
1148
+
1149
+ // addToMyBoxFeedbackForm form
1150
+ $('#addToMyBoxFeedbackForm').ajaxForm(
1151
+ {
1152
+ success: function(json) {
1153
+ var alert_str = 'addToMyBoxFeedbackForm success' + "\n";
1154
+ alert_str = 'json.success: ' + json.success + "\n";
1155
+ alert_str = 'json.aID: ' + json.aID + "\n";
1156
+ //alert(alert_str);
1157
+
1158
+ //$('.addToMyBoxFeedbackDiv span').html('The recipe was added to your recipe box.');
1159
+ $('.addToMyBoxFeedbackDiv p.adding').hide();
1160
+ $('.addToMyBoxFeedbackDiv p.complete').show();
1161
+
1162
+ setTimeout("$('.addToMyBoxFeedbackDiv').slideUp('slow')", 5000);
1163
+
1164
+ $('.ratePrintAddDiv .remove').show();
1165
+ $('.ratePrintAddTable .addTd, .ratePrintAddDiv .add').hide();
1166
+ },
1167
+ dataType: 'json'
1168
+ }
1169
+ );
1170
+
1171
+ } // end main func
1172
+ ); // end ready;
1173
+
1174
+ </script>
1175
+ <!-- START article rating js -->
1176
+ <script type="text/javascript">
1177
+ var social_net_obj = new Object();
1178
+ social_net_obj.links = new Object();
1179
+
1180
+ /*
1181
+ social_net_obj.links['facebook'] = new Object();
1182
+ social_net_obj.links['facebook'].width = 59;
1183
+ social_net_obj.links['facebook'].height = 22;
1184
+ social_net_obj.links['facebook'].pos_x = 0;
1185
+ social_net_obj.links['facebook'].pos_y = -330;
1186
+ social_net_obj.links['facebook'].pos_hover_x = -200;
1187
+ social_net_obj.links['facebook'].use_bg_img = 1;
1188
+
1189
+
1190
+ social_net_obj.links['twitter'] = new Object();
1191
+ social_net_obj.links['twitter'].width = 59;
1192
+ social_net_obj.links['twitter'].height = 22;
1193
+ social_net_obj.links['twitter'].pos_x = 0;
1194
+ social_net_obj.links['twitter'].pos_y = -360;
1195
+ social_net_obj.links['twitter'].pos_hover_x = -200;
1196
+ social_net_obj.links['twitter'].use_bg_img = 1;
1197
+ */
1198
+
1199
+ social_net_obj.links['comment'] = new Object();
1200
+ social_net_obj.links['comment'].width = 59;
1201
+ social_net_obj.links['comment'].height = 22;
1202
+ social_net_obj.links['comment'].pos_x = 0;
1203
+ social_net_obj.links['comment'].pos_y = -390;
1204
+ social_net_obj.links['comment'].pos_hover_x = -200;
1205
+ social_net_obj.links['comment'].click = goToComments;
1206
+ social_net_obj.links['comment'].use_bg_img = 1;
1207
+
1208
+ /*
1209
+ social_net_obj.links['share'] = new Object();
1210
+ social_net_obj.links['share'].width = 45;
1211
+ social_net_obj.links['share'].height = 22;
1212
+ social_net_obj.links['share'].pos_x = 0;
1213
+ social_net_obj.links['share'].pos_y = -180;
1214
+ social_net_obj.links['share'].pos_hover_x = -200;
1215
+ social_net_obj.links['share'].click = toggleShareLinks;
1216
+ social_net_obj.links['share'].use_bg_img = 1;
1217
+ */
1218
+ social_net_obj.links['comment'].use_bg_img = 0;
1219
+ /*
1220
+ social_net_obj.links['share'].use_bg_img = 0;
1221
+
1222
+ social_net_obj.links['facebook'].width = 42;
1223
+ social_net_obj.links['facebook'].height = 17;
1224
+ social_net_obj.links['facebook'].pos_y = -420;
1225
+
1226
+ social_net_obj.links['twitter'].width = 43;
1227
+ social_net_obj.links['twitter'].height = 17;
1228
+ social_net_obj.links['twitter'].pos_y = -440;
1229
+ */
1230
+
1231
+
1232
+ $(document).ready(
1233
+ function() {
1234
+ //alert('getJavascript_socialNetworkLinks ready line: 11509');
1235
+
1236
+
1237
+ for(var rel in social_net_obj.links){
1238
+ //alert(social_net_obj.links[rel]);
1239
+ }
1240
+
1241
+
1242
+
1243
+
1244
+ $('.articleDiv .socialNetworkLinks a').each(
1245
+ function(i){
1246
+ //alert(this.rel);
1247
+ //alert(this.rel + ' use_bg_img: ' + social_net_obj.links[this.rel].use_bg_img);
1248
+
1249
+ /**
1250
+ *do we want to replace the text of the link with a background image
1251
+ */
1252
+ if(social_net_obj.links[this.rel].use_bg_img){
1253
+ $(this).html('').css(
1254
+ {
1255
+ 'background-image' : 'url(http://cf2.primecp.com/images/buttons-article-page_v2.png)',
1256
+ 'width' : social_net_obj.links[this.rel].width + 'px',
1257
+ 'height' : social_net_obj.links[this.rel].height + 'px',
1258
+ 'background-position' : social_net_obj.links[this.rel].pos_x + 'px ' + social_net_obj.links[this.rel].pos_y + 'px',
1259
+ 'background-color' : 'transparent'
1260
+ }
1261
+ ).hover(
1262
+ function(){
1263
+ $(this).css(
1264
+ {
1265
+ 'background-position' : social_net_obj.links[this.rel].pos_hover_x + 'px ' + social_net_obj.links[this.rel].pos_y + 'px',
1266
+ 'background-color' : 'transparent'
1267
+ }
1268
+ );
1269
+ },
1270
+ function(){
1271
+ $(this).css('background-position', social_net_obj.links[this.rel].pos_x + 'px ' + social_net_obj.links[this.rel].pos_y + 'px');
1272
+ }
1273
+ );
1274
+ }
1275
+
1276
+ $(this).click(
1277
+ function(){
1278
+ //alert($(this).attr('id'));
1279
+ if(social_net_obj.links[this.rel].click){
1280
+ // the var stores the name of a function.
1281
+ // call it here
1282
+ return social_net_obj.links[this.rel].click($(this).attr('id'));
1283
+ }
1284
+ }
1285
+ );
1286
+
1287
+ //alert('END ' + this.rel);
1288
+ }
1289
+ );
1290
+
1291
+
1292
+
1293
+ $('.articleDiv .shareLinks .closeBtn').click(
1294
+ function(){
1295
+ $('.articleDiv .shareLinks').hide();
1296
+
1297
+ return false;
1298
+ }
1299
+ );
1300
+
1301
+
1302
+ } // end main func
1303
+ ); // end ready;
1304
+
1305
+ function goToComments(){
1306
+ //alert('goToComments');
1307
+
1308
+ $('html,body').animate({scrollTop: $("#articleCommentRatingDiv").offset().top},'slow');
1309
+
1310
+ return false;
1311
+ }
1312
+
1313
+ function toggleShareLinks(node_id){
1314
+ //alert('toggleShareLinks node_id: ' + node_id);
1315
+
1316
+
1317
+ //var share_btn = $('.articleDiv .socialNetworkLinks a[rel=share]');
1318
+ var share_btn = $('#' + node_id);
1319
+
1320
+ var btn_offset = $(share_btn).position();
1321
+ //alert( "left: " + btn_offset.left + ", top: " + btn_offset.top );
1322
+ var btn_width = $(share_btn).width();
1323
+
1324
+ var share_box = $('.articleDiv .shareLinks');
1325
+
1326
+ /*
1327
+ var alert_str = 'toggleShareLinks' + "\n";
1328
+ alert_str += 'btn_width: ' + btn_width + "\n";
1329
+ alert_str += '$(share_box).width(): ' + $(share_box).width() + "\n";
1330
+ alert_str += 'btn_offset.left: ' + btn_offset.left + "\n";
1331
+ alert_str += '$(share_btn).attr(id): ' + $(share_btn).attr('id') + "\n";
1332
+ alert(alert_str);
1333
+ */
1334
+
1335
+ /**
1336
+ *we are always showing the content when the btn/link is clicked
1337
+ *we used to toggle
1338
+ *the content contains its own close box
1339
+ */
1340
+ $(share_box).css(
1341
+ {
1342
+ 'left' : (btn_offset.left - ( $(share_box).width() / 2) + (btn_width / 2) ),
1343
+ 'top' : (btn_offset.top + $(share_btn).height() + 2),
1344
+ 'display': 'block'
1345
+ }
1346
+ )
1347
+
1348
+ /**
1349
+ *old
1350
+ $(share_box).css(
1351
+ {
1352
+ 'left' : (btn_offset.left - ( $(share_box).width() / 2) + (btn_width / 2) ),
1353
+ 'top' : (btn_offset.top + $(share_btn).height() + 2)
1354
+ }
1355
+ ).toggle();
1356
+ */
1357
+
1358
+ return false;
1359
+ }
1360
+
1361
+ </script>
1362
+ <!-- START pinterest button js -->
1363
+ <script type="text/javascript">
1364
+ $(document).ready(
1365
+ function() {
1366
+ //alert('getJavascript_pinterestButton ready line: 11681');
1367
+
1368
+
1369
+ (function() {
1370
+ //alert('call pinit');
1371
+ window.PinIt = window.PinIt || { loaded:false };
1372
+ if (window.PinIt.loaded) return;
1373
+ window.PinIt.loaded = true;
1374
+ function async_load(){
1375
+ var s = document.createElement("script");
1376
+ s.type = "text/javascript";
1377
+ s.async = true;
1378
+ s.src = "http://assets.pinterest.com/js/pinit.js";
1379
+ var x = document.getElementsByTagName("script")[0];
1380
+ x.parentNode.insertBefore(s, x);
1381
+ }
1382
+ if (window.attachEvent){
1383
+ window.attachEvent("onload", async_load);
1384
+ }else{
1385
+ window.addEventListener("load", async_load, false);
1386
+ }
1387
+ })();
1388
+
1389
+
1390
+ } // end main func
1391
+ ); // end ready;
1392
+
1393
+ </script>
1394
+ <!-- END pinterest button js -->
1395
+ <!-- getJavascript_socialMediaPost line 17060 -->
1396
+ <script src="http://i.po.st/share/script/post-widget.js#publisherKey=8j02godguog2pf805hl5" type="text/javascript"></script> <!-- START article comment/rating js -->
1397
+ <script type="text/javascript">
1398
+ var article_comment_rating = new Object();
1399
+ article_comment_rating.aID = '82166';
1400
+
1401
+ /**
1402
+ *2010-7-22
1403
+ *i tried to default this to 0 but it screwed up stuff downstream
1404
+ *but with a 1, we have a proble in the pagination.
1405
+ *code in the pagination will have to compensate, as I canot find the other problem
1406
+ *we are getting "Comments 1 - 0 of 0" I want Comments 0 - 0 of 0
1407
+ */
1408
+ article_comment_rating_page = 1;
1409
+
1410
+ $(document).ready(
1411
+ function() {
1412
+ //alert('getJavascript_getArticleCommentsRatings ready - line: 250');
1413
+
1414
+ getArticleCommentsRatings();
1415
+
1416
+
1417
+ } // end main func
1418
+ ); // end ready;
1419
+
1420
+
1421
+
1422
+
1423
+ function getArticleCommentsRatings(){
1424
+ //alert('getArticleCommentsRatings article_comment_rating.aID: ' + article_comment_rating.aID);
1425
+
1426
+ $("#articleCommentRatingDiv").html('Loading Comments <img src="http://cf2.primecp.com/images/ajax-indicator.gif" alt="" width="16" height="16" />');
1427
+
1428
+ $.ajax({
1429
+ url: "/ajax_process.php",
1430
+ type: 'GET',
1431
+ cache: false,
1432
+ data: (
1433
+ {
1434
+ aID: article_comment_rating.aID,
1435
+ task: 'get_article_comments_ratings',
1436
+ page: article_comment_rating_page,
1437
+ ucLink: "http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1"
1438
+ }
1439
+ ),
1440
+ dataType: "html",
1441
+ timeout: 10000,
1442
+ complete: function(){
1443
+ //alert('getArticleCommentsRatings complete');
1444
+ $("#articleCommentRatingDiv .commentLoadingDiv").remove();
1445
+ },
1446
+ success: function(html){
1447
+ //alert('getArticleCommentsRatings success');
1448
+
1449
+ $("#articleCommentRatingDiv").html(html);
1450
+
1451
+ /**
1452
+ *reset this array
1453
+ */
1454
+ //article_comment_rating.comment_arr = new Array();
1455
+ article_comment_rating.comment_arr = [];
1456
+
1457
+ /**
1458
+ *now that the form is in the dom, hijack the form
1459
+ */
1460
+ $('#articleRatingInputForm2').ajaxForm(
1461
+ {
1462
+ beforeSubmit: ajaxFormPreSubmit_articleRatingInputForm2,
1463
+ dataType: 'json',
1464
+ success: function(json){
1465
+ $('#articleRatingInputForm2 .ratingInput').hide();
1466
+ $('#articleRatingInputForm2 .adding').hide();
1467
+ $('#articleRatingInputForm2 .complete').show();
1468
+ }
1469
+ }
1470
+ );
1471
+
1472
+
1473
+ /**
1474
+ *2011-12-2
1475
+ *we just added new links that we want to hijack
1476
+ *we only want to grab the links within the newly added content
1477
+ */
1478
+ $('#articleCommentRatingDiv a[rel|="primeLoginLink"]').click(
1479
+ function(){
1480
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin');
1481
+ return false;
1482
+ }
1483
+ );
1484
+
1485
+ $('#articleCommentRatingDiv a[rel|="primeRegisterLink"]').click(
1486
+ function(){
1487
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlSignup');
1488
+ return false;
1489
+ }
1490
+ );
1491
+
1492
+
1493
+ /**
1494
+ *set handler for the article comment textarea
1495
+ */
1496
+ $('#articleRatingInputForm2 #articleReview2').click(
1497
+ function(){
1498
+ /**
1499
+ *2011-12-5
1500
+ *we do test the logged in var when the user it typing
1501
+ *we do not want them to comment, have to login, and have the page reload, thus loosing what they typed
1502
+ *we also test logged in when the form is submitted
1503
+ */
1504
+ if(user_logged_in){
1505
+ if( $(this).val() == 'What do you think?' ){
1506
+ $(this).val('');
1507
+ }
1508
+ }else{
1509
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must login to leave a comment.');
1510
+ }
1511
+ }
1512
+ );
1513
+
1514
+
1515
+
1516
+ /**
1517
+ *set handlers for the pagination links
1518
+ */
1519
+ $('#articleCommentRatingDiv .paginationDiv a.navLink').click(
1520
+ function(){
1521
+
1522
+ var href_str = $(this).attr('href');
1523
+ var href_arr = href_str.split('/');
1524
+ article_comment_rating_page = href_arr[href_arr.length - 1];
1525
+
1526
+ var alert_str = 'href_str: ' + href_str + "\n";
1527
+ alert_str += 'href_arr: ' + href_arr[href_arr.length - 1] + "\n";
1528
+ //alert(alert_str);
1529
+
1530
+ getArticleCommentsRatings();
1531
+
1532
+ return false;
1533
+ }
1534
+ );
1535
+
1536
+
1537
+ $("#articleCommentRatingDiv .partialComments a.more").click(
1538
+ function(){
1539
+ /**
1540
+ *get the div that contains the link
1541
+ */
1542
+ var partial_div = $(this).parents(".partialComments");
1543
+
1544
+ $(partial_div).slideUp();
1545
+
1546
+ /**
1547
+ *reveal the full comments section for this comment
1548
+ */
1549
+ $(partial_div).siblings(".fullComments").slideDown();
1550
+
1551
+ return false;
1552
+ }
1553
+ );
1554
+
1555
+ $("#articleCommentRatingDiv .fullComments a.hide").click(
1556
+ function(){
1557
+ /**
1558
+ *get the div that contains the link
1559
+ */
1560
+ var full_div = $(this).parents(".fullComments");
1561
+
1562
+ $(full_div).slideUp();
1563
+
1564
+ /**
1565
+ *reveal the partial comments section for this comment
1566
+ */
1567
+ $(full_div).siblings(".partialComments").slideDown();
1568
+
1569
+ return false;
1570
+ }
1571
+ );
1572
+
1573
+
1574
+ /**
1575
+ *report abuse close
1576
+ */
1577
+ $('.reportAbuseClose').click(
1578
+ function(){
1579
+ //alert('reportAbuseCloseBtn click');
1580
+ $('#reportAbuseDiv').hide();
1581
+
1582
+ return false;
1583
+ }
1584
+ );
1585
+
1586
+ /**
1587
+ *report abuse submit button
1588
+ */
1589
+ $('#reportAbuseBtnYes').click(
1590
+ function(){
1591
+ var alert_str = 'reportAbuseBtnYes click';
1592
+ alert_str = 'article_comment_rating.aID: ' + article_comment_rating.aID + "\n";
1593
+ alert_str += 'article_comment_rating.ucID: ' + article_comment_rating.ucID + "\n";
1594
+
1595
+ //alert(alert_str);
1596
+
1597
+ $('#reportAbuseDiv table').addClass('sending');
1598
+ $('#reportAbuseDiv table td').fadeTo('normal', 0.2);
1599
+
1600
+ $.ajax({
1601
+ url: "/ajax_process.php",
1602
+ type: 'GET',
1603
+ cache: false,
1604
+ dataType: "json",
1605
+ timeout: 10000,
1606
+ data: (
1607
+ {
1608
+ task: 'report_comment_abuse',
1609
+ aID: article_comment_rating.aID,
1610
+ ucID: article_comment_rating.ucID
1611
+ }
1612
+ ),
1613
+ complete: function(){
1614
+ //alert('reportAbuseBtnYes complete');
1615
+
1616
+ $('#reportAbuseDiv table').removeClass('sending');
1617
+ $('#reportAbuseDiv p.instructions').hide();
1618
+ $('#reportAbuseDiv table').hide();
1619
+ $('#reportAbuseDiv p.success').show();
1620
+
1621
+ //setTimeout("$('#reportAbuseDiv').hide()", 3000);
1622
+ setTimeout("resetReportAbuseDiv()", 3000);
1623
+
1624
+
1625
+ },
1626
+ success: function(json){
1627
+ //alert('reportAbuseBtnYes success');
1628
+ /**
1629
+ *we do not really care if it worked, we pretend it did
1630
+ */
1631
+ }
1632
+ });
1633
+
1634
+ }
1635
+ );
1636
+
1637
+ /**
1638
+ *set the reportAbuse click handler
1639
+ */
1640
+ $("#articleCommentRatingDiv a.reportAbuse").click(
1641
+ function(){
1642
+ /**
1643
+ *get the href of the link clicked. convert the string to an array
1644
+ */
1645
+ var link_url_arr = $(this).attr('href').split('/');
1646
+ /**
1647
+ *get the last element in the array
1648
+ */
1649
+ article_comment_rating.ucID = link_url_arr[ (link_url_arr.length - 1) ];
1650
+
1651
+ var alert_str = 'article_comment_rating.aID: ' + article_comment_rating.aID + "\n";
1652
+ alert_str += 'article_comment_rating.ucID: ' + article_comment_rating.ucID + "\n";
1653
+
1654
+ //alert(alert_str);
1655
+
1656
+
1657
+ /*
1658
+ //alert('height: ' + $(window).height());
1659
+ //alert('width: ' + $(window).width());
1660
+ var window_width = $('#mainLayoutDiv').width();
1661
+ var confirm_width = $('#reportAbuseDiv').width();
1662
+ var confirm_left = (window_width - confirm_width) / 2;
1663
+
1664
+ alert_str = 'window_width: ' + window_width + "\n";
1665
+ alert_str += 'confirm_width: ' + confirm_width + "\n";
1666
+ alert_str += 'confirm_left: ' + confirm_left + "\n";
1667
+
1668
+ alert(alert_str);
1669
+ */
1670
+
1671
+ /**
1672
+ *get the top value of the links div parent
1673
+ ***
1674
+ var div_pos = $(this).parents('.fullComments').offset();
1675
+ alert('div_pos.top: ' + div_pos.top);
1676
+ */
1677
+
1678
+ //var link_width = $(this).width();
1679
+ var link_position = $(this).position();
1680
+ //link_position.right = link_position.left + link_width;
1681
+ alert_str = 'link_position.top: ' + link_position.top + "\n";
1682
+ alert_str += 'link_position.left: ' + link_position.left + "\n";
1683
+ //alert_str += 'link_position.right: ' + link_position.right + "\n";
1684
+ //alert(alert_str);
1685
+
1686
+ var conf_box_width = $('#reportAbuseDiv').width();
1687
+ var conf_box_left = link_position.left - conf_box_width;
1688
+
1689
+ /**
1690
+ *display the confirm box
1691
+ */
1692
+ $('#reportAbuseDiv').css(
1693
+ {
1694
+ top: link_position.top,
1695
+ left: conf_box_left
1696
+ }
1697
+ ).show();
1698
+
1699
+
1700
+ return false;
1701
+
1702
+ }
1703
+ );
1704
+
1705
+ /**
1706
+ *apply behavior to comment rating links just added to the DOM
1707
+ */
1708
+ $("#articleCommentRatingDiv a.rateHelpful").each(
1709
+ function(){
1710
+ /**
1711
+ *go through all the links with class 'rateHelpful'
1712
+ *use the link id to get the comment id and yes/no value (10-0)
1713
+ *set properties for this link
1714
+ */
1715
+ var id_arr = this.id.split('-');
1716
+
1717
+ this.ucID = id_arr[0];
1718
+ this.helpful = id_arr[1];
1719
+
1720
+ /**
1721
+ *if the comment id is not already in the array
1722
+ *add it
1723
+ *convert the array to a string
1724
+ *2011-12-5
1725
+ *get rid of the array to string crap
1726
+ *use a jq method that can search an array
1727
+ */
1728
+ //var str = article_comment_rating.comment_arr.join(',');
1729
+ /**
1730
+ *search the string to find the value of this.ucID
1731
+ */
1732
+ //if(str.indexOf(this.ucID) < 0){
1733
+ if(jQuery.inArray(this.ucID, article_comment_rating.comment_arr) < 0){
1734
+ article_comment_rating.comment_arr.push(this.ucID);
1735
+ //alert('add ucid to array - comment_arr.length: ' + article_comment_rating.comment_arr.length + ' / this.ucID: ' + this.ucID);
1736
+ }
1737
+
1738
+ }
1739
+ ).click(
1740
+ function(){
1741
+ var alert_str = 'this.id: ' + this.id + "\n";
1742
+ alert_str += 'this.ucID: ' + this.ucID + "\n";
1743
+ //alert_str += 'this.rated: ' + this.rated + "\n";
1744
+ alert_str += 'this.helpful: ' + this.helpful + "\n";
1745
+ alert_str += 'article_comment_rating.comment_arr.length: ' + article_comment_rating.comment_arr.length + "\n";
1746
+
1747
+ //alert(alert_str);
1748
+
1749
+ /**
1750
+ *see if the comment associated with this link is in the array
1751
+ */
1752
+ var comment_index = -1;
1753
+ //comment_index = article_comment_rating.comment_arr.indexOf(this.ucID);
1754
+ comment_index = jQuery.inArray(this.ucID, article_comment_rating.comment_arr);
1755
+
1756
+ var alert_str = 'comment_index: ' + comment_index + "\n";
1757
+ //alert(alert_str);
1758
+
1759
+ if(comment_index >= 0){
1760
+ /**
1761
+ *remove the comment id from the array so it cannot be rated again
1762
+ */
1763
+ article_comment_rating.comment_arr.splice(comment_index, 1);
1764
+ rateHelpful(this.ucID, this.helpful);
1765
+ }
1766
+
1767
+ return false;
1768
+ }
1769
+ );
1770
+
1771
+
1772
+ /**
1773
+ *reply to comment close
1774
+ */
1775
+ $('.userCommentReplyDiv .closeBox').click(
1776
+ function(){
1777
+ //alert('userCommentReplyDiv closeBox click');
1778
+ $('.userCommentReplyDiv').slideUp();
1779
+
1780
+ return false;
1781
+ }
1782
+ );
1783
+
1784
+ /**
1785
+ *set handler for the article reply to comment textarea
1786
+ */
1787
+ $('.userCommentReplyDiv form textarea').click(
1788
+ function(){
1789
+ /**
1790
+ *2011-12-5
1791
+ *we do test the logged in var when the user it typing
1792
+ *we do not want them to comment, have to login, and have the page reload, thus loosing what they typed
1793
+ *we also test logged in when the form is submitted
1794
+ */
1795
+ if(!user_logged_in){
1796
+ $('.userCommentReplyDiv').slideUp();
1797
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin', 'You must login to reply to a comment.');
1798
+ }
1799
+
1800
+ }
1801
+ );
1802
+
1803
+
1804
+
1805
+ /**
1806
+ *set handler for postReply link
1807
+ */
1808
+ $("#articleCommentRatingDiv a.postReply").click(
1809
+ function(){
1810
+ /**
1811
+ *get the href of the link clicked. convert the string to an array
1812
+ */
1813
+ var link_url_arr = $(this).attr('href').split('/');
1814
+ /**
1815
+ *get the last element in the array
1816
+ */
1817
+ $('.userCommentReplyDiv form input[name=ucReplyID]').val( link_url_arr[ (link_url_arr.length - 1) ] );
1818
+
1819
+ //article_comment_rating.ucID = link_url_arr[ (link_url_arr.length - 1) ];
1820
+
1821
+ //var alert_str = 'article_comment_rating.aID: ' + article_comment_rating.aID + "\n";
1822
+ //alert_str += 'article_comment_rating.ucID: ' + article_comment_rating.ucID + "\n";
1823
+
1824
+ //alert(alert_str);
1825
+
1826
+
1827
+ var link_position = $(this).position();
1828
+ alert_str = 'link_position.top: ' + link_position.top + "\n";
1829
+ alert_str += 'link_position.left: ' + link_position.left + "\n";
1830
+ //alert_str += 'link_position.right: ' + link_position.right + "\n";
1831
+ //alert(alert_str);
1832
+
1833
+ //var conf_box_width = $('#reportAbuseDiv').width();
1834
+ //var conf_box_left = link_position.left - conf_box_width;
1835
+
1836
+ /**
1837
+ *display the confirm box
1838
+ */
1839
+ $('#articleCommentRatingDiv .userCommentReplyDiv').css(
1840
+ {
1841
+ top: (link_position.top + 20)
1842
+ }
1843
+ ).slideDown();
1844
+
1845
+
1846
+ return false;
1847
+
1848
+ }
1849
+ );
1850
+
1851
+ /**
1852
+ *hijack the reply to post form
1853
+ */
1854
+ $('.userCommentReplyDiv form').ajaxForm(
1855
+ {
1856
+ beforeSubmit: ajaxFormPreSubmit_userCommentReplyForm,
1857
+ dataType: 'json',
1858
+ success: function(json){
1859
+ //alert('userCommentReplyDiv form success');
1860
+
1861
+ $('.userCommentReplyDiv .adding').hide();
1862
+ $('.userCommentReplyDiv .complete').show();
1863
+ },
1864
+ error: function(){
1865
+
1866
+ },
1867
+ complete: function(){
1868
+ setTimeout('getArticleCommentsRatings()', 1500);
1869
+ }
1870
+ }
1871
+ );
1872
+
1873
+
1874
+
1875
+ } // end getArticleCommentsRatings success
1876
+
1877
+
1878
+ });
1879
+
1880
+ }
1881
+
1882
+
1883
+ function resetReportAbuseDiv(){
1884
+ $('#reportAbuseDiv').hide();
1885
+
1886
+ //$('#reportAbuseDiv table').removeClass('sending');
1887
+ $('#reportAbuseDiv p.instructions').show();
1888
+ $('#reportAbuseDiv table').show();
1889
+ $('#reportAbuseDiv p.success').hide();
1890
+ $('#reportAbuseDiv table td').fadeTo('normal', 1.0);
1891
+
1892
+ }
1893
+
1894
+
1895
+ function rateHelpful(ucID, helpful){
1896
+ //alert('ucID: ' + ucID + ' rating: ' + rating);
1897
+ var alert_str = 'rateHelpful' + "\n";
1898
+ alert_str += 'ucID: ' + ucID + "\n";
1899
+ alert_str += 'helpful: ' + helpful + "\n";
1900
+
1901
+ alert_str += 'article_comment_rating.comment_arr.length: ' + article_comment_rating.comment_arr.length + "\n";
1902
+
1903
+ //alert(alert_str);
1904
+
1905
+ article_comment_rating.ucID = ucID;
1906
+ article_comment_rating.helpful = helpful;
1907
+
1908
+ $.ajax({
1909
+ url: "/ajax_process.php",
1910
+ type: 'POST',
1911
+ cache: false,
1912
+ data: (
1913
+ {
1914
+ task: 'rate_comment',
1915
+ ucID: ucID,
1916
+ helpful: helpful
1917
+ }
1918
+ ),
1919
+ dataType: "json",
1920
+ timeout: 5000,
1921
+ error: function(XMLHttpRequest, textStatus, errorThrown){
1922
+ //
1923
+ },
1924
+ success: function(json){
1925
+ //
1926
+ },
1927
+ complete: function(XMLHttpRequest, textStatus){
1928
+ //alert('complete textStatus: ' + textStatus);
1929
+
1930
+ /**
1931
+ *we have al the feedback code here
1932
+ *we are more interested in showing the user a result than "making sure" the ajax request succeeded
1933
+ */
1934
+ article_comment_rating.feedback = 'You did not consider this comment helpful.';
1935
+ if(article_comment_rating.helpful > 0){
1936
+ article_comment_rating.feedback = 'You considered this comment helpful.';
1937
+ }
1938
+
1939
+ $('#rateHelpfulText' + article_comment_rating.ucID).html(article_comment_rating.feedback);
1940
+ }
1941
+ });
1942
+
1943
+ }
1944
+
1945
+
1946
+
1947
+ </script>
1948
+ <!-- START titter js -->
1949
+ <script type="text/javascript">
1950
+ $(document).ready(
1951
+ function() {
1952
+ //alert('getJavascript_topSocialLinks ready line: 10680');
1953
+
1954
+ $('#topSocialLinkMenu .socialButtonTable').show();
1955
+
1956
+
1957
+ $('#topSocialLinkMenu .fbSocialLinkTd').hover(
1958
+ function () {
1959
+ //$(this).addClass("hover");
1960
+ $('#topSocialLinkMenu .fbSocialLinkTd .fbTooltip').show();
1961
+ },
1962
+ function () {
1963
+ //$(this).removeClass("hover");
1964
+ $('#topSocialLinkMenu .fbSocialLinkTd .fbTooltip').hide();
1965
+ }
1966
+ );
1967
+
1968
+
1969
+
1970
+ } // end main func
1971
+ ); // end ready;
1972
+
1973
+
1974
+ /**
1975
+ *twitter
1976
+ */
1977
+ !function(d,s,id){
1978
+ var js,fjs=d.getElementsByTagName(s)[0];
1979
+ if(!d.getElementById(id)){
1980
+ js=d.createElement(s);
1981
+ js.id=id;
1982
+ js.src="//platform.twitter.com/widgets.js";
1983
+ fjs.parentNode.insertBefore(js,fjs);
1984
+ }
1985
+ }(document,"script","twitter-wjs");
1986
+
1987
+
1988
+
1989
+ /**
1990
+ *facebook like
1991
+ *
1992
+ (function(d, s, id){
1993
+ var js, fjs = d.getElementsByTagName(s)[0];
1994
+ if (d.getElementById(id)) {return;}
1995
+ js = d.createElement(s);
1996
+ js.id = id;
1997
+ js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
1998
+ fjs.parentNode.insertBefore(js, fjs);
1999
+ }(document, 'script', 'facebook-jssdk'));
2000
+ */
2001
+
2002
+ </script>
2003
+ <!-- END titter js -->
2004
+ <!-- START login dhtml js -->
2005
+ <script type="text/javascript">
2006
+ var login_dhtml_obj = {};
2007
+
2008
+ $(document).ready(
2009
+ function() {
2010
+ //alert('getJavascript_loginDhtmlContent ready - line: 15916');
2011
+ /**
2012
+ *set click handler for all the close boxes in the dhtml
2013
+ */
2014
+ $('.dhtmlLoginWrapper .closeBox').click(
2015
+ function(){
2016
+ login_dhtml_obj.hideLoginDhtmlBox();
2017
+ }
2018
+ );
2019
+
2020
+ /**
2021
+ *set click handler for any link on the page needing to access the login
2022
+ */
2023
+ $('a[rel|="primeLoginLink"]').click(
2024
+ function(){
2025
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlLogin');
2026
+ return false;
2027
+ }
2028
+ );
2029
+
2030
+ /**
2031
+ *set click handler for any link on the page needing to access the register form
2032
+ */
2033
+ $('a[rel|="primeRegisterLink"]').click(
2034
+ function(){
2035
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlSignup');
2036
+ return false;
2037
+ }
2038
+ );
2039
+
2040
+ /**
2041
+ *set click handler for any link on the page needing to access the forgot password form
2042
+ */
2043
+ $('a[rel|="primeForgotPasswordLink"]').click(
2044
+ function(){
2045
+ login_dhtml_obj.displayLoginDhtmlBox('dhtmlForgotPassword');
2046
+ return false;
2047
+ }
2048
+ );
2049
+
2050
+ login_dhtml_obj.hijackForm('dhtmlLogin');
2051
+ login_dhtml_obj.hijackForm('dhtmlSignup');
2052
+ login_dhtml_obj.hijackForm('dhtmlForgotPassword');
2053
+
2054
+
2055
+ if(window.FB){
2056
+ $('.dhtmlLoginWrapper .facebookLoginButton').click(
2057
+ function(){
2058
+ //alert('click facebookLoginButton');
2059
+ //console.log('click facebookLoginButton');
2060
+
2061
+ //FB.login();
2062
+ $(this).fadeTo('normal', 0.3);
2063
+ $('#dhtmlLogin .feedbackDiv').html('<img src="/images/ajax-loader-bar.gif" alt="Loading" width="220" height="19" />');
2064
+
2065
+ FB.login(
2066
+ /*
2067
+ 2012-12-20
2068
+ this location of scope caused js errors, after months of working
2069
+ {
2070
+ scope: 'email'
2071
+ },
2072
+ */
2073
+ function(response){
2074
+ // handle the response
2075
+ //console.log(response);
2076
+
2077
+ if (response.authResponse) {
2078
+ //console.log('Welcome! Fetching your information.... ');
2079
+ }else{
2080
+
2081
+ // undo some user feedback that ran when the user clicked the fb button
2082
+ $('.dhtmlLoginWrapper .facebookLoginButton').fadeTo('normal', 1.0);
2083
+ $('#dhtmlLogin .feedbackDiv').html('');
2084
+
2085
+ //console.log('User cancelled login or did not fully authorize.');
2086
+ }
2087
+ },
2088
+ /*
2089
+ 2012-12-20
2090
+ this location of scope works, at least for now...
2091
+ */
2092
+ {scope: 'email'}
2093
+ );
2094
+ //login_dhtml_obj.hideLoginDhtmlBox();
2095
+ }
2096
+ );
2097
+ }else{
2098
+ $('.dhtmlLoginWrapper .facebookLoginButton').hide();
2099
+ }
2100
+
2101
+
2102
+
2103
+ } // end main func
2104
+ ); // end ready;
2105
+
2106
+ //---------------
2107
+
2108
+ login_dhtml_obj.hijackForm = function(parent_node_id){
2109
+ switch(parent_node_id){
2110
+ case 'dhtmlLogin':
2111
+ $('#dhtmlLogin form').ajaxForm(
2112
+ {
2113
+ beforeSubmit: login_dhtml_obj.preSubmitForm_dhtmlLogin,
2114
+ dataType: 'json',
2115
+ success: function(json){
2116
+ var feedback_div = '';
2117
+ if(json.success == 1){
2118
+ //alert('success');
2119
+ feedback_div = 'You are logged in.';
2120
+ setTimeout('location.reload(true)', 700);
2121
+ }else{
2122
+ feedback_div = 'We could not log you in.';
2123
+ }
2124
+
2125
+ $('#dhtmlLogin .feedbackDiv').html(feedback_div);
2126
+ },
2127
+ error: function(){
2128
+ //alert('error');
2129
+ },
2130
+ complete: function(){
2131
+ //alert('complete');
2132
+ }
2133
+ }
2134
+ );
2135
+
2136
+ break; // end dhtmlLogin
2137
+
2138
+ case 'dhtmlSignup':
2139
+ $('#dhtmlSignup form').ajaxForm(
2140
+ {
2141
+ beforeSubmit: login_dhtml_obj.preSubmitForm_dhtmlSignup,
2142
+ dataType: 'json',
2143
+ success: function(json){
2144
+ //alert('success');
2145
+ var feedback_div = 'DEFAULT';
2146
+ if(json.success == 1){
2147
+ //alert('success');
2148
+ feedback_div = 'Thank you for registering!';
2149
+ setTimeout('location.reload(true)', 700);
2150
+ }else{
2151
+ feedback_div = 'Sorry, we could not register you.' + '<br />';
2152
+
2153
+ if(json.errors != undefined){
2154
+ for(e in json.errors){
2155
+ feedback_div += json.errors[e] + '<br />';
2156
+ }
2157
+ }
2158
+ }
2159
+
2160
+ $('#dhtmlSignup .feedbackDiv').html(feedback_div);
2161
+
2162
+ },
2163
+ error: function(){
2164
+ //alert('error');
2165
+ },
2166
+ complete: function(response){
2167
+ //alert('complete');
2168
+ }
2169
+ }
2170
+ );
2171
+
2172
+ break; // end dhtmlSignup
2173
+
2174
+ case 'dhtmlForgotPassword':
2175
+ $('#dhtmlForgotPassword form').ajaxForm(
2176
+ {
2177
+ beforeSubmit: login_dhtml_obj.preSubmitForm_dhtmlForgotPassword,
2178
+ dataType: 'json',
2179
+ success: function(json){
2180
+
2181
+ var feedback_div = '';
2182
+ if(json.success == 1){
2183
+ //alert('success');
2184
+ feedback_div = 'We sent your password to ' + json.email;
2185
+ }else{
2186
+ feedback_div = 'We could not find an account for your email.';
2187
+ }
2188
+
2189
+ $('#dhtmlForgotPassword .feedbackDiv').html(feedback_div);
2190
+
2191
+ },
2192
+ error: function(){
2193
+ //alert('error');
2194
+ },
2195
+ complete: function(response){
2196
+ //alert('complete');
2197
+ }
2198
+ }
2199
+ );
2200
+
2201
+ break; // end dhtmlForgotPassword
2202
+ }
2203
+
2204
+ }
2205
+
2206
+ //---------------
2207
+
2208
+ login_dhtml_obj.preSubmitForm_dhtmlLogin = function(form_data_arr, form_jq_obj, options_obj){
2209
+ //alert('preSubmitForm form_data_arr[0].value: ' + form_data_arr[0].value);
2210
+ var result = true;
2211
+ var errors = [];
2212
+
2213
+ if($('#dhtmlLogin input[name=email]').val() == ''){
2214
+ result = false;
2215
+ errors.push('Please enter a value for Email.');
2216
+ }
2217
+
2218
+ if($('#dhtmlLogin input[name=password]').val() == ''){
2219
+ result = false;
2220
+ errors.push('Please enter a value for Password.');
2221
+ }
2222
+
2223
+ if(errors.length > 0){
2224
+ alert( errors.join("\n") );
2225
+ }
2226
+
2227
+
2228
+ return result;
2229
+ }
2230
+
2231
+ //---------------
2232
+
2233
+ login_dhtml_obj.preSubmitForm_dhtmlSignup = function(form_data_arr, form_jq_obj, options_obj){
2234
+ //alert('preSubmitForm form_data_arr[0].value: ' + form_data_arr[0].value);
2235
+ var result = true;
2236
+ var errors = [];
2237
+
2238
+ if($('#dhtmlSignup input[name=fname]').val() == ''){
2239
+ result = false;
2240
+ errors.push('Please enter a value for First Name.');
2241
+ }
2242
+
2243
+ if($('#dhtmlSignup input[name=lname]').val() == ''){
2244
+ result = false;
2245
+ errors.push('Please enter a value for Last Name.');
2246
+ }
2247
+
2248
+ if($('#dhtmlSignup input[name=zip]').val() == ''){
2249
+ result = false;
2250
+ errors.push('Please enter a value for Zip Code.');
2251
+ }
2252
+
2253
+ if($('#dhtmlSignup input[name=email]').val() == ''){
2254
+ result = false;
2255
+ errors.push('Please enter a value for Email.');
2256
+ }
2257
+
2258
+ if($('#dhtmlSignup input[name=password]').val() == ''){
2259
+ result = false;
2260
+ errors.push('Please enter a value for Password.');
2261
+ }
2262
+
2263
+
2264
+ if(errors.length > 0){
2265
+ alert( errors.join("\n") );
2266
+ }
2267
+
2268
+
2269
+ return result;
2270
+ }
2271
+
2272
+ //---------------
2273
+
2274
+ login_dhtml_obj.preSubmitForm_dhtmlForgotPassword = function(form_data_arr, form_jq_obj, options_obj){
2275
+ //alert('preSubmitForm form_data_arr[0].value: ' + form_data_arr[0].value);
2276
+ var result = true;
2277
+ var errors = [];
2278
+
2279
+ if($('#dhtmlForgotPassword input[name=email]').val() == ''){
2280
+ result = false;
2281
+ errors.push('Please enter a value for Email.');
2282
+ }
2283
+
2284
+ if(errors.length > 0){
2285
+ alert( errors.join("\n") );
2286
+ }
2287
+
2288
+
2289
+ return result;
2290
+ }
2291
+
2292
+ //---------------
2293
+
2294
+ login_dhtml_obj.hideLoginDhtmlBox = function(node_id){
2295
+ /**
2296
+ *hide any dhtml login content already showing
2297
+ *you can pass in a value for node_id
2298
+ *we will not hide that box
2299
+ *meant to be the id of the box you want to show
2300
+ */
2301
+ $('.dhtmlLoginWrapper').each(
2302
+ function(i){
2303
+ if($(this).attr('id') !== node_id){
2304
+ $(this).slideUp(
2305
+ 'normal',
2306
+ function(){
2307
+ $(this).css({'top': '-1000px'});
2308
+ }
2309
+ );
2310
+ }
2311
+ }
2312
+ );
2313
+
2314
+ $('.dhtmlLoginWrapper .feedbackDiv').html('');
2315
+
2316
+ }
2317
+
2318
+ //---------------
2319
+
2320
+ login_dhtml_obj.displayLoginDhtmlBox = function(node_id, msg){
2321
+ /**
2322
+ *close any box already open
2323
+ */
2324
+ login_dhtml_obj.hideLoginDhtmlBox(node_id);
2325
+
2326
+ /**
2327
+ *show optional message
2328
+ */
2329
+ if(msg != ''){
2330
+ $('#' + node_id + ' .feedbackDiv').html(msg);
2331
+ }
2332
+ /**
2333
+ *show the box called
2334
+ */
2335
+ $('#' + node_id).center().slideDown();
2336
+ }
2337
+
2338
+ </script>
2339
+ <!-- END login dhtml js -->
2340
+ <script type="text/javascript">
2341
+ var ratings_node; // this node is where the rating content is displayed.
2342
+
2343
+
2344
+
2345
+
2346
+ var signup_redirect_qry_params = new Array();
2347
+ signup_redirect_qry_params['email'] = false;
2348
+
2349
+
2350
+ var signup_redirect_url = 'http://clear-request.com/oi/display?PID=18866867&EM=[email]&URL=http://www.mrfood.com/index.php/hct/Latest-Free-eCookbooks';
2351
+
2352
+
2353
+ var is_mustang = 0;
2354
+
2355
+ /*
2356
+ this is an object that holds properties used to determine actions after the user signs up
2357
+ */
2358
+ var post_newsletter_signup = new Object();
2359
+ post_newsletter_signup.rediect_delay = 0; // how long before we redirect the user
2360
+ post_newsletter_signup.link_has_confirmation_pixel = 0; // do we load an external confirmation pixel
2361
+ post_newsletter_signup.is_new_signup = 0;
2362
+
2363
+
2364
+ $(document).ready(
2365
+ function() {
2366
+
2367
+ //alert('ready start / template javasctipt.js');
2368
+
2369
+ //triggerWiderFunnel();
2370
+
2371
+ /*
2372
+ move main content
2373
+ the content that apears in column 2 is actually located right after the <body> tag in the html
2374
+ the following code selects the contents of the mainContentHolder div and places it into the middle column of the layout
2375
+ we then remove the mainContentHolder div from the dom
2376
+ */
2377
+
2378
+ $('#mainContentHolder').children().appendTo("#col2");
2379
+ $('#mainContentHolder').remove();
2380
+ /**
2381
+ *2010-7-1
2382
+ *move the article ad content from near the footer to inside the article content
2383
+ *we call this after we have moved the main content from before the header to its final location
2384
+ *this file is on all pages, all sites
2385
+ *right now it has no idea if this is the article page or if that page has ads to show/move
2386
+ *this test checks to see if the function exists
2387
+ */
2388
+ if(window.loadArticlePageAds){
2389
+ //alert(' we have loadArticlePageAds');
2390
+ loadArticlePageAds();
2391
+ }
2392
+
2393
+
2394
+
2395
+
2396
+ $('#search_term').click(
2397
+ function () {
2398
+ if ($(this).hasClass('defaultSearchText')) {
2399
+ // remove the class that sets the text color to grey
2400
+ $(this).removeClass('defaultSearchText');
2401
+ // remove the default text
2402
+ $(this).val('');
2403
+ }
2404
+
2405
+ }
2406
+ );
2407
+
2408
+
2409
+ checkNlSignUpCookie();
2410
+
2411
+
2412
+ // set the onclick of the newsletter sign up email text field
2413
+ $('#newsletterSignUpForm #email').click(
2414
+ function () {
2415
+ // this removes the default text that appears in the text field
2416
+ $('#newsletterSignUpForm #email').val('');
2417
+
2418
+ if ($(this).hasClass('defaultTextFieldColor')) {
2419
+ // remove the class that sets the text color to grey
2420
+ $(this).removeClass('defaultTextFieldColor');
2421
+ // remove the default text
2422
+ $(this).val('');
2423
+ }
2424
+ }
2425
+
2426
+ );
2427
+
2428
+
2429
+ // newsletter signup form - right column
2430
+ $('#newsletterSignUpForm').ajaxForm(
2431
+ {
2432
+ beforeSubmit: ajaxFormPreSubmit,
2433
+ success: function(response) {
2434
+
2435
+ //alert('result = ' + response.result);
2436
+
2437
+ $('#newsletterSignUpLoader').hide();
2438
+
2439
+ if (response.result > 0) {
2440
+
2441
+ // the user is signed up
2442
+
2443
+ triggerWiderFunnel();
2444
+
2445
+ // hide the sign up form fields
2446
+ $('#newsletterSignUpForm').hide();
2447
+
2448
+ // display thanks
2449
+ $('#newsletterSignUpThanks').show();
2450
+
2451
+
2452
+ // set a cookie so we know this user signed up
2453
+ var alert_str = 'COOKIE_NAME_NL_SIGNUP = nlsignup' + "\n";
2454
+ alert_str += 'COOKIE_EXP_DAYS_NL_SIGNUP = 1825' + "\n";
2455
+ //alert(alert_str);
2456
+ createCookie('nlsignup', 1825, 1825);
2457
+
2458
+
2459
+ signup_redirect_qry_params['email'] = response.email;
2460
+
2461
+ //setTimeout('signupRedirect()', 2000);
2462
+ post_newsletter_signup.rediect_delay = 2000;
2463
+ post_newsletter_signup.link_has_confirmation_pixel = response.fire_pixel;
2464
+ post_newsletter_signup.is_new_signup = response.is_new_signup; // right rail
2465
+ postNewsletterSignup();
2466
+
2467
+ } else {
2468
+ // display error
2469
+ //alert('response.result = ' + response.result);
2470
+
2471
+ $('#newsletterSignUpError').show();
2472
+ setTimeout("$('#newsletterSignUpError').hide()", 5000);
2473
+
2474
+ $('#newsletterSignUpForm').fadeTo("slow", 1);
2475
+
2476
+ // disable form fields
2477
+ $("#fname").attr("disabled", false);
2478
+ $("#lname").attr("disabled", false);
2479
+ $("#email").attr("disabled", false);
2480
+ $("#signUpSubmit").attr("disabled", false);
2481
+
2482
+ //alert('Sorry, we could not sign you up.');
2483
+ }
2484
+
2485
+
2486
+
2487
+
2488
+
2489
+
2490
+
2491
+
2492
+ //alert('newsletterSignUpForm success ' + response.lname);
2493
+
2494
+ //alert($("#lname").attr("disabled"););
2495
+ },
2496
+ dataType: 'json'
2497
+ }
2498
+ );
2499
+
2500
+
2501
+ /*
2502
+ email this page code
2503
+ commented out 2009-07-15
2504
+
2505
+
2506
+ $("#emailPageLink").click(function(){
2507
+ //alert('click emailPageLink');
2508
+ $("#emailPageDiv").css("top", '-600px');
2509
+ $("#emailPageDiv").show();
2510
+ $("#emailPageDiv").animate({"top": "20px"}, "slow");
2511
+ });
2512
+
2513
+
2514
+ //$("#emailPageClose").click(function(){
2515
+ $(".emailPageClose").click(function(){
2516
+ $("#emailPageDiv").animate({"top": "-600px"}, "slow");
2517
+ //$("#emailPageDiv").hide();
2518
+ });
2519
+ */
2520
+
2521
+
2522
+
2523
+ $("#newsletterSignUpDivAnimeCloseLink").click(
2524
+ function() {
2525
+ // the user closed the window w/o signing up
2526
+ // plant a cookie so the signup does not appear for this session
2527
+ //setNlSignUpCookie();
2528
+ createCookie('nlsignup', 1, 0);
2529
+
2530
+ hideNewsletterSignUpFormAnime();
2531
+
2532
+ return false;
2533
+ }
2534
+ );
2535
+
2536
+
2537
+ /**
2538
+ *if the newsletter signup form has an input with name 'move_privacy'
2539
+ *get the value of that hidden input. it is the id of the html element where we will move the privacy link
2540
+ *append the existing link to the new html element
2541
+ */
2542
+ if($('#newsletterSignUpFormAnime input[name=move_privacy]').val()){
2543
+ var new_id = $('#newsletterSignUpFormAnime input[name=move_privacy]').val();
2544
+ $('#' + new_id).append($('#newsletterSignUpPrivacyLink a'));
2545
+
2546
+ $('#' + new_id + ' a').click(
2547
+ function() {
2548
+
2549
+ return displayDhtmlPrivacyPolicy();
2550
+ }
2551
+ );
2552
+ }
2553
+
2554
+ //newsletterSignUpPrivacyLinkLocation
2555
+
2556
+
2557
+ //alert('yo');
2558
+
2559
+ $("#newsletterSignUpPrivacyLink a").click(
2560
+ function() {
2561
+
2562
+ return displayDhtmlPrivacyPolicy();
2563
+ }
2564
+ );
2565
+
2566
+ // set the behavior of the close links in the privacy div
2567
+ $('#newsletterSignUpPrivacyContent a.closePrivacyContentLink').click(
2568
+ function () {
2569
+
2570
+ //alert('newsletterSignUpPrivacyContent a.closePrivacyContentLink');
2571
+
2572
+ // fade in the signup form content
2573
+ $('#newsletterSignUpAnimeContent').fadeTo('slow', 1.0);
2574
+
2575
+ // show the link that opens the privacy content
2576
+ $("#newsletterSignUpPrivacyLink").show();
2577
+
2578
+ // show the link that closes the dhtml content
2579
+ $("#newsletterSignUpDivAnimeCloseLink").show();
2580
+
2581
+
2582
+ // hide the privacy content
2583
+ $('#newsletterSignUpPrivacyContent').hide();
2584
+
2585
+ return false;
2586
+ }
2587
+ );
2588
+
2589
+
2590
+
2591
+
2592
+
2593
+
2594
+ // when the user clicks the text field, blank any default value
2595
+ $("#newsletterSignUpFormAnime #emailAnime").focus(
2596
+ function(){
2597
+ $(this).val('');
2598
+ }
2599
+ );
2600
+
2601
+
2602
+
2603
+
2604
+ // newsletter signup form - dhtml
2605
+ $('#newsletterSignUpFormAnime').ajaxForm(
2606
+ {
2607
+ beforeSubmit: ajaxFormPreSubmit2,
2608
+ success: function(response) {
2609
+
2610
+ //alert('newsletterSignUpFormAnime result = ' + response.result);
2611
+
2612
+ //$('#newsletterSignUpLoader2').hide();
2613
+
2614
+ if (response.result > 0) {
2615
+
2616
+ // the user is signed up
2617
+
2618
+ triggerWiderFunnel();
2619
+
2620
+ // hide the sign up form fields
2621
+ $('#newsletterSignUpDivAnime .newsletterSignUpDivAnimeFormUI').hide();
2622
+
2623
+ // display thanks
2624
+ $('#newsletterSignUpThanksAnime').show();
2625
+
2626
+
2627
+ // set a cookie so we know this user signed up
2628
+ var alert_str = 'COOKIE_NAME_NL_SIGNUP = nlsignup' + "\n";
2629
+ alert_str += 'COOKIE_EXP_DAYS_NL_SIGNUP = 1825' + "\n";
2630
+ //alert(alert_str);
2631
+ createCookie('nlsignup', 1825, 1825);
2632
+
2633
+ signup_redirect_qry_params['email'] = response.email;
2634
+
2635
+
2636
+ post_newsletter_signup.link_has_confirmation_pixel = response.fire_pixel;
2637
+ post_newsletter_signup.is_new_signup = response.is_new_signup; // main dhtml signup
2638
+
2639
+ postNewsletterSignup();
2640
+
2641
+
2642
+ } else {
2643
+ // display error
2644
+ //alert('response.result = ' + response.result);
2645
+
2646
+ // hide the sign up form fields
2647
+ $('#newsletterSignUpDivAnime .newsletterSignUpDivAnimeFormUI').hide();
2648
+
2649
+ $('#newsletterSignUpErrorAnime').show();
2650
+
2651
+
2652
+ setTimeout('hideNewsletterSignUpErrorAnime()', 3500);
2653
+
2654
+ }
2655
+
2656
+ },
2657
+ dataType: 'json'
2658
+ }
2659
+ ); /// end the code that hijacks the signup anime div
2660
+
2661
+
2662
+
2663
+
2664
+
2665
+ /*
2666
+ email this page code
2667
+ commented out 2009-07-15
2668
+ if (1) { // this if() allows us to turn the ajax aspect of the form on/off. very nice in testing
2669
+
2670
+ $('#emailPageForm').ajaxForm(
2671
+ {
2672
+ beforeSubmit: ajaxFormPreSubmit_emailPage,
2673
+ success: function(response) {
2674
+
2675
+ $('#ajaxLoader_emailPage').hide();
2676
+
2677
+ $('#emailPageForm .hideThis').show();
2678
+ //$('#emailPageForm .hideThis').fadeTo('slow', 1);
2679
+ //$('#emailPageForm .hideThis').slideDown();
2680
+
2681
+
2682
+ var ml_sign_up_str = "\n\n";
2683
+
2684
+ if (response.ml_sign_up) {
2685
+ if (response.ml_sign_up > 0) {
2686
+ ml_sign_up_str += 'Your have been signed up to our email list.';
2687
+ } else {
2688
+ ml_sign_up_str += 'We were unable to add you up to our email list.';
2689
+ }
2690
+ }
2691
+
2692
+ if (response.result > 0) {
2693
+ var alert_str = 'Your email was sent.';
2694
+
2695
+ alert(alert_str + ml_sign_up_str);
2696
+
2697
+ var close_timer = setTimeout('$("#emailPageClose").click()', 1000);
2698
+ $('#emailPageForm').clearForm();
2699
+
2700
+ } else {
2701
+ var alert_str = 'Sorry, we could not send your email';
2702
+ if (response.error_text != '') {
2703
+ alert_str += "\n\n" + response.error_text;
2704
+ }
2705
+
2706
+ alert(alert_str + ml_sign_up_str);
2707
+ }
2708
+
2709
+ },
2710
+ dataType: 'json'
2711
+ }
2712
+ );
2713
+ }
2714
+ */
2715
+
2716
+
2717
+
2718
+ //alert('ready end');
2719
+
2720
+
2721
+ //initRatings();
2722
+
2723
+
2724
+
2725
+
2726
+ } // end main func
2727
+ ); // end ready;
2728
+
2729
+ //------------------------------------------------------------------------------------------------------------
2730
+
2731
+ function displayDhtmlPrivacyPolicy(){
2732
+ //alert('newsletterSignUpPrivacyLink a click');
2733
+ //return false;
2734
+
2735
+ // hide the link that opened the privacy
2736
+ $("#newsletterSignUpPrivacyLink").hide();
2737
+
2738
+ // hide the link that closes the dhtml content
2739
+ $("#newsletterSignUpDivAnimeCloseLink").hide();
2740
+
2741
+
2742
+
2743
+ // jump to the top of the page
2744
+ window.location = '#';
2745
+
2746
+ // fade out the signup form content
2747
+ $('#newsletterSignUpAnimeContent').fadeTo('slow', 0.3);
2748
+
2749
+
2750
+ // get 80% the height of the browser window
2751
+ var win_height = $(window).height() * .8;
2752
+
2753
+ // show the privacy policy
2754
+ $('#newsletterSignUpPrivacyContent').height(win_height).show();
2755
+
2756
+
2757
+
2758
+
2759
+
2760
+
2761
+ return false;
2762
+ }
2763
+
2764
+ //------------------------------------------------------------------------------------------------------------
2765
+
2766
+ function ajaxFormPreSubmit_emailPage() {
2767
+
2768
+ //alert('ajaxFormPreSubmit called this = ' + this.id);
2769
+
2770
+ $('#emailPageForm .hideThis').hide();
2771
+ //$('#emailPageForm .hideThis').fadeTo('slow', 0);
2772
+ //$('#emailPageForm .hideThis').slideUp();
2773
+
2774
+
2775
+ $('#ajaxLoader_emailPage').show();
2776
+
2777
+
2778
+
2779
+
2780
+
2781
+ return true;
2782
+ }
2783
+
2784
+
2785
+ //------------------------------------------------------------------------------------------------------------
2786
+
2787
+ function ajaxFormPreSubmit() {
2788
+
2789
+ $('#newsletterSignUpLoader').show();
2790
+
2791
+ // disable form fields
2792
+ //$("#fname").attr("disabled", true);
2793
+ //$("#lname").attr("disabled", true);
2794
+ $("#email").attr("disabled", true);
2795
+ $("#signUpSubmit").attr("disabled", true);
2796
+
2797
+
2798
+ $('#newsletterSignUpForm').fadeTo("slow", 0.2);
2799
+
2800
+ return true;
2801
+ }
2802
+
2803
+ function ajaxFormPreSubmit2() {
2804
+
2805
+ //$('#newsletterSignUpLoader2').show();
2806
+
2807
+
2808
+ $('#newsletterSignUpDivAnime .newsletterSignUpDivAnimeFormUI').fadeTo("slow", 0.2);
2809
+
2810
+ return true;
2811
+ }
2812
+
2813
+ //------------------------------------------------------------------------------------------------------------
2814
+
2815
+ function hideNewsletterSignUpErrorAnime() {
2816
+
2817
+ $('#newsletterSignUpErrorAnime').hide();
2818
+
2819
+ // show the form again
2820
+ $('#newsletterSignUpDivAnime .newsletterSignUpDivAnimeFormUI').show();
2821
+ // fade it up again
2822
+ $('#newsletterSignUpDivAnime .newsletterSignUpDivAnimeFormUI').fadeTo("slow", 1);
2823
+ }
2824
+
2825
+ //------------------------------------------------------------------------------------------------------------
2826
+ /*
2827
+ function setNlSignUpCookie(days) {
2828
+ // get now
2829
+ var exp_date = new Date();
2830
+
2831
+ var cookie_value = 1;
2832
+
2833
+ if (days > 0) {
2834
+ exp_date.setDate(exp_date.getDate() + days);
2835
+ cookie_value = days;
2836
+ } else {
2837
+ // expire at end of session / browser close
2838
+ days==null;
2839
+ }
2840
+
2841
+
2842
+ //alert('setNlSignUpCookie days = ' + days + ' exp_date = ' + exp_date);
2843
+
2844
+ var str = 'nlsignup=' + cookie_value +';';
2845
+ str += 'path=/' + ';';
2846
+ if (days) {
2847
+ // only include the 'expire' key if you want to set the value to sometime in the future
2848
+ // a cookie w/o the expire will die at the end of the session
2849
+ // we had versions where the the value was empty "expire=;" but Win IE did not like that
2850
+ str += 'expires=' + exp_date + ';';
2851
+ }
2852
+
2853
+
2854
+ //alert('cookie str = ' + str);
2855
+
2856
+ document.cookie = str;
2857
+
2858
+
2859
+ }
2860
+ */
2861
+ //------------------------------------------------------------------------------------------------------------
2862
+
2863
+
2864
+ function checkNlSignUpCookie() {
2865
+
2866
+ //alert('checkNlSignUpCookie');
2867
+
2868
+ var the_cookie = readCookie('nlsignup');
2869
+
2870
+ if (the_cookie) {
2871
+ // the user has the cookie
2872
+ // do not do anything
2873
+ } else {
2874
+
2875
+ //alert('call displayDhtmlSignup from checkNlSignUpCookie');
2876
+ displayDhtmlSignup();
2877
+
2878
+ }
2879
+
2880
+ }
2881
+
2882
+
2883
+ //------------------------------------------------------------------------------------------------------------
2884
+
2885
+ function clickToSubscribe() {
2886
+
2887
+ // look at the cookie
2888
+ var the_cookie = readCookie('nlsignup');
2889
+
2890
+ // if present
2891
+ if (the_cookie) {
2892
+ // get rid of the cookie and reload the current page
2893
+ eraseCookie('nlsignup');
2894
+ window.location.reload();
2895
+ } else {
2896
+ // call func to show signup
2897
+ displayDhtmlSignup();
2898
+
2899
+ }
2900
+
2901
+ }
2902
+
2903
+ //------------------------------------------------------------------------------------------------------------
2904
+
2905
+ function displayDhtmlSignup() {
2906
+
2907
+ //alert('displayDhtmlSignup');
2908
+
2909
+
2910
+ //alert('show the display immediately');
2911
+ animateDhtmlSignup();
2912
+
2913
+ }
2914
+
2915
+ //------------------------------------------------------------------------------------------------------------
2916
+
2917
+ function animateDhtmlSignup(){
2918
+ //alert('animateDhtmlSignup');
2919
+
2920
+ // move user to top of the page
2921
+ window.location = '#';
2922
+
2923
+ var doc_width = $(document).width();
2924
+ var doc_height = $(document).height();
2925
+
2926
+ var popup_width = $("#newsletterSignUpDivAnime").width();
2927
+
2928
+ var popup_left = 0;
2929
+ if (popup_width < doc_width) {
2930
+ popup_left = (doc_width - popup_width) / 2;
2931
+ }
2932
+
2933
+ $("#newsletterSignUpDivAnime").css("top", '-600px');
2934
+ $("#newsletterSignUpDivAnime").css("left", popup_left + 'px');
2935
+ $("#newsletterSignUpDivAnime").show();
2936
+
2937
+ $("#newsletterSignUpDivAnime").animate(
2938
+ {"top": "10px"},
2939
+ "slow",
2940
+ '',
2941
+ function () {
2942
+
2943
+ // this fires after the popup is in place
2944
+ // fade out the div that will be placed over the page
2945
+ // the div is not visible at this point, but we use fade out so we can fade it in after the css updates are made
2946
+
2947
+ $('#viewportGreyout').fadeTo(
2948
+ "fast",
2949
+ 0.0,
2950
+ function () {
2951
+
2952
+ // set some css for the div then fade it in
2953
+ $('#viewportGreyout').css(
2954
+ {
2955
+ 'top' : '0',
2956
+ 'left' : '0',
2957
+ 'width' : doc_width + 'px',
2958
+ 'height' : doc_height + 'px',
2959
+ 'background-color' : '#000'
2960
+ }
2961
+ ).fadeTo("slow", 0.8);
2962
+ }
2963
+ );
2964
+ }
2965
+ );
2966
+ }
2967
+
2968
+ //------------------------------------------------------------------------------------------------------------
2969
+
2970
+
2971
+ /* This script and many more are available free online at
2972
+ The JavaScript Source :: http://javascript.internet.com
2973
+ Created by: Philip Myers :: http://virtualipod.tripod.com/bookmark.html */
2974
+
2975
+ function bookmark(url,title) {
2976
+
2977
+ //alert('url = ' + url + "\n title = " + title);
2978
+
2979
+
2980
+
2981
+
2982
+ if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
2983
+ window.external.AddFavorite(url,title);
2984
+ } else if (navigator.appName == "Netscape") {
2985
+ window.sidebar.addPanel(title,url,"");
2986
+ } else {
2987
+ alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
2988
+ }
2989
+
2990
+ return false;
2991
+ }
2992
+
2993
+ //------------------------------------------------------------------------------------------------------------
2994
+
2995
+ function getRatingContent() {
2996
+
2997
+ $.ajax({
2998
+ url: "ratings_process.php",
2999
+ cache: false,
3000
+ data: "task=get_form",
3001
+ success: function(html) {
3002
+ //$("#ratings").append(html);
3003
+ alert(html);
3004
+ }
3005
+ });
3006
+ }
3007
+
3008
+ //------------------------------------------------------------------------------------------------------------
3009
+
3010
+ function hideNewsletterSignUpFormAnime() {
3011
+ /**
3012
+ *move the dhtml up off the page
3013
+ */
3014
+ $("#newsletterSignUpDivAnime").animate(
3015
+ {"top": "-1000px"},
3016
+ "slow",
3017
+ function () {
3018
+ /**
3019
+ *hide the grey out div
3020
+ */
3021
+ $('#viewportGreyout').css(
3022
+ {
3023
+ 'width' : '0px',
3024
+ 'height' : '0px',
3025
+ 'background-color' : 'transparent'
3026
+ }
3027
+ ).fadeTo("fast",0.0);
3028
+
3029
+ /**
3030
+ *remove the signup html from the dom
3031
+ *saves memory?
3032
+ *prevents the content from printing
3033
+ */
3034
+ $("#newsletterSignUpDivAnime").remove();
3035
+ }
3036
+ );
3037
+ }
3038
+
3039
+
3040
+
3041
+ //------------------------------------------------------------------------------------------------------------
3042
+
3043
+ function signupRedirect() {
3044
+
3045
+ /*if (is_mustang == 1) {
3046
+ alert('signupRedirect signup_redirect_url = ' + signup_redirect_url);
3047
+ }*/
3048
+
3049
+
3050
+
3051
+ // do we have a redirect url
3052
+ if (signup_redirect_url != '') {
3053
+
3054
+
3055
+ // set some vars that are strings we will search for
3056
+ var replace_site_url = '[site_url]';
3057
+ var replace_email = '[email]';
3058
+
3059
+ // go through each string, if it is not empty
3060
+ if (replace_site_url != '') {
3061
+ // add the home page url for this site, urlencoded
3062
+ signup_redirect_url = signup_redirect_url.replace(replace_site_url, escape('http://www.mrfood.com'));
3063
+ }
3064
+
3065
+ if (replace_email != '') {
3066
+ // add the email address the user signed up with
3067
+ signup_redirect_url = signup_redirect_url.replace(replace_email, signup_redirect_qry_params['email']);
3068
+ }
3069
+
3070
+
3071
+ if(post_newsletter_signup.is_new_signup == true){
3072
+ var addl_qry_str = '?';
3073
+ if(signup_redirect_url.indexOf("?") > 0){
3074
+ // the url already has a query string, so just tack on to it
3075
+ addl_qry_str = '&';
3076
+ }
3077
+
3078
+ signup_redirect_url += addl_qry_str + 'pp=1';
3079
+ }
3080
+
3081
+
3082
+
3083
+ if (is_mustang == 1) {
3084
+ var confirm_str = 'signupRedirect' + "\n\n";
3085
+ confirm_str += 'replace_site_url = ' + replace_site_url + "\n\n";
3086
+ confirm_str += 'replace_email = ' + replace_email + "\n\n";
3087
+ confirm_str += 'post_newsletter_signup.is_new_signup = ' + post_newsletter_signup.is_new_signup + "\n\n";
3088
+
3089
+ confirm_str += 'signup_redirect_qry_params[email] = ' + signup_redirect_qry_params['email'] + "\n\n\n\n";
3090
+
3091
+ confirm_str += 'signup_redirect_url = ' + signup_redirect_url + "\n\n";
3092
+ confirm_str += 'http_host = http://www.mrfood.com' + "\n\n";
3093
+
3094
+
3095
+ confirm_str += 'Click OK to stay on this page.' + "\n";
3096
+ confirm_str += 'Click Cancel to go to Flow URL.' + "\n";
3097
+
3098
+ if (confirm(confirm_str)) {
3099
+ return;
3100
+ }
3101
+ }
3102
+
3103
+ // redirect the user
3104
+ window.location = signup_redirect_url;
3105
+
3106
+
3107
+
3108
+ }
3109
+
3110
+
3111
+ }
3112
+
3113
+ //------------------------------------------------------------------------------------------------------------
3114
+
3115
+ function callSignupRedirect() {
3116
+
3117
+ if(is_mustang == 1){
3118
+ var alert_str = 'callSignupRedirect' + "\n";
3119
+ alert_str += 'post_newsletter_signup.rediect_delay: ' + post_newsletter_signup.rediect_delay + "\n\n\n";
3120
+
3121
+ alert_str += 'Do you want to follow the flow?';
3122
+ if(!confirm(alert_str)){
3123
+ return;
3124
+ }
3125
+ }
3126
+
3127
+
3128
+ setTimeout('signupRedirect()', post_newsletter_signup.rediect_delay);
3129
+ }
3130
+
3131
+ //------------------------------------------------------------------------------------------------------------
3132
+
3133
+ function postNewsletterSignup() {
3134
+
3135
+ if (post_newsletter_signup.link_has_confirmation_pixel == 1) {
3136
+ post_newsletter_signup.rediect_delay = 2000; // if there is pixel code to display we need a delay for that code to work
3137
+
3138
+ /*
3139
+ this calls a funct that runs ajax
3140
+ when ajax returns, the func will call callSignupRedirect()
3141
+ */
3142
+ getConfirmationPixelContent(callSignupRedirect);
3143
+
3144
+ post_newsletter_signup.link_has_confirmation_pixel = 0; // update the var in case the user can/tries to signup again. we were getting duplicate pixel fires previously
3145
+ } else {
3146
+ //setTimeout('signupRedirect()', post_newsletter_signup.rediect_delay);
3147
+ callSignupRedirect();
3148
+ }
3149
+ }
3150
+
3151
+ //------------------------------------------------------------------------------------------------------------
3152
+
3153
+ function getConfirmationPixelContent(success_func_name) {
3154
+
3155
+ var lsID = '';
3156
+
3157
+ var alert_str = 'getConfirmationPixelContent' + "\n";
3158
+ alert_str += 'lsID: ' + lsID + "\n";
3159
+
3160
+ if(is_mustang == 1){
3161
+ alert(alert_str);
3162
+ }
3163
+
3164
+ if (lsID !='') {
3165
+
3166
+ $.ajax({
3167
+ type: "POST",
3168
+ dataType: "html",
3169
+ url: "/fire_conf_pixel.php",
3170
+ data: 'lsID=' + lsID,
3171
+ timeout: '5000',
3172
+ success: function(html) {
3173
+
3174
+ var alert_str = 'getConfirmationPixelContent' + "\n";
3175
+ alert_str += 'back from ajax' + "\n\n";
3176
+ alert_str += '-------' + "\n\n";
3177
+ alert_str += 'success_func_name: ' + "\n\n";
3178
+ alert_str += success_func_name + "\n\n";
3179
+
3180
+
3181
+ $('#confirmationPixelDiv').append(html);
3182
+
3183
+
3184
+ //alert_str += 'confirmationPixelDiv html: ' + $('#confirmationPixelDiv').html();
3185
+
3186
+ if(is_mustang == 1){
3187
+ alert(alert_str);
3188
+ }
3189
+
3190
+
3191
+ },
3192
+ error: function(XMLHttpRequest, textStatus, errorThrown) {
3193
+
3194
+ //alert('back from ajax ERROR');
3195
+ //success_func_name();
3196
+ },
3197
+ complete: function (XMLHttpRequest, textStatus) {
3198
+ this; // the options for this ajax request
3199
+
3200
+ /*
3201
+ if(is_mustang == 1){
3202
+ var alert_str = 'getConfirmationPixelContent' + "\n";
3203
+ alert_str += 'back from ajax complete' + "\n\n";
3204
+ alert(alert_str);
3205
+ }
3206
+ */
3207
+
3208
+ // we get here if success or error
3209
+ success_func_name();
3210
+ }
3211
+ });
3212
+ } else {
3213
+ success_func_name();
3214
+ // ncksjnckjsnd
3215
+ }
3216
+ }
3217
+
3218
+ //------------------------------------------------------------------------------------------------------------
3219
+
3220
+ /**
3221
+ *additional widder funnel js might be on the page / included in the html
3222
+ *if it is, the WFpageTracker var is likely an object (barring errors)
3223
+ *otherwise, this will get called harmlessly
3224
+ */
3225
+ function triggerWiderFunnel(){
3226
+ var alert_str = 'call to triggerWiderFunnel' + "\n";
3227
+ //alert(alert_str);
3228
+
3229
+ //WIDERFUNNEL GWO GOAL CALL
3230
+ if(typeof(WFpageTracker)==='object'){
3231
+ wf_goal();
3232
+
3233
+ alert_str += 'WFpageTracker IS an object' + "\n";
3234
+ }else{
3235
+ alert_str += 'WFpageTracker IS NOT an object' + "\n";
3236
+ alert_str += 'typeof(WFpageTracker): ' + typeof(WFpageTracker) + "\n";
3237
+ }
3238
+
3239
+ if (is_mustang == 1) {
3240
+ alert(alert_str);
3241
+ }
3242
+
3243
+ }
3244
+
3245
+ //------------------------------------------------------------------------------------------------------------
3246
+
3247
+
3248
+
3249
+
3250
+ </script>
3251
+ <!-- END getPageJavascript -->
3252
+ <!-- START Google Publisher Tag - Asynchronous -->
3253
+ <script type='text/javascript'>
3254
+ var googletag = googletag || {};
3255
+ googletag.cmd = googletag.cmd || [];
3256
+ (function() {
3257
+ var gads = document.createElement('script');
3258
+ gads.async = true;
3259
+ gads.type = 'text/javascript';
3260
+ var useSSL = 'https:' == document.location.protocol;
3261
+ gads.src = (useSSL ? 'https:' : 'http:') +
3262
+ '//www.googletagservices.com/tag/js/gpt.js';
3263
+ var node = document.getElementsByTagName('script')[0];
3264
+ node.parentNode.insertBefore(gads, node);
3265
+ })();
3266
+ </script>
3267
+ <script type='text/javascript'>
3268
+ googletag.cmd.push(function() {
3269
+ googletag.defineSlot('/1049349/mrfood-com_header-int-A_728-90', [728, 90], 'div-gpt-ad-1363378211671-0').addService(googletag.pubads());
3270
+ googletag.defineSlot('/1049349/mrfood-com_left-rail-A_120-600', [120, 600], 'div-gpt-ad-1363378211671-1').addService(googletag.pubads());
3271
+ googletag.defineSlot('/1049349/mrfood-com_right-rail-A_300-94', [300, 250], 'div-gpt-ad-1363378211671-3').addService(googletag.pubads());
3272
+ googletag.defineSlot('/1049349/mrfood-com_right-rail-B_300-250', [300, 250], 'div-gpt-ad-1363378211671-4').addService(googletag.pubads());
3273
+ googletag.defineSlot('/1049349/mrfood-com_right-rail-C_300-600', [300, 600], 'div-gpt-ad-1363378211671-5').addService(googletag.pubads());
3274
+ googletag.pubads().enableSingleRequest();
3275
+ googletag.enableServices();
3276
+ });
3277
+ </script>
3278
+ <!-- END Google Publisher Tag - Asynchronous -->
3279
+ <!-- start pre fire pixel code -->
3280
+ <!-- end pre fire pixel code -->
3281
+ <style>
3282
+ .ui-autocomplete-loading {
3283
+ background: white url('/images/ajax-indicator.gif') right center no-repeat;
3284
+ }
3285
+ </style>
3286
+ <script type='text/javascript'>
3287
+ $.widget( "custom.catcomplete", $.ui.autocomplete, {
3288
+ _renderMenu: function( ul, items ) {
3289
+ var self = this,
3290
+ currentCategory = "";
3291
+ $.each( items, function( index, item ) {
3292
+ if ( item.category != currentCategory ) {
3293
+ ul.append( "<li class='ui-autocomplete-category'>" + item.category + "</li>" );
3294
+ currentCategory = item.category;
3295
+ }
3296
+ self._renderItem( ul, item );
3297
+ });
3298
+ }
3299
+ });
3300
+
3301
+
3302
+ $(document).ready(
3303
+ function(){
3304
+ //alert('html tpl ready 2');
3305
+
3306
+ /* start autocomplete */
3307
+ $( "#search_term" ).autocomplete({
3308
+ source: function(request, response){
3309
+ var alert_str = 'source callback 1' + "\n\n";
3310
+ alert_str += 'request: ' + request + "\n\n";
3311
+ alert_str += 'response: ' + response + "\n\n";
3312
+ //alert(alert_str);
3313
+
3314
+ if( 1 ){
3315
+ $.ajax(
3316
+ {
3317
+ url: "/ajax_process.php",
3318
+ dataType: "json",
3319
+ /**
3320
+ *add additional params to the data sent to the server?
3321
+ *request is an object. we are adding properties listed in the {}
3322
+ */
3323
+ data: $.extend(
3324
+ {
3325
+ task: "search_autofill",
3326
+ extra_param: "xxxxxxx"
3327
+ },
3328
+ request
3329
+ ),
3330
+ success: function(data) {
3331
+ //alert('autocomplete success');
3332
+ response(data);
3333
+ }
3334
+ }
3335
+ );
3336
+ }
3337
+ },
3338
+ minLength: 3,
3339
+ select: function( event, ui ){
3340
+ //alert('select');
3341
+ //$('#headerSearchForm').submit(); // this would submit the form immediately when a <li> is clicked
3342
+ /**
3343
+ *we want the selection of a suggested value to trigger the form to submit
3344
+ *we needed to add a small delay otherwise the selected term is not passed
3345
+ *only the orig text the user typed in is passed
3346
+ */
3347
+ setTimeout("$('#headerSearchForm').submit();", 500);
3348
+ },
3349
+ close: function(event, ui){
3350
+ //alert('close');
3351
+ }
3352
+ });
3353
+ /* end autocomplete */
3354
+
3355
+ }
3356
+ );
3357
+
3358
+
3359
+ </script>
3360
+ <!-- get css for the email signup creative -->
3361
+ <link rel="stylesheet" href="/site_templates/signup_creative/css/nscID_63.css?v=16" type="text/css" media="screen" />
3362
+ <link type="text/css" rel="stylesheet" href="/css/jquery.rating.css?v=16" media="screen" />
3363
+ <!--
3364
+ start css
3365
+ -->
3366
+ <link rel="stylesheet" href="/site_templates/0004/css/main_styles.css?v=16" type="text/css" media="screen" />
3367
+ <link rel="stylesheet" href="/site_templates/0004/css/print_styles.css?v=16" type="text/css" media="print" />
3368
+ <!--
3369
+ added by john. needs to be site-agnostic
3370
+ -->
3371
+ <link rel="alternate" title="FaveCrafts.com RSS" href="http://www.favecrafts.com/rss-feed" type="application/rss+xml" />
3372
+ <!-- START Facebook Javascript SDK js -->
3373
+ <script type="text/javascript">
3374
+ var facebook_login_obj = {};
3375
+
3376
+ window.fbAsyncInit = function() {
3377
+
3378
+ //console.log('call to window.fbAsyncInit line 15746');
3379
+
3380
+ FB.init({
3381
+ appId : '422976864383250', // App ID Favecrafts
3382
+
3383
+ channelUrl : '//http://www.mrfood.com/channel.php', // Channel File
3384
+ status : false, // check login status
3385
+ cookie : true, // enable cookies to allow the server to access the session
3386
+ xfbml : true // parse XFBML
3387
+ });
3388
+
3389
+
3390
+ /*
3391
+ FB.getLoginStatus(function(response) {
3392
+ if (response.status === 'connected') {
3393
+ // connected
3394
+ console.log('connected');
3395
+ } else if (response.status === 'not_authorized') {
3396
+ // not_authorized
3397
+ console.log('not_authorized');
3398
+ } else {
3399
+ // not_logged_in
3400
+ console.log('not_logged_in');
3401
+ }
3402
+ });
3403
+ */
3404
+
3405
+ // listen for and handle auth.statusChange events
3406
+ FB.Event.subscribe(
3407
+ 'auth.statusChange',
3408
+ function(response) {
3409
+ //alert('FB.Event.subscribe');
3410
+ facebook_login_obj.response = response;
3411
+
3412
+ if (response.authResponse) {
3413
+ //alert('response.authResponse.accessToken:' + response.authResponse.accessToken);
3414
+
3415
+ // user has auth'd your app and is logged into Facebook
3416
+ FB.api(
3417
+ '/me',
3418
+ function(me){
3419
+ facebook_login_obj.me = me;
3420
+ /*
3421
+ if (me.name) {
3422
+ document.getElementById('auth-displayname').innerHTML = me.name;
3423
+ }
3424
+ */
3425
+ var alert_str = 'back from FB.api' + "\n\n";
3426
+ alert_str += 'me: ' + me + "\n\n";
3427
+ alert_str += 'me.name: ' + me.name + "\n\n";
3428
+ alert_str += 'me.email: ' + me.email + "\n\n";
3429
+ alert_str += 'me.error_code: ' + me.error_code + "\n\n";
3430
+ alert_str += 'me.error_msg: ' + me.error_msg + "\n\n";
3431
+ //alert(alert_str);
3432
+
3433
+
3434
+ //maybe look for error_code??
3435
+ facebook_login_obj.loginToPrimeViaFb();
3436
+ }
3437
+ );
3438
+ //document.getElementById('auth-loggedout').style.display = 'none';
3439
+ //document.getElementById('auth-loggedin').style.display = 'block';
3440
+
3441
+
3442
+ } else {
3443
+ // user has not auth'd your app, or is not logged into Facebook
3444
+ //document.getElementById('auth-loggedout').style.display = 'block';
3445
+ //document.getElementById('auth-loggedin').style.display = 'none';
3446
+ }
3447
+
3448
+ }
3449
+ );
3450
+
3451
+ /*
3452
+ // respond to clicks on the login and logout links
3453
+ document.getElementById('auth-loginlink').addEventListener('click', function(){
3454
+ FB.login();
3455
+ });
3456
+ document.getElementById('auth-logoutlink').addEventListener('click', function(){
3457
+ FB.logout();
3458
+ });
3459
+ */
3460
+
3461
+ };
3462
+
3463
+ // Load the SDK Asynchronously
3464
+ (function(d){
3465
+ var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
3466
+ if (d.getElementById(id)) {return;}
3467
+ js = d.createElement('script');
3468
+ js.id = id;
3469
+ js.async = true;
3470
+ js.src = "//connect.facebook.net/en_US/all.js";
3471
+ ref.parentNode.insertBefore(js, ref);
3472
+ }(document));
3473
+
3474
+
3475
+ facebook_login_obj.loginToPrimeViaFb = function(){
3476
+ var alert_str = 'facebook_login_obj.loginToPrimeViaFb' + "\n";
3477
+ alert_str += 'facebook_login_obj.response.authResponse.accessToken: ' + facebook_login_obj.response.authResponse.accessToken + "\n";
3478
+ alert_str += 'facebook_login_obj.me.email: ' + facebook_login_obj.me.email + "\n";
3479
+ //alert(alert_str);
3480
+
3481
+ if(
3482
+ facebook_login_obj.response.authResponse.accessToken != undefined &&
3483
+ facebook_login_obj.me.email != undefined
3484
+ ){
3485
+
3486
+
3487
+ $.ajax({
3488
+ url: "/ajax_process.php",
3489
+ type: 'GET',
3490
+ cache: false,
3491
+ dataType: "json",
3492
+ timeout: 10000,
3493
+ data: {
3494
+ task: 'fb_user_acct_login',
3495
+ email: facebook_login_obj.me.email,
3496
+ fname: facebook_login_obj.me.first_name,
3497
+ lname: facebook_login_obj.me.last_name,
3498
+ fb_user_id: facebook_login_obj.me.id,
3499
+ access_token: facebook_login_obj.response.authResponse.accessToken
3500
+ },
3501
+ complete: function(){
3502
+
3503
+ },
3504
+ success: function(json){
3505
+ //alert('loginToPrimeViaFb success');
3506
+ if(json.success == 1){
3507
+ $('#dhtmlLogin .feedbackDiv').html('You are logged in.');
3508
+ if( 1 ){
3509
+ setTimeout('location.reload(true)', 700);
3510
+ }
3511
+ }else{
3512
+ $('#dhtmlLogin .feedbackDiv').html('We could not log you in.');
3513
+ $('.dhtmlLoginWrapper .facebookLoginButton').fadeTo('normal', 1.0);
3514
+ }
3515
+
3516
+
3517
+
3518
+ }
3519
+ });
3520
+ }else{
3521
+ //alert('We are sorry. There was an issue attempting to log you in with Facebook');
3522
+ $('#dhtmlLogin .feedbackDiv').html('We are sorry. There was an issue attempting to log you in with Facebook');
3523
+ $('.dhtmlLoginWrapper .facebookLoginButton').fadeTo('normal', 1.0);
3524
+ }
3525
+
3526
+ }
3527
+
3528
+ </script>
3529
+ <!-- END Facebook Javascript SDK js -->
3530
+ </head>
3531
+ <body id="site28" itemscope itemtype="http://schema.org/Article">
3532
+ <div id="fb-root"></div>
3533
+ <!--<h1>mrfood.com</h1>-->
3534
+ <div id="printHeader">
3535
+ <img src="/site_templates/0004/images/print-header_sID28.jpg?v=16" alt="" width="650" height="82" />
3536
+ <div class="inner1">
3537
+ <div class="inner2"></div>
3538
+ </div>
3539
+ </div>
3540
+ <!-- end printHeader -->
3541
+ <!-- this displays content passed back via ajax after a successful newsletter signup, if there is code for any link source -->
3542
+ <div id="confirmationPixelDiv" style="display: none;"></div>
3543
+ <div id="mainLayoutDiv">
3544
+ <div id="mainLayoutDiv2">
3545
+ <div id="topMenu">
3546
+ <ul>
3547
+ <li> <a href="/section/mybox/action/view" target="_self" title="My Recipe Box" class="" rel="" >
3548
+ My Recipe Box</a>
3549
+ </li>
3550
+ <li> <a href="/section/subctr" target="_self" title="My Newsletters" class="" rel="" >
3551
+ My Newsletters</a>
3552
+ </li>
3553
+ <li> <a href="/section/account/action/login" target="_self" title="Log In" class="" rel="primeLoginLink" >
3554
+ Log In</a>
3555
+ </li>
3556
+ <li> <a href="/section/account/action/register" target="_self" title="Register Now" class="" rel="primeRegisterLink" >
3557
+ Register Now</a>
3558
+ </li>
3559
+ </ul>
3560
+ </div>
3561
+ <!-- end topMenu -->
3562
+ <!-- START header -->
3563
+ <div id="header">
3564
+ <table id="logoTable" border="0">
3565
+ <tr>
3566
+ <td style="vertical-align: bottom;">
3567
+ <a id="headerLogo" href="/"><img src="http://cf2.primecp.com/site_templates/0004/images/site_logo_internal_sID28.jpg" alt="mrfood.com" /></a>
3568
+ </td>
3569
+ <td style="text-align: right; padding: 5px 5px 2px 0; width: 735px;">
3570
+ <!-- mrfood-com_header-int-A_728-90 -->
3571
+ <div id="div-gpt-ad-1363378211671-0" style="width: 728px; height:90px;" class="mustangGoogleAdTest_async">
3572
+ <script type='text/javascript'>
3573
+ googletag.cmd.push(function() { googletag.display('div-gpt-ad-1363378211671-0'); });
3574
+ </script>
3575
+ </div>
3576
+ </td>
3577
+ </tr>
3578
+ </table>
3579
+ <!-- end logoTable -->
3580
+ <div id="headerMenuDiv28">
3581
+ <table id="headerMenu28">
3582
+ <tr>
3583
+ <td class="firstTD">
3584
+ <a href="http://www.mrfood.com/">Home</a>
3585
+ </td>
3586
+ <td class="">
3587
+ <a href="http://www.mrfoodshop.com/">Shop</a>
3588
+ </td>
3589
+ <td class="">
3590
+ <a href="/index.php/hct/TV-Show-TV-Markets">Find Us on TV</a>
3591
+ </td>
3592
+ <td class="">
3593
+ <a href="/index.php/hct/Latest-Free-eCookbooks">Free eCookbooks</a>
3594
+ </td>
3595
+ <td class="">
3596
+ <a href="/section/mybox/action/view">My Recipe Box</a>
3597
+ </td>
3598
+ <td class="">
3599
+ <a href="/section/subctr">My Newsletters</a>
3600
+ </td>
3601
+ <td class="">
3602
+ <a href="http://www.everydaydiabeticrecipes.com">Diabetic Recipes</a>
3603
+ </td>
3604
+ <td class="lastTD">
3605
+ <div>
3606
+ <form id="headerSearchForm" action="/" method="get">
3607
+ <input type="hidden" name="task" value="search" />
3608
+ <input class="searchField defaultSearchText" type="text" id="search_term" name="search_term" value="" />
3609
+ <input type="submit" value="Search" class="button" />
3610
+ </form>
3611
+ </div>
3612
+ </td>
3613
+ </tr>
3614
+ </table>
3615
+ <!-- end headerMenu-->
3616
+ </div>
3617
+ <!-- end headerMenuDiv -->
3618
+ <div id="headerSubMenuDiv28">
3619
+ <div>
3620
+ <ul class="loginMenu">
3621
+ <li>
3622
+ <a rel="primeLoginLink" class="firstLink" title="Sign In" target="_self" href="/section/account/action/login">Sign In</a>
3623
+ </li>
3624
+ <li>
3625
+ <a rel="primeRegisterLink" class="" title="Join Now" target="_self" href="/section/account/action/register">Join Now</a>
3626
+ </li>
3627
+ </ul>
3628
+ </div>
3629
+ </div>
3630
+ </div>
3631
+ <!-- end header -->
3632
+ <table border="0" id="mainContainerTable">
3633
+ <tr>
3634
+ <td id="col1">
3635
+ <div style="margin: 0 0 30px 0;">
3636
+ <div id="mainMenuCol1SiteID28">
3637
+ <div class="mainMenuDiv">
3638
+ <div class="h3Wrapper">
3639
+ <h3>Categories</h3>
3640
+ </div>
3641
+ <ul >
3642
+ <li class=""><a class="current" href="/Slow-Cooker-Recipes" >Slow-Cooker</a>
3643
+ </li>
3644
+ <li class=""><a class="" href="/Appetizers" >Appetizers</a>
3645
+ </li>
3646
+ <li class=""><a class="" href="/Beverages" >Beverages</a>
3647
+ </li>
3648
+ <li class=""><a class="" href="/Bread" >Breads and Muffins</a>
3649
+ </li>
3650
+ <li class=""><a class="" href="/Breakfast" >Breakfast</a>
3651
+ </li>
3652
+ <li class=""><a class="" href="/Casseroles" >Casseroles</a>
3653
+ </li>
3654
+ <li class=""><a class="" href="/Chicken" >Chicken</a>
3655
+ </li>
3656
+ <li class=""><a class="" href="/Desserts" >Desserts</a>
3657
+ </li>
3658
+ <li class=""><a class="" href="/Editors-Picks" >Editor's Picks</a>
3659
+ </li>
3660
+ <li class=""><a class="" href="/Fruit-Recipes" >Fruit</a>
3661
+ </li>
3662
+ <li class=""><a class="" href="/Meat-Recipes" >Meat</a>
3663
+ </li>
3664
+ <li class=""><a class="" href="/Menus" >Menus</a>
3665
+ </li>
3666
+ <li class=""><a class="" href="/One-Pots" >One-Pots</a>
3667
+ </li>
3668
+ <li class=""><a class="" href="/Pastas" >Pastas</a>
3669
+ </li>
3670
+ <li class=""><a class="" href="/Pizza" >Pizza</a>
3671
+ </li>
3672
+ <li class=""><a class="" href="/Potatoes-Rice" >Potatoes, Rice & More</a>
3673
+ </li>
3674
+ <li class=""><a class="" href="/Relishes-Sauces-Seasonings" >Relishes, Sauces, Seasonings</a>
3675
+ </li>
3676
+ <li class=""><a class="" href="/Salads" >Salads</a>
3677
+ </li>
3678
+ <li class=""><a class="" href="/Sandwiches" >Sandwiches</a>
3679
+ </li>
3680
+ <li class=""><a class="" href="/FishandSeafood" >Seafood</a>
3681
+ </li>
3682
+ <li class=""><a class="" href="/Snacks" >Snacks</a>
3683
+ </li>
3684
+ <li class=""><a class="" href="/Soups" >Soups, Stews, Chili</a>
3685
+ </li>
3686
+ <li class=""><a class="" href="/Tips" >Tips</a>
3687
+ </li>
3688
+ <li class=""><a class="" href="/Turkey-Misc-Poultry" >Turkey, Misc. Poultry</a>
3689
+ </li>
3690
+ <li class=""><a class="" href="/Vegetables" >Vegetables</a>
3691
+ </li>
3692
+ </ul>
3693
+ </div>
3694
+ <!-- end mainMenuDiv -->
3695
+ </div>
3696
+ <!-- end mainMenuCol1SiteIDXX -->
3697
+ </div>
3698
+ <div style="margin: 0 0 30px 0;">
3699
+ <!-- mrfood-com_left-rail-A_120-600 -->
3700
+ <div id="div-gpt-ad-1363378211671-1" style="width: 120px; height:600px; margin: 0 auto;" class="mustangGoogleAdTest_async">
3701
+ <script type='text/javascript'>
3702
+ googletag.cmd.push(function() { googletag.display('div-gpt-ad-1363378211671-1'); });
3703
+ </script>
3704
+ </div>
3705
+ </div>
3706
+ </td>
3707
+ <!-- end col1 -->
3708
+ <td id="col2">
3709
+ <div style="margin: 0 0 15px 0;">
3710
+ <p id="breadcrumb">
3711
+ <a href="/">Home</a> > <a href="/Slow-Cooker-Recipes">Slow-Cooker</a> > Saucy Italian Pot Roast
3712
+ </p>
3713
+ <!-- end breadcrumb -->
3714
+ </div>
3715
+ <div style="margin: 0 0 15px 0;">
3716
+ <div id="82166" class="articleDiv hrecipe">
3717
+ <div class="noPrint">
3718
+ <form id="articleAverageRatingForm" action="/ratings_process.php" method="post">
3719
+ <input class="star" type="radio" name="article_rating_star" value="1" title="Very poor" />
3720
+ <input class="star" type="radio" name="article_rating_star" value="2" title="Poor" />
3721
+ <input class="star" type="radio" name="article_rating_star" value="3" title="OK" />
3722
+ <input class="star" type="radio" name="article_rating_star" value="4" title="Good" checked="checked" />
3723
+ <input class="star" type="radio" name="article_rating_star" value="5" title="Very Good" />
3724
+ <span class="numVotes">(1)</span>
3725
+ <br style="clear: both;" />
3726
+ <!--<input type="submit" value="submit" />-->
3727
+ </form>
3728
+ <!-- end articleAverageRatingForm -->
3729
+ </div>
3730
+ <div class="articleHeadlineDiv item">
3731
+ <h1 class="articleHeadline fn">Saucy Italian Pot Roast</h1>
3732
+ </div>
3733
+ <!-- end articleHeadlineDiv -->
3734
+ <div class="privateNoteDiv">
3735
+ <!--
3736
+ <p><a class="privateNoteLink" href="">add/edit private note</a></p>
3737
+ -->
3738
+ <p class="login" style="display: none;">You must be logged in to add a private note. <a href="/section/mybox/action/login">Login</a> | <a href="/section/mybox/action/login#registerForm">Register</a></p>
3739
+ <div class="privateNoteContent">
3740
+ <div class="privateNoteText" style="display: none;">
3741
+ <h4>My Notes</h4>
3742
+ <span></span>
3743
+ </div>
3744
+ <!-- end privateNoteText -->
3745
+ <form class="privateNoteForm" id="privateNoteForm" action="/ajax_process.php" method="post" style="display: none;">
3746
+ <input type="hidden" name="task" value="private_note_update" />
3747
+ <input type="hidden" name="aID" value="82166" />
3748
+ <h4>My Notes</h4>
3749
+ <p>ONLY YOU see your private notes.</p>
3750
+ <textarea id="mynotes" name="mynotes"></textarea>
3751
+ <div class="buttons">
3752
+ <input type="submit" value="Save Note" /><input class="cancel" type="button" value="Cancel" />
3753
+ </div>
3754
+ </form>
3755
+ <!-- end privateNoteForm -->
3756
+ </div>
3757
+ <!-- end privateNoteContent -->
3758
+ </div>
3759
+ <!-- end privateNoteDiv -->
3760
+ <div class="ratePrintAddDiv">
3761
+ <div style="float: right;">
3762
+ <!-- START Po.st content -->
3763
+ <!-- this was our verion of adding pinterest
3764
+ <div style="float: right; margin: 0; padding: 4px 0 0 0;">
3765
+ <a href="http://pinterest.com/pin/create/button/?url=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268&media=http://www.mrfood.com/images/article_images/Saucy-Italian-Pot-Roast-TN.jpg&description=Try+this+saucy+pot+roast+over+egg+noodles%2C+rice%2C+or-for+more+authentic+Italian+flavor-polenta.+It%27s+a+winner+whichever+way+you+choose%21" class="pin-it-button" count-layout="none"></a>
3766
+ </div>
3767
+ -->
3768
+ <div class="pw_widget pw_size_24" pw:pinterest-image="http://www.mrfood.com/images/article_images/Saucy-Italian-Pot-Roast-TN.jpg">
3769
+ <a class="pw-button-pinterest"></a>
3770
+ <a class='pw_googleplus'></a>
3771
+ <a class='pw_facebook'></a>
3772
+ <a class='pw_twitter'></a>
3773
+ <a class='pw_stumble_upon'></a>
3774
+ <a class='pw_email'></a>
3775
+ </div>
3776
+ </div>
3777
+ <ul style="margin: 3px 0;">
3778
+ <li class="rateSocialBtn notes"><a href="">Notes</a></li>
3779
+ <li class="rateSocialBtn print"><a id="top_articlePrintLink" class="articlePrintLink" href="javascript: window.print();" >Print</a></li>
3780
+ <li class="rateSocialBtn remove" style="display: none;"><a href="" title="Click to remove from Is My Recipe">Is My Recipe</a></li>
3781
+ <li class="rateSocialBtn add" style="display: none;"><a href="">Add</a></li>
3782
+ <li class="rateSocialBtn rate"><a class="articleRatingHoverFeedback" href="">Rate</a></li>
3783
+ <li class="rateSocialBtn socialNetworkLinks comment"><a rel="comment" href="">Comment</a></li>
3784
+ </ul>
3785
+ <div style="clear: both;"></div>
3786
+ </div>
3787
+ <!-- end ratePrintAddDiv -->
3788
+ <div class="addToMyBoxFeedbackDiv">
3789
+ <p class="adding" style="display: none; padding: 5px 0;">We are adding the recipe to your Recipe Box.</p>
3790
+ <p class="complete" style="display: none;">This was added to your Recipe Box.</p>
3791
+ <p class="complete" style="display: none;"><a href="/section/mybox/action/view">Click here to view your Recipe Box.</a></p>
3792
+ <!--
3793
+ <p class="login" style="display: none;">This feature is only available for users that have an account and are logged in.</p>
3794
+ <p class="login" style="display: none;"><a href="/section/mybox/action/login">Click here to register for an account or to log into your existing account.</a></p>
3795
+ -->
3796
+ <p class="login" style="display: none;">You must be logged in to add a recipe. <a href="/section/account/action/login/redir/1">Login</a> | <a href="/section/account/action/login/redir/1#registerForm">Register</a></p>
3797
+ <form id="addToMyBoxFeedbackForm" action="/ajax_process.php" method="post">
3798
+ <input type="hidden" name="task" value="add_article_to_box" />
3799
+ <input type="hidden" name="aID" value="82166" />
3800
+ <input type="hidden" name="catID" value="687" />
3801
+ <input type="hidden" name="function" value="displayAddToMyBoxFeedback" />
3802
+ <input type="hidden" name="line" value="7682" />
3803
+ </form>
3804
+ <!-- end addToMyBoxFeedbackForm -->
3805
+ </div>
3806
+ <!-- end addToMyBoxFeedbackDiv -->
3807
+ <div id="userCommentInputDiv">
3808
+ <form id="articleRatingInputForm" action="/ajax_process.php" method="post">
3809
+ <input type="hidden" name="task" value="record_comment_rating" />
3810
+ <input type="hidden" name="aID" value="82166" />
3811
+ <input type="hidden" name="article_rating" value="" />
3812
+ <input type="hidden" name="ucLink" value="http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1" />
3813
+ <input type="hidden" name="form_used" value="1" />
3814
+ <table class="ratingInput" style="margin: 0px auto; border-collapse: collapse; width: 100%; background-color: #fff;">
3815
+ <tr>
3816
+ <td style="vertical-align: top; padding: 10px; width: 40%; border: 0;">
3817
+ <h4 style="margin: 0 0 .5em 0; text-align: center; font-size: .9em;">Rate This Article</h4>
3818
+ <div class="articleRatingUserInput" style="clear: both;">
3819
+ <div class="presetRatingDiv">
3820
+ <input name="star1" type="radio" class="star" checked="checked" />
3821
+ <input name="star1" type="radio" class="star"/>
3822
+ <input name="star1" type="radio" class="star"/>
3823
+ <input name="star1" type="radio" class="star"/>
3824
+ <input name="star1" type="radio" class="star"/>
3825
+ <a href="1" class="ratingLink">Very Poor</a>
3826
+ </div>
3827
+ <!-- end resetRatingDiv -->
3828
+ <div class="presetRatingDiv">
3829
+ <input name="star2" type="radio" class="star"/>
3830
+ <input name="star2" type="radio" class="star" checked="checked" />
3831
+ <input name="star2" type="radio" class="star"/>
3832
+ <input name="star2" type="radio" class="star"/>
3833
+ <input name="star2" type="radio" class="star"/>
3834
+ <a href="2" class="ratingLink">Poor</a>
3835
+ </div>
3836
+ <!-- end resetRatingDiv -->
3837
+ <div class="presetRatingDiv">
3838
+ <input name="star3" type="radio" class="star"/>
3839
+ <input name="star3" type="radio" class="star"/>
3840
+ <input name="star3" type="radio" class="star" checked="checked" />
3841
+ <input name="star3" type="radio" class="star"/>
3842
+ <input name="star3" type="radio" class="star"/>
3843
+ <a href="3" class="ratingLink">OK</a>
3844
+ </div>
3845
+ <!-- end resetRatingDiv -->
3846
+ <div class="presetRatingDiv">
3847
+ <input name="star4" type="radio" class="star"/>
3848
+ <input name="star4" type="radio" class="star"/>
3849
+ <input name="star4" type="radio" class="star"/>
3850
+ <input name="star4" type="radio" class="star" checked="checked" />
3851
+ <input name="star4" type="radio" class="star"/>
3852
+ <a href="4" class="ratingLink">Good</a>
3853
+ </div>
3854
+ <!-- end resetRatingDiv -->
3855
+ <div class="presetRatingDiv">
3856
+ <input name="star5" type="radio" class="star"/>
3857
+ <input name="star5" type="radio" class="star"/>
3858
+ <input name="star5" type="radio" class="star"/>
3859
+ <input name="star5" type="radio" class="star"/>
3860
+ <input name="star5" type="radio" class="star" checked="checked" />
3861
+ <a href="5" class="ratingLink">Very Good</a>
3862
+ </div>
3863
+ <!-- end resetRatingDiv -->
3864
+ </div>
3865
+ <!-- end articleRatingUserInput -->
3866
+ </td>
3867
+ <td style="vertical-align: top; padding: 10px; width: 60%; border: 0;">
3868
+ <h4 style="margin: 0 0 .5em 0; text-align: center; font-size: .9em;">Comment On This Article</h4>
3869
+ <textarea style="display: block; margin: 0 auto; width: 90%; height: 210px; border: 2px solid #666;" id="articleReview" name="articleReview"></textarea>
3870
+ </td>
3871
+ </tr>
3872
+ </table>
3873
+ <div class="ratingInput" style="margin: 0; padding: 5px; background-color: #eee; display: block; text-align: center;">
3874
+ <input style="margin: 0 10px;" type="submit" value="Submit Comments &amp; Ratings" />
3875
+ <input class="closeUserCommentInputButton" style="margin: 0 10px;" type="button" value="Close Ratings" />
3876
+ </div>
3877
+ <div style="margin: 0; padding: 30px 10px; text-align: center;">
3878
+ <p class="adding" style="display: none;">We are adding your Comments &amp; Rating. <img src="http://cf2.primecp.com/images/ajax-indicator.gif" alt="" width="16" height="16" /></p>
3879
+ <p class="complete" style="display: none;">Thank you! Your Comment &amp; Rating have been added and will be posted shortly.</p>
3880
+ <!--
3881
+ <p class="login" style="display: none; text-align: right;">This feature is only available for users that have an account and are logged in.</p>
3882
+ <p class="login" style="display: none; text-align: right;"><a href="/section/mybox/action/login">Click here to register for an account or to log into your existing account.</a></p>
3883
+ -->
3884
+ <p class="login" style="display: none;">You must be logged in to rate or leave a comment. <a href="/section/account/action/login/return">Login</a> | <a href="/section/account/action/login/return#registerForm">Register</a></p>
3885
+ </div>
3886
+ </form>
3887
+ <!-- end articleRatingInputForm -->
3888
+ </div>
3889
+ <!-- end userCommentInputDiv -->
3890
+ <div class="shareLinks shadowBox">
3891
+ <div class="shadowBoxHeader">
3892
+ <div class="shadowBoxHeaderTL"></div>
3893
+ <div class="shadowBoxHeaderTR"></div>
3894
+ </div>
3895
+ <div class="shadowBoxContent">
3896
+ <div class="shadowBoxContentInner">
3897
+ <img class="closeBtn" src="http://cf2.primecp.com/images/close_btn-2.png" alt="Close" width="15" height="15" />
3898
+ <h5>Share this on: </h5>
3899
+ <ul>
3900
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/twitter.png);"><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1" title="TweetThis">Twitter</a></li>
3901
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/digg.png);"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&amp;title=Saucy+Italian+Pot+Roast" title="Digg">Digg</a></li>
3902
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/delicious.png);"><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&amp;title=Saucy+Italian+Pot+Roast" title="del.icio.us">Delicious</a></li>
3903
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/facebook.png);"><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&amp;t=Saucy+Italian+Pot+Roast" title="Facebook">Facebook</a></li>
3904
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/googlebookmark.png);"><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&amp;title=Saucy+Italian+Pot+Roast" title="Google">Google</a></li>
3905
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/StumbleUpon.gif);"><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&title=Saucy+Italian+Pot+Roast">StumbleUpon</a></li>
3906
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/post_myspace_icon.gif);"><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&t=Saucy+Italian+Pot+Roast">MySpace</a></li>
3907
+ <li style="background-image: url(http://cf2.primecp.com/images/social_networks/email_icon.png);"><a rel="nofollow" target="_blank" href="mailto:?subject=Saucy Italian Pot Roast&body=%0A%0Ahttp%3A%2F%2Fwww.mrfood.com%2FSlow-Cooker-Recipes%2FSaucy-Italian-Pot-Roast-4268%2Fct%2F1">Email</a></li>
3908
+ <!--
3909
+ <li><a rel="nofollow" target="_blank" href="http://sphinn.com/submit.php?url=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1&amp;title=Saucy+Italian+Pot+Roast" title="Sphinn"><img src="/images/social_networks/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
3910
+ -->
3911
+ </ul>
3912
+ </div>
3913
+ <!-- end shadowBoxContentInner -->
3914
+ </div>
3915
+ <!-- end shadowBoxContent -->
3916
+ <div class="shadowBoxFooter">
3917
+ <div class="shadowBoxFooterBL"></div>
3918
+ <div class="shadowBoxFooterBR"></div>
3919
+ </div>
3920
+ </div>
3921
+ <!-- end shareLinks -->
3922
+ <div class="articleAttrContent">
3923
+ <div style="position: relative; margin: 0 0 3px 10px; padding: 0px; background-color: #fff; float: right; width: 250px;">
3924
+ <img class="photo" src="http://cf2.primecp.com/master_images/MrFood/Saucy-Italian-Pot-Roast-RE.jpg" alt="Saucy Italian Pot Roast " width="250" height="188" />
3925
+ </div>
3926
+ <div class="articleAttrSection">
3927
+ <p style="font-size: .9em;">
3928
+ Try this saucy pot roast over egg noodles, rice, or-for more authentic Italian flavor-polenta. It's a winner whichever way you choose!
3929
+ </p>
3930
+ </div>
3931
+ <!-- end articleAttrSection -->
3932
+ <div class="articleAttrSection">
3933
+ <p><span class="attrLabel">Serves:</span> 10 </p>
3934
+ </div>
3935
+ <!-- end articleAttrSection -->
3936
+ <div class="articleAttrSection">
3937
+ </div>
3938
+ <!-- end articleAttrSection -->
3939
+ <div class="articleAttrSection">
3940
+ <h5>What You'll Need:</h5>
3941
+ <ul class="recipeIngredient">
3942
+ <li class="shoppingListItem" rel="1331110">
3943
+ <span class="ingredient"><span class="amount">1 </span> <span class="name">(8-ounce) package sliced fresh baby Portobello mushrooms</span></span>
3944
+ </li>
3945
+ <li class="shoppingListItem" rel="1331111">
3946
+ <span class="ingredient"><span class="amount">1 </span> <span class="name">large onion, cut in half and sliced</span></span>
3947
+ </li>
3948
+ <li class="shoppingListItem" rel="1331112">
3949
+ <span class="ingredient"><span class="amount">1 </span> <span class="name">(2-1/2- to 3-pound boneless chuck roast, trimmed</span></span>
3950
+ </li>
3951
+ <li class="shoppingListItem" rel="1331113">
3952
+ <span class="ingredient"><span class="amount">1 </span> <span class="name">(1.6-ounce) package garlic-and-herb sauce mix</span></span>
3953
+ </li>
3954
+ <li class="shoppingListItem" rel="1331114">
3955
+ <span class="ingredient"><span class="amount"> <span style="position: relative; top: -3px; font-size: .8em;">1</span>/<span style="position:relative; top: 3px; font-size: .8em;">2</span>
3956
+ teaspoon</span> <span class="name">crushed red pepper</span></span>
3957
+ </li>
3958
+ <li class="shoppingListItem" rel="1331115">
3959
+ <span class="ingredient"><span class="amount">2 </span> <span class="name">(14-1/2-ounce) cans Italian-style diced tomatoes, undrained</span></span>
3960
+ </li>
3961
+ <li class="shoppingListItem" rel="1331116">
3962
+ <span class="ingredient"><span class="amount">1 </span> <span class="name">(8-ounce) can no-salt-added tomato sauce</span></span>
3963
+ </li>
3964
+ <li class="shoppingListItem" rel="1331117">
3965
+ <span class="ingredient"><span class="amount">2 tablespoons</span> <span class="name">cornstarch</span></span>
3966
+ </li>
3967
+ <li class="shoppingListItem" rel="1331118">
3968
+ <span class="ingredient"><span class="amount">2 tablespoons</span> <span class="name">water</span></span>
3969
+ </li>
3970
+ </ul>
3971
+ </div>
3972
+ <!-- end articleAttrSection -->
3973
+ <div class="articleAttrSection">
3974
+ <h5>What To Do:</h5>
3975
+ <ol>
3976
+ <li>Place mushrooms and onion in a 6-quart slow cooker; add roast. Sprinkle roast evenly with sauce mix and crushed red pepper. Pour diced tomatoes and tomato sauce over roast.<br /><br /></li>
3977
+ <li>Cover and cook on HIGH setting 5 to 6 hours or until meat is very tender. Remove roast from slow cooker, and cut into large chunks; keep warm.<br /><br /></li>
3978
+ <li>Skim fat from juices in slow cooker; discard fat. Stir together cornstarch and water in a small bowl until smooth; add to juices in slow cooker, stirring until blended.<br /><br /></li>
3979
+ <li>Cover and cook on HIGH setting 20 to 30 more minutes or until mixture is thickened, stirring once. Add roast pieces back to slow cooker. Cover and cook until thoroughly heated.<br /><br /><br /></li>
3980
+ </ol>
3981
+ </div>
3982
+ <!-- end articleAttrSection -->
3983
+ <div class="articleAttrSection">
3984
+ </div>
3985
+ <!-- end articleAttrSection -->
3986
+ </div>
3987
+ <!-- end articleAttrContent -->
3988
+ <p style="margin: 1em 0 2em 0;"><em><a class="copyrightLink" href="http://www.mrfoodshop.com/" target="_blank">This recipe is from The Best of Mr. Food Cookbook Series &copy; Oxmoor House, Inc. If you would like more recipes like this, click here.</a></em></p>
3989
+ <div class="ratePrintAddDiv">
3990
+ <div style="float: right;">
3991
+ <!-- START Po.st content -->
3992
+ <!-- this was our verion of adding pinterest
3993
+ <div style="float: right; margin: 0; padding: 4px 0 0 0;">
3994
+ <a href="http://pinterest.com/pin/create/button/?url=http://www.mrfood.com/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268&media=http://www.mrfood.com/images/article_images/Saucy-Italian-Pot-Roast-TN.jpg&description=Try+this+saucy+pot+roast+over+egg+noodles%2C+rice%2C+or-for+more+authentic+Italian+flavor-polenta.+It%27s+a+winner+whichever+way+you+choose%21" class="pin-it-button" count-layout="none"></a>
3995
+ </div>
3996
+ -->
3997
+ <div class="pw_widget pw_size_24" pw:pinterest-image="http://www.mrfood.com/images/article_images/Saucy-Italian-Pot-Roast-TN.jpg">
3998
+ <a class="pw-button-pinterest"></a>
3999
+ <a class='pw_googleplus'></a>
4000
+ <a class='pw_facebook'></a>
4001
+ <a class='pw_twitter'></a>
4002
+ <a class='pw_stumble_upon'></a>
4003
+ <a class='pw_email'></a>
4004
+ </div>
4005
+ </div>
4006
+ <ul style="margin: 3px 0;">
4007
+ <li class="rateSocialBtn notes"><a href="">Notes</a></li>
4008
+ <li class="rateSocialBtn print"><a id="bottom_articlePrintLink" class="articlePrintLink" href="javascript: window.print();" >Print</a></li>
4009
+ <li class="rateSocialBtn remove" style="display: none;"><a href="" title="Click to remove from Is My Recipe">Is My Recipe</a></li>
4010
+ <li class="rateSocialBtn add" style="display: none;"><a href="">Add</a></li>
4011
+ <li class="rateSocialBtn rate"><a class="articleRatingHoverFeedback" href="">Rate</a></li>
4012
+ <li class="rateSocialBtn socialNetworkLinks comment"><a rel="comment" href="">Comment</a></li>
4013
+ </ul>
4014
+ <div style="clear: both;"></div>
4015
+ </div>
4016
+ <!-- end ratePrintAddDiv -->
4017
+ <div id="articleCommentRatingDiv">
4018
+ <div class="commentLoadingDiv">
4019
+ </div>
4020
+ <!-- end commentLoadingDiv -->
4021
+ </div>
4022
+ <!-- end articleCommentRatingDiv -->
4023
+ <div class="articleDateLastUsed">
4024
+ 10 16 12
4025
+ </div>
4026
+ </div>
4027
+ </div>
4028
+ </td>
4029
+ <!-- end col2 -->
4030
+ <td id="col3">
4031
+ <div style="margin: 0 0 10px 0;">
4032
+ <a href="http://www.qvc.com/Hello-Taste,-Goodbye-Guilt--Cookbook-by-Mr.-Food-Test-Kitchen-Search-Results.product.F09966.html?sc=F09966-SRCH&cm_sp=VIEWPOSITION-_-3-_-F09966&catentryImage=http://images-p.qvc.com/is/image/f/66/f09966.001?$uslarge$"><img style="display: block; border: 0;" src="/master_images/qvc_ad_images/16-1364585576.jpg" alt="QVC Diabetic Cookbook" width="300" height="125" /></a>
4033
+ </div>
4034
+ <div style="margin: 0 0 10px 0;">
4035
+ </div>
4036
+ <div style="margin: 0 0 10px 0;">
4037
+ <!-- border was 293f6f -->
4038
+ <div id="latestTvRecipesSiteID28">
4039
+ <div class="h3Wrapper">
4040
+ <img style="display: block; margin: 0; border: 0;" src="http://cf2.primecp.com/site_templates/0004/images/latest-TV-recipe-header_sID28_03.png" alt="Latest TV Recipe" />
4041
+ </div>
4042
+ <div class="contentBoxPadding" style="text-align: center; color: #293f6f; padding-bottom: 5px;">
4043
+ <div style="background-image: url(/master_images/MrFood/Five-Star-Chicken-RE--1--.jpg); background-repeat: no-repeat; background-position: center center;">
4044
+ <a style="display: block; margin: 0; padding: 0;" href="/Chicken/Five-Star-Chicken-276"><img style="border: 0;" src="http://cf2.primecp.com/images/clear_pixel.gif" alt="" width="1" height="188" /></a>
4045
+ </div>
4046
+ <div style="margin: .5em 0; font-weight: bold;">
4047
+ <a href="/Chicken/Five-Star-Chicken-276">Five Star Chicken</a>
4048
+ </div>
4049
+ <a class="btmLink recentVideo" href="/section/this-week">Recent TV Recipes</a>
4050
+ <div style="clear: both;"></div>
4051
+ </div>
4052
+ </div>
4053
+ <!-- end latestTvRecipes -->
4054
+ </div>
4055
+ <div style="margin: 0 0 10px 0;">
4056
+ <!-- mrfood-com_right-rail-B_300-250 -->
4057
+ <div id="div-gpt-ad-1363378211671-4" style="width: 300px; height:250px;" class="mustangGoogleAdTest_async">
4058
+ <script type='text/javascript'>
4059
+ googletag.cmd.push(function() { googletag.display('div-gpt-ad-1363378211671-4'); });
4060
+ </script>
4061
+ </div>
4062
+ </div>
4063
+ <div style="margin: 0 0 10px 0;">
4064
+ <div id="newsletterSignUpDivSiteID28">
4065
+ <!--
4066
+ <h3>Mr. Food E-Newsletter</h3>
4067
+ -->
4068
+ <img class="headerImg" src="http://cf2.primecp.com/site_templates/0004/images/right_col_signup_header_28.jpg" alt="" />
4069
+ <div id="newsletterSignUpDiv2">
4070
+ <form id="newsletterSignUpForm" class="contentBoxPadding" action="/newsletter_signup.php" method="post" >
4071
+ <input type="hidden" name="task" value="signup" />
4072
+ <input type="hidden" name="PHPSESSID" value="vtks18r934d7s1bc6bmhcfnf81" />
4073
+ <!--
4074
+ <h4>Sign up today...it's absolutely free</h4>
4075
+ -->
4076
+ <img style="float: right; margin: 0 0 5px 5px;" src="http://cf2.primecp.com/site_templates/0004/images/newsletter_signup_bg_sID28.jpg" alt="" />
4077
+ <img class="subheaderImg" src="http://cf2.primecp.com/site_templates/0004/images/right_col_signup_subheader_28.gif" alt="" />
4078
+ <div>
4079
+ <ul>
4080
+ <li>Tasty Quick & Easy Recipes</li>
4081
+ <li>Helpful Cooking Tips & Hints</li>
4082
+ <li>Themed eCookbooks</li>
4083
+ <li>Special Partner Offers</li>
4084
+ <li>...and so much more</li>
4085
+ </ul>
4086
+ </div>
4087
+ <div class="emailInputDiv">
4088
+ <h4>Enter Your Email:</h4>
4089
+ <input class="textField defaultTextFieldColor" type="text" id="email" name="email" value="Email Address" /><input class="button" type="submit" id="signUpSubmit" value="Submit" />
4090
+ <div style="clear: both;"></div>
4091
+ </div>
4092
+ </form>
4093
+ <div style="text-align: center;">
4094
+ <p id="newsletterSignUpLoader" class="noDisplay"> Please Wait <img src="/images/ajax-loader-kit.gif" alt="" width="16" height="16" /></p>
4095
+ <h4 id="newsletterSignUpThanks" class="noDisplay">Thanks for signing up</h4>
4096
+ <h4 id="newsletterSignUpError" class="noDisplay">Sorry, we could not sign you up.</h4>
4097
+ </div>
4098
+ </div>
4099
+ <!-- end newsletterSignUpDiv2 -->
4100
+ </div>
4101
+ <!-- end newsletterSignUpDivSiteID -->
4102
+ </div>
4103
+ <div style="margin: 0 0 10px 0;">
4104
+ <div id="topTenSiteID28" class="topTenDiv">
4105
+ <div style="position: relative; margin: 30px 0 10px 0; padding: 0; height: 20px; background-color: #F7EED8;">
4106
+ <img style="position: absolute; top: -15px; left: 80px; display: block; margin: 0 auto;" src="http://cf2.primecp.com/site_templates/0004/images/whats_hot_headline_sID28.gif" alt="" />
4107
+ </div>
4108
+ <a class="topTenImg" title="Slow Cooker Chicken Enchiladas" href="/Slow-Cooker-Recipes/Slow-Cooker-Chicken-Enchiladas/ct/1" style="height: 188px; background-image: url(/master_images/MrFood/Slow-Cooker-Chicken-Enchiladas-RE.jpg); background-position: center center; background-repeat: no-repeat;"></a>
4109
+ <div style="margin: 0; padding: 0 10px 20px 15px;">
4110
+ <ol>
4111
+ <li><a href="/Slow-Cooker-Recipes/Slow-Cooker-Chicken-Enchiladas/ct/1">Slow Cooker Chicken Enchiladas</a></li>
4112
+ <li><a href="/Slow-Cooker-Recipes/Slow-Cooked-Chicken-and-Rice/ct/1">Slow Cooked Chicken and Rice</a></li>
4113
+ <li><a href="/Slow-Cooker-Recipes/Sweet-Potato-Black-Bean-Chili/ct/1">Sweet Potato Black Bean Chili</a></li>
4114
+ <li><a href="/Slow-Cooker-Recipes/Bow-tie-Pasta-and-Chicken-Casserole-4307/ct/1">Bow Tie Pasta and Chicken Casserole</a></li>
4115
+ <li><a href="/Slow-Cooker-Recipes/Saucy-Italian-Pot-Roast-4268/ct/1">Saucy Italian Pot Roast</a></li>
4116
+ <li><a href="/Slow-Cooker-Recipes/Slow-Cooker-Apple-Bread-Pudding/ct/1">Slow Cooker Apple Bread Pudding</a></li>
4117
+ <li><a href="/Chicken/Asian-Chicken/ct/1">Asian Chicken</a></li>
4118
+ <li><a href="/Beef/Cola-Pot-Roast/ct/1">Cola Pot Roast</a></li>
4119
+ <li><a href="/Slow-Cooker-Recipes/Slow-Cooker-Lasagna-4276/ct/1">Slow Cooker Lasagna</a></li>
4120
+ <li><a href="/Slow-Cooker-Recipes/17-Super-Slow-Cooker-Dessert-Recipes/ct/1">17 Super Slow Cooker Dessert Recipes</a></li>
4121
+ </ol>
4122
+ </div>
4123
+ </div>
4124
+ <!-- end topTen -->
4125
+ </div>
4126
+ <div style="margin: 0 0 10px 0;">
4127
+ <!-- mrfood-com_right-rail-C_300-600 -->
4128
+ <div id="div-gpt-ad-1363378211671-5" style="width: 300px; height:600px;" class="mustangGoogleAdTest_async">
4129
+ <script type='text/javascript'>
4130
+ googletag.cmd.push(function() { googletag.display('div-gpt-ad-1363378211671-5'); });
4131
+ </script>
4132
+ </div>
4133
+ </div>
4134
+ <div style="margin: 0 0 10px 0;">
4135
+ <div class="eBooksRightCol">
4136
+ <div class="headline">
4137
+ <img src="http://cf2.primecp.com/site_templates/0004/images/free-ecookbooks-header.png" alt="Free Mr. Food eCookbooks" />
4138
+ </div>
4139
+ <div class="list">
4140
+ <ul>
4141
+ <li><a href="http://www.mrfood.com/Editors-Picks/16-Easy-Amish-Recipes-Mr-Food/">16 Easy Amish Recipes</a></li>
4142
+ <li><a href="http://www.mrfood.com/Beef/Ground-Beef-Recipes-Quick-and-Easy-Recipes-for-Ground-Beef/">25 Quick & Easy Recipes for Ground Beef</a></li>
4143
+ <li><a href="http://www.mrfood.com/Editors-Picks/Comfort-Food-For-The-Soul-Our-Best-Stews-Easy-Soup-Recipes-Free-eCookbook">Comfort Food for the Soul</a></li>
4144
+ <li><a href="http://www.mrfood.com/Misc-Desserts/Death-By-Chocolate-Dessert-Heaven-Our-Best-Chocolate-Recipes-Free-eCookbook/">Death by Chocolate</a></li>
4145
+ <li><a href="http://www.mrfood.com/Misc-Desserts/Mr-Food-Decadent-Desserts-eCookbook">Decadent Desserts eCookBook</a></li>
4146
+ <li><a href="http://www.mrfood.com/Editors-Picks/Fuss-Free-Meals-Simple-Skillet-Recipes-One-Pot-Recipes-Free-eCookbook/">Fuss-Free Meals</a></li>
4147
+ </ul>
4148
+ </div>
4149
+ </div>
4150
+ <!-- end eBooksRightCol -->
4151
+ </div>
4152
+ <div style="margin: 0 0 10px 0;">
4153
+ <div class="socialNewsRightCol">
4154
+ <h3>Connect with Us</h3>
4155
+ <h4>Find us online</h4>
4156
+ <table>
4157
+ <tr>
4158
+ <td>
4159
+ <a title="Follow Us on Facebook" target="_blank" href="https://www.facebook.com/MrFoodRecipes"><img src="/images/social_link_facebook.jpg" alt="Facebook" width="36" height="35" /></a>
4160
+ </td>
4161
+ <td>
4162
+ <a title="Visit Our Google Plus Page" target="_blank" href="https://plus.google.com/b/103126460811290285773/103126460811290285773/posts"><img src="/images/social_link_google-plus.png" alt="Google Plus" width="32" height="32" /></a>
4163
+ </td>
4164
+ <td>
4165
+ <a title="Visit Our Twitter Page" target="_blank" href="https://twitter.com/Mr_Food"><img src="/images/social_link_twitter.jpg" alt="Twitter" width="35" height="35" /></a>
4166
+ </td>
4167
+ <td>
4168
+ <a title="Visit Our Pinterest Page" target="_blank" href="http://pinterest.com/mr_food/"><img src="/images/social_link_pinterest.jpg" alt="Pinterest" width="35" height="35" /></a>
4169
+ </td>
4170
+ <td>
4171
+ <a title="Visit Our YouTube Channel" target="_blank" href="https://www.youtube.com/user/MrFoodVideos?feature=mhee"><img src="/images/social_link_youtube.jpg" alt="Twitter" width="35" height="35" /></a>
4172
+ </td>
4173
+ <td>
4174
+ <a title="Visit Our RSS Page" href="/rss-feed"><img src="/images/social_link_rss.jpg" alt="RSS" width="35" height="35" /></a>
4175
+ </td>
4176
+ </tr>
4177
+ </table>
4178
+ </div>
4179
+ </div>
4180
+ </td>
4181
+ <!-- end col3 -->
4182
+ </tr>
4183
+ </table>
4184
+ <!-- end mainContainerTable -->
4185
+ <div id="footer">
4186
+ <div style="margin: 0;">
4187
+ <p id="footerMenu">
4188
+ <a style="border: 0;" href="http://mrfood.co/">About Mr. Food</a>
4189
+ <a href="/index.php/hct/Advertise-on-MrFood">Advertise on MrFood.com</a>
4190
+ <a href="/index.php/hct/FAQs">FAQ</a>
4191
+ <a href="http://www.mrfood.com/index.php/hct/contact_us_page">Contact Us</a>
4192
+ <a href="/index.php/hct/privacy_policy">Privacy Policy</a>
4193
+ <a href="/index.php/hct/Press-Room">Press Room</a>
4194
+ <a href="/keywords">Keyword Index</a>
4195
+ <a href="/index.php/hct/terms_service">Terms of Service</a>
4196
+ <a href="/index.php/hct/MrFood-Sponsors">Special Thanks</a>
4197
+ <a href="http://www.mrfood.com/section/this-week">Today's Recipe</a>
4198
+ <a href="/section/subctr/action/signup">Subscribe</a>
4199
+ <a href="/section/subctr/">Unsubscribe</a>
4200
+ <a href="/site-map">Site Map</a>
4201
+ <a href="/rss-feed">RSS</a>
4202
+ <a onclick="return bookmark('http://www4.favecrafts.com/','');" href="">Bookmark</a>
4203
+ </p>
4204
+ <!--
4205
+ <p id="footerMenu">bb<a style="border: 0;" href="/index.php/hct/about_us">About Us</a><a href="/index.php/hct/advertise">Advertise</a><a href="/index.php/hct/privacy_policy">Privacy Policy</a><a href="/index.php/hct/contact_us_page">Contact Us</a><a href="/index.php/hct/terms_service">Terms of Service</a><a class="contestRulesLink" href="">Rules</a>mm</p>
4206
+ -->
4207
+ </div>
4208
+ <div style="margin: 0;">
4209
+ <table style="margin: 0 auto;">
4210
+ <tr>
4211
+ <td>
4212
+ <p style="margin: 0 10px;">Mr. Food, OOH IT'S SO GOOD!! and the Mr. Food likeness are trademarks of Ginsburg Enterprises Incorporated.<br />
4213
+ &copy; 2013 by Ginsburg Enterprises Incorporated.<br />
4214
+ All rights reserved.<br />
4215
+ </p>
4216
+ </td>
4217
+ <td>
4218
+ <script type="text/javascript" language="JavaScript">
4219
+ glam_affiliate_id = '1620726456';
4220
+ glam_logo_type = 'Foodie';
4221
+ glam_logo_size = '160x48';
4222
+ color_or_grayscale_flag ='';
4223
+ glam_logo_color = 'wht';
4224
+ glam_gs_logo_color = 'wht';
4225
+ glam_logo_country = 'US';
4226
+ </script>
4227
+ <script src="http://www8.glam.com/js/widgets/glam_logo.js"></script>
4228
+ </td>
4229
+ </tr>
4230
+ </table>
4231
+ </div>
4232
+ </div>
4233
+ <!-- end footer -->
4234
+ </div>
4235
+ <!-- end mainLayoutDiv2 -->
4236
+ </div>
4237
+ <!-- end mainLayoutDiv -->
4238
+ <div id="printFooter">
4239
+ <img src="/site_templates/0004/images/print-footer_sID28.jpg" alt="" width="500" height="75" />
4240
+ </div>
4241
+ <!-- end printFooter -->
4242
+ <div id="dhtmlLogin" class="dhtmlLoginWrapper" style="display: none;">
4243
+ <div class="dhtmlLoginContent">
4244
+ <h4>Log In to Your Account</h4>
4245
+ <img class="closeBox" src="/images/close.png" alt="Close Window" width="36" height="36" />
4246
+ <p class="mainLinks"><a rel="primeRegisterLink" href="/section/account/action/login/#registerForm">Register Now!</a><a rel="primeForgotPasswordLink" href="/section/account/action/login/#forgotPasswordAnchor">Forgot Password?</a></p>
4247
+ <form action="/ajax_process.php" method="post">
4248
+ <input type="hidden" name="task" value="user_acct_login" />
4249
+ <div style="margin: 0 auto 60px auto; width: 60%;">
4250
+ <div>
4251
+ <div class="formFieldDiv">
4252
+ <label>Email:</label>
4253
+ <input type="text" value="" name="email" />
4254
+ </div>
4255
+ </div>
4256
+ <div>
4257
+ <div class="formFieldDiv">
4258
+ <label>Password:</label>
4259
+ <input type="password" value="" name="password" />
4260
+ </div>
4261
+ </div>
4262
+ <div style="text-align: right;">
4263
+ <input type="submit" value="Log In" />
4264
+ </div>
4265
+ <div class="feedbackDiv"></div>
4266
+ </div>
4267
+ <div class="facebookLoginButton" style="margin: 0 auto; padding: 7px 10px; width: 80%; background-color: #375895; border-radius: 5px; color: #fff; font-size: 1.2em; cursor: pointer;">
4268
+ <a style="display: inline-block; background-image: url(/images/facebook-icons-sprite.png); background-position: 0 -127px; background-repeat: no-repeat; background-size: 50px auto; border-radius: 10px 10px 10px 10px; height: 50px; line-height: 50px; margin-right: 12px; width: 50px;">&nbsp;</a>
4269
+ Login with Facebook
4270
+ </div>
4271
+ </form>
4272
+ </div>
4273
+ <!-- end dhtmlLogin -->
4274
+ </div>
4275
+ <div id="dhtmlSignup" class="dhtmlLoginWrapper" style="display: none;">
4276
+ <div class="dhtmlLoginContent">
4277
+ <h4>Register Now!</h4>
4278
+ <img class="closeBox" src="/images/close.png" alt="Close Window" width="36" height="36" />
4279
+ <p class="mainLinks"><a rel="primeLoginLink" href="/section/account/action/login">Log In</a><a rel="primeForgotPasswordLink" href="/section/account/action/login/#forgotPasswordAnchor">Forgot Password?</a></p>
4280
+ <form action="/ajax_process.php" method="post">
4281
+ <input type="hidden" name="task" value="register_process" />
4282
+ <div class="formFieldDiv" style="margin-bottom: 15px;">
4283
+ <label>Public/Display Name:</label>
4284
+ <input type="text" value="" name="pname" />
4285
+ <div class="formElementInfoDiv" style="margin: 5px; padding: 0;">
4286
+ Optional: This is the name that will appear alongside any reviews you create on the site. You can use letters, numbers and white space.
4287
+ </div>
4288
+ </div>
4289
+ <div class="formFieldDiv">
4290
+ <label>First Name:</label>
4291
+ <input type="text" value="" name="fname" />
4292
+ </div>
4293
+ <div class="formFieldDiv">
4294
+ <label>Last Name:</label>
4295
+ <input type="text" value="" name="lname" />
4296
+ </div>
4297
+ <div class="formFieldDiv">
4298
+ <label>Email:</label>
4299
+ <input type="text" value="" name="email" /">
4300
+ </div>
4301
+ <div class="formFieldDiv">
4302
+ <label>Password:</label>
4303
+ <input type="password" value="" name="password" />
4304
+ </div>
4305
+ <div class="formFieldDiv">
4306
+ <label>Confirm Password:</label>
4307
+ <input type="password" value="" name="password2" />
4308
+ </div>
4309
+ <div class="formFieldDiv" style="text-align: right;">
4310
+ <input type="submit" value="Sign Up" />
4311
+ </div>
4312
+ <div class="feedbackDiv"></div>
4313
+ </form>
4314
+ <div class="facebookLoginButton" style="margin: 2em auto 0 auto; padding: 7px 10px; width: 80%; background-color: #375895; border-radius: 5px; color: #fff; font-size: 1.2em; cursor: pointer;">
4315
+ <a style="display: inline-block; background-image: url(/images/facebook-icons-sprite.png); background-position: 0 -127px; background-repeat: no-repeat; background-size: 50px auto; border-radius: 10px 10px 10px 10px; height: 50px; line-height: 50px; margin-right: 12px; width: 50px;">&nbsp;</a>
4316
+ Join Through Facebook
4317
+ </div>
4318
+ </div>
4319
+ <!-- end dhtmlSignup -->
4320
+ </div>
4321
+ <div id="dhtmlForgotPassword" class="dhtmlLoginWrapper" style="display: none;">
4322
+ <div class="dhtmlLoginContent">
4323
+ <h4>Forgot Your Password?</h4>
4324
+ <img class="closeBox" src="/images/close.png" alt="Close Window" width="36" height="36" />
4325
+ <p class="mainLinks"><a rel="primeLoginLink" href="/section/account/action/login">Log In</a><a rel="primeRegisterLink" href="/section/account/action/login/#registerForm">Register Now!</a></p>
4326
+ <form action="/ajax_process.php" method="post">
4327
+ <input type="hidden" name="task" value="forgot_password" />
4328
+ <div style="margin: 1em 0 0 0; padding: 0; text-align: center;">
4329
+ <p>Enter your email address and we will send your password.</p>
4330
+ <div class="formFieldDiv">
4331
+ Email: <input type="text" value="" name="email" style="width: 50%;" />
4332
+ </div>
4333
+ </div>
4334
+ <div style="text-align: right;">
4335
+ <input type="submit" value="Email Me My Password" />
4336
+ </div>
4337
+ <div class="feedbackDiv"></div>
4338
+ </form>
4339
+ </div>
4340
+ <!-- end dhtmlForgotPassword -->
4341
+ </div>
4342
+ <!-- START GOOGLE ANALYTICS -->
4343
+ <script type="text/javascript">
4344
+ var _gaq = _gaq || [];
4345
+ _gaq.push(['_setAccount', 'UA-1369616-2']);
4346
+ _gaq.push(['_trackPageview']);
4347
+
4348
+ (function() {
4349
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
4350
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
4351
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
4352
+ })();
4353
+
4354
+ </script><!-- END GOOGLE ANALYTICS -->
4355
+ <div id="viewportGreyout"></div>
4356
+ <!-- START NL signup div -->
4357
+ <div id="newsletterSignUpDivAnime" style="display: none;">
4358
+ <div id="newsletterSignUpDivAnimeCloseLink">
4359
+ [ <a href="">Close</a> ]
4360
+ </div>
4361
+ <div id="newsletterSignUpAnimeContent">
4362
+ <div id="nscID_63">
4363
+ <img style="display: block; margin: 0 0 25px 0;" src="/site_templates/signup_creative/images/nscID_63/mrfood_dhtml_1_03.jpg" alt="" width="798" height="104" />
4364
+ <div>
4365
+ <img style="display: block; margin: 0 auto;" src="/site_templates/signup_creative/images/nscID_63/mrfood_dhtml_1_07.jpg" alt="" width="699" height="297" />
4366
+ <table class="newsletterSignUpDivAnimeFormTable" style="width: 699px;">
4367
+ <tr>
4368
+ <td id="newsletterSignUpDivAnimeFormTD">
4369
+ <form id="newsletterSignUpFormAnime" class="contentBoxPadding newsletterSignUpDivAnimeFormUI" action="/newsletter_signup.php" method="post" style="margin: 0; padding: 0;">
4370
+ <input type="hidden" name="task" value="signup" />
4371
+ <input type="hidden" name="PHPSESSID" value="<?php echo session_id();?>" />
4372
+ <div style="margin: 0; padding: 0px 0 0 0px;">
4373
+ <img style="margin: 0 auto; vertical-align: middle;" src="/site_templates/signup_creative/images/nscID_63/mrfood_dhtml_1_11.gif" alt="Enter Your Email" width="251" height="33" /><input style="width: 200px;" type="text" id="emailAnime" name="email" value="" />
4374
+ </div>
4375
+ <div style="margin: 0; padding: 0px 0 0 0px;">
4376
+ <input type="submit" value="Submit for FREE Access" />
4377
+ </div>
4378
+ </form>
4379
+ <!-- end newsletterSignUpFormAnime -->
4380
+ <h4 id="newsletterSignUpThanksAnime">Thanks for signing up</h4>
4381
+ <h4 id="newsletterSignUpErrorAnime">Sorry, we could not sign you up.</h4>
4382
+ </td>
4383
+ </tr>
4384
+ </table>
4385
+ <!-- end newsletterSignUpDivAnimeFormTable -->
4386
+ </div>
4387
+ </div>
4388
+ <!-- end nscID_63 -->
4389
+ </div>
4390
+ <!-- end newsletterSignUpAnimeContent -->
4391
+ <div id="newsletterSignUpPrivacyLink">
4392
+ [ <a href="">Privacy Policy</a> ]
4393
+ </div>
4394
+ <!-- end newsletterSignUpPrivacyLink -->
4395
+ <div id="newsletterSignUpPrivacyContent" style="display: none;">
4396
+ <p style="margin-bottom: 1.5em">[ <a class="closePrivacyContentLink" href="">Close Privacy Policy</a> ]</p>
4397
+ <p>
4398
+ Privacy Policy / Your California Privacy Rights<br />
4399
+ Revised and posted as of March 4, 2013
4400
+ </p>
4401
+ <p>
4402
+ &nbsp;
4403
+ </p>
4404
+ <p>
4405
+ Prime Publishing, LLC and Ginsburg Enterprises Incorporated (&quot;Company,&quot; &quot;we&quot; or &quot;us&quot;) reserves the right to revise this Privacy Policy at any time simply by posting such revision, so we encourage you to review it periodically. In order to track any changes to this Privacy Policy, we will include a historical reference at the top of this document.
4406
+ </p>
4407
+ <p>
4408
+ This Privacy Policy will tell you, among other things:
4409
+ </p>
4410
+ <p>
4411
+ Your California privacy rights.<br />
4412
+ How we collect information and what information we collect.<br />
4413
+ How we may use information.<br />
4414
+ How we may share information.<br />
4415
+ Your choices regarding the sharing of information.
4416
+ </p>
4417
+ <p>
4418
+ ACKNOWLEDGEMENT/YOUR AGREEMENT<br />
4419
+ Company websites are not intended for use by individuals under the age of 18 or those who are not legal residents of the United States. By using our website or submitting information to us, you consent to the Company&#39;s use and sharing of the information collected or submitted as described in this Privacy Policy. If you are not 18 years of age or older and a valid resident of the United States or you do not agree with the terms of this Privacy Policy, do not provide us with any information or use any of the products or services offered or provided on Company websites or through Company technology.
4420
+ </p>
4421
+ <p>
4422
+ YOUR CALIFORNIA PRIVACY RIGHTS<br />
4423
+ Beginning January 1, 2005 under California&#39;s &quot;Shine the Light&quot; law, California residents who provide personal information in obtaining products or services for personal, family or household use are entitled to either: (1) a list detailing the categories of information shared and the entities to which such information was provided; or (2) to be notified of a mechanism by which a consumer may opt-out of having their information shared with third parties. We have elected the second option. To opt-out of having your information shared with third parties please write to us.
4424
+ </p>
4425
+ <p>
4426
+ HOW DO WE COLLECT INFORMATION AND WHAT INFORMATION DO WE COLLECT?<br />
4427
+ We collect and combine personally identifiable information (&quot;PII&quot;) and non-personally identifiable information (&quot;Non-PII&quot;) through various sources, including those discussed below. For your reference, PII is data collected with an intention to specifically identify, contact or locate a person, including but not limited to name, address, telephone number, or e-mail address. Conversely, Non-PII is data that is not used to specifically identify, contact or locate an individual, including but not limited to zip code, gender, age, or IP address.
4428
+ </p>
4429
+ <p>
4430
+ Distribution Partners<br />
4431
+ Website operators that license our ad serving technology pass information to us so that we may serve advertisements to you. The information passed may include, but is not limited to, your IP address, e-mail address, name, mailing address, telephone number, date of birth, and gender.
4432
+ </p>
4433
+ <p>
4434
+ Offer Forms<br />
4435
+ We also collect information about you when you complete a survey or offer form on one of our websites or web pages. This information may include, but is not limited to: your e-mail address, name, mailing address, telephone number, date of birth, gender, and payment information; information about your background, interests, health, education, career goals, and shopping preferences; and any other personal information or unique preference information you provide to us or our advertisers.
4436
+ </p>
4437
+ <p>
4438
+ Website Registration Forms<br />
4439
+ We collect information about you when you register on one of our websites. This registration information may include, but is not limited to your:<br />
4440
+ e-mail address<br />
4441
+ full name<br />
4442
+ mailing address<br />
4443
+ telephone number<br />
4444
+ date of birth<br />
4445
+ gender
4446
+ </p>
4447
+ <p>
4448
+ Publisher Partners<br />
4449
+ When you complete a registration or offer form that is hosted by one of our website publisher partners on our behalf, the website publisher partner may submit all or a portion of the information that you submitted on the form to the Company. This information may include, but is not limited to: your IP address, e-mail address, name, mailing address, telephone number, date of birth, gender, and payment information; information about your background, interests, health, education, career goals, and shopping preferences; and any other information you provide to our website publisher partner.
4450
+ </p>
4451
+ <p>
4452
+ Marketing Partners<br />
4453
+ We may receive information about you, including but not limited to your IP address, e-mail address, first name, last name, mailing address, and telephone number, from third party marketing partners that provide us with consumer data to manage on their behalf.
4454
+ </p>
4455
+ <p>
4456
+ Automatic Information/Digital Identifiers<br />
4457
+ We may automatically receive and store certain types of information about you through the data sources listed above.
4458
+ </p>
4459
+ <p>
4460
+ You may be familiar with the term &quot;cookies,&quot; which are unique alphanumeric identifiers that store information on your computer. A cookie is placed on your computer when your web browser accesses our website. We use cookies for tracking transactions and the user characteristics explained in detail throughout this Privacy Policy. If you choose, there are utilities available for purchase from independent software providers to install on your computer as well as tools/preferences you can choose through most web browsers to make website visits anonymous. Of course, cookies let you have a more satisfying website experience, so we recommend that you leave them turned on.
4461
+ </p>
4462
+ <p>
4463
+ We also collect information through our web server applications. This information includes your Internet Protocol or &quot;IP&quot; address, date/time stamp, browser type, and referring URL.
4464
+ </p>
4465
+ <p>
4466
+ Additionally, we may use pixel tracking technology to track the completion of transactions with us or our advertisers, the source information for those transactions, and your IP address, date/time stamp, browser type, and referring URL.
4467
+ </p>
4468
+ <p>
4469
+ Government Forms<br />
4470
+ The Company may be required to create, collect, maintain, and submit certain information required by the government, such as IRS Forms W-9 and 1099. This information, which may include your taxpayer identification number, will not be used, shared, transferred, or sold for marketing purposes.
4471
+ </p>
4472
+ <p>
4473
+ HOW DO WE USE THIS INFORMATION?<br />
4474
+ We may use the collected PII and Non-PII for any legally permissible purpose in our sole discretion, including but not limited to those explained below.
4475
+ </p>
4476
+ <p>
4477
+ Ad Serving<br />
4478
+ We may serve advertisements to you based, in part, on your IP address, the demographic and geographic information you submitted to the Company during the website registration process, and other socio-economic information, psychographic information, Internet behavior (i.e., browsing, search, shopping, purchase, and ad response behavior), and lifestyle information about you that we obtain from affiliated entities and from third parties.
4479
+ </p>
4480
+ <p>
4481
+ We allow third-party companies to serve ads and/or collect certain anonymous information when you visit our Web site. These companies may use non-personally identifiable information (e.g., click stream information, browser type, time and date, subject of advertisements clicked or scrolled over) during your visits to this and other Web sites in order to provide advertisements about goods and services likely to be of greater interest to you. These companies typically use a cookie or third party web beacon to collect this information. To learn more about this behavioral advertising practice or to opt-out of this type of advertising, you can visit <a href="http://www.networkadvertising.org" target="_blank" title="NetworkAdvertising.org">www.networkadvertising.org</a>.
4482
+ </p>
4483
+ <p>
4484
+ Pre-select/Pre-fill Offers<br />
4485
+ Our website technology may pre-select certain offers for you to view based on the demographic and geographic information you submitted to the Company during the website registration process. Additionally, this technology may pre-fill some or all of the offers&#39; data fields with the information you submitted during the website registration process in order to prevent you from having to re-enter this information. We may not show all of the pre-filled data fields to you.
4486
+ </p>
4487
+ <p>
4488
+ Upsell<br />
4489
+ We utilize customized post transactional or &quot;upsell&quot; technology to help advertisers generate sales, while providing you with a series of great offers we think may be of interest to you. The way it works is simple: once you purchase a product or service from one of our reward advertisers, you will be offered additional products or services that we think may be of interest to you. If you elect to purchase products or services from an advertiser in the post transactional channel, we will pass the information that you provided during the initial transaction to the subsequent advertiser, including but not limited to your credit card information. This information pass is done to enhance and simplify your purchasing experience. Your information will only be passed to an advertiser in the post transactional channel after you have elected to purchase their product or service. By electing to purchase their product or service you consent to the passing of your data to the third party advertiser in question.<br />
4490
+ <br />
4491
+ Customer Service and Fulfillment<br />
4492
+ We may use your information to operate the website promotion, service your account and to fulfill rewards earned through Company websites. We may also use your information to verify your identity or claimed account status and, where we consider appropriate, investigate your compliance with the terms and conditions of the website promotion or any advertiser offer. We do retain customer service correspondence.
4493
+ </p>
4494
+ <p>
4495
+ Credit Card Preauthorization<br />
4496
+ By submitting your credit card information to us or to one of our advertisers, you are authorizing the Company or its agent to periodically verify that your credit card account is valid and has credit available by charging, and thereafter crediting, a small sum to the card.
4497
+ </p>
4498
+ <p>
4499
+ Marketing<br />
4500
+ We may use your information in our online (e.g., e-mail marketing) and offline (e.g., telemarketing, cell phone text messaging, skip tracing, and direct mail) marketing programs. If you would like to be removed from these programs please write to us.
4501
+ </p>
4502
+ <p>
4503
+ HOW DO WE SHARE INFORMATION?<br />
4504
+ We may share the collected PII and Non-PII for any legally permissible purpose in our sole discretion, including but not limited to those explained below.
4505
+ </p>
4506
+ <p>
4507
+ Within the Company<br />
4508
+ We may share information we collect with affiliated companies, including our parent company and other subsidiaries of our parent company, for use in their ad serving and marketing programs. This Privacy Policy does not apply to affiliated companies and their collection, use and sharing of information.
4509
+ </p>
4510
+ <p>
4511
+ Vendors<br />
4512
+ We may share your information with various third party vendors that are not part of the Company, including but not limited to vendors that provide us with technology to deploy commercial e-mail, vendors that sell the products or services for which you have qualified through one of our websites, and shipping companies that we utilize to ship products to you.
4513
+ </p>
4514
+ <p>
4515
+ Advertisers<br />
4516
+ When you participate in an offer by completing a form, we will transfer the information you submitted on the form to the applicable advertiser.
4517
+ </p>
4518
+ <p>
4519
+ When you answer &quot;yes&quot; or &quot;no&quot; to a marketing or survey question, some or all of the information that you submitted during the website registration process will be transferred to advertisers that we believe may be of interest to you without providing you with another opportunity to review the information.
4520
+ </p>
4521
+ <p>
4522
+ When you select &quot;yes&quot; next to an offer, we will transfer some or all of the information that you submitted during the website registration process to the applicable advertiser without providing you with another opportunity to review the information.
4523
+ </p>
4524
+ <p>
4525
+ Ad Serving Companies<br />
4526
+ We may use third party ad networks or ad serving companies to serve advertisements on our websites. We pass information about you to these companies so that they can deliver targeted advertisements that they believe will be of interest to you. The information passed to these companies may include, but is not limited to, your IP address, e-mail address, name, mailing address, telephone number, date of birth, gender, and any other information you provide to us. Web pages that are served by these companies will state that they are &quot;powered by&quot; or &quot;ads by&quot; the applicable company and will contain a link to that company&#39;s privacy policy.
4527
+ </p>
4528
+ <ul>
4529
+ <li>
4530
+ Google, as a third party vendor, uses cookies to serve ads on our site.
4531
+ </li>
4532
+ <li>
4533
+ Google&#39;s use of the DART cookie enables it to serve ads to our users based on their visit to our sites and other sites on the Internet.
4534
+ </li>
4535
+ <li>
4536
+ Users may opt out of the use of the DART cookie by visiting the <a href="http://www.google.com/privacy_ads.html">Google ad and content network privacy policy</a>.
4537
+ </li>
4538
+ </ul>
4539
+ <p>
4540
+ Marketing Partners<br />
4541
+ We may share, license or sell your information to third parties for various marketing purposes, including their online (e.g., e-mail marketing) and offline (e.g., telemarketing, cell phone text messaging, skip tracing, and direct mail) marketing programs. If you would like to be removed from these programs write to us.
4542
+ </p>
4543
+ <p>
4544
+ Data Enhancement/Appending/Validation<br />
4545
+ We may use third party service providers to enhance our database with additional elements, including but not limited to age ranges present in your household, whether you own or rent a home, the length of time you have lived at your residence, whether you are a mail order buyer or responder, household income, and gender. Further, we may use third party service providers to append telephone numbers to other data points we have in our database. We also may use third party service providers to validate the data we have in our database.
4546
+ </p>
4547
+ <p>
4548
+ Additionally, we may share, license or sell your information to third parties for use in their data validation, enhancement, information verification services, and, to the extent permitted by law, individual reference or look-up services.
4549
+ </p>
4550
+ <p>
4551
+ <strong>Third Party Cookies</strong><br />
4552
+ Notwithstanding anything else in this policy, we or a data provider we have engaged may place or recognize a unique cookie on your browser to enable you to receive customized ads or content.&nbsp;&nbsp; These cookies contain no personally identifiable information.&nbsp; The cookies may reflect de-identified demographic or other data linked to data you voluntarily have submitted to us, e.g., your email address, that we may share with a data provider solely in hashed, non-human readable form. To opt-out of these cookies, please go to <a href="http://www.aboutads.info/choices" target="_blank" title="AboutAds.info/choices">http://www.aboutads.info/choices</a>.
4553
+ </p>
4554
+ <p>
4555
+ Governmental Agencies or Other Companies<br />
4556
+ We may share your information with law enforcement officials or governmental agencies: (1) in response to their request; (2) when permitted or required by law; or (3) to establish our compliance with applicable laws, rules, regulations, or guidelines.
4557
+ </p>
4558
+ <p>
4559
+ We may store and share your information with third parties for suppression or opt-out purposes.
4560
+ </p>
4561
+ <p>
4562
+ We also may share your information with third parties when: (1) trying to protect against or prevent actual or potential fraud or unauthorized transactions; (2) investigating fraud that has already taken place; (3) enforcing or applying existing terms and conditions and/or other agreements; (4) protecting the rights, property or safety of our websites, our users or others; or (5) responding to subpoenas, court orders or legal process, or to establish or exercise our legal rights or defend against legal claims.
4563
+ </p>
4564
+ <p>
4565
+ In all cases, this information is not provided to these entities or persons for marketing purposes.
4566
+ </p>
4567
+ <p>
4568
+ Right to Transfer<br />
4569
+ Should the Company choose to sell or transfer business assets, it is possible that the information we possess may be transferred as part of that transaction. The Company may decide to retain a copy of the information post sale or transfer.
4570
+ </p>
4571
+ <p>
4572
+ COMPANY CUSTOMER CHOICES
4573
+ </p>
4574
+ <p>
4575
+ Marketing Communications and Unsubscribe Information<br />
4576
+ By completing and submitting a Company registration form, you are consenting to receive marketing communications from the Company and its third party marketing partners. If, after you have shared your information with the Company, you decide that you do not want to receive marketing communications or newsletters from the Company and its third party marketing partners, you can discontinue the communications by <a href="http://www.mrfood.com/section/subctr">clicking here</a> and filling out our form. If you have registered or submitted information under more than one e-mail account, you must submit separate unsubscribe requests for each account.
4577
+ </p>
4578
+ <p>
4579
+ Request for More Information<br />
4580
+ As it relates to marketing communications or any other questions you might have about our Privacy Policy, please write to us at Prime Publishing, LLC, 3400 Dundee Road, Suite 220, Northbrook, IL&nbsp; 60062.
4581
+ </p>
4582
+ <p>
4583
+ WHAT HAPPENS IF I HIT A LINK TO ANOTHER SITE FROM A COMPANY WEBSITE?<br />
4584
+ Our websites may offer links to other websites. Other websites have their own terms of use and privacy and security policies. If you choose to visit one of these sites, you should review the policies that govern that particular site.
4585
+ </p>
4586
+ <p>
4587
+ APPLICATION OF THIS PRIVACY POLICY<br />
4588
+ This Privacy Policy applies to all information collected by or submitted to the Company. Other affiliated entities of the Company may obtain information independently from transactions and experiences with you or from other sources. This Privacy Policy does not pertain to that information.
4589
+ </p>
4590
+ <p>
4591
+ WHAT IS THE POLICY WITH RESPECT TO COMMUNICATING WITH CHILDREN?<br />
4592
+ We recognize the unique privacy concerns regarding children. We are committed to carefully protecting privacy where children are involved no matter the point of contact. In particular, our intention is to fully comply with the Children&#39;s Online Privacy Protection Act (&quot;COPPA&quot;). Per COPPA guidelines, we do not knowingly collect PII from children under the age of 13. If a parent or guardian is made aware that a child under the age of 13 has provided us with PII through any point of contact, click here to contact us and we will delete the information about the child referenced from our files.
4593
+ </p>
4594
+ <p>
4595
+ SECURITY<br />
4596
+ There is no such thing as complete security on the Internet or otherwise. The Company uses various security techniques on our websites to help protect against the loss, misuse or modification of information we&#39;ve collected from you. When you access your personal information or transmit information to us, that information is stored on servers that we have taken steps to protect from unauthorized access or intrusion. While we strive to protect your information, the Company cannot ensure or warrant the security of any information you transmit to us. You acknowledge and assume this risk when communicating with the Company, its partners and affiliates.
4597
+ </p>
4598
+ <p>
4599
+ LIMITATION OF LIABILITY<br />
4600
+ YOU UNDERSTAND AND AGREE THAT ANY DISPUTE OVER PRIVACY IS SUBJECT TO THE TERMS AND CONDITIONS OF THIS PRIVACY POLICY, AS WELL AS THE TERMS AND CONDITIONS OF THIS WEBSITE (INCLUDING LIMITATIONS ON DAMAGES). YOU AGREE THAT THE COMPANY&#39;S LIABILITY FOR ANY BREACH OF THIS PRIVACY POLICY SHALL BE LIMITED TO THE VALUE OF THE TRANSACTIONS OR SERVICES PROVIDED TO YOU BY THE COMPANY TO THE EXTENT SUCH CLAIM IS NOT OTHERWISE BARRED BY OUR TERMS AND CONDITIONS.
4601
+ </p>
4602
+ <p>
4603
+ &nbsp;
4604
+ </p>
4605
+ <p style="margin-top: 1.5em">[ <a class="closePrivacyContentLink" href="">Close Privacy Policy</a> ]</p>
4606
+ </div>
4607
+ <!-- end newsletterSignUpPrivacyContent -->
4608
+ </div>
4609
+ <!-- end newsletterSignUpDivAnime -->
4610
+ <!-- END NL signup div -->
4611
+ <!-- START Vibrant code -->
4612
+ <!-- start Vibrant Media IntelliTXT script section -->
4613
+ <script type="text/javascript" src="http://mrfood.us.intellitxt.com/intellitxt/front.asp?ipid=21620"></script>
4614
+ <!-- end Vibrant Media IntelliTXT script section -->
4615
+ <!-- END Vibrant code -->
4616
+ <!-- START Google Remarketing code -->
4617
+ <!-- Google Code for Remarketing tag -->
4618
+ <!-- Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. For instructions on adding this tag and more information on the above requirements, read the setup guide: google.com/ads/remarketingsetup -->
4619
+ <script type="text/javascript">
4620
+ /* <![CDATA[ */
4621
+ var google_conversion_id = 997384082;
4622
+ var google_conversion_label = "-P_VCKbV8QQQkr_L2wM";
4623
+ var google_custom_params = window.google_tag_params;
4624
+ var google_remarketing_only = true;
4625
+ /* ]]> */
4626
+ </script>
4627
+ <script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js"></script>
4628
+ <noscript>
4629
+ <div style="display:inline;">
4630
+ <img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/997384082/?value=0&amp;label=-P_VCKbV8QQQkr_L2wM&amp;guid=ON&amp;script=0"/>
4631
+ </div>
4632
+ </noscript>
4633
+ <!-- END Google Remarketing code -->
4634
+ <!-- START datonics.com -->
4635
+ <script type="text/javascript" src="http://ads.pro-market.net/ads/scripts/site-132970.js"></script>
4636
+ <!-- END datonics.com -->
4637
+ <!-- START swoop -->
4638
+ <script type="text/javascript" id="spxw_script" src="http://ardrone.swoop.com/js/spxw.js" data-domain="SW-57430661-4" data-serverbase="http://ardrone.swoop.com/"></script>
4639
+ <!-- END swoop -->
4640
+ <!--<div id="videoTroubleshootDiv" style="margin: 60px 0 0 0; padding: 10px; font-size: .7em;"></div>-->
4641
+ </body>
4642
+ </html>