function HL(n,t,i,r,u,f){xwiCW.HL(n,t,i,r,u,f)}function HLMin(n,t,i,r,u,f,e){xwiCW.HLMin(n,t,i,r,u,f,e)}function validateNYT(n){n===void 0&&(n=0);var t="nytauth",u="valid",r="IsValid",f="invalid",i={expires:0,IsValid:!1};return(n===0?t="nytsess":i.expires=n,Cookies.get(t)===u)?(validateNYT[r]=!0,console.log("NYT validated via "+t+" cookie."),$(this).promise()):$.ajax({url:"https://www.nytimes.com/svc/crosswords/v2/puzzle/daily-2019-01-11.puz",accepts:{puzType:"application/x-crossword"},converters:{"text puzType":function(){return"xwi"}},dataType:"puzType",xhrFields:{withCredentials:!0},success:function(n,f){console.log("SUCCESS: NYT returns "+f);validateNYT[r]=!0;i.IsValid=!0;Cookies.set(t,u,i)},error:function(n,e,o){console.log("ERROR: NYT returns code "+n.status+" : "+e+" : "+o);n.status===200?(console.log("Logged in."),i.IsValid=!0,validateNYT[r]=!0,Cookies.set(t,u,i)):(console.warn("NOT logged in."),validateNYT[r]=!1,Cookies.set(t,f,i))}})}var paypal,Cookies,Modernizr,xwi,xwiTT;!function(n,t,i){function tt(n){var t=e.className,i=r._config.classPrefix||"",u;(c&&(t=t.baseVal),r._config.enableJSClass)&&(u=new RegExp("(^|\\s)"+i+"no-js(\\s|$)"),t=t.replace(u,"$1"+i+"js$2"));r._config.enableClasses&&(t+=" "+i+n.join(" "+i),c?e.className.baseVal=t:e.className=t)}function s(n,t){return typeof n===t}function it(){var i,n,u,f,e,o,t;for(var c in h)if(h.hasOwnProperty(c)){if(i=[],n=h[c],n.name&&(i.push(n.name.toLowerCase()),n.options&&n.options.aliases&&n.options.aliases.length))for(u=0;u<n.options.aliases.length;u++)i.push(n.options.aliases[u].toLowerCase());for(f=s(n.fn,"function")?n.fn():n.fn,e=0;e<i.length;e++)o=i[e],t=o.split("."),1===t.length?r[t[0]]=f:(!r[t[0]]||r[t[0]]instanceof Boolean||(r[t[0]]=new Boolean(r[t[0]])),r[t[0]][t[1]]=f),g.push((f?"":"no-")+t.join("-"))}}function o(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):c?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function rt(n,t){return!!~(""+n).indexOf(t)}function ut(n){return n.replace(/([a-z])-([a-z])/g,function(n,t,i){return t+i.toUpperCase()}).replace(/^-/,"")}function ft(n,t){return function(){return n.apply(t,arguments)}}function et(n,t,i){var r;for(var u in n)if(n[u]in t)return i===!1?n[u]:(r=t[n[u]],s(r,"function")?ft(r,i||t):r);return!1}function b(n){return n.replace(/([A-Z])/g,function(n,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function ot(t,i,r){var u,f,e;return"getComputedStyle"in n?(u=getComputedStyle.call(n,t,i),f=n.console,null!==u?r&&(u=u.getPropertyValue(r)):f&&(e=f.error?"error":"log",f[e].call(f,"getComputedStyle returning null, its possible modernizr test results are inaccurate"))):u=!i&&t.currentStyle&&t.currentStyle[r],u}function st(){var n=t.body;return n||(n=o(c?"svg":"body"),n.fake=!0),n}function ht(n,i,r,u){var s,a,c,v,l="modernizr",h=o("div"),f=st();if(parseInt(r,10))for(;r--;)c=o("div"),c.id=u?u[r]:l+(r+1),h.appendChild(c);return s=o("style"),s.type="text/css",s.id="s"+l,(f.fake?f:h).appendChild(s),f.appendChild(h),s.styleSheet?s.styleSheet.cssText=n:s.appendChild(t.createTextNode(n)),h.id=l,f.fake&&(f.style.background="",f.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(f)),a=i(h,n),f.fake?(f.parentNode.removeChild(f),e.style.overflow=v,e.offsetHeight):h.parentNode.removeChild(h),!!a}function ct(t,r){var f=t.length,u;if("CSS"in n&&"supports"in n.CSS){for(;f--;)if(n.CSS.supports(b(t[f]),r))return!0;return!1}if("CSSSupportsRule"in n){for(u=[];f--;)u.push("("+b(t[f])+":"+r+")");return u=u.join(" or "),ht("@supports ("+u+") { #modernizr { position: absolute; } }",function(n){return"absolute"==ot(n,null,"position")})}return i}function k(n,t,r,f){function c(){v&&(delete u.style,delete u.modElem)}var l,v,h,y,e,p,a;if((f=s(f,"undefined")?!1:f,!s(r,"undefined"))&&(l=ct(n,r),!s(l,"undefined")))return l;for(a=["modernizr","tspan","samp"];!u.style&&a.length;)v=!0,u.modElem=o(a.shift()),u.style=u.modElem.style;for(y=n.length,h=0;y>h;h++)if(e=n[h],p=u.style[e],rt(e,"-")&&(e=ut(e)),u.style[e]!==i){if(f||s(r,"undefined"))return c(),"pfx"==t?e:!0;try{u.style[e]=r}catch(w){}if(u.style[e]!=p)return c(),"pfx"==t?e:!0}return c(),!1}function d(n,t,i,r,u){var f=n.charAt(0).toUpperCase()+n.slice(1),e=(n+" "+y.join(f+" ")+f).split(" ");return s(t,"string")||s(t,"undefined")?k(e,t,r,u):(e=(n+" "+p.join(f+" ")+f).split(" "),et(e,t,i))}function l(n,t,r){return d(n,i,i,t,r)}var g=[],h=[],f={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(n,t){var i=this;setTimeout(function(){t(i[n])},0)},addTest:function(n,t,i){h.push({name:n,fn:t,options:i})},addAsyncTest:function(n){h.push({name:null,fn:n})}},r=function(){},e,c,v,y,p,w,u,nt,a;for(r.prototype=f,r=new r,r.addTest("localstorage",function(){var n="modernizr";try{return localStorage.setItem(n,n),localStorage.removeItem(n),!0}catch(t){return!1}}),r.addTest("sessionstorage",function(){var n="modernizr";try{return sessionStorage.setItem(n,n),sessionStorage.removeItem(n),!0}catch(t){return!1}}),e=t.documentElement,c="svg"===e.nodeName.toLowerCase(),r.addTest("audio",function(){var t=o("audio"),n=!1;try{n=!!t.canPlayType;n&&(n=new Boolean(n),n.ogg=t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),n.mp3=t.canPlayType('audio/mpeg; codecs="mp3"').replace(/^no$/,""),n.opus=t.canPlayType('audio/ogg; codecs="opus"')||t.canPlayType('audio/webm; codecs="opus"').replace(/^no$/,""),n.wav=t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),n.m4a=(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""))}catch(i){}return n}),r.addTest("canvas",function(){var n=o("canvas");return!(!n.getContext||!n.getContext("2d"))}),r.addTest("adownload",!n.externalHost&&"download"in o("a")),v="Moz O ms Webkit",y=f._config.usePrefixes?v.split(" "):[],f._cssomPrefixes=y,p=f._config.usePrefixes?v.toLowerCase().split(" "):[],f._domPrefixes=p,w={elem:o("modernizr")},r._q.push(function(){delete w.elem}),u={style:w.elem.style},r._q.unshift(function(){delete u.style}),nt=f.testProp=function(n,t,r){return k([n],i,t,r)},r.addTest("textshadow",nt("textShadow","1px 1px")),f.testAllProps=d,f.testAllProps=l,r.addTest("cssgridlegacy",l("grid-columns","10px",!0)),r.addTest("cssgrid",l("grid-template-rows","none",!0)),r.addTest("flexbox",l("flexBasis","1px",!0)),r.addTest("fetch","fetch"in n),it(),tt(g),delete f.addTest,delete f.addAsyncTest,a=0;a<r._q.length;a++)r._q[a]();n.Modernizr=r}(window,document),function(n){var t,r,i;typeof define=="function"&&define.amd&&(define(n),t=!0);typeof exports=="object"&&(module.exports=n(),t=!0);t||(r=window.Cookies,i=window.Cookies=n(),i.noConflict=function(){return window.Cookies=r,i})}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(n){return n.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}function i(r){function u(){}function f(t,i,f){var s,o,e;if(typeof document!="undefined"){f=n({path:"/"},u.defaults,f);typeof f.expires=="number"&&(f.expires=new Date(new Date*1+f.expires*864e5));f.expires=f.expires?f.expires.toUTCString():"";try{s=JSON.stringify(i);/^[\{\[]/.test(s)&&(i=s)}catch(h){}i=r.write?r.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent);t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);o="";for(e in f)f[e]&&(o+="; "+e,f[e]!==!0)&&(o+="="+f[e].split(";")[0]);return document.cookie=t+"="+i+o}}function e(n,i){var s,u,f;if(typeof document!="undefined"){for(var e={},h=document.cookie?document.cookie.split("; "):[],o=0;o<h.length;o++){s=h[o].split("=");u=s.slice(1).join("=");i||u.charAt(0)!=='"'||(u=u.slice(1,-1));try{if(f=t(s[0]),u=(r.read||r)(u,f)||t(u),i)try{u=JSON.parse(u)}catch(c){}if(e[f]=u,n===f)break}catch(c){}}return n?e[n]:e}}return u.set=f,u.get=function(n){return e(n,!1)},u.getJSON=function(n){return e(n,!0)},u.remove=function(t,i){f(t,"",n(i,{expires:-1}))},u.defaults={},u.withConverter=i,u}return i(function(){})});$.fn.setCursorPosition=function(n){var t="character";return this.each(function(i,r){if(r.setSelectionRange)r.setSelectionRange(n,n);else if(r.createTextRange){var u=r.createTextRange();u.collapse(!0);u.moveEnd(t,n);u.moveStart(t,n);u.select()}}),this};xwi=function(){function n(n,t){t===void 0&&(t="Info");$.post("/JSON/nLog.aspx",{Info:n,Level:t})}function o(t){var h=t.buttons||"#PayPalDiv",o=t.id||"",l=o!=="",v="XWord Info "+(l?"renewal":"account"),y=l?"/Account/Renewal.aspx":"/Account/ThankYou.aspx",p=$(".buttons",h),i=$(".ppComment",h),a="Error",c=t.amount||"20.0",s="unknown";i.html("").hide();paypal.Buttons({createOrder:function(n,t){i.html("Creating order...").show();var u=$("input:checked",h),r=u.val().split(":");return s=r[0],c=r[1],t.order.create({purchase_units:[{amount:{value:c},description:v}]})},onApprove:function(t,h){return h.order.capture().then(function(h){i.html("Processing...").show();var l={payerID:t.payerID,orderID:t.orderID,amount:c,level:s,xwiName:o,email:h.payer.email_address,firstName:h.payer.name.given_name,lastName:h.payer.name.surname,width:screen.availWidth,height:screen.availHeight,ua:navigator!=null?navigator.userAgent:null};return n("Transaction approved for ["+l.firstName+" "+l.lastName+"] as "+s),Cookies.set(u,t.payerID,{expires:14}),Cookies.set(f,t.orderID,{expires:14}),Cookies.set(e,s,{expires:14}),$.post("/Account/Checkout.aspx",$.param($.extend(h,l)),function(n){var t=$.extend(l,n);window.location.href=y+"?"+$.param(t)},"json").fail(function(t){n('Checkout post for "'+o+'" failed: '+t.statusText+r,a);i.html("FAIL: "+t.statusText).show()})})},onCancel:function(){n("PayPal transaction [canceled]");i.html("Transaction canceled").show()},onError:function(t){t.indexOf("navigated")===-1&&(n('Create order for "'+o+'" failed: '+t,a),i.html(t+r).show())}}).render(p[0])}function s(n,t,i){var r=$(".nytStatus");n?r.html("You're special. Your XWord Info account bypasses the standard NYT check."):validateNYT(1).always(function(){validateNYT.IsValid?r.html("You are logged in to your NYT Games Subscription. You can download Across Lite and PDF files from XWord Info."):r.html("You do not appear to be logged in to your NYT Games Subscription.")});$(".nytStatusDlg").dialog({position:{my:t,at:i,of:".nytStatusLink"},buttons:[{text:"OK",click:function(){$(this).dialog("close")}}]})}var t="ckSynd",i="true",u="payerID",f="orderID",e="level",r="<div>Please <a href='mailto:support@xwordinfo.com?subject=PayPal issue'>contact us<\/a>.<\/div>";return{isSyndMode:function(){return Cookies.get(t)===i},setSyndMode:function(){Cookies.set(t,i)},clearSyndMode:function(){Cookies.remove(t)},tooltipsEnabled:function(){return Cookies.get("gridtt")!=="false"},isLocalHost:function(){var n=location.hostname;return n==="localhost"||n==="127.0.0.1"},LoadImg:function(){$("img[data-src]").each(function(){$(this).attr({src:$(this).attr("data-src")})})},nLog:function(t,i){n(t,i)},MakeRoom:function(n){if(n===void 0&&(n=250),Modernizr.localstorage){console.log("xwi.MakeRoom("+n+") called");var i=[],r=0,t;try{for(t in window.localStorage)if(window.localStorage.hasOwnProperty(t)&&t.charCodeAt(0)>="0".charCodeAt(0)&&t.charCodeAt(0)<="9".charCodeAt(0)&&(i[r++]=t,n!==-1&&r>=n))break}catch(u){window.localStorage.clear()}for(t in i)i.hasOwnProperty(t)&&window.localStorage.removeItem(i[t])}},nytStatus:function(n,t,i){return t===void 0&&(t="center bottom"),i===void 0&&(i="right top"),s(n,t,i)},PayPal:function(n){o(n)},unWrap:function(n,t){var i,r,u;t===void 0&&(t=!1);i="";for(r in n)n.hasOwnProperty(r)&&(i.length>0&&(i+=" ~ "),i+=r+"="+n[r]);t?console.log("unWrap: "+i):(u=$("#explode"),u[0]?u.html(i):alert(i))}}}();xwiTT=function(){"use strict";function b(n,t){var i=n.replace(/>.</g,"><").replace(/'rebus'/g,"").replace(/background-color/g,"x");return t&&(i=i.replace(/dblack/g,"").replace(/shape/g,"").replace(/2px solid/g,"1px solid")),i}function c(n){return n.replace(/~0/g,"<table class='thumb'><caption>").replace(/~1/g," - <span class='norm'>").replace(/~2/g,"<span class='normp'>").replace(/~3/g,"<\/span><\/caption><tr><td>").replace(/~4/g,"<td class='black'><\/td>").replace(/~d/g,"<td class='dblack'><\/td>").replace(/~c/g,"<td class='circle'>").replace(/~r/g,"<td class='rebus'>").replace(/~s/g,"<td class='shade'>").replace(/~b/g,"<td style='border-").replace(/~h/g,"<td class='shape'>").replace(/~5/g,"<\/td><\/tr><tr><td>").replace(/~6/g,"<\/td><td>").replace(/~7/g,"<\/tr><tr>").replace(/~e/g,"<\/td><\/tr><\/table>").replace(/~8/g,"<\/td>").replace(/~9/g,"<td>")}function l(n,t,i,r,u){var f="thumb",e;return n=c(n),i&&(t=!0,f+=r?" ttpdf":" ttal",e="<\/caption>",n=n.replace(e," - "+(r?"PDF":"Across Lite")+e)),t&&(f+=" empty",n=b(n,u)),n.replace("thumb",f)}function f(t,i,f){if(r){var a=null,c={my:"left bottom",at:"right top",hide:!1};typeof f===u?(c=f,a=i):typeof i===u?c=i:typeof i===h&&(a=i);$(t,a).tooltip({items:"a",classes:{"ui-tooltip":"ttGrid"},position:{my:c.my,at:c.at},show:{duration:200,delay:200},hide:100,content:function(t){var h=$(this),k=c.hide,et,u,ot,g,it,rt,ut,ct,b;Cookies.get("gridans")==="false"&&(k=!0);var i=h.attr("href").toLowerCase().replace("#","&"),r=null,lt,v=null,f,at=!1,a=!1,ft=!1,y=!1,vt=!1;if(i.indexOf(".pdf")>0&&(ft=!0,y=!0),i.indexOf("var=a")>-1||i.indexOf("acrostic")>-1?(a=!0,at=!0):i.indexOf("var")>-1?a=!0:(i.indexOf(".2.p")>-1||i.indexOf("bonus")>-1)&&(a=!0,i=i.replace(".2","")),et=i.indexOf("date="),u=i.indexOf(".p"),et>-1)r=i.substring(et+5),ot=r.indexOf("&"),ot!==-1&&(r=r.substring(0,ot));else{var st=void 0,d=void 0,ht=void 0;d=h.attr("data-ALDate");d||(g=h.parent(),g&&(st=g.attr("data-date"),d=g.attr("data-ALDate"),ht=g.attr("data-SolDate")));st?r=st:d?(r=d,y=!0,k=!0):ht&&(r=ht,k=!0)}if(!r){var p=void 0,nt=void 0,tt=void 0;if(i.indexOf("bonus")>-1||i.indexOf("daily")>-1||i.indexOf("variety")>-1)p=parseInt(i.substring(u-10,u-6)),nt=parseInt(i.substring(u-5,u-3)),tt=parseInt(i.substring(u-2,u)),r=nt+"/"+tt+"/"+p,y=!0;else if(u>-1){for(var yt=["jan","feb","mar","apr","may","jun","jul","aug","sep","oct","nov","dec"],pt=i.substring(u-7,u-4),w=void 0,w=0;w<12;w+=1)if(pt===yt[w])break;if(w>=12)return h.tooltip({classes:{"ui-tooltip":"ttError"}}),"Can't parse date";nt=w+1;tt=parseInt(i.substring(u-4,u-2),10);p=parseInt(i.substring(u-2,u),10);p+=p>50?1900:2e3;r=nt+"/"+tt+"/"+p;y=!0}}if(r)v=r,a&&(v+="v"),it=r.split("/"),lt=new Date(parseInt(it[2]),parseInt(it[0])-1,parseInt(it[1])),vt=lt<s;else return h.tooltip({classes:{"ui-tooltip":"ttError"}}),"no grid found";if(rt="ttGrid",vt&&(rt+=" ttPSGrid"),o&&(ut="version",ct=0,window.localStorage[ut]&&(ct=Number(window.localStorage[ut])),ct!==e&&(xwi.MakeRoom(-1),window.localStorage[ut]=e),window.localStorage[v]&&(f=window.localStorage[v],f&&f.toLowerCase().indexOf("error")===-1)))return h.tooltip({classes:{"ui-tooltip":rt}}),l(f,k,y,ft,a);b={date:r,type:""};at?b.type="a":a&&(b.type="v");h.addClass(n);$.getJSON("/JSON/ThumbData.aspx",b,function(i){if(h.removeClass(n),i){if(f=i.grid,!f||f.length===0){console.log("*** invalid data from /ThumbData.aspx for "+r+" : "+f);return}if(b.date!==i.date){console.log("*** params.date is %s but data.date is %s",b.date,i.date);return}if(o)try{window.localStorage[v]=f}catch(u){xwi.MakeRoom();window.localStorage[v]=f}h.tooltip({classes:{"ui-tooltip":rt+" ttAjaxGrid"}});t(l(f,k,y,ft,a))}})}}).click(function(){$(this).tooltip("close")})}}function k(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function t(n,t,i){return n.replace(new RegExp(k(t),"g"),i)}function d(n,i){for(var r=0;r<i.length;r++)n=t(n,i.charAt(r),"");return n}function a(n){return n=t(n,"é","e"),n=t(n,"%c3%a9","e"),n=t(n,"ñ","n"),n=t(n,"%c3%b1","n"),d(n,"+ .'")+".jpg"}function v(n,t){r&&$(n,t).tooltip({items:"a",classes:{"ui-tooltip":"ttCon"},show:{duration:200,delay:100},hide:100,position:{my:"left bottom",at:"right top"},content:function(){var n=$(this).attr("href"),t=n.indexOf("author=");return t<0?"?":'<img src="/images/cons/'+a(n.substring(t+7))+'" />'}}).click(function(){$(this).tooltip("close")})}function g(t,u){!r||$(document).width()<435||$(t,u).tooltip({items:"a",classes:{"ui-tooltip":"ttCard"},show:{duration:200,delay:100},hide:100,position:{my:"left bottom",at:"right top"},content:function(t){var s=$(this).attr("href"),h=s.indexOf("author="),f=$(this),r,e,o,u;if(h<0)return"?";if(r=s.substring(h+7),r.toLowerCase()==="unknown"||r.indexOf("+and+")>0)return"";if(e="tt"+r,i&&(o=window.sessionStorage[e],o))return o;f.addClass(n);$.getJSON("/JSON/BBCardData.aspx",{author:r},function(r){if(f.removeClass(n),i)try{window.sessionStorage[e]=r.BBCard}catch(u){}t(r.BBCard)});u=r.replace(/\+/g," ");u=decodeURIComponent(u);var c=u.length>21?"bbName2":"bbName",l="<div class='"+c+"'>"+u+"<\/div>",v=f.hasClass("hasphoto")?a(u):"unknown.jpg",y="<div class='photo'><img src='/images/cons/"+v+"' /><\/div>";return"<div class='bbCard bbTemp'><div class='bbInfo'>"+l+"<div class='wait'><img src='/images/ajax-loader3.gif' /><\/div><\/div>"+y+"<\/div>"}}).click(function(){$(this).tooltip("close")})}function nt(t,r){$(t,r).tooltip({items:"a",classes:{"ui-tooltip":"ginfo"},show:{duration:200,delay:100},hide:100,position:{my:"left bottom",at:"right+1 top-1"},content:function(t){var o=$(this),a=new Date,s=a.getTime(),e,h=$(this).attr("href"),r=h.indexOf("name="),u,f,c,l;if(r<0)return"?";if(u=h.substring(r+5),i&&window.sessionStorage[u]){if(f=window.sessionStorage[u],r=f.indexOf("~"),r<0)return"??";if(c=parseInt(f.substring(0,r)),l=(s-c)/1e3,l<w)return f.substring(r+1)}o.addClass(n);$.getJSON("/JSON/InfoGrid.aspx",{name:u},function(r){(o.removeClass(n),r)&&(e=r.InfoGrid,i&&(window.sessionStorage[u]=s+"~"+e),t(e))})}}).click(function(){$(this).tooltip("close")})}function y(){var n=$("[data-tdate], [data-vdate], [data-adate]");n.hover(function(){$("body").css("cursor","pointer")},function(){$("body").css("cursor","default")});n.click(function(){var r=$(this).attr("data-vdate"),u=$(this).attr("data-adate"),f=$(this).attr("data-tdate"),t,n,i,e;if(r)n=r,t="/Variety";else if(u)n=u,t="/Acrostic";else if(f)n=f,i=n.split("/"),e=new Date(parseInt(i[2]),parseInt(i[0])-1,parseInt(i[1])),t=e<s?"/PS":"/Crossword";else return;document.location.href=t+"?date="+n})}function p(n,t,i){if(y(),r){var s="right top",f={my:"left bottom",at:s},e=null,o=!1;typeof i===u?(e=t,f=i,o=!0):typeof t===u?(f=t,o=!0):typeof t===h&&(e=t);$(n,e).tooltip({items:"table,img,a",classes:{"ui-tooltip":"ttLite gold"},show:{duration:200,delay:100},hide:100,content:function(){var n=$(this),t,i,r,u,e;return(o?(t=f.my,i=f.at):(t=n.is("table")?"right-1 bottom+4":n.is("img")?"right bottom+2":"left-4 bottom+4",i=s),n.tooltip({position:{my:t,at:i,collision:"flipfit"}}),r=n.attr("data-ttCon"),r)?r:(u=n.attr("title"),u)?u:(e=n.attr("alt"),e?e:void 0)}}).click(function(){$(this).tooltip("close")})}}var e=23,o=Modernizr.localstorage,i=Modernizr.sessionstorage,r=xwi.tooltipsEnabled(),s=new Date(1993,10,21),h="string",u="object",w=60,n="waiting";return{Grid:function(n,t,i){f(n,t,i)},BBCard:function(n,t){g(n,t)},ConPhoto:function(n,t){v(n,t)},Title:function(n,t,i){p(n,t,i)},TDates:function(){return y()},Expand:function(n){return c(n)},InfoGrid:function(n,t){nt(n,t)},GoThumbs:function(){f("a.dtlink");f("a.hidelink",{hide:!0});f("a[href*='?date']",".notepad, .datelist");p("table.thumb");v("a.hasphoto");$("p",".notepad").each(function(){$(this).text().length===0&&$(this).hide()})}}}()