
try{var bizdir_yourInfo_autofill="For us to contact you...";var bizdir_description_autofill="Please enter a brief (800 characters or less) description of the organization (text only, no HTML, line breaks, or formatting)...";var bizdir_cat_description_autofill="Please enter a brief (800 characters or less) description of the category (text only, no HTML, line breaks, or formatting)...";var bizdir_keywords_autofill="Words for the organization to be found by...";var bizdir_companyInfo_autofill="To be displayed with your listing...";var bizdir_geoInfo_autofill="For geographical searching...";var bizdir_categoryInfo_autofill="The name of the category...";function bizdir_clearAutoFill(id,type){if(id==null||id==""||type==null||type=="")
return;var input=document.getElementById(id);if(input!=null&&type!=null)
switch(type){case"YourInfo":if(input.value==bizdir_yourInfo_autofill)input.value="";input.style.color="#000000";break;case"Description":if(input.value==bizdir_description_autofill)input.value="";input.style.color="#000000";break;case"Cat_Description":if(input.value==bizdir_cat_description_autofill)input.value="";input.style.color="#000000";break;case"Keywords":if(input.value==bizdir_keywords_autofill)input.value="";input.style.color="#000000";break;case"CompanyInfo":if(input.value==bizdir_companyInfo_autofill)input.value="";input.style.color="#000000";break;case"GeoInfo":if(input.value==bizdir_geoInfo_autofill)input.value="";input.style.color="#000000";break;case"CategoryInfo":if(input.value==bizdir_categoryInfo_autofill)input.value="";input.style.color="#000000";break;}}
function bizdir_clearAllAutoFill(){var all_inputs=document.getElementsByTagName('input');for(var i=0;i<all_inputs.length;i++){var input=all_inputs[i];switch(input.getAttribute('bizdir_autofill')){case'YourInfo':if(input.value==bizdir_yourInfo_autofill||input.value==""||input.value==null){input.value="";input.style.color="#000000";}
break;case'Keywords':if(input.value==bizdir_keywords_autofill||input.value==""||input.value==null){input.value="";input.style.color="#000000";}
break;case'CompanyInfo':if(input.value==bizdir_companyInfo_autofill||input.value==""||input.value==null){input.value="";input.style.color="#000000";}
break;case'GeoInfo':if(input.value==bizdir_geoInfo_autofill||input.value==""||input.value==null){input.value="";input.style.color="#000000";}
break;case'CategoryInfo':if(input.value==bizdir_categoryInfo_autofill||input.value==""||input.value==null){input.value="";input.style.color="#000000";}
break;}}
var all_textareas=document.getElementsByTagName('textarea');for(var i=0;i<all_textareas.length;i++){var input=all_textareas[i];if(input.getAttribute('bizdir_autofill')=='Description'&&(input.value==""||input.value==null||input.value==bizdir_description_autofill)){input.style.color='#000000';input.value="";}else if(input.getAttribute('bizdir_autofill')=='Cat_Description'&&(input.value==""||input.value==null||input.value==bizdir_cat_description_autofill)){input.style.color='#000000';input.value="";}}}
function bizdir_populateAutofill(){var override=arguments[0]==true;var all_inputs=document.getElementsByTagName('input');for(var i=0;i<all_inputs.length;i++){var input=all_inputs[i];switch(input.getAttribute('bizdir_autofill')){case'YourInfo':if(override||input.value==bizdir_yourInfo_autofill||input.value==""||input.value==null){input.value=bizdir_yourInfo_autofill;input.style.color="#999999";}
break;case'Keywords':if(override||input.value==bizdir_keywords_autofill||input.value==""||input.value==null){input.value=bizdir_keywords_autofill;input.style.color="#999999";}
break;case'CompanyInfo':if(override||input.value==bizdir_companyInfo_autofill||input.value==""||input.value==null){input.value=bizdir_companyInfo_autofill;input.style.color="#999999";}
break;case'GeoInfo':if(override||input.value==bizdir_geoInfo_autofill||input.value==""||input.value==null){input.value=bizdir_geoInfo_autofill;input.style.color="#999999";}
break;case'CategoryInfo':if(override||input.value==bizdir_categoryInfo_autofill||input.value==""||input.value==null){input.value=bizdir_categoryInfo_autofill;input.style.color="#999999";}
break;}}
var all_textareas=document.getElementsByTagName('textarea');for(var i=0;i<all_textareas.length;i++){var input=all_textareas[i];if(input.getAttribute('bizdir_autofill')=='Description'&&(input.value==""||input.value==null||input.value==bizdir_description_autofill||override)){input.style.color='#999999';input.value=bizdir_description_autofill;}else if(input.getAttribute('bizdir_autofill')=='Cat_Description'&&(input.value==""||input.value==null||input.value==bizdir_cat_description_autofill||override)){input.style.color='#999999';input.value=bizdir_cat_description_autofill;}}}
function bizdir_onload(){bizdir_populateAutofill();var bizdir_submit=document.getElementById("bizdir_submit")
if(bizdir_submit!=null)
bizdir_submit.disabled=false;}
window.onload=bizdir_onload;function clearMessage(){var messages=document.getElementById('bizdir_messages');if(messages!=null){messages.className='';messages.innerHTML='';}}}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/business-directory//main.js?ver=3.3.1'>\x3c/script>")}try{(function(a,b){function cu(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cr(a){if(!cg[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){ch||(ch=c.createElement("iframe"),ch.frameBorder=ch.width=ch.height=0),b.appendChild(ch);if(!ci||!ch.createElement)ci=(ch.contentWindow||ch.contentDocument).document,ci.write((c.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),ci.close();d=ci.createElement(a),ci.body.appendChild(d),e=f.css(d,"display"),b.removeChild(ch)}cg[a]=e}return cg[a]}function cq(a,b){var c={};f.each(cm.concat.apply([],cm.slice(0,b)),function(){c[this]=a});return c}function cp(){cn=b}function co(){setTimeout(cp,0);return cn=f.now()}function cf(){try{return new a.ActiveXObject("Microsoft.XMLHTTP")}catch(b){}}function ce(){try{return new a.XMLHttpRequest}catch(b){}}function b$(a,c){a.dataFilter&&(c=a.dataFilter(c,a.dataType));var d=a.dataTypes,e={},g,h,i=d.length,j,k=d[0],l,m,n,o,p;for(g=1;g<i;g++){if(g===1)for(h in a.converters)typeof h=="string"&&(e[h.toLowerCase()]=a.converters[h]);l=k,k=d[g];if(k==="*")k=l;else if(l!=="*"&&l!==k){m=l+" "+k,n=e[m]||e["* "+k];if(!n){p=b;for(o in e){j=o.split(" ");if(j[0]===l||j[0]==="*"){p=e[j[1]+" "+k];if(p){o=e[o],o===!0?n=p:p===!0&&(n=o);break}}}}!n&&!p&&f.error("No conversion from "+m.replace(" "," to ")),n!==!0&&(c=n?n(c):p(o(c)))}}return c}function bZ(a,c,d){var e=a.contents,f=a.dataTypes,g=a.responseFields,h,i,j,k;for(i in g)i in d&&(c[g[i]]=d[i]);while(f[0]==="*")f.shift(),h===b&&(h=a.mimeType||c.getResponseHeader("content-type"));if(h)for(i in e)if(e[i]&&e[i].test(h)){f.unshift(i);break}if(f[0]in d)j=f[0];else{for(i in d){if(!f[0]||a.converters[i+" "+f[0]]){j=i;break}k||(k=i)}j=j||k}if(j){j!==f[0]&&f.unshift(j);return d[j]}}function bY(a,b,c,d){if(f.isArray(b))f.each(b,function(b,e){c||bA.test(a)?d(a,e):bY(a+"["+(typeof e=="object"||f.isArray(e)?b:"")+"]",e,c,d)});else if(!c&&b!=null&&typeof b=="object")for(var e in b)bY(a+"["+e+"]",b[e],c,d);else d(a,b)}function bX(a,c){var d,e,g=f.ajaxSettings.flatOptions||{};for(d in c)c[d]!==b&&((g[d]?a:e||(e={}))[d]=c[d]);e&&f.extend(!0,a,e)}function bW(a,c,d,e,f,g){f=f||c.dataTypes[0],g=g||{},g[f]=!0;var h=a[f],i=0,j=h?h.length:0,k=a===bP,l;for(;i<j&&(k||!l);i++)l=h[i](c,d,e),typeof l=="string"&&(!k||g[l]?l=b:(c.dataTypes.unshift(l),l=bW(a,c,d,e,l,g)));(k||!l)&&!g["*"]&&(l=bW(a,c,d,e,"*",g));return l}function bV(a){return function(b,c){typeof b!="string"&&(c=b,b="*");if(f.isFunction(c)){var d=b.toLowerCase().split(bL),e=0,g=d.length,h,i,j;for(;e<g;e++)h=d[e],j=/^\+/.test(h),j&&(h=h.substr(1)||"*"),i=a[h]=a[h]||[],i[j?"unshift":"push"](c)}}}function by(a,b,c){var d=b==="width"?a.offsetWidth:a.offsetHeight,e=b==="width"?bt:bu;if(d>0){c!=="border"&&f.each(e,function(){c||(d-=parseFloat(f.css(a,"padding"+this))||0),c==="margin"?d+=parseFloat(f.css(a,c+this))||0:d-=parseFloat(f.css(a,"border"+this+"Width"))||0});return d+"px"}d=bv(a,b,b);if(d<0||d==null)d=a.style[b]||0;d=parseFloat(d)||0,c&&f.each(e,function(){d+=parseFloat(f.css(a,"padding"+this))||0,c!=="padding"&&(d+=parseFloat(f.css(a,"border"+this+"Width"))||0),c==="margin"&&(d+=parseFloat(f.css(a,c+this))||0)});return d+"px"}function bl(a,b){b.src?f.ajax({url:b.src,async:!1,dataType:"script"}):f.globalEval((b.text||b.textContent||b.innerHTML||"").replace(bd,"/*$0*/")),b.parentNode&&b.parentNode.removeChild(b)}function bk(a){f.nodeName(a,"input")?bj(a):"getElementsByTagName"in a&&f.grep(a.getElementsByTagName("input"),bj)}function bj(a){if(a.type==="checkbox"||a.type==="radio")a.defaultChecked=a.checked}function bi(a){return"getElementsByTagName"in a?a.getElementsByTagName("*"):"querySelectorAll"in a?a.querySelectorAll("*"):[]}function bh(a,b){var c;if(b.nodeType===1){b.clearAttributes&&b.clearAttributes(),b.mergeAttributes&&b.mergeAttributes(a),c=b.nodeName.toLowerCase();if(c==="object")b.outerHTML=a.outerHTML;else if(c!=="input"||a.type!=="checkbox"&&a.type!=="radio"){if(c==="option")b.selected=a.defaultSelected;else if(c==="input"||c==="textarea")b.defaultValue=a.defaultValue}else a.checked&&(b.defaultChecked=b.checked=a.checked),b.value!==a.value&&(b.value=a.value);b.removeAttribute(f.expando)}}function bg(a,b){if(b.nodeType===1&&!!f.hasData(a)){var c=f.expando,d=f.data(a),e=f.data(b,d);if(d=d[c]){var g=d.events;e=e[c]=f.extend({},d);if(g){delete e.handle,e.events={};for(var h in g)for(var i=0,j=g[h].length;i<j;i++)f.event.add(b,h+(g[h][i].namespace?".":"")+g[h][i].namespace,g[h][i],g[h][i].data)}}}}function bf(a,b){return f.nodeName(a,"table")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function V(a,b,c){b=b||0;if(f.isFunction(b))return f.grep(a,function(a,d){var e=!!b.call(a,d,a);return e===c});if(b.nodeType)return f.grep(a,function(a,d){return a===b===c});if(typeof b=="string"){var d=f.grep(a,function(a){return a.nodeType===1});if(Q.test(b))return f.filter(b,d,!c);b=f.filter(b,d)}return f.grep(a,function(a,d){return f.inArray(a,b)>=0===c})}function U(a){return!a||!a.parentNode||a.parentNode.nodeType===11}function M(a,b){return(a&&a!=="*"?a+".":"")+b.replace(y,"`").replace(z,"&")}function L(a){var b,c,d,e,g,h,i,j,k,l,m,n,o,p=[],q=[],r=f._data(this,"events");if(!(a.liveFired===this||!r||!r.live||a.target.disabled||a.button&&a.type==="click")){a.namespace&&(n=new RegExp("(^|\\.)"+a.namespace.split(".").join("\\.(?:.*\\.)?")+"(\\.|$)")),a.liveFired=this;var s=r.live.slice(0);for(i=0;i<s.length;i++)g=s[i],g.origType.replace(w,"")===a.type?q.push(g.selector):s.splice(i--,1);e=f(a.target).closest(q,a.currentTarget);for(j=0,k=e.length;j<k;j++){m=e[j];for(i=0;i<s.length;i++){g=s[i];if(m.selector===g.selector&&(!n||n.test(g.namespace))&&!m.elem.disabled){h=m.elem,d=null;if(g.preType==="mouseenter"||g.preType==="mouseleave")a.type=g.preType,d=f(a.relatedTarget).closest(g.selector)[0],d&&f.contains(h,d)&&(d=h);(!d||d!==h)&&p.push({elem:h,handleObj:g,level:m.level})}}}for(j=0,k=p.length;j<k;j++){e=p[j];if(c&&e.level>c)break;a.currentTarget=e.elem,a.data=e.handleObj.data,a.handleObj=e.handleObj,o=e.handleObj.origHandler.apply(e.elem,arguments);if(o===!1||a.isPropagationStopped()){c=e.level,o===!1&&(b=!1);if(a.isImmediatePropagationStopped())break}}return b}}function J(a,c,d){var e=f.extend({},d[0]);e.type=a,e.originalEvent={},e.liveFired=b,f.event.handle.call(c,e),e.isDefaultPrevented()&&d[0].preventDefault()}function D(){return!0}function C(){return!1}function m(a,c,d){var e=c+"defer",g=c+"queue",h=c+"mark",i=f.data(a,e,b,!0);i&&(d==="queue"||!f.data(a,g,b,!0))&&(d==="mark"||!f.data(a,h,b,!0))&&setTimeout(function(){!f.data(a,g,b,!0)&&!f.data(a,h,b,!0)&&(f.removeData(a,e,!0),i.resolve())},0)}function l(a){for(var b in a)if(b!=="toJSON")return!1;return!0}function k(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(j,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d==="null"?null:f.isNaN(d)?i.test(d)?f.parseJSON(d):d:parseFloat(d)}catch(g){}f.data(a,c,d)}else d=b}return d}var c=a.document,d=a.navigator,e=a.location,f=function(){function K(){if(!e.isReady){try{c.documentElement.doScroll("left")}catch(a){setTimeout(K,1);return}e.ready()}}var e=function(a,b){return new e.fn.init(a,b,h)},f=a.jQuery,g=a.$,h,i=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,j=/\S/,k=/^\s+/,l=/\s+$/,m=/\d/,n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,o=/^[\],:{}\s]*$/,p=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,q=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,r=/(?:^|:|,)(?:\s*\[)+/g,s=/(webkit)[ \/]([\w.]+)/,t=/(opera)(?:.*version)?[ \/]([\w.]+)/,u=/(msie) ([\w.]+)/,v=/(mozilla)(?:.*? rv:([\w.]+))?/,w=/-([a-z]|[0-9])/ig,x=/^-ms-/,y=function(a,b){return(b+"").toUpperCase()},z=d.userAgent,A,B,C,D=Object.prototype.toString,E=Object.prototype.hasOwnProperty,F=Array.prototype.push,G=Array.prototype.slice,H=String.prototype.trim,I=Array.prototype.indexOf,J={};e.fn=e.prototype={constructor:e,init:function(a,d,f){var g,h,j,k;if(!a)return this;if(a.nodeType){this.context=this[0]=a,this.length=1;return this}if(a==="body"&&!d&&c.body){this.context=c,this[0]=c.body,this.selector=a,this.length=1;return this}if(typeof a=="string"){a.charAt(0)!=="<"||a.charAt(a.length-1)!==">"||a.length<3?g=i.exec(a):g=[null,a,null];if(g&&(g[1]||!d)){if(g[1]){d=d instanceof e?d[0]:d,k=d?d.ownerDocument||d:c,j=n.exec(a),j?e.isPlainObject(d)?(a=[c.createElement(j[1])],e.fn.attr.call(a,d,!0)):a=[k.createElement(j[1])]:(j=e.buildFragment([g[1]],[k]),a=(j.cacheable?e.clone(j.fragment):j.fragment).childNodes);return e.merge(this,a)}h=c.getElementById(g[2]);if(h&&h.parentNode){if(h.id!==g[2])return f.find(a);this.length=1,this[0]=h}this.context=c,this.selector=a;return this}return!d||d.jquery?(d||f).find(a):this.constructor(d).find(a)}if(e.isFunction(a))return f.ready(a);a.selector!==b&&(this.selector=a.selector,this.context=a.context);return e.makeArray(a,this)},selector:"",jquery:"1.6.4",length:0,size:function(){return this.length},toArray:function(){return G.call(this,0)},get:function(a){return a==null?this.toArray():a<0?this[this.length+a]:this[a]},pushStack:function(a,b,c){var d=this.constructor();e.isArray(a)?F.apply(d,a):e.merge(d,a),d.prevObject=this,d.context=this.context,b==="find"?d.selector=this.selector+(this.selector?" ":"")+c:b&&(d.selector=this.selector+"."+b+"("+c+")");return d},each:function(a,b){return e.each(this,a,b)},ready:function(a){e.bindReady(),B.done(a);return this},eq:function(a){return a===-1?this.slice(a):this.slice(a,+a+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(G.apply(this,arguments),"slice",G.call(arguments).join(","))},map:function(a){return this.pushStack(e.map(this,function(b,c){return a.call(b,c,b)}))},end:function(){return this.prevObject||this.constructor(null)},push:F,sort:[].sort,splice:[].splice},e.fn.init.prototype=e.fn,e.extend=e.fn.extend=function(){var a,c,d,f,g,h,i=arguments[0]||{},j=1,k=arguments.length,l=!1;typeof i=="boolean"&&(l=i,i=arguments[1]||{},j=2),typeof i!="object"&&!e.isFunction(i)&&(i={}),k===j&&(i=this,--j);for(;j<k;j++)if((a=arguments[j])!=null)for(c in a){d=i[c],f=a[c];if(i===f)continue;l&&f&&(e.isPlainObject(f)||(g=e.isArray(f)))?(g?(g=!1,h=d&&e.isArray(d)?d:[]):h=d&&e.isPlainObject(d)?d:{},i[c]=e.extend(l,h,f)):f!==b&&(i[c]=f)}return i},e.extend({noConflict:function(b){a.$===e&&(a.$=g),b&&a.jQuery===e&&(a.jQuery=f);return e},isReady:!1,readyWait:1,holdReady:function(a){a?e.readyWait++:e.ready(!0)},ready:function(a){if(a===!0&&!--e.readyWait||a!==!0&&!e.isReady){if(!c.body)return setTimeout(e.ready,1);e.isReady=!0;if(a!==!0&&--e.readyWait>0)return;B.resolveWith(c,[e]),e.fn.trigger&&e(c).trigger("ready").unbind("ready")}},bindReady:function(){if(!B){B=e._Deferred();if(c.readyState==="complete")return setTimeout(e.ready,1);if(c.addEventListener)c.addEventListener("DOMContentLoaded",C,!1),a.addEventListener("load",e.ready,!1);else if(c.attachEvent){c.attachEvent("onreadystatechange",C),a.attachEvent("onload",e.ready);var b=!1;try{b=a.frameElement==null}catch(d){}c.documentElement.doScroll&&b&&K()}}},isFunction:function(a){return e.type(a)==="function"},isArray:Array.isArray||function(a){return e.type(a)==="array"},isWindow:function(a){return a&&typeof a=="object"&&"setInterval"in a},isNaN:function(a){return a==null||!m.test(a)||isNaN(a)},type:function(a){return a==null?String(a):J[D.call(a)]||"object"},isPlainObject:function(a){if(!a||e.type(a)!=="object"||a.nodeType||e.isWindow(a))return!1;try{if(a.constructor&&!E.call(a,"constructor")&&!E.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}var d;for(d in a);return d===b||E.call(a,d)},isEmptyObject:function(a){for(var b in a)return!1;return!0},error:function(a){throw a},parseJSON:function(b){if(typeof b!="string"||!b)return null;b=e.trim(b);if(a.JSON&&a.JSON.parse)return a.JSON.parse(b);if(o.test(b.replace(p,"@").replace(q,"]").replace(r,"")))return(new Function("return "+b))();e.error("Invalid JSON: "+b)},parseXML:function(c){var d,f;try{a.DOMParser?(f=new DOMParser,d=f.parseFromString(c,"text/xml")):(d=new ActiveXObject("Microsoft.XMLDOM"),d.async="false",d.loadXML(c))}catch(g){d=b}(!d||!d.documentElement||d.getElementsByTagName("parsererror").length)&&e.error("Invalid XML: "+c);return d},noop:function(){},globalEval:function(b){b&&j.test(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(x,"ms-").replace(w,y)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toUpperCase()===b.toUpperCase()},each:function(a,c,d){var f,g=0,h=a.length,i=h===b||e.isFunction(a);if(d){if(i){for(f in a)if(c.apply(a[f],d)===!1)break}else for(;g<h;)if(c.apply(a[g++],d)===!1)break}else if(i){for(f in a)if(c.call(a[f],f,a[f])===!1)break}else for(;g<h;)if(c.call(a[g],g,a[g++])===!1)break;return a},trim:H?function(a){return a==null?"":H.call(a)}:function(a){return a==null?"":(a+"").replace(k,"").replace(l,"")},makeArray:function(a,b){var c=b||[];if(a!=null){var d=e.type(a);a.length==null||d==="string"||d==="function"||d==="regexp"||e.isWindow(a)?F.call(c,a):e.merge(c,a)}return c},inArray:function(a,b){if(!b)return-1;if(I)return I.call(b,a);for(var c=0,d=b.length;c<d;c++)if(b[c]===a)return c;return-1},merge:function(a,c){var d=a.length,e=0;if(typeof c.length=="number")for(var f=c.length;e<f;e++)a[d++]=c[e];else while(c[e]!==b)a[d++]=c[e++];a.length=d;return a},grep:function(a,b,c){var d=[],e;c=!!c;for(var f=0,g=a.length;f<g;f++)e=!!b(a[f],f),c!==e&&d.push(a[f]);return d},map:function(a,c,d){var f,g,h=[],i=0,j=a.length,k=a instanceof e||j!==b&&typeof j=="number"&&(j>0&&a[0]&&a[j-1]||j===0||e.isArray(a));if(k)for(;i<j;i++)f=c(a[i],i,d),f!=null&&(h[h.length]=f);else for(g in a)f=c(a[g],g,d),f!=null&&(h[h.length]=f);return h.concat.apply([],h)},guid:1,proxy:function(a,c){if(typeof c=="string"){var d=a[c];c=a,a=d}if(!e.isFunction(a))return b;var f=G.call(arguments,2),g=function(){return a.apply(c,f.concat(G.call(arguments)))};g.guid=a.guid=a.guid||g.guid||e.guid++;return g},access:function(a,c,d,f,g,h){var i=a.length;if(typeof c=="object"){for(var j in c)e.access(a,j,c[j],f,g,d);return a}if(d!==b){f=!h&&f&&e.isFunction(d);for(var k=0;k<i;k++)g(a[k],c,f?d.call(a[k],k,g(a[k],c)):d,h);return a}return i?g(a[0],c):b},now:function(){return(new Date).getTime()},uaMatch:function(a){a=a.toLowerCase();var b=s.exec(a)||t.exec(a)||u.exec(a)||a.indexOf("compatible")<0&&v.exec(a)||[];return{browser:b[1]||"",version:b[2]||"0"}},sub:function(){function a(b,c){return new a.fn.init(b,c)}e.extend(!0,a,this),a.superclass=this,a.fn=a.prototype=this(),a.fn.constructor=a,a.sub=this.sub,a.fn.init=function(d,f){f&&f instanceof e&&!(f instanceof a)&&(f=a(f));return e.fn.init.call(this,d,f,b)},a.fn.init.prototype=a.fn;var b=a(c);return a},browser:{}}),e.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(a,b){J["[object "+b+"]"]=b.toLowerCase()}),A=e.uaMatch(z),A.browser&&(e.browser[A.browser]=!0,e.browser.version=A.version),e.browser.webkit&&(e.browser.safari=!0),j.test(" ")&&(k=/^[\s\xA0]+/,l=/[\s\xA0]+$/),h=e(c),c.addEventListener?C=function(){c.removeEventListener("DOMContentLoaded",C,!1),e.ready()}:c.attachEvent&&(C=function(){c.readyState==="complete"&&(c.detachEvent("onreadystatechange",C),e.ready())});return e}(),g="done fail isResolved isRejected promise then always pipe".split(" "),h=[].slice;f.extend({_Deferred:function(){var a=[],b,c,d,e={done:function(){if(!d){var c=arguments,g,h,i,j,k;b&&(k=b,b=0);for(g=0,h=c.length;g<h;g++)i=c[g],j=f.type(i),j==="array"?e.done.apply(e,i):j==="function"&&a.push(i);k&&e.resolveWith(k[0],k[1])}return this},resolveWith:function(e,f){if(!d&&!b&&!c){f=f||[],c=1;try{while(a[0])a.shift().apply(e,f)}finally{b=[e,f],c=0}}return this},resolve:function(){e.resolveWith(this,arguments);return this},isResolved:function(){return!!c||!!b},cancel:function(){d=1,a=[];return this}};return e},Deferred:function(a){var b=f._Deferred(),c=f._Deferred(),d;f.extend(b,{then:function(a,c){b.done(a).fail(c);return this},always:function(){return b.done.apply(b,arguments).fail.apply(this,arguments)},fail:c.done,rejectWith:c.resolveWith,reject:c.resolve,isRejected:c.isResolved,pipe:function(a,c){return f.Deferred(function(d){f.each({done:[a,"resolve"],fail:[c,"reject"]},function(a,c){var e=c[0],g=c[1],h;f.isFunction(e)?b[a](function(){h=e.apply(this,arguments),h&&f.isFunction(h.promise)?h.promise().then(d.resolve,d.reject):d[g+"With"](this===b?d:this,[h])}):b[a](d[g])})}).promise()},promise:function(a){if(a==null){if(d)return d;d=a={}}var c=g.length;while(c--)a[g[c]]=b[g[c]];return a}}),b.done(c.cancel).fail(b.cancel),delete b.cancel,a&&a.call(b,b);return b},when:function(a){function i(a){return function(c){b[a]=arguments.length>1?h.call(arguments,0):c,--e||g.resolveWith(g,h.call(b,0))}}var b=arguments,c=0,d=b.length,e=d,g=d<=1&&a&&f.isFunction(a.promise)?a:f.Deferred();if(d>1){for(;c<d;c++)b[c]&&f.isFunction(b[c].promise)?b[c].promise().then(i(c),g.reject):--e;e||g.resolveWith(g,b)}else g!==a&&g.resolveWith(g,d?[a]:[]);return g.promise()}}),f.support=function(){var a=c.createElement("div"),b=c.documentElement,d,e,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u;a.setAttribute("className","t"),a.innerHTML="   <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/>",d=a.getElementsByTagName("*"),e=a.getElementsByTagName("a")[0];if(!d||!d.length||!e)return{};g=c.createElement("select"),h=g.appendChild(c.createElement("option")),i=a.getElementsByTagName("input")[0],k={leadingWhitespace:a.firstChild.nodeType===3,tbody:!a.getElementsByTagName("tbody").length,htmlSerialize:!!a.getElementsByTagName("link").length,style:/top/.test(e.getAttribute("style")),hrefNormalized:e.getAttribute("href")==="/a",opacity:/^0.55$/.test(e.style.opacity),cssFloat:!!e.style.cssFloat,checkOn:i.value==="on",optSelected:h.selected,getSetAttribute:a.className!=="t",submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,k.noCloneChecked=i.cloneNode(!0).checked,g.disabled=!0,k.optDisabled=!h.disabled;try{delete a.test}catch(v){k.deleteExpando=!1}!a.addEventListener&&a.attachEvent&&a.fireEvent&&(a.attachEvent("onclick",function(){k.noCloneEvent=!1}),a.cloneNode(!0).fireEvent("onclick")),i=c.createElement("input"),i.value="t",i.setAttribute("type","radio"),k.radioValue=i.value==="t",i.setAttribute("checked","checked"),a.appendChild(i),l=c.createDocumentFragment(),l.appendChild(a.firstChild),k.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,a.innerHTML="",a.style.width=a.style.paddingLeft="1px",m=c.getElementsByTagName("body")[0],o=c.createElement(m?"div":"body"),p={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},m&&f.extend(p,{position:"absolute",left:"-1000px",top:"-1000px"});for(t in p)o.style[t]=p[t];o.appendChild(a),n=m||b,n.insertBefore(o,n.firstChild),k.appendChecked=i.checked,k.boxModel=a.offsetWidth===2,"zoom"in a.style&&(a.style.display="inline",a.style.zoom=1,k.inlineBlockNeedsLayout=a.offsetWidth===2,a.style.display="",a.innerHTML="<div style='width:4px;'></div>",k.shrinkWrapBlocks=a.offsetWidth!==2),a.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",q=a.getElementsByTagName("td"),u=q[0].offsetHeight===0,q[0].style.display="",q[1].style.display="none",k.reliableHiddenOffsets=u&&q[0].offsetHeight===0,a.innerHTML="",c.defaultView&&c.defaultView.getComputedStyle&&(j=c.createElement("div"),j.style.width="0",j.style.marginRight="0",a.appendChild(j),k.reliableMarginRight=(parseInt((c.defaultView.getComputedStyle(j,null)||{marginRight:0}).marginRight,10)||0)===0),o.innerHTML="",n.removeChild(o);if(a.attachEvent)for(t in{submit:1,change:1,focusin:1})s="on"+t,u=s in a,u||(a.setAttribute(s,"return;"),u=typeof a[s]=="function"),k[t+"Bubbles"]=u;o=l=g=h=m=j=a=i=null;return k}(),f.boxModel=f.support.boxModel;var i=/^(?:\{.*\}|\[.*\])$/,j=/([A-Z])/g;f.extend({cache:{},uuid:0,expando:"jQuery"+(f.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(a){a=a.nodeType?f.cache[a[f.expando]]:a[f.expando];return!!a&&!l(a)},data:function(a,c,d,e){if(!!f.acceptData(a)){var g,h,i=f.expando,j=typeof c=="string",k=a.nodeType,l=k?f.cache:a,m=k?a[f.expando]:a[f.expando]&&f.expando;if((!m||e&&m&&l[m]&&!l[m][i])&&j&&d===b)return;m||(k?a[f.expando]=m=++f.uuid:m=f.expando),l[m]||(l[m]={},k||(l[m].toJSON=f.noop));if(typeof c=="object"||typeof c=="function")e?l[m][i]=f.extend(l[m][i],c):l[m]=f.extend(l[m],c);g=l[m],e&&(g[i]||(g[i]={}),g=g[i]),d!==b&&(g[f.camelCase(c)]=d);if(c==="events"&&!g[c])return g[i]&&g[i].events;j?(h=g[c],h==null&&(h=g[f.camelCase(c)])):h=g;return h}},removeData:function(a,b,c){if(!!f.acceptData(a)){var d,e=f.expando,g=a.nodeType,h=g?f.cache:a,i=g?a[f.expando]:f.expando;if(!h[i])return;if(b){d=c?h[i][e]:h[i];if(d){d[b]||(b=f.camelCase(b)),delete d[b];if(!l(d))return}}if(c){delete h[i][e];if(!l(h[i]))return}var j=h[i][e];f.support.deleteExpando||!h.setInterval?delete h[i]:h[i]=null,j?(h[i]={},g||(h[i].toJSON=f.noop),h[i][e]=j):g&&(f.support.deleteExpando?delete a[f.expando]:a.removeAttribute?a.removeAttribute(f.expando):a[f.expando]=null)}},_data:function(a,b,c){return f.data(a,b,c,!0)},acceptData:function(a){if(a.nodeName){var b=f.noData[a.nodeName.toLowerCase()];if(b)return b!==!0&&a.getAttribute("classid")===b}return!0}}),f.fn.extend({data:function(a,c){var d=null;if(typeof a=="undefined"){if(this.length){d=f.data(this[0]);if(this[0].nodeType===1){var e=this[0].attributes,g;for(var h=0,i=e.length;h<i;h++)g=e[h].name,g.indexOf("data-")===0&&(g=f.camelCase(g.substring(5)),k(this[0],g,d[g]))}}return d}if(typeof a=="object")return this.each(function(){f.data(this,a)});var j=a.split(".");j[1]=j[1]?"."+j[1]:"";if(c===b){d=this.triggerHandler("getData"+j[1]+"!",[j[0]]),d===b&&this.length&&(d=f.data(this[0],a),d=k(this[0],a,d));return d===b&&j[1]?this.data(j[0]):d}return this.each(function(){var b=f(this),d=[j[0],c];b.triggerHandler("setData"+j[1]+"!",d),f.data(this,a,c),b.triggerHandler("changeData"+j[1]+"!",d)})},removeData:function(a){return this.each(function(){f.removeData(this,a)})}}),f.extend({_mark:function(a,c){a&&(c=(c||"fx")+"mark",f.data(a,c,(f.data(a,c,b,!0)||0)+1,!0))},_unmark:function(a,c,d){a!==!0&&(d=c,c=a,a=!1);if(c){d=d||"fx";var e=d+"mark",g=a?0:(f.data(c,e,b,!0)||1)-1;g?f.data(c,e,g,!0):(f.removeData(c,e,!0),m(c,d,"mark"))}},queue:function(a,c,d){if(a){c=(c||"fx")+"queue";var e=f.data(a,c,b,!0);d&&(!e||f.isArray(d)?e=f.data(a,c,f.makeArray(d),!0):e.push(d));return e||[]}},dequeue:function(a,b){b=b||"fx";var c=f.queue(a,b),d=c.shift(),e;d==="inprogress"&&(d=c.shift()),d&&(b==="fx"&&c.unshift("inprogress"),d.call(a,function(){f.dequeue(a,b)})),c.length||(f.removeData(a,b+"queue",!0),m(a,b,"queue"))}}),f.fn.extend({queue:function(a,c){typeof a!="string"&&(c=a,a="fx");if(c===b)return f.queue(this[0],a);return this.each(function(){var b=f.queue(this,a,c);a==="fx"&&b[0]!=="inprogress"&&f.dequeue(this,a)})},dequeue:function(a){return this.each(function(){f.dequeue(this,a)})},delay:function(a,b){a=f.fx?f.fx.speeds[a]||a:a,b=b||"fx";return this.queue(b,function(){var c=this;setTimeout(function(){f.dequeue(c,b)},a)})},clearQueue:function(a){return this.queue(a||"fx",[])},promise:function(a,c){function m(){--h||d.resolveWith(e,[e])}typeof a!="string"&&(c=a,a=b),a=a||"fx";var d=f.Deferred(),e=this,g=e.length,h=1,i=a+"defer",j=a+"queue",k=a+"mark",l;while(g--)if(l=f.data(e[g],i,b,!0)||(f.data(e[g],j,b,!0)||f.data(e[g],k,b,!0))&&f.data(e[g],i,f._Deferred(),!0))h++,l.done(m);m();return d.promise()}});var n=/[\n\t\r]/g,o=/\s+/,p=/\r/g,q=/^(?:button|input)$/i,r=/^(?:button|input|object|select|textarea)$/i,s=/^a(?:rea)?$/i,t=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,u,v;f.fn.extend({attr:function(a,b){return f.access(this,a,b,!0,f.attr)},removeAttr:function(a){return this.each(function(){f.removeAttr(this,a)})},prop:function(a,b){return f.access(this,a,b,!0,f.prop)},removeProp:function(a){a=f.propFix[a]||a;return this.each(function(){try{this[a]=b,delete this[a]}catch(c){}})},addClass:function(a){var b,c,d,e,g,h,i;if(f.isFunction(a))return this.each(function(b){f(this).addClass(a.call(this,b,this.className))});if(a&&typeof a=="string"){b=a.split(o);for(c=0,d=this.length;c<d;c++){e=this[c];if(e.nodeType===1)if(!e.className&&b.length===1)e.className=a;else{g=" "+e.className+" ";for(h=0,i=b.length;h<i;h++)~g.indexOf(" "+b[h]+" ")||(g+=b[h]+" ");e.className=f.trim(g)}}}return this},removeClass:function(a){var c,d,e,g,h,i,j;if(f.isFunction(a))return this.each(function(b){f(this).removeClass(a.call(this,b,this.className))});if(a&&typeof a=="string"||a===b){c=(a||"").split(o);for(d=0,e=this.length;d<e;d++){g=this[d];if(g.nodeType===1&&g.className)if(a){h=(" "+g.className+" ").replace(n," ");for(i=0,j=c.length;i<j;i++)h=h.replace(" "+c[i]+" "," ");g.className=f.trim(h)}else g.className=""}}return this},toggleClass:function(a,b){var c=typeof a,d=typeof b=="boolean";if(f.isFunction(a))return this.each(function(c){f(this).toggleClass(a.call(this,c,this.className,b),b)});return this.each(function(){if(c==="string"){var e,g=0,h=f(this),i=b,j=a.split(o);while(e=j[g++])i=d?i:!h.hasClass(e),h[i?"addClass":"removeClass"](e)}else if(c==="undefined"||c==="boolean")this.className&&f._data(this,"__className__",this.className),this.className=this.className||a===!1?"":f._data(this,"__className__")||""})},hasClass:function(a){var b=" "+a+" ";for(var c=0,d=this.length;c<d;c++)if(this[c].nodeType===1&&(" "+this[c].className+" ").replace(n," ").indexOf(b)>-1)return!0;return!1},val:function(a){var c,d,e=this[0];if(!arguments.length){if(e){c=f.valHooks[e.nodeName.toLowerCase()]||f.valHooks[e.type];if(c&&"get"in c&&(d=c.get(e,"value"))!==b)return d;d=e.value;return typeof d=="string"?d.replace(p,""):d==null?"":d}return b}var g=f.isFunction(a);return this.each(function(d){var e=f(this),h;if(this.nodeType===1){g?h=a.call(this,d,e.val()):h=a,h==null?h="":typeof h=="number"?h+="":f.isArray(h)&&(h=f.map(h,function(a){return a==null?"":a+""})),c=f.valHooks[this.nodeName.toLowerCase()]||f.valHooks[this.type];if(!c||!("set"in c)||c.set(this,h,"value")===b)this.value=h}})}}),f.extend({valHooks:{option:{get:function(a){var b=a.attributes.value;return!b||b.specified?a.value:a.text}},select:{get:function(a){var b,c=a.selectedIndex,d=[],e=a.options,g=a.type==="select-one";if(c<0)return null;for(var h=g?c:0,i=g?c+1:e.length;h<i;h++){var j=e[h];if(j.selected&&(f.support.optDisabled?!j.disabled:j.getAttribute("disabled")===null)&&(!j.parentNode.disabled||!f.nodeName(j.parentNode,"optgroup"))){b=f(j).val();if(g)return b;d.push(b)}}if(g&&!d.length&&e.length)return f(e[c]).val();return d},set:function(a,b){var c=f.makeArray(b);f(a).find("option").each(function(){this.selected=f.inArray(f(this).val(),c)>=0}),c.length||(a.selectedIndex=-1);return c}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attrFix:{tabindex:"tabIndex"},attr:function(a,c,d,e){var g=a.nodeType;if(!a||g===3||g===8||g===2)return b;if(e&&c in f.attrFn)return f(a)[c](d);if(!("getAttribute"in a))return f.prop(a,c,d);var h,i,j=g!==1||!f.isXMLDoc(a);j&&(c=f.attrFix[c]||c,i=f.attrHooks[c],i||(t.test(c)?i=v:u&&(i=u)));if(d!==b){if(d===null){f.removeAttr(a,c);return b}if(i&&"set"in i&&j&&(h=i.set(a,d,c))!==b)return h;a.setAttribute(c,""+d);return d}if(i&&"get"in i&&j&&(h=i.get(a,c))!==null)return h;h=a.getAttribute(c);return h===null?b:h},removeAttr:function(a,b){var c;a.nodeType===1&&(b=f.attrFix[b]||b,f.attr(a,b,""),a.removeAttribute(b),t.test(b)&&(c=f.propFix[b]||b)in a&&(a[c]=!1))},attrHooks:{type:{set:function(a,b){if(q.test(a.nodeName)&&a.parentNode)f.error("type property can't be changed");else if(!f.support.radioValue&&b==="radio"&&f.nodeName(a,"input")){var c=a.value;a.setAttribute("type",b),c&&(a.value=c);return b}}},value:{get:function(a,b){if(u&&f.nodeName(a,"button"))return u.get(a,b);return b in a?a.value:null},set:function(a,b,c){if(u&&f.nodeName(a,"button"))return u.set(a,b,c);a.value=b}}},propFix:{tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(a,c,d){var e=a.nodeType;if(!a||e===3||e===8||e===2)return b;var g,h,i=e!==1||!f.isXMLDoc(a);i&&(c=f.propFix[c]||c,h=f.propHooks[c]);return d!==b?h&&"set"in h&&(g=h.set(a,d,c))!==b?g:a[c]=d:h&&"get"in h&&(g=h.get(a,c))!==null?g:a[c]},propHooks:{tabIndex:{get:function(a){var c=a.getAttributeNode("tabindex");return c&&c.specified?parseInt(c.value,10):r.test(a.nodeName)||s.test(a.nodeName)&&a.href?0:b}}}}),f.attrHooks.tabIndex=f.propHooks.tabIndex,v={get:function(a,c){var d;return f.prop(a,c)===!0||(d=a.getAttributeNode(c))&&d.nodeValue!==!1?c.toLowerCase():b},set:function(a,b,c){var d;b===!1?f.removeAttr(a,c):(d=f.propFix[c]||c,d in a&&(a[d]=!0),a.setAttribute(c,c.toLowerCase()));return c}},f.support.getSetAttribute||(u=f.valHooks.button={get:function(a,c){var d;d=a.getAttributeNode(c);return d&&d.nodeValue!==""?d.nodeValue:b},set:function(a,b,d){var e=a.getAttributeNode(d);e||(e=c.createAttribute(d),a.setAttributeNode(e));return e.nodeValue=b+""}},f.each(["width","height"],function(a,b){f.attrHooks[b]=f.extend(f.attrHooks[b],{set:function(a,c){if(c===""){a.setAttribute(b,"auto");return c}}})})),f.support.hrefNormalized||f.each(["href","src","width","height"],function(a,c){f.attrHooks[c]=f.extend(f.attrHooks[c],{get:function(a){var d=a.getAttribute(c,2);return d===null?b:d}})}),f.support.style||(f.attrHooks.style={get:function(a){return a.style.cssText.toLowerCase()||b},set:function(a,b){return a.style.cssText=""+b}}),f.support.optSelected||(f.propHooks.selected=f.extend(f.propHooks.selected,{get:function(a){var b=a.parentNode;b&&(b.selectedIndex,b.parentNode&&b.parentNode.selectedIndex);return null}})),f.support.checkOn||f.each(["radio","checkbox"],function(){f.valHooks[this]={get:function(a){return a.getAttribute("value")===null?"on":a.value}}}),f.each(["radio","checkbox"],function(){f.valHooks[this]=f.extend(f.valHooks[this],{set:function(a,b){if(f.isArray(b))return a.checked=f.inArray(f(a).val(),b)>=0}})});var w=/\.(.*)$/,x=/^(?:textarea|input|select)$/i,y=/\./g,z=/ /g,A=/[^\w\s.|`]/g,B=function(a){return a.replace(A,"\\$&")};f.event={add:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){if(d===!1)d=C;else if(!d)return;var g,h;d.handler&&(g=d,d=g.handler),d.guid||(d.guid=f.guid++);var i=f._data(a);if(!i)return;var j=i.events,k=i.handle;j||(i.events=j={}),k||(i.handle=k=function(a){return typeof f!="undefined"&&(!a||f.event.triggered!==a.type)?f.event.handle.apply(k.elem,arguments):b}),k.elem=a,c=c.split(" ");var l,m=0,n;while(l=c[m++]){h=g?f.extend({},g):{handler:d,data:e},l.indexOf(".")>-1?(n=l.split("."),l=n.shift(),h.namespace=n.slice(0).sort().join(".")):(n=[],h.namespace=""),h.type=l,h.guid||(h.guid=d.guid);var o=j[l],p=f.event.special[l]||{};if(!o){o=j[l]=[];if(!p.setup||p.setup.call(a,e,n,k)===!1)a.addEventListener?a.addEventListener(l,k,!1):a.attachEvent&&a.attachEvent("on"+l,k)}p.add&&(p.add.call(a,h),h.handler.guid||(h.handler.guid=d.guid)),o.push(h),f.event.global[l]=!0}a=null}},global:{},remove:function(a,c,d,e){if(a.nodeType!==3&&a.nodeType!==8){d===!1&&(d=C);var g,h,i,j,k=0,l,m,n,o,p,q,r,s=f.hasData(a)&&f._data(a),t=s&&s.events;if(!s||!t)return;c&&c.type&&(d=c.handler,c=c.type);if(!c||typeof c=="string"&&c.charAt(0)==="."){c=c||"";for(h in t)f.event.remove(a,h+c);return}c=c.split(" ");while(h=c[k++]){r=h,q=null,l=h.indexOf(".")<0,m=[],l||(m=h.split("."),h=m.shift(),n=new RegExp("(^|\\.)"+f.map(m.slice(0).sort(),B).join("\\.(?:.*\\.)?")+"(\\.|$)")),p=t[h];if(!p)continue;if(!d){for(j=0;j<p.length;j++){q=p[j];if(l||n.test(q.namespace))f.event.remove(a,r,q.handler,j),p.splice(j--,1)}continue}o=f.event.special[h]||{};for(j=e||0;j<p.length;j++){q=p[j];if(d.guid===q.guid){if(l||n.test(q.namespace))e==null&&p.splice(j--,1),o.remove&&o.remove.call(a,q);if(e!=null)break}}if(p.length===0||e!=null&&p.length===1)(!o.teardown||o.teardown.call(a,m)===!1)&&f.removeEvent(a,h,s.handle),g=null,delete
t[h]}if(f.isEmptyObject(t)){var u=s.handle;u&&(u.elem=null),delete s.events,delete s.handle,f.isEmptyObject(s)&&f.removeData(a,b,!0)}}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(c,d,e,g){var h=c.type||c,i=[],j;h.indexOf("!")>=0&&(h=h.slice(0,-1),j=!0),h.indexOf(".")>=0&&(i=h.split("."),h=i.shift(),i.sort());if(!!e&&!f.event.customEvent[h]||!!f.event.global[h]){c=typeof c=="object"?c[f.expando]?c:new f.Event(h,c):new f.Event(h),c.type=h,c.exclusive=j,c.namespace=i.join("."),c.namespace_re=new RegExp("(^|\\.)"+i.join("\\.(?:.*\\.)?")+"(\\.|$)");if(g||!e)c.preventDefault(),c.stopPropagation();if(!e){f.each(f.cache,function(){var a=f.expando,b=this[a];b&&b.events&&b.events[h]&&f.event.trigger(c,d,b.handle.elem)});return}if(e.nodeType===3||e.nodeType===8)return;c.result=b,c.target=e,d=d!=null?f.makeArray(d):[],d.unshift(c);var k=e,l=h.indexOf(":")<0?"on"+h:"";do{var m=f._data(k,"handle");c.currentTarget=k,m&&m.apply(k,d),l&&f.acceptData(k)&&k[l]&&k[l].apply(k,d)===!1&&(c.result=!1,c.preventDefault()),k=k.parentNode||k.ownerDocument||k===c.target.ownerDocument&&a}while(k&&!c.isPropagationStopped());if(!c.isDefaultPrevented()){var n,o=f.event.special[h]||{};if((!o._default||o._default.call(e.ownerDocument,c)===!1)&&(h!=="click"||!f.nodeName(e,"a"))&&f.acceptData(e)){try{l&&e[h]&&(n=e[l],n&&(e[l]=null),f.event.triggered=h,e[h]())}catch(p){}n&&(e[l]=n),f.event.triggered=b}}return c.result}},handle:function(c){c=f.event.fix(c||a.event);var d=((f._data(this,"events")||{})[c.type]||[]).slice(0),e=!c.exclusive&&!c.namespace,g=Array.prototype.slice.call(arguments,0);g[0]=c,c.currentTarget=this;for(var h=0,i=d.length;h<i;h++){var j=d[h];if(e||c.namespace_re.test(j.namespace)){c.handler=j.handler,c.data=j.data,c.handleObj=j;var k=j.handler.apply(this,g);k!==b&&(c.result=k,k===!1&&(c.preventDefault(),c.stopPropagation()));if(c.isImmediatePropagationStopped())break}}return c.result},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode layerX layerY metaKey newValue offsetX offsetY pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(a){if(a[f.expando])return a;var d=a;a=f.Event(d);for(var e=this.props.length,g;e;)g=this.props[--e],a[g]=d[g];a.target||(a.target=a.srcElement||c),a.target.nodeType===3&&(a.target=a.target.parentNode),!a.relatedTarget&&a.fromElement&&(a.relatedTarget=a.fromElement===a.target?a.toElement:a.fromElement);if(a.pageX==null&&a.clientX!=null){var h=a.target.ownerDocument||c,i=h.documentElement,j=h.body;a.pageX=a.clientX+(i&&i.scrollLeft||j&&j.scrollLeft||0)-(i&&i.clientLeft||j&&j.clientLeft||0),a.pageY=a.clientY+(i&&i.scrollTop||j&&j.scrollTop||0)-(i&&i.clientTop||j&&j.clientTop||0)}a.which==null&&(a.charCode!=null||a.keyCode!=null)&&(a.which=a.charCode!=null?a.charCode:a.keyCode),!a.metaKey&&a.ctrlKey&&(a.metaKey=a.ctrlKey),!a.which&&a.button!==b&&(a.which=a.button&1?1:a.button&2?3:a.button&4?2:0);return a},guid:1e8,proxy:f.proxy,special:{ready:{setup:f.bindReady,teardown:f.noop},live:{add:function(a){f.event.add(this,M(a.origType,a.selector),f.extend({},a,{handler:L,guid:a.handler.guid}))},remove:function(a){f.event.remove(this,M(a.origType,a.selector),a)}},beforeunload:{setup:function(a,b,c){f.isWindow(this)&&(this.onbeforeunload=c)},teardown:function(a,b){this.onbeforeunload===b&&(this.onbeforeunload=null)}}}},f.removeEvent=c.removeEventListener?function(a,b,c){a.removeEventListener&&a.removeEventListener(b,c,!1)}:function(a,b,c){a.detachEvent&&a.detachEvent("on"+b,c)},f.Event=function(a,b){if(!this.preventDefault)return new f.Event(a,b);a&&a.type?(this.originalEvent=a,this.type=a.type,this.isDefaultPrevented=a.defaultPrevented||a.returnValue===!1||a.getPreventDefault&&a.getPreventDefault()?D:C):this.type=a,b&&f.extend(this,b),this.timeStamp=f.now(),this[f.expando]=!0},f.Event.prototype={preventDefault:function(){this.isDefaultPrevented=D;var a=this.originalEvent;!a||(a.preventDefault?a.preventDefault():a.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=D;var a=this.originalEvent;!a||(a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=D,this.stopPropagation()},isDefaultPrevented:C,isPropagationStopped:C,isImmediatePropagationStopped:C};var E=function(a){var b=a.relatedTarget,c=!1,d=a.type;a.type=a.data,b!==this&&(b&&(c=f.contains(this,b)),c||(f.event.handle.apply(this,arguments),a.type=d))},F=function(a){a.type=a.data,f.event.handle.apply(this,arguments)};f.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(a,b){f.event.special[a]={setup:function(c){f.event.add(this,b,c&&c.selector?F:E,a)},teardown:function(a){f.event.remove(this,b,a&&a.selector?F:E)}}}),f.support.submitBubbles||(f.event.special.submit={setup:function(a,b){if(!f.nodeName(this,"form"))f.event.add(this,"click.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="submit"||c==="image")&&f(b).closest("form").length&&J("submit",this,arguments)}),f.event.add(this,"keypress.specialSubmit",function(a){var b=a.target,c=f.nodeName(b,"input")||f.nodeName(b,"button")?b.type:"";(c==="text"||c==="password")&&f(b).closest("form").length&&a.keyCode===13&&J("submit",this,arguments)});else return!1},teardown:function(a){f.event.remove(this,".specialSubmit")}});if(!f.support.changeBubbles){var G,H=function(a){var b=f.nodeName(a,"input")?a.type:"",c=a.value;b==="radio"||b==="checkbox"?c=a.checked:b==="select-multiple"?c=a.selectedIndex>-1?f.map(a.options,function(a){return a.selected}).join("-"):"":f.nodeName(a,"select")&&(c=a.selectedIndex);return c},I=function(c){var d=c.target,e,g;if(!!x.test(d.nodeName)&&!d.readOnly){e=f._data(d,"_change_data"),g=H(d),(c.type!=="focusout"||d.type!=="radio")&&f._data(d,"_change_data",g);if(e===b||g===e)return;if(e!=null||g)c.type="change",c.liveFired=b,f.event.trigger(c,arguments[1],d)}};f.event.special.change={filters:{focusout:I,beforedeactivate:I,click:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(c==="radio"||c==="checkbox"||f.nodeName(b,"select"))&&I.call(this,a)},keydown:function(a){var b=a.target,c=f.nodeName(b,"input")?b.type:"";(a.keyCode===13&&!f.nodeName(b,"textarea")||a.keyCode===32&&(c==="checkbox"||c==="radio")||c==="select-multiple")&&I.call(this,a)},beforeactivate:function(a){var b=a.target;f._data(b,"_change_data",H(b))}},setup:function(a,b){if(this.type==="file")return!1;for(var c in G)f.event.add(this,c+".specialChange",G[c]);return x.test(this.nodeName)},teardown:function(a){f.event.remove(this,".specialChange");return x.test(this.nodeName)}},G=f.event.special.change.filters,G.focus=G.beforeactivate}f.support.focusinBubbles||f.each({focus:"focusin",blur:"focusout"},function(a,b){function e(a){var c=f.event.fix(a);c.type=b,c.originalEvent={},f.event.trigger(c,null,c.target),c.isDefaultPrevented()&&a.preventDefault()}var d=0;f.event.special[b]={setup:function(){d++===0&&c.addEventListener(a,e,!0)},teardown:function(){--d===0&&c.removeEventListener(a,e,!0)}}}),f.each(["bind","one"],function(a,c){f.fn[c]=function(a,d,e){var g;if(typeof a=="object"){for(var h in a)this[c](h,d,a[h],e);return this}if(arguments.length===2||d===!1)e=d,d=b;c==="one"?(g=function(a){f(this).unbind(a,g);return e.apply(this,arguments)},g.guid=e.guid||f.guid++):g=e;if(a==="unload"&&c!=="one")this.one(a,d,e);else for(var i=0,j=this.length;i<j;i++)f.event.add(this[i],a,g,d);return this}}),f.fn.extend({unbind:function(a,b){if(typeof a=="object"&&!a.preventDefault)for(var c in a)this.unbind(c,a[c]);else for(var d=0,e=this.length;d<e;d++)f.event.remove(this[d],a,b);return this},delegate:function(a,b,c,d){return this.live(b,c,d,a)},undelegate:function(a,b,c){return arguments.length===0?this.unbind("live"):this.die(b,null,c,a)},trigger:function(a,b){return this.each(function(){f.event.trigger(a,b,this)})},triggerHandler:function(a,b){if(this[0])return f.event.trigger(a,b,this[0],!0)},toggle:function(a){var b=arguments,c=a.guid||f.guid++,d=0,e=function(c){var e=(f.data(this,"lastToggle"+a.guid)||0)%d;f.data(this,"lastToggle"+a.guid,e+1),c.preventDefault();return b[e].apply(this,arguments)||!1};e.guid=c;while(d<b.length)b[d++].guid=c;return this.click(e)},hover:function(a,b){return this.mouseenter(a).mouseleave(b||a)}});var K={focus:"focusin",blur:"focusout",mouseenter:"mouseover",mouseleave:"mouseout"};f.each(["live","die"],function(a,c){f.fn[c]=function(a,d,e,g){var h,i=0,j,k,l,m=g||this.selector,n=g?this:f(this.context);if(typeof a=="object"&&!a.preventDefault){for(var o in a)n[c](o,d,a[o],m);return this}if(c==="die"&&!a&&g&&g.charAt(0)==="."){n.unbind(g);return this}if(d===!1||f.isFunction(d))e=d||C,d=b;a=(a||"").split(" ");while((h=a[i++])!=null){j=w.exec(h),k="",j&&(k=j[0],h=h.replace(w,""));if(h==="hover"){a.push("mouseenter"+k,"mouseleave"+k);continue}l=h,K[h]?(a.push(K[h]+k),h=h+k):h=(K[h]||h)+k;if(c==="live")for(var p=0,q=n.length;p<q;p++)f.event.add(n[p],"live."+M(h,m),{data:d,selector:m,handler:e,origType:h,origHandler:e,preType:l});else n.unbind("live."+M(h,m),e)}return this}}),f.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error".split(" "),function(a,b){f.fn[b]=function(a,c){c==null&&(c=a,a=null);return arguments.length>0?this.bind(b,a,c):this.trigger(b)},f.attrFn&&(f.attrFn[b]=!0)}),function(){function u(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}if(i.nodeType===1){f||(i.sizcache=c,i.sizset=g);if(typeof b!="string"){if(i===b){j=!0;break}}else if(k.filter(b,[i]).length>0){j=i;break}}i=i[a]}d[g]=j}}}function t(a,b,c,d,e,f){for(var g=0,h=d.length;g<h;g++){var i=d[g];if(i){var j=!1;i=i[a];while(i){if(i.sizcache===c){j=d[i.sizset];break}i.nodeType===1&&!f&&(i.sizcache=c,i.sizset=g);if(i.nodeName.toLowerCase()===b){j=i;break}i=i[a]}d[g]=j}}}var a=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,d=0,e=Object.prototype.toString,g=!1,h=!0,i=/\\/g,j=/\W/;[0,0].sort(function(){h=!1;return 0});var k=function(b,d,f,g){f=f||[],d=d||c;var h=d;if(d.nodeType!==1&&d.nodeType!==9)return[];if(!b||typeof b!="string")return f;var i,j,n,o,q,r,s,t,u=!0,w=k.isXML(d),x=[],y=b;do{a.exec(""),i=a.exec(y);if(i){y=i[3],x.push(i[1]);if(i[2]){o=i[3];break}}}while(i);if(x.length>1&&m.exec(b))if(x.length===2&&l.relative[x[0]])j=v(x[0]+x[1],d);else{j=l.relative[x[0]]?[d]:k(x.shift(),d);while(x.length)b=x.shift(),l.relative[b]&&(b+=x.shift()),j=v(b,j)}else{!g&&x.length>1&&d.nodeType===9&&!w&&l.match.ID.test(x[0])&&!l.match.ID.test(x[x.length-1])&&(q=k.find(x.shift(),d,w),d=q.expr?k.filter(q.expr,q.set)[0]:q.set[0]);if(d){q=g?{expr:x.pop(),set:p(g)}:k.find(x.pop(),x.length===1&&(x[0]==="~"||x[0]==="+")&&d.parentNode?d.parentNode:d,w),j=q.expr?k.filter(q.expr,q.set):q.set,x.length>0?n=p(j):u=!1;while(x.length)r=x.pop(),s=r,l.relative[r]?s=x.pop():r="",s==null&&(s=d),l.relative[r](n,s,w)}else n=x=[]}n||(n=j),n||k.error(r||b);if(e.call(n)==="[object Array]")if(!u)f.push.apply(f,n);else if(d&&d.nodeType===1)for(t=0;n[t]!=null;t++)n[t]&&(n[t]===!0||n[t].nodeType===1&&k.contains(d,n[t]))&&f.push(j[t]);else for(t=0;n[t]!=null;t++)n[t]&&n[t].nodeType===1&&f.push(j[t]);else p(n,f);o&&(k(o,h,f,g),k.uniqueSort(f));return f};k.uniqueSort=function(a){if(r){g=h,a.sort(r);if(g)for(var b=1;b<a.length;b++)a[b]===a[b-1]&&a.splice(b--,1)}return a},k.matches=function(a,b){return k(a,null,null,b)},k.matchesSelector=function(a,b){return k(b,null,null,[a]).length>0},k.find=function(a,b,c){var d;if(!a)return[];for(var e=0,f=l.order.length;e<f;e++){var g,h=l.order[e];if(g=l.leftMatch[h].exec(a)){var j=g[1];g.splice(1,1);if(j.substr(j.length-1)!=="\\"){g[1]=(g[1]||"").replace(i,""),d=l.find[h](g,b,c);if(d!=null){a=a.replace(l.match[h],"");break}}}}d||(d=typeof b.getElementsByTagName!="undefined"?b.getElementsByTagName("*"):[]);return{set:d,expr:a}},k.filter=function(a,c,d,e){var f,g,h=a,i=[],j=c,m=c&&c[0]&&k.isXML(c[0]);while(a&&c.length){for(var n in l.filter)if((f=l.leftMatch[n].exec(a))!=null&&f[2]){var o,p,q=l.filter[n],r=f[1];g=!1,f.splice(1,1);if(r.substr(r.length-1)==="\\")continue;j===i&&(i=[]);if(l.preFilter[n]){f=l.preFilter[n](f,j,d,i,e,m);if(!f)g=o=!0;else if(f===!0)continue}if(f)for(var s=0;(p=j[s])!=null;s++)if(p){o=q(p,f,s,j);var t=e^!!o;d&&o!=null?t?g=!0:j[s]=!1:t&&(i.push(p),g=!0)}if(o!==b){d||(j=i),a=a.replace(l.match[n],"");if(!g)return[];break}}if(a===h)if(g==null)k.error(a);else break;h=a}return j},k.error=function(a){throw"Syntax error, unrecognized expression: "+a};var l=k.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{"class":"className","for":"htmlFor"},attrHandle:{href:function(a){return a.getAttribute("href")},type:function(a){return a.getAttribute("type")}},relative:{"+":function(a,b){var c=typeof b=="string",d=c&&!j.test(b),e=c&&!d;d&&(b=b.toLowerCase());for(var f=0,g=a.length,h;f<g;f++)if(h=a[f]){while((h=h.previousSibling)&&h.nodeType!==1);a[f]=e||h&&h.nodeName.toLowerCase()===b?h||!1:h===b}e&&k.filter(b,a,!0)},">":function(a,b){var c,d=typeof b=="string",e=0,f=a.length;if(d&&!j.test(b)){b=b.toLowerCase();for(;e<f;e++){c=a[e];if(c){var g=c.parentNode;a[e]=g.nodeName.toLowerCase()===b?g:!1}}}else{for(;e<f;e++)c=a[e],c&&(a[e]=d?c.parentNode:c.parentNode===b);d&&k.filter(b,a,!0)}},"":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("parentNode",b,f,a,e,c)},"~":function(a,b,c){var e,f=d++,g=u;typeof b=="string"&&!j.test(b)&&(b=b.toLowerCase(),e=b,g=t),g("previousSibling",b,f,a,e,c)}},find:{ID:function(a,b,c){if(typeof b.getElementById!="undefined"&&!c){var d=b.getElementById(a[1]);return d&&d.parentNode?[d]:[]}},NAME:function(a,b){if(typeof b.getElementsByName!="undefined"){var c=[],d=b.getElementsByName(a[1]);for(var e=0,f=d.length;e<f;e++)d[e].getAttribute("name")===a[1]&&c.push(d[e]);return c.length===0?null:c}},TAG:function(a,b){if(typeof b.getElementsByTagName!="undefined")return b.getElementsByTagName(a[1])}},preFilter:{CLASS:function(a,b,c,d,e,f){a=" "+a[1].replace(i,"")+" ";if(f)return a;for(var g=0,h;(h=b[g])!=null;g++)h&&(e^(h.className&&(" "+h.className+" ").replace(/[\t\n\r]/g," ").indexOf(a)>=0)?c||d.push(h):c&&(b[g]=!1));return!1},ID:function(a){return a[1].replace(i,"")},TAG:function(a,b){return a[1].replace(i,"").toLowerCase()},CHILD:function(a){if(a[1]==="nth"){a[2]||k.error(a[0]),a[2]=a[2].replace(/^\+|\s*/g,"");var b=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(a[2]==="even"&&"2n"||a[2]==="odd"&&"2n+1"||!/\D/.test(a[2])&&"0n+"+a[2]||a[2]);a[2]=b[1]+(b[2]||1)-0,a[3]=b[3]-0}else a[2]&&k.error(a[0]);a[0]=d++;return a},ATTR:function(a,b,c,d,e,f){var g=a[1]=a[1].replace(i,"");!f&&l.attrMap[g]&&(a[1]=l.attrMap[g]),a[4]=(a[4]||a[5]||"").replace(i,""),a[2]==="~="&&(a[4]=" "+a[4]+" ");return a},PSEUDO:function(b,c,d,e,f){if(b[1]==="not")if((a.exec(b[3])||"").length>1||/^\w/.test(b[3]))b[3]=k(b[3],null,null,c);else{var g=k.filter(b[3],c,d,!0^f);d||e.push.apply(e,g);return!1}else if(l.match.POS.test(b[0])||l.match.CHILD.test(b[0]))return!0;return b},POS:function(a){a.unshift(!0);return a}},filters:{enabled:function(a){return a.disabled===!1&&a.type!=="hidden"},disabled:function(a){return a.disabled===!0},checked:function(a){return a.checked===!0},selected:function(a){a.parentNode&&a.parentNode.selectedIndex;return a.selected===!0},parent:function(a){return!!a.firstChild},empty:function(a){return!a.firstChild},has:function(a,b,c){return!!k(c[3],a).length},header:function(a){return/h\d/i.test(a.nodeName)},text:function(a){var b=a.getAttribute("type"),c=a.type;return a.nodeName.toLowerCase()==="input"&&"text"===c&&(b===c||b===null)},radio:function(a){return a.nodeName.toLowerCase()==="input"&&"radio"===a.type},checkbox:function(a){return a.nodeName.toLowerCase()==="input"&&"checkbox"===a.type},file:function(a){return a.nodeName.toLowerCase()==="input"&&"file"===a.type},password:function(a){return a.nodeName.toLowerCase()==="input"&&"password"===a.type},submit:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"submit"===a.type},image:function(a){return a.nodeName.toLowerCase()==="input"&&"image"===a.type},reset:function(a){var b=a.nodeName.toLowerCase();return(b==="input"||b==="button")&&"reset"===a.type},button:function(a){var b=a.nodeName.toLowerCase();return b==="input"&&"button"===a.type||b==="button"},input:function(a){return/input|select|textarea|button/i.test(a.nodeName)},focus:function(a){return a===a.ownerDocument.activeElement}},setFilters:{first:function(a,b){return b===0},last:function(a,b,c,d){return b===d.length-1},even:function(a,b){return b%2===0},odd:function(a,b){return b%2===1},lt:function(a,b,c){return b<c[3]-0},gt:function(a,b,c){return b>c[3]-0},nth:function(a,b,c){return c[3]-0===b},eq:function(a,b,c){return c[3]-0===b}},filter:{PSEUDO:function(a,b,c,d){var e=b[1],f=l.filters[e];if(f)return f(a,c,b,d);if(e==="contains")return(a.textContent||a.innerText||k.getText([a])||"").indexOf(b[3])>=0;if(e==="not"){var g=b[3];for(var h=0,i=g.length;h<i;h++)if(g[h]===a)return!1;return!0}k.error(e)},CHILD:function(a,b){var c=b[1],d=a;switch(c){case"only":case"first":while(d=d.previousSibling)if(d.nodeType===1)return!1;if(c==="first")return!0;d=a;case"last":while(d=d.nextSibling)if(d.nodeType===1)return!1;return!0;case"nth":var e=b[2],f=b[3];if(e===1&&f===0)return!0;var g=b[0],h=a.parentNode;if(h&&(h.sizcache!==g||!a.nodeIndex)){var i=0;for(d=h.firstChild;d;d=d.nextSibling)d.nodeType===1&&(d.nodeIndex=++i);h.sizcache=g}var j=a.nodeIndex-f;return e===0?j===0:j%e===0&&j/e>=0}},ID:function(a,b){return a.nodeType===1&&a.getAttribute("id")===b},TAG:function(a,b){return b==="*"&&a.nodeType===1||a.nodeName.toLowerCase()===b},CLASS:function(a,b){return(" "+(a.className||a.getAttribute("class"))+" ").indexOf(b)>-1},ATTR:function(a,b){var c=b[1],d=l.attrHandle[c]?l.attrHandle[c](a):a[c]!=null?a[c]:a.getAttribute(c),e=d+"",f=b[2],g=b[4];return d==null?f==="!=":f==="="?e===g:f==="*="?e.indexOf(g)>=0:f==="~="?(" "+e+" ").indexOf(g)>=0:g?f==="!="?e!==g:f==="^="?e.indexOf(g)===0:f==="$="?e.substr(e.length-g.length)===g:f==="|="?e===g||e.substr(0,g.length+1)===g+"-":!1:e&&d!==!1},POS:function(a,b,c,d){var e=b[2],f=l.setFilters[e];if(f)return f(a,c,b,d)}}},m=l.match.POS,n=function(a,b){return"\\"+(b-0+1)};for(var o in l.match)l.match[o]=new RegExp(l.match[o].source+/(?![^\[]*\])(?![^\(]*\))/.source),l.leftMatch[o]=new RegExp(/(^(?:.|\r|\n)*?)/.source+l.match[o].source.replace(/\\(\d+)/g,n));var p=function(a,b){a=Array.prototype.slice.call(a,0);if(b){b.push.apply(b,a);return b}return a};try{Array.prototype.slice.call(c.documentElement.childNodes,0)[0].nodeType}catch(q){p=function(a,b){var c=0,d=b||[];if(e.call(a)==="[object Array]")Array.prototype.push.apply(d,a);else if(typeof a.length=="number")for(var f=a.length;c<f;c++)d.push(a[c]);else for(;a[c];c++)d.push(a[c]);return d}}var r,s;c.documentElement.compareDocumentPosition?r=function(a,b){if(a===b){g=!0;return 0}if(!a.compareDocumentPosition||!b.compareDocumentPosition)return a.compareDocumentPosition?-1:1;return a.compareDocumentPosition(b)&4?-1:1}:(r=function(a,b){if(a===b){g=!0;return 0}if(a.sourceIndex&&b.sourceIndex)return a.sourceIndex-b.sourceIndex;var c,d,e=[],f=[],h=a.parentNode,i=b.parentNode,j=h;if(h===i)return s(a,b);if(!h)return-1;if(!i)return 1;while(j)e.unshift(j),j=j.parentNode;j=i;while(j)f.unshift(j),j=j.parentNode;c=e.length,d=f.length;for(var k=0;k<c&&k<d;k++)if(e[k]!==f[k])return s(e[k],f[k]);return k===c?s(a,f[k],-1):s(e[k],b,1)},s=function(a,b,c){if(a===b)return c;var d=a.nextSibling;while(d){if(d===b)return-1;d=d.nextSibling}return 1}),k.getText=function(a){var b="",c;for(var d=0;a[d];d++)c=a[d],c.nodeType===3||c.nodeType===4?b+=c.nodeValue:c.nodeType!==8&&(b+=k.getText(c.childNodes));return b},function(){var a=c.createElement("div"),d="script"+(new Date).getTime(),e=c.documentElement;a.innerHTML="<a name='"+d+"'/>",e.insertBefore(a,e.firstChild),c.getElementById(d)&&(l.find.ID=function(a,c,d){if(typeof c.getElementById!="undefined"&&!d){var e=c.getElementById(a[1]);return e?e.id===a[1]||typeof e.getAttributeNode!="undefined"&&e.getAttributeNode("id").nodeValue===a[1]?[e]:b:[]}},l.filter.ID=function(a,b){var c=typeof a.getAttributeNode!="undefined"&&a.getAttributeNode("id");return a.nodeType===1&&c&&c.nodeValue===b}),e.removeChild(a),e=a=null}(),function(){var a=c.createElement("div");a.appendChild(c.createComment("")),a.getElementsByTagName("*").length>0&&(l.find.TAG=function(a,b){var c=b.getElementsByTagName(a[1]);if(a[1]==="*"){var d=[];for(var e=0;c[e];e++)c[e].nodeType===1&&d.push(c[e]);c=d}return c}),a.innerHTML="<a href='#'></a>",a.firstChild&&typeof a.firstChild.getAttribute!="undefined"&&a.firstChild.getAttribute("href")!=="#"&&(l.attrHandle.href=function(a){return a.getAttribute("href",2)}),a=null}(),c.querySelectorAll&&function(){var a=k,b=c.createElement("div"),d="__sizzle__";b.innerHTML="<p class='TEST'></p>";if(!b.querySelectorAll||b.querySelectorAll(".TEST").length!==0){k=function(b,e,f,g){e=e||c;if(!g&&!k.isXML(e)){var h=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(b);if(h&&(e.nodeType===1||e.nodeType===9)){if(h[1])return p(e.getElementsByTagName(b),f);if(h[2]&&l.find.CLASS&&e.getElementsByClassName)return p(e.getElementsByClassName(h[2]),f)}if(e.nodeType===9){if(b==="body"&&e.body)return p([e.body],f);if(h&&h[3]){var i=e.getElementById(h[3]);if(!i||!i.parentNode)return p([],f);if(i.id===h[3])return p([i],f)}try{return p(e.querySelectorAll(b),f)}catch(j){}}else if(e.nodeType===1&&e.nodeName.toLowerCase()!=="object"){var m=e,n=e.getAttribute("id"),o=n||d,q=e.parentNode,r=/^\s*[+~]/.test(b);n?o=o.replace(/'/g,"\\$&"):e.setAttribute("id",o),r&&q&&(e=e.parentNode);try{if(!r||q)return p(e.querySelectorAll("[id='"+o+"'] "+b),f)}catch(s){}finally{n||m.removeAttribute("id")}}}return a(b,e,f,g)};for(var e in a)k[e]=a[e];b=null}}(),function(){var a=c.documentElement,b=a.matchesSelector||a.mozMatchesSelector||a.webkitMatchesSelector||a.msMatchesSelector;if(b){var d=!b.call(c.createElement("div"),"div"),e=!1;try{b.call(c.documentElement,"[test!='']:sizzle")}catch(f){e=!0}k.matchesSelector=function(a,c){c=c.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']");if(!k.isXML(a))try{if(e||!l.match.PSEUDO.test(c)&&!/!=/.test(c)){var f=b.call(a,c);if(f||!d||a.document&&a.document.nodeType!==11)return f}}catch(g){}return k(c,null,null,[a]).length>0}}}(),function(){var a=c.createElement("div");a.innerHTML="<div class='test e'></div><div class='test'></div>";if(!!a.getElementsByClassName&&a.getElementsByClassName("e").length!==0){a.lastChild.className="e";if(a.getElementsByClassName("e").length===1)return;l.order.splice(1,0,"CLASS"),l.find.CLASS=function(a,b,c){if(typeof b.getElementsByClassName!="undefined"&&!c)return b.getElementsByClassName(a[1])},a=null}}(),c.documentElement.contains?k.contains=function(a,b){return a!==b&&(a.contains?a.contains(b):!0)}:c.documentElement.compareDocumentPosition?k.contains=function(a,b){return!!(a.compareDocumentPosition(b)&16)}:k.contains=function(){return!1},k.isXML=function(a){var b=(a?a.ownerDocument||a:0).documentElement;return b?b.nodeName!=="HTML":!1};var v=function(a,b){var c,d=[],e="",f=b.nodeType?[b]:b;while(c=l.match.PSEUDO.exec(a))e+=c[0],a=a.replace(l.match.PSEUDO,"");a=l.relative[a]?a+"*":a;for(var g=0,h=f.length;g<h;g++)k(a,f[g],d);return k.filter(e,d)};f.find=k,f.expr=k.selectors,f.expr[":"]=f.expr.filters,f.unique=k.uniqueSort,f.text=k.getText,f.isXMLDoc=k.isXML,f.contains=k.contains}();var N=/Until$/,O=/^(?:parents|prevUntil|prevAll)/,P=/,/,Q=/^.[^:#\[\.,]*$/,R=Array.prototype.slice,S=f.expr.match.POS,T={children:!0,contents:!0,next:!0,prev:!0};f.fn.extend({find:function(a){var b=this,c,d;if(typeof a!="string")return f(a).filter(function(){for(c=0,d=b.length;c<d;c++)if(f.contains(b[c],this))return!0});var e=this.pushStack("","find",a),g,h,i;for(c=0,d=this.length;c<d;c++){g=e.length,f.find(a,this[c],e);if(c>0)for(h=g;h<e.length;h++)for(i=0;i<g;i++)if(e[i]===e[h]){e.splice(h--,1);break}}return e},has:function(a){var b=f(a);return this.filter(function(){for(var a=0,c=b.length;a<c;a++)if(f.contains(this,b[a]))return!0})},not:function(a){return this.pushStack(V(this,a,!1),"not",a)},filter:function(a){return this.pushStack(V(this,a,!0),"filter",a)},is:function(a){return!!a&&(typeof a=="string"?f.filter(a,this).length>0:this.filter(a).length>0)},closest:function(a,b){var c=[],d,e,g=this[0];if(f.isArray(a)){var h,i,j={},k=1;if(g&&a.length){for(d=0,e=a.length;d<e;d++)i=a[d],j[i]||(j[i]=S.test(i)?f(i,b||this.context):i);while(g&&g.ownerDocument&&g!==b){for(i in j)h=j[i],(h.jquery?h.index(g)>-1:f(g).is(h))&&c.push({selector:i,elem:g,level:k});g=g.parentNode,k++}}return c}var l=S.test(a)||typeof a!="string"?f(a,b||this.context):0;for(d=0,e=this.length;d<e;d++){g=this[d];while(g){if(l?l.index(g)>-1:f.find.matchesSelector(g,a)){c.push(g);break}g=g.parentNode;if(!g||!g.ownerDocument||g===b||g.nodeType===11)break}}c=c.length>1?f.unique(c):c;return this.pushStack(c,"closest",a)},index:function(a){if(!a)return this[0]&&this[0].parentNode?this.prevAll().length:-1;if(typeof a=="string")return f.inArray(this[0],f(a));return f.inArray(a.jquery?a[0]:a,this)},add:function(a,b){var c=typeof a=="string"?f(a,b):f.makeArray(a&&a.nodeType?[a]:a),d=f.merge(this.get(),c);return this.pushStack(U(c[0])||U(d[0])?d:f.unique(d))},andSelf:function(){return this.add(this.prevObject)}}),f.each({parent:function(a){var b=a.parentNode;return b&&b.nodeType!==11?b:null},parents:function(a){return f.dir(a,"parentNode")},parentsUntil:function(a,b,c){return f.dir(a,"parentNode",c)},next:function(a){return f.nth(a,2,"nextSibling")},prev:function(a){return f.nth(a,2,"previousSibling")},nextAll:function(a){return f.dir(a,"nextSibling")},prevAll:function(a){return f.dir(a,"previousSibling")},nextUntil:function(a,b,c){return f.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return f.dir(a,"previousSibling",c)},siblings:function(a){return f.sibling(a.parentNode.firstChild,a)},children:function(a){return f.sibling(a.firstChild)},contents:function(a){return f.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:f.makeArray(a.childNodes)}},function(a,b){f.fn[a]=function(c,d){var e=f.map(this,b,c),g=R.call(arguments);N.test(a)||(d=c),d&&typeof d=="string"&&(e=f.filter(d,e)),e=this.length>1&&!T[a]?f.unique(e):e,(this.length>1||P.test(d))&&O.test(a)&&(e=e.reverse());return this.pushStack(e,a,g.join(","))}}),f.extend({filter:function(a,b,c){c&&(a=":not("+a+")");return b.length===1?f.find.matchesSelector(b[0],a)?[b[0]]:[]:f.find.matches(a,b)},dir:function(a,c,d){var e=[],g=a[c];while(g&&g.nodeType!==9&&(d===b||g.nodeType!==1||!f(g).is(d)))g.nodeType===1&&e.push(g),g=g[c];return e},nth:function(a,b,c,d){b=b||1;var e=0;for(;a;a=a[c])if(a.nodeType===1&&++e===b)break;return a},sibling:function(a,b){var c=[];for(;a;a=a.nextSibling)a.nodeType===1&&a!==b&&c.push(a);return c}});var W=/ jQuery\d+="(?:\d+|null)"/g,X=/^\s+/,Y=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Z=/<([\w:]+)/,$=/<tbody/i,_=/<|&#?\w+;/,ba=/<(?:script|object|embed|option|style)/i,bb=/checked\s*(?:[^=]|=\s*.checked.)/i,bc=/\/(java|ecma)script/i,bd=/^\s*<!(?:\[CDATA\[|\-\-)/,be={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]};be.optgroup=be.option,be.tbody=be.tfoot=be.colgroup=be.caption=be.thead,be.th=be.td,f.support.htmlSerialize||(be._default=[1,"div<div>","</div>"]),f.fn.extend({text:function(a){if(f.isFunction(a))return this.each(function(b){var c=f(this);c.text(a.call(this,b,c.text()))});if(typeof a!="object"&&a!==b)return this.empty().append((this[0]&&this[0].ownerDocument||c).createTextNode(a));return f.text(this)},wrapAll:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapAll(a.call(this,b))});if(this[0]){var b=f(a,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&b.insertBefore(this[0]),b.map(function(){var a=this;while(a.firstChild&&a.firstChild.nodeType===1)a=a.firstChild;return a}).append(this)}return this},wrapInner:function(a){if(f.isFunction(a))return this.each(function(b){f(this).wrapInner(a.call(this,b))});return this.each(function(){var b=f(this),c=b.contents();c.length?c.wrapAll(a):b.append(a)})},wrap:function(a){return this.each(function(){f(this).wrapAll(a)})},unwrap:function(){return this.parent().each(function(){f.nodeName(this,"body")||f(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,!0,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this)});if(arguments.length){var a=f(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(a){this.parentNode.insertBefore(a,this.nextSibling)});if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.apply(a,f(arguments[0]).toArray());return a}},remove:function(a,b){for(var c=0,d;(d=this[c])!=null;c++)if(!a||f.filter(a,[d]).length)!b&&d.nodeType===1&&(f.cleanData(d.getElementsByTagName("*")),f.cleanData([d])),d.parentNode&&d.parentNode.removeChild(d);return this},empty:function(){for(var a=0,b;(b=this[a])!=null;a++){b.nodeType===1&&f.cleanData(b.getElementsByTagName("*"));while(b.firstChild)b.removeChild(b.firstChild)}return this},clone:function(a,b){a=a==null?!1:a,b=b==null?a:b;return this.map(function(){return f.clone(this,a,b)})},html:function(a){if(a===b)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(W,""):null;if(typeof a=="string"&&!ba.test(a)&&(f.support.leadingWhitespace||!X.test(a))&&!be[(Z.exec(a)||["",""])[1].toLowerCase()]){a=a.replace(Y,"<$1></$2>");try{for(var c=0,d=this.length;c<d;c++)this[c].nodeType===1&&(f.cleanData(this[c].getElementsByTagName("*")),this[c].innerHTML=a)}catch(e){this.empty().append(a)}}else f.isFunction(a)?this.each(function(b){var c=f(this);c.html(a.call(this,b,c.html()))}):this.empty().append(a);return this},replaceWith:function(a){if(this[0]&&this[0].parentNode){if(f.isFunction(a))return this.each(function(b){var c=f(this),d=c.html();c.replaceWith(a.call(this,b,d))});typeof a!="string"&&(a=f(a).detach());return this.each(function(){var b=this.nextSibling,c=this.parentNode;f(this).remove(),b?f(b).before(a):f(c).append(a)})}return this.length?this.pushStack(f(f.isFunction(a)?a():a),"replaceWith",a):this},detach:function(a){return this.remove(a,!0)},domManip:function(a,c,d){var e,g,h,i,j=a[0],k=[];if(!f.support.checkClone&&arguments.length===3&&typeof j=="string"&&bb.test(j))return this.each(function(){f(this).domManip(a,c,d,!0)});if(f.isFunction(j))return this.each(function(e){var g=f(this);a[0]=j.call(this,e,c?g.html():b),g.domManip(a,c,d)});if(this[0]){i=j&&j.parentNode,f.support.parentNode&&i&&i.nodeType===11&&i.childNodes.length===this.length?e={fragment:i}:e=f.buildFragment(a,this,k),h=e.fragment,h.childNodes.length===1?g=h=h.firstChild:g=h.firstChild;if(g){c=c&&f.nodeName(g,"tr");for(var l=0,m=this.length,n=m-1;l<m;l++)d.call(c?bf(this[l],g):this[l],e.cacheable||m>1&&l<n?f.clone(h,!0,!0):h)}k.length&&f.each(k,bl)}return this}}),f.buildFragment=function(a,b,d){var e,g,h,i;b&&b[0]&&(i=b[0].ownerDocument||b[0]),i.createDocumentFragment||(i=c),a.length===1&&typeof a[0]=="string"&&a[0].length<512&&i===c&&a[0].charAt(0)==="<"&&!ba.test(a[0])&&(f.support.checkClone||!bb.test(a[0]))&&(g=!0,h=f.fragments[a[0]],h&&h!==1&&(e=h)),e||(e=i.createDocumentFragment(),f.clean
(a,i,e,d)),g&&(f.fragments[a[0]]=h?e:1);return{fragment:e,cacheable:g}},f.fragments={},f.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){f.fn[a]=function(c){var d=[],e=f(c),g=this.length===1&&this[0].parentNode;if(g&&g.nodeType===11&&g.childNodes.length===1&&e.length===1){e[b](this[0]);return this}for(var h=0,i=e.length;h<i;h++){var j=(h>0?this.clone(!0):this).get();f(e[h])[b](j),d=d.concat(j)}return this.pushStack(d,a,e.selector)}}),f.extend({clone:function(a,b,c){var d=a.cloneNode(!0),e,g,h;if((!f.support.noCloneEvent||!f.support.noCloneChecked)&&(a.nodeType===1||a.nodeType===11)&&!f.isXMLDoc(a)){bh(a,d),e=bi(a),g=bi(d);for(h=0;e[h];++h)g[h]&&bh(e[h],g[h])}if(b){bg(a,d);if(c){e=bi(a),g=bi(d);for(h=0;e[h];++h)bg(e[h],g[h])}}e=g=null;return d},clean:function(a,b,d,e){var g;b=b||c,typeof b.createElement=="undefined"&&(b=b.ownerDocument||b[0]&&b[0].ownerDocument||c);var h=[],i;for(var j=0,k;(k=a[j])!=null;j++){typeof k=="number"&&(k+="");if(!k)continue;if(typeof k=="string")if(!_.test(k))k=b.createTextNode(k);else{k=k.replace(Y,"<$1></$2>");var l=(Z.exec(k)||["",""])[1].toLowerCase(),m=be[l]||be._default,n=m[0],o=b.createElement("div");o.innerHTML=m[1]+k+m[2];while(n--)o=o.lastChild;if(!f.support.tbody){var p=$.test(k),q=l==="table"&&!p?o.firstChild&&o.firstChild.childNodes:m[1]==="<table>"&&!p?o.childNodes:[];for(i=q.length-1;i>=0;--i)f.nodeName(q[i],"tbody")&&!q[i].childNodes.length&&q[i].parentNode.removeChild(q[i])}!f.support.leadingWhitespace&&X.test(k)&&o.insertBefore(b.createTextNode(X.exec(k)[0]),o.firstChild),k=o.childNodes}var r;if(!f.support.appendChecked)if(k[0]&&typeof(r=k.length)=="number")for(i=0;i<r;i++)bk(k[i]);else bk(k);k.nodeType?h.push(k):h=f.merge(h,k)}if(d){g=function(a){return!a.type||bc.test(a.type)};for(j=0;h[j];j++)if(e&&f.nodeName(h[j],"script")&&(!h[j].type||h[j].type.toLowerCase()==="text/javascript"))e.push(h[j].parentNode?h[j].parentNode.removeChild(h[j]):h[j]);else{if(h[j].nodeType===1){var s=f.grep(h[j].getElementsByTagName("script"),g);h.splice.apply(h,[j+1,0].concat(s))}d.appendChild(h[j])}}return h},cleanData:function(a){var b,c,d=f.cache,e=f.expando,g=f.event.special,h=f.support.deleteExpando;for(var i=0,j;(j=a[i])!=null;i++){if(j.nodeName&&f.noData[j.nodeName.toLowerCase()])continue;c=j[f.expando];if(c){b=d[c]&&d[c][e];if(b&&b.events){for(var k in b.events)g[k]?f.event.remove(j,k):f.removeEvent(j,k,b.handle);b.handle&&(b.handle.elem=null)}h?delete j[f.expando]:j.removeAttribute&&j.removeAttribute(f.expando),delete d[c]}}}});var bm=/alpha\([^)]*\)/i,bn=/opacity=([^)]*)/,bo=/([A-Z]|^ms)/g,bp=/^-?\d+(?:px)?$/i,bq=/^-?\d/,br=/^([\-+])=([\-+.\de]+)/,bs={position:"absolute",visibility:"hidden",display:"block"},bt=["Left","Right"],bu=["Top","Bottom"],bv,bw,bx;f.fn.css=function(a,c){if(arguments.length===2&&c===b)return this;return f.access(this,a,c,!0,function(a,c,d){return d!==b?f.style(a,c,d):f.css(a,c)})},f.extend({cssHooks:{opacity:{get:function(a,b){if(b){var c=bv(a,"opacity","opacity");return c===""?"1":c}return a.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":f.support.cssFloat?"cssFloat":"styleFloat"},style:function(a,c,d,e){if(!!a&&a.nodeType!==3&&a.nodeType!==8&&!!a.style){var g,h,i=f.camelCase(c),j=a.style,k=f.cssHooks[i];c=f.cssProps[i]||i;if(d===b){if(k&&"get"in k&&(g=k.get(a,!1,e))!==b)return g;return j[c]}h=typeof d,h==="string"&&(g=br.exec(d))&&(d=+(g[1]+1)*+g[2]+parseFloat(f.css(a,c)),h="number");if(d==null||h==="number"&&isNaN(d))return;h==="number"&&!f.cssNumber[i]&&(d+="px");if(!k||!("set"in k)||(d=k.set(a,d))!==b)try{j[c]=d}catch(l){}}},css:function(a,c,d){var e,g;c=f.camelCase(c),g=f.cssHooks[c],c=f.cssProps[c]||c,c==="cssFloat"&&(c="float");if(g&&"get"in g&&(e=g.get(a,!0,d))!==b)return e;if(bv)return bv(a,c)},swap:function(a,b,c){var d={};for(var e in b)d[e]=a.style[e],a.style[e]=b[e];c.call(a);for(e in b)a.style[e]=d[e]}}),f.curCSS=f.css,f.each(["height","width"],function(a,b){f.cssHooks[b]={get:function(a,c,d){var e;if(c){if(a.offsetWidth!==0)return by(a,b,d);f.swap(a,bs,function(){e=by(a,b,d)});return e}},set:function(a,b){if(!bp.test(b))return b;b=parseFloat(b);if(b>=0)return b+"px"}}}),f.support.opacity||(f.cssHooks.opacity={get:function(a,b){return bn.test((b&&a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100+"":b?"1":""},set:function(a,b){var c=a.style,d=a.currentStyle,e=f.isNaN(b)?"":"alpha(opacity="+b*100+")",g=d&&d.filter||c.filter||"";c.zoom=1;if(b>=1&&f.trim(g.replace(bm,""))===""){c.removeAttribute("filter");if(d&&!d.filter)return}c.filter=bm.test(g)?g.replace(bm,e):g+" "+e}}),f(function(){f.support.reliableMarginRight||(f.cssHooks.marginRight={get:function(a,b){var c;f.swap(a,{display:"inline-block"},function(){b?c=bv(a,"margin-right","marginRight"):c=a.style.marginRight});return c}})}),c.defaultView&&c.defaultView.getComputedStyle&&(bw=function(a,c){var d,e,g;c=c.replace(bo,"-$1").toLowerCase();if(!(e=a.ownerDocument.defaultView))return b;if(g=e.getComputedStyle(a,null))d=g.getPropertyValue(c),d===""&&!f.contains(a.ownerDocument.documentElement,a)&&(d=f.style(a,c));return d}),c.documentElement.currentStyle&&(bx=function(a,b){var c,d=a.currentStyle&&a.currentStyle[b],e=a.runtimeStyle&&a.runtimeStyle[b],f=a.style;!bp.test(d)&&bq.test(d)&&(c=f.left,e&&(a.runtimeStyle.left=a.currentStyle.left),f.left=b==="fontSize"?"1em":d||0,d=f.pixelLeft+"px",f.left=c,e&&(a.runtimeStyle.left=e));return d===""?"auto":d}),bv=bw||bx,f.expr&&f.expr.filters&&(f.expr.filters.hidden=function(a){var b=a.offsetWidth,c=a.offsetHeight;return b===0&&c===0||!f.support.reliableHiddenOffsets&&(a.style.display||f.css(a,"display"))==="none"},f.expr.filters.visible=function(a){return!f.expr.filters.hidden(a)});var bz=/%20/g,bA=/\[\]$/,bB=/\r?\n/g,bC=/#.*$/,bD=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,bE=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,bF=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,bG=/^(?:GET|HEAD)$/,bH=/^\/\//,bI=/\?/,bJ=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,bK=/^(?:select|textarea)/i,bL=/\s+/,bM=/([?&])_=[^&]*/,bN=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,bO=f.fn.load,bP={},bQ={},bR,bS,bT=["*/"]+["*"];try{bR=e.href}catch(bU){bR=c.createElement("a"),bR.href="",bR=bR.href}bS=bN.exec(bR.toLowerCase())||[],f.fn.extend({load:function(a,c,d){if(typeof a!="string"&&bO)return bO.apply(this,arguments);if(!this.length)return this;var e=a.indexOf(" ");if(e>=0){var g=a.slice(e,a.length);a=a.slice(0,e)}var h="GET";c&&(f.isFunction(c)?(d=c,c=b):typeof c=="object"&&(c=f.param(c,f.ajaxSettings.traditional),h="POST"));var i=this;f.ajax({url:a,type:h,dataType:"html",data:c,complete:function(a,b,c){c=a.responseText,a.isResolved()&&(a.done(function(a){c=a}),i.html(g?f("<div>").append(c.replace(bJ,"")).find(g):c)),d&&i.each(d,[c,b,a])}});return this},serialize:function(){return f.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?f.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||bK.test(this.nodeName)||bE.test(this.type))}).map(function(a,b){var c=f(this).val();return c==null?null:f.isArray(c)?f.map(c,function(a,c){return{name:b.name,value:a.replace(bB,"\r\n")}}):{name:b.name,value:c.replace(bB,"\r\n")}}).get()}}),f.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(a,b){f.fn[b]=function(a){return this.bind(b,a)}}),f.each(["get","post"],function(a,c){f[c]=function(a,d,e,g){f.isFunction(d)&&(g=g||e,e=d,d=b);return f.ajax({type:c,url:a,data:d,success:e,dataType:g})}}),f.extend({getScript:function(a,c){return f.get(a,b,c,"script")},getJSON:function(a,b,c){return f.get(a,b,c,"json")},ajaxSetup:function(a,b){b?bX(a,f.ajaxSettings):(b=a,a=f.ajaxSettings),bX(a,b);return a},ajaxSettings:{url:bR,isLocal:bF.test(bS[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":bT},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":a.String,"text html":!0,"text json":f.parseJSON,"text xml":f.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:bV(bP),ajaxTransport:bV(bQ),ajax:function(a,c){function w(a,c,l,m){if(s!==2){s=2,q&&clearTimeout(q),p=b,n=m||"",v.readyState=a>0?4:0;var o,r,u,w=c,x=l?bZ(d,v,l):b,y,z;if(a>=200&&a<300||a===304){if(d.ifModified){if(y=v.getResponseHeader("Last-Modified"))f.lastModified[k]=y;if(z=v.getResponseHeader("Etag"))f.etag[k]=z}if(a===304)w="notmodified",o=!0;else try{r=b$(d,x),w="success",o=!0}catch(A){w="parsererror",u=A}}else{u=w;if(!w||a)w="error",a<0&&(a=0)}v.status=a,v.statusText=""+(c||w),o?h.resolveWith(e,[r,w,v]):h.rejectWith(e,[v,w,u]),v.statusCode(j),j=b,t&&g.trigger("ajax"+(o?"Success":"Error"),[v,d,o?r:u]),i.resolveWith(e,[v,w]),t&&(g.trigger("ajaxComplete",[v,d]),--f.active||f.event.trigger("ajaxStop"))}}typeof a=="object"&&(c=a,a=b),c=c||{};var d=f.ajaxSetup({},c),e=d.context||d,g=e!==d&&(e.nodeType||e instanceof f)?f(e):f.event,h=f.Deferred(),i=f._Deferred(),j=d.statusCode||{},k,l={},m={},n,o,p,q,r,s=0,t,u,v={readyState:0,setRequestHeader:function(a,b){if(!s){var c=a.toLowerCase();a=m[c]=m[c]||a,l[a]=b}return this},getAllResponseHeaders:function(){return s===2?n:null},getResponseHeader:function(a){var c;if(s===2){if(!o){o={};while(c=bD.exec(n))o[c[1].toLowerCase()]=c[2]}c=o[a.toLowerCase()]}return c===b?null:c},overrideMimeType:function(a){s||(d.mimeType=a);return this},abort:function(a){a=a||"abort",p&&p.abort(a),w(0,a);return this}};h.promise(v),v.success=v.done,v.error=v.fail,v.complete=i.done,v.statusCode=function(a){if(a){var b;if(s<2)for(b in a)j[b]=[j[b],a[b]];else b=a[v.status],v.then(b,b)}return this},d.url=((a||d.url)+"").replace(bC,"").replace(bH,bS[1]+"//"),d.dataTypes=f.trim(d.dataType||"*").toLowerCase().split(bL),d.crossDomain==null&&(r=bN.exec(d.url.toLowerCase()),d.crossDomain=!(!r||r[1]==bS[1]&&r[2]==bS[2]&&(r[3]||(r[1]==="http:"?80:443))==(bS[3]||(bS[1]==="http:"?80:443)))),d.data&&d.processData&&typeof d.data!="string"&&(d.data=f.param(d.data,d.traditional)),bW(bP,d,c,v);if(s===2)return!1;t=d.global,d.type=d.type.toUpperCase(),d.hasContent=!bG.test(d.type),t&&f.active++===0&&f.event.trigger("ajaxStart");if(!d.hasContent){d.data&&(d.url+=(bI.test(d.url)?"&":"?")+d.data,delete d.data),k=d.url;if(d.cache===!1){var x=f.now(),y=d.url.replace(bM,"$1_="+x);d.url=y+(y===d.url?(bI.test(d.url)?"&":"?")+"_="+x:"")}}(d.data&&d.hasContent&&d.contentType!==!1||c.contentType)&&v.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(k=k||d.url,f.lastModified[k]&&v.setRequestHeader("If-Modified-Since",f.lastModified[k]),f.etag[k]&&v.setRequestHeader("If-None-Match",f.etag[k])),v.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+(d.dataTypes[0]!=="*"?", "+bT+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)v.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(e,v,d)===!1||s===2)){v.abort();return!1}for(u in{success:1,error:1,complete:1})v[u](d[u]);p=bW(bQ,d,c,v);if(!p)w(-1,"No Transport");else{v.readyState=1,t&&g.trigger("ajaxSend",[v,d]),d.async&&d.timeout>0&&(q=setTimeout(function(){v.abort("timeout")},d.timeout));try{s=1,p.send(l,w)}catch(z){s<2?w(-1,z):f.error(z)}}return v},param:function(a,c){var d=[],e=function(a,b){b=f.isFunction(b)?b():b,d[d.length]=encodeURIComponent(a)+"="+encodeURIComponent(b)};c===b&&(c=f.ajaxSettings.traditional);if(f.isArray(a)||a.jquery&&!f.isPlainObject(a))f.each(a,function(){e(this.name,this.value)});else for(var g in a)bY(g,a[g],c,e);return d.join("&").replace(bz,"+")}}),f.extend({active:0,lastModified:{},etag:{}});var b_=f.now(),ca=/(\=)\?(&|$)|\?\?/i;f.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return f.expando+"_"+b_++}}),f.ajaxPrefilter("json jsonp",function(b,c,d){var e=b.contentType==="application/x-www-form-urlencoded"&&typeof b.data=="string";if(b.dataTypes[0]==="jsonp"||b.jsonp!==!1&&(ca.test(b.url)||e&&ca.test(b.data))){var g,h=b.jsonpCallback=f.isFunction(b.jsonpCallback)?b.jsonpCallback():b.jsonpCallback,i=a[h],j=b.url,k=b.data,l="$1"+h+"$2";b.jsonp!==!1&&(j=j.replace(ca,l),b.url===j&&(e&&(k=k.replace(ca,l)),b.data===k&&(j+=(/\?/.test(j)?"&":"?")+b.jsonp+"="+h))),b.url=j,b.data=k,a[h]=function(a){g=[a]},d.always(function(){a[h]=i,g&&f.isFunction(i)&&a[h](g[0])}),b.converters["script json"]=function(){g||f.error(h+" was not called");return g[0]},b.dataTypes[0]="json";return"script"}}),f.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(a){f.globalEval(a);return a}}}),f.ajaxPrefilter("script",function(a){a.cache===b&&(a.cache=!1),a.crossDomain&&(a.type="GET",a.global=!1)}),f.ajaxTransport("script",function(a){if(a.crossDomain){var d,e=c.head||c.getElementsByTagName("head")[0]||c.documentElement;return{send:function(f,g){d=c.createElement("script"),d.async="async",a.scriptCharset&&(d.charset=a.scriptCharset),d.src=a.url,d.onload=d.onreadystatechange=function(a,c){if(c||!d.readyState||/loaded|complete/.test(d.readyState))d.onload=d.onreadystatechange=null,e&&d.parentNode&&e.removeChild(d),d=b,c||g(200,"success")},e.insertBefore(d,e.firstChild)},abort:function(){d&&d.onload(0,1)}}}});var cb=a.ActiveXObject?function(){for(var a in cd)cd[a](0,1)}:!1,cc=0,cd;f.ajaxSettings.xhr=a.ActiveXObject?function(){return!this.isLocal&&ce()||cf()}:ce,function(a){f.extend(f.support,{ajax:!!a,cors:!!a&&"withCredentials"in a})}(f.ajaxSettings.xhr()),f.support.ajax&&f.ajaxTransport(function(c){if(!c.crossDomain||f.support.cors){var d;return{send:function(e,g){var h=c.xhr(),i,j;c.username?h.open(c.type,c.url,c.async,c.username,c.password):h.open(c.type,c.url,c.async);if(c.xhrFields)for(j in c.xhrFields)h[j]=c.xhrFields[j];c.mimeType&&h.overrideMimeType&&h.overrideMimeType(c.mimeType),!c.crossDomain&&!e["X-Requested-With"]&&(e["X-Requested-With"]="XMLHttpRequest");try{for(j in e)h.setRequestHeader(j,e[j])}catch(k){}h.send(c.hasContent&&c.data||null),d=function(a,e){var j,k,l,m,n;try{if(d&&(e||h.readyState===4)){d=b,i&&(h.onreadystatechange=f.noop,cb&&delete cd[i]);if(e)h.readyState!==4&&h.abort();else{j=h.status,l=h.getAllResponseHeaders(),m={},n=h.responseXML,n&&n.documentElement&&(m.xml=n),m.text=h.responseText;try{k=h.statusText}catch(o){k=""}!j&&c.isLocal&&!c.crossDomain?j=m.text?200:404:j===1223&&(j=204)}}}catch(p){e||g(-1,p)}m&&g(j,k,m,l)},!c.async||h.readyState===4?d():(i=++cc,cb&&(cd||(cd={},f(a).unload(cb)),cd[i]=d),h.onreadystatechange=d)},abort:function(){d&&d(0,1)}}}});var cg={},ch,ci,cj=/^(?:toggle|show|hide)$/,ck=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,cl,cm=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],cn;f.fn.extend({show:function(a,b,c){var d,e;if(a||a===0)return this.animate(cq("show",3),a,b,c);for(var g=0,h=this.length;g<h;g++)d=this[g],d.style&&(e=d.style.display,!f._data(d,"olddisplay")&&e==="none"&&(e=d.style.display=""),e===""&&f.css(d,"display")==="none"&&f._data(d,"olddisplay",cr(d.nodeName)));for(g=0;g<h;g++){d=this[g];if(d.style){e=d.style.display;if(e===""||e==="none")d.style.display=f._data(d,"olddisplay")||""}}return this},hide:function(a,b,c){if(a||a===0)return this.animate(cq("hide",3),a,b,c);for(var d=0,e=this.length;d<e;d++)if(this[d].style){var g=f.css(this[d],"display");g!=="none"&&!f._data(this[d],"olddisplay")&&f._data(this[d],"olddisplay",g)}for(d=0;d<e;d++)this[d].style&&(this[d].style.display="none");return this},_toggle:f.fn.toggle,toggle:function(a,b,c){var d=typeof a=="boolean";f.isFunction(a)&&f.isFunction(b)?this._toggle.apply(this,arguments):a==null||d?this.each(function(){var b=d?a:f(this).is(":hidden");f(this)[b?"show":"hide"]()}):this.animate(cq("toggle",3),a,b,c);return this},fadeTo:function(a,b,c,d){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:b},a,c,d)},animate:function(a,b,c,d){var e=f.speed(b,c,d);if(f.isEmptyObject(a))return this.each(e.complete,[!1]);a=f.extend({},a);return this[e.queue===!1?"each":"queue"](function(){e.queue===!1&&f._mark(this);var b=f.extend({},e),c=this.nodeType===1,d=c&&f(this).is(":hidden"),g,h,i,j,k,l,m,n,o;b.animatedProperties={};for(i in a){g=f.camelCase(i),i!==g&&(a[g]=a[i],delete a[i]),h=a[g],f.isArray(h)?(b.animatedProperties[g]=h[1],h=a[g]=h[0]):b.animatedProperties[g]=b.specialEasing&&b.specialEasing[g]||b.easing||"swing";if(h==="hide"&&d||h==="show"&&!d)return b.complete.call(this);c&&(g==="height"||g==="width")&&(b.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],f.css(this,"display")==="inline"&&f.css(this,"float")==="none"&&(f.support.inlineBlockNeedsLayout?(j=cr(this.nodeName),j==="inline"?this.style.display="inline-block":(this.style.display="inline",this.style.zoom=1)):this.style.display="inline-block"))}b.overflow!=null&&(this.style.overflow="hidden");for(i in a)k=new f.fx(this,b,i),h=a[i],cj.test(h)?k[h==="toggle"?d?"show":"hide":h]():(l=ck.exec(h),m=k.cur(),l?(n=parseFloat(l[2]),o=l[3]||(f.cssNumber[i]?"":"px"),o!=="px"&&(f.style(this,i,(n||1)+o),m=(n||1)/k.cur()*m,f.style(this,i,m+o)),l[1]&&(n=(l[1]==="-="?-1:1)*n+m),k.custom(m,n,o)):k.custom(m,h,""));return!0})},stop:function(a,b){a&&this.queue([]),this.each(function(){var a=f.timers,c=a.length;b||f._unmark(!0,this);while(c--)a[c].elem===this&&(b&&a[c](!0),a.splice(c,1))}),b||this.dequeue();return this}}),f.each({slideDown:cq("show",1),slideUp:cq("hide",1),slideToggle:cq("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(a,b){f.fn[a]=function(a,c,d){return this.animate(b,a,c,d)}}),f.extend({speed:function(a,b,c){var d=a&&typeof a=="object"?f.extend({},a):{complete:c||!c&&b||f.isFunction(a)&&a,duration:a,easing:c&&b||b&&!f.isFunction(b)&&b};d.duration=f.fx.off?0:typeof d.duration=="number"?d.duration:d.duration in f.fx.speeds?f.fx.speeds[d.duration]:f.fx.speeds._default,d.old=d.complete,d.complete=function(a){f.isFunction(d.old)&&d.old.call(this),d.queue!==!1?f.dequeue(this):a!==!1&&f._unmark(this)};return d},easing:{linear:function(a,b,c,d){return c+d*a},swing:function(a,b,c,d){return(-Math.cos(a*Math.PI)/2+.5)*d+c}},timers:[],fx:function(a,b,c){this.options=b,this.elem=a,this.prop=c,b.orig=b.orig||{}}}),f.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(f.fx.step[this.prop]||f.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var a,b=f.css(this.elem,this.prop);return isNaN(a=parseFloat(b))?!b||b==="auto"?0:b:a},custom:function(a,b,c){function g(a){return d.step(a)}var d=this,e=f.fx;this.startTime=cn||co(),this.start=a,this.end=b,this.unit=c||this.unit||(f.cssNumber[this.prop]?"":"px"),this.now=this.start,this.pos=this.state=0,g.elem=this.elem,g()&&f.timers.push(g)&&!cl&&(cl=setInterval(e.tick,e.interval))},show:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.show=!0,this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),f(this.elem).show()},hide:function(){this.options.orig[this.prop]=f.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(a){var b=cn||co(),c=!0,d=this.elem,e=this.options,g,h;if(a||b>=e.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),e.animatedProperties[this.prop]=!0;for(g in e.animatedProperties)e.animatedProperties[g]!==!0&&(c=!1);if(c){e.overflow!=null&&!f.support.shrinkWrapBlocks&&f.each(["","X","Y"],function(a,b){d.style["overflow"+b]=e.overflow[a]}),e.hide&&f(d).hide();if(e.hide||e.show)for(var i in e.animatedProperties)f.style(d,i,e.orig[i]);e.complete.call(d)}return!1}e.duration==Infinity?this.now=b:(h=b-this.startTime,this.state=h/e.duration,this.pos=f.easing[e.animatedProperties[this.prop]](this.state,h,0,1,e.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update();return!0}},f.extend(f.fx,{tick:function(){for(var a=f.timers,b=0;b<a.length;++b)a[b]()||a.splice(b--,1);a.length||f.fx.stop()},interval:13,stop:function(){clearInterval(cl),cl=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(a){f.style(a.elem,"opacity",a.now)},_default:function(a){a.elem.style&&a.elem.style[a.prop]!=null?a.elem.style[a.prop]=(a.prop==="width"||a.prop==="height"?Math.max(0,a.now):a.now)+a.unit:a.elem[a.prop]=a.now}}}),f.expr&&f.expr.filters&&(f.expr.filters.animated=function(a){return f.grep(f.timers,function(b){return a===b.elem}).length});var cs=/^t(?:able|d|h)$/i,ct=/^(?:body|html)$/i;"getBoundingClientRect"in c.documentElement?f.fn.offset=function(a){var b=this[0],c;if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);try{c=b.getBoundingClientRect()}catch(d){}var e=b.ownerDocument,g=e.documentElement;if(!c||!f.contains(g,b))return c?{top:c.top,left:c.left}:{top:0,left:0};var h=e.body,i=cu(e),j=g.clientTop||h.clientTop||0,k=g.clientLeft||h.clientLeft||0,l=i.pageYOffset||f.support.boxModel&&g.scrollTop||h.scrollTop,m=i.pageXOffset||f.support.boxModel&&g.scrollLeft||h.scrollLeft,n=c.top+l-j,o=c.left+m-k;return{top:n,left:o}}:f.fn.offset=function(a){var b=this[0];if(a)return this.each(function(b){f.offset.setOffset(this,a,b)});if(!b||!b.ownerDocument)return null;if(b===b.ownerDocument.body)return f.offset.bodyOffset(b);f.offset.initialize();var c,d=b.offsetParent,e=b,g=b.ownerDocument,h=g.documentElement,i=g.body,j=g.defaultView,k=j?j.getComputedStyle(b,null):b.currentStyle,l=b.offsetTop,m=b.offsetLeft;while((b=b.parentNode)&&b!==i&&b!==h){if(f.offset.supportsFixedPosition&&k.position==="fixed")break;c=j?j.getComputedStyle(b,null):b.currentStyle,l-=b.scrollTop,m-=b.scrollLeft,b===d&&(l+=b.offsetTop,m+=b.offsetLeft,f.offset.doesNotAddBorder&&(!f.offset.doesAddBorderForTableAndCells||!cs.test(b.nodeName))&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),e=d,d=b.offsetParent),f.offset.subtractsBorderForOverflowNotVisible&&c.overflow!=="visible"&&(l+=parseFloat(c.borderTopWidth)||0,m+=parseFloat(c.borderLeftWidth)||0),k=c}if(k.position==="relative"||k.position==="static")l+=i.offsetTop,m+=i.offsetLeft;f.offset.supportsFixedPosition&&k.position==="fixed"&&(l+=Math.max(h.scrollTop,i.scrollTop),m+=Math.max(h.scrollLeft,i.scrollLeft));return{top:l,left:m}},f.offset={initialize:function(){var a=c.body,b=c.createElement("div"),d,e,g,h,i=parseFloat(f.css(a,"marginTop"))||0,j="<div style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;'><div></div></div><table style='position:absolute;top:0;left:0;margin:0;border:5px solid #000;padding:0;width:1px;height:1px;' cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";f.extend(b.style,{position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"}),b.innerHTML=j,a.insertBefore(b,a.firstChild),d=b.firstChild,e=d.firstChild,h=d.nextSibling.firstChild.firstChild,this.doesNotAddBorder=e.offsetTop!==5,this.doesAddBorderForTableAndCells=h.offsetTop===5,e.style.position="fixed",e.style.top="20px",this.supportsFixedPosition=e.offsetTop===20||e.offsetTop===15,e.style.position=e.style.top="",d.style.overflow="hidden",d.style.position="relative",this.subtractsBorderForOverflowNotVisible=e.offsetTop===-5,this.doesNotIncludeMarginInBodyOffset=a.offsetTop!==i,a.removeChild(b),f.offset.initialize=f.noop},bodyOffset:function(a){var b=a.offsetTop,c=a.offsetLeft;f.offset.initialize(),f.offset.doesNotIncludeMarginInBodyOffset&&(b+=parseFloat(f.css(a,"marginTop"))||0,c+=parseFloat(f.css(a,"marginLeft"))||0);return{top:b,left:c}},setOffset:function(a,b,c){var d=f.css(a,"position");d==="static"&&(a.style.position="relative");var e=f(a),g=e.offset(),h=f.css(a,"top"),i=f.css(a,"left"),j=(d==="absolute"||d==="fixed")&&f.inArray("auto",[h,i])>-1,k={},l={},m,n;j?(l=e.position(),m=l.top,n=l.left):(m=parseFloat(h)||0,n=parseFloat(i)||0),f.isFunction(b)&&(b=b.call(a,c,g)),b.top!=null&&(k.top=b.top-g.top+m),b.left!=null&&(k.left=b.left-g.left+n),"using"in b?b.using.call(a,k):e.css(k)}},f.fn.extend({position:function(){if(!this[0])return null;var a=this[0],b=this.offsetParent(),c=this.offset(),d=ct.test(b[0].nodeName)?{top:0,left:0}:b.offset();c.top-=parseFloat(f.css(a,"marginTop"))||0,c.left-=parseFloat(f.css(a,"marginLeft"))||0,d.top+=parseFloat(f.css(b[0],"borderTopWidth"))||0,d.left+=parseFloat(f.css(b[0],"borderLeftWidth"))||0;return{top:c.top-d.top,left:c.left-d.left}},offsetParent:function(){return this.map(function(){var a=this.offsetParent||c.body;while(a&&!ct.test(a.nodeName)&&f.css(a,"position")==="static")a=a.offsetParent;return a})}}),f.each(["Left","Top"],function(a,c){var d="scroll"+c;f.fn[d]=function(c){var e,g;if(c===b){e=this[0];if(!e)return null;g=cu(e);return g?"pageXOffset"in g?g[a?"pageYOffset":"pageXOffset"]:f.support.boxModel&&g.document.documentElement[d]||g.document.body[d]:e[d]}return this.each(function(){g=cu(this),g?g.scrollTo(a?f(g).scrollLeft():c,a?c:f(g).scrollTop()):this[d]=c})}}),f.each(["Height","Width"],function(a,c){var d=c.toLowerCase();f.fn["inner"+c]=function(){var a=this[0];return a&&a.style?parseFloat(f.css(a,d,"padding")):null},f.fn["outer"+c]=function(a){var b=this[0];return b&&b.style?parseFloat(f.css(b,d,a?"margin":"border")):null},f.fn[d]=function(a){var e=this[0];if(!e)return a==null?null:this;if(f.isFunction(a))return this.each(function(b){var c=f(this);c[d](a.call(this,b,c[d]()))});if(f.isWindow(e)){var g=e.document.documentElement["client"+c],h=e.document.body;return e.document.compatMode==="CSS1Compat"&&g||h&&h["client"+c]||g}if(e.nodeType===9)return Math.max(e.documentElement["client"+c],e.body["scroll"+c],e.documentElement["scroll"+c],e.body["offset"+c],e.documentElement["offset"+c]);if(a===b){var i=f.css(e,d),j=parseFloat(i);return f.isNaN(j)?i:j}return this.css(d,typeof a=="string"?a:a+"px")}}),a.jQuery=a.$=f})(window);}catch(e){document.write("\x3cscript type='text/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js?ver=1.6.4'>\x3c/script>")}try{(function($){$.fn.pjax=function(container,options){if(options)
options.container=container
else
options=$.isPlainObject(container)?container:{container:container}
if(options.container&&typeof options.container!=='string'){throw"pjax container must be a string selector!"
return false}
return this.live('click',function(event){if(event.which>1||event.metaKey)
return true
var defaults={url:this.href,container:$(this).attr('data-pjax'),clickedElement:$(this),fragment:null}
$.pjax($.extend({},defaults,options))
event.preventDefault()})}
$.pjax=function(options){var $container=$(options.container),success=options.success||$.noop
delete options.success
if(typeof options.container!=='string')
throw"pjax container must be a string selector!"
var defaults={timeout:650,push:true,replace:false,data:{_pjax:true},type:'GET',dataType:'html',beforeSend:function(xhr){$container.trigger('start.pjax')
xhr.setRequestHeader('X-PJAX','true')},error:function(){window.location=options.url},complete:function(){$container.trigger('end.pjax')},success:function(data){if(options.fragment){var $fragment=$(data).find(options.fragment)
if($fragment.length)
data=$fragment.children()
else
return window.location=options.url}else{if(!$.trim(data)||/<html/i.test(data))
return window.location=options.url}
$container.html(data)
var oldTitle=document.title,title=$.trim($container.find('title').remove().text())
if(title)document.title=title
var state={pjax:options.container,fragment:options.fragment,timeout:options.timeout}
var query=$.param(options.data)
if(query!="_pjax=true")
state.url=options.url+(/\?/.test(options.url)?"&":"?")+query
if(options.replace){window.history.replaceState(state,document.title,options.url)}else if(options.push){if(!$.pjax.active){window.history.replaceState($.extend({},state,{url:null}),oldTitle)
$.pjax.active=true}
window.history.pushState(state,document.title,options.url)}
if((options.replace||options.push)&&window._gaq)
_gaq.push(['_trackPageview'])
var hash=window.location.hash.toString()
if(hash!==''){window.location.href=hash}
success.apply(this,arguments)}}
options=$.extend(true,{},defaults,options)
if($.isFunction(options.url)){options.url=options.url()}
var xhr=$.pjax.xhr
if(xhr&&xhr.readyState<4){xhr.onreadystatechange=$.noop
xhr.abort()}
$.pjax.xhr=$.ajax(options)
$(document).trigger('pjax',$.pjax.xhr,options)
return $.pjax.xhr}
var popped=('state'in window.history),initialURL=location.href
$(window).bind('popstate',function(event){var initialPop=!popped&&location.href==initialURL
popped=true
if(initialPop)return
var state=event.state
if(state&&state.pjax){var container=state.pjax
if($(container+'').length)
$.pjax({url:state.url||location.href,fragment:state.fragment,container:container,push:false,timeout:state.timeout})
else
window.location=location.href}})
if($.inArray('state',$.event.props)<0)
$.event.props.push('state')
$.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/(iPod|iPhone|iPad|WebApps\/.+CFNetwork)/)
if(!$.support.pjax){$.pjax=function(options){window.location=$.isFunction(options.url)?options.url():options.url}
$.fn.pjax=function(){return this}}})(jQuery);}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/the-events-calendar/resources/jquery.pjax.js?ver=3.3.1'>\x3c/script>")}try{jQuery(document).ready(function($){$("table.tribe-events-calendar tbody tr").each(function(index){$(this).find("td:gt(3)").addClass("tribe-events-right");});$("table.tribe-events-calendar:not(.tribe-events-calendar-widget) .tribe-events-event:not(.daynum)").live('mouseenter',function(){if($.browser.msie&&$.browser.version==6){var bottomPad=$(this).parents("td").outerHeight()+5;}
else{var bottomPad=$(this).find('a').outerHeight()+18;}
$(this).find(".tribe-events-tooltip").css('bottom',bottomPad).show();}).live('mouseleave',function(){if($.browser.msie&&$.browser.version<=9){$(this).find(".tribe-events-tooltip").hide()}else{$(this).find(".tribe-events-tooltip").fadeOut(200);}});$("table.tribe-events-calendar-widget .tribe-events-event:has(a)").live('mouseenter',function(){if($.browser.msie&&$.browser.version==6){var bottomPad=$(this).outerHeight();}
else{var bottomPad=$(this).outerHeight()+3;}
$(this).find(".tribe-events-tooltip").css('bottom',bottomPad).fadeIn(300);}).live('mouseleave',function(){if($.browser.msie&&$.browser.version<=9){$(this).find(".tribe-events-tooltip").hide()}else{$(this).find(".tribe-events-tooltip").fadeOut(200);}});$(".tribe-events-events-dropdown").live('change',function(){baseUrl=$(this).parent().attr("action");url=baseUrl+$('#tribe-events-events-year').val()+'-'+$('#tribe-events-events-month').val();$('.ajax-loading').show();$.pjax({url:url,container:'#tribe-events-content',fragment:'#tribe-events-content',timeout:1000});});$('.tribe-events-prev-month a, .tribe-events-next-month a').pjax('#tribe-events-content',{timeout:10000,fragment:'#tribe-events-content'}).live('click',function(){$('.ajax-loading').show();});});}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/the-events-calendar/resources/events.js?ver=3.3.1'>\x3c/script>")}try{var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return!a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-includes/js/swfobject.js?ver=2.2'>\x3c/script>")}try{function ImageFlow()
{this.defaults={aspectRatio:1.964,buttons:false,captions:true,imageCursor:'default',ImageFlowID:'imageflow',imageFocusM:1.0,imageFocusMax:4,imageScaling:true,imagesHeight:0.67,imagesM:1.0,onClick:function(){document.location=this.url;},opacity:false,opacityArray:[10,8,6,4,2],percentLandscape:118,percentOther:100,preloadImages:true,preloadImagesText:'loading images',reflections:true,reflectionGET:'',reflectionP:0.5,reflectionPNG:false,scrollbarP:0.6,slider:true,sliderCursor:'e-resize',sliderWidth:14,startID:1,startAnimation:false,xStep:150,animationSpeed:50,singleItemTag:'IMG',slideshow:false,slideshowInterval:2000,slideshowLeftToRight:true,cycle:false};var thisObject=this;this.init=function(options)
{var optionsArray=['aspectRatio','buttons','captions','imageCursor','imagesM','ImageFlowID','imageFocusM','imageFocusMax','imagesHeight','onClick','opacity','opacityArray','percentLandscape','percentOther','preloadImages','preloadImagesText','reflections','reflectionGET','reflectionP','reflectionPNG','imageScaling','scrollbarP','slider','sliderCursor','sliderWidth','startID','startAnimation','xStep','animationSpeed','singleItemTag','slideshow','slideshowInterval','slideshowLeftToRight','cycle'];var max=optionsArray.length;for(var i=0;i<max;i++)
{var name=optionsArray[i];this[name]=(options!==undefined&&options[name]!==undefined)?options[name]:thisObject.defaults[name];}
var ImageFlowDiv=document.getElementById(thisObject.ImageFlowID);if(ImageFlowDiv)
{ImageFlowDiv.style.visibility='visible';this.ImageFlowDiv=ImageFlowDiv;if(this.createStructure())
{this.imagesDiv=document.getElementById(thisObject.ImageFlowID+'_images');this.captionDiv=document.getElementById(thisObject.ImageFlowID+'_caption');this.navigationDiv=document.getElementById(thisObject.ImageFlowID+'_navigation');this.scrollbarDiv=document.getElementById(thisObject.ImageFlowID+'_scrollbar');this.sliderDiv=document.getElementById(thisObject.ImageFlowID+'_slider');this.buttonNextDiv=document.getElementById(thisObject.ImageFlowID+'_next');this.buttonPreviousDiv=document.getElementById(thisObject.ImageFlowID+'_previous');this.indexArray=[];this.current=0;this.imageID=0;this.target=0;this.memTarget=0;this.firstRefresh=true;this.firstCheck=true;this.busy=false;if(this.slider===false)
{this.sliderDiv.style.display='none';}
if(this.imagesDiv.childNodes.length<2){this.scrollbarDiv.style.display='none';}
var width=this.ImageFlowDiv.offsetWidth;var height=Math.round(width/thisObject.aspectRatio);document.getElementById(thisObject.ImageFlowID+'_loading_txt').style.paddingTop=((height*0.5)-22)+'px';ImageFlowDiv.style.height=height+'px';this.loadingProgress();}}};this.createStructure=function()
{var imagesDiv=thisObject.Helper.createDocumentElement('div','images');var node=null;var max=this.ImageFlowDiv.childNodes.length;for(var index=0;index<max;index++)
{node=this.ImageFlowDiv.childNodes[index];if(node&&node.nodeType==1&&node.nodeName==thisObject.singleItemTag)
{if(thisObject.singleItemTag!='IMG'){var imgNode=this.getImagesFromStructure(node);if(imgNode){node=imgNode;}else{continue;}}
var imageNode=node.cloneNode(true);imagesDiv.appendChild(imageNode);}}
var loadingP=thisObject.Helper.createDocumentElement('p','loading_txt');var loadingText=document.createTextNode(' ');loadingP.appendChild(loadingText);var loadingDiv=thisObject.Helper.createDocumentElement('div','loading');var loadingBarDiv=thisObject.Helper.createDocumentElement('div','loading_bar');loadingDiv.appendChild(loadingBarDiv);var captionDiv=thisObject.Helper.createDocumentElement('div','caption');var scrollbarDiv=thisObject.Helper.createDocumentElement('div','scrollbar');var sliderDiv=thisObject.Helper.createDocumentElement('div','slider');scrollbarDiv.appendChild(sliderDiv);if(thisObject.buttons)
{var buttonPreviousDiv=thisObject.Helper.createDocumentElement('div','previous','button');var buttonNextDiv=thisObject.Helper.createDocumentElement('div','next','button');scrollbarDiv.appendChild(buttonPreviousDiv);scrollbarDiv.appendChild(buttonNextDiv);}
var navigationDiv=thisObject.Helper.createDocumentElement('div','navigation');navigationDiv.appendChild(captionDiv);navigationDiv.appendChild(scrollbarDiv);var success=false;if(thisObject.ImageFlowDiv.appendChild(imagesDiv)&&thisObject.ImageFlowDiv.appendChild(loadingP)&&thisObject.ImageFlowDiv.appendChild(loadingDiv)&&thisObject.ImageFlowDiv.appendChild(navigationDiv))
{for(index=0;index<max;index++)
{node=this.ImageFlowDiv.childNodes[index];if(node&&node.nodeType==1&&node.nodeName==thisObject.singleItemTag)
{this.ImageFlowDiv.removeChild(node);}}
success=true;}
return success;};this.getImagesFromStructure=function(structure,level){if(!level)level=0;var imgNode=null;var linkURL=null;var caption=null;var tempNode=null;var childLength=structure.childNodes.length;for(var child=0;child<childLength;child++){tempNode=structure.childNodes[child];if(tempNode.hasChildNodes()){if(!imgNode){imgNode=this.getImagesFromStructure(tempNode,level++);if(tempNode.nodeName=='A'&&tempNode.href&&tempNode.href!=''){linkURL=tempNode.href;}}
if(tempNode.className=='Imageflow_caption'){caption=tempNode.innerHTML;}}else{if(tempNode){if(tempNode.nodeName=='IMG'){imgNode=tempNode;}}}}
if(caption){imgNode.setAttribute('alt',caption);}
if(linkURL){imgNode.setAttribute('longdesc',linkURL);}
return imgNode;};this.loadingProgress=function()
{var p=thisObject.loadingStatus();if(p<100||thisObject.firstCheck===true&&thisObject.preloadImages===true)
{if(thisObject.firstCheck===true&&p==100)
{thisObject.firstCheck=false;window.setTimeout(thisObject.loadingProgress,100);}
else
{window.setTimeout(thisObject.loadingProgress,40);}}
else
{document.getElementById(thisObject.ImageFlowID+'_loading_txt').style.display='none';document.getElementById(thisObject.ImageFlowID+'_loading').style.display='none';window.setTimeout(thisObject.Helper.addResizeEvent,1000);thisObject.MouseWheel.init();thisObject.MouseDrag.init();thisObject.Touch.init();thisObject.Key.init();thisObject.refresh(true);document.getElementById(thisObject.ImageFlowID+'_scrollbar').style.visibility='visible';var startID=thisObject.startID-1;if(startID<0)
{startID=0;}
if(startID>=thisObject.max)
{startID=thisObject.max-1;}
thisObject.glideTo(startID);if(thisObject.startAnimation===true&&thisObject.max>1)
{thisObject.moveTo(5000);}
if(thisObject.slideshow){window.setTimeout(thisObject.slideshowImages,thisObject.slideshowInterval);}}};this.slideshowImages=function(){var newImageId=0;if(thisObject.slideshowLeftToRight){if(thisObject.imageID<(thisObject.max-1)){newImageID=thisObject.imageID+1;}else{newImageID=0;}}else{if(thisObject.imageID>0){newImageID=thisObject.imageID-1;}else{newImageID=thisObject.max-1;}}
thisObject.glideTo(newImageID);window.setTimeout(thisObject.slideshowImages,thisObject.slideshowInterval);};this.loadingStatus=function()
{var max=thisObject.imagesDiv.childNodes.length;var i=0,completed=0;var image=null;for(var index=0;index<max;index++)
{image=thisObject.imagesDiv.childNodes[index];if(image&&image.nodeType==1&&image.nodeName=='IMG')
{if(image.complete===true)
{completed++;}
i++;}}
var finished=Math.round((completed/i)*100);var loadingBar=document.getElementById(thisObject.ImageFlowID+'_loading_bar');loadingBar.style.width=finished+'%';var loadingP=document.getElementById(thisObject.ImageFlowID+'_loading_txt');var loadingTxt=document.createTextNode(thisObject.preloadImagesText+' '+completed+'/'+i);loadingP.replaceChild(loadingTxt,loadingP.firstChild);return finished;};this.refresh=function()
{this.imagesDivWidth=thisObject.imagesDiv.offsetWidth+thisObject.imagesDiv.offsetLeft;this.maxHeight=Math.round(thisObject.imagesDivWidth/thisObject.aspectRatio);this.maxFocus=thisObject.imageFocusMax*thisObject.xStep;this.size=thisObject.imagesDivWidth*0.5;this.sliderWidth=thisObject.sliderWidth*0.5;this.scrollbarWidth=(thisObject.imagesDivWidth-(Math.round(thisObject.sliderWidth)*2))*thisObject.scrollbarP;this.imagesDivHeight=Math.round(thisObject.maxHeight*thisObject.imagesHeight);thisObject.ImageFlowDiv.style.height=thisObject.maxHeight+'px';thisObject.imagesDiv.style.height=thisObject.imagesDivHeight+'px';thisObject.navigationDiv.style.height=(thisObject.maxHeight-thisObject.imagesDivHeight)+'px';thisObject.captionDiv.style.width=thisObject.imagesDivWidth+'px';thisObject.captionDiv.style.paddingTop=Math.round(thisObject.imagesDivWidth*0.02)+'px';thisObject.scrollbarDiv.style.width=thisObject.scrollbarWidth+'px';thisObject.scrollbarDiv.style.marginTop=Math.round(thisObject.imagesDivWidth*0.02)+'px';thisObject.scrollbarDiv.style.marginLeft=Math.round(thisObject.sliderWidth+((thisObject.imagesDivWidth-thisObject.scrollbarWidth)/2))+'px';thisObject.sliderDiv.style.cursor=thisObject.sliderCursor;thisObject.sliderDiv.onmousedown=function(){thisObject.MouseDrag.start(this);return false;};if(thisObject.buttons)
{thisObject.buttonPreviousDiv.onclick=function(){thisObject.MouseWheel.handle(1);};thisObject.buttonNextDiv.onclick=function(){thisObject.MouseWheel.handle(-1);};}
var multi=(thisObject.reflections===true)?thisObject.reflectionP+1:1;var max=thisObject.imagesDiv.childNodes.length;var i=0;var image=null;for(var index=0;index<max;index++)
{image=thisObject.imagesDiv.childNodes[index];if(image!==null&&image.nodeType==1&&image.nodeName=='IMG')
{this.indexArray[i]=index;image.url=image.getAttribute('longdesc');image.xPosition=(-i*thisObject.xStep);image.i=i;if(thisObject.firstRefresh)
{if(image.getAttribute('width')!==null&&image.getAttribute('height')!==null)
{image.w=image.getAttribute('width');image.h=image.getAttribute('height')*multi;}
else{image.w=image.width;image.h=image.height;}}
if((image.w)>(image.h/(thisObject.reflectionP+1)))
{image.pc=thisObject.percentLandscape;image.pcMem=thisObject.percentLandscape;}
else
{image.pc=thisObject.percentOther;image.pcMem=thisObject.percentOther;}
if(thisObject.imageScaling===false)
{image.style.position='relative';image.style.display='inline';}
image.style.cursor=thisObject.imageCursor;i++;}}
this.max=thisObject.indexArray.length;if(thisObject.imageScaling===false)
{image=thisObject.imagesDiv.childNodes[thisObject.indexArray[0]];this.totalImagesWidth=image.w*thisObject.max;image.style.paddingLeft=(thisObject.imagesDivWidth/2)+(image.w/2)+'px';thisObject.imagesDiv.style.height=image.h+'px';thisObject.navigationDiv.style.height=(thisObject.maxHeight-image.h)+'px';}
if(thisObject.firstRefresh)
{thisObject.firstRefresh=false;}
thisObject.glideTo(thisObject.imageID);thisObject.moveTo(thisObject.current);};this.moveTo=function(x)
{this.current=x;this.zIndex=thisObject.max;for(var index=0;index<thisObject.max;index++)
{var image=thisObject.imagesDiv.childNodes[thisObject.indexArray[index]];var currentImage=index*-thisObject.xStep;if(thisObject.imageScaling)
{if((currentImage+thisObject.maxFocus)<thisObject.memTarget||(currentImage-thisObject.maxFocus)>thisObject.memTarget)
{image.style.visibility='hidden';image.style.display='none';}
else
{var z=(Math.sqrt(10000+x*x)+100)*thisObject.imagesM;var xs=x/z*thisObject.size+thisObject.size;image.style.display='block';var newImageH=(image.h/image.w*image.pc)/z*thisObject.size;var newImageW=0;switch(newImageH>thisObject.maxHeight)
{case false:newImageW=image.pc/z*thisObject.size;break;default:newImageH=thisObject.maxHeight;newImageW=image.w*newImageH/image.h;break;}
var newImageTop=(thisObject.imagesDivHeight-newImageH)+((newImageH/(thisObject.reflectionP+1))*thisObject.reflectionP);image.style.left=xs-(image.pc/2)/z*thisObject.size+'px';if(newImageW&&newImageH)
{image.style.height=newImageH+'px';image.style.width=newImageW+'px';image.style.top=newImageTop+'px';}
image.style.visibility='visible';switch(x<0)
{case true:this.zIndex++;break;default:this.zIndex=thisObject.zIndex-1;break;}
switch(image.i==thisObject.imageID)
{case false:image.onclick=function(){thisObject.glideTo(this.i);};break;default:this.zIndex=thisObject.zIndex+1;if(image.url!=='')
{image.onclick=thisObject.onClick;}
break;}
image.style.zIndex=thisObject.zIndex;}}
else
{if((currentImage+thisObject.maxFocus)<thisObject.memTarget||(currentImage-thisObject.maxFocus)>thisObject.memTarget)
{image.style.visibility='hidden';}
else
{image.style.visibility='visible';switch(image.i==thisObject.imageID)
{case false:image.onclick=function(){thisObject.glideTo(this.i);};break;default:if(image.url!=='')
{image.onclick=thisObject.onClick;}
break;}}
thisObject.imagesDiv.style.marginLeft=(x-thisObject.totalImagesWidth)+'px';}
x+=thisObject.xStep;}};this.glideTo=function(imageID)
{var x=-imageID*thisObject.xStep;this.target=x;this.memTarget=x;this.imageID=imageID;var caption=thisObject.imagesDiv.childNodes[imageID].getAttribute('alt');if(caption===''||thisObject.captions===false)
{caption='&nbsp;';}
thisObject.captionDiv.innerHTML=caption;if(thisObject.MouseDrag.busy===false&&thisObject.max>1)
{this.newSliderX=(imageID*thisObject.scrollbarWidth)/(thisObject.max-1)-thisObject.MouseDrag.newX;thisObject.sliderDiv.style.marginLeft=(thisObject.newSliderX-thisObject.sliderWidth)+'px';}
if(thisObject.opacity===true||thisObject.imageFocusM!==thisObject.defaults.imageFocusM)
{thisObject.Helper.setOpacity(thisObject.imagesDiv.childNodes[imageID],thisObject.opacityArray[0]);thisObject.imagesDiv.childNodes[imageID].pc=thisObject.imagesDiv.childNodes[imageID].pc*thisObject.imageFocusM;var opacityValue=0;var rightID=0;var leftID=0;var last=thisObject.opacityArray.length;for(var i=1;i<(thisObject.imageFocusMax+1);i++)
{if((i+1)>last)
{opacityValue=thisObject.opacityArray[last-1];}
else
{opacityValue=thisObject.opacityArray[i];}
rightID=imageID+i;leftID=imageID-i;if(rightID<thisObject.max)
{thisObject.Helper.setOpacity(thisObject.imagesDiv.childNodes[rightID],opacityValue);thisObject.imagesDiv.childNodes[rightID].pc=thisObject.imagesDiv.childNodes[rightID].pcMem;}else if(thisObject.cycle&&thisObject.max>2){thisObject.Helper.setOpacity(thisObject.imagesDiv.childNodes[0],opacityValue);thisObject.imagesDiv.childNodes[0].pc=thisObject.imagesDiv.childNodes[0].pcMem;}
if(leftID>=0)
{thisObject.Helper.setOpacity(thisObject.imagesDiv.childNodes[leftID],opacityValue);thisObject.imagesDiv.childNodes[leftID].pc=thisObject.imagesDiv.childNodes[leftID].pcMem;}else if(thisObject.cycle&&thisObject.max>2){thisObject.Helper.setOpacity(thisObject.imagesDiv.childNodes[thisObject.max-1],opacityValue);thisObject.imagesDiv.childNodes[thisObject.max-1].pc=thisObject.imagesDiv.childNodes[thisObject.max-1].pcMem;}}}
if(thisObject.busy===false)
{window.setTimeout(thisObject.animate,50);thisObject.busy=true;}};this.animate=function()
{switch(thisObject.target<thisObject.current-1||thisObject.target>thisObject.current+1)
{case true:thisObject.moveTo(thisObject.current+(thisObject.target-thisObject.current)/3);window.setTimeout(thisObject.animate,thisObject.animationSpeed);thisObject.busy=true;break;default:thisObject.busy=false;break;}};this.MouseWheel={init:function()
{if(window.addEventListener)
{thisObject.ImageFlowDiv.addEventListener('DOMMouseScroll',thisObject.MouseWheel.get,false);}
thisObject.Helper.addEvent(thisObject.ImageFlowDiv,'mousewheel',thisObject.MouseWheel.get);},get:function(event)
{var delta=0;if(!event)
{event=window.event;}
if(event.wheelDelta)
{delta=event.wheelDelta/120;}
else if(event.detail)
{delta=-event.detail/3;}
if(delta)
{thisObject.MouseWheel.handle(delta);}
thisObject.Helper.suppressBrowserDefault(event);},handle:function(delta)
{var change=false;var newImageID=0;if(delta>0)
{if(thisObject.imageID>=1)
{newImageID=thisObject.imageID-1;change=true;}else if(thisObject.cycle){newImageID=thisObject.max-1
change=true;}}
else
{if(thisObject.imageID<(thisObject.max-1))
{newImageID=thisObject.imageID+1;change=true;}else if(thisObject.cycle){newImageID=0;change=true;}}
if(change===true)
{thisObject.glideTo(newImageID);}}};this.MouseDrag={object:null,objectX:0,mouseX:0,newX:0,busy:false,init:function()
{thisObject.Helper.addEvent(thisObject.ImageFlowDiv,'mousemove',thisObject.MouseDrag.drag);thisObject.Helper.addEvent(thisObject.ImageFlowDiv,'mouseup',thisObject.MouseDrag.stop);thisObject.Helper.addEvent(document,'mouseup',thisObject.MouseDrag.stop);thisObject.ImageFlowDiv.onselectstart=function()
{var selection=true;if(thisObject.MouseDrag.busy===true)
{selection=false;}
return selection;};},start:function(o)
{thisObject.MouseDrag.object=o;thisObject.MouseDrag.objectX=thisObject.MouseDrag.mouseX-o.offsetLeft+thisObject.newSliderX;},stop:function()
{thisObject.MouseDrag.object=null;thisObject.MouseDrag.busy=false;},drag:function(e)
{var posx=0;if(!e)
{e=window.event;}
if(e.pageX)
{posx=e.pageX;}
else if(e.clientX)
{posx=e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft;}
thisObject.MouseDrag.mouseX=posx;if(thisObject.MouseDrag.object!==null)
{var newX=(thisObject.MouseDrag.mouseX-thisObject.MouseDrag.objectX)+thisObject.sliderWidth;if(newX<(-thisObject.newSliderX))
{newX=-thisObject.newSliderX;}
if(newX>(thisObject.scrollbarWidth-thisObject.newSliderX))
{newX=thisObject.scrollbarWidth-thisObject.newSliderX;}
var step=(newX+thisObject.newSliderX)/(thisObject.scrollbarWidth/(thisObject.max-1));var imageID=Math.round(step);thisObject.MouseDrag.newX=newX;thisObject.MouseDrag.object.style.left=newX+'px';if(thisObject.imageID!==imageID)
{thisObject.glideTo(imageID);}
thisObject.MouseDrag.busy=true;}}};this.Touch={x:0,startX:0,stopX:0,busy:false,first:true,init:function()
{thisObject.Helper.addEvent(thisObject.navigationDiv,'touchstart',thisObject.Touch.start);thisObject.Helper.addEvent(document,'touchmove',thisObject.Touch.handle);thisObject.Helper.addEvent(document,'touchend',thisObject.Touch.stop);},isOnNavigationDiv:function(e)
{var state=false;if(e.touches)
{var target=e.touches[0].target;if(target===thisObject.navigationDiv||target===thisObject.sliderDiv||target===thisObject.scrollbarDiv)
{state=true;}}
return state;},getX:function(e)
{var x=0;if(e.touches)
{x=e.touches[0].pageX;}
return x;},start:function(e)
{thisObject.Touch.startX=thisObject.Touch.getX(e);thisObject.Touch.busy=true;thisObject.Helper.suppressBrowserDefault(e);},isBusy:function()
{var busy=false;if(thisObject.Touch.busy===true)
{busy=true;}
return busy;},handle:function(e)
{if(thisObject.Touch.isBusy&&thisObject.Touch.isOnNavigationDiv(e))
{if(thisObject.Touch.first)
{thisObject.Touch.stopX=((thisObject.max-1)-thisObject.imageID)*(thisObject.imagesDivWidth/(thisObject.max-1));thisObject.Touch.first=false;}
var newX=-(thisObject.Touch.getX(e)-thisObject.Touch.startX-thisObject.Touch.stopX);if(newX<0)
{newX=0;}
if(newX>thisObject.imagesDivWidth)
{newX=thisObject.imagesDivWidth;}
thisObject.Touch.x=newX;var imageID=Math.round(newX/(thisObject.imagesDivWidth/(thisObject.max-1)));imageID=(thisObject.max-1)-imageID;if(thisObject.imageID!==imageID)
{thisObject.glideTo(imageID);}
thisObject.Helper.suppressBrowserDefault(e);}},stop:function()
{thisObject.Touch.stopX=thisObject.Touch.x;thisObject.Touch.busy=false;}};this.Key={init:function()
{document.onkeydown=function(event){thisObject.Key.handle(event);};},handle:function(event)
{var charCode=thisObject.Key.get(event);switch(charCode)
{case 39:thisObject.MouseWheel.handle(-1);break;case 37:thisObject.MouseWheel.handle(1);break;}},get:function(event)
{event=event||window.event;return event.keyCode;}};this.Helper={addEvent:function(obj,type,fn)
{if(obj.addEventListener)
{obj.addEventListener(type,fn,false);}
else if(obj.attachEvent)
{obj["e"+type+fn]=fn;obj[type+fn]=function(){obj["e"+type+fn](window.event);};obj.attachEvent("on"+type,obj[type+fn]);}},setOpacity:function(object,value)
{if(thisObject.opacity===true)
{object.style.opacity=value/10;object.style.filter='alpha(opacity='+value*10+')';}},createDocumentElement:function(type,id,optionalClass)
{var element=document.createElement(type);element.setAttribute('id',thisObject.ImageFlowID+'_'+id);if(optionalClass!==undefined)
{id+=' '+optionalClass;}
element.setAttribute('class',id);element.setAttribute('className',id);return element;},suppressBrowserDefault:function(e)
{if(e.preventDefault)
{e.preventDefault();}
else
{e.returnValue=false;}
return false;},addResizeEvent:function()
{var otherFunctions=window.onresize;if(typeof window.onresize!='function')
{window.onresize=function()
{thisObject.refresh();};}
else
{window.onresize=function(){if(otherFunctions)
{otherFunctions();}
thisObject.refresh();};}}};}
var domReadyEvent={name:"domReadyEvent",events:{},domReadyID:1,bDone:false,DOMContentLoadedCustom:null,add:function(handler)
{if(!handler.$$domReadyID)
{handler.$$domReadyID=this.domReadyID++;if(this.bDone)
{handler();}
this.events[handler.$$domReadyID]=handler;}},remove:function(handler)
{if(handler.$$domReadyID)
{delete this.events[handler.$$domReadyID];}},run:function()
{if(this.bDone)
{return;}
this.bDone=true;for(var i in this.events)
{this.events[i]();}},schedule:function()
{if(this.bDone)
{return;}
if(/KHTML|WebKit/i.test(navigator.userAgent))
{if(/loaded|complete/.test(document.readyState))
{this.run();}
else
{setTimeout(this.name+".schedule()",100);}}
else if(document.getElementById("__ie_onload"))
{return true;}
if(typeof this.DOMContentLoadedCustom==="function")
{if(typeof document.getElementsByTagName!=='undefined'&&(document.getElementsByTagName('body')[0]!==null||document.body!==null))
{if(this.DOMContentLoadedCustom())
{this.run();}
else
{setTimeout(this.name+".schedule()",250);}}}
return true;},init:function()
{if(document.addEventListener)
{document.addEventListener("DOMContentLoaded",function(){domReadyEvent.run();},false);}
setTimeout("domReadyEvent.schedule()",100);function run()
{domReadyEvent.run();}
if(typeof addEvent!=="undefined")
{addEvent(window,"load",run);}
else if(document.addEventListener)
{document.addEventListener("load",run,false);}
else if(typeof window.onload==="function")
{var oldonload=window.onload;window.onload=function()
{domReadyEvent.run();oldonload();};}
else
{window.onload=run;}/*@cc_on@if(@_win32||@_win64)
document.write("<script id=__ie_onload defer src=\"//:\"><\/script>");var script=document.getElementById("__ie_onload");script.onreadystatechange=function()
{if(this.readyState=="complete")
{domReadyEvent.run();}};@end@*/}};var domReady=function(handler){domReadyEvent.add(handler);};domReadyEvent.init();domReady(function()
{var instanceOne=new ImageFlow();instanceOne.init({ImageFlowID:'myImageFlow'});});}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/nextgen-imageflow/imageflow/imageflow.js?ver=1.2.1'>\x3c/script>")}try{(function(f){function p(a,b,c){var h=c.relative?a.position().top:a.offset().top,e=c.relative?a.position().left:a.offset().left,i=c.position[0];h-=b.outerHeight()-c.offset[0];e+=a.outerWidth()+c.offset[1];var j=b.outerHeight()+a.outerHeight();if(i=="center")h+=j/2;if(i=="bottom")h+=j;i=c.position[1];a=b.outerWidth()+a.outerWidth();if(i=="center")e-=a/2;if(i=="left")e-=a;return{top:h,left:e}}function t(a,b){var c=this,h=a.add(c),e,i=0,j=0,m=a.attr("title"),q=n[b.effect],k,r=a.is(":input"),u=r&&a.is(":checkbox, :radio, select, :button, :submit"),s=a.attr("type"),l=b.events[s]||b.events[r?u?"widget":"input":"def"];if(!q)throw'Nonexistent effect "'+b.effect+'"';l=l.split(/,\s*/);if(l.length!=2)throw"Tooltip: bad events configuration for "+s;a.bind(l[0],function(d){clearTimeout(i);if(b.predelay)j=setTimeout(function(){c.show(d)},b.predelay);else c.show(d)}).bind(l[1],function(d){clearTimeout(j);if(b.delay)i=setTimeout(function(){c.hide(d)},b.delay);else c.hide(d)});if(m&&b.cancelDefault){a.removeAttr("title");a.data("title",m)}f.extend(c,{show:function(d){if(!e){if(m)e=f(b.layout).addClass(b.tipClass).appendTo(document.body).hide().append(m);else if(b.tip)e=f(b.tip).eq(0);else{e=a.next();e.length||(e=a.parent().next())}if(!e.length)throw"Cannot find tooltip for "+a;}if(c.isShown())return c;e.stop(true,true);var g=p(a,e,b);d=d||f.Event();d.type="onBeforeShow";h.trigger(d,[g]);if(d.isDefaultPrevented())return c;g=p(a,e,b);e.css({position:"absolute",top:g.top,left:g.left});k=true;q[0].call(c,function(){d.type="onShow";k="full";h.trigger(d)});g=b.events.tooltip.split(/,\s*/);e.bind(g[0],function(){clearTimeout(i);clearTimeout(j)});g[1]&&!a.is("input:not(:checkbox, :radio), textarea")&&e.bind(g[1],function(o){o.relatedTarget!=a[0]&&a.trigger(l[1].split(" ")[0])});return c},hide:function(d){if(!e||!c.isShown())return c;d=d||f.Event();d.type="onBeforeHide";h.trigger(d);if(!d.isDefaultPrevented()){k=false;n[b.effect][1].call(c,function(){d.type="onHide";k=false;h.trigger(d)});return c}},isShown:function(d){return d?k=="full":k},getConf:function(){return b},getTip:function(){return e},getTrigger:function(){return a}});f.each("onHide,onBeforeShow,onShow,onBeforeHide".split(","),function(d,g){f.isFunction(b[g])&&f(c).bind(g,b[g]);c[g]=function(o){f(c).bind(g,o);return c}})}f.tools=f.tools||{version:"1.2.3"};f.tools.tooltip={conf:{effect:"toggle",fadeOutSpeed:"fast",predelay:0,delay:30,opacity:1,tip:0,position:["top","center"],offset:[0,0],relative:false,cancelDefault:true,events:{def:"mouseenter,mouseleave",input:"focus,blur",widget:"focus mouseenter,blur mouseleave",tooltip:"mouseenter,mouseleave"},layout:"<div/>",tipClass:"tooltip"},addEffect:function(a,b,c){n[a]=[b,c]}};var n={toggle:[function(a){var b=this.getConf(),c=this.getTip();b=b.opacity;b<1&&c.css({opacity:b});c.show();a.call()},function(a){this.getTip().hide();a.call()}],fade:[function(a){var b=this.getConf();this.getTip().fadeTo(b.fadeInSpeed,b.opacity,a)},function(a){this.getTip().fadeOut(this.getConf().fadeOutSpeed,a)}]};f.fn.tooltip=function(a){var b=this.data("tooltip");if(b)return b;a=f.extend(true,{},f.tools.tooltip.conf,a);if(typeof a.position=="string")a.position=a.position.split(/,?\s/);this.each(function(){b=new t(f(this),a);f(this).data("tooltip",b)});return a.api?b:this}})(jQuery);(function(d){var i=d.tools.tooltip;d.extend(i.conf,{direction:"up",bounce:false,slideOffset:10,slideInSpeed:200,slideOutSpeed:200,slideFade:!d.browser.msie});var e={up:["-","top"],down:["+","top"],left:["-","left"],right:["+","left"]};i.addEffect("slide",function(g){var a=this.getConf(),f=this.getTip(),b=a.slideFade?{opacity:a.opacity}:{},c=e[a.direction]||e.up;b[c[1]]=c[0]+"="+a.slideOffset;a.slideFade&&f.css({opacity:0});f.show().animate(b,a.slideInSpeed,g)},function(g){var a=this.getConf(),f=a.slideOffset,b=a.slideFade?{opacity:0}:{},c=e[a.direction]||e.up,h=""+c[0];if(a.bounce)h=h=="+"?"-":"+";b[c[1]]=h+"="+f;this.getTip().animate(b,a.slideOutSpeed,function(){d(this).hide();g.call()})})})(jQuery);(function(g){function j(a){var c=g(window),d=c.width()+c.scrollLeft(),h=c.height()+c.scrollTop();return[a.offset().top<=c.scrollTop(),d<=a.offset().left+a.width(),h<=a.offset().top+a.height(),c.scrollLeft()>=a.offset().left]}function k(a){for(var c=a.length;c--;)if(a[c])return false;return true}var i=g.tools.tooltip;i.dynamic={conf:{classNames:"top right bottom left"}};g.fn.dynamic=function(a){if(typeof a=="number")a={speed:a};a=g.extend({},i.dynamic.conf,a);var c=a.classNames.split(/\s/),d;this.each(function(){var h=g(this).tooltip().onBeforeShow(function(e,f){e=this.getTip();var b=this.getConf();d||(d=[b.position[0],b.position[1],b.offset[0],b.offset[1],g.extend({},b)]);g.extend(b,d[4]);b.position=[d[0],d[1]];b.offset=[d[2],d[3]];e.css({visibility:"hidden",position:"absolute",top:f.top,left:f.left}).show();f=j(e);if(!k(f)){if(f[2]){g.extend(b,a.top);b.position[0]="top";e.addClass(c[0])}if(f[3]){g.extend(b,a.right);b.position[1]="right";e.addClass(c[1])}if(f[0]){g.extend(b,a.bottom);b.position[0]="bottom";e.addClass(c[2])}if(f[1]){g.extend(b,a.left);b.position[1]="left";e.addClass(c[3])}if(f[0]||f[2])b.offset[0]*=-1;if(f[1]||f[3])b.offset[1]*=-1}e.css({visibility:"visible"}).hide()});h.onBeforeShow(function(){var e=this.getConf();this.getTip();setTimeout(function(){e.position=[d[0],d[1]];e.offset=[d[2],d[3]]},0)});h.onHide(function(){var e=this.getTip();e.removeClass(a.classNames)});ret=h});return a.api?ret:this}})(jQuery);}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/user-access-manager/js/jquery.tools.min.js?ver=3.3.1'>\x3c/script>")}try{jQuery(document).ready(function(){if(jQuery(".uam_hide_page:checked").val()=="true"){jQuery("#uam_page_settings").css("display","none");jQuery(this).toggleClass("active");}
jQuery(".uam_hide_page").change(function(){jQuery("#uam_page_settings").slideToggle("slow");jQuery(this).toggleClass("active");});if(jQuery(".uam_hide_post:checked").val()=="true"){jQuery("#uam_post_settings").css("display","none");jQuery(this).toggleClass("active");}
jQuery(".uam_hide_post").change(function(){jQuery("#uam_post_settings").slideToggle("slow");jQuery(this).toggleClass("active");});if(jQuery(".uam_lock_file:checked").val()=="false"){jQuery("#uam_file_settings").css("display","none");jQuery(this).toggleClass("active");}
jQuery(".uam_lock_file").change(function(){jQuery("#uam_file_settings").slideToggle("slow");jQuery(this).toggleClass("active");});jQuery(".uam_group_info_link").tooltip({effect:'slide',relative:true,position:'center left'});});}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/user-access-manager/js/functions.js?ver=3.3.1'>\x3c/script>")}try{jQuery(function(){thetheImageSlider=function(){this.nID=null;this.currentIndex=0;this.nextIndex=1;this.slideLength=0;this.arrSlides=[];this.arrSParams=[];this.defaultInterval=4000;this.defaultSlideT=500;this.nHeight=313;this.nWidth=500;this.bAutoplay=true;this.arrBlocks=[];this.arrNextBlocks=[];this.blockType='';this.arrCurrentBlock={x:0,y:0};this.bPlay=true;this.arrThumbs=[]
this.arrBMinCol={width:6,height:5}
this.arrF={step:1,x:0,y:0,sight:1}
this.arrBParams={rows:0,cols:0,width:0,height:0,bcount:0,bworkd:0}
this.nBlockCols=0;this.bBlockRows=0;this.cTimeout=null;this.nImagesLoaded=0;this.loader=null;this.loaderProgress=null;this.strSkin='';this.bLoop=true;this.bNextSlide=false;this.bAction=false;this.play=function(prev){this.bPlay=true;if(this.cTimeout){clearTimeout(this.cTimeout)}
this.transition(prev);}
this.pause=function(){if(this.bPlay==true){this.stop();return'stopped';}else{this.play();return'played';}}
this.goNext=function(){bPlay=this.bPlay;this.play();this.bPlay=bPlay;}
this.goPrevious=function(){bPlay=this.bPlay;this.nextIndex-=2;if(this.nextIndex<0){this.nextIndex=this.slideLength-1;}
if(this.currentIndex<1){}
this.bPlay=true;if(this.cTimeout){clearTimeout(this.cTimeout)}
this.play(1);this.bPlay=bPlay;}
this.stop=function(){this.bPlay=false;}
this.currentBlock=function(){if(oMoz=jQuery(this.arrSlides[this.currentIndex-1]).children('.thethe-image-slider-blocks')){if(oMoz.attr('class')!=undefined){return oMoz;}}
return jQuery(this.arrSlides[this.currentIndex-1]).append('<div class="thethe-image-slider-blocks"></div>').children('.thethe-image-slider-blocks');}
this.nextBlock=function(){return jQuery(this.arrSlides[this.nextIndex-1]).append('<div class="thethe-image-slider-blocks"></div>').children('.thethe-image-slider-blocks');}
this.currentNotice=function(state){if(!state){jQuery(this.arrSlides[this.currentIndex-1]).children('.thethe-image-slider-caption').hide();}else{jQuery(this.arrSlides[this.currentIndex-1]).children('.thethe-image-slider-caption').fadeIn(this.defaultSlideT);}}
this.nextNotice=function(state){if(!state){jQuery(this.arrSlides[this.nextIndex-1]).children('.thethe-image-slider-caption').hide();}else{jQuery(this.arrSlides[this.nextIndex-1]).children('.thethe-image-slider-caption').fadeIn(this.defaultSlideT);}}
this.currentImg=function(){return jQuery(this.arrSlides[this.currentIndex-1]).children('.thethe-image-slider-image');}
this.nextImg=function(){return jQuery(this.arrSlides[this.nextIndex-1]).children('.thethe-image-slider-image');}
this.current=function(){return jQuery(this.arrSlides[this.currentIndex-1]);}
this.next=function(){return jQuery(this.arrSlides[this.nextIndex-1]);}
this.transitionEnd=function(){this.clean();this.currentNotice(false);this.nextNotice(true);this.arrBlocks=[]
this.bAction=false;}
this.restoreCurrentImg=function(){this.currentImg().css({width:this.nWidth,height:this.nHeight,opacity:1})}
this.restoreNextImg=function(){this.nextImg().css({width:this.nWidth,height:this.nHeight,opacity:1})}
this.slideLeft=function(){var t=this;t.next().addClass('show').css({marginLeft:-this.nWidth+'px'}).animate({marginLeft:0+'px'},this.defaultSlideT)
t.current().animate({marginLeft:this.nWidth},this.defaultSlideT-20,function(){t.transitionEnd()})}
this.slideRight=function(){var t=this;t.current().animate({marginLeft:-this.nWidth},this.defaultSlideT)
t.next().addClass('show').css({marginLeft:this.nWidth+'px'}).animate({marginLeft:0+'px'},this.defaultSlideT-20,function(){t.transitionEnd()})}
this.slideTop=function(){var t=this;t.next().addClass('show').css({marginTop:-this.nHeight+'px'}).animate({marginTop:0+'px'},this.defaultSlideT)
t.current().animate({marginTop:this.nHeight},this.defaultSlideT-20,function(){t.transitionEnd()})}
this.slideBottom=function(){var t=this;t.next().addClass('show').css({marginTop:this.nHeight+'px'}).animate({marginTop:0+'px'},this.defaultSlideT)
t.current().animate({marginTop:-this.nHeight},this.defaultSlideT-20,function(){t.transitionEnd()})}
this.slideAndBounceTop=function(){var t=this;t.current().animate({marginTop:this.nHeight},this.defaultSlideT)
t.next().addClass('show').css({marginTop:-this.nHeight+'px'}).animate({marginTop:80+'px'},this.defaultSlideT).animate({marginTop:-50+'px'},this.defaultSlideT/2).animate({marginTop:20+'px'},this.defaultSlideT/2).animate({marginTop:0+'px'},this.defaultSlideT/2,function(){t.transitionEnd()})}
this.slideAndBounceRight=function(){var t=this;t.current().animate({marginLeft:-this.nWidth},this.defaultSlideT)
t.next().addClass('show').css({marginLeft:this.nWidth+'px'}).animate({marginLeft:-80+'px'},this.defaultSlideT).animate({marginLeft:50+'px'},this.defaultSlideT/2).animate({marginLeft:-20+'px'},this.defaultSlideT/2).animate({marginLeft:0+'px'},this.defaultSlideT/2,function(){t.transitionEnd()})}
this.slideAndBounceLeft=function(){var t=this;t.current().animate({marginLeft:this.nWidth},this.defaultSlideT)
t.next().addClass('show').css({marginLeft:-this.nWidth+'px'}).animate({marginLeft:80+'px'},this.defaultSlideT).animate({marginLeft:-50+'px'},this.defaultSlideT/2).animate({marginLeft:20+'px'},this.defaultSlideT/2).animate({marginLeft:0+'px'},this.defaultSlideT/2,function(){t.transitionEnd()})}
this.slideAndBounceBottom=function(){var t=this;t.current().animate({marginTop:-this.nHeight},this.defaultSlideT)
t.next().addClass('show').css({marginTop:this.nHeight+'px'}).animate({marginTop:-80+'px'},this.defaultSlideT).animate({marginTop:50+'px'},this.defaultSlideT/2).animate({marginTop:-20+'px'},this.defaultSlideT/2).animate({marginTop:0+'px'},this.defaultSlideT/2,function(){t.transitionEnd()})}
this.scaleCenter=function(){var t=this;t.current().animate({height:0,width:0,marginLeft:t.nWidth/2,marginTop:t.nHeight/2,opacity:0},t.defaultSlideT,function(){t.next().css({height:0,width:0,marginLeft:t.nWidth/2,marginTop:t.nHeight/2,opacity:0}).addClass('show').animate({height:t.nHeight,width:t.nWidth,marginLeft:0,marginTop:0,opacity:1},t.defaultSlideT);})
t.currentImg().animate({height:0,width:0},t.defaultSlideT,function(){t.restoreCurrentImg();t.nextImg().css({height:0,width:0}).animate({height:t.nHeight,width:t.nWidth},t.defaultSlideT,function(){t.transitionEnd()})})}
this.flip=function(){var t=this;t.current().animate({width:0+'px',marginLeft:t.nWidth/2+'px'},t.defaultSlideT,function(){t.next().css({width:0+'px',marginLeft:t.nWidth/2+'px',opacity:0.5}).addClass('show').animate({width:t.nWidth+'px',marginLeft:0+'px',opacity:1},t.defaultSlideT);})
t.currentImg().animate({width:0+'px'},t.defaultSlideT,function(){t.restoreCurrentImg();t.nextImg().css({width:0+'px'}).animate({width:t.nWidth+'px'},t.defaultSlideT,function(){t.transitionEnd()})})}
this.scaleTop=function(){var t=this;t.current().animate({height:0,width:0,marginLeft:t.nWidth/2,marginTop:-t.nHeight,opacity:0},t.defaultSlideT,function(){t.next().css({height:0,width:0,marginLeft:t.nWidth/2,marginTop:t.nHeight,opacity:0}).addClass('show').animate({height:t.nHeight,width:t.nWidth,marginLeft:0,marginTop:0,opacity:1},t.defaultSlideT);})
t.currentImg().animate({height:0,width:0},t.defaultSlideT,function(){t.nextImg().css({height:0,width:0}).animate({height:t.nHeight,width:t.nWidth},t.defaultSlideT,function(){t.transitionEnd()})})}
this.zoom=function(){var t=this;multip=10;t.current().animate({marginLeft:-(t.nWidth*multip/2),width:(t.nWidth*multip),height:(t.nHeight*multip),marginTop:-(t.nHeight*multip/2)},t.defaultSlideT,function(){t.next().css({marginLeft:-(t.nWidth*multip/2),width:(t.nWidth*multip),height:(t.nHeight*multip),marginTop:-(t.nHeight*multip/2)}).addClass('show').animate({marginLeft:0,marginTop:0,height:t.nHeight,width:t.nWidth},t.defaultSlideT);})
t.currentImg().animate({height:t.nHeight*multip,width:t.nWidth*multip},t.defaultSlideT,function(){t.nextImg().css({height:t.nHeight*multip,width:t.nWidth*multip}).animate({height:t.nHeight,width:t.nWidth},t.defaultSlideT,function(){t.transitionEnd()})})}
this.scaleAndSlide=function(){this.currentNotice(false);this.nextNotice(false);var t=this;t.current().animate({height:this.nHeight/5,width:this.nWidth/5,marginLeft:((this.nWidth-this.nWidth/5)/2),marginTop:(this.nHeight-this.nHeight/5)/2,opacity:0.5},this.defaultSlideT,function(){t.current().animate({marginLeft:(-t.nWidth)/5},t.defaultSlideT,function(){t.next().css({height:t.nHeight/5,width:t.nWidth/5,marginLeft:t.nWidth+'px',marginTop:(t.nHeight-t.nHeight/5)/2,opacity:0.5}).addClass('show').animate({marginLeft:((t.nWidth-t.nWidth/5)/2)},t.defaultSlideT,function(){t.next().animate({height:t.nHeight,width:t.nWidth,marginLeft:0,marginTop:0,opacity:1},t.defaultSlideT);t.nextImg().animate({height:t.nHeight,width:t.nWidth},t.defaultSlideT,function(){t.transitionEnd()});})
t.nextImg().css({height:t.nHeight/5,width:t.nWidth/5})})})
t.currentImg().animate({height:this.nHeight/5,width:this.nWidth/5},this.defaultSlideT)}
this.fade=function(){var t=this;t.current().animate({opacity:0},this.defaultSlideT);t.next().css({opacity:0}).addClass('show').animate({opacity:1},this.defaultSlideT,function(){t.transitionEnd()})}
this.makeSquares=function(){this.arrBlocks=[]
s=this.currentBlock();n=this.arrBMinCol.width;while(n<30){if(!(this.nWidth%n)){this.arrBParams.width=this.nWidth/n;this.arrBParams.rows=n;break;}
n++;}
if(!this.arrBParams.rows){this.arrBParams.width=Math.floor(this.nWidth/this.arrBMinCol.width);this.arrBParams.rows=this.arrBMinCol.width+1;}
n=this.arrBMinCol.height;while(n<30){if(!(this.nHeight%n)){this.arrBParams.height=this.nHeight/n;this.arrBParams.cols=n;break;}
n++;}
if(!this.arrBParams.cols){this.arrBParams.height=Math.floor(this.nHeight/this.arrBMinCol.height);this.arrBParams.cols=this.arrBMinCol.height+1;}
this.arrBParams.bcount=this.arrBParams.cols*this.arrBParams.rows;this.arrBParams.bworkd=0;this.arrCurrentBlock.x=0;this.arrCurrentBlock.y=0;for(y=0;y<this.arrBParams.cols;y++){for(x=0;x<this.arrBParams.rows;x++){var _oDiv=document.createElement('DIV');_oDiv.className='thethe-image-slider-block';_oDiv.style.width=this.arrBParams.width+'px';_oDiv.style.height=this.arrBParams.height+'px';_oDiv.style.backgroundImage='url('+this.currentImg().attr('src')+')';_oDiv.style.backgroundPosition='-'+(x*this.arrBParams.width)+'px '+'-'+(y*this.arrBParams.height)+'px';s.append(jQuery(_oDiv));if(!this.arrBlocks[y]){this.arrBlocks[y]=[]}
this.arrBlocks[y][x]=_oDiv;}}}
this.makeRows=function(){s=this.currentBlock();n=this.arrBMinCol.width;n=this.arrBMinCol.height;while(n<10){if(!(this.nHeight%n)){this.arrBParams.height=this.nHeight/n;this.arrBParams.cols=n;break;}
n++;}
if(!this.arrBParams.cols){this.arrBParams.height=Math.floor(this.nHeight/this.arrBMinCol.height);this.arrBParams.cols=this.arrBMinCol.height+1;}
this.arrBParams.bcount=this.arrBParams.cols;this.arrBParams.bworkd=0;this.arrCurrentBlock.y=0;for(y=0;y<this.arrBParams.cols;y++){var _oDiv=document.createElement('DIV');_oDiv.className='thethe-image-slider-row';_oDiv.style.height=this.arrBParams.height+'px';_oDiv.style.top=(y*this.arrBParams.height)+'px'
_oDiv.style.backgroundImage='url('+this.currentImg().attr('src')+')';_oDiv.style.backgroundPosition='0px -'+(y*this.arrBParams.height)+'px';s.append(jQuery(_oDiv));if(!this.arrBlocks[y]){this.arrBlocks[y]=_oDiv}}}
this.block=function(x,y){if(x==undefined||y==undefined){x=this.arrCurrentBlock.x;y=this.arrCurrentBlock.y;}
if(!this.arrBlocks[y]||!this.arrBlocks[y][x]){return false;}
return jQuery(this.arrBlocks[y][x]);}
this._setTimeout=function(n,pos,bLast){t=this;setTimeout(function(){t._moveRow(n,pos,bLast);},(100*((pos=='top')?((parseInt(t.arrBlocks.length-1-n))):n)))}
this._moveRow=function(n,pos,bLast){if(pos=='sides'){if(n%2){pos='right';}else{pos='left';}}
if(pos=='left'){jQuery(this.arrBlocks[n]).animate({left:-this.nWidth+'px'},(this.defaultSlideT),function(){if(bLast){t.transitionEnd();}});}else if(pos=='right'){jQuery(this.arrBlocks[n]).animate({left:this.nWidth+'px'},(this.defaultSlideT),function(){if(bLast){t.transitionEnd();}});}else if(pos=='top'){jQuery(this.arrBlocks[n]).animate({top:-this.nHeight+'px'},(this.defaultSlideT),function(){if(bLast){t.transitionEnd();}});}else if(pos=='bottom'){jQuery(this.arrBlocks[n]).animate({top:this.nHeight+'px'},(this.defaultSlideT/(n+1)),function(){if(bLast){t.transitionEnd();}});}}
this.rowsto=function(pos){for(i=0;i<this.arrBlocks.length;i++){this._setTimeout(i,pos,(i==parseInt(this.arrBlocks.length)-1)?true:false)}}
this.moveRows=function(type){this.makeRows();this.current().css({'z-index':4})
this.next().css({'z-index':3}).addClass('show');this.currentNotice(false);this.currentImg().css({opacity:0});this.rowsto(type);}
this.nextSlide=function(){var tn=this;if(this.arrThumbs[this.currentIndex-1]){jQuery(this.arrThumbs[this.currentIndex-1]).removeClass('thethe-image-slider-thumbnails-currentthumb');}
if(!this.checkBorders()){return}
nTime=this.defaultInterval;nI=this.currentIndex
if(nI>=this.slideLength){nI=0;}
if(this.arrSParams[nI].time){nTime=this.arrSParams[nI].time}
tn.cTimeout=setTimeout(function(){tn.transition()},nTime)}
this.clean=function(){this.current().css({width:this.nWidth,height:this.nHeight,opacity:1,marginLeft:0,marginTop:0,'z-index':3}).removeClass('show');this.next().css({width:this.nWidth,height:this.nHeight,opacity:1,marginLeft:0,marginTop:0,'z-index':3})
this.restoreCurrentImg();this.restoreNextImg();if(oMoz=this.current().children('.thethe-image-slider-blocks')){if(oMoz.attr('class')!=undefined){oMoz.html('');}}
this.currentNotice(false);this.nextNotice(false);next=parseInt(this.currentIndex)+1;if(next>this.slideLength){next-=this.slideLength;}
if(next!=this.nextIndex){this.currentIndex=this.nextIndex-1;this.nextIndex=this.currentIndex+1;if(this.nextIndex>this.slideLength){this.nextIndex=1;}}}
this._transition=function(effect){this.bAction=true;switch(effect){case'fade':this.fade();break;case'slidenbouncetop':this.slideAndBounceTop();break;case'slidenbounceright':this.slideAndBounceRight();break;case'slidenbounceleft':this.slideAndBounceLeft();break;case'slidenbouncebottom':this.slideAndBounceBottom();break;case'slidetop':this.slideTop();break;case'slideright':this.slideRight();break;case'slideleft':this.slideLeft();break;case'slidebottom':this.slideBottom();break;case'scalecenter':this.scaleCenter();break;case'scaletop':this.scaleTop();break;case'scalenslide':this.scaleAndSlide();break;case'zoom':this.zoom();break;case'flip':this.flip();break;case'rowssides':this.moveRows('sides');break;case'rowsleft':this.moveRows('left');break;case'rowsright':this.moveRows('right');break;case'rowstop':this.moveRows('top');break;case'rowsbottom':this.moveRows('bottom');break;case'random':arrVars=['fade','slidetop','slideright','slideleft','slidebottom','slidenbouncetop','slidenbounceright','slidenbounceleft','slidenbouncebottom','scalecenter','scaletop','scalenslide','zoom','flip','rowstop','rowsbottom','rowsleft','rowsright','rowssides'];nEff=Math.floor(Math.random()*(arrVars.length));this._transition(arrVars[nEff]);break;default:this.fade();break;};jQuery(this.arrThumbs[this.nextIndex-1]).addClass('thethe-image-slider-thumbnails-currentthumb');}
this.transition=function(prev){if(!this.bPlay){return false;}
if(!this.checkIfPossible()){return}
this.nextIndex+=1;this.currentIndex+=1;if(this.nextIndex>this.slideLength){this.nextIndex=1;}
if(this.currentIndex>this.slideLength){this.currentIndex=1;}
if(prev){index=((this.currentIndex-2)<0)?(this.slideLength-1):(this.currentIndex-2);this._transition(this.arrSParams[index].transition);}else{this._transition(this.arrSParams[this.currentIndex-1].transition);}
if(this.bPlay){this.nextSlide();}}
this.checkBorders=function(){if(this.bLoop){return true;}
if(this.nextIndex==1){jQuery('#'+this.nID+'-previous').css('margin-left','-1000px');}else{jQuery('#'+this.nID+'-previous').css('margin-left','0px');}
if(this.nextIndex==this.slideLength){jQuery('#'+this.nID+'-next').css('margin-right','-1000px');this.bPlay=false;jQuery('#'+this.nID+'-pause').removeClass('thethe-pause');jQuery('#'+this.nID+'-pause').addClass('thethe-play');return false;}else{jQuery('#'+this.nID+'-next').css('margin-right','0px');}
return true;}
this.checkIfPossible=function(){this.bNextSlide=true;return!this.bAction;}
this.activateSlide=function(key,thumb){if(key==this.nextIndex){return false;}
if(!this.checkIfPossible()){jQuery(thumb).removeClass('thethe-image-slider-thumbnails-currentthumb');if(this.arrThumbs[this.nextIndex-1]){jQuery(this.arrThumbs[this.nextIndex-1]).addClass('thethe-image-slider-thumbnails-currentthumb');}
return}
if(this.cTimeout){clearTimeout(this.cTimeout)}
this.clean();this.currentIndex=this.nextIndex;this.nextIndex=key;this.checkBorders();this._transition(this.arrSParams[this.currentIndex-1].transition);if(this.bPlay){this.nextSlide();}}
this.readSliderSettings=function(){var t=this;jQuery('#'+this.nID+' .thethe-image-slider-settings span').each(function(){switch(jQuery(this).attr('class')){case'width':t.nWidth=parseInt(jQuery(this).text());break;case'height':t.nHeight=parseInt(jQuery(this).text());break;case'skin':t.strSkin=jQuery(this).html();break;case'loop':if(jQuery(this).html()=='false'){t.bLoop=false;}
break;case'autoplay':if(jQuery(this).html()=='false'){t.bAutoplay=false;}
break;case'trans-time':t.defaultSlideT=parseInt(jQuery(this).text());break;}})
jQuery('#'+this.nID+' .thethe-image-slider-settings').remove();return true;}
this.readSlideSettings=function(key){var t=this;var nkey=key,$slideSettings=jQuery(t.arrSlides[nkey]).children('.thethe-image-slider-slide-settings');$slideSettings.children('span').each(function(){switch(jQuery(this).attr('class')){case'time':t.arrSParams[nkey].time=parseInt(jQuery(this).text());break;case'transition':t.arrSParams[nkey].transition=jQuery(this).html();break;case'caption-size':t.arrSParams[nkey].captionSize=parseInt(jQuery(this).text());break;case'caption-position':t.arrSParams[nkey].captionPosition=jQuery(this).html();break;case'caption_opacity':t.arrSParams[nkey].captionOpacity=parseInt(jQuery(this).text());break;case'link':t.arrSParams[nkey].link=jQuery(this).html();break;}})
$slideSettings.remove();return true;}
this.init=function(id){this.nID=id;if(!jQuery('#'+this.nID)){return;}
this.readSliderSettings();this.arrSlides=jQuery('#'+id+' .thethe-image-slider-slides > li');this.slideLength=parseInt(this.arrSlides.length);this.loader=jQuery('.thethe-image-slider-loader',jQuery('#'+id));if(this.loader){this.loaderProgress=jQuery(this.loader).children('.thethe-image-slider-progress');}
var t=this;var arrThumbs=jQuery('.thethe-image-slider-thumbnails',jQuery('#'+id));jQuery(this.arrSlides).each(function(key,value){if(!t.arrSParams[key]){t.arrSParams[key]={}}
oImg=jQuery(this).find('.thethe-image-slider-image');t.readSlideSettings(key);jQuery(this).css({'width':t.nWidth});jQuery(this).css({'height':t.nHeight});oImg.css({'height':t.nHeight});oImg.css({'width':t.nWidth});jQuery('<img>').load(function(){++t.nImagesLoaded;if(t.nImagesLoaded==t.slideLength){t.loader.fadeOut(500,function(){jQuery(this).css({'display':'none','visibility':'hidden'});});if(t.bAutoplay!=0){t.nextSlide();}else{t.stop();}}}).attr('src',oImg.attr('src'));if(t.arrSParams[key].captionPosition=='left'||t.arrSParams[key].captionPosition=='right'){jQuery('.thethe-image-slider-caption',this).css({'width':t.arrSParams[key].captionSize})}else{jQuery('.thethe-image-slider-caption',this).css({'height':t.arrSParams[key].captionSize})}
var $captionOpacity=t.arrSParams[key].captionOpacity?1-t.arrSParams[key].captionOpacity/100:0.7;jQuery('.thethe-image-slider-caption-bg',this).css({'opacity':$captionOpacity});if(t.arrSParams[key].link){var _link=t.arrSParams[key].link;jQuery(oImg).click(function(){document.location=_link})}
if(!key){jQuery(this).addClass('show');jQuery(this).children('.thethe-image-slider-caption').show();}})
jQuery(arrThumbs).append('<div class="thethe-image-slider-thumbnails-inner"></div>');var finalW=0,finalH=0;var arrThumbsInner=jQuery(arrThumbs).find('.thethe-image-slider-thumbnails-inner');if(arrThumbs&&t.slideLength>1){var tkey=1;jQuery('.thethe-image-slider-thumbnails-thumb',arrThumbs).each(function(){jQuery(this).bind('mouseout',function(){jQuery(this).removeClass('thethe-image-slider-thumbnails-activated');})
jQuery(this).bind('mouseover',function(){if(jQuery(this).attr('class').search('thethe-image-slider-thumbnails-currentthumb')==-1){jQuery(this).addClass('thethe-image-slider-thumbnails-activated');}})
var _tk=tkey;jQuery(this).bind('click',function(){jQuery(this).siblings().each(function(){jQuery(this).removeClass('thethe-image-slider-thumbnails-currentthumb');})
jQuery(this).addClass('thethe-image-slider-thumbnails-currentthumb');t.activateSlide(_tk,this)})
finalW+=jQuery(this).outerWidth(true);finalH=jQuery(this).outerHeight(true);t.arrThumbs.push(this)
arrThumbsInner.append(jQuery(this));tkey++;})
jQuery('.thethe-image-slider-thumbnails-inner > div:first-child',arrThumbs).addClass('thethe-image-slider-thumbnails-currentthumb');function makeScrollable($outer,$inner){var extra=800;var divWidth=$outer.width();$outer.css({overflow:'hidden'});var lastElem=$inner.find('div:last');$outer.scrollLeft(0);$outer.unbind('mousemove').bind('mousemove',function(e){var containerWidth=lastElem[0].offsetLeft+lastElem.outerWidth()+2*extra;var left=(e.pageX-$outer.offset().left)*(containerWidth-divWidth)/divWidth-extra;$outer.stop(true).animate({scrollLeft:left},2000);});}
if((finalW+30)>t.nWidth){if(!arrThumbs.hasClass('thethe-image-slider-thumbnailsunder'))
arrThumbs.css({'left':'0px','right':'0px'});arrThumbsInner.css({'width':finalW+5+'px','height':finalH+'px'});makeScrollable(arrThumbs,arrThumbsInner);}}
if(this.slideLength<2){return;}
jQuery('#'+id+'-pause').bind('click',function(){if(t.pause()=='stopped'){jQuery(this).removeClass('thethe-pause');jQuery(this).addClass('thethe-play');}else{jQuery(this).removeClass('thethe-play');jQuery(this).addClass('thethe-pause');}
return false;})
jQuery('#'+id+'-previous').bind('click',function(){t.goPrevious();return false;})
jQuery('#'+id+'-next').bind('click',function(){t.goNext();return false;})
if(this.strSkin!='none'){jQuery('#'+id+'-pause').css({backgroundImage:'url('+this.strSkin+'/buttons.png)'})
jQuery('#'+id+'-previous').css({backgroundImage:'url('+this.strSkin+'/buttons.png)'})
jQuery('#'+id+'-next').css({backgroundImage:'url('+this.strSkin+'/buttons.png)'})}
if(!this.bLoop){jQuery('#'+id+'-previous').css('margin-left','-1000px');}
jQuery('#'+id).bind('mouseover',function(){jQuery('.thethe-image-slider-controls',this).css({'display':'block'})})
jQuery('#'+id).bind('mouseout',function(){jQuery('.thethe-image-slider-controls',this).css({'display':'none'})})}}
jQuery('.thethe_image_slider').each(function(){var theTheImageSlider=new thetheImageSlider();theTheImageSlider.init(jQuery(this).attr('id'));});});var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-809771-2']);_gaq.push(['_trackPageview']);_gaq.push(['_trackPageLoadTime']);(function(){var ga=document.createElement('script');ga.type='text/javascript';ga.async=true;ga.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(ga,s);})();_qoptions={qacct:"p-40zS7rCiwrcss"};}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/thethe-image-slider/style/js/thethe-image-slider.js?ver=3.3.1'>\x3c/script>")}try{if(!__qc){var __qc={qcdst:function(){if(__qc.qctzoff(0)!=__qc.qctzoff(6))return 1;return 0;},qctzoff:function(m){var d1=new Date(2000,m,1,0,0,0,0);var t=d1.toGMTString();var d3=new Date(t.substring(0,t.lastIndexOf(" ")-1));return d1-d3;},qceuc:function(s){if(typeof(encodeURIComponent)=='function'){return encodeURIComponent(s);}
else{return escape(s);}},qcrnd:function(){return Math.round(Math.random()*2147483647);},qcgc:function(n){var v='';var c=document.cookie;if(!c)return v;var i=c.indexOf(n+"=");var len=i+n.length+1;if(i>-1){var end=c.indexOf(";",len);if(end<0)end=c.length;v=c.substring(len,end);}
return v;},qcdomain:function(){var d=document.domain;if(d.substring(0,4)=="www.")d=d.substring(4,d.length);var a=d.split(".");var len=a.length;if(len<3)return d;var e=a[len-1];if(e.length<3)return d;d=a[len-2]+"."+a[len-1];return d;},qhash2:function(h,s){for(var i=0;i<s.length;i++){h^=s.charCodeAt(i);h+=(h<<1)+(h<<4)+(h<<7)+(h<<8)+(h<<24);}
return h;},qhash:function(s){var h1=0x811c9dc5,h2=0xc9dc5118;var hash1=__qc.qhash2(h1,s);var hash2=__qc.qhash2(h2,s);return(Math.round(Math.abs(hash1*hash2)/65536)).toString(16);},sd:["4dcfa7079941","127fdf7967f31","588ab9292a3f","32f92b0727e5","22f9aa38dfd3","a4abfe8f3e04","18b66bc1325c","958e70ea2f28","bdbf0cb4bbb","65118a0d557","40a1d9db1864","18ae3d985046","3b26460f55d"],qcsc:function(){var s="";var d=__qc.qcdomain();if(__qc.qad==1)return";fpan=u;fpa=";var qh=__qc.qhash(d);for(var i=0;i<__qc.sd.length;i++){if(__qc.sd[i]==qh)return";fpan=u;fpa=";}
var u=document;var a=__qc.qcgc("__qca");if(a.length>0){s+=";fpan=0;fpa="+a;}
else{var da=new Date();var db=new Date(da.getTime()+157680000000);a='P0-'+__qc.qcrnd()+'-'+da.getTime();u.cookie="__qca="+a+"; expires="+db.toGMTString()+"; path=/; domain="+d;a=__qc.qcgc("__qca");if(a.length>0){s+=";fpan=1;fpa="+a;}
else{s+=";fpan=u;fpa=";}}
return s;},qcdc:function(n){document.cookie=n+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain="+__qc.qcdomain();},qpxload:function(img){if(img&&typeof(img.width)=="number"&&img.width==3){__qc.qcdc("__qca");}},qcp:function(p,myqo){var s='',a=null;var media='webpage',event='load';if(myqo!=null){for(var k in myqo){if(typeof(k)!='string'){continue;}
if(typeof(myqo[k])!='string'){continue;}
if(k=='qacct'){a=myqo[k];continue;}
s+=';'+k+p+'='+__qc.qceuc(myqo[k]);if(k=='media'){media=myqo[k];}
if(k=='event'){event=myqo[k];}}}
if(typeof a!="string"){if((typeof _qacct=="undefined")||(_qacct.length==0))return'';a=_qacct;}
if(media=='webpage'&&event=='load'){for(var i=0;i<__qc.qpixelsent.length;i++){if(__qc.qpixelsent[i]==a)return'';}
__qc.qpixelsent.push(a);}
if(media=='ad'){__qc.qad=1;}
s=';a'+p+'='+a+s;return s;},qcesc:function(s){return s.replace(/\./g,'%2E').replace(/,/g,'%2C');},qcd:function(o){return(typeof(o)!="undefined"&&o!=null);},qcogl:function(){var m=document.getElementsByTagName('meta');var o='';for(var i=0;i<m.length;i++){if(o.length>=1000)return o;if(__qc.qcd(m[i])&&__qc.qcd(m[i].attributes)&&__qc.qcd(m[i].attributes.property)&&__qc.qcd(m[i].attributes.property.value)&&__qc.qcd(m[i].content)){var p=m[i].attributes.property.value;var c=m[i].content;if(p.length>3&&p.substring(0,3)=='og:'){if(o.length>0)o+=',';var l=(c.length>80)?80:c.length;o+=__qc.qcesc(p.substring(3,p.length))+'.'+__qc.qcesc(c.substring(0,l));}}}
return __qc.qceuc(o);},firepixel:function(qoptions){var e=(typeof(encodeURIComponent)=='function')?"n":"s";var r=__qc.qcrnd();var sr='',qo='',qm='',url='',ref='',je='u',ns='1';var qocount=0;__qc.qad=0;if(typeof __qc.qpixelsent=="undefined"){__qc.qpixelsent=new Array();}
if(typeof qoptions!="undefined"&&qoptions!=null){__qc.qopts=qoptions;for(var k in __qc.qopts){if(typeof(__qc.qopts[k])=='string'){qo=__qc.qcp("",__qc.qopts);break;}else if(typeof(__qc.qopts[k])=='object'&&__qc.qopts[k]!=null){++qocount;qo+=__qc.qcp("."+qocount,__qc.qopts[k]);}}}else if(typeof _qacct=="string"){qo=__qc.qcp("",null);}
if(qo.length==0)return;var ce=(navigator.cookieEnabled)?"1":"0";if(typeof navigator.javaEnabled!='undefined')je=(navigator.javaEnabled())?"1":"0";if(typeof _qmeta!="undefined"&&_qmeta!=null){qm=';m='+__qc.qceuc(_qmeta);_qmeta=null;}
if(self.screen){sr=screen.width+"x"+screen.height+"x"+screen.colorDepth;}
var d=new Date();var dst=__qc.qcdst();var qs='http';if(window.location.protocol=='https:'){qs+='s';}
qs+="://pixel.quantserve.com";var fp=__qc.qcsc();if(window.location&&window.location.href)url=__qc.qceuc(window.location.href);if(window.document&&window.document.referrer)ref=__qc.qceuc(window.document.referrer);if(self==top)ns='0';var ogl=__qc.qcogl();var img=new Image();img.alt="";img.src=qs+'/pixel'+';r='+r+qo+fp+';ns='+ns+';ce='+ce+';je='+je+';sr='+sr+';enc='+e+';dst='+dst+';et='+d.getTime()+';tzo='+d.getTimezoneOffset()+qm+';ref='+ref+';url='+url+';ogl='+ogl;img.onload=function(){__qc.qpxload(img);}},quantserve:function(){if(typeof _qevents=='undefined'){_qevents=[];}
if(typeof _qoptions!="undefined"&&_qoptions!=null){__qc.firepixel(_qoptions);_qoptions=null;}else if(!_qevents.length&&typeof _qacct!="undefined"){__qc.firepixel(null);}
if(!__qc.evts){for(var k in _qevents){__qc.firepixel(_qevents[k]);}
_qevents={push:function(){var a=arguments;for(var i=0;i<a.length;i++){__qc.firepixel(a[i]);}}};__qc.evts=1;}}};}
function quantserve(){__qc.quantserve();}
quantserve();}catch(e){document.write("\x3cscript type=\"text/javascript\" src=\"http://edge.quantserve.com/quant.js\">\x3c/script>")}try{eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('m j={1b:{7K:\'aT...\',7L:\'5X N b6\',8y:\'5X N aD N aB\',8W:\'aP N aQ 2l\',8t:\'aO by <i>7x 7y</i>\',8a:\'aK N b9 7x 7y bA\',7C:\'7z\',7r:\'7A\',7j:\'7F\',7g:\'7w\',7h:\'7w (bF)\',7f:\'bf\',az:\'7v\',bn:\'7v 5v (7u)\',bl:\'7t\',bm:\'7t 5v (7u)\',7B:\'7z (5S 16)\',7s:\'7A (5S 2C)\',7i:\'7F\',9N:\'9Z 2l\',6O:\'5X N 1Q 2e, 9W 7E 9U N 2I. 9K 5S 9x U 1K 7E 5j.\'},57:\'R/ap/\',6I:\'a2.7N\',98:10,6g:5L,8g:10,8f:5L,3y:15,5n:15,3B:15,2X:15,4j:at,7I:0.75,6f:G,6m:5,35:2,6n:3,8U:\'3k 2C\',8V:1,8j:1m,8n:G,8v:\'ax://aq.9G/R/\',88:G,53:1m,5H:G,42:G,2E:\'4D\',77:G,6w:G,29:7D,3b:7D,4x:G,1t:\'bo-9S\',5T:\'R-V\',80:{7Z:\'<1f 2V="R-9z"><7e>\'+\'<2W 2V="R-5j">\'+\'<a 1V="#" 2h="{j.1b.7B}" 2s="C j.5j(f)">\'+\'<B>{j.1b.7C}</B></a>\'+\'</2W>\'+\'<2W 2V="R-1K">\'+\'<a 1V="#" 2h="{j.1b.7s}" 2s="C j.1K(f)">\'+\'<B>{j.1b.7r}</B></a>\'+\'</2W>\'+\'<2W 2V="R-2I">\'+\'<a 1V="#" 2h="{j.1b.7i}" 2s="C 1m">\'+\'<B>{j.1b.7j}</B></a>\'+\'</2W>\'+\'<2W 2V="R-1Q">\'+\'<a 1V="#" 2h="{j.1b.7h}" 2s="C j.1Q(f)">\'+\'<B>{j.1b.7g}</B></a>\'+\'</2W>\'+\'</7e></1f>\'+\'<1f 2V="R-T"></1f>\'+\'<1f 2V="R-ah"><1f>\'+\'<B 2V="R-3i" 2h="{j.1b.7f}"><B></B></B>\'+\'</1f></1f>\'},4h:[],5G:G,L:[],5K:[\'4x\',\'1t\',\'35\',\'a4\',\'a9\',\'af\',\'7l\',\'ag\',\'an\',\'ac\',\'7k\',\'6w\',\'6V\',\'E\',\'H\',\'53\',\'5H\',\'42\',\'ab\',\'ad\',\'ae\',\'1Z\',\'77\',\'36\',\'3T\',\'2E\',\'5N\',\'5T\',\'29\',\'3b\',\'6a\',\'7c\',\'3A\',\'44\',\'9g\',\'9c\',\'P\'],1I:[],6D:0,aa:{x:[\'8c\',\'16\',\'6E\',\'2C\',\'8h\'],y:[\'4v\',\'1a\',\'6A\',\'3k\',\'5q\']},5u:{},7k:{},7l:{},5N:{9u:{},1z:{},9a:{}},5c:[],3p:{},3o:[],4J:[],3X:[],5B:{},6H:{},1l:(11.4n&&!1A.3d),4T:/a6/.18(3V.7q),4y:/a8.+a7:1\\.[0-8].+ai/.18(3V.7q),$:n(1n){C 11.5F(1n)},26:n(1C,7p){1C[1C.1d]=7p},14:n(7o,2Z,2Y,4w,7m){m q=11.14(7o);k(2Z)j.6B(q,2Z);k(7m)j.J(q,{65:0,9m:\'28\',aw:0});k(2Y)j.J(q,2Y);k(4w)4w.1G(q);C q},6B:n(q,2Z){U(m x 3P 2Z)q[x]=2Z[x]},J:n(q,2Y){U(m x 3P 2Y){k(j.1l&&x==\'1N\'){k(2Y[x]>0.99)q.D.ak(\'5Z\');M q.D.5Z=\'aj(1N=\'+(2Y[x]*2m)+\')\'}M q.D[x]=2Y[x]}},3f:n(){m 1C=3V.9i.91("am");C 1C[1]?7O(1C[1]):F},5s:n(){m 4C=11.6h&&11.6h!=\'8E\'?11.6L:11.T;m E=j.1l?4C.7n:(11.6L.7n||7G.a1),H=j.1l?4C.ay:7G.9E;C{E:E,H:H,4u:j.1l?4C.4u:9D,4r:j.1l?4C.4r:9F}},5P:n(q){m p={x:q.81,y:q.62};3N(q.7H){q=q.7H;p.x+=q.81;p.y+=q.62;k(q!=11.T&&q!=11.6L){p.x-=q.4u;p.y-=q.4r}}C p},5f:n(a,1z,2Q){k(a.3Y)C 1z;1i{1D j.41(a,1z,2Q);C 1m}1j(e){C G}},7J:n(a,1z,2Q){k(a.3Y)C 1z;U(m i=0;i<j.3o.1d;i++){k(j.3o[i]&&j.3o[i].a==a){j.3o[i].8b();j.3o[i]=F;C 1m}}1i{j.84=G;1D j.41(a,1z,2Q,\'3x\');C 1m}1j(e){C G}},6T:n(){C j.14(\'1f\',{1p:\'R-3x-K\',2i:j.7X(j.80.7Z)})},3O:n(q,3R,1p){m W=q.3Q(3R);U(m i=0;i<W.1d;i++){k((1D 4F(1p)).18(W[i].1p)){C W[i]}}C F},7X:n(s){s=s.2d(/\\s/g,\' \');m 2f=/{j\\.1b\\.([^}]+)\\}/g,5b=s.2v(2f),1b;U(m i=0;i<5b.1d;i++){1b=5b[i].2d(2f,"$1");k(1w j.1b[1b]!=\'21\')s=s.2d(5b[i],j.1b[1b])}C s},6R:n(a){U(m i=0;i<j.3X.1d;i++){k(j.3X[i][0]==a){m c=j.3X[i][1];j.3X[i][1]=c.4p(1);C c}}C F},8s:n(e){m 1C=j.6G();U(m i=0;i<1C.3L.1d;i++){m a=1C.3L[i];k(j.3S(a,\'1Z\')==\'2t\'&&j.3S(a,\'77\'))j.26(j.4J,a)}j.70(0)},70:n(i){k(!j.4J[i])C;m a=j.4J[i];m 4t=j.4e(j.3S(a,\'6V\'));k(!4t)4t=j.6T();m 2t=1D j.56(a,4t,1);2t.6J=n(){};2t.2y=n(){j.26(j.3X,[a,4t]);j.70(i+1)};2t.74()},87:n(){m 71=0,4Q=-1;U(m i=0;i<j.L.1d;i++){k(j.L[i]){k(j.L[i].V.D.1E&&j.L[i].V.D.1E>71){71=j.L[i].V.D.1E;4Q=i}}}k(4Q==-1)j.2b=-1;M j.L[4Q].2O()},3S:n(a,4H){a.3Y=a.2s;m p=a.3Y?a.3Y():F;a.3Y=F;C(p&&1w p[4H]!=\'21\')?p[4H]:(1w j[4H]!=\'21\'?j[4H]:F)},4Z:n(a){m P=j.3S(a,\'P\');k(P)C P;C a.1V},4e:n(1n){m 1y=j.$(1n),3h=j.6H[1n],a={};k(!1y&&!3h)C F;k(!3h){3h=1y.4p(G);3h.1n=\'\';j.6H[1n]=3h;C 1y}M{C 3h.4p(G)}},43:n(d){j.6d.1G(d);j.6d.2i=\'\'},5m:n(q,1x){j.5I();m A=j.82=j.3z(q);1i{m 7Y=j.83=A.5W(1x);7Y.2s()}1j(e){j.82=j.83=F}1i{A.1Q()}1j(e){}C 1m},5j:n(q){C j.5m(q,-1)},1K:n(q){C j.5m(q,1)},4X:n(e){k(!e)e=1A.1Y;k(!e.2w)e.2w=e.6F;k(e.2w.86)C G;m 1x=F;9P(e.9R){2u 32:2u 34:2u 39:2u 40:1x=1;6c;2u 8:2u 33:2u 37:2u 38:1x=-1;6c;2u 27:2u 13:1x=0}k(1x!==F){j.4g(11,1A.3d?\'72\':\'73\',j.4X);k(!j.88)C G;k(e.5k)e.5k();M e.bq=1m;m A=j.3z();k(A){k(1x==0){A.1Q()}M{j.5m(A.O,1x)}C 1m}}C G},bj:n(1e){j.26(j.1I,1e)},5V:n(6r){m q,2f=/^R-V-([0-9]+)$/;q=6r;3N(q.2R){k(q.1n&&2f.18(q.1n))C q.1n.2d(2f,"$1");q=q.2R}q=6r;3N(q.2R){k(q.3R&&j.51(q)){U(m O=0;O<j.L.1d;O++){m A=j.L[O];k(A&&A.a==q)C O}}q=q.2R}C F},3z:n(q){k(1w q==\'21\')C j.L[j.2b]||F;k(1w q==\'3M\')C j.L[q]||F;k(1w q==\'6s\')q=j.$(q);C j.L[j.5V(q)]||F},51:n(a){C(a.2s&&a.2s.96().2d(/\\s/g,\' \').2v(/j.(bd|e)bc/))},93:n(){U(m i=0;i<j.L.1d;i++)k(j.L[i]&&j.L[i].4f)j.87()},63:n(e){k(!e)e=1A.1Y;k(e.be>1)C G;k(!e.2w)e.2w=e.6F;m q=e.2w;3N(q.2R&&!(/R-(2e|2I|3x|3i)/.18(q.1p))){q=q.2R}m A=j.3z(q);k(A&&(A.4o||!A.4f))C G;k(A&&e.S==\'67\'){k(e.2w.86)C G;m 2v=q.1p.2v(/R-(2e|2I|3i)/);k(2v){j.1X={A:A,S:2v[1],16:A.x.I,E:A.x.B,1a:A.y.I,H:A.y.B,7d:e.5y,7W:e.5D};j.2o(11,\'5Y\',j.6v);k(e.5k)e.5k();k(/R-(2e|3x)-6U/.18(A.K.1p)){A.2O();j.6t=G}C 1m}M k(/R-3x/.18(q.1p)&&j.2b!=A.O){A.2O();A.4V()}}M k(e.S==\'8P\'){j.4g(11,\'5Y\',j.6v);k(j.1X){k(j.1X.S==\'2e\')j.1X.A.K.D.3W=j.4k;m 2P=j.1X.2P;k(!2P&&!j.6t&&!/(2I|3i)/.18(j.1X.S)){A.1Q()}M k(2P||(!2P&&j.84)){j.1X.A.4V()}k(j.1X.A.2B)j.1X.A.2B.D.1W=\'28\';j.6t=1m;j.1X=F}M k(/R-2e-6U/.18(q.1p)){q.D.3W=j.4k}}C 1m},6v:n(e){k(!j.1X)C G;k(!e)e=1A.1Y;m a=j.1X,A=a.A;k(A.Z){k(!A.2B)A.2B=j.14(\'1f\',F,{1h:\'1P\',E:A.x.B+\'u\',H:A.y.B+\'u\',16:0,1a:0,1E:4,7S:(j.1l?\'bg\':\'28\'),1N:0.br},A.V,G);k(A.2B.D.1W==\'28\')A.2B.D.1W=\'\'}a.54=e.5y-a.7d;a.4Y=e.5D-a.7W;m 6z=1q.bD(1q.7V(a.54,2)+1q.7V(a.4Y,2));k(!a.2P)a.2P=(a.S!=\'2e\'&&6z>0)||(6z>(j.bH||5));k(a.2P&&e.5y>5&&e.5D>5){k(a.S==\'3i\')A.3i(a);M A.2I(a)}C 1m},7b:n(e){1i{k(!e)e=1A.1Y;m 5i=/bB/i.18(e.S);k(!e.2w)e.2w=e.6F;k(j.1l)e.6C=5i?e.bt:e.bw;m A=j.3z(e.2w);k(!A.4f)C;k(!A||!e.6C||j.3z(e.6C)==A||j.1X)C;U(m i=0;i<A.1I.1d;i++){m o=j.$(\'3g\'+A.1I[i]);k(o&&o.47){m 3t=5i?0:o.1N,N=5i?o.1N:0;j.2n(o,3t,N)}}}1j(e){}},2o:n(q,1Y,2S){1i{q.2o(1Y,2S,1m)}1j(e){1i{q.7M(\'4i\'+1Y,2S);q.bI(\'4i\'+1Y,2S)}1j(e){q[\'4i\'+1Y]=2S}}},4g:n(q,1Y,2S){1i{q.4g(1Y,2S,1m)}1j(e){1i{q.7M(\'4i\'+1Y,2S)}1j(e){q[\'4i\'+1Y]=F}}},4W:n(i){k(j.5G&&j.4h[i]&&j.4h[i]!=\'21\'){m 1s=11.14(\'1s\');1s.3s=n(){1s=F;j.4W(i+1)};1s.P=j.4h[i]}},8N:n(3M){k(3M&&1w 3M!=\'aL\')j.6m=3M;m 1C=j.6G();U(m i=0;i<1C.3H.1d&&i<j.6m;i++){j.26(j.4h,j.4Z(1C.3H[i]))}k(j.1t)1D j.4d(j.1t,n(){j.4W(0)});M j.4W(0);m 7N=j.14(\'1s\',{P:j.57+j.6I})},4P:n(){k(!j.1U){j.1U=j.14(\'1f\',F,{1h:\'1P\',16:0,1a:0,E:\'2m%\',1E:j.4j},11.T,G);j.1L=j.14(\'a\',{1p:\'R-1L\',2h:j.1b.7L,2i:j.1b.7K,1V:\'4S:;\'},{1h:\'1P\',1a:\'-30\',1N:j.7I,1E:1},j.1U);j.6d=j.14(\'1f\',F,{1W:\'28\'},j.1U);j.2x=j.14(\'1f\',F,{9o:\'9p\',aJ:\'aI\'},F,G);1q.aC=n(t,b,c,d){C c*t/d+b};1q.9d=n(t,b,c,d){C c*(t/=d)*t+b};U(m x 3P j.5o){k(1w j[x]!=\'21\')j.1b[x]=j[x];M k(1w j.1b[x]==\'21\'&&1w j.5o[x]!=\'21\')j.1b[x]=j.5o[x]}j.8J=(j.1l&&j.3f()<=6&&3G.8F==\'8G:\')}},8Q:n(){j.89=G;k(j.5O)j.5O()},5I:n(){m W=11.3Q(\'*\'),4n=[],3H=[],3L=[],2U={},2f;U(m i=0;i<W.1d;i++){2f=j.51(W[i]);k(2f){j.26(4n,W[i]);k(2f[0]==\'j.5f\')j.26(3H,W[i]);M k(2f[0]==\'j.7J\')j.26(3L,W[i]);m g=j.3S(W[i],\'3A\')||\'28\';k(!2U[g])2U[g]=[];j.26(2U[g],W[i])}}j.4b={4n:4n,2U:2U,3H:3H,3L:3L};C j.4b},6G:n(){C j.4b||j.5I()},2n:n(q,o,3m,2A,i,4c){k(1w i==\'21\'){k(1w 2A!=\'3M\')2A=5L;k(2A<25){j.J(q,{1N:3m});C}i=j.5c.1d;4c=3m>o?1:-1;m 4a=(25/(2A-2A%25))*1q.8o(o-3m)}o=7O(o);m 5Q=(q.2n===0||q.2n===1m||(q.2n==2&&j.1l));q.D.1u=((5Q?3m:o)<=0)?\'19\':\'1T\';k(5Q||o<0||(4c==1&&o>3m))C;k(q.3v&&q.3v.i!=i){aR(j.5c[q.3v.i]);o=q.3v.o}q.3v={i:i,o:o,4a:(4a||q.3v.4a)};q.D.1u=(o<=0)?\'19\':\'1T\';j.J(q,{1N:o});j.5c[i]=2M(n(){j.2n(q,o+q.3v.4a*4c,3m,F,i,4c)},25)},1Q:n(q){m A=j.3z(q);k(A)A.1Q();C 1m}};j.4d=n(1t,2y){f.2y=2y;f.1t=1t;m v=j.3f(),4R;f.69=j.1l&&v>=5.5&&v<7;k(!1t){k(2y)2y();C}j.4P();f.23=j.14(\'23\',{b8:0},{1u:\'19\',1h:\'1P\',b7:\'b1\'},j.1U,G);m 5R=j.14(\'5R\',F,F,f.23,1);f.22=[];U(m i=0;i<=8;i++){k(i%3==0)4R=j.14(\'4R\',F,{H:\'1F\'},5R,G);f.22[i]=j.14(\'22\',F,F,4R,G);m D=i!=4?{aV:0,aU:0}:{1h:\'3j\'};j.J(f.22[i],D)}f.22[4].1p=1t;f.7P()};j.4d.76={7P:n(){m P=j.57+(j.aW||"aX/")+f.1t+".aZ";m 7U=j.4T?j.1U:F;f.2D=j.14(\'1s\',F,{1h:\'1P\',16:\'-30\',1a:\'-30\'},7U,G);m 2z=f;f.2D.3s=n(){2z.7T()};f.2D.P=P},7T:n(){m o=f.2p=f.2D.E/4,1r=[[0,0],[0,-4],[-2,0],[0,-8],0,[-2,-8],[0,-2],[0,-6],[-2,-2]],5E={H:(2*o)+\'u\',E:(2*o)+\'u\'};j.43(f.2D);U(m i=0;i<=8;i++){k(1r[i]){k(f.69){m w=(i==1||i==7)?\'2m%\':f.2D.E+\'u\';m 1f=j.14(\'1f\',F,{E:\'2m%\',H:\'2m%\',1h:\'3j\',2a:\'19\'},f.22[i],G);j.14(\'1f\',F,{5Z:"b0:b5.8T.b2(b4=aS, P=\'"+f.2D.P+"\')",1h:\'1P\',E:w,H:f.2D.H+\'u\',16:(1r[i][0]*o)+\'u\',1a:(1r[i][1]*o)+\'u\'},1f,G)}M{j.J(f.22[i],{7S:\'8z(\'+f.2D.P+\') \'+(1r[i][0]*o)+\'u \'+(1r[i][1]*o)+\'u\'})}k(1A.3d&&(i==3||i==5))j.14(\'1f\',F,5E,f.22[i],G);j.J(f.22[i],5E)}}k(j.3p[f.1t])j.3p[f.1t].5a();j.3p[f.1t]=f;k(f.2y)f.2y()},3Z:n(A,1r,7Q){1r=1r||{x:A.x.I,y:A.y.I,w:A.x.B+A.x.Y+A.x.1g,h:A.y.B+A.y.Y+A.y.1g};k(7Q)f.23.D.1u=(1r.h>=4*f.2p)?\'1T\':\'19\';j.J(f.23,{16:(1r.x-f.2p)+\'u\',1a:(1r.y-f.2p)+\'u\',E:(1r.w+2*(A.x.Q+f.2p))+\'u\'});1r.w+=2*(A.x.Q-f.2p);1r.h+=+2*(A.y.Q-f.2p);j.J(f.22[4],{E:1r.w>=0?1r.w+\'u\':0,H:1r.h>=0?1r.h+\'u\':0});k(f.69)f.22[3].D.H=f.22[5].D.H=f.22[4].D.H},5a:n(7R){k(7R)f.23.D.1u=\'19\';M j.43(f.23)}};j.41=n(a,1z,2Q,2k){k(11.5h&&j.1l&&!j.89){j.5O=n(){1D j.41(a,1z,2Q,2k)};C}f.a=a;f.2Q=2Q;f.2k=2k||\'2e\';f.1O=(2k==\'3x\');f.2G=!f.1O;j.5G=1m;f.1I=[];j.4P();m O=f.O=j.L.1d;U(m i=0;i<j.5K.1d;i++){m 45=j.5K[i];f[45]=1z&&1w 1z[45]!=\'21\'?1z[45]:j[45]}k(!f.P)f.P=a.1V;m q=(1z&&1z.6u)?j.$(1z.6u):a;q=f.7a=q.3Q(\'1s\')[0]||q;f.5d=q.1n||a.1n;U(m i=0;i<j.L.1d;i++){k(j.L[i]&&j.L[i].a==a){j.L[i].2O();C 1m}}U(m i=0;i<j.L.1d;i++){k(j.L[i]&&j.L[i].7a!=q&&!j.L[i].4O){j.L[i].61()}}j.L[f.O]=f;k(!j.6f){k(j.L[O-1])j.L[O-1].1Q();k(1w j.2b!=\'21\'&&j.L[j.2b])j.L[j.2b].1Q()}m 1r=j.5P(q);m x=f.x={};x.t=q.E?2j(q.E):q.1v;x.1H=1r.x;x.2g=(q.1v-x.t)/2;m y=f.y={};y.t=q.H?2j(q.H):q.1o;y.1H=1r.y;y.2g=(q.1o-y.t)/2;x.Y=x.1g=y.Y=y.1g=0;f.V=j.14(\'1f\',{1n:\'R-V-\'+f.O,1p:f.5T},{1u:\'19\',1h:\'1P\',1E:j.4j++},F,G);f.V.bu=f.V.bC=j.7b;k(f.2k==\'2e\'&&f.35==2)f.35=0;k(!f.1t){f[f.2k+\'6M\']()}M k(j.3p[f.1t]){f.6y();f[f.2k+\'6M\']()}M{f.4G();m A=f;1D j.4d(f.1t,n(){A.6y();A[A.2k+\'6M\']()})}C G};j.41.76={6y:n(x,y){m o=f.1k=j.3p[f.1t];o.23.D.1E=f.V.D.1E;j.3p[f.1t]=F},4G:n(){k(f.4O||f.1L)C;f.1L=j.1L;m A=f;f.1L.2s=n(){A.61()};m A=f,l=(f.x.1H+f.x.2g+(f.x.t-f.1L.1v)/2)+\'u\',t=(f.y.1H+(f.y.t-f.1L.1o)/2)+\'u\';2M(n(){k(A.1L)j.J(A.1L,{16:l,1a:t})},2m)},bi:n(){m A=f;m 1s=11.14(\'1s\');f.K=1s;1s.3s=n(){k(j.L[A.O])A.4I()};k(j.bp)1s.bk=n(){C 1m};1s.1p=\'R-2e\';j.J(1s,{1u:\'19\',1W:\'4l\',1h:\'1P\',6a:\'30\',1E:3});1s.2h=j.1b.6O;k(j.4T)j.1U.1G(1s);k(j.1l&&j.9O)1s.P=F;1s.P=f.P;f.4G()},9M:n(){f.K=j.6R(f.a);k(!f.K)f.K=j.4e(f.6V);k(!f.K)f.K=j.6T();f.6x([\'5x\']);k(f.5x){m T=j.3O(f.K,\'1f\',\'R-T\');k(T)T.1G(f.5x);f.5x.D.1W=\'4l\'}f.1c=f.K;k(/(3e|Z)/.18(f.1Z))f.5J(f.1c);j.1U.1G(f.V);j.J(f.V,{1h:\'9Y\',65:\'0 \'+j.5n+\'u 0 \'+j.3y+\'u\'});f.K=j.14(\'1f\',{1p:\'R-3x\'},{1h:\'3j\',1E:3,2a:\'19\'},f.V);f.46=j.14(\'1f\',F,F,f.K,1);f.46.1G(f.1c);j.J(f.1c,{1h:\'3j\',1W:\'4l\'});k(f.E)f.1c.D.E=f.E+\'u\';k(f.H)f.1c.D.H=f.H+\'u\';k(f.1c.1v<f.29)f.1c.D.E=f.29+\'u\';k(f.1Z==\'2t\'&&!j.6R(f.a)){f.4G();m 2t=1D j.56(f.a,f.1c);m A=f;2t.2y=n(){k(j.L[A.O])A.4I()};2t.6J=n(){3G.1V=A.P};2t.74()}M k(f.1Z==\'Z\'&&f.2E==\'4D\'){f.5r()}M f.4I()},4I:n(){1i{k(!f.K)C;f.K.3s=F;k(f.4O)C;M f.4O=G;m x=f.x,y=f.y;k(f.1L){j.J(f.1L,{1a:\'-30\'});f.1L=F}f.2X=j.2X;k(f.2G){x.X=f.K.E;y.X=f.K.H;j.J(f.K,{E:f.x.t+\'u\',H:f.y.t+\'u\'})}M k(f.60)f.60();f.V.1G(f.K);j.J(f.V,{16:f.x.1H+\'u\',1a:f.y.1H+\'u\'});j.1U.1G(f.V);x.Q=(f.K.1v-f.x.t)/2;y.Q=(f.K.1o-f.y.t)/2;m 79=j.5n+2*x.Q;f.2X+=2*y.Q;f.8i();m 2c=x.X/y.X;m 29=f.4x?f.29:x.X;m 3b=f.4x?f.3b:y.X;m 3E={x:\'1F\',y:\'1F\'};m 2L=j.5s();x.I=x.1H-x.Q+x.2g;x.B=1q.I(x.X,f.6a||x.X);x.2q=1q.I(x.X,29);x.24=j.3y;x.31=79;x.3l=2L.4u;x.2J=2L.E;f.3E(x);y.I=y.1H-y.Q+y.2g;y.B=1q.I(y.X,f.7c||y.X);y.2q=1q.I(y.X,3b);y.24=j.3B;y.31=f.2X;y.3l=2L.4r;y.2J=2L.H;f.3E(y);k(f.1O)f.9n();k(f.1B)f.3r(0,1);k(f.4x){k(f.2G)f.9j(2c);M f.6W();k(f.2G&&f.x.X>f.x.B){f.8X();k(f.1I.1d==1)f.3r()}}f.6i()}1j(e){1A.3G.1V=f.P}},5J:n(4w,1F){m c=j.3O(4w,\'55\',\'R-T\');k(/(Z|3e)/.18(f.1Z)){k(f.36)c.D.E=f.36+\'u\';k(f.3T)c.D.H=f.3T+\'u\'}},5r:n(){k(f.9b)C;m A=f;f.T=j.3O(f.1c,\'55\',\'R-T\');k(f.1Z==\'Z\'){f.4G();m 4E=j.2x.4p(1);f.T.1G(4E);f.9B=f.1c.1v;k(!f.36)f.36=4E.1v;m 3a=f.1c.1o-f.T.1o,h=f.3T||(j.5s()).H-3a-j.3B-j.2X,3s=f.2E==\'4D\'?\' 3s="k (j.L[\'+f.O+\']) j.L[\'+f.O+\'].4I()" \':\'\';f.T.2i+=\'<Z 45="j\'+(1D 9H()).9X()+\'" 9Q="0" O="\'+f.O+\'" \'+\' bG="G" D="E:\'+f.36+\'u; H:\'+h+\'u" \'+3s+\' P="\'+f.P+\'"></Z>\';f.4E=f.T.3Q(\'1f\')[0];f.Z=f.T.3Q(\'Z\')[0];k(f.2E==\'6o\')f.6N()}k(f.1Z==\'3e\'){f.T.1n=f.T.1n||\'j-bJ-1n-\'+f.O;m a=f.5N;k(1w a.1z.85==\'21\')a.1z.85=\'bb\';k(6k)6k.bz(f.P,f.T.1n,f.36,f.3T,a.9A||\'7\',a.9w,a.9u,a.1z,a.9a)}f.9b=G},60:n(){k(f.Z&&!f.3T){m h;1i{m 1M=f.Z.5M||f.Z.4B.11;m 2x=1M.14(\'1f\');2x.D.9o=\'9p\';1M.T.1G(2x);h=2x.62;k(j.1l)h+=2j(1M.T.59.3B)+2j(1M.T.59.2X)-1}1j(e){h=9I}f.Z.D.H=f.T.D.H=h+\'u\'}f.1c.1G(j.2x);k(!f.x.X)f.x.X=f.1c.1v;f.y.X=f.1c.1o;f.1c.9l(j.2x);k(j.1l&&f.9q>2j(f.1c.59.H)){f.9q=2j(f.1c.59.H)}j.J(f.V,{1h:\'1P\',65:\'0\'});j.J(f.K,{E:f.x.t+\'u\',H:f.y.t+\'u\'})},6N:n(){m 2F=f.1c.1v-f.4E.1v;k(2F<0)2F=0;m 3a=f.1c.1o-f.T.1o;j.J(f.Z,{E:(f.x.B-2F)+\'u\',H:(f.y.B-3a)+\'u\'});j.J(f.T,{E:f.Z.D.E,H:f.Z.D.H});f.3I=f.Z;f.1R=f.3I},9n:n(){f.5J(f.1c);k(f.1Z==\'3e\'&&f.2E==\'4D\')f.5r();k(f.x.B<f.x.X&&!f.53)f.x.B=f.x.X;k(f.y.B<f.y.X&&!f.5H)f.y.B=f.y.X;f.1R=f.1c;j.J(f.46,{E:f.x.B+\'u\',1h:\'3j\',16:(f.x.I-f.x.1H)+\'u\',1a:(f.y.I-f.y.1H)+\'u\'});j.J(f.1c,{9m:\'28\',E:\'1F\',H:\'1F\'});m 1y=j.3O(f.1c,\'55\',\'R-T\');k(1y&&!/(Z|3e)/.18(f.1Z)){m 3J=1y;1y=j.14(3J.a0,F,{2a:\'19\'},F,G);3J.2R.9T(1y,3J);1y.1G(j.2x);1y.1G(3J);m 2F=f.1c.1v-1y.1v;m 3a=f.1c.1o-1y.1o;1y.9l(j.2x);m 4M=j.4T||3V.9h==\'9s\'?1:0;j.J(1y,{E:(f.x.B-2F-4M)+\'u\',H:(f.y.B-3a)+\'u\',2a:\'1F\',1h:\'3j\'});k(4M&&3J.1o>1y.1o){1y.D.E=(2j(1y.D.E)+4M)+\'u\'}f.3I=1y;f.1R=f.3I}k(f.Z&&f.2E==\'4D\')f.6N();k(!f.3I&&f.y.B<f.46.1o)f.1R=f.K;k(f.1R==f.K&&!f.53&&!/(Z|3e)/.18(f.1Z)){f.x.B+=17}k(f.1R&&f.1R.1o>f.1R.2R.1o){2M("1i { j.L["+f.O+"].1R.D.2a = \'1F\'; } 1j(e) {}",j.6g)}},3E:n(p,3D){m bh,5E=p==f.x?\'x\':\'y\';m 6j=1m;m 3C=G;p.I=1q.49(p.I-((p.B+p.Y+p.1g-p.t)/2));k(p.I<p.3l+p.24){p.I=p.3l+p.24;6j=G}k(!3D&&p.B<p.2q){p.B=p.2q;3C=1m}k(p.I+p.B+p.Y+p.1g>p.3l+p.2J-p.31){k(!3D&&6j&&3C){p.B=p.2J-p.24-p.31}M k(p.B+p.Y+p.1g<p.2J-p.24-p.31){p.I=p.3l+p.2J-p.B-p.24-p.31-p.Y-p.1g}M{p.I=p.3l+p.24;k(!3D&&3C)p.B=p.2J-p.24-p.31}}k(!3D&&p.B<p.2q){p.B=p.2q;3C=1m}k(p.I<p.24){m 9k=p.I;p.I=p.24;k(3C&&!3D)p.B=p.B-(p.I-9k)}},9j:n(2c){m x=f.x,y=f.y;m 5A=1m;k(x.B/y.B>2c){ x.B=y.B*2c;k(x.B<x.2q){x.B=x.2q;y.B=x.B/2c}5A=G}M k(x.B/y.B<2c){ m bE=y.B;y.B=x.B/2c;5A=G}f.6W(2c);k(5A){x.I=x.1H-x.Q+x.2g;x.2q=x.B;f.3E(x,G);y.I=y.1H-y.Q+y.2g;y.2q=y.B;f.3E(y,G);k(f.1B)f.3r()}},6W:n(2c){m x=f.x,y=f.y;k(f.1B){3N(y.B>f.3b&&x.B>f.29&&y.24+y.Y+y.B+y.1g+y.31>y.2J){y.B-=10;k(2c)x.B=y.B*2c;f.3r(0,1)}}},6i:n(){m 1J={x:f.x.I-20,y:f.y.I-20,w:f.x.B+40,h:f.y.B+40};j.4L=(j.1l&&j.3f()<7);k(j.4L)f.2r(\'6Y\',\'19\',1J);j.4N=((1A.3d&&3V.9i<9)||3V.9h==\'9s\'||(j.1l&&j.3f()<5.5));k(j.4N)f.2r(\'78\',\'19\',1J);k(j.4y)f.2r(\'*\',\'19\',1J);f.6X(1,{3u:f.x.1H+f.x.2g-f.x.Q,3q:f.y.1H+f.y.2g-f.y.Q,3w:f.x.t,3n:f.y.t,2N:0,48:0,2T:0,3U:0,o:j.6n},{3u:f.x.I,3q:f.y.I,3w:f.x.B,3n:f.y.B,2N:f.x.Y,2T:f.y.Y,48:f.x.1g,3U:f.y.1g,o:f.1k?f.1k.2p:0},j.6g,j.98)},6X:n(2K,3t,N,2A,66){k(f.1k&&!f.35){k(2K)f.1k.3Z(f);M f.1k.5a((f.1O&&f.42))}k(!2K&&f.1B){k(f.1O&&f.42){f.1B.D.1a=\'-30\';j.1U.1G(f.1B)}M j.43(f.1B)}k(f.9c){3t.1x=2K?0:1;N.1x=2K}m t,A=f,44=1q[f.44]||1q.9d;k(!2K)44=1q[f.9g]||44;U(m i=1;i<=66;i++){t=1q.49(i*(2A/66));(n(){m 9f=i,2l={};U(m x 3P 3t){2l[x]=44(t,3t[x],N[x]-3t[x],2A);k(!/^1x$/.18(x))2l[x]=1q.49(2l[x])}2M(n(){k(2K&&9f==1){A.K.D.1u=\'1T\';A.a.1p+=\' R-90-95\'}A.9e(2l)},t)})()}k(2K){2M(n(){k(A.1k)A.1k.23.D.1u="1T"},t);2M(n(){A.9r()},t+50)}M 2M(n(){A.6Z()},t)},9e:n(N){1i{k(N.1x)j.J(f.V,{1N:N.1x});j.J(f.V,{E:(N.3w+N.2N+N.48+2*f.x.Q)+\'u\',H:(N.3n+N.2T+N.3U+2*f.y.Q)+\'u\',16:N.3u+\'u\',1a:N.3q+\'u\'});j.J(f.K,{1a:N.2T+\'u\',16:N.2N+\'u\',E:N.3w+\'u\',H:N.3n+\'u\'});k(f.1O){j.J(f.46,{16:(f.x.I-N.3u+f.x.Y-N.2N)+\'u\',1a:(f.y.I-N.3q+f.y.Y-N.2T)+\'u\'});f.1c.D.1u=\'1T\'}k(f.1k&&f.35){m o=f.1k.2p-N.o;f.1k.3Z(f,{x:N.3u+o,y:N.3q+o,w:N.3w+N.2N+N.48+ -2*o,h:N.3n+N.2T+N.3U+ -2*o},1)}f.V.D.1u=\'1T\'}1j(e){1A.3G.1V=f.P}},9r:n(){f.4f=G;f.2O();k(f.1O&&f.2E==\'6o\')f.5r();k(f.1O){k(f.Z){1i{m A=f,1M=f.Z.5M||f.Z.4B.11;j.2o(1M,\'67\',n(){k(j.2b!=A.O)A.2O()})}1j(e){}k(j.1l&&1w f.4o!=\'aF\')f.Z.D.E=(f.36-1)+\'u\'}}f.9t();k(f.1B)f.8Y()},9t:n(){m O=f.O;m 1t=f.1t;1D j.4d(1t,n(){1i{j.L[O].9v()}1j(e){}})},9v:n(){m 1K=f.5W(1);k(1K&&1K.2s.96().2v(/j\\.5f/))m 1s=j.14(\'1s\',{P:j.4Z(1K)})},5W:n(1x){m 5U=f.8u(),as=j.4b.2U[f.3A||\'28\'];k(!as[5U+1x]&&f.5v&&f.5v.aY){k(1x==1)C as[0];M k(1x==-1)C as[as.1d-1]}C as[5U+1x]||F},8u:n(){m 1C=j.4b.2U[f.3A||\'28\'];U(m i=0;i<1C.1d;i++){k(1C[i]==f.a)C i}C F},61:n(){j.L[f.O]=F;k(f.1L)j.1L.D.16=\'-30\'},8m:n(){f.6b=j.14(\'a\',{1V:j.8v,1p:\'R-6b\',2i:j.1b.8t,2h:j.1b.8a});f.4s({5e:f.6b,1h:\'1a 16\'})},6x:n(68,8w){U(m i=0;i<68.1d;i++){m S=68[i],s=F;k(!f[S+\'58\']&&f.5d)f[S+\'58\']=S+\'-U-\'+f.5d;k(f[S+\'58\'])f[S]=j.4e(f[S+\'58\']);k(!f[S]&&!f[S+\'64\']&&f[S+\'8q\'])1i{s=b3(f[S+\'8q\'])}1j(e){}k(!f[S]&&f[S+\'64\']){s=f[S+\'64\']}k(!f[S]&&!s){m 1K=f.a.8r;3N(1K&&!j.51(1K)){k((1D 4F(\'R-\'+S)).18(1K.1p||F)){f[S]=1K.4p(1);6c}1K=1K.8r}}k(!f[S]&&s)f[S]=j.14(\'1f\',{1p:\'R-\'+S,2i:s});k(8w&&f[S]){m o={1h:(S==\'52\')?\'4v\':\'5q\'};U(m x 3P f[S+\'8x\'])o[x]=f[S+\'8x\'][x];o.5e=f[S];f.4s(o)}}},2r:n(3R,1u,1J){m W=11.3Q(3R);m 3F=3R==\'*\'?\'2a\':\'1u\';U(m i=0;i<W.1d;i++){k(3F==\'1u\'||(11.aG.aH(W[i],"").aE(\'2a\')==\'1F\'||W[i].8C(\'19-by\')!=F)){m 1S=W[i].8C(\'19-by\');k(1u==\'1T\'&&1S){1S=1S.2d(\'[\'+f.O+\']\',\'\');W[i].4m(\'19-by\',1S);k(!1S)W[i].D[3F]=W[i].6S}M k(1u==\'19\'){m 2H=j.5P(W[i]);2H.w=W[i].1v;2H.h=W[i].1o;m 8B=(2H.x+2H.w<1J.x||2H.x>1J.x+1J.w);m 8A=(2H.y+2H.h<1J.y||2H.y>1J.y+1J.h);m 6Q=j.5V(W[i]);k(!8B&&!8A&&6Q!=f.O){k(!1S){W[i].4m(\'19-by\',\'[\'+f.O+\']\');W[i].6S=W[i].D[3F];W[i].D[3F]=\'19\'}M k(!1S.2v(\'[\'+f.O+\']\')){W[i].4m(\'19-by\',1S+\'[\'+f.O+\']\')}}M k(1S==\'[\'+f.O+\']\'||j.2b==6Q){W[i].4m(\'19-by\',\'\');W[i].D[3F]=W[i].6S||\'\'}M k(1S&&1S.2v(\'[\'+f.O+\']\')){W[i].4m(\'19-by\',1S.2d(\'[\'+f.O+\']\',\'\'))}}}}},2O:n(){f.V.D.1E=j.4j++;U(m i=0;i<j.L.1d;i++){k(j.L[i]&&i==j.2b){m 3K=j.L[i];3K.K.1p+=\' R-\'+3K.2k+\'-6U\';k(3K.2G){3K.K.D.3W=j.1l?\'8p\':\'6K\';3K.K.2h=j.1b.8y}}}k(f.1k)f.1k.23.D.1E=f.V.D.1E;f.K.1p=\'R-\'+f.2k;k(f.2G){f.K.2h=j.1b.6O;j.4k=1A.3d?\'6K\':\'8z(\'+j.57+j.6I+\'), 6K\';k(j.1l&&j.3f()<6)j.4k=\'8p\';f.K.D.3W=j.4k}j.2b=f.O;j.2o(11,1A.3d?\'72\':\'73\',j.4X)},2I:n(e){f.x.I=e.16+e.54;f.y.I=e.1a+e.4Y;k(e.S==\'2e\')f.K.D.3W=\'2I\';j.J(f.V,{16:f.x.I+\'u\',1a:f.y.I+\'u\'});k(f.1k)f.1k.3Z(f)},3i:n(e){m w,h,r=e.E/e.H;w=1q.aA(e.E+e.54,1q.I(f.29,f.x.X));k(f.2G&&1q.8o(w-f.x.X)<12)w=f.x.X;h=f.1O?e.H+e.4Y:w/r;k(h<1q.I(f.3b,f.y.X)){h=1q.I(f.3b,f.y.X);k(f.2G)w=h*r}f.x.B=w;f.y.B=h;k(f.1O){m d=f.1R;k(1w f.2F==\'21\'){f.2F=f.1c.1v-d.1v;f.3a=f.1c.1o-d.1o}j.J(d,{E:(f.x.B-f.2F)+\'u\',H:(f.y.B-f.3a)+\'u\'})}m 2l={E:f.x.B+\'u\',H:f.y.B+\'u\'};j.J(f.K,2l);k(f.2B)j.J(f.2B,2l);k(f.1O){f.46.D.E=\'1F\';k(f.T)j.J(f.T,{E:\'1F\',H:\'1F\'})}k(f.1B)f.3r(G);j.J(f.V,{E:(f.x.Y+f.x.1g+2*f.x.Q+f.x.B)+\'u\',H:(f.y.Y+f.y.1g+2*f.y.Q+f.y.B)+\'u\'});k(f.1k)f.1k.3Z(f)},1Q:n(){k(f.4o||!f.4f)C;f.4o=G;j.4g(11,1A.3d?\'72\':\'73\',j.4X);1i{k(f.1O)f.8e();f.K.D.3W=\'aN\';f.6X(0,{3u:f.x.I,3q:f.y.I,3w:f.x.B,3n:2j(f.K.D.H),2N:f.x.Y,2T:f.y.Y,48:f.x.1g,3U:f.y.1g,o:f.1k?f.1k.2p:0},{3u:f.x.1H-f.x.Q+f.x.2g,3q:f.y.1H-f.y.Q+f.y.2g,3w:f.x.t,3n:f.y.t,2N:0,2T:0,48:0,3U:0,o:j.6n},j.8f,j.8g)}1j(e){f.6Z()}},8e:n(){k(j.4y){k(!j.4z)j.4z=j.14(\'1f\',F,{1h:\'1P\'},j.1U);j.J(j.4z,{E:f.x.B+\'u\',H:f.y.B+\'u\',16:f.x.I+\'u\',1a:f.y.I+\'u\',1W:\'4l\'})}k(f.1Z==\'3e\')1i{j.$(f.T.1n).aM()}1j(e){}k(f.2E==\'6o\'&&!f.42)f.8d();k(f.1R&&f.1R!=f.3I)f.1R.D.2a=\'19\'},8d:n(){k(j.1l&&f.Z)1i{f.Z.4B.11.T.2i=\'\'}1j(e){}k(f.1Z==\'3e\')6k.ba(f.T.1n);f.T.2i=\'\'},94:n(){k(f.1k)f.1k.23.D.1W=\'28\';f.2B=F;f.V.D.1W=\'28\';j.26(j.3o,f)},8b:n(){j.L[f.O]=f;k(!j.6f&&j.2b!=f.O){1i{j.L[j.2b].1Q()}1j(e){}}m z=j.4j++,5p={1W:\'\',1E:z};j.J(f.V,5p);f.4o=1m;m o=f.1k||0;k(o){k(!f.35)5p.1u=\'19\';j.J(o.23,5p)}f.6i()},4s:n(o){m q=o.5e;k(1w q==\'6s\')q=j.4e(q);k(!q||1w q==\'6s\')C;q.D.1W=\'4l\';f.8k();m E=o.E&&/^[0-9]+(u|%)$/.18(o.E)?o.E:\'1F\';k(/^(16|2C)8l$/.18(o.1h)&&!/^[0-9]+u$/.18(o.E))E=\'bx\';m 1e=j.14(\'1f\',{1n:\'3g\'+j.6D++,3g:o.3g},{1h:\'1P\',1u:\'19\',E:E},f.1B,G);1e.1G(q);j.6B(1e,{47:o.47,1N:o.1N||1,4q:o.1h,2n:o.2n});k(f.97){f.5C(1e);k(!1e.47||f.6p)j.2n(1e,0,1e.1N)}j.26(f.1I,j.6D-1)},5C:n(1e){m p=1e.4q||\'6A 6E\';k(/16$/.18(p))1e.D.16=0;k(/6E$/.18(p))j.J(1e,{16:\'50%\',3y:\'-\'+1q.49(1e.1v/2)+\'u\'});k(/2C$/.18(p))1e.D.2C=0;k(/^8c$/.18(p)){j.J(1e,{2C:\'2m%\',5n:f.x.Q+\'u\',1a:-f.y.Q+\'u\',3k:-f.y.Q+\'u\',2a:\'1F\'});f.x.Y=1e.1v}M k(/^8h$/.18(p)){j.J(1e,{16:\'2m%\',3y:f.x.Q+\'u\',1a:-f.y.Q+\'u\',3k:-f.y.Q+\'u\',2a:\'1F\'});f.x.1g=1e.1v}k(/^1a/.18(p))1e.D.1a=0;k(/^6A/.18(p))j.J(1e,{1a:\'50%\',3B:\'-\'+1q.49(1e.1o/2)+\'u\'});k(/^3k/.18(p))1e.D.3k=0;k(/^4v$/.18(p)){j.J(1e,{16:(-f.x.Y-f.x.Q)+\'u\',2C:(-f.x.1g-f.x.Q)+\'u\',3k:\'2m%\',2X:f.y.Q+\'u\',E:\'1F\'});f.y.Y=1e.1o}M k(/^5q$/.18(p)){j.J(1e,{1h:\'3j\',16:(-f.x.Y-f.x.Q)+\'u\',2C:(-f.x.1g-f.x.Q)+\'u\',1a:\'2m%\',3B:f.y.Q+\'u\',E:\'1F\'});f.y.1g=1e.1o;1e.D.1h=\'1P\'}},8i:n(){f.6x([\'52\',\'bv\'],G);k(f.52&&f.6w)f.52.1p+=\' R-2I\';k(j.8n)f.8m();U(m i=0;i<j.1I.1d;i++){m o=j.1I[i],4K=o.6u,5z=o.3A;k((!4K&&!5z)||(4K&&4K==f.5d)||(5z&&5z===f.3A)){k(f.2G||(f.1O&&o.bs))f.4s(o)}}m 5g=[];U(m i=0;i<f.1I.1d;i++){m o=j.$(\'3g\'+f.1I[i]);k(/8l$/.18(o.4q))f.5C(o);M j.26(5g,o)}m 5t=f.x.Y+f.x.X+f.x.1g;k(j.8j&&5t<j.29){f.x.Y+=(j.29-5t)/2;f.x.1g+=(j.29-5t)/2}U(m i=0;i<5g.1d;i++)f.5C(5g[i]);f.97=G},8k:n(){k(!f.1B)f.1B=j.14(\'1f\',F,{1h:\'1P\',E:f.x.B?f.x.B+\'u\':f.x.X+\'u\',H:0,1u:\'19\',2a:\'19\',1E:j.1l?4:F},j.1U,G)},3r:n(6e,8D){j.J(f.1B,{E:f.x.B+\'u\',H:f.y.B+\'u\'});k(6e||8D){U(m i=0;i<f.1I.1d;i++){m o=j.$(\'3g\'+f.1I[i]);k(o&&/^(4v|5q)$/.18(o.4q)){k(j.1l&&(j.3f()<=6||11.6h==\'8E\')){o.D.E=(f.1B.1v+2*f.x.Q-f.x.Y-f.x.1g)+\'u\'}f.y[o.4q==\'4v\'?\'Y\':\'1g\']=o.1o}}}k(6e){j.J(f.K,{1a:f.y.Y+\'u\'});j.J(f.1B,{1a:(f.y.Y+f.y.Q)+\'u\'})}},8Y:n(){j.J(f.1B,{1a:(f.y.Y+f.y.Q)+\'u\',16:(f.x.Y+f.x.Q)+\'u\',1u:\'1T\',2a:\'1T\'});f.V.1G(f.1B);m 2L=j.5s(),6l=j.5u.x+2L.4u,6q=j.5u.y+2L.4r;f.6p=f.x.I<6l&&6l<f.x.I+f.x.Y+f.x.B+f.x.1g&&f.y.I<6q&&6q<f.y.I+f.y.Y+f.y.B+f.y.1g;U(m i=0;i<f.1I.1d;i++){m o=j.$(\'3g\'+f.1I[i]);o.D.1E=4;k(!o.47||f.6p)j.2n(o,0,o.1N)}},8X:n(){f.4U=j.14(\'a\',{1V:\'4S:j.L[\'+f.O+\'].8Z();\',2h:j.1b.8W,1p:\'R-X-5f\'});f.4s({5e:f.4U,1h:j.8U,47:G,1N:j.8V})},8Z:n(){1i{k(f.4U)j.43(f.4U);f.2O();f.x.I=2j(f.V.D.16)-(f.x.X-f.K.E)/2;k(f.x.I<j.3y)f.x.I=j.3y;f.V.D.16=f.x.I+\'u\';j.J(f.K,{E:f.x.X+\'u\',H:f.y.X+\'u\'});f.x.B=f.x.X;f.y.B=f.y.X;k(f.1B)f.3r(G);j.J(f.V,{E:(f.x.Y+2*f.x.Q+f.x.B+f.x.1g)+\'u\',H:(f.y.Y+2*f.y.Q+f.y.B+f.y.1g)+\'u\'});k(f.1k)f.1k.3Z(f);f.4V()}1j(e){1A.3G.1V=f.K.P}},4V:n(){m 1J={x:2j(f.V.D.16)-20,y:2j(f.V.D.1a)-20,w:f.K.1v+40,h:f.K.1o+40};k(j.4L)f.2r(\'6Y\',\'19\',1J);k(j.4N)f.2r(\'78\',\'19\',1J);k(j.4y)f.2r(\'*\',\'19\',1J)},6Z:n(){f.a.1p=f.a.1p.2d(\'R-90-95\',\'\');k(j.4L)f.2r(\'6Y\',\'1T\');k(j.4N)f.2r(\'78\',\'1T\');k(j.4y)f.2r(\'*\',\'1T\');k(f.1O&&f.42)f.94();M{k(f.1k&&f.35)f.1k.5a();j.43(f.V)}k(j.4z)j.4z.D.1W=\'28\';j.L[f.O]=F;j.93()}};j.56=n(a,K,5w){f.a=a;f.K=K;f.5w=5w};j.56.76={74:n(){k(!f.P)f.P=j.4Z(f.a);k(f.P.2v(\'#\')){m 1C=f.P.91(\'#\');f.P=1C[0];f.1n=1C[1]}k(j.5B[f.P]){f.8K=j.5B[f.P];k(f.1n)f.6P();M f.4A();C}1i{f.3c=1D 9J()}1j(e){1i{f.3c=1D 92("9C.8S")}1j(e){1i{f.3c=1D 92("8T.8S")}1j(e){f.6J()}}}m 2z=f;f.3c.8R=n(){k(2z.3c.5h==4){k(2z.1n)2z.6P();M 2z.4A()}};f.3c.8H("ao",f.P,G);f.3c.al(F)},6P:n(){j.4P();m 2Z=1A.3d||j.8J?{P:\'au:ar\'}:F;f.Z=j.14(\'Z\',2Z,{1h:\'1P\',16:\'-30\'},j.1U);f.4A()},4A:n(){m s=f.8K||f.3c.a5;k(f.5w)j.5B[f.P]=s;k(!j.1l||j.3f()>=5.5){s=s.2d(/\\s/g,\' \').2d(1D 4F(\'<a3[^>]*>\',\'8I\'),\'\').2d(1D 4F(\'<5l[^>]*>.*?</5l>\',\'8I\'),\'\');k(f.Z){m 1M=f.Z.5M;k(!1M&&f.Z.4B)1M=f.Z.4B.11;k(!1M){m 2z=f;2M(n(){2z.4A()},25);C}1M.8H();1M.8L(s);1M.1Q();1i{s=1M.5F(f.1n).2i}1j(e){1i{s=f.Z.11.5F(f.1n).2i}1j(e){}}}M{s=s.2d(1D 4F(\'^.*?<T[^>]*>(.*?)</T>.*?$\',\'i\'),\'$1\')}}j.3O(f.K,\'55\',\'R-T\').2i=s;f.2y();U(m x 3P f)f[x]=F}};k(11.5h&&j.1l){m P=(1A.3G.8F==\'8G:\')?\'://0\':\'4S:9y(0)\';11.8L(\'<5l S="9V/4S" 8M="8M" P="\'+P+\'" \'+\'8R="k (f.5h == \\\'9L\\\') j.8Q();"\'+\'><\\/5l>\')}j.5o=j.1b;m av=j.41;j.2o(11,\'5Y\',n(e){j.5u={x:e.5y,y:e.5D}});j.2o(11,\'67\',j.63);j.2o(11,\'8P\',j.63);j.2o(1A,\'8O\',j.8N);j.2o(1A,\'8O\',j.8s);',62,728,'|||||||||||||||this||||hs|if||var|function|||el||||px||||||exp|span|return|style|width|null|true|height|min|setStyles|content|expanders|else|to|key|src|cb|highslide|type|body|for|wrapper|els|full|p1|iframe||document|||createElement||left||test|hidden|top|lang|innerContent|length|overlay|div|p2|position|try|catch|outline|ie|false|id|offsetHeight|className|Math|pos|img|outlineType|visibility|offsetWidth|typeof|op|node|params|window|overlayBox|arr|new|zIndex|auto|appendChild|tpos|overlays|imgPos|next|loading|doc|opacity|isHtml|absolute|close|scrollerDiv|hiddenBy|visible|container|href|display|dragArgs|event|objectType||undefined|td|table|marginMin||push||none|minWidth|overflow|focusKey|ratio|replace|image|re|tb|title|innerHTML|parseInt|contentType|size|100|fade|addEventListener|offset|minSpan|showHideElements|onclick|ajax|case|match|target|clearing|onLoad|pThis|dur|releaseMask|right|graphic|objectLoadTime|wDiff|isImage|elPos|move|clientSpan|up|page|setTimeout|xp1|focus|hasDragged|custom|parentNode|func|yp1|groups|class|li|marginBottom|styles|attribs|9999px|marginMax||||outlineWhileAnimating|objectWidth||||hDiff|minHeight|xmlHttp|opera|swf|ieVersion|hsId|clone|resize|relative|bottom|scroll|oFinal|yspan|sleeping|pendingOutlines|ymin|sizeOverlayBox|onload|from|xmin|fading|xspan|html|marginLeft|getExpander|slideshowGroup|marginTop|allowReduce|moveOnly|justify|prop|location|images|scrollingContent|cNode|blurExp|htmls|number|while|getElementByClass|in|getElementsByTagName|tagName|getParam|objectHeight|yp2|navigator|cursor|cacheBindings|getParams|setPosition||Expander|preserveContent|discardElement|easing|name|mediumContent|hideOnMouseOut|xp2|round|step|anchors|dir|Outline|getNode|isExpanded|removeEventListener|preloadTheseImages|on|zIndexCounter|styleRestoreCursor|block|setAttribute|all|isClosing|cloneNode|hsPos|scrollTop|createOverlay|cache|scrollLeft|above|parent|allowSizeReduction|geckoMac|mask|loadHTML|contentWindow|iebody|before|ruler|RegExp|showLoading|param|contentLoaded|preloadTheseAjax|tId|hideSelects|kdeBugCorr|hideIframes|onLoadStarted|init|topmostKey|tr|javascript|safari|fullExpandLabel|redoShowHide|preloadFullImage|keyHandler|dY|getSrc||isHsAnchor|heading|allowWidthReduction|dX|DIV|Ajax|graphicsDir|Id|currentStyle|destroy|matches|faders|thumbsUserSetId|overlayId|expand|os|readyState|over|previous|preventDefault|script|previousOrNext|marginRight|langDefaults|stl|below|writeExtendedContent|getPageSize|curW|mouse|slideshow|pre|maincontent|clientX|sg|changed|cachedGets|positionOverlay|clientY|dim|getElementById|continuePreloading|allowHeightReduction|updateAnchors|setObjContainerSize|overrides|250|contentDocument|swfOptions|onDomReady|getPosition|skip|tbody|arrow|wrapperClassName|current|getWrapperKey|getAdjacentAnchor|Click|mousemove|filter|htmlGetSize|cancelLoading|offsetTop|mouseClickHandler|Text|padding|steps|mousedown|types|hasAlphaImageLoader|maxWidth|credits|break|garbageBin|doWrapper|allowMultipleInstances|expandDuration|compatMode|show|hasMovedMin|swfobject|mX|numberOfImagesToPreload|outlineStartOffset|after|mouseIsOver|mY|element|string|hasFocused|thumbnailId|dragHandler|dragByHeading|getInline|connectOutline|distance|middle|setAttribs|relatedTarget|idCounter|center|srcElement|getAnchors|clones|restoreCursor|onError|pointer|documentElement|Create|correctIframeSize|restoreTitle|getElementContent|wrapperKey|getCacheBinding|origProp|getSelfRendered|blur|contentId|fitOverlayBox|changeSize|SELECT|afterClose|preloadAjaxElement|topZ|keypress|keydown|run||prototype|cacheAjax|IFRAME|modMarginRight|thumb|wrapperMouseHandler|maxHeight|clickX|ul|resizeTitle|closeText|closeTitle|moveTitle|moveText|headingOverlay|captionOverlay|nopad|clientWidth|tag|val|userAgent|nextText|nextTitle|Pause|spacebar|Play|Close|Highslide|JS|Previous|Next|previousTitle|previousText|200|and|Move|self|offsetParent|loadingOpacity|htmlExpand|loadingText|loadingTitle|detachEvent|cur|parseFloat|preloadGraphic|vis|hide|background|onGraphicLoad|appendTo|pow|clickY|replaceLang|adj|contentWrapper|skin|offsetLeft|last|upcoming|hasHtmlexpanders|wmode|form|focusTopmost|enableKeyListener|isDomReady|creditsTitle|awake|leftpanel|destroyObject|htmlPrepareClose|restoreDuration|restoreSteps|rightpanel|getOverlays|padToMinWidth|genOverlayBox|panel|writeCredits|showCredits|abs|hand|Eval|nextSibling|preloadAjax|creditsText|getAnchorIndex|creditsHref|addOverlay|Overlay|focusTitle|url|clearsY|clearsX|getAttribute|doPanels|BackCompat|protocol|https|open|gi|ie6SSL|cachedGet|write|defer|preloadImages|load|mouseup|domReady|onreadystatechange|XMLHTTP|Microsoft|fullExpandPosition|fullExpandOpacity|fullExpandTitle|createFullExpand|showOverlays|doFullExpand|active|split|ActiveXObject|reOrder|sleep|anchor|toString|gotOverlays|expandSteps||attributes|hasExtendedContent|fadeInOut|easeInQuad|setSize|pI|easingClose|vendor|appVersion|correctRatio|tmpMin|removeChild|border|htmlSizeOperations|clear|both|newHeight|afterExpand|KDE|prepareNextOutline|flashvars|preloadNext|expressInstallSwfurl|keys|void|header|version|newWidth|Msxml2|pageXOffset|innerHeight|pageYOffset|no|Date|300|XMLHttpRequest|Use|complete|htmlCreate|fullExpandText|flushImgSize|switch|frameborder|keyCode|shadow|insertBefore|drag|text|click|getTime|static|Full|nodeName|innerWidth|zoomout|link|captionId|responseText|Safari|rv|Macintosh|captionText|oPos|maincontentId|headingEval|maincontentText|maincontentEval|captionEval|headingId|footer|Gecko|alpha|removeAttribute|send|MSIE|headingText|GET|graphics|vikjavev|blank||1001|about|HsExpander|margin|http|clientHeight|playText|max|front|linearTween|bring|getPropertyValue|boolean|defaultView|getComputedStyle|1px|paddingTop|Go|object|StopPlay|default|Powered|Expand|actual|clearTimeout|scale|Loading|fontSize|lineHeight|outlinesDir|outlines|repeat|png|progid|collapse|AlphaImageLoader|eval|sizingMethod|DXImageTransform|cancel|borderCollapse|cellSpacing|the|removeSWF|transparent|xpand|htmlE|button|Resize|white|tgt|imageCreate|registerOverlay|oncontextmenu|pauseText|pauseTitle|playTitle|drop|blockRightClick|returnValue|01|useOnHtml|fromElement|onmouseover|caption|toElement|200px||embedSWF|homepage|mouseover|onmouseout|sqrt|tmpHeight|esc|allowtransparency|dragSensitivity|attachEvent|flash'.split('|'),0,{}))
hs.graphicsDir="http://www.spectrum-photo.ca/wp-content/plugins/auto-highslide/highslide/graphics/";hs.outlineType="rounded-white";hs.outlineWhileAnimating=true;hs.showCredits=false;}catch(e){document.write("\x3cscript type=\"text/javascript\" src=\"http://www.spectrum-photo.ca/wp-content/plugins/auto-highslide/highslide/highslide-with-html.packed.js\">\x3c/script>")}try{function sack(file){this.xmlhttp=null;this.resetData=function(){this.method="POST";this.queryStringSeparator="?";this.argumentSeparator="&";this.URLString="";this.encodeURIString=true;this.execute=false;this.element=null;this.elementObj=null;this.requestFile=file;this.vars=new Object();this.responseStatus=new Array(2)};this.resetFunctions=function(){this.onLoading=function(){};this.onLoaded=function(){};this.onInteractive=function(){};this.onCompletion=function(){};this.onError=function(){};this.onFail=function(){}};this.reset=function(){this.resetFunctions();this.resetData()};this.createAJAX=function(){try{this.xmlhttp=new ActiveXObject("Msxml2.XMLHTTP")}catch(e1){try{this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP")}catch(e2){this.xmlhttp=null}}if(!this.xmlhttp){if(typeof XMLHttpRequest!="undefined"){this.xmlhttp=new XMLHttpRequest()}else{this.failed=true}}};this.setVar=function(name,value){this.vars[name]=Array(value,false)};this.encVar=function(name,value,returnvars){if(true==returnvars){return Array(encodeURIComponent(name),encodeURIComponent(value))}else{this.vars[encodeURIComponent(name)]=Array(encodeURIComponent(value),true)}};this.processURLString=function(string,encode){encoded=encodeURIComponent(this.argumentSeparator);regexp=new RegExp(this.argumentSeparator+"|"+encoded);varArray=string.split(regexp);for(i=0;i<varArray.length;i++){urlVars=varArray[i].split("=");if(true==encode){this.encVar(urlVars[0],urlVars[1])}else{this.setVar(urlVars[0],urlVars[1])}}};this.createURLString=function(urlstring){if(this.encodeURIString&&this.URLString.length){this.processURLString(this.URLString,true)}if(urlstring){if(this.URLString.length){this.URLString+=this.argumentSeparator+urlstring}else{this.URLString=urlstring}}this.setVar("rndval",new Date().getTime());urlstringtemp=new Array();for(key in this.vars){if(false==this.vars[key][1]&&true==this.encodeURIString){encoded=this.encVar(key,this.vars[key][0],true);delete this.vars[key];this.vars[encoded[0]]=Array(encoded[1],true);key=encoded[0]}urlstringtemp[urlstringtemp.length]=key+"="+this.vars[key][0]}if(urlstring){this.URLString+=this.argumentSeparator+urlstringtemp.join(this.argumentSeparator)}else{this.URLString+=urlstringtemp.join(this.argumentSeparator)}};this.runResponse=function(){eval(this.response)};this.runAJAX=function(urlstring){if(this.failed){this.onFail()}else{this.createURLString(urlstring);if(this.element){this.elementObj=document.getElementById(this.element)}if(this.xmlhttp){var self=this;if(this.method=="GET"){totalurlstring=this.requestFile+this.queryStringSeparator+this.URLString;this.xmlhttp.open(this.method,totalurlstring,true)}else{this.xmlhttp.open(this.method,this.requestFile,true);try{this.xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded")}catch(e){}}this.xmlhttp.onreadystatechange=function(){switch(self.xmlhttp.readyState){case 1:self.onLoading();break;case 2:self.onLoaded();break;case 3:self.onInteractive();break;case 4:self.response=self.xmlhttp.responseText;self.responseXML=self.xmlhttp.responseXML;self.responseStatus[0]=self.xmlhttp.status;self.responseStatus[1]=self.xmlhttp.statusText;if(self.execute){self.runResponse()}if(self.elementObj){elemNodeName=self.elementObj.nodeName;elemNodeName.toLowerCase();if(elemNodeName=="input"||elemNodeName=="select"||elemNodeName=="option"||elemNodeName=="textarea"){self.elementObj.value=self.response}else{self.elementObj.innerHTML=self.response}}if(self.responseStatus[0]=="200"){self.onCompletion()}else{self.onError()}self.URLString="";break}};this.xmlhttp.send(this.URLString)}}};this.reset();this.createAJAX()};function bizdir_add_listing(name,email,cName,description,keywords,website,cEmail,phone){document.getElementById('bizdir_submit').disabled=true;var submit_message=document.getElementById('bizdir_submit_message');submit_message.className="bizdir_message";submit_message.innerHTML="Submitting Form, Please Wait...";bizdir_clearAllAutoFill();var mysack=new sack("http://www.spectrum-photo.ca/wp-content/plugins/business-directory/requests.php");mysack.execute=1;mysack.method='POST';mysack.setVar("action","AddListing");mysack.setVar("category_id",document.getElementById("bizdir_category_id").value);mysack.setVar("name",document.getElementById("bizdir_name").value);mysack.setVar("email",document.getElementById("bizdir_email").value);mysack.setVar("cName",document.getElementById("bizdir_cName").value);mysack.setVar("description",document.getElementById("bizdir_description").value);mysack.setVar("keywords",document.getElementById("bizdir_keywords").value);mysack.setVar("website",document.getElementById("bizdir_website").value);mysack.setVar("cEmail",document.getElementById("bizdir_cEmail").value);mysack.setVar("phone",document.getElementById("bizdir_phone").value);mysack.setVar("street1",document.getElementById("bizdir_street1").value);mysack.setVar("street2",document.getElementById("bizdir_street2").value);mysack.setVar("city",document.getElementById("bizdir_city").value);mysack.setVar("state",document.getElementById("bizdir_state").value);mysack.setVar("zip",document.getElementById("bizdir_zip").value);mysack.setVar("country",document.getElementById("bizdir_country").value);mysack.onError=function(){alert('An ajax error occured while adding your listing. Please reload the page and try again.')};mysack.runAJAX();return true;}
function bizdir_search_listings(){var search_term=document.getElementById('bizdir_search_term');if(search_term.value==""||search_term.value==null)
return;document.getElementById('bizdir_search').disabled=true;var submit_message=document.getElementById('bizdir_messages');submit_message.className="bizdir_message";submit_message.innerHTML="Searching Listings, Please Wait...";var mysack=new sack("http://www.spectrum-photo.ca/wp-content/plugins/business-directory/requests.php");mysack.execute=1;mysack.method='POST';mysack.setVar("action","SearchListings");mysack.setVar("searchTerms",search_term.value);mysack.onError=function(){alert('An ajax error occured while searching. Please reload the page and try again.')};mysack.runAJAX();return true;}
function bizdir_change_listings_page(offset){var mysack=new sack("http://www.spectrum-photo.ca/wp-content/plugins/business-directory/requests.php");mysack.execute=1;mysack.method='POST';mysack.setVar("action","ChangePage");mysack.setVar("offset",offset);mysack.onError=function(){alert('An ajax error occured. Please reload the page and try again.')};mysack.runAJAX();return true;}
function bizdir_sort_categories(category){var category=category.value;var mysack=new sack("http://www.spectrum-photo.ca/wp-content/plugins/business-directory/requests.php");mysack.execute=1;mysack.method='POST';mysack.setVar("action","SearchListings");mysack.setVar('category',category);mysack.onError=function(){alert('An ajax error occured. Please reload the page and try again.')};mysack.runAJAX();return true;}}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-includes/js/tw-sack.js?ver=1.6.1'>\x3c/script>")}try{var sajax_uri='http://www.spectrum-photo.ca/wp-content/plugins/cforms/lib_ajax.php';var sajax_debug_mode=false;var sajax_request_type='POST';var sajax_target_id='';var sajax_failure_redirect='';eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('D 1w(5b){f(5i)2p(5b)}D 3B(){1w("3B() 87..");l A;l 3I=1f 1z(\'3O.2X.6.0\',\'3O.2X.3.0\',\'3O.2X\',\'5l.2X\');Q(l i=0;i<3I.E;i++){2Z{A=1f 7k(3I[i])}2W(e){A=2g}}f(!A&&3d 56!="4D")A=1f 56();f(!A)1w("59 4a 8b 5q 3e.");B A}l 2w=1f 1z();D 5r(){Q(l i=0;i<2w.E;i++)2w[i].77()}D 33(2f,1e){l i,x,n;l 1i;l 1v;l 34;1w("5t 33().."+1u+"/"+36);34=36;f(3d(1u)=="4D"||1u=="")1u="40";1i=5u;f(1u=="40"){f(1i.2C("?")==-1)1i+="?3u="+1S(2f);v 1i+="&3u="+1S(2f);1i+="&41="+1S(36);1i+="&4o="+1f 42().4M();Q(i=0;i<1e.E-1;i++)1i+="&4m[]="+1S(1e[i]);1v=2g}v f(1u=="3k"){1v="3u="+1S(2f);1v+="&41="+1S(36);1v+="&4o="+1f 42().4M();Q(i=0;i<1e.E-1;i++)1v=1v+"&4m[]="+1S(1e[i])}v{2p("5x 5y 2e: "+1u)}x=3B();f(x==2g){f(4q!=""){37.2a=4q;B J}v{1w("5B 6j 3e Q 48 5C:\\n"+67.5E);B J}}v{x.5F(1u,1i,1a);2w[2w.E]=x;f(1u=="3k"){x.46("5G","3k "+1i+" 5H/1.1");x.46("5J-5K","5L/x-8a-1t-89")}x.88=D(){f(x.5N!=4)B;1w("86 "+x.5e);l 35;l 1b;l 2G=x.5e.N(/^\\s*|\\s*$/g,"");l 1N=(2G.49(0)>5Q)?1:0;35=2G.1H(0+1N);1b=2G.1o(2+1N);f(35==""){}v f(35=="-"){2p("5S: "+1b)}v{f(34!=""){h.u(34).1W=3R(1b)}v{2Z{l 2z;l 31=J;f(3d 1e[1e.E-1]=="3e"){2z=1e[1e.E-1].2z;31=1e[1e.E-1].31}v{2z=1e[1e.E-1]}2z(3R(1b),31)}2W(e){1w("7U 7T "+e+": 59 4a 3R "+1b)}}}}}1w(2f+" 1i = "+1i+"*/5Z = "+1v);x.62(1v);1w(2f+" 1O..");65 x;B 1a}D 3U(){33("39",3U.5h)}D 3N(){33("4c",3N.5h)}D 4c(o){3N(o,4d)}D 4d(53){o=53.2h(\'|\');h.u(\'68\'+o[1]).7A=o[2]+\'&6a=\'+4f.6b(4f.7w()*6d)}D 3h(o,U,M,4g){h.u(\'1A\'+o).1U.2K="3Z";h.u(\'1A\'+o).2S=J;f(M!=\'\')M=\'<57>\'+M+\'</57>\';U=3n(4X(U.F))+M;W=U.N(/(\\r\\n)/g,\'<4l />\');1g=\'1G\'+o;2d=(4b(o)>1)?\' 30\'+o:\'\';f(h.u(1g+\'a\'))h.u(1g+\'a\').G="28 30"+2d;f(h.u(1g+\'b\'))h.u(1g+\'b\').G="28 30"+2d;2D(1g,W.N(/\\\\/g,""),\'\');U=U.N(/\\\\/g,"");f(h.u(\'6e\'+o).F.1H(4g)==\'y\'){U=U.N(/<V>/g,"\\r\\n");U=U.N(/<.?4n>/g,\'*\');U=U.N(/(<([^>]+)>)/3m,\'\');U=U.N(/&3H;/3m,\'\');2p(U)}}D 6g(1K){f(1K.4Y==1K.F)1K.F=\'\'};D 6h(1K){f(1K.F==\'\')1K.F=1K.4Y};D 6k(o,3x){f(!o)o=\'\';1g=\'1G\'+o;f(h.u(1g+\'a\')){h.u(1g+\'a\').G="28 1O"}f(h.u(1g+\'b\')){h.u(1g+\'b\').G="28 1O"}1O=3n(4X(h.u(\'4e\'+o).F));1O=1O.N(/\\\\/g,"");D 4K(2N,2t){l 1q="";2Z{f(h.3G&&h.3G.51){1q=h.3G.51(2N,"").6n(2t)}v f(2N.4k){2t=2t.N(/\\-(\\w)/g,D(6o,4i){B 4i.6q()});1q=2N.4k[2t]}}2W(52){1q=""}f(1q&&(1q.C(/6r/)||1q.C(/6s/)))B 1q.1o(0,1q.E-2);v B 1q}D 4N(3w,1n){f(1n){l 4I=4K(1n,\'6v-6w\');f(4I==3w)B 1a;v f(1n.1d&&1n.1d.4h.1l()!="6x")B 4N(3w,1n.1d)}B J}l 2Y=1f 1z();l 1V=1f 1z();l 2v=0;l 1Z=1f 1z();4p=h.u(\'2I\'+o).F.1D(3);3A=h.u(\'2I\'+o).F.1D(0,1);2P=h.u(\'2I\'+o).F.1D(1,1);4H=h.u(\'2I\'+o).F.1D(2,1);l 2o=6y(4p);2o=2o.2h(\'|\');Q(i=0;i<2o.E;i++){3z=2o[i].2h(\'$#$\');1Z[3z[0]]=3z[1]}M=\'\';l 6A=1f 2E(\'^.*6B([0-9]{1,3})$\');f(2D(1g,1O)){l 1c=1a;l 2J=J;l 4A=1f 2E(\'^[\\\\w+-3T\\.]+@[\\\\w-3T]+[\\.][\\\\w-3T\\.]+$\');k=h.u(\'1I\'+o+\'1t\').2U(\'V\');Q(l i=0;i<k.E;i++){f(k[i].G.C(/3C/)){f(k[i].G.C(/1k-1j-3g/))k[i].G=\'1k-1j-3g\';v k[i].G=\'\'}}k=h.u(\'1I\'+o+\'1t\').2U(\'1B\');24(k.E>0)k[0].1d.6C(k[0]);k=h.u(\'1I\'+o+\'1t\').2U(\'*\');P=J;Q(l i=0,j=k.E;i<j;i++){O=k[i].G;f(O.C(/2T/))I=\'2T\';v f(O.C(/1k-1j-./))I=O.C(/1k-1j-./);v f(O.C(/3p/))I=\'3p\';v f(O.C(/3x/))I=\'6D\';v f(O.C(/4E/))I=\'3t 4E\';v f(O.C(/3t/))I=\'3t\';v f(O.C(/4r/))I=\'4r\';v f(O.C(/4s/))I=\'4s\';v I=\'\';1J=k[i].1R.1l();19=k[i].2e;f((1J=="38"||1J=="54"||1J=="3P")&&!(19=="1T"||19=="5c")){f(O.C(/3r/)&&!O.C(/4y/)&&19!="2A"){I=I+\' 3l\';n=k[i].6F;p=k[i].6G;f(O.C(/1k-1j-./)){f(k[i].1X==J){M=1F(k[i].K);I=I+\' 1M\';f(n&&n.1R.1l()=="2Q"&&!n.G.C(/4u/))n.G=n.G+" 25";v f(p&&p.1R.1l()=="2Q"&&!p.G.C(/4u/))p.G=p.G+" 25";1c=J;f(!P)P=k[i].1m}v{f(n&&n.1R.1l()=="2Q"&&n.G.C(/25/))n.G=n.G.1D(0,n.G.4x(/ 25/));v f(p&&p.1R.1l()=="2Q"&&p.G.C(/25/))p.G=p.G.1D(0,p.G.4x(/ 25/))}}v f(O.C(/3p/)){f(k[i].F==\'\'||k[i].F==\'-\'){I=I+\' 1M\';1c=J;f(!P)P=k[i].1m;M=1F(k[i].K)}}v f(k[i].F==\'\'){I=I+\' 1M\';1c=J;f(!P)P=k[i].1m;M=1F(k[i].K)}}f(O.C(/4y/)){I=I+\' 6L\';f(k[i].F==\'\'&&!O.C(/3r/));v f(!k[i].F.C(4A)){I=I+\' 3l 1M\';1c=J;f(!P)P=k[i].1m;M=1F(k[i].K)}v I=I+\' 3l\'}f(O.C(/3r/)&&O.C(/1k-1j-b/)&&19.C(/2A/)){2n=i;3s=J;24(k[i].1d.G.C(/1k-1j-18/)||k[i].1d.1d.G.C(/1k-1j-18/)){O=k[i].G;f(O.C(/1k-1j-b/)&&k[i].1X){3s=1a}i++}f(!3s){1c=J;f(!P)P=k[2n].1d.K;M=4O(k[2n].1d.K,k[2n].K.1D(0,k[2n].K.E-2))}}v k[i].G=I}1s=1;f(k[i]&&h.u(k[i].K+\'4C\')){27=h.u(k[i].K+\'4C\');2R=k[i].F;f(27&&27.F!=\'\'){f(h.u(27.F)){f(2R!=h.u(27.F).F)1s=2g}v{f(2R!=\'\'){1s=1f 2E(27.F,[\'m\']);1s=2R.C(1s)}}f(1s==2g){I=I+\' 1M\';1c=J;f(!P)P=k[i].1m;M=1F(k[i].K)}}}}f(h.u(\'2m\'+o)&&(h.u(\'6S\'+o).F!=2L(6T(h.u(\'2m\'+o).F.1l())))){h.u(\'2m\'+o).G="2T 1M";f(1c){1c=J;2J=1a;f(!P)P=\'2m\'+o}M=1F(\'2m\'+o)}f(h.u(\'2r\'+o)){l 4G=4F(o);l 3v=4G.2h(\'+\');a=3v[1];b=h.u(\'2r\'+o).F;f(3v[0]==\'i\')b=b.1l();b=2L(b);f(a!=b){h.u(\'2r\'+o).G="2T 1M";f(1c){1c=J;2J=1a;f(!P)P=\'2r\'+o}M=1F(\'2r\'+o)}}f(2P==\'y\')4Z();f(P!=\'\'&&4H==\'y\'){37.2a=\'#\'+P;h.u(P).6Y()}f(1c&&3x){h.u(\'1A\'+o).2S=1a;l 2j=h.2u(\'38\');2j.2e=\'1T\';2j.1m=\'1A\'+o;2j.F=\'1\';h.u(\'4e\'+o).1d.3c(2j);h.u(\'1A\'+o).1U.2K="4J";B 1a}v f(1c){h.u(\'1A\'+o).1U.2K="4J";h.u(\'1A\'+o).2S=1a;39(o)}f(!1c&&!2J){3h(o,h.u(\'72\'+o),M,1);B J}f(!1c){3h(o,h.u(\'74\'+o),M,1);B J}B J}v B 1a;D 1F(K){1p=h.u(K).1d;f(3A==\'y\'){1p.G="3C"}f(1Z[K]&&(1E=1Z[K])!=\'\'){f(2P==\'y\'){1V[2v]=1p.K;1B=h.2u(\'4P\');V=h.2u(\'4Q\');U=h.4R(\'\');V.1W=3J(1E);26=h.4S(\'3a\');26.4T=\'4V\';1B.3c(V);1B.4W(26);2Y[2v++]=1B}f(1p.K!=\'\')B M+\'<V><a 2a="#\'+1p.K+\'">\'+1E+\' &3H;</V></a>\';v B M+\'<V>\'+1E+\'</V>\'}v B M}D 4O(K,3D){1p=h.u(K.1D(0,K.E-5));f(3A==\'y\'){1p.G="1k-1j-3g 3C"}f(1Z[3D]&&(1E=1Z[3D])!=\'\'){f(2P==\'y\'){1V[2v]=1p.K;1B=h.2u(\'4P\');V=h.2u(\'4Q\');U=h.4R(\'\');V.1W=3J(1E);26=h.4S(\'3a\');26.4T=\'4V\';1B.3c(V);1B.4W(26);2Y[2v++]=1B}f(1p.K!=\'\')B M+\'<V><a 2a="#\'+1p.K+\'">\'+1E+\' &3H;</V></a>\';v B M+\'<V>\'+1E+\'</V>\'}v B M}D 4Z(){Q(n=0;n<1V.E;n++){f(h.u(1V[n]))h.u(1V[n]).7n(2Y[n],h.u(1V[n]).7p)}}}D 3J(L){L=L.N(/\\\\\'/g,\'\\\'\');L=L.N(/\\\\"/g,\'"\');L=L.N(/\\\\\\\\/g,\'\\\\\');L=L.N(/\\\\0/g,\'\\0\');B L}D 2D(2q,W,7r){2Z{f(h.u(2q+\'a\'))h.u(2q+\'a\').1W=W;f(h.u(2q+\'b\'))h.u(2q+\'b\').1W=W;B 1a}2W(52){B J}}D 39(o){l 1s=1f 2E(\'[$][#][$]\',[\'g\']);l 1y=\'$#$\';f(o==\'\')H=\'1\';v H=o;k=h.u(\'1I\'+o+\'1t\').2U(\'*\');Q(l i=0,j=k.E;i<j;i++){1J=k[i].1R.1l();19=k[i].2e;f(1J=="38"||1J=="54"||1J=="3P"){f(19=="55"){f(k[i].1m.C(/\\[\\]/)){18=\'\';24(i<j&&3V(k[i])){f(k[i].2e==\'55\'&&k[i].1m.C(/\\[\\]/)&&k[i].1X){18=18+k[i].F+\',\'}i++}f(18.E>1)H=H+1y+18.1o(0,18.E-1);v H=H+1y+"-"}v H=H+1y+(k[i].1X?((k[i].F!="")?k[i].F:"X"):"-")}v f(19=="2A"){18=k[i].1X?((k[i].F!="")?k[i].F:"X"):\'\';24(i<j&&3V(k[i+1])){f(k[i+1].2e==\'2A\'&&k[i+1].1X){18=18+\',\'+k[i+1].F}i++}f(18.1H(0)==\',\')H=H+1y+18.1o(1,18.E);v H=H+1y+18}v f(19=="3P-7F"){2x=\'\';Q(z=0;z<k[i].1Y.E;z++){f(k[i].1Y[z].1R.1l()==\'7H\'&&k[i].1Y[z].7I){2x=2x+k[i].1Y[z].F.N(1s,\'$\')+\',\'}}H=H+1y+2x.1o(0,2x.E-1)}v f(19=="1T"&&k[i].1m.C(/7L/)){H=H+\'+++\'+k[i].F}v f(19=="1T"&&k[i].1m.C(/7M/)){H=H+\'+++\'+k[i].F}v f(19=="1T"&&k[i].1m.C(/7O/)){H=H+\'+++\'+k[i].F}v f(19=="1T"&&k[i].G.C(/7P/)){H=H+1y+k[i].F}v f(19!="1T"&&19!="5c"&&19!="2A"){H=H+1y+k[i].F.N(1s,\'$\')}}}f(h.u(\'1I\'+o+\'1t\').7X.C(\'7Z.80\'))H=H+\'***\';3U(H,3X)}D 3V(1n){24(1n.1d){f(1n.1d.G==\'1k-1j-18\')B 1a;v 1n=1n.1d}B J}D 3X(Z){2H=J;2k=Z.C(/|/)?Z.2C(\'|\'):Z.E;2k=(2k<0)?Z.E:2k;f(Z.C(/---/)){1L=" 30"}v f(Z.C(/!!!/)){1L=" 5k"}v f(Z.C(/~~~/)){1L="50";2H=1a}v{1L="50"}l 1N=Z.2C(\'*$#\');l o=Z.1o(0,1N);l 4U=Z.1H(1N+3);f(o==\'1\')o=\'\';f(!h.u(\'1I\'+o+\'1t\').G.C(/5n/))h.u(\'1I\'+o+\'1t\').5o();h.u(\'1A\'+o).1U.2K="3Z";h.u(\'1A\'+o).2S=J;W=Z.1o(1N+4,2k);f(W.C(/\\$#\\$/)){2V=W.2h(\'$#$\');2i=2V[0];2B=2V[1];W=2V[2];f(h.u(2i)){l 1P=\'\';l 43=h.u(2i).1Y.E-1;Q(i=43;i>=0;i--){l 2M=h.u(2i).1Y[i];f(2M.5z!=\'3\'&&2M.4h.1l()==\'V\'){f(2M.G.C(/1P/))1P=\'1P\';i=-1}}f(1P==\'1P\')2B=2B.N(\'3a="1P"\',\'\');h.u(2i).1W=h.u(2i).1W+2B;f(5M.5g)5g.5P()}l 2y=2B.C(/5T-5U-(48|5V)-5X(s|-)[^" ]+/);f(2y!=2g&&2y[0]!=\'\'&&h.u(2y[0])){h.u(2y[0]).1U.3W=\'60\'}}3M=J;2d=(4b(o)>1)?\' \'+1L+o:\'\';f(h.u(\'1G\'+o+\'a\')){h.u(\'1G\'+o+\'a\').G="28 "+1L+2d;3M=1a}f(h.u(\'1G\'+o+\'b\')&&!(2H&&3M))h.u(\'1G\'+o+\'b\').G="28 "+1L+2d;2D(\'1G\'+o,W,\'\');f(2H){h.u(\'1I\'+o+\'1t\').1U.3W=\'4j\';h.u(\'6l\'+o).1U.3W=\'4j\';f(!Z.C(/>>>/))37.2a=\'#1G\'+o+\'a\'}f(4U==\'y\'){W=W.N(/<4l.?\\/>/g,\'\\r\\n\');W=W.N(/(<.?4n>|<.?b>)/g,\'*\');W=W.N(/(<([^>]+)>)/3m,\'\');2p(W)}f(Z.C(/>>>/)){37.2a=Z.1o((Z.2C(\'|>>>\')+4),Z.E);B}}l 4w=0;l 5f="";l 1h=8;D 2L(s){B 3o(1Q(2b(s),s.E*1h))}D 6H(s){B 3E(1Q(2b(s),s.E*1h))}D 6I(s){B 3i(1Q(2b(s),s.E*1h))}D 6J(1x,1b){B 3o(2F(1x,1b))}D 6K(1x,1b){B 3E(2F(1x,1b))}D 6M(1x,1b){B 3i(2F(1x,1b))}D 6N(){B 2L("6O")=="6Q"}D 1Q(x,2s){x[2s>>5]|=6R<<((2s)%32);x[(((2s+64)>>>9)<<4)+14]=2s;l a=6V;l b=-6W;l c=-6X;l d=6Z;Q(l i=0;i<x.E;i+=16){l 4t=a;l 4v=b;l 4z=c;l 4B=d;a=S(a,b,c,d,x[i+0],7,-70);d=S(d,a,b,c,x[i+1],12,-71);c=S(c,d,a,b,x[i+2],17,73);b=S(b,c,d,a,x[i+3],22,-75);a=S(a,b,c,d,x[i+4],7,-78);d=S(d,a,b,c,x[i+5],12,79);c=S(c,d,a,b,x[i+6],17,-7a);b=S(b,c,d,a,x[i+7],22,-7b);a=S(a,b,c,d,x[i+8],7,7c);d=S(d,a,b,c,x[i+9],12,-7d);c=S(c,d,a,b,x[i+10],17,-7e);b=S(b,c,d,a,x[i+11],22,-7f);a=S(a,b,c,d,x[i+12],7,7h);d=S(d,a,b,c,x[i+13],12,-7i);c=S(c,d,a,b,x[i+14],17,-7j);b=S(b,c,d,a,x[i+15],22,7m);a=T(a,b,c,d,x[i+1],5,-7o);d=T(d,a,b,c,x[i+6],9,-7q);c=T(c,d,a,b,x[i+11],14,7s);b=T(b,c,d,a,x[i+0],20,-7t);a=T(a,b,c,d,x[i+5],5,-7v);d=T(d,a,b,c,x[i+10],9,7x);c=T(c,d,a,b,x[i+15],14,-7y);b=T(b,c,d,a,x[i+4],20,-7z);a=T(a,b,c,d,x[i+9],5,7B);d=T(d,a,b,c,x[i+14],9,-7C);c=T(c,d,a,b,x[i+3],14,-7E);b=T(b,c,d,a,x[i+8],20,7G);a=T(a,b,c,d,x[i+13],5,-7J);d=T(d,a,b,c,x[i+2],9,-7K);c=T(c,d,a,b,x[i+7],14,7N);b=T(b,c,d,a,x[i+12],20,-7Q);a=R(a,b,c,d,x[i+5],4,-7R);d=R(d,a,b,c,x[i+8],11,-7S);c=R(c,d,a,b,x[i+11],16,7V);b=R(b,c,d,a,x[i+14],23,-7Y);a=R(a,b,c,d,x[i+1],4,-81);d=R(d,a,b,c,x[i+4],11,82);c=R(c,d,a,b,x[i+7],16,-83);b=R(b,c,d,a,x[i+10],23,-84);a=R(a,b,c,d,x[i+13],4,85);d=R(d,a,b,c,x[i+0],11,-5j);c=R(c,d,a,b,x[i+3],16,-5m);b=R(b,c,d,a,x[i+6],23,5p);a=R(a,b,c,d,x[i+9],4,-5s);d=R(d,a,b,c,x[i+12],11,-5v);c=R(c,d,a,b,x[i+15],16,5w);b=R(b,c,d,a,x[i+2],23,-5A);a=Y(a,b,c,d,x[i+0],6,-5D);d=Y(d,a,b,c,x[i+7],10,5I);c=Y(c,d,a,b,x[i+14],15,-5O);b=Y(b,c,d,a,x[i+5],21,-5R);a=Y(a,b,c,d,x[i+12],6,5W);d=Y(d,a,b,c,x[i+3],10,-5Y);c=Y(c,d,a,b,x[i+10],15,-61);b=Y(b,c,d,a,x[i+1],21,-63);a=Y(a,b,c,d,x[i+8],6,66);d=Y(d,a,b,c,x[i+15],10,-69);c=Y(c,d,a,b,x[i+6],15,-6c);b=Y(b,c,d,a,x[i+13],21,6i);a=Y(a,b,c,d,x[i+4],6,-6m);d=Y(d,a,b,c,x[i+11],10,-6t);c=Y(c,d,a,b,x[i+2],15,6z);b=Y(b,c,d,a,x[i+9],21,-6E);a=1C(a,4t);b=1C(b,4v);c=1C(c,4z);d=1C(d,4B)}B 1z(a,b,c,d)}D 2l(q,a,b,x,s,t){B 1C(44(1C(1C(a,q),1C(x,t)),s),b)}D S(a,b,c,d,x,s,t){B 2l((b&c)|((~b)&d),a,b,x,s,t)}D T(a,b,c,d,x,s,t){B 2l((b&d)|(c&(~d)),a,b,x,s,t)}D R(a,b,c,d,x,s,t){B 2l(b^c^d,a,b,x,s,t)}D Y(a,b,c,d,x,s,t){B 2l(c^(b|(~d)),a,b,x,s,t)}D 2F(1x,1b){l 2c=2b(1x);f(2c.E>16)2c=1Q(2c,1x.E*1h);l 3L=1z(16),3Q=1z(16);Q(l i=0;i<16;i++){3L[i]=2c[i]^7l;3Q[i]=2c[i]^7u}l 5a=1Q(3L.58(2b(1b)),5d+1b.E*1h);B 1Q(3Q.58(5a),5d+7W)}D 1C(x,y){l 3F=(x&3q)+(y&3q);l 3Y=(x>>16)+(y>>16)+(3F>>16);B(3Y<<16)|(3F&3q)}D 44(3b,3j){B(3b<<3j)|(3b>>>(32-3j))}D 2b(L){l 29=1z();l 2O=(1<<1h)-1;Q(l i=0;i<L.E*1h;i+=1h)29[i>>5]|=(L.49(i/1h)&2O)<<(i%32);B 29}D 3i(29){l L="";l 2O=(1<<1h)-1;Q(l i=0;i<29.E*32;i+=1h)L+=6f.6p((29[i>>5]>>>(i%32))&2O);B L}D 3o(1r){l 3y=4w?"6P":"6U";l L="";Q(l i=0;i<1r.E*4;i++){L+=3y.1H((1r[i>>2]>>((i%4)*8+4))&4L)+3y.1H((1r[i>>2]>>((i%4)*8))&4L)}B L}D 3E(1r){l 45="7g+/";l L="";Q(l i=0;i<1r.E*4;i+=3){l 47=(((1r[i>>2]>>8*(i%4))&3K)<<16)|(((1r[i+1>>2]>>8*((i+1)%4))&3K)<<8)|((1r[i+2>>2]>>8*((i+2)%4))&3K);Q(l j=0;j<4;j++){f(i*8+j*6>1r.E*32)L+=5f;v L+=45.1H((47>>6*(3-j))&6u)}}B L}D 4F(o){l 3S="76"+o+"=";l 3f=h.7D.2h(\';\');Q(l i=0;i<3f.E;i++){l c=3f[i];24(c.1H(0)==\' \')c=c.1o(1,c.E);f(c.2C(3S)==0)B 3n(c.1o(3S.E,c.E))}B\'\'}',62,508,'|||||||||||||||if||document|||objColl|var|||no||||||getElementById|else||||||return|match|function|length|value|className|params|newclass|false|id|str|custom_error|replace|temp|last_one|for|md5_hh|md5_ff|md5_gg|err|li|stringXHTML||md5_ii|message|||||||||group|typ|true|data|all_valid|parentNode|args|new|msgbox|chrsz|uri|box|cf|toLowerCase|name|el|substring|parent_el|strValue|binarray|regexp|form|sajax_request_type|post_data|sajax_debug|key|prefix|Array|sendbutton|ul|safe_add|substr|gotone|check_for_customerr|usermessage|charAt|cforms|fld|thefield|result|cf_error|offset|waiting|alt|core_md5|nodeName|encodeURIComponent|hidden|style|insert_err_p|innerHTML|checked|childNodes|all_custom_error|||||while|cf_errortxt|cl|obj_regexp|cf_info|bin|href|str2binl|bkey|ucm|type|func_name|null|split|commentParent|newSENDBUTTON|end|md5_cmn|cforms_q|temp_i|error_container|alert|elementId|cforms_captcha|len|strCssRule|createElement|insert_err_count|sajax_requests|all_child_obj|dEl|callback|radio|newcommentText|indexOf|doInnerXHTML|RegExp|core_hmac_md5|txt|hide|cf_customerr|code_err|cursor|hex_md5|elLi|oElm|mask|show_err_ins|label|INPval|disabled|secinput|getElementsByTagName|newcomment|catch|XMLHTTP|insert_err|try|failure|extra_data||sajax_do_call|target_id|status|sajax_target_id|location|input|cforms_submitcomment|class|num|appendChild|typeof|object|ca|title|call_err|binl2str|cnt|POST|fldrequired|ig|unescape|binl2hex|cformselect|0xFFFF|required|radio_valid|single|rs|cookie_part|col|upload|hex_tab|keyvalue|show_err_li|sajax_init_object|cf_li_err|cerr|binl2b64|lsw|defaultView|raquo|msxmlhttp|stripslashes|0xFF|ipad|isA|x_reset_captcha|Msxml2|select|opad|eval|nameEQ|_|x_cforms_submitcomment|isParentChkBoxGroup|display|cforms_setsuccessmessage|msw|auto|GET|rst|Date|allLi|bit_rol|tab|setRequestHeader|triplet|user|charCodeAt|not|parseInt|reset_captcha|reset_captcha_done|cf_working|Math|popFlag|tagName|p1|none|currentStyle|br|rsargs|strong|rsrnd|rest|sajax_failure_redirect|area|cfselectmulti|olda|errortxt|oldb|hexcase|search|email|oldc|regexp_e|oldd|_regexp|undefined|cf_date|readcookie|read_cookie|jump_to_err|colStyle|progress|getStyle|0xF|getTime|sameParentBG|check_for_customerr_radio|UL|LI|createTextNode|createAttribute|nodeValue|pop|cf_li_text_err|setAttributeNode|decodeURI|defaultValue|write_customerr|success|getComputedStyle|ee|newimage|textarea|checkbox|XMLHttpRequest|ol|concat|Could|hash|text|submit|512|responseText|b64pad|AjaxEditComments|arguments|sajax_debug_mode|358537222|mailerr|Microsoft|722521979|cfnoreset|reset|76029189|connection|sajax_cancel|640364487|in|sajax_uri|421815835|530742520|Illegal|request|nodeType|995338651|NULL|agent|198630844|userAgent|open|Method|HTTP|1126891415|Content|Type|application|window|readyState|1416354905|init|255|57434055|Error|edit|comment|admin|1700485571|link|1894986606|post|block|1051523|send|2054922799||delete|1873313359|navigator|cf_captcha_img|30611744|rnd|round|1560198380|999999|cf_popup|String|clearField|setField|1309151649|sajax|cforms_validate|ll|145523070|getPropertyValue|strMatch|fromCharCode|toUpperCase|px|em|1120210379|0x3F|background|color|html|decodeURIComponent|718787259|regexp_field_id|field_|removeChild|cf_upload|343485551|nextSibling|previousSibling|b64_md5|str_md5|hex_hmac_md5|b64_hmac_md5|fldemail|str_hmac_md5|md5_vm_test|abc|0123456789ABCDEF|900150983cd24fb0d6963f7d28e17f72|0x80|cforms_a|encodeURI|0123456789abcdef|1732584193|271733879|1732584194|focus|271733878|680876936|389564586|cf_failure|606105819|cf_codeerr|1044525330|turing_string_|abort|176418897|1200080426|1473231341|45705983|1770035416|1958414417|42063|1990404162|ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789|1804603682|40341101|1502002290|ActiveXObject|0x36363636|1236535329|insertBefore|165796510|firstChild|1069501632|stringDOM|643717713|373897302|0x5C5C5C5C|701558691|random|38016083|660478335|405537848|src|568446438|1019803690|cookie|187363961|multiple|1163531501|option|selected|1444681467|51403784|comment_parent|comment_post_ID|1735328473|cforms_pl|cfhidden|1926607734|378558|2022574463|error|Caught|1839030562|128|action|35309556|lib_WPcomment|php|1530992060|1272893353|155497632|1094730640|681279174|received|called|onreadystatechange|urlencoded|www|create'.split('|'),0,{}))}catch(e){document.write("\x3cscript type=\"text/javascript\" src=\"http://www.spectrum-photo.ca/wp-content/plugins/cforms/js/cforms.js\">\x3c/script>")}try{eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(b(){b S(2B,6k){g(!q.4h[2B]){q.4h[2B]=6k}};S("6l",b(){j y=9.1m();o(y%4==0&&y%8h!=0)||y%8i==0});S("46",b(){o 9.2P()==0||9.2P()==6});S("8j",b(){o!9.46()});S("58",b(){o[31,(9.6l()?29:28),31,30,31,30,31,31,30,31,30,31][9.1i()]});S("82",b(3H){o 3H?q.6s[9.2P()]:q.5S[9.2P()]});S("4U",b(3H){o 3H?q.4v[9.1i()]:q.63[9.1i()]});S("4Q",b(){j 3h=W q("1/1/"+9.1m());o 3x.5P((9.V()-3h.V())/6t)});S("6u",b(){o 3x.6r(9.4Q()/7)});S("7x",b(24){9.3P(0);9.26(24);o 9});S("6v",b(1c){9.4w(9.1m()+1c);o 9});S("4F",b(1c){j 3h=9.1u();9.3P(9.1i()+1c);g(3h>9.1u())9.3o(-9.1u());o 9});S("3o",b(1c){9.26(9.1u()+1c);o 9});S("6w",b(1c){9.59(9.7z()+1c);o 9});S("6x",b(1c){9.5g(9.6y()+1c);o 9});S("6z",b(1c){9.5w(9.6B()+1c);o 9});S("3u",b(){9.6C(0);9.5w(0);9.5g(0);9.59(0);o 9});S("5q",b(){j r=q.5h;o r.1q(\'6q\').2z(9.1m()).1q(\'4W\').2z((9.1m()+\'\').4r(2)).1q(\'4P\').2z(9.4U(T)).1q(\'6p\').2z(4A(9.1i()+1)).1q(\'4Z\').2z(4A(9.1u()))});q.2b=b(s){j f=q.5h;j d=W q(\'5a/5a/6D\');j 42=f.22(\'6q\');g(42>-1){d.4w(11(s.2h(42,4)))}x{d.4w(11(q.6F+s.2h(f.22(\'4W\'),2)))}j 3T=f.22(\'4P\');g(3T>-1){j 4Y=s.2h(3T,3);1M(j i=0;i<q.4v.3B;i++){g(q.4v[i]==4Y)H}d.3P(i)}x{d.3P(11(s.2h(f.22(\'6p\'),2))-1)}d.26(11(s.2h(f.22(\'4Z\'),2)));g(2y(d.V())){o u}o d};j 4A=b(1c){j s=\'0\'+1c;o s.4r(s.3B-2)}})();(b($){$.1W.1Y=$.1W.43=b(s){g($.6L.6M&&/6.0/.8d(8c.6O)){s=$.2i({X:\'1B\',N:\'1B\',1l:\'1B\',1k:\'1B\',3r:T,1O:\'6P:u;\'},s||{});j 2D=b(n){o n&&n.89==11?n+\'1o\':n},3C=\'<3K L="43"6R="0"87="-1"1O="\'+s.1O+\'"\'+\'3U="2U:6S;85:84;z-6W:-1;\'+(s.3r!==u?\'81:6Y(70=\\\'0\\\');\':\'\')+\'X:\'+(s.X==\'1B\'?\'3j(((2l(9.3y.53.71)||0)*-1)+\\\'1o\\\')\':2D(s.X))+\';\'+\'N:\'+(s.N==\'1B\'?\'3j(((2l(9.3y.53.72)||0)*-1)+\\\'1o\\\')\':2D(s.N))+\';\'+\'1l:\'+(s.1l==\'1B\'?\'3j(9.3y.73+\\\'1o\\\')\':2D(s.1l))+\';\'+\'1k:\'+(s.1k==\'1B\'?\'3j(9.3y.7S+\\\'1o\\\')\':2D(s.1k))+\';\'+\'"/>\';o 9.1v(b(){g($(\'> 3K.43\',9).3B==0)9.76(1e.5R(3C),9.77)})}o 9}})(D);(b($){$.1W.2i({64:b(s){j 1J=b(a){o 1e.5R(a)};s=$.2i({C:G,R:G,1r:G,3m:$.1L.4K,4D:G,1w:\'p-4a\'},s);g(s.3m!=$.1L.4N){j 47=$(1J(\'5c\'));1M(j i=q.48;i<q.48+7;i++){j 2k=i%7;j 24=q.5S[2k];47.P(D(1J(\'7L\')).19({\'78\':\'7J\',\'79\':24,\'1S\':24,\'L\':(2k==0||2k==6?\'5f\':\'2k\')}).3C(s.3m==$.1L.4K?24.2h(0,1):24))}};j 45=$(1J(\'7b\')).19({\'7c\':2,\'3b\':\'7e\'}).P((s.3m!=$.1L.4N?$(1J(\'57\')).P(47):1J(\'57\')));j 3q=$(1J(\'3q\'));j 2E=(W q()).3u();j C=s.C==1C?2E.1i():s.C;j R=s.R||2E.1m();j 1F=W q(R,C,1);j 2G=q.48-1F.2P()+1;g(2G>1)2G-=7;j 5s=3x.6r(((-1*2G+1)+1F.58())/7);1F.3o(2G-1);j 5i=b(){g(s.1w){$(9).M(s.1w)}};j 5j=b(){g(s.1w){$(9).1s(s.1w)}};j w=0;5J(w++<5s){j r=D(1J(\'5c\'));1M(j i=0;i<7;i++){j 49=1F.1i()==C;j d=$(1J(\'1d\')).1b(1F.1u()+\'\').19(\'3b\',(49?\'4E-C \':\'3c-C \')+(1F.46()?\'5f \':\'2k \')+(49&&1F.V()==2E.V()?\'2E \':\'\')).4a(5i,5j);g(s.1r){s.1r(d,1F,C,R)}r.P(d);1F.3o(1)}3q.P(r)}45.P(3q);o 9.1v(b(){$(9).2H().P(45)})},50:b(s){g(!$.1I.2d)$.1I.2d=[];s=$.2i({C:1C,R:1C,Z:1C,Y:1C,1x:u,1r:[],4b:T,2T:T,2m:T,2f:u,2p:u,5r:u,2r:$.1L.6m,2a:$.1L.5Z,2c:0,2o:0,1w:\'p-4a\'},s);o 9.1v(b(){j $9=$(9);j 3s=T;g(!9.1T){9.1T=$.1I.7h++;$.1I.2d[9.1T]=W 3Y(9);3s=u}g(s.1x){s.4b=u;s.2f=u;s.2m=u;$9.2H()}j 2g=$.1I.2d[9.1T];2g.5A(s);g(!3s&&s.4b){2g.2J=$(\'<a 2t="#" L="p-7i-4X" 1S="\'+$.1h.3W+\'"><2C L="7j" 1O="\'+$.1h.36+\'/2q/1j.2F" 2R=""/></a>\').16(\'1n\',b(){$9.4d(9);9.61();o u});$9.5Q(2g.2J)}g(!3s&&$9.1A(\':1b\')){$9.16(\'5V\',b(e,5o,$1d){9.2I=5o.5q()}).16(\'5W\',b(){j d=q.2b(9.2I);g(d){2g.2Y(d,T,T)}});g(s.5r){$9.16(\'1n\',b(){$9.4d()})}j d=q.2b(9.2I);g(9.2I!=\'\'&&d){2g.2Y(d,T,T)}}$9.M(\'p-7k\')})},7m:b(s){o 1p.1a(9,\'5D\',s)},7n:b(d){o 1p.1a(9,\'4i\',d)},7o:b(d){o 1p.1a(9,\'4j\',d)},7p:b(){j c=41(9[0]);g(c){o c.4J()}o G},7q:b(d,v,m){g(v==1C)v=T;g(m==1C)m=T;o 1p.1a(9,\'2Y\',q.2b(d),v,m)},7r:b(m,y){o 1p.1a(9,\'1Z\',11(m),11(y))},4d:b(e){o 1p.1a(9,\'2U\',e)},7s:b(a){o 1p.1a(9,\'4u\',a)},7t:b(v,h){o 1p.1a(9,\'5C\',v,h)},7u:b(v,h){o 1p.1a(9,\'3V\',v,h)},7v:b(){o 1p.1a(9,\'2v\',u,9[0])},56:b(){}});j 1p=b(f,51,5y,5z){o 9.1v(b(){j c=41(9);g(c){c[f](51,5y,5z)}})};b 3Y(B){9.B=B;9.1f=G;9.1g=G;9.Z=G;9.Y=G;9.2T=G;9.2m=G;9.2f=G;9.2p=G;9.2r=G;9.2a=G;9.2c=G;9.2o=G;9.2J=G;9.1r=[];9.27={};9.1x=G;9.F=\'#p-1D\'};$.2i(3Y.4h,{5A:b(s){9.4i(s.Z);9.4j(s.Y);9.1Z(11(s.C),11(s.R));9.4u(s.1r);9.2T=s.2T;9.2m=s.2m;9.2f=s.2f;9.2p=s.2p;9.2r=s.2r;9.2a=s.2a;9.1w=s.1w;9.3V(s.2c,s.2o);9.1x=s.1x;g(9.1x){9.F=9.B;9.2U()}},4i:b(d){g(d){9.Z=q.2b(d)}g(!9.Z){9.Z=(W q()).3u()}9.1Z(9.1f,9.1g)},4j:b(d){g(d){9.Y=q.2b(d)}g(!9.Y){9.Y=(W q(\'12/31/7y\'))}g(9.Y.V()<9.Z.V()){9.Y=9.Z}9.1Z(9.1f,9.1g)},5C:b(v,h){9.2r=v;9.2a=h},3V:b(v,h){9.2c=2l(v)||0;9.2o=2l(h)||0},5D:b(s){$e=$(9.B);$e[s?\'M\':\'1s\'](\'p-K\');g(9.2J){$4l=$(9.2J);$4l[s?\'M\':\'1s\'](\'p-K\');$4l.19(\'1S\',s?\'\':$.1h.3W)}g($e.1A(\':1b\')){$e.19(\'K\',s?\'K\':\'\')}},1Z:b(m,y){g(9.Z==1C||9.Y==1C){o}j s=W q(9.Z.V());s.26(1);j e=W q(9.Y.V());e.26(1);j t;g((!m&&!y)||(2y(m)&&2y(y))){t=W q().3u();t.26(1)}x g(2y(m)){t=W q(y,9.1f,1)}x g(2y(y)){t=W q(9.1g,m,1)}x{t=W q(y,m,1)}g(t.V()<s.V()){t=s}x g(t.V()>e.V()){t=e}9.1f=t.1i();9.1g=t.1m()},2Y:b(d,v,5G){g(9.2p==u){9.27={};$(\'1d.32\',9.F).1s(\'32\')}g(5G){9.1Z(d.1i(),d.1m())}9.27[d.5H()]=v},4x:b(d){o 9.27[d.5H()]},4J:b(){j r=[];1M(s 54 9.27){g(9.27[s]==T){r.7A(q.7C(s))}}o r},2U:b(3R){g($(9.B).1A(\'.p-K\'))o;3R=3R||9.B;j c=9;j $B=$(3R);j 2N=$B.1R();j $3Q;j 3S;j 7D;j 3M;g(c.1x){$3Q=$(9.B);3S={\'O\':\'1j-\'+9.B.1T,\'3b\':\'p-1D p-1D-1x\'};3M={}}x{$3Q=$(\'1z\');3S={\'O\':\'p-1D\',\'3b\':\'p-1D\'};3M={\'X\':2N.X+c.2c,\'N\':2N.N+c.2o};j 3d=b(e){j 2M=e.7F;j 5L=$(\'#p-1D\')[0];5J(T){g(2M==5L){o T}x g(2M==1e){c.2v();o u}x{2M=$(2M).7I()[0]}}};9.3d=3d;9.2v(T)}$3Q.P($(\'<E></E>\').19(3S).Q(3M).P($(\'<1P></1P>\'),$(\'<E L="p-U-1y"></E>\').P($(\'<a L="p-U-1y-R" 2t="#" 1S="\'+$.1h.5x+\'"><2C 1O="\'+$.1h.36+\'/2q/7K.2F" 2R=""/></a>\').16(\'1n\',b(){o c.33.1a(c,9,0,-1)}),$(\'<a L="p-U-1y-C" 2t="#" 1S="\'+$.1h.4R+\'"><2C 1O="\'+$.1h.36+\'/2q/7M.2F" 2R=""/></a>\').16(\'1n\',b(){o c.33.1a(c,9,-1,0)})),$(\'<E L="p-U-1E"></E>\').P($(\'<a L="p-U-1E-R" 2t="#" 1S="\'+$.1h.6o+\'"><2C 1O="\'+$.1h.36+\'/2q/7N.2F" 2R=""/></a>\').16(\'1n\',b(){o c.33.1a(c,9,0,1)}),$(\'<a L="p-U-1E-C" 2t="#" 1S="\'+$.1h.4S+\'"><2C 1O="\'+$.1h.36+\'/2q/7P.2F" 2R=""/></a>\').16(\'1n\',b(){o c.33.1a(c,9,1,0)})),$(\'<E></E>\').19(\'3b\',\'p-1j\')).1Y());j $1U=9.1x?$(\'.p-1D\',9.F):$(\'#p-1D\');g(9.2T==u){$(\'.p-U-1y-R, .p-U-1E-R\',c.F).Q(\'2U\',\'7T\')}g(9.2f){$1U.P($(\'<a 2t="#" O="p-7U">\'+$.1h.4V+\'</a>\').16(\'1n\',b(){c.2v();o u}))}c.4B();$(9.B).2Z(\'7V\',$1U);g(!c.1x){g(9.2r==$.1L.4O){$1U.Q(\'X\',2N.X+$B.1k()-$1U.1k()+c.2c)}g(9.2a==$.1L.6n){$1U.Q(\'N\',2N.N+$B.1l()-$1U.1l()+c.2o)}$(1e).16(\'6f\',9.3d)}},4u:b(a){g(a&&5U(a)==\'b\'){a=[a]}9.1r=9.1r.7W(a)},66:b($1d,5T,C,R){j c=9.4D;j d=W q(5T.V());$1d.16(\'1n\',b(){j $9=$(9);g(!$9.1A(\'.K\')){c.2Y(d,!$9.1A(\'.32\')||!c.2p);j s=c.4x(d);$(c.B).2Z(\'5V\',[d,$1d,s]);$(c.B).2Z(\'5W\');g(c.2m){c.2v()}x{$9[s?\'M\':\'1s\'](\'32\')}}});g(c.4x(d)){$1d.M(\'32\')}1M(j i=0;i<c.1r.3B;i++){c.1r[i].5v(9,86)}},33:b(B,m,y){g(!$(B).1A(\'.K\')){9.1Z(9.1f+m,9.1g+y);9.4L();9.4B();$(9.B).2Z(\'8b\',[9.1f,9.1g])}B.61();o u},4B:b(){$(\'1P\',9.F).3C(q.63[9.1f]+\' \'+9.1g);$(\'.p-1j\',9.F).64({C:9.1f,R:9.1g,1r:9.66,4D:9,1w:9.1w});g(9.1g==9.Z.1m()&&9.1f==9.Z.1i()){$(\'.p-U-1y-R\',9.F).M(\'K\');$(\'.p-U-1y-C\',9.F).M(\'K\');$(\'.p-1j 1d.3c-C\',9.F).1v(b(){j $9=$(9);g(11($9.1b())>20){$9.M(\'K\')}});j d=9.Z.1u();$(\'.p-1j 1d.4E-C\',9.F).1v(b(){j $9=$(9);g(11($9.1b())<d){$9.M(\'K\')}})}x{$(\'.p-U-1y-R\',9.F).1s(\'K\');$(\'.p-U-1y-C\',9.F).1s(\'K\');j d=9.Z.1u();g(d>20){j 3F=W q(9.Z.V());3F.4F(1);g(9.1g==3F.1m()&&9.1f==3F.1i()){$(\'p-1j 1d.3c-C\',9.F).1v(b(){j $9=$(9);g(11($9.1b())<d){$9.M(\'K\')}})}}}g(9.1g==9.Y.1m()&&9.1f==9.Y.1i()){$(\'.p-U-1E-R\',9.F).M(\'K\');$(\'.p-U-1E-C\',9.F).M(\'K\');$(\'.p-1j 1d.3c-C\',9.F).1v(b(){j $9=$(9);g(11($9.1b())<14){$9.M(\'K\')}});j d=9.Y.1u();$(\'.p-1j 1d.4E-C\',9.F).1v(b(){j $9=$(9);g(11($9.1b())>d){$9.M(\'K\')}})}x{$(\'.p-U-1E-R\',9.F).1s(\'K\');$(\'.p-U-1E-C\',9.F).1s(\'K\');j d=9.Y.1u();g(d<13){j 3n=W q(9.Y.V());3n.4F(-1);g(9.1g==3n.1m()&&9.1f==3n.1i()){$(\'.p-1j 1d.3c-C\',9.F).1v(b(){j $9=$(9);g(11($9.1b())>d){$9.M(\'K\')}})}}}},2v:b(6h,B){g(!B||B==9.B){$(1e).1Q(\'6f\',9.3d);9.4L();$(\'#p-1D a\').1Q();$(\'#p-1D\').2H().5k();g(!6h){$(9.B).2Z(\'8g\',[9.4J()])}}},4L:b(){$(\'.p-1j 1d\',9.F).1Q();$(\'.p-1j\',9.F).2H()}});$.1L={4N:0,4K:1,8k:2,6m:0,4O:1,5Z:0,6n:1};$.1h={5x:\'5N R\',4R:\'5N C\',6o:\'4T R\',4S:\'4T C\',4V:\'6E\',3W:\'6G 4X\'};$.6H=\'$6J: 6K.50.2q 6N 6Q-10-25 13:55:6U 6V.6Z $\';b 41(B){g(B.1T)o $.1I.2d[B.1T];o u};g($.1W.1Y==1C){$.1W.1Y=b(){o 9}};$(74).16(\'75\',b(){j 4o=$.1I.2d||[];1M(j i 54 4o){$(4o[i].B).56()}})})(D);D.1W.7d=b(4g,3i){j A={4f:8,4k:18,3t:T,2s:4,1K:u,1I:\'1n\',5d:\'5e\',2A:G,3g:u,5l:1,5p:1};g(4g){D.2i(A,4g)};j 3i=3i||b(){},v=(A.5d==\'5e\');5n();D(9)[A.1I](b(e){j 1N=9,$1N=D(9),$1z=D("1z");g(!A.2A){$1N.1Q("21").16("21",2Q)}x{j 3p=D("[2B="+A.2A+"]");3p.1Q("21").16("21",2Q)[0].5O();3p.16("1n",b(){3p.1Q("21")})}D("#4C,#3D").5k();$I=D("<E O=\'4C\' L=\'3J\' />").3k($1z);!A.3g?$I.Q("3r",A.5l):G;34($I);$1V=D("<E L=\'5m\' O=\'1V\' />").3k($1z);$23=D("<E L=\'5m\' O=\'23\' />").3k($1z);g(A.3t){$17=D("<E O=\'3D\' L=\'3J\' />").3k($1z);!A.3g?$17.Q("3r",A.5p):G;34($17)}g(!v){$I.Q("1l","1B");$17.Q("1l","1B")}x{$1V.M(\'5t\');$23.M(\'5t\')}5u();5M();b 5u(){j c=1;1M(h=A.4f;h<=A.4k;h++){g(h==12){c=1}1t=((!A.1K&&h>12)?h-12:h);g(!A.1K&&h==0){1t=\'12\'}g(A.1K&&h<10){1t=\'0\'+1t}$2e=D("<E L=\'2w\' O=\'62"+h+"1H"+c+"\'>"+1t+3A(h)+"</E>");g(A.1K){$2e.1l(20)}34($2e);g(!v){$2e.Q("5B","N")}(h<12)?$1V.P($2e):$23.P($2e);c++}$I.P($1V);!v?$I.P("<E 3U=\'5E:N\' />"):\'\';$I.P($23)}b 6d(h){2L=h;1t=(!A.1K&&h>12)?h-12:h;g(!A.1K&&h==0){1t=\'12\'}g(A.1K&&h<10){1t=\'0\'+1t}$17.2H();j n=60/A.2s,3l=3A(2L),4m=1;1M(m=0;m<60;m=m+n){$3v=D("<E L=\'4H\' O=\'"+2L+"1H"+m+"\'>"+1t+":"+((m<10)?"0":"")+m+3l+"</E>");g(!v){$3v.Q("5B","N");g(A.2s>6&&4m==A.2s/2+1){$17.P("<E 3U=\'5E:N\' />")}}$17.P($3v);34($3v);4m++}}b 3A(2L){g(!A.1K){o(2L>=12)?\' 7E\':\' 7G\'}x{o\'\'}}b 5M(){g(e.4I!=\'5O\'){$I.Q("N",e.6i-5+\'1o\').Q("X",e.6e-(3x.5P($I.1k()/2))+\'1o\');3X($I)}x{$1N.5Q($I)}$I.7O(\'5I\');g(A.3g)4z($I)}b 3X($k){j 4t=1e.2j.4p?1e.2j.4p:1e.1z.4p;j 7Q=1e.2j.4q?1e.2j.4q:1e.1z.4q;j t=2l($k.Q("X"));j l=2l($k.Q("N"));j 2X=1e.2j.4s?1e.2j.4s:1e.1z.4s;g(t<=2X&&!$k.1A("#3D")){$k.Q("X",2X+10+\'1o\')}x g(t+$k.1k()-2X>4t){$k.Q("X",2X+4t-$k.1k()-10+\'1o\')}g(l<=0){$k.Q("N",\'7X\')}}b 4z(5X){g(5U D.1W.1Y==\'b\')5X.1Y();x 4e(\'1Y 83 88 8a.\')}b 34($k){g($k.19("O")==\'4C\'){$k.3E(b(e){67(e)})}x g($k.19("O")==\'3D\'){$k.3E(b(e){68(e)})}x g($k.19("L")==\'2w\'){$k.3O(b(e){3w($k,e)});$k.3E(b(){3L($k)});$k.1n(b(){52($k)})}x g($k.19("L")==\'4H\'){$k.3O(b(){4G($k)});$k.3E(b(){4M($k)});$k.1n(b(){5b($k)})}};b 67(e){69{t=(e.3G)?e.3G:e.6b;g(!(D(t).1A("E[L^=3J], 3K"))){1X()}}6c(e){1X()}}b 68(e){69{t=(e.3G)?e.3G:e.6b;g(!(D(t).1A("E[L^=3J], 3K"))){1X()}}6c(e){1X()}}b 3w($k,e){j h=$k.19("O").1q(\'1H\')[1],i=$k.19("O").1q(\'1H\')[2],l,t;$k.M("2n");g(A.3t){$17.5F();6d(h);g(v){t=e.4I==\'3O\'?e.6e-15:$I.1R().X+2+($k.1k()*i);g(h<12)l=$I.1R().N-$17.1l()-2;x l=$I.1R().N+$I.1l()+2}x{l=(e.4I==\'3O\')?e.6i-10:$I.1R().N+($k.1l()-5)*i;g(h<12){t=$I.1R().X-$17.1k()-2}x{t=$I.1R().X+$I.1k()}}$17.Q("N",l+\'1o\').Q("X",t+\'1o\');3X($17);$17.6I();g(A.3g)4z($17)}o u}b 3L($k){$k.1s("2n");o u}b 52($k){h=$k.19("O").1q(\'1H\')[1];3l=3A(h);2O=$k.1b();g(2O.22(\' \')!=-1){44=2O.4r(0,2O.22(\' \'))}x{44=2O}$k.1b(44+\':7a\'+3l);4c($k);1X()}b 4G($k){$k.M("2n");o u}b 4M($k){$k.1s("2n");o u}b 5b($k){4c($k);1X()}b 4c($k){g(!A.2A){1N.2I=$k.1b()}x{D("7g[2B="+A.2A+"]").7l($k.1b())}3i.5v($1N,[$k.1b()]);$1N.1Q("21",2Q)}b 1X(){g(A.3t){$17.5F()}$I.7B(\'5I\');$1N.1Q("21",2Q)}b 2Q(e){j $k=$("E.2n").3I()?$("E.2n"):$("E.2w:6g"),1G=$k.1A(".2w")?\'3N\':\'4y\',6a=(1G==\'3N\')?$k[0].O.1q(\'1H\')[2]:0,h=(1G==\'4y\')?$k[0].O.1q(\'1H\')[0]:$k[0].O.1q(\'1H\')[1];g(1G==\'4y\'){j 2u=h<12?\'2S\':\'2W\'}x{j 2u=h<12?\'2K\':\'1P\'}b 3Z($k){g($k.1y().3I()){3e(1G+\'5Y($k)\');3e(1G+\'65($k.1y(), e)\')}x{o u}}b 4n($k){g($k.1E().3I()){3e(1G+\'5Y($k)\');3e(1G+\'65($k.1E(), e)\')}x{o u}}b 35($k){j 3z=h>=12?\'#1V\':\'#23\';$2x=D(".2w[O$=1H"+6a+"]",3z);g($2x.3I()){3L($k);3w($2x,e)}x{o u}}b 3a($k){3L($k);4G($(".4H:6g"))}b 2V($k){4M($k);j 3z=h>=12?\'#23\':\'#1V\';j $2x=D(".2w[O^=62"+h+"]",3z);3w($2x,e)}3f(e.7f){J 37:g(v){3f(2u){J\'2S\':o u;H;J\'2W\':2V($k);H;J\'2K\':3a($k);H;J\'1P\':35($k);H}}x{3Z($k)}H;J 38:g(v){3Z($k)}x{3f(2u){J\'2S\':o u;H;J\'2W\':2V($k);H;J\'2K\':3a($k);H;J\'1P\':35($k);H}}H;J 39:g(v){3f(2u){J\'2S\':2V($k);H;J\'2W\':o u;H;J\'2K\':35($k);H;J\'1P\':3a($k);H}}x{4n($k)}H;J 40:g(v){4n($k)}x{3f(2u){J\'2S\':2V($k);H;J\'2W\':o u;H;J\'2K\':35($k);H;J\'1P\':3a($k);H}}H;J 13:3e(1G+\'6A($k)\');H;6X:o T}o u}o u});b 5n(){g(A.4f>=A.4k){4e(\'5K - 7H 3N 6j 7R 7Y 8e 8f 3N.\');o u}x g(60%A.2s!=0){4e(\'5K - 7Z 2s 6j 6T 7w 80 60.\');o u}}o 9}',62,517,'|||||||||this||function|||||if|||var|obj||||return|dp|Date||||false|||else|||settings|ele|month|jQuery|div|context|null|break|hourcont|case|disabled|class|addClass|left|id|append|css|year|add|true|nav|getTime|new|top|endDate|startDate||Number|||||bind|mc||attr|call|text|num|td|document|displayedMonth|displayedYear|dpText|getMonth|calendar|height|width|getFullYear|click|px|_w|split|renderCallback|removeClass|displayhours|getDate|each|hoverClass|inline|prev|body|is|auto|undefined|popup|next|currentDate|divtype|_|event|dc|military|dpConst|for|self|src|h2|unbind|offset|title|_dpId|pop|hourcol1|fn|cleardivs|bgIframe|setDisplayedMonth||keydown|indexOf|hourcol2|day||setDate|selectedDates|||horizontalPosition|fromString|verticalOffset|_dpCache|hd|displayClose|controller|substr|extend|documentElement|weekday|parseInt|closeOnSelect|CP_over|horizontalOffset|selectMultiple|js|verticalPosition|minutedivisions|href|curloc|_closeCalendar|CP_hour|newobj|isNaN|join|valuefield|name|img|prop|today|gif|firstDayOffset|empty|value|button|h1|realhours|el|eleOffset|str|getDay|keyhandler|alt|m1|showYearNavigation|display|minutetohour|m2|st|setSelected|trigger|||selected|_displayNewMonth|binder|hourtohour|ROOT||||hourtominute|className|other|_checkMouse|eval|switch|useBgiframe|tmpdtm|callback|expression|appendTo|tt|showHeader|ed|addDays|inputfield|tbody|opacity|alreadyExists|showminutes|zeroTime|md|hourdiv_over|Math|parentNode|ctx|set_tt|length|html|CP_minutecont|mouseout|sd|toElement|abbreviated|size|CP|iframe|hourdiv_out|cssRules|hour|mouseover|setMonth|createIn|eleAlignTo|attrs|iM|style|setOffset|TEXT_CHOOSE_DATE|rectify|DatePicker|divprev||_getController|iY|bgiframe|cleanstr|calendarTable|isWeekend|headRow|firstDayOfWeek|thisMonth|hover|createButton|setval|dpDisplay|alert|starthour|options|prototype|setStartDate|setEndDate|endhour|but|counter|divnext|els|clientHeight|clientWidth|substring|scrollTop|ph|setRenderCallback|abbrMonthNames|setFullYear|isSelected|minute|bgi|_zeroPad|_renderCalendar|CP_hourcont|dpController|current|addMonths|minutediv_over|CP_minute|type|getSelected|SHOW_HEADER_SHORT|_clearCalendar|minutediv_out|SHOW_HEADER_NONE|POS_BOTTOM|mmm|getDayOfYear|TEXT_PREV_MONTH|TEXT_NEXT_MONTH|Next|getMonthName|TEXT_CLOSE|yy|date|mStr|dd|datePicker|a1|hourdiv_click|currentStyle|in||_dpDestroy|thead|getDaysInMonth|setHours|01|minutediv_click|tr|layout|vertical|weekend|setMinutes|format|doHover|unHover|remove|hoursopacity|CP_hourcol|errorcheck|selectedDate|minutesopacity|asString|clickInput|weeksToDraw|floatleft|renderhours|apply|setSeconds|TEXT_PREV_YEAR|a2|a3|init|float|setPosition|setDisabled|clear|hide|moveToMonth|toString|fast|while|Error|cal|putcontainer|Previous|focus|floor|after|createElement|dayNames|thisDate|typeof|dateSelected|change|ob|div_out|POS_LEFT||blur|hr_|monthNames|renderCalendar|div_over|cellRender|hourcont_out|minutecont_out|try|hi|relatedTarget|catch|renderminutes|pageY|mousedown|first|programatic|pageX|must|method|isLeapYear|POS_TOP|POS_RIGHT|TEXT_NEXT_YEAR|mm|yyyy|ceil|abbrDayNames|86400000|getWeekOfYear|addYears|addHours|addMinutes|getMinutes|addSeconds|div_click|getSeconds|setMilliseconds|1977|Close|fullYearStart|Choose|dpVersion|show|Id|jquery|browser|msie|3739|userAgent|javascript|2007|frameborder|block|divide|30Z|kelvin|index|default|Alpha|luck|Opacity|borderTopWidth|borderLeftWidth|offsetWidth|window|unload|insertBefore|firstChild|scope|abbr|00|table|cellspacing|clockpick|jCalendar|keyCode|input|guid|choose|imgcalendar|applied|val|dpSetDisabled|dpSetStartDate|dpSetEndDate|dpGetSelected|dpSetSelected|dpSetDisplayedMonth|dpSetRenderCallback|dpSetPosition|dpSetOffset|dpClose|evenly|setDayOfYear|2999|getHours|push|slideUp|parse|attrsCalendarHolder|PM|target|AM|start|parent|col|cal_p_year|th|cal_p_month|cal_n_year|slideDown|cal_n_month|pw|be|offsetHeight|none|close|dpDisplayed|concat|10px|less|param|into|filter|getDayName|plugin|absolute|position|arguments|tabindex|not|constructor|loaded|dpMonthChanged|navigator|test|than|end|dpClosed|100|400|isWeekDay|SHOW_HEADER_LONG'.split('|'),0,{}))
Date.dayNames=["S","M","T","W","T","F","S"];Date.abbrDayNames=["S","M","T","W","T","F","S"];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.abbrMonthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.firstDayOfWeek=1;Date.fullYearStart="20";jQuery.dpText={TEXT_PREV_YEAR:"Previous Year",TEXT_PREV_MONTH:"Previous Month",TEXT_NEXT_YEAR:"Next Year",TEXT_NEXT_MONTH:"Next Month",TEXT_CLOSE:"Close",TEXT_CHOOSE_DATE:"Choose Date",ROOT:"http://www.spectrum-photo.ca/wp-content/plugins/cforms"};jQuery(function(){Date.format="dd/mm/yyyy";jQuery(".cf_date").datePicker({startDate:"01/01/1899",verticalOffset:10,horizontalOffset:5,horizontalPosition:1});Date.format="mm/dd/yyyy";});}catch(e){document.write("\x3cscript type=\"text/javascript\" src=\"http://www.spectrum-photo.ca/wp-content/plugins/cforms/js/cformsadmincal.js\">\x3c/script>")}try{var MooTools={version:"1.2.0",build:""};var Native=function(J){J=J||{};var F=J.afterImplement||function(){};var G=J.generics;G=(G!==false);var H=J.legacy;var E=J.initialize;var B=J.protect;var A=J.name;var C=E||H;C.constructor=Native;C.$family={name:"native"};if(H&&E){C.prototype=H.prototype;}C.prototype.constructor=C;if(A){var D=A.toLowerCase();C.prototype.$family={name:D};Native.typize(C,D);}var I=function(M,K,N,L){if(!B||L||!M.prototype[K]){M.prototype[K]=N;}if(G){Native.genericize(M,K,B);}F.call(M,K,N);return M;};C.implement=function(L,K,N){if(typeof L=="string"){return I(this,L,K,N);}for(var M in L){I(this,M,L[M],K);}return this;};C.alias=function(M,K,N){if(typeof M=="string"){M=this.prototype[M];if(M){I(this,K,M,N);}}else{for(var L in M){this.alias(L,M[L],K);}}return this;};return C;};Native.implement=function(D,C){for(var B=0,A=D.length;B<A;B++){D[B].implement(C);}};Native.genericize=function(B,C,A){if((!A||!B[C])&&typeof B.prototype[C]=="function"){B[C]=function(){var D=Array.prototype.slice.call(arguments);return B.prototype[C].apply(D.shift(),D);};}};Native.typize=function(A,B){if(!A.type){A.type=function(C){return($type(C)===B);};}};Native.alias=function(E,B,A,F){for(var D=0,C=E.length;D<C;D++){E[D].alias(B,A,F);}};(function(B){for(var A in B){Native.typize(B[A],A);}})({"boolean":Boolean,"native":Native,object:Object});(function(B){for(var A in B){new Native({name:A,initialize:B[A],protect:true});}})({String:String,Function:Function,Number:Number,Array:Array,RegExp:RegExp,Date:Date});(function(B,A){for(var C=A.length;C--;C){Native.genericize(B,A[C],true);}return arguments.callee;})(Array,["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice","toString","valueOf","indexOf","lastIndexOf"])(String,["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]);function $chk(A){return!!(A||A===0);}function $clear(A){clearTimeout(A);clearInterval(A);return null;}function $defined(A){return(A!=undefined);}function $empty(){}function $arguments(A){return function(){return arguments[A];};}function $lambda(A){return(typeof A=="function")?A:function(){return A;};}function $extend(C,A){for(var B in(A||{})){C[B]=A[B];}return C;}function $unlink(C){var B;switch($type(C)){case"object":B={};for(var E in C){B[E]=$unlink(C[E]);}break;case"hash":B=$unlink(C.getClean());break;case"array":B=[];for(var D=0,A=C.length;D<A;D++){B[D]=$unlink(C[D]);}break;default:return C;}return B;}function $merge(){var E={};for(var D=0,A=arguments.length;D<A;D++){var B=arguments[D];if($type(B)!="object"){continue;}for(var C in B){var G=B[C],F=E[C];E[C]=(F&&$type(G)=="object"&&$type(F)=="object")?$merge(F,G):$unlink(G);}}return E;}function $pick(){for(var B=0,A=arguments.length;B<A;B++){if(arguments[B]!=undefined){return arguments[B];}}return null;}function $random(B,A){return Math.floor(Math.random()*(A-B+1)+B);}function $splat(B){var A=$type(B);return(A)?((A!="array"&&A!="arguments")?[B]:B):[];}var $time=Date.now||function(){return new Date().getTime();};function $try(){for(var B=0,A=arguments.length;B<A;B++){try{return arguments[B]();}catch(C){}}return null;}function $type(A){if(A==undefined){return false;}if(A.$family){return(A.$family.name=="number"&&!isFinite(A))?false:A.$family.name;}if(A.nodeName){switch(A.nodeType){case 1:return"element";case 3:return(/\S/).test(A.nodeValue)?"textnode":"whitespace";}}else{if(typeof A.length=="number"){if(A.callee){return"arguments";}else{if(A.item){return"collection";}}}}return typeof A;}var Hash=new Native({name:"Hash",initialize:function(A){if($type(A)=="hash"){A=$unlink(A.getClean());}for(var B in A){this[B]=A[B];}return this;}});Hash.implement({getLength:function(){var B=0;for(var A in this){if(this.hasOwnProperty(A)){B++;}}return B;},forEach:function(B,C){for(var A in this){if(this.hasOwnProperty(A)){B.call(C,this[A],A,this);}}},getClean:function(){var B={};for(var A in this){if(this.hasOwnProperty(A)){B[A]=this[A];}}return B;}});Hash.alias("forEach","each");function $H(A){return new Hash(A);}Array.implement({forEach:function(C,D){for(var B=0,A=this.length;B<A;B++){C.call(D,this[B],B,this);}}});Array.alias("forEach","each");function $A(C){if(C.item){var D=[];for(var B=0,A=C.length;B<A;B++){D[B]=C[B];}return D;}return Array.prototype.slice.call(C);}function $each(C,B,D){var A=$type(C);((A=="arguments"||A=="collection"||A=="array")?Array:Hash).each(C,B,D);}var Browser=new Hash({Engine:{name:"unknown",version:""},Platform:{name:(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase()},Features:{xpath:!!(document.evaluate),air:!!(window.runtime)},Plugins:{}});if(window.opera){Browser.Engine={name:"presto",version:(document.getElementsByClassName)?950:925};}else{if(window.ActiveXObject){Browser.Engine={name:"trident",version:(window.XMLHttpRequest)?5:4};}else{if(!navigator.taintEnabled){Browser.Engine={name:"webkit",version:(Browser.Features.xpath)?420:419};}else{if(document.getBoxObjectFor!=null){Browser.Engine={name:"gecko",version:(document.getElementsByClassName)?19:18};}}}}Browser.Engine[Browser.Engine.name]=Browser.Engine[Browser.Engine.name+Browser.Engine.version]=true;if(window.orientation!=undefined){Browser.Platform.name="ipod";}Browser.Platform[Browser.Platform.name]=true;Browser.Request=function(){return $try(function(){return new XMLHttpRequest();},function(){return new ActiveXObject("MSXML2.XMLHTTP");});};Browser.Features.xhr=!!(Browser.Request());Browser.Plugins.Flash=(function(){var A=($try(function(){return navigator.plugins["Shockwave Flash"].description;},function(){return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version");})||"0 r0").match(/\d+/g);return{version:parseInt(A[0]||0+"."+A[1]||0),build:parseInt(A[2]||0)};})();function $exec(B){if(!B){return B;}if(window.execScript){window.execScript(B);}else{var A=document.createElement("script");A.setAttribute("type","text/javascript");A.text=B;document.head.appendChild(A);document.head.removeChild(A);}return B;}Native.UID=1;var $uid=(Browser.Engine.trident)?function(A){return(A.uid||(A.uid=[Native.UID++]))[0];}:function(A){return A.uid||(A.uid=Native.UID++);};var Window=new Native({name:"Window",legacy:(Browser.Engine.trident)?null:window.Window,initialize:function(A){$uid(A);if(!A.Element){A.Element=$empty;if(Browser.Engine.webkit){A.document.createElement("iframe");}A.Element.prototype=(Browser.Engine.webkit)?window["[[DOMElement.prototype]]"]:{};}return $extend(A,Window.Prototype);},afterImplement:function(B,A){window[B]=Window.Prototype[B]=A;}});Window.Prototype={$family:{name:"window"}};new Window(window);var Document=new Native({name:"Document",legacy:(Browser.Engine.trident)?null:window.Document,initialize:function(A){$uid(A);A.head=A.getElementsByTagName("head")[0];A.html=A.getElementsByTagName("html")[0];A.window=A.defaultView||A.parentWindow;if(Browser.Engine.trident4){$try(function(){A.execCommand("BackgroundImageCache",false,true);});}return $extend(A,Document.Prototype);},afterImplement:function(B,A){document[B]=Document.Prototype[B]=A;}});Document.Prototype={$family:{name:"document"}};new Document(document);Array.implement({every:function(C,D){for(var B=0,A=this.length;B<A;B++){if(!C.call(D,this[B],B,this)){return false;}}return true;},filter:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){if(D.call(E,this[B],B,this)){C.push(this[B]);}}return C;},clean:function(){return this.filter($defined);},indexOf:function(C,D){var A=this.length;for(var B=(D<0)?Math.max(0,A+D):D||0;B<A;B++){if(this[B]===C){return B;}}return-1;},map:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){C[B]=D.call(E,this[B],B,this);}return C;},some:function(C,D){for(var B=0,A=this.length;B<A;B++){if(C.call(D,this[B],B,this)){return true;}}return false;},associate:function(C){var D={},B=Math.min(this.length,C.length);for(var A=0;A<B;A++){D[C[A]]=this[A];}return D;},link:function(C){var A={};for(var E=0,B=this.length;E<B;E++){for(var D in C){if(C[D](this[E])){A[D]=this[E];delete C[D];break;}}}return A;},contains:function(A,B){return this.indexOf(A,B)!=-1;},extend:function(C){for(var B=0,A=C.length;B<A;B++){this.push(C[B]);}return this;},getLast:function(){return(this.length)?this[this.length-1]:null;},getRandom:function(){return(this.length)?this[$random(0,this.length-1)]:null;},include:function(A){if(!this.contains(A)){this.push(A);}return this;},combine:function(C){for(var B=0,A=C.length;B<A;B++){this.include(C[B]);}return this;},erase:function(B){for(var A=this.length;A--;A){if(this[A]===B){this.splice(A,1);}}return this;},empty:function(){this.length=0;return this;},flatten:function(){var D=[];for(var B=0,A=this.length;B<A;B++){var C=$type(this[B]);if(!C){continue;}D=D.concat((C=="array"||C=="collection"||C=="arguments")?Array.flatten(this[B]):this[B]);}return D;},hexToRgb:function(B){if(this.length!=3){return null;}var A=this.map(function(C){if(C.length==1){C+=C;}return C.toInt(16);});return(B)?A:"rgb("+A+")";},rgbToHex:function(D){if(this.length<3){return null;}if(this.length==4&&this[3]==0&&!D){return"transparent";}var B=[];for(var A=0;A<3;A++){var C=(this[A]-0).toString(16);B.push((C.length==1)?"0"+C:C);}return(D)?B:"#"+B.join("");}});Function.implement({extend:function(A){for(var B in A){this[B]=A[B];}return this;},create:function(B){var A=this;B=B||{};return function(D){var C=B.arguments;C=(C!=undefined)?$splat(C):Array.slice(arguments,(B.event)?1:0);if(B.event){C=[D||window.event].extend(C);}var E=function(){return A.apply(B.bind||null,C);};if(B.delay){return setTimeout(E,B.delay);}if(B.periodical){return setInterval(E,B.periodical);}if(B.attempt){return $try(E);}return E();};},pass:function(A,B){return this.create({arguments:A,bind:B});},attempt:function(A,B){return this.create({arguments:A,bind:B,attempt:true})();},bind:function(B,A){return this.create({bind:B,arguments:A});},bindWithEvent:function(B,A){return this.create({bind:B,event:true,arguments:A});},delay:function(B,C,A){return this.create({delay:B,bind:C,arguments:A})();},periodical:function(A,C,B){return this.create({periodical:A,bind:C,arguments:B})();},run:function(A,B){return this.apply(B,$splat(A));}});Number.implement({limit:function(B,A){return Math.min(A,Math.max(B,this));},round:function(A){A=Math.pow(10,A||0);return Math.round(this*A)/A;},times:function(B,C){for(var A=0;A<this;A++){B.call(C,A,this);}},toFloat:function(){return parseFloat(this);},toInt:function(A){return parseInt(this,A||10);}});Number.alias("times","each");(function(B){var A={};B.each(function(C){if(!Number[C]){A[C]=function(){return Math[C].apply(null,[this].concat($A(arguments)));};}});Number.implement(A);})(["abs","acos","asin","atan","atan2","ceil","cos","exp","floor","log","max","min","pow","sin","sqrt","tan"]);String.implement({test:function(A,B){return((typeof A=="string")?new RegExp(A,B):A).test(this);},contains:function(A,B){return(B)?(B+this+B).indexOf(B+A+B)>-1:this.indexOf(A)>-1;},trim:function(){return this.replace(/^\s+|\s+$/g,"");},clean:function(){return this.replace(/\s+/g," ").trim();},camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/[A-Z]/g,function(A){return("-"+A.charAt(0).toLowerCase());});},capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase();});},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1");},toInt:function(A){return parseInt(this,A||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(B){var A=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/);return(A)?A.slice(1).hexToRgb(B):null;},rgbToHex:function(B){var A=this.match(/\d{1,3}/g);return(A)?A.rgbToHex(B):null;},stripScripts:function(B){var A="";var C=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n";return"";});if(B===true){$exec(A);}else{if($type(B)=="function"){B(A,C);}}return C;},substitute:function(A,B){return this.replace(B||(/\\?\{([^}]+)\}/g),function(D,C){if(D.charAt(0)=="\\"){return D.slice(1);}return(A[C]!=undefined)?A[C]:"";});}});Hash.implement({has:Object.prototype.hasOwnProperty,keyOf:function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return A;}}return null;},hasValue:function(A){return(Hash.keyOf(this,A)!==null);},extend:function(A){Hash.each(A,function(C,B){Hash.set(this,B,C);},this);return this;},combine:function(A){Hash.each(A,function(C,B){Hash.include(this,B,C);},this);return this;},erase:function(A){if(this.hasOwnProperty(A)){delete this[A];}return this;},get:function(A){return(this.hasOwnProperty(A))?this[A]:null;},set:function(A,B){if(!this[A]||this.hasOwnProperty(A)){this[A]=B;}return this;},empty:function(){Hash.each(this,function(B,A){delete this[A];},this);return this;},include:function(B,C){var A=this[B];if(A==undefined){this[B]=C;}return this;},map:function(B,C){var A=new Hash;Hash.each(this,function(E,D){A.set(D,B.call(C,E,D,this));},this);return A;},filter:function(B,C){var A=new Hash;Hash.each(this,function(E,D){if(B.call(C,E,D,this)){A.set(D,E);}},this);return A;},every:function(B,C){for(var A in this){if(this.hasOwnProperty(A)&&!B.call(C,this[A],A)){return false;}}return true;},some:function(B,C){for(var A in this){if(this.hasOwnProperty(A)&&B.call(C,this[A],A)){return true;}}return false;},getKeys:function(){var A=[];Hash.each(this,function(C,B){A.push(B);});return A;},getValues:function(){var A=[];Hash.each(this,function(B){A.push(B);});return A;},toQueryString:function(A){var B=[];Hash.each(this,function(F,E){if(A){E=A+"["+E+"]";}var D;switch($type(F)){case"object":D=Hash.toQueryString(F,E);break;case"array":var C={};F.each(function(H,G){C[G]=H;});D=Hash.toQueryString(C,E);break;default:D=E+"="+encodeURIComponent(F);}if(F!=undefined){B.push(D);}});return B.join("&");}});Hash.alias({keyOf:"indexOf",hasValue:"contains"});var Event=new Native({name:"Event",initialize:function(A,F){F=F||window;var K=F.document;A=A||F.event;if(A.$extended){return A;}this.$extended=true;var J=A.type;var G=A.target||A.srcElement;while(G&&G.nodeType==3){G=G.parentNode;}if(J.test(/key/)){var B=A.which||A.keyCode;var M=Event.Keys.keyOf(B);if(J=="keydown"){var D=B-111;if(D>0&&D<13){M="f"+D;}}M=M||String.fromCharCode(B).toLowerCase();}else{if(J.match(/(click|mouse|menu)/i)){K=(!K.compatMode||K.compatMode=="CSS1Compat")?K.html:K.body;var I={x:A.pageX||A.clientX+K.scrollLeft,y:A.pageY||A.clientY+K.scrollTop};var C={x:(A.pageX)?A.pageX-F.pageXOffset:A.clientX,y:(A.pageY)?A.pageY-F.pageYOffset:A.clientY};if(J.match(/DOMMouseScroll|mousewheel/)){var H=(A.wheelDelta)?A.wheelDelta/120:-(A.detail||0)/3;}var E=(A.which==3)||(A.button==2);var L=null;if(J.match(/over|out/)){switch(J){case"mouseover":L=A.relatedTarget||A.fromElement;break;case"mouseout":L=A.relatedTarget||A.toElement;}if(!(function(){while(L&&L.nodeType==3){L=L.parentNode;}return true;}).create({attempt:Browser.Engine.gecko})()){L=false;}}}}return $extend(this,{event:A,type:J,page:I,client:C,rightClick:E,wheel:H,relatedTarget:L,target:G,code:B,key:M,shift:A.shiftKey,control:A.ctrlKey,alt:A.altKey,meta:A.metaKey});}});Event.Keys=new Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Event.implement({stop:function(){return this.stopPropagation().preventDefault();},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault();}else{this.event.returnValue=false;}return this;}});var Class=new Native({name:"Class",initialize:function(B){B=B||{};var A=function(E){for(var D in this){this[D]=$unlink(this[D]);}for(var F in Class.Mutators){if(!this[F]){continue;}Class.Mutators[F](this,this[F]);delete this[F];}this.constructor=A;if(E===$empty){return this;}var C=(this.initialize)?this.initialize.apply(this,arguments):this;if(this.options&&this.options.initialize){this.options.initialize.call(this);}return C;};$extend(A,this);A.constructor=Class;A.prototype=B;return A;}});Class.implement({implement:function(){Class.Mutators.Implements(this.prototype,Array.slice(arguments));return this;}});Class.Mutators={Implements:function(A,B){$splat(B).each(function(C){$extend(A,($type(C)=="class")?new C($empty):C);});},Extends:function(self,klass){var instance=new klass($empty);delete instance.parent;delete instance.parentOf;for(var key in instance){var current=self[key],previous=instance[key];if(current==undefined){self[key]=previous;continue;}var ctype=$type(current),ptype=$type(previous);if(ctype!=ptype){continue;}switch(ctype){case"function":if(!arguments.callee.caller){self[key]=eval("("+String(current).replace(/\bthis\.parent\(\s*(\))?/g,function(full,close){return"arguments.callee._parent_.call(this"+(close||", ");})+")");}self[key]._parent_=previous;break;case"object":self[key]=$merge(previous,current);}}self.parent=function(){return arguments.callee.caller._parent_.apply(this,arguments);};self.parentOf=function(descendant){return descendant._parent_.apply(this,Array.slice(arguments,1));};}};var Chain=new Class({chain:function(){this.$chain=(this.$chain||[]).extend(arguments);return this;},callChain:function(){return(this.$chain&&this.$chain.length)?this.$chain.shift().apply(this,arguments):false;},clearChain:function(){if(this.$chain){this.$chain.empty();}return this;}});var Events=new Class({addEvent:function(C,B,A){C=Events.removeOn(C);if(B!=$empty){this.$events=this.$events||{};this.$events[C]=this.$events[C]||[];this.$events[C].include(B);if(A){B.internal=true;}}return this;},addEvents:function(A){for(var B in A){this.addEvent(B,A[B]);}return this;},fireEvent:function(C,B,A){C=Events.removeOn(C);if(!this.$events||!this.$events[C]){return this;}this.$events[C].each(function(D){D.create({bind:this,delay:A,"arguments":B})();},this);return this;},removeEvent:function(B,A){B=Events.removeOn(B);if(!this.$events||!this.$events[B]){return this;}if(!A.internal){this.$events[B].erase(A);}return this;},removeEvents:function(C){for(var D in this.$events){if(C&&C!=D){continue;}var B=this.$events[D];for(var A=B.length;A--;A){this.removeEvent(D,B[A]);}}return this;}});Events.removeOn=function(A){return A.replace(/^on([A-Z])/,function(B,C){return C.toLowerCase();});};var Options=new Class({setOptions:function(){this.options=$merge.run([this.options].extend(arguments));if(!this.addEvent){return this;}for(var A in this.options){if($type(this.options[A])!="function"||!(/^on[A-Z]/).test(A)){continue;}this.addEvent(A,this.options[A]);delete this.options[A];}return this;}});Document.implement({newElement:function(A,B){if(Browser.Engine.trident&&B){["name","type","checked"].each(function(C){if(!B[C]){return;}A+=" "+C+'="'+B[C]+'"';if(C!="checked"){delete B[C];}});A="<"+A+">";}return $.element(this.createElement(A)).set(B);},newTextNode:function(A){return this.createTextNode(A);},getDocument:function(){return this;},getWindow:function(){return this.defaultView||this.parentWindow;},purge:function(){var C=this.getElementsByTagName("*");for(var B=0,A=C.length;B<A;B++){Browser.freeMem(C[B]);}}});var Element=new Native({name:"Element",legacy:window.Element,initialize:function(A,B){var C=Element.Constructors.get(A);if(C){return C(B);}if(typeof A=="string"){return document.newElement(A,B);}return $(A).set(B);},afterImplement:function(A,B){if(!Array[A]){Elements.implement(A,Elements.multi(A));}Element.Prototype[A]=B;}});Element.Prototype={$family:{name:"element"}};Element.Constructors=new Hash;var IFrame=new Native({name:"IFrame",generics:false,initialize:function(){var E=Array.link(arguments,{properties:Object.type,iframe:$defined});var C=E.properties||{};var B=$(E.iframe)||false;var D=C.onload||$empty;delete C.onload;C.id=C.name=$pick(C.id,C.name,B.id,B.name,"IFrame_"+$time());B=new Element(B||"iframe",C);var A=function(){var F=$try(function(){return B.contentWindow.location.host;});if(F&&F==window.location.host){var H=new Window(B.contentWindow);var G=new Document(B.contentWindow.document);$extend(H.Element.prototype,Element.Prototype);}D.call(B.contentWindow,B.contentWindow.document);};(!window.frames[C.id])?B.addListener("load",A):A();return B;}});var Elements=new Native({initialize:function(F,B){B=$extend({ddup:true,cash:true},B);F=F||[];if(B.ddup||B.cash){var G={},E=[];for(var C=0,A=F.length;C<A;C++){var D=$.element(F[C],!B.cash);if(B.ddup){if(G[D.uid]){continue;}G[D.uid]=true;}E.push(D);}F=E;}return(B.cash)?$extend(F,this):F;}});Elements.implement({filter:function(A,B){if(!A){return this;}return new Elements(Array.filter(this,(typeof A=="string")?function(C){return C.match(A);}:A,B));}});Elements.multi=function(A){return function(){var B=[];var F=true;for(var D=0,C=this.length;D<C;D++){var E=this[D][A].apply(this[D],arguments);B.push(E);if(F){F=($type(E)=="element");}}return(F)?new Elements(B):B;};};Window.implement({$:function(B,C){if(B&&B.$family&&B.uid){return B;}var A=$type(B);return($[A])?$[A](B,C,this.document):null;},$$:function(A){if(arguments.length==1&&typeof A=="string"){return this.document.getElements(A);}var F=[];var C=Array.flatten(arguments);for(var D=0,B=C.length;D<B;D++){var E=C[D];switch($type(E)){case"element":E=[E];break;case"string":E=this.document.getElements(E,true);break;default:E=false;}if(E){F.extend(E);}}return new Elements(F);},getDocument:function(){return this.document;},getWindow:function(){return this;}});$.string=function(C,B,A){C=A.getElementById(C);return(C)?$.element(C,B):null;};$.element=function(A,D){$uid(A);if(!D&&!A.$family&&!(/^object|embed$/i).test(A.tagName)){var B=Element.Prototype;for(var C in B){A[C]=B[C];}}return A;};$.object=function(B,C,A){if(B.toElement){return $.element(B.toElement(A),C);}return null;};$.textnode=$.whitespace=$.window=$.document=$arguments(0);Native.implement([Element,Document],{getElement:function(A,B){return $(this.getElements(A,true)[0]||null,B);},getElements:function(A,D){A=A.split(",");var C=[];var B=(A.length>1);A.each(function(E){var F=this.getElementsByTagName(E.trim());(B)?C.extend(F):C=F;},this);return new Elements(C,{ddup:B,cash:!D});}});Element.Storage={get:function(A){return(this[A]||(this[A]={}));}};Element.Inserters=new Hash({before:function(B,A){if(A.parentNode){A.parentNode.insertBefore(B,A);}},after:function(B,A){if(!A.parentNode){return;}var C=A.nextSibling;(C)?A.parentNode.insertBefore(B,C):A.parentNode.appendChild(B);},bottom:function(B,A){A.appendChild(B);},top:function(B,A){var C=A.firstChild;(C)?A.insertBefore(B,C):A.appendChild(B);}});Element.Inserters.inside=Element.Inserters.bottom;Element.Inserters.each(function(C,B){var A=B.capitalize();Element.implement("inject"+A,function(D){C(this,$(D,true));return this;});Element.implement("grab"+A,function(D){C($(D,true),this);return this;});});Element.implement({getDocument:function(){return this.ownerDocument;},getWindow:function(){return this.ownerDocument.getWindow();},getElementById:function(D,C){var B=this.ownerDocument.getElementById(D);if(!B){return null;}for(var A=B.parentNode;A!=this;A=A.parentNode){if(!A){return null;}}return $.element(B,C);},set:function(D,B){switch($type(D)){case"object":for(var C in D){this.set(C,D[C]);}break;case"string":var A=Element.Properties.get(D);(A&&A.set)?A.set.apply(this,Array.slice(arguments,1)):this.setProperty(D,B);}return this;},get:function(B){var A=Element.Properties.get(B);return(A&&A.get)?A.get.apply(this,Array.slice(arguments,1)):this.getProperty(B);},erase:function(B){var A=Element.Properties.get(B);(A&&A.erase)?A.erase.apply(this,Array.slice(arguments,1)):this.removeProperty(B);return this;},match:function(A){return(!A||Element.get(this,"tag")==A);},inject:function(B,A){Element.Inserters.get(A||"bottom")(this,$(B,true));return this;},wraps:function(B,A){B=$(B,true);return this.replaces(B).grab(B,A);},grab:function(B,A){Element.Inserters.get(A||"bottom")($(B,true),this);return this;},appendText:function(B,A){return this.grab(this.getDocument().newTextNode(B),A);},adopt:function(){Array.flatten(arguments).each(function(A){A=$(A,true);if(A){this.appendChild(A);}},this);return this;},dispose:function(){return(this.parentNode)?this.parentNode.removeChild(this):this;},clone:function(D,C){switch($type(this)){case"element":var H={};for(var G=0,E=this.attributes.length;G<E;G++){var B=this.attributes[G],L=B.nodeName.toLowerCase();if(Browser.Engine.trident&&(/input/i).test(this.tagName)&&(/width|height/).test(L)){continue;}var K=(L=="style"&&this.style)?this.style.cssText:B.nodeValue;if(!$chk(K)||L=="uid"||(L=="id"&&!C)){continue;}if(K!="inherit"&&["string","number"].contains($type(K))){H[L]=K;}}var J=new Element(this.nodeName.toLowerCase(),H);if(D!==false){for(var I=0,F=this.childNodes.length;I<F;I++){var A=Element.clone(this.childNodes[I],true,C);if(A){J.grab(A);}}}return J;case"textnode":return document.newTextNode(this.nodeValue);}return null;},replaces:function(A){A=$(A,true);A.parentNode.replaceChild(this,A);return this;},hasClass:function(A){return this.className.contains(A," ");},addClass:function(A){if(!this.hasClass(A)){this.className=(this.className+" "+A).clean();}return this;},removeClass:function(A){this.className=this.className.replace(new RegExp("(^|\\s)"+A+"(?:\\s|$)"),"$1").clean();return this;},toggleClass:function(A){return this.hasClass(A)?this.removeClass(A):this.addClass(A);},getComputedStyle:function(B){if(this.currentStyle){return this.currentStyle[B.camelCase()];}var A=this.getWindow().getComputedStyle(this,null);return(A)?A.getPropertyValue([B.hyphenate()]):null;},empty:function(){$A(this.childNodes).each(function(A){Browser.freeMem(A);Element.empty(A);Element.dispose(A);},this);return this;},destroy:function(){Browser.freeMem(this.empty().dispose());return null;},getSelected:function(){return new Elements($A(this.options).filter(function(A){return A.selected;}));},toQueryString:function(){var A=[];this.getElements("input, select, textarea").each(function(B){if(!B.name||B.disabled){return;}var C=(B.tagName.toLowerCase()=="select")?Element.getSelected(B).map(function(D){return D.value;}):((B.type=="radio"||B.type=="checkbox")&&!B.checked)?null:B.value;$splat(C).each(function(D){if(D){A.push(B.name+"="+encodeURIComponent(D));}});});return A.join("&");},getProperty:function(C){var B=Element.Attributes,A=B.Props[C];var D=(A)?this[A]:this.getAttribute(C,2);return(B.Bools[C])?!!D:(A)?D:D||null;},getProperties:function(){var A=$A(arguments);return A.map(function(B){return this.getProperty(B);},this).associate(A);},setProperty:function(D,E){var C=Element.Attributes,B=C.Props[D],A=$defined(E);if(B&&C.Bools[D]){E=(E||!A)?true:false;}else{if(!A){return this.removeProperty(D);}}(B)?this[B]=E:this.setAttribute(D,E);return this;},setProperties:function(A){for(var B in A){this.setProperty(B,A[B]);}return this;},removeProperty:function(D){var C=Element.Attributes,B=C.Props[D],A=(B&&C.Bools[D]);(B)?this[B]=(A)?false:"":this.removeAttribute(D);return this;},removeProperties:function(){Array.each(arguments,this.removeProperty,this);return this;}});(function(){var A=function(D,B,I,C,F,H){var E=D[I||B];var G=[];while(E){if(E.nodeType==1&&(!C||Element.match(E,C))){G.push(E);if(!F){break;}}E=E[B];}return(F)?new Elements(G,{ddup:false,cash:!H}):$(G[0],H);};Element.implement({getPrevious:function(B,C){return A(this,"previousSibling",null,B,false,C);},getAllPrevious:function(B,C){return A(this,"previousSibling",null,B,true,C);},getNext:function(B,C){return A(this,"nextSibling",null,B,false,C);},getAllNext:function(B,C){return A(this,"nextSibling",null,B,true,C);},getFirst:function(B,C){return A(this,"nextSibling","firstChild",B,false,C);},getLast:function(B,C){return A(this,"previousSibling","lastChild",B,false,C);},getParent:function(B,C){return A(this,"parentNode",null,B,false,C);},getParents:function(B,C){return A(this,"parentNode",null,B,true,C);},getChildren:function(B,C){return A(this,"nextSibling","firstChild",B,true,C);},hasChild:function(B){B=$(B,true);return(!!B&&$A(this.getElementsByTagName(B.tagName)).contains(B));}});})();Element.Properties=new Hash;Element.Properties.style={set:function(A){this.style.cssText=A;},get:function(){return this.style.cssText;},erase:function(){this.style.cssText="";}};Element.Properties.tag={get:function(){return this.tagName.toLowerCase();}};Element.Properties.href={get:function(){return(!this.href)?null:this.href.replace(new RegExp("^"+document.location.protocol+"//"+document.location.host),"");}};Element.Properties.html={set:function(){return this.innerHTML=Array.flatten(arguments).join("");}};Native.implement([Element,Window,Document],{addListener:function(B,A){if(this.addEventListener){this.addEventListener(B,A,false);}else{this.attachEvent("on"+B,A);}return this;},removeListener:function(B,A){if(this.removeEventListener){this.removeEventListener(B,A,false);}else{this.detachEvent("on"+B,A);}return this;},retrieve:function(B,A){var D=Element.Storage.get(this.uid);var C=D[B];if($defined(A)&&!$defined(C)){C=D[B]=A;}return $pick(C);},store:function(B,A){var C=Element.Storage.get(this.uid);C[B]=A;return this;},eliminate:function(A){var B=Element.Storage.get(this.uid);delete B[A];return this;}});Element.Attributes=new Hash({Props:{html:"innerHTML","class":"className","for":"htmlFor",text:(Browser.Engine.trident)?"innerText":"textContent"},Bools:["compact","nowrap","ismap","declare","noshade","checked","disabled","readonly","multiple","selected","noresize","defer"],Camels:["value","accessKey","cellPadding","cellSpacing","colSpan","frameBorder","maxLength","readOnly","rowSpan","tabIndex","useMap"]});Browser.freeMem=function(A){if(!A){return;}if(Browser.Engine.trident&&(/object/i).test(A.tagName)){for(var B in A){if(typeof A[B]=="function"){A[B]=$empty;}}Element.dispose(A);}if(A.uid&&A.removeEvents){A.removeEvents();}};(function(B){var C=B.Bools,A=B.Camels;B.Bools=C=C.associate(C);Hash.extend(Hash.combine(B.Props,C),A.associate(A.map(function(D){return D.toLowerCase();})));B.erase("Camels");})(Element.Attributes);window.addListener("unload",function(){window.removeListener("unload",arguments.callee);document.purge();if(Browser.Engine.trident){CollectGarbage();}});Element.Properties.events={set:function(A){this.addEvents(A);}};Native.implement([Element,Window,Document],{addEvent:function(E,G){var H=this.retrieve("events",{});H[E]=H[E]||{keys:[],values:[]};if(H[E].keys.contains(G)){return this;}H[E].keys.push(G);var F=E,A=Element.Events.get(E),C=G,I=this;if(A){if(A.onAdd){A.onAdd.call(this,G);}if(A.condition){C=function(J){if(A.condition.call(this,J)){return G.call(this,J);}return false;};}F=A.base||F;}var D=function(){return G.call(I);};var B=Element.NativeEvents[F]||0;if(B){if(B==2){D=function(J){J=new Event(J,I.getWindow());if(C.call(I,J)===false){J.stop();}};}this.addListener(F,D);}H[E].values.push(D);return this;},removeEvent:function(D,C){var B=this.retrieve("events");if(!B||!B[D]){return this;}var G=B[D].keys.indexOf(C);if(G==-1){return this;}var A=B[D].keys.splice(G,1)[0];var F=B[D].values.splice(G,1)[0];var E=Element.Events.get(D);if(E){if(E.onRemove){E.onRemove.call(this,C);}D=E.base||D;}return(Element.NativeEvents[D])?this.removeListener(D,F):this;},addEvents:function(A){for(var B in A){this.addEvent(B,A[B]);}return this;},removeEvents:function(B){var A=this.retrieve("events");if(!A){return this;}if(!B){for(var C in A){this.removeEvents(C);}A=null;}else{if(A[B]){while(A[B].keys[0]){this.removeEvent(B,A[B].keys[0]);}A[B]=null;}}return this;},fireEvent:function(D,B,A){var C=this.retrieve("events");if(!C||!C[D]){return this;}C[D].keys.each(function(E){E.create({bind:this,delay:A,"arguments":B})();},this);return this;},cloneEvents:function(D,A){D=$(D);var C=D.retrieve("events");if(!C){return this;}if(!A){for(var B in C){this.cloneEvents(D,B);}}else{if(C[A]){C[A].keys.each(function(E){this.addEvent(A,E);},this);}}return this;}});Element.NativeEvents={click:2,dblclick:2,mouseup:2,mousedown:2,contextmenu:2,mousewheel:2,DOMMouseScroll:2,mouseover:2,mouseout:2,mousemove:2,selectstart:2,selectend:2,keydown:2,keypress:2,keyup:2,focus:2,blur:2,change:2,reset:2,select:2,submit:2,load:1,unload:1,beforeunload:2,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1};(function(){var A=function(B){var C=B.relatedTarget;if(C==undefined){return true;}if(C===false){return false;}return($type(this)!="document"&&C!=this&&C.prefix!="xul"&&!this.hasChild(C));};Element.Events=new Hash({mouseenter:{base:"mouseover",condition:A},mouseleave:{base:"mouseout",condition:A},mousewheel:{base:(Browser.Engine.gecko)?"DOMMouseScroll":"mousewheel"}});})();Element.Properties.styles={set:function(A){this.setStyles(A);}};Element.Properties.opacity={set:function(A,B){if(!B){if(A==0){if(this.style.visibility!="hidden"){this.style.visibility="hidden";}}else{if(this.style.visibility!="visible"){this.style.visibility="visible";}}}if(!this.currentStyle||!this.currentStyle.hasLayout){this.style.zoom=1;}if(Browser.Engine.trident){this.style.filter=(A==1)?"":"alpha(opacity="+A*100+")";}this.style.opacity=A;this.store("opacity",A);},get:function(){return this.retrieve("opacity",1);}};Element.implement({setOpacity:function(A){return this.set("opacity",A,true);},getOpacity:function(){return this.get("opacity");},setStyle:function(B,A){switch(B){case"opacity":return this.set("opacity",parseFloat(A));case"float":B=(Browser.Engine.trident)?"styleFloat":"cssFloat";}B=B.camelCase();if($type(A)!="string"){var C=(Element.Styles.get(B)||"@").split(" ");A=$splat(A).map(function(E,D){if(!C[D]){return"";}return($type(E)=="number")?C[D].replace("@",Math.round(E)):E;}).join(" ");}else{if(A==String(Number(A))){A=Math.round(A);}}this.style[B]=A;return this;},getStyle:function(G){switch(G){case"opacity":return this.get("opacity");case"float":G=(Browser.Engine.trident)?"styleFloat":"cssFloat";}G=G.camelCase();var A=this.style[G];if(!$chk(A)){A=[];for(var F in Element.ShortStyles){if(G!=F){continue;}for(var E in Element.ShortStyles[F]){A.push(this.getStyle(E));}return A.join(" ");}A=this.getComputedStyle(G);}if(A){A=String(A);var C=A.match(/rgba?\([\d\s,]+\)/);if(C){A=A.replace(C[0],C[0].rgbToHex());}}if(Browser.Engine.presto||(Browser.Engine.trident&&!$chk(parseInt(A)))){if(G.test(/^(height|width)$/)){var B=(G=="width")?["left","right"]:["top","bottom"],D=0;B.each(function(H){D+=this.getStyle("border-"+H+"-width").toInt()+this.getStyle("padding-"+H).toInt();},this);return this["offset"+G.capitalize()]-D+"px";}if(Browser.Engine.presto&&String(A).test("px")){return A;}if(G.test(/(border(.+)Width|margin|padding)/)){return"0px";}}return A;},setStyles:function(B){for(var A in B){this.setStyle(A,B[A]);}return this;},getStyles:function(){var A={};Array.each(arguments,function(B){A[B]=this.getStyle(B);},this);return A;}});Element.Styles=new Hash({left:"@px",top:"@px",bottom:"@px",right:"@px",width:"@px",height:"@px",maxWidth:"@px",maxHeight:"@px",minWidth:"@px",minHeight:"@px",backgroundColor:"rgb(@, @, @)",backgroundPosition:"@px @px",color:"rgb(@, @, @)",fontSize:"@px",letterSpacing:"@px",lineHeight:"@px",clip:"rect(@px @px @px @px)",margin:"@px @px @px @px",padding:"@px @px @px @px",border:"@px @ rgb(@, @, @) @px @ rgb(@, @, @) @px @ rgb(@, @, @)",borderWidth:"@px @px @px @px",borderStyle:"@ @ @ @",borderColor:"rgb(@, @, @) rgb(@, @, @) rgb(@, @, @) rgb(@, @, @)",zIndex:"@",zoom:"@",fontWeight:"@",textIndent:"@px",opacity:"@"});Element.ShortStyles={margin:{},padding:{},border:{},borderWidth:{},borderStyle:{},borderColor:{}};["Top","Right","Bottom","Left"].each(function(G){var F=Element.ShortStyles;var B=Element.Styles;["margin","padding"].each(function(H){var I=H+G;F[H][I]=B[I]="@px";});var E="border"+G;F.border[E]=B[E]="@px @ rgb(@, @, @)";var D=E+"Width",A=E+"Style",C=E+"Color";F[E]={};F.borderWidth[D]=F[E][D]=B[D]="@px";F.borderStyle[A]=F[E][A]=B[A]="@";F.borderColor[C]=F[E][C]=B[C]="rgb(@, @, @)";});(function(){Element.implement({scrollTo:function(H,I){if(B(this)){this.getWindow().scrollTo(H,I);}else{this.scrollLeft=H;this.scrollTop=I;}return this;},getSize:function(){if(B(this)){return this.getWindow().getSize();}return{x:this.offsetWidth,y:this.offsetHeight};},getScrollSize:function(){if(B(this)){return this.getWindow().getScrollSize();}return{x:this.scrollWidth,y:this.scrollHeight};},getScroll:function(){if(B(this)){return this.getWindow().getScroll();}return{x:this.scrollLeft,y:this.scrollTop};},getScrolls:function(){var I=this,H={x:0,y:0};while(I&&!B(I)){H.x+=I.scrollLeft;H.y+=I.scrollTop;I=I.parentNode;}return H;},getOffsetParent:function(){var H=this;if(B(H)){return null;}if(!Browser.Engine.trident){return H.offsetParent;}while((H=H.parentNode)&&!B(H)){if(D(H,"position")!="static"){return H;}}return null;},getOffsets:function(){var I=this,H={x:0,y:0};if(B(this)){return H;}while(I&&!B(I)){H.x+=I.offsetLeft;H.y+=I.offsetTop;if(Browser.Engine.gecko){if(!F(I)){H.x+=C(I);H.y+=G(I);}var J=I.parentNode;if(J&&D(J,"overflow")!="visible"){H.x+=C(J);H.y+=G(J);}}else{if(I!=this&&(Browser.Engine.trident||Browser.Engine.webkit)){H.x+=C(I);H.y+=G(I);}}I=I.offsetParent;if(Browser.Engine.trident){while(I&&!I.currentStyle.hasLayout){I=I.offsetParent;}}}if(Browser.Engine.gecko&&!F(this)){H.x-=C(this);H.y-=G(this);}return H;},getPosition:function(K){if(B(this)){return{x:0,y:0};}var L=this.getOffsets(),I=this.getScrolls();var H={x:L.x-I.x,y:L.y-I.y};var J=(K&&(K=$(K)))?K.getPosition():{x:0,y:0};return{x:H.x-J.x,y:H.y-J.y};},getCoordinates:function(J){if(B(this)){return this.getWindow().getCoordinates();}var H=this.getPosition(J),I=this.getSize();var K={left:H.x,top:H.y,width:I.x,height:I.y};K.right=K.left+K.width;K.bottom=K.top+K.height;return K;},computePosition:function(H){return{left:H.x-E(this,"margin-left"),top:H.y-E(this,"margin-top")};},position:function(H){return this.setStyles(this.computePosition(H));}});Native.implement([Document,Window],{getSize:function(){var I=this.getWindow();if(Browser.Engine.presto||Browser.Engine.webkit){return{x:I.innerWidth,y:I.innerHeight};}var H=A(this);return{x:H.clientWidth,y:H.clientHeight};},getScroll:function(){var I=this.getWindow();var H=A(this);return{x:I.pageXOffset||H.scrollLeft,y:I.pageYOffset||H.scrollTop};},getScrollSize:function(){var I=A(this);var H=this.getSize();return{x:Math.max(I.scrollWidth,H.x),y:Math.max(I.scrollHeight,H.y)};},getPosition:function(){return{x:0,y:0};},getCoordinates:function(){var H=this.getSize();return{top:0,left:0,bottom:H.y,right:H.x,height:H.y,width:H.x};}});var D=Element.getComputedStyle;function E(H,I){return D(H,I).toInt()||0;}function F(H){return D(H,"-moz-box-sizing")=="border-box";}function G(H){return E(H,"border-top-width");}function C(H){return E(H,"border-left-width");}function B(H){return(/^(?:body|html)$/i).test(H.tagName);}function A(H){var I=H.getDocument();return(!I.compatMode||I.compatMode=="CSS1Compat")?I.html:I.body;}})();Native.implement([Window,Document,Element],{getHeight:function(){return this.getSize().y;},getWidth:function(){return this.getSize().x;},getScrollTop:function(){return this.getScroll().y;},getScrollLeft:function(){return this.getScroll().x;},getScrollHeight:function(){return this.getScrollSize().y;},getScrollWidth:function(){return this.getScrollSize().x;},getTop:function(){return this.getPosition().y;},getLeft:function(){return this.getPosition().x;}});Native.implement([Document,Element],{getElements:function(H,G){H=H.split(",");var C,E={};for(var D=0,B=H.length;D<B;D++){var A=H[D],F=Selectors.Utils.search(this,A,E);if(D!=0&&F.item){F=$A(F);}C=(D==0)?F:(C.item)?$A(C).concat(F):C.concat(F);}return new Elements(C,{ddup:(H.length>1),cash:!G});}});Element.implement({match:function(B){if(!B){return true;}var D=Selectors.Utils.parseTagAndID(B);var A=D[0],E=D[1];if(!Selectors.Filters.byID(this,E)||!Selectors.Filters.byTag(this,A)){return false;}var C=Selectors.Utils.parseSelector(B);return(C)?Selectors.Utils.filter(this,C,{}):true;}});var Selectors={Cache:{nth:{},parsed:{}}};Selectors.RegExps={id:(/#([\w-]+)/),tag:(/^(\w+|\*)/),quick:(/^(\w+|\*)$/),splitter:(/\s*([+>~\s])\s*([a-zA-Z#.*:\[])/g),combined:(/\.([\w-]+)|\[(\w+)(?:([!*^$~|]?=)["']?(.*?)["']?)?\]|:([\w-]+)(?:\(["']?(.*?)?["']?\)|$)/g)};Selectors.Utils={chk:function(B,C){if(!C){return true;}var A=$uid(B);if(!C[A]){return C[A]=true;}return false;},parseNthArgument:function(F){if(Selectors.Cache.nth[F]){return Selectors.Cache.nth[F];}var C=F.match(/^([+-]?\d*)?([a-z]+)?([+-]?\d*)?$/);if(!C){return false;}var E=parseInt(C[1]);var B=(E||E===0)?E:1;var D=C[2]||false;var A=parseInt(C[3])||0;if(B!=0){A--;while(A<1){A+=B;}while(A>=B){A-=B;}}else{B=A;D="index";}switch(D){case"n":C={a:B,b:A,special:"n"};break;case"odd":C={a:2,b:0,special:"n"};break;case"even":C={a:2,b:1,special:"n"};break;case"first":C={a:0,special:"index"};break;case"last":C={special:"last-child"};break;case"only":C={special:"only-child"};break;default:C={a:(B-1),special:"index"};}return Selectors.Cache.nth[F]=C;},parseSelector:function(E){if(Selectors.Cache.parsed[E]){return Selectors.Cache.parsed[E];}var D,H={classes:[],pseudos:[],attributes:[]};while((D=Selectors.RegExps.combined.exec(E))){var I=D[1],G=D[2],F=D[3],B=D[4],C=D[5],J=D[6];if(I){H.classes.push(I);}else{if(C){var A=Selectors.Pseudo.get(C);if(A){H.pseudos.push({parser:A,argument:J});}else{H.attributes.push({name:C,operator:"=",value:J});}}else{if(G){H.attributes.push({name:G,operator:F,value:B});}}}}if(!H.classes.length){delete H.classes;}if(!H.attributes.length){delete H.attributes;}if(!H.pseudos.length){delete H.pseudos;}if(!H.classes&&!H.attributes&&!H.pseudos){H=null;}return Selectors.Cache.parsed[E]=H;},parseTagAndID:function(B){var A=B.match(Selectors.RegExps.tag);var C=B.match(Selectors.RegExps.id);return[(A)?A[1]:"*",(C)?C[1]:false];},filter:function(F,C,E){var D;if(C.classes){for(D=C.classes.length;D--;D){var G=C.classes[D];if(!Selectors.Filters.byClass(F,G)){return false;}}}if(C.attributes){for(D=C.attributes.length;D--;D){var B=C.attributes[D];if(!Selectors.Filters.byAttribute(F,B.name,B.operator,B.value)){return false;}}}if(C.pseudos){for(D=C.pseudos.length;D--;D){var A=C.pseudos[D];if(!Selectors.Filters.byPseudo(F,A.parser,A.argument,E)){return false;}}}return true;},getByTagAndID:function(B,A,D){if(D){var C=(B.getElementById)?B.getElementById(D,true):Element.getElementById(B,D,true);return(C&&Selectors.Filters.byTag(C,A))?[C]:[];}else{return B.getElementsByTagName(A);}},search:function(J,I,O){var B=[];var C=I.trim().replace(Selectors.RegExps.splitter,function(Z,Y,X){B.push(Y);return":)"+X;}).split(":)");var K,F,E,V;for(var U=0,Q=C.length;U<Q;U++){var T=C[U];if(U==0&&Selectors.RegExps.quick.test(T)){K=J.getElementsByTagName(T);continue;}var A=B[U-1];var L=Selectors.Utils.parseTagAndID(T);var W=L[0],M=L[1];if(U==0){K=Selectors.Utils.getByTagAndID(J,W,M);}else{var D={},H=[];for(var S=0,R=K.length;S<R;S++){H=Selectors.Getters[A](H,K[S],W,M,D);}K=H;}var G=Selectors.Utils.parseSelector(T);if(G){E=[];for(var P=0,N=K.length;P<N;P++){V=K[P];if(Selectors.Utils.filter(V,G,O)){E.push(V);}}K=E;}}return K;}};Selectors.Getters={" ":function(H,G,I,A,E){var D=Selectors.Utils.getByTagAndID(G,I,A);for(var C=0,B=D.length;C<B;C++){var F=D[C];if(Selectors.Utils.chk(F,E)){H.push(F);}}return H;},">":function(H,G,I,A,F){var C=Selectors.Utils.getByTagAndID(G,I,A);for(var E=0,D=C.length;E<D;E++){var B=C[E];if(B.parentNode==G&&Selectors.Utils.chk(B,F)){H.push(B);}}return H;},"+":function(C,B,A,E,D){while((B=B.nextSibling)){if(B.nodeType==1){if(Selectors.Utils.chk(B,D)&&Selectors.Filters.byTag(B,A)&&Selectors.Filters.byID(B,E)){C.push(B);}break;}}return C;},"~":function(C,B,A,E,D){while((B=B.nextSibling)){if(B.nodeType==1){if(!Selectors.Utils.chk(B,D)){break;}if(Selectors.Filters.byTag(B,A)&&Selectors.Filters.byID(B,E)){C.push(B);}}}return C;}};Selectors.Filters={byTag:function(B,A){return(A=="*"||(B.tagName&&B.tagName.toLowerCase()==A));},byID:function(A,B){return(!B||(A.id&&A.id==B));},byClass:function(B,A){return(B.className&&B.className.contains(A," "));},byPseudo:function(A,D,C,B){return D.call(A,C,B);},byAttribute:function(C,D,B,E){var A=Element.prototype.getProperty.call(C,D);if(!A){return false;}if(!B||E==undefined){return true;}switch(B){case"=":return(A==E);case"*=":return(A.contains(E));case"^=":return(A.substr(0,E.length)==E);case"$=":return(A.substr(A.length-E.length)==E);case"!=":return(A!=E);case"~=":return A.contains(E," ");case"|=":return A.contains(E,"-");}return false;}};Selectors.Pseudo=new Hash({empty:function(){return!(this.innerText||this.textContent||"").length;},not:function(A){return!Element.match(this,A);},contains:function(A){return(this.innerText||this.textContent||"").contains(A);},"first-child":function(){return Selectors.Pseudo.index.call(this,0);},"last-child":function(){var A=this;while((A=A.nextSibling)){if(A.nodeType==1){return false;}}return true;},"only-child":function(){var B=this;while((B=B.previousSibling)){if(B.nodeType==1){return false;}}var A=this;while((A=A.nextSibling)){if(A.nodeType==1){return false;}}return true;},"nth-child":function(G,E){G=(G==undefined)?"n":G;var C=Selectors.Utils.parseNthArgument(G);if(C.special!="n"){return Selectors.Pseudo[C.special].call(this,C.a,E);}var F=0;E.positions=E.positions||{};var D=$uid(this);if(!E.positions[D]){var B=this;while((B=B.previousSibling)){if(B.nodeType!=1){continue;}F++;var A=E.positions[$uid(B)];if(A!=undefined){F=A+F;break;}}E.positions[D]=F;}return(E.positions[D]%C.a==C.b);},index:function(A){var B=this,C=0;while((B=B.previousSibling)){if(B.nodeType==1&&++C>A){return false;}}return(C==A);},even:function(B,A){return Selectors.Pseudo["nth-child"].call(this,"2n+1",A);},odd:function(B,A){return Selectors.Pseudo["nth-child"].call(this,"2n",A);}});Element.Events.domready={onAdd:function(A){if(Browser.loaded){A.call(this);}}};(function(){var B=function(){if(Browser.loaded){return;}Browser.loaded=true;window.fireEvent("domready");document.fireEvent("domready");};switch(Browser.Engine.name){case"webkit":(function(){(["loaded","complete"].contains(document.readyState))?B():arguments.callee.delay(50);})();break;case"trident":var A=document.createElement("div");(function(){($try(function(){A.doScroll("left");return $(A).inject(document.body).set("html","temp").dispose();}))?B():arguments.callee.delay(50);})();break;default:window.addEvent("load",B);document.addEvent("DOMContentLoaded",B);}})();var JSON=new Hash({encode:function(B){switch($type(B)){case"string":return'"'+B.replace(/[\x00-\x1f\\"]/g,JSON.$replaceChars)+'"';case"array":return"["+String(B.map(JSON.encode).filter($defined))+"]";case"object":case"hash":var A=[];Hash.each(B,function(E,D){var C=JSON.encode(E);if(C){A.push(JSON.encode(D)+":"+C);}});return"{"+A+"}";case"number":case"boolean":return String(B);case false:return"null";}return null;},$specialChars:{"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},$replaceChars:function(A){return JSON.$specialChars[A]||"\\u00"+Math.floor(A.charCodeAt()/16).toString(16)+(A.charCodeAt()%16).toString(16);},decode:function(string,secure){if($type(string)!="string"||!string.length){return null;}if(secure&&!(/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(string.replace(/\\./g,"@").replace(/"[^"\\\n\r]*"/g,""))){return null;}return eval("("+string+")");}});Native.implement([Hash,Array,String,Number],{toJSON:function(){return JSON.encode(this);}});var Cookie=new Class({Implements:Options,options:{path:false,domain:false,duration:false,secure:false,document:document},initialize:function(B,A){this.key=B;this.setOptions(A);},write:function(B){B=encodeURIComponent(B);if(this.options.domain){B+="; domain="+this.options.domain;}if(this.options.path){B+="; path="+this.options.path;}if(this.options.duration){var A=new Date();A.setTime(A.getTime()+this.options.duration*24*60*60*1000);B+="; expires="+A.toGMTString();}if(this.options.secure){B+="; secure";}this.options.document.cookie=this.key+"="+B;return this;},read:function(){var A=this.options.document.cookie.match("(?:^|;)\\s*"+this.key.escapeRegExp()+"=([^;]*)");return(A)?decodeURIComponent(A[1]):null;},dispose:function(){new Cookie(this.key,$merge(this.options,{duration:-1})).write("");return this;}});Cookie.write=function(B,C,A){return new Cookie(B,A).write(C);};Cookie.read=function(A){return new Cookie(A).read();};Cookie.dispose=function(B,A){return new Cookie(B,A).dispose();};var Swiff=new Class({Implements:[Options],options:{id:null,height:1,width:1,container:null,properties:{},params:{quality:"high",allowScriptAccess:"always",wMode:"transparent",swLiveConnect:true},callBacks:{},vars:{}},toElement:function(){return this.object;},initialize:function(L,M){this.instance="Swiff_"+$time();this.setOptions(M);M=this.options;var B=this.id=M.id||this.instance;var A=$(M.container);Swiff.CallBacks[this.instance]={};var E=M.params,G=M.vars,F=M.callBacks;var H=$extend({height:M.height,width:M.width},M.properties);var K=this;for(var D in F){Swiff.CallBacks[this.instance][D]=(function(N){return function(){return N.apply(K.object,arguments);};})(F[D]);G[D]="Swiff.CallBacks."+this.instance+"."+D;}E.flashVars=Hash.toQueryString(G);if(Browser.Engine.trident){H.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";E.movie=L;}else{H.type="application/x-shockwave-flash";H.data=L;}var J='<object id="'+B+'"';for(var I in H){J+=" "+I+'="'+H[I]+'"';}J+=">";for(var C in E){if(E[C]){J+='<param name="'+C+'" value="'+E[C]+'" />';}}J+="</object>";this.object=((A)?A.empty():new Element("div")).set("html",J).firstChild;},replaces:function(A){A=$(A,true);A.parentNode.replaceChild(this.toElement(),A);return this;},inject:function(A){$(A,true).appendChild(this.toElement());return this;},remote:function(){return Swiff.remote.apply(Swiff,[this.toElement()].extend(arguments));}});Swiff.CallBacks={};Swiff.remote=function(obj,fn){var rs=obj.CallFunction('<invoke name="'+fn+'" returntype="javascript">'+__flash__argumentsToXML(arguments,2)+"</invoke>");return eval(rs);};var Fx=new Class({Implements:[Chain,Events,Options],options:{fps:50,unit:false,duration:500,link:"ignore",transition:function(A){return-(Math.cos(Math.PI*A)-1)/2;}},initialize:function(A){this.subject=this.subject||this;this.setOptions(A);this.options.duration=Fx.Durations[this.options.duration]||this.options.duration.toInt();var B=this.options.wait;if(B===false){this.options.link="cancel";}},step:function(){var A=$time();if(A<this.time+this.options.duration){var B=this.options.transition((A-this.time)/this.options.duration);this.set(this.compute(this.from,this.to,B));}else{this.set(this.compute(this.from,this.to,1));this.complete();}},set:function(A){return A;},compute:function(C,B,A){return Fx.compute(C,B,A);},check:function(A){if(!this.timer){return true;}switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(A.bind(this,Array.slice(arguments,1)));return false;}return false;},start:function(B,A){if(!this.check(arguments.callee,B,A)){return this;}this.from=B;this.to=A;this.time=0;this.startTimer();this.onStart();return this;},complete:function(){if(this.stopTimer()){this.onComplete();}return this;},cancel:function(){if(this.stopTimer()){this.onCancel();}return this;},onStart:function(){this.fireEvent("start",this.subject);},onComplete:function(){this.fireEvent("complete",this.subject);if(!this.callChain()){this.fireEvent("chainComplete",this.subject);}},onCancel:function(){this.fireEvent("cancel",this.subject).clearChain();},pause:function(){this.stopTimer();return this;},resume:function(){this.startTimer();return this;},stopTimer:function(){if(!this.timer){return false;}this.time=$time()-this.time;this.timer=$clear(this.timer);return true;},startTimer:function(){if(this.timer){return false;}this.time=$time()-this.time;this.timer=this.step.periodical(Math.round(1000/this.options.fps),this);return true;}});Fx.compute=function(C,B,A){return(B-C)*A+C;};Fx.Durations={"short":250,normal:500,"long":1000};Fx.CSS=new Class({Extends:Fx,prepare:function(D,E,B){B=$splat(B);var C=B[1];if(!$chk(C)){B[1]=B[0];B[0]=D.getStyle(E);}var A=B.map(this.parse);return{from:A[0],to:A[1]};},parse:function(A){A=$lambda(A)();A=(typeof A=="string")?A.split(" "):$splat(A);return A.map(function(C){C=String(C);var B=false;Fx.CSS.Parsers.each(function(F,E){if(B){return;}var D=F.parse(C);if($chk(D)){B={value:D,parser:F};}});B=B||{value:C,parser:Fx.CSS.Parsers.String};return B;});},compute:function(D,C,B){var A=[];(Math.min(D.length,C.length)).times(function(E){A.push({value:D[E].parser.compute(D[E].value,C[E].value,B),parser:D[E].parser});});A.$family={name:"fx:css:value"};return A;},serve:function(C,B){if($type(C)!="fx:css:value"){C=this.parse(C);}var A=[];C.each(function(D){A=A.concat(D.parser.serve(D.value,B));});return A;},render:function(A,D,C,B){A.setStyle(D,this.serve(C,B));},search:function(A){if(Fx.CSS.Cache[A]){return Fx.CSS.Cache[A];}var B={};Array.each(document.styleSheets,function(E,D){var C=E.href;if(C&&C.contains("://")&&!C.contains(document.domain)){return;}var F=E.rules||E.cssRules;Array.each(F,function(I,G){if(!I.style){return;}var H=(I.selectorText)?I.selectorText.replace(/^\w+/,function(J){return J.toLowerCase();}):null;if(!H||!H.test("^"+A+"$")){return;}Element.Styles.each(function(K,J){if(!I.style[J]||Element.ShortStyles[J]){return;}K=String(I.style[J]);B[J]=(K.test(/^rgb/))?K.rgbToHex():K;});});});return Fx.CSS.Cache[A]=B;}});Fx.CSS.Cache={};Fx.CSS.Parsers=new Hash({Color:{parse:function(A){if(A.match(/^#[0-9a-f]{3,6}$/i)){return A.hexToRgb(true);}return((A=A.match(/(\d+),\s*(\d+),\s*(\d+)/)))?[A[1],A[2],A[3]]:false;},compute:function(C,B,A){return C.map(function(E,D){return Math.round(Fx.compute(C[D],B[D],A));});},serve:function(A){return A.map(Number);}},Number:{parse:parseFloat,compute:Fx.compute,serve:function(B,A){return(A)?B+A:B;}},String:{parse:$lambda(false),compute:$arguments(1),serve:$arguments(0)}});Fx.Tween=new Class({Extends:Fx.CSS,initialize:function(B,A){this.element=this.subject=$(B);this.parent(A);},set:function(B,A){if(arguments.length==1){A=B;B=this.property||this.options.property;}this.render(this.element,B,A,this.options.unit);return this;},start:function(C,E,D){if(!this.check(arguments.callee,C,E,D)){return this;}var B=Array.flatten(arguments);this.property=this.options.property||B.shift();var A=this.prepare(this.element,this.property,B);return this.parent(A.from,A.to);}});Element.Properties.tween={set:function(A){var B=this.retrieve("tween");if(B){B.cancel();}return this.eliminate("tween").store("tween:options",$extend({link:"cancel"},A));},get:function(A){if(A||!this.retrieve("tween")){if(A||!this.retrieve("tween:options")){this.set("tween",A);}this.store("tween",new Fx.Tween(this,this.retrieve("tween:options")));}return this.retrieve("tween");}};Element.implement({tween:function(A,C,B){this.get("tween").start(arguments);return this;},fade:function(C){var E=this.get("tween"),D="opacity",A;C=$pick(C,"toggle");switch(C){case"in":E.start(D,1);break;case"out":E.start(D,0);break;case"show":E.set(D,1);break;case"hide":E.set(D,0);break;case"toggle":var B=this.retrieve("fade:flag",this.get("opacity")==1);E.start(D,(B)?0:1);this.store("fade:flag",!B);A=true;break;default:E.start(D,arguments);}if(!A){this.eliminate("fade:flag");}return this;},highlight:function(C,A){if(!A){A=this.retrieve("highlight:original",this.getStyle("background-color"));A=(A=="transparent")?"#fff":A;}var B=this.get("tween");B.start("background-color",C||"#ffff88",A).chain(function(){this.setStyle("background-color",this.retrieve("highlight:original"));B.callChain();}.bind(this));return this;}});Fx.Morph=new Class({Extends:Fx.CSS,initialize:function(B,A){this.element=this.subject=$(B);this.parent(A);},set:function(A){if(typeof A=="string"){A=this.search(A);}for(var B in A){this.render(this.element,B,A[B],this.options.unit);}return this;},compute:function(E,D,C){var A={};for(var B in E){A[B]=this.parent(E[B],D[B],C);}return A;},start:function(B){if(!this.check(arguments.callee,B)){return this;}if(typeof B=="string"){B=this.search(B);}var E={},D={};for(var C in B){var A=this.prepare(this.element,C,B[C]);E[C]=A.from;D[C]=A.to;}return this.parent(E,D);}});Element.Properties.morph={set:function(A){var B=this.retrieve("morph");if(B){B.cancel();}return this.eliminate("morph").store("morph:options",$extend({link:"cancel"},A));},get:function(A){if(A||!this.retrieve("morph")){if(A||!this.retrieve("morph:options")){this.set("morph",A);}this.store("morph",new Fx.Morph(this,this.retrieve("morph:options")));}return this.retrieve("morph");}};Element.implement({morph:function(A){this.get("morph").start(A);return this;}});(function(){var A=Fx.prototype.initialize;Fx.prototype.initialize=function(B){A.call(this,B);var C=this.options.transition;if(typeof C=="string"&&(C=C.split(":"))){var D=Fx.Transitions;D=D[C[0]]||D[C[0].capitalize()];if(C[1]){D=D["ease"+C[1].capitalize()+(C[2]?C[2].capitalize():"")];}this.options.transition=D;}};})();Fx.Transition=function(B,A){A=$splat(A);return $extend(B,{easeIn:function(C){return B(C,A);},easeOut:function(C){return 1-B(1-C,A);},easeInOut:function(C){return(C<=0.5)?B(2*C,A)/2:(2-B(2*(1-C),A))/2;}});};Fx.Transitions=new Hash({linear:$arguments(0)});Fx.Transitions.extend=function(A){for(var B in A){Fx.Transitions[B]=new Fx.Transition(A[B]);}};Fx.Transitions.extend({Pow:function(B,A){return Math.pow(B,A[0]||6);},Expo:function(A){return Math.pow(2,8*(A-1));},Circ:function(A){return 1-Math.sin(Math.acos(A));},Sine:function(A){return 1-Math.sin((1-A)*Math.PI/2);},Back:function(B,A){A=A[0]||1.618;return Math.pow(B,2)*((A+1)*B-A);},Bounce:function(D){var C;for(var B=0,A=1;1;B+=A,A/=2){if(D>=(7-4*B)/11){C=-Math.pow((11-6*B-11*D)/4,2)+A*A;break;}}return C;},Elastic:function(B,A){return Math.pow(2,10*--B)*Math.cos(20*B*Math.PI*(A[0]||1)/3);}});["Quad","Cubic","Quart","Quint"].each(function(B,A){Fx.Transitions[B]=new Fx.Transition(function(C){return Math.pow(C,[A+2]);});});var Request=new Class({Implements:[Chain,Events,Options],options:{url:"",data:"",headers:{"X-Requested-With":"XMLHttpRequest",Accept:"text/javascript, text/html, application/xml, text/xml, */*"},async:true,format:false,method:"post",link:"ignore",isSuccess:null,emulation:true,urlEncoded:true,encoding:"utf-8",evalScripts:false,evalResponse:false},initialize:function(A){this.xhr=new Browser.Request();this.setOptions(A);this.options.isSuccess=this.options.isSuccess||this.isSuccess;this.headers=new Hash(this.options.headers);},onStateChange:function(){if(this.xhr.readyState!=4||!this.running){return;}this.running=false;this.status=0;$try(function(){this.status=this.xhr.status;}.bind(this));if(this.options.isSuccess.call(this,this.status)){this.response={text:this.xhr.responseText,xml:this.xhr.responseXML};this.success(this.response.text,this.response.xml);}else{this.response={text:null,xml:null};this.failure();}this.xhr.onreadystatechange=$empty;},isSuccess:function(){return((this.status>=200)&&(this.status<300));},processScripts:function(A){if(this.options.evalResponse||(/(ecma|java)script/).test(this.getHeader("Content-type"))){return $exec(A);}return A.stripScripts(this.options.evalScripts);},success:function(B,A){this.onSuccess(this.processScripts(B),A);},onSuccess:function(){this.fireEvent("complete",arguments).fireEvent("success",arguments).callChain();},failure:function(){this.onFailure();},onFailure:function(){this.fireEvent("complete").fireEvent("failure",this.xhr);},setHeader:function(A,B){this.headers.set(A,B);return this;},getHeader:function(A){return $try(function(){return this.xhr.getResponseHeader(A);}.bind(this));},check:function(A){if(!this.running){return true;}switch(this.options.link){case"cancel":this.cancel();return true;case"chain":this.chain(A.bind(this,Array.slice(arguments,1)));return false;}return false;},send:function(I){if(!this.check(arguments.callee,I)){return this;}this.running=true;var G=$type(I);if(G=="string"||G=="element"){I={data:I};}var D=this.options;I=$extend({data:D.data,url:D.url,method:D.method},I);var E=I.data,B=I.url,A=I.method;switch($type(E)){case"element":E=$(E).toQueryString();break;case"object":case"hash":E=Hash.toQueryString(E);}if(this.options.format){var H="format="+this.options.format;E=(E)?H+"&"+E:H;}if(this.options.emulation&&["put","delete"].contains(A)){var F="_method="+A;E=(E)?F+"&"+E:F;A="post";}if(this.options.urlEncoded&&A=="post"){var C=(this.options.encoding)?"; charset="+this.options.encoding:"";this.headers.set("Content-type","application/x-www-form-urlencoded"+C);}if(E&&A=="get"){B=B+(B.contains("?")?"&":"?")+E;E=null;}this.xhr.open(A.toUpperCase(),B,this.options.async);this.xhr.onreadystatechange=this.onStateChange.bind(this);this.headers.each(function(K,J){if(!$try(function(){this.xhr.setRequestHeader(J,K);return true;}.bind(this))){this.fireEvent("exception",[J,K]);}},this);this.fireEvent("request");this.xhr.send(E);if(!this.options.async){this.onStateChange();}return this;},cancel:function(){if(!this.running){return this;}this.running=false;this.xhr.abort();this.xhr.onreadystatechange=$empty;this.xhr=new Browser.Request();this.fireEvent("cancel");return this;}});(function(){var A={};["get","post","put","delete","GET","POST","PUT","DELETE"].each(function(B){A[B]=function(){var C=Array.link(arguments,{url:String.type,data:$defined});return this.send($extend(C,{method:B.toLowerCase()}));};});Request.implement(A);})();Element.Properties.send={set:function(A){var B=this.retrieve("send");if(B){B.cancel();}return this.eliminate("send").store("send:options",$extend({data:this,link:"cancel",method:this.get("method")||"post",url:this.get("action")},A));},get:function(A){if(A||!this.retrieve("send")){if(A||!this.retrieve("send:options")){this.set("send",A);}this.store("send",new Request(this.retrieve("send:options")));}return this.retrieve("send");}};Element.implement({send:function(A){var B=this.get("send");B.send({data:this,url:A||B.options.url});return this;}});Request.HTML=new Class({Extends:Request,options:{update:false,evalScripts:true,filter:false},processHTML:function(C){var B=C.match(/<body[^>]*>([\s\S]*?)<\/body>/i);C=(B)?B[1]:C;var A=new Element("div");return $try(function(){var D="<root>"+C+"</root>",G;if(Browser.Engine.trident){G=new ActiveXObject("Microsoft.XMLDOM");G.async=false;G.loadXML(D);}else{G=new DOMParser().parseFromString(D,"text/xml");}D=G.getElementsByTagName("root")[0];for(var F=0,E=D.childNodes.length;F<E;F++){var H=Element.clone(D.childNodes[F],true,true);if(H){A.grab(H);}}return A;})||A.set("html",C);},success:function(D){var C=this.options,B=this.response;B.html=D.stripScripts(function(E){B.javascript=E;});var A=this.processHTML(B.html);B.tree=A.childNodes;B.elements=A.getElements("*");if(C.filter){B.tree=B.elements.filter(C.filter);}if(C.update){$(C.update).empty().adopt(B.tree);}if(C.evalScripts){$exec(B.javascript);}this.onSuccess(B.tree,B.elements,B.html,B.javascript);}});Element.Properties.load={set:function(A){var B=this.retrieve("load");if(B){send.cancel();}return this.eliminate("load").store("load:options",$extend({data:this,link:"cancel",update:this,method:"get"},A));},get:function(A){if(A||!this.retrieve("load")){if(A||!this.retrieve("load:options")){this.set("load",A);}this.store("load",new Request.HTML(this.retrieve("load:options")));}return this.retrieve("load");}};Element.implement({load:function(){this.get("load").send(Array.link(arguments,{data:Object.type,url:String.type}));return this;}});Request.JSON=new Class({Extends:Request,options:{secure:true},initialize:function(A){this.parent(A);this.headers.extend({Accept:"application/json","X-Request":"JSON"});},success:function(A){this.response.json=JSON.decode(A,this.options.secure);this.onSuccess(this.response.json,A);}});}catch(e){document.write("\x3cscript type='text/javascript' src='http://www.spectrum-photo.ca/wp-content/plugins/mootools-framework/mootools.js?v=1.2'>\x3c/script>")}try{var gallery={initialize:function(element,options){this.setOptions({showArrows:true,showCarousel:true,showInfopane:true,embedLinks:true,fadeDuration:500,timed:false,delay:9000,preloader:true,preloaderImage:true,preloaderErrorImage:true,manualData:[],populateFrom:false,populateData:true,destroyAfterPopulate:true,elementSelector:"div.imageElement",titleSelector:"h3",subtitleSelector:"p",linkSelector:"a.open",imageSelector:"img.full",thumbnailSelector:"img.thumbnail",defaultTransition:"fade",slideInfoZoneOpacity:0.7,slideInfoZoneSlide:true,carouselMinimizedOpacity:0.4,carouselMinimizedHeight:20,carouselMaximizedOpacity:0.9,thumbHeight:75,thumbWidth:100,thumbSpacing:10,thumbIdleOpacity:0.2,textShowCarousel:'Pictures',showCarouselLabel:true,thumbCloseCarousel:true,useThumbGenerator:false,thumbGenerator:'resizer.php',useExternalCarousel:false,carouselElement:false,carouselHorizontal:true,activateCarouselScroller:true,carouselPreloader:true,textPreloadingCarousel:'Loading...',baseClass:'jdGallery',withArrowsClass:'withArrows',useHistoryManager:false,customHistoryKey:false},options);this.fireEvent('onInit');this.currentIter=0;this.lastIter=0;this.maxIter=0;this.galleryElement=element;this.galleryData=this.options.manualData;this.galleryInit=1;this.galleryElements=Array();this.thumbnailElements=Array();this.galleryElement.addClass(this.options.baseClass);this.populateFrom=element;if(this.options.populateFrom)
this.populateFrom=this.options.populateFrom;if(this.options.populateData)
this.populateData();element.style.display="block";if(this.options.useHistoryManager)
this.initHistory();if(this.options.embedLinks)
{this.currentLink=new Element('a').addClass('open').setProperties({href:'#',title:''}).injectInside(element);if((!this.options.showArrows)&&(!this.options.showCarousel))
this.galleryElement=element=this.currentLink;else
this.currentLink.setStyle('display','none');}
this.constructElements();if((this.galleryData.length>1)&&(this.options.showArrows))
{var leftArrow=new Element('a').addClass('left').addEvent('click',this.prevItem.bind(this)).injectInside(element);var rightArrow=new Element('a').addClass('right').addEvent('click',this.nextItem.bind(this)).injectInside(element);this.galleryElement.addClass(this.options.withArrowsClass);}
this.loadingElement=new Element('div').addClass('loadingElement').injectInside(element);if(this.options.showInfopane)this.initInfoSlideshow();if(this.options.showCarousel)this.initCarousel();this.doSlideShow(1);},populateData:function(){currentArrayPlace=this.galleryData.length;options=this.options;var data=$A(this.galleryData);data.extend(this.populateGallery(this.populateFrom,currentArrayPlace));this.galleryData=data;this.fireEvent('onPopulated');},populateGallery:function(element,startNumber){var data=[];options=this.options;currentArrayPlace=startNumber;element.getElements(options.elementSelector).each(function(el){elementDict={image:el.getElement(options.imageSelector).getProperty('src'),number:currentArrayPlace,transition:this.options.defaultTransition};elementDict.extend=$extend;if((options.showInfopane)|(options.showCarousel))
elementDict.extend({title:el.getElement(options.titleSelector).innerHTML,description:el.getElement(options.subtitleSelector).innerHTML});if(options.embedLinks)
elementDict.extend({link:el.getElement(options.linkSelector).href||false,linkTitle:el.getElement(options.linkSelector).title||false,linkTarget:el.getElement(options.linkSelector).getProperty('target')||false});if((!options.useThumbGenerator)&&(options.showCarousel))
elementDict.extend({thumbnail:el.getElement(options.thumbnailSelector).getProperty('src')});else if(options.useThumbGenerator)
elementDict.extend({thumbnail:options.thumbGenerator+'?imgfile='+elementDict.image+'&max_width='+options.thumbWidth+'&max_height='+options.thumbHeight});data.extend([elementDict]);currentArrayPlace++;if(this.options.destroyAfterPopulate)
el.remove();});return data;},constructElements:function(){el=this.galleryElement;this.maxIter=this.galleryData.length;var currentImg;for(i=0;i<this.galleryData.length;i++)
{var currentImg=new Fx.Styles(new Element('div').addClass('slideElement').setStyles({'position':'absolute','left':'0px','right':'0px','margin':'0px','padding':'0px','backgroundPosition':"center center",'opacity':'0'}).injectInside(el),'opacity',{duration:this.options.fadeDuration});if(this.options.preloader)
{currentImg.source=this.galleryData[i].image;currentImg.loaded=false;currentImg.load=function(imageStyle){if(!imageStyle.loaded){new Asset.image(imageStyle.source,{'onload':function(img){img.element.setStyle('backgroundImage',"url('"+img.source+"')")
img.loaded=true;}.bind(this,imageStyle)});}}.pass(currentImg,this);}else{currentImg.element.setStyle('backgroundImage',"url('"+this.galleryData[i].image+"')");}
this.galleryElements[parseInt(i)]=currentImg;}},destroySlideShow:function(element){var myClassName=element.className;var newElement=new Element('div').addClass('myClassName');element.parentNode.replaceChild(newElement,element);},startSlideShow:function(){this.fireEvent('onStart');this.loadingElement.style.display="none";this.lastIter=this.maxIter-1;this.currentIter=0;this.galleryInit=0;this.galleryElements[parseInt(this.currentIter)].set({opacity:1});if(this.options.showInfopane)
this.showInfoSlideShow.delay(1000,this);var textShowCarousel=formatString(this.options.textShowCarousel,this.currentIter+1,this.maxIter);if(this.options.showCarousel&&(!this.options.carouselPreloader))
this.carouselBtn.setHTML(textShowCarousel).setProperty('title',textShowCarousel);this.prepareTimer();if(this.options.embedLinks)
this.makeLink(this.currentIter);},nextItem:function(){this.fireEvent('onNextCalled');this.nextIter=this.currentIter+1;if(this.nextIter>=this.maxIter)
this.nextIter=0;this.galleryInit=0;this.goTo(this.nextIter);},prevItem:function(){this.fireEvent('onPreviousCalled');this.nextIter=this.currentIter-1;if(this.nextIter<=-1)
this.nextIter=this.maxIter-1;this.galleryInit=0;this.goTo(this.nextIter);},goTo:function(num){this.clearTimer();if(this.options.preloader)
{this.galleryElements[num].load();if(num==0)
this.galleryElements[this.maxIter-1].load();else
this.galleryElements[num-1].load();if(num==(this.maxIter-1))
this.galleryElements[0].load();else
this.galleryElements[num+1].load();}
if(this.options.embedLinks)
this.clearLink();if(this.options.showInfopane)
{this.slideInfoZone.clearChain();this.hideInfoSlideShow().chain(this.changeItem.pass(num,this));}else
this.currentChangeDelay=this.changeItem.delay(500,this,num);if(this.options.embedLinks)
this.makeLink(num);this.prepareTimer();},changeItem:function(num){this.fireEvent('onStartChanging');this.galleryInit=0;if(this.currentIter!=num)
{for(i=0;i<this.maxIter;i++)
{if((i!=this.currentIter))this.galleryElements[i].set({opacity:0});}
gallery.Transitions[this.galleryData[num].transition].pass([this.galleryElements[this.currentIter],this.galleryElements[num],this.currentIter,num],this)();this.currentIter=num;}
var textShowCarousel=formatString(this.options.textShowCarousel,num+1,this.maxIter);if(this.options.showCarousel)
this.carouselBtn.setHTML(textShowCarousel).setProperty('title',textShowCarousel);this.doSlideShow.bind(this)();this.fireEvent('onChanged');},clearTimer:function(){if(this.options.timed)
$clear(this.timer);},prepareTimer:function(){if(this.options.timed)
this.timer=this.nextItem.delay(this.options.delay,this);},doSlideShow:function(position){if(this.galleryInit==1)
{imgPreloader=new Image();imgPreloader.onload=function(){this.startSlideShow.delay(10,this);}.bind(this);imgPreloader.src=this.galleryData[0].image;if(this.options.preloader)
this.galleryElements[0].load();}else{if(this.options.showInfopane)
{if(this.options.showInfopane)
{this.showInfoSlideShow.delay((500+this.options.fadeDuration),this);}else
if((this.options.showCarousel)&&(this.options.activateCarouselScroller))
this.centerCarouselOn(position);}}},createCarousel:function(){var carouselElement;if(!this.options.useExternalCarousel)
{var carouselContainerElement=new Element('div').addClass('carouselContainer').injectInside(this.galleryElement);this.carouselContainer=new Fx.Styles(carouselContainerElement,{transition:Fx.Transitions.expoOut});this.carouselContainer.normalHeight=carouselContainerElement.offsetHeight;this.carouselContainer.set({'opacity':this.options.carouselMinimizedOpacity,'top':(this.options.carouselMinimizedHeight-this.carouselContainer.normalHeight)});this.carouselBtn=new Element('a').addClass('carouselBtn').setProperties({title:this.options.textShowCarousel}).injectInside(carouselContainerElement);if(this.options.carouselPreloader)
this.carouselBtn.setHTML(this.options.textPreloadingCarousel);else
this.carouselBtn.setHTML(this.options.textShowCarousel);this.carouselBtn.addEvent('click',function(){this.carouselContainer.clearTimer();this.toggleCarousel();}.bind(this));this.carouselActive=false;carouselElement=new Element('div').addClass('carousel').injectInside(carouselContainerElement);this.carousel=new Fx.Styles(carouselElement);}else{carouselElement=$(this.options.carouselElement).addClass('jdExtCarousel');}
this.carouselElement=new Fx.Styles(carouselElement,{transition:Fx.Transitions.expoOut});this.carouselElement.normalHeight=carouselElement.offsetHeight;if(this.options.showCarouselLabel)
this.carouselLabel=new Element('p').addClass('label').injectInside(carouselElement);carouselWrapper=new Element('div').addClass('carouselWrapper').injectInside(carouselElement);this.carouselWrapper=new Fx.Styles(carouselWrapper,{transition:Fx.Transitions.expoOut});this.carouselWrapper.normalHeight=carouselWrapper.offsetHeight;this.carouselInner=new Element('div').addClass('carouselInner').injectInside(carouselWrapper);if(this.options.activateCarouselScroller)
{this.carouselWrapper.scroller=new Scroller(carouselWrapper,{area:100,velocity:0.2})
this.carouselWrapper.elementScroller=new Fx.Scroll(carouselWrapper,{duration:400,onStart:this.carouselWrapper.scroller.stop.bind(this.carouselWrapper.scroller),onComplete:this.carouselWrapper.scroller.start.bind(this.carouselWrapper.scroller)});}},fillCarousel:function(){this.constructThumbnails();this.carouselInner.normalWidth=((this.maxIter*(this.options.thumbWidth+this.options.thumbSpacing+2))+this.options.thumbSpacing)+"px";this.carouselInner.style.width=this.carouselInner.normalWidth;},initCarousel:function(){this.createCarousel();this.fillCarousel();if(this.options.carouselPreloader)
this.preloadThumbnails();},flushCarousel:function(){this.thumbnailElements.each(function(myFx){myFx.element.remove();myFx=myFx.element=null;});this.thumbnailElements=[];},toggleCarousel:function(){if(this.carouselActive)
this.hideCarousel();else
this.showCarousel();},showCarousel:function(){this.fireEvent('onShowCarousel');this.carouselContainer.start({'opacity':this.options.carouselMaximizedOpacity,'top':0}).chain(function(){this.carouselActive=true;this.carouselWrapper.scroller.start();this.fireEvent('onCarouselShown');this.carouselContainer.options.onComplete=null;}.bind(this));},hideCarousel:function(){this.fireEvent('onHideCarousel');var targetTop=this.options.carouselMinimizedHeight-this.carouselContainer.normalHeight;this.carouselContainer.start({'opacity':this.options.carouselMinimizedOpacity,'top':targetTop}).chain(function(){this.carouselActive=false;this.carouselWrapper.scroller.stop();this.fireEvent('onCarouselHidden');this.carouselContainer.options.onComplete=null;}.bind(this));},constructThumbnails:function(){element=this.carouselInner;for(i=0;i<this.galleryData.length;i++)
{var currentImg=new Fx.Style(new Element('div').addClass("thumbnail").setStyles({backgroundImage:"url('"+this.galleryData[i].thumbnail+"')",backgroundPosition:"center center",backgroundRepeat:'no-repeat',marginLeft:this.options.thumbSpacing+"px",width:this.options.thumbWidth+"px",height:this.options.thumbHeight+"px"}).injectInside(element),"opacity",{duration:200}).set(this.options.thumbIdleOpacity);currentImg.element.addEvents({'mouseover':function(myself){myself.clearTimer();myself.start(0.99);if(this.options.showCarouselLabel)
$(this.carouselLabel).setHTML('<span class="number">'+(myself.relatedImage.number+1)+"/"+this.maxIter+":</span> "+myself.relatedImage.title);}.pass(currentImg,this),'mouseout':function(myself){myself.clearTimer();myself.start(this.options.thumbIdleOpacity);}.pass(currentImg,this),'click':function(myself){this.goTo(myself.relatedImage.number);if(this.options.thumbCloseCarousel)
this.hideCarousel();}.pass(currentImg,this)});currentImg.relatedImage=this.galleryData[i];this.thumbnailElements[parseInt(i)]=currentImg;}},log:function(value){if(console.log)
console.log(value);},preloadThumbnails:function(){var thumbnails=[];for(i=0;i<this.galleryData.length;i++)
{thumbnails[parseInt(i)]=this.galleryData[i].thumbnail;}
this.thumbnailPreloader=new Preloader();this.thumbnailPreloader.addEvent('onComplete',function(){var textShowCarousel=formatString(this.options.textShowCarousel,this.currentIter+1,this.maxIter);this.carouselBtn.setHTML(textShowCarousel).setProperty('title',textShowCarousel);}.bind(this));this.thumbnailPreloader.load(thumbnails);},clearThumbnailsHighlights:function()
{for(i=0;i<this.galleryData.length;i++)
{this.thumbnailElements[i].clearTimer();this.thumbnailElements[i].start(0.2);}},changeThumbnailsSize:function(width,height)
{for(i=0;i<this.galleryData.length;i++)
{this.thumbnailElements[i].clearTimer();this.thumbnailElements[i].element.setStyles({'width':width+"px",'height':height+"px"});}},centerCarouselOn:function(num){if(!this.carouselWallMode)
{var carouselElement=this.thumbnailElements[num];var position=carouselElement.element.offsetLeft+(carouselElement.element.offsetWidth/2);var carouselWidth=this.carouselWrapper.element.offsetWidth;var carouselInnerWidth=this.carouselInner.offsetWidth;var diffWidth=carouselWidth/2;var scrollPos=position-diffWidth;this.carouselWrapper.elementScroller.scrollTo(scrollPos,0);}},initInfoSlideshow:function(){this.slideInfoZone=new Fx.Styles(new Element('div').addClass('slideInfoZone').injectInside($(this.galleryElement))).set({'opacity':0});var slideInfoZoneTitle=new Element('h2').injectInside(this.slideInfoZone.element);var slideInfoZoneDescription=new Element('p').injectInside(this.slideInfoZone.element);this.slideInfoZone.normalHeight=this.slideInfoZone.element.offsetHeight;this.slideInfoZone.element.setStyle('opacity',0);},changeInfoSlideShow:function()
{this.hideInfoSlideShow.delay(10,this);this.showInfoSlideShow.delay(500,this);},showInfoSlideShow:function(){this.fireEvent('onShowInfopane');this.slideInfoZone.clearTimer();element=this.slideInfoZone.element;element.getElement('h2').setHTML(this.galleryData[this.currentIter].title);element.getElement('p').setHTML(this.galleryData[this.currentIter].description);if(this.options.slideInfoZoneSlide)
this.slideInfoZone.start({'opacity':[0,this.options.slideInfoZoneOpacity],'height':[0,this.slideInfoZone.normalHeight]});else
this.slideInfoZone.start({'opacity':[0,this.options.slideInfoZoneOpacity]});if(this.options.showCarousel)
this.slideInfoZone.chain(this.centerCarouselOn.pass(this.currentIter,this));return this.slideInfoZone;},hideInfoSlideShow:function(){this.fireEvent('onHideInfopane');this.slideInfoZone.clearTimer();if(this.options.slideInfoZoneSlide)
this.slideInfoZone.start({'opacity':0,'height':0});else
this.slideInfoZone.start({'opacity':0});return this.slideInfoZone;},makeLink:function(num){this.currentLink.setProperties({href:this.galleryData[num].link,title:this.galleryData[num].linkTitle,target:this.galleryData[num].linkTarget})
if(!((this.options.embedLinks)&&(!this.options.showArrows)&&(!this.options.showCarousel)))
this.currentLink.setStyle('display','block');},clearLink:function(){this.currentLink.setProperties({href:'',title:''});if(!((this.options.embedLinks)&&(!this.options.showArrows)&&(!this.options.showCarousel)))
this.currentLink.setStyle('display','none');},flushGallery:function(){this.galleryElements.each(function(myFx){myFx.element.remove();myFx=myFx.element=null;});this.galleryElements=[];},changeData:function(data){this.galleryData=data;this.clearTimer();this.flushGallery();if(this.options.showCarousel)this.flushCarousel();this.constructElements();if(this.options.showCarousel)this.fillCarousel();if(this.options.showInfopane)this.hideInfoSlideShow();this.galleryInit=1;this.lastIter=0;this.currentIter=0;this.doSlideShow(1);},initHistory:function(){this.fireEvent('onHistoryInit');this.historyKey=this.galleryElement.id+'-picture';if(this.options.customHistoryKey)
this.historyKey=this.options.customHistoryKey();this.history=HistoryManager.register(this.historyKey,[1],function(values){if(parseInt(values[0])-1<this.maxIter)
this.goTo(parseInt(values[0])-1);}.bind(this),function(values){return[this.historyKey,'(',values[0],')'].join('');}.bind(this),this.historyKey+'\\((\\d+)\\)');this.addEvent('onChanged',function(){this.history.setValue(0,this.currentIter+1);}.bind(this));this.fireEvent('onHistoryInited');}};gallery=new Class(gallery);gallery.implement(new Events);gallery.implement(new Options);gallery.Transitions=new Abstract({fade:function(oldFx,newFx,oldPos,newPos){oldFx.options.transition=newFx.options.transition=Fx.Transitions.linear;oldFx.options.duration=newFx.options.duration=this.options.fadeDuration;if(newPos>oldPos)newFx.start({opacity:1});else
{newFx.set({opacity:1});oldFx.start({opacity:0});}},crossfade:function(oldFx,newFx,oldPos,newPos){oldFx.options.transition=newFx.options.transition=Fx.Transitions.linear;oldFx.options.duration=newFx.options.duration=this.options.fadeDuration;newFx.start({opacity:1});oldFx.start({opacity:0});},fadebg:function(oldFx,newFx,oldPos,newPos){oldFx.options.transition=newFx.options.transition=Fx.Transitions.linear;oldFx.options.duration=newFx.options.duration=this.options.fadeDuration/2;oldFx.start({opacity:0}).chain(newFx.start.pass([{opacity:1}],newFx));}});var Preloader=new Class({Implements:[Events,Options],options:{root:'',period:100},initialize:function(options){this.setOptions(options);},load:function(sources){this.index=0;this.images=[];this.sources=this.temps=sources;this.total=this.sources.length;this.fireEvent('onStart',[this.index,this.total]);this.timer=this.progress.periodical(this.options.period,this);this.sources.each(function(source,index){this.images[index]=new Asset.image(this.options.root+source,{'onload':function(){this.index++;if(this.images[index])this.fireEvent('onLoad',[this.images[index],index,source]);}.bind(this),'onerror':function(){this.index++;this.fireEvent('onError',[this.images.splice(index,1),index,source]);}.bind(this),'onabort':function(){this.index++;this.fireEvent('onError',[this.images.splice(index,1),index,source]);}.bind(this)});},this);},progress:function(){this.fireEvent('onProgress',[Math.min(this.index,this.total),this.total]);if(this.index>=this.total)this.complete();},complete:function(){$clear(this.timer);this.fireEvent('onComplete',[this.images]);},cancel:function(){$clear(this.timer);}});Preloader.implement(new Events,new Options);function formatString(){var num=arguments.length;var oStr=arguments[0];for(var i=1;i<num;i++){var pattern="\\{"+(i-1)+"\\}";var re=new RegExp(pattern,"g");oStr=oStr.replace(re,arguments[i]);}
return oStr;}}catch(e){document.write("\x3cscript type=\"text/javascript\"  src=\"http://www.spectrum-photo.ca/wp-content/plugins/nextgen-smooth-gallery/SmoothGallery/scripts/jd.gallery.js\">\x3c/script>")}try{gallery.Transitions.extend({fadeslideleft:function(oldFx,newFx,oldPos,newPos){oldFx.options.transition=newFx.options.transition=Fx.Transitions.Cubic.easeOut;oldFx.options.duration=newFx.options.duration=1500;if(newPos>oldPos)
{newFx.start({left:[this.galleryElement.offsetWidth,0],opacity:1});oldFx.start({opacity:[1,0]});}else{newFx.start({opacity:[0,1]});oldFx.start({left:[0,this.galleryElement.offsetWidth],opacity:0}).chain(function(fx){fx.set({left:0});}.pass(oldFx));}},continuoushorizontal:function(oldFx,newFx,oldPos,newPos){oldFx.options.transition=newFx.options.transition=Fx.Transitions.linear;if(((newPos>oldPos)||((newPos==0)&&(oldPos==(this.maxIter-1))))&&(!((newPos==(this.maxIter-1))&&(oldPos==0)))){oldFx.set({opacity:1});oldFx.start({left:[0,this.galleryElement.offsetWidth*-1]});newFx.set({opacity:1,left:this.galleryElement.offsetWidth});newFx.start({left:[this.galleryElement.offsetWidth,0]});}else{oldFx.set({opacity:1});oldFx.start({left:[0,this.galleryElement.offsetWidth]});newFx.set({opacity:1,left:this.galleryElement.offsetWidth*-1});newFx.start({left:[this.galleryElement.offsetWidth*-1,0]});}},continuousvertical:function(oldFx,newFx,oldPos,newPos){oldFx.options.transition=newFx.options.transition=Fx.Transitions.linear;if(((newPos>oldPos)||((newPos==0)&&(oldPos==(this.maxIter-1))))&&(!((newPos==(this.maxIter-1))&&(oldPos==0)))){oldFx.set({opacity:1});oldFx.start({top:[0,this.galleryElement.offsetHeight*-1]});newFx.set({opacity:1,top:this.galleryElement.offsetHeight});newFx.start({top:[this.galleryElement.offsetHeight,0]});}else{oldFx.set({opacity:1});oldFx.start({top:[0,this.galleryElement.offsetHeight]});newFx.set({opacity:1,top:this.galleryElement.offsetHeight*-1});newFx.start({top:[this.galleryElement.offsetHeight*-1,0]});}}});function makeNewWindows(){if(!document.links){document.links=document.getElementsByTagName('a');}
for(var t=0;t<document.links.length;t++){var all_links=document.links[t];if(all_links.href.search(/^http/)!=-1){if(all_links.href.search('/www.spectrum-photo.ca/')==-1&&document.links[t].hasAttribute('onClick')==false){document.links[t].setAttribute('onClick','javascript:window.open(\''+all_links.href+'\'); return false;');document.links[t].removeAttribute('target');}}}}
function addLoadEvent2(func)
{var oldonload=window.onload;if(typeof window.onload!='function'){window.onload=func;}else{window.onload=function(){oldonload();func();}}}
addLoadEvent2(makeNewWindows);}catch(e){document.write("\x3cscript type=\"text/javascript\"  src=\"http://www.spectrum-photo.ca/wp-content/plugins/nextgen-smooth-gallery/SmoothGallery/scripts/jd.gallery.transitions.js\">\x3c/script>")}try{(function($){$.fn.lazyload=function(options){var settings={threshold:0,failurelimit:0,event:"scroll",effect:"show"};if(options){$.extend(settings,options);}
var elements=this;if("scroll"==settings.event){$(window).bind("scroll",function(event){var counter=0;elements.each(function(){if(!$.belowthefold(this,settings)&&!$.rightoffold(this,settings)){$(this).trigger("appear");}else{if(counter++>settings.failurelimit){return false;}}});var temp=$.grep(elements,function(element){return!element.loaded;});elements=$(temp);});}
return this.each(function(){var self=this;$(self).attr("original",$(self).attr("src"));if("scroll"!=settings.event||$.belowthefold(self,settings)||$.rightoffold(self,settings)){if(settings.placeholder){$(self).attr("src",settings.placeholder);}else{$(self).removeAttr("src");}
self.loaded=false;}else{self.loaded=true;}
$(self).one("appear",function(){if(!this.loaded){$("<img>").attr("src",$(self).attr("original")).bind("load",function(){$(self).hide().attr("src",$(self).attr("original"))
[settings.effect](settings.effectspeed);self.loaded=true;});};});if("scroll"!=settings.event){$(self).bind(settings.event,function(event){if(!self.loaded){$(self).trigger("appear");}});}});};$.belowthefold=function(element,settings){var fold=$(window).height()+$(window).scrollTop();return fold<=$(element).offset().top-settings.threshold;};$.rightoffold=function(element,settings){var fold=$(window).width()+$(window).scrollLeft();return fold<=$(element).offset().left-settings.threshold;};$.extend($.expr[':'],{"below-the-fold":"$.belowthefold(a, {threshold : 0})","above-the-fold":"!$.belowthefold(a, {threshold : 0})","right-of-fold":"$.rightoffold(a, {threshold : 0})","left-of-fold":"!$.rightoffold(a, {threshold : 0})"});})(jQuery);}catch(e){document.write("\x3cscript src=\"http://www.spectrum-photo.ca/wp-content/themes/prophoto2/js/lazyload.js\" type=\"text/javascript\" charset=\"utf-8\">\x3c/script>")}try{sfHover=function(){var sfEls=document.getElementById("topnav").getElementsByTagName("LI");for(var i=0;i<sfEls.length;i++){sfEls[i].onmouseover=function(){this.className+=" sfhover";}
sfEls[i].onmouseout=function(){this.className=this.className.replace(new RegExp(" sfhover\\b"),"");}}}
if(window.attachEvent)window.attachEvent("onload",sfHover);jQuery(document).ready(function(){jQuery('#topnav li ul a').attr('title','');jQuery('#topnav li ul li:has(ul)').each(function(){$link=jQuery(this).children('a');linktext=$link.html();$link.html(linktext+" &raquo;");});jQuery('#topnav li ul li ul').hover(function(){jQuery(this).parent().children('a').css('text-decoration','underline');},function(){jQuery(this).parent().children('a').css('text-decoration','none');});if(!jQuery.browser.msie){jQuery('#topnav li ul').css('opacity',0.93);}
if(jQuery.browser.msie){if(jQuery('#topnav li ul li:has(ul)').size()==0){jQuery('#topnav li ul').css('opacity',0.93);}}
jQuery('.entry-post:last').css('border','none');var padding=jQuery('body.single .entry-content').css('padding-bottom');jQuery('.entry-post:last').css('padding-bottom','0');jQuery('.entry-post:last').css('background-image','none');jQuery('a#hidden-bio').click(function(){jQuery('#bio').slideToggle(350,function(){jQuery('#bio-outer').css('display','block');jQuery('#biocolumns').css('display','inline');jQuery('.biocolumn').css('display','block');});});if(!jQuery.browser.msie){jQuery(".entry-content img").lazyload({effect:"fadeIn",threshold:1500,placeholder:"http://www.spectrum-photo.ca/wp-content/themes/prophoto2/images/nodefaultimage.gif"});}});}catch(e){document.write("\x3cscript src=\"http://www.spectrum-photo.ca/wp-content/uploads/p2/themescript.js\" type=\"text/javascript\" charset=\"utf-8\">\x3c/script>")}
