WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 6.1.1.0

Version Description

  • JavaScript is now hosted on Amazon's CDN to make everything blazing fast!
  • Removed Strands, FAQPal, Tipd, Sphinn, Twittley (services have shut down)
  • Removed Technorati, Ning (can no longer share to these services)
Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 6.1.1.0
Comparing to
See all releases

Code changes from version 6.0.0.3 to 6.1.1.0

css/admin-style.css CHANGED
@@ -80,99 +80,436 @@ img.del-x{cursor:pointer;margin-top:7px;}
80
  /* End Individual Section Status Messages */
81
  /*------------------------------------------------------------------------------------------*/
82
  /* Bookmarking Services Icons */
83
- #shrsb-networks li{background-image:url('../images/shr-sprite.png');background-repeat:no-repeat;cursor:move;float:left;height:45px;font-size:10px;margin:12px 2px !important;text-align:center;width:60px;}
84
  #shrsb-networks li input{margin-top:33px;}
85
- li.shr-newsvine{background-position:left top;}
86
- li.shr-linkedin{background-position:-70px top;}
87
- li.shr-googlebookmarks{background-position:-140px top;}
88
- li.shr-googlereader{background-position:-210px top;}
89
- li.shr-scriptstyle{background-position:-280px top;}
90
- li.shr-mail{background-position:-350px top;}
91
- li.shr-comfeed{background-position:-420px top;}
92
- li.shr-twitter{background-position:-490px top;}
93
- li.shr-technorati{background-position:-560px top;}
94
- li.shr-stumbleupon{background-position:-630px top;}
95
- li.shr-reddit{background-position:-700px top;}
96
- li.shr-myspace{background-position:-770px top;}
97
- li.shr-mixx{background-position:-840px top;}
98
- li.shr-diigo{background-position:-910px top;}
99
- li.shr-digg{background-position:-980px top;}
100
- li.shr-designfloat{background-position:-1050px top;}
101
- li.shr-yahoobuzz{background-position:-1120px top;}
102
- li.shr-delicious{background-position:-1190px top;}
103
- li.shr-blinklist{background-position:-1260px top;}
104
- li.shr-facebook{background-position:-1330px top;}
105
- li.shr-misterwong{background-position:-1400px top;}
106
- li.shr-izeby{background-position:-1470px top;}
107
- li.shr-twittley{background-position:-1540px top;}
108
- li.shr-tipd{background-position:-1610px top;}
109
- li.shr-pfbuzz{background-position:-1680px top;}
110
- li.shr-friendfeed{background-position:-1750px top;}
111
- li.shr-blogmarks{background-position:-1820px top;}
112
- li.shr-fwisp{background-position:-1890px top;}
113
- li.shr-yahoomail{background-position:-1960px top;}
114
- li.shr-bobrdobr{background-position:-2030px top;}
115
- li.shr-memoryru{background-position:-2100px top;}
116
- li.shr-100zakladok{background-position:-2170px top;}
117
- li.shr-yandex{background-position:-2240px top;}
118
- li.shr-moemesto{background-position:-2310px top;}
119
- li.shr-marrows{background-position:-2380px top;}
120
- li.shr-identica{background-position:-2450px top;}
121
- li.shr-hackernews{background-position:-2520px top;}
122
- li.shr-ning{background-position:-2590px top;}
123
- li.shr-designbump{background-position:-2660px top;}
124
- li.shr-printfriendly{background-position:-2730px top;}
125
- li.shr-fleck{background-position:-2800px top !important;}
126
- li.shr-netvibes{background-position:-2870px top !important;}
127
- li.shr-netvouz{background-position:-2940px top !important;}
128
- li.shr-nujij{background-position:-3010px top !important;}
129
- li.shr-globalgrind{background-position:-3080px top !important;}
130
- li.shr-wikio{background-position:-3150px top !important;}
131
- li.shr-xerpi{background-position:-3220px top !important;}
132
- li.shr-sphinn{background-position:-3290px top !important;}
133
- li.shr-hotmail{background-position:-3360px top !important;}
134
- li.shr-posterous{background-position:-3430px top !important;}
135
- li.shr-techmeme{background-position:-3500px top !important;}
136
- li.shr-ekudos{background-position:-3570px top !important;}
137
- li.shr-pingfm{background-position:-3640px top !important;}
138
- li.shr-tomuse{background-position:-3710px top !important;}
139
- li.shr-webblend{background-position:-3780px top !important;}
140
- li.shr-wykop{background-position:-3850px top !important;}
141
- li.shr-blogengage{background-position:-3920px top !important;}
142
- li.shr-hyves{background-position:-3990px top !important;}
143
- li.shr-pusha{background-position:-4060px top !important;}
144
- li.shr-hatena{background-position:-4130px top !important;}
145
- li.shr-mylinkvault{background-position:-4200px top !important;}
146
- li.shr-slashdot{background-position:-4270px top !important;}
147
- li.shr-squidoo{background-position:-4340px top !important;}
148
- li.shr-faqpal{background-position:-4480px top !important;}
149
- li.shr-evernote{background-position:-4550px top !important;}
150
- li.shr-meneame{background-position:-4620px top !important;}
151
- li.shr-bitacoras{background-position:-4690px top !important;}
152
- li.shr-jumptags{background-position:-4760px top !important;}
153
- li.shr-bebo{background-position:-4830px top !important;}
154
- li.shr-n4g{background-position:-4900px top !important;}
155
- li.shr-strands{background-position:-4970px top !important;}
156
- li.shr-orkut{background-position:-5040px top !important;}
157
- li.shr-tumblr{background-position:-5110px top !important;}
158
- li.shr-stumpedia{background-position:-5180px top !important;}
159
- li.shr-current{background-position:-5250px top !important;}
160
- li.shr-blogger{background-position:-5320px top !important;}
161
- li.shr-plurk{background-position:-5390px top !important;}
162
- li.shr-virb{background-position:-5460px top !important;}
163
- li.shr-dzone{background-position:-5530px top !important;}
164
- li.shr-kaevur{background-position:-5600px top !important;}
165
- li.shr-box{background-position:-5670px top !important;}
166
- li.shr-boxnet{background-position:-5670px top !important;}
167
- li.shr-oknotizie{background-position:-5740px top !important;}
168
- li.shr-bonzobox{background-position:-5810px top !important;}
169
- li.shr-plaxo{background-position:-5880px top !important;}
170
- li.shr-springpad{background-position:-5950px top !important;}
171
- li.shr-zabox{background-position:-6020px top !important;}
172
- li.shr-viadeo{background-position:-6090px top !important;}
173
- li.shr-googlebuzz{background-position:-6160px top !important;}
174
- li.shr-gmail{background-position:-6230px top !important;}
175
- li.shr-buzzster{background-position:-6300px top !important;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  ul.multi-selection{list-style:none;overflow:hidden;position:absolute;top:6px;right:0;}
177
  ul.multi-selection li{display:block;float:left;clear:none;margin:0 !important;}
178
  ul.multi-selection li.label-faker{margin-right:10px !important;}
80
  /* End Individual Section Status Messages */
81
  /*------------------------------------------------------------------------------------------*/
82
  /* Bookmarking Services Icons */
83
+ #shrsb-networks li{background-image:url('../spritegen_default/sprite.png');background-repeat:no-repeat;cursor:move;float:left;height:40px;font-size:10px;margin:12px 2px !important;text-align:center;width:60px;}
84
  #shrsb-networks li input{margin-top:33px;}
85
+
86
+ /* Sprite CSS */
87
+ li.shr-1
88
+ {
89
+ background-position:-60px top!important;
90
+ }
91
+
92
+ li.shr-2
93
+ {
94
+ background-position:-120px top!important;
95
+ }
96
+
97
+ li.shr-3
98
+ {
99
+ background-position:-180px top!important;
100
+ }
101
+
102
+ li.shr-5
103
+ {
104
+ background-position:-300px top!important;
105
+ }
106
+
107
+ li.shr-6
108
+ {
109
+ background-position:-360px top!important;
110
+ }
111
+
112
+ li.shr-7
113
+ {
114
+ background-position:-420px top!important;
115
+ }
116
+
117
+ li.shr-10
118
+ {
119
+ background-position:-600px top!important;
120
+ }
121
+
122
+ li.shr-14
123
+ {
124
+ background-position:-840px top!important;
125
+ }
126
+
127
+ li.shr-20
128
+ {
129
+ background-position:-1200px top!important;
130
+ }
131
+
132
+ li.shr-21
133
+ {
134
+ background-position:-1260px top!important;
135
+ }
136
+
137
+ li.shr-24
138
+ {
139
+ background-position:-1440px top!important;
140
+ }
141
+
142
+ li.shr-27
143
+ {
144
+ background-position:-1620px top!important;
145
+ }
146
+
147
+ li.shr-33
148
+ {
149
+ background-position:-1980px top!important;
150
+ }
151
+
152
+ li.shr-38
153
+ {
154
+ background-position:-2280px top!important;
155
+ }
156
+
157
+ li.shr-39
158
+ {
159
+ background-position:-2340px top!important;
160
+ }
161
+
162
+ li.shr-40
163
+ {
164
+ background-position:-2400px top!important;
165
+ }
166
+
167
+ li.shr-41
168
+ {
169
+ background-position:-2460px top!important;
170
+ }
171
+
172
+ li.shr-43
173
+ {
174
+ background-position:-2580px top!important;
175
+ }
176
+
177
+ li.shr-44
178
+ {
179
+ background-position:-2640px top!important;
180
+ }
181
+
182
+ li.shr-45
183
+ {
184
+ background-position:-2700px top!important;
185
+ }
186
+
187
+ li.shr-46
188
+ {
189
+ background-position:-2760px top!important;
190
+ }
191
+
192
+ li.shr-48
193
+ {
194
+ background-position:-2880px top!important;
195
+ }
196
+
197
+ li.shr-52
198
+ {
199
+ background-position:-3120px top!important;
200
+ }
201
+
202
+ li.shr-53
203
+ {
204
+ background-position:-3180px top!important;
205
+ }
206
+
207
+ li.shr-54
208
+ {
209
+ background-position:-3240px top!important;
210
+ }
211
+
212
+ li.shr-59
213
+ {
214
+ background-position:-3540px top!important;
215
+ }
216
+
217
+ li.shr-61
218
+ {
219
+ background-position:-3660px top!important;
220
+ }
221
+
222
+ li.shr-74
223
+ {
224
+ background-position:-4440px top!important;
225
+ }
226
+
227
+ li.shr-78
228
+ {
229
+ background-position:-4680px top!important;
230
+ }
231
+
232
+ li.shr-80
233
+ {
234
+ background-position:-4800px top!important;
235
+ }
236
+
237
+ li.shr-88
238
+ {
239
+ background-position:-5280px top!important;
240
+ }
241
+
242
+ li.shr-89
243
+ {
244
+ background-position:-5340px top!important;
245
+ }
246
+
247
+ li.shr-92
248
+ {
249
+ background-position:-5520px top!important;
250
+ }
251
+
252
+ li.shr-98
253
+ {
254
+ background-position:-5880px top!important;
255
+ }
256
+
257
+ li.shr-100
258
+ {
259
+ background-position:-6000px top!important;
260
+ }
261
+
262
+ li.shr-102
263
+ {
264
+ background-position:-6120px top!important;
265
+ }
266
+
267
+ li.shr-105
268
+ {
269
+ background-position:-6300px top!important;
270
+ }
271
+
272
+ li.shr-106
273
+ {
274
+ background-position:-6360px top!important;
275
+ }
276
+
277
+ li.shr-188
278
+ {
279
+ background-position:-11280px top!important;
280
+ }
281
+
282
+ li.shr-190
283
+ {
284
+ background-position:-11400px top!important;
285
+ }
286
+
287
+ li.shr-191
288
+ {
289
+ background-position:-11460px top!important;
290
+ }
291
+
292
+ li.shr-192
293
+ {
294
+ background-position:-11520px top!important;
295
+ }
296
+
297
+ li.shr-195
298
+ {
299
+ background-position:-11700px top!important;
300
+ }
301
+
302
+ li.shr-196
303
+ {
304
+ background-position:-11760px top!important;
305
+ }
306
+
307
+ li.shr-201
308
+ {
309
+ background-position:-12060px top!important;
310
+ }
311
+
312
+ li.shr-202
313
+ {
314
+ background-position:-12120px top!important;
315
+ }
316
+
317
+ li.shr-204
318
+ {
319
+ background-position:-12240px top!important;
320
+ }
321
+
322
+ li.shr-205
323
+ {
324
+ background-position:-12300px top!important;
325
+ }
326
+
327
+ li.shr-210
328
+ {
329
+ background-position:-12600px top!important;
330
+ }
331
+
332
+ li.shr-218
333
+ {
334
+ background-position:-13080px top!important;
335
+ }
336
+
337
+ li.shr-219
338
+ {
339
+ background-position:-13140px top!important;
340
+ }
341
+
342
+ li.shr-236
343
+ {
344
+ background-position:-14160px top!important;
345
+ }
346
+
347
+ li.shr-238
348
+ {
349
+ background-position:-14280px top!important;
350
+ }
351
+
352
+ li.shr-240
353
+ {
354
+ background-position:-14400px top!important;
355
+ }
356
+
357
+ li.shr-243
358
+ {
359
+ background-position:-14580px top!important;
360
+ }
361
+
362
+ li.shr-246
363
+ {
364
+ background-position:-14760px top!important;
365
+ }
366
+
367
+ li.shr-247
368
+ {
369
+ background-position:-14820px top!important;
370
+ }
371
+
372
+ li.shr-263
373
+ {
374
+ background-position:-15780px top!important;
375
+ }
376
+
377
+ li.shr-264
378
+ {
379
+ background-position:-15840px top!important;
380
+ }
381
+
382
+ li.shr-265
383
+ {
384
+ background-position:-15900px top!important;
385
+ }
386
+
387
+ li.shr-266
388
+ {
389
+ background-position:-15960px top!important;
390
+ }
391
+
392
+ li.shr-267
393
+ {
394
+ background-position:-16020px top!important;
395
+ }
396
+
397
+ li.shr-268
398
+ {
399
+ background-position:-16080px top!important;
400
+ }
401
+
402
+ li.shr-269
403
+ {
404
+ background-position:-16140px top!important;
405
+ }
406
+
407
+ li.shr-277
408
+ {
409
+ background-position:-16620px top!important;
410
+ }
411
+
412
+ li.shr-278
413
+ {
414
+ background-position:-16680px top!important;
415
+ }
416
+
417
+ li.shr-279
418
+ {
419
+ background-position:-16740px top!important;
420
+ }
421
+
422
+ li.shr-280
423
+ {
424
+ background-position:-16800px top!important;
425
+ }
426
+
427
+ li.shr-281
428
+ {
429
+ background-position:-16860px top!important;
430
+ }
431
+
432
+ li.shr-282
433
+ {
434
+ background-position:-16920px top!important;
435
+ }
436
+
437
+ li.shr-283
438
+ {
439
+ background-position:-16980px top!important;
440
+ }
441
+
442
+ li.shr-284
443
+ {
444
+ background-position:-17040px top!important;
445
+ }
446
+
447
+ li.shr-285
448
+ {
449
+ background-position:-17100px top!important;
450
+ }
451
+
452
+ li.shr-286
453
+ {
454
+ background-position:-17160px top!important;
455
+ }
456
+
457
+ li.shr-287
458
+ {
459
+ background-position:-17220px top!important;
460
+ }
461
+
462
+ li.shr-288
463
+ {
464
+ background-position:-17280px top!important;
465
+ }
466
+
467
+ li.shr-289
468
+ {
469
+ background-position:-17340px top!important;
470
+ }
471
+
472
+ li.shr-290
473
+ {
474
+ background-position:-17400px top!important;
475
+ }
476
+
477
+ li.shr-291
478
+ {
479
+ background-position:-17460px top!important;
480
+ }
481
+
482
+ li.shr-292
483
+ {
484
+ background-position:-17520px top!important;
485
+ }
486
+
487
+ li.shr-293
488
+ {
489
+ background-position:-17580px top!important;
490
+ }
491
+
492
+ li.shr-294
493
+ {
494
+ background-position:-17640px top!important;
495
+ }
496
+
497
+ li.shr-304
498
+ {
499
+ background-position:-18240px top!important;
500
+ }
501
+
502
+ li.shr-309
503
+ {
504
+ background-position:-18540px top!important;
505
+ }
506
+
507
+ li.shr-313
508
+ {
509
+ background-position:-18780px top!important;
510
+ }
511
+ /* End Sprite CSS */
512
+
513
  ul.multi-selection{list-style:none;overflow:hidden;position:absolute;top:6px;right:0;}
514
  ul.multi-selection li{display:block;float:left;clear:none;margin:0 !important;}
515
  ul.multi-selection li.label-faker{margin-right:10px !important;}
css/style.dev.css CHANGED
@@ -27,8 +27,6 @@ li.shr-scriptstyle{background-position:-280px bottom !important}
27
  li.shr-scriptstyle:hover{background-position:-280px top !important}
28
  li.shr-mail{background-position:-350px bottom !important}
29
  li.shr-mail:hover{background-position:-350px top !important}
30
- li.shr-comfeed{background-position:-420px bottom !important}
31
- li.shr-comfeed:hover{background-position:-420px top !important}
32
  li.shr-twitter{background-position:-490px bottom !important}
33
  li.shr-twitter:hover{background-position:-490px top !important}
34
  li.shr-technorati{background-position:-560px bottom !important}
27
  li.shr-scriptstyle:hover{background-position:-280px top !important}
28
  li.shr-mail{background-position:-350px bottom !important}
29
  li.shr-mail:hover{background-position:-350px top !important}
 
 
30
  li.shr-twitter{background-position:-490px bottom !important}
31
  li.shr-twitter:hover{background-position:-490px top !important}
32
  li.shr-technorati{background-position:-560px bottom !important}
images/classicbookmark_16x16.png CHANGED
Binary file
images/twitter-16x16.png CHANGED
Binary file
includes/bookmarks-data.php CHANGED
@@ -52,21 +52,11 @@ $shrsb_bookmarks_data=array(
52
  'check'=>sprintf($checkthis_text,'Reddit'),
53
  'share'=>__('Share this on ', 'shrsb').'Reddit'
54
  ),
55
- 'shr-twittley'=>array(
56
- 'id'=>277,
57
- 'check'=>sprintf($checkthis_text,'Twittley'),
58
- 'share'=>__('Submit this to ', 'shrsb').'Twittley'
59
- ),
60
  'shr-stumbleupon'=>array(
61
  'id'=>38,
62
  'check'=>sprintf($checkthis_text,'Stumbleupon'),
63
  'share'=>__('Stumble upon something good? Share it on StumbleUpon', 'shrsb')
64
  ),
65
- 'shr-technorati'=>array(
66
- 'id'=>10,
67
- 'check'=>sprintf($checkthis_text,'Technorati'),
68
- 'share'=>__('Share this on ', 'shrsb').'Technorati'
69
- ),
70
  'shr-myspace'=>array(
71
  'id'=>39,
72
  'check'=>sprintf($checkthis_text,'MySpace'),
@@ -97,12 +87,6 @@ $shrsb_bookmarks_data=array(
97
  'check'=>sprintf($checkthis_text,'ToMuse'),
98
  'share'=>__('Suggest this article to ', 'shrsb').'ToMuse'
99
  ),
100
- 'shr-comfeed'=>array(
101
- 'id' => NULL,
102
- 'check'=>sprintf($checkthis_text, __("a 'Subscribe to Comments' link", 'shrsb')),
103
- 'share'=>__('Subscribe to the comments for this post?', 'shrsb'),
104
- 'baseUrl'=>'PERMALINK',
105
- ),
106
  'shr-linkedin'=>array(
107
  'id'=>88,
108
  'check'=>sprintf($checkthis_text,'LinkedIn'),
@@ -128,11 +112,6 @@ $shrsb_bookmarks_data=array(
128
  'check'=>sprintf($checkthis_text,'Izeby'),
129
  'share'=>__('Add this to ', 'shrsb').'Izeby'
130
  ),
131
- 'shr-tipd'=>array(
132
- 'id'=>188,
133
- 'check'=>sprintf($checkthis_text,'Tipd'),
134
- 'share'=>__('Share this on ', 'shrsb').'Tipd'
135
- ),
136
  'shr-pfbuzz'=>array(
137
  'id'=>279,
138
  'check'=>sprintf($checkthis_text,'PFBuzz'),
@@ -193,11 +172,6 @@ $shrsb_bookmarks_data=array(
193
  'check'=>sprintf($checkthis_text,'Design Bump'),
194
  'share'=>__('Bump this on ', 'shrsb').'DesignBump'
195
  ),
196
- 'shr-ning'=>array(
197
- 'id'=>264,
198
- 'check'=>sprintf($checkthis_text,'Ning'),
199
- 'share'=>__('Add this to ', 'shrsb').'Ning'
200
- ),
201
  'shr-identica'=>array(
202
  'id'=>205,
203
  'check'=>sprintf($checkthis_text,'Identica'),
@@ -213,11 +187,6 @@ $shrsb_bookmarks_data=array(
213
  'check'=>sprintf($checkthis_text,'TechMeme'),
214
  'share'=>__('Tip this to ', 'shrsb').'TechMeme'
215
  ),
216
- 'shr-sphinn'=>array(
217
- 'id'=>100,
218
- 'check'=>sprintf($checkthis_text,'Sphinn'),
219
- 'share'=>__('Sphinn this on ', 'shrsb').'Sphinn'
220
- ),
221
  'shr-posterous'=>array(
222
  'id'=>210,
223
  'check'=>sprintf($checkthis_text,'Posterous'),
@@ -293,11 +262,6 @@ $shrsb_bookmarks_data=array(
293
  'check'=>sprintf($checkthis_text,'Squidoo'),
294
  'share'=>__('Add to a lense on ', 'shrsb').'Squidoo'
295
  ),
296
- 'shr-faqpal'=>array(
297
- 'id'=>287,
298
- 'check'=>sprintf($checkthis_text,'FAQpal'),
299
- 'share'=>__('Submit this to ', 'shrsb').'FAQpal'
300
- ),
301
  'shr-evernote'=>array(
302
  'id'=>191,
303
  'check'=>sprintf($checkthis_text,'Evernote'),
@@ -328,11 +292,6 @@ $shrsb_bookmarks_data=array(
328
  'check'=>sprintf($checkthis_text,'N4G'),
329
  'share'=>__('Submit tip to ', 'shrsb').'N4G'
330
  ),
331
- 'shr-strands'=>array(
332
- 'id'=>190,
333
- 'check'=>sprintf($checkthis_text,'Strands'),
334
- 'share'=>__('Submit this to ', 'shrsb').'Strands'
335
- ),
336
  'shr-orkut'=>array(
337
  'id'=>247,
338
  'check'=>sprintf($checkthis_text,'Orkut'),
52
  'check'=>sprintf($checkthis_text,'Reddit'),
53
  'share'=>__('Share this on ', 'shrsb').'Reddit'
54
  ),
 
 
 
 
 
55
  'shr-stumbleupon'=>array(
56
  'id'=>38,
57
  'check'=>sprintf($checkthis_text,'Stumbleupon'),
58
  'share'=>__('Stumble upon something good? Share it on StumbleUpon', 'shrsb')
59
  ),
 
 
 
 
 
60
  'shr-myspace'=>array(
61
  'id'=>39,
62
  'check'=>sprintf($checkthis_text,'MySpace'),
87
  'check'=>sprintf($checkthis_text,'ToMuse'),
88
  'share'=>__('Suggest this article to ', 'shrsb').'ToMuse'
89
  ),
 
 
 
 
 
 
90
  'shr-linkedin'=>array(
91
  'id'=>88,
92
  'check'=>sprintf($checkthis_text,'LinkedIn'),
112
  'check'=>sprintf($checkthis_text,'Izeby'),
113
  'share'=>__('Add this to ', 'shrsb').'Izeby'
114
  ),
 
 
 
 
 
115
  'shr-pfbuzz'=>array(
116
  'id'=>279,
117
  'check'=>sprintf($checkthis_text,'PFBuzz'),
172
  'check'=>sprintf($checkthis_text,'Design Bump'),
173
  'share'=>__('Bump this on ', 'shrsb').'DesignBump'
174
  ),
 
 
 
 
 
175
  'shr-identica'=>array(
176
  'id'=>205,
177
  'check'=>sprintf($checkthis_text,'Identica'),
187
  'check'=>sprintf($checkthis_text,'TechMeme'),
188
  'share'=>__('Tip this to ', 'shrsb').'TechMeme'
189
  ),
 
 
 
 
 
190
  'shr-posterous'=>array(
191
  'id'=>210,
192
  'check'=>sprintf($checkthis_text,'Posterous'),
262
  'check'=>sprintf($checkthis_text,'Squidoo'),
263
  'share'=>__('Add to a lense on ', 'shrsb').'Squidoo'
264
  ),
 
 
 
 
 
265
  'shr-evernote'=>array(
266
  'id'=>191,
267
  'check'=>sprintf($checkthis_text,'Evernote'),
292
  'check'=>sprintf($checkthis_text,'N4G'),
293
  'share'=>__('Submit tip to ', 'shrsb').'N4G'
294
  ),
 
 
 
 
 
295
  'shr-orkut'=>array(
296
  'id'=>247,
297
  'check'=>sprintf($checkthis_text,'Orkut'),
includes/helper-functions.php CHANGED
@@ -78,12 +78,12 @@ function shrsb_dump_settings(){
78
  $data = array(
79
  "siteurl" => get_option('siteurl'),
80
  "version_database" => get_option('SHRSBvNum'),
81
- "version_plugin" => SHRSB_vNum,
82
  "apikey" => get_option('SHRSB_apikey'),
83
  "custom_sprite" => get_option('SHRSB_CustomSprite'),
84
- "default_spritegen" => get_option('SHRSB_DefaultSprite'),
85
  "sb_plugopts" => get_option('SexyBookmarks'),
86
- "tb_plugopts" => get_option('ShareaholicTopbar')
87
  );
88
 
89
  if($shrsb_debug['dump_type'])
78
  $data = array(
79
  "siteurl" => get_option('siteurl'),
80
  "version_database" => get_option('SHRSBvNum'),
81
+ "version_plugin" => SHRSB_vNum,
82
  "apikey" => get_option('SHRSB_apikey'),
83
  "custom_sprite" => get_option('SHRSB_CustomSprite'),
84
+ "default_spritegen" => get_option('SHRSB_DefaultSprite'),
85
  "sb_plugopts" => get_option('SexyBookmarks'),
86
+ "tb_plugopts" => get_option('ShareaholicTopbar')
87
  );
88
 
89
  if($shrsb_debug['dump_type'])
includes/html-helpers.php CHANGED
@@ -85,9 +85,7 @@ function bookmark_list_item($name, $opts=array()) {
85
  'ctype='
86
  ));
87
  }
88
- else if($name == 'shr-comfeed') {// Otherwise, use default baseUrl format
89
- $url=$shrsb_bookmarks_data[$name]['baseUrl'];
90
- }
91
  else {
92
  $url = shrsb_correct_protocol($shrsb_plugopts['shrbase']).'/api/share/?'.implode('&',array(
93
  'title=TITLE',
85
  'ctype='
86
  ));
87
  }
88
+
 
 
89
  else {
90
  $url = shrsb_correct_protocol($shrsb_plugopts['shrbase']).'/api/share/?'.implode('&',array(
91
  'title=TITLE',
includes/index.php CHANGED
@@ -1,4 +1,4 @@
1
  <?php
2
  //Source of plugin
3
- header("Location: http://www.shareaholic.com");
4
  ?>
1
  <?php
2
  //Source of plugin
3
+ header("Location: https://shareaholic.com");
4
  ?>
includes/public.php CHANGED
@@ -59,7 +59,6 @@ $shrsb_bgimg_map = array(
59
  * array(
60
  * 'link' => ..,
61
  * 'title' => ..,
62
- * 'feed_permalink' => ..,
63
  * 'mail_subject' => ..
64
  * )
65
  */
@@ -90,7 +89,6 @@ function shrsb_post_info($post) {
90
  shrsb_log('Manual: Link Generation '.$link);
91
  $r['link'] = $link;
92
  $r['title'] = get_bloginfo('name') . wp_title('-', false);
93
- $r['feed_permalink'] = strtolower('http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']);
94
  $r['mail_subject'] = urlencode(get_bloginfo('name') . wp_title('-', false));
95
 
96
  }
@@ -99,7 +97,6 @@ function shrsb_post_info($post) {
99
  $r['link'] = trim(get_permalink($post->ID));
100
  shrsb_log("Loop mode Link Generation ".$r['link']);
101
  $r['title'] = $post->post_title;
102
- $r['feed_permalink'] = strtolower($r['link']);
103
  $r['mail_subject'] = urlencode($post->post_title);
104
  }
105
 
@@ -139,9 +136,9 @@ function shrsb_get_cb_config($post_id) {
139
  global $shrsb_cb;
140
 
141
  $r = shrsb_get_params($post_id);
 
142
  $params = array(
143
  'link' => $r['link'],
144
- 'title' => $r['title'],
145
  'apikey' => $r['apikey'] ? $r['apikey'] : '8afa39428933be41f8afdb8ea21a495c',
146
  'size' => $shrsb_cb['size']
147
  );
@@ -195,17 +192,6 @@ function shrsb_get_publisher_config($post_id) {
195
  'shrlink' => $r['shrlink'],
196
  );
197
 
198
- if ($r['include_comfeed']) {
199
- // Shareaholic doesn't support comment rss feeds, so we add it as a custom link.
200
- $params['custom_link'] = array(
201
- $r['comfeed_position'] => array(
202
- 'li_class' => 'custom-comfeed',
203
- 'link' => $r['feed_link'],
204
- 'tooltip' => __('Subscribe to the comments for this post?', 'shrsb'),
205
- 'style' => 'background-image:url('.SHRSB_PLUGPATH.'images/comfeed.png);',
206
- ),
207
- );
208
- }
209
  shrsb_log("get_publisher_config completed");
210
  return array_filter($params);
211
  }
@@ -213,8 +199,6 @@ function shrsb_get_publisher_config($post_id) {
213
 
214
  function shrsb_get_shortener_settings(){
215
  global $shrsb_plugopts;
216
-
217
-
218
  $shorty = @$shrsb_plugopts['shorty'];
219
  $shortyapi = @$shrsb_plugopts['shortyapi'];
220
  $shortener_key = '';
@@ -227,14 +211,14 @@ function shrsb_get_shortener_settings(){
227
  case 'supr':
228
  $user = $shortyapi[$shorty]['user'];
229
  $api = $shortyapi[$shorty]['key'];
230
- $shortener_key = $user ? ($user.'|'.$api) : '';
231
  break;
232
  default:
233
  }
234
  }
235
-
236
  return $shortener_key;
237
  }
 
238
  /**
239
  * Returns array of all relevant information about the current post for sexy
240
  */
@@ -297,25 +281,6 @@ function shrsb_get_params($post_id) {
297
  $r['d_tags'] = implode(',', $tags);
298
  }
299
 
300
- // Check permalink setup for proper feed link
301
- $hasquery = false !== strpos($r['feed_permalink'],'?');
302
- $isphp = false !== strpos($r['feed_permalink'],'.php',
303
- max(0,strlen($r['feed_permalink']) - 4));
304
- if ($hasquery || $isphp) {
305
- $r['feed_structure'] = '&feed=comments-rss2';
306
- }
307
- else {
308
- $endsinslash = '/' ==
309
- $r['feed_permalink'][strlen($r['feed_permalink']) - 1];
310
- if ($endsinslash) {
311
- $r['feed_structure'] = 'feed';
312
- }
313
- else {
314
- $r['feed_structure'] = '/feed';
315
- }
316
- }
317
- $r['feed_link'] = $r['feed_permalink'].$r['feed_structure'];
318
-
319
  if($post_id >= 0){
320
  // Compatibility fix for NextGen Gallery Plugin...
321
  if( (strpos($r['post_summary'], '[') || strpos($r['post_summary'], ']')) ) {
@@ -353,20 +318,7 @@ function shrsb_get_params($post_id) {
353
  }else{
354
  $r['notes'] = "";
355
  }
356
- // see if we need comfeed
357
- $position = array_search('shr-comfeed', $shrsb_plugopts['bookmark']);
358
- if (is_numeric($position)) {
359
- $r['include_comfeed'] = TRUE;
360
- if ($position == 0) {
361
- $r['comfeed_position'] = 'before_0';
362
- }
363
- else {
364
- $r['comfeed_position'] = 'after_'.($position-1);
365
- }
366
- }
367
- else {
368
- $r['include_comfeed'] = FALSE;
369
- }
370
  shrsb_log("get_params completed");
371
  return $r;
372
  }
@@ -595,7 +547,9 @@ function get_shr_like_buttonset($pos = 'Bottom', $return_type = NULL, $settings
595
  break;
596
  }
597
 
598
- if(!$tweetButtonCount && $tweetButtonCount != "false") $tweetButtonSize = "none";
 
 
599
 
600
  $tweetButtonHTML = "<a class='shareaholic-tweetbutton' data-shr_count='$tweetButtonSize' data-shr_href='$href' data-shr_title='$title'></a>";
601
  }
@@ -744,13 +698,11 @@ function shrsb_get_cb($post_content){
744
 
745
  $html .= "<div style='clear:both'></div>" ;
746
  if(in_the_loop()){
747
- //$shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
748
- $shrsb_cb_js_params[$post->ID] = shrsb_get_cb_config($post->ID);
749
- $html .= '<div class="shr_cb" data-shrpub_options_timestamp = '. $post->ID .'></div>';
750
  shrsb_log("Loop:get_cb new mode found, returning ");
751
  }else{
752
- //$shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
753
- $shrsb_cb_js_params[$post->ID] = shrsb_get_cb_config($post->ID);
754
  $html .= '<div class="shr_cb"></div>';
755
  shrsb_log("Not Loop:get_cb new mode found, returning ");
756
  }
@@ -985,26 +937,6 @@ function get_sexy() {
985
  'title'=>$title,
986
  ));
987
  break;
988
- case 'shr-comfeed':
989
- $socials.=bookmark_list_item($name, array(
990
- 'permalink'=>urldecode($feedperms).$feedstructure,
991
- ));
992
- break;
993
- case 'shr-yahoobuzz':
994
- $socials.=bookmark_list_item($name, array(
995
- 'permalink'=>$perms,
996
- 'title'=>$title,
997
- 'yahooteaser'=>$shrsb_content,
998
- ));
999
- break;
1000
- case 'shr-twittley':
1001
- $socials.=bookmark_list_item($name, array(
1002
- 'permalink'=>urlencode($perms),
1003
- 'title'=>$title,
1004
- 'post_summary'=>$post_summary,
1005
- 'default_tags'=>$d_tags,
1006
- ));
1007
- break;
1008
  case 'shr-tumblr':
1009
  $socials.=bookmark_list_item($name, array(
1010
  'permalink'=>urlencode($perms),
@@ -1023,7 +955,7 @@ function get_sexy() {
1023
  $socials.='</ul>';
1024
  if ($shrsb_plugopts['shrlink'] == 1) {
1025
  $socials.= '<div style="clear: both;"></div>';
1026
- $socials.= '<div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div>';
1027
  }
1028
  $socials.= '<div style="clear: both;"></div></div>';
1029
  $socials.="\n\n";
@@ -1078,12 +1010,6 @@ function shrsb_publicStyles() {
1078
  $surl = WP_CONTENT_URL.'/sexy-mods/css/style.css';
1079
  }
1080
  wp_enqueue_style('sexy-bookmarks', $surl, false, SHRSB_vNum, 'all');
1081
- }
1082
- else {
1083
- $position = array_search('shr-comfeed', $shrsb_plugopts['bookmark']);
1084
- if (is_numeric($position)) {
1085
- wp_enqueue_style('comfeed', SHRSB_PLUGPATH.'css/comfeed.css', false, SHRSB_vNum, 'all');
1086
- }
1087
  }
1088
  }
1089
  function shrsb_publicScripts() {
@@ -1092,19 +1018,19 @@ function shrsb_publicScripts() {
1092
  $spritegen = $default_spritegen ? 'spritegen_default' : 'spritegen';
1093
  $spritegen_basepath = $default_spritegen ? SHRSB_PLUGPATH : SHRSB_UPLOADPATH;
1094
 
1095
- //Beta script
1096
  if ($shrsb_plugopts['shareaholic-javascript'] == '1' && !is_admin()){// && !get_post_meta($post->ID, 'Hide SexyBookmarks')) {
1097
  $infooter = ($shrsb_plugopts['scriptInFooter'] == '1')?true:false;
1098
  $localize_to = 'shareaholic-publishers-js';
1099
 
1100
- // Enqueue the sb script only if the sexybookmark is enabled
1101
  if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1'){
1102
- wp_enqueue_script('shareaholic-publishers-js', (empty($shrsb_debug['sb_script'])) ? shrsb_correct_protocol($spritegen_basepath.$spritegen.'/jquery.shareaholic-publishers-sb.min.js') : $shrsb_debug['sb_script'], null, SHRSB_vNum, $infooter);
1103
  }
1104
 
1105
- // Enqueue the tb script only if the topbar is enabled
1106
  if(isset($shrsb_tb_plugopts) && isset($shrsb_tb_plugopts['topbar']) && $shrsb_tb_plugopts['topbar'] == '1'){
1107
- wp_enqueue_script('shareaholic-share-buttons-js',(empty($shrsb_debug['tb_script'])) ? shrsb_correct_protocol($spritegen_basepath.$spritegen.'/jquery.shareaholic-share-buttons.min.js'): $shrsb_debug['tb_script'], null, SHRSB_vNum, $infooter);
1108
  $localize_to = 'shareaholic-share-buttons-js';
1109
  }
1110
 
@@ -1116,8 +1042,7 @@ function shrsb_publicScripts() {
1116
 
1117
  // Enqueue the classicbookmarks script only if the recommendations is enabled
1118
  if(isset($shrsb_cb) && isset($shrsb_cb['cb']) && $shrsb_cb['cb'] == '1'){
1119
- //wp_enqueue_script('shareaholic-cb-js',(empty($shrsb_debug['cb_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-cb.min.js"): $shrsb_debug['cb_script'], null, SHRSB_vNum, $infooter);
1120
- wp_enqueue_script('shareaholic-cb-js',(empty($shrsb_debug['cb_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/formfactors_cb.js"): $shrsb_debug['cb_script'], null, SHRSB_vNum, $infooter);
1121
  $localize_to = 'shareaholic-cb-js';
1122
  }
1123
 
@@ -1161,7 +1086,6 @@ function shrsb_publicScripts() {
1161
  */
1162
  function shrsb_write_js_params() {
1163
  global $shrsb_plugopts, $shrsb_js_params;
1164
-
1165
  if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1' && $shrsb_plugopts['shareaholic-javascript'] == '1') {
1166
  //For manual mode, when no config is defined
1167
  if($shrsb_plugopts['position'] == 'manual' && !in_the_loop()){
@@ -1179,7 +1103,6 @@ function shrsb_write_js_params() {
1179
  */
1180
  function shrsb_tb_write_js_params() {
1181
  global $shrsb_plugopts, $shrsb_tb_js_params,$shrsb_tb_plugopts;
1182
-
1183
  if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_tb_plugopts['topbar'] == '1') {
1184
 
1185
  $js = "";
@@ -1189,7 +1112,8 @@ function shrsb_tb_write_js_params() {
1189
  $shrsb_tb_js_params["showAddv"] = $shrsb_tb_plugopts["addv"];
1190
  $shrsb_tb_js_params["apiKey"] = "e3c665c2eb6785741cea4515633f1d86b";
1191
  $shrsb_tb_js_params["twitter_template"] = $shrsb_plugopts['tweetconfig'];
1192
-
 
1193
  $js = 'var SHRTB_Settings = '.json_encode($shrsb_tb_js_params);
1194
  //}
1195
 
@@ -1226,22 +1150,7 @@ function shrsb_cb_write_js_params() {
1226
 
1227
  if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_cb['cb'] == '1') {
1228
 
1229
- $js = "var _shr = _shr || [];";
1230
- foreach($shrsb_cb_js_params as $key => $val){
1231
-
1232
- $js .= '_shr.push(["SHR_CB_Settings",{
1233
- options: {
1234
- timestamp:' . $key .',
1235
- size:' . $val['size'] .',
1236
- link:"'. $val['link'] .'",
1237
- title:"'. $val['title'] .'",
1238
- apikey:"'. $val['apikey'] .'"
1239
- }
1240
- }
1241
- ]);';
1242
- }
1243
-
1244
- //$js = 'var SHRCB_Settings = '.json_encode($shrsb_cb_js_params);
1245
 
1246
 
1247
  echo '<script type="text/javascript">';
59
  * array(
60
  * 'link' => ..,
61
  * 'title' => ..,
 
62
  * 'mail_subject' => ..
63
  * )
64
  */
89
  shrsb_log('Manual: Link Generation '.$link);
90
  $r['link'] = $link;
91
  $r['title'] = get_bloginfo('name') . wp_title('-', false);
 
92
  $r['mail_subject'] = urlencode(get_bloginfo('name') . wp_title('-', false));
93
 
94
  }
97
  $r['link'] = trim(get_permalink($post->ID));
98
  shrsb_log("Loop mode Link Generation ".$r['link']);
99
  $r['title'] = $post->post_title;
 
100
  $r['mail_subject'] = urlencode($post->post_title);
101
  }
102
 
136
  global $shrsb_cb;
137
 
138
  $r = shrsb_get_params($post_id);
139
+
140
  $params = array(
141
  'link' => $r['link'],
 
142
  'apikey' => $r['apikey'] ? $r['apikey'] : '8afa39428933be41f8afdb8ea21a495c',
143
  'size' => $shrsb_cb['size']
144
  );
192
  'shrlink' => $r['shrlink'],
193
  );
194
 
 
 
 
 
 
 
 
 
 
 
 
195
  shrsb_log("get_publisher_config completed");
196
  return array_filter($params);
197
  }
199
 
200
  function shrsb_get_shortener_settings(){
201
  global $shrsb_plugopts;
 
 
202
  $shorty = @$shrsb_plugopts['shorty'];
203
  $shortyapi = @$shrsb_plugopts['shortyapi'];
204
  $shortener_key = '';
211
  case 'supr':
212
  $user = $shortyapi[$shorty]['user'];
213
  $api = $shortyapi[$shorty]['key'];
214
+ $shortener_key = $user ? ($user.'%7C'.$api) : '';
215
  break;
216
  default:
217
  }
218
  }
 
219
  return $shortener_key;
220
  }
221
+
222
  /**
223
  * Returns array of all relevant information about the current post for sexy
224
  */
281
  $r['d_tags'] = implode(',', $tags);
282
  }
283
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
284
  if($post_id >= 0){
285
  // Compatibility fix for NextGen Gallery Plugin...
286
  if( (strpos($r['post_summary'], '[') || strpos($r['post_summary'], ']')) ) {
318
  }else{
319
  $r['notes'] = "";
320
  }
321
+
 
 
 
 
 
 
 
 
 
 
 
 
 
322
  shrsb_log("get_params completed");
323
  return $r;
324
  }
547
  break;
548
  }
549
 
550
+ if ($tweetButtonCount === "false") {
551
+ $tweetButtonSize = "none";
552
+ }
553
 
554
  $tweetButtonHTML = "<a class='shareaholic-tweetbutton' data-shr_count='$tweetButtonSize' data-shr_href='$href' data-shr_title='$title'></a>";
555
  }
698
 
699
  $html .= "<div style='clear:both'></div>" ;
700
  if(in_the_loop()){
701
+ $shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
702
+ $html .= '<div class="shr_cb-'.$post->ID.'"></div>';
 
703
  shrsb_log("Loop:get_cb new mode found, returning ");
704
  }else{
705
+ $shrsb_cb_js_params['shr_cb-'.$post->ID] = shrsb_get_cb_config($post->ID);
 
706
  $html .= '<div class="shr_cb"></div>';
707
  shrsb_log("Not Loop:get_cb new mode found, returning ");
708
  }
937
  'title'=>$title,
938
  ));
939
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
940
  case 'shr-tumblr':
941
  $socials.=bookmark_list_item($name, array(
942
  'permalink'=>urlencode($perms),
955
  $socials.='</ul>';
956
  if ($shrsb_plugopts['shrlink'] == 1) {
957
  $socials.= '<div style="clear: both;"></div>';
958
+ $socials.= '<div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="https://shareaholic.com/?src=pub">Get Shareaholic</a></div>';
959
  }
960
  $socials.= '<div style="clear: both;"></div></div>';
961
  $socials.="\n\n";
1010
  $surl = WP_CONTENT_URL.'/sexy-mods/css/style.css';
1011
  }
1012
  wp_enqueue_style('sexy-bookmarks', $surl, false, SHRSB_vNum, 'all');
 
 
 
 
 
 
1013
  }
1014
  }
1015
  function shrsb_publicScripts() {
1018
  $spritegen = $default_spritegen ? 'spritegen_default' : 'spritegen';
1019
  $spritegen_basepath = $default_spritegen ? SHRSB_PLUGPATH : SHRSB_UPLOADPATH;
1020
 
1021
+ // Beta script
1022
  if ($shrsb_plugopts['shareaholic-javascript'] == '1' && !is_admin()){// && !get_post_meta($post->ID, 'Hide SexyBookmarks')) {
1023
  $infooter = ($shrsb_plugopts['scriptInFooter'] == '1')?true:false;
1024
  $localize_to = 'shareaholic-publishers-js';
1025
 
1026
+ // Enqueue the sb script only if sexybookmarks share buttons is enabled
1027
  if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1'){
1028
+ wp_enqueue_script('shareaholic-publishers-js', (empty($shrsb_debug['sb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-sb.min.js') : $shrsb_debug['sb_script'], null, SHRSB_vNum, $infooter);
1029
  }
1030
 
1031
+ // Enqueue the tb script only if the Top Bar is enabled
1032
  if(isset($shrsb_tb_plugopts) && isset($shrsb_tb_plugopts['topbar']) && $shrsb_tb_plugopts['topbar'] == '1'){
1033
+ wp_enqueue_script('shareaholic-share-buttons-js',(empty($shrsb_debug['tb_script'])) ? shrsb_correct_protocol('http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-share-buttons.min.js'): $shrsb_debug['tb_script'], null, SHRSB_vNum, $infooter);
1034
  $localize_to = 'shareaholic-share-buttons-js';
1035
  }
1036
 
1042
 
1043
  // Enqueue the classicbookmarks script only if the recommendations is enabled
1044
  if(isset($shrsb_cb) && isset($shrsb_cb['cb']) && $shrsb_cb['cb'] == '1'){
1045
+ wp_enqueue_script('shareaholic-cb-js',(empty($shrsb_debug['cb_script'])) ? shrsb_correct_protocol("http://dtym7iokkjlif.cloudfront.net/media/js/jquery.shareaholic-publishers-cb.min.js"): $shrsb_debug['cb_script'], null, SHRSB_vNum, $infooter);
 
1046
  $localize_to = 'shareaholic-cb-js';
1047
  }
1048
 
1086
  */
1087
  function shrsb_write_js_params() {
1088
  global $shrsb_plugopts, $shrsb_js_params;
 
1089
  if(isset($shrsb_plugopts['sexybookmark']) && $shrsb_plugopts['sexybookmark'] == '1' && $shrsb_plugopts['shareaholic-javascript'] == '1') {
1090
  //For manual mode, when no config is defined
1091
  if($shrsb_plugopts['position'] == 'manual' && !in_the_loop()){
1103
  */
1104
  function shrsb_tb_write_js_params() {
1105
  global $shrsb_plugopts, $shrsb_tb_js_params,$shrsb_tb_plugopts;
 
1106
  if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_tb_plugopts['topbar'] == '1') {
1107
 
1108
  $js = "";
1112
  $shrsb_tb_js_params["showAddv"] = $shrsb_tb_plugopts["addv"];
1113
  $shrsb_tb_js_params["apiKey"] = "e3c665c2eb6785741cea4515633f1d86b";
1114
  $shrsb_tb_js_params["twitter_template"] = $shrsb_plugopts['tweetconfig'];
1115
+ if ( ( is_home() || is_front_page() ) && have_posts() )
1116
+ $shrsb_tb_js_params["isIndexPage"] = "indexPage";
1117
  $js = 'var SHRTB_Settings = '.json_encode($shrsb_tb_js_params);
1118
  //}
1119
 
1150
 
1151
  if ($shrsb_plugopts['shareaholic-javascript'] == '1' && $shrsb_cb['cb'] == '1') {
1152
 
1153
+ $js = 'var SHRCB_Settings = '.json_encode($shrsb_cb_js_params);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1154
 
1155
 
1156
  echo '<script type="text/javascript">';
includes/shr_pub_pro.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  class SHR_PUB_PRO {
4
- protected $authenicate_url = "http://www.shareaholic.com/api/auth/apikey/";
5
  protected $install_url;
6
  protected $apikey;
7
  protected $default_apikey = '8afa39428933be41f8afdb8ea21a495c';
1
  <?php
2
 
3
  class SHR_PUB_PRO {
4
+ protected $authenicate_url = "https://shareaholic.com/api/auth/apikey/";
5
  protected $install_url;
6
  protected $apikey;
7
  protected $default_apikey = '8afa39428933be41f8afdb8ea21a495c';
includes/shrsb_activation_page.php CHANGED
@@ -31,7 +31,7 @@
31
 
32
  <div style="display:block; font-size: 11px; color: #777777; width: 960px;">
33
 
34
- <?php echo sprintf(__('<p>By enabling Shareaholic, you are accepting our %sTerms of Service%s. At times, to function our plugin sends data to trusted 3rd party services like Facebook, Twitter, Google Analytics, Quantcast, AppNexus and DataXu. Your privacy is critically important to us. Please see our %sPrivacy Promise%s for more information.</p>', 'shrsb'), '<a href="http://www.shareaholic.com/terms/" target="_new">', '</a>', '<a href="http://www.shareaholic.com/privacy/" target="_new">', '</a>'); ?>
35
 
36
  <?php _e("<p>Shareaholic is trusted by over 200 thousand publishers and touches almost 300 million people each month. Designed and built with all the love in the world in Cambridge, Massachusetts.</p>"); ?>
37
 
31
 
32
  <div style="display:block; font-size: 11px; color: #777777; width: 960px;">
33
 
34
+ <?php echo sprintf(__('<p>By enabling Shareaholic, you are accepting our %sTerms of Service%s. At times, to function our plugin sends data to trusted 3rd party services like Facebook, Twitter, Google Analytics, Quantcast, AppNexus and DataXu. Your privacy is critically important to us. Please see our %sPrivacy Promise%s for more information.</p>', 'shrsb'), '<a href="https://shareaholic.com/terms/" target="_new">', '</a>', '<a href="https://shareaholic.com/privacy/" target="_new">', '</a>'); ?>
35
 
36
  <?php _e("<p>Shareaholic is trusted by over 200 thousand publishers and touches almost 300 million people each month. Designed and built with all the love in the world in Cambridge, Massachusetts.</p>"); ?>
37
 
includes/shrsb_analytics_page.php CHANGED
@@ -28,7 +28,6 @@ function shrsb_analytics_set_options( $action = NULL ) {
28
  //Get the settings from the database
29
  $database_Settings = get_option($option_name);
30
 
31
-
32
  if( $database_Settings ) {//got the settings in the database
33
 
34
  // Check only when upgrading
@@ -42,11 +41,8 @@ function shrsb_analytics_set_options( $action = NULL ) {
42
  $need_to_update = true;
43
  }
44
  }
45
-
46
  if( $need_to_update ) update_option( $option_name, $database_Settings );
47
-
48
  }
49
-
50
  return $database_Settings;
51
 
52
  } else {
28
  //Get the settings from the database
29
  $database_Settings = get_option($option_name);
30
 
 
31
  if( $database_Settings ) {//got the settings in the database
32
 
33
  // Check only when upgrading
41
  $need_to_update = true;
42
  }
43
  }
 
44
  if( $need_to_update ) update_option( $option_name, $database_Settings );
 
45
  }
 
46
  return $database_Settings;
47
 
48
  } else {
includes/shrsb_analytics_settings_page.php CHANGED
@@ -99,7 +99,7 @@ function shrsb_analytics_settings_page() {
99
  <h2 class="fugue f-status"><?php _e('Shareaholic Social Analytics - Grow Your Traffic and Referrals', 'shrsb'); ?></h2>
100
  </div>
101
  <div class="box-mid-body">
102
- <div style="padding:8px;background:#FDF6E5;"><img src="<?php echo SHRSB_PLUGPATH; ?>images/line-chart.png" align="right" alt="New!" />
103
  <?php
104
 
105
  $parse = parse_url(get_bloginfo('url'));
@@ -137,7 +137,7 @@ function shrsb_analytics_settings_page() {
137
  $('#bonusShareTopUser').show();
138
  var face_ul = $('<ul id="bonusShareFacesUL"/>');
139
  for(var i=0; i<obj.length; ++i) {
140
- var shr_profile_url = "http://www.shareaholic.com/" + obj[i].username;
141
  face_ul.append(
142
  $("<li class='bonusShareLi'>").append("<a target='_blank' href="+shr_profile_url+"><img class='bonusShareFaces' title=" + obj[i].username + " src=" + obj[i].picture_url + "></img></a>")
143
  );
@@ -153,15 +153,16 @@ function shrsb_analytics_settings_page() {
153
  <div id="bonusShareTopUser" style="display:none"><b><?php _e('Meet who spreads your content the most:', 'shrsb'); ?></b></div>
154
 
155
  <br />
156
- <div style="background: url(http://www.shareaholic.com/media/images/border_hr.png) repeat-x scroll left top; height: 2px;"></div>
157
  <br />
158
- <?php echo sprintf(__('<span style="font-size: 12px;">Shareaholic reports all of your important social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors for free.</span> <br><br> <b><span style="color:#CC1100;">What are you waiting for?</span> You can access detailed %ssocial engagement analytics%s about your website right now.</b>', 'shrsb'), '<a href="http://www.shareaholic.com/publishers/analytics/'.$parse['host'].'">', '</a>');
159
  ?>
160
 
161
  </div>
162
  </div>
163
  </li>
164
 
 
165
  <?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
166
 
167
  <li>
@@ -172,19 +173,21 @@ function shrsb_analytics_settings_page() {
172
 
173
  <div class="padding">
174
  <div id="genopts">
175
- <table><tbody>
 
176
  <tr>
177
  <td><span class="shrsb_option"><?php _e('Enable Google Analytics Social Tracking', 'shrsb'); ?> (<a href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html" target="_blank">?</a>)</span></td>
178
  <td WIDTH="120"><label><input <?php echo ((@$shrsb_analytics['pubGaSocial'] == "1")? 'checked="checked"' : ""); ?> name="pubGaSocial" id="pubGaSocial-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label></td>
179
  <td WIDTH="120"><label><input <?php echo ((@$shrsb_analytics['pubGaSocial'] == "0")? 'checked="checked"' : ""); ?> name="pubGaSocial" id="pubGaSocial-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
180
  </tr>
181
 
182
-
183
- <tr class="pubGaSocial_prefs" style="display:none">
184
- <td><label class="tab" for="pubGaKey" style="margin-top:7px;"><?php _e('Your Google Analytics Property ID:', 'shrsb'); ?></label></td>
185
- <td colspan="2"><input style="margin-top:7px;" type="text" id="pubGaKey" name="pubGaKey" size="35" placeholder="ex. UA-XXXXXXXX-X" value="<?php echo @$shrsb_analytics['pubGaKey']; ?>" /></td>
186
  </tr>
187
- </tbody></table>
 
 
188
  </div>
189
  </div>
190
  </li>
@@ -241,7 +244,7 @@ function shrsb_analytics_page() {
241
  <br><br>
242
  <?php _e('Register your account today to recieve update info via email.', 'shrsb'); ?>
243
  <div class="shrsbsubmit">
244
- <input type="button" onclick ="window.open('http://www.shareaholic.com/publishers_apps/new_publishers_app')" value="<?php _e('Get Share Pro', 'shrsb'); ?>" />
245
  </div>
246
  </p>
247
  </div>
99
  <h2 class="fugue f-status"><?php _e('Shareaholic Social Analytics - Grow Your Traffic and Referrals', 'shrsb'); ?></h2>
100
  </div>
101
  <div class="box-mid-body">
102
+ <div style="padding:8px;background:#FDF6E5;"><img src="<?php echo SHRSB_PLUGPATH; ?>images/chart.png" align="right" alt="New!" />
103
  <?php
104
 
105
  $parse = parse_url(get_bloginfo('url'));
137
  $('#bonusShareTopUser').show();
138
  var face_ul = $('<ul id="bonusShareFacesUL"/>');
139
  for(var i=0; i<obj.length; ++i) {
140
+ var shr_profile_url = "https://shareaholic.com/" + obj[i].username;
141
  face_ul.append(
142
  $("<li class='bonusShareLi'>").append("<a target='_blank' href="+shr_profile_url+"><img class='bonusShareFaces' title=" + obj[i].username + " src=" + obj[i].picture_url + "></img></a>")
143
  );
153
  <div id="bonusShareTopUser" style="display:none"><b><?php _e('Meet who spreads your content the most:', 'shrsb'); ?></b></div>
154
 
155
  <br />
156
+ <div style="background: url(https://shareaholic.com/media/images/border_hr.png) repeat-x scroll left top; height: 2px;"></div>
157
  <br />
158
+ <?php echo sprintf(__('<span style="font-size: 12px;">Shareaholic reports all of your important social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors for free.</span> <br><br> <b><span style="color:#CC1100;">What are you waiting for?</span> You can access detailed %ssocial engagement analytics%s about your website right now.</b>', 'shrsb'), '<a href="https://shareaholic.com/publishers/analytics/'.$parse['host'].'/">', '</a>');
159
  ?>
160
 
161
  </div>
162
  </div>
163
  </li>
164
 
165
+
166
  <?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
167
 
168
  <li>
173
 
174
  <div class="padding">
175
  <div id="genopts">
176
+ <table>
177
+ <tbody>
178
  <tr>
179
  <td><span class="shrsb_option"><?php _e('Enable Google Analytics Social Tracking', 'shrsb'); ?> (<a href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingSocial.html" target="_blank">?</a>)</span></td>
180
  <td WIDTH="120"><label><input <?php echo ((@$shrsb_analytics['pubGaSocial'] == "1")? 'checked="checked"' : ""); ?> name="pubGaSocial" id="pubGaSocial-yes" type="radio" value="1" /> <?php _e('Yes', 'shrsb'); ?></label></td>
181
  <td WIDTH="120"><label><input <?php echo ((@$shrsb_analytics['pubGaSocial'] == "0")? 'checked="checked"' : ""); ?> name="pubGaSocial" id="pubGaSocial-no" type="radio" value="0" /> <?php _e('No', 'shrsb'); ?></label></td>
182
  </tr>
183
 
184
+ <tr class="pubGaSocial_prefs" style="display:none;">
185
+ <td><label class="tab" for="pubGaKey" style="margin-top:7px;"><?php _e('Your Google Analytics Property ID:', 'shrsb'); ?></label></td>
186
+ <td colspan="2"><input style="margin-top:7px;" type="text" id="pubGaKey" name="pubGaKey" size="35" placeholder="ex. UA-XXXXXXXX-X" value="<?php echo @$shrsb_analytics['pubGaKey']; ?>" /></td>
 
187
  </tr>
188
+
189
+ </tbody>
190
+ </table>
191
  </div>
192
  </div>
193
  </li>
244
  <br><br>
245
  <?php _e('Register your account today to recieve update info via email.', 'shrsb'); ?>
246
  <div class="shrsbsubmit">
247
+ <input type="button" onclick ="window.open('https://shareaholic.com/publishers_apps/new_publishers_app')" value="<?php _e('Get Share Pro', 'shrsb'); ?>" />
248
  </div>
249
  </p>
250
  </div>
includes/shrsb_authentication_page.php CHANGED
@@ -120,19 +120,19 @@ function shrsb_authentication_page($apikey = null) {
120
  <div class="box-right-body">
121
  <div class="padding">
122
  <ul class="infolinks">
123
- <li><a href="http://www.shareaholic.com/tools/wordpress/usage-installation" target="_blank"><?php _e('Installation &amp; Usage Guide', 'shrsb'); ?></a></li>
124
- <li><a href="http://www.shareaholic.com/tools/wordpress/faq" target="_blank"><?php _e('Frequently Asked Questions', 'shrsb'); ?></a></li>
125
- <li><a href="http://sexybookmarks.shareaholic.com/contact-forms/bug-form" target="_blank"><?php _e('Bug Submission Form', 'shrsb'); ?></a></li>
126
- <li><a href="http://sexybookmarks.shareaholic.com/contact-forms/feature-request" target="_blank"><?php _e('Feature Request Form', 'shrsb'); ?></a></li>
127
- <li><a href="http://sexybookmarks.shareaholic.com/contact-forms/translation-submission-form" target="_blank"><?php _e('Submit a Translation', 'shrsb'); ?></a></li>
128
- <li><a href="http://www.shareaholic.com/tools/browser/" target="_blank"><?php _e('Shareaholic Browsers Add-ons', 'shrsb'); ?></a></li>
129
- <li><a href="http://www.shareaholic.com/tools/wordpress/credits" target="_blank"><?php _e('Thanks &amp; Credits', 'shrsb'); ?></a></li>
130
  </ul>
131
  </div>
132
  </div>
133
  </div>
134
 
135
- <div style="padding:15px;"><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FShareaholic&amp;layout=standard&amp;show_faces=true&amp;width=240&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:80px;" allowTransparency="true"></iframe>
136
  </div>
137
 
138
  </div>
120
  <div class="box-right-body">
121
  <div class="padding">
122
  <ul class="infolinks">
123
+ <li><a href="https://shareaholic.com/tools/wordpress/usage-installation" target="_blank"><?php _e('Installation &amp; Usage Guide', 'shrsb'); ?></a></li>
124
+ <li><a href="https://shareaholic.com/tools/wordpress/faq" target="_blank"><?php _e('Frequently Asked Questions', 'shrsb'); ?></a></li>
125
+ <li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Bug Submission Form', 'shrsb'); ?></a></li>
126
+ <li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Feature Request Form', 'shrsb'); ?></a></li>
127
+ <li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Translation', 'shrsb'); ?></a></li>
128
+ <li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Shareaholic Browsers Add-ons', 'shrsb'); ?></a></li>
129
+ <li><a href="https://shareaholic.com/tools/wordpress/credits" target="_blank"><?php _e('Thanks &amp; Credits', 'shrsb'); ?></a></li>
130
  </ul>
131
  </div>
132
  </div>
133
  </div>
134
 
135
+ <div style="padding:15px;"><iframe src="https://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.facebook.com%2FShareaholic&amp;layout=standard&amp;show_faces=true&amp;width=240&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:240px; height:80px;" allowTransparency="true"></iframe>
136
  </div>
137
 
138
  </div>
includes/shrsb_settings_page.php CHANGED
@@ -255,13 +255,13 @@ function shrsb_right_side_menu(){
255
  <div class="box-right-body">
256
  <div class="padding">
257
  <ul class="infolinks">
258
- <li><a href="http://www.shareaholic.com/tools/wordpress/usage-installation" target="_blank"><?php _e('Installation &amp; Usage Guide', 'shrsb'); ?></a></li>
259
- <li><a href="http://www.shareaholic.com/tools/wordpress/faq" target="_blank"><?php _e('Frequently Asked Questions', 'shrsb'); ?></a></li>
260
- <li><a href="http://sexybookmarks.shareaholic.com/contact-forms/bug-form" target="_blank"><?php _e('Bug Submission Form', 'shrsb'); ?></a></li>
261
- <li><a href="http://sexybookmarks.shareaholic.com/contact-forms/feature-request" target="_blank"><?php _e('Feature Request Form', 'shrsb'); ?></a></li>
262
- <li><a href="http://www.shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Translation', 'shrsb'); ?></a></li>
263
- <li><a href="http://www.shareaholic.com/tools/browser/" target="_blank"><?php _e('Shareaholic Browsers Add-ons', 'shrsb'); ?></a></li>
264
- <li><a href="http://www.shareaholic.com/tools/wordpress/credits" target="_blank"><?php _e('Thanks &amp; Credits', 'shrsb'); ?></a></li>
265
  </ul>
266
  </div>
267
  </div>
@@ -312,7 +312,7 @@ function shrsb_getfooter(){
312
  <ul id="shrsb-sortables" style="width:96%;">
313
  <li style="margin:0px;">
314
  <div class="footer">
315
- <a href="http://www.shareaholic.com/?src=wp_admin" target="_blank">Shareaholic for WordPress <?php echo SHRSB_vNum; ?></a> <span class="grey_light">|</span> <a href="http://www.shareaholic.com/privacy/?src=wp_admin" target="_blank">Privacy Policy</a> <span class="grey_light">|</span> <a href="http://www.shareaholic.com/terms/?src=wp_admin" target="_blank">Terms of Service</a> <span class="grey_light">|</span> <a href="http://support.shareaholic.com/" target="_blank">Support</a> <span class="grey_light">|</span> <a href="http://www.shareaholic.com/api/?src=wp_admin" target="_blank">API</a> <span class="grey_light">|</span> <a href="http://www.shareaholic.com/publishers/analytics/<?php $parse = parse_url(get_bloginfo('url')); echo $parse['host']; ?>" target="_blank">Social Analytics</a> <br /> If you like this plugin and find it useful, please consider showing your support by <a href="http://wordpress.org/extend/plugins/shareaholic/" target="_blank" style="font-weight:bold;">giving us a good rating</a> on WordPress.org. Thank you for using <a href="">Shareaholic</a>.
316
  </div>
317
  <br />
318
  <div style="display:block; font-size: 11px; color: #777777;">
@@ -549,7 +549,7 @@ function shrsb_addFBNameSpace($attr) {
549
  function shrsb_network_input_select($name, $id, $hint) {
550
  global $shrsb_plugopts;
551
  return sprintf('<li class="%s" title="%s"><input %sname="bookmark[]" type="checkbox" value="%s" id="%s" /><div style="margin-top:-8px;"></div>%s</li>',
552
- $name,
553
  $hint,
554
  @in_array($name, $shrsb_plugopts['bookmark'])?'checked="checked" ':"",
555
  $name,
255
  <div class="box-right-body">
256
  <div class="padding">
257
  <ul class="infolinks">
258
+ <li><a href="https://shareaholic.com/tools/wordpress/usage-installation" target="_blank"><?php _e('Installation &amp; Usage Guide', 'shrsb'); ?></a></li>
259
+ <li><a href="https://shareaholic.com/tools/wordpress/faq" target="_blank"><?php _e('Frequently Asked Questions', 'shrsb'); ?></a></li>
260
+ <li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Bug Submission Form', 'shrsb'); ?></a></li>
261
+ <li><a href="http://support.shareaholic.com/" target="_blank"><?php _e('Feature Request Form', 'shrsb'); ?></a></li>
262
+ <li><a href="https://shareaholic.com/tools/wordpress/translations" target="_blank"><?php _e('Submit a Translation', 'shrsb'); ?></a></li>
263
+ <li><a href="https://shareaholic.com/tools/browser/" target="_blank"><?php _e('Shareaholic Browsers Add-ons', 'shrsb'); ?></a></li>
264
+ <li><a href="https://shareaholic.com/tools/wordpress/credits" target="_blank"><?php _e('Thanks &amp; Credits', 'shrsb'); ?></a></li>
265
  </ul>
266
  </div>
267
  </div>
312
  <ul id="shrsb-sortables" style="width:96%;">
313
  <li style="margin:0px;">
314
  <div class="footer">
315
+ <a href="https://shareaholic.com/?src=wp_admin" target="_blank">Shareaholic for WordPress <?php echo SHRSB_vNum; ?></a> <span class="grey_light">|</span> <a href="https://shareaholic.com/privacy/?src=wp_admin" target="_blank">Privacy Policy</a> <span class="grey_light">|</span> <a href="https://shareaholic.com/terms/?src=wp_admin" target="_blank">Terms of Service</a> <span class="grey_light">|</span> <a href="http://support.shareaholic.com/" target="_blank">Support</a> <span class="grey_light">|</span> <a href="https://shareaholic.com/api/?src=wp_admin" target="_blank">API</a> <span class="grey_light">|</span> <a href="https://shareaholic.com/publishers/analytics/<?php $parse = parse_url(get_bloginfo('url')); echo $parse['host']; ?>/" target="_blank">Social Analytics</a> <br /> If you like this plugin and find it useful, please consider showing your support by <a href="http://wordpress.org/support/view/plugin-reviews/shareaholic" target="_blank" style="font-weight:bold;">giving us a good rating</a> on WordPress.org. Thank you for using <a href="">Shareaholic</a>.
316
  </div>
317
  <br />
318
  <div style="display:block; font-size: 11px; color: #777777;">
549
  function shrsb_network_input_select($name, $id, $hint) {
550
  global $shrsb_plugopts;
551
  return sprintf('<li class="%s" title="%s"><input %sname="bookmark[]" type="checkbox" value="%s" id="%s" /><div style="margin-top:-8px;"></div>%s</li>',
552
+ "shr-".$id,
553
  $hint,
554
  @in_array($name, $shrsb_plugopts['bookmark'])?'checked="checked" ':"",
555
  $name,
includes/shrsb_sexybookmarks_page.php CHANGED
@@ -15,6 +15,7 @@ function shrsb_sb_set_options($action = NULL){
15
  * @desc Most Popular Services List
16
  * @note To change the most popular list also change the "Most Popular" link click handler in shareaholic-admin.js
17
  */
 
18
  $shrsb_most_popular = array (
19
  'shr-facebook',
20
  'shr-twitter',
@@ -148,7 +149,6 @@ add_option('SHRSB_DefaultSprite',true);
148
 
149
  // If plugin is upgrading
150
  if(SHRSB_UPGRADING == TRUE) {
151
-
152
 
153
  //Remove the Disabled Services
154
  if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['service'])){
@@ -156,14 +156,48 @@ if(SHRSB_UPGRADING == TRUE) {
156
 
157
  if(!empty($services)){
158
  // Removing blocked services from sb services list
159
- $disable_services = array( '4', '12', '68', '77', '159', '185', '186', '195', '207', '237', '257' );
160
  $services = array_diff($services, $disable_services);
161
  $shrsb_plugopts['service'] = implode(',', $services );
162
  }
163
- }
 
 
 
 
 
 
 
164
  if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['reloption']) && $shrsb_plugopts['reloption'] === "" ){
165
  $shrsb_plugopts['reloption'] = '1';
166
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
  }
168
 
169
  /*
@@ -198,9 +232,4 @@ if(isset($_POST['save_changes_sb']) ){
198
  $shrsb_plugopts['apikey'] = get_option('SHRSB_apikey');
199
  $shrsb_custom_sprite = get_option('SHRSB_CustomSprite');
200
 
201
- // Some databases got corrupted. This will set things in place.
202
- if($shrsb_plugopts['shrbase'] != 'http://www.shareaholic.com'){
203
- $shrsb_plugopts['shrbase'] = 'http://www.shareaholic.com';
204
- }
205
-
206
  ?>
15
  * @desc Most Popular Services List
16
  * @note To change the most popular list also change the "Most Popular" link click handler in shareaholic-admin.js
17
  */
18
+
19
  $shrsb_most_popular = array (
20
  'shr-facebook',
21
  'shr-twitter',
149
 
150
  // If plugin is upgrading
151
  if(SHRSB_UPGRADING == TRUE) {
 
152
 
153
  //Remove the Disabled Services
154
  if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['service'])){
156
 
157
  if(!empty($services)){
158
  // Removing blocked services from sb services list
159
+ $disable_services = array( '4', '12', '68', '77', '159', '185', '186', '195', '207', '237', '257', '264', '190', '10', '287', '188', '100', '277' );
160
  $services = array_diff($services, $disable_services);
161
  $shrsb_plugopts['service'] = implode(',', $services );
162
  }
163
+ }
164
+
165
+ if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['bookmark'])){
166
+ // Removing blocked services from bookmarks list
167
+
168
+ $shrsb_plugopts['bookmark'] = array_diff($shrsb_plugopts['bookmark'], array( 'shr-twittley', 'shr-comfeed', 'shr-ning', 'shr-strands', 'shr-sphinn', 'shr-tipd', 'shr-faqpal', 'shr-technorati', 'shr-yahoobuzz' ));
169
+ }
170
+
171
  if(isset ($shrsb_plugopts) && isset($shrsb_plugopts['reloption']) && $shrsb_plugopts['reloption'] === "" ){
172
  $shrsb_plugopts['reloption'] = '1';
173
  }
174
+
175
+ // Some databases got corrupted. This will set things in place.
176
+ if($shrsb_plugopts['shrbase'] != 'http://www.shareaholic.com'){
177
+ $shrsb_plugopts['shrbase'] = 'http://www.shareaholic.com';
178
+ }
179
+
180
+ // Reset depreciated url shorteners
181
+ if($shrsb_plugopts['shorty'] == 'slly' || $shrsb_plugopts['shorty'] == 'cligs' || $shrsb_plugopts['shorty'] == 'snip' || $shrsb_plugopts['shorty'] == 'tinyarrow' || $shrsb_plugopts['shorty'] == 'b2l' || $shrsb_plugopts['shorty'] == 'trim' || $shrsb_plugopts['shorty'] == 'e7t' || $shrsb_plugopts['shorty'] == 'googl') {
182
+ $shrsb_plugopts['shorty'] = 'google';
183
+
184
+ //reset depreciated settings
185
+ $shrsb_plugopts['shortyapi']['snip']['user'] = '';
186
+ $shrsb_plugopts['shortyapi']['snip']['key'] = '';
187
+ $shrsb_plugopts['shortyapi']['trim']['chk'] = '';
188
+ $shrsb_plugopts['shortyapi']['trim']['user'] = '';
189
+ $shrsb_plugopts['shortyapi']['trim']['pass'] = '';
190
+ $shrsb_plugopts['shortyapi']['tinyarrow']['chk'] = '';
191
+ $shrsb_plugopts['shortyapi']['tinyarrow']['user'] = '';
192
+ $shrsb_plugopts['shortyapi']['cligs']['chk'] = '';
193
+ $shrsb_plugopts['shortyapi']['cligs']['key'] = '';
194
+ }
195
+
196
+ if($shrsb_plugopts['shorty'] == 'tiny') {
197
+ $shrsb_plugopts['shorty'] = 'tinyurl';
198
+ }
199
+
200
+ update_option('SexyBookmarks', $shrsb_plugopts);
201
  }
202
 
203
  /*
232
  $shrsb_plugopts['apikey'] = get_option('SHRSB_apikey');
233
  $shrsb_custom_sprite = get_option('SHRSB_CustomSprite');
234
 
 
 
 
 
 
235
  ?>
includes/shrsb_sexybookmarks_settings_page.php CHANGED
@@ -51,7 +51,7 @@ function shrsb_sb_settings_page() {
51
  /* Short URLs End */
52
 
53
  update_option('SexyBookmarks', $shrsb_plugopts);
54
- $shrsb_plugopts['tweetconfig'] = urldecode($shrsb_plugopts['tweetconfig']);
55
  delete_option('SHRSB_CustomSprite');
56
 
57
  echo '
@@ -154,17 +154,17 @@ function shrsb_sb_settings_page() {
154
  }
155
  elseif($save_return[0] == 1 || $save_return[1] == 1) {
156
  if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
157
- echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: Your %sspritegen folder%s is not writeable by the server! %sNeed Help?%s', 'shrsb'), '<a href="'.SHRSB_UPLOADPATH.'spritegen" target="_blank">','</a>','<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
158
  $shrsb_custom_sprite = '';
159
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
160
  }
161
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')) {
162
- echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom sprite %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png</a>)','<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
163
  $shrsb_custom_sprite = '';
164
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
165
  }
166
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
167
- echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom stylesheet %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css</a>)','<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
168
  $shrsb_custom_sprite = '';
169
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
170
  }
@@ -175,15 +175,15 @@ function shrsb_sb_settings_page() {
175
  }
176
  else{
177
  if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
178
- echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: Your %sspritegen folder%s is not writeable by the server! %sNeed Help?%s', 'shrsb'), '<a href="'.SHRSB_UPLOADPATH.'spritegen" target="_blank">','</a>','<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
179
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
180
  }
181
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')) {
182
- echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom sprite %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png</a>)','<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
183
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
184
  }
185
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
186
- echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom stylesheet %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css</a>)','<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
187
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
188
  }
189
  }
@@ -308,7 +308,7 @@ function shrsb_sb_settings_page() {
308
  <?php
309
  echo $chmod_required ? sprintf(__('To Fix: Please appropriately
310
  %sCHMOD%s your /spritegen directory.', 'shrsb'),
311
- '<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo"
312
  target = "_blank" style="color:#ca0c01">', '</a>') : "";
313
  ?>
314
  </td>
@@ -387,7 +387,7 @@ function shrsb_sb_settings_page() {
387
  <td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Shareaholic Social Analytics', 'shrsb'); ?></span></td>
388
  <td><div class="icon-ok"></div></td>
389
  <td><div class="icon-remove"></div></td>
390
- <td><a target="_blank" href="http://www.shareaholic.com/publishers/analytics/<?= $parse['host']?>">Preview</a></td>
391
  </tr>
392
 
393
  <tr>
@@ -476,7 +476,7 @@ function shrsb_sb_settings_page() {
476
 
477
  <br />
478
 
479
- <span style="display:block;"><?php echo sprintf(__('Check out %sour blog%s for additional customization options.', 'shrsb'), '<a target="_blank" href="http://blog.shareaholic.com/?p=1917">', '</a>'); ?></span>
480
  </div>
481
  </div>
482
  </div>
@@ -633,7 +633,7 @@ function shrsb_sb_settings_page() {
633
  array(
634
  'none' =>__("Don't use a shortener", 'shrsb'),
635
  'awesm' => 'awe.sm',
636
- 'bitly' => 'bit.ly',
637
  'jmp' => 'j.mp',
638
  'google' => 'Google (goo.gl)',
639
  'supr' => 'StumbleUpon (su.pr)',
@@ -821,7 +821,7 @@ function shrsb_sb_settings_page() {
821
  <div class="padding">
822
  <div class="dialog-box-information" id="info-manual">
823
  <div class="dialog-left fugue f-info">
824
- <?php echo sprintf(__('Need help with this? Find it in the %sofficial install guide%s.', 'shrsb'), '<a href="http://www.shareaholic.com/tools/wordpress/usage-installation">', '</a>'); ?></a>
825
  </div>
826
  <div class="dialog-right">
827
  <img src="<?php echo SHRSB_PLUGPATH; ?>images/information-delete.jpg" class="del-x" alt=""/>
51
  /* Short URLs End */
52
 
53
  update_option('SexyBookmarks', $shrsb_plugopts);
54
+ $shrsb_plugopts['tweetconfig'] = urldecode($shrsb_plugopts['tweetconfig']);
55
  delete_option('SHRSB_CustomSprite');
56
 
57
  echo '
154
  }
155
  elseif($save_return[0] == 1 || $save_return[1] == 1) {
156
  if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
157
+ echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: Your %sspritegen folder%s is not writeable by the server! %sNeed Help?%s', 'shrsb'), '<a href="'.SHRSB_UPLOADPATH.'spritegen" target="_blank">','</a>','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
158
  $shrsb_custom_sprite = '';
159
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
160
  }
161
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')) {
162
+ echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom sprite %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
163
  $shrsb_custom_sprite = '';
164
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
165
  }
166
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
167
+ echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom stylesheet %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
168
  $shrsb_custom_sprite = '';
169
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
170
  }
175
  }
176
  else{
177
  if (!is_writable(SHRSB_UPLOADDIR.'spritegen')) {
178
+ echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: Your %sspritegen folder%s is not writeable by the server! %sNeed Help?%s', 'shrsb'), '<a href="'.SHRSB_UPLOADPATH.'spritegen" target="_blank">','</a>','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
179
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
180
  }
181
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png')) {
182
+ echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom sprite %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.png</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
183
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
184
  }
185
  elseif(file_exists(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css') && is_writable(SHRSB_UPLOADDIR.'spritegen') && !is_writable(SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css')) {
186
+ echo '<div id="warnmessage" class="shrsb-warning"><div class="dialog-left fugue f-warn">'.sprintf(__('WARNING: You need to delete the current custom stylesheet %s before the plugin can write to the folder. %sNeed Help?%s', 'shrsb'), '(<a href="'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css" target="_blank">'.SHRSB_UPLOADDIR.'spritegen/shr-custom-sprite.css</a>)','<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target="_blank">', '</a>').'</div><div class="dialog-right"><img src="'.SHRSB_PLUGPATH.'images/warning-delete.jpg" class="del-x" alt=""/></div></div><div style="clear:both;"></div>';
187
  $status_message = __('Changes saved successfully. However, settings are not optimal until you resolve the issue listed above.', 'shrsb');
188
  }
189
  }
308
  <?php
309
  echo $chmod_required ? sprintf(__('To Fix: Please appropriately
310
  %sCHMOD%s your /spritegen directory.', 'shrsb'),
311
+ '<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo"
312
  target = "_blank" style="color:#ca0c01">', '</a>') : "";
313
  ?>
314
  </td>
387
  <td><span class="tab" style="display:block; font-size: 11px; color: #666666;"><?php _e('Shareaholic Social Analytics', 'shrsb'); ?></span></td>
388
  <td><div class="icon-ok"></div></td>
389
  <td><div class="icon-remove"></div></td>
390
+ <td><a target="_blank" href="https://shareaholic.com/publishers/analytics/<?= $parse['host']?>/">Preview</a></td>
391
  </tr>
392
 
393
  <tr>
476
 
477
  <br />
478
 
479
+ <span style="display:block;"><?php echo sprintf(__('Check out %sour support site%s for additional customization options.', 'shrsb'), '<a target="_blank" href="http://support.shareaholic.com/customer/portal/articles/656378-fb-like-send-google-1-sharing-buttons-support-">', '</a>'); ?></span>
480
  </div>
481
  </div>
482
  </div>
633
  array(
634
  'none' =>__("Don't use a shortener", 'shrsb'),
635
  'awesm' => 'awe.sm',
636
+ 'bitly' => 'bit.ly',
637
  'jmp' => 'j.mp',
638
  'google' => 'Google (goo.gl)',
639
  'supr' => 'StumbleUpon (su.pr)',
821
  <div class="padding">
822
  <div class="dialog-box-information" id="info-manual">
823
  <div class="dialog-left fugue f-info">
824
+ <?php echo sprintf(__('Need help with this? Find it in the %sofficial install guide%s.', 'shrsb'), '<a href="https://shareaholic.com/tools/wordpress/usage-installation">', '</a>'); ?></a>
825
  </div>
826
  <div class="dialog-right">
827
  <img src="<?php echo SHRSB_PLUGPATH; ?>images/information-delete.jpg" class="del-x" alt=""/>
js/index.php CHANGED
@@ -1,6 +1,6 @@
1
  <?php
2
 
3
  //Source of plugin
4
- header("Location: http://www.shareaholic.com");
5
 
6
  ?>
1
  <?php
2
 
3
  //Source of plugin
4
+ header("Location: https://shareaholic.com");
5
 
6
  ?>
js/sexy-bookmarks-public.js CHANGED
@@ -1,82 +1,81 @@
1
- jQuery(document).ready(function () {
2
- jQuery(".shr-bookmarks a.external").attr("target", "_blank");
3
-
4
- var c = jQuery(".shr-bookmarks").height(),
5
- d = jQuery(".shr-bookmarks ul.socials").height(),
6
- h = jQuery(".shr-bookmarks div.shr-getshr").outerHeight(true);
7
-
8
- d > c && jQuery(".shr-bookmarks-expand").hover(function () {
9
- jQuery(this).animate({
10
- height: (d + h) + "px"
11
- }, {
12
- duration: 400,
13
- queue: false
14
- })
15
- }, function () {
16
- jQuery(this).animate({
17
- height: c + "px"
18
- }, {
19
- duration: 400,
20
- queue: false
21
- })
22
- });
23
- if (jQuery(".shr-bookmarks-center") || jQuery(".shr-bookmarks-spaced")) {
24
- var a = jQuery(".shr-bookmarks").width(),
25
- b = jQuery(".shr-bookmarks:first ul.socials li").width(),
26
- e = jQuery(".shr-bookmarks:first ul.socials li").length,
27
- f = Math.floor(a / b);
28
- b = Math.min(f, e) * b;
29
- if (jQuery(".shr-bookmarks-spaced").length > 0) {
30
- a = Math.floor((a - b) / (Math.min(f, e) + 1));
31
- jQuery(".shr-bookmarks ul.socials li").attr("style", 'margin-left:' + a + 'px !important')
32
- } else if (jQuery(true)) {
33
- a = (a - b) / 2;
34
- jQuery(".shr-bookmarks-center").attr("style", 'margin-left:' + a + 'px !important')
35
- }
36
  }
37
-
38
- if( h > 0 && (jQuery(".shr-bookmarks-expand").length == 0
39
- || !(d>c))) {
40
- jQuery(".shr-bookmarks").height(c+h);
41
- }
42
-
43
- var sText = getShareText();
44
- if(sText != "") {
45
- jQuery(".shr-bookmarks div.shr-getshr a").text(sText);
46
- jQuery(".shr-bookmarks").hover(function() {
47
- jQuery(".shr-bookmarks div.shr-getshr").css('visibility','visible');
48
- }, function () {
49
- jQuery(".shr-bookmarks div.shr-getshr").css('visibility','hidden');
50
- });
51
- }
52
  });
53
 
54
  function getShareText() {
55
- var sName = getBrowser();
56
- var sText = "";
57
- if(sName != "") {
58
- sText = "Get Shareaholic for " + sName;
59
- }
60
- return sText;
61
  }
62
 
63
  function getBrowser() {
64
- var sUA = navigator.userAgent;
65
- var sName = "";
66
- if(sUA.indexOf("MSIE") != -1 ) {
67
- sName = "Internet Explorer";
68
- } else if(sUA.indexOf("Firefox") != -1 ) {
69
- sName = "Firefox";
70
- } else if(sUA.indexOf("Flock") != -1 ) {
71
- sName = "Flock";
72
- } else if(sUA.indexOf("Chrome") != -1 ) {
73
- sName = "Google Chrome";
74
- } else if(sUA.indexOf("Safari") != -1 ) {
75
- sName = "Safari";
76
- } else if(sUA.indexOf("Opera") != -1 ) {
77
- sName = "Opera";
78
- } else if(sUA.indexOf("Songbird") != -1 ) {
79
- sName = "Songbird";
80
- }
81
- return sName;
82
- }
1
+ jQuery(document).ready(function() {
2
+ jQuery(".shr-bookmarks a.external").attr("target", "_blank");
3
+
4
+ var c = jQuery(".shr-bookmarks").height(),
5
+ d = jQuery(".shr-bookmarks ul.socials").height(),
6
+ h = jQuery(".shr-bookmarks div.shr-getshr").outerHeight(true);
7
+
8
+ d > c && jQuery(".shr-bookmarks-expand").hover(function() {
9
+ jQuery(this).animate({
10
+ height: (d + h) + "px"
11
+ }, {
12
+ duration: 400,
13
+ queue: false
14
+ })
15
+ }, function() {
16
+ jQuery(this).animate({
17
+ height: c + "px"
18
+ }, {
19
+ duration: 400,
20
+ queue: false
21
+ })
22
+ });
23
+ if (jQuery(".shr-bookmarks-center") || jQuery(".shr-bookmarks-spaced")) {
24
+ var a = jQuery(".shr-bookmarks").width(),
25
+ b = jQuery(".shr-bookmarks:first ul.socials li").width(),
26
+ e = jQuery(".shr-bookmarks:first ul.socials li").length,
27
+ f = Math.floor(a / b);
28
+ b = Math.min(f, e) * b;
29
+ if (jQuery(".shr-bookmarks-spaced").length > 0) {
30
+ a = Math.floor((a - b) / (Math.min(f, e) + 1));
31
+ jQuery(".shr-bookmarks ul.socials li").attr("style", 'margin-left:' + a + 'px !important')
32
+ } else if (jQuery(true)) {
33
+ a = (a - b) / 2;
34
+ jQuery(".shr-bookmarks-center").attr("style", 'margin-left:' + a + 'px !important')
 
35
  }
36
+ }
37
+
38
+ if (h > 0 && (jQuery(".shr-bookmarks-expand").length == 0 || !(d > c))) {
39
+ jQuery(".shr-bookmarks").height(c + h);
40
+ }
41
+
42
+ var sText = getShareText();
43
+ if (sText != "") {
44
+ jQuery(".shr-bookmarks div.shr-getshr a").text(sText);
45
+ jQuery(".shr-bookmarks").hover(function() {
46
+ jQuery(".shr-bookmarks div.shr-getshr").css('visibility', 'visible');
47
+ }, function() {
48
+ jQuery(".shr-bookmarks div.shr-getshr").css('visibility', 'hidden');
49
+ });
50
+ }
51
  });
52
 
53
  function getShareText() {
54
+ var sName = getBrowser();
55
+ var sText = "";
56
+ if (sName != "") {
57
+ sText = "Get Shareaholic for " + sName;
58
+ }
59
+ return sText;
60
  }
61
 
62
  function getBrowser() {
63
+ var sUA = navigator.userAgent;
64
+ var sName = "";
65
+ if (sUA.indexOf("MSIE") != -1) {
66
+ sName = "Internet Explorer";
67
+ } else if (sUA.indexOf("Firefox") != -1) {
68
+ sName = "Firefox";
69
+ } else if (sUA.indexOf("Flock") != -1) {
70
+ sName = "Flock";
71
+ } else if (sUA.indexOf("Chrome") != -1) {
72
+ sName = "Google Chrome";
73
+ } else if (sUA.indexOf("Safari") != -1) {
74
+ sName = "Safari";
75
+ } else if (sUA.indexOf("Opera") != -1) {
76
+ sName = "Opera";
77
+ } else if (sUA.indexOf("Songbird") != -1) {
78
+ sName = "Songbird";
79
+ }
80
+ return sName;
81
+ }
js/shareaholic-admin.js CHANGED
@@ -1,732 +1,726 @@
1
  jQuery(document).ready(function() {
2
- if (jQuery('#iconator')) jQuery('#shrsb-networks').sortable({
3
- delay: 250,
4
- cursor: 'move',
5
- scroll: true,
6
- revert: true,
7
- opacity: 0.7,
8
- placeholder: 'dropzoneNetworks',
9
- forcePlaceholderSize: true,
10
- items: 'li'
11
- });
12
- if (jQuery('.shrsb-bookmarks')) { jQuery('#shrsb-sortables').sortable({
13
- handle: '.box-mid-head',
14
- delay: 250,
15
- cursor: 'move',
16
- scroll: true,
17
- revert: true,
18
- opacity: 0.7
19
- });
20
-
21
 
22
  jQuery('#buttonPreviewsTop,#buttonPreviewsBottom').sortable({
23
- delay: 250,
24
- cursor: 'move',
25
- scroll: true,
26
- revert: true,
27
- opacity: 0.7,
28
- placeholder: 'dropzone',
29
- forcePlaceholderSize: true,
30
- items: 'li'
31
- });
32
-
33
-
34
- //Select all icons upon clicking
35
- jQuery('#sel-all').click(function() {
36
- jQuery('#shrsb-networks').each(function() {
37
- jQuery('#shrsb-networks input').attr('checked', 'checked');
38
- });
39
- });
40
-
41
- //Deselect all icons upon clicking
42
- jQuery('#sel-none').click(function() {
43
- jQuery('#shrsb-networks').each(function() {
44
- jQuery('#shrsb-networks input').removeAttr('checked');
45
- });
46
- });
47
-
48
- //Select most popular icons upon clicking
49
- jQuery('#sel-pop').click(function() {
50
- jQuery('#shrsb-networks').each(function() {
51
- jQuery('#shrsb-networks input').removeAttr('checked');
52
- });
53
- jQuery('#shrsb-networks').each(function() {
54
- jQuery('#shr-facebook').attr('checked', 'checked');
55
- jQuery('#shr-twitter').attr('checked', 'checked');
56
- jQuery('#shr-linkedin').attr('checked', 'checked');
57
- jQuery('#shr-googleplus').attr('checked', 'checked');
58
- jQuery('#shr-googlebookmarks').attr('checked', 'checked');
59
- jQuery('#shr-stumbleupon').attr('checked', 'checked');
60
- jQuery('#shr-pinterest').attr('checked', 'checked');
61
- jQuery('#shr-fastmail').attr('checked', 'checked');
62
- jQuery('#shr-printfriendly').attr('checked', 'checked');
63
- });
64
- });
65
-
66
- //Swap enabled/disabled between donation options onclick
67
- jQuery('#preset-amounts').parent('label').click(function() {
68
- jQuery('#custom-amounts').attr('disabled', 'disabled').css({'cursor':'none'});
69
- jQuery('#preset-amounts').removeAttr('disabled');
70
- });
71
-
72
- //Swap enabled/disabled between donation options onclick
73
- jQuery('#custom-amounts').parent('label').click(function() {
74
- jQuery('#preset-amounts').attr('disabled', 'disabled').css({'cursor':'none'});
75
- jQuery('#custom-amounts').removeAttr('disabled');
76
- });
77
-
78
- // Handle tiny form submission upon selecting option to hide sponsor messages
79
- jQuery('#hide-sponsors').click(function() {
80
- jQuery('#no-sponsors').submit();
81
- });
82
-
83
- // Create a universal click function to close status messages...
84
- jQuery('.del-x').click(function() {
85
- jQuery(this).parent('div').parent('div').fadeOut();
86
- });
87
-
88
- // if checkbox isn't already checked, open warning message...
89
- jQuery("#custom-mods").click(function() {
90
- if(jQuery(this).is(":not(:checked)")) {
91
- jQuery("#custom-mods-notice").css("display", "none");
92
- }
93
- else {
94
- jQuery("#custom-mods-notice").fadeIn("fast");
95
- jQuery("#custom-mods-notice").css("display", "table");
96
- }
97
- });
98
-
99
- // close custom mods warning when they click the X
100
- jQuery(".custom-mods-notice-close").click(function() {
101
- jQuery("#custom-mods-notice").fadeOut('fast');
102
- });
103
-
104
- // Apply "smart options" to BG image
105
- jQuery('#bgimg-yes').click(function() {
106
- if(jQuery(this).is(':checked')) {
107
- jQuery('#bgimgs').fadeIn('slow');
108
- }
109
- else {
110
- jQuery('#bgimgs').css('display', 'none');
111
- }
112
- });
113
-
114
- // Apply "smart options" to Twitter
115
- jQuery('#shr-twitter').click(function() {
116
- if (jQuery(this).attr('checked')) {
117
- jQuery('#twitter-defaults').fadeIn('fast');
118
- }
119
- else {
120
- jQuery('#twitter-defaults').fadeOut();
121
- }
122
- });
123
-
124
- jQuery('#shorty').change(function() {
125
- jQuery('#shortyapimdiv-bitly').fadeOut('fast');
126
- jQuery('#shortyapimdiv-awesm').fadeOut('fast');
127
- jQuery('#shortyapimdiv-supr').fadeOut('fast');
128
- jQuery('#shortyapimdiv-jmp').fadeOut('fast');
129
- if(this.value=='bitly'){
130
- jQuery('#shortyapimdiv-bitly').fadeIn('fast');
131
- }else if(this.value=='awesm'){
132
- jQuery('#shortyapimdiv-awesm').fadeIn('fast');
133
- }else if(this.value=='supr'){
134
- jQuery('#shortyapimdiv-supr').fadeIn('fast');
135
- } else if(this.value=='jmp'){
136
- jQuery('#shortyapimdiv-jmp').fadeIn('fast');
137
- }
138
- });
139
-
140
-
141
- jQuery('#shortyapichk-supr').click(function() {
142
- if (this.checked) {
143
- jQuery('#shortyapidiv-supr').fadeIn('fast');
144
- }
145
- else {
146
- jQuery('#shortyapidiv-supr').fadeOut('fast');
147
- }
148
- });
149
 
150
 
151
  jQuery('#likeButtonSetTop-yes').click(function() {
152
- if (this.checked) {
153
- jQuery('.likeButtonsAvailableTop').fadeIn('fast');
154
- }
155
  });
156
  jQuery('#likeButtonSetTop-no').click(function() {
157
- if (this.checked) {
158
- jQuery('.likeButtonsAvailableTop').fadeOut('fast');
159
- }
160
  });
161
 
162
  jQuery('#likeButtonSetBottom-yes').click(function() {
163
- if (this.checked) {
164
- jQuery('.likeButtonsAvailableBottom').fadeIn('fast');
165
- }
166
  });
167
  jQuery('#likeButtonSetBottom-no').click(function() {
168
- if (this.checked) {
169
- jQuery('.likeButtonsAvailableBottom').fadeOut('fast');
170
- }
171
  });
172
 
173
-
174
-
175
  jQuery('#fbLikeButtonTop-yes').click(function() {
176
- if (this.checked) {
177
- jQuery('.likebuttonpreviewTop').fadeIn('fast');
178
- }
179
  });
180
  jQuery('#fbLikeButtonBottom-yes').click(function() {
181
- if (this.checked) {
182
- jQuery('.likebuttonpreviewBottom').fadeIn('fast');
183
- }
184
  });
185
 
186
  jQuery('#fbLikeButtonTop-no').click(function() {
187
- if (this.checked) {
188
- jQuery('.likebuttonpreviewTop').fadeOut('fast');
189
- }
190
  });
191
  jQuery('#fbLikeButtonBottom-no').click(function() {
192
- if (this.checked) {
193
- jQuery('.likebuttonpreviewBottom').fadeOut('fast');
194
- }
195
  });
196
 
197
  jQuery('#fbSendButtonBottom-yes').click(function() {
198
- if (this.checked) {
199
- jQuery('.sendbuttonpreviewBottom').fadeIn('fast');
200
- }
201
  });
202
  jQuery('#fbSendButtonTop-yes').click(function() {
203
- if (this.checked) {
204
- jQuery('.sendbuttonpreviewTop').fadeIn('fast');
205
- }
206
  });
207
 
208
  jQuery('#fbSendButtonTop-no').click(function() {
209
- if (this.checked) {
210
- jQuery('.sendbuttonpreviewTop').fadeOut('fast');
211
- }
212
  });
213
  jQuery('#fbSendButtonBottom-no').click(function() {
214
- if (this.checked) {
215
- jQuery('.sendbuttonpreviewBottom').fadeOut('fast');
216
- }
217
  });
218
 
219
  jQuery('#googlePlusOneButtonTop-yes').click(function() {
220
- if (this.checked) {
221
- jQuery('.plusonepreviewTop').fadeIn('fast');
222
- }
223
  });
224
 
225
  jQuery('#googlePlusOneButtonTop-no').click(function() {
226
- if (this.checked) {
227
- jQuery('.plusonepreviewTop').fadeOut('fast');
228
- }
229
  });
230
  jQuery('#googlePlusOneButtonBottom-yes').click(function() {
231
- if (this.checked) {
232
- jQuery('.plusonepreviewBottom').fadeIn('fast');
233
- }
234
  });
235
 
236
  jQuery('#googlePlusOneButtonBottom-no').click(function() {
237
- if (this.checked) {
238
- jQuery('.plusonepreviewBottom').fadeOut('fast');
239
- }
240
  });
241
  jQuery('#tweetButtonTop-yes').click(function() {
242
- if (this.checked) {
243
- jQuery('.tweetbuttonpreviewTop').fadeIn('fast');
244
- }
245
  });
246
 
247
  jQuery('#tweetButtonTop-no').click(function() {
248
- if (this.checked) {
249
- jQuery('.tweetbuttonpreviewTop').fadeOut('fast');
250
- }
251
  });
252
  jQuery('#tweetButtonBottom-yes').click(function() {
253
- if (this.checked) {
254
- jQuery('.tweetbuttonpreviewBottom').fadeIn('fast');
255
- }
256
  });
257
 
258
  jQuery('#tweetButtonBottom-no').click(function() {
259
- if (this.checked) {
260
- jQuery('.tweetbuttonpreviewBottom').fadeOut('fast');
261
- }
262
- });
263
-
264
- jQuery('#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,,#tweetButtonTop-yes').click(function() {
265
- if (this.checked) {
266
- jQuery('.likeButtonSetOptionsTop').fadeIn('fast');
267
- }
268
- });
269
- jQuery('#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,,#tweetButtonBottom-yes').click(function() {
270
- if (this.checked) {
271
- jQuery('.likeButtonSetOptionsBottom').fadeIn('fast');
272
- }
273
- });
274
 
275
  jQuery('#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no').click(function() {
276
- if(jQuery('#fbLikeButtonTop-no').get(0).checked && jQuery('#googlePlusOneButtonTop-no').get(0).checked && jQuery('#tweetButtonTop-no').get(0).checked
277
- && jQuery('#fbSendButtonTop-no').get(0).checked) {
278
- jQuery('.likeButtonSetOptionsTop').fadeOut('fast');
279
- }
280
- });
281
  jQuery('#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no').click(function() {
282
- if(jQuery('#fbLikeButtonBottom-no').get(0).checked && jQuery('#googlePlusOneButtonBottom-no').get(0).checked && jQuery('#tweetButtonBottom-no').get(0).checked
283
- && jQuery('#fbSendButtonBottom-no').get(0).checked) {
284
- jQuery('.likeButtonSetOptionsBottom').fadeOut('fast');
285
- }
286
- });
287
 
288
  jQuery('#designer_toolTips-yes').click(function() {
289
- if (this.checked) {
290
- jQuery('.designer_toolTip_prefs').fadeIn('fast');
291
- }
292
- });
 
293
  jQuery('#designer_toolTips-no').click(function() {
294
- if (this.checked) {
295
- jQuery('.designer_toolTip_prefs').fadeOut('fast');
296
- }
297
- });
298
-
299
- jQuery('#pubGaSocial-yes').click(function() {
300
- if (this.checked) {
301
- jQuery('.pubGaSocial_prefs').fadeIn('fast');
302
- }
303
- });
304
- jQuery('#pubGaSocial-no').click(function() {
305
- if (this.checked) {
306
- jQuery('.pubGaSocial_prefs').fadeOut('fast');
307
- }
308
- });
309
-
310
- jQuery('#recommendations-yes').click(function() {
311
- if (this.checked) {
312
- jQuery('.recommendations_prefs-1').fadeIn('fast');
313
- var thumbEnableChecked = jQuery('#recommendations-style-image').get(0).checked;
314
- if (thumbEnableChecked) {
315
- jQuery('.recommendations_prefs-2').fadeIn('fast');
316
- }
317
- }
318
- });
319
  jQuery('#recommendations-no').click(function() {
320
- if (this.checked) {
321
- jQuery('.recommendations_prefs-1').fadeOut('fast');
322
- jQuery('.recommendations_prefs-2').fadeOut('fast');
323
- }
324
- });
325
- jQuery('#recommendations-style-image').click(function() {
326
- if (this.checked) {
327
- jQuery('.recommendations_prefs-2').fadeIn('fast');
328
- }
329
- });
 
 
330
  jQuery('#recommendations-style-text').click(function() {
331
- if (this.checked) {
332
- jQuery('.recommendations_prefs-2').fadeOut('fast');
333
- }
334
- });
335
- jQuery('#cb-yes').click(function() {
336
- if (this.checked) {
337
- jQuery('.cb_prefs').fadeIn('fast');
338
- }
339
- });
 
 
340
  jQuery('#cb-no').click(function() {
341
- if (this.checked) {
342
- jQuery('.cb_prefs').fadeOut('fast');
343
- }
344
- });
345
-
346
  jQuery('#useSbSettings-yes').click(function() {
347
- if (this.checked) {
348
- jQuery('.topbar_prefs').fadeOut('fast');
349
- }
350
- });
 
351
  jQuery('#useSbSettings-no').click(function() {
352
- if (this.checked) {
353
- jQuery('.topbar_prefs').fadeIn('fast');
354
- }
355
- });
356
-
357
- jQuery('#position-above').click(function() {
358
- if (jQuery('#info-manual').is(':visible')) {
359
- jQuery('#info-manual').fadeOut();
360
- }
361
- });
362
-
363
- jQuery('#position-below').click(function() {
364
- if (jQuery('#info-manual').is(':visible')) {
365
- jQuery('#info-manual').fadeOut();
366
- }
367
- });
368
-
369
- jQuery('#position-manual').click(function() {
370
- if (jQuery('#info-manual').is(':not(:visible)')) {
371
- jQuery('#info-manual').fadeIn('slow');
372
- }
373
- });
374
-
375
- jQuery('.dtags-info').click(function() {
376
- jQuery('#tag-info').fadeIn('fast');
377
- });
378
-
379
- jQuery('.dtags-close').click(function() {
380
- jQuery('#tag-info').fadeOut();
381
- });
382
-
383
- jQuery('.shebang-info').click(function() {
384
- jQuery('#info-manual').fadeIn('fast');
385
- });
386
-
387
- jQuery('#shrsbresetallwarn-cancel').click(function() {
388
- jQuery('#shrsbresetallwarn').fadeOut();
389
- });
390
-
391
- jQuery('#shrsbresetallwarn-yes').click(function() {
392
- this.checked=jQuery('#shrsbresetallwarn').fadeOut();
393
- this.checked=jQuery('#resetalloptionsaccept').submit();
394
- this.checked=!this.checked;
395
- });
396
-
397
-
398
- // Load character count and tweet output demo onload
399
- var dfaultload = 0;
400
- var dfaulttitle = 8;
401
- var dfaulturl = 13;
402
- if(typeof(jQuery("#tweetconfig")) != "undefined" && jQuery("#tweetconfig").length > 0 ) {
403
- if(jQuery("#tweetconfig").val().indexOf('${title}')!=-1) {
404
- dfaultload = Math.floor(dfaultload + dfaulttitle);
405
- }
406
- if(jQuery("#tweetconfig").val().indexOf('${short_link}')!=-1) {
407
- dfaultload = Math.floor(dfaultload + dfaulturl);
408
- }
409
- var mathdoneload = Math.floor(jQuery('#tweetconfig').val().length - dfaultload);
410
- if(mathdoneload >= 50) {
411
- jQuery('#tweetcounter span').addClass('error');
412
- }
413
- else {
414
- jQuery('#tweetcounter span').removeClass();
415
- }
416
- jQuery('#tweetcounter span').html(mathdoneload);
417
- var endvalueload = jQuery('#tweetconfig').val();
418
- endvalueload = endvalueload.replace('${title}', 'Some fancy post title');
419
- endvalueload = endvalueload.replace('${short_link}', 'http://goo.gl/dbqlx');
420
- var endtweetload = endvalueload;
421
- jQuery('#tweetoutput span').html(endtweetload);
422
 
 
 
 
 
 
423
 
 
 
 
 
 
424
 
425
- jQuery('#tweetconfig').keyup(function() {
426
- var dfaults = 0;
427
- var title = 8;
428
- var url = 13;
 
429
 
430
- if(jQuery("#tweetconfig").val().indexOf('${title}')!=-1) {
431
- dfaults = Math.floor(dfaults + title);
432
- }
433
- if(jQuery("#tweetconfig").val().indexOf('${short_link}')!=-1) {
434
- dfaults = Math.floor(dfaults + url);
435
- }
436
 
437
- var mathdone = Math.floor(jQuery(this).val().length - dfaults);
 
 
438
 
439
- if(mathdone >= 50) {
440
- jQuery('#tweetcounter span').addClass('error');
441
- alert("You need to leave room for the short URL and/or post title...");
442
- return false;
443
- }
444
- else {
445
- jQuery('#tweetcounter span').removeClass();
446
- }
447
- jQuery('#tweetcounter span').html(mathdone);
448
 
449
- var endvalue = jQuery(this).val();
 
 
450
 
451
- endvalue = endvalue.replace('${title}', 'Some fancy post title');
452
- endvalue = endvalue.replace('${short_link}', 'http://goo.gl/dbqlx');
 
 
 
453
 
454
- var endtweet = endvalue;
455
 
456
- jQuery('#tweetoutput span').html(endtweet);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
 
458
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
459
  }
460
  // Check if like button is included and show the position prefs
461
-
462
  //var likeBtnChecked = jQuery('#fbLikeButton-yes').get(0).checked || jQuery('#googlePlusOneButton-yes').get(0).checked || jQuery('#fbSendButton-yes').get(0).checked;
463
 
464
-
465
- if(typeof(jQuery('#likeButtonSetTop-yes')) != "undefined" && jQuery('#likeButtonSetTop-yes').length >0 ){
466
- if (jQuery('#likeButtonSetTop-yes').get(0).checked) {
467
- jQuery('.likeButtonsAvailableTop').fadeIn('fast');
468
- }
469
 
470
 
471
- if(jQuery('#fbLikeButtonTop-yes').get(0).checked
472
- || jQuery('#googlePlusOneButtonTop-yes').get(0).checked
473
- || jQuery('#tweetButtonTop-yes').get(0).checked
474
- || jQuery('#fbSendButtonTop-yes').get(0).checked) {
475
- jQuery('.likeButtonSetOptionsTop').fadeIn('fast');
476
- }
477
 
478
- if(jQuery('#fbLikeButtonTop-yes').get(0).checked) {
479
- jQuery('.likebuttonpreviewTop').fadeIn('fast');
480
- }
481
 
482
- if(jQuery('#fbSendButtonTop-yes').get(0).checked) {
483
- jQuery('.sendbuttonpreviewTop').fadeIn('fast');
484
- }
485
 
486
- if(jQuery('#googlePlusOneButtonTop-yes').get(0).checked) {
487
- jQuery('.plusonepreviewTop').fadeIn('fast');
488
- }
489
 
490
- if(jQuery('#tweetButtonTop-yes').get(0).checked) {
491
- jQuery('.tweetbuttonpreviewTop').fadeIn('fast');
492
- }
493
  }
494
 
495
- if(typeof(jQuery('#likeButtonSetBottom-yes')) != "undefined" && jQuery('#likeButtonSetBottom-yes').length >0 ){
496
- if (jQuery('#likeButtonSetBottom-yes').get(0).checked) {
497
- jQuery('.likeButtonsAvailableBottom').fadeIn('fast');
498
- }
499
-
500
- if(jQuery('#fbLikeButtonBottom-yes').get(0).checked
501
- || jQuery('#googlePlusOneButtonBottom-yes').get(0).checked
502
- || jQuery('#tweetButtonBottom-yes').get(0).checked
503
- || jQuery('#fbSendButtonBottom-yes').get(0).checked) {
504
- jQuery('.likeButtonSetOptionsBottom').fadeIn('fast');
505
- }
506
-
507
- if(jQuery('#fbLikeButtonBottom-yes').get(0).checked) {
508
- jQuery('.likebuttonpreviewBottom').fadeIn('fast');
509
- }
510
 
511
- if(jQuery('#fbSendButtonBottom-yes').get(0).checked) {
512
- jQuery('.sendbuttonpreviewBottom').fadeIn('fast');
513
- }
514
 
515
- if(jQuery('#googlePlusOneButtonBottom-yes').get(0).checked) {
516
- jQuery('.plusonepreviewBottom').fadeIn('fast');
517
- }
518
- if(jQuery('#tweetButtonBottom-yes').get(0).checked) {
519
- jQuery('.tweetbuttonpreviewBottom').fadeIn('fast');
520
- }
 
 
 
 
 
 
 
 
521
 
522
  }
523
-
524
  // Check if designer tooltips are included and show the color prefs
525
- if(typeof(jQuery('#designer_toolTips-yes')) != "undefined" && jQuery('#designer_toolTips-yes').length >0 ){
526
- var designerToolTipsChecked = jQuery('#designer_toolTips-yes').get(0).checked;
527
- if (designerToolTipsChecked) {
528
- jQuery('.designer_toolTip_prefs').fadeIn('fast');
 
 
 
 
 
 
 
 
 
 
 
 
 
529
  }
530
-
531
- jQuery('#tip_bg_color_picker_holder').ColorPicker({
532
- flat: true,
533
- color: jQuery("#tip_bg_color").val(),
534
- onChange : function(hsb, hex, rgb, el) {
535
- jQuery("#tip_bg_color").val('#' + hex);
536
- jQuery('#tip_bg_color_picker div').css('backgroundColor', '#' + hex);
537
- },
538
- onSubmit: function(hsb, hex, rgb, el) {
539
- jQuery("#tip_bg_color").val('#' + hex);
540
- jQuery('#tip_bg_color_picker div').css('backgroundColor', '#' + hex);
541
- jQuery('#tip_bg_color_picker_holder').toggle();
542
- }
543
- });
544
-
545
- // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
546
- jQuery('#tip_bg_color_picker_holder').find('input').each(function(index) {
547
- jQuery(this).attr("maxlength","50") ;
548
- });
549
-
550
- jQuery('#tip_bg_color_picker div').bind('click', function() {
551
- jQuery('#tip_bg_color_picker_holder').toggle();
552
- jQuery('#tip_bg_color_picker_holder').ColorPickerSetColor(jQuery("#tip_bg_color").val());
553
- // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
554
- jQuery('body').trigger('click');
555
- if(jQuery('#tip_bg_color_picker_holder').is(':visible')) {
556
- jQuery('body').bind("click",function () {
557
- jQuery('#tip_bg_color_picker_holder').hide();
558
- jQuery('body').unbind("click");
559
- });
560
- }
561
- return false;
562
- });
563
-
564
- jQuery('#tip_bg_color_reset').bind('click', function() {
565
- jQuery("#tip_bg_color").val('#000000');
566
- jQuery('#tip_bg_color_picker div').css('backgroundColor', '#000000');
567
- });
568
- // Prevent the body click handler from firing if the click is inside the color picker
569
- jQuery('#tip_bg_color_picker_holder').click(function() { return false;});
570
-
571
- jQuery('#tip_text_color_picker_holder').ColorPicker({
572
- flat: true,
573
- color: jQuery("#tip_text_color").val(),
574
- onChange : function(hsb, hex, rgb, el) {
575
- jQuery("#tip_text_color").val('#' + hex);
576
- jQuery('#tip_text_color_picker div').css('backgroundColor', '#' + hex);
577
- },
578
- onSubmit: function(hsb, hex, rgb, el) {
579
- jQuery("#tip_text_color").val('#' + hex);
580
- jQuery('#tip_text_color_picker div').css('backgroundColor', '#' + hex);
581
- jQuery('#tip_text_color_picker_holder').toggle();
582
- }
583
- });
584
- // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
585
- jQuery('#tip_text_color_picker_holder').find('input').each(function(index) {
586
- jQuery(this).attr("maxlength","50") ;
587
- });
588
-
589
- jQuery('#tip_text_color_picker div').bind('click', function() {
590
- jQuery('#tip_text_color_picker_holder').toggle();
591
- jQuery('#tip_text_color_picker_holder').ColorPickerSetColor(jQuery("#tip_text_color").val());
592
- // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
593
- jQuery('body').trigger('click');
594
- if(jQuery('#tip_text_color_picker_holder').is(':visible')) {
595
- jQuery('body').bind("click",function () {
596
- jQuery('#tip_text_color_picker_holder').hide();
597
- jQuery('body').unbind("click");
598
- });
599
- }
600
- return false;
601
- });
602
- // Prevent the body click handler from firing if the click is inside the color picker
603
- jQuery('#tip_text_color_picker_holder').click(function() { return false;});
604
-
605
- jQuery('#tip_text_color_reset').bind('click', function() {
606
- jQuery("#tip_text_color").val('#ffffff');
607
- jQuery('#tip_text_color_picker div').css('backgroundColor', '#ffffff');
608
- });
609
 
610
  }
611
 
612
  // Check if social analytics is enabled or not, if enabled show the preferences
613
- if(typeof(jQuery('#pubGaSocial-yes')) != "undefined" && jQuery('#pubGaSocial-yes').length >0 ){
614
- var socialEnableChecked = jQuery('#pubGaSocial-yes').get(0).checked;
615
- if (socialEnableChecked) {
616
- jQuery('.pubGaSocial_prefs').fadeIn('fast');
617
- }
618
  }
619
-
620
  // Check if social analytics is enabled or not, if enabled show the preferences
621
- if(typeof(jQuery('#recommendations-yes')) != "undefined" && jQuery('#recommendations-yes').length >0 ){
622
- var socialEnableChecked = jQuery('#recommendations-yes').get(0).checked;
623
- if (socialEnableChecked) {
624
- jQuery('.recommendations_prefs-1').fadeIn('fast');
625
- var thumbEnableChecked = jQuery('#recommendations-style-image').get(0).checked;
626
- if (thumbEnableChecked) {
627
- jQuery('.recommendations_prefs-2').fadeIn('fast');
628
- }
629
  }
 
630
  }
631
-
632
  // Check if classic bookmarks is enabled or not, if enabled show the preferences
633
- if(typeof(jQuery('#cb-yes')) != "undefined" && jQuery('#cb-yes').length >0 ){
634
- var socialEnableChecked = jQuery('#cb-yes').get(0).checked;
635
- if (socialEnableChecked) {
636
- jQuery('.cb_prefs').fadeIn('fast');
637
- }
638
  }
639
-
640
  //For the Top Sharebar custom background color option
641
- if(typeof(jQuery('#useSbSettings-no')) != "undefined" && jQuery('#useSbSettings-no').length >0 ){
642
- var useSbSettingsChecked = jQuery('#useSbSettings-no').get(0).checked;
643
- if (useSbSettingsChecked) {
644
- jQuery('.topbar_prefs').fadeIn('fast');
 
 
 
 
 
 
 
 
 
 
 
 
 
645
  }
646
-
647
- jQuery('#tb_bg_color_picker_holder').ColorPicker({
648
- flat: true,
649
- color: jQuery("#tb_bg_color").val(),
650
- onChange : function(hsb, hex, rgb, el) {
651
- jQuery("#tb_bg_color").val('#' + hex);
652
- jQuery('#tb_bg_color_picker div').css('backgroundColor', '#' + hex);
653
- },
654
- onSubmit: function(hsb, hex, rgb, el) {
655
- jQuery("#tb_bg_color").val('#' + hex);
656
- jQuery('#tb_bg_color_picker div').css('backgroundColor', '#' + hex);
657
- jQuery('#tb_bg_color_picker_holder').toggle();
658
- }
659
- });
660
-
661
- // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
662
- jQuery('#tb_bg_color_picker_holder').find('input').each(function(index) {
663
- jQuery(this).attr("maxlength","50") ;
664
- });
665
-
666
- jQuery('#tb_bg_color_picker div').bind('click', function() {
667
- jQuery('#tb_bg_color_picker_holder').toggle();
668
- jQuery('#tb_bg_color_picker_holder').ColorPickerSetColor(jQuery("#tb_bg_color").val());
669
- // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
670
- jQuery('body').trigger('click');
671
- if(jQuery('#tb_bg_color_picker_holder').is(':visible')) {
672
- jQuery('body').bind("click",function () {
673
- jQuery('#tb_bg_color_picker_holder').hide();
674
- jQuery('body').unbind("click");
675
- });
676
- }
677
- return false;
678
- });
679
-
680
- jQuery('#tb_bg_color_reset').bind('click', function() {
681
- jQuery("#tb_bg_color").val('#000000');
682
- jQuery('#tb_bg_color_picker div').css('backgroundColor', '#000000');
683
- });
684
- // Prevent the body click handler from firing if the click is inside the color picker
685
- jQuery('#tb_bg_color_picker_holder').click(function() { return false;});
686
-
687
- //For the Show/Hide Button color on the toolbar
688
- jQuery('#tb_border_color_picker_holder').ColorPicker({
689
- flat: true,
690
- color: jQuery("#tb_border_color").val(),
691
- onChange : function(hsb, hex, rgb, el) {
692
- jQuery("#tb_border_color").val('#' + hex);
693
- jQuery('#tb_border_color_picker div').css('backgroundColor', '#' + hex);
694
- },
695
- onSubmit: function(hsb, hex, rgb, el) {
696
- jQuery("#tb_border_color").val('#' + hex);
697
- jQuery('#tb_border_color_picker div').css('backgroundColor', '#' + hex);
698
- jQuery('#tb_border_color_picker_holder').toggle();
699
- }
700
- });
701
-
702
- // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
703
- jQuery('#tb_border_color_picker_holder').find('input').each(function(index) {
704
- jQuery(this).attr("maxlength","50") ;
705
- });
706
-
707
- jQuery('#tb_border_color_picker div').bind('click', function() {
708
- jQuery('#tb_border_color_picker_holder').toggle();
709
- jQuery('#tb_border_color_picker_holder').ColorPickerSetColor(jQuery("#tb_border_color").val());
710
- // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
711
- jQuery('body').trigger('click');
712
- if(jQuery('#tb_border_color_picker_holder').is(':visible')) {
713
- jQuery('body').bind("click",function () {
714
- jQuery('#tb_border_color_picker_holder').hide();
715
- jQuery('body').unbind("click");
716
- });
717
- }
718
- return false;
719
- });
720
-
721
- jQuery('#tb_border_color_reset').bind('click', function() {
722
- jQuery("#tb_border_color").val('#000000');
723
- jQuery('#tb_border_color_picker div').css('backgroundColor', '#000000');
724
- });
725
- // Prevent the body click handler from firing if the click is inside the color picker
726
- jQuery('#tb_border_color_picker_holder').click(function() { return false;});
727
 
728
  }
729
- }});
 
730
 
731
 
732
  /**
@@ -737,33 +731,476 @@ jQuery(document).ready(function() {
737
  * Dual licensed under the MIT and GPL licenses
738
  *
739
  */
740
- (function($){var ColorPicker=function(){var
741
- ids={},inAction,charMin=65,visible,tpl='<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',defaults={eventName:'click',onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},color:'ff0000',livePreview:true,flat:false},fillRGBFields=function(hsb,cal){var rgb=HSBToRGB(hsb);$(cal).data('colorpicker').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();},fillHSBFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();},fillHexFields=function(hsb,cal){$(cal).data('colorpicker').fields.eq(0).val(HSBToHex(hsb)).end();},setSelector=function(hsb,cal){$(cal).data('colorpicker').selector.css('backgroundColor','#'+HSBToHex({h:hsb.h,s:100,b:100}));$(cal).data('colorpicker').selectorIndic.css({left:parseInt(150*hsb.s/100,10),top:parseInt(150*(100-hsb.b)/100,10)});},setHue=function(hsb,cal){$(cal).data('colorpicker').hue.css('top',parseInt(150-150*hsb.h/360,10));},setCurrentColor=function(hsb,cal){$(cal).data('colorpicker').currentColor.css('backgroundColor','#'+HSBToHex(hsb));},setNewColor=function(hsb,cal){$(cal).data('colorpicker').newColor.css('backgroundColor','#'+HSBToHex(hsb));},keyDown=function(ev){var pressedKey=ev.charCode||ev.keyCode||-1;if((pressedKey>charMin&&pressedKey<=90)||pressedKey==32){return false;}
742
- var cal=$(this).parent().parent();if(cal.data('colorpicker').livePreview===true){change.apply(this);}},change=function(ev){var cal=$(this).parent().parent(),col;if(this.parentNode.className.indexOf('_hex')>0){cal.data('colorpicker').color=col=HexToHSB(fixHex(this.value));}else if(this.parentNode.className.indexOf('_hsb')>0){cal.data('colorpicker').color=col=fixHSB({h:parseInt(cal.data('colorpicker').fields.eq(4).val(),10),s:parseInt(cal.data('colorpicker').fields.eq(5).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(6).val(),10)});}else{cal.data('colorpicker').color=col=RGBToHSB(fixRGB({r:parseInt(cal.data('colorpicker').fields.eq(1).val(),10),g:parseInt(cal.data('colorpicker').fields.eq(2).val(),10),b:parseInt(cal.data('colorpicker').fields.eq(3).val(),10)}));}
743
- if(ev){fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));}
744
- setSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));cal.data('colorpicker').onChange.apply(cal,[col,HSBToHex(col),HSBToRGB(col)]);},blur=function(ev){var cal=$(this).parent().parent();cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');},focus=function(){charMin=this.parentNode.className.indexOf('_hex')>0?70:65;$(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');$(this).parent().addClass('colorpicker_focus');},downIncrement=function(ev){var field=$(this).parent().find('input').focus();var current={el:$(this).parent().addClass('colorpicker_slider'),max:this.parentNode.className.indexOf('_hsb_h')>0?360:(this.parentNode.className.indexOf('_hsb')>0?100:255),y:ev.pageY,field:field,val:parseInt(field.val(),10),preview:$(this).parent().parent().data('colorpicker').livePreview};$(document).bind('mouseup',current,upIncrement);$(document).bind('mousemove',current,moveIncrement);},moveIncrement=function(ev){ev.data.field.val(Math.max(0,Math.min(ev.data.max,parseInt(ev.data.val+ev.pageY-ev.data.y,10))));if(ev.data.preview){change.apply(ev.data.field.get(0),[true]);}
745
- return false;},upIncrement=function(ev){change.apply(ev.data.field.get(0),[true]);ev.data.el.removeClass('colorpicker_slider').find('input').focus();$(document).unbind('mouseup',upIncrement);$(document).unbind('mousemove',moveIncrement);return false;},downHue=function(ev){var current={cal:$(this).parent(),y:$(this).offset().top};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upHue);$(document).bind('mousemove',current,moveHue);},moveHue=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(4).val(parseInt(360*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.y))))/150,10)).get(0),[ev.data.preview]);return false;},upHue=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upHue);$(document).unbind('mousemove',moveHue);return false;},downSelector=function(ev){var current={cal:$(this).parent(),pos:$(this).offset()};current.preview=current.cal.data('colorpicker').livePreview;$(document).bind('mouseup',current,upSelector);$(document).bind('mousemove',current,moveSelector);},moveSelector=function(ev){change.apply(ev.data.cal.data('colorpicker').fields.eq(6).val(parseInt(100*(150-Math.max(0,Math.min(150,(ev.pageY-ev.data.pos.top))))/150,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(150,(ev.pageX-ev.data.pos.left))))/150,10)).get(0),[ev.data.preview]);return false;},upSelector=function(ev){fillRGBFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));fillHexFields(ev.data.cal.data('colorpicker').color,ev.data.cal.get(0));$(document).unbind('mouseup',upSelector);$(document).unbind('mousemove',moveSelector);return false;},enterSubmit=function(ev){$(this).addClass('colorpicker_focus');},leaveSubmit=function(ev){$(this).removeClass('colorpicker_focus');},clickSubmit=function(ev){var cal=$(this).parent();var col=cal.data('colorpicker').color;cal.data('colorpicker').origColor=col;setCurrentColor(col,cal.get(0));cal.data('colorpicker').onSubmit(col,HSBToHex(col),HSBToRGB(col),cal.data('colorpicker').el);},show=function(ev){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').onBeforeShow.apply(this,[cal.get(0)]);var pos=$(this).offset();var viewPort=getViewport();var top=pos.top+this.offsetHeight;var left=pos.left;if(top+176>viewPort.t+viewPort.h){top-=this.offsetHeight+176;}
746
- if(left+356>viewPort.l+viewPort.w){left-=356;}
747
- cal.css({left:left+'px',top:top+'px'});if(cal.data('colorpicker').onShow.apply(this,[cal.get(0)])!=false){cal.show();}
748
- $(document).bind('mousedown',{cal:cal},hide);return false;},hide=function(ev){if(!isChildOf(ev.data.cal.get(0),ev.target,ev.data.cal.get(0))){if(ev.data.cal.data('colorpicker').onHide.apply(this,[ev.data.cal.get(0)])!=false){ev.data.cal.hide();}
749
- $(document).unbind('mousedown',hide);}},isChildOf=function(parentEl,el,container){if(parentEl==el){return true;}
750
- if(parentEl.contains){return parentEl.contains(el);}
751
- if(parentEl.compareDocumentPosition){return!!(parentEl.compareDocumentPosition(el)&16);}
752
- var prEl=el.parentNode;while(prEl&&prEl!=container){if(prEl==parentEl)
753
- return true;prEl=prEl.parentNode;}
754
- return false;},getViewport=function(){var m=document.compatMode=='CSS1Compat';return{l:window.pageXOffset||(m?document.documentElement.scrollLeft:document.body.scrollLeft),t:window.pageYOffset||(m?document.documentElement.scrollTop:document.body.scrollTop),w:window.innerWidth||(m?document.documentElement.clientWidth:document.body.clientWidth),h:window.innerHeight||(m?document.documentElement.clientHeight:document.body.clientHeight)};},fixHSB=function(hsb){return{h:Math.min(360,Math.max(0,hsb.h)),s:Math.min(100,Math.max(0,hsb.s)),b:Math.min(100,Math.max(0,hsb.b))};},fixRGB=function(rgb){return{r:Math.min(255,Math.max(0,rgb.r)),g:Math.min(255,Math.max(0,rgb.g)),b:Math.min(255,Math.max(0,rgb.b))};},fixHex=function(hex){var len=6-hex.length;if(len>0){var o=[];for(var i=0;i<len;i++){o.push('0');}
755
- o.push(hex);hex=o.join('');}
756
- return hex;},HexToRGB=function(hex){var hex=parseInt(((hex.indexOf('#')>-1)?hex.substring(1):hex),16);return{r:hex>>16,g:(hex&0x00FF00)>>8,b:(hex&0x0000FF)};},HexToHSB=function(hex){return RGBToHSB(HexToRGB(hex));},RGBToHSB=function(rgb){var hsb={h:0,s:0,b:0};var min=Math.min(rgb.r,rgb.g,rgb.b);var max=Math.max(rgb.r,rgb.g,rgb.b);var delta=max-min;hsb.b=max;if(max!=0){}
757
- hsb.s=max!=0?255*delta/max:0;if(hsb.s!=0){if(rgb.r==max){hsb.h=(rgb.g-rgb.b)/delta;}else if(rgb.g==max){hsb.h=2+(rgb.b-rgb.r)/delta;}else{hsb.h=4+(rgb.r-rgb.g)/delta;}}else{hsb.h=-1;}
758
- hsb.h*=60;if(hsb.h<0){hsb.h+=360;}
759
- hsb.s*=100/255;hsb.b*=100/255;return hsb;},HSBToRGB=function(hsb){var rgb={};var h=Math.round(hsb.h);var s=Math.round(hsb.s*255/100);var v=Math.round(hsb.b*255/100);if(s==0){rgb.r=rgb.g=rgb.b=v;}else{var t1=v;var t2=(255-s)*v/255;var t3=(t1-t2)*(h%60)/60;if(h==360)h=0;if(h<60){rgb.r=t1;rgb.b=t2;rgb.g=t2+t3}
760
- else if(h<120){rgb.g=t1;rgb.b=t2;rgb.r=t1-t3}
761
- else if(h<180){rgb.g=t1;rgb.r=t2;rgb.b=t2+t3}
762
- else if(h<240){rgb.b=t1;rgb.r=t2;rgb.g=t1-t3}
763
- else if(h<300){rgb.b=t1;rgb.g=t2;rgb.r=t2+t3}
764
- else if(h<360){rgb.r=t1;rgb.g=t2;rgb.b=t1-t3}
765
- else{rgb.r=0;rgb.g=0;rgb.b=0}}
766
- return{r:Math.round(rgb.r),g:Math.round(rgb.g),b:Math.round(rgb.b)};},RGBToHex=function(rgb){var hex=[rgb.r.toString(16),rgb.g.toString(16),rgb.b.toString(16)];$.each(hex,function(nr,val){if(val.length==1){hex[nr]='0'+val;}});return hex.join('');},HSBToHex=function(hsb){return RGBToHex(HSBToRGB(hsb));},restoreOriginal=function(){var cal=$(this).parent();var col=cal.data('colorpicker').origColor;cal.data('colorpicker').color=col;fillRGBFields(col,cal.get(0));fillHexFields(col,cal.get(0));fillHSBFields(col,cal.get(0));setSelector(col,cal.get(0));setHue(col,cal.get(0));setNewColor(col,cal.get(0));};return{init:function(opt){opt=$.extend({},defaults,opt||{});if(typeof opt.color=='string'){opt.color=HexToHSB(opt.color);}else if(opt.color.r!=undefined&&opt.color.g!=undefined&&opt.color.b!=undefined){opt.color=RGBToHSB(opt.color);}else if(opt.color.h!=undefined&&opt.color.s!=undefined&&opt.color.b!=undefined){opt.color=fixHSB(opt.color);}else{return this;}
767
- return this.each(function(){if(!$(this).data('colorpickerId')){var options=$.extend({},opt);options.origColor=opt.color;var id='collorpicker_'+parseInt(Math.random()*1000);$(this).data('colorpickerId',id);var cal=$(tpl).attr('id',id);if(options.flat){cal.appendTo(this).show();}else{cal.appendTo(document.body);}
768
- options.fields=cal.find('input').bind('keyup',keyDown).bind('change',change).bind('blur',blur).bind('focus',focus);cal.find('span').bind('mousedown',downIncrement).end().find('>div.colorpicker_current_color').bind('click',restoreOriginal);options.selector=cal.find('div.colorpicker_color').bind('mousedown',downSelector);options.selectorIndic=options.selector.find('div div');options.el=this;options.hue=cal.find('div.colorpicker_hue div');cal.find('div.colorpicker_hue').bind('mousedown',downHue);options.newColor=cal.find('div.colorpicker_new_color');options.currentColor=cal.find('div.colorpicker_current_color');cal.data('colorpicker',options);cal.find('div.colorpicker_submit').bind('mouseenter',enterSubmit).bind('mouseleave',leaveSubmit).bind('click',clickSubmit);fillRGBFields(options.color,cal.get(0));fillHSBFields(options.color,cal.get(0));fillHexFields(options.color,cal.get(0));setHue(options.color,cal.get(0));setSelector(options.color,cal.get(0));setCurrentColor(options.color,cal.get(0));setNewColor(options.color,cal.get(0));if(options.flat){cal.css({position:'relative',display:'block'});}else{$(this).bind(options.eventName,show);}}});},showPicker:function(){return this.each(function(){if($(this).data('colorpickerId')){show.apply(this);}});},hidePicker:function(){return this.each(function(){if($(this).data('colorpickerId')){$('#'+$(this).data('colorpickerId')).hide();}});},setColor:function(col){if(typeof col=='string'){col=HexToHSB(col);}else if(col.r!=undefined&&col.g!=undefined&&col.b!=undefined){col=RGBToHSB(col);}else if(col.h!=undefined&&col.s!=undefined&&col.b!=undefined){col=fixHSB(col);}else{return this;}
769
- return this.each(function(){if($(this).data('colorpickerId')){var cal=$('#'+$(this).data('colorpickerId'));cal.data('colorpicker').color=col;cal.data('colorpicker').origColor=col;fillRGBFields(col,cal.get(0));fillHSBFields(col,cal.get(0));fillHexFields(col,cal.get(0));setHue(col,cal.get(0));setSelector(col,cal.get(0));setCurrentColor(col,cal.get(0));setNewColor(col,cal.get(0));}});}};}();$.fn.extend({ColorPicker:ColorPicker.init,ColorPickerHide:ColorPicker.hidePicker,ColorPickerShow:ColorPicker.showPicker,ColorPickerSetColor:ColorPicker.setColor});})(jQuery);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  jQuery(document).ready(function() {
2
+ if (jQuery('#iconator')) jQuery('#shrsb-networks').sortable({
3
+ delay: 250,
4
+ cursor: 'move',
5
+ scroll: true,
6
+ revert: true,
7
+ opacity: 0.7,
8
+ placeholder: 'dropzoneNetworks',
9
+ forcePlaceholderSize: true,
10
+ items: 'li'
11
+ });
12
+ if (jQuery('.shrsb-bookmarks')) {
13
+ jQuery('#shrsb-sortables').sortable({
14
+ handle: '.box-mid-head',
15
+ delay: 250,
16
+ cursor: 'move',
17
+ scroll: true,
18
+ revert: true,
19
+ opacity: 0.7
20
+ });
21
 
22
  jQuery('#buttonPreviewsTop,#buttonPreviewsBottom').sortable({
23
+ delay: 250,
24
+ cursor: 'move',
25
+ scroll: true,
26
+ revert: true,
27
+ opacity: 0.7,
28
+ placeholder: 'dropzone',
29
+ forcePlaceholderSize: true,
30
+ items: 'li'
31
+ });
32
+
33
+ //Select all icons upon clicking
34
+ jQuery('#sel-all').click(function() {
35
+ jQuery('#shrsb-networks').each(function() {
36
+ jQuery('#shrsb-networks input').attr('checked', 'checked');
37
+ });
38
+ });
39
+
40
+ //Deselect all icons upon clicking
41
+ jQuery('#sel-none').click(function() {
42
+ jQuery('#shrsb-networks').each(function() {
43
+ jQuery('#shrsb-networks input').removeAttr('checked');
44
+ });
45
+ });
46
+
47
+ //Select most popular icons upon clicking
48
+ jQuery('#sel-pop').click(function() {
49
+ jQuery('#shrsb-networks').each(function() {
50
+ jQuery('#shrsb-networks input').removeAttr('checked');
51
+ });
52
+ jQuery('#shrsb-networks').each(function() {
53
+ jQuery('#shr-facebook').attr('checked', 'checked');
54
+ jQuery('#shr-twitter').attr('checked', 'checked');
55
+ jQuery('#shr-linkedin').attr('checked', 'checked');
56
+ jQuery('#shr-googleplus').attr('checked', 'checked');
57
+ jQuery('#shr-googlebookmarks').attr('checked', 'checked');
58
+ jQuery('#shr-stumbleupon').attr('checked', 'checked');
59
+ jQuery('#shr-pinterest').attr('checked', 'checked');
60
+ jQuery('#shr-fastmail').attr('checked', 'checked');
61
+ jQuery('#shr-printfriendly').attr('checked', 'checked');
62
+ });
63
+ });
64
+
65
+ //Swap enabled/disabled between donation options onclick
66
+ jQuery('#preset-amounts').parent('label').click(function() {
67
+ jQuery('#custom-amounts').attr('disabled', 'disabled').css({
68
+ 'cursor': 'none'
69
+ });
70
+ jQuery('#preset-amounts').removeAttr('disabled');
71
+ });
72
+
73
+ //Swap enabled/disabled between donation options onclick
74
+ jQuery('#custom-amounts').parent('label').click(function() {
75
+ jQuery('#preset-amounts').attr('disabled', 'disabled').css({
76
+ 'cursor': 'none'
77
+ });
78
+ jQuery('#custom-amounts').removeAttr('disabled');
79
+ });
80
+
81
+ // Handle tiny form submission upon selecting option to hide sponsor messages
82
+ jQuery('#hide-sponsors').click(function() {
83
+ jQuery('#no-sponsors').submit();
84
+ });
85
+
86
+ // Create a universal click function to close status messages...
87
+ jQuery('.del-x').click(function() {
88
+ jQuery(this).parent('div').parent('div').fadeOut();
89
+ });
90
+
91
+ // if checkbox isn't already checked, open warning message...
92
+ jQuery("#custom-mods").click(function() {
93
+ if (jQuery(this).is(":not(:checked)")) {
94
+ jQuery("#custom-mods-notice").css("display", "none");
95
+ } else {
96
+ jQuery("#custom-mods-notice").fadeIn("fast");
97
+ jQuery("#custom-mods-notice").css("display", "table");
98
+ }
99
+ });
100
+
101
+ // close custom mods warning when they click the X
102
+ jQuery(".custom-mods-notice-close").click(function() {
103
+ jQuery("#custom-mods-notice").fadeOut('fast');
104
+ });
105
+
106
+ // Apply "smart options" to BG image
107
+ jQuery('#bgimg-yes').click(function() {
108
+ if (jQuery(this).is(':checked')) {
109
+ jQuery('#bgimgs').fadeIn('slow');
110
+ } else {
111
+ jQuery('#bgimgs').css('display', 'none');
112
+ }
113
+ });
114
+
115
+ // Apply "smart options" to Twitter
116
+ jQuery('#shr-twitter').click(function() {
117
+ if (jQuery(this).attr('checked')) {
118
+ jQuery('#twitter-defaults').fadeIn('fast');
119
+ } else {
120
+ jQuery('#twitter-defaults').fadeOut();
121
+ }
122
+ });
123
+
124
+ jQuery('#shorty').change(function() {
125
+ jQuery('#shortyapimdiv-bitly').fadeOut('fast');
126
+ jQuery('#shortyapimdiv-awesm').fadeOut('fast');
127
+ jQuery('#shortyapimdiv-supr').fadeOut('fast');
128
+ jQuery('#shortyapimdiv-jmp').fadeOut('fast');
129
+ if (this.value == 'bitly') {
130
+ jQuery('#shortyapimdiv-bitly').fadeIn('fast');
131
+ } else if (this.value == 'awesm') {
132
+ jQuery('#shortyapimdiv-awesm').fadeIn('fast');
133
+ } else if (this.value == 'supr') {
134
+ jQuery('#shortyapimdiv-supr').fadeIn('fast');
135
+ } else if (this.value == 'jmp') {
136
+ jQuery('#shortyapimdiv-jmp').fadeIn('fast');
137
+ }
138
+ });
139
+
140
+
141
+ jQuery('#shortyapichk-supr').click(function() {
142
+ if (this.checked) {
143
+ jQuery('#shortyapidiv-supr').fadeIn('fast');
144
+ } else {
145
+ jQuery('#shortyapidiv-supr').fadeOut('fast');
146
+ }
147
+ });
 
148
 
149
 
150
  jQuery('#likeButtonSetTop-yes').click(function() {
151
+ if (this.checked) {
152
+ jQuery('.likeButtonsAvailableTop').fadeIn('fast');
153
+ }
154
  });
155
  jQuery('#likeButtonSetTop-no').click(function() {
156
+ if (this.checked) {
157
+ jQuery('.likeButtonsAvailableTop').fadeOut('fast');
158
+ }
159
  });
160
 
161
  jQuery('#likeButtonSetBottom-yes').click(function() {
162
+ if (this.checked) {
163
+ jQuery('.likeButtonsAvailableBottom').fadeIn('fast');
164
+ }
165
  });
166
  jQuery('#likeButtonSetBottom-no').click(function() {
167
+ if (this.checked) {
168
+ jQuery('.likeButtonsAvailableBottom').fadeOut('fast');
169
+ }
170
  });
171
 
 
 
172
  jQuery('#fbLikeButtonTop-yes').click(function() {
173
+ if (this.checked) {
174
+ jQuery('.likebuttonpreviewTop').fadeIn('fast');
175
+ }
176
  });
177
  jQuery('#fbLikeButtonBottom-yes').click(function() {
178
+ if (this.checked) {
179
+ jQuery('.likebuttonpreviewBottom').fadeIn('fast');
180
+ }
181
  });
182
 
183
  jQuery('#fbLikeButtonTop-no').click(function() {
184
+ if (this.checked) {
185
+ jQuery('.likebuttonpreviewTop').fadeOut('fast');
186
+ }
187
  });
188
  jQuery('#fbLikeButtonBottom-no').click(function() {
189
+ if (this.checked) {
190
+ jQuery('.likebuttonpreviewBottom').fadeOut('fast');
191
+ }
192
  });
193
 
194
  jQuery('#fbSendButtonBottom-yes').click(function() {
195
+ if (this.checked) {
196
+ jQuery('.sendbuttonpreviewBottom').fadeIn('fast');
197
+ }
198
  });
199
  jQuery('#fbSendButtonTop-yes').click(function() {
200
+ if (this.checked) {
201
+ jQuery('.sendbuttonpreviewTop').fadeIn('fast');
202
+ }
203
  });
204
 
205
  jQuery('#fbSendButtonTop-no').click(function() {
206
+ if (this.checked) {
207
+ jQuery('.sendbuttonpreviewTop').fadeOut('fast');
208
+ }
209
  });
210
  jQuery('#fbSendButtonBottom-no').click(function() {
211
+ if (this.checked) {
212
+ jQuery('.sendbuttonpreviewBottom').fadeOut('fast');
213
+ }
214
  });
215
 
216
  jQuery('#googlePlusOneButtonTop-yes').click(function() {
217
+ if (this.checked) {
218
+ jQuery('.plusonepreviewTop').fadeIn('fast');
219
+ }
220
  });
221
 
222
  jQuery('#googlePlusOneButtonTop-no').click(function() {
223
+ if (this.checked) {
224
+ jQuery('.plusonepreviewTop').fadeOut('fast');
225
+ }
226
  });
227
  jQuery('#googlePlusOneButtonBottom-yes').click(function() {
228
+ if (this.checked) {
229
+ jQuery('.plusonepreviewBottom').fadeIn('fast');
230
+ }
231
  });
232
 
233
  jQuery('#googlePlusOneButtonBottom-no').click(function() {
234
+ if (this.checked) {
235
+ jQuery('.plusonepreviewBottom').fadeOut('fast');
236
+ }
237
  });
238
  jQuery('#tweetButtonTop-yes').click(function() {
239
+ if (this.checked) {
240
+ jQuery('.tweetbuttonpreviewTop').fadeIn('fast');
241
+ }
242
  });
243
 
244
  jQuery('#tweetButtonTop-no').click(function() {
245
+ if (this.checked) {
246
+ jQuery('.tweetbuttonpreviewTop').fadeOut('fast');
247
+ }
248
  });
249
  jQuery('#tweetButtonBottom-yes').click(function() {
250
+ if (this.checked) {
251
+ jQuery('.tweetbuttonpreviewBottom').fadeIn('fast');
252
+ }
253
  });
254
 
255
  jQuery('#tweetButtonBottom-no').click(function() {
256
+ if (this.checked) {
257
+ jQuery('.tweetbuttonpreviewBottom').fadeOut('fast');
258
+ }
259
+ });
260
+
261
+ jQuery('#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,#tweetButtonTop-yes').click(function() {
262
+ if (this.checked) {
263
+ jQuery('.likeButtonSetOptionsTop').fadeIn('fast');
264
+ }
265
+ });
266
+ jQuery('#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,#tweetButtonBottom-yes').click(function() {
267
+ if (this.checked) {
268
+ jQuery('.likeButtonSetOptionsBottom').fadeIn('fast');
269
+ }
270
+ });
271
 
272
  jQuery('#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no').click(function() {
273
+ if (jQuery('#fbLikeButtonTop-no').get(0).checked && jQuery('#googlePlusOneButtonTop-no').get(0).checked && jQuery('#tweetButtonTop-no').get(0).checked && jQuery('#fbSendButtonTop-no').get(0).checked) {
274
+ jQuery('.likeButtonSetOptionsTop').fadeOut('fast');
275
+ }
276
+ });
 
277
  jQuery('#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no').click(function() {
278
+ if (jQuery('#fbLikeButtonBottom-no').get(0).checked && jQuery('#googlePlusOneButtonBottom-no').get(0).checked && jQuery('#tweetButtonBottom-no').get(0).checked && jQuery('#fbSendButtonBottom-no').get(0).checked) {
279
+ jQuery('.likeButtonSetOptionsBottom').fadeOut('fast');
280
+ }
281
+ });
 
282
 
283
  jQuery('#designer_toolTips-yes').click(function() {
284
+ if (this.checked) {
285
+ jQuery('.designer_toolTip_prefs').fadeIn('fast');
286
+ }
287
+ });
288
+
289
  jQuery('#designer_toolTips-no').click(function() {
290
+ if (this.checked) {
291
+ jQuery('.designer_toolTip_prefs').fadeOut('fast');
292
+ }
293
+ });
294
+
295
+ jQuery('input[name="pubGaSocial"]').on('click', function() {
296
+ jQuery('.pubGaSocial_prefs')[jQuery('input[name="pubGaSocial"]:checked').val() == 1 ? "fadeIn" : "fadeOut"]('fast');
297
+ })
298
+
299
+ jQuery('#recommendations-yes').click(function() {
300
+ if (this.checked) {
301
+ jQuery('.recommendations_prefs-1').fadeIn('fast');
302
+ var thumbEnableChecked = jQuery('#recommendations-style-image').get(0).checked;
303
+ if (thumbEnableChecked) {
304
+ jQuery('.recommendations_prefs-2').fadeIn('fast');
305
+ }
306
+ }
307
+ });
308
+
 
 
 
 
 
 
309
  jQuery('#recommendations-no').click(function() {
310
+ if (this.checked) {
311
+ jQuery('.recommendations_prefs-1').fadeOut('fast');
312
+ jQuery('.recommendations_prefs-2').fadeOut('fast');
313
+ }
314
+ });
315
+
316
+ jQuery('#recommendations-style-image').click(function() {
317
+ if (this.checked) {
318
+ jQuery('.recommendations_prefs-2').fadeIn('fast');
319
+ }
320
+ });
321
+
322
  jQuery('#recommendations-style-text').click(function() {
323
+ if (this.checked) {
324
+ jQuery('.recommendations_prefs-2').fadeOut('fast');
325
+ }
326
+ });
327
+
328
+ jQuery('#cb-yes').click(function() {
329
+ if (this.checked) {
330
+ jQuery('.cb_prefs').fadeIn('fast');
331
+ }
332
+ });
333
+
334
  jQuery('#cb-no').click(function() {
335
+ if (this.checked) {
336
+ jQuery('.cb_prefs').fadeOut('fast');
337
+ }
338
+ });
339
+
340
  jQuery('#useSbSettings-yes').click(function() {
341
+ if (this.checked) {
342
+ jQuery('.topbar_prefs').fadeOut('fast');
343
+ }
344
+ });
345
+
346
  jQuery('#useSbSettings-no').click(function() {
347
+ if (this.checked) {
348
+ jQuery('.topbar_prefs').fadeIn('fast');
349
+ }
350
+ });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
 
352
+ jQuery('#position-above').click(function() {
353
+ if (jQuery('#info-manual').is(':visible')) {
354
+ jQuery('#info-manual').fadeOut();
355
+ }
356
+ });
357
 
358
+ jQuery('#position-below').click(function() {
359
+ if (jQuery('#info-manual').is(':visible')) {
360
+ jQuery('#info-manual').fadeOut();
361
+ }
362
+ });
363
 
364
+ jQuery('#position-manual').click(function() {
365
+ if (jQuery('#info-manual').is(':not(:visible)')) {
366
+ jQuery('#info-manual').fadeIn('slow');
367
+ }
368
+ });
369
 
370
+ jQuery('.dtags-info').click(function() {
371
+ jQuery('#tag-info').fadeIn('fast');
372
+ });
 
 
 
373
 
374
+ jQuery('.dtags-close').click(function() {
375
+ jQuery('#tag-info').fadeOut();
376
+ });
377
 
378
+ jQuery('.shebang-info').click(function() {
379
+ jQuery('#info-manual').fadeIn('fast');
380
+ });
 
 
 
 
 
 
381
 
382
+ jQuery('#shrsbresetallwarn-cancel').click(function() {
383
+ jQuery('#shrsbresetallwarn').fadeOut();
384
+ });
385
 
386
+ jQuery('#shrsbresetallwarn-yes').click(function() {
387
+ this.checked = jQuery('#shrsbresetallwarn').fadeOut();
388
+ this.checked = jQuery('#resetalloptionsaccept').submit();
389
+ this.checked = !this.checked;
390
+ });
391
 
 
392
 
393
+ // Load character count and tweet output demo onload
394
+ var dfaultload = 0;
395
+ var dfaulttitle = 8;
396
+ var dfaulturl = 13;
397
+ if (typeof(jQuery("#tweetconfig")) != "undefined" && jQuery("#tweetconfig").length > 0) {
398
+ if (jQuery("#tweetconfig").val().indexOf('${title}') != -1) {
399
+ dfaultload = Math.floor(dfaultload + dfaulttitle);
400
+ }
401
+ if (jQuery("#tweetconfig").val().indexOf('${short_link}') != -1) {
402
+ dfaultload = Math.floor(dfaultload + dfaulturl);
403
+ }
404
+ var mathdoneload = Math.floor(jQuery('#tweetconfig').val().length - dfaultload);
405
+ if (mathdoneload >= 50) {
406
+ jQuery('#tweetcounter span').addClass('error');
407
+ } else {
408
+ jQuery('#tweetcounter span').removeClass();
409
+ }
410
+ jQuery('#tweetcounter span').html(mathdoneload);
411
+ var endvalueload = jQuery('#tweetconfig').val();
412
+ endvalueload = endvalueload.replace('${title}', 'Some fancy post title');
413
+ endvalueload = endvalueload.replace('${short_link}', 'http://goo.gl/dbqlx');
414
+ var endtweetload = endvalueload;
415
+ jQuery('#tweetoutput span').html(endtweetload);
416
+
417
+
418
+
419
+ jQuery('#tweetconfig').keyup(function() {
420
+ var dfaults = 0;
421
+ var title = 8;
422
+ var url = 13;
423
+
424
+ if (jQuery("#tweetconfig").val().indexOf('${title}') != -1) {
425
+ dfaults = Math.floor(dfaults + title);
426
+ }
427
+ if (jQuery("#tweetconfig").val().indexOf('${short_link}') != -1) {
428
+ dfaults = Math.floor(dfaults + url);
429
+ }
430
 
431
+ var mathdone = Math.floor(jQuery(this).val().length - dfaults);
432
+
433
+ if (mathdone >= 50) {
434
+ jQuery('#tweetcounter span').addClass('error');
435
+ alert("You need to leave room for the short URL and/or post title...");
436
+ return false;
437
+ } else {
438
+ jQuery('#tweetcounter span').removeClass();
439
+ }
440
+ jQuery('#tweetcounter span').html(mathdone);
441
+
442
+ var endvalue = jQuery(this).val();
443
+
444
+ endvalue = endvalue.replace('${title}', 'Some fancy post title');
445
+ endvalue = endvalue.replace('${short_link}', 'http://goo.gl/dbqlx');
446
+
447
+ var endtweet = endvalue;
448
+
449
+ jQuery('#tweetoutput span').html(endtweet);
450
+
451
+ });
452
  }
453
  // Check if like button is included and show the position prefs
 
454
  //var likeBtnChecked = jQuery('#fbLikeButton-yes').get(0).checked || jQuery('#googlePlusOneButton-yes').get(0).checked || jQuery('#fbSendButton-yes').get(0).checked;
455
 
456
+ if (typeof(jQuery('#likeButtonSetTop-yes')) != "undefined" && jQuery('#likeButtonSetTop-yes').length > 0) {
457
+ if (jQuery('#likeButtonSetTop-yes').get(0).checked) {
458
+ jQuery('.likeButtonsAvailableTop').fadeIn('fast');
459
+ }
 
460
 
461
 
462
+ if (jQuery('#fbLikeButtonTop-yes').get(0).checked || jQuery('#googlePlusOneButtonTop-yes').get(0).checked || jQuery('#tweetButtonTop-yes').get(0).checked || jQuery('#fbSendButtonTop-yes').get(0).checked) {
463
+ jQuery('.likeButtonSetOptionsTop').fadeIn('fast');
464
+ }
 
 
 
465
 
466
+ if (jQuery('#fbLikeButtonTop-yes').get(0).checked) {
467
+ jQuery('.likebuttonpreviewTop').fadeIn('fast');
468
+ }
469
 
470
+ if (jQuery('#fbSendButtonTop-yes').get(0).checked) {
471
+ jQuery('.sendbuttonpreviewTop').fadeIn('fast');
472
+ }
473
 
474
+ if (jQuery('#googlePlusOneButtonTop-yes').get(0).checked) {
475
+ jQuery('.plusonepreviewTop').fadeIn('fast');
476
+ }
477
 
478
+ if (jQuery('#tweetButtonTop-yes').get(0).checked) {
479
+ jQuery('.tweetbuttonpreviewTop').fadeIn('fast');
480
+ }
481
  }
482
 
483
+ if (typeof(jQuery('#likeButtonSetBottom-yes')) != "undefined" && jQuery('#likeButtonSetBottom-yes').length > 0) {
484
+ if (jQuery('#likeButtonSetBottom-yes').get(0).checked) {
485
+ jQuery('.likeButtonsAvailableBottom').fadeIn('fast');
486
+ }
 
 
 
 
 
 
 
 
 
 
 
487
 
488
+ if (jQuery('#fbLikeButtonBottom-yes').get(0).checked || jQuery('#googlePlusOneButtonBottom-yes').get(0).checked || jQuery('#tweetButtonBottom-yes').get(0).checked || jQuery('#fbSendButtonBottom-yes').get(0).checked) {
489
+ jQuery('.likeButtonSetOptionsBottom').fadeIn('fast');
490
+ }
491
 
492
+ if (jQuery('#fbLikeButtonBottom-yes').get(0).checked) {
493
+ jQuery('.likebuttonpreviewBottom').fadeIn('fast');
494
+ }
495
+
496
+ if (jQuery('#fbSendButtonBottom-yes').get(0).checked) {
497
+ jQuery('.sendbuttonpreviewBottom').fadeIn('fast');
498
+ }
499
+
500
+ if (jQuery('#googlePlusOneButtonBottom-yes').get(0).checked) {
501
+ jQuery('.plusonepreviewBottom').fadeIn('fast');
502
+ }
503
+ if (jQuery('#tweetButtonBottom-yes').get(0).checked) {
504
+ jQuery('.tweetbuttonpreviewBottom').fadeIn('fast');
505
+ }
506
 
507
  }
508
+
509
  // Check if designer tooltips are included and show the color prefs
510
+ if (typeof(jQuery('#designer_toolTips-yes')) != "undefined" && jQuery('#designer_toolTips-yes').length > 0) {
511
+ var designerToolTipsChecked = jQuery('#designer_toolTips-yes').get(0).checked;
512
+ if (designerToolTipsChecked) {
513
+ jQuery('.designer_toolTip_prefs').fadeIn('fast');
514
+ }
515
+
516
+ jQuery('#tip_bg_color_picker_holder').ColorPicker({
517
+ flat: true,
518
+ color: jQuery("#tip_bg_color").val(),
519
+ onChange: function(hsb, hex, rgb, el) {
520
+ jQuery("#tip_bg_color").val('#' + hex);
521
+ jQuery('#tip_bg_color_picker div').css('backgroundColor', '#' + hex);
522
+ },
523
+ onSubmit: function(hsb, hex, rgb, el) {
524
+ jQuery("#tip_bg_color").val('#' + hex);
525
+ jQuery('#tip_bg_color_picker div').css('backgroundColor', '#' + hex);
526
+ jQuery('#tip_bg_color_picker_holder').toggle();
527
  }
528
+ });
529
+
530
+ // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
531
+ jQuery('#tip_bg_color_picker_holder').find('input').each(function(index) {
532
+ jQuery(this).attr("maxlength", "50");
533
+ });
534
+
535
+ jQuery('#tip_bg_color_picker div').bind('click', function() {
536
+ jQuery('#tip_bg_color_picker_holder').toggle();
537
+ jQuery('#tip_bg_color_picker_holder').ColorPickerSetColor(jQuery("#tip_bg_color").val());
538
+ // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
539
+ jQuery('body').trigger('click');
540
+ if (jQuery('#tip_bg_color_picker_holder').is(':visible')) {
541
+ jQuery('body').bind("click", function() {
542
+ jQuery('#tip_bg_color_picker_holder').hide();
543
+ jQuery('body').unbind("click");
544
+ });
545
+ }
546
+ return false;
547
+ });
548
+
549
+ jQuery('#tip_bg_color_reset').bind('click', function() {
550
+ jQuery("#tip_bg_color").val('#000000');
551
+ jQuery('#tip_bg_color_picker div').css('backgroundColor', '#000000');
552
+ });
553
+ // Prevent the body click handler from firing if the click is inside the color picker
554
+ jQuery('#tip_bg_color_picker_holder').click(function() {
555
+ return false;
556
+ });
557
+
558
+ jQuery('#tip_text_color_picker_holder').ColorPicker({
559
+ flat: true,
560
+ color: jQuery("#tip_text_color").val(),
561
+ onChange: function(hsb, hex, rgb, el) {
562
+ jQuery("#tip_text_color").val('#' + hex);
563
+ jQuery('#tip_text_color_picker div').css('backgroundColor', '#' + hex);
564
+ },
565
+ onSubmit: function(hsb, hex, rgb, el) {
566
+ jQuery("#tip_text_color").val('#' + hex);
567
+ jQuery('#tip_text_color_picker div').css('backgroundColor', '#' + hex);
568
+ jQuery('#tip_text_color_picker_holder').toggle();
569
+ }
570
+ });
571
+ // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
572
+ jQuery('#tip_text_color_picker_holder').find('input').each(function(index) {
573
+ jQuery(this).attr("maxlength", "50");
574
+ });
575
+
576
+ jQuery('#tip_text_color_picker div').bind('click', function() {
577
+ jQuery('#tip_text_color_picker_holder').toggle();
578
+ jQuery('#tip_text_color_picker_holder').ColorPickerSetColor(jQuery("#tip_text_color").val());
579
+ // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
580
+ jQuery('body').trigger('click');
581
+ if (jQuery('#tip_text_color_picker_holder').is(':visible')) {
582
+ jQuery('body').bind("click", function() {
583
+ jQuery('#tip_text_color_picker_holder').hide();
584
+ jQuery('body').unbind("click");
585
+ });
586
+ }
587
+ return false;
588
+ });
589
+ // Prevent the body click handler from firing if the click is inside the color picker
590
+ jQuery('#tip_text_color_picker_holder').click(function() {
591
+ return false;
592
+ });
593
+
594
+ jQuery('#tip_text_color_reset').bind('click', function() {
595
+ jQuery("#tip_text_color").val('#ffffff');
596
+ jQuery('#tip_text_color_picker div').css('backgroundColor', '#ffffff');
597
+ });
 
 
 
 
 
 
 
 
 
598
 
599
  }
600
 
601
  // Check if social analytics is enabled or not, if enabled show the preferences
602
+ if (typeof(jQuery('#pubGaSocial-yes')) != "undefined" && jQuery('#pubGaSocial-yes').length > 0) {
603
+ var socialEnableChecked = jQuery('#pubGaSocial-yes').get(0).checked;
604
+ if (socialEnableChecked) {
605
+ jQuery('.pubGaSocial_prefs').fadeIn('fast');
606
+ }
607
  }
608
+
609
  // Check if social analytics is enabled or not, if enabled show the preferences
610
+ if (typeof(jQuery('#recommendations-yes')) != "undefined" && jQuery('#recommendations-yes').length > 0) {
611
+ var socialEnableChecked = jQuery('#recommendations-yes').get(0).checked;
612
+ if (socialEnableChecked) {
613
+ jQuery('.recommendations_prefs-1').fadeIn('fast');
614
+ var thumbEnableChecked = jQuery('#recommendations-style-image').get(0).checked;
615
+ if (thumbEnableChecked) {
616
+ jQuery('.recommendations_prefs-2').fadeIn('fast');
 
617
  }
618
+ }
619
  }
620
+
621
  // Check if classic bookmarks is enabled or not, if enabled show the preferences
622
+ if (typeof(jQuery('#cb-yes')) != "undefined" && jQuery('#cb-yes').length > 0) {
623
+ var socialEnableChecked = jQuery('#cb-yes').get(0).checked;
624
+ if (socialEnableChecked) {
625
+ jQuery('.cb_prefs').fadeIn('fast');
626
+ }
627
  }
628
+
629
  //For the Top Sharebar custom background color option
630
+ if (typeof(jQuery('#useSbSettings-no')) != "undefined" && jQuery('#useSbSettings-no').length > 0) {
631
+ var useSbSettingsChecked = jQuery('#useSbSettings-no').get(0).checked;
632
+ if (useSbSettingsChecked) {
633
+ jQuery('.topbar_prefs').fadeIn('fast');
634
+ }
635
+
636
+ jQuery('#tb_bg_color_picker_holder').ColorPicker({
637
+ flat: true,
638
+ color: jQuery("#tb_bg_color").val(),
639
+ onChange: function(hsb, hex, rgb, el) {
640
+ jQuery("#tb_bg_color").val('#' + hex);
641
+ jQuery('#tb_bg_color_picker div').css('backgroundColor', '#' + hex);
642
+ },
643
+ onSubmit: function(hsb, hex, rgb, el) {
644
+ jQuery("#tb_bg_color").val('#' + hex);
645
+ jQuery('#tb_bg_color_picker div').css('backgroundColor', '#' + hex);
646
+ jQuery('#tb_bg_color_picker_holder').toggle();
647
  }
648
+ });
649
+
650
+ // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
651
+ jQuery('#tb_bg_color_picker_holder').find('input').each(function(index) {
652
+ jQuery(this).attr("maxlength", "50");
653
+ });
654
+
655
+ jQuery('#tb_bg_color_picker div').bind('click', function() {
656
+ jQuery('#tb_bg_color_picker_holder').toggle();
657
+ jQuery('#tb_bg_color_picker_holder').ColorPickerSetColor(jQuery("#tb_bg_color").val());
658
+ // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
659
+ jQuery('body').trigger('click');
660
+ if (jQuery('#tb_bg_color_picker_holder').is(':visible')) {
661
+ jQuery('body').bind("click", function() {
662
+ jQuery('#tb_bg_color_picker_holder').hide();
663
+ jQuery('body').unbind("click");
664
+ });
665
+ }
666
+ return false;
667
+ });
668
+
669
+ jQuery('#tb_bg_color_reset').bind('click', function() {
670
+ jQuery("#tb_bg_color").val('#000000');
671
+ jQuery('#tb_bg_color_picker div').css('backgroundColor', '#000000');
672
+ });
673
+ // Prevent the body click handler from firing if the click is inside the color picker
674
+ jQuery('#tb_bg_color_picker_holder').click(function() {
675
+ return false;
676
+ });
677
+
678
+ //For the Show/Hide Button color on the toolbar
679
+ jQuery('#tb_border_color_picker_holder').ColorPicker({
680
+ flat: true,
681
+ color: jQuery("#tb_border_color").val(),
682
+ onChange: function(hsb, hex, rgb, el) {
683
+ jQuery("#tb_border_color").val('#' + hex);
684
+ jQuery('#tb_border_color_picker div').css('backgroundColor', '#' + hex);
685
+ },
686
+ onSubmit: function(hsb, hex, rgb, el) {
687
+ jQuery("#tb_border_color").val('#' + hex);
688
+ jQuery('#tb_border_color_picker div').css('backgroundColor', '#' + hex);
689
+ jQuery('#tb_border_color_picker_holder').toggle();
690
+ }
691
+ });
692
+
693
+ // The below lines are to prevent a nasty input form control not focussable error in chrome/safari
694
+ jQuery('#tb_border_color_picker_holder').find('input').each(function(index) {
695
+ jQuery(this).attr("maxlength", "50");
696
+ });
697
+
698
+ jQuery('#tb_border_color_picker div').bind('click', function() {
699
+ jQuery('#tb_border_color_picker_holder').toggle();
700
+ jQuery('#tb_border_color_picker_holder').ColorPickerSetColor(jQuery("#tb_border_color").val());
701
+ // Attach click handler to the body to hide the color picker (if visible) for clicks outside the color picker
702
+ jQuery('body').trigger('click');
703
+ if (jQuery('#tb_border_color_picker_holder').is(':visible')) {
704
+ jQuery('body').bind("click", function() {
705
+ jQuery('#tb_border_color_picker_holder').hide();
706
+ jQuery('body').unbind("click");
707
+ });
708
+ }
709
+ return false;
710
+ });
711
+
712
+ jQuery('#tb_border_color_reset').bind('click', function() {
713
+ jQuery("#tb_border_color").val('#000000');
714
+ jQuery('#tb_border_color_picker div').css('backgroundColor', '#000000');
715
+ });
716
+ // Prevent the body click handler from firing if the click is inside the color picker
717
+ jQuery('#tb_border_color_picker_holder').click(function() {
718
+ return false;
719
+ });
 
 
 
 
 
 
 
 
 
720
 
721
  }
722
+ }
723
+ });
724
 
725
 
726
  /**
731
  * Dual licensed under the MIT and GPL licenses
732
  *
733
  */
734
+ (function($) {
735
+ var ColorPicker = function() {
736
+ var
737
+ ids = {},
738
+ inAction, charMin = 65,
739
+ visible, tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><div></div></div></div><div class="colorpicker_hue"><div></div></div><div class="colorpicker_new_color"></div><div class="colorpicker_current_color"></div><div class="colorpicker_hex"><input type="text" maxlength="6" size="6" /></div><div class="colorpicker_rgb_r colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_g colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_rgb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_h colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_s colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_hsb_b colorpicker_field"><input type="text" maxlength="3" size="3" /><span></span></div><div class="colorpicker_submit"></div></div>',
740
+ defaults = {
741
+ eventName: 'click',
742
+ onShow: function() {},
743
+ onBeforeShow: function() {},
744
+ onHide: function() {},
745
+ onChange: function() {},
746
+ onSubmit: function() {},
747
+ color: 'ff0000',
748
+ livePreview: true,
749
+ flat: false
750
+ },
751
+ fillRGBFields = function(hsb, cal) {
752
+ var rgb = HSBToRGB(hsb);
753
+ $(cal).data('colorpicker').fields.eq(1).val(rgb.r).end().eq(2).val(rgb.g).end().eq(3).val(rgb.b).end();
754
+ },
755
+ fillHSBFields = function(hsb, cal) {
756
+ $(cal).data('colorpicker').fields.eq(4).val(hsb.h).end().eq(5).val(hsb.s).end().eq(6).val(hsb.b).end();
757
+ },
758
+ fillHexFields = function(hsb, cal) {
759
+ $(cal).data('colorpicker').fields.eq(0).val(HSBToHex(hsb)).end();
760
+ },
761
+ setSelector = function(hsb, cal) {
762
+ $(cal).data('colorpicker').selector.css('backgroundColor', '#' + HSBToHex({
763
+ h: hsb.h,
764
+ s: 100,
765
+ b: 100
766
+ }));
767
+ $(cal).data('colorpicker').selectorIndic.css({
768
+ left: parseInt(150 * hsb.s / 100, 10),
769
+ top: parseInt(150 * (100 - hsb.b) / 100, 10)
770
+ });
771
+ },
772
+ setHue = function(hsb, cal) {
773
+ $(cal).data('colorpicker').hue.css('top', parseInt(150 - 150 * hsb.h / 360, 10));
774
+ },
775
+ setCurrentColor = function(hsb, cal) {
776
+ $(cal).data('colorpicker').currentColor.css('backgroundColor', '#' + HSBToHex(hsb));
777
+ },
778
+ setNewColor = function(hsb, cal) {
779
+ $(cal).data('colorpicker').newColor.css('backgroundColor', '#' + HSBToHex(hsb));
780
+ },
781
+ keyDown = function(ev) {
782
+ var pressedKey = ev.charCode || ev.keyCode || -1;
783
+ if ((pressedKey > charMin && pressedKey <= 90) || pressedKey == 32) {
784
+ return false;
785
+ }
786
+ var cal = $(this).parent().parent();
787
+ if (cal.data('colorpicker').livePreview === true) {
788
+ change.apply(this);
789
+ }
790
+ },
791
+ change = function(ev) {
792
+ var cal = $(this).parent().parent(),
793
+ col;
794
+ if (this.parentNode.className.indexOf('_hex') > 0) {
795
+ cal.data('colorpicker').color = col = HexToHSB(fixHex(this.value));
796
+ } else if (this.parentNode.className.indexOf('_hsb') > 0) {
797
+ cal.data('colorpicker').color = col = fixHSB({
798
+ h: parseInt(cal.data('colorpicker').fields.eq(4).val(), 10),
799
+ s: parseInt(cal.data('colorpicker').fields.eq(5).val(), 10),
800
+ b: parseInt(cal.data('colorpicker').fields.eq(6).val(), 10)
801
+ });
802
+ } else {
803
+ cal.data('colorpicker').color = col = RGBToHSB(fixRGB({
804
+ r: parseInt(cal.data('colorpicker').fields.eq(1).val(), 10),
805
+ g: parseInt(cal.data('colorpicker').fields.eq(2).val(), 10),
806
+ b: parseInt(cal.data('colorpicker').fields.eq(3).val(), 10)
807
+ }));
808
+ }
809
+ if (ev) {
810
+ fillRGBFields(col, cal.get(0));
811
+ fillHexFields(col, cal.get(0));
812
+ fillHSBFields(col, cal.get(0));
813
+ }
814
+ setSelector(col, cal.get(0));
815
+ setHue(col, cal.get(0));
816
+ setNewColor(col, cal.get(0));
817
+ cal.data('colorpicker').onChange.apply(cal, [col, HSBToHex(col), HSBToRGB(col)]);
818
+ },
819
+ blur = function(ev) {
820
+ var cal = $(this).parent().parent();
821
+ cal.data('colorpicker').fields.parent().removeClass('colorpicker_focus');
822
+ },
823
+ focus = function() {
824
+ charMin = this.parentNode.className.indexOf('_hex') > 0 ? 70 : 65;
825
+ $(this).parent().parent().data('colorpicker').fields.parent().removeClass('colorpicker_focus');
826
+ $(this).parent().addClass('colorpicker_focus');
827
+ },
828
+ downIncrement = function(ev) {
829
+ var field = $(this).parent().find('input').focus();
830
+ var current = {
831
+ el: $(this).parent().addClass('colorpicker_slider'),
832
+ max: this.parentNode.className.indexOf('_hsb_h') > 0 ? 360 : (this.parentNode.className.indexOf('_hsb') > 0 ? 100 : 255),
833
+ y: ev.pageY,
834
+ field: field,
835
+ val: parseInt(field.val(), 10),
836
+ preview: $(this).parent().parent().data('colorpicker').livePreview
837
+ };
838
+ $(document).bind('mouseup', current, upIncrement);
839
+ $(document).bind('mousemove', current, moveIncrement);
840
+ },
841
+ moveIncrement = function(ev) {
842
+ ev.data.field.val(Math.max(0, Math.min(ev.data.max, parseInt(ev.data.val + ev.pageY - ev.data.y, 10))));
843
+ if (ev.data.preview) {
844
+ change.apply(ev.data.field.get(0), [true]);
845
+ }
846
+ return false;
847
+ },
848
+ upIncrement = function(ev) {
849
+ change.apply(ev.data.field.get(0), [true]);
850
+ ev.data.el.removeClass('colorpicker_slider').find('input').focus();
851
+ $(document).unbind('mouseup', upIncrement);
852
+ $(document).unbind('mousemove', moveIncrement);
853
+ return false;
854
+ },
855
+ downHue = function(ev) {
856
+ var current = {
857
+ cal: $(this).parent(),
858
+ y: $(this).offset().top
859
+ };
860
+ current.preview = current.cal.data('colorpicker').livePreview;
861
+ $(document).bind('mouseup', current, upHue);
862
+ $(document).bind('mousemove', current, moveHue);
863
+ },
864
+ moveHue = function(ev) {
865
+ change.apply(ev.data.cal.data('colorpicker').fields.eq(4).val(parseInt(360 * (150 - Math.max(0, Math.min(150, (ev.pageY - ev.data.y)))) / 150, 10)).get(0), [ev.data.preview]);
866
+ return false;
867
+ },
868
+ upHue = function(ev) {
869
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
870
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
871
+ $(document).unbind('mouseup', upHue);
872
+ $(document).unbind('mousemove', moveHue);
873
+ return false;
874
+ },
875
+ downSelector = function(ev) {
876
+ var current = {
877
+ cal: $(this).parent(),
878
+ pos: $(this).offset()
879
+ };
880
+ current.preview = current.cal.data('colorpicker').livePreview;
881
+ $(document).bind('mouseup', current, upSelector);
882
+ $(document).bind('mousemove', current, moveSelector);
883
+ },
884
+ moveSelector = function(ev) {
885
+ change.apply(ev.data.cal.data('colorpicker').fields.eq(6).val(parseInt(100 * (150 - Math.max(0, Math.min(150, (ev.pageY - ev.data.pos.top)))) / 150, 10)).end().eq(5).val(parseInt(100 * (Math.max(0, Math.min(150, (ev.pageX - ev.data.pos.left)))) / 150, 10)).get(0), [ev.data.preview]);
886
+ return false;
887
+ },
888
+ upSelector = function(ev) {
889
+ fillRGBFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
890
+ fillHexFields(ev.data.cal.data('colorpicker').color, ev.data.cal.get(0));
891
+ $(document).unbind('mouseup', upSelector);
892
+ $(document).unbind('mousemove', moveSelector);
893
+ return false;
894
+ },
895
+ enterSubmit = function(ev) {
896
+ $(this).addClass('colorpicker_focus');
897
+ },
898
+ leaveSubmit = function(ev) {
899
+ $(this).removeClass('colorpicker_focus');
900
+ },
901
+ clickSubmit = function(ev) {
902
+ var cal = $(this).parent();
903
+ var col = cal.data('colorpicker').color;
904
+ cal.data('colorpicker').origColor = col;
905
+ setCurrentColor(col, cal.get(0));
906
+ cal.data('colorpicker').onSubmit(col, HSBToHex(col), HSBToRGB(col), cal.data('colorpicker').el);
907
+ },
908
+ show = function(ev) {
909
+ var cal = $('#' + $(this).data('colorpickerId'));
910
+ cal.data('colorpicker').onBeforeShow.apply(this, [cal.get(0)]);
911
+ var pos = $(this).offset();
912
+ var viewPort = getViewport();
913
+ var top = pos.top + this.offsetHeight;
914
+ var left = pos.left;
915
+ if (top + 176 > viewPort.t + viewPort.h) {
916
+ top -= this.offsetHeight + 176;
917
+ }
918
+ if (left + 356 > viewPort.l + viewPort.w) {
919
+ left -= 356;
920
+ }
921
+ cal.css({
922
+ left: left + 'px',
923
+ top: top + 'px'
924
+ });
925
+ if (cal.data('colorpicker').onShow.apply(this, [cal.get(0)]) != false) {
926
+ cal.show();
927
+ }
928
+ $(document).bind('mousedown', {
929
+ cal: cal
930
+ }, hide);
931
+ return false;
932
+ },
933
+ hide = function(ev) {
934
+ if (!isChildOf(ev.data.cal.get(0), ev.target, ev.data.cal.get(0))) {
935
+ if (ev.data.cal.data('colorpicker').onHide.apply(this, [ev.data.cal.get(0)]) != false) {
936
+ ev.data.cal.hide();
937
+ }
938
+ $(document).unbind('mousedown', hide);
939
+ }
940
+ },
941
+ isChildOf = function(parentEl, el, container) {
942
+ if (parentEl == el) {
943
+ return true;
944
+ }
945
+ if (parentEl.contains) {
946
+ return parentEl.contains(el);
947
+ }
948
+ if (parentEl.compareDocumentPosition) {
949
+ return !!(parentEl.compareDocumentPosition(el) & 16);
950
+ }
951
+ var prEl = el.parentNode;
952
+ while (prEl && prEl != container) {
953
+ if (prEl == parentEl) return true;
954
+ prEl = prEl.parentNode;
955
+ }
956
+ return false;
957
+ },
958
+ getViewport = function() {
959
+ var m = document.compatMode == 'CSS1Compat';
960
+ return {
961
+ l: window.pageXOffset || (m ? document.documentElement.scrollLeft : document.body.scrollLeft),
962
+ t: window.pageYOffset || (m ? document.documentElement.scrollTop : document.body.scrollTop),
963
+ w: window.innerWidth || (m ? document.documentElement.clientWidth : document.body.clientWidth),
964
+ h: window.innerHeight || (m ? document.documentElement.clientHeight : document.body.clientHeight)
965
+ };
966
+ },
967
+ fixHSB = function(hsb) {
968
+ return {
969
+ h: Math.min(360, Math.max(0, hsb.h)),
970
+ s: Math.min(100, Math.max(0, hsb.s)),
971
+ b: Math.min(100, Math.max(0, hsb.b))
972
+ };
973
+ },
974
+ fixRGB = function(rgb) {
975
+ return {
976
+ r: Math.min(255, Math.max(0, rgb.r)),
977
+ g: Math.min(255, Math.max(0, rgb.g)),
978
+ b: Math.min(255, Math.max(0, rgb.b))
979
+ };
980
+ },
981
+ fixHex = function(hex) {
982
+ var len = 6 - hex.length;
983
+ if (len > 0) {
984
+ var o = [];
985
+ for (var i = 0; i < len; i++) {
986
+ o.push('0');
987
+ }
988
+ o.push(hex);
989
+ hex = o.join('');
990
+ }
991
+ return hex;
992
+ },
993
+ HexToRGB = function(hex) {
994
+ var hex = parseInt(((hex.indexOf('#') > -1) ? hex.substring(1) : hex), 16);
995
+ return {
996
+ r: hex >> 16,
997
+ g: (hex & 0x00FF00) >> 8,
998
+ b: (hex & 0x0000FF)
999
+ };
1000
+ },
1001
+ HexToHSB = function(hex) {
1002
+ return RGBToHSB(HexToRGB(hex));
1003
+ },
1004
+ RGBToHSB = function(rgb) {
1005
+ var hsb = {
1006
+ h: 0,
1007
+ s: 0,
1008
+ b: 0
1009
+ };
1010
+ var min = Math.min(rgb.r, rgb.g, rgb.b);
1011
+ var max = Math.max(rgb.r, rgb.g, rgb.b);
1012
+ var delta = max - min;
1013
+ hsb.b = max;
1014
+ if (max != 0) {}
1015
+ hsb.s = max != 0 ? 255 * delta / max : 0;
1016
+ if (hsb.s != 0) {
1017
+ if (rgb.r == max) {
1018
+ hsb.h = (rgb.g - rgb.b) / delta;
1019
+ } else if (rgb.g == max) {
1020
+ hsb.h = 2 + (rgb.b - rgb.r) / delta;
1021
+ } else {
1022
+ hsb.h = 4 + (rgb.r - rgb.g) / delta;
1023
+ }
1024
+ } else {
1025
+ hsb.h = -1;
1026
+ }
1027
+ hsb.h *= 60;
1028
+ if (hsb.h < 0) {
1029
+ hsb.h += 360;
1030
+ }
1031
+ hsb.s *= 100 / 255;
1032
+ hsb.b *= 100 / 255;
1033
+ return hsb;
1034
+ },
1035
+ HSBToRGB = function(hsb) {
1036
+ var rgb = {};
1037
+ var h = Math.round(hsb.h);
1038
+ var s = Math.round(hsb.s * 255 / 100);
1039
+ var v = Math.round(hsb.b * 255 / 100);
1040
+ if (s == 0) {
1041
+ rgb.r = rgb.g = rgb.b = v;
1042
+ } else {
1043
+ var t1 = v;
1044
+ var t2 = (255 - s) * v / 255;
1045
+ var t3 = (t1 - t2) * (h % 60) / 60;
1046
+ if (h == 360) h = 0;
1047
+ if (h < 60) {
1048
+ rgb.r = t1;
1049
+ rgb.b = t2;
1050
+ rgb.g = t2 + t3
1051
+ } else if (h < 120) {
1052
+ rgb.g = t1;
1053
+ rgb.b = t2;
1054
+ rgb.r = t1 - t3
1055
+ } else if (h < 180) {
1056
+ rgb.g = t1;
1057
+ rgb.r = t2;
1058
+ rgb.b = t2 + t3
1059
+ } else if (h < 240) {
1060
+ rgb.b = t1;
1061
+ rgb.r = t2;
1062
+ rgb.g = t1 - t3
1063
+ } else if (h < 300) {
1064
+ rgb.b = t1;
1065
+ rgb.g = t2;
1066
+ rgb.r = t2 + t3
1067
+ } else if (h < 360) {
1068
+ rgb.r = t1;
1069
+ rgb.g = t2;
1070
+ rgb.b = t1 - t3
1071
+ } else {
1072
+ rgb.r = 0;
1073
+ rgb.g = 0;
1074
+ rgb.b = 0
1075
+ }
1076
+ }
1077
+ return {
1078
+ r: Math.round(rgb.r),
1079
+ g: Math.round(rgb.g),
1080
+ b: Math.round(rgb.b)
1081
+ };
1082
+ },
1083
+ RGBToHex = function(rgb) {
1084
+ var hex = [rgb.r.toString(16), rgb.g.toString(16), rgb.b.toString(16)];
1085
+ $.each(hex, function(nr, val) {
1086
+ if (val.length == 1) {
1087
+ hex[nr] = '0' + val;
1088
+ }
1089
+ });
1090
+ return hex.join('');
1091
+ },
1092
+ HSBToHex = function(hsb) {
1093
+ return RGBToHex(HSBToRGB(hsb));
1094
+ },
1095
+ restoreOriginal = function() {
1096
+ var cal = $(this).parent();
1097
+ var col = cal.data('colorpicker').origColor;
1098
+ cal.data('colorpicker').color = col;
1099
+ fillRGBFields(col, cal.get(0));
1100
+ fillHexFields(col, cal.get(0));
1101
+ fillHSBFields(col, cal.get(0));
1102
+ setSelector(col, cal.get(0));
1103
+ setHue(col, cal.get(0));
1104
+ setNewColor(col, cal.get(0));
1105
+ };
1106
+ return {
1107
+ init: function(opt) {
1108
+ opt = $.extend({}, defaults, opt || {});
1109
+ if (typeof opt.color == 'string') {
1110
+ opt.color = HexToHSB(opt.color);
1111
+ } else if (opt.color.r != undefined && opt.color.g != undefined && opt.color.b != undefined) {
1112
+ opt.color = RGBToHSB(opt.color);
1113
+ } else if (opt.color.h != undefined && opt.color.s != undefined && opt.color.b != undefined) {
1114
+ opt.color = fixHSB(opt.color);
1115
+ } else {
1116
+ return this;
1117
+ }
1118
+ return this.each(function() {
1119
+ if (!$(this).data('colorpickerId')) {
1120
+ var options = $.extend({}, opt);
1121
+ options.origColor = opt.color;
1122
+ var id = 'collorpicker_' + parseInt(Math.random() * 1000);
1123
+ $(this).data('colorpickerId', id);
1124
+ var cal = $(tpl).attr('id', id);
1125
+ if (options.flat) {
1126
+ cal.appendTo(this).show();
1127
+ } else {
1128
+ cal.appendTo(document.body);
1129
+ }
1130
+ options.fields = cal.find('input').bind('keyup', keyDown).bind('change', change).bind('blur', blur).bind('focus', focus);
1131
+ cal.find('span').bind('mousedown', downIncrement).end().find('>div.colorpicker_current_color').bind('click', restoreOriginal);
1132
+ options.selector = cal.find('div.colorpicker_color').bind('mousedown', downSelector);
1133
+ options.selectorIndic = options.selector.find('div div');
1134
+ options.el = this;
1135
+ options.hue = cal.find('div.colorpicker_hue div');
1136
+ cal.find('div.colorpicker_hue').bind('mousedown', downHue);
1137
+ options.newColor = cal.find('div.colorpicker_new_color');
1138
+ options.currentColor = cal.find('div.colorpicker_current_color');
1139
+ cal.data('colorpicker', options);
1140
+ cal.find('div.colorpicker_submit').bind('mouseenter', enterSubmit).bind('mouseleave', leaveSubmit).bind('click', clickSubmit);
1141
+ fillRGBFields(options.color, cal.get(0));
1142
+ fillHSBFields(options.color, cal.get(0));
1143
+ fillHexFields(options.color, cal.get(0));
1144
+ setHue(options.color, cal.get(0));
1145
+ setSelector(options.color, cal.get(0));
1146
+ setCurrentColor(options.color, cal.get(0));
1147
+ setNewColor(options.color, cal.get(0));
1148
+ if (options.flat) {
1149
+ cal.css({
1150
+ position: 'relative',
1151
+ display: 'block'
1152
+ });
1153
+ } else {
1154
+ $(this).bind(options.eventName, show);
1155
+ }
1156
+ }
1157
+ });
1158
+ },
1159
+ showPicker: function() {
1160
+ return this.each(function() {
1161
+ if ($(this).data('colorpickerId')) {
1162
+ show.apply(this);
1163
+ }
1164
+ });
1165
+ },
1166
+ hidePicker: function() {
1167
+ return this.each(function() {
1168
+ if ($(this).data('colorpickerId')) {
1169
+ $('#' + $(this).data('colorpickerId')).hide();
1170
+ }
1171
+ });
1172
+ },
1173
+ setColor: function(col) {
1174
+ if (typeof col == 'string') {
1175
+ col = HexToHSB(col);
1176
+ } else if (col.r != undefined && col.g != undefined && col.b != undefined) {
1177
+ col = RGBToHSB(col);
1178
+ } else if (col.h != undefined && col.s != undefined && col.b != undefined) {
1179
+ col = fixHSB(col);
1180
+ } else {
1181
+ return this;
1182
+ }
1183
+ return this.each(function() {
1184
+ if ($(this).data('colorpickerId')) {
1185
+ var cal = $('#' + $(this).data('colorpickerId'));
1186
+ cal.data('colorpicker').color = col;
1187
+ cal.data('colorpicker').origColor = col;
1188
+ fillRGBFields(col, cal.get(0));
1189
+ fillHSBFields(col, cal.get(0));
1190
+ fillHexFields(col, cal.get(0));
1191
+ setHue(col, cal.get(0));
1192
+ setSelector(col, cal.get(0));
1193
+ setCurrentColor(col, cal.get(0));
1194
+ setNewColor(col, cal.get(0));
1195
+ }
1196
+ });
1197
+ }
1198
+ };
1199
+ }();
1200
+ $.fn.extend({
1201
+ ColorPicker: ColorPicker.init,
1202
+ ColorPickerHide: ColorPicker.hidePicker,
1203
+ ColorPickerShow: ColorPicker.showPicker,
1204
+ ColorPickerSetColor: ColorPicker.setColor
1205
+ });
1206
+ })(jQuery);
js/shareaholic-admin.min.js CHANGED
@@ -8,10 +8,10 @@ jQuery("#shortyapichk-supr").click(function(){this.checked?jQuery("#shortyapidiv
8
  jQuery("#likeButtonSetBottom-no").click(function(){this.checked&&jQuery(".likeButtonsAvailableBottom").fadeOut("fast")});jQuery("#fbLikeButtonTop-yes").click(function(){this.checked&&jQuery(".likebuttonpreviewTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes").click(function(){this.checked&&jQuery(".likebuttonpreviewBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no").click(function(){this.checked&&jQuery(".likebuttonpreviewTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no").click(function(){this.checked&&
9
  jQuery(".likebuttonpreviewBottom").fadeOut("fast")});jQuery("#fbSendButtonBottom-yes").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeIn("fast")});jQuery("#fbSendButtonTop-yes").click(function(){this.checked&&jQuery(".sendbuttonpreviewTop").fadeIn("fast")});jQuery("#fbSendButtonTop-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewTop").fadeOut("fast")});jQuery("#fbSendButtonBottom-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeOut("fast")});
10
  jQuery("#googlePlusOneButtonTop-yes").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeIn("fast")});jQuery("#googlePlusOneButtonTop-no").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeOut("fast")});jQuery("#googlePlusOneButtonBottom-yes").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeIn("fast")});jQuery("#googlePlusOneButtonBottom-no").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeOut("fast")});jQuery("#tweetButtonTop-yes").click(function(){this.checked&&
11
- jQuery(".tweetbuttonpreviewTop").fadeIn("fast")});jQuery("#tweetButtonTop-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeOut("fast")});jQuery("#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeIn("fast")});jQuery("#tweetButtonBottom-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeOut("fast")});jQuery("#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,,#tweetButtonTop-yes").click(function(){this.checked&&
12
- jQuery(".likeButtonSetOptionsTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,,#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no").click(function(){jQuery("#fbLikeButtonTop-no").get(0).checked&&jQuery("#googlePlusOneButtonTop-no").get(0).checked&&jQuery("#tweetButtonTop-no").get(0).checked&&
13
  jQuery("#fbSendButtonTop-no").get(0).checked&&jQuery(".likeButtonSetOptionsTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no").click(function(){jQuery("#fbLikeButtonBottom-no").get(0).checked&&jQuery("#googlePlusOneButtonBottom-no").get(0).checked&&jQuery("#tweetButtonBottom-no").get(0).checked&&jQuery("#fbSendButtonBottom-no").get(0).checked&&jQuery(".likeButtonSetOptionsBottom").fadeOut("fast")});jQuery("#designer_toolTips-yes").click(function(){this.checked&&
14
- jQuery(".designer_toolTip_prefs").fadeIn("fast")});jQuery("#designer_toolTips-no").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeOut("fast")});jQuery("#pubGaSocial-yes").click(function(){this.checked&&jQuery(".pubGaSocial_prefs").fadeIn("fast")});jQuery("#pubGaSocial-no").click(function(){this.checked&&jQuery(".pubGaSocial_prefs").fadeOut("fast")});jQuery("#recommendations-yes").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&
15
  jQuery(".recommendations_prefs-2").fadeIn("fast"))});jQuery("#recommendations-no").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeOut("fast"),jQuery(".recommendations_prefs-2").fadeOut("fast"))});jQuery("#recommendations-style-image").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeIn("fast")});jQuery("#recommendations-style-text").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeOut("fast")});jQuery("#cb-yes").click(function(){this.checked&&
16
  jQuery(".cb_prefs").fadeIn("fast")});jQuery("#cb-no").click(function(){this.checked&&jQuery(".cb_prefs").fadeOut("fast")});jQuery("#useSbSettings-yes").click(function(){this.checked&&jQuery(".topbar_prefs").fadeOut("fast")});jQuery("#useSbSettings-no").click(function(){this.checked&&jQuery(".topbar_prefs").fadeIn("fast")});jQuery("#position-above").click(function(){jQuery("#info-manual").is(":visible")&&jQuery("#info-manual").fadeOut()});jQuery("#position-below").click(function(){jQuery("#info-manual").is(":visible")&&
17
  jQuery("#info-manual").fadeOut()});jQuery("#position-manual").click(function(){jQuery("#info-manual").is(":not(:visible)")&&jQuery("#info-manual").fadeIn("slow")});jQuery(".dtags-info").click(function(){jQuery("#tag-info").fadeIn("fast")});jQuery(".dtags-close").click(function(){jQuery("#tag-info").fadeOut()});jQuery(".shebang-info").click(function(){jQuery("#info-manual").fadeIn("fast")});jQuery("#shrsbresetallwarn-cancel").click(function(){jQuery("#shrsbresetallwarn").fadeOut()});jQuery("#shrsbresetallwarn-yes").click(function(){this.checked=
8
  jQuery("#likeButtonSetBottom-no").click(function(){this.checked&&jQuery(".likeButtonsAvailableBottom").fadeOut("fast")});jQuery("#fbLikeButtonTop-yes").click(function(){this.checked&&jQuery(".likebuttonpreviewTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes").click(function(){this.checked&&jQuery(".likebuttonpreviewBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no").click(function(){this.checked&&jQuery(".likebuttonpreviewTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no").click(function(){this.checked&&
9
  jQuery(".likebuttonpreviewBottom").fadeOut("fast")});jQuery("#fbSendButtonBottom-yes").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeIn("fast")});jQuery("#fbSendButtonTop-yes").click(function(){this.checked&&jQuery(".sendbuttonpreviewTop").fadeIn("fast")});jQuery("#fbSendButtonTop-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewTop").fadeOut("fast")});jQuery("#fbSendButtonBottom-no").click(function(){this.checked&&jQuery(".sendbuttonpreviewBottom").fadeOut("fast")});
10
  jQuery("#googlePlusOneButtonTop-yes").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeIn("fast")});jQuery("#googlePlusOneButtonTop-no").click(function(){this.checked&&jQuery(".plusonepreviewTop").fadeOut("fast")});jQuery("#googlePlusOneButtonBottom-yes").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeIn("fast")});jQuery("#googlePlusOneButtonBottom-no").click(function(){this.checked&&jQuery(".plusonepreviewBottom").fadeOut("fast")});jQuery("#tweetButtonTop-yes").click(function(){this.checked&&
11
+ jQuery(".tweetbuttonpreviewTop").fadeIn("fast")});jQuery("#tweetButtonTop-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewTop").fadeOut("fast")});jQuery("#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeIn("fast")});jQuery("#tweetButtonBottom-no").click(function(){this.checked&&jQuery(".tweetbuttonpreviewBottom").fadeOut("fast")});jQuery("#fbLikeButtonTop-yes,#googlePlusOneButtonTop-yes,#fbSendButtonTop-yes,#tweetButtonTop-yes").click(function(){this.checked&&
12
+ jQuery(".likeButtonSetOptionsTop").fadeIn("fast")});jQuery("#fbLikeButtonBottom-yes,#googlePlusOneButtonBottom-yes,#fbSendButtonBottom-yes,#tweetButtonBottom-yes").click(function(){this.checked&&jQuery(".likeButtonSetOptionsBottom").fadeIn("fast")});jQuery("#fbLikeButtonTop-no,#googlePlusOneButtonTop-no,#fbSendButtonTop-no,#tweetButtonTop-no").click(function(){jQuery("#fbLikeButtonTop-no").get(0).checked&&jQuery("#googlePlusOneButtonTop-no").get(0).checked&&jQuery("#tweetButtonTop-no").get(0).checked&&
13
  jQuery("#fbSendButtonTop-no").get(0).checked&&jQuery(".likeButtonSetOptionsTop").fadeOut("fast")});jQuery("#fbLikeButtonBottom-no,#googlePlusOneButtonBottom-no,#fbSendButtonBottom-no,#tweetButtonBottom-no").click(function(){jQuery("#fbLikeButtonBottom-no").get(0).checked&&jQuery("#googlePlusOneButtonBottom-no").get(0).checked&&jQuery("#tweetButtonBottom-no").get(0).checked&&jQuery("#fbSendButtonBottom-no").get(0).checked&&jQuery(".likeButtonSetOptionsBottom").fadeOut("fast")});jQuery("#designer_toolTips-yes").click(function(){this.checked&&
14
+ jQuery(".designer_toolTip_prefs").fadeIn("fast")});jQuery("#designer_toolTips-no").click(function(){this.checked&&jQuery(".designer_toolTip_prefs").fadeOut("fast")});jQuery('input[name="pubGaSocial"]').on("click",function(){jQuery(".pubGaSocial_prefs")[1==jQuery('input[name="pubGaSocial"]:checked').val()?"fadeIn":"fadeOut"]("fast")});jQuery("#recommendations-yes").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeIn("fast"),jQuery("#recommendations-style-image").get(0).checked&&
15
  jQuery(".recommendations_prefs-2").fadeIn("fast"))});jQuery("#recommendations-no").click(function(){this.checked&&(jQuery(".recommendations_prefs-1").fadeOut("fast"),jQuery(".recommendations_prefs-2").fadeOut("fast"))});jQuery("#recommendations-style-image").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeIn("fast")});jQuery("#recommendations-style-text").click(function(){this.checked&&jQuery(".recommendations_prefs-2").fadeOut("fast")});jQuery("#cb-yes").click(function(){this.checked&&
16
  jQuery(".cb_prefs").fadeIn("fast")});jQuery("#cb-no").click(function(){this.checked&&jQuery(".cb_prefs").fadeOut("fast")});jQuery("#useSbSettings-yes").click(function(){this.checked&&jQuery(".topbar_prefs").fadeOut("fast")});jQuery("#useSbSettings-no").click(function(){this.checked&&jQuery(".topbar_prefs").fadeIn("fast")});jQuery("#position-above").click(function(){jQuery("#info-manual").is(":visible")&&jQuery("#info-manual").fadeOut()});jQuery("#position-below").click(function(){jQuery("#info-manual").is(":visible")&&
17
  jQuery("#info-manual").fadeOut()});jQuery("#position-manual").click(function(){jQuery("#info-manual").is(":not(:visible)")&&jQuery("#info-manual").fadeIn("slow")});jQuery(".dtags-info").click(function(){jQuery("#tag-info").fadeIn("fast")});jQuery(".dtags-close").click(function(){jQuery("#tag-info").fadeOut()});jQuery(".shebang-info").click(function(){jQuery("#info-manual").fadeIn("fast")});jQuery("#shrsbresetallwarn-cancel").click(function(){jQuery("#shrsbresetallwarn").fadeOut()});jQuery("#shrsbresetallwarn-yes").click(function(){this.checked=
js/shareaholic-perf.js CHANGED
@@ -1 +1,11 @@
1
- var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-12964573-7"]);_gaq.push(["_trackPageview"]);(function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)})();
 
 
 
 
 
 
 
 
 
 
1
+ var _gaq = _gaq || [];
2
+ _gaq.push(["_setAccount", "UA-12964573-7"]);
3
+ _gaq.push(["_trackPageview"]);
4
+ (function() {
5
+ var a = document.createElement("script");
6
+ a.type = "text/javascript";
7
+ a.async = !0;
8
+ a.src = ("https:" == document.location.protocol ? "https://ssl" : "http://www") + ".google-analytics.com/ga.js";
9
+ var b = document.getElementsByTagName("script")[0];
10
+ b.parentNode.insertBefore(a, b)
11
+ })();
js/shareaholic-promo.js CHANGED
@@ -1,63 +1,86 @@
1
  var shr_cdn_root = "https://dtym7iokkjlif.cloudfront.net";
2
 
3
  function getBrowser() {
4
- var sUA = navigator.userAgent;
5
- var sName = "";
6
- if(sUA.indexOf("MSIE") != -1 ) {
7
- sName = "Internet Explorer";
8
- } else if(sUA.indexOf("Firefox") != -1 ) {
9
- sName = "Firefox";
10
- } else if(sUA.indexOf("Flock") != -1 ) {
11
- sName = "Flock";
12
- } else if(sUA.indexOf("Chrome") != -1 ) {
13
- sName = "Google Chrome";
14
- } else if(sUA.indexOf("Safari") != -1 ) {
15
- sName = "Safari";
16
- } else if(sUA.indexOf("Opera") != -1 ) {
17
- sName = "Opera";
18
- } else if(sUA.indexOf("Songbird") != -1 ) {
19
- sName = "Songbird";
20
- }
21
- return sName;
22
  }
23
-
24
  jQuery(window).load(function() {
25
- jQuery.cookie=function(d,c,a){if(typeof c!="undefined"){a=a||{};if(c===null)c="",a.expires=-1;var b="";if(a.expires&&(typeof a.expires=="number"||a.expires.toUTCString))typeof a.expires=="number"?(b=new Date,b.setTime(b.getTime()+a.expires*864E5)):b=a.expires,b="; expires="+b.toUTCString();var e=a.path?"; path="+a.path:"",f=a.domain?"; domain="+a.domain:"",a=a.secure?"; secure":"";document.cookie=[d,"=",encodeURIComponent(c),b,e,f,a].join("")}else{c=null;if(document.cookie&&document.cookie!=""){a=
26
- document.cookie.split(";");for(b=0;b<a.length;b++)if(e=jQuery.trim(a[b]),e.substring(0,d.length+1)==d+"="){c=decodeURIComponent(e.substring(d.length+1));break}}return c}};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
 
28
- var code = "";
29
- var ua = getBrowser();
30
 
31
- switch(ua){
32
- case "Firefox":
33
- code = '<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="' + shr_cdn_root + '/media/images/firefox_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">shareaholic firefox extension</a> - It is the best way to <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">Install</a></div>';
34
- break;
35
- case "Google Chrome":
36
- code = '<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="' + shr_cdn_root + '/media/images/chrome_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">shareaholic chrome extension</a> - It is the best way to <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">Install</a></div>';
37
- break;
38
- default:
39
- }
 
 
 
 
 
 
 
 
 
 
40
 
41
- setTimeout(function() {
42
- if(jQuery('.extLives').length == 0) {
43
- var extpromoPrompt = jQuery.cookie("no_cp");
44
- var inFrame = (window != window.top)
45
- if((extpromoPrompt != 1) && !inFrame) {
46
- jQuery("body").prepend(code);
47
- // Margin out the admin bar by its exact height if the admin bar is present.
48
- if(jQuery('#wpadminbar').length != 0) {
49
- jQuery("#ext-promo-prompt").css("margin-top", jQuery("#wpadminbar").css("height"));
50
-
51
- // Also, remove the dead whitespace.
52
- jQuery("#ext-promo-prompt").css("margin-bottom", "-" + jQuery("#ext-promo-prompt").css("height"));
53
- }
54
- jQuery('div#ext-promo-prompt').show();
55
- }
56
  }
57
- }, 500);
 
 
 
58
  });
59
 
60
  function ext_promo_noThanks() {
61
- jQuery.cookie('no_cp', '1', { expires: 60, path: '/' });
62
- jQuery('div#ext-promo-prompt').hide();
63
- }
 
 
 
1
  var shr_cdn_root = "https://dtym7iokkjlif.cloudfront.net";
2
 
3
  function getBrowser() {
4
+ var sUA = navigator.userAgent;
5
+ var sName = "";
6
+ if (sUA.indexOf("MSIE") != -1) {
7
+ sName = "Internet Explorer";
8
+ } else if (sUA.indexOf("Firefox") != -1) {
9
+ sName = "Firefox";
10
+ } else if (sUA.indexOf("Flock") != -1) {
11
+ sName = "Flock";
12
+ } else if (sUA.indexOf("Chrome") != -1) {
13
+ sName = "Google Chrome";
14
+ } else if (sUA.indexOf("Safari") != -1) {
15
+ sName = "Safari";
16
+ } else if (sUA.indexOf("Opera") != -1) {
17
+ sName = "Opera";
18
+ } else if (sUA.indexOf("Songbird") != -1) {
19
+ sName = "Songbird";
20
+ }
21
+ return sName;
22
  }
23
+
24
  jQuery(window).load(function() {
25
+ jQuery.cookie = function(d, c, a) {
26
+ if (typeof c != "undefined") {
27
+ a = a || {};
28
+ if (c === null) c = "", a.expires = -1;
29
+ var b = "";
30
+ if (a.expires && (typeof a.expires == "number" || a.expires.toUTCString)) typeof a.expires == "number" ? (b = new Date, b.setTime(b.getTime() + a.expires * 864E5)) : b = a.expires, b = "; expires=" + b.toUTCString();
31
+ var e = a.path ? "; path=" + a.path : "",
32
+ f = a.domain ? "; domain=" + a.domain : "",
33
+ a = a.secure ? "; secure" : "";
34
+ document.cookie = [d, "=", encodeURIComponent(c), b, e, f, a].join("")
35
+ } else {
36
+ c = null;
37
+ if (document.cookie && document.cookie != "") {
38
+ a = document.cookie.split(";");
39
+ for (b = 0; b < a.length; b++) if (e = jQuery.trim(a[b]), e.substring(0, d.length + 1) == d + "=") {
40
+ c = decodeURIComponent(e.substring(d.length + 1));
41
+ break
42
+ }
43
+ }
44
+ return c
45
+ }
46
+ };
47
 
48
+ var code = "";
49
+ var ua = getBrowser();
50
 
51
+ switch (ua) {
52
+ case "Firefox":
53
+ code = '<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="' + shr_cdn_root + '/media/images/firefox_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">shareaholic firefox extension</a> - It is the best way to <a href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://addons.mozilla.org/en-US/firefox/addon/5457/" target="_new">Install</a></div>';
54
+ break;
55
+ case "Google Chrome":
56
+ code = '<div id="ext-promo-prompt" class="fs_a fs_c_midgrey2"><img src="' + shr_cdn_root + '/media/images/chrome_32x32.png" height=24 width=24 align="absmiddle" style="margin: -4px 8px 0 8px;" />Get the <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">shareaholic chrome extension</a> - It is the best way to <a href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">share your content, discover, and connect with the Best of the Web</a>! <a class="close" href="javascript:ext_promo_noThanks();">x</a> <a class="install rounded_5" href="https://chrome.google.com/webstore/detail/kbmipnjdeifmobkhgogdnomkihhgojep" target="_new">Install</a></div>';
57
+ break;
58
+ default:
59
+ }
60
+
61
+ setTimeout(function() {
62
+ if (jQuery('.extLives').length == 0) {
63
+ var extpromoPrompt = jQuery.cookie("no_cp");
64
+ var inFrame = (window != window.top)
65
+ if ((extpromoPrompt != 1) && !inFrame) {
66
+ jQuery("body").prepend(code);
67
+ // Margin out the admin bar by its exact height if the admin bar is present.
68
+ if (jQuery('#wpadminbar').length != 0) {
69
+ jQuery("#ext-promo-prompt").css("margin-top", jQuery("#wpadminbar").css("height"));
70
 
71
+ // Also, remove the dead whitespace.
72
+ jQuery("#ext-promo-prompt").css("margin-bottom", "-" + jQuery("#ext-promo-prompt").css("height"));
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  }
74
+ jQuery('div#ext-promo-prompt').show();
75
+ }
76
+ }
77
+ }, 500);
78
  });
79
 
80
  function ext_promo_noThanks() {
81
+ jQuery.cookie('no_cp', '1', {
82
+ expires: 60,
83
+ path: '/'
84
+ });
85
+ jQuery('div#ext-promo-prompt').hide();
86
+ }
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: shareaholic
3
  Tags: SexyBookmarks, SexyBookmark, Facebook, Twitter, LinkedIn, URL Shortener, Bitly, TinyURL, Supr, Goo.gl, Google +1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Google Gmail, Google Notebook, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, Bebo, Mister Wong, Evernote, Twine, Diigo, add this, addtoany, share this, share and follow, share and enjoy, sharing is sexy, sharing is caring, Mail, Yahoo, Reddit, Techmeme, Hacker News, Tweet Button, Twitter Button, Fark, Buffer, MySpace, Orkut, Plurk, Identi.ca, Hyves, Netlog, HubSpot, WeHeartIt, Yandex, PrintFriendly, Print, ReadItLater, Yammer, Pinterest, Google Translate, Pinboard, Shareaholic, Shareholic, Bookmarks, Social, Email Button, Social Share, Bookmark Button, Share Button, Social Bookmarking, Bookmarks Menu, Bookmarking, Share, Share Count, Sharebar, Social Media, SEO, Analytics, Stats, Sharing, Saving, Posting, Facebook Like, Facebook Recommend, Facebook Send, WPMU, nrelate, outbrain, linkwithin, Related Content, Related Posts, Thumbnails, Recommendations
4
  Requires at least: 2.7
5
- Tested up to: 3.4
6
- Stable tag: 6.0.0.3
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -13,13 +13,13 @@ Shareaholic has proven time and time again to be an extremely useful and success
13
  Our sole aim was to stray away from the "in the box" thinking behind most social bookmarking plugins, and add a little flair that would entice your readers, rather than deterring them with microscopic icons that get lost in pages heavy laden with content.
14
 
15
  = Recent Updates =
16
- * Recommendations - Drive pageviews and increase time on site with this related content widget
17
  * Social Analytics - Actionable and easy to understand
18
  * Classic Bookmarks - Classic Bookmarks offer a clean-cut and professional look for your blog
19
  * Full support for Facebook Like Button, Facebook Send, Google Plus, Pinterest
20
  * Share Counters for Twitter, Facebook, LinkedIn, etc
21
  * Official support for Google's URL shortener (goo.gl) and Google Analytics
22
- * Utilizes the [Share API](http://www.shareaholic.com/api/)
23
  * Localized in 15+ languages
24
 
25
  = Recently Added Services =
@@ -40,7 +40,7 @@ Shareaholic is used and trusted by hundreds of thousands of publishers and touch
40
  Note: The analytics portion of Shareaholic may use trusted 3rd party services like Google Analytics and AppNexus to enhance its data.
41
 
42
 
43
- [Support](http://getsatisfaction.com/shareaholic/products/shareaholic_shareaholic_for_wordpress_sexybookmarks) | [Privacy](http://www.shareaholic.com/privacy/) | [Terms](http://www.shareaholic.com/terms/) | [API](http://www.shareaholic.com/api/) | [Social Analytics](http://www.shareaholic.com/publishers/analytics/)
44
 
45
  == Other Notes ==
46
 
@@ -50,7 +50,7 @@ The plugin wouldn't be half of what it is today if it weren't for people like yo
50
 
51
  Listed here are credits and special thanks to some of you who have helped us out a great deal:
52
 
53
- [Complete credits on Shareaholic.com](http://www.shareaholic.com/tools/wordpress/credits)
54
 
55
  = Translations =
56
  * Credit goes to [Maitre Mo](http://maitremo.fr) for translating to French
@@ -80,9 +80,9 @@ Listed here are credits and special thanks to some of you who have helped us out
80
 
81
  == Screenshots ==
82
 
83
- 1. SexyBookmarks - A quick preview of the final outcome (excess hidden)
84
- 2. SexyBookmarks - Another preview of the final outcome with excess networks displayed upon hover
85
- 3. Classic Bookmarks - Classic Bookmarks offer a clean-cut and professional look for your blog
86
  4. Recommendations - Drive pageviews and increase time on site with this related content widget
87
  5. Top Bar - Drive more shares to your content with this additional call-to-action
88
  6. An 100% integrated and customizable approach - It all comes together nicely in one place!
@@ -117,14 +117,28 @@ You can still configure the other options available when inserting manually and
117
 
118
  == Frequently Asked Questions ==
119
  = Where can I find a detailed FAQ? =
120
- Please see here: [Frequently Asked Questions](http://www.shareaholic.com/tools/wordpress/faq)
121
 
122
  = Where can I get detailed Usage & Installation instructions? =
123
- Please see here: [Usage & Installation Instructions](http://www.shareaholic.com/tools/wordpress/usage-installation)
124
 
125
 
126
  == Changelog ==
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  = 6.0.0.3 =
129
  * Updated screenshots
130
 
@@ -209,8 +223,8 @@ Please see here: [Usage & Installation Instructions](http://www.shareaholic.com/
209
  * Fixed jQuery IE bug (will be much more stable in IE)
210
  * Custom sprite generation certified compatible with WordPress Multisite
211
  * Shareaholic's proprietary data attributes are now HTML5-compliant.
212
- * FAQ moved to http://www.shareaholic.com/tools/wordpress/faq
213
- * Usage & Installation guide moved to http://www.shareaholic.com/tools/wordpress/usage-installation
214
  * Added browser extension promo
215
  * Added Support for Open Graph Tags (for Facebook and Google +1 sharing) - Featured Image or First Gallery Image in post will be selected for Open Graph Tag
216
  * Added links to live support in admin panel
2
  Contributors: shareaholic
3
  Tags: SexyBookmarks, SexyBookmark, Facebook, Twitter, LinkedIn, URL Shortener, Bitly, TinyURL, Supr, Goo.gl, Google +1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Google Gmail, Google Notebook, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, Bebo, Mister Wong, Evernote, Twine, Diigo, add this, addtoany, share this, share and follow, share and enjoy, sharing is sexy, sharing is caring, Mail, Yahoo, Reddit, Techmeme, Hacker News, Tweet Button, Twitter Button, Fark, Buffer, MySpace, Orkut, Plurk, Identi.ca, Hyves, Netlog, HubSpot, WeHeartIt, Yandex, PrintFriendly, Print, ReadItLater, Yammer, Pinterest, Google Translate, Pinboard, Shareaholic, Shareholic, Bookmarks, Social, Email Button, Social Share, Bookmark Button, Share Button, Social Bookmarking, Bookmarks Menu, Bookmarking, Share, Share Count, Sharebar, Social Media, SEO, Analytics, Stats, Sharing, Saving, Posting, Facebook Like, Facebook Recommend, Facebook Send, WPMU, nrelate, outbrain, linkwithin, Related Content, Related Posts, Thumbnails, Recommendations
4
  Requires at least: 2.7
5
+ Tested up to: 3.5
6
+ Stable tag: 6.1.1.0
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
13
  Our sole aim was to stray away from the "in the box" thinking behind most social bookmarking plugins, and add a little flair that would entice your readers, rather than deterring them with microscopic icons that get lost in pages heavy laden with content.
14
 
15
  = Recent Updates =
16
+ * Recommendations & Related Content - Increase reader engagement and pageviews by highlighting related content from across your site
17
  * Social Analytics - Actionable and easy to understand
18
  * Classic Bookmarks - Classic Bookmarks offer a clean-cut and professional look for your blog
19
  * Full support for Facebook Like Button, Facebook Send, Google Plus, Pinterest
20
  * Share Counters for Twitter, Facebook, LinkedIn, etc
21
  * Official support for Google's URL shortener (goo.gl) and Google Analytics
22
+ * Utilizes the [Share API](https://shareaholic.com/api/)
23
  * Localized in 15+ languages
24
 
25
  = Recently Added Services =
40
  Note: The analytics portion of Shareaholic may use trusted 3rd party services like Google Analytics and AppNexus to enhance its data.
41
 
42
 
43
+ [Support](http://support.shareaholic.com/) | [Privacy](https://shareaholic.com/privacy/) | [Terms](https://shareaholic.com/terms/) | [API](https://shareaholic.com/api/) | [Social Analytics](https://shareaholic.com/publishers/analytics/)
44
 
45
  == Other Notes ==
46
 
50
 
51
  Listed here are credits and special thanks to some of you who have helped us out a great deal:
52
 
53
+ [Complete credits on Shareaholic.com](https://shareaholic.com/tools/wordpress/credits)
54
 
55
  = Translations =
56
  * Credit goes to [Maitre Mo](http://maitremo.fr) for translating to French
80
 
81
  == Screenshots ==
82
 
83
+ 1. Sexy Share Buttons - A quick preview of the final outcome (excess hidden)
84
+ 2. Sexy Share Buttons - Another preview of the final outcome with excess networks displayed upon hover
85
+ 3. Classic Share Buttons - Classic Bookmarks offer a clean-cut and professional look for your blog
86
  4. Recommendations - Drive pageviews and increase time on site with this related content widget
87
  5. Top Bar - Drive more shares to your content with this additional call-to-action
88
  6. An 100% integrated and customizable approach - It all comes together nicely in one place!
117
 
118
  == Frequently Asked Questions ==
119
  = Where can I find a detailed FAQ? =
120
+ Please see here: [Frequently Asked Questions](https://shareaholic.com/tools/wordpress/faq)
121
 
122
  = Where can I get detailed Usage & Installation instructions? =
123
+ Please see here: [Usage & Installation Instructions](https://shareaholic.com/tools/wordpress/usage-installation)
124
 
125
 
126
  == Changelog ==
127
 
128
+ = 6.1.1.0 =
129
+ * JavaScript is now hosted on Amazon's CDN to make everything blazing fast!
130
+ * Removed Strands, FAQPal, Tipd, Sphinn, Twittley (services have shut down)
131
+ * Removed Technorati, Ning (can no longer share to these services)
132
+
133
+ = 6.1.0.0 =
134
+ * Fixed syntax error caught by latest jQuery
135
+ * Fixed encoding errors
136
+ * Support for Shareaholic Content Tags - shareaholic:image and shareaholic:site_name
137
+ * Update links to new analytics
138
+ * Admin panel code optimizations
139
+ * Load time optimization by reducing # of Twitter API calls
140
+ * Deprecated "comment feed" service
141
+
142
  = 6.0.0.3 =
143
  * Updated screenshots
144
 
223
  * Fixed jQuery IE bug (will be much more stable in IE)
224
  * Custom sprite generation certified compatible with WordPress Multisite
225
  * Shareaholic's proprietary data attributes are now HTML5-compliant.
226
+ * FAQ moved to https://shareaholic.com/tools/wordpress/faq
227
+ * Usage & Installation guide moved to https://shareaholic.com/tools/wordpress/usage-installation
228
  * Added browser extension promo
229
  * Added Support for Open Graph Tags (for Facebook and Google +1 sharing) - Featured Image or First Gallery Image in post will be selected for Open Graph Tag
230
  * Added links to live support in admin panel
sexy-bookmarks.php CHANGED
@@ -1,15 +1,15 @@
1
  <?php
2
  /*
3
- Plugin Name: Shareaholic | email, bookmark, share buttons
4
- Plugin URI: http://www.shareaholic.com/tools/wordpress/
5
  Description: Shareaholic adds a (X)HTML compliant list of social bookmarking icons to each of your posts. See <a href="admin.php?page=sexy-bookmarks.php">configuration panel</a> for more settings.
6
- Version: 6.0.0.3
7
  Author: Shareaholic
8
- Author URI: http://www.shareaholic.com
9
- Credits & Thanks: http://www.shareaholic.com/tools/wordpress/credits
10
  */
11
 
12
- define('SHRSB_vNum','6.0.0.3');
13
 
14
  /*
15
  * @desc Create Text Domain For Translations
@@ -17,7 +17,6 @@ define('SHRSB_vNum','6.0.0.3');
17
 
18
  load_plugin_textdomain('shrsb', false, basename(dirname(__FILE__)) . '/languages/');
19
 
20
-
21
  /*
22
  * @note Make sure to include files first as there may be dependencies
23
  */
@@ -166,7 +165,7 @@ function shrsb_SpritegenNotice() {
166
  echo '
167
  <div id="update_sb" style="border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;background:#feb1b1;border:1px solid #fe9090;color:#820101;font-size:10px;font-weight:bold;height:auto;margin:35px 15px 0 0;overflow:hidden;padding:4px 10px 6px;">
168
  <div style="background:url('.SHRSB_UPLOADPATH.'custom-fugue-sprite.png) no-repeat 0 -525px;margin:2px 10px 0 0;float:left;line-height:18px;padding-left:22px;">
169
- '.sprintf(__('NOTICE: Your spritegen directory isn\'t writable - Please %sCHMOD%s your spritegen directory to ensure that Shareaholic remains working like a charm...', 'shrsb'), '<a href="http://www.shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target = "_blank" style="color:#ca0c01">', '</a>').'
170
  </div>
171
  </div>';
172
  }
@@ -243,7 +242,7 @@ function showUpdateNotice() {
243
  function _add_meta_box_options() {
244
 
245
  if( shrsb_get_current_user_role() == "Administrator" || shrsb_get_current_user_role() == "Editor") {
246
- //"Hide options on each post
247
  add_meta_box( 'hide_options_meta', __( 'Shareaholic', 'shrsb' ), '_hide_options_meta_box_content', 'page', 'advanced', 'high' );
248
  add_meta_box( 'hide_options_meta', __( 'Shareaholic', 'shrsb' ), '_hide_options_meta_box_content', 'post', 'advanced', 'high' );
249
  }
@@ -263,10 +262,10 @@ function _hide_options_meta_box_content() {
263
  $hide_ogtags = '';
264
 
265
  //"Hide SexyBookmarks" option on each post
266
- echo '<p><label for="hide_sexy"><input name="hide_sexy" id="hide_sexy" value="1"' . $hide_sexy . ' type="checkbox"> ' . __( 'Disable SexyBookmarks Buttons on this page.', 'shrsb' ) . '</label></p>';
267
 
268
  //For Hiding the OG tags for specific posts
269
- echo '<p><label for="hide_ogtags"><input name="hide_ogtags" id="hide_ogtags" value="1"' . $hide_ogtags . ' type="checkbox"> ' . __( 'Disable Open Graph Tags on this page.', 'shrsb' ) . '(<a href="http://www.shareaholic.com/tools/wordpress/faq/#open_graph_image" target="_blank">?</a>)</label></p>';
270
  }
271
 
272
  function _hide_options_meta_box_save( $post_id ) {
@@ -319,8 +318,6 @@ function php_version_uncompatible() {
319
  }
320
  }
321
 
322
-
323
-
324
  function shrsb_account_page() {
325
  global $shrsb_plugopts;
326
  $apikey = $_POST['apikey'] ? $_POST['apikey'] : $shrsb_plugopts['apikey'] ;
@@ -373,7 +370,6 @@ function shrsb_first_page(){
373
  }
374
 
375
  function shrsb_check_activation(){
376
-
377
  $activated = get_option('SHR_activate');
378
  if($activated == 0 || $activated === false){
379
  if($_POST['activate'] == 1){
@@ -498,38 +494,70 @@ function shrsb_first_image() {
498
  /*
499
  * @desc For adding Open Graph tags to each post (http://ogp.me/)
500
  */
 
501
  function shrsb_add_ogtags_head() {
502
- global $post,$shrsb_plugopts;
503
-
504
- // check to see if ogtags are enabled or not
505
- if (!isset($shrsb_plugopts['ogtags']) || empty($shrsb_plugopts['ogtags'])) {
506
- echo "\n\n".'<!-- Shareaholic Notice: OgTags disabled for all posts -->'."\n\n";
507
- }else{
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
508
  //Check whther OG Tags enabled for this post
509
  if(($ogtags_meta = get_post_meta($post->ID, 'Hide OgTags',true)) == 1) {
510
- echo "\n\n".'<!-- Shareaholic Notice: OgTags disabled for this post -->'."\n\n";
511
  return;
512
  }
513
 
514
- echo "\n\n".'<!-- Start SHR Open Graph Tags -->'."\n\n";
515
 
516
  if (is_home()) {
517
  if (isset($shrsb_plugopts['shrsb_fallback_img']) && $shrsb_plugopts['shrsb_fallback_img'] != '') {
518
- echo "\t<meta property='og:image' content='".$shrsb_plugopts['shrsb_fallback_img']."' />\n";
519
  }else{
520
  echo "\t<!-- Shareaholic Notice: There is no featured image set -->\n";
521
  }
522
  } else {
523
  if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
524
  $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
525
- echo "\t<meta property='og:image' content='".esc_attr($thumbnail_src[0])."' />\n";
526
  }elseif (( shrsb_first_image() !== false ) && (is_singular())) {
527
- echo "\t<meta property='og:image' content='".shrsb_first_image()."' />\n";
528
  }else{
529
  echo "\t".'<!-- Shareaholic Notice: There is neither a featured nor gallery image set -->'."\n";
530
  }
531
  }
532
- echo "\n<!-- END SHR Open Graph Tags -->\n\n";
533
  }
534
  } // end function
535
 
1
  <?php
2
  /*
3
+ Plugin Name: Shareaholic* | share buttons, analytics, related content
4
+ Plugin URI: https://shareaholic.com/publishers/
5
  Description: Shareaholic adds a (X)HTML compliant list of social bookmarking icons to each of your posts. See <a href="admin.php?page=sexy-bookmarks.php">configuration panel</a> for more settings.
6
+ Version: 6.1.1.0
7
  Author: Shareaholic
8
+ Author URI: https://shareaholic.com
9
+ Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
10
  */
11
 
12
+ define('SHRSB_vNum','6.1.1.0');
13
 
14
  /*
15
  * @desc Create Text Domain For Translations
17
 
18
  load_plugin_textdomain('shrsb', false, basename(dirname(__FILE__)) . '/languages/');
19
 
 
20
  /*
21
  * @note Make sure to include files first as there may be dependencies
22
  */
165
  echo '
166
  <div id="update_sb" style="border-radius:4px;-moz-border-radius:4px;-webkit-border-radius:4px;background:#feb1b1;border:1px solid #fe9090;color:#820101;font-size:10px;font-weight:bold;height:auto;margin:35px 15px 0 0;overflow:hidden;padding:4px 10px 6px;">
167
  <div style="background:url('.SHRSB_UPLOADPATH.'custom-fugue-sprite.png) no-repeat 0 -525px;margin:2px 10px 0 0;float:left;line-height:18px;padding-left:22px;">
168
+ '.sprintf(__('NOTICE: Your spritegen directory isn\'t writable - Please %sCHMOD%s your spritegen directory to ensure that Shareaholic remains working like a charm...', 'shrsb'), '<a href="https://shareaholic.com/tools/wordpress/usage-installation#chmodinfo" target = "_blank" style="color:#ca0c01">', '</a>').'
169
  </div>
170
  </div>';
171
  }
242
  function _add_meta_box_options() {
243
 
244
  if( shrsb_get_current_user_role() == "Administrator" || shrsb_get_current_user_role() == "Editor") {
245
+ // Hide options on each post
246
  add_meta_box( 'hide_options_meta', __( 'Shareaholic', 'shrsb' ), '_hide_options_meta_box_content', 'page', 'advanced', 'high' );
247
  add_meta_box( 'hide_options_meta', __( 'Shareaholic', 'shrsb' ), '_hide_options_meta_box_content', 'post', 'advanced', 'high' );
248
  }
262
  $hide_ogtags = '';
263
 
264
  //"Hide SexyBookmarks" option on each post
265
+ echo '<p><label for="hide_sexy"><input name="hide_sexy" id="hide_sexy" value="1"' . $hide_sexy . ' type="checkbox"> ' . __( 'Disable SexyBookmarks Share Buttons on this page.', 'shrsb' ) . '</label></p>';
266
 
267
  //For Hiding the OG tags for specific posts
268
+ echo '<p><label for="hide_ogtags"><input name="hide_ogtags" id="hide_ogtags" value="1"' . $hide_ogtags . ' type="checkbox"> ' . __( 'Disable Open Graph Tags on this page.', 'shrsb' ) . '(<a href="https://shareaholic.com/tools/wordpress/faq/#open_graph_image" target="_blank">?</a>)</label></p>';
269
  }
270
 
271
  function _hide_options_meta_box_save( $post_id ) {
318
  }
319
  }
320
 
 
 
321
  function shrsb_account_page() {
322
  global $shrsb_plugopts;
323
  $apikey = $_POST['apikey'] ? $_POST['apikey'] : $shrsb_plugopts['apikey'] ;
370
  }
371
 
372
  function shrsb_check_activation(){
 
373
  $activated = get_option('SHR_activate');
374
  if($activated == 0 || $activated === false){
375
  if($_POST['activate'] == 1){
494
  /*
495
  * @desc For adding Open Graph tags to each post (http://ogp.me/)
496
  */
497
+
498
  function shrsb_add_ogtags_head() {
499
+
500
+ echo "\n<!-- Shareaholic Content Tags -->\n\n";
501
+
502
+ global $post, $shrsb_plugopts;
503
+
504
+ $blog_name = get_bloginfo();
505
+ if (!empty($blog_name)) {
506
+ echo "<meta property='shareaholic:site_name' content='" . $blog_name . "' />\n";
507
+ }
508
+
509
+ if (is_home()) {
510
+
511
+ if (isset($shrsb_plugopts['shrsb_fallback_img']) && $shrsb_plugopts['shrsb_fallback_img'] != '') {
512
+ echo "<meta property='shareaholic:image' content='" . $shrsb_plugopts['shrsb_fallback_img'] . "' />\n";
513
+ } else {
514
+ echo "\t<!-- Shareaholic Notice: There is no featured image set -->\n";
515
+ }
516
+ } else {
517
+
518
+ if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
519
+ $thumbnail_src = wp_get_attachment_image_src(get_post_thumbnail_id($post->ID), 'large');
520
+ echo "<meta property='shareaholic:image' content='" . esc_attr($thumbnail_src[0]) . "' />\n";
521
+ } elseif (is_singular()) {
522
+ $first_image = shrsb_first_image();
523
+ if ($first_image !== false) {
524
+ echo "<meta property='shareaholic:image' content='" . $first_image . "' />\n";
525
+ }
526
+ } else {
527
+ echo "\t" . '<!-- Shareaholic Notice: There is neither a featured nor gallery image set -->' . "\n";
528
+ }
529
+ }
530
+ echo "\n<!-- / Shareaholic Content Tags -->\n\n";
531
+
532
+ // check to see if ogtags are enabled or not
533
+ if (!isset($shrsb_plugopts['ogtags']) || empty($shrsb_plugopts['ogtags'])) {
534
+ echo "\n\n" . '<!-- Shareaholic - Facebook Open Graph Tags -->' . "\n\n";
535
+ } else {
536
  //Check whther OG Tags enabled for this post
537
  if(($ogtags_meta = get_post_meta($post->ID, 'Hide OgTags',true)) == 1) {
538
+ echo "\n\n".'<!-- Shareaholic Notice: Open Graph Tags disabled for this post -->'."\n\n";
539
  return;
540
  }
541
 
542
+ echo "\n\n".'<!-- Shareaholic - Open Graph Tags -->'."\n\n";
543
 
544
  if (is_home()) {
545
  if (isset($shrsb_plugopts['shrsb_fallback_img']) && $shrsb_plugopts['shrsb_fallback_img'] != '') {
546
+ echo "<meta property='og:image' content='".$shrsb_plugopts['shrsb_fallback_img']."' />\n";
547
  }else{
548
  echo "\t<!-- Shareaholic Notice: There is no featured image set -->\n";
549
  }
550
  } else {
551
  if ((function_exists('has_post_thumbnail')) && (has_post_thumbnail())) {
552
  $thumbnail_src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'medium' );
553
+ echo "<meta property='og:image' content='".esc_attr($thumbnail_src[0])."' />\n";
554
  }elseif (( shrsb_first_image() !== false ) && (is_singular())) {
555
+ echo "<meta property='og:image' content='".shrsb_first_image()."' />\n";
556
  }else{
557
  echo "\t".'<!-- Shareaholic Notice: There is neither a featured nor gallery image set -->'."\n";
558
  }
559
  }
560
+ echo "\n<!-- / Shareaholic - Open Graph Tags -->\n\n";
561
  }
562
  } // end function
563
 
spritegen_default/jquery.shareaholic-publishers-sb.min.js CHANGED
@@ -1,79 +1,79 @@
1
  /*
2
  Copyright (c) Shareaholic Inc (www.shareaholic.com). All rights reserved.
3
  */
4
- typeof SHR4P=="undefined"&&(SHR4P={});typeof SHR=="undefined"&&(SHR={});SHR.enforceSSL=!0;typeof SHRSB_Globals=="undefined"&&(window.SHRSB_Globals={});if(typeof SHRSB_Globals.perfoption=="undefined")SHRSB_Globals.perfoption="1";if(typeof SHRSB_Globals.minJQueryVersion=="undefined")SHRSB_Globals.minJQueryVersion="1.5.2";SHR4P.host=typeof SHR.debug_enabled!=="undefined"?"www.spreadaholic.com":"www.shareaholic.com";SHR4P.base_url=(SHR.enforceSSL?"https:":document.location.protocol)+"//"+SHR4P.host;
5
- SHR4P.cdn_url=SHR.enforceSSL||"https:"==document.location.protocol?"https://dtym7iokkjlif.cloudfront.net":"http://cdn.shareaholic.com";SHR4P.cdn_url=typeof SHR.debug_enabled!=="undefined"?SHR4P.base_url:SHR4P.cdn_url;SHR4P.shr_twitter_image=SHR4P.cdn_url+"/media/images/styles/tb/twitter.png";SHR4P.shr_twitter_template="${title} - ${short_link} via @Shareaholic";if(typeof SHRSB_Settings!="undefined"&&typeof SHRSB_Settings.twitter_template!="undefined")SHR4P.shr_twitter_template=SHRSB_Settings.twitter_template;
6
- if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.twitter_template!="undefined")SHR4P.shr_twitter_template=SHRSB_Globals.twitter_template;if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.src!="undefined")SHR4P.shr_image=SHRSB_Globals.src+"/shareaholic-publishers-mini.png";
7
- var SHR4P_init=function(){SHR4P.debug("SHR4P_init called");if(SHR4P.init)SHR4P.debug("SHR4P_init returning because already loaded");else if(SHR4P.init=!0,SHR4P.jQuery=typeof sb_dont_noConflict!="undefined"&&sb_dont_noConflict?jQuery:jQuery.noConflict(!0),SHR4P.debug("jquery version: "+SHR4P.jQuery().jquery),function(b){SHR4P.debug("initializing shareaholic_publishers plugin");b.fn.shareaholic_publishers=function(d){var a=b.extend({v:1,src:SHR4P.base_url,mode:"inject",service:"",apikey:"",link:"",
8
- title:"",notes:"",expand:!0,duration:400,rel:"nofollow",target:"_blank",twitter_template:"${title} - ${short_link} via @Shareaholic",dontShowShareCount:!1,fbLikeButton:!1,fbButtonPos:"bottom-right",tags:"",allowExternalTags:!0,designer_toolTips:!1,tip_bg_color:"black",tip_text_color:"white",category:"",ctype:"",short_link:"",shortener:"google",shortener_key:"",custom_link:{},bgimg:"",bgimg_padding:"0 0 0 0",center:!1,spaced:!1,iframe_src:"/publishers",spriteimg:"",share_src:SHR4P.base_url,localize:!1,
9
- li_margin:0,"margin-top":20,"margin-bottom":20,"margin-left":0,"bgimg-padding-top":0,"bgimg-padding-left":0,"icon-width":60,"icon-height":29,"icon-margin-top":3,"promo-height":d.shrlink?18:0,shrlink:!1,twitter_overlay:!0},d);b(this);SHR4P.debug("$.fn.shareaholic_publishers called");SHR4P.debug(a);b.browser.msie&&b.browser.version<"7.0"&&(a["icon-height"]+=4);a.bgimg!=null&&(d=b.trim(a.bgimg_padding).split(" "),a["bgimg-padding-top"]=d[0]?Number(d[0].replace(/[a-zA-Z]+/,"")):0,a["bgimg-padding-left"]=
10
- d[3]?Number(d[3].replace(/[a-zA-Z]+/,"")):0,a["margin-left"]=10);if(a.localize)a.iframe_src="/publishers.html";var c=function(){var g=0;if(!b.isEmptyObject(a.custom_link))g=b(a.custom_link).length;return a.service.split(",").length+g},e=function(){return a["margin-left"]+a["bgimg-padding-left"]},g=function(b){return Math.ceil(c()/Math.floor((b-e())/a["icon-width"]))},h=function(b){return a.expand?a["margin-top"]+a["bgimg-padding-top"]+a["icon-height"]+a["icon-margin-top"]+(g(b)==1?a["promo-height"]:
11
- 0):j(b)},j=function(b){return a["margin-top"]+a["bgimg-padding-top"]+(a["icon-height"]+a["icon-margin-top"])*g(b)+a["promo-height"]},i=function(b){SHR4P.debug("centering");var d=0;g(b)==1&&(SHR4P.debug("one row! do centering"),d=(b-e()-c()*a["icon-width"])/2,SHR4P.debug("returning "+d+" margin"));return d},k=function(b){SHR4P.debug("spacing");SHR4P.debug("rows: "+g(b));var d=0;g(b)==1&&(SHR4P.debug("one row! spacing icons"),d=Math.floor((b-e()-a["icon-width"]*c())/c()),SHR4P.debug("returning "+d+
12
- " margin"));return d};this.each(function(){if(a.spaced)a.li_margin=k(b(this).width());var g={src:a.src,service:a.service,apikey:a.apikey,link:a.link,title:a.title,notes:a.notes,bgimg:a.bgimg,bgimg_padding:a.bgimg_padding,rel:a.rel,target:a.target,twitter_template:a.twitter_template,localize:a.localize,share_src:a.share_src,spriteimg:a.spriteimg,tags:a.tags,allowExternalTags:a.allowExternalTags,designer_toolTips:a.designer_toolTips,tip_bg_color:a.tip_bg_color,tip_text_color:a.tip_text_color,category:a.category,
13
- ctype:a.ctype,custom_link:a.custom_link,li_margin:a.li_margin,short_link:a.short_link,shortener:a.shortener,shortener_key:a.shortener_key,shrlink:a.shrlink,expand:a.expand,dontShowShareCount:a.dontShowShareCount,fbLikeButton:a.fbLikeButton,fbButtonPos:a.fbButtonPos,twitter_overlay:a.twitter_overlay};a.center&&b(this).css({"margin-left":i(b(this).width())});a.mode=="inject"?b(this).shareaholic(g):b(this).append(b('<iframe frameborder="0"/>').attr({src:[a.src+a.iframe_src,b.param(g)].join("?"),height:h(b(this).width()),
14
- width:b(this).width(),scrolling:"no","class":"share-iframe"}).css({height:j(b(this).width())}));a.expand&&(b(this).css({overflow:"hidden",height:h(b(this).width())}),b(this).hover(function(){b(this).animate({height:j(b(this).width())},{duration:a.duration,queue:!1})},function(){b(this).animate({height:h(b(this).width())},{duration:a.duration,queue:!1})}))});return this};var c=function(b,a){var c=function(){SHR4P.debug("bitly javascript loaded");var g=b.link;BitlyCB.mycallback=function(b){SHR4P.debug("bit.ly calls back with");
15
- SHR4P.debug(b);if(b.errorCode==0)SHR4P.debug("successfully shortened, calling callback with: "),b=b.results[g].shortUrl,SHR4P.debug("short_link: "+b),SHR4P.debug("type: "+typeof b),a(b)};BitlyClient.call("shorten",{longUrl:g},"BitlyCB.mycallback")};if(typeof BitlyClient=="undefined"){SHR4P.debug("loading bit.ly");var e=document.getElementsByTagName("head")[0];if(typeof e!="undefined"){var g=b.shortener_key.split("|"),h=document.createElement("script");h.src="http://bit.ly/javascript-api.js?version=latest&login="+
16
- g[0]+"&apiKey="+g[1];h.type="text/javascript";h.charset="utf-8";e.appendChild(h);h.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")SHR4P.debug("bit.ly loaded with onreadystatechange, init'ing"),c()};h.onload=c}}else SHR4P.debug("bit.ly already loaded. init'ing"),c()};SHR4P.debug("initializing shareaholic plugin");b.fn.shareaholic=function(d){var a=b.extend({service:"",rel:"nofollow",target:"_blank",poller_timeout:200,link:"",title:"",notes:"",bgimg:"",bgimg_padding:"",
17
- twitter_template:"${title} - ${short_link}",tags:"",category:"",ctype:"",localize:!1,custom_link:{},li_margin:0,share_src:SHR4P.base_url,src:SHR4P.base_url,api:{share:{v:"1",url:"/api/share/",apitype:"1",source:"Shareaholic-Publishers"},sprite:{v:"2",url:"/api/sprite/"}},short_link:"",shortener:"google",shortener_key:"",shortener_services:{"bit.ly":function(b,a){c(b,a)}}},d);SHR4P.debug("$.fn.shareaholic called");SHR4P.debug(a);b(this).addClass("shareaholic-show-on-load");if(a.localize==!0||a.localize==
18
- "true")a.localize=!0;if(!a.link||a.link&&a.link==="")a.link=b(this).attr("data-shr_href")||document.location.href;if(!a.title||a.title&&a.title==="")a.title=b(this).attr("data-shr_title")||document.title;var f=function(a,g){return[a,b.param(g)].join("?")},e=function(a){for(var b=[],g=a.length,d=0;d<g;d++){for(var c=d+1;c<g;c++)a[d]===a[c]&&(c=++d);b.push(a[d])}return b},g=function(a,g,d){var c=d.designer_toolTips?"orig_title":"title",h=d.custom_link[a+"_"+g];SHR4P.debug("adding link "+a+" "+g);return b("<li/>").addClass(h.li_class).append(b("<a/>").attr({href:h.link,
19
- rel:d.rel,target:d.target,"class":"external"}).attr(c,h.tooltip).text(h.tooltip)).attr("style",h.style+";margin-left:"+d.li_margin+"px !important;")},d=a.localize?a.src+"/sprite.css":f(a.src+a.api.sprite.url,{v:a.api.sprite.v,apikey:a.apikey,service:e(a.service.split(",")).sort().join(",")});b("#shareaholic-publisher-css").length==0&&b("head").append(b('<link rel="stylesheet" media="screen" id="shareaholic-publisher-css" href="'+d+'"/>'));var h=b("<div/>").addClass("shr-bookmarks").append(b("<ul/>").addClass("shr-socials"));
20
- a.shrlink&&(d=b.getBrowser(),d!=""&&(h.append(b('<div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div>')),h.find(".shr-getshr a").text("Get Shareaholic for "+d),b(this).hover(function(){h.find(".shr-getshr").css("visibility","visible")},function(){h.find(".shr-getshr").css("visibility","hidden")})));a.bgimg!="undefined"&&a.bgimg!=
21
- ""&&h.addClass("shr-bookmarks-bg-shr").css({"margin-left":"10px",height:"100%","overflow-x":"hidden","overflow-y":"hidden",display:"block",padding:a.bgimg_padding,background:"transparent url("+a.bgimg+") no-repeat"});var j=h.find(".shr-socials");if(a.fbLikeButton){setTimeout("SHR4P.fbUtil.addFBConnect()",0);var d=b('<div class="shareaholic-like-buttons"><br/></div>'),i=b('<a class="shareaholic-fb-like" style="margin-top:5px; margin-bottom:5px;"></a>');SHR4P.fbUtil.addLikeButton(i,a.link);d.prepend(i);
22
- a.fbButtonPos.indexOf("bottom")!=-1?d.insertAfter(this):d.insertBefore(this);a.fbButtonPos.indexOf("right")!=-1&&i.css("float","right")}b(a.service.split(",")).each(function(d,c){var h="";if(c=="7")h=a.twitter_template;a.custom_link["before_"+d]&&g("before",d,a).appendTo(j);var i=a.designer_toolTips?"orig_title":"title",e=SHR4P.utils.getBrowserLocale(),e=e.split("-")[0];if(typeof SHR4P.locales!=="undefined"&&(typeof SHR4P.locales[e]=="undefined"||!SHR4P.locales[e]))e="en";e=typeof SHR4P.locales!==
23
- "undefined"?SHR4P.locales[e][SHR4P.tooltips_prefix_map[c]]+" "+SHR4P.tooltips_suffix[c]:"";SHR4P.ga.socialAction({serviceId:c,serviceAction:"render",link:a.link});var k=b("<li/>");k.addClass("shr-"+c).addClass("shareaholic").attr("style","margin-left:"+a.li_margin+"px !important;").bind("click",{serviceId:c,serviceAction:"share",link:a.link},SHR4P.ga.trackAction);var o={title:a.title,link:a.link,notes:a.notes,short_link:a.short_link,shortener:a.shortener,shortener_key:a.shortener_key,v:a.api.share.v,
24
- apitype:a.api.share.apitype,apikey:a.apikey,source:a.api.share.source,template:h,service:c,ctype:a.ctype};c=="7"&&a.twitter_overlay&&!SHR4P.utils.isMobileBrowser()?k.append(b("<a/>").attr({rel:a.rel,target:a.target,"class":"external"}).attr(i,e).text(e).click(function(b){SHR4P.utils.showServiceLet(a,"twitter");b.preventDefault()})).appendTo(j):k.append(b("<a/>").attr({href:f(a.share_src+a.api.share.url,o),rel:a.rel,target:a.target,"class":"external"}).attr(i,e).text(e)).appendTo(j);c=="309"&&k.click(function(a){SHR4P.utils.runBookmarklet(o);
25
- a.preventDefault()});if(!a.dontShowShareCount&&(c==5||c==7||c==2||c==88))h="https:"==document.location.protocol?1:0,i=function(a){a=a.count;if(a>0||a!="0"&&a!=0){for(var g=b("<div/>").addClass("shr-count").appendTo(j.find(".shr-"+c)),d=0;d<9;d+=1)d!=4&&g.append(b("<div>"+a+"</div>").addClass("shr-count-outline").css({left:10+d%3-1+"px",top:"-"+(11+parseInt(d/3)-1)+"px"}).attr("aria-hidden","true"));g.append(b("<div>"+a+"</div>").addClass("shr-count-center").css({left:"10px",top:"-11px"}).attr("aria-label",
26
- "Number of times this webpage has been shared"))}},c==5?SHR4P.utils.getGenericShrCnt(a.link,i,h,"api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&format=json&urls=",1,"fb"):c==7?SHR4P.utils.getGenericShrCnt(a.link,i,h,"cdn.api.twitter.com/1/urls/count.json?url=",1,"tw"):c==2?SHR4P.utils.getGenericShrCnt(a.link,i,h,"feeds.delicious.com/v2/json/urlinfo/data?url=",0,"dl"):c==88&&SHR4P.utils.getGenericShrCnt(a.link,i,h,"www.linkedin.com/countserv/count/share?url=",1,"ln");a.custom_link["after_"+
27
- d]&&g("after",d,a).appendTo(j)});var k=function(){var a=b("<div style='position:absolute !important; background: transparent !important; z-index:101 !important;'/>"),g=b("<div class = 'shareaholic-tip-text'></div>"),d=b("<div class = 'shareaholic-arrow-down'/>");a.append(g);a.append(d);return{show:function(d){if(!b("body").find(".shareaholic-tip-text").length){var c=b(d).find("a").attr("orig_title");g.text(c);c=b(d).offset();a.appendTo(document.body);var h=a.width(),d=b(d).width();a.css({left:c.left-
28
- h/2+d/2,top:c.top-32});a.css({opacity:0.9})}},hide:function(){a.remove()}}}();a.designer_toolTips&&(b("<style type='text/css'>.shareaholic-arrow-down{ position: absolute !important; left:45% !important; width: 0 !important; height: 0 !important; border-left: 6px solid transparent !important; border-right: 6px solid transparent !important; border-top: 6px solid "+a.tip_bg_color+" !important; }.shareaholic-tip-text{font-size:12px !important; line-height:120% !important; background: "+a.tip_bg_color+
29
- " !important; color: "+a.tip_text_color+" !important; padding: 5px !important; border-radius: 5px !important; -webkit-border-radius:5px; !important; -moz-border-radius:5px; !important}</style>").appendTo("head"),j.find("li").mouseenter(function(a){k.show(a.currentTarget)}).mouseleave(function(a){k.hide(a.currentTarget)}));d=function(a){b(j).find("li a").each(function(){this.href=this.href+"&tags="+a})};a.allowExternalTags?SHR4P.utils.getTags(a.link,a.tags,d):d(a.tags);d=function(a){if(a.spriteimg!=
30
- "")return a.spriteimg;else if(a.localize)return a.src+"/sprite.png";else{var g=function(a,b){return a-b},d=e(a.service.split(",")).sort(g);SHR4P.debug("checking services: ");SHR4P.debug(d);var c=[];b(SHR4P.img_group).each(function(){var a=this;SHR4P.debug("checking img_group: ");SHR4P.debug(a);b(d).each(function(){SHR4P.debug("checking service: "+this);if(b.inArray(Number(this),a)>-1)return SHR4P.debug("found! adding img_group"),b.merge(c,a),!1});SHR4P.debug("req_services so far: ");SHR4P.debug(c)});
31
- SHR4P.debug("final req_services: ");c=c.sort(g);SHR4P.debug(c.join(","));return f(a.src+a.api.sprite.url,{v:a.api.sprite.v,apikey:a.apikey,apitype:"png",service:c.join(",")})}}(a);h.append(b('<style type="text/css">ul.shr-socials li.shareaholic{background-image:url('+d+") !important;}</style>"));h.appendTo(this);return this};b.extend({getBrowser:function(){var b=navigator.userAgent,a="";b.indexOf("MSIE")!=-1?a="Internet Explorer":b.indexOf("Firefox")!=-1?a="Firefox":b.indexOf("Flock")!=-1?a="Flock":
32
- b.indexOf("Chrome")!=-1?a="Google Chrome":b.indexOf("Safari")!=-1?a="Safari":b.indexOf("Opera")!=-1?a="Opera":b.indexOf("Songbird")!=-1&&(a="Songbird");return a}})}(SHR4P.jQuery),SHR4P.ready=!0,typeof SHR4P.onready!="undefined")SHR4P.onready()};typeof SHR4P=="undefined"&&(SHR4P={});SHR4P.ready=!1;SHR4P.init=!1;SHR4P.params=function(){var b={},c=document.location.href.split("?");if(c.length==2)for(var c=c[1].split("&"),d=0;d<c.length;d++){var a=c[d].split("=");a.length==2&&(b[unescape(a[0])]=unescape(a[1]))}return b};
33
- SHR4P.debug=function(b){SHR.debug_enabled&&(typeof console!="undefined"&&console?console.log(b):alert(b))};
34
- SHR4P.load=function(){setTimeout("SHR4P.dough()",0);setTimeout("SHR4P.prefetch()",0);if(typeof jQuery!="undefined"&&jQuery){var b=jQuery().jquery;if(SHRSB_Globals.minJQueryVersion<=b){window.sb_dont_noConflict=!0;SHR4P_init();return}}SHR4P.debug("loading jquery");b=document.getElementsByTagName("head")[0];if(typeof b!="undefined"){SHR4P.params();var c=document.createElement("script");c.src=SHR.debug_enabled?"//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js":"//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js";
35
- c.type="text/javascript";b.appendChild(c);c.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")SHR4P.debug("jQuery loaded with onreadystatechange, init'ing"),SHR4P_init()};c.onload=SHR4P_init}};SHR4P.onready=function(){/(loaded|complete)/.test(document.readyState)?SHR4P.readyHandler():SHR4P.jQuery(document).ready(function(){SHR4P.readyHandler()})};
36
- SHR4P.readyHandler=function(){SHR4P.utils.init(SHR4P.jQuery);SHR4P.jQuery.each(SHRSB_Settings,function(b){this.expand=="false"&&(this.expand=!1);SHR4P.jQuery("."+b).shareaholic_publishers(this)});SHR4P.renderLikeButtons()};SHR4P.img_group=[];SHR4P.img_group[0]=[2,3,4,5,6,7,10,24,38,39,40,52,54,74,88,201,219,257,313];SHR4P.img_group[1]=[27,33,41,43,45,46,53,73,78,195,196,205,207,210,236,247,264];SHR4P.img_group[2]=[44,48,61,80,100,105,140,191,202,218,238,240,266,269,280,289];
37
  SHR4P.img_group[3]=[1,14,21,89,98,102,106,243,267,268,277,278,283,284,285,286,288];SHR4P.img_group[4]=[20,59,92,188,190,192,204,246,263,265,279,281,282,287,290,291,292,293,294];SHR4P.wants_shortlink=[7];
38
- SHR4P.utils=function(b,c){function d(a,b){return[a,f.param(b)].join("?")}function a(a){if(!a.src)throw"Invalid source";a=f.extend({},{async:!0,cache:!1,src:!1,id:""},a);if(!a.cache)a.r=Math.floor(Math.random()*9999999999),a.src+="&_="+a.r,a.id+=a.r;var b=c.createElement("script");b.setAttribute("language","javascript");b.id=a.id;b.async=a.async;b.setAttribute("src",a.src);c.body.appendChild(b);return a}var f,e={v:1,apikey:"0747414f47c2b684cf5480c36b2478689",apitype:1,title:"",link:"",short_link:"",
39
- shortener:"google",shortener_key:"",template:"${title} - ${short_link}",service:!1,source:"Shareaholic-Publishers",tags:"",ctype:"",notes:""};return{init:function(a){f=a},url:d,appendScript:a,runBookmarklet:function(b){if(typeof b.service!="undefined"&&b.service){b.apitype=4;var c=SHR4P.base_url+"/api/share",j=f.extend({},e,b);a({src:d(c,j),cache:!1,id:b.service+"_shareaholic_"})}},getFbShrCnt:function(a,b){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(a="http://api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&format=json&urls="+
40
- encodeURIComponent(a),SHR4P.jQuery.getJSON(a+"&callback=?",function(a){var c=0;if(a.length>0)c=a[0].total_count,c!=0&&c>1E3&&(c=Math.floor(c/1E3)+"K");b({count:c})}))},getTwitShrCnt:function(a,b){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(a="https://cdn.api.twitter.com/1/urls/count.json?url="+encodeURIComponent(a),SHR4P.jQuery.getJSON(a+"&callback=?",function(a){a=a.count;a!=0&&a>1E3&&(a=Math.floor(a/1E3)+"K");b({count:a})}))},getDeliciousShrCnt:function(a,b){typeof SHRSB_Globals!=
41
- "undefined"&&SHRSB_Globals.perfoption=="1"&&(a="http://feeds.delicious.com/v2/json/urlinfo/data?url="+encodeURIComponent(a),SHR4P.jQuery.getJSON(a+"&callback=?",function(a){var c=0;if(a.length>0)c=a[0].total_posts,c!=0&&c>1E3&&(c=Math.floor(c/1E3)+"K");b({count:c})}))},getGenericShrCnt:function(a,b,c,d,f,e){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){if(c==1)if(f==1)a="https://"+d+encodeURIComponent(a);else var a=encodeURIComponent("http://"+d+a+"&callback=?"),l="url="+a+
42
- "&src="+e,a="https://www.shareaholic.com/getshrcount?";else a="http://"+d+encodeURIComponent(a)+"&callback=?";SHR4P.jQuery.ajax({url:a,type:"GET",dataType:"jsonp",data:l,cache:!1,success:function(a){if(e=="ln"||e=="tw")var c=a.count;else if(e=="fb"||e=="dl")if(c=0,a.length>0)if(e=="fb")c=a[0].total_count;else if(e=="dl")c=a[0].total_posts;c!=0&&c>1E3&&(c=Math.floor(c/1E3)+"K");b({count:c})}})}},getTags:function(a,b,c){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var d=1;"https:"!=
43
- document.location.protocol&&SHR4P.utils.getDeliciousTag(a,function(a){b+=a;--d==0&&c(b)})}},getDeliciousTag:function(a,b){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(a="http://feeds.delicious.com/v2/json/urlinfo/data?url="+encodeURIComponent(a),SHR4P.jQuery.getJSON(a+"&callback=?",function(a){if(a.length>0)top_tags=a[0].top_tags,del_tags="",SHR4P.jQuery.each(top_tags,function(a,b){del_tags+=encodeURIComponent(a)+"|"+b+"|delicious,"}),del_tags!=""&&(del_tags=del_tags.substr(0,
44
- del_tags.length-1)),b(del_tags)}))},showServiceLet:function(d,e){if(typeof e!="undefined"&&e){if(typeof SHR_config=="undefined"||!SHR_config)window.SHR_config={};b.__shr_service=e;b.__shr_log=!0;b.__shr_center=!0;SHR_config.shortener=d.shortener?d.shortener:"google";SHR_config.shortener_key=d.shortener_key?d.shortener_key:"";SHR_config.apikey=d.apikey?d.apikey:"0747414f47c2b684cf5480c36b2478689";SHR_config.twitter_template=d.twitter_template?d.twitter_template:"${title} - ${short_link}";SHR_config.link=
45
- d.link?d.link:c.location.href;SHR_config.title=d.title?d.title:d.link?"":c.title;SHR_config.short_link=d.short_link?d.short_link:"";b.SHR&&b.SHR.Servicelet?SHR.Servicelet.show():a({src:(d.share_src?d.share_src:SHR4P.cdn_url)+"/media/js/servicelet.min.js",cache:!0,id:"shr-servicelet"})}},isMobileBrowser:function(){var a=navigator.userAgent||navigator.vendor||window.opera;return/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||
46
- /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,
47
- 4))},getBrowserLocale:function(){var a="en-us";if(navigator)if(navigator.language)a=navigator.language;else if(navigator.browserLanguage)a=navigator.browserLanguage;else if(navigator.systemLanguage)a=navigator.systemLanguage;else if(navigator.userLanguage)a=navigator.userLanguage;return a.toLowerCase()},trackAction:function(a){var b=a.apikey||"73868baef9de9b15b8cff648e686124de";SHR4P.jQuery("<img/>").attr({src:"//www.shareaholic.com/api/share/?v=1&apikey="+b+"&apitype=3&service="+a.serviceId+"&link="+
48
- encodeURIComponent(a.href)+(a.title!==""?"&title="+a.title:""),width:"1",height:"1"}).appendTo("body")}}}(window,document);
49
- SHR4P.ga=function(){function b(b){!a&&d();if(!e)return!1;var c=b.serviceAction||"unknown",f=typeof h[c]!=="undefined"?h[c]:!0,l=b.link,b=g+(SHR4P.tooltips_suffix[b.serviceId]||""),b=b.replace(/(\s|\r\n|\n|\r)/gm,"_"),c=c.charAt(0).toUpperCase()+c.slice(1);f&&_gaq.push([j+"_trackSocial",b,c,l]);return f}function c(){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&function(){var a=document.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?
50
- "https://ssl":"http://www")+".google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()}function d(){if(typeof _gaq=="undefined"||!_gaq)window._gaq=[];_gaq.push(["shr._setAccount","UA-12964573-5"],["shr._trackPageview"]);typeof SHRSB_Globals!=="undefined"&&((f=SHRSB_Globals.pubGaKey||!1)&&(j="shrpub."),e=typeof SHRSB_Globals.pubGaSocial!=="undefined"?SHRSB_Globals.pubGaSocial:e,f&&e&&_gaq.push([j+"_setAccount",f]));a=!0;c()}var a=!1,f,e=!0,g="Shareaholic_",
51
- h={render:!1,like:!0,unlike:!0,send:!0,share:!0,unknown:!1},j="";return{init:d,socialAction:b,trackAction:function(a){b(a.data)}}}();
52
- SHR4P.dough=SHR4P.dough||function(b,c){return function(){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(b.SHR_Load_Dough=b.SHR_Load_Dough||function(){var b=c.createElement("script");b.type="text/javascript";b.async=!0;b.src=("https:"==document.location.protocol?"https://":"http://")+"dtym7iokkjlif.cloudfront.net/dough/1.0/recipe.js";var a=c.getElementsByTagName("script")[0];a.parentNode.insertBefore(b,a);return!0}())}}(window,document);
53
  SHR4P.prefetch=function(){if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.src!="undefined")(new Image).src=SHRSB_Globals.src+"/sprite.png"};
54
  SHR4P.renderLikeButtons=function(){SHR4P.jQuery(".shareaholic-fblike,.shareaholic-fbsend",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.fbUtil.addFBConnect()",0);SHR4P.jQuery(".shareaholic-googleplusone",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.googPlusOneUtil.addGoogScript()",0);SHR4P.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.twitterUtil.addTwitterScript()",0)};
55
- SHR4P.googPlusOneUtil={addGoogScript:function(){if(SHR4P.jQuery("#googplusonescript").length==0){var b=document.createElement("script");b.async=!0;b.src="https://apis.google.com/js/plusone.js";b.id="googplusonescript";b.text='{"parsetags": "explicit"}';document.getElementsByTagName("head")[0].appendChild(b);b.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.googPlusOneUtil.renderPlusOnes()};b.onload=SHR4P.googPlusOneUtil.renderPlusOnes}},renderPlusOnes:function(){SHR4P.jQuery(".shareaholic-googleplusone",
56
- ".shareaholic-like-buttonset").each(function(){var b=SHR4P.jQuery(this);if((b.attr("data-shr_status")||!1)!="1"){var c=b.attr("data-shr_href")||b.attr("shr_href"),d=b.attr("data-shr_title")||b.attr("shr_title"),a=b.attr("data-shr_size")||b.attr("shr_size"),f=b.attr("data-shr_count")||b.attr("shr_count"),e=b.attr("data-shr_annotation"),g=b.attr("data-shr_width"),h=b.attr("data-shr_expandto"),j=b.attr("data-shr_onstartinteraction"),i=b.attr("data-shr_onendinteraction");if(typeof f=="undefined"||!f)f=
57
- "true";if((typeof c=="undefined"||!c)&&(typeof d=="undefined"||!d))c=encodeURIComponent(document.location.href),d=document.title;else{if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);if(typeof d=="undefined"||!d)d=""}if(typeof a=="undefined"||!a)a="standard";if(typeof e=="undefined"||!e)e="bubble",e=typeof f!=="undefined"&&f&&f!=="false"?"bubble":"none";if(typeof g=="undefined"||!g)g="450px";if(typeof h=="undefined"||!h)h="";if(typeof j=="undefined"||!j)j="";if(typeof i==
58
- "undefined"||!i)i="";f="";a=="medium"&&(f="padding-top:1px !important;");b.attr("data-shr_status","1");f=SHR4P.jQuery("<div style='float:left; "+f+" margin:0px 0px 0px 10px !important;'/>").get(0);b.replaceWith(f);SHR4P.jQuery(f).append("<div/>");f=SHR4P.jQuery(f).find(":first-child").get(0);gapi.plusone.render(f,{size:a,annotation:e,width:g,expandto:h,onstartinteraction:j,onendinteraction:i,href:decodeURIComponent(c),callback:function(a){SHR4P.googPlusOneUtil.trackPlusOneClick(a,d)}});SHR4P.ga.socialAction({serviceId:304,
59
- serviceAction:"render",link:c})}})},trackPlusOneClick:function(b,c){b.state=="on"?(SHR4P.utils.trackAction({serviceId:304,href:b.href,title:c}),SHR4P.ga.socialAction({serviceId:304,serviceAction:"like",link:b.href})):SHR4P.ga.socialAction({serviceId:304,serviceAction:"unlike",link:b.href})}};
60
- SHR4P.twitterUtil={addTwitterScript:function(){SHR4P.twitterUtil.renderShareaholicTweetButton()},renderShareaholicTweetButton:function(){SHR4P.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").each(function(){var b=SHR4P.jQuery,c=b(this);if((c.attr("data-shr_status")||!1)!="1"){var d=c.attr("data-shr_href")||c.attr("shr_href"),a=c.attr("data-shr_title")||c.attr("shr_title"),f=c.attr("data-shr_size")||c.attr("shr_size"),e=c.attr("data-shr_count")||c.attr("shr_count"),g=c.attr("data-shr_lang"),
61
- h="shr-7",j="shr-generic",i=!0,k=!0;SHR4P.debug(c);if(typeof e=="undefined"||!e)e="horizontal";if((typeof d=="undefined"||!d)&&(typeof a=="undefined"||!a))d=encodeURIComponent(document.location.href),a=document.title;else{if(typeof d=="undefined"||!d)d=encodeURIComponent(document.location.href);if(typeof a=="undefined"||!a)a=""}if(typeof f=="undefined"||!f)f="standard";var n="";f=="medium"&&(n="padding-top:1px !important;");if(typeof g=="undefined"||!g)g="en";switch(e){case "horizontal":k=i=!0;break;
62
- case "vertical":i=!0;k=!1;break;case "none":k=i=!1}i&&(h+="-count",j+="-count");i&&k&&(h+="-compact",j+="-compact");if(i){var l=this;if(k)this.style.marginRight="0px",f=document.createElement("div"),l=document.createElement("div"),b(this).after(l),l.className="shr_compact_div",f.className="shr_compact_tick",f.appendChild(document.createElement("s")),f.appendChild(document.createElement("i")),b(this).after(f);i&&SHR4P.utils.getTwitShrCnt(decodeURIComponent(d),function(a){l.innerHTML=a.count})}var m=
63
- d,p={title:a,link:m,short_link:"",shortener:SHRSB_Globals.shortener?SHRSB_Globals.shortener:"google",shortener_key:SHRSB_Globals.shortener_key?SHRSB_Globals.shortener_key:"",v:1,apitype:1,apikey:SHR4P.shr_apiKey,twitter_template:SHR4P.shr_twitter_template?SHR4P.shr_twitter_template:"${title} - ${short_link}",service:7},d=b(this),a=SHR4P.shr_image||SHR4P.shr_twitter_image,i=SHR4P.shr_image?".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:-228px -79px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:-228px -100px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:-228px -121px;}":
64
- ".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:0px 0px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:0px -21px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:0px -41px;}";i+=".shr_compact_div{background:#EFEFEF;border:1px solid #C1C1C1;float:left;font-weight:normal;height:14px;margin-left:1px;min-width:15px;padding:1px 2px 1px 2px;text-align:center;font-size:11px;display:block;margin-top:2px;margin-right:15px;}.shr_compact_tick{float:left;position:relative;z-index:2;width:5px;top:5px;left:2px;border-collapse:separate;border-spacing:2px 2px;margin-top:2px;}.shr_compact_tick i{left:2px;top:-6px;border-right-color:#EFEFEF;font-style:italic;}.shr_compact_tick s{text-decoration:line-through;text-align:left;}.shr_compact_tick s,i{border:solid transparent;border-right-color:#C7C7C7;display:block;position:relative;border-width:5px 5px 0 0;}";
65
- d.before(b('<style type="text/css"> div.shareaholic a{background-image:url('+a+") !important;}.shr-generic-count{height:53px;width:57px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -80px;color:black;cursor:pointer;text-decoration:none;display:block;}.shr-generic-count-compact,.shr-generic{height:23px;width:63px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -50px;color:black;cursor:pointer;text-decoration:none;display:block;} "+
66
- i+"</style>"));c.wrap('<div class="shr-7 shareaholic" style="float:left; '+n+' margin:0px 0px 0px 10px !important;"></div>');c.parent().removeClass("shr-7");c.addClass(j);c.addClass(h);SHR4P.debug(c);SHR4P.ga.socialAction({serviceId:7,serviceAction:"render",link:m});SHR4P.utils.isMobileBrowser()||c.click(function(a){SHR4P.ga.socialAction({serviceId:7,serviceAction:"share",link:m});SHR4P.utils.showServiceLet(p,"twitter");a.preventDefault()});c.attr("data-shr_status","1")}})}};
67
- SHR4P.fbUtil={fbConnectAdd:0,renderFBWidgetCalled:!1,likeButtonsToRender:[],hasFB:function(){return typeof window.FB=="object"&&FB.Event&&typeof FB.Event.subscribe=="function"},addLikeButton:function(b,c){if(SHR4P.fbUtil.hasFBNameSpace()){var d=SHR4P.jQuery('<fb:like href="'+c+'"layout="button_count" show_faces="true" width="60" font=""></fb:like>').appendTo(b);typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse?FB.XFBML.parse(d.get(0)):SHR4P.fbUtil.likeButtonsToRender.push(d.get(0))}else SHR4P.jQuery('<iframe src="https://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+
68
  c+'&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>').appendTo(b)},renderFBWidgets:function(){if(!SHR4P.fbUtil.renderFBWidgetCalled){setTimeout("SHR4P.fbUtil.renderFBLikeButtons()",0);setTimeout("SHR4P.fbUtil.renderFBSendButtons()",0);for(var b=0;b<SHR4P.fbUtil.likeButtonsToRender.length;++b)typeof window.FB!=
69
- "undefined"&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(SHR4P.fbUtil.likeButtonsToRender[b]);SHR4P.fbUtil.renderFBWidgetCalled=!0}},renderFBSendButtons:function(){SHR4P.jQuery(".shareaholic-fbsend",".shareaholic-like-buttonset").each(function(){if(SHR4P.fbUtil.hasFBNameSpace()){var b=SHR4P.jQuery(this),c=b.attr("data-shr_href");if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);var d=SHR4P.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);
70
- b.replaceWith(d);SHR4P.ga.socialAction({serviceId:5,serviceAction:"render",link:c});b=SHR4P.jQuery('<fb:send href="'+c+'" width="60" font=""></fb:send>').appendTo(d);typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(b.get(0))}})},renderFBLikeButtons:function(){SHR4P.jQuery(".shareaholic-fblike",".shareaholic-like-buttonset").each(function(){var b=SHR4P.jQuery(this),c=b.attr("data-shr_href");if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);var d=b.attr("data-shr_layout");
71
- if(typeof d=="undefined"||!d)d="button_count";var a=b.attr("data-shr_showfaces");if(typeof a=="undefined"||!a)a="true";var f=b.attr("data-shr_send");if(typeof f=="undefined"||!f)f="false";var e=b.attr("data-shr_action");if(typeof e=="undefined"||!e||e.toLowerCase()!="recommend"&&e.toLowerCase()!="like")e="like";var g=SHR4P.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);b.replaceWith(g);if(SHR4P.fbUtil.hasFBNameSpace())d=SHR4P.jQuery('<fb:like action="'+
72
- e+'" send = "'+f+'" href="'+c+'"layout="'+d+'" show_faces="'+a+'" width="60" font=""></fb:like>').appendTo(g),typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(d.get(0));else{b="30";f="60";switch(d){case "button_count":f="90";b="21";break;case "box_count":f="60";b="90";break;default:f="60",b="80"}SHR4P.jQuery('<iframe src="https://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+c+"&amp;send=false&amp;layout="+d+"&amp;width="+f+"&amp;show_faces="+a+"&amp;action="+
73
- e+"&amp;colorscheme=light&amp;font&amp;height="+b+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'+f+"px; height:"+b+'px;" allowTransparency="true"></iframe>').appendTo(g)}SHR4P.ga.socialAction({serviceId:5,serviceAction:"render",link:c})})},addFBConnect:function(){SHR4P.fbUtil.addFBNameSpace();if(!SHR4P.fbUtil.fbConnectAdd)SHR4P.jQuery('<div id="fb-root"></div>').appendTo("body"),window.fbAsyncInit=function(){FB.init({appId:"207766518608",status:!0,cookie:!0,xfbml:!0});
74
- SHR4P.fbUtil.tryAddFBSubscription()},SHR4P.fbUtil.renderFBWidgetHandlerAttached=!0,function(){var b=document.createElement("script");b.async=!0;b.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";b.onload=SHR4P.fbUtil.renderFBWidgets;b.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.fbUtil.renderFBWidgets()};document.getElementById("fb-root").appendChild(b)}(),SHR4P.fbUtil.fbConnectAdd=1},tryAddFBSubscription:function(){SHR4P.fbUtil.hasFB()&&
75
- FB.XFBML&&FB.XFBML.parse?SHR4P.fbUtil.addFBSubscription():setTimeout(SHR4P.fbUtil.tryAddFBSubscription,500)},addFBSubscription:function(){try{FB.Event.subscribe("edge.create",function(b){SHR4P.ga.socialAction({serviceId:303,serviceAction:"like",link:b});SHR4P.utils.trackAction({serviceId:303,href:b})}),FB.Event.subscribe("edge.remove",function(b){SHR4P.ga.socialAction({serviceId:303,serviceAction:"unlike",link:b})}),FB.Event.subscribe("message.send",function(b){SHR4P.ga.socialAction({serviceId:305,
76
- serviceAction:"send",link:b});SHR4P.utils.trackAction({serviceId:305,href:b})})}catch(b){SHR4P.debug(b)}},addFBNameSpace:function(){var b=SHR4P.jQuery(SHR4P.jQuery("html").get(0));if(typeof b.attr("xmlns:fb")=="undefined"&&(!SHR4P.jQuery.browser.msie||SHR4P.jQuery.browser.version>="9.0"))b.attr("xmlns:fb","https://www.facebook.com/2008/fbml"),b.attr("xmlns:og","http://opengraphprotocol.org/schema/")},hasFBNameSpace:function(){return typeof SHR4P.jQuery(SHR4P.jQuery("html").get(0)).attr("xmlns:fb")!=
77
  "undefined"}};
78
  SHR4P.tooltips_prefix_map={1:10,2:0,3:0,4:0,5:0,6:1,7:0,8:1,9:1,10:1,11:1,12:1,13:1,14:0,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:0,28:1,29:1,30:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,38:0,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,49:1,50:1,51:10,52:10,53:10,54:10,55:10,56:1,57:1,58:1,59:1,60:1,61:0,62:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1,97:1,
79
  98:1,99:1,100:1,101:1,102:1,103:1,104:1,105:1,106:1,107:1,108:1,109:1,110:1,111:1,112:1,113:1,114:1,115:1,116:1,117:1,118:1,119:1,120:1,121:1,122:1,123:1,124:1,125:1,126:1,127:1,128:1,129:1,130:1,131:1,132:1,133:1,134:1,135:1,136:1,137:1,138:1,139:1,140:1,141:1,142:1,143:1,144:1,145:1,146:1,147:1,148:1,149:1,150:1,151:1,152:1,153:1,154:1,155:1,156:1,157:1,158:1,159:1,160:1,161:1,162:1,163:1,164:1,165:1,166:1,167:1,168:1,169:1,170:1,171:1,172:1,173:1,174:1,175:1,176:1,177:1,178:1,179:1,180:1,181:1,
@@ -89,13 +89,13 @@ SHR4P.tooltips_suffix={1:"Buzzster!",2:"Delicious",3:"Digg",4:"Mixx",5:"Facebook
89
  236:"PrintFriendly",237:"DailyMe",238:"NUjij",239:"Read It Later",240:"Box.net",241:"Balatarin",242:"Favoriten",243:"Oknotizie",244:"diHITT",245:"Svejo",246:"Hatena",247:"Orkut",248:"Clicky",249:"j.mp",250:"ReadWriteWeb",251:"Dwellicious",252:"Google Translate",253:"Yammer",254:"Yahoo Buzz India",255:"Boxee",256:"Pinboard",257:"Google Buzz",258:"Readability",259:"Social.com",260:"Google Apps Email",261:"HootSuite",262:"Google Wave",263:"iZeby",264:"Ning",265:"SpringPad",266:"BobrDobr",267:"Yandex",
90
  268:"Moemesto",269:"Memori.ru",270:"Amazon (UK) Wish List",271:"Amazon (CA) Wish List",272:"Amazon (DE) Wish List",273:"Amazon (FR) Wish List",274:"Amazon (JP) Wish List",275:"Google Sidewiki",276:"Marginize",277:"Twittley",278:"Script & Style",279:"PFBuzz",280:"Fwisp",281:"100 bookmarks",282:"Design Bump",283:"eKudos",284:"Web Blend",285:"Wykop",286:"BlogEngage",287:"FAQpal",288:"Bitacoras",289:"N4G",290:"Kaevur",291:"Virb",292:"BonzoBox",293:"Zabox",294:"ToMuse",295:"BuzzFeed",296:"Amazon Universal Registry",
91
  297:"TwitThat",298:"Mister-Wong DE",299:"Mister-Wong CN",300:"Mister-Wong ES",301:"Mister-Wong FR",302:"Mister-Wong RU",303:"Facebook Like",304:"Google+",305:"Facebook Send",306:"Shareaholic More",307:"Shareaholic All",308:"Buffer",309:"Pinterest",310:"Quora",313:"Shareaholic Mail"};
92
- SHR4P.locales={en:{0:"Post to",1:"Add to",2:"Submit to",3:"Share on",4:"Print with",5:"Post on",6:"Suggest this article to",7:"Shorten URL with",8:"Push this on",9:"Bookmark on",10:"Send via",11:""},es:{0:"Publicarlo en",1:"A\u00f1adirlo a",2:"Enviar a",3:"Compartir con",4:"Imprimir con",5:"Publicarlo en",6:"Sugiere este art\u00edculo a",7:"Acortar URL con",8:"Pulse aqu\u00ed",9:"Agregar marcador en",10:"Enviar v\u00eda",11:""},fr:{0:"Publiez-le sur",1:"Ajoutez ce lien \u00e0",2:"Soumettez ce lien \u00e0",
93
- 3:"Partagez-le sur",4:"Imprimez-le avec",5:"Publiez-le sur",6:"Sugg\u00e9rer cet article \u00e0",7:"Raccourcir l'URL avec",8:"Poussez cet article sur",9:"Ajoutez-le \u00e0 vos favoris sur",10:"Envoyez-le avec",11:""},de:{0:"Senden an",1:"Hinzuf\u00fcgen zu",2:"\u00dcbertragen zu",3:"Teilen bei",4:"Drucken mit",5:"Ver\u00f6ffentlichen bei",6:"Empfehlen bei",7:"URL k\u00fcrzen mit",8:"Schiebe dies auf",9:"Lesezeichen speichern auf",10:"Senden mit",11:""},tr:{0:"Bunu postala:",1:"Bunu ekle:",2:"Bu makaleyi payla\u015f:",
94
- 3:"Bunu payla\u015f:",4:"Bask\u0131 ile",5:"Bunu postala:",6:"Bu makaleyi \u00f6ner:",7:"K\u0131saltmak Url ile",8:"Bunu payla\u015f:",9:"Bookmark on",10:"Send via",11:""},it:{0:"Pubblicalo su",1:"Aggiungilo a",2:"Invia questa storia a",3:"Condividi su",4:"Stampa con",5:"Pubblicalo su",6:"Suggerisci questo articolo a",7:"Accorciare URL con",8:"Sparalo in",9:"Bookmark on",10:"Invia con",11:""},pt:{0:"Publicar no",1:"Adicionar ao",2:"Enviar hist\u00f3ria para o",3:"Compartilhar no",4:"Imprima com",
95
- 5:"Publicar no",6:"Sugerir este artigo para",7:"Encurtar url com",8:"Publicar no",9:"Favoritar no",10:"Enviar via",11:""},pt_BR:{0:"Postar no",1:"Adicionar ao",2:"Enviar para",3:"Compartilhar com",4:"Imprimir com",5:"Postar no",6:"Sugerir este artigo para",7:"Encurtar a URL com",8:"Enviar no",9:"Favoritar no",10:"Enviar via",11:""},et:{0:"Postita",1:"Lisa",2:"Saada",3:"Jaga",4:"Prindi",5:"Postita",6:"Soovita seda artiklit",7:"L\u00fchenda URL",8:"Sparalo in",9:"Bookmark on",10:"Send via",11:""},hu:{0:"Elk\u00fcld\u00e9s:",
96
- 1:"Hozz\u00e1ad\u00e1s:",2:"Tov\u00e1bbk\u00fcld\u00e9s:",3:"Megoszt\u00e1s:",4:"Nyomtat\u00e1s:",5:"Publik\u00e1l\u00e1s:",6:"Aj\u00e1nl\u00e1s valakinek:",7:"C\u00edm (URL) r\u00f6vid\u00edt\u00e9se:",8:"Kik\u00fcld\u00e9s:",9:"K\u00f6nyvjelz\u0151 felv\u00e9tele:",10:"K\u00fcld\u00e9s:",11:""},bg:{0:"\u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0432\u0430\u0439 \u0432",1:"\u041f\u0440\u0438\u0431\u0430\u0432\u0438 \u043a\u044a\u043c",2:"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438 \u043a\u044a\u043c",
97
  3:"\u0421\u043f\u043e\u0434\u0435\u043b\u0438 \u043f\u043e",4:"\u041f\u0440\u0438\u043d\u0442\u0438\u0440\u0430\u0439 \u0441",5:"\u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0432\u0430\u0439 \u043d\u0430",6:"\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438 \u0442\u0430\u0437\u0438 \u0441\u0442\u0430\u0442\u0438\u044f \u043d\u0430",7:"\u0421\u044a\u043a\u0440\u0430\u0442\u0435\u043d URL \u0441",8:"\u0411\u0443\u0442\u043d\u0438 \u0442\u043e\u0432\u0430 \u043a\u044a\u043c",9:"\u041e\u0442\u0431\u0435\u043b\u0435\u0436\u0438 \u0432",
98
- 10:"\u0418\u0437\u043f\u0440\u0430\u0442\u0438 \u0447\u0440\u0435\u0437",11:""},el:{0:"\u0391\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",1:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",2:"\u03a5\u03c0\u03bf\u03b2\u03ac\u03bb\u03bb\u03b5\u03c4\u03b5 \u03c3\u03c4\u03bf",3:"\u039c\u03bf\u03b9\u03c1\u03b1\u03c3\u03c4\u03b5\u03af\u03c4\u03b5 \u03c3\u03c4\u03bf",4:"\u0395\u03ba\u03c4\u03c5\u03c0\u03ce\u03c3\u03c4\u03b5 \u03bc\u03b5",5:"\u0391\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",
99
  6:"\u03a0\u03c1\u03bf\u03c4\u03b5\u03af\u03bd\u03b5\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03c3\u03b5",7:"\u03a3\u03c5\u03bd\u03c4\u03bf\u03bc\u03b5\u03cd\u03c3\u03c4\u03b5 \u03c4\u03bf URL \u03bc\u03b5",8:"\u03a0\u03c1\u03bf\u03c9\u03b8\u03ae\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",9:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c3\u03b5\u03bb\u03b9\u03b4\u03bf\u03b4\u03b5\u03af\u03ba\u03c4\u03b7 \u03c3\u03c4\u03bf",10:"\u0391\u03c0\u03bf\u03c3\u03c4\u03b5\u03af\u03bb\u03b5\u03c4\u03b5 \u03bc\u03ad\u03c3\u03c9",
100
- 11:""},lt:{0:"Paskelbti",1:"Prid\u0117ti \u012f",2:"Pateikti",3:"Dalintis",4:"Spausdinti per",5:"\u012era\u0161yti",6:"Pasi\u016blyti \u0161\u012f straipsn\u012f \u012f",7:"Trumpinti URL su",8:"Kilstel\u0117ti",9:"Pasi\u017eym\u0117ti per",10:"Si\u0173sti per",11:""},he:{0:"\u05d4\u05e4\u05e5 \u05dc",1:"\u05d4\u05d5\u05e1\u05e3 \u05dc",2:"\u05d0\u05e9\u05e8 \u05dc",3:"\u05e9\u05ea\u05e3 \u05d1",4:"\u05d4\u05d3\u05e4\u05e1 \u05e2\u05dd",5:"\u05d4\u05e4\u05e5 \u05d1",6:"\u05d4\u05e6\u05e2 \u05de\u05d0\u05de\u05e8 \u05d6\u05d4 \u05dc",
101
- 7:"\u05e7\u05e6\u05e8 URL \u05e2\u05dd",8:"\u05d3\u05d7\u05e3 \u05d0\u05ea \u05d6\u05d4 \u05d1",9:"\u05e9\u05de\u05d5\u05e8 \u05db\u05de\u05d5\u05e2\u05d3\u05e3 \u05d1",10:"\u05e9\u05dc\u05d7 \u05d3\u05e8\u05da",11:""},nl:{0:"Publiceer op",1:"Voeg toe aan",2:"Stuur in op",3:"Deel op",4:"Print met",5:"Publiceer op",6:"Suggereer dit artikel op",7:"Verkort de URL met",8:"Push dit op",9:"Maak een bladwijzer op",10:"Verzend met",11:""}};SHR4P.ga.init();SHR4P.load();
1
  /*
2
  Copyright (c) Shareaholic Inc (www.shareaholic.com). All rights reserved.
3
  */
4
+ "undefined"==typeof SHR4P&&(SHR4P={});"undefined"==typeof SHR&&(SHR={});SHR.enforceSSL=!0;"undefined"==typeof SHRSB_Globals&&(window.SHRSB_Globals={});"undefined"==typeof SHRSB_Globals.perfoption&&(SHRSB_Globals.perfoption="1");"undefined"==typeof SHRSB_Globals.minJQueryVersion&&(SHRSB_Globals.minJQueryVersion="1.5.2");SHR4P.host="undefined"!==typeof SHR.debug_enabled?"www.spreadaholic.com":"www.shareaholic.com";SHR4P.base_url=(SHR.enforceSSL?"https:":document.location.protocol)+"//"+SHR4P.host;
5
+ SHR4P.cdn_url=SHR.enforceSSL||"https:"==document.location.protocol?"https://dtym7iokkjlif.cloudfront.net":"http://cdn.shareaholic.com";SHR4P.cdn_url="undefined"!==typeof SHR.debug_enabled?SHR4P.base_url:SHR4P.cdn_url;SHR4P.shr_twitter_image=SHR4P.cdn_url+"/media/images/styles/tb/twitter.png";SHR4P.shr_twitter_template="${title} - ${short_link} via @Shareaholic";"undefined"!=typeof SHRSB_Settings&&"undefined"!=typeof SHRSB_Settings.twitter_template&&(SHR4P.shr_twitter_template=SHRSB_Settings.twitter_template);
6
+ "undefined"!=typeof SHRSB_Globals&&"undefined"!=typeof SHRSB_Globals.twitter_template&&(SHR4P.shr_twitter_template=SHRSB_Globals.twitter_template);"undefined"!=typeof SHRSB_Globals&&"undefined"!=typeof SHRSB_Globals.src&&(SHR4P.shr_image=SHRSB_Globals.src+"/shareaholic-publishers-mini.png");
7
+ var SHR4P_init=function(){SHR4P.debug("SHR4P_init called");if(SHR4P.init)SHR4P.debug("SHR4P_init returning because already loaded");else{SHR4P.init=true;SHR4P.jQuery=typeof sb_dont_noConflict!="undefined"&&sb_dont_noConflict?jQuery:jQuery.noConflict(true);SHR4P.debug("jquery version: "+SHR4P.jQuery().jquery);var b=SHR4P.jQuery;SHR4P.debug("initializing shareaholic_publishers plugin");b.fn.shareaholic_publishers=function(c){var a=b.extend({v:1,src:SHR4P.base_url,mode:"inject",service:"",apikey:"",
8
+ link:"",title:"",notes:"",expand:true,duration:400,rel:"nofollow",target:"_blank",twitter_template:"${title} - ${short_link} via @Shareaholic",dontShowShareCount:false,fbLikeButton:false,fbButtonPos:"bottom-right",tags:"",allowExternalTags:true,designer_toolTips:false,tip_bg_color:"black",tip_text_color:"white",category:"",ctype:"",short_link:"",shortener:"google",shortener_key:"",custom_link:{},bgimg:"",bgimg_padding:"0 0 0 0",center:false,spaced:false,iframe_src:"/publishers",spriteimg:"",share_src:SHR4P.base_url,
9
+ localize:false,li_margin:0,"margin-top":20,"margin-bottom":20,"margin-left":0,"bgimg-padding-top":0,"bgimg-padding-left":0,"icon-width":60,"icon-height":29,"icon-margin-top":3,"promo-height":c.shrlink?18:0,shrlink:false,twitter_overlay:true},c);b(this);SHR4P.debug("$.fn.shareaholic_publishers called");SHR4P.debug(a);b.browser.msie&&b.browser.version<"7.0"&&(a["icon-height"]=a["icon-height"]+4);if(a.bgimg!=null){c=b.trim(a.bgimg_padding).split(" ");a["bgimg-padding-top"]=c[0]?Number(c[0].replace(/[a-zA-Z]+/,
10
+ "")):0;a["bgimg-padding-left"]=c[3]?Number(c[3].replace(/[a-zA-Z]+/,"")):0;a["margin-left"]=10}if(a.localize)a.iframe_src="/publishers.html";var f=function(){var e=0;if(!b.isEmptyObject(a.custom_link))e=b(a.custom_link).length;return a.service.split(",").length+e},d=function(){return a["margin-left"]+a["bgimg-padding-left"]},g=function(b){return Math.ceil(f()/Math.floor((b-d())/a["icon-width"]))},e=function(b){return a.expand?a["margin-top"]+a["bgimg-padding-top"]+a["icon-height"]+a["icon-margin-top"]+
11
+ (g(b)==1?a["promo-height"]:0):h(b)},h=function(b){return a["margin-top"]+a["bgimg-padding-top"]+(a["icon-height"]+a["icon-margin-top"])*g(b)+a["promo-height"]},j=function(b){SHR4P.debug("centering");var e=0;if(g(b)==1){SHR4P.debug("one row! do centering");e=(b-d()-f()*a["icon-width"])/2;SHR4P.debug("returning "+e+" margin")}return e};this.each(function(){if(a.spaced){var c=b(this).width();SHR4P.debug("spacing");SHR4P.debug("rows: "+g(c));var k=0;if(g(c)==1){SHR4P.debug("one row! spacing icons");k=
12
+ Math.floor((c-d()-a["icon-width"]*f())/f());SHR4P.debug("returning "+k+" margin")}a.li_margin=k}c={src:a.src,service:a.service,apikey:a.apikey,link:a.link,title:a.title,bgimg:a.bgimg,bgimg_padding:a.bgimg_padding,rel:a.rel,target:a.target,twitter_template:a.twitter_template,localize:a.localize,share_src:a.share_src,spriteimg:a.spriteimg,tags:a.tags,allowExternalTags:a.allowExternalTags,designer_toolTips:a.designer_toolTips,tip_bg_color:a.tip_bg_color,tip_text_color:a.tip_text_color,category:a.category,
13
+ ctype:a.ctype,custom_link:a.custom_link,li_margin:a.li_margin,short_link:a.short_link,shortener:a.shortener,shortener_key:encodeURIComponent(a.shortener_key),shrlink:a.shrlink,expand:a.expand,dontShowShareCount:a.dontShowShareCount,fbLikeButton:a.fbLikeButton,fbButtonPos:a.fbButtonPos,twitter_overlay:a.twitter_overlay};a.center&&b(this).css({"margin-left":j(b(this).width())});a.mode=="inject"?b(this).shareaholic(c):b(this).append(b('<iframe frameborder="0"/>').attr({src:[a.src+a.iframe_src,b.param(c)].join("?"),
14
+ height:e(b(this).width()),width:b(this).width(),scrolling:"no","class":"share-iframe"}).css({height:h(b(this).width())}));if(a.expand){b(this).css({overflow:"hidden",height:e(b(this).width())});b(this).hover(function(){b(this).animate({height:h(b(this).width())},{duration:a.duration,queue:false})},function(){b(this).animate({height:e(b(this).width())},{duration:a.duration,queue:false})})}});return this};SHR4P.debug("initializing shareaholic plugin");b.fn.shareaholic=function(c){var a=b.extend({service:"",
15
+ rel:"nofollow",target:"_blank",poller_timeout:200,link:"",title:"",notes:"",bgimg:"",bgimg_padding:"",twitter_template:"${title} - ${short_link}",tags:"",category:"",ctype:"",localize:false,custom_link:{},li_margin:0,share_src:SHR4P.base_url,src:SHR4P.base_url,api:{share:{v:"1",url:"/api/share/",apitype:"1",source:"Shareaholic-Publishers"},sprite:{v:"2",url:"/api/sprite/"}},short_link:"",shortener:"google",shortener_key:"",shortener_services:{"bit.ly":function(a,b){var e=function(){SHR4P.debug("bitly javascript loaded");
16
+ var e=a.link;BitlyCB.mycallback=function(a){SHR4P.debug("bit.ly calls back with");SHR4P.debug(a);if(a.errorCode==0){SHR4P.debug("successfully shortened, calling callback with: ");a=a.results[e].shortUrl;SHR4P.debug("short_link: "+a);SHR4P.debug("type: "+typeof a);b(a)}};BitlyClient.call("shorten",{longUrl:e},"BitlyCB.mycallback")};if(typeof BitlyClient=="undefined"){SHR4P.debug("loading bit.ly");var c=document.getElementsByTagName("head")[0];if(typeof c!="undefined"){var h=a.shortener_key.split("|"),
17
+ d=document.createElement("script");d.src="http://bit.ly/javascript-api.js?version=latest&login="+h[0]+"&apiKey="+h[1];d.type="text/javascript";d.charset="utf-8";c.appendChild(d);d.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){SHR4P.debug("bit.ly loaded with onreadystatechange, init'ing");e()}};d.onload=e}}else{SHR4P.debug("bit.ly already loaded. init'ing");e()}}}},c);SHR4P.debug("$.fn.shareaholic called");SHR4P.debug(a);b(this).addClass("shareaholic-show-on-load");
18
+ if(a.localize==true||a.localize=="true")a.localize=true;if(!a.link||a.link&&a.link==="")a.link=b(this).attr("data-shr_href")||document.location.href;if(!a.title||a.title&&a.title==="")a.title=b(this).attr("data-shr_title")||document.title;var f=function(a,e){return[a,b.param(e)].join("?")},c=function(a){for(var b=[],e=a.length,c=0;c<e;c++){for(var d=c+1;d<e;d++)a[c]===a[d]&&(d=++c);b.push(a[c])}return b},d=function(a,e,c){var d=c.designer_toolTips?"orig_title":"title",h=c.custom_link[a+"_"+e];SHR4P.debug("adding link "+
19
+ a+" "+e);return b("<li/>").addClass(h.li_class).append(b("<a/>").attr({href:h.link,rel:c.rel,target:c.target,"class":"external"}).attr(d,h.tooltip).text(h.tooltip)).attr("style",h.style+";margin-left:"+c.li_margin+"px !important;")},g=a.localize?a.src+"/sprite.css":f(a.src+a.api.sprite.url,{v:a.api.sprite.v,apikey:a.apikey,service:c(a.service.split(",")).sort().join(",")});b("#shareaholic-publisher-css").length==0&&b("head").append(b('<link rel="stylesheet" media="screen" id="shareaholic-publisher-css" href="'+
20
+ g+'"/>'));var e=b("<div/>").addClass("shr-bookmarks").append(b("<ul/>").addClass("shr-socials"));if(a.shrlink){g=b.getBrowser();if(g!=""){e.append(b('<div style="clear: both;"></div><div class="shr-getshr" style="visibility:hidden;font-size:10px !important"><a target="_blank" href="http://www.shareaholic.com/?src=pub">Get Shareaholic</a></div><div style="clear: both;"></div>'));e.find(".shr-getshr a").text("Get Shareaholic for "+g);b(this).hover(function(){e.find(".shr-getshr").css("visibility","visible")},
21
+ function(){e.find(".shr-getshr").css("visibility","hidden")})}}a.bgimg!="undefined"&&a.bgimg!=""&&e.addClass("shr-bookmarks-bg-shr").css({"margin-left":"10px",height:"100%","overflow-x":"hidden","overflow-y":"hidden",display:"block",padding:a.bgimg_padding,background:"transparent url("+a.bgimg+") no-repeat"});var h=e.find(".shr-socials");if(a.fbLikeButton){setTimeout("SHR4P.fbUtil.addFBConnect()",0);var g=b('<div class="shareaholic-like-buttons"><br/></div>'),j=b('<a class="shareaholic-fb-like" style="margin-top:5px; margin-bottom:5px;"></a>');
22
+ SHR4P.fbUtil.addLikeButton(j,a.link);g.prepend(j);a.fbButtonPos.indexOf("bottom")!=-1?g.insertAfter(this):g.insertBefore(this);a.fbButtonPos.indexOf("right")!=-1&&j.css("float","right")}b(a.service.split(",")).each(function(e,c){var j="";if(c=="7")j=a.twitter_template;a.custom_link["before_"+e]&&d("before",e,a).appendTo(h);var i=a.designer_toolTips?"orig_title":"title",g=SHR4P.utils.getBrowserLocale(),g=g.split("-")[0];if(typeof SHR4P.locales!=="undefined"&&(typeof SHR4P.locales[g]=="undefined"||
23
+ !SHR4P.locales[g]))g="en";g=typeof SHR4P.locales!=="undefined"?SHR4P.locales[g][SHR4P.tooltips_prefix_map[c]]+" "+SHR4P.tooltips_suffix[c]:"";SHR4P.ga.socialAction({serviceId:c,serviceAction:"render",link:a.link});var k=b("<li/>");k.addClass("shr-"+c).addClass("shareaholic").attr("style","margin-left:"+a.li_margin+"px !important;").bind("click",{serviceId:c,serviceAction:"share",link:a.link},SHR4P.ga.trackAction);var l={title:a.title,link:a.link,notes:encodeURIComponent(a.notes),short_link:a.short_link,
24
+ shortener:a.shortener,shortener_key:encodeURIComponent(a.shortener_key),v:a.api.share.v,apitype:a.api.share.apitype,apikey:a.apikey,source:a.api.share.source,template:j,service:c,ctype:a.ctype};c=="7"&&a.twitter_overlay&&!SHR4P.utils.isMobileBrowser()?k.append(b("<a/>").attr({rel:a.rel,target:a.target,"class":"external"}).attr(i,g).text(g).click(function(b){SHR4P.utils.showServiceLet(a,"twitter");b.preventDefault()})).appendTo(h):k.append(b("<a/>").attr({href:f(a.share_src+a.api.share.url,l),rel:a.rel,
25
+ target:a.target,"class":"external"}).attr(i,g).text(g)).appendTo(h);c=="309"&&k.click(function(a){SHR4P.utils.runBookmarklet(l);a.preventDefault()});if(!a.dontShowShareCount&&(c==5||c==7||c==2||c==88||c==309)){j="https:"==document.location.protocol?1:0;i=function(a){a=a.count;if(a>0||a!="0"&&a!=0){for(var e=b("<div/>").addClass("shr-count").appendTo(h.find(".shr-"+c)),d=0;d<9;d=d+1)d!=4&&e.append(b("<div>"+a+"</div>").addClass("shr-count-outline").css({left:10+d%3-1+"px",top:"-"+(11+parseInt(d/3)-
26
+ 1)+"px"}).attr("aria-hidden","true"));e.append(b("<div>"+a+"</div>").addClass("shr-count-center").css({left:"10px",top:"-11px"}).attr("aria-label","Number of times this webpage has been shared"))}};c==5?SHR4P.utils.getGenericShrCnt(a.link,i,j,"api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&format=json&urls=",1,"fb"):c==7?SHR4P.utils.getGenericShrCnt(a.link,i,j,"cdn.api.twitter.com/1/urls/count.json?url=",1,"tw"):c==2?SHR4P.utils.getGenericShrCnt(a.link,i,j,"feeds.delicious.com/v2/json/urlinfo/data?url=",
27
+ 0,"dl"):c==88?SHR4P.utils.getGenericShrCnt(a.link,i,j,"www.linkedin.com/countserv/count/share?url=",1,"ln"):c==309&&SHR4P.utils.getGenericShrCnt(a.link,i,j,"api.pinterest.com/v1/urls/count.json?url=",1,"pt")}a.custom_link["after_"+e]&&d("after",e,a).appendTo(h)});var i,k=b("<div style='position:absolute !important; background: transparent !important; z-index:101 !important;'/>"),l=b("<div class = 'shareaholic-tip-text'></div>"),g=b("<div class = 'shareaholic-arrow-down'/>");k.append(l);k.append(g);
28
+ i={show:function(a){if(!b("body").find(".shareaholic-tip-text").length){var e=b(a).find("a").attr("orig_title");l.text(e);e=b(a).offset();k.appendTo(document.body);var c=k.width(),a=b(a).width();k.css({left:e.left-c/2+a/2,top:e.top-32});k.css({opacity:0.9})}},hide:function(){k.remove()}};if(a.designer_toolTips){b("<style type='text/css'>.shareaholic-arrow-down{ position: absolute !important; left:45% !important; width: 0 !important; height: 0 !important; border-left: 6px solid transparent !important; border-right: 6px solid transparent !important; border-top: 6px solid "+
29
+ a.tip_bg_color+" !important; }.shareaholic-tip-text{font-size:12px !important; line-height:120% !important; background: "+a.tip_bg_color+" !important; color: "+a.tip_text_color+" !important; padding: 5px !important; border-radius: 5px !important; -webkit-border-radius:5px; !important; -moz-border-radius:5px; !important}</style>").appendTo("head");h.find("li").mouseenter(function(a){i.show(a.currentTarget)}).mouseleave(function(a){i.hide(a.currentTarget)})}g=function(a){b(h).find("li a").each(function(){this.href=
30
+ this.href+"&tags="+a})};a.allowExternalTags?SHR4P.utils.getTags(a.link,a.tags,g):g(a.tags);if(a.spriteimg!="")c=a.spriteimg;else if(a.localize)c=a.src+"/sprite.png";else{var g=function(a,b){return a-b},n=c(a.service.split(",")).sort(g);SHR4P.debug("checking services: ");SHR4P.debug(n);var m=[];b(SHR4P.img_group).each(function(){var a=this;SHR4P.debug("checking img_group: ");SHR4P.debug(a);b(n).each(function(){SHR4P.debug("checking service: "+this);if(b.inArray(Number(this),a)>-1){SHR4P.debug("found! adding img_group");
31
+ b.merge(m,a);return false}});SHR4P.debug("req_services so far: ");SHR4P.debug(m)});SHR4P.debug("final req_services: ");m=m.sort(g);SHR4P.debug(m.join(","));c=f(a.src+a.api.sprite.url,{v:a.api.sprite.v,apikey:a.apikey,apitype:"png",service:m.join(",")})}e.append(b('<style type="text/css">ul.shr-socials li.shareaholic{background-image:url('+c+") !important;}</style>"));e.appendTo(this);return this};b.extend({getBrowser:function(){var b=navigator.userAgent,a="";b.indexOf("MSIE")!=-1?a="Internet Explorer":
32
+ b.indexOf("Firefox")!=-1?a="Firefox":b.indexOf("Flock")!=-1?a="Flock":b.indexOf("Chrome")!=-1?a="Google Chrome":b.indexOf("Safari")!=-1?a="Safari":b.indexOf("Opera")!=-1?a="Opera":b.indexOf("Songbird")!=-1&&(a="Songbird");return a}});SHR4P.ready=true;if(typeof SHR4P.onready!="undefined")SHR4P.onready()}};"undefined"==typeof SHR4P&&(SHR4P={});SHR4P.ready=!1;SHR4P.init=!1;
33
+ SHR4P.params=function(){var b={},c=document.location.href.split("?");if(c.length==2)for(var c=c[1].split("&"),a=0;a<c.length;a++){var f=c[a].split("=");f.length==2&&(b[unescape(f[0])]=unescape(f[1]))}return b};SHR4P.debug=function(b){SHR.debug_enabled&&(typeof console!="undefined"&&console?console.log(b):alert(b))};
34
+ SHR4P.load=function(){setTimeout("SHR4P.dough()",0);setTimeout("SHR4P.prefetch()",0);if(typeof jQuery!="undefined"&&jQuery){var b=jQuery().jquery;if(SHRSB_Globals.minJQueryVersion<=b){window.sb_dont_noConflict=true;SHR4P_init();return}}SHR4P.debug("loading jquery");b=document.getElementsByTagName("head")[0];if(typeof b!="undefined"){SHR4P.params();var c=document.createElement("script");c.src=SHR.debug_enabled?"//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.js":"//ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js";
35
+ c.type="text/javascript";b.appendChild(c);c.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){SHR4P.debug("jQuery loaded with onreadystatechange, init'ing");SHR4P_init()}};c.onload=SHR4P_init}};SHR4P.onready=function(){/(loaded|complete)/.test(document.readyState)?SHR4P.readyHandler():SHR4P.jQuery(document).ready(function(){SHR4P.readyHandler()})};
36
+ SHR4P.readyHandler=function(){SHR4P.utils.init(SHR4P.jQuery);SHR4P.jQuery.each(SHRSB_Settings,function(b){this.expand=="false"&&(this.expand=false);SHR4P.jQuery("."+b).shareaholic_publishers(this)});SHR4P.renderLikeButtons()};SHR4P.img_group=[];SHR4P.img_group[0]=[2,3,4,5,6,7,10,24,38,39,40,52,54,74,88,201,219,257,313];SHR4P.img_group[1]=[27,33,41,43,45,46,53,73,78,195,196,205,207,210,236,247,264];SHR4P.img_group[2]=[44,48,61,80,100,105,140,191,202,218,238,240,266,269,280,289];
37
  SHR4P.img_group[3]=[1,14,21,89,98,102,106,243,267,268,277,278,283,284,285,286,288];SHR4P.img_group[4]=[20,59,92,188,190,192,204,246,263,265,279,281,282,287,290,291,292,293,294];SHR4P.wants_shortlink=[7];
38
+ SHR4P.utils=function(b,c){function a(a,b){return[a,d.param(b)].join("?")}function f(a){if(!a.src)throw"Invalid source";a=d.extend({},{async:true,cache:false,src:false,id:""},a);if(!a.cache){a.r=Math.floor(Math.random()*9999999999);a.src=a.src+("&_="+a.r);a.id=a.id+a.r}var b=c.createElement("script");b.setAttribute("language","javascript");b.id=a.id;b.async=a.async;b.setAttribute("src",a.src);c.body.appendChild(b);return a}var d,g={v:1,apikey:"0747414f47c2b684cf5480c36b2478689",apitype:1,title:"",
39
+ link:"",short_link:"",shortener:"google",shortener_key:"",template:"${title} - ${short_link}",service:false,source:"Shareaholic-Publishers",tags:"",ctype:"",notes:""};return{init:function(a){d=a},url:a,appendScript:f,runBookmarklet:function(b){if(typeof b.service!="undefined"&&b.service){b.apitype=4;var c=SHR4P.base_url+"/api/share",j=d.extend({},g,b);f({src:a(c,j),cache:false,id:b.service+"_shareaholic_"})}},getFbShrCnt:function(a,b){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption==
40
+ "1"){a="http://api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&format=json&urls="+encodeURIComponent(a);SHR4P.jQuery.getJSON(a+"&callback=?",function(a){var c=0;if(a.length>0){c=a[0].total_count;c!=0&&c>1E3&&(c=Math.floor(c/1E3)+"K")}b({count:c})})}},getTwitShrCnt:function(a,b){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){a="https://cdn.api.twitter.com/1/urls/count.json?url="+encodeURIComponent(a);SHR4P.jQuery.getJSON(a+"&callback=?",function(a){a=a.count;a!=
41
+ 0&&a>1E3&&(a=Math.floor(a/1E3)+"K");b({count:a})})}},getDeliciousShrCnt:function(a,b){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){a="http://feeds.delicious.com/v2/json/urlinfo/data?url="+encodeURIComponent(a);SHR4P.jQuery.getJSON(a+"&callback=?",function(a){var c=0;if(a.length>0){c=a[0].total_posts;c!=0&&c>1E3&&(c=Math.floor(c/1E3)+"K")}b({count:c})})}},getGenericShrCnt:function(a,b,c,d,g,f){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){if(c==1)if(g==
42
+ 1)a="https://"+d+encodeURIComponent(a);else var a=encodeURIComponent("http://"+d+a+"&callback=?"),n="url="+a+"&src="+f,a="https://www.shareaholic.com/getshrcount?";else a="http://"+d+encodeURIComponent(a)+"&callback=?";SHR4P.jQuery.ajax({url:a,type:"GET",dataType:"jsonp",data:n,cache:false,success:function(a){if(f=="ln"||f=="tw"||f=="pt")var c=a.count;else if(f=="fb"||f=="dl"){c=0;if(a.length>0)if(f=="fb")c=a[0].total_count;else if(f=="dl")c=a[0].total_posts}c!=0&&c>1E3&&(c=Math.floor(c/1E3)+"K");
43
+ b({count:c})}})}},getTags:function(a,b,c){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var d=1,g=function(a){b=b+a;--d==0&&c(b)};"https:"!=document.location.protocol&&SHR4P.utils.getDeliciousTag(a,g)}},getDeliciousTag:function(a,b){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){a="http://feeds.delicious.com/v2/json/urlinfo/data?url="+encodeURIComponent(a);SHR4P.jQuery.getJSON(a+"&callback=?",function(a){if(a.length>0){top_tags=a[0].top_tags;del_tags="";
44
+ SHR4P.jQuery.each(top_tags,function(a,b){del_tags=del_tags+(encodeURIComponent(a)+"%7c"+b+"%7cdelicious,")});del_tags!=""&&(del_tags=del_tags.substr(0,del_tags.length-1));b(del_tags)}})}},showServiceLet:function(a,d){if(typeof d!="undefined"&&d){if(typeof SHR_config=="undefined"||!SHR_config)window.SHR_config={};b.__shr_service=d;b.__shr_log=true;b.__shr_center=true;SHR_config.shortener=a.shortener?a.shortener:"google";SHR_config.shortener_key=encodeURIComponent(a.shortener_key)?a.shortener_key:"";
45
+ SHR_config.apikey=a.apikey?a.apikey:"0747414f47c2b684cf5480c36b2478689";SHR_config.twitter_template=a.twitter_template?a.twitter_template:"${title} - ${short_link}";SHR_config.link=a.link?a.link:c.location.href;SHR_config.title=a.title?a.title:a.link?"":c.title;SHR_config.short_link=a.short_link?a.short_link:"";b.SHR&&b.SHR.Servicelet?SHR.Servicelet.show():f({src:(a.share_src?a.share_src:SHR4P.cdn_url)+"/media/js/servicelet.min.js",cache:true,id:"shr-servicelet"})}},isMobileBrowser:function(){var a=
46
+ navigator.userAgent||navigator.vendor||window.opera;return/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,
47
+ 4))},getBrowserLocale:function(){if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.locale!="undefined")var a=SHRSB_Globals.locale;else{a="en-us";if(navigator)if(navigator.language)a=navigator.language;else if(navigator.browserLanguage)a=navigator.browserLanguage;else if(navigator.systemLanguage)a=navigator.systemLanguage;else if(navigator.userLanguage)a=navigator.userLanguage}return a.toLowerCase()},trackAction:function(a){var b=a.apikey||"73868baef9de9b15b8cff648e686124de";SHR4P.jQuery("<img/>").attr({src:"//www.shareaholic.com/api/share/?v=1&apikey="+
48
+ b+"&apitype=3&service="+a.serviceId+"&link="+encodeURIComponent(a.href)+(a.title!==""?"&title="+a.title:""),width:"1",height:"1"}).appendTo("body")}}}(window,document);
49
+ SHR4P.ga=function(){function b(b){!a&&c();if(!d)return false;var f=b.serviceAction||"unknown",k=typeof e[f]!=="undefined"?e[f]:true,l=b.link,b=g+(SHR4P.tooltips_suffix[b.serviceId]||""),b=b.replace(/(\s|\r\n|\n|\r)/gm,"_"),f=f.charAt(0).toUpperCase()+f.slice(1);k&&_gaq.push([h+"_trackSocial",b,f,l]);return k}function c(){if(typeof _gaq=="undefined"||!_gaq)window._gaq=[];_gaq.push(["shr._setAccount","UA-12964573-5"],["shr._trackPageview"]);if(typeof SHRSB_Globals!=="undefined"){(f=SHRSB_Globals.pubGaKey||
50
+ false)&&(h="shrpub.");d=typeof SHRSB_Globals.pubGaSocial!=="undefined"?SHRSB_Globals.pubGaSocial:d;f&&d&&_gaq.push([h+"_setAccount",f])}a=true;if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var b=document.createElement("script");b.type="text/javascript";b.async=true;b.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)}}var a=false,f,d=true,g="Shareaholic_",
51
+ e={render:false,like:true,unlike:true,send:true,share:true,unknown:false},h="";return{init:c,socialAction:b,trackAction:function(a){b(a.data)}}}();
52
+ SHR4P.dough=SHR4P.dough||function(b,c){return function(){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var a;if(!(a=b.SHR_Load_Dough)){a=c.createElement("script");a.type="text/javascript";a.async=true;a.src=("https:"==document.location.protocol?"https://":"http://")+"dtym7iokkjlif.cloudfront.net/dough/1.0/recipe.js";var f=c.getElementsByTagName("script")[0];f.parentNode.insertBefore(a,f);a=true}b.SHR_Load_Dough=a}}}(window,document);
53
  SHR4P.prefetch=function(){if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.src!="undefined")(new Image).src=SHRSB_Globals.src+"/sprite.png"};
54
  SHR4P.renderLikeButtons=function(){SHR4P.jQuery(".shareaholic-fblike,.shareaholic-fbsend",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.fbUtil.addFBConnect()",0);SHR4P.jQuery(".shareaholic-googleplusone",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.googPlusOneUtil.addGoogScript()",0);SHR4P.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.twitterUtil.addTwitterScript()",0)};
55
+ SHR4P.googPlusOneUtil={addGoogScript:function(){if(SHR4P.jQuery("#googplusonescript").length==0){var b=document.createElement("script");b.async=true;b.src="https://apis.google.com/js/plusone.js";b.id="googplusonescript";b.text='{"parsetags": "explicit"}';document.getElementsByTagName("head")[0].appendChild(b);b.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.googPlusOneUtil.renderPlusOnes()};b.onload=SHR4P.googPlusOneUtil.renderPlusOnes}},renderPlusOnes:function(){SHR4P.jQuery(".shareaholic-googleplusone",
56
+ ".shareaholic-like-buttonset").each(function(){var b=SHR4P.jQuery(this);if((b.attr("data-shr_status")||false)!="1"){var c=b.attr("data-shr_href")||b.attr("shr_href"),a=b.attr("data-shr_title")||b.attr("shr_title"),f=b.attr("data-shr_size")||b.attr("shr_size"),d=b.attr("data-shr_count")||b.attr("shr_count"),g=b.attr("data-shr_annotation"),e=b.attr("data-shr_width"),h=b.attr("data-shr_expandto"),j=b.attr("data-shr_onstartinteraction"),i=b.attr("data-shr_onendinteraction");if(typeof d=="undefined"||
57
+ !d)d="true";if((typeof c=="undefined"||!c)&&(typeof a=="undefined"||!a)){c=encodeURIComponent(document.location.href);a=document.title}else{if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);if(typeof a=="undefined"||!a)a=""}if(typeof f=="undefined"||!f)f="standard";if(typeof g=="undefined"||!g){g="bubble";g=typeof d!=="undefined"&&d&&d!=="false"?"bubble":"none"}if(typeof e=="undefined"||!e)e="450px";if(typeof h=="undefined"||!h)h="";if(typeof j=="undefined"||!j)j="";if(typeof i==
58
+ "undefined"||!i)i="";d="";f=="medium"&&(d="padding-top:1px !important;");b.attr("data-shr_status","1");d=SHR4P.jQuery("<div style='float:left; "+d+" margin:0px 0px 0px 10px !important;'/>").get(0);b.replaceWith(d);SHR4P.jQuery(d).append("<div/>");d=SHR4P.jQuery(d).find(":first-child").get(0);gapi.plusone.render(d,{size:f,annotation:g,width:e,expandto:h,onstartinteraction:j,onendinteraction:i,href:decodeURIComponent(c),callback:function(b){SHR4P.googPlusOneUtil.trackPlusOneClick(b,a)}});SHR4P.ga.socialAction({serviceId:304,
59
+ serviceAction:"render",link:c})}})},trackPlusOneClick:function(b,c){if(b.state=="on"){SHR4P.utils.trackAction({serviceId:304,href:b.href,title:c});SHR4P.ga.socialAction({serviceId:304,serviceAction:"like",link:b.href})}else SHR4P.ga.socialAction({serviceId:304,serviceAction:"unlike",link:b.href})}};
60
+ SHR4P.twitterUtil={addTwitterScript:function(){SHR4P.twitterUtil.renderShareaholicTweetButton()},renderShareaholicTweetButton:function(){SHR4P.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").each(function(){var b=SHR4P.jQuery,c=b(this);if((c.attr("data-shr_status")||false)!="1"){var a=c.attr("data-shr_href")||c.attr("shr_href"),f=c.attr("data-shr_title")||c.attr("shr_title"),d=c.attr("data-shr_size")||c.attr("shr_size"),g=c.attr("data-shr_count")||c.attr("shr_count"),e=c.attr("data-shr_lang"),
61
+ h="shr-7",j="shr-generic",i=true,k=true;SHR4P.debug(c);if(typeof g=="undefined"||!g)g="none";if((typeof a=="undefined"||!a)&&(typeof f=="undefined"||!f)){a=encodeURIComponent(document.location.href);f=document.title}else{if(typeof a=="undefined"||!a)a=encodeURIComponent(document.location.href);if(typeof f=="undefined"||!f)f=""}if(typeof d=="undefined"||!d)d="standard";var l="";d=="medium"&&(l="padding-top:1px !important;");if(typeof e=="undefined"||!e)e="en";switch(g){case "horizontal":k=i=true;break;
62
+ case "vertical":i=true;k=false;break;case "none":k=i=false}if(i){h=h+"-count";j=j+"-count"}if(i&&k){h=h+"-compact";j=j+"-compact"}if(i&&typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var n=this;if(k){this.style.marginRight="0px";d=document.createElement("div");n=document.createElement("div");b(this).after(n);n.className="shr_compact_div";d.className="shr_compact_tick";d.appendChild(document.createElement("s"));d.appendChild(document.createElement("i"));b(this).after(d)}d=function(a){n.innerHTML=
63
+ a.count};i&&SHR4P.utils.getTwitShrCnt(decodeURIComponent(a),d)}var m=a,o={title:f,link:m,short_link:"",shortener:SHRSB_Globals.shortener?SHRSB_Globals.shortener:"google",shortener_key:encodeURIComponent(SHRSB_Globals.shortener_key)?SHRSB_Globals.shortener_key:"",v:1,apitype:1,apikey:SHR4P.shr_apiKey,twitter_template:SHR4P.shr_twitter_template?SHR4P.shr_twitter_template:"${title} - ${short_link}",service:7},a=b(this),f=SHR4P.shr_image||SHR4P.shr_twitter_image,i=SHR4P.shr_image?".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:-228px -79px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:-228px -100px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:-228px -121px;}":
64
+ ".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:0px 0px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:0px -21px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:0px -41px;}";a.before(b('<style type="text/css"> div.shareaholic a{background-image:url('+f+") !important;}.shr-generic-count{height:53px;width:57px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -80px;color:black;cursor:pointer;text-decoration:none;display:block;}.shr-generic-count-compact,.shr-generic{height:23px;width:63px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -50px;color:black;cursor:pointer;text-decoration:none;display:block;} "+
65
+ (i+".shr_compact_div{background:#EFEFEF;border:1px solid #C1C1C1;float:left;font-weight:normal;height:14px;margin-left:1px;min-width:15px;padding:1px 2px 1px 2px;text-align:center;font-size:11px;display:block;margin-top:2px;margin-right:15px;line-height:1.3em;}.shr_compact_tick{float:left;position:relative;z-index:2;width:5px;top:5px;left:2px;border-collapse:separate;border-spacing:2px 2px;margin-top:2px;}.shr_compact_tick i{left:2px;top:-6px;border-right-color:#EFEFEF;font-style:italic;}.shr_compact_tick s{text-decoration:line-through;text-align:left;}.shr_compact_tick s,i{border:solid transparent;border-right-color:#C7C7C7;display:block;position:relative;border-width:5px 5px 0 0;}")+
66
+ "</style>"));c.wrap('<div class="shr-7 shareaholic" style="float:left; '+l+' margin:0px 0px 0px 10px !important;"></div>');c.parent().removeClass("shr-7");c.addClass(j);c.addClass(h);SHR4P.debug(c);SHR4P.ga.socialAction({serviceId:7,serviceAction:"render",link:m});SHR4P.utils.isMobileBrowser()||c.click(function(a){SHR4P.ga.socialAction({serviceId:7,serviceAction:"share",link:m});SHR4P.utils.showServiceLet(o,"twitter");a.preventDefault()});c.attr("data-shr_status","1")}})}};
67
+ SHR4P.fbUtil={fbConnectAdd:0,renderFBWidgetCalled:!1,likeButtonsToRender:[],hasFB:function(){return typeof window.FB=="object"&&FB.Event&&typeof FB.Event.subscribe=="function"},addLikeButton:function(b,c){if(SHR4P.fbUtil.hasFBNameSpace()){var a=SHR4P.jQuery('<fb:like href="'+c+'"layout="button_count" show_faces="true" width="60" font=""></fb:like>').appendTo(b);typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse?FB.XFBML.parse(a.get(0)):SHR4P.fbUtil.likeButtonsToRender.push(a.get(0))}else SHR4P.jQuery('<iframe src="https://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+
68
  c+'&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>').appendTo(b)},renderFBWidgets:function(){if(!SHR4P.fbUtil.renderFBWidgetCalled){setTimeout("SHR4P.fbUtil.renderFBLikeButtons()",0);setTimeout("SHR4P.fbUtil.renderFBSendButtons()",0);for(var b=0;b<SHR4P.fbUtil.likeButtonsToRender.length;++b)typeof window.FB!=
69
+ "undefined"&&(FB.XFBML&&FB.XFBML.parse)&&FB.XFBML.parse(SHR4P.fbUtil.likeButtonsToRender[b]);SHR4P.fbUtil.renderFBWidgetCalled=true}},renderFBSendButtons:function(){SHR4P.jQuery(".shareaholic-fbsend",".shareaholic-like-buttonset").each(function(){if(SHR4P.fbUtil.hasFBNameSpace()){var b=SHR4P.jQuery(this),c=b.attr("data-shr_href");if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);var a=SHR4P.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);
70
+ b.replaceWith(a);SHR4P.ga.socialAction({serviceId:5,serviceAction:"render",link:c});b=SHR4P.jQuery('<fb:send href="'+c+'" width="60" font=""></fb:send>').appendTo(a);typeof window.FB!="undefined"&&(FB.XFBML&&FB.XFBML.parse)&&FB.XFBML.parse(b.get(0))}})},renderFBLikeButtons:function(){SHR4P.jQuery(".shareaholic-fblike",".shareaholic-like-buttonset").each(function(){var b=SHR4P.jQuery(this),c=b.attr("data-shr_href");if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);var a=b.attr("data-shr_layout");
71
+ if(typeof a=="undefined"||!a)a="button_count";var f=b.attr("data-shr_showfaces");if(typeof f=="undefined"||!f)f="true";var d=b.attr("data-shr_send");if(typeof d=="undefined"||!d)d="false";var g=b.attr("data-shr_action");if(typeof g=="undefined"||!g||g.toLowerCase()!="recommend"&&g.toLowerCase()!="like")g="like";var e=SHR4P.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);b.replaceWith(e);if(SHR4P.fbUtil.hasFBNameSpace()){a=SHR4P.jQuery('<fb:like action="'+
72
+ g+'" send = "'+d+'" href="'+c+'"layout="'+a+'" show_faces="'+f+'" width="60" font=""></fb:like>').appendTo(e);typeof window.FB!="undefined"&&(FB.XFBML&&FB.XFBML.parse)&&FB.XFBML.parse(a.get(0))}else{b="30";d="60";switch(a){case "button_count":d="90";b="21";break;case "box_count":d="60";b="90";break;default:d="60";b="80"}SHR4P.jQuery('<iframe src="https://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+c+"&amp;send=false&amp;layout="+a+"&amp;width="+d+"&amp;show_faces="+f+"&amp;action="+
73
+ g+"&amp;colorscheme=light&amp;font&amp;height="+b+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'+d+"px; height:"+b+'px;" allowTransparency="true"></iframe>').appendTo(e)}SHR4P.ga.socialAction({serviceId:5,serviceAction:"render",link:c})})},addFBConnect:function(){SHR4P.fbUtil.addFBNameSpace();if(!SHR4P.fbUtil.fbConnectAdd){SHR4P.jQuery('<div id="fb-root"></div>').appendTo("body");window.fbAsyncInit=function(){FB.init({appId:"207766518608",status:true,cookie:true,xfbml:true});
74
+ SHR4P.fbUtil.tryAddFBSubscription()};SHR4P.fbUtil.renderFBWidgetHandlerAttached=true;var b=document.createElement("script");b.async=true;b.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";b.onload=SHR4P.fbUtil.renderFBWidgets;b.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.fbUtil.renderFBWidgets()};document.getElementById("fb-root").appendChild(b);SHR4P.fbUtil.fbConnectAdd=1}},tryAddFBSubscription:function(){SHR4P.fbUtil.hasFB()&&
75
+ FB.XFBML&&FB.XFBML.parse?SHR4P.fbUtil.addFBSubscription():setTimeout(SHR4P.fbUtil.tryAddFBSubscription,500)},addFBSubscription:function(){try{FB.Event.subscribe("edge.create",function(b){SHR4P.ga.socialAction({serviceId:303,serviceAction:"like",link:b});SHR4P.utils.trackAction({serviceId:303,href:b})});FB.Event.subscribe("edge.remove",function(b){SHR4P.ga.socialAction({serviceId:303,serviceAction:"unlike",link:b})});FB.Event.subscribe("message.send",function(b){SHR4P.ga.socialAction({serviceId:305,
76
+ serviceAction:"send",link:b});SHR4P.utils.trackAction({serviceId:305,href:b})})}catch(b){SHR4P.debug(b)}},addFBNameSpace:function(){var b=SHR4P.jQuery(SHR4P.jQuery("html").get(0));if(typeof b.attr("xmlns:fb")=="undefined"&&(!SHR4P.jQuery.browser.msie||SHR4P.jQuery.browser.version>="9.0")){b.attr("xmlns:fb","https://www.facebook.com/2008/fbml");b.attr("xmlns:og","http://opengraphprotocol.org/schema/")}},hasFBNameSpace:function(){return typeof SHR4P.jQuery(SHR4P.jQuery("html").get(0)).attr("xmlns:fb")!=
77
  "undefined"}};
78
  SHR4P.tooltips_prefix_map={1:10,2:0,3:0,4:0,5:0,6:1,7:0,8:1,9:1,10:1,11:1,12:1,13:1,14:0,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:0,28:1,29:1,30:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,38:0,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,49:1,50:1,51:10,52:10,53:10,54:10,55:10,56:1,57:1,58:1,59:1,60:1,61:0,62:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1,97:1,
79
  98:1,99:1,100:1,101:1,102:1,103:1,104:1,105:1,106:1,107:1,108:1,109:1,110:1,111:1,112:1,113:1,114:1,115:1,116:1,117:1,118:1,119:1,120:1,121:1,122:1,123:1,124:1,125:1,126:1,127:1,128:1,129:1,130:1,131:1,132:1,133:1,134:1,135:1,136:1,137:1,138:1,139:1,140:1,141:1,142:1,143:1,144:1,145:1,146:1,147:1,148:1,149:1,150:1,151:1,152:1,153:1,154:1,155:1,156:1,157:1,158:1,159:1,160:1,161:1,162:1,163:1,164:1,165:1,166:1,167:1,168:1,169:1,170:1,171:1,172:1,173:1,174:1,175:1,176:1,177:1,178:1,179:1,180:1,181:1,
89
  236:"PrintFriendly",237:"DailyMe",238:"NUjij",239:"Read It Later",240:"Box.net",241:"Balatarin",242:"Favoriten",243:"Oknotizie",244:"diHITT",245:"Svejo",246:"Hatena",247:"Orkut",248:"Clicky",249:"j.mp",250:"ReadWriteWeb",251:"Dwellicious",252:"Google Translate",253:"Yammer",254:"Yahoo Buzz India",255:"Boxee",256:"Pinboard",257:"Google Buzz",258:"Readability",259:"Social.com",260:"Google Apps Email",261:"HootSuite",262:"Google Wave",263:"iZeby",264:"Ning",265:"SpringPad",266:"BobrDobr",267:"Yandex",
90
  268:"Moemesto",269:"Memori.ru",270:"Amazon (UK) Wish List",271:"Amazon (CA) Wish List",272:"Amazon (DE) Wish List",273:"Amazon (FR) Wish List",274:"Amazon (JP) Wish List",275:"Google Sidewiki",276:"Marginize",277:"Twittley",278:"Script & Style",279:"PFBuzz",280:"Fwisp",281:"100 bookmarks",282:"Design Bump",283:"eKudos",284:"Web Blend",285:"Wykop",286:"BlogEngage",287:"FAQpal",288:"Bitacoras",289:"N4G",290:"Kaevur",291:"Virb",292:"BonzoBox",293:"Zabox",294:"ToMuse",295:"BuzzFeed",296:"Amazon Universal Registry",
91
  297:"TwitThat",298:"Mister-Wong DE",299:"Mister-Wong CN",300:"Mister-Wong ES",301:"Mister-Wong FR",302:"Mister-Wong RU",303:"Facebook Like",304:"Google+",305:"Facebook Send",306:"Shareaholic More",307:"Shareaholic All",308:"Buffer",309:"Pinterest",310:"Quora",313:"Shareaholic Mail"};
92
+ SHR4P.locales={en:{"0":"Post to",1:"Add to",2:"Submit to",3:"Share on",4:"Print with",5:"Post on",6:"Suggest this article to",7:"Shorten URL with",8:"Push this on",9:"Bookmark on",10:"Send via",11:""},es:{"0":"Publicarlo en",1:"A\u00f1adirlo a",2:"Enviar a",3:"Compartir con",4:"Imprimir con",5:"Publicarlo en",6:"Sugiere este art\u00edculo a",7:"Acortar URL con",8:"Pulse aqu\u00ed",9:"Agregar marcador en",10:"Enviar v\u00eda",11:""},fr:{"0":"Publiez-le sur",1:"Ajoutez ce lien \u00e0",2:"Soumettez ce lien \u00e0",
93
+ 3:"Partagez-le sur",4:"Imprimez-le avec",5:"Publiez-le sur",6:"Sugg\u00e9rer cet article \u00e0",7:"Raccourcir l'URL avec",8:"Poussez cet article sur",9:"Ajoutez-le \u00e0 vos favoris sur",10:"Envoyez-le avec",11:""},de:{"0":"Senden an",1:"Hinzuf\u00fcgen zu",2:"\u00dcbertragen zu",3:"Teilen bei",4:"Drucken mit",5:"Ver\u00f6ffentlichen bei",6:"Empfehlen bei",7:"URL k\u00fcrzen mit",8:"Schiebe dies auf",9:"Lesezeichen speichern auf",10:"Senden mit",11:""},tr:{"0":"Bunu postala:",1:"Bunu ekle:",2:"Bu makaleyi payla\u015f:",
94
+ 3:"Bunu payla\u015f:",4:"Bask\u0131 ile",5:"Bunu postala:",6:"Bu makaleyi \u00f6ner:",7:"K\u0131saltmak Url ile",8:"Bunu payla\u015f:",9:"Bookmark on",10:"Send via",11:""},it:{"0":"Pubblicalo su",1:"Aggiungilo a",2:"Invia questa storia a",3:"Condividi su",4:"Stampa con",5:"Pubblicalo su",6:"Suggerisci questo articolo a",7:"Accorciare URL con",8:"Sparalo in",9:"Bookmark on",10:"Invia con",11:""},pt:{"0":"Publicar no",1:"Adicionar ao",2:"Enviar hist\u00f3ria para o",3:"Compartilhar no",4:"Imprima com",
95
+ 5:"Publicar no",6:"Sugerir este artigo para",7:"Encurtar url com",8:"Publicar no",9:"Favoritar no",10:"Enviar via",11:""},pt_BR:{"0":"Postar no",1:"Adicionar ao",2:"Enviar para",3:"Compartilhar com",4:"Imprimir com",5:"Postar no",6:"Sugerir este artigo para",7:"Encurtar a URL com",8:"Enviar no",9:"Favoritar no",10:"Enviar via",11:""},et:{"0":"Postita",1:"Lisa",2:"Saada",3:"Jaga",4:"Prindi",5:"Postita",6:"Soovita seda artiklit",7:"L\u00fchenda URL",8:"Sparalo in",9:"Bookmark on",10:"Send via",11:""},
96
+ hu:{"0":"Elk\u00fcld\u00e9s:",1:"Hozz\u00e1ad\u00e1s:",2:"Tov\u00e1bbk\u00fcld\u00e9s:",3:"Megoszt\u00e1s:",4:"Nyomtat\u00e1s:",5:"Publik\u00e1l\u00e1s:",6:"Aj\u00e1nl\u00e1s valakinek:",7:"C\u00edm (URL) r\u00f6vid\u00edt\u00e9se:",8:"Kik\u00fcld\u00e9s:",9:"K\u00f6nyvjelz\u0151 felv\u00e9tele:",10:"K\u00fcld\u00e9s:",11:""},bg:{"0":"\u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0432\u0430\u0439 \u0432",1:"\u041f\u0440\u0438\u0431\u0430\u0432\u0438 \u043a\u044a\u043c",2:"\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u0438 \u043a\u044a\u043c",
97
  3:"\u0421\u043f\u043e\u0434\u0435\u043b\u0438 \u043f\u043e",4:"\u041f\u0440\u0438\u043d\u0442\u0438\u0440\u0430\u0439 \u0441",5:"\u041f\u0443\u0431\u043b\u0438\u043a\u0443\u0432\u0430\u0439 \u043d\u0430",6:"\u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0438 \u0442\u0430\u0437\u0438 \u0441\u0442\u0430\u0442\u0438\u044f \u043d\u0430",7:"\u0421\u044a\u043a\u0440\u0430\u0442\u0435\u043d URL \u0441",8:"\u0411\u0443\u0442\u043d\u0438 \u0442\u043e\u0432\u0430 \u043a\u044a\u043c",9:"\u041e\u0442\u0431\u0435\u043b\u0435\u0436\u0438 \u0432",
98
+ 10:"\u0418\u0437\u043f\u0440\u0430\u0442\u0438 \u0447\u0440\u0435\u0437",11:""},el:{"0":"\u0391\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",1:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",2:"\u03a5\u03c0\u03bf\u03b2\u03ac\u03bb\u03bb\u03b5\u03c4\u03b5 \u03c3\u03c4\u03bf",3:"\u039c\u03bf\u03b9\u03c1\u03b1\u03c3\u03c4\u03b5\u03af\u03c4\u03b5 \u03c3\u03c4\u03bf",4:"\u0395\u03ba\u03c4\u03c5\u03c0\u03ce\u03c3\u03c4\u03b5 \u03bc\u03b5",5:"\u0391\u03bd\u03b1\u03c1\u03c4\u03ae\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",
99
  6:"\u03a0\u03c1\u03bf\u03c4\u03b5\u03af\u03bd\u03b5\u03c4\u03b5 \u03b1\u03c5\u03c4\u03cc \u03c4\u03bf \u03ac\u03c1\u03b8\u03c1\u03bf \u03c3\u03b5",7:"\u03a3\u03c5\u03bd\u03c4\u03bf\u03bc\u03b5\u03cd\u03c3\u03c4\u03b5 \u03c4\u03bf URL \u03bc\u03b5",8:"\u03a0\u03c1\u03bf\u03c9\u03b8\u03ae\u03c3\u03c4\u03b5 \u03c3\u03c4\u03bf",9:"\u03a0\u03c1\u03bf\u03c3\u03b8\u03ad\u03c3\u03c4\u03b5 \u03c3\u03b5\u03bb\u03b9\u03b4\u03bf\u03b4\u03b5\u03af\u03ba\u03c4\u03b7 \u03c3\u03c4\u03bf",10:"\u0391\u03c0\u03bf\u03c3\u03c4\u03b5\u03af\u03bb\u03b5\u03c4\u03b5 \u03bc\u03ad\u03c3\u03c9",
100
+ 11:""},lt:{"0":"Paskelbti",1:"Prid\u0117ti \u012f",2:"Pateikti",3:"Dalintis",4:"Spausdinti per",5:"\u012era\u0161yti",6:"Pasi\u016blyti \u0161\u012f straipsn\u012f \u012f",7:"Trumpinti URL su",8:"Kilstel\u0117ti",9:"Pasi\u017eym\u0117ti per",10:"Si\u0173sti per",11:""},he:{"0":"\u05d4\u05e4\u05e5 \u05dc",1:"\u05d4\u05d5\u05e1\u05e3 \u05dc",2:"\u05d0\u05e9\u05e8 \u05dc",3:"\u05e9\u05ea\u05e3 \u05d1",4:"\u05d4\u05d3\u05e4\u05e1 \u05e2\u05dd",5:"\u05d4\u05e4\u05e5 \u05d1",6:"\u05d4\u05e6\u05e2 \u05de\u05d0\u05de\u05e8 \u05d6\u05d4 \u05dc",
101
+ 7:"\u05e7\u05e6\u05e8 URL \u05e2\u05dd",8:"\u05d3\u05d7\u05e3 \u05d0\u05ea \u05d6\u05d4 \u05d1",9:"\u05e9\u05de\u05d5\u05e8 \u05db\u05de\u05d5\u05e2\u05d3\u05e3 \u05d1",10:"\u05e9\u05dc\u05d7 \u05d3\u05e8\u05da",11:""},nl:{"0":"Publiceer op",1:"Voeg toe aan",2:"Stuur in op",3:"Deel op",4:"Print met",5:"Publiceer op",6:"Suggereer dit artikel op",7:"Verkort de URL met",8:"Push dit op",9:"Maak een bladwijzer op",10:"Verzend met",11:""}};SHR4P.ga.init();SHR4P.load();
spritegen_default/jquery.shareaholic-share-buttons.min.js CHANGED
@@ -1,47 +1,47 @@
1
  /*
2
  Copyright (c) Shareaholic Inc (www.shareaholic.com). All rights reserved.
3
  */
4
- typeof SHR4P=="undefined"&&(SHR4P={});if(typeof SHR4P.TB=="undefined")SHR4P.TB={};SHR4P.TB.base_url=typeof SHR4P.debug_enabled!=="undefined"?"//www.spreadaholic.com/":"//www.shareaholic.com/";SHR4P.TB.shr_link=SHR4P.TB.base_url+"api/share/";SHR4P.TB.shr_css=SHR4P.TB.base_url+"media/css/shareaholic-share-button.css";SHR4P.TB.shr_twitter_image=SHR4P.TB.base_url+"media/images/styles/tb/twitter.png";SHR4P.TB.shr_image_arrow_up=SHR4P.TB.base_url+"media/images/styles/tb/arrow_up.png";
5
  SHR4P.TB.shr_image_arrow_down=SHR4P.TB.base_url+"media/images/styles/tb/arrow_down.png";SHR4P.TB.shr_apiKey="e3c665c2eb6785741cea4515633f1d86b";SHR4P.TB.shr_twitter_template="${title} - ${short_link} via @Shareaholic";
6
- if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.src!="undefined")SHR4P.TB.shr_css=SHRSB_Globals.src+"/shareaholic-share-button.css",SHR4P.TB.shr_image=SHRSB_Globals.src+"/shareaholic-publishers-mini.png",SHR4P.TB.shr_image_arrow_up=SHRSB_Globals.src+"/arrow_up.png",SHR4P.TB.shr_image_arrow_down=SHRSB_Globals.src+"/arrow_down.png";if(typeof SHRTB_Settings!="undefined"&&typeof SHRTB_Settings.apikey!="undefined")SHR4P.TB.shr_apiKey=SHRTB_Settings.apikey;
7
- if(typeof SHRTB_Settings!="undefined"&&typeof SHRTB_Settings.shr_twitter_template!="undefined")SHR4P.TB.shr_twitter_template=SHRTB_Settings.shr_twitter_template;if(typeof SHRSB_Globals!="undefined"&&typeof SHRSB_Globals.twitter_template!="undefined")SHR4P.TB.shr_twitter_template=SHRSB_Globals.twitter_template;SHR4P.debug=function(a){SHR4P.debug_enabled&&(typeof console!="undefined"&&console?console.log(a):alert(a))};SHR4P.TB.ready=!1;SHR4P.TB.init=!1;
8
- var SHR4P_init=function(){SHR4P.debug("SHR4P_init called");if(SHR4P.TB.init)SHR4P.debug("SHR4P_init returning because already loaded");else if(SHR4P.TB.init=!0,SHR4P.TB.jQuery=typeof sb_dont_noConflict!="undefined"&&sb_dont_noConflict?jQuery:jQuery.noConflict(!0),function(a){SHR4P.TB.renderShareButtons=function(){SHR4P.debug("SHR4P.TB.renderShareButtons called");if(typeof SHRTB_Settings=="undefined"||!SHRTB_Settings)window.SHRTB_Settings={};a(".shr-toolbox").each(function(){var c=a(this),e=c.attr("data-shr_form_factor")||
9
- c.attr("shr_form_factor");c.addClass(e+"-head");c.attr("data-shr_link")||c.attr("shr_link");c.attr("data-shr_title")||c.attr("shr_title");c.attr("data-shr_short_link")||c.attr("shr_short_link");c.children("#shareaholic-services").wrapInner("<ul></ul>");b(e,c)})};var b=function(c,b){SHR4P.debug("SHR4P.TB.layoutFormFactor called");if(!(typeof c=="undefined"||!c||typeof b=="undefined"||!b)&&c=="shareaholic-top-bar"&&!d){var d=!0,f=SHRTB_Settings.topBarBgColor,h=SHRTB_Settings.topBarBorderColor,d=!1,
10
- k=a("document").height()/4||120,j=!1;a("<style type='text/css'>#shareToolBar,#showHideToolBar,#shareToolBarAddv,#shareToolBarHeader{background-color: "+(f||"#343434")+" !important;} .shareToolBarShowButton{ background-image: url("+SHR4P.TB.shr_image_arrow_down+") !important;}.shareToolBarHideButton{background-image: url("+SHR4P.TB.shr_image_arrow_up+") !important;}#shareaholic-bar{border-bottom-color:"+(h||"#343434")+"} </style>").appendTo("head");var f=a("<div id='shareToolBarHeader'></div>"),g=
11
- a("<div id='shareToolBarContainer'></div>"),h=a("<div id='shareToolBarFooter'></div>"),d=a("<div id='shareaholic-bar' class='shareToolBarShadow' style='display:none'></div>"),l=a("<div id='shareToolBar'></div>");b.wrap(l);l=b.parents("#shareToolBar");l.wrap(g);g=l.parents("#shareToolBarContainer");g.wrap(d);d=g.parents("#shareaholic-bar");f.prependTo(d);h.appendTo(d);f=b.parents("#shareaholic-bar");SHR4P.debug(f);a('<div id="showHideToolBar" title="Click to hide"><div class="shareToolBarButton shareToolBarHideButton"></div></div>').appendTo(g);
12
- a('<div id="shareToolBarAddv"></div>').appendTo(g);var m=a("#shareaholic-bar"),i=a("#showHideToolBar");i.click(function(){j=!j;a("#showHideToolBar > div").toggleClass("shareToolBarShowButton shareToolBarHideButton");j?(i.hide(),a("#shareaholic-bar").css("border-bottom-width","0px").removeClass("shareToolBarShadow")):i.css("margin-left","-100%");a("#shareToolBar, #shareToolBarAddv").slideToggle("slow",function(){j||(a("#shareaholic-bar").css("border-bottom-width","1px").addClass("shareToolBarShadow"),
13
- a("#shareToolBarHeader").animate({height:"+=5"},{duration:100}).animate({height:"-=5"},{duration:100}),i.attr("title","Click to hide"));var b=a("#showHideToolBar").css("margin-left");j&&b!="0px"&&(i.css("margin-left","0"),i.fadeIn("slow"),i.attr("title","Click to display"))})});a(window).scroll(function(){var b=a(window).scrollTop(),c=m.css("display")=="none";SHR4P.debug("ScrollTop "+b+" ScrollOffset: "+k);b>k?c&&a("#shareaholic-bar,#shareToolBar, #shareToolBarAddv").slideDown("slow",function(){a("#shareToolBarHeader").animate({height:"+=5"},
14
- {duration:100}).animate({height:"-=5"},{duration:100});a("#shareaholic-bar").css("border-bottom-width","1px").addClass("shareToolBarShadow");i.fadeIn("slow");i.attr("title","Click to hide")}):j||(i.hide(),a("#shareaholic-bar").css("border-bottom-width","0px").removeClass("shareToolBarShadow"),a("#shareaholic-bar,#shareToolBar, #shareToolBarAddv, #showHideToolBar").slideUp("slow"))})}}}(SHR4P.TB.jQuery),SHR4P.TB.ready=!0,typeof SHR4P.TB.onready!="undefined")SHR4P.TB.onready()};
15
- SHR4P.TB.load=function(){setTimeout("SHR4P.dough()",0);var a=document.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=SHR4P.TB.shr_css;document.getElementsByTagName("head")[0].appendChild(a);if(typeof jQuery!="undefined"&&jQuery&&(a=jQuery().jquery,SHRSB_Globals.minJQueryVersion<=a)){window.sb_dont_noConflict=!0;SHR4P_init();return}SHR4P.debug("loading jquery");a=document.getElementsByTagName("head")[0];if(typeof a!="undefined"){var b=document.createElement("script");b.src=SHR4P.debug_enabled?
16
- "//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js":"//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";b.type="text/javascript";a.appendChild(b);b.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded")SHR4P.debug("jQuery loaded with onreadystatechange, init'ing"),SHR4P_init()};b.onload=SHR4P_init}};SHR4P.TB.onready=function(){/(loaded|complete)/.test(document.readyState)?SHR4P.TB.readyHandler():SHR4P.TB.jQuery(document).ready(function(){SHR4P.TB.readyHandler()})};
17
  SHR4P.TB.readyHandler=function(){SHR4P.TB.renderLikeButtons();SHR4P.TB.renderShareButtons()};
18
- SHR4P.TB.utils={showServiceLet:function(a,b){if(typeof b!="undefined"&&b){if(typeof SHR_config=="undefined"||!SHR_config)window.SHR_config={};window.__shr_service=b;window.__shr_log="true";window.__shr_center=!0;SHR_config.shortener=a.shortener?a.shortener:"google";SHR_config.shortener_key=a.shortener_key?a.shortener_key:"";SHR_config.apikey=a.apikey?a.apikey:SHR4P.TB.shr_apiKey;SHR_config.twitter_template=a.twitter_template?a.twitter_template:"${title} - ${short_link}";SHR_config.link=a.link?a.link:
19
  document.location.href;SHR_config.title=a.title?a.title:a.link?"":document.title;SHR_config.short_link=a.short_link?a.short_link:"";if(window.SHR&&window.SHR.Servicelet)SHR.Servicelet.show();else{var c=document,e=c.createElement("script");e.setAttribute("language","javascript");e.id="shr-servicelet";e.setAttribute("src",(a.share_src?a.share_src:"http://www.shareaholic.com")+"/media/js/servicelet.min.js");c.body.appendChild(e)}}},isMobileBrowser:function(){var a=navigator.userAgent||navigator.vendor||
20
  window.opera;return/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,
21
- 4))},getFbShrCnt:function(a,b){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(a="http://api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&format=json&urls="+encodeURIComponent(a),SHR4P.TB.jQuery.getJSON(a+"&callback=?",function(a){var e=0;if(a.length>0)e=a[0].total_count,e!=0&&e>1E3&&(e=Math.floor(e/1E3)+"K");b({count:e})}))},getTwitShrCnt:function(a,b){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(a="https://cdn.api.twitter.com/1/urls/count.json?url="+
22
- encodeURIComponent(a),SHR4P.TB.jQuery.getJSON(a+"&callback=?",function(a){a=a.count;a!=0&&a>1E3&&(a=Math.floor(a/1E3)+"K");b({count:a})}))}};
23
  SHR4P.TB.renderLikeButtons=function(){SHR4P.TB.jQuery(".shareaholic-fblike,.shareaholic-fbsend",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.TB.fbUtil.addFBConnect()",0);SHR4P.TB.jQuery(".shareaholic-googleplusone",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.TB.googPlusOneUtil.addGoogScript()",0);SHR4P.TB.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.TB.twitterUtil.addTwitterScript()",0)};
24
- SHR4P.TB.googPlusOneUtil={addGoogScript:function(){if(SHR4P.TB.jQuery("#googplusonescript").length==0){var a=document.createElement("script");a.async=!0;a.src="https://apis.google.com/js/plusone.js";a.id="googplusonescript";a.text='{"parsetags": "explicit"}';document.getElementsByTagName("head")[0].appendChild(a);a.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.TB.googPlusOneUtil.renderPlusOnes()};a.onload=SHR4P.TB.googPlusOneUtil.renderPlusOnes}},renderPlusOnes:function(){SHR4P.TB.jQuery(".shareaholic-googleplusone",
25
- ".shareaholic-like-buttonset").each(function(){var a=SHR4P.TB.jQuery(this);if((a.attr("data-shr_status")||!1)!="1"){var b=a.attr("data-shr_href")||a.attr("shr_href"),c=a.attr("data-shr_title")||a.attr("shr_title"),e=a.attr("data-shr_size")||a.attr("shr_size"),d=a.attr("data-shr_count")||a.attr("shr_count"),f=a.attr("data-shr_annotation"),h=a.attr("data-shr_width"),k=a.attr("data-shr_expandto"),j=a.attr("data-shr_onstartinteraction"),g=a.attr("data-shr_onendinteraction");if(typeof d=="undefined"||
26
- !d)d="true";if((typeof b=="undefined"||!b)&&(typeof c=="undefined"||!c))b=encodeURIComponent(document.location.href),c=document.title;else{if(typeof b=="undefined"||!b)b=encodeURIComponent(document.location.href);if(typeof c=="undefined"||!c)c=""}if(typeof e=="undefined"||!e)e="standard";if(typeof f=="undefined"||!f)f="bubble",f=typeof d!=="undefined"&&d&&d!=="false"?"bubble":"none";if(typeof h=="undefined"||!h)h="450px";if(typeof k=="undefined"||!k)k="";if(typeof j=="undefined"||!j)j="";if(typeof g==
27
- "undefined"||!g)g="";d="";e=="medium"&&(d="padding-top:1px !important;");a.attr("data-shr_status","1");d=SHR4P.TB.jQuery("<div style='float:left; "+d+" margin:0px 0px 0px 10px !important;'/>").get(0);a.replaceWith(d);SHR4P.TB.jQuery(d).append("<div/>");d=SHR4P.TB.jQuery(d).find(":first-child").get(0);gapi.plusone.render(d,{size:e,annotation:f,width:h,expandto:k,onstartinteraction:j,onendinteraction:g,href:decodeURIComponent(b),callback:function(a){SHR4P.TB.googPlusOneUtil.trackPlusOneClick(a,c)}})}})},
28
- trackPlusOneClick:function(a,b){a.state=="on"&&SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+"&apitype=3&service=304&link="+encodeURIComponent(a.href)+(b!==""?"&title="+b:""),width:"1",height:"1"}).appendTo("body")}};
29
- SHR4P.TB.twitterUtil={addTwitterScript:function(){SHR4P.TB.twitterUtil.renderShareaholicTweetButton()},renderShareaholicTweetButton:function(){SHR4P.TB.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").each(function(){var a=SHR4P.TB.jQuery,b=a(this);if((b.attr("data-shr_status")||!1)!="1"){var c=b.attr("data-shr_href")||b.attr("shr_href"),e=b.attr("data-shr_title")||b.attr("shr_title"),d=b.attr("data-shr_size")||b.attr("shr_size"),f=b.attr("data-shr_count")||b.attr("shr_count"),h=b.attr("data-shr_lang"),
30
- k="shr-7",j="shr-generic",g=!0,l=!0;SHR4P.debug(b);if(typeof f=="undefined"||!f)f="horizontal";if((typeof c=="undefined"||!c)&&(typeof e=="undefined"||!e))c=encodeURIComponent(document.location.href),e=document.title;else{if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);if(typeof e=="undefined"||!e)e=""}if(typeof d=="undefined"||!d)d="standard";var m="";d=="medium"&&(m="padding-top:1px !important;");if(typeof h=="undefined"||!h)h="en";switch(f){case "horizontal":l=g=!0;break;
31
- case "vertical":g=!0;l=!1;break;case "none":l=g=!1}g&&(k+="-count",j+="-count");g&&l&&(k+="-compact",j+="-compact");if(g){var i=this;if(l)this.style.marginRight="0px",d=document.createElement("div"),i=document.createElement("div"),f=this.parentNode,f.appendChild(i),i.className="shr_compact_div",d.className="shr_compact_tick",d.appendChild(document.createElement("s")),d.appendChild(document.createElement("i")),f.insertBefore(d,i);g&&SHR4P.TB.utils.getTwitShrCnt(decodeURIComponent(c),function(a){i.innerHTML=
32
- a.count})}var n={title:e,link:c,short_link:c,shortener:SHRSB_Globals.shortener?SHRSB_Globals.shortener:"google",shortener_key:SHRSB_Globals.shortener_key?SHRSB_Globals.shortener_key:"",v:1,apitype:1,apikey:SHR4P.TB.shr_apiKey,twitter_template:SHR4P.TB.shr_twitter_template?SHR4P.TB.shr_twitter_template:"${title} - ${short_link}",service:7};[SHR4P.TB.shr_link,a.param(n)].join("?");a(this).before(a('<style type="text/css"> div.shareaholic a{background-image:url('+(SHR4P.TB.shr_image||SHR4P.TB.shr_twitter_image)+
33
- ") !important;}.shr-generic-count{height:53px;width:57px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -80px;color:black;cursor:pointer;text-decoration:none;display:block;}.shr-generic-count-compact,.shr-generic{height:23px;width:63px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -50px;color:black;cursor:pointer;text-decoration:none;display:block;} "+
34
  (SHR4P.TB.shr_image?".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:-228px -79px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:-228px -100px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:-228px -121px;}":".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:0px 0px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:0px -21px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:0px -41px;}")+
35
- "</style>"));b.wrap('<div class="shr-7 shareaholic" style="float:left; '+m+' margin:0px 0px 0px 10px !important;"></div>');b.parent().removeClass("shr-7");b.addClass(j);b.addClass(k);SHR4P.debug(b);SHR4P.TB.utils.isMobileBrowser()||b.click(function(a){SHR4P.TB.utils.showServiceLet(n,"twitter");a.preventDefault()});b.attr("data-shr_status","1")}})},trackTweetButtonClick:function(a){a.type="tweet";SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+
36
  "&apitype=3&service=7&link="+encodeURIComponent(a.target.baseURI)+(a.target.title!==""?"&title="+a.target.title:""),width:"1",height:"1"}).appendTo("body")}};
37
- SHR4P.dough=SHR4P.dough||function(a,b){return function(){typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"&&(a.SHR_Load_Dough=a.SHR_Load_Dough||function(){var a=b.createElement("script");a.type="text/javascript";a.async=!0;a.src=("https:"==document.location.protocol?"https://":"http://")+"dtym7iokkjlif.cloudfront.net/dough/1.0/recipe.js";var e=b.getElementsByTagName("script")[0];e.parentNode.insertBefore(a,e);return!0}())}}(window,document);
38
  SHR4P.TB.fbUtil={fbConnectAdd:0,renderFBWidgetCalled:!1,likeButtonsToRender:[],hasFB:function(){return typeof window.FB=="object"&&FB.Event&&typeof FB.Event.subscribe=="function"},addLikeButton:function(a,b){if(SHR4P.TB.fbUtil.hasFBNameSpace()){var c=SHR4P.TB.jQuery('<fb:like href="'+b+'"layout="button_count" show_faces="true" width="60" font=""></fb:like>').appendTo(a);typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse?FB.XFBML.parse(c.get(0)):SHR4P.TB.fbUtil.likeButtonsToRender.push(c.get(0))}else SHR4P.TB.jQuery('<iframe src="http://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+
39
  b+'&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>').appendTo(a)},renderFBWidgets:function(){if(!SHR4P.TB.fbUtil.renderFBWidgetCalled){setTimeout("SHR4P.TB.fbUtil.renderFBLikeButtons()",0);setTimeout("SHR4P.TB.fbUtil.renderFBSendButtons()",0);for(var a=0;a<SHR4P.TB.fbUtil.likeButtonsToRender.length;++a)typeof window.FB!=
40
- "undefined"&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(SHR4P.TB.fbUtil.likeButtonsToRender[a]);SHR4P.TB.fbUtil.renderFBWidgetCalled=!0}},renderFBSendButtons:function(){SHR4P.TB.jQuery(".shareaholic-fbsend",".shareaholic-like-buttonset").each(function(){if(SHR4P.TB.fbUtil.hasFBNameSpace()){var a=SHR4P.TB.jQuery(this),b=a.attr("data-shr_href");if(typeof b=="undefined"||!b)b=encodeURIComponent(document.location.href);var c=SHR4P.TB.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);
41
- a.replaceWith(c);a=SHR4P.TB.jQuery('<fb:send href="'+b+'" width="60" font=""></fb:send>').appendTo(c);typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(a.get(0))}})},renderFBLikeButtons:function(){SHR4P.TB.jQuery(".shareaholic-fblike",".shareaholic-like-buttonset").each(function(){var a=SHR4P.TB.jQuery(this),b=a.attr("data-shr_href");if(typeof b=="undefined"||!b)b=encodeURIComponent(document.location.href);var c=a.attr("data-shr_layout");if(typeof c=="undefined"||!c)c="button_count";
42
- var e=a.attr("data-shr_showfaces");if(typeof e=="undefined"||!e)e="true";var d=a.attr("data-shr_send");if(typeof d=="undefined"||!d)d="false";var f=a.attr("data-shr_action");if(typeof f=="undefined"||!f||f.toLowerCase()!="recommend"&&f.toLowerCase()!="like")f="like";var h=SHR4P.TB.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);a.replaceWith(h);if(SHR4P.TB.fbUtil.hasFBNameSpace())b=SHR4P.TB.jQuery('<fb:like action="'+f+'" send = "'+d+'" href="'+b+
43
- '"layout="'+c+'" show_faces="'+e+'" width="60" font=""></fb:like>').appendTo(h),typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse&&FB.XFBML.parse(b.get(0));else{a="30";d="60";switch(c){case "button_count":d="90";a="21";break;case "box_count":d="60";a="90";break;default:d="60",a="80"}SHR4P.TB.jQuery('<iframe src="http://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+b+"&amp;send=false&amp;layout="+c+"&amp;width="+d+"&amp;show_faces="+e+"&amp;action="+f+"&amp;colorscheme=light&amp;font&amp;height="+
44
- a+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'+d+"px; height:"+a+'px;" allowTransparency="true"></iframe>').appendTo(h)}})},addFBConnect:function(){SHR4P.TB.fbUtil.addFBNameSpace();if(!SHR4P.TB.fbUtil.fbConnectAdd)SHR4P.TB.jQuery('<div id="fb-root"></div>').appendTo("body"),window.fbAsyncInit=function(){FB.init({appId:"207766518608",status:!0,cookie:!0,xfbml:!0});SHR4P.TB.fbUtil.tryAddFBSubscription()},SHR4P.TB.fbUtil.renderFBWidgetHandlerAttached=!0,function(){var a=
45
- document.createElement("script");a.async=!0;a.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";a.onload=SHR4P.TB.fbUtil.renderFBWidgets;a.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.TB.fbUtil.renderFBWidgets()};document.getElementById("fb-root").appendChild(a)}(),SHR4P.TB.fbUtil.fbConnectAdd=1},tryAddFBSubscription:function(){SHR4P.TB.fbUtil.hasFB()&&FB.XFBML&&FB.XFBML.parse?SHR4P.TB.fbUtil.addFBSubscription():setTimeout(SHR4P.TB.fbUtil.tryAddFBSubscription,
46
  500)},addFBSubscription:function(){FB.Event.subscribe("edge.create",function(a){SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+"&apitype=3&service=303&link="+encodeURIComponent(a),width:"1",height:"1"}).appendTo("body")});FB.Event.subscribe("message.send",function(a){SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+"&apitype=3&service=305&link="+encodeURIComponent(a),width:"1",height:"1"}).appendTo("body")})},
47
- addFBNameSpace:function(){var a=SHR4P.TB.jQuery(SHR4P.TB.jQuery("html").get(0));if(typeof a.attr("xmlns:fb")=="undefined"&&(!SHR4P.TB.jQuery.browser.msie||SHR4P.TB.jQuery.browser.version>="9.0"))a.attr("xmlns:fb","http://www.facebook.com/2008/fbml"),a.attr("xmlns:og","http://opengraphprotocol.org/schema/")},hasFBNameSpace:function(){return typeof SHR4P.TB.jQuery(SHR4P.TB.jQuery("html").get(0)).attr("xmlns:fb")!="undefined"}};SHR4P.TB.load();
1
  /*
2
  Copyright (c) Shareaholic Inc (www.shareaholic.com). All rights reserved.
3
  */
4
+ "undefined"==typeof SHR4P&&(SHR4P={});"undefined"==typeof SHR4P.TB&&(SHR4P.TB={});SHR4P.TB.base_url="undefined"!==typeof SHR4P.debug_enabled?"//www.spreadaholic.com/":"//www.shareaholic.com/";SHR4P.TB.shr_link=SHR4P.TB.base_url+"api/share/";SHR4P.TB.shr_css=SHR4P.TB.base_url+"media/css/shareaholic-share-button.css";SHR4P.TB.shr_twitter_image=SHR4P.TB.base_url+"media/images/styles/tb/twitter.png";SHR4P.TB.shr_image_arrow_up=SHR4P.TB.base_url+"media/images/styles/tb/arrow_up.png";
5
  SHR4P.TB.shr_image_arrow_down=SHR4P.TB.base_url+"media/images/styles/tb/arrow_down.png";SHR4P.TB.shr_apiKey="e3c665c2eb6785741cea4515633f1d86b";SHR4P.TB.shr_twitter_template="${title} - ${short_link} via @Shareaholic";
6
+ "undefined"!=typeof SHRSB_Globals&&"undefined"!=typeof SHRSB_Globals.src&&(SHR4P.TB.shr_css=SHRSB_Globals.src+"/shareaholic-share-button.css",SHR4P.TB.shr_image=SHRSB_Globals.src+"/shareaholic-publishers-mini.png",SHR4P.TB.shr_image_arrow_up=SHRSB_Globals.src+"/arrow_up.png",SHR4P.TB.shr_image_arrow_down=SHRSB_Globals.src+"/arrow_down.png");"undefined"!=typeof SHRTB_Settings&&"undefined"!=typeof SHRTB_Settings.apikey&&(SHR4P.TB.shr_apiKey=SHRTB_Settings.apikey);
7
+ "undefined"!=typeof SHRTB_Settings&&"undefined"!=typeof SHRTB_Settings.shr_twitter_template&&(SHR4P.TB.shr_twitter_template=SHRTB_Settings.shr_twitter_template);"undefined"!=typeof SHRSB_Globals&&"undefined"!=typeof SHRSB_Globals.twitter_template&&(SHR4P.TB.shr_twitter_template=SHRSB_Globals.twitter_template);SHR4P.debug=function(a){SHR4P.debug_enabled&&(typeof console!="undefined"&&console?console.log(a):alert(a))};SHR4P.TB.ready=!1;SHR4P.TB.init=!1;
8
+ var SHR4P_init=function(){SHR4P.debug("SHR4P_init called");if(SHR4P.TB.init)SHR4P.debug("SHR4P_init returning because already loaded");else{SHR4P.TB.init=true;SHR4P.TB.jQuery=typeof sb_dont_noConflict!="undefined"&&sb_dont_noConflict?jQuery:jQuery.noConflict(true);var a=SHR4P.TB.jQuery;SHR4P.TB.renderShareButtons=function(){SHR4P.debug("SHR4P.TB.renderShareButtons called");if(typeof SHRTB_Settings=="undefined"||!SHRTB_Settings)window.SHRTB_Settings={};a(".shr-toolbox").each(function(){var b=a(this),
9
+ c=b.attr("data-shr_form_factor")||b.attr("shr_form_factor");b.addClass(c+"-head");b.attr("data-shr_link")||b.attr("shr_link");b.attr("data-shr_title")||b.attr("shr_title");b.attr("data-shr_short_link")||b.attr("shr_short_link");b.children("#shareaholic-services").wrapInner("<ul></ul>");SHR4P.debug("SHR4P.TB.layoutFormFactor called");if(!(typeof c=="undefined"||!c||typeof b=="undefined"||!b)&&c=="shareaholic-top-bar"&&!e){var e=true,c=SHRTB_Settings.topBarBgColor,d=SHRTB_Settings.topBarBorderColor,
10
+ e=false,f=a("document").height()/4||120,g=false;a("<style type='text/css'>#shareToolBar,#showHideToolBar,#shareToolBarAddv,#shareToolBarHeader{background-color: "+(c||"#343434")+" !important;} .shareToolBarShowButton{ background-image: url("+SHR4P.TB.shr_image_arrow_down+") !important;}.shareToolBarHideButton{background-image: url("+SHR4P.TB.shr_image_arrow_up+") !important;}#shareaholic-bar{border-bottom-color:"+(d||"#343434")+"} </style>").appendTo("head");var e=a("<div id='shareToolBarHeader'></div>"),
11
+ h=a("<div id='shareToolBarContainer'></div>"),c=a("<div id='shareToolBarFooter'></div>"),d=a("<div id='shareaholic-bar' class='shareToolBarShadow' style='display:none'></div>"),j=a("<div id='shareToolBar'></div>");b.wrap(j);j=b.parents("#shareToolBar");j.wrap(h);h=j.parents("#shareToolBarContainer");h.wrap(d);d=h.parents("#shareaholic-bar");e.prependTo(d);c.appendTo(d);b=b.parents("#shareaholic-bar");SHR4P.debug(b);a('<div id="showHideToolBar" title="Click to hide"><div class="shareToolBarButton shareToolBarHideButton"></div></div>').appendTo(h);
12
+ a('<div id="shareToolBarAddv"></div>').appendTo(h);var k=a("#shareaholic-bar"),i=a("#showHideToolBar");i.click(function(){g=!g;a("#showHideToolBar > div").toggleClass("shareToolBarShowButton shareToolBarHideButton");if(g){i.hide();a("#shareaholic-bar").css("border-bottom-width","0px").removeClass("shareToolBarShadow")}else i.css("margin-left","-100%");a("#shareToolBar, #shareToolBarAddv").slideToggle("slow",function(){if(!g){a("#shareaholic-bar").css("border-bottom-width","1px").addClass("shareToolBarShadow");
13
+ a("#shareToolBarHeader").animate({height:"+=5"},{duration:100}).animate({height:"-=5"},{duration:100});i.attr("title","Click to hide")}var b=a("#showHideToolBar").css("margin-left");if(g&&b!="0px"){i.css("margin-left","0");i.fadeIn("slow");i.attr("title","Click to display")}})});a(window).scroll(function(){var b=a(window).scrollTop(),c=k.css("display")=="none";SHR4P.debug("ScrollTop "+b+" ScrollOffset: "+f);if(b>f)c&&a("#shareaholic-bar,#shareToolBar, #shareToolBarAddv").slideDown("slow",function(){a("#shareToolBarHeader").animate({height:"+=5"},
14
+ {duration:100}).animate({height:"-=5"},{duration:100});a("#shareaholic-bar").css("border-bottom-width","1px").addClass("shareToolBarShadow");i.fadeIn("slow");i.attr("title","Click to hide")});else if(!g){i.hide();a("#shareaholic-bar").css("border-bottom-width","0px").removeClass("shareToolBarShadow");a("#shareaholic-bar,#shareToolBar, #shareToolBarAddv, #showHideToolBar").slideUp("slow")}})}})};SHR4P.TB.ready=true;if(typeof SHR4P.TB.onready!="undefined")SHR4P.TB.onready()}};
15
+ SHR4P.TB.load=function(){setTimeout("SHR4P.dough()",0);var a=document.createElement("link");a.rel="stylesheet";a.type="text/css";a.href=SHR4P.TB.shr_css;document.getElementsByTagName("head")[0].appendChild(a);if(typeof jQuery!="undefined"&&jQuery){a=jQuery().jquery;if(SHRSB_Globals.minJQueryVersion<=a){window.sb_dont_noConflict=true;SHR4P_init();return}}SHR4P.debug("loading jquery");a=document.getElementsByTagName("head")[0];if(typeof a!="undefined"){var b=document.createElement("script");b.src=SHR4P.debug_enabled?
16
+ "//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.js":"//ajax.googleapis.com/ajax/libs/jquery/1.6.3/jquery.min.js";b.type="text/javascript";a.appendChild(b);b.onreadystatechange=function(){if(this.readyState=="complete"||this.readyState=="loaded"){SHR4P.debug("jQuery loaded with onreadystatechange, init'ing");SHR4P_init()}};b.onload=SHR4P_init}};SHR4P.TB.onready=function(){/(loaded|complete)/.test(document.readyState)?SHR4P.TB.readyHandler():SHR4P.TB.jQuery(document).ready(function(){SHR4P.TB.readyHandler()})};
17
  SHR4P.TB.readyHandler=function(){SHR4P.TB.renderLikeButtons();SHR4P.TB.renderShareButtons()};
18
+ SHR4P.TB.utils={showServiceLet:function(a,b){if(typeof b!="undefined"&&b){if(typeof SHR_config=="undefined"||!SHR_config)window.SHR_config={};window.__shr_service=b;window.__shr_log="true";window.__shr_center=true;SHR_config.shortener=a.shortener?a.shortener:"google";SHR_config.shortener_key=a.shortener_key?a.shortener_key:"";SHR_config.apikey=a.apikey?a.apikey:SHR4P.TB.shr_apiKey;SHR_config.twitter_template=a.twitter_template?a.twitter_template:"${title} - ${short_link}";SHR_config.link=a.link?a.link:
19
  document.location.href;SHR_config.title=a.title?a.title:a.link?"":document.title;SHR_config.short_link=a.short_link?a.short_link:"";if(window.SHR&&window.SHR.Servicelet)SHR.Servicelet.show();else{var c=document,e=c.createElement("script");e.setAttribute("language","javascript");e.id="shr-servicelet";e.setAttribute("src",(a.share_src?a.share_src:"http://www.shareaholic.com")+"/media/js/servicelet.min.js");c.body.appendChild(e)}}},isMobileBrowser:function(){var a=navigator.userAgent||navigator.vendor||
20
  window.opera;return/android|avantgo|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,
21
+ 4))},getFbShrCnt:function(a,b){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){a="http://api.ak.facebook.com/restserver.php?v=1.0&method=links.getStats&format=json&urls="+encodeURIComponent(a);SHR4P.TB.jQuery.getJSON(a+"&callback=?",function(a){var e=0;if(a.length>0){e=a[0].total_count;e!=0&&e>1E3&&(e=Math.floor(e/1E3)+"K")}b({count:e})})}},getTwitShrCnt:function(a,b){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){a="https://cdn.api.twitter.com/1/urls/count.json?url="+
22
+ encodeURIComponent(a);SHR4P.TB.jQuery.getJSON(a+"&callback=?",function(a){a=a.count;a!=0&&a>1E3&&(a=Math.floor(a/1E3)+"K");b({count:a})})}}};
23
  SHR4P.TB.renderLikeButtons=function(){SHR4P.TB.jQuery(".shareaholic-fblike,.shareaholic-fbsend",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.TB.fbUtil.addFBConnect()",0);SHR4P.TB.jQuery(".shareaholic-googleplusone",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.TB.googPlusOneUtil.addGoogScript()",0);SHR4P.TB.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").length>0&&setTimeout("SHR4P.TB.twitterUtil.addTwitterScript()",0)};
24
+ SHR4P.TB.googPlusOneUtil={addGoogScript:function(){if(SHR4P.TB.jQuery("#googplusonescript").length==0){var a=document.createElement("script");a.async=true;a.src="https://apis.google.com/js/plusone.js";a.id="googplusonescript";a.text='{"parsetags": "explicit"}';document.getElementsByTagName("head")[0].appendChild(a);a.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.TB.googPlusOneUtil.renderPlusOnes()};a.onload=SHR4P.TB.googPlusOneUtil.renderPlusOnes}},
25
+ renderPlusOnes:function(){SHR4P.TB.jQuery(".shareaholic-googleplusone",".shareaholic-like-buttonset").each(function(){var a=SHR4P.TB.jQuery(this);if((a.attr("data-shr_status")||false)!="1"){var b=a.attr("data-shr_href")||a.attr("shr_href"),c=a.attr("data-shr_title")||a.attr("shr_title"),e=a.attr("data-shr_size")||a.attr("shr_size"),d=a.attr("data-shr_count")||a.attr("shr_count"),f=a.attr("data-shr_annotation"),g=a.attr("data-shr_width"),h=a.attr("data-shr_expandto"),j=a.attr("data-shr_onstartinteraction"),
26
+ k=a.attr("data-shr_onendinteraction");if(typeof d=="undefined"||!d)d="true";if((typeof b=="undefined"||!b)&&(typeof c=="undefined"||!c)){b=encodeURIComponent(document.location.href);c=document.title}else{if(typeof b=="undefined"||!b)b=encodeURIComponent(document.location.href);if(typeof c=="undefined"||!c)c=""}if(typeof e=="undefined"||!e)e="standard";if(typeof f=="undefined"||!f){f="bubble";f=typeof d!=="undefined"&&d&&d!=="false"?"bubble":"none"}if(typeof g=="undefined"||!g)g="450px";if(typeof h==
27
+ "undefined"||!h)h="";if(typeof j=="undefined"||!j)j="";if(typeof k=="undefined"||!k)k="";d="";e=="medium"&&(d="padding-top:1px !important;");a.attr("data-shr_status","1");d=SHR4P.TB.jQuery("<div style='float:left; "+d+" margin:0px 0px 0px 10px !important;'/>").get(0);a.replaceWith(d);SHR4P.TB.jQuery(d).append("<div/>");d=SHR4P.TB.jQuery(d).find(":first-child").get(0);gapi.plusone.render(d,{size:e,annotation:f,width:g,expandto:h,onstartinteraction:j,onendinteraction:k,href:decodeURIComponent(b),callback:function(a){SHR4P.TB.googPlusOneUtil.trackPlusOneClick(a,
28
+ c)}})}})},trackPlusOneClick:function(a,b){a.state=="on"&&SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+"&apitype=3&service=304&link="+encodeURIComponent(a.href)+(b!==""?"&title="+b:""),width:"1",height:"1"}).appendTo("body")}};
29
+ SHR4P.TB.twitterUtil={addTwitterScript:function(){SHR4P.TB.twitterUtil.renderShareaholicTweetButton()},renderShareaholicTweetButton:function(){SHR4P.TB.jQuery(".shareaholic-tweetbutton",".shareaholic-like-buttonset").each(function(){var a=SHR4P.TB.jQuery,b=a(this);if((b.attr("data-shr_status")||false)!="1"){var c=b.attr("data-shr_href")||b.attr("shr_href"),e=b.attr("data-shr_title")||b.attr("shr_title"),d=b.attr("data-shr_size")||b.attr("shr_size"),f=b.attr("data-shr_count")||b.attr("shr_count"),
30
+ g=b.attr("data-shr_lang"),h="shr-7",j="shr-generic",k=true,i=true;SHR4P.debug(b);if(typeof f=="undefined"||!f)f="none";if((typeof c=="undefined"||!c)&&(typeof e=="undefined"||!e)){c=encodeURIComponent(document.location.href);e=document.title}else{if(typeof c=="undefined"||!c)c=encodeURIComponent(document.location.href);if(typeof e=="undefined"||!e)e=""}if(typeof d=="undefined"||!d)d="standard";var m="";d=="medium"&&(m="padding-top:1px !important;");if(typeof g=="undefined"||!g)g="en";switch(f){case "horizontal":i=
31
+ k=true;break;case "vertical":k=true;i=false;break;case "none":i=k=false}if(k){h=h+"-count";j=j+"-count"}if(k&&i){h=h+"-compact";j=j+"-compact"}if(k&&typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var l=this;if(i){this.style.marginRight="0px";d=document.createElement("div");l=document.createElement("div");f=this.parentNode;f.appendChild(l);l.className="shr_compact_div";d.className="shr_compact_tick";d.appendChild(document.createElement("s"));d.appendChild(document.createElement("i"));
32
+ f.insertBefore(d,l)}d=function(a){l.innerHTML=a.count};k&&SHR4P.TB.utils.getTwitShrCnt(decodeURIComponent(c),d)}var n={title:e,link:c,short_link:c,shortener:SHRSB_Globals.shortener?SHRSB_Globals.shortener:"google",shortener_key:SHRSB_Globals.shortener_key?SHRSB_Globals.shortener_key:"",v:1,apitype:1,apikey:SHR4P.TB.shr_apiKey,twitter_template:SHR4P.TB.shr_twitter_template?SHR4P.TB.shr_twitter_template:"${title} - ${short_link}",service:7};[SHR4P.TB.shr_link,a.param(n)].join("?");a(this).before(a('<style type="text/css"> div.shareaholic a{background-image:url('+
33
+ (SHR4P.TB.shr_image||SHR4P.TB.shr_twitter_image)+") !important;}.shr-generic-count{height:53px;width:57px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -80px;color:black;cursor:pointer;text-decoration:none;display:block;}.shr-generic-count-compact,.shr-generic{height:23px;width:63px;font-weight:bold;font-size:14px;padding-top:7px;text-align:center;background:transparent no-repeat scroll;background-position:0px -50px;color:black;cursor:pointer;text-decoration:none;display:block;} "+
34
  (SHR4P.TB.shr_image?".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:-228px -79px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:-228px -100px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:-228px -121px;}":".shr-7-count{background-position:-57px -80px;}.shr-7-count-compact,.shr-7{height:14px;width:55px;background-position:0px 0px;}.shr-7-count-compact:hover,.shr-7:hover{height:14px;width:55px;background-position:0px -21px;}.shr-7-count-compact:active,.shr-7:active{height:14px;width:55px;background-position:0px -41px;}")+
35
+ "</style>"));b.wrap('<div class="shr-7 shareaholic" style="float:left; '+m+' margin:0px 0px 0px 10px !important;"></div>');b.parent().removeClass("shr-7");b.addClass(j);b.addClass(h);SHR4P.debug(b);SHR4P.TB.utils.isMobileBrowser()||b.click(function(a){SHR4P.TB.utils.showServiceLet(n,"twitter");a.preventDefault()});b.attr("data-shr_status","1")}})},trackTweetButtonClick:function(a){a.type="tweet";SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+
36
  "&apitype=3&service=7&link="+encodeURIComponent(a.target.baseURI)+(a.target.title!==""?"&title="+a.target.title:""),width:"1",height:"1"}).appendTo("body")}};
37
+ SHR4P.dough=SHR4P.dough||function(a,b){return function(){if(typeof SHRSB_Globals!="undefined"&&SHRSB_Globals.perfoption=="1"){var c;if(!(c=a.SHR_Load_Dough)){c=b.createElement("script");c.type="text/javascript";c.async=true;c.src=("https:"==document.location.protocol?"https://":"http://")+"dtym7iokkjlif.cloudfront.net/dough/1.0/recipe.js";var e=b.getElementsByTagName("script")[0];e.parentNode.insertBefore(c,e);c=true}a.SHR_Load_Dough=c}}}(window,document);
38
  SHR4P.TB.fbUtil={fbConnectAdd:0,renderFBWidgetCalled:!1,likeButtonsToRender:[],hasFB:function(){return typeof window.FB=="object"&&FB.Event&&typeof FB.Event.subscribe=="function"},addLikeButton:function(a,b){if(SHR4P.TB.fbUtil.hasFBNameSpace()){var c=SHR4P.TB.jQuery('<fb:like href="'+b+'"layout="button_count" show_faces="true" width="60" font=""></fb:like>').appendTo(a);typeof window.FB!="undefined"&&FB.XFBML&&FB.XFBML.parse?FB.XFBML.parse(c.get(0)):SHR4P.TB.fbUtil.likeButtonsToRender.push(c.get(0))}else SHR4P.TB.jQuery('<iframe src="http://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+
39
  b+'&amp;send=false&amp;layout=button_count&amp;width=90&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:90px; height:21px;" allowTransparency="true"></iframe>').appendTo(a)},renderFBWidgets:function(){if(!SHR4P.TB.fbUtil.renderFBWidgetCalled){setTimeout("SHR4P.TB.fbUtil.renderFBLikeButtons()",0);setTimeout("SHR4P.TB.fbUtil.renderFBSendButtons()",0);for(var a=0;a<SHR4P.TB.fbUtil.likeButtonsToRender.length;++a)typeof window.FB!=
40
+ "undefined"&&(FB.XFBML&&FB.XFBML.parse)&&FB.XFBML.parse(SHR4P.TB.fbUtil.likeButtonsToRender[a]);SHR4P.TB.fbUtil.renderFBWidgetCalled=true}},renderFBSendButtons:function(){SHR4P.TB.jQuery(".shareaholic-fbsend",".shareaholic-like-buttonset").each(function(){if(SHR4P.TB.fbUtil.hasFBNameSpace()){var a=SHR4P.TB.jQuery(this),b=a.attr("data-shr_href");if(typeof b=="undefined"||!b)b=encodeURIComponent(document.location.href);var c=SHR4P.TB.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);
41
+ a.replaceWith(c);a=SHR4P.TB.jQuery('<fb:send href="'+b+'" width="60" font=""></fb:send>').appendTo(c);typeof window.FB!="undefined"&&(FB.XFBML&&FB.XFBML.parse)&&FB.XFBML.parse(a.get(0))}})},renderFBLikeButtons:function(){SHR4P.TB.jQuery(".shareaholic-fblike",".shareaholic-like-buttonset").each(function(){var a=SHR4P.TB.jQuery(this),b=a.attr("data-shr_href");if(typeof b=="undefined"||!b)b=encodeURIComponent(document.location.href);var c=a.attr("data-shr_layout");if(typeof c=="undefined"||!c)c="button_count";
42
+ var e=a.attr("data-shr_showfaces");if(typeof e=="undefined"||!e)e="true";var d=a.attr("data-shr_send");if(typeof d=="undefined"||!d)d="false";var f=a.attr("data-shr_action");if(typeof f=="undefined"||!f||f.toLowerCase()!="recommend"&&f.toLowerCase()!="like")f="like";var g=SHR4P.TB.jQuery("<div style='float:left;padding-top:0px !important; margin:0px 5px !important;'/>").get(0);a.replaceWith(g);if(SHR4P.TB.fbUtil.hasFBNameSpace()){b=SHR4P.TB.jQuery('<fb:like action="'+f+'" send = "'+d+'" href="'+b+
43
+ '"layout="'+c+'" show_faces="'+e+'" width="60" font=""></fb:like>').appendTo(g);typeof window.FB!="undefined"&&(FB.XFBML&&FB.XFBML.parse)&&FB.XFBML.parse(b.get(0))}else{a="30";d="60";switch(c){case "button_count":d="90";a="21";break;case "box_count":d="60";a="90";break;default:d="60";a="80"}SHR4P.TB.jQuery('<iframe src="http://www.facebook.com/plugins/like.php?app_id=207766518608&amp;href='+b+"&amp;send=false&amp;layout="+c+"&amp;width="+d+"&amp;show_faces="+e+"&amp;action="+f+"&amp;colorscheme=light&amp;font&amp;height="+
44
+ a+'" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:'+d+"px; height:"+a+'px;" allowTransparency="true"></iframe>').appendTo(g)}})},addFBConnect:function(){SHR4P.TB.fbUtil.addFBNameSpace();if(!SHR4P.TB.fbUtil.fbConnectAdd){SHR4P.TB.jQuery('<div id="fb-root"></div>').appendTo("body");window.fbAsyncInit=function(){FB.init({appId:"207766518608",status:true,cookie:true,xfbml:true});SHR4P.TB.fbUtil.tryAddFBSubscription()};SHR4P.TB.fbUtil.renderFBWidgetHandlerAttached=true;var a=
45
+ document.createElement("script");a.async=true;a.src=document.location.protocol+"//connect.facebook.net/en_US/all.js";a.onload=SHR4P.TB.fbUtil.renderFBWidgets;a.onreadystatechange=function(){(this.readyState=="complete"||this.readyState=="loaded")&&SHR4P.TB.fbUtil.renderFBWidgets()};document.getElementById("fb-root").appendChild(a);SHR4P.TB.fbUtil.fbConnectAdd=1}},tryAddFBSubscription:function(){SHR4P.TB.fbUtil.hasFB()&&FB.XFBML&&FB.XFBML.parse?SHR4P.TB.fbUtil.addFBSubscription():setTimeout(SHR4P.TB.fbUtil.tryAddFBSubscription,
46
  500)},addFBSubscription:function(){FB.Event.subscribe("edge.create",function(a){SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+"&apitype=3&service=303&link="+encodeURIComponent(a),width:"1",height:"1"}).appendTo("body")});FB.Event.subscribe("message.send",function(a){SHR4P.TB.jQuery("<img/>").attr({src:"http://www.shareaholic.com/api/share/?v=1&apikey="+SHR4P.TB.shr_apiKey+"&apitype=3&service=305&link="+encodeURIComponent(a),width:"1",height:"1"}).appendTo("body")})},
47
+ addFBNameSpace:function(){var a=SHR4P.TB.jQuery(SHR4P.TB.jQuery("html").get(0));if(typeof a.attr("xmlns:fb")=="undefined"&&(!SHR4P.TB.jQuery.browser.msie||SHR4P.TB.jQuery.browser.version>="9.0")){a.attr("xmlns:fb","http://www.facebook.com/2008/fbml");a.attr("xmlns:og","http://opengraphprotocol.org/schema/")}},hasFBNameSpace:function(){return typeof SHR4P.TB.jQuery(SHR4P.TB.jQuery("html").get(0)).attr("xmlns:fb")!="undefined"}};SHR4P.TB.load();
spritegen_default/shareaholic-share-button.css CHANGED
@@ -28,8 +28,8 @@ z-index:100000 !important;height:35px;}
28
  #shareaholic-bar .shr-toolbox li:hover{}
29
  .shr-toolbox ul{list-style-type :none !important;padding:0;margin:0;}
30
  .shareToolBarButton{margin:8px 5px 9px 5px;font-size:0px;line-height:0%;height:18px !important;width:16px !important;border:0px;}
31
- .shareToolBarHideButton{/* background-image:url(http://www.shareaholic.com/media/images/styles/tb/arrow_up.png);*/}
32
- .shareToolBarShowButton{/* background-image:url(http://www.shareaholic.com/media/images/styles/tb/arrow_down.png);*/}
33
  #shareaholic-bar .shr-text{cursor:pointer;margin:6px 0 0 9px;padding:0;float:left !important;width:65px;}
34
  #shareaholic-bar .shr-5 .shr-icon{background-position:0px 0px;}
35
  #shareaholic-bar .shr-5:hover .shr-icon{background-position:0px -24px;}
28
  #shareaholic-bar .shr-toolbox li:hover{}
29
  .shr-toolbox ul{list-style-type :none !important;padding:0;margin:0;}
30
  .shareToolBarButton{margin:8px 5px 9px 5px;font-size:0px;line-height:0%;height:18px !important;width:16px !important;border:0px;}
31
+ .shareToolBarHideButton{/* background-image:url(https://shareaholic.com/media/images/styles/tb/arrow_up.png);*/}
32
+ .shareToolBarShowButton{/* background-image:url(https://shareaholic.com/media/images/styles/tb/arrow_down.png);*/}
33
  #shareaholic-bar .shr-text{cursor:pointer;margin:6px 0 0 9px;padding:0;float:left !important;width:65px;}
34
  #shareaholic-bar .shr-5 .shr-icon{background-position:0px 0px;}
35
  #shareaholic-bar .shr-5:hover .shr-icon{background-position:0px -24px;}
spritegen_default/sprite.css CHANGED
@@ -1 +1 @@
1
- div.shr-bookmarks{margin:20px 0 8px;clear:both !important;display:block !important}div.shr-bookmarks ul.shr-socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important}div.shr-bookmarks ul.shr-socials{background:transparent none !important;border:0 none !important;outline:0 none !important}div.shr-bookmarks ul.shr-socials li{display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}div.shr-bookmarks ul.shr-socials li:before,div.shr-bookmarks ul.shr-socials li:after,div.shr-bookmarks ul.shr-socials li a:before,div.shr-bookmarks ul.shr-socials li a:after{content:'' !important;}div.shr-bookmarks ul.shr-socials a,div.shr-bookmarks ul.shr-socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important}div.shr-bookmarks ul.shr-socials a:hover,div.shr-bookmarks ul.shr-socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}.shareaholic-show-on-load{display: block !important;}div.shr-bookmarks div.shr-getshr{line-height:20px !important;padding-left:8px !important;float:left !important;}div.shr-bookmarks div.shr-getshr a{width:auto !important;font-size:10px !important; text-indent:0px !important;text-decoration:none !important;}div.shr-count{font:12px bold,arial !important;position: relative !important;}div.shr-count-outline{position: absolute !important;color: white !important;}div.shr-count-center{position: absolute !important;color: blue !important;}li.shr-1{background-position:-60px bottom !important}li.shr-1:hover{background-position:-60px top !important}li.shr-2{background-position:-120px bottom !important}li.shr-2:hover{background-position:-120px top !important}li.shr-3{background-position:-180px bottom !important}li.shr-3:hover{background-position:-180px top !important}li.shr-5{background-position:-300px bottom !important}li.shr-5:hover{background-position:-300px top !important}li.shr-6{background-position:-360px bottom !important}li.shr-6:hover{background-position:-360px top !important}li.shr-7{background-position:-420px bottom !important}li.shr-7:hover{background-position:-420px top !important}li.shr-10{background-position:-600px bottom !important}li.shr-10:hover{background-position:-600px top !important}li.shr-14{background-position:-840px bottom !important}li.shr-14:hover{background-position:-840px top !important}li.shr-20{background-position:-1200px bottom !important}li.shr-20:hover{background-position:-1200px top !important}li.shr-21{background-position:-1260px bottom !important}li.shr-21:hover{background-position:-1260px top !important}li.shr-24{background-position:-1440px bottom !important}li.shr-24:hover{background-position:-1440px top !important}li.shr-27{background-position:-1620px bottom !important}li.shr-27:hover{background-position:-1620px top !important}li.shr-33{background-position:-1980px bottom !important}li.shr-33:hover{background-position:-1980px top !important}li.shr-38{background-position:-2280px bottom !important}li.shr-38:hover{background-position:-2280px top !important}li.shr-39{background-position:-2340px bottom !important}li.shr-39:hover{background-position:-2340px top !important}li.shr-40{background-position:-2400px bottom !important}li.shr-40:hover{background-position:-2400px top !important}li.shr-41{background-position:-2460px bottom !important}li.shr-41:hover{background-position:-2460px top !important}li.shr-43{background-position:-2580px bottom !important}li.shr-43:hover{background-position:-2580px top !important}li.shr-44{background-position:-2640px bottom !important}li.shr-44:hover{background-position:-2640px top !important}li.shr-45{background-position:-2700px bottom !important}li.shr-45:hover{background-position:-2700px top !important}li.shr-46{background-position:-2760px bottom !important}li.shr-46:hover{background-position:-2760px top !important}li.shr-48{background-position:-2880px bottom !important}li.shr-48:hover{background-position:-2880px top !important}li.shr-52{background-position:-3120px bottom !important}li.shr-52:hover{background-position:-3120px top !important}li.shr-53{background-position:-3180px bottom !important}li.shr-53:hover{background-position:-3180px top !important}li.shr-54{background-position:-3240px bottom !important}li.shr-54:hover{background-position:-3240px top !important}li.shr-59{background-position:-3540px bottom !important}li.shr-59:hover{background-position:-3540px top !important}li.shr-61{background-position:-3660px bottom !important}li.shr-61:hover{background-position:-3660px top !important}li.shr-74{background-position:-4440px bottom !important}li.shr-74:hover{background-position:-4440px top !important}li.shr-78{background-position:-4680px bottom !important}li.shr-78:hover{background-position:-4680px top !important}li.shr-80{background-position:-4800px bottom !important}li.shr-80:hover{background-position:-4800px top !important}li.shr-88{background-position:-5280px bottom !important}li.shr-88:hover{background-position:-5280px top !important}li.shr-89{background-position:-5340px bottom !important}li.shr-89:hover{background-position:-5340px top !important}li.shr-92{background-position:-5520px bottom !important}li.shr-92:hover{background-position:-5520px top !important}li.shr-98{background-position:-5880px bottom !important}li.shr-98:hover{background-position:-5880px top !important}li.shr-100{background-position:-6000px bottom !important}li.shr-100:hover{background-position:-6000px top !important}li.shr-102{background-position:-6120px bottom !important}li.shr-102:hover{background-position:-6120px top !important}li.shr-105{background-position:-6300px bottom !important}li.shr-105:hover{background-position:-6300px top !important}li.shr-106{background-position:-6360px bottom !important}li.shr-106:hover{background-position:-6360px top !important}li.shr-188{background-position:-11280px bottom !important}li.shr-188:hover{background-position:-11280px top !important}li.shr-190{background-position:-11400px bottom !important}li.shr-190:hover{background-position:-11400px top !important}li.shr-191{background-position:-11460px bottom !important}li.shr-191:hover{background-position:-11460px top !important}li.shr-192{background-position:-11520px bottom !important}li.shr-192:hover{background-position:-11520px top !important}li.shr-195{background-position:-11700px bottom !important}li.shr-195:hover{background-position:-11700px top !important}li.shr-196{background-position:-11760px bottom !important}li.shr-196:hover{background-position:-11760px top !important}li.shr-201{background-position:-12060px bottom !important}li.shr-201:hover{background-position:-12060px top !important}li.shr-202{background-position:-12120px bottom !important}li.shr-202:hover{background-position:-12120px top !important}li.shr-204{background-position:-12240px bottom !important}li.shr-204:hover{background-position:-12240px top !important}li.shr-205{background-position:-12300px bottom !important}li.shr-205:hover{background-position:-12300px top !important}li.shr-210{background-position:-12600px bottom !important}li.shr-210:hover{background-position:-12600px top !important}li.shr-218{background-position:-13080px bottom !important}li.shr-218:hover{background-position:-13080px top !important}li.shr-219{background-position:-13140px bottom !important}li.shr-219:hover{background-position:-13140px top !important}li.shr-236{background-position:-14160px bottom !important}li.shr-236:hover{background-position:-14160px top !important}li.shr-238{background-position:-14280px bottom !important}li.shr-238:hover{background-position:-14280px top !important}li.shr-240{background-position:-14400px bottom !important}li.shr-240:hover{background-position:-14400px top !important}li.shr-243{background-position:-14580px bottom !important}li.shr-243:hover{background-position:-14580px top !important}li.shr-246{background-position:-14760px bottom !important}li.shr-246:hover{background-position:-14760px top !important}li.shr-247{background-position:-14820px bottom !important}li.shr-247:hover{background-position:-14820px top !important}li.shr-263{background-position:-15780px bottom !important}li.shr-263:hover{background-position:-15780px top !important}li.shr-264{background-position:-15840px bottom !important}li.shr-264:hover{background-position:-15840px top !important}li.shr-265{background-position:-15900px bottom !important}li.shr-265:hover{background-position:-15900px top !important}li.shr-266{background-position:-15960px bottom !important}li.shr-266:hover{background-position:-15960px top !important}li.shr-267{background-position:-16020px bottom !important}li.shr-267:hover{background-position:-16020px top !important}li.shr-268{background-position:-16080px bottom !important}li.shr-268:hover{background-position:-16080px top !important}li.shr-269{background-position:-16140px bottom !important}li.shr-269:hover{background-position:-16140px top !important}li.shr-277{background-position:-16620px bottom !important}li.shr-277:hover{background-position:-16620px top !important}li.shr-278{background-position:-16680px bottom !important}li.shr-278:hover{background-position:-16680px top !important}li.shr-279{background-position:-16740px bottom !important}li.shr-279:hover{background-position:-16740px top !important}li.shr-280{background-position:-16800px bottom !important}li.shr-280:hover{background-position:-16800px top !important}li.shr-281{background-position:-16860px bottom !important}li.shr-281:hover{background-position:-16860px top !important}li.shr-282{background-position:-16920px bottom !important}li.shr-282:hover{background-position:-16920px top !important}li.shr-283{background-position:-16980px bottom !important}li.shr-283:hover{background-position:-16980px top !important}li.shr-284{background-position:-17040px bottom !important}li.shr-284:hover{background-position:-17040px top !important}li.shr-285{background-position:-17100px bottom !important}li.shr-285:hover{background-position:-17100px top !important}li.shr-286{background-position:-17160px bottom !important}li.shr-286:hover{background-position:-17160px top !important}li.shr-287{background-position:-17220px bottom !important}li.shr-287:hover{background-position:-17220px top !important}li.shr-288{background-position:-17280px bottom !important}li.shr-288:hover{background-position:-17280px top !important}li.shr-289{background-position:-17340px bottom !important}li.shr-289:hover{background-position:-17340px top !important}li.shr-290{background-position:-17400px bottom !important}li.shr-290:hover{background-position:-17400px top !important}li.shr-291{background-position:-17460px bottom !important}li.shr-291:hover{background-position:-17460px top !important}li.shr-292{background-position:-17520px bottom !important}li.shr-292:hover{background-position:-17520px top !important}li.shr-293{background-position:-17580px bottom !important}li.shr-293:hover{background-position:-17580px top !important}li.shr-294{background-position:-17640px bottom !important}li.shr-294:hover{background-position:-17640px top !important}li.shr-309{background-position:-18540px bottom !important}li.shr-309:hover{background-position:-18540px top !important}li.shr-313{background-position:-18780px bottom !important}li.shr-313:hover{background-position:-18780px top !important}
1
+ div.shr-bookmarks{margin:20px 0 8px;clear:both !important;display:block !important}div.shr-bookmarks ul.shr-socials{width:100% !important;margin:0 !important;padding:0 !important;float:left !important}div.shr-bookmarks ul.shr-socials{background:transparent none !important;border:0 none !important;outline:0 none !important}div.shr-bookmarks ul.shr-socials li{display:inline !important;float:left !important;list-style-type:none !important;padding:0 !important;height:29px !important;width:60px !important;cursor:pointer !important;margin:3px 0 0 !important;background-color:transparent !important;border:0 none !important;outline:0 none !important;clear:none !important}div.shr-bookmarks ul.shr-socials li:before,div.shr-bookmarks ul.shr-socials li:after,div.shr-bookmarks ul.shr-socials li a:before,div.shr-bookmarks ul.shr-socials li a:after{content:'' !important;}div.shr-bookmarks ul.shr-socials a,div.shr-bookmarks ul.shr-socials a:hover{display:block !important;width:60px !important;height:29px !important;text-indent:-9999px !important;background-color:transparent !important;text-decoration:none !important;border:0 none !important}div.shr-bookmarks ul.shr-socials a:hover,div.shr-bookmarks ul.shr-socials li:hover{background-color:transparent !important;border:0 none !important;outline:0 none !important}.shareaholic-show-on-load{display: block !important;}div.shr-bookmarks div.shr-getshr{line-height:20px !important;padding-left:8px !important;float:left !important;}div.shr-bookmarks div.shr-getshr a{width:auto !important;font-size:10px !important; text-indent:0px !important;text-decoration:none !important;}div.shr-count{font:12px bold,arial !important;position: relative !important;}div.shr-count-outline{position: absolute !important;color: white !important;}div.shr-count-center{position: absolute !important;color: blue !important;}li.shr-1{background-position:-60px bottom !important}li.shr-1:hover{background-position:-60px top !important}li.shr-2{background-position:-120px bottom !important}li.shr-2:hover{background-position:-120px top !important}li.shr-3{background-position:-180px bottom !important}li.shr-3:hover{background-position:-180px top !important}li.shr-5{background-position:-300px bottom !important}li.shr-5:hover{background-position:-300px top !important}li.shr-6{background-position:-360px bottom !important}li.shr-6:hover{background-position:-360px top !important}li.shr-7{background-position:-420px bottom !important}li.shr-7:hover{background-position:-420px top !important}li.shr-14{background-position:-840px bottom !important}li.shr-14:hover{background-position:-840px top !important}li.shr-20{background-position:-1200px bottom !important}li.shr-20:hover{background-position:-1200px top !important}li.shr-21{background-position:-1260px bottom !important}li.shr-21:hover{background-position:-1260px top !important}li.shr-24{background-position:-1440px bottom !important}li.shr-24:hover{background-position:-1440px top !important}li.shr-27{background-position:-1620px bottom !important}li.shr-27:hover{background-position:-1620px top !important}li.shr-33{background-position:-1980px bottom !important}li.shr-33:hover{background-position:-1980px top !important}li.shr-38{background-position:-2280px bottom !important}li.shr-38:hover{background-position:-2280px top !important}li.shr-39{background-position:-2340px bottom !important}li.shr-39:hover{background-position:-2340px top !important}li.shr-40{background-position:-2400px bottom !important}li.shr-40:hover{background-position:-2400px top !important}li.shr-41{background-position:-2460px bottom !important}li.shr-41:hover{background-position:-2460px top !important}li.shr-43{background-position:-2580px bottom !important}li.shr-43:hover{background-position:-2580px top !important}li.shr-44{background-position:-2640px bottom !important}li.shr-44:hover{background-position:-2640px top !important}li.shr-45{background-position:-2700px bottom !important}li.shr-45:hover{background-position:-2700px top !important}li.shr-46{background-position:-2760px bottom !important}li.shr-46:hover{background-position:-2760px top !important}li.shr-48{background-position:-2880px bottom !important}li.shr-48:hover{background-position:-2880px top !important}li.shr-52{background-position:-3120px bottom !important}li.shr-52:hover{background-position:-3120px top !important}li.shr-53{background-position:-3180px bottom !important}li.shr-53:hover{background-position:-3180px top !important}li.shr-54{background-position:-3240px bottom !important}li.shr-54:hover{background-position:-3240px top !important}li.shr-59{background-position:-3540px bottom !important}li.shr-59:hover{background-position:-3540px top !important}li.shr-61{background-position:-3660px bottom !important}li.shr-61:hover{background-position:-3660px top !important}li.shr-74{background-position:-4440px bottom !important}li.shr-74:hover{background-position:-4440px top !important}li.shr-78{background-position:-4680px bottom !important}li.shr-78:hover{background-position:-4680px top !important}li.shr-80{background-position:-4800px bottom !important}li.shr-80:hover{background-position:-4800px top !important}li.shr-88{background-position:-5280px bottom !important}li.shr-88:hover{background-position:-5280px top !important}li.shr-89{background-position:-5340px bottom !important}li.shr-89:hover{background-position:-5340px top !important}li.shr-92{background-position:-5520px bottom !important}li.shr-92:hover{background-position:-5520px top !important}li.shr-98{background-position:-5880px bottom !important}li.shr-98:hover{background-position:-5880px top !important}li.shr-102{background-position:-6120px bottom !important}li.shr-102:hover{background-position:-6120px top !important}li.shr-105{background-position:-6300px bottom !important}li.shr-105:hover{background-position:-6300px top !important}li.shr-106{background-position:-6360px bottom !important}li.shr-106:hover{background-position:-6360px top !important}li.shr-191{background-position:-11460px bottom !important}li.shr-191:hover{background-position:-11460px top !important}li.shr-192{background-position:-11520px bottom !important}li.shr-192:hover{background-position:-11520px top !important}li.shr-196{background-position:-11760px bottom !important}li.shr-196:hover{background-position:-11760px top !important}li.shr-201{background-position:-12060px bottom !important}li.shr-201:hover{background-position:-12060px top !important}li.shr-202{background-position:-12120px bottom !important}li.shr-202:hover{background-position:-12120px top !important}li.shr-204{background-position:-12240px bottom !important}li.shr-204:hover{background-position:-12240px top !important}li.shr-205{background-position:-12300px bottom !important}li.shr-205:hover{background-position:-12300px top !important}li.shr-210{background-position:-12600px bottom !important}li.shr-210:hover{background-position:-12600px top !important}li.shr-218{background-position:-13080px bottom !important}li.shr-218:hover{background-position:-13080px top !important}li.shr-219{background-position:-13140px bottom !important}li.shr-219:hover{background-position:-13140px top !important}li.shr-236{background-position:-14160px bottom !important}li.shr-236:hover{background-position:-14160px top !important}li.shr-238{background-position:-14280px bottom !important}li.shr-238:hover{background-position:-14280px top !important}li.shr-240{background-position:-14400px bottom !important}li.shr-240:hover{background-position:-14400px top !important}li.shr-243{background-position:-14580px bottom !important}li.shr-243:hover{background-position:-14580px top !important}li.shr-246{background-position:-14760px bottom !important}li.shr-246:hover{background-position:-14760px top !important}li.shr-247{background-position:-14820px bottom !important}li.shr-247:hover{background-position:-14820px top !important}li.shr-263{background-position:-15780px bottom !important}li.shr-263:hover{background-position:-15780px top !important}li.shr-265{background-position:-15900px bottom !important}li.shr-265:hover{background-position:-15900px top !important}li.shr-266{background-position:-15960px bottom !important}li.shr-266:hover{background-position:-15960px top !important}li.shr-267{background-position:-16020px bottom !important}li.shr-267:hover{background-position:-16020px top !important}li.shr-268{background-position:-16080px bottom !important}li.shr-268:hover{background-position:-16080px top !important}li.shr-269{background-position:-16140px bottom !important}li.shr-269:hover{background-position:-16140px top !important}li.shr-278{background-position:-16680px bottom !important}li.shr-278:hover{background-position:-16680px top !important}li.shr-279{background-position:-16740px bottom !important}li.shr-279:hover{background-position:-16740px top !important}li.shr-280{background-position:-16800px bottom !important}li.shr-280:hover{background-position:-16800px top !important}li.shr-281{background-position:-16860px bottom !important}li.shr-281:hover{background-position:-16860px top !important}li.shr-282{background-position:-16920px bottom !important}li.shr-282:hover{background-position:-16920px top !important}li.shr-283{background-position:-16980px bottom !important}li.shr-283:hover{background-position:-16980px top !important}li.shr-284{background-position:-17040px bottom !important}li.shr-284:hover{background-position:-17040px top !important}li.shr-285{background-position:-17100px bottom !important}li.shr-285:hover{background-position:-17100px top !important}li.shr-286{background-position:-17160px bottom !important}li.shr-286:hover{background-position:-17160px top !important}li.shr-288{background-position:-17280px bottom !important}li.shr-288:hover{background-position:-17280px top !important}li.shr-289{background-position:-17340px bottom !important}li.shr-289:hover{background-position:-17340px top !important}li.shr-290{background-position:-17400px bottom !important}li.shr-290:hover{background-position:-17400px top !important}li.shr-291{background-position:-17460px bottom !important}li.shr-291:hover{background-position:-17460px top !important}li.shr-292{background-position:-17520px bottom !important}li.shr-292:hover{background-position:-17520px top !important}li.shr-293{background-position:-17580px bottom !important}li.shr-293:hover{background-position:-17580px top !important}li.shr-294{background-position:-17640px bottom !important}li.shr-294:hover{background-position:-17640px top !important}li.shr-304{background-position:-18240px bottom !important}li.shr-304:hover{background-position:-18240px top !important}li.shr-309{background-position:-18540px bottom !important}li.shr-309:hover{background-position:-18540px top !important}li.shr-313{background-position:-18780px bottom !important}li.shr-313:hover{background-position:-18780px top !important}
spritegen_default/sprite.png CHANGED
Binary file