var sjhs={};function isMember(b,a){var c=b.className;if(!c)return false;if(c==a)return true;var d=/\s+/;if(!d.test(c))return false;c=c.split(d);for(d=0;d<c.length;d++)if(c[d]==a)return true;return false}Spry.Utils.addLoadListener(function(){for(var b=document.getElementsByTagName("a"),a=0;a<b.length;a++)if(isMember(b[a],"ContactSJHS"))b[a].href="mailto:ContactUs@StJohnHistoricalSociety.org"});
function LargerImage(){return"Galleries/"+dsGalleries.getCurrentRow()["@base"]+"XLarge/"+dsPhotos.getCurrentRow()["@xlpath"]}function getTitle(){var b=dsPhotos.getCurrentRow(),a="";if(b.title.length>0)a=a+"Title: "+b.title;if(b.date.length>0)a=a+" Date: "+b.date;if(b.creator.length>0)a=a+" Creator: "+b.creator;return a}msProgIDs=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0"];
CreateXMLHttpRequest=function(){var b=null;try{if(window.ActiveXObject)for(;!b&&msProgIDs.length;){try{b=new ActiveXObject(msProgIDs[0])}catch(a){b=null}b||msProgIDs.splice(0,1)}if(!b&&window.XMLHttpRequest)b=new XMLHttpRequest}catch(c){b=null}return b};function parseQueryString(){for(var b={},a=location.search.substring(1).split("&"),c=0;c<a.length;c++){var d=a[c].split("=");b[unescape(d[0])]=d.length==2?unescape(d[1]):undefined}return b}
Spry.Effect.FadeBlind=function(b,a){Spry.Effect.Cluster.call(this,a);this.name="FadeBlind";var c=1E3,d=false,e=100,f=0;if(a){if(a.duration)c=a.duration;if(a.toggle)d=a.toggle;if(a.from)e=a.from;if(a.to)f=a.to}a={duration:c,from:e,to:f,toggle:d};this.addParallelEffect(new Spry.Effect.Fade(b,a));a={duration:c,from:e,to:f,toggle:d};this.addParallelEffect(new Spry.Effect.Blind(b,a))};Spry.Effect.FadeBlind.prototype=new Spry.Effect.Cluster;Spry.Effect.FadeBlind.prototype.constructor=Spry.Effect.FadeBlind;
var offsetxpoint=-80,offsetypoint=20,enabletip=false,tipobj="",ie=false,ns6=false;function ietruebody(){return document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body}
function positiontip(b){if(enabletip){var a=ns6?b.pageX:event.clientX+ietruebody().scrollLeft,c=ns6?b.pageY:event.clientY+ietruebody().scrollTop,d=ie&&!window.opera?ietruebody().clientWidth-event.clientX-offsetxpoint:window.innerWidth-b.clientX-offsetxpoint-20,e=ie&&!window.opera?ietruebody().clientHeight-event.clientY-offsetypoint:window.innerHeight-b.clientY-offsetypoint-20,f=offsetxpoint<0?offsetxpoint*-1:-1000;tipobj.style.left=d<tipobj.offsetWidth?ie?ietruebody().scrollLeft+event.clientX-tipobj.offsetWidth+
"px":window.pageXOffset+b.clientX-tipobj.offsetWidth+"px":a<f?"5px":a+offsetxpoint+"px";tipobj.style.top=e<tipobj.offsetHeight?ie?ietruebody().scrollTop+event.clientY-tipobj.offsetHeight-offsetypoint+"px":window.pageYOffset+b.clientY-tipobj.offsetHeight-offsetypoint+"px":c+offsetypoint+"px";tipobj.style.visibility="visible"}}
function InitToolTip(){ie=document.all;ns6=document.getElementById&&!document.all;if(ie||ns6)tipobj=document.all?document.all.dhtmltooltip:document.getElementById?document.getElementById("dhtmltooltip"):"";document.onmousemove=positiontip}
function ShowToolTip(b,a,c){if(ns6||ie){if(typeof b==="undefined"||!b||b==""||b==="undefined")return false;if(typeof c!=="undefined")tipobj.style.width=c+"px";if(typeof a!=="undefined"&&a!="")tipobj.style.backgroundColor=a;tipobj.innerHTML=b;enabletip=true}return false}function HideToolTip(){if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor="";tipobj.style.width=""}}
function getUrlVariables(){for(var b=[],a,c=window.location.href.slice(window.location.href.indexOf("?")+1).split("&"),d=0;d<c.length;d++){a=c[d].split("=");b.push(a[0]);b[a[0]]=a[1]}return b}sjhs.urlVariables=getUrlVariables();var LOG=0,INFO=1,WARNING=2,ERROR=3;function consoleTrace(b){this._canLog=true;this.traceLevel=typeof b=="number"?b:ERROR;this.LOG=LOG;this.INFO=INFO;this.WARNING=WARNING;this.ERROR=ERROR}
consoleTrace.prototype.assert=function(b){window.console.assert.apply(window.console,b,arguments)};
consoleTrace.prototype.log=function(b){if(this._canLog){switch(b){case "LOG":if(this.LOG<this.traceLevel)return;else break;case "INFO":if(this.INFO<this.traceLevel)return;else break;case "WARNING":if(this.WARNING<this.traceLevel)return;else break;default:break}try{var a=Array.prototype.slice.apply(arguments,[1]),c=new Date,d=c.getHours()+":"+c.getMinutes()+":"+c.getSeconds()+"."+c.getMilliseconds();a[0]=d+" - "+a[0];switch(b){case "LOG":window.console.log.apply(window.console,a);break;case "INFO":window.console.info.apply(window.console,
a);break;case "WARN":window.console.warn.apply(window.console,a);break;default:window.console.error.apply(window.console,a)}}catch(e){window.console||(_canLog=false)}}};function consoleDebug(b){this._canLog=true;this.debugLevel=b||0;this.LOG=0;this.INFO=1;this.WARNING=2;this.ERROR=3}consoleDebug.prototype.assert=function(b){window.console.assert.apply(window.console,b,arguments)};
consoleDebug.prototype.errorMsg=function(){if(this._canLog)try{var b=arguments,a=new Date,c=a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"."+a.getMilliseconds();b[0]=c+" - "+b[0];window.console.error.apply(window.console,b)}catch(d){window.console||(_canLog=false)}};
consoleDebug.prototype.infoMsg=function(){if(this._canLog)if(!(this.debugLevel<this.INFO))try{var b=arguments,a=new Date,c=a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"."+a.getMilliseconds();b[0]=c+" - "+b[0];window.console.info.apply(window.console,b)}catch(d){window.console||(_canLog=false)}};
consoleDebug.prototype.logMsg=function(){if(this._canLog)if(!(this.debugLevel<this.LOG))try{var b=arguments,a=new Date,c=a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"."+a.getMilliseconds();b[0]=c+" - "+b[0];window.console.log.apply(window.console,b)}catch(d){window.console||(_canLog=false)}};
consoleDebug.prototype.warningMsg=function(){if(this._canLog)if(!(this.debugLevel<this.WARNING))try{var b=arguments,a=new Date,c=a.getHours()+":"+a.getMinutes()+":"+a.getSeconds()+"."+a.getMilliseconds();b[0]=c+" - "+b[0];window.console.warn.apply(window.console,b)}catch(d){window.console||(_canLog=false)}};
