Sei sulla pagina 1di 142

/*

* fingerprintJS 0.4.1 - Fast browser fingerprint library


* https://github.com/Valve/fingerprintjs
* Copyright (c) 2013 Valentin Vasilyev (iamvalentin@gmail.com)
* Licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) li
cense.
*/
/*jslint browser: true, indent: 2 */
(function(scope) {
'use strict';
var Fingerprint = function(options){
var nativeForEach = Array.prototype.forEach;
var nativeMap = Array.prototype.map;
this.each = function(obj, iterator, context) {
if(obj === null) return;
if(nativeForEach && obj.forEach === nativeForEach) {
obj.forEach(iterator, context);
} else if (obj.length === +obj.length) {
for (var i = 0, l = obj.length; i < l; i++) {
if (iterator.call(context, obj[i], i, obj) === {}) return;
}
} else {
for (var key in obj) {
if (obj.hasOwnProperty(key)) {
if (iterator.call(context, obj[key], key, obj) === {}) return;
}
}
}
};
this.map = function(obj, iterator, context) {
var results = [];
// Not using strict equality so that this acts as a
// shortcut to checking for `null` and `undefined`.
if (obj == null) return results;
if (nativeMap && obj.map === nativeMap) return obj.map(iterator, context);
this.each(obj, function(value, index, list) {
results[results.length] = iterator.call(context, value, index, list);
});
return results;
};
if(typeof options == 'object'){
this.hasher = options.hasher;
this.canvas = options.canvas;
} else if(typeof options == 'function'){
this.hasher = options;
}
};
Fingerprint.prototype = {
get: function(){
var keys = [];
keys.push(navigator.userAgent);
keys.push(navigator.language);
keys.push(screen.colorDepth);
keys.push(new Date().getTimezoneOffset());
keys.push(!!scope.sessionStorage);
keys.push(this.hasLocalStorage());
keys.push(!!window.indexedDB);

keys.push(typeof(document.body.addBehavior));
keys.push(typeof(window.openDatabase));
keys.push(navigator.cpuClass);
keys.push(navigator.platform);
keys.push(navigator.doNotTrack);
var pluginsString = this.map(navigator.plugins, function(p){
var mimeTypes = this.map(p, function(mt){
return [mt.type, mt.suffixes].join('~');
}).join(',');
return [p.name, p.description, mimeTypes].join('::');
}, this).join(';');
keys.push(pluginsString);
if(this.canvas && this.isCanvasSupported()){
keys.push(this.getCanvasFingerprint());
}
if(this.hasher){
return this.hasher(keys.join('###'), 31);
} else {
return this.murmurhash3_32_gc(keys.join('###'), 31);
}
},
/**
* JS Implementation of MurmurHash3 (r136) (as of May 20, 2011)
*
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*
* @param {string} key ASCII only
* @param {number} seed Positive integer only
* @return {number} 32-bit positive integer hash
*/
murmurhash3_32_gc: function(key, seed) {
var remainder, bytes, h1, h1b, c1, c2, k1, i;
remainder = key.length & 3; // key.length % 4
bytes = key.length - remainder;
h1 = seed;
c1 = 0xcc9e2d51;
c2 = 0x1b873593;
i = 0;
while (i < bytes) {
k1 =
((key.charCodeAt(i) &
((key.charCodeAt(++i)
((key.charCodeAt(++i)
((key.charCodeAt(++i)
++i;

0xff)) |
& 0xff) << 8) |
& 0xff) << 16) |
& 0xff) << 24);

k1 = ((((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16))) &
0xffffffff;
k1 = (k1 << 15) | (k1 >>> 17);
k1 = ((((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16))) &
0xffffffff;
h1 ^= k1;

h1 = (h1 << 13) | (h1 >>> 19);


h1b = ((((h1 & 0xffff) * 5) + ((((h1 >>> 16) * 5) & 0xffff) << 16))) & 0
xffffffff;
h1 = (((h1b & 0xffff) + 0x6b64) + ((((h1b >>> 16) + 0xe654) & 0xffff) <<
16));
}
k1 = 0;
switch
case
case
case
k1
ffffffff;
k1
k1
ffffffff;
h1
}

(remainder) {
3: k1 ^= (key.charCodeAt(i + 2) & 0xff) << 16;
2: k1 ^= (key.charCodeAt(i + 1) & 0xff) << 8;
1: k1 ^= (key.charCodeAt(i) & 0xff);

= (((k1 & 0xffff) * c1) + ((((k1 >>> 16) * c1) & 0xffff) << 16)) & 0x
= (k1 << 15) | (k1 >>> 17);
= (((k1 & 0xffff) * c2) + ((((k1 >>> 16) * c2) & 0xffff) << 16)) & 0x
^= k1;

h1 ^= key.length;
h1 ^= h1 >>> 16;
h1 = (((h1 & 0xffff) * 0x85ebca6b) + ((((h1 >>> 16) * 0x85ebca6b) & 0xffff
) << 16)) & 0xffffffff;
h1 ^= h1 >>> 13;
h1 = ((((h1 & 0xffff) * 0xc2b2ae35) + ((((h1 >>> 16) * 0xc2b2ae35) & 0xfff
f) << 16))) & 0xffffffff;
h1 ^= h1 >>> 16;
return h1 >>> 0;
},
// https://bugzilla.mozilla.org/show_bug.cgi?id=781447
hasLocalStorage: function(){
try{
return !!scope.localStorage;
} catch(e) {
return true; // SecurityError when referencing it means it exists
}
},
isCanvasSupported: function(){
var elem = document.createElement('canvas');
return !!(elem.getContext && elem.getContext('2d'));
},
getCanvasFingerprint: function(){
var canvas = document.createElement('canvas');
var ctx = canvas.getContext('2d');
// https://www.browserleaks.com/canvas#how-does-it-work
var txt = 'http://valve.github.io';
ctx.textBaseline = "top";
ctx.font = "14px 'Arial'";
ctx.textBaseline = "alphabetic";
ctx.fillStyle = "#f60";
ctx.fillRect(125,1,62,20);
ctx.fillStyle = "#069";

ctx.fillText(txt, 2, 15);
ctx.fillStyle = "rgba(102, 204, 0, 0.7)";
ctx.fillText(txt, 4, 17);
return canvas.toDataURL();
}
};
scope.Fingerprint = Fingerprint;
})(window);
nt_recommendations:"ecr",google_num_radlinks:"num_radlinks",google_num_radlinks_
per_unit:"num_radlinks_per_unit",google_only_ads_with_video:"only_ads_with_video
",google_rl_dest_url:"rl_dest_url",google_rl_filtering:"rl_filtering",google_rl_
mode:"rl_mode",google_rt:"rt",google_source_type:"src_type",google_sui:"sui",goo
gle_skip:"skip",google_tag_for_child_directed_treatment:"tfcd",google_tag_origin
:"to",
google_tdsma:"tdsma",google_tfs:"tfs",google_tl:"tl"},xd={google_lact:"lact",goo
gle_only_pyv_ads:"pyv",google_only_userchoice_ads:"uc",google_scs:"scs",google_w
ith_pyv_ads:"withpyv",google_previous_watch:"p_w",google_previous_searches:"p_s"
,google_video_url_to_fetch:"durl",google_yt_pt:"yt_pt",google_yt_up:"yt_up"};var
yd=!!window.google_async_iframe_id,zd=yd&&window.parent||window,Va=function(){i
f(yd&&!Ja(zd)){for(var a="."+ja.domain;2<a.split(".").length&&!Ja(zd);)ja.domain
=a=a.substr(a.indexOf(".")+1),zd=window.parent;Ja(zd)||(zd=window)}return zd};va
r Ad=!1,Bd=function(a,b,c){""!=b&&(c?a.j.hasOwnProperty(c)&&(a.j[c]=b):a.k.push(
b))},Dd=function(){var a=Cd,b=a.k.concat([]);B(a.j,function(a){""!=a&&b.push(a)}
);return b};Ad=!1;var Ed=function(a,b){for(var c=0,d=a,e=0;a!=a.parent;)if(a=a.p
arent,e++,Ja(a))d=a,c=e;else if(b)break;return{W:d,j:c}},Fd=null;var Id=function
(a){this.S=a;O(this,3,null);O(this,4,0);O(this,5,0);O(this,6,0);O(this,15,0);a=V
a();if("E"==a.google_pstate_gc_expt){a=Ed(a,!1).W;var b=a.google_global_correlat
or;b||(a.google_global_correlator=b=1+Math.floor(Math.random()*Math.pow(2,43)));
a=b}else a=1+Math.floor(Math.random()*Math.pow(2,43));O(this,7,a);O(this,8,{});O
(this,9,{});O(this,10,{});O(this,11,[]);O(this,12,0);O(this,16,null);a=Va();Gd(a
)?(b=a.gaGlobal||{},b=this.S[Hd(14)]=b,a.gaGlobal=b):O(this,14,{})},Jd={google_p
ersistent_state:!0,
google_persistent_state_async:!0},Kd={},Gd=function(a){return"E"==a.google_pstat
e_expt||"EU"==a.google_pstate_expt},Md=function(a){var b=Va();if(Gd(b)){var c;t:
{var d,e;try{var f=b.google_pstate;if(d=Ld(f)){f.C=(f.C||0)+1;c=f;break t}}catch
(g){e=Oa(g)}Yb({context:"ps::eg",msg:e,L:r(d)?d?1:0:2,url:b.location.href},1);c=
b.google_pstate=new Id({})}return c}a=a&&Jd[a]?a:yd?"google_persistent_state_asy
nc":"google_persistent_state";if(Kd[a])return Kd[a];c="google_persistent_state_a
sync"==a?{}:b;d=b[a];
return Ld(d)?Kd[a]=d:b[a]=Kd[a]=new Id(c)},Ld=function(a){return"object"==typeof
a&&"object"==typeof a.S},Hd=function(a){switch(a){case 3:return"google_exp_pers
istent";case 4:return"google_num_sdo_slots";case 5:return"google_num_0ad_slots";
case 6:return"google_num_ad_slots";case 7:return"google_correlator";case 8:retur
n"google_prev_ad_formats_by_region";case 9:return"google_prev_ad_slotnames_by_re
gion";case 10:return"google_num_slots_by_channel";case 11:return"google_viewed_h
ost_channels";case 12:return"google_num_slot_to_show";
case 14:return"gaGlobal";case 15:return"google_num_reactive_ad_slots";case 16:re
turn"google_persistent_language"}throw Error("unexpected state");},Nd=function(a
){var b=Hd(14);return a.S[b]},O=function(a,b,c){a=a.S;b=Hd(b);void 0===a[b]&&(a[
b]=c)};var Od=function(a,b,c,d,e){var f="";a&&(f+=a+":");c&&(f+="//",b&&(f+=b+"@
"),f+=c,d&&(f+=":"+d));e&&(f+=e);return f},Pd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?
#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/,
Sd=function(a){if(Qd){Qd=!1;var b=q.location;if(b){var c=b.href;if(c&&(c=Rd(c))&
&c!=b.hostname)throw Qd=!0,Error();}}return a.match(Pd)},Qd=I,Rd=function(a){ret
urn(a=Sd(a)[3]||null)?decodeURI(a):a};function Td(a,b,c,d){c=c||a.google_ad_widt
h;d=d||a.google_ad_height;if(a.top==a)return!1;var e=b.documentElement;if(c&&d){
var f=1,g=1;a.innerHeight?(f=a.innerWidth,g=a.innerHeight):e&&e.clientHeight?(f=
e.clientWidth,g=e.clientHeight):b.body&&(f=b.body.clientWidth,g=b.body.clientHei
ght);if(g>2*d||f>2*c)return!1}return!0};var Ud=function(a){this.j={};this.k=a},V

d=function(a,b,c,d){b&&(c||(c=""),"google_gl"==b?b="google_country":"google_regi
on"==b&&(b="google_section"),b in a.k&&("undefined"==typeof d||d||!a.j[b])&&(a.j
[b]=c))},Wd=function(a,b){B(b.j,function(a,b){this.j[b]||(this.j[b]=a)},a)},Xd=f
unction(a){var b=new Ud(a.k);a=a.j;var c={},d;for(d in a)c[d]=a[d];b.j=c;delete
b.j.google_page_url;return b},Yd=function(a){return a.j.google_page_url};
Ud.prototype.F=function(){var a=[];B(this.j,function(b,c){var d=vd[c]||wd[c]||xd
[c]||null;d&&b&&a.push(d+"="+D(b))});return a.join("&")};
var $d=function(a,b,c,d){var e=Zd(a,Xd(b),c,d);a=Zd(a,b,c,d);b=[];e[0]&&0<e[0].l
ength&&b.push(e[0].join("&"));a[1]&&0<a[1].length&&b.push("sps="+a[1].join("|"))
;return b.join("&")},Zd=function(a,b,c,d){var e=[],f=[],g=b.j;B(d,function(b,d){
if(b){var n="";null!=g[d]&&(n=D(g[d]));for(var p=[],m=-1,w=-1,C=0;C<a.length;++C
){var u=L(a[C]);++m;null==c[u]?p.push(""):(u=c[u].j,null!=u[d]?(p.push(D(D(u[d])
)),w=m):p.push(""))}if(0<=w){m=[];m.push(D(n));for(C=0;C<=w;++C)m.push(p[C]);f.p
ush(b+","+m.join(","))}else n&&
e.push(b+"="+n)}});b=[];b.push(e);b.push(f);return b},ae=function(){var a=window
,b;t:{b=a.navigator;var c=document,d=b.userAgent,e=b.platform;if(/Win|Mac|Linux|
iPad|iPod|iPhone/.test(e)&&!/^Opera/.test(d)){var f=(/WebKit\/(\d+)/.exec(d)||[0
,0])[1],g=(/rv\:(\d+\.\d+)/.exec(d)||[0,0])[1];if(/Win/.test(e)&&/Trident/.test(
d)&&9<c.documentMode||!f&&"Gecko"==b.product&&1.7<g&&!/rv\:1\.8([^.]|\.0)/.test(
d)||524<f){b=!0;break t}}b=!1}a=Td(a,a.document,500,300);c={};if(!b||a)c.ea="0";
return c},be=function(){var a,
b=window,c=document;var d=Ed(window,!1).W;a=d.location.href;if(d==d.top)a=!0;els
e{var e=!1,f=d.document;f&&f.referrer&&(a=f.referrer,d.parent==d.top&&(e=!0));(d
=d.location.ancestorOrigins)&&(d=d[d.length-1])&&-1==a.indexOf(d)&&(e=!1);a=e}b=
Td(Va(),c,b.google_ad_width,b.google_ad_height);c=a;a=Va();a=a.top==a?0:Ja(a.top
)?1:2;e=4;b||1!=a?b||2!=a?b&&1==a?e=7:b&&2==a&&(e=8):e=6:e=5;c&&(e|=16);return""
+e||null};var ce=function(a,b,c){b=b||ka;a&&b.top!=b&&(b=b.top);try{return b.doc
ument&&!b.document.body?new F(-1,-1):c?new F(b.innerWidth,b.innerHeight):Ob(b||w
indow)}catch(d){return new F(-12245933,-12245933)}},de=function(a,b){Xa()&&!wind
ow.opera?Ta(a,"readystatechange",cc(function(){"complete"==a.readyState&&b(null)
})):Ta(a,"load",bc("osd::util::load",b))},ee=function(){var a=0;!r(ka.postMessag
e)&&(a|=1);return a};var P=function(a,b){this.m=a;this.k=b&&b.k?b.k:[];this.q=b?
b.q:!1;this.l=b&&b.l?b.l:0;this.o=b?b.o:"";this.j=b&&b.j?b.j:[];this.n=null;this
.r=!1;if(b){var c;for(c=0;c<this.k.length;++c)this.k[c].push("true");for(c=0;c<t
his.j.length;++c)this.j[c].da=!0}},Sa="",fe=0,ge=0,he=function(a,b){var c=a.k,d=
a.m.google_ad_request_done;d&&(d=d.orig_callback||d,a.m.google_ad_request_done=f
unction(a){if(a&&0<a.length){var f=1<a.length?a[1].url:null,g=a[0].log_info||nul
l,h=a[0].activeview_url||null,k=a[0].activeview_js_enabled||
null,n=a[0].activeview_js_immediate_enabled||null,p=a[0].activeview_js_tos_enabl
ed||null,m=a[0].activeview_cid||null;c.push([b,za(a[0].url),f,g,null,h,k,n,p,m])
}d(a)},a.m.google_ad_request_done.orig_callback=d)},ie=function(a,b,c,d){var e=a
.k;if(0<e.length)for(var f=b.document.getElementsByTagName("a"),g=0;g<f.length;g
++)for(var h=0;h<e.length;h++)if(0<=f[g].href.indexOf(e[h][1])){var k=f[g].paren
tNode;if(e[h][2])for(var n=k,p=0;4>p;p++){if(0<=n.innerHTML.indexOf(e[h][2])){k=
n;break}n=n.parentNode}c(k,
e[h][0],d||0,!0,e[h][3],void 0,e[h][5],"true"==e[h][6],"true"==e[h][7],"true"==e
[h][10],"true"==e[h][8],e[h][9]);e.splice(h,1);break}if(g=0<e.length)Fd||(Fd=Ed(
window,!0).W),g=b!=Fd;if(g)try{ie(a,b.parent,c,d)}catch(m){}for(g=0;g<e.length;+
+g)a=e[g],"true"==a[6]&&je("osd2",a[3]),"true"==a[7]&&je("osdim",a[3])},je=funct
ion(a,b){if(a&&b){var c=["//"];c.push("pagead2.googlesyndication.com");c.push("/
activeview");c.push("?id="+a);c.push("&r=j");c.push("&avi="+b);Pa(ka,c.join(""),
void 0)}};l=P.prototype;
l.getNewBlocks=function(a,b){b&&ie(this,this.m,a,1);for(var c=this.j.length,d=0;
d<c;d++){var e=this.j[d];!e.m&&e.j&&(a(e.j,e.l,e.o,e.k,"",e.n,"",!1,!1,e.da,!1,"
"),e.m=!0)}b&&(this.n=a)};l.getRegisteredAdblockUrls=function(){for(var a=[],b=t
his.j.length,c=0;c<b;c++)a.push(this.j[c].l);return a};
l.setupOse=function(a){if(this.getOseId())return this.getOseId();var b=window.go
ogle_enable_ose,c;!0===b?c=2:!1!==b&&(c=Ka([0],ge),null==c&&((c=Ka([2],fe))||(c=
3)));if(!c)return 0;this.l=c;this.o=String(a||0);return this.getOseId()};l.getOs
eId=function(){return window?this.l:-1};l.getCorrelator=function(){return this.o

};l.numBlocks=function(){return this.k.length+this.j.length};
l.registerAdBlock=function(a,b,c,d,e,f){var g=null;e&&f&&(g={width:e,height:f});
if(this.n&&d)this.n(d,a,b,!0,"",g,"",!1,!1,!1,!1);else{if("js"==c)he(this,a);els
e{var h=new ke(a,b,d,g);this.j.push(h);d&&de(d,function(){h.k=!0})}this.q||(Wa()
,Ra(),this.q=!0)}};l.unloadAdBlock=function(a,b){r(window.Goog_Osd_UnloadAdBlock
)&&window.Goog_Osd_UnloadAdBlock(a,b)};l.setUpForcePeriscope=function(){window.g
oogle_enable_ose_periscope&&(this.r=!0)};l.shouldForcePeriscope=function(){retur
n this.r};
var ne=function(){var a=Va(),b=a.__google_ad_urls;if(!b)return a.__google_ad_url
s=new P(a);try{if(0<=b.getOseId())return b}catch(c){}return a.__google_ad_urls=n
ew P(a,b)},ke=function(a,b,c,d){this.l=a;this.o=b;this.j=c;this.m=this.k=!1;this
.n=d;this.da=!1};z("Goog_AdSense_getAdAdapterInstance",ne);z("Goog_AdSense_OsdAd
apter",P);z("Goog_AdSense_OsdAdapter.prototype.numBlocks",P.prototype.numBlocks)
;z("Goog_AdSense_OsdAdapter.prototype.getNewBlocks",P.prototype.getNewBlocks);
z("Goog_AdSense_OsdAdapter.prototype.getOseId",P.prototype.getOseId);z("Goog_AdS
ense_OsdAdapter.prototype.getCorrelator",P.prototype.getCorrelator);z("Goog_AdSe
nse_OsdAdapter.prototype.getRegisteredAdblockUrls",P.prototype.getRegisteredAdbl
ockUrls);z("Goog_AdSense_OsdAdapter.prototype.setupOse",P.prototype.setupOse);z(
"Goog_AdSense_OsdAdapter.prototype.registerAdBlock",P.prototype.registerAdBlock)
;z("Goog_AdSense_OsdAdapter.prototype.setUpForcePeriscope",P.prototype.setUpForc
ePeriscope);
z("Goog_AdSense_OsdAdapter.prototype.shouldForcePeriscope",P.prototype.shouldFor
cePeriscope);z("Goog_AdSense_OsdAdapter.prototype.unloadAdBlock",P.prototype.unl
oadAdBlock);var Q=q.googletag._vars_,oe=Q["#7#"],pe=Q["#20#"],Sa=[Q["#6#"]?"http
s":"http","://",Q["#1#"],"/pagead/osd.js"].join(""),fe=oe,ge=pe;var qe=function(
a,b){var c=b[L(a)];return null!=c?Yd(c):null},re=function(a,b,c){if(null!=Yd(b))
return!0;b=!1;for(var d=0;d<a.length&&!b;d++)b=null!=qe(a[d],c);return b},se=fun
ction(a){var b=a;"about:blank"!=a&&(b=b.replace(/</g,"%3C").replace(/>/g,"%3E").
replace(/"/g,"%22").replace(/'/g,"%27"),/^https?:\/\//.test(b)||(b="unknown:"+b)
);return b},te=/\+/g,ue=function(a){var b=Q["#6#"];return a||b?"https://"+Q["#3#
"]:"http://"+Q["#2#"]},ve=function(){var a=navigator.userAgent,b=a.indexOf("MSIE
");return-1==
b?0:parseFloat(a.substring(b+5,a.indexOf(";",b)))},we=function(a,b){var c=0,d=[]
;a&&(d.push(a.getName()),d.push(qd(a)),d.push(M(a)));if(b){var e;e=[];for(var f=
0,g=b;g&&25>f;g=g.parentNode,++f)e.push(9!=g.nodeType&&g.id||"");(e=e.join())&&d
.push(e)}0<d.length&&(c=$a(d.join(":")));return c.toString()},xe={Va:"visible",S
a:"hidden",Ua:"prerender",Ta:"other"},ye=function(a){a=a||document;a=a.webkitVis
ibilityState||a.mozVisibilityState||a.visibilityState||"visible";var b;t:{for(b
in xe)if(xe[b]==a){b=
!0;break t}b=!1}return b?a:"other"},ze=function(){return Boolean(q.JSON&&q.JSON.
parse)&&(!H||J(9))&&(!yb||J(12))};var Ae=function(){this.j={};var a=ja.URL;null=
=R(this,"target_platform")&&(this.j.target_platform="DESKTOP");for(var b=this.j,
a=a.split("?"),a=a[a.length-1].split("&"),c=0;c<a.length;c++){var d=a[c].split("
=");if(d[0]){var e=d[0].toLowerCase();if("google_domain_reset_url"!=e)try{var f;
if(1<d.length){var g=d[1];f=window.decodeURIComponent?decodeURIComponent(g.repla
ce(te," ")):unescape(g)}else f="";b[e]=f}catch(h){}}}},R=function(a,b){return nu
ll==b?null:a.j[b]};var Be=function(a){this.j={};this.v={};this.l=[];this.o={};th
is.t=[];this.D=a;this.k=new Ud(a);this.n={};this.u={};this.q={};this.m={};this.B
=this.r="";this.w=null;this.A=-1},Ce=function(a,b,c){b=new kd(b,c||!1);if(!b.get
Name())return null;c=L(b);var d=a.j[c];if(d)return d;a.j[c]=b;a.v[b.getName()]||
(a.v[b.getName()]=[]);return a.v[b.getName()][b.getInstance()]=b},Ee=function(a)
{return db(De(a),function(a){return!a.m})},Fe=function(a,b){-1==jb(a.l,function(
a){return L(b)==L(a)})&&a.l.push(b)},Ge=
function(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=L(d);e in a.j&&(md(d),lb(
a.l,function(a){return L(a)==e}))}},He=function(a){a=db(De(a),function(a){return
!!a.m&&!(a.m&&a.t)});return eb(a,function(a){return[a.getName(),a.getInstance()]
})},Ie=function(a){var b=0;B(a.j,function(){b++});return b};Be.prototype.toStrin
g=function(){var a="[AdData:",b=[];B(this.j,function(a){b.push(a.toString())});B
(this.o,function(a,d){b.push("["+d+","+a+"]")});a+=b.join();return a+"]"};
var Je=function(a,b){if(b){var c=b.getName(),d=b.getSlotId().getInstance();retur

n a.j[c+"_"+d]||null}return null},De=function(a){var b=[];B(a.j,function(a){b.pu


sh(a)});return b},Ke=function(a){a=eb(De(a),function(a){return a.u});qb(a);retur
n a},Le=function(a){var b=[];B(a.o,function(a,d){b.push(D(d)+"="+D(a))});0<a.t.l
ength&&!("excl_cat"in a.o)&&b.push(D("excl_cat")+"="+D(a.t.join(",")));return b.
join("&")},Me=function(a,b){var c=a.q[L(b)],d;if(c)if(c)try{var e=window.top,f=n
ew E(0,0),g,h=Jb(c);g=
h?Qb(h):window;do{var k;if(g==e)k=kc(c);else{var h=c,n=void 0;if(h.getBoundingCl
ientRect)var p=ic(h),n=new E(p.left,p.top);else var m=void 0,w=Kb(h),m=Rb(w.j),C
=kc(h),n=new E(C.x-m.x,C.y-m.y);m=void 0;if(zb&&!J(12)){var u=void 0;var hb=void
0,ib;n:{var le=h,me=Ga();if(void 0===le.style[me]){var Ag=(I?"Webkit":zb?"Moz":
H?"ms":yb?"O":null)+Ha(me);if(void 0!==le.style[Ag]){ib=(I?"-webkit":zb?"-moz":H
?"-ms":yb?"-o":null)+"-transform";break n}}ib="transform"}if(hb=hc(h,ib)||hc(h,"
transform"))var Ac=hb.match(nc),
u=Ac?new E(parseFloat(Ac[1]),parseFloat(Ac[2])):new E(0,0);else u=new E(0,0);m=n
ew E(n.x+u.x,n.y+u.y)}else m=n;k=m}h=k;f.x+=h.x;f.y+=h.y}while(g&&g!=e&&g!=g.par
ent&&(c=g.frameElement)&&(g=g.parent));d=f}catch(th){d=new E(-12245933,-12245933
)}else d=null;else d=null;return d};var Ne=function(){this.o="";this.u="json_htm
l";this.k="fif";this.m=1;this.v=!1;this.n="";this.j=[];this.w=this.persistentRoa
dblocksOnly=!1;this.videoPodNumber=this.videoPodPosition=NaN;this.r=this.t="";th
is.q=!1;this.videoStreamCorrelator=NaN;this.l=0};var Qe=function(a){this.n=docum
ent;this.j=a||0;this.k=Oe(this,"__gads=");this.o=this.m=!1;Pe(this)},Re=function
(a,b){if(b._cookies_&&b._cookies_.length&&(a.l=b._cookies_[0],null!=a.l&&(a.k=a.
l._value_,null!=a.l&&a.k))){var c=new Date;c.setTime(1E3*a.l._expires_);a.n.cook
ie="__gads="+a.k+"; expires="+c.toGMTString()+"; path="+a.l._path_+"; domain=."+
a.l._domain_}},Pe=function(a){if(!a.k&&!a.o&&1!=a.j){a.n.cookie="GoogleAdServing
Test=Good";var b="Good"==Oe(a,"GoogleAdServingTest=");if(b){var c=new Date;
c.setTime((new Date).valueOf()+-1);a.n.cookie="GoogleAdServingTest=; expires="+c
.toGMTString()}a.m=b;a.o=!0}},Oe=function(a,b){var c=a.n.cookie,d=c.indexOf(b),e
="";-1!=d&&(d+=b.length,e=c.indexOf(";",d),-1==e&&(e=c.length),e=c.substring(d,e
));return e},Se=null,Te=function(a){null==Se&&(Se=new Qe(a));return Se};var Cd=n
ew function(a){this.k=[];this.j={};for(var b=0,c=arguments.length;b<c;++b)this.j
[arguments[b]]=""},Ue=[],We=function(a,b,c){c=c||[];a=new Ve(a);if(sc.apply(a,c)
()){var d=a.j;c=[];var e=0,f;for(f in d)c[e++]=d[f];f=a.k;d=a.l;(Ad?0:d?f.j.hasO
wnProperty(d)&&""==f.j[d]:1)&&(b=Ka(c,b*c.length))&&Bd(f,b,d)}Ue.push(a);return
a},Ve=function(a){var b=Cd;this.j=a;this.k=b;this.l="exp"+(this[fa]||(this[fa]=+
+ga));this.k.j[this.l]=""},Xe=function(a){if("experiment"in a.j){var b=a.k,c=a.l
;a=a.j.experiment==
(b.j.hasOwnProperty(c)?b.j[c]:"")}else a=!1;return a},Ye=function(a,b){b in a.j&
&Bd(a.k,a.j[b],a.l)},Ze=function(a){for(var b=0;b<Ue.length;++b){var c=Ue[b],d=c
.j,e={},f=void 0;for(f in d)e[d[f]]=f;d=e[a];if(null!=d){Ye(c,d);return}}0<=bb(C
d.k,a)||Bd(Cd,a)},$e=Q["#18#"],af;af=0<=bb(["prerender"],ye(void 0));We({control
:"108809009",experiment:"108809010"},$e,[rc(af)]);var bf=We({control:"108809021"
,experiment:"108809022"},Q["#25#"],[rc(ze())]);We({branch_1:"108809028",branch_2
:"108809029"},Q["#27#"]);
var cf=We({control:"108809030",experiment:"108809031"},Q["#28#"]),df=We({control
:"108809034",experiment:"108809035"},Q["#31#"]);Q["#39#"]&&Ze(Q["#39#"]);var ef=
function(){var a=q.googletag;return null!=a&&ea(a.getVersion)?a.getVersion():nul
l};var ff=function(a,b,c,d,e){this.j=b;this.q=c;this.l=d;this.n=a;this.k=e;this.
m="";this.w=vd;this.o=[];this.u=[]};ff.prototype.F=function(a,b){if(!ca(a))retur
n"";if("sra"==this.n)0==a.length&&(a=De(this.j));else{if(0==a.length)return"";1<
a.length&&(a=[a[0]])}this.t();this.v(a);return b?gf(this.m,2048):this.m};
ff.prototype.v=function(a){try{var b,c="",d=0;"prerender"==ye(document)?(c="1088
09008",d=Q["#17#"]):(c="108809007",d=Q["#16#"]);b=Ka([c],d);S(this,"eid",(b?mb(t
his.k.j,b):this.k.j).join())}catch(e){}this.l&&0!==this.l.j&&S(this,"co",this.l.
j);b=this.j.A;-1!==b&&S(this,"tfcd",b);Boolean(window.postMessage)&&S(this,"sfv"
,"1-0-1");if("sra"==this.n){b=a.length;for(c=0;c<b;c++){var d=a[c].getName(),f="
";if(""!=d){d=d.split("/");for(f=0;f<d.length;f++)if(""!=d[f]){for(var g=!1,h=0;
h<this.o.length;h++)if(d[f]==
this.o[h]){g=!0;break}g||this.o.push(d[f])}f="";for(g=0;g<d.length;g++){if(0<g)f
+="/";else if(""==d[0])continue;for(h=0;h<this.o.length;h++)if(d[g]==this.o[h]){

f+=h;break}}}this.u.push(f)}S(this,"iu_parts",this.o.join());S(this,"enc_prev_iu
s",this.u.join());b=[];for(c=0;c<a.length;++c)b.push(qd(a[c]));S(this,"prev_iu_s
zs",b.join());b=[];c=!1;for(d=0;d<a.length;++d)f=a[d].getFirstLook(),0!=f&&(c=!0
),b.push(f);(b=c?b.join():void 0)&&S(this,"fla",b);if(a.length){b="";for(c=0;c<a
.length;++c)b+=a[c].getOutOfPage()?
"1":"0";b=parseInt(b,2)}else b=0;b&&S(this,"ists",b);hf(this);c=null;b=[];for(c=
0;c<a.length;++c)b.push(rd(a[c]));c=b.join("|");c.length==b.length-1&&(c=null);S
(this,"prev_scp",c)}else b=a[0].j.gtfcd(),-1!==b&&S(this,"tfcd",b),b=a[0],S(this
,"iu",b.getName()),S(this,"sz",qd(b)),(c=b.getFirstLook())&&S(this,"fl",c),b.get
ClickUrl()&&S(this,"click",b.getClickUrl()),b.getOutOfPage()&&S(this,"ists","1")
,b in this.j.m&&S(this,"logonly","1"),hf(this),b=a[0],c=rd(b),S(this,"scp",c),b=
b.getAudExtId(),0<b&&
S(this,"audextid",b);b=a[0].k;c=re(a,this.j.k,this.j.n);d=this.k.v;f=3==this.k.m
;g=0;1!=this.k.m&&(g|=1);b&&(g|=2);c&&(g|=4);d&&(g|=8);f&&(g|=16);b=g;0<b&&S(thi
s,"eri",b);"prerender"==ye()&&S(this,"d_imp",1);b=window;c=document;S(this,"cust
_params",Le(this.j));this.l&&1!=this.l.j&&(S(this,"cookie",this.l.k),this.l.m&&S
(this,"cookie_enabled","1"));(d=this.j.r)&&S(this,"uule",d);this.l&&1!=this.l.j&
&(b=(Yd(this.j.k)||(b.top==b?c.URL:c.referrer))!=c.URL?c.domain:"")&&S(this,"cdm
",b);null!=R(this.q,"google_preview")&&
S(this,"gct",R(this.q,"google_preview"));this.r(new Date,a);b={};b.u_tz=-(new Da
te).getTimezoneOffset();var k;c=window;try{k=c.history.length}catch(n){k=0}b.u_h
is=k;b.u_java=navigator.javaEnabled();window.screen&&(b.u_h=window.screen.height
,b.u_w=window.screen.width,b.u_ah=window.screen.availHeight,b.u_aw=window.screen
.availWidth,b.u_cd=window.screen.colorDepth);navigator.plugins&&(b.u_nplug=navig
ator.plugins.length);navigator.mimeTypes&&(b.u_nmime=navigator.mimeTypes.length)
;jf(this,b);q.devicePixelRatio&&
T(this,"u_sd",Number(q.devicePixelRatio.toFixed(3)));var p;try{p=Za()}catch(m){p
="0"}T(this,"flash",p);k=window;p=k.document;b="sra"==this.n?Yd(this.j.k):qe(a[0
],this.j.n)||Yd(this.j.k);null==b&&(b=Yd(this.j.k)||(k.top==k?p.URL:p.referrer),
null!=R(this.q,"google_preview")&&(c=b.indexOf("google_preview=",b.lastIndexOf("
?")),d=b.indexOf("&",c),-1==d&&(d=b.length-1,--c),b=b.substring(0,c)+b.substring
(d+1,b.length)));S(this,"url",b);re(a,this.j.k,this.j.n)&&k.top!=k||S(this,"ref"
,p.referrer);S(this,"vrg",
ef());S(this,"vrp","56")};var kf=function(a,b){for(var c=b.length,d=[],e=0;e<c;e
++){var f=we(b[e]);b[e].w=f;d.push(f)}S(a,"adks",d.join(","))},jf=function(a,b){
B(b,function(a,b){T(this,b,a)},a)},hf=function(a){a.l&&1==a.l.j||S(a,"ppid",a.j.
B)};
ff.prototype.r=function(a,b){S(this,"lmt",(Date.parse(document.lastModified)/1E3
).toString());T(this,"dt",a.getTime());if(document.body){var c=document.body.scr
ollHeight,d=document.body.clientHeight;d&&c&&S(this,"cc",Math.round(100*d/c).toS
tring())}c=R(this.q,"deb");null!=c&&S(this,"deb",c);c=R(this.q,"haonly");null!=c
&&S(this,"haonly",c);c=ae();Qa(c,y(function(a,b){S(this,b,a)},this));c=be();null
!=c&&S(this,"frm",c);if(c=ce(!0))S(this,"biw",c.width),S(this,"bih",c.height);th
is.k.l&&S(this,"oid",
this.k.l);if("sra"==this.n)kf(this,b);else{if(c=Me(this.j,b[0]))S(this,"adx",Mat
h.round(c.x)),S(this,"ady",Math.round(c.y));c=b[0].w||we(b[0],this.j.u[L(b[0])])
;S(this,"adk",c)}c=ee();0<c&&S(this,"osd",c);c=this.j.k;d="";"sra"==this.n?d=$d(
b,c,this.j.n,this.w):(d=this.j.n[L(b[0])],null==d?d=c:Wd(d,c),d=Xd(d),d=d.F());d
&&(this.m+="&"+d)};
ff.prototype.t=function(){this.m=ue(Boolean(this.j.r)||Xe(cf))+"/gampad/ads?";T(
this,"gdfp_req",1);S(this,"correlator",this.k.o);T(this,"output",this.k.u);T(thi
s,"callback",this.k.n);T(this,"impl",this.k.k);this.k.persistentRoadblocksOnly&&
S(this,"per_only",1);"sra"==this.n?S(this,"json_a",1):this.k.w&&S(this,"fif_to",
1)};
var S=function(a,b,c){null!=c&&T(a,b,D(""+c))},T=function(a,b,c){null!=c&&""!=c&
&(a.m="?"!=a.m.charAt(a.m.length-1)?a.m+("&"+b+"="+c):a.m+(b+"="+c))},gf=functio
n(a,b){var c=b-8;if(a.length>b){var d=a.lastIndexOf("&",c);-1!=d?a=a.substring(0
,d):(a=a.substring(0,c),a=a.replace(/%\w?$/,""));a+="&trunc=1"}return a};var lf=
navigator;function mf(a){var b=1,c=0,d;if(void 0!=a&&""!=a)for(b=0,d=a.length-1;
0<=d;d--)c=a.charCodeAt(d),b=(b<<6&268435455)+c+(c<<14),c=b&266338304,b=0!=c?b^c

>>21:b;return b}function nf(a,b){if(!a||"none"==a)return 1;a=String(a);"auto"==a


&&(a=b,"www."==a.substring(0,4)&&(a=a.substring(4,a.length)));return mf(a.toLowe
rCase())}var of=/^\s*_ga=\s*1\.(\d+)[^.]*\.(.*?)\s*$/,pf=/^[^=]+=\s*GA1\.(\d+)[^
.]*\.(.*?)\s*$/;var qf=function(a,b,c,d,e){ff.call(this,a,b,c,d,e)};A(qf,ff);qf.
prototype.r=function(a,b){0<navigator.userAgent.indexOf("MSIE ")&&Vd(this.j.k,"g
oogle_encoding",document.charset,!1);ff.prototype.r.call(this,a,b);S(this,"ifi",
b[0].A);var c;var d=window;d==d.top?c=0:(c=[],c.push(d.document.URL),d.name&&c.p
ush(d.name),d=ce(!1,d,!1),c.push(d.width.toString()),c.push(d.height.toString())
,c=$a(c.join("")));0!=c&&S(this,"ifk",c.toString())};
qf.prototype.v=function(a){var b=a[0],c=window;c.google_unique_id?++c.google_uni
que_id:c.google_unique_id=1;b.A=c.google_unique_id;this.k.q&&(T(this,"hxva",1),S
(this,"cmsid",this.k.r),S(this,"vid",this.k.t));isNaN(this.k.videoPodNumber)||T(
this,"pod",this.k.videoPodNumber);isNaN(this.k.videoPodPosition)||T(this,"ppos",
this.k.videoPodPosition);isNaN(this.k.videoStreamCorrelator)||T(this,"scor",this
.k.videoStreamCorrelator);ff.prototype.v.call(this,a);a=window;var b=a.document.
domain,c=a.document.cookie,
d=a.history.length,e=a.screen,f=a.document.referrer,g=Math.round((new Date).getT
ime()/1E3),h=window.google_analytics_domain_name,b="undefined"==typeof h?nf("aut
o",b):nf(h,b),k=-1<c.indexOf("__utma="+b+"."),n=-1<c.indexOf("__utmb="+b),h=Md("
google_persistent_state"),p;(p=Nd(h))||(p=h.S[Hd(14)]={});h=p;p=!1;if(k)f=c.spli
t("__utma="+b+".")[1].split(";")[0].split("."),n?h.sid=f[3]+"":h.sid||(h.sid=g+"
"),h.vid=f[0]+"."+f[1],h.from_cookie=!0;else{h.sid||(h.sid=g+"");if(!h.vid){p=!0
;n=Math.round(2147483647*
Math.random());k=[lf.appName,lf.version,lf.language?lf.language:lf.browserLangua
ge,lf.platform,lf.userAgent,lf.javaEnabled()?1:0].join("");e?k+=e.width+"x"+e.he
ight+e.colorDepth:window.java&&(e=java.awt.Toolkit.getDefaultToolkit().getScreen
Size(),k+=e.screen.width+"x"+e.screen.height);k=k+c+(f||"");for(f=k.length;0<d;)
k+=d--^f++;h.vid=(n^mf(k)&2147483647)+"."+g}h.from_cookie=!1}if(!h.cid){var m;t:
{g=999;if(f=window.google_analytics_domain_name)f=0==f.indexOf(".")?f.substr(1):
f,g=(""+f).split(".").length;
f=999;c=c.split(";");for(e=0;e<c.length;e++)if(d=of.exec(c[e])||pf.exec(c[e])){i
f(d[1]==g){m=d[2];break t}d[1]<f&&(f=d[1],m=d[2])}}p&&m&&-1!=m.search(/^\d+\.\d+
$/)?h.vid=m:m!=h.vid&&(h.cid=m)}h.dh=b;h.hid||(h.hid=Math.round(2147483647*Math.
random()));m=Md();m=Nd(m);T(this,"ga_vid",m.vid);T(this,"ga_sid",m.sid);T(this,"
ga_hid",m.hid);T(this,"ga_fc",m.from_cookie);S(this,"ga_wpids",a.google_analytic
s_uacct)};var rf=function(){};var sf,tf=function(){};A(tf,rf);tf.prototype.j=fun
ction(){var a;t:{if(!this.k&&"undefined"==typeof XMLHttpRequest&&"undefined"!=ty
peof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2
.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{new ActiveXObj
ect(d);a=this.k=d;break t}catch(e){}}throw Error("Could not create ActiveXObject
. ActiveX might be disabled, or MSXML might not be installed");}a=this.k}return
a?new ActiveXObject(a):new XMLHttpRequest};sf=new tf;var uf=function(a){q.setTim
eout(function(){throw a;},0)},vf,wf=function(){var a=q.MessageChannel;"undefined
"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventLi
stener&&(a=function(){var a=document.createElement("iframe");a.style.display="no
ne";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.d
ocument;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="fi
le:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=y(funct
ion(a){if(("*"==
d||a.origin==d)&&a.data==c)this.port1.onmessage()},this);b.addEventListener("mes
sage",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}
}});if("undefined"!==typeof a&&-1==G.indexOf("Trident")&&-1==G.indexOf("MSIE")){
var b=new a,c={},d=c;b.port1.onmessage=function(){if(r(c.next)){c=c.next;var a=c
.va;c.va=null;a()}};return function(a){d.next={va:a};d=d.next;b.port2.postMessag
e(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.creat
eElement("script")?function(a){var b=
document.createElement("script");b.onreadystatechange=function(){b.onreadystatec
hange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentEleme
nt.appendChild(b)}:function(a){q.setTimeout(a,0)}};var Cf=function(a,b){xf||yf()
var gColMain, gCol2, gCol3, gIsMultiCol, gColTempResize;

var gColOrigHeights = { main: 0, col2: 0, col3: 0 };


var gColLows = { main: 0, col2: 0, col3: 0 };
var isIE6 = ($.browser.msie && ($.browser.version.substr(0,2) == '6.'));
/*['abstract','extract','excerpt']*/
var gSiteOptions = {
popupViews: ["abstract"],
popabsParam: "abspop=1",
refPopupLinkTypes: ["medline"],
refAbsPopupTimeout: 400,
expandString: "+",
contractString: "-",
suppressDockedNav: false,
suppressDockedSearchNav: true,
enableCCIcons: false,
dockedNavThisArticleLabel: "This Article",
collapsibleLabels: ["h3","h4","span"],
hasNewDockNav: false,
isiLinkString: "Loading Web of Science citing article data...",
'bam-ads': {
'custom-css':
{
//'leaderboard': '/publisher/css/hw-publisher-leaderboard.css'
}
}
};
var gSiteOptionUnknown = 'UNKNOWN';
$(document).ready(function() {
if ((typeof(gSmudge) == 'undefined') || (!gSmudge)) {
smudge();
}
if ((typeof(gIsFrameset) == 'undefined') || (!gIsFrameset)) {
if(top!= self) { top.location.href = self.location.href };
}
/* fix column heights */
gColMain = $(getSiteOption('col1id', "#content-block"));
gCol2 = $(getSiteOption('col2id', "#col-2"));
gCol3 = $(getSiteOption('col3id',"#col-3"));
gIsMultiCol = (gColMain.length && (gCol2.length || gCol3.length)) || ((g
Col2.length && gCol3.length));
gColTempResize = false;
fixColHeights(0);
/* force height recalc after 2 seconds because of unsize graphics elemen
ts */
setTimeout("checkColHeights()", 2000);
/* cleanup email addreses to replace with real mail2 links */
$("span[class^='em']").add("span[id^='em']").each(
function(i) {
var spanClass = $(this).attr("class");
var spanId = $(this).attr("id");
/* allow em-link or em{\d+} */
if ((spanClass != undefined) && (spanClass.match(/em((\d
+)|(-link))/)) ||
(spanId != undefined) && (spanId.match(/
em\d+/)))
{

var addr;
var addrEl = $(this).children(".em-addr");
if (addrEl.length) {
addr = addrEl.text().replace(/{at}/,'@')
;
}
else {
addr = $(this).text().replace(/{at}/,'@'
);
}
var link = 'mailto:' + addr;
var linkContents = $(this).attr("title");
var newHtml = '';
if ((linkContents == undefined) || !(linkContent
s.length)) {
if ($(this).children("span.mail2-orig-co
ntent").length) {
var tempSpan = $(this).children(
"span.mail2-orig-content");
var classStr = '';
var tempClassArr = tempSpan.attr
("class").split(' ');
if (tempClassArr.length > 1) {
for (var i = 0; i < temp
ClassArr.length; i++) {
if (tempClassArr
[i] != 'mail2-orig-content') {
classStr
+= (' ' + tempClassArr[i].replace(/^x-/,''));
}
}
}
linkContents = tempSpan.html().r
eplace(/{at}/,'@');
newHtml = '<a href="' + link + '
"' +
(classStr == '' ? '' : (
'class="' + classStr + '"')) +
'>' + linkContents + '</
a>';
}
else {
linkContents = addr;
}
}
if (newHtml == '') {
newHtml = '<a href="' + link + '">' + li
nkContents + '</a>';
}
$(this).replaceWith(newHtml);
}
}
);
handleccicons();
/* make links with rel="external-nw" target a new window */
$("a[rel*=external-nw]").each(
function(i) {
linkNewWin($(this), this);

}
);
/* attach onFocus handlers to quick-search fields, to clear the
field when it receives focus IF it contains the default
value (such as "Search the site") */
updateFormInput("#header-qs-search-label", "#header-qs-input", '', '');
/* handle collapsing content-box areas, with user prefs */
setupCollapsibles();
/* handle "most" boxes */
handleMostBoxes();
});
function linkNewWin(jQEl) {
var id = jQEl.attr("id");
var targetName = "_blank";
var config = null;
if ((id != undefined) && id && !(id == '') &&
!(gSiteOptions.openWindowDetails == undefined)) {
var newLinkOptions = gSiteOptions.openWindowDetails[id];
if ((newLinkOptions != undefined) && newLinkOptions) {
var overrideTarget = newLinkOptions.target;
var overrideConfig = newLinkOptions.config;
if ((overrideTarget != undefined) && overrideTarget && (
overrideTarget.length > 0)) {
targetName = overrideTarget;
}
if ((overrideConfig != undefined) && overrideConfig && (
overrideConfig.length > 0)) {
config = overrideConfig;
}
}
}
var origTitle = jQEl.attr("title");
var newTitle = '';
if ((origTitle == undefined) || (!origTitle)) {
origTitle = '';
}
else {
newTitle = origTitle + ' ';
}
newTitle += '[opens in a new window]';
jQEl.attr("target", targetName).attr("title", newTitle);
if (config != null) {
jQEl.click(function() {
window.open(jQEl.attr("href"), targetName, config);
return false;
});
}
}
function setupCollapsibles() {
// sites can override this if they want to target different elements
prepCollapsibles("div.content-box div.collapsible");
}
/* handle collapsing content-box areas, with optional user prefs */

function prepCollapsibles(parentJQueryEl, setPrefs) {


if (typeof(setPrefs) == "undefined") {
setPrefs = true;
}
var expandStr, contractStr;
if (gSiteOptions == undefined) {
expandStr = '+';
contractStr = '-';
}
else {
if (gSiteOptions.cbExpandString != undefined) {
expandStr = gSiteOptions.cbExpandString;
}
else if (gSiteOptions.expandString != undefined) {
expandStr = gSiteOptions.expandString;
}
else { expandStr = '+'; }
if (gSiteOptions.cbContractString != undefined) {
contractStr = gSiteOptions.cbContractString;
}
else if (gSiteOptions.contractString != undefined) {
contractStr = gSiteOptions.contractString;
}
else { contractStr = '-'; }
}
$(parentJQueryEl).each(
function(i) {
var $this = $(this);
var id = $this.attr("id");
if (id != null) {
var $labelElement, $label;
for (var i = 0; i < gSiteOptions.collapsibleLabe
ls.length; i++) {
$labelElement = gSiteOptions.collapsible
Labels[i];
$label = $this.find($labelElement);
if ($label.length) {
// get first one
if ($label.length > 1) {
$label = $label.eq(0);
}
break;
}
}
// if there's already a toggle leave this as is
var alreadyHasToggle = ($label.length && $label.
find("a.collapse-toggle").length);
if ($label.length) {
if (!(alreadyHasToggle)) {
var labelText = $label.html();
$label.empty().append('<a href="
#" class="collapse-toggle"><span class="view-more">' + contractStr + '</span> '
+ labelText + '</a>');
}
}
var isOpen = true;
if (setPrefs) {
var statePref = getPrefValue(id + "-stat

e");
if (statePref && ((statePref == 'open')
|| (statePref == 'closed'))) {
if (statePref == 'closed') {
isOpen = false;
}
}
else {
// no pref, or unknown value
if ($this.hasClass('default-clos
ed')) {
isOpen = false;
}
}
}
else {
if ($this.hasClass('default-clos
ed')) {
isOpen = false;
}
}
var childListType;
if ($this.children("ol").length) {
childListType = "ol";
}
else {
childListType = "ul";
}
if (!isOpen && !(alreadyHasToggle)) {
toggleCollapse($this, childListType, ($l
abelElement + " a span.view-more"), expandStr, contractStr);
}
$this.find("a.collapse-toggle").eq(0).click(
function(e) {
// need to find first parent tha
t is in either state...
//
$(this).parents(".collapsible, .
collapsed").each(
$(this).parents().each(
function(i) {
if ($(this).hasC
lass('collapsible') || $(this).hasClass('collapsed')) {
var isCo
llapsed = $this.hasClass('collapsed');
if (setP
refs) {
var prefName = id + "-state";
if (isCollapsed) {
setPref(prefName, "open");
}
else {
setPref(prefName, "closed");
}

}
toggleCo
llapse($(this), childListType, ($labelElement + " a span.view-more"), expandStr,
contractStr);
fixColHe
ights(-1);
return f
alse;
}
}
);
e.preventDefault();
}
);
}
}
);
}
function handleMostBoxes() {
var hadMostBoxes = false;
$("div.most-links-box").each(
function(i) {
var $this = $(this);
modClass($this, '', 'js-marker');
hadMostBoxes = true;
// 1) get the <ul> child
var $mostlist = $this.children("ul");
// 2) build a new <ul> for the header, from <h4> child:
var hasSelected = false;
var mostHdrList = null;
if ($mostlist.length) {
var hasItems = false;
var hdrList = '<ul class="most-headings">';
var $mostli = $mostlist.children("li");
if ($mostli.length) {
hasItems = true;
$mostli.each(
function(i) {
var $hdr = $(this).child
ren("h4").html();
if ($(this).hasClass("mo
st-cur-sel")) {
hasSelected = tr
ue;
hdrList += '<li
class="' + $(this).attr("class") + '"><a href="#">' + $hdr + '</a></li>';
}
else {
hdrList += '<li>
<a href="#">' + $hdr + '</a></li>';
}
}
);
}
hdrList += '</ul>';
if (hasItems) {
var header = $this.find("div.most-header
h3");
if (header.length) {

header.after(hdrList);
}
}
mostHdrList = $this.find("div.most-header ul");
}
// 3) if none of the items are selected, make the first
one be
if (((mostHdrList != null) && mostHdrList.length) && (!h
asSelected)) {
modClass(mostHdrList.find("li:first"), "most-cur
-sel", "");
modClass($this.children("ul").children("li:first
"), "most-cur-sel", "");
}
// 4) bind a handler to each heading li a to toggle clas
s="most-cur-sel" for
//

that item and its corresponding item in the list b

elow
if (((mostHdrList != null) && mostHdrList.length)) {
mostHdrList.find("li a").click(
function(e) {
var curA = $(this);
toggleMostSelection(e, $this, cu
rA.text());
}
);
}
}
);
if (hadMostBoxes) {
fixColHeights(-1);
}
}
function toggleMostSelection(e, mostItemDiv, groupName) {
if (mostItemDiv.length) {
var hdrItems = mostItemDiv.find("div.most-header ul li");
if (hdrItems.length) {
hdrItems.each(
function() {
var hdrName = $(this).text();
var isChoice = (hdrName == groupName);
if (isChoice) {
modClass($(this), 'most-cur-sel'
, '');
}
else {
modClass($(this), '', 'most-cursel');
}
}
);
}
var listItems = mostItemDiv.children("ul").find("li");
if (listItems.length) {
listItems.each(
function() {
var itemName = $(this).children("h4").te
xt();
var isChoice = (itemName == groupName);

if (isChoice) {
modClass($(this), 'most-cur-sel'
, '');
}
else {
modClass($(this), '', 'most-cursel');
}
}
);
}
}
fixColHeights(-1);
e.preventDefault();
}
function toggleCollapse(collapsibleEl, hideTagExpr, modTextTagExpr, expandStr, c
ontractStr) {
if (typeof(expandStr) == "undefined") {
expandStr = getSiteOption('expandString','+');
}
if (typeof(contractStr) == "undefined") {
contractStr = getSiteOption('contractString','-');
}
var $this = collapsibleEl;
var $toToggle = $this.find(hideTagExpr);
if ($this.hasClass('collapsed')) {
modClass($this, 'collapsible', 'collapsed');
if ($toToggle.length) {
$toToggle.eq(0).show();
}
}
else if ($this.hasClass('collapsible')) {
modClass($this, 'collapsed', 'collapsible');
if ($toToggle.length) {
$toToggle.eq(0).hide();
}
}
var $rewrite = $this.find(modTextTagExpr);
if ($rewrite.length) {
$rewrite.eq(0).each(
function(i, e) {
var txt = $(e).text();
if (txt == expandStr) {
$(e).empty().append(contractStr);
}
else if (txt == contractStr) {
$(e).empty().append(expandStr);
}
}
);
}
}
function setupDockBlock(col, dockId, dockClass, contentRules) {
if ((col == 2) || (col == 3)) {
var navOrigHeight = ((col == 2) ? gColOrigHeights.col2 : gColOri
gHeights.col3);
var gColNum = col;

var gNav = ((col == 2) ? gCol2 : gCol3);


var gNavHeight = ((gNav.length) ? navOrigHeight : 0);
var gNavTopOffset = (gNavHeight > 0 ? gNav.offset().top : 0);
var gScrollPos = 0;
var gNavDocked = false;
/* this won't work in IE 6, so skip it */
/* article navigation docking block */
$(window).scroll(function () {
if (gNavHeight > 0 && !isIE6) {
var offsets = getPageOffset();
var origHeight = ((gColNum == 2) ? gColOrigHeigh
ts.col2 : gColOrigHeights.col3);
var navBottom = (gNavTopOffset + origHeight) - o
ffsets.y;
if (gScrollPos != offsets.y) {
gScrollPos = offsets.y;
if ((navBottom <= 0) && !gNavDocked) {
/* dock the nav */
gNavDocked = true;
addDockBlock(col, dockId, dockCl
ass, contentRules);
addDockBlockCallback(dockId);
$('ol#docked-nav-views a.pop-out-video').replaceWith('<a href="#pop-out-videocontainer" onclick="return fancybox(this)">Supplemental Media</a>');
}
else if (gNavDocked && (navBottom > 0))
{
/* undock the nav */
gNavDocked = false;
removeDockBlock(col, dockId);
removeDockBlockCallback(dockId);
}
}
}
});
}
}
function addDockBlock(col, dockId, dockClass, contentRules) {
// get direct children li elements only
var colId = ("col-" + col);
var newDiv = '<div' + ((dockId == '') ? '': (' id="' + dockId + '"')) +
((dockClass == '') ? '': (' class="' + dockClass + '"')) + '></div>';
$("#" + colId).append(newDiv);
$("#" + colId + " #" + dockId).hide();
var newDivJQuery = $("#" + dockId);
if (contentRules.length > 1) {
for (var i = 0; i < (contentRules.length - 1); i = i + 2) {
var addTo = processDockingRule(contentRules[i]);
var add = processDockingRule(contentRules[i + 1]);
var addTarget, addVal;
if (addTo.ruleType == 'empty') {
addTarget = newDivJQuery;
}
else if (addTo.ruleType == 'jQuery') {
addTarget = $(addTo.rule);
}
if (add.ruleType = 'jQuery') {
var addJQEl = $(add.rule);
if (addJQEl.length) {
addVal = addJQEl.clone();

}
else {
addVal = '';
}
}
else if (add.ruleType = 'html') {
addVal = add.rule;
}
if (addTarget.length && !(addVal == '')) {
addTarget.append(addVal);
}
else {
}
}
}
var newDockJQrule = "#" + colId + " #" + dockId;
var newDock = $(newDockJQrule);
var istoc = $(".hw-gen-page").attr("id").match (/toc/);
if (newDock.length) {
prepCollapsibles(newDockJQrule + " div.collapsible, " + newDockJ
Qrule + " div.collapsed", false);
if (gSiteOptions.hasNewDockNav) {
var issearchresults = $(".hw-gen-page").attr("id").match (/searc
h-results/);
if (!issearchresults) {
if (istoc) {newDock.find ("#docked-cb").hide ();}
newDock.prepend ($($(".sidebar-nav").get(0)).clone ());
}
}
newDock.fadeIn(250);
}
}
function processDockingRule(rule) {
var retObj = new Object();
retObj.empty = (((rule != undefined) && (!(rule == ''))) ? false : true)
;
if (rule == '') {
retObj.ruleType = 'empty';
}
else if (/^\$\(.+\)$/.test(rule)) {
retObj.ruleType = 'jQuery';
retObj.rule = rule.replace(/^\$\((.+)\)$/,"$1");
}
else {
retObj.ruleType = 'html';
retObj.rule = rule;
}
return retObj;
}
function removeDockBlock(col, dockId) {
var dockedNav = $("div#" + dockId);
if(dockedNav.length) {
dockedNav.fadeOut(250, function() { dockedNav.remove(); });
}
}
// custom implementations can override this function to do something when a dock
Block is added
// they should return false if they want to stop any additional default handling

function customAddDockBlockCallback(dockId) {
return true;
}
// this function should not be overridden
function addDockBlockCallback(dockId) {
if (customAddDockBlockCallback(dockId) != false) {
// no default handling, currently
}
}
// custom implementations can override this function to do something when a dock
Block is removed
// they should return false if they want to stop any additional default handling
function customRemoveDockBlockCallback(dockId) {
return true;
}
// this function should not be overridden
function removeDockBlockCallback(dockId) {
if (customRemoveDockBlockCallback(dockId) != false) {
// no default handling, currently
}
}
function updateFormInput(labelMatchString, inputMatchString, defaultColorString,
textColorString) {
if ((defaultColorString == null) || (defaultColorString == '')) {
defaultColorString = "#A0A0A0";
}
if ((textColorString == null) || (textColorString == '')) {
textColorString = "black";
}
var label = $(labelMatchString);
var input = $(inputMatchString);
if (input.length) {
if ((label.length) && (input.val() == '')) {
input.val(label.text()).css("color",defaultColorString);
}
input.focus(
function(e) {
if ((label.length) && ($(this).val() == label.t
ext())) {
$(this).val('').css("color",textColorStr
ing);
}
}
);
input.blur(
function(e) {
if ((label.length) && ($(this).val() == '')) {
$(this).val(label.text()).css("color",de
faultColorString);
}
}
);
}
var parentForm = label.parents("form").eq(0);
if (parentForm.length) {
parentForm.submit(
function() {
if ((label.length) && (input.length) && (input.v
al() == label.text())) {

input.val('');
}
return true;
}
);
}
}
function checkUnloadedImgs(lookupRule) {
if (lookupRule == null) {
lookupRule = "img";
}
var imageNum = -1;
var images = $(lookupRule);
if (images.length) {
imageNum = 0;
images.each(
function() {
//if ($(this).height() == 0) {
if (this.offsetHeight == 0) {
imageNum++;
}
}
);
}
return imageNum;
}
function fixHeightForImages(iter, numImagesToLoad, lookupRule) {
if (lookupRule == null) {
lookupRule = "img";
}
if (numImagesToLoad > 0) {
var lastNumImagesToLoad = numImagesToLoad;
var newNumImagesToLoad = checkUnloadedImgs(lookupRule);
if (newNumImagesToLoad < lastNumImagesToLoad) {
fixColHeights(1);
if ((newNumImagesToLoad > 0) && (iter < 10)) {
setTimeout("fixHeightForImages(" + (iter+1) + ",
" + newNumImagesToLoad + ",'" + lookupRule + "')", 1000);
}
}
}
}
function getColInfo(colJQEl) {
var colInfo = { valid: false, height: 0, bottom: 0, lastElBottom: 0, ext
ra: 0, fix: false };
if (colJQEl.length) {
var c = colJQEl.children();
if (c.length) {
colInfo.height = getObjHeight(colJQEl);
colInfo.bottom = colJQEl.offset().top + colInfo.height;
var last = c.eq(c.length - 1);
colInfo.lastElBottom = last.offset().top + getObjHeight(
last);
colInfo.extra = colInfo.bottom - colInfo.lastElBottom;
colInfo.valid = true;
}
}
return colInfo;

}
function checkColHeights() {
var colToFix = 0;
if ((gIsMultiCol || gColTempResize) && ((gColOrigHeights.main + gColOrig
Heights.col2 + gColOrigHeights.col3) > 0)) {
var colMainInfo = getColInfo(gColMain);
var col2Info = getColInfo(gCol2);
var col3Info = getColInfo(gCol3);
if (colMainInfo.valid && (gColLows.main == 0)) { gColLows.main =
colMainInfo.lastElBottom; }
if (col2Info.valid && (gColLows.col2 == 0)) { gColLows.col2 = co
l2Info.lastElBottom; }
if (col3Info.valid && (gColLows.col3 == 0)) { gColLows.col3 = co
l3Info.lastElBottom; }
// check if low point in any column has changed
if ((colMainInfo.valid) && (colMainInfo.lastElBottom != gColLows
.main)) {
colMainInfo.fix = true;
}
if ((col2Info.valid) && (col2Info.lastElBottom != gColLows.col2)
) {
col2Info.fix = true;
}
if ((col3Info.valid) && (col3Info.lastElBottom != gColLows.col3)
) {
col3Info.fix = true;
}
// check for columns not having same bottom points
if ((colMainInfo.valid) &&
(((col2Info.valid) && (colMainInfo.height < col2Info.h
eight)) ||
((col3Info.valid) && (colMainInfo.height < col3Info.h
eight)))) {
colMainInfo.fix = true;
}
if ((col2Info.valid) &&
(((colMainInfo.valid) && (col2Info.height < colMainInf
o.height)) ||
((col3Info.valid) && (col2Info.height < col3Info.heig
ht)))) {
col2Info.fix = true;
}
if ((col3Info.valid) &&
(((colMainInfo.valid) && (col3Info.height < colMainInf
o.height)) ||
((col2Info.valid) && (col3Info.height < col2Info.heig
ht)))) {
col3Info.fix = true;
}
if (colToFix > -1) {
if (colMainInfo.valid && colMainInfo.fix) {
if ((col2Info.valid && col2Info.fix) || (col3Inf
o.valid && col3Info.fix)) {
colToFix = -1;
}
else { colToFix = 1; }
}
else if (col2Info.valid && col2Info.fix) {
if (col3Info.valid && col3Info.fix) {

colToFix = -1;
}
else { colToFix = 2; }
}
else if (col3Info.valid && col3Info.fix) {
colToFix = 3;
}
}
if (colToFix != 0) {
fixColHeights(colToFix);
}
if (colMainInfo.valid) { gColLows.main = colMainInfo.lastElBotto
m; }
if (col2Info.valid) { gColLows.col2 = col2Info.lastElBottom; }
if (col3Info.valid) { gColLows.col3 = col3Info.lastElBottom; }
}
setTimeout("checkColHeights()", 5000);
}
function fixColHeights(colChanged) {
if ((gIsMultiCol || gColTempResize) && getSiteOption('setColSizes', true
)) {
var setAll = false;
if (colChanged == 1) {
if (gColMain.length) {
setObjHeight(gColMain,'auto');
gColOrigHeights.main = getObjHeight(gColMain);
}
}
else if (colChanged == 2) {
if (gCol2.length) {
setObjHeight(gCol2,'auto');
gColOrigHeights.col2 = getObjHeight(gCol2);
}
}
else if (colChanged == 3) {
if (gCol3.length) {
setObjHeight(gCol3,'auto');
gColOrigHeights.col3 = getObjHeight(gCol3);
}
}
else {
if (colChanged == -1) {
// force resize all 3
if (gColMain.length) { setObjHeight(gColMain,'au
to'); }
if (gCol2.length) { setObjHeight(gCol2,'auto');
}
if (gCol3.length) { setObjHeight(gCol3,'auto');
}
}
gColOrigHeights.main = ((gColMain.length) ? (getObjHeigh
t(gColMain)) : 0);
gColOrigHeights.col2 = ((gCol2.length) ? (getObjHeight(g
Col2)) : 0);
gColOrigHeights.col3 = ((gCol3.length) ? (getObjHeight(g
Col3)) : 0);
setAll = true;
}
if ((gColOrigHeights.main + gColOrigHeights.col2 + gColOrigHeigh

ts.col3) > 0) {
var colInfo;
var maxH = Math.max(Math.max(gColOrigHeights.main, gColO
rigHeights.col2), gColOrigHeights.col3);
if ((gColMain.length) && ((gColOrigHeights.main < maxH)
|| (getObjHeight(gColMain) > maxH) || setAll)) {
setObjHeight(gColMain, maxH);
colInfo = getColInfo(gColMain);
if (colInfo.valid) { gColLows.main = colInfo.las
tElBottom; }
}
if ((gCol2.length) && ((gColOrigHeights.col2 < maxH) ||
(getObjHeight(gCol2) > maxH) || setAll)) {
setObjHeight(gCol2, maxH);
colInfo = getColInfo(gCol2);
if (colInfo.valid) { gColLows.col2 = colInfo.las
tElBottom; }
}
if ((gCol3.length) && ((gColOrigHeights.col3 < maxH) ||
(getObjHeight(gCol3) > maxH) || setAll)) {
setObjHeight(gCol3, maxH);
colInfo = getColInfo(gCol3);
if (colInfo.valid) { gColLows.col3 = colInfo.las
tElBottom; }
}
}
}
}
function getObjHeight(obj) {
if (obj instanceof jQuery) {
return obj.get(0).offsetHeight;
}
else if (obj instanceof Array) {
return obj[0].offsetHeight;
}
else {
return obj.offsetHeight;
}
}
function getObjWidth(obj) {
if (obj instanceof jQuery) {
return obj.get(0).offsetWidth;
}
else if (obj instanceof Array) {
return obj[0].offsetWidth;
}
else {
return obj.offsetWidth;
}
}
function setObjHeight(obj, h) {
if (typeof(h) == 'number') {
h = "" + h + "px";
}
if (obj instanceof jQuery) {
obj.get(0).style.height = h;
}
else if (obj instanceof Array) {
obj[0].style.height = h;

}
else {
obj.style.height = h;
}
}
function setObjWidth(obj, w) {
if (typeof(w) == 'number') {
w = "" + w + "px";
}
if (obj instanceof jQuery) {
obj.get(0).style.width = w;
}
else if (obj instanceof Array) {
obj[0].style.width = w;
}
else {
obj.style.width = w;
}
}
/* num pixels top of page has been scrolled offscreen */
function getPageOffset() {
var offset = new Object();
if( typeof( window.pageXOffset ) == 'number' ) {
offset.x = window.pageXOffset;
offset.y = window.pageYOffset;
} else if( document.body && ( document.body.scrollTop ) ) {
offset.x = document.body.scrollLeft;
offset.y = document.body.scrollTop;
} else if( document.documentElement && ( document.documentElement.scrollTop )
) {
offset.x = document.documentElement.scrollLeft;
offset.y = document.documentElement.scrollTop;
}
if (typeof(offset.x)=="undefined") { offset.x = 0; }
if (typeof(offset.y)=="undefined") { offset.y = 0; }
return offset;
}
function getViewportDim() {
var dim = new Object();
// non-IE
if (typeof window.innerWidth != 'undefined') {
dim.x = window.innerWidth;
dim.y = window.innerHeight;
}
// IE6 in standards compliant mode
else if (typeof document.documentElement != 'undefined'
&& typeof document.documentElement.clientWidth !=
'undefined' && document.documentElement.clientWidth != 0) {
dim.x = document.documentElement.clientWidth;
dim.y = document.documentElement.clientHeight;
}
// older versions of IE
else {
dim.x = document.getElementsByTagName('body')[0].clientWidth;
dim.y = document.getElementsByTagName('body')[0].clientHeight;
}
return dim;
}

function newWindowTargets() {
var newWins = $("a.in-nw");
if (newWins.length) {
newWins.each(
function() {
var $this = $(this);
$this.attr("target", "_blank");
modClass($this, 'in-nw-vis', 'in-nw');
}
);
}
}
function getSiteOption(optionName, defaultVal) {
if (typeof(defaultVal) == "undefined") {
defaultVal = gSiteOptionUnknown;
}
if (gSiteOptions == undefined) {
return defaultVal;
}
else if (gSiteOptions[optionName] == undefined) {
return defaultVal;
}
else {
return gSiteOptions[optionName];
}
}
function addPartHeaders(req) {
req.setRequestHeader('Accept', 'application/xhtml+xml');
req.setRequestHeader('Range', 'part=variant-contents');
}
function addCommonHeaders(req) {
if (typeof(callbackToken) != 'undefined') {
req.setRequestHeader('X-Token', callbackToken);
}
}
function allowsCookies() {
if (hasTestCookie()) {
return true;
}
else {
setTestCookie();
return hasTestCookie();
}
}
function setTestCookie() {
setCookie('cks','allowed',7,'/',null,null);
}
function hasTestCookie() {
var ckVal = getCookie('cks');
if ((ckVal != null) && (ckVal == 'allowed')) {
return true;
}
else {
return false;
}
}
var UIPrefsCk={

name: "UIPrefs",
expDays: 3652,
path: '/'
};
function prefDefined(name) {
var val = getPrefValue(name);
if (val == null) {
return false;
}
else {
return true;
}
}
function getPrefValue(name) {
var prefArray = getPrefArray();
if (prefArray) {
name = convertPrefString(name);
var match = name + ":";
for (var i = 0; i < prefArray.length; i++) {
if (prefArray[i].indexOf(match) == 0) {
return prefArray[i].substring(match.length);
}
else if (prefArray[i] == name) {
// name only, no value, return boolean true
return true;
}
}
}
return null;
}
function convertPrefString(str) {
if (str) {
return str.replace(/[,:=]/g,"");
}
return str;
}
function removePref(name) {
var prefArray = getPrefArray();
name = convertPrefString(name);
if (prefDefined(name)) {
var newArray = new Array(prefArray.length - 1);
var match = name + ":";
var newArrIndex = 0;
for (var i = 0; i < prefArray.length; i++) {
if (!((prefArray[i].indexOf(match) == 0) || (prefArray[i
] == name))) {
newArray[newArrIndex++] = prefArray[i];
}
}
setPrefCookie(newArray);
if (prefArray.length == 1) {
return null;
}
else {
return newArray;
}
}
else {
return prefArray;

}
}
function setPref(name, value) {
if (typeof(value) == "undefined") {
value = null;
}
if (name) {
name = convertPrefString(name);
var prefArray = removePref(name);
if (prefArray == null) {
prefArray = new Array;
}
var newArray = new Array(prefArray.length + 1);
var newPref = name + (((value != null) && (value != '')) ? (':'
+ value) : '');
newArray[0] = newPref;
for (var i = 0; i < prefArray.length; i++) {
newArray[i+1] = prefArray[i];
}
setPrefCookie(newArray);
return newArray;
}
else {
return getPrefArray();
}
}
function setPrefCookie(prefs) {
if (prefs && (prefs.length > 0)) {
var prefString;
if (typeof(prefs) == 'string') {
prefString = prefs;
}
else {
if (prefs.length == 1) {
prefString = prefs[0];
}
else {
prefString = prefs.join(',');
}
}
setCookie(UIPrefsCk.name, prefString, UIPrefsCk.expDays, UIPrefs
Ck.path, false, false);
}
else {
deleteCookie(UIPrefsCk.name, UIPrefsCk.path, false);
}
}
// individual pref items in the cookie are separated by ',' and
// nv pref pairs are joined by ':', i.e. n1:v1,n2:v2,n3:v3,etc.
// values are optional. (i.e. "n1,n2:v2,n3" is ok)
function getPrefArray() {
var cookieVal = getCookie(UIPrefsCk.name);
if (cookieVal != null) {
return cookieVal.split(',');
}
return null;
}
// http://www.dustindiaz.com/top-ten-javascript/

function getCookie( name ) {


var start = document.cookie.indexOf( name + "=" );
var len = start + name.length + 1;
if (((!start ) && (name != document.cookie.substring( 0, name.length )))
|| (start == -1)) {
return null;
}
var end = document.cookie.indexOf( ';', len );
if ( end == -1 ) end = document.cookie.length;
return unescape( document.cookie.substring( len, end ) );
}
function setCookie( name, value, expires, path, domain, secure ) {
var today = new Date();
today.setTime( today.getTime() );
if ( expires ) {
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date( today.getTime() + (expires) );
document.cookie = name+'='+escape( value ) +
( ( expires ) ? ';expires='+expires_date.toGMTString() : '' ) +
( ( path ) ? ';path=' + path : '' ) +
( ( domain ) ? ';domain=' + domain : '' ) +
( ( secure ) ? ';secure' : '' );
}
function deleteCookie( name, path, domain ) {
if ( getCookie( name ) ) document.cookie = name + '=' +
( ( path ) ? ';path=' + path : '') +
( ( domain ) ? ';domain=' + domain : '' ) +
';expires=Thu, 01-Jan-1970 00:00:01 GMT';
}
function modClass(jQueryEl, addClass, removeClass) {
if (jQueryEl.length) {
var exClass = jQueryEl.attr("class");
var classArr = new Array;
if ((exClass != undefined) && (exClass != '')) {
classArr = exClass.split(' ');
}
var newClass = '';
var addClassExisted = false;
for (var i = 0; i < classArr.length; i++) {
var classPart = classArr[i];
if (classPart != '') {
if (classPart != removeClass) {
if (classPart == addClass) {
addClassExisted = true;
}
newClass = addToDelimString(newClass, cl
assPart, ' ');
}
}
}
if (!addClassExisted) {
newClass = addToDelimString(newClass, addClass, ' ');
}
jQueryEl.attr("class",newClass);
}
}
function addToDelimString(origString, newPart, delim) {
var newString;

if ((origString == undefined) || (origString == '')) {


newString = newPart;
}
else {
newString = origString + delim + newPart;
}
return newString;
}
function debugOut(msg) {
if(window.console) {
window.console.log(msg);
}
/*
else {
alert(msg);
}
*/
}
function is_defined( variable)
{
return (typeof(window[variable]) == "undefined")? false: true;
}
function fancybox(elem) {
elem = $(elem);
if (!elem.data("fancybox")) {
elem.fancybox({
'overlayColor' : '#000',
'overlayOpacity' : 0.5
});
elem.fancybox().trigger('click');
elem.data("fancybox", true);
}
return false;
}
function handleccicons() {
if (gSiteOptions.enableCCIcons == true) {
var allCits = $("li.cit");
var contentpage = $("span.ccv");
var allpapCits = $("div.cit");
if ((allpapCits.length)) {
allCits = allpapCits;
}
if (allCits.length) {
allCits.each(
function(i) {
var permissionsLink;
var $thisCit = allCits.eq(i);
var creativeCommonsArticle = $thisCit.hasClass("creative-commons");
var creativeCommonsLicenseClass = $thisCit.attr("class");
var creativeCommonsLicenseValue = creativeCommonsLicenseClass.match(/creativ
e-commons-\S+/);
var creativeCommonsLicenseNumber;
if (creativeCommonsLicenseValue != undefined && creativeCommonsLicenseValue.
length)
{
creativeCommonsLicenseNumber = creativeCommonsLicenseValue[0].replace(/crea
tive-commons-/, '');

}
var openAccessArticle = $thisCit.hasClass("openaccess");
if (creativeCommonsArticle || openAccessArticle){
if (creativeCommonsLicenseNumber != "" || creativeCommonsLicenseNumber !=
undefined)
{
cciconslink= '<a href="http://creativecommons.org/licenses/' + creativeCom
monsLicenseNumber + '" class="creative-commons-js in-nw"><img src="http://i.crea
tivecommons.org/l/' + creativeCommonsLicenseNumber + '/80x15.png" /></a>';
cciconslinkOther = '<div class="cc-icons-link"><a href="http://creativecom
mons.org/licenses/' + creativeCommonsLicenseNumber + '" class="creative-commonsjs in-nw"><img src="http://i.creativecommons.org/l/' + creativeCommonsLicenseNum
ber + '/80x15.png" /></a></div>';
if ($thisCit.find("span.cit-flags").length > 0) {
$thisCit.find("span.cit-flags").append(cciconslink);
}
else {
$thisCit.find("div.cit-extra").append(cciconslinkOther);
}
}
}
});
}
if (contentpage.length) {
var permissionsLink;
var $thisCit = contentpage;
var creativeCommonsArticle = $thisCit.hasClass("ccv");
var creativeCommonsLicenseClass = $thisCit.attr("class");
var creativeCommonsLicenseValue = creativeCommonsLicenseClass.match(/cc-vers
ion-\S+/);
var creativeCommonsLicenseNumber;
if (creativeCommonsLicenseValue != undefined && creativeCommonsLicenseValue.
length)
{
creativeCommonsLicenseNumber = creativeCommonsLicenseValue[0].replace(/cc-v
ersion-/, '');
}
var openAccessArticle = $thisCit.hasClass("openaccess");
if (creativeCommonsArticle || openAccessArticle){
if (creativeCommonsLicenseNumber != "" || creativeCommonsLicenseNumber !=
undefined)
{
cciconslink= '<a href="http://creativecommons.org/licenses/' + creativeCom
monsLicenseNumber + '" class="creative-commons-js in-nw"><img src="http://i.crea
tivecommons.org/l/' + creativeCommonsLicenseNumber + '/80x15.png" /></a>';
cciconslinkOther = '<div class="cc-icons-link"><a href="http://creativecom
mons.org/licenses/' + creativeCommonsLicenseNumber + '" class="creative-commonsjs in-nw"><img src="http://i.creativecommons.org/l/' + creativeCommonsLicenseNum
ber + '/80x15.png" /></a></div>';
if ($thisCit.length > 0) {
$thisCit.append(cciconslink);
}
}
}
}
}
}

function smudge() {
var fp1 = new Fingerprint().get();
if (fp1 != null) {
$.ajax({
'type' : "GET",
'url' : '/smudge',
'data' : {'ub' : fp1},
success: function(data) { }
});
}
}
this.constructor(null)},push:d,sort:[].sort,splice:[].splice},b.fn.init.prototyp
e=b.fn,b.extend=b.fn.extend=function(){var e,n,r,i,o,a,s=arguments[0]||{},u=1,l=
arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[1]||{},u=2),"obj
ect"==typeof s||b.isFunction(s)||(s={}),l===u&&(s=this,--u);l>u;u++)if(null!=(o=
arguments[u]))for(i in o)e=s[i],r=o[i],s!==r&&(c&&r&&(b.isPlainObject(r)||(n=b.i
sArray(r)))?(n?(n=!1,a=e&&b.isArray(e)?e:[]):a=e&&b.isPlainObject(e)?e:{},s[i]=b
.extend(c,a,r)):r!==t&&(s[i]=r));return s},b.extend({noConflict:function(t){retu
rn e.$===b&&(e.$=u),t&&e.jQuery===b&&(e.jQuery=s),b},isReady:!1,readyWait:1,hold
Ready:function(e){e?b.readyWait++:b.ready(!0)},ready:function(e){if(e===!0?!--b.
readyWait:!b.isReady){if(!o.body)return setTimeout(b.ready);b.isReady=!0,e!==!0&
&--b.readyWait>0||(n.resolveWith(o,[b]),b.fn.trigger&&b(o).trigger("ready").off(
"ready"))}},isFunction:function(e){return"function"===b.type(e)},isArray:Array.i
sArray||function(e){return"array"===b.type(e)},isWindow:function(e){return null!
=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)}
,type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?l
[m.call(e)]||"object":typeof e},isPlainObject:function(e){if(!e||"object"!==b.ty
pe(e)||e.nodeType||b.isWindow(e))return!1;try{if(e.constructor&&!y.call(e,"const
ructor")&&!y.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(n){ret
urn!1}var r;for(r in e);return r===t||y.call(e,r)},isEmptyObject:function(e){var
t;for(t in e)return!1;return!0},error:function(e){throw Error(e)},parseHTML:fun
ction(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!
1),t=t||o;var r=C.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=b.buildFr
agment([e],t,i),i&&b(i).remove(),b.merge([],r.childNodes))},parseJSON:function(n
){return e.JSON&&e.JSON.parse?e.JSON.parse(n):null===n?n:"string"==typeof n&&(n=
b.trim(n),n&&k.test(n.replace(S,"@").replace(A,"]").replace(E,"")))?Function("re
turn "+n)():(b.error("Invalid JSON: "+n),t)},parseXML:function(n){var r,i;if(!n|
|"string"!=typeof n)return null;try{e.DOMParser?(i=new DOMParser,r=i.parseFromSt
ring(n,"text/xml")):(r=new ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.l
oadXML(n))}catch(o){r=t}return r&&r.documentElement&&!r.getElementsByTagName("pa
rsererror").length||b.error("Invalid XML: "+n),r},noop:function(){},globalEval:f
unction(t){t&&b.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camel
Case:function(e){return e.replace(j,"ms-").replace(D,L)},nodeName:function(e,t){
return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t
,n){var r,i=0,o=e.length,a=M(e);if(n){if(a){for(;o>i;i++)if(r=t.apply(e[i],n),r=
==!1)break}else for(i in e)if(r=t.apply(e[i],n),r===!1)break}else if(a){for(;o>i
;i++)if(r=t.call(e[i],i,e[i]),r===!1)break}else for(i in e)if(r=t.call(e[i],i,e[
i]),r===!1)break;return e},trim:v&&!v.call("\ufeff\u00a0")?function(e){return nu
ll==e?"":v.call(e)}:function(e){return null==e?"":(e+"").replace(T,"")},makeArra
y:function(e,t){var n=t||[];return null!=e&&(M(Object(e))?b.merge(n,"string"==ty
peof e?[e]:e):d.call(n,e)),n},inArray:function(e,t,n){var r;if(t){if(g)return g.
call(t,e,n);for(r=t.length,n=n?0>n?Math.max(0,r+n):n:0;r>n;n++)if(n in t&&t[n]==
=e)return n}return-1},merge:function(e,n){var r=n.length,i=e.length,o=0;if("numb
er"==typeof r)for(;r>o;o++)e[i++]=n[o];else while(n[o]!==t)e[i++]=n[o++];return
e.length=i,e},grep:function(e,t,n){var r,i=[],o=0,a=e.length;for(n=!!n;a>o;o++)r
=!!t(e[o],o),n!==r&&i.push(e[o]);return i},map:function(e,t,n){var r,i=0,o=e.len
gth,a=M(e),s=[];if(a)for(;o>i;i++)r=t(e[i],i,n),null!=r&&(s[s.length]=r);else fo
r(i in e)r=t(e[i],i,n),null!=r&&(s[s.length]=r);return f.apply([],s)},guid:1,pro
xy:function(e,n){var r,i,o;return"string"==typeof n&&(o=e[n],n=e,e=o),b.isFuncti

on(e)?(r=h.call(arguments,2),i=function(){return e.apply(n||this,r.concat(h.call
(arguments)))},i.guid=e.guid=e.guid||b.guid++,i):t},access:function(e,n,r,i,o,a,
s){var u=0,l=e.length,c=null==r;if("object"===b.type(r)){o=!0;for(u in r)b.acces
s(e,n,u,r[u],!0,a,s)}else if(i!==t&&(o=!0,b.isFunction(i)||(s=!0),c&&(s?(n.call(
e,i),n=null):(c=n,n=function(e,t,n){return c.call(b(e),n)})),n))for(;l>u;u++)n(e
[u],r,s?i:i.call(e[u],u,n(e[u],r)));return o?e:c?n.call(e):l?n(e[0],r):a},now:fu
nction(){return(new Date).getTime()}}),b.ready.promise=function(t){if(!n)if(n=b.
Deferred(),"complete"===o.readyState)setTimeout(b.ready);else if(o.addEventListe
ner)o.addEventListener("DOMContentLoaded",H,!1),e.addEventListener("load",H,!1);
else{o.attachEvent("onreadystatechange",H),e.attachEvent("onload",H);var r=!1;tr
y{r=null==e.frameElement&&o.documentElement}catch(i){}r&&r.doScroll&&function a(
){if(!b.isReady){try{r.doScroll("left")}catch(e){return setTimeout(a,50)}q(),b.r
eady()}}()}return n.promise(t)},b.each("Boolean Number String Function Array Dat
e RegExp Object Error".split(" "),function(e,t){l["[object "+t+"]"]=t.toLowerCas
e()});function M(e){var t=e.length,n=b.type(e);return b.isWindow(e)?!1:1===e.nod
eType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in
e)}r=b(o);var _={};function F(e){var t=_[e]={};return b.each(e.match(w)||[],fun
ction(e,n){t[n]=!0}),t}b.Callbacks=function(e){e="string"==typeof e?_[e]||F(e):b
.extend({},e);var n,r,i,o,a,s,u=[],l=!e.once&&[],c=function(t){for(r=e.memory&&t
,i=!0,a=s||0,s=0,o=u.length,n=!0;u&&o>a;a++)if(u[a].apply(t[0],t[1])===!1&&e.sto
pOnFalse){r=!1;break}n=!1,u&&(l?l.length&&c(l.shift()):r?u=[]:p.disable())},p={a
dd:function(){if(u){var t=u.length;(function i(t){b.each(t,function(t,n){var r=b
.type(n);"function"===r?e.unique&&p.has(n)||u.push(n):n&&n.length&&"string"!==r&
&i(n)})})(arguments),n?o=u.length:r&&(s=t,c(r))}return this},remove:function(){r
eturn u&&b.each(arguments,function(e,t){var r;while((r=b.inArray(t,u,r))>-1)u.sp
lice(r,1),n&&(o>=r&&o--,a>=r&&a--)}),this},has:function(e){return e?b.inArray(e,
u)>-1:!(!u||!u.length)},empty:function(){return u=[],this},disable:function(){re
turn u=l=r=t,this},disabled:function(){return!u},lock:function(){return l=t,r||p
.disable(),this},locked:function(){return!l},fireWith:function(e,t){return t=t||
[],t=[e,t.slice?t.slice():t],!u||i&&!l||(n?l.push(t):c(t)),this},fire:function()
{return p.fireWith(this,arguments),this},fired:function(){return!!i}};return p},
b.extend({Deferred:function(e){var t=[["resolve","done",b.Callbacks("once memory
"),"resolved"],["reject","fail",b.Callbacks("once memory"),"rejected"],["notify"
,"progress",b.Callbacks("memory")]],n="pending",r={state:function(){return n},al
ways:function(){return i.done(arguments).fail(arguments),this},then:function(){v
ar e=arguments;return b.Deferred(function(n){b.each(t,function(t,o){var a=o[0],s
=b.isFunction(e[t])&&e[t];i[o[1]](function(){var e=s&&s.apply(this,arguments);e&
&b.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.n
otify):n[a+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promi
se()},promise:function(e){return null!=e?b.extend(e,r):r}},i={};return r.pipe=r.
then,b.each(t,function(e,o){var a=o[2],s=o[3];r[o[1]]=a.add,s&&a.add(function(){
n=s},t[1^e][2].disable,t[2][2].lock),i[o[0]]=function(){return i[o[0]+"With"](th
is===i?r:this,arguments),this},i[o[0]+"With"]=a.fireWith}),r.promise(i),e&&e.cal
l(i,i),i},when:function(e){var t=0,n=h.call(arguments),r=n.length,i=1!==r||e&&b.
isFunction(e.promise)?r:0,o=1===i?e:b.Deferred(),a=function(e,t,n){return functi
on(r){t[e]=this,n[e]=arguments.length>1?h.call(arguments):r,n===s?o.notifyWith(t
,n):--i||o.resolveWith(t,n)}},s,u,l;if(r>1)for(s=Array(r),u=Array(r),l=Array(r);
r>t;t++)n[t]&&b.isFunction(n[t].promise)?n[t].promise().done(a(t,l,n)).fail(o.re
ject).progress(a(t,u,s)):--i;return i||o.resolveWith(l,n),o.promise()}}),b.suppo
rt=function(){var t,n,r,a,s,u,l,c,p,f,d=o.createElement("div");if(d.setAttribute
("className","t"),d.innerHTML=" <link/><table></table><a href='/a'>a</a><input
type='checkbox'/>",n=d.getElementsByTagName("*"),r=d.getElementsByTagName("a")[0
],!n||!r||!n.length)return{};s=o.createElement("select"),l=s.appendChild(o.creat
eElement("option")),a=d.getElementsByTagName("input")[0],r.style.cssText="top:1p
x;float:left;opacity:.5",t={getSetAttribute:"t"!==d.className,leadingWhitespace:
3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSeri
alize:!!d.getElementsByTagName("link").length,style:/top/.test(r.getAttribute("s
tyle")),hrefNormalized:"/a"===r.getAttribute("href"),opacity:/^0.5/.test(r.style
.opacity),cssFloat:!!r.style.cssFloat,checkOn:!!a.value,optSelected:l.selected,e
nctype:!!o.createElement("form").enctype,html5Clone:"<:nav></:nav>"!==o.createEl

ement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===o.compatMode,delete
Expando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliabl
eMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChe
cked=a.cloneNode(!0).checked,s.disabled=!0,t.optDisabled=!l.disabled;try{delete
d.test}catch(h){t.deleteExpando=!1}a=o.createElement("input"),a.setAttribute("va
lue",""),t.input=""===a.getAttribute("value"),a.value="t",a.setAttribute("type",
"radio"),t.radioValue="t"===a.value,a.setAttribute("checked","t"),a.setAttribute
("name","t"),u=o.createDocumentFragment(),u.appendChild(a),t.appendChecked=a.che
cked,t.checkClone=u.cloneNode(!0).cloneNode(!0).lastChild.checked,d.attachEvent&
&(d.attachEvent("onclick",function(){t.noCloneEvent=!1}),d.cloneNode(!0).click()
);for(f in{submit:!0,change:!0,focusin:!0})d.setAttribute(c="on"+f,"t"),t[f+"Bub
bles"]=c in e||d.attributes[c].expando===!1;return d.style.backgroundClip="conte
nt-box",d.cloneNode(!0).style.backgroundClip="",t.clearCloneStyle="content-box"=
==d.style.backgroundClip,b(function(){var n,r,a,s="padding:0;margin:0;border:0;d
isplay:block;box-sizing:content-box;-moz-box-sizing:content-box;-webkit-box-sizi
ng:content-box;",u=o.getElementsByTagName("body")[0];u&&(n=o.createElement("div"
),n.style.cssText="border:0;width:0;height:0;position:absolute;top:0;left:-9999p
x;margin-top:1px",u.appendChild(n).appendChild(d),d.innerHTML="<table><tr><td></
td><td>t</td></tr></table>",a=d.getElementsByTagName("td"),a[0].style.cssText="p
adding:0;margin:0;border:0;display:none",p=0===a[0].offsetHeight,a[0].style.disp
lay="",a[1].style.display="none",t.reliableHiddenOffsets=p&&0===a[0].offsetHeigh
t,d.innerHTML="",d.style.cssText="box-sizing:border-box;-moz-box-sizing:border-b
ox;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;
margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===d.offsetWidth,t.doesNot
IncludeMarginInBodyOffset=1!==u.offsetTop,e.getComputedStyle&&(t.pixelPosition="
1%"!==(e.getComputedStyle(d,null)||{}).top,t.boxSizingReliable="4px"===(e.getCom
putedStyle(d,null)||{width:"4px"}).width,r=d.appendChild(o.createElement("div"))
,r.style.cssText=d.style.cssText=s,r.style.marginRight=r.style.width="0",d.style
.width="1px",t.reliableMarginRight=!parseFloat((e.getComputedStyle(r,null)||{}).
marginRight)),typeof d.style.zoom!==i&&(d.innerHTML="",d.style.cssText=s+"width:
1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===d.offsetWidt
h,d.style.display="block",d.innerHTML="<div></div>",d.firstChild.style.width="5p
x",t.shrinkWrapBlocks=3!==d.offsetWidth,t.inlineBlockNeedsLayout&&(u.style.zoom=
1)),u.removeChild(n),n=d=a=r=null)}),n=s=u=l=r=a=null,t}();var O=/(?:\{[\s\S]*\}
|\[[\s\S]*\])$/,B=/([A-Z])/g;function P(e,n,r,i){if(b.acceptData(e)){var o,a,s=b
.expando,u="string"==typeof n,l=e.nodeType,p=l?b.cache:e,f=l?e[s]:e[s]&&s;if(f&&
p[f]&&(i||p[f].data)||!u||r!==t)return f||(l?e[s]=f=c.pop()||b.guid++:f=s),p[f]|
|(p[f]={},l||(p[f].toJSON=b.noop)),("object"==typeof n||"function"==typeof n)&&(
i?p[f]=b.extend(p[f],n):p[f].data=b.extend(p[f].data,n)),o=p[f],i||(o.data||(o.d
ata={}),o=o.data),r!==t&&(o[b.camelCase(n)]=r),u?(a=o[n],null==a&&(a=o[b.camelCa
se(n)])):a=o,a}}function R(e,t,n){if(b.acceptData(e)){var r,i,o,a=e.nodeType,s=a
?b.cache:e,u=a?e[b.expando]:b.expando;if(s[u]){if(t&&(o=n?s[u]:s[u].data)){b.isA
rray(t)?t=t.concat(b.map(t,b.camelCase)):t in o?t=[t]:(t=b.camelCase(t),t=t in o
?[t]:t.split(" "));for(r=0,i=t.length;i>r;r++)delete o[t[r]];if(!(n?$:b.isEmptyO
bject)(o))return}(n||(delete s[u].data,$(s[u])))&&(a?b.cleanData([e],!0):b.suppo
rt.deleteExpando||s!=s.window?delete s[u]:s[u]=null)}}}b.extend({cache:{},expand
o:"jQuery"+(p+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D2
7CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.no
deType?b.cache[e[b.expando]]:e[b.expando],!!e&&!$(e)},data:function(e,t,n){retur
n P(e,t,n)},removeData:function(e,t){return R(e,t)},_data:function(e,t,n){return
P(e,t,n,!0)},_removeData:function(e,t){return R(e,t,!0)},acceptData:function(e)
{if(e.nodeType&&1!==e.nodeType&&9!==e.nodeType)return!1;var t=e.nodeName&&b.noDa
ta[e.nodeName.toLowerCase()];return!t||t!==!0&&e.getAttribute("classid")===t}}),
b.fn.extend({data:function(e,n){var r,i,o=this[0],a=0,s=null;if(e===t){if(this.l
ength&&(s=b.data(o),1===o.nodeType&&!b._data(o,"parsedAttrs"))){for(r=o.attribut
es;r.length>a;a++)i=r[a].name,i.indexOf("data-")||(i=b.camelCase(i.slice(5)),W(o
,i,s[i]));b._data(o,"parsedAttrs",!0)}return s}return"object"==typeof e?this.eac
h(function(){b.data(this,e)}):b.access(this,function(n){return n===t?o?W(o,e,b.d
ata(o,e)):null:(this.each(function(){b.data(this,e,n)}),t)},null,n,arguments.len
gth>1,null,!0)},removeData:function(e){return this.each(function(){b.removeData(

this,e)})}});function W(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace


(B,"-$1").toLowerCase();if(r=e.getAttribute(i),"string"==typeof r){try{r="true"=
==r?!0:"false"===r?!1:"null"===r?null:+r+""===r?+r:O.test(r)?b.parseJSON(r):r}ca
tch(o){}b.data(e,n,r)}else r=t}return r}function $(e){var t;for(t in e)if(("data
"!==t||!b.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}b.extend({queue:f
unction(e,n,r){var i;return e?(n=(n||"fx")+"queue",i=b._data(e,n),r&&(!i||b.isAr
ray(r)?i=b._data(e,n,b.makeArray(r)):i.push(r)),i||[]):t},dequeue:function(e,t){
t=t||"fx";var n=b.queue(e,t),r=n.length,i=n.shift(),o=b._queueHooks(e,t),a=funct
ion(){b.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),o.cur=i,i&&("fx"===t&&
n.unshift("inprogress"),delete o.stop,i.call(e,a,o)),!r&&o&&o.empty.fire()},_que
ueHooks:function(e,t){var n=t+"queueHooks";return b._data(e,n)||b._data(e,n,{emp
ty:b.Callbacks("once memory").add(function(){b._removeData(e,t+"queue"),b._remov
eData(e,n)})})}}),b.fn.extend({queue:function(e,n){var r=2;return"string"!=typeo
f e&&(n=e,e="fx",r--),r>arguments.length?b.queue(this[0],e):n===t?this:this.each
(function(){var t=b.queue(this,e,n);b._queueHooks(this,e),"fx"===e&&"inprogress"
!==t[0]&&b.dequeue(this,e)})},dequeue:function(e){return this.each(function(){b.
dequeue(this,e)})},delay:function(e,t){return e=b.fx?b.fx.speeds[e]||e:e,t=t||"f
x",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeo
ut(r)}})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function
(e,n){var r,i=1,o=b.Deferred(),a=this,s=this.length,u=function(){--i||o.resolveW
ith(a,[a])};"string"!=typeof e&&(n=e,e=t),e=e||"fx";while(s--)r=b._data(a[s],e+"
queueHooks"),r&&r.empty&&(i++,r.empty.add(u));return u(),o.promise(n)}});var I,z
,X=/[\t\r\n]/g,U=/\r/g,V=/^(?:input|select|textarea|button|object)$/i,Y=/^(?:a|a
rea)$/i,J=/^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled
|hidden|loop|multiple|open|readonly|required|scoped)$/i,G=/^(?:checked|selected)
$/i,Q=b.support.getSetAttribute,K=b.support.input;b.fn.extend({attr:function(e,t
){return b.access(this,b.attr,e,t,arguments.length>1)},removeAttr:function(e){re
turn this.each(function(){b.removeAttr(this,e)})},prop:function(e,t){return b.ac
cess(this,b.prop,e,t,arguments.length>1)},removeProp:function(e){return e=b.prop
Fix[e]||e,this.each(function(){try{this[e]=t,delete this[e]}catch(n){}})},addCla
ss:function(e){var t,n,r,i,o,a=0,s=this.length,u="string"==typeof e&&e;if(b.isFu
nction(e))return this.each(function(t){b(this).addClass(e.call(this,t,this.class
Name))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a],r=1===n.nodeType&&
(n.className?(" "+n.className+" ").replace(X," "):" ")){o=0;while(i=t[o++])0>r.i
ndexOf(" "+i+" ")&&(r+=i+" ");n.className=b.trim(r)}return this},removeClass:fun
ction(e){var t,n,r,i,o,a=0,s=this.length,u=0===arguments.length||"string"==typeo
f e&&e;if(b.isFunction(e))return this.each(function(t){b(this).removeClass(e.cal
l(this,t,this.className))});if(u)for(t=(e||"").match(w)||[];s>a;a++)if(n=this[a]
,r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(X," "):"")){o=0;wh
ile(i=t[o++])while(r.indexOf(" "+i+" ")>=0)r=r.replace(" "+i+" "," ");n.classNam
e=e?b.trim(r):""}return this},toggleClass:function(e,t){var n=typeof e,r="boolea
n"==typeof t;return b.isFunction(e)?this.each(function(n){b(this).toggleClass(e.
call(this,n,this.className,t),t)}):this.each(function(){if("string"===n){var o,a
=0,s=b(this),u=t,l=e.match(w)||[];while(o=l[a++])u=r?u:!s.hasClass(o),s[u?"addCl
ass":"removeClass"](o)}else(n===i||"boolean"===n)&&(this.className&&b._data(this
,"__className__",this.className),this.className=this.className||e===!1?"":b._dat
a(this,"__className__")||"")})},hasClass:function(e){var t=" "+e+" ",n=0,r=this.
length;for(;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace
(X," ").indexOf(t)>=0)return!0;return!1},val:function(e){var n,r,i,o=this[0];{if
(arguments.length)return i=b.isFunction(e),this.each(function(n){var o,a=b(this)
;1===this.nodeType&&(o=i?e.call(this,n,a.val()):e,null==o?o="":"number"==typeof
o?o+="":b.isArray(o)&&(o=b.map(o,function(e){return null==e?"":e+""})),r=b.valHo
oks[this.type]||b.valHooks[this.nodeName.toLowerCase()],r&&"set"in r&&r.set(this
,o,"value")!==t||(this.value=o))});if(o)return r=b.valHooks[o.type]||b.valHooks[
o.nodeName.toLowerCase()],r&&"get"in r&&(n=r.get(o,"value"))!==t?n:(n=o.value,"s
tring"==typeof n?n.replace(U,""):null==n?"":n)}}}),b.extend({valHooks:{option:{g
et:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},s
elect:{get:function(e){var t,n,r=e.options,i=e.selectedIndex,o="select-one"===e.
type||0>i,a=o?null:[],s=o?i+1:r.length,u=0>i?s:o?i:0;for(;s>u;u++)if(n=r[u],!(!n
.selected&&u!==i||(b.support.optDisabled?n.disabled:null!==n.getAttribute("disab

led"))||n.parentNode.disabled&&b.nodeName(n.parentNode,"optgroup"))){if(t=b(n).v
al(),o)return t;a.push(t)}return a},set:function(e,t){var n=b.makeArray(t);retur
n b(e).find("option").each(function(){this.selected=b.inArray(b(this).val(),n)>=
0}),n.length||(e.selectedIndex=-1),n}}},attr:function(e,n,r){var o,a,s,u=e.nodeT
ype;if(e&&3!==u&&8!==u&&2!==u)return typeof e.getAttribute===i?b.prop(e,n,r):(a=
1!==u||!b.isXMLDoc(e),a&&(n=n.toLowerCase(),o=b.attrHooks[n]||(J.test(n)?z:I)),r
===t?o&&a&&"get"in o&&null!==(s=o.get(e,n))?s:(typeof e.getAttribute!==i&&(s=e.g
etAttribute(n)),null==s?t:s):null!==r?o&&a&&"set"in o&&(s=o.set(e,r,n))!==t?s:(e
.setAttribute(n,r+""),r):(b.removeAttr(e,n),t))},removeAttr:function(e,t){var n,
r,i=0,o=t&&t.match(w);if(o&&1===e.nodeType)while(n=o[i++])r=b.propFix[n]||n,J.te
st(n)?!Q&&G.test(n)?e[b.camelCase("default-"+n)]=e[r]=!1:e[r]=!1:b.attr(e,n,""),
e.removeAttribute(Q?n:r)},attrHooks:{type:{set:function(e,t){if(!b.support.radio
Value&&"radio"===t&&b.nodeName(e,"input")){var n=e.value;return e.setAttribute("
type",t),n&&(e.value=n),t}}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","
for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacin
g",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap"
,frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(e,n,
r){var i,o,a,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return a=1!==s||!b.isXMLDoc(
e),a&&(n=b.propFix[n]||n,o=b.propHooks[n]),r!==t?o&&"set"in o&&(i=o.set(e,r,n))!
==t?i:e[n]=r:o&&"get"in o&&null!==(i=o.get(e,n))?i:e[n]},propHooks:{tabIndex:{ge
t:function(e){var n=e.getAttributeNode("tabindex");return n&&n.specified?parseIn
t(n.value,10):V.test(e.nodeName)||Y.test(e.nodeName)&&e.href?0:t}}}}),z={get:fun
ction(e,n){var r=b.prop(e,n),i="boolean"==typeof r&&e.getAttribute(n),o="boolean
"==typeof r?K&&Q?null!=i:G.test(n)?e[b.camelCase("default-"+n)]:!!i:e.getAttribu
teNode(n);return o&&o.value!==!1?n.toLowerCase():t},set:function(e,t,n){return t
===!1?b.removeAttr(e,n):K&&Q||!G.test(n)?e.setAttribute(!Q&&b.propFix[n]||n,n):e
[b.camelCase("default-"+n)]=e[n]=!0,n}},K&&Q||(b.attrHooks.value={get:function(e
,n){var r=e.getAttributeNode(n);return b.nodeName(e,"input")?e.defaultValue:r&&r
.specified?r.value:t},set:function(e,n,r){return b.nodeName(e,"input")?(e.defaul
tValue=n,t):I&&I.set(e,n,r)}}),Q||(I=b.valHooks.button={get:function(e,n){var r=
e.getAttributeNode(n);return r&&("id"===n||"name"===n||"coords"===n?""!==r.value
:r.specified)?r.value:t},set:function(e,n,r){var i=e.getAttributeNode(r);return
i||e.setAttributeNode(i=e.ownerDocument.createAttribute(r)),i.value=n+="","value
"===r||n===e.getAttribute(r)?n:t}},b.attrHooks.contenteditable={get:I.get,set:fu
nction(e,t,n){I.set(e,""===t?!1:t,n)}},b.each(["width","height"],function(e,n){b
.attrHooks[n]=b.extend(b.attrHooks[n],{set:function(e,r){return""===r?(e.setAttr
ibute(n,"auto"),r):t}})})),b.support.hrefNormalized||(b.each(["href","src","widt
h","height"],function(e,n){b.attrHooks[n]=b.extend(b.attrHooks[n],{get:function(
e){var r=e.getAttribute(n,2);return null==r?t:r}})}),b.each(["href","src"],funct
ion(e,t){b.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),b.suppo
rt.style||(b.attrHooks.style={get:function(e){return e.style.cssText||t},set:fun
ction(e,t){return e.style.cssText=t+""}}),b.support.optSelected||(b.propHooks.se
lected=b.extend(b.propHooks.selected,{get:function(e){var t=e.parentNode;return
t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null}})),b.support
.enctype||(b.propFix.enctype="encoding"),b.support.checkOn||b.each(["radio","che
ckbox"],function(){b.valHooks[this]={get:function(e){return null===e.getAttribut
e("value")?"on":e.value}}}),b.each(["radio","checkbox"],function(){b.valHooks[th
is]=b.extend(b.valHooks[this],{set:function(e,n){return b.isArray(n)?e.checked=b
.inArray(b(e).val(),n)>=0:t}})});var Z=/^(?:input|select|textarea)$/i,et=/^key/,
tt=/^(?:mouse|contextmenu)|click/,nt=/^(?:focusinfocus|focusoutblur)$/,rt=/^([^.
]*)(?:\.(.+)|)$/;function it(){return!0}function ot(){return!1}b.event={global:{
},add:function(e,n,r,o,a){var s,u,l,c,p,f,d,h,g,m,y,v=b._data(e);if(v){r.handler
&&(c=r,r=c.handler,a=c.selector),r.guid||(r.guid=b.guid++),(u=v.events)||(u=v.ev
ents={}),(f=v.handle)||(f=v.handle=function(e){return typeof b===i||e&&b.event.t
riggered===e.type?t:b.event.dispatch.apply(f.elem,arguments)},f.elem=e),n=(n||""
).match(w)||[""],l=n.length;while(l--)s=rt.exec(n[l])||[],g=y=s[1],m=(s[2]||"").
split(".").sort(),p=b.event.special[g]||{},g=(a?p.delegateType:p.bindType)||g,p=
b.event.special[g]||{},d=b.extend({type:g,origType:y,data:o,handler:r,guid:r.gui
d,selector:a,needsContext:a&&b.expr.match.needsContext.test(a),namespace:m.join(
".")},c),(h=u[g])||(h=u[g]=[],h.delegateCount=0,p.setup&&p.setup.call(e,o,m,f)!=

=!1||(e.addEventListener?e.addEventListener(g,f,!1):e.attachEvent&&e.attachEvent
("on"+g,f))),p.add&&(p.add.call(e,d),d.handler.guid||(d.handler.guid=r.guid)),a?
h.splice(h.delegateCount++,0,d):h.push(d),b.event.global[g]=!0;e=null}},remove:f
unction(e,t,n,r,i){var o,a,s,u,l,c,p,f,d,h,g,m=b.hasData(e)&&b._data(e);if(m&&(c
=m.events)){t=(t||"").match(w)||[""],l=t.length;while(l--)if(s=rt.exec(t[l])||[]
,d=g=s[1],h=(s[2]||"").split(".").sort(),d){p=b.event.special[d]||{},d=(r?p.dele
gateType:p.bindType)||d,f=c[d]||[],s=s[2]&&RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|
)")+"(\\.|$)"),u=o=f.length;while(o--)a=f[o],!i&&g!==a.origType||n&&n.guid!==a.g
uid||s&&!s.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.spl
ice(o,1),a.selector&&f.delegateCount--,p.remove&&p.remove.call(e,a));u&&!f.lengt
h&&(p.teardown&&p.teardown.call(e,h,m.handle)!==!1||b.removeEvent(e,d,m.handle),
delete c[d])}else for(d in c)b.event.remove(e,d+t[l],n,r,!0);b.isEmptyObject(c)&
&(delete m.handle,b._removeData(e,"events"))}},trigger:function(n,r,i,a){var s,u
,l,c,p,f,d,h=[i||o],g=y.call(n,"type")?n.type:n,m=y.call(n,"namespace")?n.namesp
ace.split("."):[];if(l=f=i=i||o,3!==i.nodeType&&8!==i.nodeType&&!nt.test(g+b.eve
nt.triggered)&&(g.indexOf(".")>=0&&(m=g.split("."),g=m.shift(),m.sort()),u=0>g.i
ndexOf(":")&&"on"+g,n=n[b.expando]?n:new b.Event(g,"object"==typeof n&&n),n.isTr
igger=!0,n.namespace=m.join("."),n.namespace_re=n.namespace?RegExp("(^|\\.)"+m.j
oin("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=t,n.target||(n.target=i),r=null==r
?[n]:b.makeArray(r,[n]),p=b.event.special[g]||{},a||!p.trigger||p.trigger.apply(
i,r)!==!1)){if(!a&&!p.noBubble&&!b.isWindow(i)){for(c=p.delegateType||g,nt.test(
c+g)||(l=l.parentNode);l;l=l.parentNode)h.push(l),f=l;f===(i.ownerDocument||o)&&
h.push(f.defaultView||f.parentWindow||e)}d=0;while((l=h[d++])&&!n.isPropagationS
topped())n.type=d>1?c:p.bindType||g,s=(b._data(l,"events")||{})[n.type]&&b._data
(l,"handle"),s&&s.apply(l,r),s=u&&l[u],s&&b.acceptData(l)&&s.apply&&s.apply(l,r)
===!1&&n.preventDefault();if(n.type=g,!(a||n.isDefaultPrevented()||p._default&&p
._default.apply(i.ownerDocument,r)!==!1||"click"===g&&b.nodeName(i,"a")||!b.acce
ptData(i)||!u||!i[g]||b.isWindow(i))){f=i[u],f&&(i[u]=null),b.event.triggered=g;
try{i[g]()}catch(v){}b.event.triggered=t,f&&(i[u]=f)}return n.result}},dispatch:
function(e){e=b.event.fix(e);var n,r,i,o,a,s=[],u=h.call(arguments),l=(b._data(t
his,"events")||{})[e.type]||[],c=b.event.special[e.type]||{};if(u[0]=e,e.delegat
eTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){s=b.event.handlers
.call(this,e,l),n=0;while((o=s[n++])&&!e.isPropagationStopped()){e.currentTarget
=o.elem,a=0;while((i=o.handlers[a++])&&!e.isImmediatePropagationStopped())(!e.na
mespace_re||e.namespace_re.test(i.namespace))&&(e.handleObj=i,e.data=i.data,r=((
b.event.special[i.origType]||{}).handle||i.handler).apply(o.elem,u),r!==t&&(e.re
sult=r)===!1&&(e.preventDefault(),e.stopPropagation()))}return c.postDispatch&&c
.postDispatch.call(this,e),e.result}},handlers:function(e,n){var r,i,o,a,s=[],u=
n.delegateCount,l=e.target;if(u&&l.nodeType&&(!e.button||"click"!==e.type))for(;
l!=this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.ty
pe)){for(o=[],a=0;u>a;a++)i=n[a],r=i.selector+" ",o[r]===t&&(o[r]=i.needsContext
?b(r,this).index(l)>=0:b.find(r,this,null,[l]).length),o[r]&&o.push(i);o.length&
&s.push({elem:l,handlers:o})}return n.length>u&&s.push({elem:this,handlers:n.sli
ce(u)}),s},fix:function(e){if(e[b.expando])return e;var t,n,r,i=e.type,a=e,s=thi
s.fixHooks[i];s||(this.fixHooks[i]=s=tt.test(i)?this.mouseHooks:et.test(i)?this.
keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new b.Event(a),t=
r.length;while(t--)n=r[t],e[n]=a[n];return e.target||(e.target=a.srcElement||o),
3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,s.fi
lter?s.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget eve
ntPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),f
ixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:functio
n(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}}
,mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY p
ageX pageY screenX screenY toElement".split(" "),filter:function(e,n){var r,i,a,
s=n.button,u=n.fromElement;return null==e.pageX&&null!=n.clientX&&(i=e.target.ow
nerDocument||o,a=i.documentElement,r=i.body,e.pageX=n.clientX+(a&&a.scrollLeft||
r&&r.scrollLeft||0)-(a&&a.clientLeft||r&&r.clientLeft||0),e.pageY=n.clientY+(a&&
a.scrollTop||r&&r.scrollTop||0)-(a&&a.clientTop||r&&r.clientTop||0)),!e.relatedT
arget&&u&&(e.relatedTarget=u===e.target?n.toElement:u),e.which||s===t||(e.which=
1&s?1:2&s?3:4&s?2:0),e}},special:{load:{noBubble:!0},click:{trigger:function(){r

eturn b.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click()
,!1):t}},focus:{trigger:function(){if(this!==o.activeElement&&this.focus)try{ret
urn this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function()
{return this===o.activeElement&&this.blur?(this.blur(),!1):t},delegateType:"focu
sout"},beforeunload:{postDispatch:function(e){e.result!==t&&(e.originalEvent.ret
urnValue=e.result)}}},simulate:function(e,t,n,r){var i=b.extend(new b.Event,n,{t
ype:e,isSimulated:!0,originalEvent:{}});r?b.event.trigger(i,null,t):b.event.disp
atch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},b.removeEvent=o.remo
veEventListener?function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n
,!1)}:function(e,t,n){var r="on"+t;e.detachEvent&&(typeof e[r]===i&&(e[r]=null),
e.detachEvent(r,n))},b.Event=function(e,n){return this instanceof b.Event?(e&&e.
type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPre
vented||e.returnValue===!1||e.getPreventDefault&&e.getPreventDefault()?it:ot):th
is.type=e,n&&b.extend(this,n),this.timeStamp=e&&e.timeStamp||b.now(),this[b.expa
ndo]=!0,t):new b.Event(e,n)},b.Event.prototype={isDefaultPrevented:ot,isPropagat
ionStopped:ot,isImmediatePropagationStopped:ot,preventDefault:function(){var e=t
his.originalEvent;this.isDefaultPrevented=it,e&&(e.preventDefault?e.preventDefau
lt():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this
.isPropagationStopped=it,e&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubb
le=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=i
t,this.stopPropagation()}},b.each({mouseenter:"mouseover",mouseleave:"mouseout"}
,function(e,t){b.event.special[e]={delegateType:t,bindType:t,handle:function(e){
var n,r=this,i=e.relatedTarget,o=e.handleObj;
return(!i||i!==r&&!b.contains(r,i))&&(e.type=o.origType,n=o.handler.apply(this,a
rguments),e.type=t),n}}}),b.support.submitBubbles||(b.event.special.submit={setu
p:function(){return b.nodeName(this,"form")?!1:(b.event.add(this,"click._submit
keypress._submit",function(e){var n=e.target,r=b.nodeName(n,"input")||b.nodeName
(n,"button")?n.form:t;r&&!b._data(r,"submitBubbles")&&(b.event.add(r,"submit._su
bmit",function(e){e._submit_bubble=!0}),b._data(r,"submitBubbles",!0))}),t)},pos
tDispatch:function(e){e._submit_bubble&&(delete e._submit_bubble,this.parentNode
&&/* global definitions, overrides, and functions common to SAGE Publication sit
es */
//gSiteOptions.suppressDockedSearchNav = false;
gSiteOptions.authAffilMatch = 'div.article div.contributors:not(.intlv) ol.affil
iation-list';
gSiteOptions.authAffilDisableMultipleMatches = true;
gSiteOptions.enableCCIcons = true;
// This injects custom css into the page if a leaderboard ad is present
gSiteOptions[ 'bam-ads'][ 'custom-css'][ 'leaderboard'] = '/publisher/css/hw-pub
lisher-leaderboard.css';
$(document).ready(function () {
var histLinks = $("div.search-history-links");
if (histLinks.length) {
histLinks.css("display", "block");
$("div.search-history-links form input[name='submit']").hide();
var runForm = $("div.search-history-links div.run-last-search-inputs").paren
t("form");
var runSpan = $("div.search-history-links span#srchhist-run-last");
var editForm = $("div.search-history-links div.edit-last-search-inputs").par
ent("form");
var editSpan = $("div.search-history-links span#srchhist-edit-last");
if (runForm.length && runSpan.length) {
var linkText = runSpan.attr('title');
runSpan.replaceWith('<a href="#" id="srchhist-run-last-link">&#171; ' + li
nkText + '<\/a>')
$("#srchhist-run-last-link").click(function (e) {
runForm.find("input[name='submit']").click();

e.preventDefault();
});
}
if (editForm.length && editSpan.length) {
var linkText = editSpan.attr('title');
editSpan.replaceWith('<a href="#" id="srchhist-edit-last-link">' + linkTex
t + '<\/a>')
$("#srchhist-edit-last-link").click(function (e) {
editForm.find("input[name='submit']").click();
e.preventDefault();
});
}
}
/****************************
QB:#31150 pdf icons BEGIN
****************************/
var pdfLen = $('a[rel="full-text.pdf"]');
if (pdfLen.length) {
insPDFIconAfter('a[rel="full-text.pdf"]');
}
// for the outliers, spsph, amjsports
var pdfLen = $('a[rel="view-full-text.pdf"] + span.free');
if ($('a[rel="view-full-text.pdf"]').length) {
if (pdfLen.length) {
insPDFIconBefore('a[rel="view-full-text.pdf"]+span.free');
} else {
insPDFIconAfter('a[rel="view-full-text.pdf"]');
}
}
// For Outlier pdf view
if ($('span.variant-indicator span').html() == "Full Text (PDF)") {
if ($('span.variant-indicator').length) {
if ($('span.variant-indicator + span.free').length) {
insPDFIconBefore('span.variant-indicator + span.free');
} else {
insPDFIconAfter('span.variant-indicator span');
}
}
}
/****************************
QB:#31150 pdf icons END
****************************/
var soclinks = $('li.social-bookmarking-item a');
if (soclinks.length) {
soclinks.attr('rel', 'external-nw');
/* QB:37398 */
linkNewWin(soclinks);
}
$(".openaccess a[rel='full-text']").text("Free Full Text");
$(".openaccess a[rel='full-text.pdf']").text("Free Full \(PDF\)");
updateFormInput("#header-search-label", "#header-input", '', '');
$('form#portal-qs-form').submit(function (e) {
return (doSearch("#header-search-label", "#header-input"));
});
$('form#journal-qs-form,').submit(function (e) {
return (doSearch("#header-qs-search-label", "#header-qs-input"));
});
$('form#portal-qs-form').click(function (e) {
return (doSearch("#header-search-label", "#header-input"));

});
$('form#journal-qs-form,').click(function (e)
return (doSearch("#header-qs-search-label",
});
$('form#sagepub-qs-form').submit(function (e)
return (doSearch("#header-qs-search-label",
});
$('form#sagepub-qs-form,').click(function (e)
return (doSearch("#header-qs-search-label",
});

{
"#header-qs-input"));
{
"#header-qs-input"));
{
"#header-qs-input"));

/* Marked citation redesign: 6/4/2012 */


var generalMC = $('div#col-2 div.marked-citation');
var srchMC = $('div#col-2 div.search-results-mc-plus-search-nav');
var topPadding = 15;
if (generalMC.length && ! $("#pageid-search-results").length) {
var myoffset = generalMC.offset();
var defaultDockedNavRules =[
'', '$(#col-2 .marked-citation > *)'];
setupDockBlock(2, 'mc-docked-nav', 'sidebar marked-citation', defaultDockedN
avRules);
}
if (srchMC.length) {
var srchoffset = srchMC.offset();
var defaultDockedNavRules =[
'', '$(#col-2 .search-results-mc-plus-search-nav > *)'];
setupDockBlock(2, 'mc-docked-nav', 'search-results-mc-plus-search-nav', defa
ultDockedNavRules);
}
if (($('div#impact-factor div#impact-factor-row div#if-left').text().len
gth == 0 ) &&
($('div#impact-factor div#impact-factor-row div#if-right').text
().length == 0))
{
$('div#impact-factor').remove();
}
$('div#content-block ul.cit-list div.cit-extra span.cit-flags span').eac
h(
function(i) {
if ($(this).text().length == 0 ) {
$(this).remove();
}
});
});
function poptoggle(postid) {
var whichpost = document.getElementById(postid);
if (whichpost.className == "expandblock") {
document.getElementById('p' + postid).src = '/publisher/icons/plus.png';
whichpost.className = "collapseblock";
} else {
whichpost.className = "expandblock";
document.getElementById('p' + postid).src = '/publisher/icons/minus.png';
}
}
function setupCollapsibles() {
prepCollapsibles("div.content-box div.collapsible, #col-3 .collapsible");
}

function doSearch(labelMatchString, inputMatchString) {


var
var
var
var
var

label = $(labelMatchString);
iStr = 'input' + inputMatchString;
input = $(iStr);
text = label.text().toLowerCase();
PhqsText = input.val().toLowerCase();

if ((PhqsText == text) || (PhqsText == undefined) || (PhqsText == '')) {


return false;
} else {
return true;
}
}
function insPDFIconAfter(elem) {
local_elem = elem + ' img.pdf-icon';
if ($(local_elem.length < 0)) {
$('<img id="pdf-icon" src="/publisher/icons/pdf.png"/>').insertAfter($(elem)
);
}
}
function insPDFIconBefore(elem) {
local_elem = 'img.pdf-icon ' + elem;
if ($(local_elem.length < 0)) {
$('<img id="pdf-icon" src="/publisher/icons/pdf.png"/>').insertBefore($(elem
));
}
}
function CheckAll(event, tag, flag) {
event.preventDefault();
tag.each(function () {
$(this).attr('checked', flag);
});
}
function addToMyCit(event) {
event.preventDefault();
$("#content-block form div.gca-buttons:first-child").find('input[name=submit]'
).click();
return false;
}
function resultsMC(event) {
event.preventDefault();
$("#results-gca-form").find('input[name=submit]').click();
return false;
}
$(window).load(function() {
fixColHeights(1);
});
.getElementById!==A&&!d){var r=n.getElementById(e);return r?r.id===e||typeof r.g
etAttributeNode!==A&&r.getAttributeNode("id").value===e?[r]:t:[]}},i.filter.ID=f
unction(e){var t=e.replace(et,tt);return function(e){var n=typeof e.getAttribute
Node!==A&&e.getAttributeNode("id");return n&&n.value===t}}),i.find.TAG=T.tagName
NoComments?function(e,n){return typeof n.getElementsByTagName!==A?n.getElementsB
yTagName(e):t}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"==
=e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},i.find.NAME=T.ge

tByName&&function(e,n){return typeof n.getElementsByName!==A?n.getElementsByName


(name):t},i.find.CLASS=T.getByClassName&&function(e,n){return typeof n.getElemen
tsByClassName===A||d?t:n.getElementsByClassName(e)},g=[],h=[":focus"],(T.qsa=rt(
n.querySelectorAll))&&(at(function(e){e.innerHTML="<select><option selected=''><
/option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+_+"*(?:
checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":
checked").length||h.push(":checked")}),at(function(e){e.innerHTML="<input type='
hidden' i=''/>",e.querySelectorAll("[i^='']").length&&h.push("[*^$]="+_+"*(?:\"\
"|'')"),e.querySelectorAll(":enabled").length||h.push(":enabled",":disabled"),e.
querySelectorAll("*,:x"),h.push(",.*:")})),(T.matchesSelector=rt(m=f.matchesSele
ctor||f.mozMatchesSelector||f.webkitMatchesSelector||f.oMatchesSelector||f.msMat
chesSelector))&&at(function(e){T.disconnectedMatch=m.call(e,"div"),m.call(e,"[s!
='']:x"),g.push("!=",R)}),h=RegExp(h.join("|")),g=RegExp(g.join("|")),y=rt(f.con
tains)||f.compareDocumentPosition?function(e,t){var n=9===e.nodeType?e.documentE
lement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.co
ntains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function
(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},v=f.compareDocumentP
osition?function(e,t){var r;return e===t?(u=!0,0):(r=t.compareDocumentPosition&&
e.compareDocumentPosition&&e.compareDocumentPosition(t))?1&r||e.parentNode&&11==
=e.parentNode.nodeType?e===n||y(w,e)?-1:t===n||y(w,t)?1:0:4&r?-1:1:e.compareDocu
mentPosition?-1:1}:function(e,t){var r,i=0,o=e.parentNode,a=t.parentNode,s=[e],l
=[t];if(e===t)return u=!0,0;if(!o||!a)return e===n?-1:t===n?1:o?-1:a?1:0;if(o===
a)return ut(e,t);r=e;while(r=r.parentNode)s.unshift(r);r=t;while(r=r.parentNode)
l.unshift(r);while(s[i]===l[i])i++;return i?ut(s[i],l[i]):s[i]===w?-1:l[i]===w?1
:0},u=!1,[0,0].sort(v),T.detectDuplicates=u,p):p},st.matches=function(e,t){retur
n st(e,null,null,t)},st.matchesSelector=function(e,t){if((e.ownerDocument||e)!==
p&&c(e),t=t.replace(Z,"='$1']"),!(!T.matchesSelector||d||g&&g.test(t)||h.test(t)
))try{var n=m.call(e,t);if(n||T.disconnectedMatch||e.document&&11!==e.document.n
odeType)return n}catch(r){}return st(t,p,null,[e]).length>0},st.contains=functio
n(e,t){return(e.ownerDocument||e)!==p&&c(e),y(e,t)},st.attr=function(e,t){var n;
return(e.ownerDocument||e)!==p&&c(e),d||(t=t.toLowerCase()),(n=i.attrHandle[t])?
n(e):d||T.attributes?e.getAttribute(t):((n=e.getAttributeNode(t))||e.getAttribut
e(t))&&e[t]===!0?t:n&&n.specified?n.value:null},st.error=function(e){throw Error
("Syntax error, unrecognized expression: "+e)},st.uniqueSort=function(e){var t,n
=[],r=1,i=0;if(u=!T.detectDuplicates,e.sort(v),u){for(;t=e[r];r++)t===e[r-1]&&(i
=n.push(r));while(i--)e.splice(n[i],1)}return e};function ut(e,t){var n=t&&e,r=n
&&(~t.sourceIndex||j)-(~e.sourceIndex||j);if(r)return r;if(n)while(n=n.nextSibli
ng)if(n===t)return-1;return e?1:-1}function lt(e){return function(t){var n=t.nod
eName.toLowerCase();return"input"===n&&t.type===e}}function ct(e){return functio
n(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===
e}}function pt(e){return ot(function(t){return t=+t,ot(function(n,r){var i,o=e([
],n.length,t),a=o.length;while(a--)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}o=st.getTe
xt=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("st
ring"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSi
bling)n+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r];r++)n+=o(
t);return n},i=st.selectors={cacheLength:50,createPseudo:ot,match:U,find:{},rela
tive:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousS
ibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){retur
n e[1]=e[1].replace(et,tt),e[3]=(e[4]||e[5]||"").replace(et,tt),"~="===e[2]&&(e[
3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),
"nth"===e[1].slice(0,3)?(e[3]||st.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("eve
n"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&st.error(e[0]),
e},PSEUDO:function(e){var t,n=!e[5]&&e[2];return U.CHILD.test(e[0])?null:(e[4]?e
[2]=e[4]:n&&z.test(n)&&(t=ft(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[
0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){re
turn"*"===e?function(){return!0}:(e=e.replace(et,tt).toLowerCase(),function(t){r
eturn t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=k[e+"
"];return t||(t=RegExp("(^|"+_+")"+e+"("+_+"|$)"))&&k(e,function(e){return t.tes
t(e.className||typeof e.getAttribute!==A&&e.getAttribute("class")||"")})},ATTR:f
unction(e,t,n){return function(r){var i=st.attr(r,e);return null==i?"!="===t:t?(

i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.in
dexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i+" ").indexOf(n)>1:"|="===t?i===n||i.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(e,t,n,r,
i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===
r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,p,f,d,h,g=o!=
=a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),
v=!u&&!s;if(m){if(o){while(g){p=t;while(p=p[g])if(s?p.nodeName.toLowerCase()===y
:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.fi
rstChild:m.lastChild],a&&v){c=m[x]||(m[x]={}),l=c[e]||[],d=l[0]===N&&l[1],f=l[0]
===N&&l[2],p=d&&m.childNodes[d];while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if(1===p.
nodeType&&++f&&p===t){c[e]=[N,d,f];break}}else if(v&&(l=(t[x]||(t[x]={}))[e])&&l
[0]===N)f=l[1];else while(p=++d&&p&&p[g]||(f=d=0)||h.pop())if((s?p.nodeName.toLo
werCase()===y:1===p.nodeType)&&++f&&(v&&((p[x]||(p[x]={}))[e]=[N,f]),p===t))brea
k;return f-=i,f===r||0===f%r&&f/r>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e
]||i.setFilters[e.toLowerCase()]||st.error("unsupported pseudo: "+e);return r[x]
?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ot(f
unction(e,n){var i,o=r(e,t),a=o.length;while(a--)i=M.call(e,o[a]),e[i]=!(n[i]=o[
a])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ot(function(e){var t=[],n=[
],r=s(e.replace(W,"$1"));return r[x]?ot(function(e,t,n,i){var o,a=r(e,null,i,[])
,s=e.length;while(s--)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e
,r(t,null,o,n),!n.pop()}}),has:ot(function(e){return function(t){return st(e,t).
length>0}}),contains:ot(function(e){return function(t){return(t.textContent||t.i
nnerText||o(t)).indexOf(e)>-1}}),lang:ot(function(e){return X.test(e||"")||st.er
ror("unsupported lang: "+e),e=e.replace(et,tt).toLowerCase(),function(t){var n;d
o if(n=d?t.getAttribute("xml:lang")||t.getAttribute("lang"):t.lang)return n=n.to
LowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);
return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.sli
ce(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.acti
veElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled
:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0
},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.chec
ked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.par
entNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=
e.nextSibling)if(e.nodeName>"@"||3===e.nodeType||4===e.nodeType)return!1;return!
0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return Q.tes
t(e.nodeName)},input:function(e){return G.test(e.nodeName)},button:function(e){v
ar t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t
},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.ty
pe&&(null==(t=e.getAttribute("type"))||t.toLowerCase()===e.type)},first:pt(funct
ion(){return[0]}),last:pt(function(e,t){return[t-1]}),eq:pt(function(e,t,n){retu
rn[0>n?n+t:n]}),even:pt(function(e,t){var n=0;for(;t>n;n+=2)e.push(n);return e})
,odd:pt(function(e,t){var n=1;for(;t>n;n+=2)e.push(n);return e}),lt:pt(function(
e,t,n){var r=0>n?n+t:n;for(;--r>=0;)e.push(r);return e}),gt:pt(function(e,t,n){v
ar r=0>n?n+t:n;for(;t>++r;)e.push(r);return e})}};for(n in{radio:!0,checkbox:!0,
file:!0,password:!0,image:!0})i.pseudos[n]=lt(n);for(n in{submit:!0,reset:!0})i.
pseudos[n]=ct(n);function ft(e,t){var n,r,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c
.slice(0);s=e,u=[],l=i.preFilter;while(s){(!n||(r=$.exec(s)))&&(r&&(s=s.slice(r[
0].length)||s),u.push(o=[])),n=!1,(r=I.exec(s))&&(n=r.shift(),o.push({value:n,ty
pe:r[0].replace(W," ")}),s=s.slice(n.length));for(a in i.filter)!(r=U[a].exec(s)
)||l[a]&&!(r=l[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice
(n.length));if(!n)break}return t?s.length:s?st.error(e):E(e,u).slice(0)}function
dt(e){var t=0,n=e.length,r="";for(;n>t;t++)r+=e[t].value;return r}function ht(e
,t,n){var i=t.dir,o=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){whi
le(t=t[i])if(1===t.nodeType||o)return e(t,n,r)}:function(t,n,s){var u,l,c,p=N+"
"+a;if(s){while(t=t[i])if((1===t.nodeType||o)&&e(t,n,s))return!0}else while(t=t[
i])if(1===t.nodeType||o)if(c=t[x]||(t[x]={}),(l=c[i])&&l[0]===p){if((u=l[1])===!
0||u===r)return u===!0}else if(l=c[i]=[p],l[1]=e(t,n,s)||r,l[1]===!0)return!0}}f
unction gt(e){return e.length>1?function(t,n,r){var i=e.length;while(i--)if(!e[i
](t,n,r))return!1;return!0}:e[0]}function mt(e,t,n,r,i){var o,a=[],s=0,u=e.lengt
h,l=null!=t;for(;u>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),l&&t.push(s));retu

rn a}function yt(e,t,n,r,i,o){return r&&!r[x]&&(r=yt(r)),i&&!i[x]&&(i=yt(i,o)),o


t(function(o,a,s,u){var l,c,p,f=[],d=[],h=a.length,g=o||xt(t||"*",s.nodeType?[s]
:s,[]),m=!e||!o&&t?g:mt(g,f,e,s,u),y=n?i||(o?e:h||r)?[]:a:m;if(n&&n(m,y,s,u),r){
l=mt(y,d),r(l,[],s,u),c=l.length;while(c--)(p=l[c])&&(y[d[c]]=!(m[d[c]]=p))}if(o
){if(i||e){if(i){l=[],c=y.length;while(c--)(p=y[c])&&l.push(m[c]=p);i(null,y=[],
l,u)}c=y.length;while(c--)(p=y[c])&&(l=i?M.call(o,p):f[c])>-1&&(o[l]=!(a[l]=p))}
}else y=mt(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)})}function
vt(e){var t,n,r,o=e.length,a=i.relative[e[0].type],s=a||i.relative[" "],u=a?1:0
,c=ht(function(e){return e===t},s,!0),p=ht(function(e){return M.call(t,e)>-1},s,
!0),f=[function(e,n,r){return!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):p(e,n,r))}
];for(;o>u;u++)if(n=i.relative[e[u].type])f=[ht(gt(f),n)];else{if(n=i.filter[e[u
].type].apply(null,e[u].matches),n[x]){for(r=++u;o>r;r++)if(i.relative[e[r].type
])break;return yt(u>1&&gt(f),u>1&&dt(e.slice(0,u-1)).replace(W,"$1"),n,r>u&&vt(e
.slice(u,r)),o>r&&vt(e=e.slice(r)),o>r&&dt(e))}f.push(n)}return gt(f)}function b
t(e,t){var n=0,o=t.length>0,a=e.length>0,s=function(s,u,c,f,d){var h,g,m,y=[],v=
0,b="0",x=s&&[],w=null!=d,T=l,C=s||a&&i.find.TAG("*",d&&u.parentNode||u),k=N+=nu
ll==T?1:Math.random()||.1;for(w&&(l=u!==p&&u,r=n);null!=(h=C[b]);b++){if(a&&h){g
=0;while(m=e[g++])if(m(h,u,c)){f.push(h);break}w&&(N=k,r=++n)}o&&((h=!m&&h)&&v-,s&&x.push(h))}if(v+=b,o&&b!==v){g=0;while(m=t[g++])m(x,y,u,c);if(s){if(v>0)whil
e(b--)x[b]||y[b]||(y[b]=L.call(f));y=mt(y)}H.apply(f,y),w&&!s&&y.length>0&&v+t.l
ength>1&&st.uniqueSort(f)}return w&&(N=k,l=T),x};return o?ot(s):s}s=st.compile=f
unction(e,t){var n,r=[],i=[],o=S[e+" "];if(!o){t||(t=ft(e)),n=t.length;while(n-)o=vt(t[n]),o[x]?r.push(o):i.push(o);o=S(e,bt(i,r))}return o};function xt(e,t,n)
{var r=0,i=t.length;for(;i>r;r++)st(e,t[r],n);return n}function wt(e,t,n,r){var
o,a,u,l,c,p=ft(e);if(!r&&1===p.length){if(a=p[0]=p[0].slice(0),a.length>2&&"ID"=
==(u=a[0]).type&&9===t.nodeType&&!d&&i.relative[a[1].type]){if(t=i.find.ID(u.mat
ches[0].replace(et,tt),t)[0],!t)return n;e=e.slice(a.shift().value.length)}o=U.n
eedsContext.test(e)?0:a.length;while(o--){if(u=a[o],i.relative[l=u.type])break;i
f((c=i.find[l])&&(r=c(u.matches[0].replace(et,tt),V.test(a[0].type)&&t.parentNod
e||t))){if(a.splice(o,1),e=r.length&&dt(a),!e)return H.apply(n,q.call(r,0)),n;br
eak}}}return s(e,p)(r,t,d,n,V.test(e)),n}i.pseudos.nth=i.pseudos.eq;function Tt(
){}i.filters=Tt.prototype=i.pseudos,i.setFilters=new Tt,c(),st.attr=b.attr,b.fin
d=st,b.expr=st.selectors,b.expr[":"]=b.expr.pseudos,b.unique=st.uniqueSort,b.tex
t=st.getText,b.isXMLDoc=st.isXML,b.contains=st.contains}(e);var at=/Until$/,st=/
^(?:parents|prev(?:Until|All))/,ut=/^.[^:#\[\.,]*$/,lt=b.expr.match.needsContext
,ct={children:!0,contents:!0,next:!0,prev:!0};b.fn.extend({find:function(e){var
t,n,r,i=this.length;if("string"!=typeof e)return r=this,this.pushStack(b(e).filt
er(function(){for(t=0;i>t;t++)if(b.contains(r[t],this))return!0}));for(n=[],t=0;
i>t;t++)b.find(e,this[t],n);return n=this.pushStack(i>1?b.unique(n):n),n.selecto
r=(this.selector?this.selector+" ":"")+e,n},has:function(e){var t,n=b(e,this),r=
n.length;return this.filter(function(){for(t=0;r>t;t++)if(b.contains(this,n[t]))
return!0})},not:function(e){return this.pushStack(ft(this,e,!1))},filter:functio
n(e){return this.pushStack(ft(this,e,!0))},is:function(e){return!!e&&("string"==
typeof e?lt.test(e)?b(e,this.context).index(this[0])>=0:b.filter(e,this).length>
0:this.filter(e).length>0)},closest:function(e,t){var n,r=0,i=this.length,o=[],a
=lt.test(e)||"string"!=typeof e?b(e,t||this.context):0;for(;i>r;r++){n=this[r];w
hile(n&&n.ownerDocument&&n!==t&&11!==n.nodeType){if(a?a.index(n)>-1:b.find.match
esSelector(n,e)){o.push(n);break}n=n.parentNode}}return this.pushStack(o.length>
1?b.unique(o):o)},index:function(e){return e?"string"==typeof e?b.inArray(this[0
],b(e)):b.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first()
.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?b(e,t):b.makeAr
ray(e&&e.nodeType?[e]:e),r=b.merge(this.get(),n);return this.pushStack(b.unique(
r))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject
.filter(e))}}),b.fn.andSelf=b.fn.addBack;function pt(e,t){do e=e[t];while(e&&1!=
=e.nodeType);return e}b.each({parent:function(e){var t=e.parentNode;return t&&11
!==t.nodeType?t:null},parents:function(e){return b.dir(e,"parentNode")},parentsU
ntil:function(e,t,n){return b.dir(e,"parentNode",n)},next:function(e){return pt(
e,"nextSibling")},prev:function(e){return pt(e,"previousSibling")},nextAll:funct
ion(e){return b.dir(e,"nextSibling")},prevAll:function(e){return b.dir(e,"previo
usSibling")},nextUntil:function(e,t,n){return b.dir(e,"nextSibling",n)},prevUnti

l:function(e,t,n){return b.dir(e,"previousSibling",n)},siblings:function(e){retu
rn b.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return b.sib
ling(e.firstChild)},contents:function(e){return b.nodeName(e,"iframe")?e.content
Document||e.contentWindow.document:b.merge([],e.childNodes)}},function(e,t){b.fn
[e]=function(n,r){var i=b.map(this,t,n);return at.test(e)||(r=n),r&&"string"==ty
peof r&&(i=b.filter(r,i)),i=this.length>1&&!ct[e]?b.unique(i):i,this.length>1&&s
t.test(e)&&(i=i.reverse()),this.pushStack(i)}}),b.extend({filter:function(e,t,n)
{return n&&(e=":not("+e+")"),1===t.length?b.find.matchesSelector(t[0],e)?[t[0]]:
[]:b.find.matches(e,t)},dir:function(e,n,r){var i=[],o=e[n];while(o&&9!==o.nodeT
ype&&(r===t||1!==o.nodeType||!b(o).is(r)))1===o.nodeType&&i.push(o),o=o[n];retur
n i},sibling:function(e,t){var n=[];for(;e;e=e.nextSibling)1===e.nodeType&&e!==t
&&n.push(e);return n}});function ft(e,t,n){if(t=t||0,b.isFunction(t))return b.gr
ep(e,function(e,r){var i=!!t.call(e,r,e);return i===n});if(t.nodeType)return b.g
rep(e,function(e){return e===t===n});if("string"==typeof t){var r=b.grep(e,funct
ion(e){return 1===e.nodeType});if(ut.test(t))return b.filter(t,r,!n);t=b.filter(
t,r)}return b.grep(e,function(e){return b.inArray(e,t)>=0===n})}function dt(e){v
ar t=ht.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.lengt
h)n.createElement(t.pop());return n}var ht="abbr|article|aside|audio|bdi|canvas|
data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|outp
ut|progress|section|summary|time|video",gt=/ jQuery\d+="(?:null|\d+)"/g,mt=RegEx
p("<(?:"+ht+")[\\s/>]","i"),yt=/^\s+/,vt=/<(?!area|br|col|embed|hr|img|input|lin
k|meta|param)(([\w:]+)[^>]*)\/>/gi,bt=/<([\w:]+)/,xt=/<tbody/i,wt=/<|&#?\w+;/,Tt
=/<(?:script|style|link)/i,Nt=/^(?:checkbox|radio)$/i,Ct=/checked\s*(?:[^=]|=\s*
.checked.)/i,kt=/^$|\/(?:java|ecma)script/i,Et=/^true\/(.*)/,St=/^\s*<!(?:\[CDAT
A\[|--)|(?:\]\]|--)>\s*$/g,At={option:[1,"<select multiple='multiple'>","</selec
t>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<
object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</t
body></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]
,td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:b.support.htmlSeri
alize?[0,"",""]:[1,"X<div>","</div>"]},jt=dt(o),Dt=jt.appendChild(o.createElemen
t("div"));At.optgroup=At.option,At.tbody=At.tfoot=At.colgroup=At.caption=At.thea
d,At.th=At.td,b.fn.extend({text:function(e){return b.access(this,function(e){ret
urn e===t?b.text(this):this.empty().append((this[0]&&this[0].ownerDocument||o).c
reateTextNode(e))},null,e,arguments.length)},wrapAll:function(e){if(b.isFunction
(e))return this.each(function(t){b(this).wrapAll(e.call(this,t))});if(this[0]){v
ar t=b(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefo
re(this[0]),t.map(function(){var e=this;while(e.firstChild&&1===e.firstChild.nod
eType)e=e.firstChild;return e}).append(this)}return this},wrapInner:function(e){
return b.isFunction(e)?this.each(function(t){b(this).wrapInner(e.call(this,t))})
:this.each(function(){var t=b(this),n=t.contents();n.length?n.wrapAll(e):t.appen
d(e)})},wrap:function(e){var t=b.isFunction(e);return this.each(function(n){b(th
is).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(f
unction(){b.nodeName(this,"body")||b(this).replaceWith(this.childNodes)}).end()}
,append:function(){return this.domManip(arguments,!0,function(e){(1===this.nodeT
ype||11===this.nodeType||9===this.nodeType)&&this.appendChild(e)})},prepend:func
tion(){return this.domManip(arguments,!0,function(e){(1===this.nodeType||11===th
is.nodeType||9===this.nodeType)&&this.insertBefore(e,this.firstChild)})},before:
function(){return this.domManip(arguments,!1,function(e){this.parentNode&&this.p
arentNode.insertBefore(e,this)})},after:function(){return this.domManip(argument
s,!1,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSiblin
g)})},remove:function(e,t){var n,r=0;for(;null!=(n=this[r]);r++)(!e||b.filter(e,
[n]).length>0)&&(t||1!==n.nodeType||b.cleanData(Ot(n)),n.parentNode&&(t&&b.conta
ins(n.ownerDocument,n)&&Mt(Ot(n,"script")),n.parentNode.removeChild(n)));return
this},empty:function(){var e,t=0;for(;null!=(e=this[t]);t++){1===e.nodeType&&b.c
leanData(Ot(e,!1));while(e.firstChild)e.removeChild(e.firstChild);e.options&&b.n
odeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){retur
n e=null==e?!1:e,t=null==t?e:t,this.map(function(){return b.clone(this,e,t)})},h
tml:function(e){return b.access(this,function(e){var n=this[0]||{},r=0,i=this.le
ngth;if(e===t)return 1===n.nodeType?n.innerHTML.replace(gt,""):t;if(!("string"!=
typeof e||Tt.test(e)||!b.support.htmlSerialize&&mt.test(e)||!b.support.leadingWh

itespace&&yt.test(e)||At[(bt.exec(e)||["",""])[1].toLowerCase()])){e=e.replace(v
t,"<$1></$2>");try{for(;i>r;r++)n=this[r]||{},1===n.nodeType&&(b.cleanData(Ot(n,
!1)),n.innerHTML=e);n=0}catch(o){}}n&&this.empty().append(e)},null,e,arguments.l
ength)},replaceWith:function(e){var t=b.isFunction(e);return t||"string"==typeof
e||(e=b(e).not(this).detach()),this.domManip([e],!0,function(e){var t=this.next
Sibling,n=this.parentNode;n&&(b(this).remove(),n.insertBefore(e,t))})},detach:fu
nction(e){return this.remove(e,!0)},domManip:function(e,n,r){e=f.apply([],e);var
i,o,a,s,u,l,c=0,p=this.length,d=this,h=p-1,g=e[0],m=b.isFunction(g);if(m||!(1>=
p||"string"!=typeof g||b.support.checkClone)&&Ct.test(g))return this.each(functi
on(i){var o=d.eq(i);m&&(e[0]=g.call(this,i,n?o.html():t)),o.domManip(e,n,r)});if
(p&&(l=b.buildFragment(e,this[0].ownerDocument,!1,this),i=l.firstChild,1===l.chi
ldNodes.length&&(l=i),i)){for(n=n&&b.nodeName(i,"tr"),s=b.map(Ot(l,"script"),Ht)
,a=s.length;p>c;c++)o=l,c!==h&&(o=b.clone(o,!0,!0),a&&b.merge(s,Ot(o,"script")))
,r.call(n&&b.nodeName(this[c],"table")?Lt(this[c],"tbody"):this[c],o,c);if(a)for
(u=s[s.length-1].ownerDocument,b.map(s,qt),c=0;a>c;c++)o=s[c],kt.test(o.type||""
)&&!b._data(o,"globalEval")&&b.contains(u,o)&&(o.src?b.ajax({url:o.src,type:"GET
",dataType:"script",async:!1,global:!1,"throws":!0}):b.globalEval((o.text||o.tex
tContent||o.innerHTML||"").replace(St,"")));l=i=null}return this}});function Lt(
e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createEl
ement(t))}function Ht(e){var t=e.getAttributeNode("type");return e.type=(t&&t.sp
ecified)+"/"+e.type,e}function qt(e){var t=Et.exec(e.type);return t?e.type=t[1]:
e.removeAttribute("type"),e}function Mt(e,t){var n,r=0;for(;null!=(n=e[r]);r++)b
._data(n,"globalEval",!t||b._data(t[r],"globalEval"))}function _t(e,t){if(1===t.
nodeType&&b.hasData(e)){var n,r,i,o=b._data(e),a=b._data(t,o),s=o.events;if(s){d
elete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)b.event.add(
t,n,s[n][r])}a.data&&(a.data=b.extend({},a.data))}}function Ft(e,t){var n,r,i;if
(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!b.support.noCloneEvent&&t[b.expa
ndo]){i=b._data(t);for(r in i.events)b.removeEvent(t,r,i.handle);t.removeAttribu
te(b.expando)}"script"===n&&t.text!==e.text?(Ht(t).text=e.text,qt(t)):"object"==
=n?(t.parentNode&&(t.outerHTML=e.outerHTML),b.support.html5Clone&&e.innerHTML&&!
b.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&Nt.test(e.type)?(t.
defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option
"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===
n)&&(t.defaultValue=e.defaultValue)}}b.each({appendTo:"append",prependTo:"prepen
d",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(
e,t){b.fn[e]=function(e){var n,r=0,i=[],o=b(e),a=o.length-1;for(;a>=r;r++)n=r===
a?this:this.clone(!0),b(o[r])[t](n),d.apply(i,n.get());return this.pushStack(i)}
});function Ot(e,n){var r,o,a=0,s=typeof e.getElementsByTagName!==i?e.getElement
sByTagName(n||"*"):typeof e.querySelectorAll!==i?e.querySelectorAll(n||"*"):t;if
(!s)for(s=[],r=e.childNodes||e;null!=(o=r[a]);a++)!n||b.nodeName(o,n)?s.push(o):
b.merge(s,Ot(o,n));return n===t||n&&b.nodeName(e,n)?b.merge([e],s):s}function Bt
(e){Nt.test(e.type)&&(e.defaultChecked=e.checked)}b.extend({clone:function(e,t,n
){var r,i,o,a,s,u=b.contains(e.ownerDocument,e);if(b.support.html5Clone||b.isXML
Doc(e)||!mt.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(Dt.innerHTML=e.outerHTML
,Dt.removeChild(o=Dt.firstChild)),!(b.support.noCloneEvent&&b.support.noCloneChe
cked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(r=Ot(o),s=Ot(e),a=0;nu
ll!=(i=s[a]);++a)r[a]&&Ft(i,r[a]);if(t)if(n)for(s=s||Ot(e),r=r||Ot(o),a=0;null!=
(i=s[a]);a++)_t(i,r[a]);else _t(e,o);return r=Ot(o,"script"),r.length>0&&Mt(r,!u
&&Ot(e,"script")),r=s=i=null,o},buildFragment:function(e,t,n,r){var i,o,a,s,u,l,
c,p=e.length,f=dt(t),d=[],h=0;for(;p>h;h++)if(o=e[h],o||0===o)if("object"===b.ty
pe(o))b.merge(d,o.nodeType?[o]:o);else if(wt.test(o)){s=s||f.appendChild(t.creat
eElement("div")),u=(bt.exec(o)||["",""])[1].toLowerCase(),c=At[u]||At._default,s
.innerHTML=c[1]+o.replace(vt,"<$1></$2>")+c[2],i=c[0];while(i--)s=s.lastChild;if
(!b.support.leadingWhitespace&&yt.test(o)&&d.push(t.createTextNode(yt.exec(o)[0]
)),!b.support.tbody){o="table"!==u||xt.test(o)?"<table>"!==c[1]||xt.test(o)?0:s:
s.firstChild,i=o&&o.childNodes.length;while(i--)b.nodeName(l=o.childNodes[i],"tb
ody")&&!l.childNodes.length&&o.removeChild(l)
}b.merge(d,s.childNodes),s.textContent="";while(s.firstChild)s.removeChild(s.fir
stChild);s=f.lastChild}else d.push(t.createTextNode(o));s&&f.removeChild(s),b.su
pport.appendChecked||b.grep(Ot(d,"input"),Bt),h=0;while(o=d[h++])if((!r||-1===b.

inArray(o,r))&&(a=b.contains(o.ownerDocument,o),s=Ot(f.appendChild(o),"script"),
a&&Mt(s),n)){i=0;while(o=s[i++])kt.test(o.type||"")&&n.push(o)}return s=null,f},
cleanData:function(e,t){var n,r,o,a,s=0,u=b.expando,l=b.cache,p=b.support.delete
Expando,f=b.event.special;for(;null!=(n=e[s]);s++)if((t||b.acceptData(n))&&(o=n[
u],a=o&&l[o])){if(a.events)for(r in a.events)f[r]?b.event.remove(n,r):b.removeEv
ent(n,r,a.handle);l[o]&&(delete l[o],p?delete n[u]:typeof n.removeAttribute!==i?
n.removeAttribute(u):n[u]=null,c.push(o))}}});var Pt,Rt,Wt,$t=/alpha\([^)]*\)/i,
It=/opacity\s*=\s*([^)]*)/,zt=/^(top|right|bottom|left)$/,Xt=/^(none|table(?!-c[
ea]).+)/,Ut=/^margin/,Vt=RegExp("^("+x+")(.*)$","i"),Yt=RegExp("^("+x+")(?!px)[a
-z%]+$","i"),Jt=RegExp("^([+-])=("+x+")","i"),Gt={BODY:"block"},Qt={position:"ab
solute",visibility:"hidden",display:"block"},Kt={letterSpacing:0,fontWeight:400}
,Zt=["Top","Right","Bottom","Left"],en=["Webkit","O","Moz","ms"];function tn(e,t
){if(t in e)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),r=t,i=en.length;
while(i--)if(t=en[i]+n,t in e)retu
/*
##################################################################
##
## THIS IS A GENERATED FILE.
##
## ANY CHANGES YOU MAKE DIRECTLY TO THIS FILE WILL BE OVERWRITTEN
## AND LOST THE NEXT TIME THIS FILE IS GENERATED.
##
## (This file last generated: Dec 09, 2014, 2:17 A.M.)
##
##################################################################
*/
/* ##### BELOW added by: file:/mayshare02/shared/webapp/modules/sptcs/resources/
shared/build/local-js-settings.base.xml ##### */

/*
########################################################################
#############
#
# IMPORTANT: This file won't be used until you put:
#
# <gen:var name="use-local-js-settings">yes</gen:var>
#
# into your build.xsl or similar file. That's because this file will be
blank for the
# vast majority of sites, and it's wasted calls for browsers.
#
############################################################################
#########
*/

/* ##### END OF ADDED BLOCK ##### */


o=Jt.exec(r))&&(r=(o[1]+1)*o[2]+parseFloat(b.css(e,n)),a="number"),!(null==r||"n
umber"===a&&isNaN(r)||("number"!==a||b.cssNumber[u]||(r+="px"),b.support.clearCl
oneStyle||""!==r||0!==n.indexOf("background")||(l[n]="inherit"),s&&"set"in s&&(r
=s.set(e,r,i))===t)))try{l[n]=r}catch(c){}}},css:function(e,n,r,i){var o,a,s,u=b
.camelCase(n);return n=b.cssProps[u]||(b.cssProps[u]=tn(e.style,u)),s=b.cssHooks

[n]||b.cssHooks[u],s&&"get"in s&&(a=s.get(e,!0,r)),a===t&&(a=Wt(e,n,i)),"normal"
===a&&n in Kt&&(a=Kt[n]),""===r||r?(o=parseFloat(a),r===!0||b.isNumeric(o)?o||0:
a):a},swap:function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=
t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i}}),e.getComputedStyl
e?(Rt=function(t){return e.getComputedStyle(t,null)},Wt=function(e,n,r){var i,o,
a,s=r||Rt(e),u=s?s.getPropertyValue(n)||s[n]:t,l=e.style;return s&&(""!==u||b.co
ntains(e.ownerDocument,e)||(u=b.style(e,n)),Yt.test(u)&&Ut.test(n)&&(i=l.width,o
=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=u,u=s.width,l.width=i,l.m
inWidth=o,l.maxWidth=a)),u}):o.documentElement.currentStyle&&(Rt=function(e){ret
urn e.currentStyle},Wt=function(e,n,r){var i,o,a,s=r||Rt(e),u=s?s[n]:t,l=e.style
;return null==u&&l&&l[n]&&(u=l[n]),Yt.test(u)&&!zt.test(n)&&(i=l.left,o=e.runtim
eStyle,a=o&&o.left,a&&(o.left=e.currentStyle.left),l.left="fontSize"===n?"1em":u
,u=l.pixelLeft+"px",l.left=i,a&&(o.left=a)),""===u?"auto":u});function on(e,t,n)
{var r=Vt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function an(e,
t,n,r,i){var o=n===(r?"border":"content")?4:"width"===t?1:0,a=0;for(;4>o;o+=2)"m
argin"===n&&(a+=b.css(e,n+Zt[o],!0,i)),r?("content"===n&&(a-=b.css(e,"padding"+Z
t[o],!0,i)),"margin"!==n&&(a-=b.css(e,"border"+Zt[o]+"Width",!0,i))):(a+=b.css(e
,"padding"+Zt[o],!0,i),"padding"!==n&&(a+=b.css(e,"border"+Zt[o]+"Width",!0,i)))
;return a}function sn(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight
,o=Rt(e),a=b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,o);if(0>=i
||null==i){if(i=Wt(e,t,o),(0>i||null==i)&&(i=e.style[t]),Yt.test(i))return i;r=a
&&(b.support.boxSizingReliable||i===e.style[t]),i=parseFloat(i)||0}return i+an(e
,t,n||(a?"border":"content"),r,o)+"px"}function un(e){var t=o,n=Gt[e];return n||
(n=ln(e,t),"none"!==n&&n||(Pt=(Pt||b("<iframe frameborder='0' width='0' height='
0'/>").css("cssText","display:block !important")).appendTo(t.documentElement),t=
(Pt[0].contentWindow||Pt[0].contentDocument).document,t.write("<!doctype html><h
tml><body>"),t.close(),n=ln(e,t),Pt.detach()),Gt[e]=n),n}function ln(e,t){var n=
b(t.createElement(e)).appendTo(t.body),r=b.css(n[0],"display");return n.remove()
,r}b.each(["height","width"],function(e,n){b.cssHooks[n]={get:function(e,r,i){re
turn r?0===e.offsetWidth&&Xt.test(b.css(e,"display"))?b.swap(e,Qt,function(){ret
urn sn(e,n,i)}):sn(e,n,i):t},set:function(e,t,r){var i=r&&Rt(e);return on(e,t,r?
an(e,n,r,b.support.boxSizing&&"border-box"===b.css(e,"boxSizing",!1,i),i):0)}}})
,b.support.opacity||(b.cssHooks.opacity={get:function(e,t){return It.test((t&&e.
currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1
)+"":t?"1":""},set:function(e,t){var n=e.style,r=e.currentStyle,i=b.isNumeric(t)
?"alpha(opacity="+100*t+")":"",o=r&&r.filter||n.filter||"";n.zoom=1,(t>=1||""===
t)&&""===b.trim(o.replace($t,""))&&n.removeAttribute&&(n.removeAttribute("filter
"),""===t||r&&!r.filter)||(n.filter=$t.test(o)?o.replace($t,i):o+" "+i)}}),b(fun
ction(){b.support.reliableMarginRight||(b.cssHooks.marginRight={get:function(e,n
){return n?b.swap(e,{display:"inline-block"},Wt,[e,"marginRight"]):t}}),!b.suppo
rt.pixelPosition&&b.fn.position&&b.each(["top","left"],function(e,n){b.cssHooks[
n]={get:function(e,r){return r?(r=Wt(e,n),Yt.test(r)?b(e).position()[n]+"px":r):
t}}})}),b.expr&&b.expr.filters&&(b.expr.filters.hidden=function(e){return 0>=e.o
ffsetWidth&&0>=e.offsetHeight||!b.support.reliableHiddenOffsets&&"none"===(e.sty
le&&e.style.display||b.css(e,"display"))},b.expr.filters.visible=function(e){ret
urn!b.expr.filters.hidden(e)}),b.each({margin:"",padding:"",border:"Width"},func
tion(e,t){b.cssHooks[e+t]={expand:function(n){var r=0,i={},o="string"==typeof n?
n.split(" "):[n];for(;4>r;r++)i[e+Zt[r]+t]=o[r]||o[r-2]||o[0];return i}},Ut.test
(e)||(b.cssHooks[e+t].set=on)});var cn=/%20/g,pn=/\[\]$/,fn=/\r?\n/g,dn=/^(?:sub
mit|button|image|reset|file)$/i,hn=/^(?:input|select|textarea|keygen)/i;b.fn.ext
end({serialize:function(){return b.param(this.serializeArray())},serializeArray:
function(){return this.map(function(){var e=b.prop(this,"elements");return e?b.m
akeArray(e):this}).filter(function(){var e=this.type;return this.name&&!b(this).
is(":disabled")&&hn.test(this.nodeName)&&!dn.test(e)&&(this.checked||!Nt.test(e)
)}).map(function(e,t){var n=b(this).val();return null==n?null:b.isArray(n)?b.map
(n,function(e){return{name:t.name,value:e.replace(fn,"\r\n")}}):{name:t.name,val
ue:n.replace(fn,"\r\n")}}).get()}}),b.param=function(e,n){var r,i=[],o=function(
e,t){t=b.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+en
codeURIComponent(t)};if(n===t&&(n=b.ajaxSettings&&b.ajaxSettings.traditional),b.
isArray(e)||e.jquery&&!b.isPlainObject(e))b.each(e,function(){o(this.name,this.v

alue)});else for(r in e)gn(r,e[r],n,o);return i.join("&").replace(cn,"+")};funct


ion gn(e,t,n,r){var i;if(b.isArray(t))b.each(t,function(t,i){n||pn.test(e)?r(e,i
):gn(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==b.type(t
))r(e,t);else for(i in t)gn(e+"["+i+"]",t[i],n,r)}b.each("blur focus focusin foc
usout load resize scroll unload click dblclick mousedown mouseup mousemove mouse
over mouseout mouseenter mouseleave change select submit keydown keypress keyup
error contextmenu".split(" "),function(e,t){b.fn[t]=function(e,n){return argumen
ts.length>0?this.on(t,null,e,n):this.trigger(t)}}),b.fn.hover=function(e,t){retu
rn this.mouseenter(e).mouseleave(t||e)};var mn,yn,vn=b.now(),bn=/\?/,xn=/#.*$/,w
n=/([?&])_=[^&]*/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nn=/^(?:about|app|app-stora
ge|.+-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,kn=/^\/\//,En=/^([\w.+-]
+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Sn=b.fn.load,An={},jn={},Dn="*/".concat("*")
;try{yn=a.href}catch(Ln){yn=o.createElement("a"),yn.href="",yn=yn.href}mn=En.exe
c(yn.toLowerCase())||[];function Hn(e){return function(t,n){"string"!=typeof t&&
(n=t,t="*");var r,i=0,o=t.toLowerCase().match(w)||[];if(b.isFunction(n))while(r=
o[i++])"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[])
.push(n)}}function qn(e,n,r,i){var o={},a=e===jn;function s(u){var l;return o[u]
=!0,b.each(e[u]||[],function(e,u){var c=u(n,r,i);return"string"!=typeof c||a||o[
c]?a?!(l=c):t:(n.dataTypes.unshift(c),s(c),!1)}),l}return s(n.dataTypes[0])||!o[
"*"]&&s("*")}function Mn(e,n){var r,i,o=b.ajaxSettings.flatOptions||{};for(i in
n)n[i]!==t&&((o[i]?e:r||(r={}))[i]=n[i]);return r&&b.extend(!0,e,r),e}b.fn.load=
function(e,n,r){if("string"!=typeof e&&Sn)return Sn.apply(this,arguments);var i,
o,a,s=this,u=e.indexOf(" ");return u>=0&&(i=e.slice(u,e.length),e=e.slice(0,u)),
b.isFunction(n)?(r=n,n=t):n&&"object"==typeof n&&(a="POST"),s.length>0&&b.ajax({
url:e,type:a,dataType:"html",data:n}).done(function(e){o=arguments,s.html(i?b("<
div>").append(b.parseHTML(e)).find(i):e)}).complete(r&&function(e,t){s.each(r,o|
|[e.responseText,t,e])}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","aj
axError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this
.on(t,e)}}),b.each(["get","post"],function(e,n){b[n]=function(e,r,i,o){return b.
isFunction(r)&&(o=o||i,i=r,r=t),b.ajax({url:e,type:n,dataType:o,data:r,success:i
})}}),b.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:yn,type:"GET"
,isLocal:Nn.test(mn[1]),global:!0,processData:!0,async:!0,contentType:"applicati
on/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dn,text:"text/plain",html:
"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascr
ipt"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"response
XML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text jso
n":b.parseJSON,"text xml":b.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup
:function(e,t){return t?Mn(Mn(e,b.ajaxSettings),t):Mn(b.ajaxSettings,e)},ajaxPre
filter:Hn(An),ajaxTransport:Hn(jn),ajax:function(e,n){"object"==typeof e&&(n=e,e
=t),n=n||{};var r,i,o,a,s,u,l,c,p=b.ajaxSetup({},n),f=p.context||p,d=p.context&&
(f.nodeType||f.jquery)?b(f):b.event,h=b.Deferred(),g=b.Callbacks("once memory"),
m=p.statusCode||{},y={},v={},x=0,T="canceled",N={readyState:0,getResponseHeader:
function(e){var t;if(2===x){if(!c){c={};while(t=Tn.exec(a))c[t[1].toLowerCase()]
=t[2]}t=c[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function
(){return 2===x?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();ret
urn x||(e=v[n]=v[n]||e,y[e]=t),this},overrideMimeType:function(e){return x||(p.m
imeType=e),this},statusCode:function(e){var t;if(e)if(2>x)for(t in e)m[t]=[m[t],
e[t]];else N.always(e[N.status]);return this},abort:function(e){var t=e||T;retur
n l&&l.abort(t),k(0,t),this}};if(h.promise(N).complete=g.add,N.success=N.done,N.
error=N.fail,p.url=((e||p.url||yn)+"").replace(xn,"").replace(kn,mn[1]+"//"),p.t
ype=n.method||n.type||p.method||p.type,p.dataTypes=b.trim(p.dataType||"*").toLow
erCase().match(w)||[""],null==p.crossDomain&&(r=En.exec(p.url.toLowerCase()),p.c
rossDomain=!(!r||r[1]===mn[1]&&r[2]===mn[2]&&(r[3]||("http:"===r[1]?80:443))==(m
n[3]||("http:"===mn[1]?80:443)))),p.data&&p.processData&&"string"!=typeof p.data
&&(p.data=b.param(p.data,p.traditional)),qn(An,p,n,N),2===x)return N;u=p.global,
u&&0===b.active++&&b.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.ha
sContent=!Cn.test(p.type),o=p.url,p.hasContent||(p.data&&(o=p.url+=(bn.test(o)?"
&":"?")+p.data,delete p.data),p.cache===!1&&(p.url=wn.test(o)?o.replace(wn,"$1_=
"+vn++):o+(bn.test(o)?"&":"?")+"_="+vn++)),p.ifModified&&(b.lastModified[o]&&N.s
etRequestHeader("If-Modified-Since",b.lastModified[o]),b.etag[o]&&N.setRequestHe

ader("If-None-Match",b.etag[o])),(p.data&&p.hasContent&&p.contentType!==!1||n.co
ntentType)&&N.setRequestHeader("Content-Type",p.contentType),N.setRequestHeader(
"Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*
"!==p.dataTypes[0]?", "+Dn+"; q=0.01":""):p.accepts["*"]);for(i in p.headers)N.s
etRequestHeader(i,p.headers[i]);if(p.beforeSend&&(p.beforeSend.call(f,N,p)===!1|
|2===x))return N.abort();T="abort";for(i in{success:1,error:1,complete:1})N[i](p
[i]);if(l=qn(jn,p,n,N)){N.readyState=1,u&&d.trigger("ajaxSend",[N,p]),p.async&&p
.timeout>0&&(s=setTimeout(function(){N.abort("timeout")},p.timeout));try{x=1,l.s
end(y,k)}catch(C){if(!(2>x))throw C;k(-1,C)}}else k(-1,"No Transport");function
k(e,n,r,i){var c,y,v,w,T,C=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=i||"",N.readyS
tate=e>0?4:0,r&&(w=_n(p,N,r)),e>=200&&300>e||304===e?(p.ifModified&&(T=N.getResp
onseHeader("Last-Modified"),T&&(b.lastModified[o]=T),T=N.getResponseHeader("etag
"),T&&(b.etag[o]=T)),204===e?(c=!0,C="nocontent"):304===e?(c=!0,C="notmodified")
:(c=Fn(p,w),C=c.state,y=c.data,v=c.error,c=!v)):(v=C,(e||!C)&&(C="error",0>e&&(e
=0))),N.status=e,N.statusText=(n||C)+"",c?h.resolveWith(f,[y,C,N]):h.rejectWith(
f,[N,C,v]),N.statusCode(m),m=t,u&&d.trigger(c?"ajaxSuccess":"ajaxError",[N,p,c?y
:v]),g.fireWith(f,[N,C]),u&&(d.trigger("ajaxComplete",[N,p]),--b.active||b.event
.trigger("ajaxStop")))}return N},getScript:function(e,n){return b.get(e,t,n,"scr
ipt")},getJSON:function(e,t,n){return b.get(e,t,n,"json")}});function _n(e,n,r){
var i,o,a,s,u=e.contents,l=e.dataTypes,c=e.responseFields;for(s in c)s in r&&(n[
c[s]]=r[s]);while("*"===l[0])l.shift(),o===t&&(o=e.mimeType||n.getResponseHeader
("Content-Type"));if(o)for(s in u)if(u[s]&&u[s].test(o)){l.unshift(s);break}if(l
[0]in r)a=l[0];else{for(s in r){if(!l[0]||e.converters[s+" "+l[0]]){a=s;break}i|
|(i=s)}a=a||i}return a?(a!==l[0]&&l.unshift(a),r[a]):t}function Fn(e,t){var n,r,
i,o,a={},s=0,u=e.dataTypes.slice(),l=u[0];if(e.dataFilter&&(t=e.dataFilter(t,e.d
ataType)),u[1])for(i in e.converters)a[i.toLowerCase()]=e.converters[i];for(;r=u
[++s];)if("*"!==r){if("*"!==l&&l!==r){if(i=a[l+" "+r]||a["* "+r],!i)for(n in a)i
f(o=n.split(" "),o[1]===r&&(i=a[l+" "+o[0]]||a["* "+o[0]])){i===!0?i=a[n]:a[n]!=
=!0&&(r=o[0],u.splice(s--,0,r));break}if(i!==!0)if(i&&e["throws"])t=i(t);else tr
y{t=i(t)}catch(c){return{state:"parsererror",error:i?c:"No conversion from "+l+"
to "+r}}}l=r}return{state:"success",data:t}}b.ajaxSetup({accepts:{script:"text/
javascript, application/javascript, application/ecmascript, application/x-ecmasc
ript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":functio
n(e){return b.globalEval(e),e}}}),b.ajaxPrefilter("script",function(e){e.cache==
=t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),b.ajaxTransport("sc
ript",function(e){if(e.crossDomain){var n,r=o.head||b("head")[0]||o.documentElem
ent;return{send:function(t,i){n=o.createElement("script"),n.async=!0,e.scriptCha
rset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=func
tion(e,t){(t||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.
onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),n=null,t||i(20
0,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(t,!0
)}}}});var On=[],Bn=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallb
ack:function(){var e=On.pop()||b.expando+"_"+vn++;return this[e]=!0,e}}),b.ajaxP
refilter("json jsonp",function(n,r,i){var o,a,s,u=n.jsonp!==!1&&(Bn.test(n.url)?
"url":"string"==typeof n.data&&!(n.contentType||"").indexOf("application/x-www-f
orm-urlencoded")&&Bn.test(n.data)&&"data");return u||"jsonp"===n.dataTypes[0]?(o
=n.jsonpCallback=b.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback
,u?n[u]=n[u].replace(Bn,"$1"+o):n.jsonp!==!1&&(n.url+=(bn.test(n.url)?"&":"?")+n
.jsonp+"="+o),n.converters["script json"]=function(){return s||b.error(o+" was n
ot called"),s[0]},n.dataTypes[0]="json",a=e[o],e[o]=function(){s=arguments},i.al
ways(function(){e[o]=a,n[o]&&(n.jsonpCallback=r.jsonpCallback,On.push(o)),s&&b.i
sFunction(a)&&a(s[0]),s=a=t}),"script"):t});var Pn,Rn,Wn=0,$n=e.ActiveXObject&&f
unction(){var e;for(e in Pn)Pn[e](t,!0)};function In(){try{return new e.XMLHttpR
equest}catch(t){}}function zn(){try{return new e.ActiveXObject("Microsoft.XMLHTT
P")}catch(t){}}b.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal
&&In()||zn()}:In,Rn=b.ajaxSettings.xhr(),b.support.cors=!!Rn&&"withCredentials"i
n Rn,Rn=b.support.ajax=!!Rn,Rn&&b.ajaxTransport(function(n){if(!n.crossDomain||b
.support.cors){var r;return{send:function(i,o){var a,s,u=n.xhr();if(n.username?u
.open(n.type,n.url,n.async,n.username,n.password):u.open(n.type,n.url,n.async),n
.xhrFields)for(s in n.xhrFields)u[s]=n.xhrFields[s];n.mimeType&&u.overrideMimeTy

pe&&u.overrideMimeType(n.mimeType),n.crossDomain||i["X-Requested-With"]||(i["X-R
equested-With"]="XMLHttpRequest");try{for(s in i)u.setRequestHeader(s,i[s])}catc
h(l){}u.send(n.hasContent&&n.data||null),r=function(e,i){var s,l,c,p;try{if(r&&(
i||4===u.readyState))if(r=t,a&&(u.onreadystatechange=b.noop,$n&&delete Pn[a]),i)
4!==u.readyState&&u.abort();else{p={},s=u.status,l=u.getAllResponseHeaders(),"st
ring"==typeof u.responseText&&(p.text=u.responseText);try{c=u.statusText}catch(f
){c=""}s||!n.isLocal||n.crossDomain?1223===s&&(s=204):s=p.text?200:404}}catch(d)
{i||o(-1,d)}p&&o(s,c,p,l)},n.async?4===u.readyState?setTimeout(r):(a=++Wn,$n&&(P
n||(Pn={},b(e).unload($n)),Pn[a]=r),u.onreadystatechange=r):r()},abort:function(
){r&&r(t,!0)}}}});var Xn,Un,Vn=/^(?:toggle|show|hide)$/,Yn=RegExp("^(?:([+-])=|)
("+x+")([a-z%]*)$","i"),Jn=/queueHooks$/,Gn=[nr],Qn={"*":[function(e,t){var n,r,
i=this.createTween(e,t),o=Yn.exec(t),a=i.cur(),s=+a||0,u=1,l=20;if(o){if(n=+o[2]
,r=o[3]||(b.cssNumber[e]?"":"px"),"px"!==r&&s){s=b.css(i.elem,e,!0)||n||1;do u=u
||".5",s/=u,b.style(i.elem,e,s+r);while(u!==(u=i.cur()/a)&&1!==u&&--l)}i.unit=r,
i.start=s,i.end=o[1]?s+(o[1]+1)*n:n}return i}]};function Kn(){return setTimeout(
function(){Xn=t}),Xn=b.now()}function Zn(e,t){b.each(t,function(t,n){var r=(Qn[t
]||[]).concat(Qn["*"]),i=0,o=r.length;for(;o>i;i++)if(r[i].call(e,t,n))return})}
function er(e,t,n){var r,i,o=0,a=Gn.length,s=b.Deferred().always(function(){dele
te u.elem}),u=function(){if(i)return!1;var t=Xn||Kn(),n=Math.max(0,l.startTime+l
.duration-t),r=n/l.duration||0,o=1-r,a=0,u=l.tweens.length;for(;u>a;a++)l.tweens
[a].run(o);return s.notifyWith(e,[l,o,n]),1>o&&u?n:(s.resolveWith(e,[l]),!1)},l=
s.promise({elem:e,props:b.extend({},t),opts:b.extend(!0,{specialEasing:{}},n),or
iginalProperties:t,originalOptions:n,startTime:Xn||Kn(),duration:n.duration,twee
ns:[],createTween:function(t,n){var r=b.Tween(e,l.opts,t,n,l.opts.specialEasing[
t]||l.opts.easing);return l.tweens.push(r),r},stop:function(t){var n=0,r=t?l.twe
ens.length:0;if(i)return this;for(i=!0;r>n;n++)l.tweens[n].run(1);return t?s.res
olveWith(e,[l,t]):s.rejectWith(e,[l,t]),this}}),c=l.props;for(tr(c,l.opts.specia
lEasing);a>o;o++)if(r=Gn[o].call(l,e,c,l.opts))return r;return Zn(l,c),b.isFunct
ion(l.opts.start)&&l.opts.start.call(e,l),b.fx.timer(b.extend(u,{elem:e,anim:l,q
ueue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complet
e).fail(l.opts.fail).always(l.opts.always)}function tr(e,t){var n,r,i,o,a;for(i
in e)if(r=b.camelCase(i),o=t[r],n=e[i],b.isArray(n)&&(o=n[1],n=e[i]=n[0]),i!==r&
&(e[r]=n,delete e[i]),a=b.cssHooks[r],a&&"expand"in a){n=a.expand(n),delete e[r]
;for(i in n)i in e||(e[i]=n[i],t[i]=o)}else t[r]=o}b.Animation=b.extend(er,{twee
ner:function(e,t){b.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");var n,r=0,i=e.len
gth;for(;i>r;r++)n=e[r],Qn[n]=Qn[n]||[],Qn[n].unshift(t)},prefilter:function(e,t
){t?Gn.unshift(e):Gn.push(e)}});function nr(e,t,n){var r,i,o,a,s,u,l,c,p,f=this,
d=e.style,h={},g=[],m=e.nodeType&&nn(e);n.queue||(c=b._queueHooks(e,"fx"),null==
c.unqueued&&(c.unqueued=0,p=c.empty.fire,c.empty.fire=function(){c.unqueued||p()
}),c.unqueued++,f.always(function(){f.always(function(){c.unqueued--,b.queue(e,"
fx").length||c.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n
.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===b.css(e,"display")&&"n
one"===b.css(e,"float")&&(b.support.inlineBlockNeedsLayout&&"inline"!==un(e.node
Name)?d.zoom=1:d.display="inline-block")),n.overflow&&(d.overflow="hidden",b.sup
port.shrinkWrapBlocks||f.always(function(){d.overflow=n.overflow[0],d.overflowX=
n.overflow[1],d.overflowY=n.overflow[2]}));for(i in t)if(a=t[i],Vn.exec(a)){if(d
elete t[i],u=u||"toggle"===a,a===(m?"hide":"show"))continue;g.push(i)}if(o=g.len
gth){s=b._data(e,"fxshow")||b._data(e,"fxshow",{}),"hidden"in s&&(m=s.hidden),u&
&(s.hidden=!m),m?b(e).show():f.done(function(){b(e).hide()}),f.done(function(){v
ar t;b._removeData(e,"fxshow");for(t in h)b.style(e,t,h[t])});for(i=0;o>i;i++)r=
g[i],l=f.createTween(r,m?s[r]:0),h[r]=s[r]||b.style(e,r),r in s||(s[r]=l.start,m
&&(l.end=l.start,l.start="width"===r||"height"===r?1:0))}}function rr(e,t,n,r,i)
{return new rr.prototype.init(e,t,n,r,i)}b.Tween=rr,rr.prototype={constructor:rr
,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||"swing",this.
options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(b.cssNumber[n]
?"":"px")},cur:function(){var e=rr.propHooks[this.prop];return e&&e.get?e.get(th
is):rr.propHooks._default.get(this)},run:function(e){var t,n=rr.propHooks[this.p
rop];return this.pos=t=this.options.duration?b.easing[this.easing](e,this.option
s.duration*e,0,1,this.options.duration):e,this.now=(this.end-this.start)*t+this.
start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.se

t?n.set(this):rr.propHooks._default.set(this),this}},rr.prototype.init.prototype
=rr.prototype,rr.propHooks={_default:{get:function(e){var t;return null==e.elem[
e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=b.css(e.elem,e.prop,""),t&&
"auto"!==t?t:0):e.elem[e.prop]},set:function(e){b.fx.step[e.prop]?b.fx.step[e.pr
op](e):e.elem.style&&(null!=e.elem.style[b.cssProps[e.prop]]||b.cssHooks[e.prop]
)?b.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},rr.propHooks.scrol
lTop=rr.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode
&&(e.elem[e.prop]=e.now)}},b.each(["toggle","show","hide"],function(e,t){var n=b
.fn[t];b.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,
arguments):this.animate(ir(t,!0),e,r,i)}}),b.fn.extend({fadeTo:function(e,t,n,r)
{return this.filter(nn).css("opacity",0).show().end().animate({opacity:t},e,n,r)
},animate:function(e,t,n,r){var i=b.isEmptyObject(e),o=b.speed(t,n,r),a=function
(){var t=er(this,b.extend({},e),o);a.finish=function(){t.stop(!0)},(i||b._data(t
his,"finish"))&&t.stop(!0)};return a.finish=a,i||o.queue===!1?this.each(a):this.
queue(o.queue,a)},stop:function(e,n,r){var i=function(e){var t=e.stop;delete e.s
top,t(r)};return"string"!=typeof e&&(r=n,n=e,e=t),n&&e!==!1&&this.queue(e||"fx",
[]),this.each(function(){var t=!0,n=null!=e&&e+"queueHooks",o=b.timers,a=b._data
(this);if(n)a[n]&&a[n].stop&&i(a[n]);else for(n in a)a[n]&&a[n].stop&&Jn.test(n)
&&i(a[n]);for(n=o.length;n--;)o[n].elem!==this||null!=e&&o[n].queue!==e||(o[n].a
nim.stop(r),t=!1,o.splice(n,1));(t||!r)&&b.dequeue(this,e)})},finish:function(e)
{return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=b._data(this),r=n[e+"qu
eue"],i=n[e+"queueHooks"],o=b.timers,a=r?r.length:0;for(n.finish=!0,b.queue(this
,e,[]),i&&i.cur&&i.cur.finish&&i.cur.finish.call(this),t=o.length;t--;)o[t].elem
===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;a>t;t++)r[t]
&&r[t].finish&&r[t].finish.call(this);delete n.finish})}});function ir(e,t){var
n,r={height:e},i=0;for(t=t?1:0;4>i;i+=2-t)n=Zt[i],r["margin"+n]=r["padding"+n]=e
;return t&&(r.opacity=r.width=e),r}b.each({slideDown:ir("show"),slideUp:ir("hide
"),slideToggle:ir("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fad
eToggle:{opacity:"toggle"}},function(e,t){b.fn[e]=function(e,n,r){return this.an
imate(t,e,n,r)}}),b.speed=function(e,t,n){var r=e&&"object"==typeof e?b.extend({
},e):{complete:n||!n&&t||b.isFunction(e)&&e,duration:e,easing:n&&t||t&&!b.isFunc
tion(t)&&t};return r.duration=b.fx.off?0:"number"==typeof r.duration?r.duration:
r.duration in b.fx.speeds?b.fx.speeds[r.duration]:b.fx.speeds._default,(null==r.
queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){b.is
Function(r.old)&&r.old.call(this),r.queue&&b.dequeue(this,r.queue)},r},b.easing=
{linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}}
,b.timers=[],b.fx=rr.prototype.init,b.fx.tick=function(){var e,n=b.timers,r=0;fo
r(Xn=b.now();n.length>r;r++)e=n[r],e()||n[r]!==e||n.splice(r--,1);n.length||b.fx
.stop(),Xn=t},b.fx.timer=function(e){e()&&b.timers.push(e)&&b.fx.start()},b.fx.i
nterval=13,b.fx.start=function(){Un||(Un=setInterval(b.fx.tick,b.fx.interval))},
b.fx.stop=function(){clearInterval(Un),Un=null},b.fx.speeds={slow:600,fast:200,_
default:400},b.fx.step={},b.expr&&b.expr.filters&&(b.expr.filters.animated=funct
ion(e){return b.grep(b.timers,function(t){return e===t.elem}).length}),b.fn.offs
et=function(e){if(arguments.length)return e===t?this:this.each(function(t){b.off
set.setOffset(this,e,t)});var n,r,o={top:0,left:0},a=this[0],s=a&&a.ownerDocumen
t;if(s)return n=s.documentElement,b.contains(n,a)?(typeof a.getBoundingClientRec
t!==i&&(o=a.getBoundingClientRect()),r=or(s),{top:o.top+(r.pageYOffset||n.scroll
Top)-(n.clientTop||0),left:o.left+(r.pageXOffset||n.scrollLeft)-(n.clientLeft||0
)}):o},b.offset={setOffset:function(e,t,n){var r=b.css(e,"position");"static"===
r&&(e.style.position="relative");var i=b(e),o=i.offset(),a=b.css(e,"top"),s=b.cs
s(e,"left"),u=("absolute"===r||"fixed"===r)&&b.inArray("auto",[a,s])>-1,l={},c={
},p,f;u?(c=i.position(),p=c.top,f=c.left):(p=parseFloat(a)||0,f=parseFloat(s)||0
),b.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(l.top=t.top-o.top+p),null!=t.
left&&(l.left=t.left-o.left+f),"using"in t?t.using.call(e,l):i.css(l)}},b.fn.ext
end({position:function(){if(this[0]){var e,t,n={top:0,left:0},r=this[0];return"f
ixed"===b.css(r,"position")?t=r.getBoundingClientRect():(e=this.offsetParent(),t
=this.offset(),b.nodeName(e[0],"html")||(n=e.offset()),n.top+=b.css(e[0],"border
TopWidth",!0),n.left+=b.css(e[0],"borderLeftWidth",!0)),{top:t.top-n.top-b.css(r
,"marginTop",!0),left:t.left-n.left-b.css(r,"marginLeft",!0)}}},offsetParent:fun
ction(){return this.map(function(){var e=this.offsetParent||o.documentElement;wh

ile(e&&!b.nodeName(e,"html")&&"static"===b.css(e,"position"))e=e.offsetParent;re
turn e||o.documentElement})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageY
Offset"},function(e,n){var r=/Y/.test(n);b.fn[e]=function(i){return b.access(thi
s,function(e,i,o){var a=or(e);return o===t?a?n in a?a[n]:a.document.documentElem
ent[i]:e[i]:(a?a.scrollTo(r?b(a).scrollLeft():o,r?o:b(a).scrollTop()):e[i]=o,t)}
,e,i,arguments.length,null)}});function or(e){return b.isWindow(e)?e:9===e.nodeT
ype?e.defaultView||e.parentWindow:!1}b.each({Height:"height",Width:"width"},func
tion(e,n){b.each({padding:"inner"+e,content:n,"":"outer"+e},function(r,i){b.fn[i
]=function(i,o){var a=arguments.length&&(r||"boolean"!=typeof i),s=r||(i===!0||o
===!0?"margin":"border");return b.access(this,function(n,r,i){var o;return b.isW
indow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElem
ent,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o
["client"+e])):i===t?b.css(n,r,s):b.style(n,r,i,s)},n,a?i:t,a,null)}})}),e.jQuer
y=e.$=b,"function"==typeof define&&define.amd&&define.amd.jQuery&&define("jquery
",[],function(){return b})})(window);||(this.I||b||c?this.I&&(b||c)&&this.F():th
is.hide(!1));this.Pc=a}}else this.F()};var cm=function(a,b,c,d,e){this.We=c;this
.Lg=a;Ol.call(this,b,d,e)};t(cm,Ol);cm.prototype.la=function(){this.Lg.hf()};
cm.prototype.Wa=function(){if(null!==this.startPosition&&null!==this.startCoords
&&null!==this.currentCoords){var a=xe(this.currentCoords,this.startCoords),a=thi
s.startPosition.y-a.y;0<a&&(a=0);a<-this.We&&(a=-this.We);N(this.target,{bottom:
O(a)})}};cm.prototype.kb=function(){return new K(0,parseInt(this.target.style.bo
ttom,10))};var dm=function(a){if(a.classList)return a.classList;a=a.className;re
turn p(a)&&a.match(/\S+/g)||[]},em=function(a,b){return a.classList?a.classList.
contains(b):Ld(dm(a),b)};var fm=function(a,b,c){this.asyncIframe=a;this.adFrame=
b;this.topWindow=c;this.A=null;this.re=!1};fm.prototype.he=function(){return thi
s.adFrame};fm.prototype.rc=function(a){if(!this.ic){this.ic=[];for(var b=this.as
yncIframe;b;){if(this.Le(b)){this.A=b;break}else this.ic.push(b);b=1===b.parentN
ode.nodeType?b.parentNode:null}this.re=!0}b=this.ic.slice();a&&b.push(this.A);re
turn b};
fm.prototype.jb=function(a,b,c){b=this.rc(b);var d;if(c)for(c=b.length-1;0<=c;-c)(d=b[c])&&a.call(this,d,c,b);else for(c=0;c<b.length;++c)(d=b[c])&&a.call(this
,d,c,b)};fm.prototype.Le=function(a){return em(a,this.oe())};fm.prototype.oe=fun
ction(){return"adsbygoogle"};fm.prototype.u=function(){this.re||this.rc(!1);retu
rn this.A};var X=function(a,b,c,d){fm.call(this,a,b,c);this.Na=this.Zd=this.ec=!
1;this.ta=null;this.Rg=Lf(c.document.body,"padding");this.va=0;this.ve=!1;this.v
b=!0;this.dd=d;this.O=this.je();this.ga=null;this.ce=this.wg=!1;this.xc();this.X
g=A(this.topWindow,"orientationchange",this,this.wa);this.Yg=A(this.topWindow,"r
esize",this,this.Jf);this.M=A(this.topWindow,"scroll",this,this.T);this.Zg=A(thi
s.topWindow,"touchcancel",this,this.ng);this.$g=A(this.topWindow,"touchend",this
,this.og);this.ah=A(this.topWindow,
"touchmove",this,this.pg);this.bh=A(this.topWindow,"touchstart",this,this.qg)};t
(X,fm);var gm={ui:"gr",gvar:"sq",scroll_detached:"true",dismissable:"true"};X.pr
ototype.$f=function(a){this.X||(a=Ag(a),hm(this.topWindow,a),this.wg="true"==a.u
se_manual_view,this.Ye(a),this.X=this.Hd(a),this.ga=this.Bd(),this.Xe())};X.prot
otype.Bd=function(){return new L(this.O.width,this.O.height+this.X.ra())};
X.prototype.Ye=function(a){var b=oa(a.ht,-1);0<b&&(this.O.height=b,this.jb(funct
ion(a){nh(a,null,b)},!1,!0),nh(this.adFrame,null,b))};X.prototype.Xe=function(){
var a=this.u(),b=this.X.ib();a&&b&&a.insertBefore(b,a.firstChild)};
X.prototype.Hd=function(a){var b=Ql,c=a.ui,b=c==b.GRIPPY,d=!b,d=q(this.Qd,this,d
),e=q(this.Af,this),c=Rl[c]||Ul;a=new c(a,this.topWindow,this.O,d,e);b&&null!=wi
ndow.google_expandable_ad_slot1&&(b=window.google_expandable_ad_slot1,b.listen("
expanding",a.ze,!1,a),b.listen("collapsed",a.ig,!1,a));return a};
X.prototype.Qd=function(a){this.ec||(this.ec=!0,w(this.topWindow,"orientationcha
nge",this.Xg,void 0),w(this.topWindow,"resize",this.Yg,void 0),w(this.topWindow,
"scroll",this.M,void 0),w(this.topWindow,"touchcancel",this.Zg,void 0),w(this.to
pWindow,"touchend",this.$g,void 0),w(this.topWindow,"touchmove",this.ah,void 0),
w(this.topWindow,"touchstart",this.bh,void 0),a?(a=new Kl(this.u(),250,q(this.Eb
,this)),a.play()):this.Eb())};X.prototype.se=function(){this.X.hide(!0)};
X.prototype.xc=function(){this.vb&&(this.u().style.display="none",this.Eb(),this
.vb=!1)};X.prototype.ua=function(){this.Zd=!0;if(!this.ve&&this.Xb()){var a=this

.u();a&&(this.ud(),this.X.Da(a,this.dd),this.F(),this.ve=!0)}};X.prototype.F=fun
ction(){var a=this.u();a&&(this.X.decorate(a),this.vb||(this.sd(),a.style.displa
y="block",this.vb=!0))};X.prototype.sd=function(){im(this.topWindow.document.bod
y,this.pe())};
X.prototype.ud=function(){var a=this.u();if(a&&this.asyncIframe){var b=H().s(29)
===J.NMO_FLOATING_ADS.EXPERIMENT;Ef(a,this.ga);b&&(a.style.width="100%");var c=t
his.O;this.jb(function(a){Ef(a,c);b&&(a.style.width="100%")},!1,!0);this.adFrame
.style.display="block";this.adFrame.style.margin="0 auto";b&&(this.adFrame.style
.width="100%")}};
X.prototype.pe=function(){var a;switch(this.dd){case "bottom":if(a=Lf(this.topWi
ndow.document.body,"padding")){var b=this.X.pa()-this.X.ra();a.bottom+=this.ga.h
eight+b}}return a};X.prototype.je=function(){var a;switch(this.dd){case "bottom"
:a=this.topWindow.innerWidth;var b=Ff(Gf,this.adFrame).height||+this.adFrame.hei
ght||0;a=new L(a,b)}return a};X.prototype.Be=function(){return vg(this.topWindow
)};X.prototype.wa=function(){this.U()};X.prototype.Jf=function(){this.U()};X.pro
totype.T=function(){this.U()};
X.prototype.ng=function(){this.ta="touchcancel";this.topWindow.setTimeout(q(func
tion(){"touchcancel"==this.ta&&(this.va=0,this.Na=!1,this.U())},this),1E3)};X.pr
ototype.og=function(a){this.ta="touchend";var b=a.touches.length;2>b?this.topWin
dow.setTimeout(q(function(){"touchend"==this.ta&&(this.va=b,this.Na=!1,this.U())
},this),1E3):(this.va=b,this.U())};X.prototype.pg=function(a){this.ta="touchmove
";this.va=a.touches.length;this.Na=!0;this.U()};
X.prototype.qg=function(a){this.ta="touchstart";this.va=a.touches.length;this.Na
=!1;this.U()};X.prototype.Eb=function(){im(this.topWindow.document.body,this.Rg)
};X.prototype.Me=function(){return 2<=this.va&&this.Na};X.prototype.U=function()
{this.Zd&&!this.ec&&!this.Me()&&this.Xb()?(this.ua(),this.F()):this.xc()};X.prot
otype.Xb=function(){if(!this.Be())return!1;if(H().s(29)===J.NMO_FLOATING_ADS.EXP
ERIMENT){var a=this.topWindow.innerWidth;return 320<=a&&480>=a}return yg(this.to
pWindow)};
var im=function(a,b){a.style.paddingTop=O(b.top);a.style.paddingRight=O(b.right)
;a.style.paddingBot/* jQuery javascript functions for content page */
var gIsFrameset = false;
var gIsOMContent;
var gAuthorAffilList = "div.article div.contributors p.affiliation-list-reveal a
.view-more";
var gAuthorNotes = "div.article div.contributors p.author-notes-reveal a.view-mo
re";
var gAuthorContributorList = "div.article div.contributors ol.contributor-list a
[href^='#aff']";
$(document).ready(function() {
var pgDiv = $("div#pageid-content");
gIsOMContent = (pgDiv.length && pgDiv.hasClass("hwp-metaport-content"));
if (!(getSiteOption("noAuthAffilCollapse") == true)) {
handleAuthAffil(gAuthorAffilList,gAuthorNotes,gAuthorContributor
List);
}
fixWackyReflinksMarkup();
var defaultDockedNavRules = [
'', '<div class="content-box" id="docked-cb"><div class="cb-cont
ents"><h3>'+gSiteOptions.dockedNavThisArticleLabel+'</h3><div class="cb-section
cb-slug"><ol id="docked-slug"><li></li></ol></div><div class="cb-section"><ol id
="docked-nav-views"></ol></div></div></div>',
'$(#col-2 #docked-nav-views)', '$(#article-cb-main .cb-section o
l:has(li a[rel^="view-"]) > li)',
'$(#col-2 #docked-nav #docked-slug li)', '$(#col-2 #slugline)',

'', '$(#article-dyn-nav)'
];
if (!(getSiteOption("suppressDockedNav") == true)) {
setupDockBlock(2, 'docked-nav', 'dockblock', defaultDockedNavRul
es);
}
if (!(getSiteOption("noPDFExtractExpand") == true)) {
linkPDFExtImg();
pdfExtOverlay();
}
var unloadedImgLookupRule = "div.article div.fig img";
var numImagesToLoad = checkUnloadedImgs(unloadedImgLookupRule);
/* ref rollover */
if (!(getSiteOption("suppressRefPopups") == true)) {
setTimeout("addRefPops()", 25);
}
/* fig-expansion in page */
if (!(getSiteOption("noInlineFigExpand") == true) && (!gIsOMContent || (
gIsOMContent && (getSiteOption("inlineFigExpandOMContent") == true)))) {
setTimeout("figExpandInline()", 10);
}
/* if configured, open ref links in new windows */
if (getSiteOption("refLinksNewWindow") == true) {
setTimeout("refLinksNewWindowTarget()", 25);
}
/* 'new window' fig expansions */
setTimeout("newWindowTargets()", 25);
/* AJAX related article callbacks */
setTimeout("getISIRelated()", 50);
/* AJAX citing article callbacks */
setTimeout("getHWCiting()", 50);
setTimeout("getCiting('isi', gSiteOptions.isiLinkString, '', " + addISIC
iting + ",'rt=yes')", 50);
setTimeout("getCiting('scopus','Loading Scopus citing article data...',
'callback/'," + addScopusCiting + ")", 50);
/* AJAX Entrez Links callbacks */
setTimeout("getEntrezLinks()", 50);
/* Related content */
setTimeout("getHWRelatedURLs()", 50);
setTimeout("getPatientInformData()", 50);
/* Fix col heights for images */
setTimeout("fixHeightForImages(1" + "," + numImagesToLoad + ", '" + unlo
adedImgLookupRule + "')",1000);
/* Social Bookmarking enhancement */
setTimeout("updateSBLinks()", 100);
/* Append Semantics Results for Similar Articles */

if ((getSiteOption("hasSemanticsSearch") == true)) {
getSimilarSemanticsArticles();
}
if ((getSiteOption("hasSemanticsSearch") == true)) {
/* Append Semantics Results for Related Terms */
getRelatedSemanticsTerms();
}
if ($('div[has-sidebar-videos="yes"]').length) {
col2SidebarOnlyFixvideo();
}
$('#content-block').prepend('<div id="print-slug" class="print-only"></div>');
var loc=location.hostname;
if (document.getElementsByName) {
var metaArray = document.getElementsByName('citation_journal_title');
for (var i=0; i<metaArray.length; i++) {
$('<span class="jnl-title">'+ metaArray[i].content + '</span><span class="jn
l-url">'+ loc + '</span>' ).appendTo('#print-slug');
}
};
//prevent function from trying to fire if there is no relevant div
if ((getSiteOption("hasSemanticsSearch") == true)) {
if ($("div#semantics-similar-articles").length) {
$("body").delegate("#semantics-similar-articles-content #similar-articles a#
more-art", "click", function (e) {
e.preventDefault();
unHideRelatedSemanticsArticles(1);
});
$("body").delegate("#semantics-similar-articles-content #similar-articles a#
less-art", "click", function (e) {
e.preventDefault();
unHideRelatedSemanticsArticles(0);
});
}
}
$('div#col-2 div.cb-slug').clone().appendTo('#print-slug');
fixvideo();
// For the "progressive disclosure" display of Integrated Data Supplements
$("#content-block div.supplementary-material h3.init-closed").siblings().addCla
ss("hide");
$("#content-block div.supplementary-material h3.collapsible.init-closed").click
(function () {
$(this).toggleClass("show");
$(this).nextAll().each(function() {
$(this).slideToggle(500);
$(this).toggleClass("show");
});
});
}); //end of docready
function unHideRelatedSemanticsArticles(num) {
if (num) {
// show citations greater than 2; index starts at 0
$('#similar-articles .cit:gt(2)').show();

// hide citations greater than than 10; index starts at 0


$('#similar-articles .cit:gt(9)').hide();
addAbsPops();
$('#semantics-similar-articles-content #similar-articles a#more-art').hide()
;
var lessThan = $('#semantics-similar-articles-content #similar-articles a#le
ss-art');
if (! lessThan.length) {
$('#semantics-similar-articles-content #similar-articles').append('<a href
="#" id="less-art">less...</a>');
} else {
$('#semantics-similar-articles-content #similar-articles a#less-art').show
();
}
} else {
$('#similar-articles .cit:gt(2)').hide();
addAbsPops();
$('#semantics-similar-articles-content #similar-articles a#more-art').show()
;
var lessThan = $('#semantics-similar-articles-content #similar-articles a#le
ss-art');
if (lessThan.length) {
$('#semantics-similar-articles-content #similar-articles a#less-art').hide
();
}
}
fixColHeights(-1);
}
function getSimilarSemanticsArticles() {
var articleId = $('meta[name=citation_id_from_sass_path]').attr('content');
// For Tom's service pass as '/', for spatel pass as '-'
//var id = articleId.replace(/\//g, '-');
var id = articleId;
var host = document.location.protocol + "//" + document.location.host;
var url = host + '/similar-articles?resource=' + id;
//console.log("Get resource from ...." + url);
var resultsDiv = '<div id="semantics-similar-articles" class="content-box"> \
<div class="cb-contents"> \
<h3 class="cb-contents-header"><span>Similar Articles</span></h3> \
<div class="cb-section" id="semantics-similar-articles-content"><\div> \
</div> \
</div>';
$(resultsDiv).appendTo('#col-2');
$("#semantics-similar-articles-content").load(url, function (response, status,
xhr) {
if (status=="success") {
$("#semantics-similar-articles").show();
$('#similar-articles').removeAttr("xmlns");
$('#similar-articles .cit:gt(2)').hide();
$('#semantics-similar-articles-content #similar-articles #each-similar-artic
les .cit').each(function (index) {
url = $(this).find('.cit-extra .first-item a[href]').attr('href');
rel = $(this).find('.cit-extra .first-item a[rel]').attr('rel');
$(this).find('.cit-title').wrapInner("<a href=" + url + " rel=" + rel + "/

>");
$(this).find('.cit-print-date').clone().appendTo(this);
$(this).find('.cit-secton').hide();
$(this).find('.cit-auth-list').hide();
$(this).find('.cit-extra').hide();
$(this).find('cite').hide();
});
addAbsPops();
$('#semantics-similar-articles-content #similar-articles').append('<a hr
ef="#" id="more-art">more...</a>');
}
if (status=="error") {
$("#semantics-similar-articles").hide();
//console.log("Error processing similar articles: " + xhr.status + " " + x
hr.statusText);
}
//console.log("Done resource from ...." + url+ ' ' +status);
});
}
function getRelatedSemanticsTerms() {
var id = $('meta[name=citation_id_from_sass_path]').attr('content');
var host = document.location.protocol + "//" + document.location.host;
var url = host + '/related-terms?resource=' + id;
//console.log("Get terms from ...." + url);
var resultsDiv = '<div id="semantics-related-terms" class="content-box"> \
<div class="cb-contents"> \
<h3 class="cb-contents-header"><span>Key Terms</span></h3> \
<div class="cb-section" id="semantics-related-terms-content"><\div> \
</div> \
</div>';
$(resultsDiv).appendTo('#col-2');
$("#semantics-related-terms-content").load(url, function (response, status, xh
r) {
if (status=="success") {
$("#semantics-related-terms").show();
$('#related-terms').removeAttr("xmlns");
//console.log('ok processing terms feed with url= ' + url);
}
if (status=="error") {
$("#semantics-related-terms").hide();
//console.log("Error processing related terms: " + xhr.status + " " + xhr.
statusText);
}
//console.log('Done processing terms feed with id= ' + id);
});
}
function handleAuthAffil(authorAffilList,authorNotes,authorContributorList) {
var authAffilMatch = getSiteOption('authAffilMatch','div.article div.con
tributors ol.affiliation-list:has(li)');
var authAffil = (authAffilMatch != undefined) ? $(authAffilMatch) : '';
var disableIfMultAffils = getSiteOption('authAffilDisableMultipleMatches
',false);
if (authAffil.length && ((authAffil.length <= 1) || (!disableIfMultAffil

s))) {
var expandStr = getSiteOption('authExpandString', null);
if (expandStr == null) {
expandStr = getSiteOption('expandString', '+');
}
var contractStr = getSiteOption('authContractString', null);
if (contractStr == null) {
contractStr = getSiteOption('contractString', '-');
}
var newP = '<p class="affiliation-list-reveal"><a href="#" class
="view-more">' + expandStr + '</a> Author Affiliations</p>';
/* add auth affil show/hide p */
//if this is a typical case, then we'll just put the expansion o
n the last div.contributors
var contribLists = $("div.article div.contributors:last ol.contr
ibutor-list:has(li)");
//unless we have sub-articles
if ($('div.sub-article').length) {
contribLists = $("div.article div.contributors ol.contributor-li
st:has(li)");
}
//unless it's an odd case where the last .contributors doesn't h
ave li because of wacky markup
if (!(contribLists.length)) {
contribLists = $("div.article div.contributors ol.contri
butor-list:has(li)");
}
if (contribLists.length) {
contribLists.after(newP);
}
/* hide author affiliations until requested */
if (authAffil.length) {
authAffil.each(
function (i) {
modClass(authAffil.eq(i),'hideaffil','sh
owaffil');
}
);
}
$(authorAffilList).click(
function(e) {
AuthClickOnAffilButton(authorAffilList,a
uthAffilMatch,expandStr,contractStr,e);
}
);
/* show author affiliations when affil link is selected */
$(authorContributorList).click(
function(e) {
AuthClickOnContribAffilLink(authorAffilL
ist,authAffilMatch,expandStr,contractStr,e);
}
);
/*expand author affil when markup different than expected*/
$("div.contributors a.xref-aff").click(
function(e) {
AuthClickOnContribAffilLink(authorAffilL
ist,authAffilMatch,expandStr,contractStr,e);
}
);

var authNotesMatch = getSiteOption('authNotesMatch','div.article div.con


tributors ul.author-notes:has(li)');
var authNotes = (authNotesMatch != undefined) ? $(authNotesMatch) : '';
var disableIfMultNotes = getSiteOption('authNotesDisableMultipleMatches'
,false);
if (authNotes.length && ((authNotes.length <= 1) || (!disableIfMultNotes
))) {
var expandStr = getSiteOption('authExpandString', null);
if (expandStr == null) {
expandStr = getSiteOption('expandString', '+');
}
var contractStr = getSiteOption('authContractString', null);
if (contractStr == null) {
contractStr = getSiteOption('contractString', '-');
}
var authAffilList = $("div.article div.contributors ol.affiliation-list:
has(li):last"); //get the affiliate-list
var newNotesP = '<p class="author-notes-reveal"><a href="#" class="viewmore">' + expandStr + '</a> Author Notes</p>';
/* add auth notes show/hide p, and move author-notes after it */
authAffilList.addClass("has-authnotes").after(authNotes).after(newNo
tesP);
/* hide author notes until requested */
authNotes.each( //already checked if authNotes present
function (i) {
modClass(authNotes.eq(i),'hidenotes','shownotes'
);
}
);
$(authorNotes).click(
function(e) {
AuthClickOnNotesButton(authorNotes,authN
otesMatch,expandStr,contractStr,e);
}
);
}
fixColHeights(1);
}
}
function figExpandInline() {
var figlinks = $("div.fig-inline:not(.video-inline) a[href*='expansion']
");
if (figlinks.length) {
figlinks.each(
function() {
var $this = $(this);
var classAttr = $this.attr("class");
if (!(classAttr && ((classAttr == 'in-nw') || (c
lassAttr == 'ppt-landing')))) {
$this.addClass("fig-inline-link");
if ($this.text().indexOf('n this window'
) >= 0) {
$this.text("In this page");
}
var parentDiv = $this.parents("div.fig-i
nline");
var href = $this.attr("href");

$(this).click(
function(e) {
swapFig(e, href, parentD
iv);
parentDiv.find('a.fig-inline-link, a.in-nw-vis').unb
ind('click');
}
);
}
}
);
}
}

function swapFig(e, href, figWrapperEl) {


var host = document.location.protocol + "//" + document.location.host;
var path = document.location.pathname;
var pathseg = path.substring(0, path.lastIndexOf('/'));
//var baseAjaxUrl = host + pathseg + '/' + href;
var baseAjaxUrl;
if (href.indexOf('http:' == 0)) {
baseAjaxUrl = href;
}
else {
baseAjaxUrl = host + pathseg + '/' + href;
}
var ajaxUrl = baseAjaxUrl + ((href.indexOf('?') >= 0) ? '&' : '?') + 'ba
seURI=' + ((baseAjaxUrl.indexOf('?') > 0) ? baseAjaxUrl.substring(0, baseAjaxUrl
.indexOf('?')): baseAjaxUrl);
//var ajaxUrl = baseAjaxUrl + ((href.indexOf('?') >= 0) ? '&' : '?') + '
baseURI=' + baseAjaxUrl;
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
beforeSend: addFigHeaders,
success: function(xhtml) {
addFig(xhtml, figWrapperEl);
},
complete: ajaxComplete
});
e.preventDefault();
}
function addFigHeaders(req) {
addCommonHeaders(req);
addPartHeaders(req);
}
function addFig(xhtmlData, figWrapperEl) {
if (xhtmlData && !(xhtmlData.indexOf('<html') >= 0)) {
figWrapperEl.addClass("inline-expansion");
// pick the replacement image out of the div we get back - there should
be only one

largerImage = $("img", xhtmlData).filter(":first");


largerImage.addClass("replaced-figure");
// get the current image, mark it and hide it
previousImage = $("img", figWrapperEl).filter(":first");
previousImage.addClass("previous-figure");
previousImage.hide();
// swap previous image out for larger image
largerImage.appendTo(previousImage.parent());
// Remove link to "display in this window" by looking for the link and h
iding it's parent
figWrapperEl.find(".callout .callout-links a.fig-inline-link").parent('l
i').hide();
newWindowTargets();
var lookupRule = "div.article div.fig img";
var numImagesToLoad = checkUnloadedImgs(lookupRule);
setTimeout("fixHeightForImages(1" + "," + numImagesToLoad + ",'"
+ lookupRule + "')", 1000);
gColTempResize = true;
fixColHeights(1);
gColTempResize = false;
}
}
function refLinksNewWindowTarget() {
$("div.ref-list div.cit-extra a").each(
function(i) {
var origTitle = $(this).attr("title");
var newTitle = '';
if ((origTitle == undefined) || (!origTitle)) {
origTitle = '';
}
else {
newTitle = origTitle + ' ';
}
newTitle += '[opens in a new window]';
$(this).attr("target", "_blank").attr("title", newTitle)
;
}
);
}
function addRefPops() {
var numMissed = 0;
var maxToSkip = getSiteOption('refPopsMaxToSkip', 10);
var maxGap = getSiteOption('refPopsGapTolerance', 2);
var i = 1;
var j = 1;
var idroot = "#xref-ref-";
var el = $(idroot + i + "-" + j);
while (numMissed < maxToSkip) {
if (!el.length) {
var refFound = 0;
var last = j + maxGap;
while (!refFound && j < last) {
j++;
el = $(idroot + i + "-" + j);

if (el.length) {
refFound = 1;
}
}
if (!refFound) {
if (j == (maxGap + 1)) {
numMissed++;
}
i++;
j = 1;
el = $(idroot + i + "-" + j);
}
} else {
numMissed = 0;
el.hover(dispRef, hideRef);
if ((getSiteOption("isIosRefPops") == true)) {
//Also set the ios version of the function
el.hover(iosdispRef, hideRef);
}
j++;
el = $(idroot + i + "-" + j);
}
}
}
function dispRef(e) {
var link = $(this).attr("href");
//Added to support ref-popups in expansion pages
if (!link.match(/^#/) )
{
link=link.substr(link.indexOf("#"));
}
if($("div#hovering-ref").length) {
$("div#hovering-ref").remove();
//alert("hovering-ref div removed on new hover!");
}
var linkEl = $(link);
if (linkEl.length) {
var citHtml = linkEl.next("div").children("div.cit-metadata");
if (!(citHtml.length)) {
citHtml = linkEl.parent().next("div").children("div.citmetadata");
}
if (citHtml.length) {
var newDiv = '<div id="hovering-ref">' + (citHtml.clone(
).html()) + '</div>';
$("body").append(newDiv);
var elH = getObjHeight($("div#hovering-ref"));
if ((getSiteOption("isIosRefPops") == true)) {
$("div#hovering-ref").css("left", 10).css("top",
e.pageY-elH).css("position", "absolute");
}
else {
$("div#hovering-ref").css("left", e.pageX ).css(
"top", e.pageY-elH).css("position", "absolute");
var hh = $("#hovering-ref").height ();
var ntop =(e.pageY - elH -hh > window.scrollY)?e
.pageY - elH -hh:e.pageY + 25;
$("#hovering-ref").css("top", ntop);

}
}
}
}
function hideRef(e) {
if($("div#hovering-ref").length) {
$("div#hovering-ref").remove();
}
}
function getHWCiting() {
var citingA = $("#cb-hw-citing-articles");
if (citingA.length) {
var newA = '<a id="cb-loading-hw-cited" href="#">Loading citing
article data...</a>';
citingA.replaceWith(newA);
var href = citingA.attr("href");
var id = '';
if (href && (href.indexOf('?') > 0)) {
var args = href.substring(href.indexOf('?') + 1).split('
&');
for (var i = 0; i < args.length; i++) {
if (args[i].toLowerCase().indexOf('legid=') == 0
) {
id = args[i].substring(args[i].indexOf('
=') + 1);
if (id.indexOf('#') > 0) {
id = id.substring(0, id.indexOf(
'#'));
}
}
}
if (!(id == '')) {
var host = document.location.protocol + "//" + d
ocument.location.host;
var ajaxUrl = host + '/cited-by/' + id.replace(/
;/,'/');
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: addHWCiting,
complete: ajaxCompleteCitedBy
});
}
}
}
}
function getHWRelatedURLs() {
var relatedURLsA = $("#cb-related-urls");
var relatedURLsMsg = getSiteOption('relatedWebPageLoadingText','Loading
related web page data...');
if (relatedURLsA.length) {
var newA = '<a id="cb-loading-related-urls" href="#">' + related
URLsMsg + '</a>';
relatedURLsA.replaceWith(newA);
var href = relatedURLsA.attr("href");

var id = '';
if (href && (href.indexOf('?') > 0)) {
var args = href.substring(href.indexOf('?') + 1).split('
&');
for (var i = 0; i < args.length; i++) {
if (args[i].toLowerCase().indexOf('legid=') == 0
) {
id = args[i].substring(args[i].indexOf('
=') + 1);
if (id.indexOf('#') > 0) {
id = id.substring(0, id.indexOf(
'#'));
}
}
}
if (!(id == '')) {
var host = document.location.protocol + "//" + d
ocument.location.host;
var ajaxUrl = host + '/related-web-pages/' + id.
replace(/;/,'/');
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: addRelatedURLs,
complete: ajaxComplete
});
}
}
}
}
function getPatientInformData() {
var pInformA = $("#cb-patientinform");
if (pInformA.length) {
var newA = '<a id="cb-loading-patientinform" href="#">Loading <e
m>patient</em>INFORMation...</a>';
pInformA.replaceWith(newA);
var href = pInformA.attr("href");
var id = '';
if (href && (href.indexOf('?') > 0)) {
var args = href.substring(href.indexOf('?') + 1).split('
&');
for (var i = 0; i < args.length; i++) {
if (args[i].toLowerCase().indexOf('legid=') == 0
) {
id = args[i].substring(args[i].indexOf('
=') + 1);
if (id.indexOf('#') > 0) {
id = id.substring(0, id.indexOf(
'#'));
}
}
}
if (!(id == '')) {
var host = document.location.protocol + "//" + d
ocument.location.host;
var ajaxUrl = host + '/related-web-pages/patient
inform/' + id.replace(/;/,'/');

$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: addPatientInform,
complete: ajaxComplete
});
}
}
}
}
function getISIRelated() {
var relatedA = $("#cb-isi-similar-articles");
if (relatedA.length) {
var newA = '<a id="cb-isi-similar-articles" href="#">Loading Web
of Science article data...</a>';
relatedA.replaceWith(newA);
var href = relatedA.attr("href");
var id = '';
if (href) {
var hrefDec = decodeURI(href);
if ((hrefDec.indexOf('?') > 0)) {
var args = hrefDec.substring(hrefDec.indexOf('?'
) + 1).split('&');
for (var i = 0; i < args.length; i++) {
var argDec = decodeURIComponent(args[i])
;
if (argDec.toLowerCase().indexOf('access
_num=') == 0) {
id = argDec.substring(argDec.ind
exOf('=') + 1);
if (id.indexOf('#') > 0) {
id = id.substring(0, id.
indexOf('#'));
}
}
}
if (!(id == '')) {
var host = document.location.protocol +
"//" + document.location.host;
var ajaxUrl = host + '/isi-links/has-rel
ated/' + id.replace(/;/,'/');
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: addISIRelated,
complete: ajaxComplete
});
}
}
}
}
}
function getCiting(service, msg, pathseg, successFn, addlParamString) {
if (typeof(addlParamString) == "undefined") {
addlParamString = '';

}
var citingA = $("#cb-" + service + "-citing-articles");
if (citingA.length) {
var newA = '<a id="cb-loading-' + service + '-cited" href="#">'
+ msg + '</a>';
citingA.replaceWith(newA);
var href = citingA.attr("href");
var id = '';
if (href) {
var hrefDec = decodeURI(href);
if ((hrefDec.indexOf('?') > 0)) {
var args = hrefDec.substring(hrefDec.indexOf('?'
) + 1).split('&');
for (var i = 0; i < args.length; i++) {
var argDec = decodeURIComponent(args[i])
;
if (argDec.toLowerCase().indexOf('access
_num=') == 0) {
id = argDec.substring(argDec.ind
exOf('=') + 1);
if (id.indexOf('#') > 0) {
id = id.substring(0, id.
indexOf('#'));
}
}
}
if (!(id == '')) {
var host = document.location.protocol +
"//" + document.location.host;
var ajaxUrl = host + '/' + service + '-l
inks/' + pathseg + id.replace(/;/,'/') + (addlParamString != '' ? '?' + addlPara
mString : '');
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: successFn,
complete: ajaxComplete
});
}
}
}
}
}
function getISICiting() {
var citingA = $("#cb-isi-citing-articles");
if (citingA.length) {
var newA = '<a id="cb-loading-isi-cited" href="#">Loading Web of
Science citing article data...</a>';
citingA.replaceWith(newA);
var href = citingA.attr("href");
var id = '';
if (href) {
var hrefDec = decodeURI(href);
if ((hrefDec.indexOf('?') > 0)) {
var args = hrefDec.substring(hrefDec.indexOf('?'
) + 1).split('&');
for (var i = 0; i < args.length; i++) {

var argDec = decodeURIComponent(args[i])


;
if (argDec.toLowerCase().indexOf('access
_num=') == 0) {
id = argDec.substring(argDec.ind
exOf('=') + 1);
if (id.indexOf('#') > 0) {
id = id.substring(0, id.
indexOf('#'));
}
}
}
if (!(id == '')) {
var host = document.location.protocol +
"//" + document.location.host;
var ajaxUrl = host + '/isi-links/' + id.
replace(/;/,'/');
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: addISICiting,
complete: ajaxComplete
});
}
}
}
}
}
function getEntrezLinks() {
var entrezDiv = $("#cb-entrez-links-placeholder");
if (entrezDiv.length) {
var entrezA = entrezDiv.children("a");
if (entrezA) {
var host = document.location.protocol + "//" + document.
location.host;
var ajaxUrl = host + entrezA.attr("href");
$.ajax({
url: ajaxUrl,
dataType: "html",
type: "GET",
error: ajaxErr,
success: addEntrezLinks,
complete: ajaxComplete
});
}
}
}
function ajaxErr(req, msg, e) {
}
function ajaxComplete(req, msg) {
}
function ajaxCompleteCitedBy(req, msg) {
}
function updateCBItem(cbItem, newHTML, hasData) {
var parentItem = cbItem.parents("li").eq(0);
cbItem.replaceWith(newHTML);

if (!hasData) {
// hide the parent li
if (parentItem.length) {
modClass(parentItem,"nodata","");
// check if there are any siblings still being displayed
var otherItems = parentItem.siblings();
var allItemsEmpty;
if (otherItems.length) {
if (otherItems.length == otherItems.filter(".nod
ata").length) {
allItemsEmpty = true
}
else {
allItemsEmpty = false;
}
}
else {
allItemsEmpty = true;
}
if (allItemsEmpty) {
var cbsection = parentItem.parents("div.cb-secti
on").eq(0);
if (cbsection.length) {
modClass(cbsection,"nodata","");
}
// do we need to look further?
if (parentItem.parents("div.cb-section").length
> 1) {
var cbSectionSibs = cbsection.siblings(
"div.cb-section");
if (cbSectionSibs.length) {
if (cbSectionSibs.length == cbSe
ctionSibs.filter(".nodata").length) {
allItemsEmpty = true
}
else {
allItemsEmpty = false;
}
}
else {
allItemsEmpty = true;
}
if (allItemsEmpty) {
var cbgrandsection = parentItem.
parents("div.cb-section").eq(1);
if (cbgrandsection.length) {
modClass(cbgrandsection,
"nodata","");
}
}
}
}
}
}
// in frameset fix targets on child links, forms
fixFrameLinks(parentItem.find("a,form"));
fixColHeights(2);
}
function fixFrameLinks(jqItems) {
if ((gIsFrameset != null) && gIsFrameset) {

jqItems.each(
function(i) {
var href = $(this).attr("href");
var action = $(this).attr("action"); // if form
if ((href != null) || (action != null)) {
var inFrameAnchor = ((href != null) && (
((/frameset=/.test(href)) && (/#/.test(href))) || (href.substring(0,1) == '#')))
;
if ((!inFrameAnchor) || (action != null)
) {
if ((navigator.userAgent.indexOf
("Firefox") >= 0) && ($(this).hasClass("pdf-direct-link"))) {
$(this).attr("target", "
_blank");
} else if (getSiteOption("hasFra
meLinkTargetFunction", false)) {
$(this).attr("target", s
etFrameLinkTarget($(this)));
} else {
$(this).attr("target", "
_top");
}
}
}
}
);
}
}
function addRelatedURLs(xhtmlData) {
var cbA = $("#cb-loading-related-urls");
if (gIsFrameset) {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-related-urls-none"
>Not available in this view</div>', false);
}
}
else if (xhtmlData && !(xhtmlData.indexOf('<span') >= 0)) {
$("#related-urls").replaceWith(xhtmlData);
var relatedWebPagesLabel = getSiteOption('relatedWebPagesLabel',
'Related Web Pages');
fixColHeights(1);
if (cbA.length) {
updateCBItem(cbA, '<a href="#related-urls">' + relatedWe
bPagesLabel + '</a>', true);
}
}
else {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-related-urls-none"
>No related web pages</div>', false);
}
}
}
function addPatientInform(xhtmlData) {
var cbA = $("#cb-loading-patientinform");
if (gIsFrameset) {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-patientinform-none
">Not available in this view</div>', false);
}

}
else if (xhtmlData && !(xhtmlData.indexOf('<span') >= 0)) {
$("#patientinform-links").replaceWith(xhtmlData);
fixColHeights(1);
if (cbA.length) {
updateCBItem(cbA, '<a href="#patientinform-links"><em>pa
tient</em>INFORMation</a>', true);
}
}
else {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-patientinform-none
">No <em>patient</em>INFORMation available for this article</div>', false);
}
}
}
function addHWCiting(xhtmlData) {
var cbA = $("#cb-loading-hw-cited");
if (gIsFrameset) {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-hw-cited-none">Not
available in this view</div>', false);
}
}
else if (xhtmlData) {
$("#content-block").append(xhtmlData);
var hwCitingLabel = getSiteOption('hwCitingLabel', 'View citing
article information');
fixColHeights(1);
if (cbA.length) {
if (!(getSiteOption("includeHWCitingTitle") == true)) {
updateCBItem(cbA, '<a href="#cited-by">' + hwCitingLabel + '</a>
', true);
}
else {
updateCBItem(cbA, '<a href="#cited-by" title="HighWire Press-hos
ted articles citing this article">' + hwCitingLabel + '</a>', true);
}
}
}
else {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-hw-cited-none">No citing a
rticles</div>', false);
$("#cb-art-cited").addClass("no-citations");
}
}
}
function addISIRelated(xhtmlData) {
var cbA = $("#cb-isi-similar-articles");
if (xhtmlData && !(xhtmlData.indexOf('<span') >= 0)) {
if (cbA.length) {
updateCBItem(cbA, xhtmlData, true);
}
}
else {

if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-isi-related-none">
No Web of Science related articles</div>', false);
}
}
}
function addISICiting(xhtmlData) {
var cbA = $("#cb-loading-isi-cited");
if (xhtmlData && !(xhtmlData.indexOf('<span') >= 0)) {
if (cbA.length) {
updateCBItem(cbA, xhtmlData, true);
}
}
else {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-isi-cited-none">No
Web of Science citing articles</div>', false);
}
}
}
function addScopusCiting(xhtmlData) {
var cbA = $("#cb-loading-scopus-cited");
if (xhtmlData && (xhtmlData.indexOf('<a ') >= 0)) {
if (cbA.length) {
updateCBItem(cbA, xhtmlData, true);
}
}
else {
if (cbA.length) {
updateCBItem(cbA, '<div id="cb-loaded-scopus-cited-none"
>No Scopus citing articles</div>', false);
}
}
}
function addEntrezLinks(xhtmlData) {
var entrezDiv = $("#cb-entrez-links-placeholder");
if (xhtmlData && (xhtmlData.indexOf('<a ') >= 0)) {
if (entrezDiv.length) {
updateCBItem(entrezDiv, xhtmlData, true);
$(entrezDiv).parent('li').addClass('has-data');
}
}
else {
if (entrezDiv.length) {
updateCBItem(entrezDiv, '<div id="cb-entrez-links-none">
No NCBI links</div>', false);
}
}
}
function updateSBLinks() {
var fbLink = $("a.sb-facebook");
if (fbLink.length) {
fbLink.click(
function(e) {
window.open(this.href, 'sharer', 'toolbar=0,stat
us=0,width=626,height=436');
e.preventDefault();

}
);
}
updateGPlus();
}
function updateGPlus() {
var gPlus = $("ul.social-bookmark-links li.social-bookmarking-item-googlepl
us");
/*
See instructions here if you want to see how to change this:
http://www.google.com/webmasters/+1/button/
*/
/*
running a test here to check for MSIE < v8, in the interest of avoiding
odd display when code returned by google fails.
*/
var suppressGPlus = false;
if (($.browser.msie)&&(parseInt($.browser.version, 10)<8)) {
suppressGPlus = true;
}
if (suppressGPlus) {
$('.social-bookmarking-item-googleplus').hide();
} else {
if (gPlus.length) {
var gPlusSize
= getSiteOption("googlePlusSize", 'small')
;
var gPlusDisplayCount = getSiteOption("googlePlusDisplayCount",
'false');
var gPlusURL
= $('head meta[name=citation_public_url]')
.filter(':first').attr('content') || document.location;
//gPlus.prepend('<g:plusone size="' + gPlusSize + '" count="' +
gPlusDisplayCount + '" href="' + gPlusURL +'" callback="gPlusCallback"></g:pluso
ne>');
gPlus.prepend('<div class="g-plusone" data-size="' + gPlusSize +
'" data-count="' + gPlusDisplayCount + '" data-href="' + gPlusURL +'" data-call
back="gPlusCallback"></div>');
$('a', gPlus).hide(); // remove anchor tag, we'll need it later
for clicktracking
$('body').append('<script type="text/javascript" src="https://ap
is.google.com/js/plusone.js"></script>');
};
}
}
function gPlusCallback() {
var gPlusLoggerURL = $("ul.social-bookmark-links li.social-bookmarking-itemgoogleplus a").filter(':first').attr('href');
// silently log the successful click
if (gPlusLoggerURL.length) {
$.get(gPlusLoggerURL);
}

}
function addDockedNav() {
var slugEl = $("#col-2 #slugline");
// get direct children li elements only
var artViews = $("#article-cb-main .cb-section ol:has(li a[rel^='view-']
) > li").clone();
var newDiv = '<div id="docked-nav"></div>';
$("#col-2").append(newDiv);
$("#col-2 #docked-nav").hide();
var newDivJQuery = $("#docked-nav");
newDivJQuery.append('<div class="content-box"><div class="cb-contents"><
h3>'+gSiteOptions.dockedNavThisArticleLabel+'</h3><div class="cb-section cb-slug
"><ol id="docked-slug"><li></li></ol></div><div class="cb-section"><ol id="docke
d-nav-views"></ol></div></div></div>');
$("#col-2 #docked-nav-views").append(artViews); /*.append(artSupp);*/
$("#col-2 #docked-nav #docked-slug li").append(slugEl.clone());
newDivJQuery.append($("#article-dyn-nav").clone());
$("#col-2 #docked-nav").fadeIn(250);
}
function removeDockedNav() {
var dockedNav = $("div#docked-nav");
if(dockedNav.length) {
dockedNav.fadeOut(250, function() { dockedNav.remove(); });
}
}
function fixWackyReflinksMarkup() {
// There's whitespace between the <li> tags, need to remove to avoid ugly sp
aces between words.
$("div.ref-list ol.cit-auth-list,div.ref-list ol.cit-ed-list").each(
function(i) {
var original_html = $(this).html();
var whitespace_stripped_html;
//Multiple spaces into one, remove trailing spaces after </li>
whitespace_stripped_html = original_html.replace(/\s+/g,' ');
whitespace_stripped_html = whitespace_stripped_html.replace(/<\/li>\
s+/gi,'</li>');
whitespace_stripped_html = whitespace_stripped_html.replace(/<\/span
>\s+<\/li>/gi,'</span></li>');
$(this).html(whitespace_stripped_html);
}
);
}
function linkPDFExtImg() {
var pdfExtImg = $("#content-block div.extract-view img.pdf-extract-img")
;
if (pdfExtImg.length) {
pdfExtImg.before(
'<p class="pdf-extract-click-text">' +
getSiteOption('pdfExtractExpandText','Click image below
to view at full size.') +
'<\/p>'

);
pdfExtImg.wrap('<a class="pdf-extract-click" href="#"></a>');
}
}
function createOverlay() {
var imgPdfExt = $(".article.extract-view a.pdf-extract-click").html();
var newDiv = '<div id="bg-hovering-img"></div><div id="hovering-img"><a
class="boxclose" id="boxclose"></a>' + (imgPdfExt) + '</div>';
$("body").delay(800).append(newDiv).fadeIn('fast',function(){
$('#hovering-img').fadeIn('fast');
});
$('#boxclose').click(function(){ $('#hovering-img').remove(); $('#bg-hov
ering-img').remove()});
$('#bg-hovering-img').click (function(){$('#hovering-img').remove();$('#
bg-hovering-img').remove();});
}
function pdfExtOverlay(){
if ($(".pdf-extract-img").length && !(window.SupressInitPdfExpandExtract)) {
createOverlay();
};
$("div.article.extract-view .pdf-extract-click img").click(function () {
createOverlay();
});
$(document).keyup(function(e) {
var KEYCODE_ESC = 27;
if (e.keyCode === KEYCODE_ESC) {
$('#hovering-img').remove();
$('#bg-hovering-img').remove();
}
});
}
function AuthClickOnAffilButton(authorAffilList,authAffilMatch,expandStr,contrac
tStr,e)
{
var allViewMores = $(authorAffilList);
var authAffils = $(authAffilMatch);
if (($(authorAffilList).filter(':first')).text() == contractStr) {
/* hide the affil list */
allViewMores.empty().append(expandStr);
authAffils.each(
function(i) {
modClass(authAffils.eq(i),'hideaffil','showaffil
');
}
);
}
else {
allViewMores.empty().append(contractStr);
authAffils.each(
function(i) {
modClass(authAffils.eq(i),'showaffil','hideaffil
');
}
);
}
fixColHeights(1);
e.preventDefault();
}
function AuthClickOnNotesButton(authorNotes,authNotesMatch,expandStr,contractStr

,e)
{
var allViewMores = $(authorNotes);
var authNotes = $(authNotesMatch);
if (($(authorNotes).filter(':first')).text() == contractStr) {
/* hide the affil list */
allViewMores.empty().append(expandStr);
authNotes.each(
function(i) {
modClass(authNotes.eq(i),'hidenotes','shownotes'
);
}
);
}
else {
allViewMores.empty().append(contractStr);
authNotes.each(
function(i) {
modClass(authNotes.eq(i),'shownotes','hidenotes'
);
}
);
}
fixColHeights(1);
e.preventDefault();
}
function AuthClickOnContribAffilLink(authorAffilList,authAffilMatch,expandStr,co
ntractStr,e)
{
$(authorAffilList).each(
function() {
if ($(this).text() == expandStr) {
$(this).empty().append(contractStr);
var authAffils = $(authAffilMatch);
if (authAffils.length) {
authAffils.each(
function(i) {
modClass(authAffils.eq(i
),'showaffil','hideaffil');
}
);
}
fixColHeights(1);
}
}
);
}
function col2SidebarOnlyFixvideo() {
$("div.col2-video-label").bind("click",
function (e) {
resid = $(this).attr("resid");
parentDiv = $(this);
if (videoGetCookie('login') || (hasVideosAccess(resid) == true)) {
displayVideo(parentDiv);
} else {
loginForm = '<div class="popup-login-form" style="border:1px solid #
ccc;"><form id="video-widget-login-form" method="post" action=""><p id="video-wi
dget-login-error" style="background-color:red;">Username, password not correct</
p><p><label for="login_name">Login: </label><input type="text" id="login_name" n

ame="login_name" size="30" /></p><p><label for="login_pass">Password: </label><i


nput type="password" id="login_pass" name="login_pass" size="30" /></p><p><input
type="submit" value="Login" /></p><p><em>Leave empty so see resizing</em></p></
form></div>';
$("#video-widget-login-error").hide();
$.fancybox(loginForm, {
'scrolling': 'no',
'titleShow': true,
autoDimensions: false,
width: 250,
height: 200,
'onClosed': function () {
$("#video-widget-login-error").hide();
}
});
$("#video-widget-login-error").hide();
$("#video-widget-login-form").bind("submit", function () {
var doc = "<accesscheck>";
var checkviews = 'vidsonly';
doc = doc + '<check-resource resid="' + resid + '" views="' + ch
eckviews + '" user="' + $('#login_name').val() + '" pwd="' + $('#login_pass').va
l() + '" ><\/check-resource>';
doc = doc + "<\/accesscheck>";
var ajaxUrl = document.location.protocol + "//" + document.locat
ion.host + '/authn-callback-videos';
var xmlResponse = $.ajax({
url: ajaxUrl,
contentType: 'text/xml',
data: doc,
dataType: "xml",
type: "POST",
beforeSend: function (xhr) {
xhr.setRequestHeader("expect", "");
},
async: false, //important to be not async
processData: false
});
var ret = - 1;
xmlResponse.done(function (jqXHR) {
$(jqXHR).find('check-resource').each(
function (i) {
var resid = $(this).attr('resid');
var view = $(this).attr('view');
var access = $(this).attr('add-class');
var myCookie = $(this).attr('cookie');
var domain = $(this).attr('domain');
if (access == 'free') {
ret = 1;
videoSetCookie("login", myCookie, null, "/", false,
false);
displayVideo(parentDiv);
} else {
ret = 0;
}
});
});
xmlResponse.fail(function (jqXHR, textStatus) {

ret = 0;
});
if ($("#login_name").val().length < 1 || $("#login_pass").val().
length < 1 || ret == 0) {
$("#video-widget-login-error").fadeOut("slow");
$("#video-widget-login-error").fadeIn();
$.fancybox.resize();
return false;
}
$.fancybox.showActivity();
return false;
});
}
});
}
function displayVideo(thisEl) {
var width = thisEl.attr("width");
var height = thisEl.attr("height");
var data = thisEl.attr("data");
var catalogclass = thisEl.attr("catalogclass");
var classid = thisEl.attr("classid");
var ast = thisEl.attr("autostart");
var playerType = thisEl.attr("playertype");
var playerID = thisEl.attr("playerid");
var playerKey = thisEl.attr("playerkey");
var videohost = thisEl.attr("video-host-js");
playerTemplate = '<div id="pop-out-sidebar-example"><object id="myExperience
" class="BrightcoveExperience"><param name="bgcolor" value="#000" /><param name=
"width" value="' + width + '" /><param name="height" value="' + height + '" /><p
aram name="playerID" value="' + playerID + '" /><param name="playerType" value="
videoPlayer" /><param name="playerKey" value="' + playerKey + '" /><param name="
isVid" value="true" /><param name="isUI" value="true" /><param name="autoStart"
value="true" /><param name="dynamicStreaming" value="true" /><param name="@video
Player" value="' + data + '"/></object></div>';
$.fancybox(playerTemplate, {
'scrolling': 'no',
'titleShow': true,
overlayShow: true,
onClosed: function () {
},
autoDimensions: false,
width: width,
height: height
});
// instantiate the player
brightcove.createExperiences();
return true;
}
function videoSetCookie(name, value, expires, path, domain, secure) {
var today = new Date();
today.setTime(today.getTime());
if (expires) {
expires = expires * 1000 * 60 * 60 * 24;
}
var expires_date = new Date(today.getTime() + (expires));

document.cookie = name + '=' + value +


((expires)? ';expires=' + expires_date.toGMTString(): '') +
((path)? ';path=' + path: '') +
((domain)? ';domain=' + domain: '') +
((secure)? ';secure': '');
return true;
}
function videoGetCookie(name) {
var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;
if (((! start) && (name != document.cookie.substring(0, name.length))) || (s
tart == - 1)) {
return null;
}
var end = document.cookie.indexOf(';', len);
if (end == - 1) end = document.cookie.length;
return unescape(document.cookie.substring(len, end));
}
function hasVideosAccess(resid) {
var doc = "<accesscheck>";
var checkviews = 'vidsonly';
doc = doc + '<check-resource resid="' + resid + '" views="' + checkviews + '
" ><\/check-resource>';
doc = doc + "<\/accesscheck>";
//alert(doc);
var ajaxUrl = document.location.protocol + "//" + document.location.host + '
/authn-callback-videos';
var xmlResponse = $.ajax({
url: ajaxUrl,
contentType: 'text/xml',
data: doc,
dataType: "xml",
type: "POST",
beforeSend: function (xhr) {
xhr.setRequestHeader("expect", "");
},
async: false, //important to be not async
processData: false
});
var ret = - 1;
xmlResponse.done(function (jqXHR) {
$(jqXHR).find('check-resource').each(
function (i) {
var resid = $(this).attr('resid');
var view = $(this).attr('view');
var access = $(this).attr('add-class');
var myCookie = $(this).attr('cookie');
var domain = $(this).attr('domain');
if (access == 'free') {
ret = 1;
return true;
} else {
ret = 0;
return false;
}
});

});
xmlResponse.fail(function (jqXHR, textStatus) {
ret = 0;
return false;
});
if (ret == 1) {
return true;
}
if (ret == 0) {
return false;
}
}
function fixvideo() {
flag = $(".video-info-for-popout");
if (flag.length) {
$(".video-info-for-popout img.pop-out-video").bind("click",
function (e) {
resid = $(this).parent().attr("resid");
parentDiv = $(this).parent();
//alert('parentid: ' + parentDiv);
//alert('resid: ' + resid);
displayVideo(parentDiv);
e.preventDefault();
});
$(".video-info-for-popout a.pop-out-video").bind("click",
function (e) {
resid = $(this).parent().attr("resid");
parentDiv = $(this).parent();
//alert('parentid: ' + parentDiv);
var w = $(this).attr("width");
//alert('width:'+ w);
displayVideo(parentDiv);
e.preventDefault();
});
}
}
&'*+\/=?\^_`{|}~\-]+)*@(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]
))?$/i),protocols:{generic:(/^http(s)?:\/\//i),secure:(/^https:\/\//i),nonSecure
:(/^http:\/\//i)},userAgents:{webkit:(/Webkit|KHTML\//i),gecko:(/Gecko\/([^\s]*)
/i),msie:(/MSIE\s([^;]*)/),iosAll:(/OS .* like Mac OS X/i),ios5:(/OS 5_.* like M
ac OS X/i),ios6:(/OS 6_.* like Mac OS X/i),opera:(/Opera[\s\/]([^\s]*)/)},contex
t:{upperCase:(/([A-Z])/g),lowerCase:(/([a-z])/g)},types:{number:(/^[0-9\.,]+$/),
htmlAttribute:(/^[a-z0-9\._\-]+$/i),token:(/^[a-z0-9\.\-\_%]+$/i),bool:(/^(?:tru
e|yes|1)$/i),boolFalse:(/^(?:false|no|0)$/i)},readyState:(/(loaded|complete)/),t
ags:{initialized:(/\+init$/)},prefixes:{forwardSlash:(/^\//),urlEq:(/^url=/i)},c
hars:{tilde:(/^~$/),amp:(/&/g),lt:(/</g),gt:(/>/g),quot:(/"/g),squot:(/'/),dot:(
/\./g),star:(/\*/g)}};
/* res://connect-min/dev/includes/globals.js */
$_GLOBALS={auth_complete:false,compat:{silent_auth:(typeof IN==="undefined")?fal
se:(IN.ENV.url.silent_auth_url.indexOf("$")===-1)},shadowBox:{theClass:"IN-shado
wed",altOpacity:0.2},hovercardOffset:function(a){return[{fixed:"tr",movable:"tl"
,offsetY:-1*a},{fixed:"tl",movable:"tr",offsetY:-1*a},{fixed:"bl",movable:"br",o
ffsetY:a},{fixed:"br",movable:"bl",offsetY:a},{fixed:"tl",movable:"br",offsetY:a
},{fixed:"tr",movable:"bl",offsetY:a}]
},getLRORValue:function(b){function a(l,g,k){var j=g+"=",f=l.split(k||";"),m;
for(var h=0;
h<f.length;

h++){m=f[h];
while(m.charAt(0)==" "){m=m.substring(1,m.length)
}m=e(m);
if(m.indexOf(j)==0){return m.substring(j.length,m.length)
}}return null
}function e(f){if(f.charAt(0)==='"'){f=f.substring(1,f.length)
}if(f.charAt(f.length-1)==='"'){f=f.substring(0,f.length-1)
}return f
}var d=a(document.cookie,"lror"),c;
if(!d){return false
}c=a(d,b,"&");
if(!c){return false
}return c
},getButtonThemeForDomain:function(){var d=window.location.hostname.split(".").s
lice(-2).join("."),b=["theatlantic.com","businessinsider.com","cfo.com","economi
st.com","linkedin.com","reuters.com","techcrunch.com","wired.com","wsj.com"];
if(b.indexOf){return b.indexOf(d)===-1?"":"flat"
}for(var c=0,a=b.length;
c<a;
c++){if(d===b[c]){return"flat"
}}}};
/* res://connect-min/dev/connect/core.js */
IN=window.IN||{};
if(!window.console){window.console={}
}if(typeof window.console.log!==$_CONSTANTS.types.func){window.console.log=funct
ion(){}
}if(typeof window.console.warn!==$_CONSTANTS.types.func){window.console.warn=fun
ction(){}
}window.JSON=JSON;
window.Sslac=Sslac;
(function(){if(!IN.ENV||!IN.ENV.js){return
}var e=IN.ENV.js.extensions||{},d,c=IN.$extensions;
IN.$extensions=function(g,f){if(!f){return c(g)
}IN.Event.on(IN,$_CONSTANTS.events.frameworkLoaded,function(){f();
IN.ENV.js.extensions[g].loaded=true
})
};
for(var a in e){if(e.hasOwnProperty(a)){var b=e[a];
if(b.loaded){continue
}d=document.createElement("script");
d.type="text/javascript";
d.src=b.src;
document.getElementsByTagName("head")[0].appendChild(d)
}}})();
if(IN.ENV&&IN.ENV.js){var TYPES=$_CONSTANTS.types,key,paramsMap={authorize:{type
:TYPES.bool},debug:{type:TYPES.bool},suppressWarnings:{type:TYPES.bool},deferPar
se:{type:TYPES.bool,defaultValue:false},statistics:{type:TYPES.bool,defaultValue
:true},isFramed:{type:TYPES.bool,defaultValue:(window.self!==window.parent)},lan
g:{type:TYPES.string,defaultValue:"en_US"},scope:{type:TYPES.list},noAuth:{type:
TYPES.bool}};
for(key in paramsMap){if(paramsMap.hasOwnProperty(key)){if(typeof IN.ENV.js[key]
!==TYPES.undef){switch(paramsMap[key].type){case TYPES.bool:IN.ENV.js[key]=$_PAT
TERNS.types.bool.test(IN.ENV.js[key]);
break;
case TYPES.integer:IN.ENV.js[key]=parseInt(IN.ENV.js[key],10);
break;
case TYPES.number:IN.ENV.js[key]=Number(IN.ENV.js[key]);
break;

case TYPES.list:IN.ENV.js[key]=IN.ENV.js[key].replace(/(,|;|\s)/g," ").replace(/


\s+/g," ").split(" ");
break;
case TYPES.string:default:break
}}if((typeof IN.ENV.js[key]===TYPES.undef)&&(typeof paramsMap[key].defaultValue!
==TYPES.undef)){IN.ENV.js[key]=paramsMap[key].defaultValue
}}}}Sslac.Function("IN.$Tag",function(b,a){a=a||document;
return a.getElementsByTagName(b)
});
Sslac.Function("IN.$Id",function(a){return(typeof(a)===$_CONSTANTS.types.string)
?document.getElementById(a):a
});
Sslac.Function("IN.$Class",function(c,b,d){var a=function(f,e,g){if(document.get
ElementsByClassName){a=function(n,q,m){m=m||document;
var h=m.getElementsByClassName(n),p=(q)?new RegExp("\\b"+q+"\\b","i"):null,j=[],
l;
for(var k=0,o=h.length;
k<o;
k+=1){l=h[k];
if(!p||p.test(l.nodeName)){j.push(l)
}}return j
}
}else{if(document.evaluate){a=function(r,u,q){u=u||"*";
q=q||document;
var k=r.split(" "),s="",o="http://www.w3.org/1999/xhtml",t=(document.documentEle
ment.namespaceURI===o)?o:null,l=[],h,i;
for(var m=0,n=k.length;
m<n;
m+=1){s+="[contains(concat(' ', @class, ' '), ' "+k[m]+" ')]"
}try{h=document.evaluate(".//"+u+s,q,t,0,null)
}catch(p){h=document.evaluate(".//"+u+s,q,null,0,null)
}while((i=h.iterateNext())){l.push(i)
}return l
}
}else{a=function(v,y,u){y=y||"*";
u=u||document;
var o=v.split(" "),x=[],h=(y==="*"&&u.all)?u.all:u.getElementsByTagName(y),t,q=[
],s;
for(var p=0,i=o.length;
p<i;
p+=1){x.push(new RegExp("(^|\\s)"+o[p]+"(\\s|$)"))
}for(var n=0,w=h.length;
n<w;
n+=1){t=h[n];
s=false;
for(var j=0,r=x.length;
j<r;
j+=1){s=x[j].test(t.className);
if(!s){break
}}if(s){q.push(t)
}}return q
}
}}return a(f,e,g)
};
return a(c,b,d)
});
(function(){var b=0;
var a="li_gen_";
Sslac.Function("IN.$uid",function(d){var c=((d)?d+"_":"")+a+(new Date()).getTime
()+"_"+(b++);

return c
})
})();
(function(){var a=function(b,c,e,d){return function(){if(c){window.setTimeout(fu
nction(){window[b]=undefined
},50)
}e.apply(d,arguments)
}
};
Sslac.Function("IN.$fn",function(e,d,c){var b=IN.$uid("fn");
window[b]=a(b,c,e,d);
return b
})
})();
/* res://connect-min/dev/lib/easyxdm_noconflict.js */
IN.Lib=IN.Lib||{};
IN.Lib.easyXDM=easyXDM.noConflict("IN.Lib");
/* res://connect-min/dev/statistics/statistics.js */
(function(){if(!IN.ENV.js.statistics){return
}var t=IN.ENV.statsQueue||[],h=false,j=/([a-z_-])*\:\{\}(,)*/gi,s=/,\}/g,b=$_CON
STANTS.events,w="(\\?|&)([a-z]*)=({PARAM})",f="__ORIGIN__",c=new RegExp(w.replac
e(/\{PARAM\}/,f),"i"),g="__WTYPE__",d=new RegExp(w.replace(/\{PARAM\}/,g),"i"),p
={env:{},events:{},tags:{},apis:{}},r={types:{apis:"a",tags:"t",profiler:"p",env
:"e",action:"a",count:"c"},actions:{click:"c"},apis:{raw:"r",profile:"p",group:"
g",connections:"c",memberupdates:"m",networkupdates:"n",peoplesearch:"ps",commen
t:"co",post:"po"},tags:{share:"s",apply:"a",login:"l",recommendproduct:"r",compa
nyprofile:"cp",companyinsider:"ci",memberdata:"md",memberprofile:"mp",fullmember
profile:"fmp",jymbii:"j",mail:"m",wizard:"w",followcompany:"fc",employeeprofilew
idget:"xemp",coreg:"xcr",sfdc:"xsf"},profiler:{"bl":["bootstrapInit","bootstrapL
oaded"],"be":["bootstrapInit","userspaceRequested"],"fl":["bootstrapInit",b.fram
eworkLoaded]}};
function e(B,A){if(!B||!A){return NaN
}var z=Math.min(B.length,A.length),C=0,y;
y=z;
for(;
z--;
){C+=Math.abs(B[z]-A[z])
}return Math.ceil(C/y)
}function k(){var G=["tags","apis","profiler","env"],D={};
for(var E=G.length;
E--;
){var M,J=G[E],H=D[r.types[J]||J]={};
if(J==="profiler"){for(M in r.profiler){if(r.profiler.hasOwnProperty(M)){var y=r
.profiler[M],L=e(p.events[y[1]],p.events[y[0]]);
if(!(L===0||isNaN(L)||!L)){H[M]=L
}}}}else{if(J==="env"){if(IN.ENV.js.isFramed){H.f=1
}if(IN.ENV.auth.api_key){H.a=IN.ENV.auth.api_key
}if(IN.ENV.auth.oauth_token){H.o=1
}}else{if(J==="apis"||J==="tags"){var F=p[J];
for(M in F){if(F.hasOwnProperty(M)){var C=H[r[J][M]]={};
var K=null;
for(var I in F[M].count){if(F[M].count.hasOwnProperty(I)){K||(K={});
K[r.actions[I]||I]=F[M].count[I]
}}if(K){C[r.types.count]=K
}var B=null;
for(var A in F[M].actions){if(F[M].actions.hasOwnProperty(A)){B||(B={});

B[r.actions[A]||A]=F[M].actions[A].length
}}if(B){C[r.types.action]=B
}if(F[M].profiler){var z=e(F[M].profiler.end,F[M].profiler.start);
if(!(z===0||isNaN(z)||!z)){C[r.types.profiler]=z
}else{C[r.types.profiler]={}
}}}}}}}}return JSON.stringify(D).replace($_PATTERNS.chars.quot,"").replace(j,"")
.replace(s,"}")
}function o(i){i=i.split(":");
if(i.length<2){return{type:"tags",who:i[0].toLowerCase()}
}return{type:i[0],who:i[1].toLowerCase()}
}function a(z,A){var y=o(z);
if(!p[y.type]){return
}var i=p[y.type][y.who]=p[y.type][y.who]||{};
i.count||(i.count={});
i.count.t=1+(i.count.t||0);
if(A){if(y.who=="share"&&A.url&&A.url!==location.href){i.count.e=1+(i.count.e||0
)
}}}function u(i,A,B){var y=o(A),z;
if(!p[y.type]){return
}z=p[y.type][y.who];
if(z){if(!z[i]){z[i]={}
}if(!z[i][B]){z[i][B]=[]
}z[i][B].push(+new Date())
}}function l(i,y){u("action",i,y)
}function m(y,z){var i=p.events;
if(!i[y]){i[y]=[]
}i[y].push(z||+new Date())
}function n(i,y){var z=(y)?"end":"start";
u("profiler",i,z)
}function v(){if(!h){var E=k(),i=$_PATTERNS.protocols.secure.test(location.href)
?IN.ENV.url.analytics_url:IN.ENV.url.analytics_us_url,A=new Image(),z=$_CONSTANT
S.stats,B=i.match(c),F=i.match(d);
i+="&"+(+new Date());
if(B.length===4){var D="&"+B[2]+"="+B[3],y=(B[1]==="?")?"?":"";
i=(i.replace(c,y)+D).replace("?&","?")
}if(F.length===4&&F[1]!=="?"){var C="?"+F[2]+"="+F[3]+"&";
i=i.replace(d,"").replace("?",C)
}A.src=i.replace("__ETYPE__",z.eType).replace("__TINFO__",(IN.ENV.js.apiKey)?z.t
rkKeyed:z.trkAnon).replace(g,z.wType).replace("__TRKINFO__",encodeURIComponent(E
)).replace(f,encodeURIComponent(location.href));
h=true
}}$_STATISTICS={instance:a,recordAction:l,recordEvent:m,profile:n,firePing:v};
for(var q=t.length;
q--;
){for(var x in t[q]){if(t[q].hasOwnProperty(x)){m(x,t[q][x])
}}}IN.ENV.statsQueue=undefined;
IN.Event.on(window,b.beforeUnload,$_STATISTICS.firePing);
IN.Event.on(window,b.unload,$_STATISTICS.firePing)
})();
/* res://connect-min/dev/event/custom.js */
Sslac.Class("IN.CustomEvent").Constructor(function(a,b){this.occursOnlyOnce=(b)?
true:false;
this.fired=false;
this.firedArgs=[];
this.name=a;
this.events=[]
}).Method("unsubscribe",function(f,h,c,b){var j=this.events;
var a=[];

for(var d=0,e=j.length;
d<e;
d++){var g=j[d];
if(g.fn!==f||g.scope!==h||g.obj!==c||g.once!==b){a.push(g)
}}this.events=a
}).Method("subscribe",function(e,d,f,c){var a={fn:e,scope:d,obj:f,once:c};
var b=this.firedArgs;
if(this.fired&&this.occursOnlyOnce){b.push((a.obj||{}));
a.fn.apply((a.scope||window),b)
}else{this.events[this.events.length]=a
}}).Method("fire",function(){if(this.fired&&this.occursOnlyOnce){return false
}var e=[];
this.firedArgs=[].slice.apply(arguments);
this.fired=true;
for(var d=0,a=this.events.length;
d<a;
d++){var b=this.events[d];
var c=[].slice.apply(arguments);
c.push((b.obj||{}));
if(!b.once){e.push(b)
}b.fn.apply((b.scope||window),c)
}$_STATISTICS.recordEvent(this.name);
this.events=e;
return true
});
/* res://connect-min/dev/event/global.js */
(function(){var a=$_CONSTANTS.events;
Sslac.Static("IN.GlobalEvents");
IN.GlobalEvents.auth=new IN.CustomEvent(a.auth);
IN.GlobalEvents.noAuth=new IN.CustomEvent(a.noAuth);
IN.GlobalEvents.logout=new IN.CustomEvent(a.logout);
IN.GlobalEvents.refresh=new IN.CustomEvent(a.refresh);
IN.GlobalEvents.systemReady=new IN.CustomEvent(a.systemReady,true);
IN.GlobalEvents.frameworkLoaded=new IN.CustomEvent(a.frameworkLoaded,true)
})();
/* res://connect-min/dev/event/event.js */
IN.Event=null;
(function(){var h={};
var g=null;
function c(r,m,p){if(!p.preventDefault){p.preventDefault=function(){p.returnValu
e=false
}
}if(!p.stopPropagation){p.stopPropagation=function(){p.cancelBubble=true
}
}if(!p.stopEvent){p.stopEvent=function(){p.preventDefault();
p.stopPropagation()
}
}var l=h[r][m];
var k=l.el;
var j=[];
for(var n=0,o=l.length;
n<o;
n++){var q=l[n];
q.fn.call((q.scope||k),p,q.obj);
if(!q.fireOnce){j.push(q)
}}h[r][m]=j

}Sslac.Static("IN.Event").Static("remove",function(m,A,p,k,r,t){var j=$_CONSTANT
S.types,o=IN.Event.getElType(m),q=A.toLowerCase();
switch(o){case j.string:m=IN.$Id(m);
case j.html:var v=IN.Event.getElKey(m);
if(!h[v]||!h[v][q]){return
}var u=h[v][q];
var z=[];
for(var w=0,x=u.length;
w<x;
w++){var l=u[w];
if(l.el!==m||l.fn!==p||l.scope!==k||l.obj!==r||l.fireOnce!==t){z.push(l)
}}h[v][q]=z;
break;
case j.uiObject:try{var n="un"+A.charAt(0).toUpperCase()+A.substr(1);
if(m[n]){m[n](p,k,r,t)
}else{m[n.toLowerCase()](p,k,r,t)
}}catch(y){}break;
case j.globalEvent:var s=IN.GlobalEvents[A];
if(!s){throw new Error("Global Event "+A+" is not defined.")
}return s.unsubscribe(p,k,r,t);
break
}}).Static("getElKey",function(i){if(!i.getAttribute){return i
}var j=i.id||i.getAttribute("data-IN-event-id");
if(!j){j=IN.$uid();
i.setAttribute("data-IN-event-id",j)
}return"k"+j
}).Static("getElType",function(j){var i=$_CONSTANTS.types;
if(typeof(j)===i.string){return i.string
}if(j!==window&&(typeof(j)==i.func||typeof(j)==i.object)){try{var k=(j instanceo
f IN.Objects.Base);
if(k){return i.uiObject
}}catch(l){}}if(j===IN){return i.globalEvent
}return i.html
}).Static("onOnce",function(k,m,j,i,l){return IN.Event.on(k,m,j,i,l,true)
}).Static("on",function(k,l,v,z,o,n){try{try{if(k&&k.constructor&&k.constructor.
toString().indexOf("Array")>-1){for(var p=0,r=k.length;
p<r;
p++){IN.Event.on(k[p],l,v,z,o,n)
}return
}}catch(s){}var t=IN.Event.getElType(k),q=false,u=l.toLowerCase(),m=$_CONSTANTS.
types;
switch(t){case m.string:k=IN.$Id(k);
case m.html:var y=IN.Event.getElKey(k);
if(!h[y]){h[y]={el:k}
}if(!h[y][u]){h[y][u]=[];
q=true
}h[y][u].push({fn:v,scope:z,obj:o,fireOnce:n});
if(q){var x=function(i){c(y,u,i)
};
if(window.addEventListener&&k.addEventListener){k.addEventListener(l,x,false)
}else{if(k.attachEvent){k.attachEvent("on"+l,x)
}else{IN.Util.throwWarning("could not bind event `"+l+"` to `"+y+"`")
}}}break;
case m.uiObject:try{var j="on"+l.charAt(0).toUpperCase()+l.substr(1);
if(k[j]){k[j](v,z,o,n)
}else{k[j.toLowerCase()](v,z,o,n)
}}catch(s){}break;
case m.globalEvent:var w=IN.GlobalEvents[l];
if(!w){throw new Error("Global Event "+l+" is not defined.")
}return w.subscribe(v,z,o,n);

break
}}catch(s){}}).Static("onDOMReady",function(){var k=[];
var m=null;
var l=false;
function n(r,q){q=q||window;
if(l){r.call(q);
return
}else{k[k.length]={fn:r,scope:q}
}}function p(){var r;
for(var s=0,q=k.length;
s<q;
s++){r=k[s];
r.fn.call(r.scope)
}}function j(q){if(q&&(q.type=="DOMContentLoaded"||q.type=="load")){i()
}if(document.readyState){if(($_PATTERNS.readyState).test(document.readyState)){i
()
}}if(document.documentElement.doScroll&&window==window.top){try{l||document.docu
mentElement.doScroll("left");
i()
}catch(q){}}}function i(){if(!l){l=true;
if(document.removeEventListener){document.removeEventListener("DOMContentLoaded"
,j,false)
}document.onreadystatechange=null;
clearInterval(timer);
timer=null;
p()
}}if(document.addEventListener){document.addEventListener("DOMContentLoaded",j,f
alse)
}document.onreadystatechange=j;
timer=setInterval(j,5);
if(window.onload){var o=window.onload;
if(IN.ENV.evtQueue){IN.ENV.evtQueue.push({type:"on",args:[window,"load",o]})
}else{IN.Event.on(window,"load",o)
}}window.onload=j;
return n
}());
if(IN.ENV&&IN.ENV.evtQueue){for(var d=0,a=IN.ENV.evtQueue.length;
d<a;
d++){var f=IN.ENV.evtQueue[d],e=IN.Event[f.type],b=f.args;
e.apply(window,b)
}IN.ENV.evtQueue=null
}})();
/* res://connect-min/dev/util/util.js */
Sslac.Function("IN.Util.trim",function(b,a){a=a||"\\s";
return b.replace(new RegExp("^(?:"+a+")+|(?:"+a+")+$","g"),"")
});
Sslac.Function("IN.Util.findIn",function(f,e){var d=e.split(/\./),b=f;
for(var c=0,a=d.length;
c<a;
c++){if(!b[d[c]]){throw new Error("not found")
}b=b[d[c]]
}return b
});
Sslac.Function("IN.Util.getStyle",function(b,a){if(b.currentStyle){return b.curr
entStyle[IN.Util.camelCase(a)]
}else{if(window.getComputedStyle){return document.defaultView.getComputedStyle(b
).getPropertyValue(a)
}}return""

});
Sslac.Function("IN.Util.camelCase",function(a){return a.replace(/^-ms-/,"ms-").r
eplace(/-([a-z])/gi,function(b,c){return c.toUpperCase()
})
});
Sslac.Function("IN.Util.assembleRootURL",function(a){return a.protocol+"://"+a.h
ost+((a.port)?":"+a.port:"")
});
Sslac.Function("IN.Util.getRootURL",function(a){var b=IN.Util.getRootURLObject(a
);
return IN.Util.assembleRootURL(b)
});
Sslac.Function("IN.Util.getRootDomain",function(a){var b=IN.Util.getRootURLObjec
t(a);
return b.host
});
Sslac.Function("IN.Util.getRootURLObject",function(b){b=b||location.href;
if(b.indexOf("//")===0){b=window.location.protocol+b
}if(b.indexOf("://")===-1){b=window.location.protocol+"//"+b
}var c=b.substring(b.indexOf("://")+3);
var e=b.substring(0,b.indexOf("://")).toLowerCase();
c=(c.indexOf("/")!==-1)?c.substring(0,c.indexOf("/")):c;
var d=c.indexOf(":");
var a="";
if(d>=0){a=c.substring(d+1);
c=c.substring(0,d)
}if((a==="80"&&e==="http")||(a==="443"&&e==="https")){a=""
}return{protocol:e,host:c,port:a}
});
Sslac.Function("IN.Util.getDebuggerUrl",function(){try{return window.location.hr
ef.replace(window.location.hash,"").replace(document.domain,"").replace(/https?:
\/\//g,"")
}catch(a){return(window.opener)?"[spawned window]":(window.parent&&window.self!=
=window.parent)?"[spawned frame]":"[parent window]"
}});
(function(){var b;
Sslac.Function("IN.Util.addCSS",function a(c){b=b||(function(){var k=function(e)
{document.write("<style>"+e+"</style>")
},h,g,f;
try{h=document.createElement("style");
h.setAttribute("type","text/css");
document.getElementsByTagName("head")[0].appendChild(h);
k=function(e){if(h.styleSheet){h.styleSheet.cssText+=e
}else{h.appendChild(document.createTextNode(e))
}}
}catch(j){if(document.createStyleSheet){try{h=document.createStyleSheet()
}catch(d){g=document.styleSheets;
for(f=h.length;
f--;
){h=g[f];
if(h.cssRules&&h.cssRules.length<3500&&!/@media/gi.test(h.cssText+"")){break
}h=null
}}if(h){k=function(e){h.styleSheet.cssText+=e
}
}}}return{append:k}
}());
b.append(c)
})
}());
(function(){var b={};

function a(c){if(!b[c]){b[c]=new RegExp("(\\s|^)"+c+"(\\s|$)")


}return b[c]
}Sslac.Function("IN.Util.hasClass",function(d,c){return(d&&d.className&&d.classN
ame.match(a(c)))
});
Sslac.Function("IN.Util.addClass",function(d,c){if(!IN.Util.hasClass(d,c)&&(type
of d.className!==$_CONSTANTS.types.undef)){d.className=IN.Util.trim(d.className+
" "+c)
}});
Sslac.Function("IN.Util.removeClass",function(d,c){var e="";
if(IN.Util.hasClass(d,c)){e=IN.Util.trim(d.className.replace(a(c)," "));
if(e){d.className=e
}else{d.className="";
d.removeAttribute("class");
d.removeAttribute("className")
}}})
}());
Sslac.Function("IN.Util.isArray",function(a){if(!a||!a.constructor){return false
}return(a.constructor.toString().indexOf("Array")!==-1)
});
Ss/*
* FancyBox - jQuery Plugin
* Simple and fancy lightbox alternative
*
* Examples and documentation at: http://fancybox.net
*
* Copyright (c) 2008 - 2010 Janis Skarnelis
* That said, it is hardly a one-person project. Many people have submitted bugs
, code, and offered their advice freely. Their support is greatly appreciated.
*
* Version: 1.3.4 (11/11/2010)
* Requires: jQuery v1.3+
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
;(function($) {
var tmp, loading, overlay, wrap, outer, content, close, title, nav_left,
nav_right,
selectedIndex = 0, selectedOpts = {}, selectedArray = [], curren
tIndex = 0, currentOpts = {}, currentArray = [],
ajaxLoader = null, imgPreloader = new Image(), imgRegExp = /\.(j
pg|gif|png|bmp|jpeg)(.*)?$/i, swfRegExp = /[^\.]\.(swf)\s*$/i,
loadingTimer, loadingFrame = 1,
titleHeight = 0, titleStr = '', start_pos, final_pos, busy = fal
se, fx = $.extend($('<div/>')[0], { prop: 0 }),
isIE6 = $.browser.msie && $.browser.version < 7 && !window.XMLHt
tpRequest,
/*
* Private methods
*/

_abort = function() {
loading.hide();
imgPreloader.onerror = imgPreloader.onload = null;
if (ajaxLoader) {
ajaxLoader.abort();
}
tmp.empty();
},
_error = function() {
if (false === selectedOpts.onError(selectedArray, select
edIndex, selectedOpts)) {
loading.hide();
busy = false;
return;
}
selectedOpts.titleShow = false;
selectedOpts.width = 'auto';
selectedOpts.height = 'auto';
tmp.html( '<p id="fancybox-error">The requested content
cannot be loaded.<br />Please try again later.</p>' );
_process_inline();
},
_start = function() {
var obj = selectedArray[ selectedIndex ],
href,
type,
title,
str,
emb,
ret;
_abort();
selectedOpts = $.extend({}, $.fn.fancybox.defaults, (typ
eof $(obj).data('fancybox') == 'undefined' ? selectedOpts : $(obj).data('fancybo
x')));
ret = selectedOpts.onStart(selectedArray, selectedIndex,
selectedOpts);
if (ret === false) {
busy = false;
return;
} else if (typeof ret == 'object') {
selectedOpts = $.extend(selectedOpts, ret);
}
title = selectedOpts.title || (obj.nodeName ? $(obj).att
r('title') : obj.title) || '';
if (obj.nodeName && !selectedOpts.orig) {

selectedOpts.orig = $(obj).children("img:first")
.length ? $(obj).children("img:first") : $(obj);
}
if (title === '' && selectedOpts.orig && selectedOpts.ti
tleFromAlt) {
title = selectedOpts.orig.attr('alt');
}
href = selectedOpts.href || (obj.nodeName ? $(obj).attr(
'href') : obj.href) || null;
if ((/^(?:javascript)/i).test(href) || href == '#') {
href = null;
}
if (selectedOpts.type) {
type = selectedOpts.type;
if (!href) {
href = selectedOpts.content;
}
} else if (selectedOpts.content) {
type = 'html';
} else if (href) {
if (href.match(imgRegExp)) {
type = 'image';
} else if (href.match(swfRegExp)) {
type = 'swf';
} else if ($(obj).hasClass("iframe")) {
type = 'iframe';
} else if (href.indexOf("#") === 0) {
type = 'inline';
} else {
type = 'ajax';
}
}
if (!type) {
_error();
return;
}
if (type == 'inline') {
obj
= href.substr(href.indexOf("#"));
type = $(obj).length > 0 ? 'inline' : 'ajax';
}
selectedOpts.type = type;
selectedOpts.href = href;
selectedOpts.title = title;
if (selectedOpts.autoDimensions) {
if (selectedOpts.type == 'html' || selectedOpts.

type == 'inline' || selectedOpts.type == 'ajax') {


selectedOpts.width = 'auto';
selectedOpts.height = 'auto';
} else {
selectedOpts.autoDimensions = false;
}
}
if (selectedOpts.modal) {
selectedOpts.overlayShow = true;
selectedOpts.hideOnOverlayClick = false;
selectedOpts.hideOnContentClick = false;
selectedOpts.enableEscapeButton = false;
selectedOpts.showCloseButton = false;
}
selectedOpts.padding = parseInt(selectedOpts.padding, 10
);
selectedOpts.margin = parseInt(selectedOpts.margin, 10);
tmp.css('padding', (selectedOpts.padding + selectedOpts.
margin));
$('.fancybox-inline-tmp').unbind('fancybox-cancel').bind
('fancybox-change', function() {
$(this).replaceWith(content.children());
});
switch (type) {
case 'html' :
tmp.html( selectedOpts.content );
_process_inline();
break;
case 'inline' :
if ( $(obj).parent().is('#fancybox-conte
nt') === true) {
busy = false;
return;
}
$('<div class="fancybox-inline-tmp" />')
.hide()
.insertBefore( $(obj) )
.bind('fancybox-cleanup', functi
on() {
$(this).replaceWith(cont
ent.children());
}).bind('fancybox-cancel', funct
ion() {
$(this).replaceWith(tmp.
children());
});
$(obj).appendTo(tmp);
_process_inline();
break;
case 'image':

busy = false;
$.fancybox.showActivity();
imgPreloader = new Image();
imgPreloader.onerror = function() {
_error();
};
imgPreloader.onload = function() {
busy = true;
imgPreloader.onerror = imgPreloa
der.onload = null;
_process_image();
};
imgPreloader.src = href;
break;
case 'swf':
selectedOpts.scrolling = 'no';
str = '<object classid="clsid:D27CDB6E-A
E6D-11cf-96B8-444553540000" width="' + selectedOpts.width + '" height="' + selec
tedOpts.height + '"><param name="movie" value="' + href + '"></param>';
emb = '';
$.each(selectedOpts.swf, function(name,
val) {
str += '<param name="' + name +
'" value="' + val + '"></param>';
emb += ' ' + name + '="' + val +
'"';
});
str += '<embed src="' + href + '" type="
application/x-shockwave-flash" width="' + selectedOpts.width + '" height="' + se
lectedOpts.height + '"' + emb + '></embed></object>';
tmp.html(str);
_process_inline();
break;
case 'ajax':
busy = false;
$.fancybox.showActivity();
selectedOpts.ajax.win = selectedOpts.aja
x.success;
ajaxLoader = $.ajax($.extend({}, selecte
dOpts.ajax, {
url
: href,
data : selectedOpts.ajax.data ||
{},

error : function(XMLHttpRequest,
textStatus, errorThrown) {
if ( XMLHttpRequest.stat
us > 0 ) {
_error();
}
},
success : function(data, textSta
tus, XMLHttpRequest) {
var o = typeof XMLHttpRe
quest == 'object' ? XMLHttpRequest : ajaxLoader;
if (o.status == 200) {
if ( typeof sele
ctedOpts.ajax.win == 'function' ) {
ret = se
lectedOpts.ajax.win(href, data, textStatus, XMLHttpRequest);
if (ret
=== false) {
loading.hide();
return;
} else i
f (typeof ret == 'string' || typeof ret == 'object') {
data = ret;
}
}
tmp.html( data )
;
_process_inline(
);
}
}
}));
break;
case 'iframe':
_show();
break;
}
},
_process_inline = function() {
var
w = selectedOpts.width,
h = selectedOpts.height;
if (w.toString().indexOf('%') > -1) {
w = parseInt( ($(window).width() - (selectedOpts
.margin * 2)) * parseFloat(w) / 100, 10) + 'px';
} else {
w = w == 'auto' ? 'auto' : w + 'px';
}
if (h.toString().indexOf('%') > -1) {

h = parseInt( ($(window).height() - (selectedOpt


s.margin * 2)) * parseFloat(h) / 100, 10) + 'px';
} else {
h = h == 'auto' ? 'auto' : h + 'px';
}
// SS:11/22/11: changed to never auto the scrolls for HW
purposes
tmp.wrapInner('<div style="width:' + w + ';height:' + h
+ ';overflow: ' + (selectedOpts.scrolling == 'auto' ? 'no' : (selectedOpts.scrol
ling == 'yes' ? 'scroll' : 'hidden')) + ';position:relative;"></div>');
selectedOpts.width = tmp.width();
selectedOpts.height = tmp.height();
_show();
},
_process_image = function() {
selectedOpts.width = imgPreloader.width;
selectedOpts.height = imgPreloader.height;
$("<img />").attr({
'id' : 'fancybox-img',
'src' : imgPreloader.src,
'alt' : selectedOpts.title
}).appendTo( tmp );
_show();
},
_show = function() {
var pos, equal;
loading.hide();
if (wrap.is(":visible") && false === currentOpts.onClean
up(currentArray, currentIndex, currentOpts)) {
$.event.trigger('fancybox-cancel');
busy = false;
return;
}
busy = true;
$(content.add( overlay )).unbind();
$(window).unbind("resize.fb scroll.fb");
$(document).unbind('keydown.fb');
if (wrap.is(":visible") && currentOpts.titlePosition !==
'outside') {
wrap.css('height', wrap.height());
}
currentArray = selectedArray;
currentIndex = selectedIndex;
currentOpts = selectedOpts;

if (currentOpts.overlayShow) {
overlay.css({
'background-color' : currentOpts.overlay
Color,
'opacity' : currentOpts.overlayOpacity,
'cursor' : currentOpts.hideOnOverlayClic
k ? 'pointer' : 'auto',
'height' : $(document).height() - 4
});
if (!overlay.is(':visible')) {
if (isIE6) {
$('select:not(#fancybox-tmp sele
ct)').filter(function() {
return this.style.visibi
lity !== 'hidden';
}).css({'visibility' : 'hidden'}
).one('fancybox-cleanup', function() {
this.style.visibility =
'inherit';
});
}
overlay.show();
}
} else {
overlay.hide();
}
final_pos = _get_zoom_to();
_process_title();
if (wrap.is(":visible")) {
$( close.add( nav_left ).add( nav_right ) ).hide
();
pos = wrap.position(),
start_pos = {
top
: pos.top,
left : pos.left,
width : wrap.width(),
height : wrap.height()
};
equal = (start_pos.width == final_pos.width && s
tart_pos.height == final_pos.height);
content.fadeTo(currentOpts.changeFade, 0.3, func
tion() {
var finish_resizing = function() {
content.html( tmp.contents() ).f
adeTo(currentOpts.changeFade, 1, _finish);
};
$.event.trigger('fancybox-change');
content

.empty()
.removeAttr('filter')
.css({
'border-width' : current
Opts.padding,
'width' : final_pos.widt
h - currentOpts.padding * 2,
'height' : selectedOpts.
autoDimensions ? 'auto' : final_pos.height - titleHeight - currentOpts.padding *
2
});
if (equal) {
finish_resizing();
} else {
fx.prop = 0;
$(fx).animate({prop: 1}, {
duration : currentOpts.
changeSpeed,
easing : currentOpts.ea
singChange,
step : _draw,
complete : finish_resiz
ing
});
}
});
return;
}
wrap.removeAttr("style");
content.css('border-width', currentOpts.padding);
if (currentOpts.transitionIn == 'elastic') {
start_pos = _get_zoom_from();
content.html( tmp.contents() );
wrap.show();
if (currentOpts.opacity) {
final_pos.opacity = 0;
}
fx.prop = 0;
$(fx).animate({prop: 1}, {
duration : currentOpts.speedIn,
easing : currentOpts.easingIn,
step : _draw,
complete : _finish
});
return;
}

if (currentOpts.titlePosition == 'inside' && titleHeight


> 0) {
title.show();
}
content
.css({
'width' : final_pos.width - currentOpts.
padding * 2,
'height' : selectedOpts.autoDimensions ?
'auto' : final_pos.height - titleHeight - currentOpts.padding * 2
})
.html( tmp.contents() );
wrap
.css(final_pos)
.fadeIn( currentOpts.transitionIn == 'none' ? 0
: currentOpts.speedIn, _finish );
},
_format_title = function(title) {
if (title && title.length) {
if (currentOpts.titlePosition == 'float') {
return '<table id="fancybox-title-floatwrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></t
d><td id="fancybox-title-float-main">' + title + '</td><td id="fancybox-title-fl
oat-right"></td></tr></table>';
}
return '<div id="fancybox-title-' + currentOpts.
titlePosition + '">' + title + '</div>';
}
return false;
},
_process_title = function() {
titleStr = currentOpts.title || '';
titleHeight = 0;
title
.empty()
.removeAttr('style')
.removeClass();
if (currentOpts.titleShow === false) {
title.hide();
return;
}
titleStr = $.isFunction(currentOpts.titleFormat) ? curre
ntOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_
title(titleStr);
if (!titleStr || titleStr === '') {
title.hide();
return;
}
title

.addClass('fancybox-title-' + currentOpts.titleP
osition)
.html( titleStr )
.appendTo( 'body' )
.show();
switch (currentOpts.titlePosition) {
case 'inside':
title
.css({
'width' : final_pos.widt
h - (currentOpts.padding * 2),
'marginLeft' : currentOp
ts.padding,
'marginRight' : currentO
pts.padding
});
titleHeight = title.outerHeight(true);
title.appendTo( outer );
final_pos.height += titleHeight;
break;
case 'over':
title
.css({
'marginLeft' : currentOp
ts.padding,
'width' : final_pos.widt
h - (currentOpts.padding * 2),
'bottom' : currentOpts.p
adding
})
.appendTo( outer );
break;
case 'float':
title
.css('left', parseInt((title.wid
th() - final_pos.width - 40)/ 2, 10) * -1)
.appendTo( wrap );
break;
default:
title
.css({
'width' : final_pos.widt
h - (currentOpts.padding * 2),
'paddingLeft' : currentO
pts.padding,
'paddingRight' : current
Opts.padding
})
.appendTo( wrap );
break;
}
title.hide();

},
_set_navigation = function() {
if (currentOpts.enableEscapeButton || currentOpts.enable
KeyboardNav) {
$(document).bind('keydown.fb', function(e) {
if (e.keyCode == 27 && currentOpts.enabl
eEscapeButton) {
e.preventDefault();
$.fancybox.close();
} else if ((e.keyCode == 37 || e.keyCode
== 39) && currentOpts.enableKeyboardNav && e.target.tagName !== 'INPUT' && e.ta
rget.tagName !== 'TEXTAREA' && e.target.tagName !== 'SELECT') {
e.preventDefault();
$.fancybox[ e.keyCode == 37 ? 'p
rev' : 'next']();
}
});
}
if (!currentOpts.showNavArrows) {
nav_left.hide();
nav_right.hide();
return;
}
if ((currentOpts.cyclic && currentArray.length > 1) || c
urrentIndex !== 0) {
nav_left.show();
}
if ((currentOpts.cyclic && currentArray.length > 1) || c
urrentIndex != (currentArray.length -1)) {
nav_right.show();
}
},
_finish = function () {
if (!$.support.opacity) {
content.get(0).style.removeAttribute('filter');
wrap.get(0).style.removeAttribute('filter');
}
if (selectedOpts.autoDimensions) {
content.css('height', 'auto');
}
wrap.css('height', 'auto');
if (titleStr && titleStr.length) {
title.show();
}
if (currentOpts.showCloseButton) {
close.show();
}
_set_navigation();

if (currentOpts.hideOnContentClick)
{
content.bind('click', $.fancybox.close);
}
if (currentOpts.hideOnOverlayClick)
{
overlay.bind('click', $.fancybox.close);
}
$(window).bind("resize.fb", $.fancybox.resize);
if (currentOpts.centerOnScroll) {
$(window).bind("scroll.fb", $.fancybox.center);
}
if (currentOpts.type == 'iframe') {
$('<iframe id="fancybox-frame" name="fancybox-fr
ame' + new Date().getTime() + '" frameborder="0" hspace="0" ' + ($.browser.msie
? 'allowtransparency="true""' : '') + ' scrolling="' + selectedOpts.scrolling +
'" src="' + currentOpts.href + '"></iframe>').appendTo(content);
}
wrap.show();
busy = false;
$.fancybox.center();
currentOpts.onComplete(currentArray, currentIndex, curre
ntOpts);
_preload_images();
},
_preload_images = function() {
var href,
objNext;
if ((currentArray.length -1) > currentIndex) {
href = currentArray[ currentIndex + 1 ].href;
if (typeof href !== 'undefined' && href.match(im
gRegExp)) {
objNext = new Image();
objNext.src = href;
}
}
if (currentIndex > 0) {
href = currentArray[ currentIndex - 1 ].href;
if (typeof href !== 'undefined' && href.match(im
gRegExp)) {
objNext = new Image();
objNext.src = href;
}
}
},
_draw = function(pos) {
var dim = {

width : parseInt(start_pos.width + (final_pos.wi


dth - start_pos.width) * pos, 10),
height : parseInt(start_pos.height + (final_pos.
height - start_pos.height) * pos, 10),
top : parseInt(start_pos.top + (final_pos.top start_pos.top) * pos, 10),
left : parseInt(start_pos.left + (final_pos.left
- start_pos.left) * pos, 10)
};
if (typeof final_pos.opacity !== 'undefined') {
dim.opacity = pos < 0.5 ? 0.5 : pos;
}
wrap.css(dim);
content.css({
'width' : dim.width - currentOpts.padding * 2,
'height' : dim.height - (titleHeight * pos) - cu
rrentOpts.padding * 2
});
},
_get_viewport = function() {
return [
$(window).width() - (currentOpts.margin * 2),
$(window).height() - (currentOpts.margin * 2),
$(document).scrollLeft() + currentOpts.margin,
$(document).scrollTop() + currentOpts.margin
];
},
_get_zoom_to = function () {
var view = _get_viewport(),
to = {},
resize = currentOpts.autoScale,
double_padding = currentOpts.padding * 2,
ratio;
if (currentOpts.width.toString().indexOf('%') > -1) {
to.width = parseInt((view[0] * parseFloat(curren
tOpts.width)) / 100, 10);
} else {
to.width = currentOpts.width + double_padding;
}
if (currentOpts.height.toString().indexOf('%') > -1) {
to.height = parseInt((view[1] * parseFloat(curre
ntOpts.height)) / 100, 10);
} else {
to.height = currentOpts.height + double_padding;
}
if (resize && (to.width > view[0] || to.height > view[1]
)) {
if (selectedOpts.type == 'image' || selectedOpts
.type == 'swf') {
ratio = (currentOpts.width ) / (currentO
pts.height );

if ((to.width ) > view[0]) {


to.width = view[0];
to.height = parseInt(((to.width
- double_padding) / ratio) + double_padding, 10);
}
if ((to.height) > view[1]) {
to.height = view[1];
to.width = parseInt(((to.height
- double_padding) * ratio) + double_padding, 10);
}
} else {
to.width = Math.min(to.width, view[0]);
to.height = Math.min(to.height, view[1])
;
}
}
to.top = parseInt(Math.max(view[3] - 20, view[3] + ((vie
w[1] - to.height - 40) * 0.5)), 10);
to.left = parseInt(Math.max(view[2] - 20, view[2] + ((vi
ew[0] - to.width - 40) * 0.5)), 10);
return to;
},
_get_obj_pos = function(obj) {
var pos = obj.offset();
pos.top += parseInt( obj.css('paddingTop'), 10 ) || 0;
pos.left += parseInt( obj.css('paddingLeft'), 10 ) || 0;
pos.top += parseInt( obj.css('border-top-width'), 10 ) |
| 0;
pos.left += parseInt( obj.css('border-left-width'), 10 )
|| 0;
pos.width = obj.width();
pos.height = obj.height();
return pos;
},
_get_zoom_from = function() {
var orig = selectedOpts.orig ? $(selectedOpts.orig) : fa
lse,
from = {},
pos,
view;
if (orig && orig.length) {
pos = _get_obj_pos(orig);
from = {
width : pos.width + (currentOpts.padding
* 2),
height : pos.height + (currentOpts.paddi
ng * 2),

top

: pos.top - currentOpts.padding

- 20,
left : pos.left - currentOpts.padding 20
};
} else {
view = _get_viewport();
from = {
width : currentOpts.padding * 2,
height : currentOpts.padding * 2,
top
: parseInt(view[3] + view[1] * 0
.5, 10),
left : parseInt(view[2] + view[0] * 0.5,
10)
};
}
return from;
},
_animate_loading = function() {
if (!loading.is(':visible')){
clearInterval(loadingTimer);
return;
}
$('div', loading).css('top', (loadingFrame * -40) + 'px'
);
loadingFrame = (loadingFrame + 1) % 12;
};
/*
* Public methods
*/
$.fn.fancybox = function(options) {
if (!$(this).length) {
return this;
}
$(this)
.data('fancybox', $.extend({}, options, ($.metadata ? $(
this).metadata() : {})))
.unbind('click.fb')
.bind('click.fb', function(e) {
e.preventDefault();
if (busy) {
return;
}
busy = true;
$(this).blur();
selectedArray = [];
selectedIndex = 0;

var rel = $(this).attr('rel') || '';


if (!rel || rel == '' || rel === 'nofollow') {
selectedArray.push(this);
} else {
selectedArray = $("a[rel=" + rel + "], a
rea[rel=" + rel + "]");
selectedIndex = selectedArray.index( thi
s );
}
_start();
return;
});
return this;
};
$.fancybox = function(obj) {
var opts;
if (busy) {
return;
}
busy = true;
opts = typeof arguments[1] !== 'undefined' ? arguments[1] : {};
selectedArray = [];
selectedIndex = parseInt(opts.index, 10) || 0;
if ($.isArray(obj)) {
for (var i = 0, j = obj.length; i < j; i++) {
if (typeof obj[i] == 'object') {
$(obj[i]).data('fancybox', $.extend({},
opts, obj[i]));
} else {
obj[i] = $({}).data('fancybox', $.extend
({content : obj[i]}, opts));
}
}
selectedArray = jQuery.merge(selectedArray, obj);
} else {
if (typeof obj == 'object') {
$(obj).data('fancybox', $.extend({}, opts, obj))
;
} else {
obj = $({}).data('fancybox', $.extend({content :
obj}, opts));
}
selectedArray.push(obj);
}
if (selectedIndex > selectedArray.length || selectedIndex < 0) {

selectedIndex = 0;
}
_start();
};
$.fancybox.showActivity = function() {
clearInterval(loadingTimer);
loading.show();
loadingTimer = setInterval(_animate_loading, 66);
};
$.fancybox.hideActivity = function() {
loading.hide();
};
$.fancybox.next = function() {
return $.fancybox.pos( currentIndex + 1);
};
$.fancybox.prev = function() {
return $.fancybox.pos( currentIndex - 1);
};
$.fancybox.pos = function(pos) {
if (busy) {
return;
}
pos = parseInt(pos);
selectedArray = currentArray;
if (pos > -1 && pos < currentArray.length) {
selectedIndex = pos;
_start();
} else if (currentOpts.cyclic && currentArray.length > 1) {
selectedIndex = pos >= currentArray.length ? 0 : current
Array.length - 1;
_start();
}
return;
};
$.fancybox.cancel = function() {
if (busy) {
return;
}
busy = true;
$.event.trigger('fancybox-cancel');
_abort();
selectedOpts.onCancel(selectedArray, selectedIndex, selectedOpts
);

busy = false;
};
// Note: within an iframe use - parent.$.fancybox.close();
$.fancybox.close = function() {
if (busy || wrap.is(':hidden')) {
return;
}
busy = true;
if (currentOpts && false === currentOpts.onCleanup(currentArray,
currentIndex, currentOpts)) {
busy = false;
return;
}
_abort();
$(close.add( nav_left ).add( nav_right )).hide();
$(content.add( overlay )).unbind();
$(window).unbind("resize.fb scroll.fb");
$(document).unbind('keydown.fb');
content.find('iframe').attr('src', isIE6 && /^https/i.test(windo
w.location.href || '') ? 'javascript:void(false)' : 'about:blank');
if (currentOpts.titlePosition !== 'inside') {
title.empty();
}
wrap.stop();
function _cleanup() {
overlay.fadeOut('fast');
title.empty().hide();
wrap.hide();
$.event.trigger('fancybox-cleanup');
content.empty();
currentOpts.onClosed(currentArray, currentIndex, current
Opts);
currentArray = selectedOpts
= [];
currentIndex = selectedIndex = 0;
currentOpts = selectedOpts
= {};
busy = false;
}
if (currentOpts.transitionOut == 'elastic') {
start_pos = _get_zoom_from();
var pos = wrap.position();

final_pos = {
top
: pos.top ,
left : pos.left,
width : wrap.width(),
height : wrap.height()
};
if (currentOpts.opacity) {
final_pos.opacity = 1;
}
title.empty().hide();
fx.prop = 1;
$(fx).animate({ prop: 0 }, {
duration : currentOpts.speedOut,
easing : currentOpts.easingOut,
step : _draw,
complete : _cleanup
});
} else {
wrap.fadeOut( currentOpts.transitionOut == 'none' ? 0 :
currentOpts.speedOut, _cleanup);
}
};
$.fancybox.resize = function() {
if (overlay.is(':visible')) {
overlay.css('height', $(document).height());
}
$.fancybox.center(true);
};
$.fancybox.center = function() {
var view, align;
if (busy) {
return;
}
align = arguments[0] === true ? 1 : 0;
view = _get_viewport();
if (!align && (wrap.width() > view[0] || wrap.height() > view[1]
)) {
return;
}
wrap
.stop()
.animate({
'top' : parseInt(Math.max(view[3] - 20, view[3]
+ ((view[1] - content.height() - 40) * 0.5) - currentOpts.padding)),
'left' : parseInt(Math.max(view[2] - 20, view[2]
+ ((view[0] - content.width() - 40) * 0.5) - currentOpts.padding))
}, typeof arguments[0] == 'number' ? arguments[0] : 200)

;
};
$.fancybox.init = function() {
if ($("#fancybox-wrap").length) {
return;
}
$('body').append(
tmp
= $('<div id="fancybox-tmp"></div>'),
loading = $('<div id="fancybox-loading"><div></div></div
>'),
overlay = $('<div id="fancybox-overlay"></div>'),
wrap = $('<div id="fancybox-wrap"></div>')
);
outer = $('<div id="fancybox-outer"></div>')
.append('<div class="fancybox-bg" id="fancybox-bg-n"></d
iv><div class="fancybox-bg" id="fancybox-bg-ne"></div><div class="fancybox-bg" i
d="fancybox-bg-e"></div><div class="fancybox-bg" id="fancybox-bg-se"></div><div
class="fancybox-bg" id="fancybox-bg-s"></div><div class="fancybox-bg" id="fancyb
ox-bg-sw"></div><div class="fancybox-bg" id="fancybox-bg-w"></div><div class="fa
ncybox-bg" id="fancybox-bg-nw"></div>')
.appendTo( wrap );
outer.append(
content = $('<div id="fancybox-content"></div>'),
close = $('<a id="fancybox-close"></a>'),
title = $('<div id="fancybox-title"></div>'),
nav_left = $('<a href="javascript:;" id="fancybox-left">
<span class="fancy-ico" id="fancybox-left-ico"></span></a>'),
nav_right = $('<a href="javascript:;" id="fancybox-right
"><span class="fancy-ico" id="fancybox-right-ico"></span></a>')
);
close.click($.fancybox.close);
loading.click($.fancybox.cancel);
nav_left.click(function(e) {
e.preventDefault();
$.fancybox.prev();
});
nav_right.click(function(e) {
e.preventDefault();
$.fancybox.next();
});
if ($.fn.mousewheel) {
wrap.bind('mousewheel.fb', function(e, delta) {
if (busy) {
e.preventDefault();
} else if ($(e.target).get(0).clientHeight == 0
|| $(e.target).get(0).scrollHeight === $(e.target).get(0).clientHeight) {
e.preventDefault();
$.fancybox[ delta > 0 ? 'prev' : 'next']
();
}

});
}
if (!$.support.opacity) {
wrap.addClass('fancybox-ie');
}
if (isIE6) {
loading.addClass('fancybox-ie6');
wrap.addClass('fancybox-ie6');
$('<iframe id="fancybox-hide-sel-frame" src="' + (/^http
s/i.test(window.location.href || '') ? 'javascript:void(false)' : 'about:blank'
) + '" scrolling="no" border="0" frameborder="0" tabindex="-1"></iframe>').prepe
ndTo(outer);
}
};
$.fn.fancybox.defaults = {
padding : 10,
margin : 40,
opacity : false,
modal : false,
cyclic : false,
scrolling : 'auto',

// 'auto', 'yes' or 'no'

width : 560,
height : 340,
autoScale : true,
autoDimensions : true,
centerOnScroll : false,
ajax : {},
swf : { wmode: 'transparent' },
hideOnOverlayClick : true,
hideOnContentClick : false,
overlayShow : true,
overlayOpacity : 0.7,
overlayColor : '#777',
titleShow : true,
titlePosition : 'float', // 'float', 'outside', 'inside' or 'ove
r'
titleFormat : null,
titleFromAlt : false,
transitionIn : 'fade', // 'elastic', 'fade' or 'none'
transitionOut : 'fade', // 'elastic', 'fade' or 'none'
speedIn : 300,
speedOut : 300,
changeSpeed : 300,
changeFade : 'fast',
easingIn : 'swing',
easingOut : 'swing',

showCloseButton : true,
showNavArrows : true,
enableEscapeButton : true,
enableKeyboardNav : true,
onStart : function(){},
onCancel : function(){},
onComplete : function(){},
onCleanup : function(){},
onClosed : function(){},
onError : function(){}
};
$(document).ready(function() {
$.fancybox.init();
});
})(jQuery);
ntifier:this.id,modules:this.modules};
this.el().innerHTML="";
var b=new IN.Objects.SmartWindow({mode:"embedded",url:IN.ENV.widget.company_insi
der_url}).params(a);
b.place(this.el())
});
IN.addTag("CompanyInsider",IN.Tags.CompanyInsider);
/* res://connect-min/dev/tags/wizard.js */
Sslac.Class("IN.Tags.Wizard").Extends("IN.Tags.Base").Constructor(function Wizar
d(c,b){$_STATISTICS.profile("Wizard");
this.Parent(c,b);
this.size=(b.size=="large")?"large":"small";
var d={large:"pic_wizard_423x423.png",small:"pic_wizard_212x212.png"},e=IN.ENV.i
mages.sprite.replace(/\/sprite\/.*/,"")+"/pic/"+d[this.size],a=document.createEl
ement("img");
a.src=e;
a.style.border=0;
c.appendChild(a);
$_STATISTICS.profile("Wizard",true)
});
IN.addTag("Wizard",IN.Tags.Wizard);
/* res://connect-min/dev/tags/jymbii.js */
Sslac.Class("IN.Tags.jymbii").Extends("IN.Tags.Base").Constructor(function(c,f){
$_STATISTICS.profile("JYMBII");
this.Parent(c,f);
var a=$_GLOBALS.hovercardOffset(20),l=f.format,k=$_CONSTANTS.events,o=$_CONSTANT
S.states,e=$_CONSTANTS.formats,n=$_CONSTANTS.modes,j=f.embed?f.embed:false,d={co
mpanyId:f.companyid,industry:f.industry,jobFunction:f.jobfunction,country:f.coun
try,max:j?3:f.max,title:f.title,embed:j,callback:f.callback?true:false};
if(l===e.inline){var h=new IN.Objects.SmartWindow({mode:n.embedded,url:IN.ENV.wi
dget.jymbii_url}).params(d);
if(d.callback){var b=this.parseAttribute(f.callback,"callback");
for(i=0,len=b.length;
i<len;
i++){h.success(b[i],this)
}}h.place(this.el())
}else{var g=new IN.Objects.InLink({text:f.text}),m=(l===e.click)?k.click:k.mouse

Over;
g.place(this.el());
IN.Event.on(g,m,function(){if(this.open){return
}this.open=true;
g.setState(o.pending);
var p=new IN.Objects.SmartWindow({mode:n.hovercard,anchor:{fixed:g.el(),movable:
null,context:a},url:IN.ENV.widget.jymbii_url},this).params(d);
p.ready(function(){g.setState(o.normal)
});
p.place(g.el())
},this);
IN.Event.on(document,k.click,function(){if(this.open){this.open=false;
g.setState(o.normal)
}},this)
}$_STATISTICS.profile("JYMBII",true)
});
IN.addTag("jymbii",IN.Tags.jymbii);
/* res://connect-min/dev/tags/followcompany.js */
Sslac.Class("IN.Tags.Followcompany").Extends("IN.Tags.Base").Constructor(functio
n(b,a){$_STATISTICS.profile("Followcompany");
a=a||{};
this.Parent(b,a);
this.id=a.id||"plugin-Followcompany";
this.attributes=a;
this.createFrame();
$_STATISTICS.profile("Followcompany",true)
}).Method("createFrame",function(){this.el().innerHTML="";
var a={companyIdentifier:this.attributes.id,counterPosition:this.attributes.coun
ter||"none"};
var b=new IN.Objects.SmartWindow({mode:"embedded",disableRefresh:true,url:IN.ENV
.widget.followcompany_url}).params(a);
b.place(this.el())
});
IN.addTag("Followcompany",IN.Tags.Followcompany);
/* res://connect-min/dev/tags/csapbeacon.js */
Sslac.Class("IN.Tags.CsapBeacon").Extends("IN.Tags.Base").Constructor(function(b
,h){$_STATISTICS.profile("CsapBeacon");
h=h||{};
this.Parent(b,h);
var n=$_CONSTANTS.modes;
var f={contractId:h.contractid,urlParserKey:h.urlparserkey,extra:h.extra,url:doc
ument.URL,referrer:document.referrer,apiKey:IN.ENV.auth.api_key,activity:h.activ
ity,jobCode:h.jobcode,topUrl:"",topReferrer:""};
try{f.topUrl=window.top.document.URL;
f.topReferrer=window.top.document.referrer
}catch(j){}if(!f.activity){try{var k=document.getElementById("li-csapbeacon-"+IN
.ENV.auth.api_key);
if(k){var c;
if(k.tagName.toLowerCase()==="img"){var a=k.src.indexOf("?");
if(a!==-1){c=k.src.substring(a+1)
}}if(!c){c=k.getAttribute("data-activity")
}if(c){f.activity=c
}}else{var l=document.getElementsByTagName("img");
var i="?"+IN.ENV.auth.api_key+"_";
for(var m=0;
m<l.length;

++m){var d=l[m];
var a=d.src.indexOf(i);
if(a!==-1){f.activity=d.src.substring(a+i.length);
break
}}}}catch(j){}}var g=new IN.Objects.SmartWindow({mode:n.invisible,url:IN.ENV.wid
get.csap_beacon_url}).params(f);
g.place(this.el());
$_STATISTICS.profile("CsapBeacon",true)
});
IN.addTag("CsapBeacon",IN.Tags.CsapBeacon);
/* res://connect-min/dev/tags/followmember.js */
Sslac.Class("IN.Tags.Followmember").Extends("IN.Tags.Base").Constructor(functio/
*
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
*
* Uses the built in easing capabilities added In jQuery 1.1
* to offer multiple easing options
*
* TERMS OF USE - jQuery Easing
*
* Open source under the BSD License.
*
* Copyright 2008 George McGinley Smith
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modificati
on,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this l
ist of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, thi
s list
* of conditions and the following disclaimer in the documentation and/or other
materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to e
ndorse
* or promote products derived from this software without specific prior written
permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A
ND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR
RANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EV
ENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENT
AL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREM
ENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TOR
T (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,

EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
// t: current time, b: begInnIng value, c: change In value, d: duration
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a
)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){whil
e(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'}
;c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);retur
n p}('h.i[\'1a\']=h.i[\'z\'];h.O(h.i,{y:\'D\',z:9(x,t,b,c,d){6 h.i[h.i.y](x,t,b,
c,d)},17:9(x,t,b,c,d){6 c*(t/=d)*t+b},D:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},13:9(x,
t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},X:9(x,t,b,c,d){6 c*(t
/=d)*t*t+b},U:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},R:9(x,t,b,c,d){e((t/=d/2)<1)
6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},N:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},M:9(x,t
,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},L:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6
-c/2*((t-=2)*t*t*t-2)+b},K:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},J:9(x,t,b,c,d){6 c
*((t=t/d-1)*t*t*t*t+1)+b},I:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((
t-=2)*t*t*t*t+2)+b},G:9(x,t,b,c,d){6-c*8.C(t/d*(8.g/2))+c+b},15:9(x,t,b,c,d){6 c
*8.n(t/d*(8.g/2))+b},12:9(x,t,b,c,d){6-c/2*(8.C(8.g*t/d)-1)+b},Z:9(x,t,b,c,d){6(
t==0)?b:c*8.j(2,10*(t/d-1))+b},Y:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.j(2,-10*t/d)+1)+
b},W:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.j(2,10*(t-1))+b;6
c/2*(-8.j(2,-10*--t)+2)+b},V:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},S:9(x,t,b,
c,d){6 c*8.o(1-(t=t/d-1)*t)+b},Q:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+
b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},P:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((
t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a
*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},H:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;
e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}m f s=p/(2*8.g)
*8.r(c/a);6 a*8.j(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},T:9(x,t,b,c,d){f s=1.l;f
p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p
/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.j(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p
))+b;6 a*8.j(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},F:9(x,t,b,c,d,s){e(s==
u)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},E:9(x,t,b,c,d,s){e(s==u)s=1.l;6 c*((t=t/d-1)
*t*((s+1)*t+s)+1)+b},16:9(x,t,b,c,d,s){e(s==u)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s
*=(1.B))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.B))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6
c-h.i.v(x,d-t,0,c,d)+b},v:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(
2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.14/2.k)
)*t+.11)+b}m{6 c*(7.q*(t-=(2.18/2.k))*t+.19)+b}},1b:9(x,t,b,c,d){e(t<d/2)6 h.i.A
(x,t*2,0,c,d)*.5+b;6 h.i.v(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Ma
th|function|||||if|var|PI|jQuery|easing|pow|75|70158|else|sin|sqrt||5625|asin|||
undefined|easeOutBounce|abs||def|swing|easeInBounce|525|cos|easeOutQuad|easeOutB
ack|easeInBack|easeInSine|easeOutElastic|easeInOutQuint|easeOutQuint|easeInQuint
|easeInOutQuart|easeOutQuart|easeInQuart|extend|easeInElastic|easeInOutCirc|ease
InOutCubic|easeOutCirc|easeInOutElastic|easeOutCubic|easeInCirc|easeInOutExpo|ea
seInCubic|easeOutExpo|easeInExpo||9375|easeInOutSine|easeInOutQuad|25|easeOutSin
e|easeInOutBack|easeInQuad|625|984375|jswing|easeInOutBounce'.split('|'),0,{}))
/*
*
* TERMS OF USE - EASING EQUATIONS
*
* Open source under the BSD License.
*
* Copyright 2001 Robert Penner
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modificati
on,
* are permitted provided that the following conditions are met:
*

* Redistributions of source code must retain the above copyright notice, this l
ist of
* conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, thi
s list
* of conditions and the following disclaimer in the documentation and/or other
materials
* provided with the distribution.
*
* Neither the name of the author nor the names of contributors may be used to e
ndorse
* or promote products derived from this software without specific prior written
permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" A
ND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WAR
RANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EV
ENT SHALL THE
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENT
AL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREM
ENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TOR
T (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED
* OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
c.Function("IN.Objects.Lib.slideTo",function(f,k,c){c=c||{};
c={duration:c.duration||700,bounce:c.bounce||0.2};
var g=IN.Objects.Lib.getAnimationInterval(c.duration);
var e=IN.Objects.Lib.getCurrentPosition(f);
var j={top:(k.top-e.top),left:(k.left-e.left)};
var d=g.total;
if(c.bounce){var a={top:(c.bounce*2*j.top),left:(c.bounce*2*j.left)};
var i={top:0,left:0};
j.top+=a.top;
j.left+=a.left;
if(j.top!==0){i.top=Math.abs(a.top/j.top)
}if(j.left!==0){i.left=Math.abs(a.left/j.left)
}i=Math.max(i.top,i.left);
d=(1-i)*g.total
}var h=(1+g.total)*(g.total/2);
if(c.bounce){h=h*(1-(2*c.bounce))
}j.top=j.top/h;
j.left=j.left/h;
function b(){if(g.total>0){e.top+=j.top*d;
e.left+=j.left*d;
f.style.top=e.top+"px";
f.style.left=e.left+"px";
g.total--;
d--;
setTimeout(b,g.interval)
}}b()
});

Sslac.Function("IN.Objects.Lib.setShadowExempt",function(a){IN.Util.addClass(a,"
IN-noshadow")
});
Sslac.Function("IN.Objects.Lib.setShadowBox",function(b,g){b=b||false;
g=g||{};
g={color:g.color||"#000000",opacity:(IN.ENV.js.isFramed)?0:(g.opacity||0.6),altO
pacity:(IN.ENV.js.isFramed)?$_GLOBALS.shadowBox.altOpacity:1,zIndex:g.zIndex||"9
990"};
var j,n=$_GLOBALS.shadowBox.theClass,k="IN-shadow-enabled",f="IN-noshadow",m=$_C
ONSTANTS.suffixes.important;
if(!$_GLOBALS.shadowBox.node){if(!b){return
}var c=IN.$uid("li_ui_shadowbox");
j=$_GLOBALS.shadowBox.node=document.createElement("div");
j.id=c;
IN.Objects.Lib.setShadowExempt(j);
document.body.insertBefore(j,document.body.firstChild);
IN.Util.addCSS(["","."+n+" { ","-ms-filter: 'progid:DXImageTransform.Microsoft.A
lpha(Opacity="+(g.altOpacity*100)+")'"+m,"filter: alpha(opacity="+(g.altOpacity*
100)+")"+m,"-moz-opacity: "+(g.altOpacity)+m,"opacity: "+(g.altOpacity)+m,"}",""
].join(""));
IN.Util.addCSS(["","#"+c+" { ","position: "+((IN.Objects.Lib.UA.isQuirksMode()&&
IN.Objects.Lib.UA.isIE())?"absolute":"fixed")+m,"-ms-filter: 'progid:DXImageTran
sform.Microsoft.Alpha(Opacity="+(g.opacity*100)+")'"+m,"filter: alpha(opacity="+
(g.opacity*100)+")"+m,"-moz-opacity: "+(g.opacity)+m,"opacity: "+(g.opacity)+m,"
background-color: "+g.color+m,"z-index: "+g.zIndex+m,"top: 0"+m,"left: 0"+m,"}",
""].join(""))
}else{j=$_GLOBALS.shadowBox.node
}if(!b){IN.Util.removeClass(document.body,k);
var a=IN.$Class(n);
for(var h=0,l=a.length;
h<l;
h++){IN.Util.removeClass(a[h],n)
}j.style.display="none";
return
}if(IN.ENV.js.isFramed){IN.Util.addClass(document.body,k);
var e=document.body.firstChild;
while(e){if(!IN.Util.hasClass(e,f)){IN.Util.addClass(e,n)
}e=e.nextSibling
}}function d(){var o=IN.Objects.Lib.getViewport(),i=IN.Objects.Lib.getDimensions
(document.body);
j.style.width=Math.max(i.width,o.width)+"px";
j.style.height=Math.max(i.height,i.scrollHeight,o.height)+"px"
}IN.Event.on(window,$_CONSTANTS.events.resize,d,j);
d();
j.style.display="block"
});
/* res://connect-min/dev/tags/lilaform.js */
Sslac.Class("IN.Tags.Lilaform").Extends("IN.Tags.Base").Constructor(function(b,a
){$_STATISTICS.profile("Lilaform");
a=a||{};
this.Parent(b,a);
this.id=a.id||"plugin-Lilaform";
this.width=(typeof a.width!==$_CONSTANTS.types.undef)?parseInt(a.width,10):0;
if(isNaN(this.width)){this.width=0
}this.formid=a.formid||a.form||null;
this.attributes=a;
this.createFrame();
$_STATISTICS.profile("Lilaform",true)

}).Method("createFrame",function(){this.uniqueid=IN.Util.getUniqueID();
this.el().innerHTML="";
var a={api_key:IN.ENV.js.apiKey,uuid:this.uniqueid};
if(this.width>0){a.width=this.width
}var c=this.userFields={};
var b=this.attributes;
for(var d in b){if(d.indexOf("field-")===0){c[b[d].toLowerCase()]=d.substring(6)
}}this.getProfileToElementMapping=function(i){var j=i.nodeName.toLowerCase();
if(!j||(j!=="input"&&j!=="select")){return false
}var h=i.getAttribute("type");
if(h&&h.length>0&&h.toLowerCase()==="hidden"){return false
}var k=i.getAttribute("data-in-profile");
if(k&&k.length>0){return k
}var l=i.getAttribute("placeholder");
if(l&&l.length>0){l=l.toLowerCase();
if(c[l]&&c[l].length>0){return c[l]
}}var g=i.getAttribute("name");
if(g&&g.length>0){g=g.toLowerCase();
if(c[g]&&c[g].length>0){return c[g]
}}if(i.id&&i.id.length>0){var m=i.id.toLowerCase();
if(c[m]&&c[m].length>0){return c[m]
}}if(g&&g.length>0){return g
}return false
};
this.setValue=function(l,m){if(l.nodeName==="SELECT"){var j=l.getElementsByTagNa
me("option");
var h=m.toLowerCase();
try{for(var k=0;
k<j.length;
k++){if(j[k].value.toLowerCase()===h){j[k].selected=true
}}}catch(n){}}else{l.value=m
}if("createEvent" in document){var g=document.createEvent("HTMLEvents");
g.initEvent("change",false,true);
l.dispatchEvent(g)
}else{l.fireEvent("onchange")
}};
this.fireSubmitEvent=function(h){if(this.submitUrl){h.preventDefault();
var g=new Image();
var i=this.submitUrl.replace(/&amp;/g,"&");
i=i.replace(/__API_KEY__/g,encodeURIComponent(IN.ENV.js.apiKey));
i=i.replace(/__UNIQUE_ID__/g,encodeURIComponent(this.uniqueid));
var j=window.setTimeout(function(){e.submit();
g.onerror=g.onload=null
},1000);
g.onerror=g.onload=function(){e.submit();
window.clearTimeout(j)
};
g.src=i+"&rand="+(new Date()).getTime()
}};
var e;
var f=new IN.Objects.SmartWindow({mode:"embedded",disableRefresh:true,url:IN.ENV
.widget.lilaform_url}).params(a);
f.success(function(p){if(this.formid){e=document.getElementById(this.formid)||do
cument.forms[this.formid]
}e=e||document.forms[0];
IN.Event.onOnce(e,"submit",this.fireSubmitEvent,this);
var l=[];
if(p.tracking&&p.tracking["onSubmit"]){this.submitUrl=p.tracking["onSubmit"]
}if(!p.data||!e){return
}var h=e.elements;

var n=h.length;
for(var j=0;
j<n;
j++){var m=this.getProfileToElementMapping(h[j]);
if(!m){continue
}m=m.toLowerCase();
var o=p.data[m];
if(o&&o.length>0){this.setValue(h[j],o);
l.push(m)
}}var k=new Image();
if(p.tracking&&p.tracking["onClick"]){var g=p.tracking["onClick"].replace(/&amp;
/g,"&");
g=g.replace(/__FIELDS_FILLED__/g,encodeURIComponent(l));
g=g.replace(/__API_KEY__/g,encodeURIComponent(IN.ENV.js.apiKey));
g=g.replace(/__UNIQUE_ID__/g,encodeURIComponent(this.uniqueid));
k.src=g
}},this);
f.place(this.el())
});
IN.addTag("Form",IN.Tags.Lilaform);
/* res://connect-min/dev/objects/base.js */
(function(){var d;
Sslac.Class("IN.Objects.Base").Constructor(function(i){var h=document.createElem
ent("span"),j={"padding":"0","margin":"0","text-indent":"0","display":"inline-bl
ock","vertical-align":"baseline"};
if(!i.suppressFont){j["font-size"]="1px"
}h.style.cssText=this.createStyle(j);
this.el=function(){return h
};
this.components={};
this.componentId=null;
this.placed=false;
this.handlers=[]
}).Method("removeHandler",function(i,h){return function(p,r,m,k){if(this.isPlace
d()){IN.Event.remove(i,h,p,r,m,k)
}else{var l=this.handlers;
var j=[];
for(var n=0,o=l.length;
n<o;
n++){var q=l[n];
if(q.id!==i||q.on!==h||q.fn!==p||q.scope!==r||q.obj!==m||q.once!==k){j.push(q)
}}this.handlers=j
}}
}).Method("addHandler",function(j,h){var i=function(m,l,n,k){var m=m;
var o=function(p,q){if(!i.enabled){return false
}if(q){m.call(this,p,q)
}else{m.call(this,p)
}};
if(this.isPlaced()){IN.Event.on(j,h,o,l,n,k)
}else{this.handlers[this.handlers.length]={id:j,on:h,fn:o,scope:l,obj:n,once:k}
}};
i.enabled=true;
return i
}).Method("createTemplate",function(h){return IN.Util.createJSTemplate(h)
}).Method("place",function(){var k=[].slice.apply(arguments),j="",o=null,m=this.
el();
if(!k[0]){j="in";
o=document.body

}else{if(!k[1]){j="in";
o=k[0]
}else{j=k[0];
o=k[1]
}}switch(j){case"in":o.appendChild(m);
break;
case"before":o.parentNode.insertBefore(m,o);
break;
case"after":if(o.nextSibling){o.nextSibling.parentNode.insertBefore(m,o.nextSibl
ing)
}else{o.parentNode.appendChild(m)
}break
}this.placed=true;
for(var l=0,h=this.handlers.length;
l<h;
l++){var n=this.handlers[l];
IN.Event.on(n.id,n.on,n.fn,n.scope,n.obj,n.once)
}this.handlers=[];
return this
}).Method("remove",function(){var h=this.el();
if(h.parentNode){h.parentNode.removeChild(h)
}this.placed=false
}).Method("isPlaced",function(){return this.placed
}).Method("createStyle",function(l){var j,i=[],k="",h;
if(!d){j=navigator.userAgent;
d=($_PATTERNS.userAgents.webkit.test(j))?"Webkit":($_PATTERNS.userAgents.gecko.t
est(j))?"Gecko":($_PATTERNS.userAgents.msie.test(j))?"MSIE":(window.opera)?"Oper
a":"other"
}for(h in l){if(typeof(l[h])==$_CONSTANTS.types.object){k=l[h][d]||l[h]["other"]
}else{k=l[h]
}if(!k){continue
}i[i.length]=h+":"+k+$_CONSTANTS.suffixes.important
}return i.join("")
}).Method("setComponentId",function g(h){this.componentId=h
}).Method("registerComponent",function b(i,h,j){j=j||"normal";
this.components[i]=h
}).Method("getComponent",function a(i,k,j){var h=this.components[i]||"",k=k||"",
j=j||"";
h=h.replace(/\{ID\}/g,this.componentId).replace(/\{\.STATE\}/g,(k)?"."+k:"").rep
lace(/\{\#STATE\}/g,(k)?"#"+k:"").replace(/\{:PSEUDO\}/g,(j)?":"+j:"");
return h
}).Method("createCSS",function c(m,l,n){if(!IN.Util.isArray(m)){m=[m]
}var k=[],n=(typeof n===$_CONSTANTS.types.undef)?"":n+" ";
for(var j=0,h=m.length;
j<h;
j++){k.push(n+this.getComponent(m[j].component,m[j].state,m[j].pseudo))
}return[k.join(", "),"{",l,"}"].join("")
}).Method("addCSS",function f(h){return IN.Util.addCSS(h)
}).Method("computeGradientStyle",function e(i,h){return IN.Util.computeGradientS
tyle(i,h)
}).Method("generateId",function(h){h=(h)?"li_ui_"+h:"li_ui";
return IN.$uid(h)
})
})();
/* res://connect-min/dev/objects/button.js */
(function(){var a={};
Sslac.Class("IN.Objects.Button").Extends("IN.Objects.Base").Constructor(function
(c){c=c||{};

this.config={titles:(typeof c.title===$_CONSTANTS.types.object)?c.title:{"normal
":c.title||""},highlight:(c.highlight===false)?false:true,theme:(c.theme||"basic
").toLowerCase(),size:(c.size||"small").toLowerCase(),useLogo:(c.useLogo===false
||!IN.ENV.images||!IN.ENV.images.sprite)?false:true,showSuccessMark:c.showSucces
sMark||false,normalizeSize:c.normalizeSize||false,isRetina:IN.Util.isRetina(),us
eRetinaAsset:false};
this.config.useRetinaAsset=(this.config.theme==="flat"&&this.config.isRetina)?tr
ue:false;
this.config.titles.normal||(this.config.titles.normal="");
this.Parent(this.config);
this.setButtonStyles();
this.currentTitleText=this.config.titles.normal;
var b=this.generateId(),h={},e=false,i=this,j=[],d=$_CONSTANTS.events,f;
for(var g in this.config.titles){if(this.config.titles.hasOwnProperty(g)){j.push
(""+g+":"+this.config.titles[g])
}}f=[j.join("|"),this.config.showSuccessMark,this.config.useLogo,this.config.the
me,this.config.size].join("::");
this.memoizer=a[f]=a[f]||{};
this.setComponentId(b);
this.registerComponent("outer","#{0}{.STATE}");
this.registerComponent("outerChildSpans","#{0}{.STATE} span");
this.registerComponent("link","#{0}{.STATE} a#{0}-link{:PSEUDO}");
this.registerComponent("logo","#{0}{.STATE} #{0}-logo");
this.registerComponent("title","#{0}{.STATE} #{0}-title");
this.registerComponent("titleText","#{0}{.STATE} #{0}-title-text");
this.registerComponent("titleChild","#{0}{.STATE} #{0}-title-text *");
this.registerComponent("titleChildBold","#{0}{.STATE} #{0}-title-text strong");
this.registerComponent("titleChildItalic","#{0}{.STATE} #{0}-title-text em");
this.registerComponent("mark","#{0}{.STATE} #{0}-title #{0}-mark");
if(!this.memoizer.styles){this.memoizer.styles=["",this.getBaseStyles(),this.get
LogoStyles(),this.getTitleStyles(),this.getSuccessStyles(),""].join("")
}h=IN.Util.formatString(this.memoizer.styles,b);
IN.Util.addCSS(h);
if(!this.memoizer.markup){this.memoizer.markup=["",'<span id="{0}">','<a id="{0}
-link" href="javascript:void(0);">',(this.config.useLogo)?'<span id="{0}-logo">i
n</span>':"",(this.config.titles.normal)?'<span id="{0}-title"><span id="{0}-mar
k"></span><span id="{0}-title-text">'+this.config.titles.normal+"</span></span>"
:"","</a>","</span>",""].join("")
}this.el().innerHTML=IN.Util.formatString(this.memoizer.markup,b);
this.mainNodeId=b;
this.onClick=this.addHandler(b,d.click.toLowerCase());
this.onMouseDown=this.addHandler(b,d.mouseDown.toLowerCase());
this.onMouseOver=this.addHandler(b,d.mouseOver.toLowerCase());
this.onMouseOut=this.addHandler(b,d.mouseOut.toLowerCase());
this.onClick(function(k){this.setState(d.click)
},this);
this.onMouseDown(function(k){this.setState(d.mouseDown)
},this);
this.onMouseOver(function(k){this.setState(d.mouseOver)
},this);
this.onMouseOut(function(){this.setState(d.mouseOut)
},this)
}).Method("computeBoxShadow",function(d,c){if(c.off){return""
}var b={w3c:c.horizontal+"px "+c.vertical+"px "+c.blur+"px "+c.color};
return b[d]||b.w3c
}).Method("setState",function(e){if(!this.mainNode){this.mainNode=IN.$Id(this.ma
inNodeId);
if(!this.mainNode){return
}}var d=this,c=$_CONSTANTS.events,b=$_CONSTANTS.states;
switch(e){case c.mouseOver:IN.Util.addClass(this.mainNode,b.hovered);

break;
case c.mouseOut:IN.Util.removeClass(this.mainNode,b.hovered);
IN.Util.removeClass(this.mainNode,b.down);
break;
case c.mouseDown:IN.Util.removeClass(this.mainNode,b.hovered);
IN.Util.addClass(this.mainNode,b.down);
break;
case c.click:if(IN.Util.hasClass(this.mainNode,b.clicked)){return
}IN.Util.addClass(this.mainNode,b.clicked);
window.setTimeout(function(){d.setState(b.normal)
},2000);
break;
case c.success:IN.Util.addClass(this.el(),b.success);
this.success=true;
break;
case c.unSuccess:IN.Util.removeClass(this.el(),b.success);
this.success=false;
case"normal":IN.Util.removeClass(this.mainNode,b.hovered);
IN.Util.removeClass(this.mainNode,b.down);
IN.Util.removeClass(this.mainNode,b.clicked);
break
}var g=this.config.titles,f=((this.success)?g.success:g[e])||g.normal;
this.setTitleText(f)
}).Method("getSuccessStyles",function(){if(this.config.titles.normal===""){retur
n""
}var f=this.settings,c="",j="",h=$_CONSTANTS.events,i=$_CONSTANTS.states,e=$_CON
STANTS.prefixes.klass+i.success,b=$_CONSTANTS.prefixes.klass+$_GLOBALS.shadowBox
.theClass+" "+e;
function d(l,k){switch(l){case"title":return{"color":f.color.success[k],"bordertop-color":f.border.color.success[k].top,"border-right-color":f.border.color.suc
cess[k].right,"border-bottom-color":f.border.color.success[k].bottom,"border-lef
t-color":f.border.color.success[k].left,"background-color":f.background.success[
k],"background-image":{Webkit:IN.Util.computeGradientStyle("webkit",f.gradient.s
uccess[k]),Gecko:IN.Util.computeGradientStyle("gecko",f.gradient.success[k]),MSI
E:IN.Util.computeGradientStyle("msie",f.gradient.success[k]),Opera:IN.Util.compu
teGradientStyle("opera",f.gradient.success[k]),other:IN.Util.computeGradientStyl
e("w3c",f.gradient.success[k])},"filter":{MSIE:IN.Util.computeGradientStyle("msi
eold",f.gradient.success[k])}};
break;
case"text":return{"color":f.color.success[k]};
break;
case"shadowed":return{"filter":{MSIE:"alpha(opacity="+($_GLOBALS.shadowBox.altOp
acity*100)+") "+IN.Util.computeGradientStyle("msieold",f.gradient.success[k])}};
break
}return""
}if(this.config.showSuccessMark){var g=f.mark.margin;
g=[g.top||"0",g.right||"0",g.bottom||"0",g.left||"0"].join("px ")+"px";
c=this.createCSS({component:"mark"},this.createStyle({"width":f.mark.width+"px",
"height":f.mark.height+"px","background":"url("+IN.ENV.images.sprite+") "+f.mark
.background.join("px ")+"px no-repeat","margin":g,"display":"inline-block"}),e);
j=this.createCSS({component:"mark"},this.createStyle({"filter":{MSIE:"alpha(opac
ity="+($_GLOBALS.shadowBox.altOpacity*100)+")"}}),b)
}return["",c,j,this.createCSS({component:"title"},this.createStyle(d("title",h.n
ormal)),e),this.createCSS([{component:"titleText"},{component:"titleChild"}],thi
s.createStyle(d("text",h.normal)),e),this.createCSS({component:"title"},this.cre
ateStyle(d("shadowed",h.normal)),b),this.createCSS({component:"title",state:i.ho
vered},this.createStyle(d("title",h.hover)),e),this.createCSS([{component:"title
Text",state:i.hovered},{component:"titleChild",state:i.hovered}],this.createStyl
e(d("text",h.hover)),e),this.createCSS([{component:"title",state:i.clicked},{com
ponent:"title",state:i.down}],this.createStyle(d("title",h.click)),e),this.creat

eCSS([{component:"titleText",state:i.clicked},{component:"titleText",state:i.dow
n},{component:"titleChild",state:i.clicked},{component:"titleChild",state:i.down
}],this.createStyle(d("text",h.click)),e),this.createCSS([{component:"title",sta
te:i.clicked},{component:"title",state:i.down}],this.createStyle(d("shadowed",h.
click)),b),""].join("")
}).Method("getSetting",function(b){return this.settings[b]
}).Method("place",function(){if(this.config.normalizeSize){if(!this.memoizer.wid
th){this.Parent();
if(!this.mainNode){this.mainNode=IN.$Id(this.mainNodeId)
}if(!this.titleNode){this.titleNode=IN.$Id(this.mainNodeId+"-title")
}var b={visibility:this.mainNode.style.visibility,position:this.mainNode.style.p
osition,left:this.mainNode.style.left};
this.mainNode.style.visibility="hidden";
this.mainNode.style.position="absolute";
this.mainNode.style.left="-9999em";
var d=[],f=this.config.titles;
for(var c in f){if(f.hasOwnProperty(c)){this.setState(c);
d.push(IN.Objects.Lib.getDimensions(this.titleNode).width)
}}var g=Math.max.apply(Math,d);
if(!(IN.Objects.Lib.UA.isQuirksMode()&&IN.Objects.Lib.UA.isIE())){var e=this.set
tings.title.padding.resolved;
g-=e.left+e.right
}this.memoizer.width=++g;
this.mainNode.style.visibility=b.visibility;
this.mainNode.style.position=b.position;
this.mainNode.style.left=b.left
}}this.Parent(arguments[0],arguments[1]);
this.setState("unSuccess");
if(this.config.normalizeSize){if(!this.titleNode){this.titleNode=IN.$Id(this.mai
nNodeId+"-title")
}this.titleNode.style.width=this.memoizer.width+"px"
}}).Method("getBaseStyles",function(){return["",this.createCSS({component:"link"
},this.createStyle({"height":"1%"}),"* html"),this.createCSS({component:"outer"}
,this.createStyle({"position":"relative","overflow":"visible","display":"block"}
)),this.createCSS({component:"outerChildSpans"},this.createStyle({"-webkit-box-s
izing":"content-box","-moz-box-sizing":"content-box","box-sizing":"content-box"}
)),this.createCSS({component:"link"},this.createStyle({"border":"0","height":thi
s.settings.logo.height+"px","text-decoration":"none","padding":"0","margin":"0",
"zoom":{MSIE:"1"},"display":{MSIE:"inline",other:"inline-block"}})),this.createC
SS([{component:"link",pseudo:"link"},{component:"link",pseudo:"visited"},{compon
ent:"link",pseudo:"hover"},{component:"link",pseudo:"active"}],this.createStyle(
{"border":"0","text-decoration":"none"})),this.createCSS({component:"link",pseud
o:"after"},this.createStyle({"content":'"."',"display":"block","clear":"both","v
isibility":"hidden","line-height":"0","height":"0"})),""].join("")
}).Method("getLogoStyles",function(){if(!this.config.useLogo){return""
}var b=$_CONSTANTS.states,e=this.settings.logo.background.row+this.settings.logo
.background.rowOffset,c,d="";
this.settings.logo.width=Math.ceil(this.settings.logo.height*this.settings.logo.
ratio);
c=(this.settings.logo.hasStates===false)?0:-1*this.settings.logo.width;
this.settings.logo.background.normal=(this.config.useRetinaAsset)?[-56,-423]:[0,
e];
d=["",this.createCSS({component:"logo"},this.createStyle({"background-image":"ur
l("+IN.ENV.images.sprite+")","background-position":this.settings.logo.background
.normal.join("px ")+"px","background-repeat":"no-repeat","background-color":this
.settings.logo.background.color,"background-size":(this.config.useRetinaAsset&&$
_CONSTANTS.sprite.width)?($_CONSTANTS.sprite.width/2)+"px auto":"initial","curso
r":"pointer","border":"0","border-right":this.settings.logo.borderRight,"text-in
dent":"-9999em","overflow":"hidden","padding":"0","margin":"0","position":(this.
config.titles.normal)?"absolute":"","left":(this.config.titles.normal)?this.sett

ings.logo.position.left:"","right":(this.config.titles.normal)?this.settings.log
o.position.right:"","top":(this.config.titles.normal)?this.settings.logo.positio
n.top:"","display":"block","width":this.settings.logo.width+"px","height":this.s
ettings.logo.height+"px","float":(this.settings.logo.position.floated)?"right":"
left","border-radius":(this.config.useLogo&&this.settings.border.corners!=="all"
)?"0":this.settings.border.radius+"px","-webkit-border-radius":{Webkit:(this.con
fig.useLogo&&this.settings.border.corners!=="all")?"0":this.settings.border.radi
us+"px"},"-moz-border-radius":{Gecko:(this.config.useLogo&&this.settings.border.
corners!=="all")?"0":this.settings.border.radius+"px"},"border-top-right-radius"
:this.settings.border.radius+"px","border-bottom-right-radius":this.settings.bor
der.radius+"px","-webkit-border-top-right-radius":{Webkit:this.settings.border.r
adius+"px"},"-webkit-border-bottom-right-radius":{Webkit:this.settings.border.ra
dius+"px"},"-moz-border-radius-topright":{Gecko:this.settings.border.radius+"px"
},"-moz-border-radius-bottomright":{Gecko:this.settings.border.radius+"px"}})),"
"].join("");
if(this.settings.logo.hasStates){this.settings.logo.background.hover=[c,e];
this.settings.logo.background.click=[c*2,e];
d+=["",this.createCSS({component:"logo",state:b.hovered},this.createStyle({"back
ground-position":this.settings.logo.background.hover.join("px ")+"px"})),this.cr
eateCSS([{component:"logo",state:b.clicked},{component:"logo",state:b.down}],thi
s.createStyle({"background-position":this.settings.logo.background.click.join("p
x ")+"px"})),this.createCSS({component:"logo"},this.createStyle({"filter":{MSIE:
"alpha(opacity="+($_GLOBALS.shadowBox.altOpacity*100)+")"}}),"."+$_GLOBALS.shado
wBox.theClass),""].join("")
}return d
}).Method("getTitleStyles",function(){if(this.config.titles.normal===""){return"
"
}var d=this.settings,b=$_CONSTANTS.states;
var f={left:Math.round((d.title.padding.left*d.title.padding.ratio)+d.logo.width
+d.logo.padding-1),right:Math.round((d.title.padding.right*d.title.padding.ratio
)+d.logo.padding)};
if(d.logo.position.floated==="left"){f={left:f.right,right:f.left}
}d.title.padding.resolved=f;
var c=IN.Objects.Lib.UA.isQuirksMode(),e={normal:this.computeBoxShadow("w3c",d.b
oxShadow.normal),hover:this.computeBoxShadow("w3c",d.boxShadow.hover),click:this
.computeBoxShadow("w3c",d.boxShadow.click)};
return["",this.createCSS({component:"title"},this.createStyle({"color":d.color.n
ormal,"cursor":"pointer","display":"block","white-space":"nowrap","float":"left"
,"margin-left":"1px","vertical-align":"top","overflow":"hidden","text-align":d.t
itle.textAlign,"height":{MSIE:(c?(d.title.height+d.ieOffset):(d.title.height-d.i
eOffset))+"px",other:d.title.height+"px"},"padding":{MSIE:"0 "+f.left+"px "+(c?"
0 ":(d.ieOffset+"px "))+f.right+"px",other:"0 "+f.left+"px 0 "+f.right+"px"},"bo
rder":"1px solid #000","border-top-color":d.border.color.normal.top,"border-righ
t-color":d.border.color.normal.right,"border-bottom-color":d.border.color.normal
.bottom,"border-left-color":d.border.color.normal.left,"border-left":(d.border.c
orners!=="all")?"0":"","text-shadow":d.font.shadow,"line-height":{MSIE:(c?d.titl
e.height:(d.title.height-d.ieOffset*2))+"px",other:d.logo.height+"px"},"border-r
adius":(this.config.useLogo&&d.border.corners!=="all")?"0":d.border.radius+"px",
"-webkit-border-radius":{Webkit:(this.config.useLogo&&d.border.corners!=="all")?
"0":d.border.radius+"px"},"-moz-border-radius":{Gecko:(this.config.useLogo&&d.bo
rder.corners!=="all")?"0":d.border.radius+"px"},"border-top-right-radius":d.bord
er.radius+"px","border-bottom-right-radius":d.border.radius+"px","-webkit-border
-top-right-radius":{Webkit:d.border.radius+"px"},"-webkit-border-bottom-right-ra
dius":{Webkit:d.border.radius+"px"},"-moz-border-radius-topright":{Gecko:d.borde
r.radius+"px"},"-moz-border-radius-bottomright":{Gecko:d.border.radius+"px"},"ba
ckground-color":d.background.normal,"background-image":{Webkit:this.computeGradi
entStyle("webkit",d.gradient.normal),Gecko:this.computeGradientStyle("gecko",d.g
radient.normal),MSIE:this.computeGradientStyle("msie",d.gradient.normal),Opera:t
his.computeGradientStyle("opera",d.gradient.normal),other:this.computeGradientSt
yle("w3c",d.gradient.normal)},"filter":{MSIE:this.computeGradientStyle("msieold"

,d.gradient.normal)},"-moz-box-shadow":{Gecko:e.normal},"-webkit-box-shadow":{We
bkit:e.normal},"-ms-box-shadow":{MSIE:e.normal},"-o-box-shadow":{Opera:e.normal}
,"box-shadow":{other:e.normal}})),this.createCSS({component:"title",state:b.hove
red},this.createStyle({"border":"1px solid #000","border-top-color":d.border.col
or.hover.top,"border-right-color":d.border.color.hover.right,"border-bottom-colo
r":d.border.color.hover.bottom,"border-left-color":d.border.color.hover.left,"bo
rder-left":(this.config.useLogo&&d.border.corners!=="all")?"0":"","background-co
lor":d.background.hover,"background-image":{Webkit:this.computeGradientStyle("we
bkit",d.gradient.hover),Gecko:this.computeGradientStyle("gecko",d.gradient.hover
),MSIE:this.computeGradientStyle("msie",d.gradient.hover),Opera:this.computeGrad
ientStyle("opera",d.gradient.hover),other:this.computeGradientStyle("w3c",d.grad
ient.hover)},"filter":{MSIE:this.computeGradientStyle("msieold",d.gradient.hover
)},"-moz-box-shadow":{Gecko:e.hover},"-webkit-box-shadow":{Webkit:e.hover},"-msbox-shadow":{MSIE:e.hover},"-o-box-shadow":{Opera:e.hover},"box-shadow":{other:e
.hover}})),this.createCSS([{component:"title",state:b.clicked},{component:"title
",state:b.down}],this.createStyle({"color":d.color.click,"border":"1px solid #00
0","border-top-color":d.border.color.click.top,"border-right-color":d.border.col
or.click.right,"border-bottom-color":d.border.color.click.bottom,"border-left-co
lor":d.border.color.click.left,"border-left":(this.config.useLogo&&d.border.corn
ers!=="all")?"0":"","background-color":d.background.click,"background-image":{We
bkit:this.computeGradientStyle("webkit",d.gradient.click),Gecko:this.computeGrad
ientStyle("gecko",d.gradient.click),MSIE:this.computeGradientStyle("msie",d.grad
ient.click),Opera:this.computeGradientStyle("opera",d.gradient.clic/*! Copyright
(c) 2010 Brandon Aaron (http://brandonaaron.net)
* Licensed under the MIT License (LICENSE.txt).
*
* Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
* Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
* Thanks to: Seamus Leahy for adding deltaX and deltaY
*
* Version: 3.0.4
*
* Requires: 1.2.2+
*/
(function(d){function g(a){var b=a||window.event,i=[].slice.call(arguments,1),c=
0,h=0,e=0;a=d.event.fix(b);a.type="mousewheel";if(a.wheelDelta)c=a.wheelDelta/12
0;if(a.detail)c=-a.detail/3;e=c;if(b.axis!==undefined&&b.axis===b.HORIZONTAL_AXI
S){e=0;h=-1*c}if(b.wheelDeltaY!==undefined)e=b.wheelDeltaY/120;if(b.wheelDeltaX!
==undefined)h=-1*b.wheelDeltaX/120;i.unshift(a,c,h,e);return d.event.handle.appl
y(this,i)}var f=["DOMMouseScroll","mousewheel"];d.event.special.mousewheel={setu
p:function(){if(this.addEventListener)for(var a=
f.length;a;)this.addEventListener(f[--a],g,false);else this.onmousewheel=g},tear
down:function(){if(this.removeEventListener)for(var a=f.length;a;)this.removeEve
ntListener(f[--a],g,false);else this.onmousewheel=null}};d.fn.extend({mousewheel
:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmo
usewheel:function(a){return this.unbind("mousewheel",a)}})})(jQuery);ateCSS({com
ponent:"titleChildItalic"},this.createStyle({"font-style":"italic"})),this.creat
eCSS([{component:"titleText",state:b.hovered},{component:"titleChild",state:b.ho
vered}],this.createStyle({"color":d.color.hover})),this.createCSS([{component:"t
itleText",state:b.clicked},{component:"titleText",state:b.down},{component:"titl
eChild",state:b.clicked},{component:"titleChild",state:b.down}],this.createStyle
({"color":d.color.click})),this.createCSS({component:"mark"},this.createStyle({"
display":"inline-block","width":"0px","overflow":"hidden"})),""].join("")
}).Method("setTitleText",function(b){if(this.currentTitleText===b){return
}if(!this.titleTextNode){this.titleTextNode=IN.$Id(this.mainNodeId+"-title-text"
)
}this.currentTitleText=b;
this.titleTextNode.innerHTML=b
}).Method("getTitleText",function(){return this.currentTitleText

}).Method("setButtonStyles",function(){this.settings={logo:{height:20,ratio:1,pa
dding:4,borderRight:"",position:{top:"0px",right:"",bottom:"",left:"0px",floated
:"left"},background:{row:-170,rowOffset:-106,color:""},hasStates:true},font:{siz
e:11,family:"Arial, sans-serif",weight:"bold",style:"normal",shadow:"#FFFFFF -1p
x 1px 0"},title:{padding:{left:0,right:0,ratio:1},height:18,lineHeight:20,textAl
ign:"center"},boxShadow:{normal:{off:true,horizontal:0,vertical:0,blur:2,color:"
"},hover:{off:true,horizontal:0,vertical:0,blur:2,color:""},click:{off:true,hori
zontal:0,vertical:0,blur:2,color:""}},border:{corners:"right",radius:2,color:{no
rmal:{top:"#E2E2E2",right:"#BFBFBF",bottom:"#B9B9B9",left:"#E2E2E2"},hover:{top:
"#ABABAB",right:"#9A9A9A",bottom:"#787878",left:(this.config.useLogo)?"#04568B":
"#ABABAB"},click:{top:"#B6B6B6",right:"#B3B3B3",bottom:"#9D9D9D",left:(this.conf
ig.useLogo)?"#49627B":"#B6B6B6"},success:{normal:{top:"#E2E2E2",right:"#BFBFBF",
bottom:"#B9B9B9",left:"#E2E2E2"},hover:{top:"#ABABAB",right:"#9A9A9A",bottom:"#7
87878",left:(this.config.useLogo)?"#04568B":"#ABABAB"},click:{top:"#B6B6B6",righ
t:"#B3B3B3",bottom:"#9D9D9D",left:(this.config.useLogo)?"#49627B":"#B6B6B6"}}}},
ieOffset:2,textShadow:"none",color:{normal:"#333",hover:"#000",click:"#666",succ
ess:{normal:"#333",hover:"#000",click:"#666"}},background:{normal:"#ECECEC",clic
k:"#DEDEDE",hover:"#EDEDED",success:{normal:"#ECECEC",click:"#DEDEDE",hover:"#ED
EDED"}},gradient:{normal:["#FEFEFE","#ECECEC"],hover:["#EDEDED","#DEDEDE"],click
:["#E3E3E3","#EDEDED"],success:{normal:["#FEFEFE","#ECECEC"],hover:["#EDEDED","#
DEDEDE"],click:["#E3E3E3","#EDEDED"]}},mark:{width:12+3,height:11,background:[-2
50,-140],margin:{top:2,right:0,bottom:0,left:0}}};
var f={small:{},medium:{logo:{height:25,background:{rowOffset:-81}},font:{size:1
3},title:{height:23,lineHeight:23,padding:{ratio:1.25}},border:{radius:3},mark:{
width:14+3,height:13,background:[-250,-160],margin:{top:5}}},large:{logo:{height
:33,background:{rowOffset:-48}},font:{size:15},title:{height:31,lineHeight:31,pa
dding:{ratio:1.65}},border:{radius:3},mark:{width:14+3,height:13,background:[-25
0,-160],margin:{top:9,right:5}}},xlarge:{logo:{height:48,background:{rowOffset:0
}},font:{size:24},title:{height:46,lineHeight:46,padding:{ratio:2.4}},border:{ra
dius:5},mark:{width:20+5,height:19,background:[-250,-180],margin:{top:1}}}};
var e={basic:{},flat:{font:{shadow:"0 -1px #005887",size:11},logo:{background:{r
ow:-593,rowOffset:0,image:"none",color:"#0077b5"},borderRight:"1px solid #066094
",hasStates:false},color:{normal:"#fff",hover:"#fff",click:"#fff",success:{norma
l:"#fff",hover:"#fff",click:"#fff"}},background:{normal:"#0077b5",click:"#066094
",hover:"#0369a0",success:{normal:"#0077b5",click:"#066094",hover:"#0369a0"}},gr
adient:{normal:["#0077b5","#0077b5"],hover:["#0369a0","#0369a0"],click:["#066094
","#066094"],success:{normal:["#0077b5","#0077b5"],hover:["#0369a0","#0369a0"],c
lick:["#066094","#066094"]}},border:{corners:"all",color:{normal:{top:"#0077b5",
right:"#0077b5",bottom:"#0077b5",left:"#0077b5"},hover:{top:"#0369a0",right:"#03
69a0",bottom:"#0369a0",left:"#0369a0"},click:{top:"#066094",right:"#066094",bott
om:"#066094",left:"#066094"},success:{normal:{top:"#0077b5",right:"#0077b5",bott
om:"#0077b5",left:"#0077b5"},hover:{top:"#0369a0",right:"#0369a0",bottom:"#0369a
0",left:"#0369a0"},click:{top:"#066094",right:"#066094",bottom:"#066094",left:"#
066094"}}}}},shernaz:{logo:{ratio:1.06060606,position:{top:"0px",right:"0px",bot
tom:"",left:"",floated:"right"},background:{row:-298}},font:{weight:"normal",sha
dow:"none",family:"'Helvetica Neue', Arial, Helvetica, sans-serif"},title:{paddi
ng:{left:0.5,right:3.5}},boxShadow:{hover:{off:false,horizontal:0,vertical:2,blu
r:2,color:"#b7b7b7"}},color:{normal:"#000",hover:"#000",click:"#000",success:{no
rmal:"#000",hover:"#000",click:"#000"}},gradient:{normal:["#ffffff","#f9f9f9","#
e3e3e3","#cbcbcb"],hover:["#fdfdfd","#f2f2f2","#e3e3e3","#cbcbcb"],click:["#cbcb
cb","#e3e3e3","#f2f2f2","#fdfdfd"],success:{normal:["#ffffff","#f9f9f9","#e3e3e3
","#cbcbcb"],hover:["#fdfdfd","#f2f2f2","#e3e3e3","#cbcbcb"],click:["#cbcbcb","#
e3e3e3","#f2f2f2","#fdfdfd"]}},background:{normal:"#07547d",click:"#0067a0",hove
r:"#65add2"},border:{corners:"all",color:{normal:{top:"#cdcdcd",right:"#cdcdcd",
bottom:"#acacac",left:"#cdcdcd"},hover:{top:"#cdcdcd",right:"#cdcdcd",bottom:"#a
cacac",left:"#cdcdcd"},click:{top:"#cdcdcd",right:"#cdcdcd",bottom:"#cdcdcd",lef
t:"#cdcdcd"},success:{normal:{top:"#cdcdcd",right:"#cdcdcd",bottom:"#acacac",lef
t:"#cdcdcd"},hover:{top:"#cdcdcd",right:"#cdcdcd",bottom:"#acacac",left:"#cdcdcd
"},click:{top:"#cdcdcd",right:"#cdcdcd",bottom:"#cdcdcd",left:"#cdcdcd"}}}},fanc
y:{color:{normal:"#fff",hover:"#fff",click:"#fff"},gradient:{normal:["#65add2","

30:#0f90d2","67:#006daa","#07547d"],hover:["#5caad2","30:#0084ce","67:#006daa","
#07527b"],click:["#07527b","30:#006daa","67:#0084ce","#5caad2"]},background:{nor
mal:"#007cbb",hover:"#0083c6",click:"#007cbb"},border:{corners:"all",color:{norm
al:{top:"#2771aa",right:"#2771aa",bottom:"#2771aa",left:"#2771aa"},hover:{top:"#
2771aa",right:"#2771aa",bottom:"#2771aa",left:"#2771aa"},click:{top:"#2771aa",ri
ght:"#2771aa",bottom:"#2771aa",left:"#2771aa"}}}},simple:{title:{padding:{left:1
,right:1}},boxShadow:{hover:{off:true}}}}};
var g=this.config.theme.split("-"),d=e;
for(var b=0,c=g.length;
b<c;
b++){d=d[g[b]];
if(!d){break
}IN.Util.extendObject(this.settings,d)
}f=f[this.config.size]||{};
IN.Util.extendObject(this.settings,f)
})
})();
/* res://connect-min/dev/objects/inlink.js */
(function(){var a={};
Sslac.Class("IN.Objects.InLink").Extends("IN.Objects.Base").Constructor(function
(d){d=d||{};
d={text:d.text||"",size:(d.size||"small").toLowerCase(),suppressFont:true};
this.Parent(d);
this.memoizer=a[d.text]=a[d.text]||{};
this.size=d.size;
this.sizeSettings={small:{height:16,width:16,logo:[-92,-42]}};
var f=this.generateId(),e=false,c=this,b=$_CONSTANTS.events;
if(!this.memoizer.markup){this.memoizer.markup=["",'<span id="{0}" class="li-con
nect-widget">','<a id="{0}-link" class="li-connect-link" href="javascript:void(0
);"><span id="{0}-mark" class="li-connect-mark"></span></a>',(d.text)?' <a class
="li-connect-link" href="javascript:void(0);"><span id="{0}-text" class="li-conn
ect-text">'+d.text+"</span></a>":"","</a>","</span>",""].join("")
}if(!this.memoizer.styles){this.memoizer.styles=["",this.getBaseStyles(d),""].jo
in("").replace(/\{ID\}/g,"{0}")
}IN.Util.addCSS(IN.Util.formatString(this.memoizer.styles,f));
this.el().innerHTML=IN.Util.formatString(this.memoizer.markup,f);
this.mainNodeId=f;
this.onClick=this.addHandler(f,b.click.toLowerCase());
this.onMouseDown=this.addHandler(f,b.mouseDown.toLowerCase());
this.onMouseOver=this.addHandler(f,b.mouseOver.toLowerCase());
this.onMouseOut=this.addHandler(f,b.mouseOut.toLowerCase());
this.onClick(function(g){this.setState(b.click)
},this);
this.onMouseDown(function(g){this.setState(b.mouseDown)
},this);
this.onMouseOver(function(g){this.setState(b.mouseOver)
},this);
this.onMouseOut(function(){this.setState(b.mouseOut)
},this)
}).Method("setState",function(f){var b=IN.$Id(this.mainNodeId),e=this,d=$_CONSTA
NTS.events,c=$_CONSTANTS.states;
if(!b){return
}switch(f){case c.pending:IN.Util.addClass(b,c.pending);
window.setTimeout(function(){e.setState(c.normal)
},2000);
break;
case d.mouseOver:IN.Util.addClass(b,c.hovered);
break;

case d.mouseOut:IN.Util.removeClass(b,c.hovered);
break;
case d.mouseDown:break;
case d.click:IN.Util.addClass(b,c.click);
break;
case d.normal:IN.Util.removeClass(b,c.hovered);
IN.Util.removeClass(b,c.click);
IN.Util.removeClass(b,c.pending);
break
}}).Method("getSetting",function(b){if(typeof this.sizeSettings[this.size]===$_C
ONSTANTS.types.undef){return this.sizeSettings.small[b]
}return this.sizeSettings[this.size][b]
}).Method("getBaseStyles",function(b){return["",".li-connect-widget .li-connectmark {",this.createStyle({"background":"url("+IN.ENV.images.sprite+") "+this.get
Setting("logo").join("px ")+"px no-repeat","display":"inline-block","height":thi
s.getSetting("height")+"px","text-decoration":"none","width":this.getSetting("wi
dth")+"px","vertical-align":"middle","*margin":"0 3px","*vertical-align":"bottom
"}),"}",".IN-widget .hovered .li-connect-mark {",this.createStyle({"cursor":"poi
nter"}),"}",".li-connect-widget.pending .li-connect-mark {",this.createStyle({"b
ackground":"url("+$_CONSTANTS.resources.spinner16x16+") no-repeat","*background"
:"url("+IN.ENV.images.sprite+") "+this.getSetting("logo").join("px ")+"px no-rep
eat","cursor":"wait"}),"}",""].join("")
})
})();
/* res://connect-min/dev/objects/callout.js */
(function(){var a={};
Sslac.Class("IN.Objects.Callout").Extends("IN.Objects.Base").Constructor(functio
n(e){e=e||{};
this.config={position:e.position||"right",state:e.state||"visible",alwaysShow:e.
alwaysShow||false,content:(!e.content&&e.content!==0)?"":e.content,theme:e.theme
||"basic",isRetina:IN.Util.isRetina(),useRetinaAsset:false};
this.config.useRetinaAsset=(this.config.theme==="flat"&&this.config.isRetina)?tr
ue:false;
this.Parent(this.config);
this.setCalloutStyles();
if(this.config.position.toLowerCase()==="talltop"){this.config.position="top"
}var h=this.generateId(),f=false,d=this,c=$_CONSTANTS.events,b=[this.config.posi
tion,this.config.state].join("::");
this.memoizer=a[b]=a[b]||{};
this.mainNodeId=h;
this.alwaysShow=e.alwaysShow;
if(!this.memoizer.markup){this.memoizer.markup=["",'<span id="{0}-container" cla
ss="IN-'+this.config.position+(this.config.state=="hidden"?" IN-hidden":"")+'">'
,'<span id="{0}" class="IN-'+this.config.position+'">','<span id="{0}-inner" cla
ss="IN-'+this.config.position+'">','<span id="{0}-content" class="IN-'+this.conf
ig.position+'">{1}</span>',"</span>","</span>","</span>",""].join("")
}if(!this.memoizer.styles){var g=[];
switch(this.config.position){case"right":g.push(["","#{0}-container.IN-right {",
this.createStyle({"display":"inline-block","float":"left","overflow":"visible","
position":"relative","height":this.settings.right.height,"padding-left":"2px","l
ine-height":"1px","cursor":"pointer","vertical-align":{MSIE:"-2px"}}),"}","#{0}.
IN-right {",this.createStyle({"display":"block","float":"left","height":this.set
tings.right.height,"margin-right":"4px","padding-right":"4px","background-image"
:"url("+IN.ENV.images.sprite+")","background-color":"transparent","background-re
peat":"no-repeat","background-position":this.settings.right.countBubble.backgrou
nd.position}),"}","#{0}-inner.IN-right {",this.createStyle({"display":"block","f
loat":"left","padding-left":"8px","text-align":"center","background-image":"url(
"+IN.ENV.images.sprite+")","background-color":"transparent","background-repeat":

"no-repeat","background-position":this.settings.right.countNub.background.positi
on}),"}","#{0}-content.IN-right {",this.createStyle({"display":"inline","font-si
ze":"11px","color":this.settings.right.countBubble.color,"font-weight":"bold","f
ont-family":"Arial, sans-serif","line-height":this.settings.right.countBubble.li
neHeight,"padding":"0 5px 0 5px"}),"}","#{0}-container.IN-empty {",this.createSt
yle({"display":"none"}),"}",""].join(""));
break;
case"top":g.push(["","#{0}-container.IN-top {",this.createStyle({"display":"inli
ne-block","overflow":"visible","position":"relative","height":"42px","line-heigh
t":"1px","cursor":"pointer"}),"}","#{0}.IN-top {",this.createStyle({"display":"i
nline-block","height":"42px","width":this.settings.top.width,"text-align":"cente
r","background-image":"url("+IN.ENV.images.sprite+")","background-color":"transp
arent","background-repeat":"no-repeat","background-position":this.settings.top.c
ountBubble.background.position}),"}","#{0}-content.IN-top {",this.createStyle({"
display":"inline","font-size":"16px","color":this.settings.top.countBubble.color
,"font-weight":"bold","font-family":"Arial, sans-serif","line-height":"38px"}),"
}","#{0}-container.IN-empty #{0}-inner.IN-top {",this.createStyle({"background-i
mage":"url("+IN.ENV.images.sprite+")","background-color":"transparent","backgrou
nd-repeat":"no-repeat","background-position":this.settings.topEmpty.countBubble.
background.position,"background-size":this.settings.topEmpty.countBubble.backgro
und.size,"overflow":"hidden","margin":this.settings.topEmpty.countBubble.margin,
"width":this.settings.topEmpty.countBubble.width,"height":this.settings.topEmpty
.countBubble.height,"display":"block"}),"}","#{0}-container.IN-empty #{0}-conten
t.IN-top {",this.createStyle({"text-indent":"-999px","display":"inline-block"}),
"}",""].join(""));
break
}g.push(["#{0}-container.IN-hidden #{0} {",this.createStyle({"display":"none"}),
"}"].join(""));
this.memoizer.styles=g.join("")
}IN.Util.addCSS(IN.Util.formatString(this.memoizer.styles,h));
this.el().innerHTML=IN.Util.formatString(this.memoizer.markup,h,e.content);
this.onClick=this.addHandler(h,c.click.toLowerCase());
this.onMouseDown=this.addHandler(h,c.mouseDown.toLowerCase());
this.onMouseOver=this.addHandler(h,c.mouseOver.toLowerCase());
this.onMouseOut=this.addHandler(h,c.mouseOut.toLowerCase());
this.onClick(function(i){this.setState(c.click)
},this);
this.onMouseDown(function(i){this.setState(c.mouseDown)
},this);
this.onMouseOver(function(i){this.setState(c.mouseOver)
},this);
this.onMouseOut(function(){this.setState(c.mouseOut)
},this)
}).Method("setContent",function(d){var c=IN.$Id(this.mainNodeId+"-container"),b=
IN.$Id(this.mainNodeId+"-content");
IN.Util.removeClass(c,$_CONSTANTS.prefixes.IN+"empty");
if(d==="0"||d===""){IN.Util.addClass(c,$_CONSTANTS.prefixes.IN+"empty")
}b.innerHTML=d
}).Method("getContent",function(){var b=IN.$Id(this.mainNodeId+"-content");
return b.innerHTML
}).Method("setState",function(g){var b=IN.$Id(this.mainNodeId+"-container"),e=th
is,d=$_CONSTANTS.events,c=$_CONSTANTS.states,f=$_CONSTANTS.prefixes;
switch(g){case c.hidden:IN.Util.addClass(b,f.IN+c.hidden);
break;
case c.visible:IN.Util.removeClass(b,f.IN+c.hidden);
break;
case d.mouseOver:IN.Util.addClass(b,f.IN+c.hovered);
break;
case d.mouseDown:IN.Util.addClass(b,f.IN+c.down);
break;

case d.mouseOut:IN.Util.removeClass(b,f.IN+c.hovered);
IN.Util.removeClass(b,f.IN+c.down);
break;
case d.click:if(IN.Util.hasClass(b,f.IN+c.clicked)){return
}IN.Util.removeClass(b,f.IN+c.hovered);
IN.Util.addClass(b,f.IN+c.clicked);
window.setTimeout(function(){e.setState(c.normal)
},2000);
break;
case d.normal:IN.Util.removeClass(b,f.IN+c.hidden);
IN.Util.removeClass(b,f.IN+c.clicked);
break
}}).Method("setCalloutStyles",function(){this.settings={right:{countNub:{backgro
und:{position:"0px -60px"}},countBubble:{background:{position:"right -100px"},co
lor:"#04558B",lineHeight:"18px"},height:"18px"},top:{countBubble:{background:{po
sition:"-150px top"},color:"#04558B"},width:"57px"},topEmpty:{countBubble:{backg
round:{position:"0px -20px"},width:"26px",height:"26px",margin:"5px auto 0 auto"
}}};
var e={basic:{},flat:{right:{countNub:{background:{position:"0px -426px"}},count
Bubble:{background:{position:"right -447px"},color:"#4e4e4e",lineHeight:"20px"},
height:"20px"},top:{countBubble:{background:{position:"-207px -470px"},color:"#4
e4e4e"},width:"60px"},topEmpty:{countBubble:{background:{position:(this.config.u
seRetinaAsset)?"0px -393px":"0px -560px",size:(this.config.useRetinaAsset)?"135p
x auto":"initial"},width:(this.config.useRetinaAsset)?"27px":"28px",height:(this
.config.useRetinaAsset)?"28px":"28px",margin:"4px auto 0 auto"}}}};
var f=this.config.theme.split("-"),d=e;
for(var b=0,c=f.length;
b<c;
b++){d=d[f[b]];
if(!d){break
}IN.Util.extendObject(this.settings,d)
}})
})();
/* res://connect-min/dev/objects/smartwindow.js */
Sslac.Class("IN.Objects.SmartWindow").Extends("IN.Objects.Base").Constructor(fun
ction Constructor(b){var d=$_CONSTANTS.modes;
var a;
var e;
b=b||{};
b={url:b.url||"about:blank",xd:b.xd||{},mode:b.mode||d.auto,anchor:b.anchor||nul
l,method:b.method||null,width:b.width||IN.ENV.ui.popup_window_width,height:b.hei
ght||400,postParams:b.postParams||{}};
b.xd.secure=b.xd.secure||IN.ENV.url.xd_html;
b.xd.unsecure=b.xd.unsecure||IN.ENV.url.xd_us_html;
this.onWindowCreate=new IN.CustomEvent("windowCreate");
this.onWindowRemove=new IN.CustomEvent("windowRemove");
this.onWindowResize=new IN.CustomEvent("windowResize");
this.Parent(b);
var c=$_PATTERNS.protocols.secure.test(b.url);
this.disableRefresh=b.disableRefresh;
this.anchorInfo=b.anchor;
this.transport=null;
this.created=false;
this.channelId=IN.$uid();
this.postUrl=b.url;
this.transportMethod=b.method;
this.transportUrl=(c)?b.xd.secure:b.xd.unsecure;
this.xdSwfUrl=(c)?IN.ENV.images.secure_xdswf:IN.ENV.images.unsecure_xdswf;

this.postParams=b.postParams||{};
this.transportOptions=[];
this.callbacks={success:[],error:[],ready:[]};
this.width=b.width;
this.height=b.height;
this.config=b;
this.frameMode=b.mode;
if(this.frameMode===d.auto){if(IN.User.isAuthorized()){this.frameMode=d.modal
}else{this.frameMode=d.popup
}}this.onWindowCreate.subscribe(function(){this.created=true
},this);
this.transportOptions.push("target="+this.channelId);
this.transportOptions.push("width="+this.width);
this.transportOptions.push("height="+this.height);
switch(this.frameMode){case d.inlineIframe:case d.iframe:case d.embedded:case d.
modal:case d.hovercard:case d.invisible:this.transportOptions.push("mode=wrapper
");
break;
case d.listener:case d.popup:if(IN.Objects.Lib.UA.isSingleTabJS()){this.transpor
tOptions.push("mode=listener");
this.postParams.target=this.channelId;
a=IN.Util.appendParams(b.url,this.postParams)
}else{this.transportOptions.push("mode=popup");
a=this.transportUrl+"#mode=popup-wait&target=easyXDM_IN_Lib_"+this.channelId+"_p
rovider"
}e=window.open(a,"easyXDM_IN_Lib_"+this.channelId+"_provider_popup","width="+thi
s.width+", height="+this.height);
break
}return this
}).Method("remove",function remove(){if(this.transport){this.transport.destroy()
;
this.transport=null
}this.onWindowRemove.fire();
this.Parent()
}).Method("params",function params(a){this.postParams=a;
return this
}).Method("ready",function ready(b,a){return this.pushCallback(b,"ready",a)
}).Method("success",function success(b,a){return this.pushCallback(b,"success",a
)
}).Method("error",function error(b,a){return this.pushCallback(b,"error",a)
}).Method("pushCallback",function handleEvent(b,c,a){this.callbacks[c].push({fn:
b||function(){},scope:a||window});
return this
}).Method("handleWidgetReady",function handleWidgetReady(b,c,a){this.handleCallb
ack(b,c,a,"ready")
}).Method("handleWidgetSuccess",function handleWidgetSuccess(b,c,a){this.handleC
allback(b,c,a,"success")
}).Method("handleWidgetFailure",function handleWidgetFailure(b,c,a){this.handleC
allback(b,c,a,"error")
}).Method("handleWidgetReload",function handleWidgetReload(a){if($_PATTERNS.url.
test(a)&&a!==this.postUrl){this.remove();
this.postUrl=a;
var b=$_PATTERNS.protocols.secure.test(a);
this.transportUrl=(b)?this.config.xd.secure:this.config.xd.unsecure;
this.xdSwfUrl=(b)?IN.ENV.images.secure_xdswf:IN.ENV.images.unsecure_xdswf;
this.place()
}else{this.transport.refresh()
}}).Method("handleCallback",function handleCallback(f,g,c,e){if(this.callbacks[e
]&&this.callbacks[e].length){for(var d=0,b=this.callbacks[e].length;
d<b;

d++){var a=this.callbacks[e][d];
a.fn.call(a.scope,f)
}}g()
}).Method("mode",function mode(c){var b=this.frameOptions,f=this.frameMode||"",e
=this,d={},h=$_CONSTANTS.events,i=$_CONSTANTS.modes;
switch(c.toLowerCase()){case i.embedded:d={embedded:true};
break;
case i.modal:d={embedded:false,shadowBox:true,closeOnDocClick:true,overlay:true,
reCenter:true};
break;
case i.hovercard:d={embedded:false,overlay:true,closeOnDocClick:true};
break;
case i.invisible:d={embedded:false,closeOnDocClick:false,disableRefresh:true};
break;
case i.popup:d={popup:true};
if(f&&f!=="popup"){throw new Error("cannot change to the popup type")
}break;
default:throw new Error(c+" is not supported")
}this.frameMode=c;
this.frameOptions=d;
function g(j){if(d.popup){return
}j.style.position="";
if(!d.embedded){IN.Objects.Lib.setShadowExempt(e.el());
j.style.position="absolute";
j.style.left="-2345px";
j.style.top="0"
}if(d.overlay){j.style.zIndex="9999"
}else{j.style.zIndex=""
}if(!d.shadowBox){IN.Objects.Lib.setShadowBox(false)
}}function a(j){if(d.popup){return
}function l(){IN.Event.remove(IN,h.refresh,e.triggerRefresh,e);
IN.Event.remove(IN,h.logout,e.triggerRefresh,e);
e.remove()
}function k(){IN.Objects.Lib.center(j)
}if(d.closeOnDocClick){IN.Event.onOnce(document,h.click,l,e.transport)
}else{if(b&&b.closeOnDocClick){IN.Event.remove(document,h.click,l,e.transport)
}}if(!d.disableRefresh){IN.Event.on(IN,h.refresh,e.triggerRefresh,e);
IN.Event.on(IN,h.logout,e.triggerRefresh,e)
}else{if(b&&!b.disableRefresh){IN.Event.remove(IN,h.refresh,e.triggerRefresh,e);
IN.Event.remove(IN,h.logout,e.triggerRefresh,e)
}}if(d.reCenter){IN.Event.on(window,h.resize,k,e)
}else{IN.Event.remove(window,h.resize,k,e)
}}if(this.created){g(this.frameNode);
a(this.frameNode)
}else{this.onWindowCreate.subscribe(function(){if(this.frameNode){g(this.frameNo
de);
a(this.frameNode);
this.frameNode.style.width="1px";
this.frameNode.style.height="1px";
this.frameNode.style.display="inline-block"
}if(d.shadowBox){IN.Objects.Lib.setShadowBox(true)
}},this);
this.onWindowRemove.subscribe(function(){IN.Objects.Lib.setShadowBox(false)
},this)
}}).Method("triggerRefresh",function triggerRefresh(){if(this.transport&&this.tr
ansport.refresh){this.transport.refresh()
}}).Method("place",function place(b,e){if(!b){b=this.where
}if(!e){e=this.target
}this.where=b;
this.target=e;

this.Parent(b,e);
var f,c=this.transportOptions.join("&"),d=$_CONSTANTS.modes;
switch(this.frameMode){case d.embedded:case d.hovercard:case d.invisible:case d.
modal:f=this.getEmbeddedRpc(c);
break;
case d.popup:f=this.getPopupRpc(c);
break
}this.postParams.original_referer=window.location.href;
this.postParams.token=IN.ENV.auth.anonymous_token;
this.postParams.isFramed=""+IN.ENV.js.isFramed;
if(typeof(IN.ENV.js.lang)!=="undefined"){var a=IN.ENV.js.lang.split("_");
this.postParams.lang=a[0].toLowerCase()+"_"+a[1].toUpperCase()
}this.mode(this.frameMode);
this.transport=new IN.Lib.easyXDM.Rpc(f[0],f[1]);
return this
}).Method("getPopupRpc",function getPopupRpc(h){var e=this,c,b;
c={remote:this.transportUrl+"#"+h,swf:this.xdSwfUrl,hash:true,channel:this.chann
elId,onReady:function f(){e.onWindowCreate.fire();
e.transport.form({action:e.postUrl,items:e.postParams,method:e.transportMethod})
}};
b={local:{authorize:function d(o,m,n,p){IN.User.setAuthorized(o,m,n);
p()
},logout:function l(m){IN.User.setLoggedOut();
m()
},reload:function a(m){e.handleWidgetReload(m)
},widgetSuccess:function k(n,o,m){e.handleWidgetSuccess(n,o,m)
},widgetError:function g(n,o,m){e.handleWidgetFailure(n,o,m)
},widgetReady:function j(n,o,m){e.handleWidgetReady(n,o,m)
},closedWindow:function i(){window.setTimeout(function m(){e.remove()
},1)
}},remote:{form:{}}};
return[c,b]
}).Method("getEmbeddedRpc",function getIframeRpc(i){var f=this,d,c,j;
d={remote:this.transportUrl+"#"+i,hash:true,swf:this.xdSwfUrl,channel:this.chann
elId,container:this.el(),props:{style:{position:"absolute"}},onReady:function g(
){j=f.el().getElementsByTagName("iframe")[0];
f.frameNode=j;
f.onWindowCreate.fire(j);
f.transport.form({action:f.postUrl,items:f.postParams,method:f.transportMethod})
}};
c={local:{logout:function o(p){IN.User.setLoggedOut();
p()
},reload:function a(p){f.handleWidgetReload(p)
},resize:function b(t,q,v){j.style.width=t+"px";
j.style.height=q+"px";
if(!f.frameOptions.embedded&&f.frameMode!=="hovercard"&&f.frameMode!=="invisible
"){var p=IN.Objects.Lib.getCenter(j);
if(f.hasAnimated){IN.Objects.Lib.slideTo(j,p,{bounce:0,duration:200})
}else{var s=IN.Objects.Lib.getViewport();
var u=IN.Objects.Lib.getScrollOffsets();
f.hasAnimated=true;
j.style.left=p.left+"px";
j.style.top=u.top+s.height-(p.bottom-p.top)+"px";
IN.Objects.Lib.slideTo(j,p)
}}if(!f.frameOptions.embedded&&f.anchorInfo){var r=IN.Objects.Lib.anchor(f.ancho
rInfo.fixed,j,f.anchorInfo.context);
f.transport.mode({display:"hover",context:r.movable})
}f.onWindowResize.fire({node:f.el(),width:t,height:q});
v({width:t,height:q})
},login:function l(){IN.GlobalEvents.refresh.fire()

},authorize:function e(r,p,q,s){IN.User.setAuthorized(r,p,q);
s()
},close:function n(){f.remove()
},widgetSuccess:function m(q,r,p){f.handleWidgetSuccess(q,r,p)
},widgetError:function h(q,r,p){f.handleWidgetFailure(q,r,p);
IN.Objects.Lib.shake(j)
},widgetReady:function k(q,r,p){f.handleWidgetReady(q,r,p)
}},remote:{mode:{},refresh:{},form:{}}};
return[d,c]
});
/* res://connect-min/dev/ui/ui.js */
Sslac.Static("IN.UI").Static("Authorize",function(){var a=["",IN.ENV.url.authori
ze,(IN.ENV.url.authorize.indexOf("?")===-1)?"?":"&","client_id="+IN.ENV.auth.api
_key,"&type=user-agent",""].join("");
var c;
if(IN.ENV.js.scope&&IN.ENV.js.scope.length){c={"scope":IN.ENV.js.scope.join(" ")
}
}var b=new IN.Objects.SmartWindow({url:a,mode:"popup",postParams:c});
return b
}).Static("SilentAuth",function(){var a=["",IN.ENV.url.silent_auth_url,(IN.ENV.u
rl.silent_auth_url.indexOf("?")===-1)?"?":"&","client_id="+IN.ENV.auth.api_key,"
&type=user-agent",""].join("");
var b=new IN.Objects.SmartWindow({url:a,mode:"invisible",disableRefresh:true});
b.success(function(){$_GLOBALS.auth_complete=true;
b.close()
});
b.error(function(){$_GLOBALS.auth_complete=true;
b.close()
});
return b
}).Static("WidgetSignin",function(b){var a=IN.ENV.url.login,c;
b=b||{};
c=new IN.Objects.SmartWindow({url:a,mode:"popup",existingPopup:b.existingPopup||
null});
return c
}).Static("Logout",function(){var a=IN.ENV.url.logout,b;
a=a.replace(/\{OAUTH_TOKEN\}/,IN.ENV.auth.oauth_token).replace(/\{API_KEY\}/,IN.
ENV.auth.api_key);
b=new IN.Objects.SmartWindow({mode:"invisible",url:a,disableRefresh:true});
b.success(function(){IN.User.setLoggedOut()
});
return b
}).Static("Share",function(){return new IN.Objects.SmartWindow({url:IN.ENV.widge
t.share_url})
}).Static("Apply",function(){return new IN.Objects.SmartWindow({mode:"modal",url
:IN.ENV.widget.apply_url})
}).Static("Debugger",function(){return new IN.Objects.SmartWindow({mode:"popup",
url:IN.ENV.widget.settings_url})
});
/* res://connect-min/dev/user/user.js */
Sslac.Static("IN.User").Static("setAuthorized",function(b,c,a){IN.ENV.auth.oauth
_token=b;
IN.ENV.auth.member_id=c;
IN.User.setOauthCookie(a);
window.setTimeout(function d(){IN.GlobalEvents.auth.fire();
IN.GlobalEvents.refresh.fire()

},1)
}).Static("setNotAuthorized",function(){IN.GlobalEvents.noAuth.fire()
}).Static("setLoggedOut",function(){IN.ENV.auth.oauth_token="";
IN.ENV.auth.member_id="";
IN.User.setOauthCookie("");
window.setTimeout(function a(){IN.GlobalEvents.logout.fire()
},1)
}).Static("authorize",function(b,a){a=a||window;
if(IN.User.isAuthorized()){if(b){b.apply(a)
}return true
}else{if(b){IN.Event.onOnce(IN,$_CONSTANTS.events.auth,b,a)
}var c=IN.UI.Authorize();
c.place();
return false
}}).Static("logout",function(b,a){var c=IN.UI.Logout();
a=a||window;
if(b){c.success(b,a)
}c.place(document.body)
}).Static("refresh",function(){if($_GLOBALS.compat.silent_auth){IN.UI.SilentAuth
().place()
}else{var a=IN.ENV.url.userspace_renew,b=document.createElement("script");
a=a.replace(/\{API_KEY\}/,IN.ENV.auth.api_key);
if(IN.ENV.js.credentialsCookie){a+="&"+IN.Util.createParams({credentialsCookie:I
N.ENV.js.credentialsCookie})
}if(IN.ENV.js.scope&&IN.ENV.js.scope.length){a+="&"+IN.Util.createParams({scope:
IN.ENV.js.scope.join(" ")})
}b.type="text/javascript";
b.src=a;
b.className="in_keepalive";
IN.$Tag("head")[0].appendChild(b)
}}).Static("isAuthorized",function(){if(IN.ENV.auth.oauth_token||IN.ENV.auth.oau
th_verified){return true
}return false
}).Static("setOauthCookie",function(a){var f="linkedin_oauth_"+IN.ENV.auth.api_k
ey;
if(!IN.ENV.auth.is_set_client_auth_cookie||a===""||a===null){window.setTimeout(f
unction d(){document.cookie=f+"=null;path=/;secure;expires=0";
document.cookie=f+"_crc=null;path=/;expires=0"
},0);
return
}if(typeof a===$_CONSTANTS.types.string){try{a=JSON.parse(a)
}catch(c){}}if((typeof a)===$_CONSTANTS.types.object){a=encodeURIComponent(JSON.
stringify(a))
}window.setTimeout(function b(){document.cookie=f+"="+a+";path=/;secure;";
if(IN.ENV.js.credentialsCookieCrc){document.cookie=f+"_crc="+IN.Util.crc32(a)+";
path=/;"
}},0)
}).Static("getUIMode",function(){var a=IN.User,b=$_CONSTANTS.modes;
if(!a.isAuthorized()){return b.window
}else{return b.iframe
}}).Static("getMemberId",function(){return(IN.ENV&&IN.ENV.auth&&IN.ENV.auth.memb
er_id)?IN.ENV.auth.member_id:""
});
/* res://connect-min/dev/misc/anon_error.js */
(function(){var a={apply:"IN/Apply requires an API key to use. See http://develo
per.linkedin.com/apply-getting-started for more info.",generic:"IN/{0} requires
an API key to use. See http://developer.linkedin.com/documents/getting-started-j
avascript-api for more info."};

Sslac.Class("IN.Tags.Apply").Extends("IN.Tags.Base").Constructor(function(c,b){t
hrow a.apply
});
IN.addTag("Apply",IN.Tags.Apply);
Sslac.Class("IN.Tags.MemberData").Extends("IN.Tags.Base").Constructor(function(c
,b){throw IN.Util.formatString(a["generic"],"MemberData")
});
IN.addTag("MemberData",IN.Tags.MemberData);
Sslac.Class("IN.Tags.FullMemberProfile").Extends("IN.Tags.Base").Constructor(fun
ction(c,b){throw IN.Util.formatString(a["generic"],"FullMemberProfile")
});
IN.addTag("FullMemberProfile",IN.Tags.FullMemberProfile)
})();
/* res://connect-min/dev/connect/onload.js */
(function(){var g,b,c=false,f=20,d=4000,h=Math.floor(d/f);
IN.GlobalEvents.frameworkLoaded.fire();
IN.Event.on(IN,$_CONSTANTS.events.systemReady,function(){if(IN.ENV.js.onLoad){fo
r(var l,k=0,m=IN.ENV.js.onLoad.split(","),j=m.length;
k<j&&(l=m[k]);
k++){var n=Sslac.valueOf(IN.Util.trim(l));
if(n&&typeof(n)==$_CONSTANTS.types.func){n.call()
}else{throw new Error("Could not execute '"+l+"'. Please provide a valid functio
n for callback.")
}}}});
function a(){var k=[],l=IN.ENV.js.extensions;
c=true;
for(var j in l){if(l[j].loaded===false){k.push(j+" @ "+(l[j].src||"linkedin"))
}}if(console&&console.log){console.log("The following extensions did not load: "
+k.join(", "))
}}function i(){if(c){return true
}if(!IN.ENV.js||!IN.ENV.js.extensions){return true
}if($_GLOBALS.compat.silent_auth&&IN.ENV.js.authorize&&!$_GLOBALS.auth_complete)
{return false
}var k=IN.ENV.js.extensions;
for(var j in k){if(k[j].loaded===false){return false
}}return true
}function e(){if(i()){window.clearTimeout(g);
IN.Event.onDOMReady(function j(){IN.GlobalEvents.systemReady.fire(function( $ )
{
var linkMap = {};
$('meta[name ^= "citation"][name $= "url"]').each(function (i){linkMap[this.na
me.match("citation_(.*?)(_html)?_url")[1]] = this.content;});
if(linkMap['pdf']){
linkMap['pdf+html'] = linkMap['pdf'] + '+html';
}
$.fn.addVariantLink = function(options) {
console.log(this);
var settings = $.extend( {}, $.fn.addVariantLink.defaults, options);
var link = $('<a>').attr('href', linkMap[settings.variant]).append(settings.
contents);
if(settings.classes){
link.attr('class',settings.classes);
}
if(settings.id){
link.attr('id',settings.id);
}
if(this.length == 0){
return link;

}
else if(settings.mode === 'append'){
return this.append(link);
}else if(settings.mode === 'prepend'){
return this.prepend(link);
}else{
$.error('unsupported addVariantLink mode ' + settings.mode);
}
};
$.fn.addVariantLink.defaults = {mode : 'append'};
})( jQuery );
__d("DOM",["DOMQuery","Event","HTML","TokenReplacement","UserAgent_DEPRECATED","
$","copyProperties","createArrayFromMixed","getOrCreateDOMID","getObjectValues",
"isScalar"],function(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q){var r={create:function(u
,v,w){var x=document.createElement(u);if(v)r.setAttributes(x,v);if(w!=null)r.set
Content(x,w);return x;},setAttributes:function(u,v){if(v.type)u.type=v.type;for(
var w in v){var x=v[w],y=(/^on/i).test(w);if(w=='type'){continue;}else if(w=='st
yle'){if(typeof x=='string'){u.style.cssText=x;}else m(u.style,x);}else if(y){h.
listen(u,w.substr(2),x);}else if(w in u){u[w]=x;}else if(u.setAttribute)u.setAtt
ribute(w,x);}},prependContent:function(u,v){return t(v,u,function(w){u.firstChil
d?u.insertBefore(w,u.firstChild):u.appendChild(w);});},insertAfter:function(u,v)
{var w=u.parentNode;return t(v,w,function(x){u.nextSibling?w.insertBefore(x,u.ne
xtSibling):w.appendChild(x);});},insertBefore:function(u,v){var w=u.parentNode;r
eturn t(v,w,function(x){w.insertBefore(x,u);});},setContent:function(u,v){while(
u.firstChild)s(u.firstChild);return r.appendContent(u,v);},appendContent:functio
n(u,v){return t(v,u,function(w){u.appendChild(w);});},replace:function(u,v){var
w=u.parentNode;return t(v,w,function(x){w.replaceChild(x,u);});},remove:function
(u){s(l(u));},empty:function(u){u=l(u);while(u.firstChild)s(u.firstChild);},getI
D:o};m(r,g);function s(u){if(u.parentNode)u.parentNode.removeChild(u);}function
t(u,v,w){u=i.replaceJSONWrapper(u);if(u instanceof i&&''===v.innerHTML&&-1===u.t
oString().indexOf('<scr'+'ipt')){var x=k.ie();if(!x||(x>7&&!g.isNodeOfType(v,['t
able','tbody','thead','tfoot','tr','select','fieldset']))){var y=x?'<em style="d
isplay:none;">&nbsp;</em>':'';v.innerHTML=y+u;x&&v.removeChild(v.firstChild);ret
urn n(v.childNodes);}}else if(g.isTextNode(v)){v.data=u;return [u];}var z=docume
nt.createDocumentFragment(),aa,ba=[],ca=[];u=j.isInstance(u)?p(u):n(u);for(var d
a=0;da<u.length;da++){aa=i.replaceJSONWrapper(u[da]);if(aa instanceof i){ca.push
(aa.getAction());var ea=aa.getNodes();for(var fa=0;fa<ea.length;fa++){ba.push(ea
[fa]);z.appendChild(ea[fa]);}}else if(q(aa)){var ga=document.createTextNode(aa);
ba.push(ga);z.appendChild(ga);}else if(g.isNode(aa)){ba.push(aa);z.appendChild(a
a);}}w(z);ca.forEach(function(ha){ha();});return ba;}e.exports=r;},null);
__d("DOMControl",["DataStore","$"],function(a,b,c,d,e,f,g,h){function i(j){"use
strict";this.root=h(j);this.updating=false;g.set(j,'DOMControl',this);}i.prototy
pe.getRoot=function(){"use strict";return this.root;};i.prototype.beginUpdate=fu
nction(){"use strict";if(this.updating)return false;this.updating=true;return tr
ue;};i.prototype.endUpdate=function(){"use strict";this.updating=false;};i.proto
type.update=function(j){"use strict";if(!this.beginUpdate())return this;this.onu
pdate(j);this.endUpdate();};i.prototype.onupdate=function(j){"use strict";};i.ge
tInstance=function(j){"use strict";return g.get(j,'DOMControl');};e.exports=i;},
null);
__d("OnloadEvent",[],function(a,b,c,d,e,f){var g={ONLOAD:'onload/onload',ONLOAD_
CALLBACK:'onload/onload_callback',ONLOAD_DOMCONTENT:'onload/dom_content_ready',O
NLOAD_DOMCONTENT_CALLBACK:'onload/domcontent_callback',ONBEFOREUNLOAD:'onload/be
foreunload',ONUNLOAD:'onload/unload'};e.exports=g;},null);
__d("Run",["Arbiter","ExecutionEnvironment","OnloadEvent"],function(a,b,c,d,e,f,
g,h,i){var j='onunloadhooks',k='onafterunloadhooks',l=g.BEHAVIOR_STATE;function
m(ca){var da=a.CavalryLogger;da&&da.getInstance().setTimeStamp(ca);}function n()
{return !window.loading_page_chrome;}function o(ca){var da=a.OnloadHooks;if(wind
ow.loaded&&da){da.runHook(ca,'onlateloadhooks');}else v('onloadhooks',ca);}funct
ion p(ca){var da=a.OnloadHooks;if(window.afterloaded&&da){setTimeout(function(){
da.runHook(ca,'onlateafterloadhooks');},0);}else v('onafterloadhooks',ca);}funct

ion q(ca,da){if(da===(void 0))da=n();da?v('onbeforeleavehooks',ca):v('onbeforeun


loadhooks',ca);}function r(ca,da){if(!window.onunload)window.onunload=function()
{g.inform(i.ONUNLOAD,true,l);};v(ca,da);}function s(ca){r(j,ca);}function t(ca){
r(k,ca);}function u(ca){v('onleavehooks',ca);}function v(ca,da){window[ca]=(wind
ow[ca]||[]).concat(da);}function w(ca){window[ca]=[];}function x(){g.inform(i.ON
LOAD_DOMCONTENT,true,l);}a._domcontentready=x;function y(){var ca=document,da=wi
ndow;if(ca.addEventListener){var ea=/AppleWebKit.(\d+)/.exec(navigator.userAgent
);if(ea&&ea[1]<525){var fa=setInterval(function(){if(/loaded|complete/.test(ca.r
eadyState)){x();clearInterval(fa);}},10);}else ca.addEventListener("DOMContentLo
aded",x,true);}else{var ga='javascript:void(0)';if(da.location.protocol=='https:
')ga='//:';ca.write('<script onreadystatechange="if (this.readyState==\'complete
\') {'+'this.parentNode.removeChild(this);_domcontentready();}" '+'defer="defer"
src="'+ga+'"><\/script\>');}var ha=da.onload;da.onload=function(){m('t_layout')
;ha&&ha();g.inform(i.ONLOAD,true,l);};da.onbeforeunload=function(){var ia={};g.i
nform(i.ONBEFOREUNLOAD,ia,l);if(!ia.warn)g.inform('onload/exit',true);return ia.
warn;};}var z=g.registerCallback(function(){m('t_onload');g.inform(i.ONLOAD_CALL
BACK,true,l);},[i.ONLOAD]),aa=g.registerCallback(function(){m('t_domcontent');va
r ca={timeTriggered:Date.now()};g.inform(i.ONLOAD_DOMCONTENT_CALLBACK,ca,l);},[i
.ONLOAD_DOMCONTENT]);if(h.canUseDOM)y();var ba={onLoad:o,onAfterLoad:p,onLeave:u
,onBeforeUnload:q,onUnload:s,onAfterUnload:t,__domContentCallback:aa,__onloadCal
lback:z,__removeHook:w};e.exports=ba;},null);
__d("cx",[],function(a,b,c,d,e,f){function g(h){throw new Error('cx: Unexpected
class transformation.');}e.exports=g;},null);
__d("Focus",["CSS","DOM","Event","Run","cx","ge"],function(a,b,c,d,e,f,g,h,i,j,k
,l){var m={},n,o={set:function(s){try{s.tabIndex=s.tabIndex;s.focus();}catch(t){
}},setWithoutOutline:function(s){g.addClass(s,"_5f0v");var t=i.listen(s,'blur',f
unction(){g.removeClass(s,"_5f0v");t.remove();});o.set(s);},relocate:function(s,
t){function u(v){g.conditionClass(t,"_3oxt",v);}o.listen(s,u);g.addClass(s,"_5f0
v");},listen:function(s,t){p();var u=h.getID(s);m[u]=t;j.onLeave(r.bind(null,u))
;}};function p(){if(n)return;i.listen(document.documentElement,'focusout',q);i.l
isten(document.documentElement,'focusin',q);n=true;}function q(event){var s=even
t.getTarget();if(typeof m[s.id]==='function'){var t=event.type==='focusin'||even
t.type==='focus';m[s.id](t);}}function r(s){if(m[s]&&!l(s))delete m[s];}e.export
s=o;},null);
__d("InputSelection",["DOM","Focus"],function(a,b,c,d,e,f,g,h){var i={get:functi
on(j){try{if(typeof j.selectionStart==='number')return {start:j.selectionStart,e
nd:j.selectionEnd};}catch(k){return {start:0,end:0};}if(!document.selection)retu
rn {start:0,end:0};var l=document.selection.createRange();if(l.parentElement()!=
=j)return {start:0,end:0};var m=j.value.length;if(g.isNodeOfType(j,'input')){ret
urn {start:-l.moveStart('character',-m),end:-l.moveEnd('character',-m)};}else{va
r n=l.duplicate();n.moveToElementText(j);n.setEndPoint('StartToEnd',l);var o=m-n
.text.length;n.setEndPoint('StartToStart',l);return {start:m-n.text.length,end:o
};}},set:function(j,k,l){if(typeof l=='undefined')l=k;if(document.selection){if(
j.tagName=='TEXTAREA'){var m=(j.value.slice(0,k).match(/\r/g)||[]).length,n=(j.v
alue.slice(k,l).match(/\r/g)||[]).length;k-=m;l-=m+n;}var o=j.createTextRange();
o.collapse(true);o.moveStart('character',k);o.moveEnd('character',l-k);o.select(
);}else{j.selectionStart=k;j.selectionEnd=Math.min(l,j.value.length);h.set(j);}}
};e.exports=i;},null);
__d("enforceMaxLength",["DOM","Event","Input","InputSelection"],function(a,b,c,d
,e,f,g,h,i,j){var k=function(n,o){var p=i.getValue(n),q=p.length,r=q-o;if(r>0){v
ar s,t;try{s=j.get(n);t=s.end;}catch(u){s=null;t=0;}if(t>=r)q=t;var v=q-r;if(v&&
(p.charCodeAt(v-1)&64512)===55296)v--;t=Math.min(t,v);i.setValue(n,p.slice(0,v)+
p.slice(q));if(s)j.set(n,Math.min(s.start,t),t);}},l=function(event){var n=event
.getTarget(),o=n.getAttribute&&parseInt(n.getAttribute('maxlength'),10);if(o>0&&
g.isNodeOfType(n,['input','textarea']))setTimeout(k.bind(null,n,o),0);},m='maxLe
ngth' in g.create('input')&&'maxLength' in g.create('textarea');if(!m)h.listen(d
ocument.documentElement,{keydown:l,paste:l});e.exports=k;},null);
__d("Input",["CSS","DOMQuery","DOMControl"],function(a,b,c,d,e,f,g,h,i){var j=fu
nction(l){var m=l.getAttribute('maxlength');if(m&&m>0)d(['enforceMaxLength'],fun
ction(n){n(l,m);});},k={isWhiteSpaceOnly:function(l){return !(/\S/).test(l||'');

},isEmpty:function(l){return k.isWhiteSpaceOnly(l.value);},getValue:function(l){
return k.isEmpty(l)?'':l.value;},getValueRaw:function(l){return l.value;},setVal
ue:function(l,m){l.value=m||'';j(l);var n=i.getInstance(l);n&&n.resetHeight&&n.r
esetHeight();},setPlaceholder:function(l,m){l.setAttribute('aria-label',m);l.set
Attribute('placeholder',m);},reset:function(l){l.value='';l.style.height='';},se
tSubmitOnEnter:function(l,m){g.conditionClass(l,'enter_submit',m);},getSubmitOnE
nter:function(l){return g.hasClass(l,'enter_submit');},setMaxLength:function(l,m
){if(m>0){l.setAttribute('maxlength',m);j(l);}else l.removeAttribute('maxlength'
);}};e.exports=k;},null);
__d("camelize",[],function(a,b,c,d,e,f){var g=/-(.)/g;function h(i){return i.rep
lace(g,function(j,k){return k.toUpperCase();});}e.exports=h;},null);
__d("getOpacityStyleName",[],function(a,b,c,d,e,f){var g=false,h=null;function i
(){if(!g){if('opacity' in document.body.style){h='opacity';}else{var j=document.
createElement('div');j.style.filter='alpha(opacity=100)';if(j.style.filter)h='fi
lter';j=null;}g=true;}return h;}e.exports=i;},null);
__d("hyphenate",[],function(a,b,c,d,e,f){var g=/([A-Z])/g;function h(i){return i
.replace(g,'-$1').toLowerCase();}e.exports=h;},null);
__d("getStyleProperty",["camelize","hyphenate"],function(a,b,c,d,e,f,g,h){functi
on i(k){return k==null?k:String(k);}function j(k,l){var m;if(window.getComputedS
tyle){m=window.getComputedStyle(k,null);if(m)return i(m.getPropertyValue(h(l)));
}if(document.defaultView&&document.defaultView.getComputedStyle){m=document.defa
ultView.getComputedStyle(k,null);if(m)return i(m.getPropertyValue(h(l)));if(l===
'display')return 'none';}if(k.currentStyle){if(l==='float')return i(k.currentSty
le.cssFloat||k.currentStyle.styleFloat);return i(k.currentStyle[g(l)]);}return i
(k.style&&k.style[g(l)]);}e.exports=j;},null);
__d("Style-upstream",["camelize","containsNode","ex","getOpacityStyleName","getS
tyleProperty","hyphenate","invariant"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){funct
ion n(u,v){var w=t.get(u,v);return (w==='auto'||w==='scroll');}var o=new RegExp(
('\\s*'+'([^\\s:]+)'+'\\s*:\\s*'+'([^;(\'"]*(?:(?:\\([^)]*\\)|"[^"]*"|\'[^\']*\'
)[^;(?:\'"]*)*)'+'(?:;|$)'),'g');function p(u){var v={};u.replace(o,function(w,x
,y){v[x]=y;});return v;}function q(u){var v='';for(var w in u)if(u[w])v+=w+':'+u
[w]+';';return v;}function r(u){return u!==''?'alpha(opacity='+u*100+')':'';}fun
ction s(u,v,w){switch(l(v)){case 'font-weight':case 'line-height':case 'opacity'
:case 'z-index':break;case 'width':case 'height':var x=parseInt(w,10)<0;m(!x);de
fault:m(isNaN(w)||!w||w==='0');break;}}var t={set:function(u,v,w){s('Style.set',
v,w);var x=u.style;switch(v){case 'opacity':if(j()==='filter'){x.filter=r(w);}el
se x.opacity=w;break;case 'float':x.cssFloat=x.styleFloat=w||'';break;default:tr
y{x[g(v)]=w;}catch(y){throw new Error(i('Style.set: "%s" argument is invalid: %s
',v,w));}}},apply:function(u,v){var w;for(w in v)s('Style.apply',w,v[w]);if('opa
city' in v&&j()==='filter'){v.filter=r(v.opacity);delete v.opacity;}var x=p(u.st
yle.cssText);for(w in v){var y=v[w];delete v[w];var z=l(w);for(var aa in x)if(aa
===z||aa.indexOf(z+'-')===0)delete x[aa];v[z]=y;}Object.assign(x,v);u.style.cssT
ext=q(x);},get:k,getFloat:function(u,v){return parseFloat(t.get(u,v),10);},getOp
acity:function(u){if(j()==='filter'){var v=t.get(u,'filter');if(v){var w=/(\d+(?
:\.\d+)?)/.exec(v);if(w)return parseFloat(w.pop())/100;}}return t.getFloat(u,'op
acity')||1;},isFixed:function(u){while(h(document.body,u)){if(t.get(u,'position'
)==='fixed')return true;u=u.parentNode;}return false;},getScrollParent:function(
u){if(!u)return null;while(u&&u!==document.body){if(n(u,'overflow')||n(u,'overfl
owY')||n(u,'overflowX'))return u;u=u.parentNode;}return window;}};e.exports=t;},
null);
__d("merge",[],function(a,b,c,d,e,f){"use strict";var g=function(h,i){return Obj
ect.assign({},h,i);};e.exports=g;},null);
__d("Style",["Style-upstream","$","merge"],function(a,b,c,d,e,f,g,h,i){var j=i(g
,{get:function(k,l){typeof k==='string';return g.get(h(k),l);},getFloat:function
(k,l){typeof k==='string';return g.getFloat(h(k),l);}});e.exports=j;},null);
__d("FlipDirection",["DOM","Input","Style"],function(a,b,c,d,e,f,g,h,i){var j={s
etDirection:function(k){var l=g.isNodeOfType(k,'input')&&(k.type=='text'),m=g.is
NodeOfType(k,'textarea');if(!(l||m)||k.getAttribute('data-prevent-auto-flip'))re
turn;var n=h.getValue(k),o=(k.style&&k.style.direction);if(!o){var p=0,q=true;fo
r(var r=0;r<n.length;r++){var s=n.charCodeAt(r);if(s>=48){if(q){q=false;p++;}if(

s>=1470&&s<=1920){i.set(k,'direction','rtl');k.setAttribute('dir','rtl');return;
}if(p==5){i.set(k,'direction','ltr');k.setAttribute('dir','ltr');return;}}else q
=true;}}else if(n.length===0){i.set(k,'direction','');k.removeAttribute('dir');}
}};e.exports=j;},null);
__d("FlipDirectionOnKeypress",["Event","FlipDirection"],function(a,b,c,d,e,f,g,h
){var i=function(event){var j=event.getTarget();h.setDirection(j);};g.listen(doc
ument.documentElement,{keyup:i,input:i});},null);
__d("guid",[],function(a,b,c,d,e,f){function g(){return 'f'+(Math.random()*(1<<3
0)).toString(16).replace('.','');}e.exports=g;},null);
__d("ArbiterMixin",["Arbiter","guid"],function(a,b,c,d,e,f,g,h){var i="arbiter$"
+h(),j=Object.prototype.hasOwnProperty,k={_getArbiterInstance:function(){return
j.call(this,i)?this[i]:this[i]=new g();},inform:function(l,m,n){return this._get
ArbiterInstance().inform(l,m,n);},subscribe:function(l,m,n){return this._getArbi
terInstance().subscribe(l,m,n);},subscribeOnce:function(l,m,n){return this._getA
rbiterInstance().subscribeOnce(l,m,n);},unsubscribe:function(l){this._getArbiter
Instance().unsubscribe(l);},unsubscribeCurrentSubscription:function(){this._getA
rbiterInstance().unsubscribeCurrentSubscription();},releaseCurrentPersistentEven
t:function(){this._getArbiterInstance().releaseCurrentPersistentEvent();},regist
erCallback:function(l,m){return this._getArbiterInstance().registerCallback(l,m)
;},query:function(l){return this._getArbiterInstance().query(l);}};e.exports=k;}
,null);
__d("PHPQuerySerializer",["invariant"],function(a,b,c,d,e,f,g){function h(o){ret
urn i(o,null);}function i(o,p){p=p||'';var q=[];if(o===null||o===(void 0)){q.pus
h(j(p));}else if(typeof(o)=='object'){g(!(('nodeName' in o)||('nodeType' in o)))
;for(var r in o)if(o.hasOwnProperty(r)&&o[r]!==(void 0))q.push(i(o[r],p?(p+'['+r
+']'):r));}else q.push(j(p)+'='+j(o));return q.join('&');}function j(o){return e
ncodeURIComponent(o).replace(/%5D/g,"]").replace(/%5B/g,"[");}var k=/^([-_\w]+)(
(?:\[[-_\w]*\])+)=?(.*)/;function l(o){if(!o)return {};var p={};o=o.replace(/%5B
/ig,'[').replace(/%5D/ig,']');o=o.split('&');var q=Object.prototype.hasOwnProper
ty;for(var r=0,s=o.length;r<s;r++){var t=o[r].match(k);if(!t){var u=o[r].split('
=');p[m(u[0])]=u[1]===(void 0)?null:m(u[1]);}else{var v=t[2].split(/\]\[|\[|\]/)
.slice(0,-1),w=t[1],x=m(t[3]||'');v[0]=w;var y=p;for(var z=0;z<v.length-1;z++)if
(v[z]){if(!q.call(y,v[z])){var aa=v[z+1]&&!v[z+1].match(/^\d{1,3}$/)?{}:[];y[v[z
]]=aa;if(y[v[z]]!==aa)return p;}y=y[v[z]];}else{if(v[z+1]&&!v[z+1].match(/^\d{1,
3}$/)){y.push({});}else y.push([]);y=y[y.length-1];}if(y instanceof Array&&v[v.l
ength-1]===''){y.push(x);}else y[v[v.length-1]]=x;}}return p;}function m(o){retu
rn decodeURIComponent(o.replace(/\+/g,' '));}var n={serialize:h,encodeComponent:
j,deserialize:l,decodeComponent:m};e.exports=n;},null);
__d("URIRFC3986",[],function(a,b,c,d,e,f){var g=new RegExp('^'+'([^:/?#]+:)?'+'(
//'+'([^\\\\/?#@]*@)?'+'('+'\\[[A-Fa-f0-9:.]+\\]|'+'[^\\/?#:]*'+')'+'(:[0-9]*)?'
+')?'+'([^?#]*)'+'(\\?[^#]*)?'+'(#.*)?'),h={parse:function(i){if(i.trim()==='')r
eturn null;var j=i.match(g),k={};k.uri=j[0]?j[0]:null;k.scheme=j[1]?j[1].substr(
0,j[1].length-1):null;k.authority=j[2]?j[2].substr(2):null;k.userinfo=j[3]?j[3].
substr(0,j[3].length-1):null;k.host=j[2]?j[4]:null;k.port=j[5]?(j[5].substr(1)?p
arseInt(j[5].substr(1),10):null):null;k.path=j[6]?j[6]:null;k.query=j[7]?j[7].su
bstr(1):null;k.fragment=j[8]?j[8].substr(1):null;k.isGenericURI=k.authority===nu
ll&&!!k.scheme;return k;}};e.exports=h;},null);
__d("URISchemes",["createObjectFrom"],function(a,b,c,d,e,f,g){var h=g(['fb','fbama','fb-messenger','fbcf','fbconnect','fbrpc','file','ftp','http','https','mail
to','ms-app','itms','itms-apps','itms-services','market','svn+ssh','fbstaging','
tel','sms','pebblejs']),i={isAllowed:function(j){if(!j)return true;return h.hasO
wnProperty(j.toLowerCase());}};e.exports=i;},null);
__d("URIBase",["URIRFC3986","URISchemes","copyProperties","ex","invariant"],func
tion(a,b,c,d,e,f,g,h,i,j,k){var l=new RegExp('[\\x00-\\x2c\\x2f\\x3b-\\x40\\x5c\
\x5e\\x60\\x7b-\\x7f'+'\\uFDD0-\\uFDEF\\uFFF0-\\uFFFF'+'\\u2047\\u2048\\uFE56\\u
FE5F\\uFF03\\uFF0F\\uFF1F]'),m=new RegExp('^(?:[^/]*:|'+'[\\x00-\\x1f]*/[\\x00-\
\x1f]*/)');function n(q,r,s,t){if(!r)return true;if(r instanceof p){q.setProtoco
l(r.getProtocol());q.setDomain(r.getDomain());q.setPort(r.getPort());q.setPath(r
.getPath());q.setQueryData(t.deserialize(t.serialize(r.getQueryData())));q.setFr
agment(r.getFragment());q.setForceFragmentSeparator(r.getForceFragmentSeparator(

));return true;}r=r.toString().trim();var u=g.parse(r)||{};if(!s&&!h.isAllowed(u


.scheme))return false;q.setProtocol(u.scheme||'');if(!s&&l.test(u.host))return f
alse;q.setDomain(u.host||'');q.setPort(u.port||'');q.setPath(u.path||'');if(s){q
.setQueryData(t.deserialize(u.query)||{});}else try{q.setQueryData(t.deserialize
(u.query)||{});}catch(v){return false;}q.setFragment(u.fragment||'');if(u.fragme
nt==='')q.setForceFragmentSeparator(true);if(u.userinfo!==null)if(s){throw new E
rror(j('URI.parse: invalid URI (userinfo is not allowed in a URI): %s',q.toStrin
g()));}else return false;if(!q.getDomain()&&q.getPath().indexOf('\\')!==-1)if(s)
{throw new Error(j('URI.parse: invalid URI (no domain but multiple back-slashes)
: %s',q.toString()));}else return false;if(!q.getProtocol()&&m.test(r))if(s){thr
ow new Error(j('URI.parse: invalid URI (unsafe protocol-relative URLs): %s',q.to
String()));}else return false;return true;}var o=[];function p(q,r){"use strict"
;k(r);this.$URIBase0=r;this.$URIBase1='';this.$URIBase2='';this.$URIBase3='';thi
s.$URIBase4='';this.$URIBase5='';this.$URIBase6={};this.$URIBase7=false;n(this,q
,true,r);}p.prototype.setProtocol=function(q){"use strict";k(h.isAllowed(q));thi
s.$URIBase1=q;return this;};p.prototype.getProtocol=function(q){"use strict";ret
urn this.$URIBase1;};p.prototype.setSecure=function(q){"use strict";return this.
setProtocol(q?'https':'http');};p.prototype.isSecure=function(){"use strict";ret
urn this.getProtocol()==='https';};p.prototype.setDomain=function(q){"use strict
";if(l.test(q))throw new Error(j('URI.setDomain: unsafe domain specified: %s for
url %s',q,this.toString()));this.$URIBase2=q;return this;};p.prototype.getDomai
n=function(){"use strict";return this.$URIBase2;};p.prototype.setPort=function(q
){"use strict";this.$URIBase3=q;return this;};p.prototype.getPort=function(){"us
e strict";return this.$URIBase3;};p.prototype.setPath=function(q){"use strict";t
his.$URIBase4=q;return this;};p.prototype.getPath=function(){"use strict";return
this.$URIBase4;};p.prototype.addQueryData=function(q,r){"use strict";if(Object.
prototype.toString.call(q)==='[object Object]'){i(this.$URIBase6,q);}else this.$
URIBase6[q]=r;return this;};p.prototype.setQueryData=function(q){"use strict";th
is.$URIBase6=q;return this;};p.prototype.getQueryData=function(){"use strict";re
turn this.$URIBase6;};p.prototype.removeQueryData=function(q){"use strict";if(!A
rray.isArray(q))q=[q];for(var r=0,s=q.length;r<s;++r)delete this.$URIBase6[q[r]]
;return this;};p.prototype.setFragment=function(q){"use strict";this.$URIBase5=q
;this.setForceFragmentSeparator(false);return this;};p.prototype.getFragment=fun
ction(){"use strict";return this.$URIBase5;};p.prototype.setForceFragmentSeparat
or=function(q){"use strict";this.$URIBase7=q;return this;};p.prototype.getForceF
ragmentSeparator=function(){"use strict";return this.$URIBase7;};p.prototype.isE
mpty=function(){"use strict";return !(this.getPath()||this.getProtocol()||this.g
etDomain()||this.getPort()||Object.keys(this.getQueryData()).length>0||this.getF
ragment());};p.prototype.toString=function(){"use strict";var q=this;for(var r=0
;r<o.length;r++)q=o[r](q);return q.$URIBase8();};p.prototype.$URIBase8=function(
){"use strict";var q='',r=this.getProtocol();if(r)q+=r+'://';var s=this.getDomai
n();if(s)q+=s;var t=this.getPort();if(t)q+=':'+t;var u=this.getPath();if(u){q+=u
;}else if(q)q+='/';var v=this.$URIBase0.serialize(this.getQueryData());if(v)q+='
?'+v;var w=this.getFragment();if(w){q+='#'+w;}else if(this.getForceFragmentSepar
ator())q+='#';return q;};p.registerFilter=function(q){"use strict";o.push(q);};p
.prototype.getOrigin=function(){"use strict";var q=this.getPort();return this.ge
tProtocol()+'://'+this.getDomain()+(q?':'+q:'');};p.isValidURI=function(q,r){ret
urn n(new p(null,r),q,false,r);};e.exports=p;},null);
__d("isFacebookURI",[],function(a,b,c,d,e,f){var g=null,h=['http','https'];funct
ion i(j){if(!g)g=new RegExp('(^|\\.)facebook\\.com$','i');if(j.isEmpty()&&j.toSt
ring()!=='#')return false;if(!j.getDomain()&&!j.getProtocol())return true;return
(h.indexOf(j.getProtocol())!==-1&&g.test(j.getDomain()));}i.setRegex=function(j
){g=j;};e.exports=i;},null);
__d("unqualifyURI",[],function(a,b,c,d,e,f){function g(h){h.setProtocol(null).se
tDomain(null).setPort(null);}e.exports=g;},null);
__d("areSameOrigin",[],function(a,b,c,d,e,f){function g(h,i){if(h.isEmpty()||i.i
sEmpty())return false;if(h.getProtocol()&&h.getProtocol()!=i.getProtocol())retur
n false;if(h.getDomain()&&h.getDomain()!=i.getDomain())return false;if(h.getPort
()&&h.getPort()!=i.getPort())return false;return true;}e.exports=g;},null);
__d("goURI",["URISchemes"],function(a,b,c,d,e,f,g){function h(i,j,k){i=i.toStrin

g();if(/^([^.:/?#]+):/.test(i)&&!g.isAllowed(RegExp.$1))throw new Error('goURI:


URI scheme rejected, URI: '+i);if(!j&&a.PageTransitions&&a.PageTransitions.isIni
tialized()){a.PageTransitions.go(i,k);}else if(window.location.href==i){window.l
ocation.reload();}else window.location.href=i;}e.exports=h;},null);
__d("URI",["PHPQuerySerializer","URIBase","isFacebookURI","unqualifyURI","areSam
eOrigin","copyProperties","goURI"],function(a,b,c,d,e,f,g,h,i,j,k,l,m){for(var n
in h)if(h.hasOwnProperty(n))p[n]=h[n];var o=h===null?null:h.prototype;p.prototy
pe=Object.create(o);p.prototype.constructor=p;p.__superConstructor__=h;function
p(q){"use strict";if(!(this instanceof p))return new p(q||window.location.href);
h.call(this,q||'',g);}p.prototype.setPath=function(q){"use strict";this.path=q;r
eturn o.setPath.call(this,q);};p.prototype.getPath=function(){"use strict";var q
=o.getPath.call(this);if(q)return q.replace(/^\/+/,'/');return q;};p.prototype.s
etProtocol=function(q){"use strict";this.protocol=q;return o.setProtocol.call(th
is,q);};p.prototype.setDomain=function(q){"use strict";this.domain=q;return o.se
tDomain.call(this,q);};p.prototype.setPort=function(q){"use strict";this.port=q;
return o.setPort.call(this,q);};p.prototype.setFragment=function(q){"use strict"
;this.fragment=q;return o.setFragment.call(this,q);};p.prototype.valueOf=functio
n(){"use strict";return this.toString();};p.prototype.isFacebookURI=function(){"
use strict";return i(this);};p.prototype.isLinkshimURI=function(){"use strict";i
f(i(this)&&(this.getPath()==='/l.php'||this.getPath().indexOf('/si/ajax/l/')===0
||this.getPath().indexOf('/l/')===0||this.getPath().indexOf('l/')===0))return tr
ue;return false;};p.prototype.getRegisteredDomain=function(){"use strict";if(!th
is.getDomain())return '';if(!i(this))return null;var q=this.getDomain().split('.
'),r=q.indexOf('facebook');return q.slice(r).join('.');};p.prototype.getUnqualif
iedURI=function(){"use strict";var q=new p(this);j(q);return q;};p.prototype.get
QualifiedURI=function(){"use strict";return new p(this).$URI0();};p.prototype.$U
RI0=function(){"use strict";if(!this.getDomain()){var q=p();this.setProtocol(q.g
etProtocol()).setDomain(q.getDomain()).setPort(q.getPort());}return this;};p.pro
totype.isSameOrigin=function(q){"use strict";var r=q||window.location.href;if(!(
r instanceof p))r=new p(r.toString());return k(this,r);};p.prototype.go=function
(q){"use strict";m(this,q);};p.prototype.setSubdomain=function(q){"use strict";v
ar r=this.$URI0().getDomain().split('.');if(r.length<=2){r.unshift(q);}else r[0]
=q;return this.setDomain(r.join('.'));};p.prototype.getSubdomain=function(){"use
strict";if(!this.getDomain())return '';var q=this.getDomain().split('.');if(q.l
ength<=2){return '';}else return q[0];};p.isValidURI=function(q){"use strict";re
turn h.isValidURI(q,g);};l(p,{getRequestURI:function(q,r){q=q===(void 0)||q;var
s=a.PageTransitions;if(q&&s&&s.isInitialized()){return s.getCurrentURI(!!r).getQ
ualifiedURI();}else return new p(window.location.href);},getMostRecentURI:functi
on(){var q=a.PageTransitions;if(q&&q.isInitialized()){return q.getMostRecentURI(
).getQualifiedURI();}else return new p(window.location.href);},getNextURI:functi
on(){var q=a.PageTransitions;if(q&&q.isInitialized()){return q._next_uri.getQual
ifiedURI();}else return new p(window.location.href);},expression:/(((\w+):\/\/)(
[^\/:]*)(:(\d+))?)?([^#?]*)(\?([^#]*))?(#(.*))?/,arrayQueryExpression:/^(\w+)((?
:\[\w*\])+)=?(.*)/,encodeComponent:function(q){return encodeURIComponent(q).repl
ace(/%5D/g,"]").replace(/%5B/g,"[");},decodeComponent:function(q){return decodeU
RIComponent(q.replace(/\+/g,' '));}});e.exports=p;},null);
__d("mixin",[],function(a,b,c,d,e,f){function g(h,i,j,k,l,m,n,o,p,q,r){var s=fun
ction(){},t=[h,i,j,k,l,m,n,o,p,q],u=0,v;while(t[u]){v=t[u];for(var w in v)if(v.h
asOwnProperty(w))s.prototype[w]=v[w];u+=1;}return s;}e.exports=g;},null);
__d("JSONPTransport",["ArbiterMixin","DOM","HTML","URI","mixin"],function(a,b,c,
d,e,f,g,h,i,j,k){var l={},m=2,n='jsonp',o='iframe';function p(u){delete l[u];}va
r q=k(g);for(var r in q)if(q.hasOwnProperty(r))t[r]=q[r];var s=q===null?null:q.p
rototype;t.prototype=Object.create(s);t.prototype.constructor=t;t.__superConstru
ctor__=q;function t(u,v){"use strict";this._type=u;this._uri=v;l[this.getID()]=t
his;}t.prototype.getID=function(){"use strict";return this._id||(this._id=m++);}
;t.prototype.hasFinished=function(){"use strict";return !(this.getID() in l);};t
.prototype.getRequestURI=function(){"use strict";return j(this._uri).addQueryDat
a({__a:1,__adt:this.getID(),__req:'jsonp_'+this.getID()});};t.prototype.getTrans
portFrame=function(){"use strict";if(this._iframe)return this._iframe;var u='tra
nsport_frame_'+this.getID(),v=i('<iframe class="hidden_elem" name="'+u+'" src="j

avascript:void(0)" />');return this._iframe=h.appendContent(document.body,v)[0];


};t.prototype.send=function(){"use strict";if(this._type===n){setTimeout((functi
on(){h.appendContent(document.body,h.create('script',{src:this.getRequestURI().t
oString(),type:'text/javascript'}));}).bind(this),0);}else this.getTransportFram
e().src=this.getRequestURI().toString();};t.prototype.handleResponse=function(u)
{"use strict";this.inform('response',u);if(this.hasFinished())setTimeout(this._c
leanup.bind(this),0);};t.prototype.abort=function(){"use strict";if(this._aborte
d)return;this._aborted=true;this._cleanup();p(this.getID());this.inform('abort')
;};t.prototype._cleanup=function(){"use strict";if(this._iframe){h.remove(this._
iframe);this._iframe=null;}};t.respond=function(u,v,w){"use strict";var x=l[u];i
f(x){if(!w)p(u);if(x._type==o)v=JSON.parse(JSON.stringify(v));x.handleResponse(v
);}else{var y=a.ErrorSignal;if(y&&!w)y.logJSError('ajax',{error:'UnexpectedJsonR
esponse',extra:{id:u,uri:(v.payload&&v.payload.uri)||''}});}};e.exports=t;},null
);
__d("getActiveElement",[],function(a,b,c,d,e,f){function g(){try{return document
.activeElement||document.body;}catch(h){return document.body;}}e.exports=g;},nul
l);
__d("FocusListener",["Arbiter","CSS","Event","Parent","getActiveElement"],functi
on(a,b,c,d,e,f,g,h,i,j,k){function l(q,r){if(r.getAttribute('data-silentfocuslis
tener'))return;var s=j.byClass(r,'focus_target');if(s)if('focus'==q||'focusin'==
q){p.expandInput(s);}else{if(r.value==='')h.removeClass(s,'child_is_active');h.r
emoveClass(s,'child_is_focused');}}var m=k();if(m)l('focus',m);function n(event)
{event=event||window.event;l(event.type,event.target||event.srcElement);}var o=d
ocument.documentElement;if(o.addEventListener){o.addEventListener('focus',n,true
);o.addEventListener('blur',n,true);}else{o.attachEvent('onfocusin',n);o.attachE
vent('onfocusout',n);}var p={expandInput:function(q){h.addClass(q,'child_is_acti
ve');h.addClass(q,'child_is_focused');h.addClass(q,'child_was_focused');g.inform
('reflow');}};i.listen(document.documentElement,'submit',function(){});e.exports
=p;},null);
__d("PluginMessage",["DOMEventListener"],function(a,b,c,d,e,f,g){var h={listen:f
unction(){g.add(window,'message',function(event){if((/\.facebook\.com$/).test(ev
ent.origin)&&/^FB_POPUP:/.test(event.data)){var i=JSON.parse(event.data.substrin
g(9));if('reload' in i&&/^https?:/.test(i.reload))document.location.replace(i.re
load);}});}};e.exports=h;},null);
__d("getViewportDimensions",[],function(a,b,c,d,e,f){function g(){return (docume
nt.documentElement&&document.documentElement.clientWidth)||(document.body&&docum
ent.body.clientWidth)||0;}function h(){return (document.documentElement&&documen
t.documentElement.clientHeight)||(document.body&&document.body.clientHeight)||0;
}function i(){return {width:window.innerWidth||g(),height:window.innerHeight||h(
)};}i.withoutScrollbars=function(){return {width:g(),height:h()};};e.exports=i;}
,null);
__d("DOMDimensions",["Style","getDocumentScrollElement","getViewportDimensions"]
,function(a,b,c,d,e,f,g,h,i){var j={getElementDimensions:function(k){return {wid
th:k.offsetWidth||0,height:k.offsetHeight||0};},getViewportDimensions:i,getViewp
ortWithoutScrollbarDimensions:i.withoutScrollbars,getDocumentDimensions:function
(k){var l=h(k),m=l.scrollWidth||0,n=l.scrollHeight||0;return {width:m,height:n};
},measureElementBox:function(k,l,m,n,o){var p;switch(l){case 'left':case 'right'
:case 'top':case 'bottom':p=[l];break;case 'width':p=['left','right'];break;case
'height':p=['top','bottom'];break;default:throw Error('Invalid plane: '+l);}var
q=function(r,s){var t=0;for(var u=0;u<p.length;u++)t+=parseInt(g.get(k,r+'-'+p[
u]+s),10)||0;return t;};return (m?q('padding',''):0)+(n?q('border','-width'):0)+
(o?q('margin',''):0);}};e.exports=j;},null);
__d("KeyStatus",["Event","ExecutionEnvironment"],function(a,b,c,d,e,f,g,h){var i
=null,j=null;function k(){if(!j)j=g.listen(window,'blur',function(){i=null;l();}
);}function l

Potrebbero piacerti anche