/* -*- Engage Auth Widget -*- Copyright (c) 2012, Janrain, Inc. All rights reserved. Version: 2013.bergamot_widgets_332 */ "object"!==typeof window.janrain&&(window.janrain={});janrain.apps={}; janrain.apps=function(){var eb,Na,Oa,ja,ba,Ha,Ia;function Za(a){janrain.ready?a():document.addEventListener?document.addEventListener("DOMContentLoaded",a,!1):window.attachEvent("onload",a)}function Lb(){var a;a="http:"===document.location.protocol?"http://cdn.quilt.janrain.com/2.2.9/":"https://d3hmp0045zy3cs.cloudfront.net/2.2.9/";if(janrain.settings.capture&&janrain.settings.capture.quiltVersion){a=a.split("/");if("cdn.quilt.janrain.com"===a[2]||"d3hmp0045zy3cs.cloudfront.net"===a[2])a[a.length- 2]=janrain.settings.capture.quiltVersion;a=a.join("/")}return a}function ca(a){function b(w){var q=a(w);g&&0===w%g&&s.error(e);q||(w';document.body&&document.body.appendChild(B);d=document.getElementById(a)}else d=document.createElement("iframe"), d.setAttribute("name",a),d.id=a,d.setAttribute("src",b),d.style.display="none",document.body&&document.body.appendChild(d);"function"===typeof c&&c();return d}function V(a){for(var b="",c=0;cMath.round((new Date(g)).getTime()/1E3)?(d=b,a(),"function"===typeof c&&c(!1)):"function"=== typeof c&&c(e):(new E).getCookie(b+"_session")?"function"===typeof c&&c(e):(d=b,a())}):"function"===typeof c&&c(e):"function"===typeof c&&c(!1)});else if(j=i.getItem(b),e=i.getItem(b+"_Expires"),j){if(!g||!(e&&Math.round((new Date).getTime()/1E3)>Math.round((new Date(e)).getTime()/1E3))&&(e||(new E).getCookie(b+"_session")))return j;d=b;a()}else return!1;else{e=document.cookie.split(";");f=e.length;for(var la=0;lac&&(c=0);c>a&&(c=a);return c}function Ob(a,b){if(f&&(9>=f||document.documentMode&&9>=document.documentMode))return a.style.backgroundImage= "url('"+Eb("rel/img/c7a91677d94f4a79e1b26c8ceb31af82.png")+"')",!0;var c;if(c=aa()){a:{if((c=M)&&aa(c))if((c=c.match(/ Version\/(\d)[\d\.]+ /))&&c[1]){c=1*c[1];break a}c=0}c=4>=c}if(c||ma.getMobileDevice()){var d=c="",e="",g=b.split(","),Y={top:"left top, left bottom",right:"right top, right bottom",bottom:"left bottom, left top",left:"left top, left bottom"};g[0]&&Y[g[0]]&&(c=Y[g[0]]);g[1]&&(d="from("+g[1]+")");g[g.length-1]&&(e="to("+g[g.length-1]+")");a.style.backgroundImage="-webkit-gradient(linear,"+ c+","+d+","+e+")"}a.style.backgroundImage="-moz-linear-gradient("+b+")";a.style.backgroundImage="-webkit-linear-gradient("+b+")";a.style.backgroundImage="-ms-linear-gradient("+b+")";a.style.backgroundImage="-o-linear-gradient("+b+")";a.style.backgroundImage="linear-gradient("+b+")"}function na(a,b,c,d){var e=hb(c),g=hb(c,d);if(c=Zb(c))c.a=d,g="rgba("+c.r+", "+c.g+", "+c.b+", "+c.a+")";if(0=f||f&&H)return!1;a.style.backgroundColor=g;a.style.padding= b+"px"}else a.style.backgroundColor="",a.style.padding="0px"}function Zb(a){var b={};if("string"!==typeof a||!a)return!1;a=a.replace(/\s+/g,"");a=a.replace(/,{2,}/g,",");a=a.replace(/[^\d.,]/g,"");a=a.split(",");if(3>a.length||4b.protocol.length||""===b.host||0===b.hostname.length)return!1;e=""!==b.port&&"0"!==b.port&&"21"!==b.port&&"80"!==b.port&&"443"!==b.port;d="/"!==b.pathname.charAt(0);c=-1b.indexOf(d[j]))return e|| r.log(d+" is not within the valid range, using default value instead"),c;return d}if("url"===a){if("string"!==typeof d)return c;d=d.trim();if(0===d.length)return c;if(j=$b(d))return j;e||r.log(d+" failed url validation, please double check the url.");return d}if("text"===a){if(b){if(0<=b.indexOf(d))return d;e||r.log('Value of "'+d+'" for '+arguments.callee.caller.name+' is not a valid value, using default value of "'+c+'" instead');return c}return g.test(d)?d:c}if("usertext"===a){if("string"!==typeof d&& "number"!==typeof d)return c;if(L(b)){if(1===b.length){if(d.length<=b[0])return d;e||r.log(d+" is too long, using default value instead");return c}if(2===b.length){if(d.length<=b[1]&&d.length>=b[0])return d;e||r.log(d+" is not within the valid range, using default value instead");return c}e||r.log("usertext range is invalid, using default value instead");return c}return d}"string"===typeof d&&0==d.length&&(d=" ");if(!g.test(d))return e||r.log(d+" contains invalid character(s)"),c;if("boolean"===a){if("boolean"=== typeof d)return d;e||r.log(d+" is wrong type, must be boolean, using default value instead");return c}if("text"===a)return d;if("number"===a){if(isNaN(parseInt(d)))return e||r.log(d+" is wrong type, must be a valid number"),c;d=parseFloat(d)}if("color"===a){d&&(d=d.trim());if("transparent"===d||f.test(d))return d;e||r.log('Value of "'+d+'" for '+arguments.callee.caller.name+' is not a valid value, using default value of "'+c+'" instead');return c}if(typeof d!=a&&"color"!=a)return e||r.log(d+" for "+ arguments.callee.caller.name+" is "+typeof d+" expected "+a),c;if("object"===typeof b&&"string"===a){if(0<=b.indexOf(d))return d;e||r.log('Value of "'+d+'" for '+arguments.callee.caller.name+' is not a valid value, using default value of "'+c+'" instead');return c}if("object"===typeof b&&"number"===a){2===b.length?(g=b[0],f=b[1]):(g=b.shift(),f=b.pop(),j=b);if(df)return e||r.log("Value of "+d+" for "+arguments.callee.caller.name+" is above maximum of "+f+", using maximum value of "+f+" instead"),f;if(j&&"number"===typeof j.indexOf(d)||d==g||d==f)return d;return j?(e||r.log("Value of "+d+" for "+arguments.callee.caller.name+" is not a valid value, using default value of "+c+" instead"),c):d}return 0!=d&&!d?c:d}function mb(a){for(var b=mb.options,a=b.parser[b.strictMode?"strict":"loose"].exec(a),c={},d=14;d--;)c[b.key[d]]=a[d]||"";c[b.q.name]={};c[b.key[12]].replace(b.q.parser, function(a,d,e){d&&(c[b.q.name][d]=e)});return c}function ac(a,b){function c(a){ka=!0;"undefined"!==typeof w&&clearTimeout(w);if("string"===typeof a)return"function"===typeof j&&j(a),!0;if("object"===typeof a||"undefined"===typeof a)return"object"===typeof a&&"error"===a.type?"function"===typeof j&&j(a):"function"===typeof e&&e(),!0}function d(){ca(function(){return ka}).setDelay(50).setMaxAttempts(g).setFailCallback(function(){s.warn("Polling for script loader failed. src: "+a);c("Load Timeout Error")}).start()} var e=b,g=200,f=!1,j,w,q=document.createElement("script"),Z=document.getElementsByTagName("script")[0],ka=!1;q.src=a;q.setAttribute("type","text/javascript");q.onload=q.onerror=q.onreadystatechange=function(a){!ka&&(!this.readyState||"loaded"===this.readyState||"complete"===this.readyState)&&c(a)};return{setTimeoutCallback:function(a){f=!0;j=a;return this},setCallback:function(a){e=a;return this},setTimeoutLimit:function(a){g=a;return this},load:function(){Z.parentNode.insertBefore(q,Z);f&&d()}}} function da(a,b){ac(a,b).load()}function Pb(a,b,c){function d(c){cssNotFound=!1;"function"===typeof b&&b();var d=janrain.events.onCssLoad,c={source:a,noload:c,save:!0};d.fire(c);d.permaArgs||(d.permaArgs=[]);d.permaArgs.push(c)}function e(){ca(function(){for(w=j.length;0<=--w;)if(j[w].href===f.href)return d(),!0;return!1}).setDelay(50).setMaxAttempts(200).setFailCallback(function(){s.warn("Dynamic stylesheet poll check failed.");d(!0)}).start()}function g(){ca(function(){d();return!0}).setDelay(50).setMaxAttempts(200).setFailCallback(function(){s.warn("Dynamic stylesheet poll check failed.")}).start()} if(!L(ea)?0:-1=document.body.scrollTop?document.documentElement.scrollTop:document.body.scrollTop,c=document.documentElement.scrollLeft>=document.body.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft,d=Sa(),g=a.style&&a.style.width?parseInt(a.style.width):a.offsetWidth?parseInt(a.offsetWidth):0,f=a.style&&a.style.height?parseInt(a.style.height): a.offsetHeight?parseInt(a.offsetHeight):0,f=d.height-f,d=d.width-g,b=b+f/2,c=c+d/2;la()&&(0>f&&(document.documentElement.scrollTop=0,document.body.scrollTop=0,b=10),0>d&&(document.documentElement.scrollLeft=0,c=document.body.scrollLeft=0),a.style.top=b+"px",a.style.left=c+"px");"absolute"!==a.style.position&&(a.style.position="absolute")}function g(){if(C){var a=document.getElementById("previewMode");a.style.position="relative";a.appendChild(k)}else e(k);C||r.show()}function Y(a){X||(P=t("number", [0,20],10,a),ga.fire({radius:$a(U,P)}))}function j(a){X||(z=t("color",null,"#000000",a))}function w(a){X||(U=t("number",[0,20],10,a),V.fire({radius:$a(U,P),refresh:!0}))}function q(a){X||(E=t("number",[0,1],0.5,a),"object"==typeof k&&na(k,P,z,E))}function Z(){if("undefined"===typeof ha)return!0;var a=Sa();return!!Math.floor(ha)!==!!Math.floor(a.width/a.height)}function ka(){var a=Sa();ha=a.width/a.height}function Db(a){if("portrait"===a){Va="portrait";var b="one column"}"landscape"===a&&(Va="landscape", b="two column");Ja.fire({orientation:Va,format:b,width:D,height:Nb});Z()&&g();ka()}function s(a){a&&(Ca=a);f&&H&&(Ca+=P-2);"object"==typeof k&&(k.style.width=Ca+"px");return this}function Yb(a){a&&(G=a);f&&H&&(G=G+2*P-4);a&&"object"==typeof k&&(k.style.height=G+"px");return this}function Mb(){var a=Sa(),a=a.width>=a.height,b="undefined"===typeof window.orientation,a=90===window.orientation||-90===window.orientation||b&&a?"landscape":"portrait";Va!==a&&Db(a);g()}function la(){return"object"===typeof k&& "none"!==k.style.display}var D=380,Nb=131,k,Ub="janrainModal",Ba,O,Q,Ca=D,G=Nb,P=10,z="#000000",U=10,E=0.5,N=!1,M=Eb("rel/img/17c96fc4b9c8464d1c95cd785dd3120b.png"),L="",X=janrain.settings&&janrain.settings.capture&&janrain.settings.capture.noModalBorderInlineCss,T=!1,ia="Are you sure you want to quit?",da="Yes, quit",Na="No, stay",sa,Va="landscape",Qa=!0,W="boolean"===typeof W?W:"number"===typeof window.orientation?!0:!1,cb="boolean"===typeof cb?cb:janrain.settings.previewMode,C=cb,ta=ta||!1,ha, Da=!1;janrain.settings&&janrain.settings.capture&&janrain.settings.capture.modalCloseImage&&(M=janrain.settings.capture.modalCloseImage,T=!0);janrain.settings&&janrain.settings.capture&&janrain.settings.capture.modalCloseHtml&&(L=janrain.settings.capture.modalCloseHtml);window.janrain.events.onModalClose||(window.janrain.events.onModalClose=I());window.janrain.events.onModalOpen||(window.janrain.events.onModalOpen=I());var bb=I(),Ea=I(),V=I(),ga=I(),Ja=I();ma&&ma.onOrientationChange&&ma.onViewportChange&& (ma.onOrientationChange.addHandler(function(a){Db(a.orientation)},!0),ma.onViewportChange.addHandler(function(){Z()&&e(k);ka()},!0));"undefined"!==typeof janrain.events.onCaptureRenderComplete&&(janrain.events.onCaptureRenderComplete.addHandler(function(){la()&&(Da=!0)},!0),janrain.events.onCaptureContentChange.addHandler(function(){la()&&Da&&(g(),Da=!1)},!0));return{isOpen:function(){return la()},setWidth:function(a){s(a);return this},setHeight:function(a){Yb(a);return this},setBorder:function(a){("string"== typeof a||"number"==typeof a)&&Y(a);X||"object"==typeof k&&na(k,P,z,E);return this},setBorderColor:function(a){a&&j(a);X||"object"==typeof k&&na(k,P,z,E);return this},setBorderRadius:function(a){("string"==typeof a||"number"==typeof a)&&w(a);X||"object"==typeof k&&J(k,U);return this},setBorderOpacity:function(a){("number"===typeof a||"string"===typeof a)&&q(a);return this},setZIndex:function(a){O.style.zIndex=a},setPreviewMode:function(a){"boolean"===typeof a&&(C=a);return this},setId:function(a){Ub= a;k&&(k.id=a);return this},show:function(){W||(k.style.display="block");"object"==typeof Ba&&Qa&&(Ba.style.display="block");C?W&&(k.style.display="block"):(O.style.display="block",W?(ma.setElement(k).activate(),k.style.display="block"):(oa(window,"resize",Mb),Mb()));X||V.fire({radius:$a(U,P),refresh:!1});Ea.fire();janrain.events.onModalOpen.fire();eb.fire();k.focus()},close:function(a){b(a)},closeConfirm:function(){d()},refresh:function(a){ta||k.appendChild(Q);a&&a.center&&g()},remove:function(){if(C){var a= document.getElementById("previewMode");"object"===typeof Q&&k.removeChild(Q);"object"===typeof k&&a.removeChild(k);"object"===typeof O&&document.body.removeChild(O);if(a=document.getElementById("janrainEngageEmbed_old"))a.id="janrainEngageEmbed";O=k=""}else"object"===typeof Q&&k.removeChild(Q),"object"===typeof O&&document.body.removeChild(O),"object"===typeof k&&document.body.removeChild(k)},addContent:function(b){var c=janrain.events.onAuthWidgetContentPlaced;c&&c.fire();Ba=b;if(!k){k=document.createElement("div"); k.id=Ub;if("number"===typeof Ca||"string"===typeof Ca)k.style.width=Ca+"px";k.style.height=G+"px";k.style.position="absolute";X||(k.style.padding=P+"px",J(k,U),na(k,P,z,E));k.style.zIndex=1E3;k.style.display="none";var d,e,f,q,Z,h,c=document.documentElement?document.documentElement:{clientWidth:0,clientHeight:0,scrollWidth:0,scrollHeight:0,offsetWidth:0,offsetHeight:0};h=c.scrollWidth?c.scrollWidth:0;b=c.scrollHeight?c.scrollHeight:0;q=c.offsetWidth?c.offsetWidth:0;Z=c.offsetHeight?c.offsetHeight: 0;e=document.body.scrollWidth?document.body.scrollWidth:0;f=document.body.scrollHeight?document.body.scrollHeight:0;d=document.body.offsetWidth?document.body.offsetWidth:0;c=document.body.offsetHeight?document.body.offsetHeight:0;q=Math.max(e,h,d,q);b=Math.max(f,b,c,Z);c=2*Math.max(q,b);O=document.createElement("div");O.id="janrainModalOverlay";b=O.style;b.left="0px";b.top="0px";ec?(b.width=c+"px",b.height=c+"px",b.position="absolute"):(b.bottom="0px",b.right="0px",b.position="fixed");b.backgroundColor= "#000000";c=O;"undefined"!==typeof c.style.filter&&(c.style.filter="alpha(opacity=40)");"undefined"!==typeof c.style.opacity&&(c.style.opacity="0.4");"undefined"!==typeof c.style.KhtmlOpacity&&(c.style.KhtmlOpacity="0.4");"undefined"!==typeof c.style.MozOpacity&&(c.style.MozOpacity="0.4");b.display="none";b.zIndex=1E3;Q=L?a("a"):a();k.appendChild(Q);document.body.appendChild(O);document.body.appendChild(k)}k.appendChild(Ba);C&&g();return this},getContent:function(){return Ba},getBorderWidth:function(){return P}, getState:function(){return{width:Ca,borderWidth:P,borderColor:z,borderRadius:U,borderOpacity:E,orientation:Va}},setState:function(a){i("customizable_auth_widget_styling")&&("undefined"!==typeof a.borderWidth&&Y(a.borderWidth),"undefined"!==typeof a.borderColor&&j(a.borderColor),"undefined"!==typeof a.borderOpacity&&q(a.borderOpacity),"undefined"!==typeof a.orientation&&Db(a.orientation),"undefined"!==typeof a.borderRadius&&(("string"==typeof a.borderRadius||"number"==typeof a.borderRadius)&&w(a.borderRadius), "object"==typeof k&&J(k,U)))},setConfirmClose:function(a){N=a;return this},setShowContentOnLoad:function(a){Qa=a;return this},setConfirmMessageText:function(a){ia=a},setConfirmLinkText:function(a){da=a},setCancelLinkText:function(a){Na=a},onClose:bb,onShow:Ea,onOrientationChange:Ja,onBorderRadiusChange:V,onBorderWidthChange:ga}}function fc(a){function b(a){"janrainReadyToClose:True"===a.data&&(top.focus(),j=!0,za(window,"message",b))}function c(a){"janrainPopupHasClosed"===a.data&&(za(window,"message", c),w&&w.parentNode&&w.parentNode.removeChild(w),"function"===typeof q&&q())}function d(){var a=window.open(e,"","top="+((window.screen.availHeight||window.screen.height)/2-f/2)+",left="+((window.screen.availWidth||window.screen.width)/2-g/2)+",width="+g+",height="+f+",status=1,location=1,resizable=1,scrollbars=1");gc&&oa(window,"message",b);if(hc)oa(window,"message",c),w=fb("janrain-xdr-iframe",janrain.settings.appUrl+"/xdr_iframe");else var d=window.setInterval(function(){j&&a&&(a.close(),j=!1); if(a&&(a.closed||"undefined"===typeof a.closed)||"undefined"===typeof a)window.clearInterval(d),"function"===typeof q&&q()},500)}var e=a,g=400,f=400,j=!1,w,q;return{show:function(){d()},setWidth:function(a){a&&(g=a);return this},setHeight:function(a){a&&(f=a);return this},setCallback:function(a){a&&(q=a);return this}}}function ic(){function a(){i=(new Date).getTime()-e;if(i>>0;if(0===c)return-1;var d=0;0=c)return-1;for(d=0<=d?d:Math.max(c-Math.abs(d),0);d>>0;if("function"!==typeof a)throw new TypeError;for(var e=Array(d),g=0;g>>0;if("function"!=typeof a)throw new TypeError;for(var e=[],g=0;ga?"0"+a:a}function b(a){e.lastIndex=0;return e.test(a)?'"'+a.replace(e,function(a){var b=j[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}function c(a,d){var e,j,B,r,t=g,s,D=d[a];D&&"object"===typeof D&&"function"===typeof D.toJSON&&(D=D.toJSON(a));"function"===typeof i&&(D=i.call(d,a,D));switch(typeof D){case "string":return b(D);case "number":return isFinite(D)? ""+D:"null";case "boolean":case "null":return""+D;case "object":if(!D)return"null";g+=f;s=[];if("[object Array]"===Object.prototype.toString.apply(D)){r=D.length;for(e=0;ea.length)a="";var b=Error(a),a="Error: "+a+ " at:\n";return"string"===typeof b.stack?0===b.stack.indexOf("Error:")?b.stack:a+b.stack:"[stack trace unavailable]"}}();s=function(){function a(b){var c=b.level>=f[janrain.settings.debug.logLevel]&&janrain.settings.debug.tagFilter[b.tag];if(window.console&&c){c="#"+b.id+" "+b.message;"untagged"!==b.tag&&(c="["+b.tag+"] "+c);try{console[b.type](c)}catch(d){console[b.type](c)}}}function b(g,i){return function(){var b,r;1===arguments.length?(b="untagged",r=arguments[0]):2===arguments.length?(b=arguments[0], r=arguments[1]):s.forceError("debug logging functions must be called with exactly 1 or 2 arguments");if(janrain.settings.debug.enabled||i)e++,r={stack:d(r),level:f[g],tag:b,id:e,type:g,date:new Date,message:r},c.push(r),a(r)}}var c=[],e=0,f={};T(["log","info","warn","error"],function(a,b){f[a]=b});return{log:b("log"),info:b("info"),warn:b("warn"),error:b("error"),forceWarn:b("warn",!0),forceError:b("error",!0),logEvents:function(){for(var a in janrain.events)"function"===typeof janrain.events[a].addHandler&& janrain.events[a].addHandler(function(a){return function(b){s.log(a+": "+b)}}(a))},trace:function(a){var b=c[a-1];b?console.log(b.stack):console.error("No such log entry #"+a)},dump:function(){T(c,a)}}}();janrain.debug={dump:s.dump,trace:s.trace,enable:function(){window.localStorage&&(localStorage.janrainDebugEnabled="true")},disable:function(){window.localStorage&&(localStorage.janrainDebugEnabled="false")},$__UNSUPPORTED_MODULE__$:"This module is not provided for customer use, but is intended only for debugging purposes."}; T(["jtl","event","untagged"],function(b){janrain.debug["show"+(b.charAt(0).toUpperCase()+b.substring(1))]=a(b)})})();var z=window.innerWidth?window.innerWidth:document.body&&document.body.clientWidth?document.body.clientWidth:document.documentElement&&document.documentElement.clientWidth?document.documentElement.clientWidth:0;Ha=window.innerHeight?window.innerHeight:document.body&&document.body.clientHeight?document.body.clientHeight:document.documentElement&&document.documentElement.clientHeight? document.documentElement.clientHeight:0;Ia=z;var $=window.localStorage&&window.localStorage.getItem&&window.localStorage.removeItem&&window.localStorage.setItem,ea=[],Ra=!1,H="CSS1Compat"!==document.compatMode,jb=!1,G=!1,e=[];document.createElement("input");var z=navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad|blackberry|rim tablet|android|htc|lg|midp|mmp|mobile|nokia|opera mini|palm|pocket|psp|sgh|smartphone|symbian|treo mini|playstation portable|sonyericsson|samsung|mobileexplorer|palmsource|benq|windows phone|windows mobile|iemobile|windows ce|nintendo wii|\Wsilk\W)/i), Wb=null!==z?z[0]:!1,z="ontouchstart"in window;ba=z?"touchend":"mouseup";ja=z?"touchmove":"mousemove";janrain.settings&&janrain.settings.storageServer&&fb("xDomainLocalStorageJanrain",janrain.settings.storageServer,function(){oa(document.getElementById("xDomainLocalStorageJanrain"),"load",function(){Ra=!0})});V.possible="a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,0,1,2,3,4,5,6,7,8,9".split(",");var M=navigator.userAgent,f=lb(),z=document.documentMode,Aa=/Gecko\//.test(M),Ta=/AppleWebKit\//.test(M); /Chrome\//.test(M);var hc=/CriOS\//.test(M),Xb=aa(),Fa=gb(),ua=function(a){var a=a||M,b=a.indexOf("OS "),c=0;gb(a)&&-1]*>([\S\s]*?)<\/script>/gmi,""),b=b.replace(/<\/?\w(?:[^"'>]|"[^"]*"|'[^']*')*>/gmi,""),a.innerHTML=b,b=a.textContent||a.innerText, a.innerHTML="");return b}})();s.info("Debugging mode is on. Run: \nlocalStorage.janrainDebugEnabled = false; \nin the console to turn it off.");window.localStorage&&"true"===localStorage.janrainLocalWidgetCodeEnabled&&s.forceWarn("Local code mode is on. Run: \nlocalStorage.janrainLocalWidgetCodeEnabled = false; \nin the console to turn it off.");f&&(s.info("[ Internet Explorer ]\nVersion : "+f+"\nDocument Mode : "+z),f!==z&&s.warn("IE version and document mode do not match! This could cause issues.")); 30c?setTimeout(function(){b({height:d,width:e},++c)},100):E.fire({height:d,width:e}):setTimeout(function(){b({height:d,width:e},0)},100)}function c(){setTimeout(function(){q(s)},20);d(t,document.body)}function d(a,b){for(var c=0;cHa||(90===window.orientation||-90===window.orientation)&&Ha>Ia?!1:!0;var b="landscape";if(a&&(0===window.orientation||180===window.orientation))b="portrait";if(!a&&(90===window.orientation||-90===window.orientation))b="portrait";return b}function f(){var a=e();J||q("width=device-width, initial-scale=1, maximum-scale=1");z.fire({orientation:a})}function i(){var a=document.getElementsByTagName("meta"),b;for(b in a)if("viewport"===a[b].name)return a[b];return!1}function j(){if("undefined"=== typeof document.getElementsByTagName||i())return!1;var a=document.getElementsByTagName("head")[0],b=document.createElement("meta");b.setAttribute("name","viewport");a.appendChild(b);return!0}function r(){if("undefined"===typeof document.getElementsByTagName)return!1;document.getElementsByTagName("head");var a=document.createElement("meta");a.setAttribute("name","HandheldFriendly");a.content="true"}function q(a){var b=i();if(!b||b.content==a)return!1;if("undefined"===typeof a){var c=i();document.getElementsByTagName("head")[0].removeChild(c)}b.content= a;return!0}var s,t=document.createElement("div"),H=navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad|blackberry|rim tablet|android|htc|lg|midp|mmp|mobile|nokia|opera mini|palm|pocket|psp|sgh|smartphone|symbian|treo mini|playstation portable|sonyericsson|samsung|mobileexplorer|palmsource|benq|windows phone|windows mobile|iemobile|windows ce|nintendo wii|\Wsilk\W)/i),G=null!==H?H[0]:!1,z=I(),E=I(),J=G?G.match(/android|\Wsilk\W/):!1,D=function(){var a=window.orientation,b={height:screen?screen.height: 0,width:screen?screen.width:0},c={height:window.innerHeight,width:window.innerWidth},d=!1;return function(e,f,g){var i=!1,j=function(a,b){return a.height>=a.width&&b.height>=b.width||a.width>a.height&&b.width>b.height?!0:!1},r=a===e,q=j(f,b),s=j(g,c);if(!r&&(!q||!s))i=!0;!r&&!q&&(d=!0);i&&(d&&!j(f,g)&&(i=g.height,g.height=g.width,g.width=i),Ha=g.height,Ia=g.width);a=e;b={height:f.height,width:f.width};c={height:g.height,width:g.width}}}();return{setElement:function(){return this},onOrientationChange:z, onViewportChange:E,getMobileDevice:function(){return G},getOrientation:function(){return e()},activate:function(){a()},deactivate:function(){c()},isAndroid:function(){return J}}}(),Eb=function(a){var b;b="https:"===document.location.protocol?"https://docj27ko03fnu.cloudfront.net/":"http://cdn.rpxnow.com/";b=b.replace(/\/$/,"");return b+"/"+a},z={openId:{blogger:{identifier:"blogger",flow:"openid1",width:800,height:600,color:"#FF6600",friendlyName:"Blogger"},livejournal:{identifier:"livejournal",flow:"openid1", width:800,height:600,color:"##213368",friendlyName:"LiveJournal"},netlog:{identifier:"netlog",flow:"openid1",width:800,height:600,color:"#000000",friendlyName:"Netlog"},wordpress:{identifier:"wordpress",flow:"openid1",width:800,height:600,color:"#21759b",friendlyName:"WordPress"},openid:{identifier:"openid",flow:"openid1",width:800,height:600,color:"#f79311",friendlyName:"OpenID"}},openId2:{aol:{flow:"aol",width:514,height:550,color:"#0FD6FF",friendlyName:"AOL"},flickr:{flow:"flickr",width:500,height:500, color:"#FF0084",friendlyName:"Flickr"},google:{flow:"google",width:500,height:450,color:"#1C69F5",friendlyName:"Google"},hyves:{flow:"hyves",width:800,height:600,color:"#659BC8",friendlyName:"Hyves"},myopenid:{flow:"myopenid",width:800,height:600,color:"#8cc63f",friendlyName:"MyOpenID"},paypal:{flow:"paypal",width:800,height:600,color:"#1A3665",friendlyName:"PayPal"},verisign:{flow:"verisign",width:945,height:600,color:"#B8004D",friendlyName:"VeriSign"},yahoo:{flow:"yahoo",width:500,height:500,color:"#650065", friendlyName:"Yahoo!",shareSettings:{broadcast:{counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}}},oauth:{facebook:{flow:"facebook",width:640,height:480,color:"#3B5998",friendlyName:"Facebook",shareSettings:{broadcast:{counter:{},format:{},features:{message:!0,title:!0,url:!0,description:!0,image:!0,media:!0,actionLink:!0}}}},myspace:{flow:"myspace",width:800,height:500,color:"#000000",friendlyName:"Myspace",shareSettings:{broadcast:{counter:{}, format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}},twitter:{flow:"twitter",width:800,height:500,color:"#35CCFF",friendlyName:"Twitter",shareSettings:{broadcast:{counter:{max:140,urlRegex:/\b(?:[a-z]{1}[-a-z0-9+.]+:(?:\/\/)?)?[-a-z0-9._~@:!$&'()*+,;=]+(?:\.[-a-z0-9._~@:!$&'()*+,;=]+)*(?:\.(?:aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|xxx))(?::\d+)?(?:\/[-a-z0-9._~@:!$&'()*+,;=]+)*(?:\?[-a-z0-9._~@:!$&'()*+,;=%]+)?(?:#[-a-z0-9._~@:!$&'()*+,;=%]+)?\b/ig, urlLength:23},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}},contact:{counter:{max:140,urlRegex:/\b(?:[a-z]{1}[-a-z0-9+\.]+:(?:\/\/)?)?[-a-z0-9._~@:!$&'()*+,;=]+(?:\.[-a-z0-9._~@:!$&'()*+,;=]+)*(?:\.(?:aero|asia|biz|cat|com|coop|edu|gov|info|int|jobs|mil|mobi|museum|name|net|org|pro|tel|travel|xxx))(?::\d+)?(?:\/[-a-z0-9._~@:!$&'()*+,;=]+)*(?:\?[-a-z0-9._~@:!$&'()*+,;=%]+)?(?:#[-a-z0-9._~@:!$&'()*+,;=%]+)?\b/ig,urlLength:23}, format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}},linkedin:{flow:"linkedin",width:550,height:750,color:"#006699",friendlyName:"LinkedIn",shareSettings:{broadcast:{counter:{},format:{},features:{message:!0,title:!0,url:!0,description:!0,image:!0,media:!1,actionLink:!1}},contact:{counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!0,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}},live_id:{flow:"microsoftaccount", width:950,height:550,color:"#3E73B4",friendlyName:"Microsoft Account"},salesforce:{flow:"salesforce",width:800,height:500,color:"#333333",friendlyName:"Salesforce"},orkut:{flow:"orkut",width:800,height:600,color:"#333",friendlyName:"Orkut"},vzn:{flow:"vzn",width:600,height:450,color:"#333",friendlyName:"VZnet"},foursquare:{flow:"foursquare",width:950,height:550,color:"#333",friendlyName:"Foursquare"},sinaweibo:{flow:"sinaweibo",width:950,height:550,color:"#333",friendlyName:"Sina Weibo"},tencentweibo:{flow:"tencentweibo", width:800,height:650,color:"#93C5EA",friendlyName:"Tencent Weibo",shareSettings:{broadcast:{counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,url:!0,image:!0,media:!0}}}},tumblr:{flow:"tumblr",width:950,height:550,color:"#333",friendlyName:"Tumblr"},microsoft_live_connect:{flow:"microsoft_live_connect",width:950,height:550,color:"#333",friendlyName:"Microsoft Live Connect"},renren:{flow:"renren",width:950,height:550,color:"#333",friendlyName:"Renren"},disqus:{flow:"disqus",width:950, height:550,color:"#333",friendlyName:"Disqus"},soundcloud:{flow:"soundcloud",width:950,height:550,color:"#333",friendlyName:"SoundCloud"},vk:{flow:"vk",width:950,height:550,color:"#333",friendlyName:"VK"},amazon:{flow:"amazon",width:950,height:550,color:"#FF9900",friendlyName:"Amazon"},microsoftaccount:{flow:"microsoftaccount",width:950,height:550,color:"#3E73B4",friendlyName:"Microsoft Account"},instagram:{flow:"instagram",width:950,height:550,color:"#FFFFFF",friendlyName:"Instagram"},googleplus:{flow:"googleplus", width:445,height:665,color:"#D34836",friendlyName:"Google"},mydigipass:{flow:"mydigipass",width:900,height:650,color:"#D34836",friendlyName:"MYDIGIPASS.COM"},doccheck:{flow:"doccheck",width:850,height:600,color:"#D34836",friendlyName:"DocCheck"},medikey:{flow:"medikey",width:850,height:650,color:"#D34836",friendlyName:"Medikey"},xing:{flow:"xing",width:950,height:550,color:"#006567",friendlyName:"XING",shareSettings:{broadcast:{counter:{max:420,urlLength:23},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0, title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}},contact:{counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}},mixi:{flow:"mixi",width:950,height:550,color:"#333",friendlyName:"Mixi",shareSettings:{broadcast:{counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!0,url:!1,description:!1,image:!1,media:!1,actionLink:!1}},contact:{counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0, title:!0,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}},email:{color:"#009ddc",shareSettings:{email:{providers:{google:!0,googleplus:!0,yahoo:!0},counter:{},format:{message:"#{MESSAGE} #{URL}"},features:{message:!0,title:!1,url:!1,description:!1,image:!1,media:!1,actionLink:!1}}}}},fimnet:{fimnet:{flow:"fimnet",width:514,height:550,color:"#336699",friendlyName:"FiMnet"}}},ia={},Fa=["openId","openId2","oauth","fimnet"];0b)return 1; if(0=-(xa-(n+1)))return 0}0==x&&(c=F-100);if(0>a&&a<-c)return 1;if(0=-n)return 0}function k(){if("two column"===l)var a=R/2;"one column"===l&&(a=R);"one row"===l&&(a=1);var b="one row"===l?0:2*a,c="one column"===l?3*n:0;if(7===f||6===f||f&&H){if("two column"===l&&(c=n,7===f||6===f))c=2*n;if("one column"===l&&(c=3*n,(7===f||6===f)&&!H))c+=n;if("one row"===l&&(7===f||6===f))c=n}"one column"===l&&Ma<=R&&(c=f&&H?c+2*n:c-2*n);return y*a+n*(a+1)+b+c}function q(){function a(){var b;h="over"; var db=j();if(0==db&&"left"===e||0==db&&"top"===e||1==db&&"right"===e||1==db&&"bottom"===e)return this.style.cursor="default",v.onclick="",!1;var o=this;setTimeout(function(){if(1===i){if("over"!==h)return!1;f&&(d.style.display="block");m.style.display="block";v.onclick=c;o.style.cursor="pointer";var a=document.getElementById("janrainProviderPages");b="top"==e||"bottom"==e?parseInt(a.style.top):parseInt(a.style.left);var db="right"===e||"bottom"===e?b-ua:b+ua;"top"===e||"bottom"===e?a.style.top=db+ "px":a.style.left=db+"px";i=2}},f?50:100)}function b(){var a;h="out";var c=j();if(1==c&&"right"===e||0==c&&"left"===e||0==c&&"top"===e||1==c&&"bottom"===e)return!1;setTimeout(function(){if(2===i){if("out"!==h)return!1;f&&(d.style.display="none");m.style.display="none";var b=document.getElementById("janrainProviderPages");a="top"==e||"bottom"==e?parseInt(b.style.top):parseInt(b.style.left);var c="right"===e||"bottom"===e?a+ua:a-ua;"top"===e||"bottom"===e?b.style.top=c+"px":b.style.left=c+"px";i=1}}, f?200:400)}function c(){m.style.display="none";v.style.cursor="default";s(e,function(a){E(a);i=1})}var d,e,o,m,g={left:"-33px -16px",right:"0px -16px",top:"-16px -33px",bottom:"-16px 0px"},h="",i=1,v;return{setSide:function(a){e=a;return this},create:function(){var f;if(Ma<=R)f=!1;else{f=document.createElement("div");f.setAttribute("id","janrainShim_"+e);f.style.background="black";"top"===e||"bottom"===e?(f.style.height="19px",f.style.width="100%"):(f.style.height="100%",f.style.width="17px");ca? (f.style.filter="alpha(opacity=100)",f.style.opacity=100):(f.style.filter="alpha(opacity=0)",f.style.opacity=0);f.style.position="absolute";f.style.zindex="99";if("top"===e||"bottom"===e)f.style.left="0";f.style[e]=n+"px";f.style.top="one column"!==l?n+1+"px":"top"===e?"10px":"0px";f.style.display="none";d=f;f=document.createElement("div");f.style.backgroundColor=ca?"green":Wa;f.className="janrainSlideControllerMask";f.style.position="absolute";"one column"!==l&&(f.style.width=n+"px",f.style.height= "100%",f.style.top="0px",f.style[e]="0px",f.style.borderWidth="1px","right"===e&&(!va||"one row"===l)&&J(f,null,0,0,A,0),"left"===e&&(!va||"one row"===l)&&J(f,null,0,0,0,A),"right"===e&&" "===K&&J(f,null,0,A,A,0),"left"===e&&" "===K&&J(f,null,A,0,0,A));"one column"===l&&(f.style.height=n+"px",f.style.fontSize="0px",f.style.width="100%",f.style.padding="0px",f.style[e]="0px","top"===e&&" "===K?J(f,null,A,A,0,0):"bottom"===e&&!va&&J(f,null,0,0,A,A));"one row"===l&&(f.style.height="105.5%");o=f;f=document.createElement("div"); f.setAttribute("id","janrainArrow_"+e);f.style.background="url("+Eb("rel/img/ee9d3aa7c5896c69488b5941ef31c7bc.png")+") no-repeat scroll "+g[e]+" transparent";f.style.height="19px";f.style.width="17px";f.style.position="absolute";if("top"===e||"bottom"===e)f.style.left=F/2+"px";f.style[e]=n+"px";f.style.top="one column"!==l?k()/2-2*n+1+"px":"top"===e?"10px":"0px";f.style.display="none";m=f;f=document.createElement("div");f.className="janrainSlideControl";f.style.backgroundColor=ca?"purple":"transparent"; "one column"===l?(f.style.width=F+4+"px",f.style.left="3px","top"==e?(f.style.height=n+"px",f.style.top=xa+n+"px"," "===K&&(f.style.left="0px",f.style.top="0px",f.style.width=F+10+"px")):(f.style.height="20px",f.style.bottom=(va?Da+n:0)+"px",J(f,null,0,0,A,A))):(f.style.width="right"===e?"20px":"0px",f.style[e]="0px",f.style.height=k()-(n*(" "===K)?1:2)+"px",40===wa&&"one row"===l&&"left"===e&&(f.style.left=ta+"px"),"right"===e&&!va&&J(f,null,0,0,A,0),"left"===e&&!va&&J(f,null,0,0,0,A));f.style.position= "absolute";f.style.zIndex="100";f.style.cursor="pointer";f.onmouseover=a;f.onmouseout=b;f.onclick=c;v=f;v.appendChild(o);v.appendChild(d);v.appendChild(m);f=v}return f}}}function s(a,b){var c=document.getElementById("janrainProviderPages"),e=new ic;if("top"===a||"bottom"===a){if(" "===K)var d=-(k()-y),o=0;else d=-(k()-y-xa-n),o=xa+n;50===y&&(d-=20);f&&H&&(d+=n," "!==K&&(o+=n));e.setElement(c).setAcceleration("sinusoidal").setDuration(100*R).startPosition(parseInt(c.style.top)).endPosition("bottom"=== a?d:o).setDirection("vertical").setCallback(function(){b(a)}).animate()}else f&&H?(d=-(F-2*n-39),"one row"===l&&(d=-(ta-1*n))):(d=-(F-32),"one row"===l&&(d=-(F-24))),e.setElement(c).setAcceleration("sinusoidal").setDuration(800).startPosition(parseInt(c.style.left)).endPosition("right"==a?d:n).setDirection("horizontal").setCallback(function(){b(a)}).animate()}function w(){var a=document.createElement("div");a.style.backgroundColor=ca?"aqua":Wa;a.style.width=F+"px";a.style.height=Da+"px";a.style.position= "absolute";a.style.left="0px";a.style.paddingLeft=n+"px";a.style.paddingRight=n+"px";a.style.paddingBottom=n+"px";a.style.bottom="0px";a.style.fontSize="10px";a.style.textAlign="left";a.style.color=aa;a.style.fontFamily=Xa;J(a,null,0,0,A,A);var b=document.createElement("div"),c=janrain.settings.translate.POWERED_BY_PREFIX&&"en"!==janrain.settings.language?janrain.settings.translate.POWERED_BY_PREFIX:"Social Login",e=janrain.settings.translate.POWERED_BY_SUFFIX&&"en"!==janrain.settings.language?janrain.settings.translate.POWERED_BY_SUFFIX: " by Janrain";b.style.paddingLeft="1px";var d=document.createElement("a");d.setAttribute("href","http://janrain.com/products/engage/social-login?utm_source="+mb(janrain.settings.appUrl).host+"&utm_medium=Partner&utm_campaign=attribution");d.setAttribute("target","_blank");d.appendChild(document.createTextNode(c+e));b.appendChild(d);a.appendChild(b);return a}function z(){var a=document.createElement("div");a.style.backgroundColor=ca?"orange":Wa;a.className="janrainHeader";a.style.fontSize=$+"px";a.style.color= aa;a.style.position="relative";a.style.height=xa+"px";40===wa&&(a.style.cssFloat="left");a.style.left=40===wa?"-6px":"-5px";a.style.paddingLeft=n+"px";a.style.paddingRight=n+"px";a.style.paddingTop=n+"px";a.style.paddingBottom="0px";a.style.whiteSpace="nowrap";a.style.width=40===wa?"81px":F+"px";a.style.zIndex="100";40===wa?J(a,null,A,0,0,A):J(a,null,A,A,0,0);40===wa&&(a.style.marginTop="-3px");a.style.textAlign="one column"===l?"center":"left";var b=d();ea=document.createElement("div");ea.style.paddingLeft= "1px";ea.style.fontFamily=Xa;" "!==b&&ea.appendChild(document.createTextNode(b));a.appendChild(ea);return a}function B(){var a=document.createElement("div");a.id="janrainView";return a}function D(){var a,b;function c(e){e=e.touches[0];"one column"===l?a=e.pageY:b=e.pageX}function e(c){c.preventDefault();c=c.touches[0];c="one column"===l?a-c.pageY:b-c.pageX;if(35c){var d;d="one column"===l?0x)for(g=0;g<=i;g++)o.appendChild(k[g]);for(var jc=h.length%2,q=G?Ma:R,t=0;tF&&(m.style.textIndent="-9999px",m.style.fontSize="0",m.style.marginLeft=0,d.style.textAlign="center");2==x&&(30==y&&(d.style.width="auto"),50==y&&(o.style.marginLeft="5px"));if(0==x&&(30== y||50==y)){var o=document.createElement("a"),g=document.createElement("span"),h=document.createTextNode(a);"undefined"!==typeof b&&(o.tabIndex=b);o.className="janrain-provider-icon-32 janrain-provider-icon-bg janrain-provider-icon-"+a;o.style.marginTop="0px";o.href="javascript:void(0);";o.style.textDecoration="none";o.style.display="block";g.style.display="inline-block";g.style.textIndent="-9999px"}if(c("customSAML")||c("customOpenid")){var v=c("friendlyName")||"Sign In",i=document.createTextNode(v); if(1==x||2==x){if(30==y||50==y)o.style.backgroundImage="url("+c("largeIcon")+")",m.appendChild(i),m.style.color=c("color")||"#000000";if(15<=i.length){var k="undefined"!==typeof i.textContent?"textContent":"nodeValue";i[k]=i[k].substr(0,15)}}if(0==x&&(30==y||50==y))h=document.createTextNode(v),o.style.backgroundImage="url("+c("largeIcon")+")";f&&10>f&&(o.style.backgroundImage="none",o.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enable=true,sizingMethod=scale,src='"+c("largeIcon")+ "')")}else if("blank"!==a&&(1==x||2==x))30==y&&(o.style.backgroundColor="transparent",m.innerHTML=ia[a].friendlyName),50==y&&(o.style.backgroundColor="transparent",m.innerHTML=ia[a].friendlyName);6===f&&"one row"!==l&&(v=document.createElement("div"),v.style.height=o.style.height,v.style.width="90px",v.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enable=true,sizingMethod=crop,src='"+o.src+"')",o.style.filter="alpha(opacity=0)",v.appendChild(o),e.appendChild(v));0==x?(e.appendChild(o), o.appendChild(g),g.appendChild(h)):(e.appendChild(d),d.appendChild(o),d.appendChild(m));return L(a,e)}function Q(a,b){var c=document.createElement("a"),d=e.translate.SIGN_IN_AS||"Sign in as {name}",d=d.replace("{name}",b),o=document.createElement("span"),d=document.createTextNode(d),m=document.createElement("span");o.className="janrain-provider-text-color-"+a;c.href="javascript:void(0);";c.style.textDecoration="none";c.style.display="block";if("customopenid"===a){var g=document.createElement("span"); document.createElement("span");g.className="janrain-provider-icon-32 janrain-provider-icon-"+a;g.style.backgroundImage="url("+Ja.largeIcon+")";o.style.color=Ja.customOpenIdProviderColor||"#000000";10>f&&(g.style.backgroundImage="none",g.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enable=true,sizingMethod=scale,src='"+Ja.largeIcon+"')")}else"customsaml"===a?(g=document.createElement("span"),document.createElement("span"),g.className="janrain-provider-icon-32 janrain-provider-icon-"+ a,g.style.backgroundImage="url("+ab.largeIcon+")",o.style.color=ab.customSAMLProviderColor||"#000000",10>f&&(g.style.backgroundImage="none",g.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enable=true,sizingMethod=scale,src='"+ab.largeIcon+"')")):(g=document.createElement("span"),g.className="janrain-provider-icon-24 janrain-provider-icon-"+a);m.style.display="inline-block";m.style.verticalAlign="top";m.style.fontFamily=Xa;var v=document.createElement("div"),i=7.5*d.length+30,k= h();v.style.fontSize="16px";v.style.height="100%";v.style.position="relative";if(0==x||120>k)15<=d.length&&(v.style.fontSize="14px",i=7*d.length+30),20<=d.length&&(v.style.fontSize="12px",i=6*d.length+30),24<=d.length&&(v.style.fontSize="10px",i=5*d.length+50),30<=d.length&&(i="undefined"!==typeof d.textContent?"textContent":"nodeValue",d[i]=d[i].substr(0,26)+"...",i=162);v.style.width=i+"px";if(0==x||116>k)"customopenid"===a?(g=document.createElement("span"),document.createElement("span"),g.className= "janrain-provider-icon-24 janrain-provider-icon-"+a,g.style.backgroundImage="url("+Ja.largeIcon+")",o.style.color=Ja.customOpenIdProviderColor||"#000000",f&&10>f&&(g.style.backgroundImage="none",g.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enable=true,sizingMethod=scale,src='"+Ja.largeIcon+"')")):"SAML"===a?(g=document.createElement("span"),document.createElement("span"),g.className="janrain-provider-icon-24 janrain-provider-icon-"+a,g.style.backgroundImage="url("+ab.largeIcon+ ")",o.style.color=ab.customSAMLProviderColor||"#000000",f&&10>f&&(g.style.backgroundImage="none",g.style.filter="progid:DXImageTransform.Microsoft.AlphaImageLoader(enable=true,sizingMethod=scale,src='"+ab.largeIcon+"')")):(g=document.createElement("span"),g.className="janrain-provider-icon-24 janrain-provider-icon-"+a);30===y&&(m.style.marginTop="9px",m.style.fontSize="12px",g.style.marginTop="3px");50===y&&(m.style.marginTop="16px",g.className="janrain-provider-icon-32 janrain-provider-icon-"+a, g.style.marginTop="9px");"one row"===l&&30===y&&(g.style.marginTop="-1px");m.appendChild(o);o.appendChild(d);g.style.marginRight="10px";g.style.verticalAlign="top";c.style.overflow="hidden";c.style.position="relative";c.style.height=("one row"!==l?y:25)+"px";c.style.marginBottom="one row"===l?"-4px":"4px";"one row"===l&&(c.style.top="-4px");c.style.left="0px";f&&H&&(c.style.marginRight="5px");f&&H&&(c.style.marginLeft="3px");c.style.border="1px solid "+qa;J(c,fa);"customopenid"===a&&(c.style.color= ia[a].color);6===f||7===f||f&&H?v.style.left="10px":v.style.margin="0 auto";v.appendChild(g);v.appendChild(m);0==x&&(v.style.paddingTop="2px",m.style.marginTop="6px");0==x||116>k?(c.appendChild(v),v.style.width="auto"):(50===y&&parseInt(c.style.height),m.style.cssFloat="none",m.style.styleFloat="none",c.appendChild(g),c.appendChild(m));return L(a,c)}function N(a,b){oa(a,"click",function(){P(b)})}function P(a){var b=ia[a],c={appUrl:e.appUrl,mobileDevice:Wb,language:e.language,popup:bb,tokenUrl:bc(e.tokenUrl|| location.href,cb)||location.href,facebookPermissions:Sa,forceReauth:Qa,widgetType:"auth",tokenAction:W,bpChannel:sa,customOpenid:Va,customOpenidOpxblob:e.customOpenidOpxblob,extParams:e.extParams,scopes:Ua};b.name=a;new eb(b,c,function(){Ea||(kb=setTimeout(function(){Ha(b)},300))})}function O(){var a=document.createElement("div");a.style.position="absolute";a.style.top="0px";a.style.left="0px";a.style.width=F+"px";a.style.zIndex="102";a.style.textAlign="center";a.style.padding=n+"px";a.style.backgroundColor= Wa;a.style.height=h()-(f&&H?0:2*n)+"px";J(a,A);return a}function S(a){var b=document.createElement("a"),c=document.createTextNode(e.translate.USE_ANOTHER_ACCOUNT||"switch accounts");b.setAttribute("class","janrainSwitchAccountLink");b.setAttribute("href","");b.style.fontSize="12px";b.style.fontFamily=Xa;b.style.color=aa;b.onclick=a;b.appendChild(c);return b}function T(){return"modal"===C?document.getElementById("janrainModal"):"embed"===C?document.getElementById("janrainEngageEmbed"):!1}function U(){var a= parseInt(u.style.width);return a=a+2*n+2}function V(){var a=T();null!==a&&"object"===typeof u&&u.parentNode===a&&a.removeChild(u);janrain.events.onProviderLoginStart.removeHandler($a)}function X(){var a="";"object"===typeof p&&(a=p.getState());return{type:C,width:U(),fontFamily:Xa,fontSize:$,fontColor:aa,backgroundColor:Wa,borderColor:za,borderRadius:A,format:l,providersPerPage:R,providers:pa,buttonBackgroundStyle:Ya,buttonBorderColor:qa,buttonBorderRadius:fa,actionText:d(),showAttribution:va,modalState:a}} function Z(a){l=t("string",["default","two column","one column","one row"],"two column",a);"default"===l&&(l="two column");"one row"==a&&(A=t("number",[0,10],5,A));ga($)}function Y(a){"two column"===l&&(F=t("number",[225,600],380,a));"one column"===l&&(F=t("number",[160,600],200,a));"one row"===l&&(y=30,a=Ma<=R?n*(parseInt(R)-1):n*(parseInt(R)+2),40===wa&&(a+=ta-n),F=y*R+a);if(("two column"===l||"one column"===l)&&!G)F=F-2*n-2;f&&H&&(F=F+2*n+2);"one row"!==l&&(y=380b)b=5;h=new a;g(h);h.setBackgroundColor(rb).setPreviewMode(sb).setShowAttribution(tb).setNoReturnExperience(ub).setNoReturnExperienceSwitchAccountLink(Hb).setFontSize(vb).setFontFamily(wb).setFontColor(xb).setActionText(yb).setProviders(fa).setProvidersPerPage(Ib).setBorderRadius(b).setButtonBorderColor(zb).setButtonBorderRadius(Ab).setButtonBackgroundStyle(Bb).build(); if("object"!==typeof p){p=new Tb;p.ready=!1;var d=p.addContent;p.addContent=function(a){p.ready=!0;d(a);janrain.events.onModalWidgetReady.fire()}}p.setHeight(h.getActualHeight()).setWidth(h.getWidth()).setPreviewMode(sb).setBorderColor(ya).setBorder(pb).setBorderOpacity($).setBorderRadius(qb);ha||(c?(U("welcome_info_name",unescape(Q("welcome_info_name"))),ib("expected_tab",c)):p.addContent(h.getContentsDiv()));p.onOrientationChange.addHandler(function(a){"portrait"===a.orientation&&h.setFormat(a.format).setWidth(200).refresh({center:!0}); "landscape"===a.orientation&&h.setHeight(a.height).setWidth(a.width).setFormat(a.format).refresh({center:!0});p.setHeight(h.getActualHeight());p.setWidth(h.getWidth())},!0);p.onShow.addHandler(function(){"object"==typeof h&&p.setWidth(h.getWidth())},!0);p.onBorderWidthChange.addHandler(function(a){"object"===typeof p&&"object"===typeof h&&(h.setBorderRadius(a.radius).refresh(),a=h.getState(),a.borderRadiusTa)return c.widget_type=a.widget_type,c.provider=a.provider,c.time=(new Date).getTime(),c=nb(c),da(b+"/signin/get_login_info"+c),Ta++,!0;"object"===typeof janrain.events.onProviderLoginCancel&&janrain.events.onProviderLoginCancel.fire(a);"undefined"!== typeof kb&&clearTimeout(kb);"undefined"!==typeof h&&h.refresh&&h.refresh();janrain.events.onShareLoginCancel&&"fail"===a.stat&&janrain.events.onShareLoginCancel.fire(a);return!1}function eb(a,b,c){var d=b.appUrl,e=janrain.settings.customSAML&&a.customSAML,f=janrain.settings.customOpenid&&a.customOpenid,d=e?d+"/saml2/sso/start":d+("/"+a.flow+"/start"),g=janrain.settings.originUrl||window.location.href;b.mobileDevice&&(g="mobile");var h=b.language||"en",i=b.popup?"xdr":"xdrsw",k=b.tokenUrl||window.location.href, j={};Jb={appUrl:b.appUrl,provider:a.name,widget_type:b.widgetType};j.language_preference=h;j.token_url=k;j.display="popup";j.widget=!0;"object"===typeof b.facebookPermissions&&(j.ext_perm=b.facebookPermissions.toString());e?j.saml_provider=a.identifier:j.openid_identifier=a.identifier;j.origin_url=g;j.provider_name=a.name;j.force_reauth=b.forceReauth;j.xdReceiver=b.appUrl+"/"+i;j.callback="none";j.widget_type=b.widgetType;j.token_action="url";janrain.settings.captureDomain&&(j.capture_domain=janrain.settings.captureDomain); if("event"===b.tokenAction||"hybrid"===b.tokenAction)j.token_action="event";b.mobileDevice&&"hybrid"===b.tokenAction&&(j.token_action="url");b.bpChannel&&(j.bp_channel=b.bpChannel);b.extParams&&b.extParams[a.name]&&(j.ext_params=b.extParams[a.name]);b.scopes&&"object"===typeof b.scopes[a.name]&&(j.override_scopes=b.scopes[a.name].toString());b.sharingType&&(j.sharing_type=b.sharingType);g=function(b){var c=janrain.settings[b],b=a[b],c="object"===typeof c?c[a.name]:c;return c!==b?c:b}("customOpenidOpxblob"); b.customOpenid&&"string"===typeof g&&(j.opx_blob=g);d+=nb(j);(function(){janrain.events.onProviderLoginStart.fire({provider:a.name,width:a.width,height:a.height});var g;b.mobileDevice&&"event"!==b.tokenAction||!b.popup?da(b.appUrl+"/signin/set_login_tab?login_tab="+a.name+"&origin_url="+encodeURIComponent(window.location.href),function(){janrain.settings.customProviderInIFrame&&(f||e)?window.location.href=d:window.top.location.href=d}):(g=new fc(d),g.setWidth(a.width).setHeight(a.height).setCallback(function(){var d= {},e="";d.widget_type=b.widgetType;d.provider=a.name||"";d.time=(new Date).getTime();e=nb(d);"function"===typeof c&&c();da(b.appUrl+"/signin/get_login_info"+e);janrain.events.onProviderLoginComplete.fire({provider:a.name})}).show())})()}function U(a,b){if(!b||"undefined"===b||"welcome_info_name"!==a)return!1;b&&(ta=b)}function Oa(){e.noReturnExperience&&("single cookie"===e.storageType?E().setName("janrain_engage_login_data").setDomain(window.location.hostname).remove():(E().setName("login_tab").remove(), E().setName("expected_tab").remove()));return ma.isAndroid()?Q("login_tab"):Q("expected_tab")}function ib(a,b){function c(){janrain.events.onReturnExperienceFound.fire({returnProvider:b,welcomeName:ta})}var d=function(a){var c=function(){600>a&&setTimeout(function(){d(++a)},50)};if("object"!==typeof h)return c(),!1;"modal"===C?p.addContent(h.getReturnExperience(b,ta)):"embed"===C&&(na(document.getElementById("janrainEngageEmbed"),h.getReturnExperience(b,ta)),h.showReturnExperience(b)&&(document.getElementById("janrainView").style.visibility= "hidden"));"modal"===C&&janrain.events.onModalWidgetReady.fire()};if("expected_tab"!==a||!b)return!1;"object"===typeof h&&h.removeReturnExperience();Ra?c():janrain.events.onAuthWidgetLoad.addHandler(c,!0);d(0)}function na(a,b){a&&(a.innerHTML="");janrain.settings.capture&&(a?(a.innerHTML="",a.appendChild(b)):(a=document.createElement("div"),a.id="janrainEngageEmbed",a.style.display="none",document.body.appendChild(a)));a?(a.appendChild(b),janrain.events.onAuthWidgetContentPlaced.fire()):(r.log('Missing container div, please place this div where you wantthe embedded widget to be displayed on your page-
.'), r.show());return a}function za(a,b,c){c=c?cc:Fb;return cb=b?c(cb,a):a}function X(){function a(b){if(!("customsaml"===b&&!e.customSAML||"customopenid"===b&&!e.customOpenid)){var c,d;if("customsaml"===b)c="customSAMLProviderId",d=["customSAMLProviderName","customSAMLProviderColor","customSAMLLargeIcon"];else if("customopenid"===b)c="customOpenidProviderId",d="customOpenIdProviderName,customOpenIdProviderColor,customOpenidLargeIcon,customOpenidIdentifier,customOpenidFlow,customOpenidOpxblob".split(","); else{r.log("Bad provider: "+b);r.show();return}var f=typeof e[c];if("undefined"===f||"string"===f){var g=e[c]||b;e[c]=[g];T(d,function(a){if("object"!==typeof e[a]){var b=e[a];e[a]={};e[a][g]=b}})}}}function b(a,c){var d=dc,f={customopenid:["customOpenidFlow","customOpenidIdentifier"],customsaml:["customSAMLProviderId"]};if(e[{customopenid:"customOpenid",customsaml:"customSAML"}[a]]&&i("customizable_auth_widget_styling")){"customopenid"===a&&(Va=!0);for(var f=f[a],g=0,o=f.length;g=f&&Pb(Lb()+"providers-ie.css"));if(e.stop)return!0;W=e.tokenAction?e.tokenAction:W;if(!e.tokenUrl&&"event"!=W)return r.log("Missing tokenUrl. tokenUrl is required."),r.show(),!1;C=t("string",["modal","embed"],"embed",e.type?e.type: C);ha=e.multi?e.multi:ha;Ea=e.custom?e.custom:Ea;Qa=e.forceReauth?e.forceReauth:Qa;sa=e.bpChannel?e.bpChannel:sa;Sa=e.facebookPermissions?e.facebookPermissions:Sa;Ua=e.scopes?e.scopes:Ua;ua=!!e.facebookAutoLogin;ga=e.storageType?t("string",["default","single cookie"],"default",e.storageType):ga;bb="boolean"===typeof e.popup?e.popup:bb;Wb&&"event"!==W&&(bb=!1);Da=e.returnExperienceTimeout?e.returnExperienceTimeout:Da;ha&&(setTimeout(function(){var a=Oa();if(a)U("welcome_info_name",unescape(Q("welcome_info_name"))), ib("expected_tab",a),document.getElementById("janrainView").style.visibility="hidden";else if(a=function(){if("modal"===C)p.addContent(h.getContentsDiv());else if("embed"===C){var a=document.getElementById("janrainEngageEmbed");na(a,h.getContentsDiv())}"undefined"!==typeof b&&Na.removeHandler(b)},h)a();else var b=Na.addHandler(a)},Da),da(e.appUrl+"/signin/get_cookies"));a("customopenid");a("customsaml");e.customOpenid&&T(e.customOpenidProviderId,function(a){b("customopenid",a)});e.customSAML&&T(e.customSAMLProviderId, function(a){b("customsaml",a)});if(Ea)return!0;W=e.tokenAction?e.tokenAction:W;pb=i("customizable_auth_widget_styling")?e.modalBorderWidth:pb;ya=i("customizable_auth_widget_styling")?e.modalBorderColor:ya;qb=i("customizable_auth_widget_styling")?e.modalBorderRadius:qb;$=i("customizable_auth_widget_styling")?e.modalBorderOpacity:$;rb=i("customizable_auth_widget_styling")?e.backgroundColor:rb;aa=i("customizable_auth_widget_styling")?e.borderRadius:aa;ea=i("customizable_auth_widget_styling")?e.borderColor: ea;qa=e.format;xb=i("customizable_auth_widget_styling")?e.fontColor:xb;vb=i("customizable_auth_widget_styling")?e.fontSize:vb;wb=i("customizable_auth_widget_styling")?e.fontFamily:wb;Aa=i("customizable_auth_widget_styling")?e.width:Aa;pa=i("customizable_auth_widget_styling")?e.rowHeight:pa;Ib=e.providersPerPage;Gb=i("customizable_auth_widget_styling")?e.providersNotPaged:Gb;yb=i("customizable_auth_widget_styling")?e.actionText:yb;zb=i("customizable_auth_widget_styling")?e.buttonBorderColor:zb;Ab= i("customizable_auth_widget_styling")?e.buttonBorderRadius:Ab;Bb=i("customizable_auth_widget_styling")?e.buttonBackgroundStyle:Bb;tb=i("customizable_auth_widget_hide_attribution")?e.showAttribution:tb;sb=e.previewMode;ub=e.noReturnExperience;Hb=e.noReturnExperienceSwitchAccountLink;fa=e.providers;"undefined"===typeof janrain.settings.translate&&(janrain.settings.translate=e.translate={});if(e.customOpenid&&i("customizable_auth_widget_styling")){if(!e.customOpenidLargeIcon)return r.log("Missing customOpenidLargeIcon. customOpenidLargeIcon is required and should be the full path to an image that is 50px x 50px."), r.show(),!1;Ja={largeIcon:e.customOpenidLargeIcon,customOpenIdProviderName:e.customOpenIdProviderName||janrain.settings.translate.SIGN_IN||"Sign in",customOpenIdProviderColor:e.customOpenIdProviderColor}}if(e.customSAML&&i("customizable_auth_widget_styling")){if(!e.customSAMLLargeIcon)return r.log("Missing customSAMLLargeIcon. customSAMLLargeIcon is required and should be the full path to an image that is 50px x 50px."),r.show(),!1;ab={largeIcon:e.customSAMLLargeIcon,customSAMLProviderName:e.customSAMLProviderName|| janrain.settings.translate.SIGN_IN||"Sign in",customSAMLProviderColor:e.customSAMLProviderColor}}e.previewMode?("modal"===C&&Za(c),"embed"===C&&Za(d)):("modal"===C&&Za(B),"embed"===C&&Za(z));Xb&&oa(window,"unload",function(){})}var Sa,Ua,ua=!1,ja="janrain_engage_facebook_auto_login",sa,Va=!1,Qa=!1,W="url",cb={},C="embed",ta="unknown",ha=!1,Da=300,Qa=!1,bb=!0,Ea=!1,ba=0,ga="default",Ja,ab,ob,p,pb,ya,qb,$,h,S,rb,aa,ea,Aa,pa,qa,fa=[],Gb=!1,Ib,yb,vb,wb,xb,zb,Ab,Bb,sb,ub,Hb,tb,fb=!1,Ra=!1,gb=18,hb=14; janrain.events.onAuthWidgetLoad||(janrain.events.onAuthWidgetLoad=I(!0));janrain.events.onModalWidgetReady||(janrain.events.onModalWidgetReady=I());janrain.events.onReturnExperienceFound||(janrain.events.onReturnExperienceFound=I());janrain.events.onAuthWidgetLoad.addHandler(function(){Ra=!0;var a=(new E).getCookie(ja);ua&&!a&&b()},!0);janrain.events.onProviderLoginSuccess.addHandler(function(){var a=document.getElementById("janrainAuthReturnExperience"),b=document.getElementById("janrainView");a&& (a.style.visibility="hidden");b&&(b.style.visibility="hidden")});janrain.events.onAuthWidgetLoad.addHandler(function(){var a=Q("expected_tab"),b=Q("welcome_info_name");T(janrain.settings.beforeJanrainWidgetOnLoad||[],Rb);"function"===typeof janrainWidgetOnload?(T(janrain.settings.beforeJanrainWidgetOnLoad||[],Rb),Ea?(janrainWidgetOnload(),!ha&&a&&b&&janrain.events.onReturnExperienceFound.fire({returnProvider:a,welcomeName:unescape(b)})):h?janrainWidgetOnload(h.getState()):janrainWidgetOnload()):s.warn("No such function 'janrainWidgetOnload'. Does 'janrainCaptureWidgetOnLoad' exist?")}, !0);for(var kb,Ta=0,Jb,Kb="onAuthWidgetContentPlaced,onProviderLoginStart,onProviderLoginError,onProviderLoginToken,onProviderLoginCancel,onProviderLoginSuccess,onProviderLoginComplete,onProviderLogoutStart,onProviderLogoutComplete".split(","),Cb=0;Cb